forked from NFTX-project/x-contracts
-
Notifications
You must be signed in to change notification settings - Fork 5
/
buidler.config.js
36 lines (35 loc) · 924 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
require("dotenv").config();
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("@nomiclabs/buidler-web3");
usePlugin("@nomiclabs/buidler-ethers");
usePlugin("@openzeppelin/buidler-upgrades");
usePlugin("buidler-contract-sizer");
module.exports = {
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [`${process.env.PRIVATE_KEY}`],
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [`${process.env.PRIVATE_KEY}`],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [`${process.env.PRIVATE_KEY}`],
gasPrice: 5000000000,
timeout: 30000,
},
},
solc: {
version: "0.6.8",
optimizer: {
enabled: true,
runs: 200,
},
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
},
};