Hardhat plugin to sync selectors/signatures with various open registries.
Currently publishes all Events, Errors and Functions to the following directories:
yarn add hardhat-sync-selectors
Import the plugin in your hardhat.config.js
:
require("hardhat-sync-selectors");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "hardhat-sync-selectors";
This plugin adds the following tasks to Hardhat:
sync-selectors
sync-signatures
Both tasks are exactly the same and upload signatures from all your contracts.
yarn hardhat sync-selectors # compiles all contracts and syncs selectors
yarn hardhat sync-selectors --no-compile # skips compiling before syncing selectors