-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
226 lines (221 loc) · 6.24 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
require("@nomicfoundation/hardhat-toolbox");
//require("@nomiclabs/hardhat-waffle");
// require('@nomiclabs/hardhat-ethers');
//require("@nomiclabs/hardhat-etherscan");
//require("@openzeppelin/hardhat-upgrades");
//require('@nomicfoundation/hardhat-chai-matchers')
require("@nomicfoundation/hardhat-verify");
require('dotenv').config()
const mnemonic = process.env.MNEMONIC;
const TESTNET_ACCOUNT = process.env.TESTNET_ACCOUNT;
const MAINNET_ACCOUNT = process.env.MAINNET_ACCOUNT;
const MULTICHAIN_DEPLOYER = process.env.AJIRA_PAY_MULTICHAIN_DEPLOYER
const BSCSCAN_API_KEY = process.env.BSCSCAN_API_KEY
const POLYGONSCAN_API_KEY = process.env.POLYGONSCAN_API_KEY
const ARBISCAN_API_KEY = process.env.ARBISCAN_API_KEY
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY
const INFURA_API_KEY = process.env.INFURA_API_KEY_V2
const TESTNET_ACCOUNT_V2 = process.env.TESTNET_ACCOUNT_V2
const KAVA_DEPLOYER = process.env.KAVA_DEPLOYER
const CELOSCAN_API_KEY = process.env.CELOSCAN_API_KEY
const LINEASCAN_API_KEY = process.env.LINEASCAN_API_KEY
const BASESCAN_API_KEY = process.env.BASESCAN_API_KEY
const OPTIMISTIC_ETHERSCAN_API_KEY = process.env.OPTIMISTIC_ETHERSCAN_API_KEY
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
sourcify: {
enabled: true
},
solidity: {
version: "0.5.17",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
localhost: {
url: "http://127.0.0.1:8545"
},
hardhat: {
},
base: {
chainId: 8453,
url: `https://mainnet.base.org`,
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true,
//gasPrice: 1000000000
},
baseSepolia: {
url: 'https://sepolia.base.org',
accounts: [KAVA_DEPLOYER],
gasPrice: 1000000000,
},
bscTestnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
chainId: 97,
accounts: [MULTICHAIN_DEPLOYER],
allowUnlimitedContractSize: true
},
mainnet:{
chainId: 1,
url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,
accounts: [MULTICHAIN_DEPLOYER],
allowUnlimitedContractSize: true
},
bsc: {
url: "https://bsc-dataseed.binance.org/",
chainId: 56,
networkCheckTimeout: 500000000000,
accounts: [KAVA_DEPLOYER],
},
polygon: {
chainId: 137,
url: 'https://polygon-rpc.com/',
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true
},
kava:{
chainId: 2222,
url: 'https://evm.kava.io',
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true
},
kavaTestnet:{
chainId: 2221,
url: 'https://evm.testnet.kava.io',
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true
},
arbitrumOne:{
chainId: 42161,
url: `https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}`,
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true
},
celo: {
url: "https://forno.celo.org",
accounts: [KAVA_DEPLOYER],
chainId: 42220
// accounts: {
// accounts: [KAVA_DEPLOYER],
// //path: "m/44'/52752'/0'/0"
// },
// chainId: 42220
},
alfajores: {
url: "https://alfajores-forno.celo-testnet.org",
accounts: [KAVA_DEPLOYER],
chainId: 44787,
// accounts: {
// accounts: [KAVA_DEPLOYER],
// //path: "m/44'/52752'/0'/0"
// chainId: 44787
},
linea_testnet: {
url: `https://linea-goerli.infura.io/v3/${INFURA_API_KEY}`,
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true,
chainId: 59140
},
linea_mainnet: {
url: `https://linea-mainnet.infura.io/v3/${INFURA_API_KEY}`,
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true,
chainId: 59144
},
optimism: {
url: `https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}`,//"https://endpoints.omniatech.io/v1/op/mainnet/public",
accounts: [KAVA_DEPLOYER],
allowUnlimitedContractSize: true,
chainId: 10
},
},
etherscan: {
apiKey: {
mainnet: ETHERSCAN_API_KEY,
bscTestnet: BSCSCAN_API_KEY,
bsc: BSCSCAN_API_KEY,
kava: ETHERSCAN_API_KEY,
kavaTestnet: ETHERSCAN_API_KEY,
polygon: POLYGONSCAN_API_KEY,
arbitrumOne: ARBISCAN_API_KEY,
alfajores: CELOSCAN_API_KEY,
celo: CELOSCAN_API_KEY,
linea_mainnet: LINEASCAN_API_KEY,
linea_testnet: LINEASCAN_API_KEY,
celo: CELOSCAN_API_KEY,
base: BASESCAN_API_KEY,
baseSepolia:BASESCAN_API_KEY,
optimism: OPTIMISTIC_ETHERSCAN_API_KEY
},
customChains: [
{
network: 'kava',
chainId: 2222,
urls: {
apiURL: 'https://explorer.kava.io/api',
browserURL: 'https://explorer.kava.io',
},
},
{
network: 'kavaTestnet',
chainId: 2221,
urls: {
apiURL: 'https://testnet.kavascan.com/api',
browserURL: 'https://testnet.kavascan.com/'
},
},
{
network: "linea_mainnet",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build/"
}
},
{
network: "linea_testnet",
chainId: 59140,
urls: {
apiURL: "https://api-testnet.lineascan.build/api",
browserURL: "https://goerli.lineascan.build/address"
}
},
{
network: "celo",
chainId: 42220,
urls: {
apiURL: "https://api.celoscan.io/api",//"https://explorer.celo.org/mainnet/api", //
browserURL: "https://celoscan.io/"
}
},
{
network: "base",
chainId: 8453,
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org"
}
},
{
network: "baseSepolia",//"base-sepolia",
chainId: 84532,
urls: {
apiURL: "https://api-sepolia.basescan.org/api",
browserURL: "https://sepolia.basescan.org"
}
},
{
network: "optimism",
chainId: 10,
urls: {
apiURL: "https://api-optimistic.etherscan.io/api",
browserURL: "https://optimistic.etherscan.io/"
}
}
],
}
};