@@ -51,6 +51,48 @@ This plugin is dependent on other plugins. Make sure to require or import them i
51
51
52
52
Type `hh <task name> --help` for detailed help. Below paragraphs outlines notable use cases.
53
53
54
+ ### Account related tasks
55
+
56
+ #### `hh accounts`
57
+
58
+ Print account addresses and balances. Useful for checking the curent hardhat network.
59
+
60
+ ```
61
+ hh accounts
62
+ ```
63
+ ```
64
+ address balance
65
+ 0 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 10000000.0
66
+ 1 0x70997970C51812dc3A010C7d01b50e0d17dc79C8 10000000.0
67
+ 2 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC 10000000.0
68
+ 3 0x90F79bf6EB2c4f870365E785982E1f101E93b906 10000000.0
69
+ 4 0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65 10000000.0
70
+ 5 0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc 10000000.0
71
+ 6 0x976EA74026E726554dB657fA54763abd0C3a0aa9 10000000.0
72
+ 7 0x14dC79964da2C08b23698B3D3cc7Ca32193d9955 10000000.0
73
+ 8 0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f 10000000.0
74
+ 9 0xa0Ee7A142d267C1f36714E4a8F75612F20a79720 10000000.0
75
+ ```
76
+
77
+ #### `hh decrypt-keystore`
78
+
79
+ Decrypt JSON keystore file to print the address and private key.
80
+ Also accepts the [KIP-3](https://kips.klaytn.foundation/KIPs/kip-3) (Klaytn keystore v4) in which case
81
+ multiple addresses and private keys are printed.
82
+
83
+ ```
84
+ hh decrypt-keystore keystore.json --password "mypass"
85
+ ```
86
+ ```
87
+ address private key
88
+ 0 0x0cc57a3c4E276A37AB0A98ba6899CAf6037996fB 278c3d035328daf04ab2597da96dd2d8868fd61a8837030f7d8a85f27b7f1bad
89
+ 1 0x1F2f81B67d1A718c09221eBeb3F12a7192389663 a06d13800719307ea7e2503ea441c2ea49279d0d600a2eec2887b50928869676
90
+ 2 0xF5D27139C99621859e8D1b0f6Be8BF3b8dAca609 c32f4007ffad303db99dee0d79a720e1d70c4b2babf8e33cb28170a16bac467d
91
+ 3 0x7E39a9097C975E6A63f1e0ade4b7312cF2854F9c c274d13302891d0d91a60891a48fde8c2860018f8dcb6293dcc0b28a238590b0
92
+ 4 0x09859661f2574E80C5a51EA3e0E29cA19D21f513 83c127e5207b70086a702c93f1c9a041f15ce49ee5183ce848f35c64de196eff
93
+ 5 0x3AcFe8529FD4C2028f8A26805F9Bf9bAB2cc41eF 48f97204ac4886dfbd819ada04ea31a730c6fc43fcb08900566360ee7402f93b
94
+ ```
95
+
54
96
### `abi`
55
97
56
98
Print ABI of a contract. See also: `call`, `docs`, `send`, `smart-flatten` and `upload-abi` .
@@ -61,13 +103,6 @@ You can choose output formats
61
103
- `hh abi` by default prints in human-readable string format.
62
104
- `hh abi --json` prints in JSON format to be used in other apps.
63
105
64
- ### `accounts`
65
-
66
- Print account address and balance. Useful for checking the curent hardhat network. See also: `faucet` and `mnemonic`
67
-
68
- - `hh accounts` prints the address and balance of the default accounts for current network.
69
- - `hh accounts --from 0` prints for one specific account. Can be address or index.
70
-
71
106
### `addr`
72
107
73
108
Print the address of deployed contracts. See also: `call`, `deploy`, `import` and `send`.
@@ -118,21 +153,6 @@ Import a deployment, i.e. address and ABI, of an existing contract. As a result,
118
153
- `hh import Counter <addr>` saves the contract address and ABI
119
154
- `hh import Counter <addr> <deployTxHash>` saves the contract address, ABI and deploy transaction receipt.
120
155
121
- ### `keystore-decrypt`
122
-
123
- Decrypt a JSON keystore to get private key. See also: `keystore-encrypt`, `keystore-kip3`, and `mnemonic`.
124
- - `hh keystore-decrypt keystore.json --password 1234` prints the private key.
125
-
126
- ### `keystore-encrypt`
127
-
128
- Encrypt a private key to a keystore.json. See also: `keystore-decrypt` and `mnemonic`.
129
- - `hh keystore-encrypt <privHex> --password 1234` prints a JSON keystore v3.
130
-
131
- ### `keystore-kip3`
132
-
133
- Convert [KIP-3 v4 keystore](https://github.com/klaytn/kips/blob/main/KIPs/kip-3.md) to v3 keystore. See also: `keystore-decrypt`.
134
- - `hh keystore-kip3 v4.json` prints a JSON keystore v4.
135
-
136
156
### `klaytn-node`
137
157
138
158
Launch a klaytn consensus node. See also: `deploy`.
0 commit comments