The hardhat plugin with common ABI utilities.
This plugin simplifies interation with ABI and enables the following use cases:
- Interface ID Calculation: Calculates the Interface ID for a specified smart contract using
hardhat
environment andsolidity-ast
package.
npm install --save-dev @solarity/hardhat-habits
To use the module, follow these steps:
- Import the Module:
import { getInterfaceID } from "@solarity/hardhat-habits";
- Call the Function:
const interfaceID = await getInterfaceID("YourContractName");
Replace "YourContractName"
with the name of your contract.
Note
If the contract name is ambiguous, the fully qualified name of the contract will have to be specified.
This plugin does not add tasks to the Hardhat Runtime Environment.
This plugin does not extend the Hardhat Runtime Environment.