-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
61 lines (59 loc) · 1.31 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
import '@nomiclabs/hardhat-waffle';
import 'hardhat-gas-reporter';
import '@nomiclabs/hardhat-etherscan';
import { COINMARKETCAP_API, mainnet, testnet, PRIVATE_KEY } from './constants';
const config = {
networks: {
cronosTestnet: {
url: testnet.CRONOS_TESTNET_RPC,
chainId: 338,
accounts: [PRIVATE_KEY],
gasPrice: 'auto',
},
cronos: {
url: mainnet.CRONOS_MAINNET_RPC,
chainId: 25,
accounts: [PRIVATE_KEY],
gasPrice: 'auto',
},
},
etherscan: {
apiKey: {
cronosTestnet: testnet.EXPLORER_TESTNET_API_KEY,
cronos: mainnet.EXPLORER_MAINNET_API_KEY,
},
customChains: [
{
network: 'cronos',
chainId: 25,
urls: {
apiURL: mainnet.EXPLORER_MAINNET_API_URL,
browserURL: mainnet.EXPLORER_MAINNET_URL,
},
},
{
network: 'cronosTestnet',
chainId: 338,
urls: {
apiURL: testnet.EXPLORER_TESTNET_API_URL,
browserURL: testnet.EXPLORER_TESTNET_URL,
},
},
],
},
solidity: {
version: '0.8.3',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
gasReporter: {
currency: 'USD',
gasPrice: 5000, // In GWei
coinmarketcap: COINMARKETCAP_API,
},
};
export default config;