@wagmi/core 0.7.9 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{base-a32d0b91.d.ts → base-a82112a9.d.ts} +1 -1
  2. package/dist/chains.d.ts +1 -3
  3. package/dist/chains.js +13 -1
  4. package/dist/chunk-6KG5TOAU.js +42 -0
  5. package/dist/chunk-J6DUE3KA.js +0 -0
  6. package/dist/chunk-SK7UQXOC.js +191 -0
  7. package/dist/{chunk-HEIMP7HQ.js → chunk-TQC2HCNN.js} +1166 -1126
  8. package/dist/connectors/coinbaseWallet.d.ts +2 -2
  9. package/dist/connectors/coinbaseWallet.js +8 -5
  10. package/dist/connectors/metaMask.d.ts +4 -3
  11. package/dist/connectors/metaMask.js +2 -2
  12. package/dist/connectors/mock/index.d.ts +3 -2
  13. package/dist/connectors/mock/index.js +6 -185
  14. package/dist/connectors/walletConnect.d.ts +2 -2
  15. package/dist/connectors/walletConnect.js +8 -4
  16. package/dist/{index-58cffc47.d.ts → index-971cda79.d.ts} +2 -103
  17. package/dist/index.d.ts +51 -46
  18. package/dist/index.js +9 -20
  19. package/dist/{injected-82510902.d.ts → injected-610c34b6.d.ts} +3 -2
  20. package/dist/{internal.d.ts → internal/index.d.ts} +3 -2
  21. package/dist/internal/index.js +8 -0
  22. package/dist/internal/test.d.ts +12 -0
  23. package/dist/internal/test.js +142 -0
  24. package/dist/providers/alchemy.d.ts +2 -1
  25. package/dist/providers/alchemy.js +2 -2
  26. package/dist/providers/infura.d.ts +2 -1
  27. package/dist/providers/infura.js +2 -2
  28. package/dist/providers/jsonRpc.d.ts +2 -1
  29. package/dist/providers/jsonRpc.js +2 -2
  30. package/dist/providers/public.d.ts +2 -1
  31. package/dist/providers/public.js +2 -2
  32. package/internal/package.json +1 -1
  33. package/internal/test/package.json +4 -0
  34. package/package.json +12 -7
  35. package/dist/chunk-4DNFSL2K.js +0 -376
  36. package/dist/internal.js +0 -8
@@ -1,376 +0,0 @@
1
- // src/constants/blockExplorers.ts
2
- var etherscanBlockExplorers = {
3
- mainnet: {
4
- name: "Etherscan",
5
- url: "https://etherscan.io"
6
- },
7
- goerli: {
8
- name: "Etherscan",
9
- url: "https://goerli.etherscan.io"
10
- },
11
- sepolia: {
12
- name: "Etherscan",
13
- url: "https://sepolia.etherscan.io"
14
- },
15
- optimism: {
16
- name: "Etherscan",
17
- url: "https://optimistic.etherscan.io"
18
- },
19
- optimismGoerli: {
20
- name: "Etherscan",
21
- url: "https://goerli-optimism.etherscan.io"
22
- },
23
- polygon: {
24
- name: "PolygonScan",
25
- url: "https://polygonscan.com"
26
- },
27
- polygonMumbai: {
28
- name: "PolygonScan",
29
- url: "https://mumbai.polygonscan.com"
30
- },
31
- arbitrum: { name: "Arbiscan", url: "https://arbiscan.io" },
32
- arbitrumGoerli: { name: "Arbiscan", url: "https://goerli.arbiscan.io" }
33
- };
34
-
35
- // src/constants/rpcs.ts
36
- var alchemyRpcUrls = {
37
- mainnet: "https://eth-mainnet.alchemyapi.io/v2",
38
- goerli: "https://eth-goerli.alchemyapi.io/v2",
39
- optimism: "https://opt-mainnet.g.alchemy.com/v2",
40
- optimismGoerli: "https://opt-goerli.g.alchemy.com/v2",
41
- polygon: "https://polygon-mainnet.g.alchemy.com/v2",
42
- polygonMumbai: "https://polygon-mumbai.g.alchemy.com/v2",
43
- arbitrum: "https://arb-mainnet.g.alchemy.com/v2",
44
- arbitrumGoerli: "https://arb-goerli.g.alchemy.com/v2"
45
- };
46
- var infuraRpcUrls = {
47
- mainnet: "https://mainnet.infura.io/v3",
48
- goerli: "https://goerli.infura.io/v3",
49
- sepolia: "https://sepolia.infura.io/v3",
50
- optimism: "https://optimism-mainnet.infura.io/v3",
51
- optimismGoerli: "https://optimism-goerli.infura.io/v3",
52
- polygon: "https://polygon-mainnet.infura.io/v3",
53
- polygonMumbai: "https://polygon-mumbai.infura.io/v3",
54
- arbitrum: "https://arbitrum-mainnet.infura.io/v3",
55
- arbitrumGoerli: "https://arbitrum-goerli.infura.io/v3"
56
- };
57
- var publicRpcUrls = {
58
- mainnet: "https://cloudflare-eth.com",
59
- goerli: "https://rpc.ankr.com/eth_goerli",
60
- sepolia: "https://rpc.sepolia.org",
61
- optimism: "https://mainnet.optimism.io",
62
- optimismGoerli: "https://goerli.optimism.io",
63
- polygon: "https://polygon-rpc.com",
64
- polygonMumbai: "https://matic-mumbai.chainstacklabs.com",
65
- arbitrum: "https://arb1.arbitrum.io/rpc",
66
- arbitrumGoerli: "https://goerli-rollup.arbitrum.io/rpc"
67
- };
68
-
69
- // src/constants/chains.ts
70
- var chainId = {
71
- mainnet: 1,
72
- goerli: 5,
73
- sepolia: 11155111,
74
- optimism: 10,
75
- optimismGoerli: 420,
76
- polygon: 137,
77
- polygonMumbai: 80001,
78
- arbitrum: 42161,
79
- arbitrumGoerli: 421613,
80
- localhost: 1337,
81
- hardhat: 31337,
82
- foundry: 31337
83
- };
84
- var mainnet = {
85
- id: chainId.mainnet,
86
- name: "Ethereum",
87
- network: "homestead",
88
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
89
- rpcUrls: {
90
- alchemy: alchemyRpcUrls.mainnet,
91
- default: publicRpcUrls.mainnet,
92
- infura: infuraRpcUrls.mainnet,
93
- public: publicRpcUrls.mainnet
94
- },
95
- blockExplorers: {
96
- etherscan: etherscanBlockExplorers.mainnet,
97
- default: etherscanBlockExplorers.mainnet
98
- },
99
- ens: {
100
- address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
101
- },
102
- multicall: {
103
- address: "0xca11bde05977b3631167028862be2a173976ca11",
104
- blockCreated: 14353601
105
- }
106
- };
107
- var goerli = {
108
- id: chainId.goerli,
109
- name: "Goerli",
110
- network: "goerli",
111
- nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 },
112
- rpcUrls: {
113
- alchemy: alchemyRpcUrls.goerli,
114
- default: publicRpcUrls.goerli,
115
- infura: infuraRpcUrls.goerli,
116
- public: publicRpcUrls.goerli
117
- },
118
- blockExplorers: {
119
- etherscan: etherscanBlockExplorers.goerli,
120
- default: etherscanBlockExplorers.goerli
121
- },
122
- ens: {
123
- address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
124
- },
125
- multicall: {
126
- address: "0xca11bde05977b3631167028862be2a173976ca11",
127
- blockCreated: 6507670
128
- },
129
- testnet: true
130
- };
131
- var sepolia = {
132
- id: chainId.sepolia,
133
- name: "Sepolia",
134
- network: "sepolia",
135
- nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
136
- rpcUrls: {
137
- default: publicRpcUrls.sepolia,
138
- infura: infuraRpcUrls.sepolia,
139
- public: publicRpcUrls.sepolia
140
- },
141
- blockExplorers: {
142
- etherscan: etherscanBlockExplorers.sepolia,
143
- default: etherscanBlockExplorers.sepolia
144
- },
145
- multicall: {
146
- address: "0xca11bde05977b3631167028862be2a173976ca11",
147
- blockCreated: 751532
148
- },
149
- testnet: true
150
- };
151
- var optimism = {
152
- id: chainId.optimism,
153
- name: "Optimism",
154
- network: "optimism",
155
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
156
- rpcUrls: {
157
- alchemy: alchemyRpcUrls.optimism,
158
- default: publicRpcUrls.optimism,
159
- infura: infuraRpcUrls.optimism,
160
- public: publicRpcUrls.optimism
161
- },
162
- blockExplorers: {
163
- etherscan: etherscanBlockExplorers.optimism,
164
- default: etherscanBlockExplorers.optimism
165
- },
166
- multicall: {
167
- address: "0xca11bde05977b3631167028862be2a173976ca11",
168
- blockCreated: 4286263
169
- }
170
- };
171
- var optimismGoerli = {
172
- id: chainId.optimismGoerli,
173
- name: "Optimism Goerli",
174
- network: "optimism-goerli",
175
- nativeCurrency: {
176
- name: "Goerli Ether",
177
- symbol: "ETH",
178
- decimals: 18
179
- },
180
- rpcUrls: {
181
- alchemy: alchemyRpcUrls.optimismGoerli,
182
- default: publicRpcUrls.optimismGoerli,
183
- infura: infuraRpcUrls.optimismGoerli,
184
- public: publicRpcUrls.optimismGoerli
185
- },
186
- blockExplorers: {
187
- etherscan: etherscanBlockExplorers.optimismGoerli,
188
- default: etherscanBlockExplorers.optimismGoerli
189
- },
190
- multicall: {
191
- address: "0xca11bde05977b3631167028862be2a173976ca11",
192
- blockCreated: 49461
193
- },
194
- testnet: true
195
- };
196
- var polygon = {
197
- id: chainId.polygon,
198
- name: "Polygon",
199
- network: "matic",
200
- nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 },
201
- rpcUrls: {
202
- alchemy: alchemyRpcUrls.polygon,
203
- default: publicRpcUrls.polygon,
204
- infura: infuraRpcUrls.polygon,
205
- public: publicRpcUrls.polygon
206
- },
207
- blockExplorers: {
208
- etherscan: etherscanBlockExplorers.polygon,
209
- default: etherscanBlockExplorers.polygon
210
- },
211
- multicall: {
212
- address: "0xca11bde05977b3631167028862be2a173976ca11",
213
- blockCreated: 25770160
214
- }
215
- };
216
- var polygonMumbai = {
217
- id: chainId.polygonMumbai,
218
- name: "Polygon Mumbai",
219
- network: "maticmum",
220
- nativeCurrency: {
221
- name: "MATIC",
222
- symbol: "MATIC",
223
- decimals: 18
224
- },
225
- rpcUrls: {
226
- alchemy: alchemyRpcUrls.polygonMumbai,
227
- default: publicRpcUrls.polygonMumbai,
228
- infura: infuraRpcUrls.polygonMumbai,
229
- public: publicRpcUrls.polygonMumbai
230
- },
231
- blockExplorers: {
232
- etherscan: etherscanBlockExplorers.polygonMumbai,
233
- default: etherscanBlockExplorers.polygonMumbai
234
- },
235
- multicall: {
236
- address: "0xca11bde05977b3631167028862be2a173976ca11",
237
- blockCreated: 25444704
238
- },
239
- testnet: true
240
- };
241
- var arbitrum = {
242
- id: chainId.arbitrum,
243
- name: "Arbitrum One",
244
- network: "arbitrum",
245
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
246
- rpcUrls: {
247
- alchemy: alchemyRpcUrls.arbitrum,
248
- default: publicRpcUrls.arbitrum,
249
- infura: infuraRpcUrls.arbitrum,
250
- public: publicRpcUrls.arbitrum
251
- },
252
- blockExplorers: {
253
- arbitrum: {
254
- name: "Arbitrum Explorer",
255
- url: "https://explorer.arbitrum.io"
256
- },
257
- etherscan: etherscanBlockExplorers.arbitrum,
258
- default: etherscanBlockExplorers.arbitrum
259
- },
260
- multicall: {
261
- address: "0xca11bde05977b3631167028862be2a173976ca11",
262
- blockCreated: 7654707
263
- }
264
- };
265
- var arbitrumGoerli = {
266
- id: chainId.arbitrumGoerli,
267
- name: "Arbitrum Goerli",
268
- network: "arbitrum-goerli",
269
- nativeCurrency: {
270
- name: "Arbitrum Goerli Ether",
271
- symbol: "ETH",
272
- decimals: 18
273
- },
274
- rpcUrls: {
275
- alchemy: alchemyRpcUrls.arbitrumGoerli,
276
- default: publicRpcUrls.arbitrumGoerli,
277
- infura: infuraRpcUrls.arbitrumGoerli,
278
- public: publicRpcUrls.arbitrumGoerli
279
- },
280
- blockExplorers: {
281
- arbitrum: {
282
- name: "Arbitrum Explorer",
283
- url: "https://goerli-rollup-explorer.arbitrum.io"
284
- },
285
- etherscan: etherscanBlockExplorers.arbitrumGoerli,
286
- default: etherscanBlockExplorers.arbitrumGoerli
287
- },
288
- multicall: {
289
- address: "0xca11bde05977b3631167028862be2a173976ca11",
290
- blockCreated: 88114
291
- },
292
- testnet: true
293
- };
294
- var localhost = {
295
- id: chainId.localhost,
296
- name: "Localhost",
297
- network: "localhost",
298
- rpcUrls: {
299
- default: "http://127.0.0.1:8545"
300
- }
301
- };
302
- var hardhat = {
303
- id: chainId.hardhat,
304
- name: "Hardhat",
305
- network: "hardhat",
306
- rpcUrls: {
307
- default: "http://127.0.0.1:8545"
308
- }
309
- };
310
- var foundry = {
311
- id: chainId.foundry,
312
- name: "Foundry",
313
- network: "foundry",
314
- rpcUrls: {
315
- default: "http://127.0.0.1:8545"
316
- }
317
- };
318
- var chain = {
319
- mainnet,
320
- goerli,
321
- sepolia,
322
- optimism,
323
- optimismGoerli,
324
- polygon,
325
- polygonMumbai,
326
- arbitrum,
327
- arbitrumGoerli,
328
- localhost,
329
- hardhat,
330
- foundry
331
- };
332
- var allChains = [
333
- mainnet,
334
- goerli,
335
- sepolia,
336
- optimism,
337
- optimismGoerli,
338
- polygon,
339
- polygonMumbai,
340
- arbitrum,
341
- arbitrumGoerli,
342
- localhost,
343
- hardhat,
344
- foundry
345
- ];
346
- var defaultChains = [mainnet, goerli];
347
- var defaultL2Chains = [
348
- arbitrum,
349
- arbitrumGoerli,
350
- optimism,
351
- optimismGoerli
352
- ];
353
-
354
- export {
355
- etherscanBlockExplorers,
356
- alchemyRpcUrls,
357
- infuraRpcUrls,
358
- publicRpcUrls,
359
- chainId,
360
- mainnet,
361
- goerli,
362
- sepolia,
363
- optimism,
364
- optimismGoerli,
365
- polygon,
366
- polygonMumbai,
367
- arbitrum,
368
- arbitrumGoerli,
369
- localhost,
370
- hardhat,
371
- foundry,
372
- chain,
373
- allChains,
374
- defaultChains,
375
- defaultL2Chains
376
- };
package/dist/internal.js DELETED
@@ -1,8 +0,0 @@
1
- import {
2
- debounce
3
- } from "./chunk-HEIMP7HQ.js";
4
- import "./chunk-4DNFSL2K.js";
5
- import "./chunk-MQXBDTVK.js";
6
- export {
7
- debounce
8
- };