-
Notifications
You must be signed in to change notification settings - Fork 1
/
buidler.config.ts
44 lines (40 loc) · 1.1 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
require("dotenv").config();
import { BuidlerConfig, usePlugin } from "@nomiclabs/buidler/config";
import waffleDefaultAccounts from "ethereum-waffle/dist/config/defaultAccounts";
usePlugin("@nomiclabs/buidler-ethers");
usePlugin("@nomiclabs/buidler-etherscan");
const mnemonic = process.env.MNENOMIC;
const config: BuidlerConfig = {
solc: {
version: "0.5.12"
},
//@ts-ignore
networks: {
buidlerevm: {
accounts: waffleDefaultAccounts.map(acc => ({
balance: acc.balance,
privateKey: acc.secretKey
}))
},
rinkeby: {
url: process.env.RINKEBY_API_URL,
accounts: { mnemonic: mnemonic }
},
kovan: {
url: process.env.KOVAN_API_URL,
accounts: { mnemonic: mnemonic }
},
mainnet: {
url: process.env.MAIN_API_URL,
accounts: { mnemonic: mnemonic }
}
},
etherscan: {
// The url for the Etherscan API you want to use.
url: process.env.ETHERSCAN_URL as string,
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_API_KEY as string
}
};
export default config;