hardhat-utils
Hardhat utility tasks.
Installation
npm install @klaytn/hardhat-utils
Import the plugin in your hardhat.config.js
:
require("@klaytn/hardhat-utils");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "@klaytn/hardhat-utils";
Required plugins
This plugin is dependent on other plugins. Make sure to require or import them in your hardhat.config.js
.
Tasks
TBD
Configuration
TBD
Usage
hh abi Counter
hh abi Counter --json
hh accounts
hh accounts --from 2 --json
hh addr
hh addr Counter
hh call Counter number
hh call Counter number --to 0xaddr
hh send Counter setNumber 123
hh send Counter setNumber 123 --to 0xaddr
hh send Counter setNumber 123 --from 0xaddr --unsigned
hh smart-flatten Counter
hh mnemonic --index 2
hh keystore-decrypt k.json --password 1111
hh keystore-encrypt 0xprivatekey --password 1111 > k.json
hh keystore-kip3 v4.json v3.json
find ./keys/*.json -exec hh keystore-kip3 {} {}_v3.json \;
find ./keys/*.json -exec hh keystore-kip3 {} {} \;
hh explorer
hh explorer --restart
hh explorer --stop