0.1.2 • Published 4 years ago
hardhat-function-signatures v0.1.2
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-signaturesImport 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 ContractsExample
$ hh function-signatures
┌─────────┬───────────────────────┬──────────────┐
│ (index) │ Greeter.json │ Signature │
├─────────┼───────────────────────┼──────────────┤
│ 0 │ 'greet()' │ '0xcfae3217' │
│ 1 │ 'setGreeting(string)' │ '0xa4136862' │
└─────────┴───────────────────────┴──────────────┘