Skip to content

๐Ÿ—‚๏ธ Upload local function selectors to the Ethereum Selector Database ๐Ÿ—ƒ๏ธ

License

Notifications You must be signed in to change notification settings

solidstate-network/hardhat-4byte-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hardhat 4byte Uploader

Calculate the function selectors found in all local contracts and upload them to the 4byte Directory Ethereum Signature Database.

Installation

npm install --save-dev @solidstate/hardhat-4byte-uploader
# or
yarn add --dev @solidstate/hardhat-4byte-uploader

Usage

Load plugin in Hardhat config:

require('@solidstate/hardhat-4byte-uploader');

Add configuration under the fourByteUploader key:

option description default
runOnCompile whether to automatically upload selectors during compilation (ignored if Hardhat detects a CI server environment) false
fourByteUploader: {
  runOnCompile: true,
}

Run the included Hardhat task manually:

npx hardhat upload-selectors
# or
yarn run hardhat upload-selectors

Development

Install dependencies via Yarn:

yarn install

Setup Husky to format code on commit:

yarn prepare

About

๐Ÿ—‚๏ธ Upload local function selectors to the Ethereum Selector Database ๐Ÿ—ƒ๏ธ

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published