forked from 88mphapp/88mph-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.js
54 lines (51 loc) · 925 Bytes
/
buidler.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
usePlugin('@nomiclabs/buidler-truffle5')
usePlugin('solidity-coverage')
usePlugin('buidler-deploy')
let secret
try {
secret = require('./secret.json')
} catch {
secret = {
account: '',
mnemonic: ''
}
}
module.exports = {
solc: {
version: '0.5.17',
optimizer: {
enabled: true,
runs: 200
}
},
namedAccounts: {
deployer: {
default: 1
}
},
paths: {
sources: './contracts'
},
networks: {
mainnet: {
url: 'https://eth-mainnet.alchemyapi.io/v2/pvGDp1uf8J7QZ7MXpLhYs_SnMnsE0TY5',
chainId: 1,
from: secret.account,
accounts: {
mnemonic: secret.mnemonic
},
gas: 'auto',
gasPrice: 84.0000001e9
},
buidlerevm: {
blockGasLimit: 9950000,
gas: 'auto',
gasPrice: 'auto'
},
ganache: {
url: 'http://localhost:8545',
gas: 'auto',
gasPrice: 30.0000001e9
}
}
}