Gets Ethereum function signatures for all contracts
npm install hardhat-function-signaturesGets the Ethereum encoded function signatures
This plugin get all the encoded function signatures from the solidity contracts
and prints them to the console.
``bash`
npm install hardhat-function-signatures
Import the plugin in your hardhat.config.js:
`js`
require("hardhat-function-signatures");
Or if you are using TypeScript, in your hardhat.config.ts:
`ts`
import "hardhat-function-signatures";
This plugin adds the function-signatures task to Hardhat:
`
Usage: hardhat [GLOBAL OPTIONS] function-signatures
function-signatures: Get function signatures for Contracts
`
$ hh function-signatures┌─────────┬───────────────────────┬──────────────┐
│ (index) │ Greeter.json │ Signature │
├─────────┼───────────────────────┼──────────────┤
│ 0 │ 'greet()' │ '0xcfae3217' │
│ 1 │ 'setGreeting(string)' │ '0xa4136862' │
└─────────┴───────────────────────┴──────────────┘
``