1.1.2 • Published 11 months ago

hardhat-contract-signatures v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Hardhat Contract Signatures

This plugin for Hardhat display different signatures that have the methods, events and errors of your contracts by console.

Installation

npm install --save-dev hardhat-contract-signatures

Configuration

Load plugin in your hardhat.config:

// JS
require("hardhat-contract-signatures");
// TS
import "hardhat-contract-signatures"

Add configuration for contractSignature key: | Option | Description | DefaultValues | |------------------|-------------------------------------------------------------------------------------------------------------------------------|------------------------------| | exclude | Array of dependency paths to exclude | [] | | functionsColumns | Array of the columns you want to display. sign:minimal,sign:sighash,sign:full,sign:json,selector,type | 'selector', 'sign:minimal' | | eventsColumns | Array of the columns you want to display. sign:minimal,sign:sighash,sign:full,sign:json,selector,type,topicHash | 'topicHash' | | errorsColumns | Array of the columns you want to display. sign:minimal,sign:sighash,sign:full,sign:json,selector,type | 'selector', 'sign:minimal' | | findColumns | Array of the columns you want to display. sign:minimal,sign:sighash,sign:full,sign:json,selector,type,,topicHash| 'type', 'sign:minimal' |

contractSignature: {
	functionsColumns: ['selector',],
	eventsColumns: ['topicHash'],
	exclude: ['contracts/testWrappers/**', '@openzeppelin/**'],
}

Usage

The plugin includes 3 tasks depending on which signature you want to obtain:

  • Functions:
    	```
    	npx hardhat signature functions
    	```
  • Errors:
    	```
    	npx hardhat signature errors
    	```
  • Events:
    	```
    	npx hardhat signature events
    	```
  • Find:
    	```
    	npx hardhat signature find {selector or name you want to find}
    	```
1.1.1

11 months ago

1.1.2

11 months ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago