forked from Ro5s/aion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.js
41 lines (38 loc) · 1.06 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
usePlugin("@nomiclabs/buidler-truffle5");
// 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 web3.eth.getAccounts();
for (const account of accounts) {
console.log(account);
}
});
module.exports = {
defaultNetwork: 'buidlerevm',
networks: {
mainnet: {
url: "https://mainnet.infura.io/v3/96efbe9ad6f94f918aad2c894302c94e",
chainId: 1,
accounts:
process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: "remote"
},
ropsten: {
url: "https://ropsten.infura.io/v3/96efbe9ad6f94f918aad2c894302c94e",
chainId: 3,
accounts:
process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: "remote"
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/96efbe9ad6f94f918aad2c894302c94e",
chainId: 4,
accounts:
process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: "remote"
}
}
};