-
Notifications
You must be signed in to change notification settings - Fork 4
/
buidler.config.ts
35 lines (31 loc) · 902 Bytes
/
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
import * as dotenv from "dotenv";
import { BuidlerConfig, usePlugin } from "@nomiclabs/buidler/config";
dotenv.config({ path: __dirname + '/.env' });
usePlugin("@nomiclabs/buidler-ganache");
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("buidler-typechain");
const INFURA_API_KEY = `${process.env.INFURA_API_KEY}`;
const RINKEBY_PRIVATE_KEY = `${process.env.RINKEBY_PRIVATE_KEY}`;
const MAINNET_PRIVATE_KEY = `${process.env.MAINNET_PRIVATE_KEY}`;
const config: BuidlerConfig = {
solc: {
version: "0.6.12"
},
typechain: {
outDir: "typechain",
target: "ethers-v5"
},
networks: {
buidlerevm: {
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_API_KEY}`,
accounts: [RINKEBY_PRIVATE_KEY]
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,
accounts: [MAINNET_PRIVATE_KEY]
}
}
};
export default config;