@etherscan-npm/cli 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -203,11 +203,11 @@ Use `--file` for Solidity, Abstract zkSync-stack, or Vyper source payloads. Styl
|
|
|
203
203
|
etherscan contractverification verify 0xYourContract --file input.json --codeformat solidity-standard-json-input --contractname contracts/Verified.sol:Verified --compilerversion v0.8.24+commit.e11b9ed9
|
|
204
204
|
|
|
205
205
|
# Abstract uses the zkSync compiler stack (Abstract Mainnet and Sepolia only)
|
|
206
|
-
etherscan --chain
|
|
206
|
+
etherscan --chain 2741 contractverification verify-zksync 0xYourContract --file input.json --codeformat solidity-standard-json-input --contractname contracts/Verified.sol:Verified --compilerversion v0.8.24+commit.e11b9ed9 --zksolc-version v1.5.7
|
|
207
207
|
|
|
208
208
|
# Vyper JSON verification, and Stylus repository verification (Arbitrum One and Sepolia only)
|
|
209
209
|
etherscan contractverification verify-vyper 0xYourContract --file input.json --contractname contracts/Verified.vy:Verified --compilerversion vyper:0.4.0 --optimization-used 0
|
|
210
|
-
etherscan --chain
|
|
210
|
+
etherscan --chain 42161 contractverification verify-stylus 0xYourContract --source-code https://github.com/example/project --contractname project --compilerversion stylus:0.5.3 --license-type 3
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
Each submission returns a GUID. Poll it with `check-status` for source verification, or `check-proxy` for a proxy submission:
|
|
@@ -222,14 +222,16 @@ Constructor arguments may be supplied as bare ABI-encoded hex or with a `0x` pre
|
|
|
222
222
|
### Switch chains
|
|
223
223
|
|
|
224
224
|
```sh
|
|
225
|
-
#
|
|
226
|
-
etherscan --chain
|
|
225
|
+
# Numeric chain IDs are canonical
|
|
226
|
+
etherscan --chain 8453 gastracker oracle
|
|
227
227
|
etherscan --chain 8453 account balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
|
|
228
228
|
|
|
229
|
-
# See every chain
|
|
229
|
+
# See every chain currently returned by the Etherscan chain-list API
|
|
230
230
|
etherscan chains
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
+
`etherscan chains` and `etherscan tui` refresh the live chain list when they start. Ordinary API commands bind numeric chain IDs directly without an additional chain-list request. Names such as `base` and `matic` remain locally supported for compatibility, but newly added chains must be addressed by ID.
|
|
234
|
+
|
|
233
235
|
### Build scripts and agent workflows
|
|
234
236
|
|
|
235
237
|
```sh
|
|
@@ -278,7 +280,7 @@ etherscan contractverification verify --help
|
|
|
278
280
|
| `etherscan update` | Update a Homebrew or installer-script installation |
|
|
279
281
|
| `etherscan whoami` | Show the active chain and masked API key |
|
|
280
282
|
| `etherscan config` | Get, list, or set CLI configuration |
|
|
281
|
-
| `etherscan chains` | List chains
|
|
283
|
+
| `etherscan chains` | List chains currently supported by the Etherscan API |
|
|
282
284
|
| `etherscan completion` | Generate shell completion |
|
|
283
285
|
| `etherscan version` | Print the CLI version |
|
|
284
286
|
| `etherscan --help` | Show command usage and available options |
|
|
@@ -443,7 +445,7 @@ Manage non-secret defaults with:
|
|
|
443
445
|
|
|
444
446
|
```sh
|
|
445
447
|
etherscan config list
|
|
446
|
-
etherscan config set default_chain=
|
|
448
|
+
etherscan config set default_chain=8453
|
|
447
449
|
etherscan config set default_output=table
|
|
448
450
|
```
|
|
449
451
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etherscan-npm/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Etherscan CLI — the official command-line interface (CLI) for the Etherscan API V2. Query EVM blockchain data, inspect transactions, and verify smart contracts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"etherscan",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"LICENSE"
|
|
52
52
|
],
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@etherscan-npm/cli-darwin-arm64": "1.0.
|
|
55
|
-
"@etherscan-npm/cli-darwin-x64": "1.0.
|
|
56
|
-
"@etherscan-npm/cli-linux-arm64": "1.0.
|
|
57
|
-
"@etherscan-npm/cli-linux-x64": "1.0.
|
|
58
|
-
"@etherscan-npm/cli-win32-arm64": "1.0.
|
|
59
|
-
"@etherscan-npm/cli-win32-x64": "1.0.
|
|
54
|
+
"@etherscan-npm/cli-darwin-arm64": "1.0.8",
|
|
55
|
+
"@etherscan-npm/cli-darwin-x64": "1.0.8",
|
|
56
|
+
"@etherscan-npm/cli-linux-arm64": "1.0.8",
|
|
57
|
+
"@etherscan-npm/cli-linux-x64": "1.0.8",
|
|
58
|
+
"@etherscan-npm/cli-win32-arm64": "1.0.8",
|
|
59
|
+
"@etherscan-npm/cli-win32-x64": "1.0.8"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=18"
|