This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
forked from Dev-Legion/swapsicle_contracts
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.js
75 lines (74 loc) · 1.54 KB
/
hardhat.config.js
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
require("dotenv").config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
const {
METAMASK_PRIVATE_KEY_ACCT1,
RINKEBY_URL,
ETH_URL,
BSC_URL,
POLY_URL,
BSC_API_KEY,
BSC_URL_TESTNET,
MM_SS_DEPLOYER,
AVALANCHE_API_KEY,
MM_BG_SS_DEPLOYER
} = process.env;
module.exports = {
solidity: {
compilers: [
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
defaultNetwork: "hardhat",
networks: {
hardhat: {},
eth: {
url: ETH_URL,
accounts: [`0x${METAMASK_PRIVATE_KEY_ACCT1}`],
},
bsc: {
url: BSC_URL,
accounts: [`0x${METAMASK_PRIVATE_KEY_ACCT1}`],
},
poly: {
url: POLY_URL,
accounts: [`0x${METAMASK_PRIVATE_KEY_ACCT1}`],
gasPrice: 50000000000,
},
ropsten: {
url: ROPSTEN_URL,
accounts: [`0x${METAMASK_PRIVATE_KEY_ACCT1}`],
},
rinkeby: {
url: RINKEBY_URL,
accounts: [`0x${METAMASK_PRIVATE_KEY_ACCT1}`],
},
bscTestnet: {
url: BSC_URL_TESTNET,
accounts: [`0x${METAMASK_PRIVATE_KEY_ACCT1}`],
},
avalanche: {
url: "https://api.avax.network/ext/bc/C/rpc",
accounts: [MM_SS_DEPLOYER],
},
},
etherscan: {
apiKey: {
//eth: ETH_API_KEY,
//bsc: BSC_API_KEY,
//poly: POLY_API_KEY,
//apiKey: ETH_API_KEY, //eth
//rinkeby: ETH_API_KEY
//bscTestnet: BSC_API_KEY,
avalanche: AVALANCHE_API_KEY
}
}
};