-
Notifications
You must be signed in to change notification settings - Fork 50
/
hardhat.config.ts
72 lines (66 loc) · 1.85 KB
/
hardhat.config.ts
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
import { HardhatUserConfig, task } from 'hardhat/config'
import { networkConfig } from './utils/config-loader'
import '@nomicfoundation/hardhat-ethers'
import '@nomicfoundation/hardhat-verify'
import '@nomiclabs/hardhat-truffle5'
import '@nomiclabs/hardhat-web3'
import '@tenderly/hardhat-tenderly'
import 'hardhat-gas-reporter'
import 'solidity-coverage'
import './utils/benchmarker'
const ganacheNetwork = {
url: 'http://127.0.0.1:8545',
blockGasLimit: 6000000000
}
const config: HardhatUserConfig = {
solidity: {
version: '0.8.18',
settings: {
optimizer: {
enabled: true,
runs: 500000
}
}
},
networks: {
mainnet: networkConfig('mainnet'),
ropsten: networkConfig('ropsten'),
kovan: networkConfig('kovan'),
goerli: networkConfig('goerli'),
polygon: networkConfig('polygon'),
polygonZkevm: networkConfig('polygon-zkevm'),
mumbai: networkConfig('mumbai'),
arbitrum: networkConfig('arbitrum'),
arbitrumGoerli: networkConfig('arbitrum-goerli'),
arbitrumNova: networkConfig('arbitrum-nova'),
optimism: networkConfig('optimism'),
bnb: networkConfig('bnb'),
bnbTestnet: networkConfig('bnb-testnet'),
gnosis: networkConfig('gnosis'),
avalanche: networkConfig('avalanche'),
avalancheFuji: networkConfig('avalanche-fuji'),
ganache: ganacheNetwork,
hardhat: {
blockGasLimit: 60000000
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: networkConfig('mainnet').etherscan
},
mocha: {
timeout: process.env.COVERAGE ? 15 * 60 * 1000 : 30 * 1000
},
gasReporter: {
enabled: !!process.env.REPORT_GAS === true,
currency: 'USD',
gasPrice: 21,
showTimeSpent: true
},
tenderly: {
project: 'horizon/sequence-dev-1',
username: 'Agusx1211-horizon'
}
}
export default config