forked from ApeX-Protocol/periphery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
80 lines (78 loc) · 2.07 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
76
77
78
79
80
require("dotenv").config();
require("hardhat-deploy");
require("@nomiclabs/hardhat-waffle");
require("hardhat-watcher");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-gas-reporter");
require("solidity-coverage");
require("@openzeppelin/hardhat-upgrades");
module.exports = {
solidity: {
compilers: [
{
version: "0.8.2",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
mocha: {
timeout: 600000,
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
localhost: {
url: "http://localhost:8545",
},
mainnet: {
url: process.env.MAINNET_RPC,
accounts: process.env.DEVNET_PRIVKEY !== undefined ? [process.env.DEVNET_PRIVKEY] : [],
},
rinkeby: {
url: process.env.RINKEBY_RPC,
accounts: process.env.DEVNET_PRIVKEY !== undefined ? [process.env.DEVNET_PRIVKEY] : [],
},
arbitrumOne: {
url: process.env.ARBITRUM_ONE_RPC,
accounts: process.env.DEVNET_PRIVKEY !== undefined ? [process.env.DEVNET_PRIVKEY] : [],
},
arbitrumTestnet: {
url: process.env.ARBITRUM_TESTNET_RPC,
accounts: process.env.DEVNET_PRIVKEY !== undefined ? [process.env.DEVNET_PRIVKEY] : [],
},
bscMainnet: {
url: process.env.BSC_MAINNET_PRC,
accounts: process.env.DEVNET_PRIVKEY !== undefined ? [process.env.DEVNET_PRIVKEY] : [],
},
bscTestnet: {
url: process.env.BSC_TESTNET_PRC,
accounts: process.env.DEVNET_PRIVKEY !== undefined ? [process.env.DEVNET_PRIVKEY] : [],
},
},
etherscan: {
apiKey: process.env.ARBISCAN_API_KEY,
// apiKey: {
// mainnet: process.env.ETHERSCAN_API_KEY,
// rinkeby: process.env.ETHERSCAN_API_KEY,
// // arbitrum
// arbitrumOne: process.env.ARBISCAN_API_KEY,
// arbitrumTestnet: process.env.ARBISCAN_API_KEY,
// },
},
watcher: {
compilation: {
tasks: ["compile"],
},
test: {
tasks: ["test"],
files: ["./test/*"],
},
},
};