-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
95 lines (93 loc) · 1.82 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
require('@nomiclabs/hardhat-truffle5')
require('@nomiclabs/hardhat-vyper')
require('@nomiclabs/hardhat-web3')
require('hardhat-gas-reporter')
require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-etherscan')
require('hardhat-contract-sizer');
require('hardhat-abi-exporter');
require("solidity-coverage");
require('dotenv').config();
require('hardhat-prettier');
mainnet = process.env['mainnet']
ropsten = process.env['ropsten']
etherscanAPI = process.env['etherscan']
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
localhost: {
url: 'http://127.0.0.1:8545',
gas: 12000000,
blockGasLimit: 12000000
},
hardhat: {
forking: {
url: mainnet
},
gas: 12000000,
baseFeePerGas: "10000000000",
blockGasLimit: 0x1fffffffffffff,
allowUnlimitedContractSize: true,
timeout: 1800000,
},
mainnet: {
url: mainnet,
accounts: [
account,
bot
],
chainId: 1,
gas: 'auto',
gasPrice: 'auto',
timeout: 10000,
},
ropsten: {
url: ropsten,
accounts: [
account,
referal
],
chainId: 3,
gas: 'auto',
gasPrice: 'auto',
timeout: 10000,
},
},
mocha: {
useColors: true,
// reporter: 'eth-gas-reporter',
timeout: 6000000,
},
etherscan: {
apiKey:etherscanAPI
},
abiExporter: {
path: './data/abi',
clear: true,
flat: true,
spacing: 2
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
solidity: {
compilers: [
{
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}
},
]
},
vyper: {
version: '0.2.8',
},
}