-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
88 lines (86 loc) · 1.93 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
const environments = require('./environments');
require("@nomicfoundation/hardhat-verify");
require("@nomiclabs/hardhat-waffle");
require('hardhat-contract-sizer');
require("hardhat-gas-reporter");
require("solidity-coverage");
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
initialBaseFeePerGas: 0
},
"eth-main": {
gas: "auto",
url: environments.network['eth-main'].txNode,
accounts: {
mnemonic: environments.network['eth-main'].mnemonic
}
},
"eth-test": {
gas: "auto",
url: environments.network['eth-test'].txNode,
accounts: {
mnemonic: environments.network['eth-test'].mnemonic
}
},
"poly-main": {
gas: "auto",
url: environments.network['poly-main'].txNode,
accounts: {
mnemonic: environments.network['poly-main'].mnemonic
}
},
"poly-test": {
gas: "auto",
url: environments.network['poly-test'].txNode,
accounts: {
mnemonic: environments.network['poly-test'].mnemonic
}
}
},
etherscan: {
apiKey: {
"poly-test": environments.apiKey['block_explorer']["poly-test"]
},
customChains: [
{
network: "poly-test",
chainId: 80002,
urls: {
apiURL: "https://api-amoy.polygonscan.com/api",
browserURL: "https://amoy.polygonscan.com"
}
}
]
},
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: false,
runs: 200
}
}
},
contractSizer: {
alphaSort: true,
disambiguatePaths: true,
runOnCompile: false,
strict: false
},
gasReporter: {
currency: 'USD',
enabled: true,
gasPrice: 170,
coinmarketcap: environments.apiKey.coinmarketcap,
showTimeSpent: true,
showMethodSig: false
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
}
};