npm.io
0.1.2 • Published 4 years ago

hardhat-function-signatures

Licence
MIT
Version
0.1.2
Deps
0
Size
8 kB
Vulns
0
Weekly
0
Stars
3

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' │
└─────────┴───────────────────────┴──────────────┘

Keywords