-
Notifications
You must be signed in to change notification settings - Fork 19
/
hardhat.config.ts
102 lines (96 loc) · 2.35 KB
/
hardhat.config.ts
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import '@nomicfoundation/hardhat-toolbox'
import '@nomicfoundation/hardhat-verify'
import 'hardhat-gas-reporter'
import dotenv from 'dotenv'
import { HttpNetworkUserConfig } from 'hardhat/types'
dotenv.config()
import "./tasks/deploy-mastercopies";
import "./tasks/deploy-mastercopy";
import "./tasks/extract-mastercopy";
import "./tasks/verify-mastercopies";
import "./tasks/verify-mastercopy";
const { INFURA_KEY, MNEMONIC, ETHERSCAN_API_KEY } = process.env
const sharedNetworkConfig: HttpNetworkUserConfig = {
accounts: {
mnemonic:
MNEMONIC ||
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat',
},
}
export default {
paths: {
artifacts: 'build/artifacts',
cache: 'build/cache',
sources: 'contracts',
},
solidity: {
compilers: [{ version: '0.8.20' }],
settings: {
optimizer: {
enabled: true,
runs: 100,
},
},
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
blockGasLimit: 100000000,
gas: 100000000,
},
mainnet: {
...sharedNetworkConfig,
url: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
},
gnosis: {
...sharedNetworkConfig,
url: 'https://rpc.gnosischain.com',
},
goerli: {
...sharedNetworkConfig,
url: `https://goerli.infura.io/v3/${INFURA_KEY}`,
},
mumbai: {
...sharedNetworkConfig,
url: `https://polygon-mumbai.infura.io/v3/${INFURA_KEY}`,
},
polygon: {
...sharedNetworkConfig,
url: `https://polygon-mainnet.infura.io/v3/${INFURA_KEY}`,
},
volta: {
...sharedNetworkConfig,
url: `https://volta-rpc.energyweb.org`,
},
bsc: {
...sharedNetworkConfig,
url: `https://bsc-dataseed.binance.org/`,
},
arbitrum: {
...sharedNetworkConfig,
url: `https://arb1.arbitrum.io/rpc`,
},
avalanche: {
...sharedNetworkConfig,
url: `https://api.avax.network/ext/bc/C/rpc`,
},
rinkeby: {
...sharedNetworkConfig,
url: `https://rinkeby.infura.io/v3/${INFURA_KEY}`,
},
matic: {
...sharedNetworkConfig,
url: 'https://rpc-mainnet.maticvigil.com',
},
sepolia: {
...sharedNetworkConfig,
url: `https://sepolia.infura.io/v3/${INFURA_KEY}`,
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
gasReporter: {
enabled: true,
},
}