forked from pooltogether/pooltogether-rng-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.js
111 lines (107 loc) · 2.83 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
101
102
103
104
105
106
107
108
109
110
111
const ethers = require('ethers')
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;
})
usePlugin('@nomiclabs/buidler-waffle');
usePlugin('buidler-gas-reporter');
usePlugin('solidity-coverage');
usePlugin('buidler-deploy');
usePlugin("@nomiclabs/buidler-etherscan");
module.exports = {
solc: {
version: '0.6.6',
optimizer: {
enabled: true,
runs: 200
},
evmVersion: 'istanbul'
},
paths: {
artifacts: './build',
deploy: './deploy',
deployments: './deployments'
},
networks: {
buidlerevm: {
blockGasLimit: 200000000,
allowUnlimitedContractSize: true
},
coverage: {
url: 'http://127.0.0.1:8555',
blockGasLimit: 200000000,
allowUnlimitedContractSize: true
},
localhost: {
url: 'http://127.0.0.1:8545'
},
kovan: {
url: `https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: {
mnemonic: process.env.HDWALLET_MNEMONIC,
initialIndex: 0,
count: 3,
}
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: {
mnemonic: process.env.HDWALLET_MNEMONIC,
initialIndex: 0,
count: 3,
}
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: {
mnemonic: process.env.HDWALLET_MNEMONIC,
initialIndex: 0,
count: 3,
}
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: {
mnemonic: process.env.HDWALLET_MNEMONIC,
initialIndex: 0,
count: 3,
}
},
poaMainnet: {
chainId: 99,
url: 'https://core.poanetwork.dev',
accounts: {
mnemonic: process.env.HDWALLET_MNEMONIC
}
},
poaSokol: {
chainId: 77,
url: 'https://sokol.poa.network',
accounts: {
mnemonic: process.env.HDWALLET_MNEMONIC
}
}
},
gasReporter: {
currency: 'USD',
gasPrice: 1,
enabled: (process.env.REPORT_GAS) ? true : false
},
namedAccounts: {
deployer: {
default: 0, // Local Wallet; Account 1 OR [ropsten|kovan].accounts from above
},
vrfCoordinator: {
1: '0xf0d54349aDdcf704F77AE15b96510dEA15cb7952', // mainnet
4: '0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B', // rinkeby
42: '0xdD3782915140c8f3b190B5D67eAc6dc5760C46E9', // kovan
},
linkToken: {
1: '0x514910771AF9Ca656af840dff83E8264EcF986CA', // mainnet
4: '0x01BE23585060835E02B77ef475b0Cc51aA1e0709', // rinkeby
42: '0xa36085F69e2889c224210F603D836748e7dC0088', // kovan
}
}
};