-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
63 lines (58 loc) · 1.31 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
import { HardhatUserConfig } from 'hardhat/config'
import { networkConfig } from './utils/config-loader'
import '@nomiclabs/hardhat-truffle5'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-web3'
import '@nomiclabs/hardhat-etherscan'
import "@tenderly/hardhat-tenderly"
import 'hardhat-gas-reporter'
import 'solidity-coverage'
const ganacheNetwork = {
url: 'http://127.0.0.1:8545',
blockGasLimit: 6000000000
}
const config: HardhatUserConfig = {
solidity: {
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 999999,
details: {
yul: true
}
}
}
},
paths: {
root: 'src',
tests: '../tests'
},
networks: {
mainnet: networkConfig('mainnet'),
rinkeby: networkConfig('rinkeby'),
ganache: ganacheNetwork,
coverage: {
url: 'http://localhost:8555'
}
},
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: "project/name",
username: "username",
}
}
export default config