-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhardhat.config.js
More file actions
117 lines (112 loc) · 3.07 KB
/
hardhat.config.js
File metadata and controls
117 lines (112 loc) · 3.07 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3");
require("@nomiclabs/hardhat-solhint");
require("@nomiclabs/hardhat-ethers");
require("@atixlabs/hardhat-time-n-mine");
require("@openzeppelin/hardhat-upgrades");
require("hardhat-gas-reporter");
require("hardhat-contract-sizer");
require("hardhat-tracer");
require("ethers");
require("./tasks/general-tasks.js");
require("./tasks/governance-tasks.js");
require("./tasks/registry-tasks.js");
const urlOverride = process.env.ETH_PROVIDER_URL;
const mnemonic =
process.env.MNEMONIC ||
"test test test test test test test test test test test junk";
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
accounts: {
accountsBalance: "10000000000000000000000",
},
mining: {
auto: true,
interval: [3000, 6000],
},
chainId: 31337,
},
dev: {
accounts: {
accountsBalance: "10000000000000000000000",
mnemonic,
},
chainId: 31337,
url: "http://127.0.0.1:8569",
},
dev_ganache: {
accounts: {
accountsBalance: "10000000000000000000000",
mnemonic,
},
chainId: 1337,
url: "http://127.0.0.1:7545"
},
DevNet: {
accounts: {
mnemonic,
},
url: "https://eth-provider-dev.hypernetlabs.io",
},
mainnet: { // ethereum mainnet
accounts: { mnemonic },
chainId: 1,
url: urlOverride || "https://f8334b5b-ad76-4d4a-8443-88d05097eb8b.hypernetlabs.io/http/",
},
rinkeby: { // ethereum tesnet
accounts: { mnemonic },
chainId: 4,
url: urlOverride || "https://station-hundred-assure-neighborhood.trycloudflare.com/http/",
},
mumbai: { // polygon testnet
accounts: { mnemonic },
chainId: 80001,
url: urlOverride || "https://matic-mumbai.chainstacklabs.com",
gas: 6000000,
gasPrice: 8000000000
},
polygon: { // polygon mainnet
accounts: { mnemonic },
chainId: 137,
url: urlOverride || "https://rpc-mainnet.matic.quiknode.pro",
},
fuji: { // avalanche testnet
accounts: { mnemonic },
chainId: 43113,
url: urlOverride || "https://f0fa7eba-0c1b-4f3f-bc37-67ba6ae2b60a.hypernetlabs.io/http/ext/bc/C/rpc",
},
avalanche: { // avalanche mainnet
accounts: { mnemonic },
chainId: 43114,
url: urlOverride || "https://053e1c5c-66fd-49c3-b267-42ab5f9202c6.hypernetlabs.io/http/ext/bc/C/rpc",
},
fantom: { // fantom mainnet
accounts: { mnemonic },
chainId: 250,
url: urlOverride || "https://lyrics-prepared-here-powerpoint.trycloudflare.com/rpc/",
},
},
gasReporter: {
enabled: true,
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
};