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