-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
executable file
·139 lines (111 loc) · 2.67 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
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
require("@nomicfoundation/hardhat-toolbox");
//require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require('hardhat-contract-sizer', { runOnCompile: true });
require('hardhat-deploy');
require('hardhat-abi-exporter',{ path: 'data/abi', clear: true });
const {
accounts,
noderealApiKey,
buildBearApiKey
} = require("./.secrets")
module.exports = {
networks: {
hardhat: {
accounts: accounts.map( privateKey => ({
privateKey,
"balance": "991229544000000000000"
})),
forking: {
url: `https://eth-mainnet.nodereal.io/v1/${noderealApiKey}`,
},
chainId: 1337
},
eth_mainnet: {
url: `https://ethereum.publicnode.com`,
chainId: 1,
accounts
},
goerli: {
url: `https://ethereum-goerli.publicnode.com`,
chainId: 5,
accounts
},
bsc_testnet: {
url: `https://data-seed-prebsc-2-s1.binance.org:8545/`,
chainId: 97,
accounts
},
bnbchain_mainnet: {
url: `https://bsc.publicnode.com`,
chainId: 56,
accounts
},
bnbchain_fork: {
url: `https://rpc.tenderly.co/fork/74914579-a14a-4054-ba3a-7cd616136ef7`,
chainId: 56,
accounts
},
avax_mainnet: {
url: `https://api.avax.network/ext/bc/C/rpc`,
chainId: 43114,
accounts
},
buildbear_avax: {
url: `https://rpc.buildbear.io/${buildBearApiKey}`,
chainId: 12602,
accounts
},
polygon_mainnet: {
url: `https://polygon-bor.publicnode.com`,
chainId: 137,
accounts
},
arb_one: {
url: `https://arbitrum-one.publicnode.com`,
chainId: 42161,
accounts
},
op: {
url: `https://optimism.publicnode.com`,
chainId: 10,
accounts
},
base: {
url: `https://base.publicnode.com`,
chainId: 8453,
accounts
},
gnosis: {
url: `https://gnosis.publicnode.com`,
chainId: 100,
accounts
},
zksync_era: {
url: `https://mainnet.era.zksync.io`,
chainId: 324,
accounts
},
linea: {
url: `https://rpc.linea.build`,
chainId: 59144,
accounts
},
},
etherscan: { // npx hardhat --network buildbear_avax verify 0x4Bf3208528D51c1323dbE243cDD0b69f0a9bc5eD
apiKey: {
buildbear: "verifyContract",
},
customChains: [
{
network: "buildbear",
chainId: 12602,
urls: {
apiURL: "https://rpc.buildbear.io/verify/etherscan/accepted-tarfful-669a5ec0",
browserURL: "https://explorer.buildbear.io/accepted-tarfful-669a5ec0",
},
},
],
},
solidity: "0.8.20",
};