forked from BarnBridge/BarnBridge-Barn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.ts
40 lines (36 loc) · 1.04 KB
/
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
import 'dotenv/config';
import { NetworksUserConfig } from "hardhat/types";
import { EtherscanConfig } from "@nomiclabs/hardhat-etherscan/dist/src/types";
export const networks: NetworksUserConfig = {
// Needed for `solidity-coverage`
coverage: {
url: "http://localhost:8555"
},
env_network: {
url: process.env.PROVIDER,
chainId: Number(process.env.CHAINID),
accounts: {
mnemonic: process.env.MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 1,
count: 10
},
gas: "auto",
gasPrice: 16000000000, // 50 gwei
gasMultiplier: 1.5
},
// Mainnet
mainnet: {
url: process.env.PROVIDER,
chainId: 1,
accounts: ["0xaaaa"],
gas: "auto",
gasPrice: 50000000000,
gasMultiplier: 1.5
}
};
// Use to verify contracts on Etherscan
// https://buidler.dev/plugins/nomiclabs-buidler-etherscan.html
export const etherscan: EtherscanConfig = {
apiKey: "A7EAG5WB4FRAHIURRGWD8HSTM8CVYXZGZ4"
};