-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
hardhat.config.js
89 lines (88 loc) · 2.26 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
81
82
83
84
85
86
87
88
89
/* hardhat.config.js */
require("@nomiclabs/hardhat-waffle");
require("dotenv").config();
require("@openzeppelin/hardhat-upgrades");
// require("hardhat-contract-sizer");
// require("solidity-coverage");
// require("hardhat-gas-reporter");
console.log("ololo", process.env.REACT_APP_POLYGON_URL);
module.exports = {
networks: {
mumbai: {
url: process.env.REACT_APP_MUMBAI_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
},
celoTestnet: {
url: process.env.REACT_APP_CeloTest_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
},
AuroraTestnet: {
url: process.env.REACT_APP_AuroraTest_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
},
AvaxTestnet: {
url: process.env.REACT_APP_AvaxTest_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
},
Avax: {
url: process.env.REACT_APP_AVAX_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
},
polygon: {
url: process.env.REACT_APP_POLYGON_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
},
celo: {
url: process.env.REACT_APP_CELO_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
},
aurora: {
url: process.env.REACT_APP_AURORA_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
chainId: 1313161554,
},
arbitrum: {
url: process.env.REACT_APP_ARBITRUM_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
chainId: 42161,
},
arbitrumGoerli: {
url: process.env.REACT_APP_ArbitrumTest_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
chainId: 421613,
},
optimismGoerli: {
url: process.env.REACT_APP_OptimismTest_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
chainId: 420,
},
optimism: {
url: process.env.REACT_APP_OPTIMISM_URL,
accounts: [process.env.REACT_APP_PRIV_KEY],
chainId: 10,
},
hardhat: {
forking: {
// Using Alchemy
url: "process.env.ALCHEMY",
},
},
// mainnet: {
// chainId: 1,
// url: process.env.PROD_ALCHEMY_KEY,
// accounts: [process.env.PRIVATE_KEY],
// },
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
mocha: {
timeout: 70000,
},
};