-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.ts
47 lines (39 loc) · 1.25 KB
/
buidler.config.ts
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
import { BuidlerConfig, task, usePlugin } from "@nomiclabs/buidler/config";
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("@nomiclabs/buidler-web3");
usePlugin("@nomiclabs/buidler-truffle5");
usePlugin("@nomiclabs/buidler-waffle");
usePlugin('solidity-coverage');
// 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 (taskArgs, bre) => {
const accounts = await bre.ethers.getSigners();
for (const account of accounts) {
console.log(await account);
}
});
const LOCAL_NETWORK_PRIVATE_KEY = "0x710fd8db1b881e948e291d85ebde38829f774c79d99b775f88c99cbe3f4649c1";
const config: BuidlerConfig = {
defaultNetwork: "buidlerevm",
solc: {
version: "0.5.17",
optimizer: { enabled: true, runs: 200 },
evmVersion: "istanbul"
},
networks: {
localhost: {
url: `http://127.0.0.1:2000`,
accounts: [LOCAL_NETWORK_PRIVATE_KEY]
},
playground: {
url: `http://127.0.0.1:2000`,
accounts: [`0x01ad2f5ee476f3559b0d2eb8ec22968e847f0dcf3e1fc7ec02e57ecce5000548`],
blockGasLimit: 16000000000,
timeout: 200000
},
coverage: {
url: 'http://127.0.0.1:8555'
}
}
};
export default config;