forked from cd1m0/DelegatedTokenClaims
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
129 lines (128 loc) · 3.57 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
require("@nomicfoundation/hardhat-ethers");
require('dotenv').config();
require('@nomicfoundation/hardhat-chai-matchers');
require('@nomicfoundation/hardhat-verify');
module.exports = {
solidity: {
version: '0.8.24',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
gasReporter: {
currency: 'USD',
// coinmarketcap: process.env.COINMARKETCAP,
gasPriceApi: 'https://api.etherscan.io/api?module=proxy&action=eth_gasPrice',
gasPrice: 40,
},
networks: {
sepolia: {
url: process.env.SEPOLIA_URL,
accounts: [process.env.TEST_DEPLOYER_PRIVATE_KEY],
},
mainnet: {
url: process.env.MAINNET_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
arbitrumOne: {
url: process.env.ARBITRUM_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
polygon: {
url: process.env.POLYGON_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
gasPrice: 130000000000,
},
bsc: {
url: process.env.BSC_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
optimisticEthereum: {
url: process.env.OPTIMISM_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
base: {
url: process.env.BASE_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
gasPrice: 2000000000,
},
linea: {
url: process.env.LINEA_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
mode: {
url: process.env.MODE_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
zora: {
url: process.env.ZORA_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
iota: {
url: process.env.IOTA_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY, process.env.TOKEN_DEPLOYER],
},
},
etherscan: {
customChains: [
{
network: 'base',
chainId: 8453,
urls: {
apiURL: 'https://api.basescan.org/api',
browserURL: 'https://basescan.org/',
},
},
{
network: 'linea',
chainId: 59144,
urls: {
apiURL: 'https://api.lineascan.build/api',
browserURL: 'https://lineascan.build/'
}
},
{
network: 'mode',
chainId: 34443,
urls: {
apiURL: 'https://explorer.mode.network/api',
browserURL: 'https://explorer.mode.network/',
}
},
{
network: 'zora',
chainId: 7777777,
urls: {
apiURL: 'https://explorer.zora.energy/api',
browserURL: 'https://explorer.zora.energy',
},
},
{
network: 'iota',
chainId: 8822,
urls: {
apiURL: 'https://explorer.evm.iota.org/api',
browserURL: 'https://explorer.evm.iota.org/',
},
},
],
apiKey: {
sepolia: process.env.ETHERSCAN_APIKEY,
goerli: process.env.ETHERSCAN_APIKEY,
mainnet: process.env.ETHERSCAN_APIKEY,
arbitrumOne: process.env.ARBITRUM_APIKEY,
polygon: process.env.POLYGON_APIKEY,
bsc: process.env.BSC_APIKEY,
optimisticEthereum: process.env.OPTIMISM_APIKEY,
base: process.env.BASE_APIKEY,
linea: process.env.LINEA_APIKEY,
mode: process.env.MODE_APIKEY,
zora: process.env.ZORA_APIKEY,
iota: process.env.IOTA_APIKEY,
},
},
};