forked from neptune-mutual-blue/protocol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
77 lines (74 loc) · 1.63 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
require('hardhat-contract-sizer')
require('@nomiclabs/hardhat-waffle')
require('solidity-coverage')
require('hardhat-gas-reporter')
require('@nomiclabs/hardhat-etherscan')
require('dotenv').config()
const GWEI = 1000000000
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
gasPrice: 50 * GWEI,
blockGasLimit: 20000000 // 20M
},
mumbai: {
url: 'https://rpc-mumbai.maticvigil.com',
chainId: 80001,
accounts: [process.env.PRIVATE_KEY],
gas: 'auto',
explorer: 'https://mumbai.polygonscan.com'
},
fuji: {
url: 'https://api.avax-test.network/ext/bc/C/rpc',
chainId: 43113,
accounts: [process.env.PRIVATE_KEY],
gas: 'auto',
explorer: 'https://testnet.snowtrace.io'
},
local: {
url: 'http://localhost:8545/',
chainId: 1337,
accounts: [process.env.PRIVATE_KEY]
}
},
solidity: {
version: '0.8.17',
settings: {
optimizer: {
enabled: true,
runs: 999_999
}
}
},
mocha: {
timeout: 20000
},
gasReporter: {
currency: 'ETH',
gasPrice: 21
},
contractSizer: {
alphaSort: false,
runOnCompile: true,
disambiguatePaths: false
},
etherscan: {
apiKey: process.env.SNOWTRACE_API_KEY,
apiKeyAll: {
mainnet: process.env.ETHERSCAN_API_KEY,
mumbai: process.env.POLYGONSCAN_API_KEY,
fuji: process.env.SNOWTRACE_API_KEY
}
},
paths: {
tests: './test',
sources: './contracts',
cache: './cache_hardhat',
artifacts: './artifacts'
}
}
module.exports = config