Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE2_FACTORY=0x4e59b44847b379578588920cA78FbF26c0B4956C
# to use the 'custom' hardhat network, set the following variables
CUSTOM_RPC_URL="http://127.0.0.1:8545"
CUSTOM_PRIVKEY="0x"
CUSTOM_ETHERSCAN_API_KEY=
ETHERSCAN_API_KEY=
CUSTOM_CHAINID=1337
CUSTOM_ETHERSCAN_API_URL=
CUSTOM_ETHERSCAN_BROWSER_URL=
10 changes: 2 additions & 8 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,11 @@ The script will output all deployed addresses and the block at which the transac
If you choose to verify the deployed contracts, you'll also need to set the key to use Etherscan's API (or the appropriate network's block explorer).

```shell
# For deployments on an L1
# This key will be used against Etherscan's API (v2) on all supported networks,
# or against the API URL defined in `CUSTOM_ETHERSCAN_API_URL` when using a custom network
ETHERSCAN_API_KEY=

# For deployments on Arbitrum One and Arbitrum Sepolia
ARBISCAN_API_KEY=

# For deployments on Base or Base Sepolia
BASESCAN_API_KEY=

# For deployments on other networks
CUSTOM_ETHERSCAN_API_KEY=
CUSTOM_CHAINID=
CUSTOM_ETHERSCAN_API_URL=
CUSTOM_ETHERSCAN_BROWSER_URL=
Expand Down
24 changes: 5 additions & 19 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,34 +188,20 @@ module.exports = {
},
},
etherscan: {
apiKey: {
mainnet: process.env['ETHERSCAN_API_KEY'],
sepolia: process.env['ETHERSCAN_API_KEY'],
holesky: process.env['ETHERSCAN_API_KEY'],
arbitrumOne: process.env['ARBISCAN_API_KEY'],
nova: process.env['NOVA_ARBISCAN_API_KEY'],
arbSepolia: process.env['ARBISCAN_API_KEY'],
base: process.env['BASESCAN_API_KEY'],
baseSepolia: process.env['BASESCAN_API_KEY'],
custom: process.env['CUSTOM_ETHERSCAN_API_KEY'],
apiKey: process.env['ETHERSCAN_API_KEY'],
sourcify: {
// Doesn't need an API key
enabled: true
},
customChains: [
{
network: 'nova',
chainId: 42170,
urls: {
apiURL: 'https://api-nova.arbiscan.io/api',
apiURL: 'https://api.etherscan.io/v2/api',
browserURL: 'https://nova.arbiscan.io/',
},
},
{
network: 'arbSepolia',
chainId: 421614,
urls: {
apiURL: 'https://api-sepolia.arbiscan.io/api',
browserURL: 'https://sepolia.arbiscan.io/',
},
},
{
network: 'custom',
chainId: process.env['CUSTOM_CHAINID'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@arbitrum/sdk": "^3.7.3",
"@ethersproject/providers": "^5.8.0",
"@nomicfoundation/hardhat-chai-matchers": "^1.0.6",
"@nomicfoundation/hardhat-verify": "^2.0.13",
"@nomicfoundation/hardhat-verify": "^2.1.3",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@typechain/ethers-v5": "^10.2.1",
"@typechain/hardhat": "^6.1.6",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@
deep-eql "^4.0.1"
ordinal "^1.0.3"

"@nomicfoundation/hardhat-verify@^2.0.13":
version "2.0.13"
resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.0.13.tgz#41691adc32e01dc5cf6b725615f64958fba2100b"
integrity sha512-i57GX1sC0kYGyRVnbQrjjyBTpWTKgrvKC+jH8CMKV6gHp959Upb8lKaZ58WRHIU0espkulTxLnacYeUDirwJ2g==
"@nomicfoundation/hardhat-verify@^2.1.3":
version "2.1.3"
resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.1.3.tgz#f61a192a792b39f9978cef1450047deaff3ea052"
integrity sha512-danbGjPp2WBhLkJdQy9/ARM3WQIK+7vwzE0urNem1qZJjh9f54Kf5f1xuQv8DvqewUAkuPxVt/7q4Grz5WjqSg==
dependencies:
"@ethersproject/abi" "^5.1.2"
"@ethersproject/address" "^5.0.2"
Expand Down
Loading