-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathhardhat.config.ts
60 lines (57 loc) · 1.22 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
require('babel-register')
require('babel-polyfill')
require('dotenv').config()
import '@nomiclabs/hardhat-truffle5'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-etherscan'
import 'decentraland-contract-plugins/dist/src/mana/tasks/load-mana'
import '@nomiclabs/hardhat-web3'
import { getDeployParams } from './scripts/utils'
module.exports = {
defaultNetwork: 'hardhat',
solidity: {
compilers: [
{
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
{
version: '0.8.10',
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
],
},
networks: {
hardhat: {
blockGasLimit: 10000000,
gas: 10000000,
},
local: {
url: 'http://127.0.0.1:8545',
blockGasLimit: 10000000,
gas: 10000000,
network_id: '*', // eslint-disable-line camelcase
},
deploy: getDeployParams(),
},
gasReporter: {
chainId: 1,
enabled: !!process.env.REPORT_GAS === true,
currency: 'USD',
gasPrice: 21,
showTimeSpent: true,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
}