-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathhardhat.config.js
67 lines (66 loc) · 1.84 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
require('@nomiclabs/hardhat-ethers');
require('@nomiclabs/hardhat-etherscan');
require('@nomiclabs/hardhat-truffle5');
require('@nomiclabs/hardhat-web3');
require('solidity-coverage');
require('./tasks/deploy-contract');
require('./tasks/deploy-proxy');
module.exports = {
networks: {
hardhat: {
accounts: {
mnemonic:
process.env.HARDHAT_MNEMONIC ||
'absorb surface step floor dance acid run math mean word taxi bottom',
hardfork: 'istanbul',
accountsBalance: '1000000000000000000000000000',
},
},
ropsten: {
url: process.env.ROPSTEN_ENDPOINT || 'INVALIDENDPOINT',
accounts: process.env.ROPSTEN_MNEMONIC
? {
mnemonic: process.env.ROPSTEN_MNEMONIC,
}
: undefined,
gas: parseInt(process.env.ROPSTEN_GAS) || 'auto',
gasPrice: parseInt(process.env.ROPSTEN_GASPRICE) || 'auto',
gasMultiplier: parseFloat(process.env.ROPSTEN_GASMULTIPLIER) || 1,
},
mainnet: {
url: process.env.MAINNET_ENDPOINT || 'INVALIDENDPOINT',
accounts: process.env.MAINNET_MNEMONIC
? {
mnemonic: process.env.MAINNET_MNEMONIC,
}
: undefined,
gas: parseInt(process.env.MAINNET_GAS) || 'auto',
gasPrice: parseInt(process.env.MAINNET_GASPRICE) || 'auto',
gasMultiplier: parseFloat(process.env.MAINNET_GASMULTIPLIER) || 1,
},
},
solidity: {
version: '0.6.11',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: 'istanbul',
outputSelection: {
'*': {
'*': [
'abi',
'evm.bytecode',
'evm.deployedBytecode',
'evm.methodIdentifiers',
],
'': ['ast'],
},
},
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_APIKEY || 'DUMMY',
},
};