-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.base.config.ts
163 lines (162 loc) · 5.33 KB
/
hardhat.base.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
155
156
157
158
159
160
161
162
163
const path = require('path');
const config = require('dotenv').config({ path: path.resolve(__dirname, '.env') });
const { ETHERSCAN_API_KEY, BSCSCAN_API_KEY, POLYGONSCAN_API_KEY, MNEMONIC, DEPLOY_GAS_LIMIT_MAX, DEPLOY_GAS_PRICE, INFURA_ID_PROJECT, API_KEY } =
config.parsed || {};
export default {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
loggingEnabled: false,
evm: 'paris',
},
localhost: {
url: `http://127.0.0.1:8545`,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
localHardhat: {
url: `http://127.0.0.1:8545`,
},
localGeth: {
url: `http://127.0.0.1:8545`,
chainId: 1337,
gas: 10000000,
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_ID_PROJECT}`,
},
ropsten: {
url: `https://ropsten.infura.io/v3/${INFURA_ID_PROJECT}`,
chainId: 3,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_ID_PROJECT}`,
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_ID_PROJECT}`,
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_ID_PROJECT}`,
chainId: 42,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
gasPrice: 8000000000,
},
bscTestnet: {
url: `https://data-seed-prebsc-2-s3.binance.org:8545`,
chainId: 97,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
bsc: {
url: `https://bsc-dataseed3.binance.org`,
},
mumbai: {
url: `https://polygon-mumbai-bor.publicnode.com`,
chainId: 80001,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
mantleTestnet: {
url: `https://rpc.testnet.mantle.xyz`,
chainId: 5001,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
mantle: {
url: `https://rpc.mantle.xyz`,
chainId: 5000,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
telosTestnet: {
url: `https://testnet.telos.net/evm`,
chainId: 41,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
maticMainnet: {
url: `https://rpc-mainnet.matic.quiknode.pro`,
chainId: 137,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
gasPrice: 50_000_000_000,
},
artheraTestnet: {
url: `https://rpc-test.arthera.net`,
chainId: 10243,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
blastScanSepolia: {
url: `https://blast-sepolia.infura.io/v3/${INFURA_ID_PROJECT}`,
gasPrice: 1e3,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
blastSepolia: {
url: `https://blast-sepolia.infura.io/v3/${INFURA_ID_PROJECT}`,
gasPrice: 1e3,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
blastMainnet: {
url: `https://blast-mainnet.infura.io/v3/${INFURA_ID_PROJECT}`,
gasPrice: 1e3,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
blastScanMainnet: {
url: `https://blast-mainnet.infura.io/v3/${INFURA_ID_PROJECT}`,
gasPrice: 1e3,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
},
etherscan: {
apiKey: {
blastSepolia: 'blastSepolia', // apiKey is not required, just set a placeholder
blastMainnet: 'blastMainnet',
blastScanMainnet: `${API_KEY}`,
blastScanSepolia: `${API_KEY}`,
},
customChains: [
{
network: 'blastScanSepolia',
chainId: 168587773,
urls: {
apiURL: 'https://api-sepolia.blastscan.io/api',
browserURL: 'https://sepolia.blastscan.io/',
},
},
{
network: 'blastMainnet',
chainId: 81457,
urls: {
apiURL: 'https://api.routescan.io/v2/network/mainnet/evm/81457/etherscan',
browserURL: 'https://blastexplorer.io',
},
},
{
network: 'blastScanMainnet',
chainId: 81457,
urls: {
apiURL: 'https://api.blastscan.io/api',
browserURL: 'https://blastscan.io/',
},
},
{
network: 'blastSepolia',
chainId: 168587773,
urls: {
apiURL: 'https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan',
browserURL: 'https://testnet.blastscan.io',
},
},
{
network: 'mantleTestnet',
chainId: 5001,
urls: {
apiURL: 'https://explorer.testnet.mantle.xyz/api',
browserURL: 'https://explorer.testnet.mantle.xyz/',
},
},
{
network: 'mantle',
chainId: 5000,
urls: {
apiURL: 'https://explorer.mantle.xyz/api',
browserURL: 'https://explorer.mantle.xyz/',
},
},
],
},
};