https://github.com/akshatmittal/hardhat-sync-selectors
Hardhat plugin to sync selectors / signatures to various directories
https://github.com/akshatmittal/hardhat-sync-selectors
4byte blockchain ethereum function-selector function-signature hardhat hardhat-plugin openchain selector selectors signature signature-database signatures smart-contracts solc solidity
Last synced: 3 months ago
JSON representation
Hardhat plugin to sync selectors / signatures to various directories
- Host: GitHub
- URL: https://github.com/akshatmittal/hardhat-sync-selectors
- Owner: akshatmittal
- License: mit
- Created: 2023-08-12T20:52:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-13T17:37:20.000Z (almost 2 years ago)
- Last Synced: 2024-03-14T23:23:51.623Z (about 1 year ago)
- Topics: 4byte, blockchain, ethereum, function-selector, function-signature, hardhat, hardhat-plugin, openchain, selector, selectors, signature, signature-database, signatures, smart-contracts, solc, solidity
- Language: TypeScript
- Homepage:
- Size: 2.68 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hardhat-sync-selectors
Hardhat plugin to sync selectors/signatures with various open registries.
Currently publishes all Events, Errors and Functions to the following directories:
1. [Ethereum Signature Database](https://www.4byte.directory/)
2. [OpenChain](https://openchain.xyz/signatures)## Installation
```bash
yarn add hardhat-sync-selectors
```Import the plugin in your `hardhat.config.js`:
```js
require("hardhat-sync-selectors");
```Or if you are using TypeScript, in your `hardhat.config.ts`:
```ts
import "hardhat-sync-selectors";
```## Tasks
This plugin adds the following tasks to Hardhat:
1. `sync-selectors`
2. `sync-signatures`Both tasks are exactly the same and upload signatures from all your contracts.
```bash
yarn hardhat sync-selectors # compiles all contracts and syncs selectors
yarn hardhat sync-selectors --no-compile # skips compiling before syncing selectors
```