1
1
import * as dotenv from 'dotenv'
2
2
import { Wallet } from 'ethers'
3
- import { BuidlerConfig , task , usePlugin } from '@nomiclabs/buidler/config'
3
+ import { task , usePlugin } from '@nomiclabs/buidler/config'
4
4
5
5
import { cliOpts } from './scripts/cli/constants'
6
6
import { migrate } from './scripts/cli/commands/migrate'
@@ -13,6 +13,7 @@ dotenv.config()
13
13
usePlugin ( '@nomiclabs/buidler-ethers' )
14
14
usePlugin ( '@nomiclabs/buidler-etherscan' )
15
15
usePlugin ( '@nomiclabs/buidler-waffle' )
16
+ usePlugin ( 'buidler-gas-reporter' )
16
17
usePlugin ( 'solidity-coverage' )
17
18
18
19
// Helpers
@@ -52,7 +53,7 @@ task('verify', 'Verify contracts in Etherscan')
52
53
53
54
// Config - Go to https://buidler.dev/config/ to learn more
54
55
55
- const config : BuidlerConfig = {
56
+ const config = {
56
57
paths : {
57
58
sources : './contracts' ,
58
59
tests : './test' ,
@@ -68,7 +69,7 @@ const config: BuidlerConfig = {
68
69
defaultNetwork : 'buidlerevm' ,
69
70
networks : {
70
71
buidlerevm : {
71
- chainId : 31337 ,
72
+ chainId : 1337 ,
72
73
loggingEnabled : false ,
73
74
gas : 8000000 ,
74
75
gasPrice : 'auto' ,
@@ -134,6 +135,11 @@ const config: BuidlerConfig = {
134
135
url : 'https://api-kovan.etherscan.io/api' ,
135
136
apiKey : process . env . ETHERSCAN_API_KEY ,
136
137
} ,
138
+ gasReporter : {
139
+ currency : 'USD' ,
140
+ enabled : process . env . REPORT_GAS ? true : false ,
141
+ outputFile : './gas-report.txt' ,
142
+ } ,
137
143
}
138
144
139
145
export default config
0 commit comments