-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathhardhat.config.js
85 lines (81 loc) · 1.68 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
require("@nomiclabs/hardhat-waffle");
require('hardhat-gas-reporter')
require('hardhat-spdx-license-identifier')
require('hardhat-deploy')
require('hardhat-abi-exporter')
require('@nomiclabs/hardhat-ethers')
require('dotenv/config')
require('@nomiclabs/hardhat-etherscan')
require('solidity-coverage')
require('./tasks')
const { PRIVATE_KEY, INFURA_KEY} = process.env;
let accounts = [];
accounts.push(PRIVATE_KEY);
module.exports = {
defaultNetwork: 'hardhat',
gasReporter: {
enabled: false,
},
abiExporter: {
path: './abi',
clear: false,
flat: true
},
networks: {
hardhat: {
forking: {
enabled: false,
url: `https://rpc.maplabs.io/`,
//url: `https://data-seed-prebsc-1-s1.binance.org:8545`
//url: `https://bsc-dataseed.eme-node.com`,
//url: `https://bsc-dataseed2.defibit.io/`,
},
live: true,
saveDeployments: false,
tags: ['local'],
timeout: 2000000
},
Map: {
url: `https://rpc.maplabs.io/`,
chainId : 22776,
accounts: accounts
},
Makalu: {
url: `https://testnet-rpc.maplabs.io/`,
chainId : 212,
accounts: accounts
}
},
solidity: {
compilers: [
{
version: '0.8.12',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
{
version: '0.4.22',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
spdxLicenseIdentifier: {
overwrite: true,
runOnCompile: false
},
mocha: {
timeout: 2000000
},
etherscan: {
apiKey: process.env.BSC_SCAN_KEY
}
}