-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathhardhat.config.js
More file actions
50 lines (49 loc) · 1.04 KB
/
hardhat.config.js
File metadata and controls
50 lines (49 loc) · 1.04 KB
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
require("@nomiclabs/hardhat-waffle");
require('dotenv').config()
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
// forking: {
// url: process.env.FORKING_URL_ARBITRUM
// },
// mining: {
// auto: true,
// interval: [10000, 20000]
// }
},
rinkeby: {
url: process.env.RINKEBY_URL,
accounts: [process.env.RINKEBY_PKEY]
},
mainnet: {
url: process.env.MAINNET_URL
},
arbitrum_rinkeby: {
url: 'https://rinkeby.arbitrum.io/rpc',
accounts: [process.env.RINKEBY_PKEY]
},
arbitrum: {
url: 'https://arb1.arbitrum.io/rpc',
accounts: [process.env.ARBITRUM_PKEY]
},
avalanche: {
url: 'https://api.avax.network/ext/bc/C/rpc',
accounts: [process.env.AVALANCHE_PKEY]
}
},
solidity: {
compilers: [{
version: "0.8.7",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}]
}
};