-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuidler.config.js
100 lines (95 loc) · 3.04 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
const {TASK_COMPILE_GET_COMPILER_INPUT} = require('@nomiclabs/buidler/builtin-tasks/task-names');
task(TASK_COMPILE_GET_COMPILER_INPUT).setAction(async (_, __, runSuper) => {
const input = await runSuper();
input.settings.metadata.useLiteralContent = false;
return input;
});
require('dotenv').config();
usePlugin('@nomiclabs/buidler-waffle');
usePlugin('@nomiclabs/buidler-etherscan');
usePlugin('buidler-gas-reporter');
usePlugin('solidity-coverage');
usePlugin('buidler-deploy');
const mnemonic = {
proxyAdmin: {
kovan: `${process.env.KOVAN_PROXY_MNEMONIC}`.replace(/_/g, ' '),
ropsten: `${process.env.ROPSTEN_PROXY_MNEMONIC}`.replace(/_/g, ' '),
mainnet: `${process.env.MAINNET_PROXY_MNEMONIC}`.replace(/_/g, ' '),
},
owner: {
kovan: `${process.env.KOVAN_OWNER_MNEMONIC}`.replace(/_/g, ' '),
ropsten: `${process.env.ROPSTEN_OWNER_MNEMONIC}`.replace(/_/g, ' '),
mainnet: `${process.env.MAINNET_OWNER_MNEMONIC}`.replace(/_/g, ' '),
}
};
module.exports = {
solc: {
version: '0.6.10',
optimizer: {
enabled: true,
runs: 200
},
evmVersion: 'istanbul'
},
paths: {
artifacts: './build',
deploy: './deploy',
deployments: './deployments'
},
networks: {
buidlerevm: {
blockGasLimit: 200000000,
allowUnlimitedContractSize: true,
gasPrice: 8e9
},
coverage: {
url: 'http://127.0.0.1:8555',
blockGasLimit: 200000000,
allowUnlimitedContractSize: true
},
local: {
url: 'http://127.0.0.1:8545',
blockGasLimit: 200000000
},
kovan: {
url: `https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`,
gasPrice: 10e9,
accounts: {
mnemonic: mnemonic.owner.kovan,
initialIndex: 0,
count: 3,
}
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_API_KEY}`,
gasPrice: 10e9,
accounts: {
mnemonic: mnemonic.owner.ropsten,
initialIndex: 0,
count: 3,
}
}
},
gasReporter: {
currency: 'USD',
gasPrice: 1,
enabled: (process.env.REPORT_GAS) ? true : false
},
namedAccounts: {
deployer: {
default: 0,
},
trustedForwarder: {
default: 7, // Account 8
1: '0x1337c0d31337c0D31337C0d31337c0d31337C0d3', // mainnet
3: '0x1337c0d31337c0D31337C0d31337c0d31337C0d3', // ropsten
42: '0x1337c0d31337c0D31337C0d31337c0d31337C0d3', // kovan
},
dai: {
default: 0, // local; to be deployed by deployer
1: '0x6B175474E89094C44Da98b954EedeAC495271d0F', // mainnet
3: '0x31F42841c2db5173425b5223809CF3A38FEde360', // ropsten
42: '0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa', // kovan
}
}
};