-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
48 lines (45 loc) · 1011 Bytes
/
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
require('dotenv').config();
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-ethers');
require('@openzeppelin/hardhat-upgrades');
task('accounts', 'Prints the list of accounts', async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
module.exports = {
solidity: {
version: '0.8.3',
settings: {
optimizer: {
enabled: true,
runs: 1
}
}
},
defaultNetwork: 'localhost',
networks: {
localhost: {
url: 'http://127.0.0.1:8545',
gasLimit: 6000000000,
defaultBalanceEther: '1000'
},
bsctestnet: {
url: `https://data-seed-prebsc-1-s1.binance.org:8545/`,
accounts: [],
gasLimit: 6000000000
},
bscmainnet: {
url: 'https://bsc-dataseed4.ninicoin.io/',
chainId: 56,
accounts: [],
gasLimit: 6000000000
}
},
gas: 40000000,
gasPrice: 10000000000,
mocha: {
timeout: 10000000
}
};