Skip to content

Echolinq/hardhat-function-signatures

Repository files navigation

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

$ npx hardhat function-signatures

┌─────────┬───────────────────────┬──────────────┐
│ (index) │     Greeter.json      │  Signature   │
├─────────┼───────────────────────┼──────────────┤
│    0    │       'greet()'       │ '0xcfae3217' │
│    1    │ 'setGreeting(string)' │ '0xa4136862' │
└─────────┴───────────────────────┴──────────────┘

About

outputs ethereum function signatures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published