-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
154 lines (152 loc) · 4.62 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
"use strict";
import "./task/accounts";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
import "@nomiclabs/hardhat-solhint";
import "@openzeppelin/hardhat-upgrades";
import "dotenv/config";
import "hardhat-abi-exporter";
export default {
defaultNetwork: "hardhat",
networks: {
hardhat: {
allowUnlimitedContractSize: false,
// forking: {
// url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
// blockNumber: 15522419
// }
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
saveDeployments: true,
live: true,
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
saveDeployments: true,
timeout: 10 * 60 * 1000,
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
timeout: 10 * 60 * 1000,
},
bsc: {
url: `https://bsc-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
chainId: 56,
live: true,
saveDeployments: true,
},
bscTestnet: {
url: `https://bsc-testnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
chainId: 97,
live: true,
saveDeployments: true,
},
arbitrum: {
accounts: [process.env.PRIVATE_KEY],
url: `https://arbitrum-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
},
arbitrumGoerli: {
url: `https://arbitrum-goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
optimism: {
url: `https://optimism-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
optimisGoerli: {
url: `https://optimism-goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
polygon: {
url: `https://polygon-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
mumbai: {
url: `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
linea: {
url: `https://linea-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
lineaGoerli: {
url: `https://linea-goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
near: {
url: `https://near-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
nearTest: {
url: `https://near-testnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
harmony: {
url: `https://api.harmony.one`,
accounts: [process.env.PRIVATE_KEY],
},
harmonyTest: {
url: `https://api.s0.b.hmny.io`,
accounts: [process.env.PRIVATE_KEY],
},
},
mocha: {
timeout: 10 * 60 * 1000,
},
etherscan: {
// Your API key for Etherscan
// To see the full list of supported networks, run `npx hardhat verify --list-networks`
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY,
goerli: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
optimisticGoerli: process.env.ETHERSCAN_API_KEY,
optimisticEthereum: process.env.ETHERSCAN_API_KEY,
arbitrumGoerli: process.env.ETHERSCAN_API_KEY,
arbitrumTestnet: process.env.ETHERSCAN_API_KEY,
polygonMumbai: process.env.POLYGONSCAN_API_KEY,
polygon: process.env.POLYGONSCAN_API_KEY,
harmony: process.env.HARMONYSCAN_API_KEY,
harmonyTest: process.env.HARMONYSCAN_API_KEY,
bsc: process.env.BSCSCAN_API_KEY,
bscTestnet: process.env.BSCSCAN_API_KEY,
},
},
gasReporter: {
currency: "USDT",
enabled: !!process.env.REPORT_GAS,
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
only: [],
},
abiExporter: {
path: "abi",
clear: true,
flat: false,
},
solidity: {
version: "0.8.28",
settings: {
optimizer: {
enabled: false,
runs: 10000,
},
metadata: {
// do not include the metadata hash, since this is machine dependent
// and we want all generated code to be deterministic
// https://docs.soliditylang.org/en/v0.7.6/metadata.html
bytecodeHash: "none",
},
},
},
};