-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
138 lines (134 loc) · 3.74 KB
/
hardhat.config.ts
File metadata and controls
138 lines (134 loc) · 3.74 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import "@nomicfoundation/hardhat-ignition-ethers";
import "@nomicfoundation/hardhat-ledger";
import "@nomicfoundation/hardhat-toolbox";
import dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
dotenv.config();
const DEPLOYER_ACCOUNT_PRIV_KEY = process.env.DEPLOYER_ACCOUNT_PRIV_KEY;
const LEDGER_ADDRESS = process.env.LEDGER_ADDRESS as string;
const ACCOUNTS = [DEPLOYER_ACCOUNT_PRIV_KEY].filter(Boolean) as string[];
const config: HardhatUserConfig = {
networks: {
ethereum: {
chainId: 1,
url:
"https://eth-mainnet.g.alchemy.com/v2/" + process.env.ALCHEMY_API_KEY,
// accounts: ACCOUNTS
ledgerAccounts: [LEDGER_ADDRESS],
},
manta: {
chainId: 169,
url: "https://pacific-rpc.manta.network/http",
ledgerAccounts: [LEDGER_ADDRESS],
},
avalanche: {
chainId: 43114,
url: "https://avax-mainnet.g.alchemy.com/v2/" + process.env.ALCHEMY_API_KEY,
ledgerAccounts: [LEDGER_ADDRESS],
},
metis: {
chainId: 1088,
url:
"https://metis-mainnet.g.alchemy.com/v2/" + process.env.ALCHEMY_API_KEY,
ledgerAccounts: [LEDGER_ADDRESS],
gas: 3000000,
gasPrice: 30000000000,
allowUnlimitedContractSize: true,
blockGasLimit: 8000000,
timeout: 100000,
initialBaseFeePerGas: 1000000000,
},
amoy: {
chainId: 80002,
url: "https://rpc-amoy.polygon.technology",
// accounts: ACCOUNTS
ledgerAccounts: [LEDGER_ADDRESS],
},
fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
chainId: 43113,
// accounts: ACCOUNTS
ledgerAccounts: [LEDGER_ADDRESS],
},
bartio: {
chainId: 80084,
url: "https://bartio.rpc.berachain.com/",
// accounts: ACCOUNTS
ledgerAccounts: [LEDGER_ADDRESS],
},
holesky: {
chainId: 17000,
url: "https://eth-holesky.g.alchemy.com/v2",
// accounts: ACCOUNTS
ledgerAccounts: [LEDGER_ADDRESS],
},
},
etherscan: {
apiKey: {
polygon: process.env.POLYGON_API_KEY as string,
amoy: process.env.POLYGON_API_KEY as string,
mainnet: process.env.ETHEREUM_API_KEY as string,
avalanche: "not needed",
fuji: "not needed",
bartio: "not needed",
holesky: process.env.HOLESKY_API_KEY as string,
manta: "not needed",
metis: "not needed",
},
customChains: [
{
network: "manta",
chainId: 169,
urls: {
apiURL: "https://pacific-explorer.manta.network/api",
browserURL: "https://pacific-explorer.manta.network/",
},
},
{
network: "amoy",
chainId: 80002,
urls: {
apiURL: "https://api-amoy.polygonscan.com/api",
browserURL: "https://amoy.polygonscan.com",
},
},
{
network: "holesky",
chainId: 17000,
urls: {
apiURL: "https://api-holesky.etherscan.io/api",
browserURL: "https://holesky.etherscan.io",
},
},
{
network: "bartio",
chainId: 80084,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/80084/etherscan",
browserURL: "https://bartio.beratrail.io",
},
},
{
network: "avalanche",
chainId: 43114,
urls: {
apiURL:
"https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan",
browserURL: "https://snowtrace.io",
},
},
{
network: "metis",
chainId: 1088,
urls: {
apiURL:
"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan",
browserURL: "https://explorer.metis.io/",
},
}
],
},
solidity: "0.8.23",
};
export default config;