-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.ts
93 lines (87 loc) · 2.15 KB
/
hardhat.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { config as dotEnvConfig } from "dotenv";
dotEnvConfig();
import { HardhatUserConfig } from "hardhat/types";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-etherscan";
import "solidity-coverage";
const DEPLOYER_PRIVATE_KEY =
process.env.RINKEBY_PRIVATE_KEY! ||
"0000000000000000000000000000000000000000000000000000000000000000";
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "";
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
compilers: [
{
version: "0.7.6",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
},
networks: {
hardhat: {},
localhost: {},
development: {
url: `http://47.88.20.217:8545`,
accounts: [DEPLOYER_PRIVATE_KEY],
},
testnet: {
url: `http://47.88.20.217:8545`,
accounts: [DEPLOYER_PRIVATE_KEY],
},
labs: {
url: `http://47.88.20.217:8545`,
accounts: [DEPLOYER_PRIVATE_KEY],
},
mainnet: {
url: `http://172.21.121.12:8545`,
accounts: [DEPLOYER_PRIVATE_KEY],
},
bsctest: {
url: `https://data-seed-prebsc-1-s1.binance.org:8545`,
accounts: [DEPLOYER_PRIVATE_KEY],
},
bscstage: {
url: "https://bsc-dataseed.binance.org/",
chainId: 56,
accounts: [DEPLOYER_PRIVATE_KEY],
},
bsc: {
url: "https://bsc-dataseed.binance.org/",
chainId: 56,
accounts: [DEPLOYER_PRIVATE_KEY],
},
mumbai: {
url: "https://rpc-mumbai.maticvigil.com",
accounts: [DEPLOYER_PRIVATE_KEY],
},
polygon: {
url: "https://rpc-mainnet.maticvigil.com",
accounts: [DEPLOYER_PRIVATE_KEY],
},
coverage: {
url: "http://127.0.0.1:8555", // Coverage launches its own ganache-cli client
},
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
mocha: {
timeout: 2000000,
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY,
},
};
export default config;