-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.js
64 lines (59 loc) · 1.49 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
require("@nomicfoundation/hardhat-toolbox")
require("@nomicfoundation/hardhat-foundry")
// require("@nomicfoundation/hardhat-ethers")
require("dotenv").config()
const {
ALCHEMY_MAINNET_API,
ARBITRUM_MAINNET_API,
BOT_PRIVATE_KEY,
ETHERSCAN_API_KEY,
ARBSCAN_API_KEY,
} = process.env
module.exports = {
networks: {
hardhat: {
forking: {
url: ALCHEMY_MAINNET_API,
blockNumber: 19709300,
gasLimit: 12000000,
},
},
localhost: {
url: "http://localhost:8545",
chainId: 31337,
},
mainnet: {
url: ALCHEMY_MAINNET_API,
chainId: 1,
accounts: BOT_PRIVATE_KEY ? [BOT_PRIVATE_KEY] : [],
blockConfirmations: 6,
},
arbitrum: {
url: ARBITRUM_MAINNET_API,
chainId: 42161,
accounts: BOT_PRIVATE_KEY ? [BOT_PRIVATE_KEY] : [],
blockConfirmations: 6,
ignition: {
requiredConfirmations: 6,
},
},
"base-mainnet": {
url: "https://mainnet.base.org",
accounts: BOT_PRIVATE_KEY ? [BOT_PRIVATE_KEY] : [],
chainId: 8453,
blockConfirmations: 6,
},
},
solidity: "0.7.6",
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
namedAccounts: {
deployer: {
default: 0,
},
},
mocha: {
timeout: 120000,
},
}