-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
45 lines (42 loc) · 1.12 KB
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config();
require("@nomiclabs/hardhat-etherscan");
const {
MAIN_ACCOUNT_PRIVATE_KEY, TEST_ACCOUNT_PRIVATE_KEY, ARBISCAN_KEY,
ALCHEMY_ARBITRUM_KEY, ALCHEMY_ARBITRUM_SEPOLIA_KEY
} = process.env;
module.exports = {
solidity: "0.8.20",
networks: {
arbitrum: {
url: `https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_ARBITRUM_KEY}`,
accounts: [MAIN_ACCOUNT_PRIVATE_KEY]
},
arbitrum_sepolia: {
url: `https://arb-sepolia.g.alchemy.com/v2/${ALCHEMY_ARBITRUM_SEPOLIA_KEY}`,
accounts: [TEST_ACCOUNT_PRIVATE_KEY]
},
// hardhat: {
// forking: {
// url: `https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_ARBITRUM_KEY}`,
// blockNumber: 213854112
// }
// }
},
etherscan: {
apiKey: {
arbitrumOne: ARBISCAN_KEY,
arbitrumSepolia: ARBISCAN_KEY
},
customChains: [
{
network: "arbitrumSepolia",
chainId: 421614,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io/"
}
}
]
}
};