-
Notifications
You must be signed in to change notification settings - Fork 2
/
buidler.config.ts
43 lines (38 loc) · 1.04 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
import { BuidlerConfig, usePlugin, task } from "@nomiclabs/buidler/config";
usePlugin("@nomiclabs/buidler-waffle");
usePlugin("@nomiclabs/buidler-etherscan");
usePlugin("buidler-typechain");
usePlugin("solidity-coverage");
const INFURA_API_KEY = "";
const RINKEBY_PRIVATE_KEY = "";
const ETHERSCAN_API_KEY = "";
interface ExtendedBuidlerConfig extends BuidlerConfig {
[x:string]: any
}
const config: ExtendedBuidlerConfig = {
defaultNetwork: "buidlerevm",
solc: {
version: "0.6.2"
},
networks: {
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_API_KEY}`,
accounts: [RINKEBY_PRIVATE_KEY]
},
coverage: {
url: 'http://127.0.0.1:8555' // Coverage launches its own ganache-cli client
}
},
etherscan: {
// The url for the Etherscan API you want to use.
url: "https://api-rinkeby.etherscan.io/api",
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY
},
typechain: {
outDir: "typechain",
target: "ethers"
}
};
export default config;