-
Notifications
You must be signed in to change notification settings - Fork 4
/
buidler.config.js
115 lines (110 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
require("dotenv").config();
usePlugin("buidler-deploy");
usePlugin("solidity-coverage");
usePlugin("buidler-gas-reporter");
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("@nomiclabs/buidler-solhint");
usePlugin("@nomiclabs/buidler-etherscan");
usePlugin("buidler-spdx-license-identifier");
// This is a sample Buidler task. To learn how to create your own go to
// https://buidler.dev/guides/create-task.html
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(await account.getAddress());
}
});
const DEFAULT_MNEMONIC =
"explain tackle mirror kit van hammer degree position ginger unfair soup bonus";
module.exports = {
defaultNetwork: "buidlerevm",
networks: {
buidlerevm: {
blockGasLimit: 12000000,
gas: 12000000,
allowUnlimitedContractSize: true,
},
reporter: {
blockGasLimit: 12000000,
gas: 12000000,
url: "http://localhost:8545",
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
coverage: {
url: "http://localhost:8555",
blockGasLimit: 12000000,
gas: 12000000,
allowUnlimitedContractSize: true,
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 2,
count: 20,
},
},
},
etherscan: {
// The url for the Etherscan API you want to use.
// For example, here we're using the one for the Ropsten test network
url: "https://api.etherscan.io/api",
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_API_KEY,
},
solc: {
version: "0.6.12",
optimizer: {
enabled: true, // Default: false
runs: 999999, // Default: 200
},
},
gasReporter: {
currency: "USD",
coinmarketcap: process.env.COINMARKETCAP_KEY,
enabled: process.env.REPORT_GAS ? true : false,
},
spdxLicenseIdentifier: {
overwrite: true,
runOnCompile: true,
},
namedAccounts: {
deployer: {
default: 0,
},
},
};