@wagmi/core 0.5.8 → 0.6.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.
- package/chains/dist/wagmi-core-chains.cjs.dev.js +2 -2
- package/chains/dist/wagmi-core-chains.cjs.prod.js +2 -2
- package/chains/dist/wagmi-core-chains.esm.js +2 -2
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.dev.js +11 -12
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.prod.js +11 -12
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.esm.js +11 -12
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.dev.js +4 -3
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.cjs.prod.js +4 -3
- package/connectors/metaMask/dist/wagmi-core-connectors-metaMask.esm.js +4 -3
- package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.dev.js +9 -13
- package/connectors/mock/dist/wagmi-core-connectors-mock.cjs.prod.js +9 -13
- package/connectors/mock/dist/wagmi-core-connectors-mock.esm.js +9 -13
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.dev.js +9 -11
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.cjs.prod.js +9 -11
- package/connectors/walletConnect/dist/wagmi-core-connectors-walletConnect.esm.js +9 -11
- package/dist/{chains-8c76af1b.esm.js → chains-2970e5fa.esm.js} +17 -11
- package/dist/{chains-ec1de502.cjs.dev.js → chains-45d5aa86.cjs.prod.js} +17 -11
- package/dist/{chains-789e0c2e.cjs.prod.js → chains-524f4950.cjs.dev.js} +17 -11
- package/dist/declarations/src/actions/accounts/fetchBalance.d.ts +4 -4
- package/dist/declarations/src/actions/accounts/fetchSigner.d.ts +5 -1
- package/dist/declarations/src/actions/accounts/index.d.ts +1 -1
- package/dist/declarations/src/actions/accounts/signMessage.d.ts +3 -5
- package/dist/declarations/src/actions/accounts/signTypedData.d.ts +19 -20
- package/dist/declarations/src/actions/accounts/watchSigner.d.ts +5 -3
- package/dist/declarations/src/actions/contracts/fetchToken.d.ts +5 -5
- package/dist/declarations/src/actions/contracts/getContract.d.ts +111 -8
- package/dist/declarations/src/actions/contracts/index.d.ts +5 -4
- package/dist/declarations/src/actions/contracts/multicall.d.ts +11 -15
- package/dist/declarations/src/actions/contracts/prepareWriteContract.d.ts +26 -16
- package/dist/declarations/src/actions/contracts/readContract.d.ts +12 -14
- package/dist/declarations/src/actions/contracts/readContracts.d.ts +25 -16
- package/dist/declarations/src/actions/contracts/watchContractEvent.d.ts +22 -8
- package/dist/declarations/src/actions/contracts/watchMulticall.d.ts +10 -0
- package/dist/declarations/src/actions/contracts/watchReadContract.d.ts +4 -3
- package/dist/declarations/src/actions/contracts/watchReadContracts.d.ts +7 -3
- package/dist/declarations/src/actions/contracts/writeContract.d.ts +43 -23
- package/dist/declarations/src/actions/ens/fetchEnsAddress.d.ts +1 -1
- package/dist/declarations/src/actions/ens/fetchEnsName.d.ts +2 -1
- package/dist/declarations/src/actions/index.d.ts +3 -3
- package/dist/declarations/src/actions/transactions/index.d.ts +0 -1
- package/dist/declarations/src/actions/transactions/prepareSendTransaction.d.ts +5 -4
- package/dist/declarations/src/actions/transactions/sendTransaction.d.ts +3 -2
- package/dist/declarations/src/actions/transactions/waitForTransaction.d.ts +2 -1
- package/dist/declarations/src/connectors/base.d.ts +5 -4
- package/dist/declarations/src/connectors/coinbaseWallet.d.ts +5 -3
- package/dist/declarations/src/connectors/injected.d.ts +10 -9
- package/dist/declarations/src/connectors/metaMask.d.ts +1 -1
- package/dist/declarations/src/connectors/mock/connector.d.ts +1 -1
- package/dist/declarations/src/connectors/mock/provider.d.ts +1 -1
- package/dist/declarations/src/connectors/walletConnect.d.ts +2 -2
- package/dist/declarations/src/constants/abis.d.ts +421 -2
- package/dist/declarations/src/constants/blockExplorers.d.ts +1 -1
- package/dist/declarations/src/constants/index.d.ts +1 -2
- package/dist/declarations/src/errors.d.ts +8 -8
- package/dist/declarations/src/index.d.ts +4 -3
- package/dist/declarations/src/internal.d.ts +2 -0
- package/dist/declarations/src/types/contracts.d.ts +241 -0
- package/dist/declarations/src/types/index.d.ts +31 -9
- package/dist/declarations/src/types/utils.d.ts +103 -0
- package/dist/declarations/src/utils/assertActiveChain.d.ts +3 -0
- package/dist/declarations/src/utils/configureChains.d.ts +3 -5
- package/dist/declarations/src/utils/index.d.ts +2 -0
- package/dist/declarations/src/utils/minimizeContractInterface.d.ts +5 -5
- package/dist/declarations/src/utils/normalizeFunctionName.d.ts +17 -0
- package/dist/declarations/src/utils/parseContractResult.d.ts +4 -4
- package/dist/{getProvider-5b4b62c3.esm.js → getProvider-24ec6544.esm.js} +49 -50
- package/dist/{getProvider-1b3eeda8.cjs.dev.js → getProvider-ed469b94.cjs.prod.js} +48 -49
- package/dist/{getProvider-ad4ce6a4.cjs.prod.js → getProvider-f6f17fa1.cjs.dev.js} +48 -49
- package/dist/{rpcs-d2cd65f1.cjs.dev.js → rpcs-0d21dfe8.cjs.dev.js} +5 -5
- package/dist/{rpcs-8d636858.esm.js → rpcs-b4aa70b9.esm.js} +6 -6
- package/dist/{rpcs-edec227e.cjs.prod.js → rpcs-c62bf9b0.cjs.prod.js} +5 -5
- package/dist/wagmi-core.cjs.dev.js +847 -395
- package/dist/wagmi-core.cjs.prod.js +847 -395
- package/dist/wagmi-core.esm.js +849 -397
- package/package.json +3 -2
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.dev.js +2 -2
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.prod.js +2 -2
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.esm.js +2 -2
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.dev.js +2 -2
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.prod.js +2 -2
- package/providers/infura/dist/wagmi-core-providers-infura.esm.js +2 -2
- package/dist/declarations/src/actions/contracts/deprecatedWriteContract.d.ts +0 -16
- package/dist/declarations/src/actions/transactions/deprecatedSendTransaction.d.ts +0 -12
- package/dist/declarations/src/constants/multicall.d.ts +0 -25
- package/providers/coinbaseNode/dist/wagmi-core-providers-coinbaseNode.cjs.d.ts +0 -11
- package/providers/coinbaseNode/dist/wagmi-core-providers-coinbaseNode.cjs.js +0 -16
|
@@ -1,4 +1,150 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* [ERC-20 Token Standard](https://ethereum.org/en/developers/docs/standards/tokens/erc-20)
|
|
3
|
+
*/
|
|
4
|
+
export declare const erc20ABI: readonly [{
|
|
5
|
+
readonly type: "event";
|
|
6
|
+
readonly name: "Approval";
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly name: "owner";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly indexed: true;
|
|
13
|
+
readonly name: "spender";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
}, {
|
|
16
|
+
readonly indexed: false;
|
|
17
|
+
readonly name: "value";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}];
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "event";
|
|
22
|
+
readonly name: "Transfer";
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly indexed: true;
|
|
25
|
+
readonly name: "from";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly name: "to";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly indexed: false;
|
|
33
|
+
readonly name: "value";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}];
|
|
36
|
+
}, {
|
|
37
|
+
readonly type: "function";
|
|
38
|
+
readonly name: "allowance";
|
|
39
|
+
readonly stateMutability: "view";
|
|
40
|
+
readonly inputs: readonly [{
|
|
41
|
+
readonly name: "owner";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "spender";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}];
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly name: "approve";
|
|
54
|
+
readonly stateMutability: "nonpayable";
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly name: "spender";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "amount";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}];
|
|
62
|
+
readonly outputs: readonly [{
|
|
63
|
+
readonly name: "";
|
|
64
|
+
readonly type: "bool";
|
|
65
|
+
}];
|
|
66
|
+
}, {
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
readonly name: "balanceOf";
|
|
69
|
+
readonly stateMutability: "view";
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly name: "account";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}];
|
|
74
|
+
readonly outputs: readonly [{
|
|
75
|
+
readonly name: "";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
}];
|
|
78
|
+
}, {
|
|
79
|
+
readonly type: "function";
|
|
80
|
+
readonly name: "decimals";
|
|
81
|
+
readonly stateMutability: "view";
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "uint8";
|
|
86
|
+
}];
|
|
87
|
+
}, {
|
|
88
|
+
readonly type: "function";
|
|
89
|
+
readonly name: "name";
|
|
90
|
+
readonly stateMutability: "view";
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly outputs: readonly [{
|
|
93
|
+
readonly name: "";
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
}];
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "function";
|
|
98
|
+
readonly name: "symbol";
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly outputs: readonly [{
|
|
102
|
+
readonly name: "";
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
}];
|
|
105
|
+
}, {
|
|
106
|
+
readonly type: "function";
|
|
107
|
+
readonly name: "totalSupply";
|
|
108
|
+
readonly stateMutability: "view";
|
|
109
|
+
readonly inputs: readonly [];
|
|
110
|
+
readonly outputs: readonly [{
|
|
111
|
+
readonly name: "";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
}];
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
readonly name: "transfer";
|
|
117
|
+
readonly stateMutability: "nonpayable";
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly name: "recipient";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "amount";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}];
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly name: "";
|
|
127
|
+
readonly type: "bool";
|
|
128
|
+
}];
|
|
129
|
+
}, {
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
readonly name: "transferFrom";
|
|
132
|
+
readonly stateMutability: "nonpayable";
|
|
133
|
+
readonly inputs: readonly [{
|
|
134
|
+
readonly name: "sender";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "recipient";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "amount";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}];
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly name: "";
|
|
145
|
+
readonly type: "bool";
|
|
146
|
+
}];
|
|
147
|
+
}];
|
|
2
148
|
/**
|
|
3
149
|
* [bytes32-flavored ERC-20](https://docs.makerdao.com/smart-contract-modules/mkr-module#4.-gotchas-potential-source-of-user-error)
|
|
4
150
|
* for tokens (ie. Maker) that use bytes32 instead of string.
|
|
@@ -147,4 +293,277 @@ export declare const erc20ABI_bytes32: readonly [{
|
|
|
147
293
|
readonly type: "bool";
|
|
148
294
|
}];
|
|
149
295
|
}];
|
|
150
|
-
|
|
296
|
+
/**
|
|
297
|
+
* [ERC-721 Non-Fungible Token Standard](https://ethereum.org/en/developers/docs/standards/tokens/erc-721)
|
|
298
|
+
*/
|
|
299
|
+
export declare const erc721ABI: readonly [{
|
|
300
|
+
readonly type: "event";
|
|
301
|
+
readonly name: "Approval";
|
|
302
|
+
readonly inputs: readonly [{
|
|
303
|
+
readonly indexed: true;
|
|
304
|
+
readonly name: "owner";
|
|
305
|
+
readonly type: "address";
|
|
306
|
+
}, {
|
|
307
|
+
readonly indexed: true;
|
|
308
|
+
readonly name: "spender";
|
|
309
|
+
readonly type: "address";
|
|
310
|
+
}, {
|
|
311
|
+
readonly indexed: true;
|
|
312
|
+
readonly name: "tokenId";
|
|
313
|
+
readonly type: "uint256";
|
|
314
|
+
}];
|
|
315
|
+
}, {
|
|
316
|
+
readonly type: "event";
|
|
317
|
+
readonly name: "ApprovalForAll";
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly indexed: true;
|
|
320
|
+
readonly name: "owner";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
}, {
|
|
323
|
+
readonly indexed: true;
|
|
324
|
+
readonly name: "operator";
|
|
325
|
+
readonly type: "address";
|
|
326
|
+
}, {
|
|
327
|
+
readonly indexed: false;
|
|
328
|
+
readonly name: "approved";
|
|
329
|
+
readonly type: "bool";
|
|
330
|
+
}];
|
|
331
|
+
}, {
|
|
332
|
+
readonly type: "event";
|
|
333
|
+
readonly name: "Transfer";
|
|
334
|
+
readonly inputs: readonly [{
|
|
335
|
+
readonly indexed: true;
|
|
336
|
+
readonly name: "from";
|
|
337
|
+
readonly type: "address";
|
|
338
|
+
}, {
|
|
339
|
+
readonly indexed: true;
|
|
340
|
+
readonly name: "to";
|
|
341
|
+
readonly type: "address";
|
|
342
|
+
}, {
|
|
343
|
+
readonly indexed: true;
|
|
344
|
+
readonly name: "tokenId";
|
|
345
|
+
readonly type: "uint256";
|
|
346
|
+
}];
|
|
347
|
+
}, {
|
|
348
|
+
readonly type: "function";
|
|
349
|
+
readonly name: "approve";
|
|
350
|
+
readonly stateMutability: "payable";
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly name: "spender";
|
|
353
|
+
readonly type: "address";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "tokenId";
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
}];
|
|
358
|
+
readonly outputs: readonly [];
|
|
359
|
+
}, {
|
|
360
|
+
readonly type: "function";
|
|
361
|
+
readonly name: "balanceOf";
|
|
362
|
+
readonly stateMutability: "view";
|
|
363
|
+
readonly inputs: readonly [{
|
|
364
|
+
readonly name: "account";
|
|
365
|
+
readonly type: "address";
|
|
366
|
+
}];
|
|
367
|
+
readonly outputs: readonly [{
|
|
368
|
+
readonly name: "";
|
|
369
|
+
readonly type: "uint256";
|
|
370
|
+
}];
|
|
371
|
+
}, {
|
|
372
|
+
readonly type: "function";
|
|
373
|
+
readonly name: "getApproved";
|
|
374
|
+
readonly stateMutability: "view";
|
|
375
|
+
readonly inputs: readonly [{
|
|
376
|
+
readonly name: "tokenId";
|
|
377
|
+
readonly type: "uint256";
|
|
378
|
+
}];
|
|
379
|
+
readonly outputs: readonly [{
|
|
380
|
+
readonly name: "";
|
|
381
|
+
readonly type: "address";
|
|
382
|
+
}];
|
|
383
|
+
}, {
|
|
384
|
+
readonly type: "function";
|
|
385
|
+
readonly name: "isApprovedForAll";
|
|
386
|
+
readonly stateMutability: "view";
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly name: "owner";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "operator";
|
|
392
|
+
readonly type: "address";
|
|
393
|
+
}];
|
|
394
|
+
readonly outputs: readonly [{
|
|
395
|
+
readonly name: "";
|
|
396
|
+
readonly type: "bool";
|
|
397
|
+
}];
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "function";
|
|
400
|
+
readonly name: "name";
|
|
401
|
+
readonly stateMutability: "view";
|
|
402
|
+
readonly inputs: readonly [];
|
|
403
|
+
readonly outputs: readonly [{
|
|
404
|
+
readonly name: "";
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
}];
|
|
407
|
+
}, {
|
|
408
|
+
readonly type: "function";
|
|
409
|
+
readonly name: "ownerOf";
|
|
410
|
+
readonly stateMutability: "view";
|
|
411
|
+
readonly inputs: readonly [{
|
|
412
|
+
readonly name: "tokenId";
|
|
413
|
+
readonly type: "uint256";
|
|
414
|
+
}];
|
|
415
|
+
readonly outputs: readonly [{
|
|
416
|
+
readonly name: "owner";
|
|
417
|
+
readonly type: "address";
|
|
418
|
+
}];
|
|
419
|
+
}, {
|
|
420
|
+
readonly type: "function";
|
|
421
|
+
readonly name: "safeTransferFrom";
|
|
422
|
+
readonly stateMutability: "payable";
|
|
423
|
+
readonly inputs: readonly [{
|
|
424
|
+
readonly name: "from";
|
|
425
|
+
readonly type: "address";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "to";
|
|
428
|
+
readonly type: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "tokenId";
|
|
431
|
+
readonly type: "uint256";
|
|
432
|
+
}];
|
|
433
|
+
readonly outputs: readonly [];
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "function";
|
|
436
|
+
readonly name: "safeTransferFrom";
|
|
437
|
+
readonly stateMutability: "nonpayable";
|
|
438
|
+
readonly inputs: readonly [{
|
|
439
|
+
readonly name: "from";
|
|
440
|
+
readonly type: "address";
|
|
441
|
+
}, {
|
|
442
|
+
readonly name: "to";
|
|
443
|
+
readonly type: "address";
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "id";
|
|
446
|
+
readonly type: "uint256";
|
|
447
|
+
}, {
|
|
448
|
+
readonly name: "data";
|
|
449
|
+
readonly type: "bytes";
|
|
450
|
+
}];
|
|
451
|
+
readonly outputs: readonly [];
|
|
452
|
+
}, {
|
|
453
|
+
readonly type: "function";
|
|
454
|
+
readonly name: "setApprovalForAll";
|
|
455
|
+
readonly stateMutability: "nonpayable";
|
|
456
|
+
readonly inputs: readonly [{
|
|
457
|
+
readonly name: "operator";
|
|
458
|
+
readonly type: "address";
|
|
459
|
+
}, {
|
|
460
|
+
readonly name: "approved";
|
|
461
|
+
readonly type: "bool";
|
|
462
|
+
}];
|
|
463
|
+
readonly outputs: readonly [];
|
|
464
|
+
}, {
|
|
465
|
+
readonly type: "function";
|
|
466
|
+
readonly name: "symbol";
|
|
467
|
+
readonly stateMutability: "view";
|
|
468
|
+
readonly inputs: readonly [];
|
|
469
|
+
readonly outputs: readonly [{
|
|
470
|
+
readonly name: "";
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
}];
|
|
473
|
+
}, {
|
|
474
|
+
readonly type: "function";
|
|
475
|
+
readonly name: "tokenByIndex";
|
|
476
|
+
readonly stateMutability: "view";
|
|
477
|
+
readonly inputs: readonly [{
|
|
478
|
+
readonly name: "index";
|
|
479
|
+
readonly type: "uint256";
|
|
480
|
+
}];
|
|
481
|
+
readonly outputs: readonly [{
|
|
482
|
+
readonly name: "";
|
|
483
|
+
readonly type: "uint256";
|
|
484
|
+
}];
|
|
485
|
+
}, {
|
|
486
|
+
readonly type: "function";
|
|
487
|
+
readonly name: "tokenByIndex";
|
|
488
|
+
readonly stateMutability: "view";
|
|
489
|
+
readonly inputs: readonly [{
|
|
490
|
+
readonly name: "owner";
|
|
491
|
+
readonly type: "address";
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "index";
|
|
494
|
+
readonly type: "uint256";
|
|
495
|
+
}];
|
|
496
|
+
readonly outputs: readonly [{
|
|
497
|
+
readonly name: "tokenId";
|
|
498
|
+
readonly type: "uint256";
|
|
499
|
+
}];
|
|
500
|
+
}, {
|
|
501
|
+
readonly type: "function";
|
|
502
|
+
readonly name: "tokenURI";
|
|
503
|
+
readonly stateMutability: "view";
|
|
504
|
+
readonly inputs: readonly [{
|
|
505
|
+
readonly name: "tokenId";
|
|
506
|
+
readonly type: "uint256";
|
|
507
|
+
}];
|
|
508
|
+
readonly outputs: readonly [{
|
|
509
|
+
readonly name: "";
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
}];
|
|
512
|
+
}, {
|
|
513
|
+
readonly type: "function";
|
|
514
|
+
readonly name: "totalSupply";
|
|
515
|
+
readonly stateMutability: "view";
|
|
516
|
+
readonly inputs: readonly [];
|
|
517
|
+
readonly outputs: readonly [{
|
|
518
|
+
readonly name: "";
|
|
519
|
+
readonly type: "uint256";
|
|
520
|
+
}];
|
|
521
|
+
}, {
|
|
522
|
+
readonly type: "function";
|
|
523
|
+
readonly name: "transferFrom";
|
|
524
|
+
readonly stateMutability: "payable";
|
|
525
|
+
readonly inputs: readonly [{
|
|
526
|
+
readonly name: "sender";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
}, {
|
|
529
|
+
readonly name: "recipient";
|
|
530
|
+
readonly type: "address";
|
|
531
|
+
}, {
|
|
532
|
+
readonly name: "tokeId";
|
|
533
|
+
readonly type: "uint256";
|
|
534
|
+
}];
|
|
535
|
+
readonly outputs: readonly [];
|
|
536
|
+
}];
|
|
537
|
+
/**
|
|
538
|
+
* [Multicall3](https://github.com/mds1/multicall)
|
|
539
|
+
*/
|
|
540
|
+
export declare const multicallABI: readonly [{
|
|
541
|
+
readonly inputs: readonly [{
|
|
542
|
+
readonly components: readonly [{
|
|
543
|
+
readonly name: "target";
|
|
544
|
+
readonly type: "address";
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "allowFailure";
|
|
547
|
+
readonly type: "bool";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "callData";
|
|
550
|
+
readonly type: "bytes";
|
|
551
|
+
}];
|
|
552
|
+
readonly name: "calls";
|
|
553
|
+
readonly type: "tuple[]";
|
|
554
|
+
}];
|
|
555
|
+
readonly name: "aggregate3";
|
|
556
|
+
readonly outputs: readonly [{
|
|
557
|
+
readonly components: readonly [{
|
|
558
|
+
readonly name: "success";
|
|
559
|
+
readonly type: "bool";
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "returnData";
|
|
562
|
+
readonly type: "bytes";
|
|
563
|
+
}];
|
|
564
|
+
readonly name: "returnData";
|
|
565
|
+
readonly type: "tuple[]";
|
|
566
|
+
}];
|
|
567
|
+
readonly stateMutability: "view";
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
}];
|
|
@@ -4,6 +4,6 @@ export declare type BlockExplorer = {
|
|
|
4
4
|
name: string;
|
|
5
5
|
url: string;
|
|
6
6
|
};
|
|
7
|
-
declare type EtherscanChains = Extract<ChainName, 'mainnet' | 'ropsten' | 'rinkeby' | 'goerli' | 'kovan' | 'sepolia' | 'optimism' | 'optimismKovan' | 'polygon' | 'polygonMumbai' | 'arbitrum' | 'arbitrumRinkeby'>;
|
|
7
|
+
declare type EtherscanChains = Extract<ChainName, 'mainnet' | 'ropsten' | 'rinkeby' | 'goerli' | 'kovan' | 'sepolia' | 'optimism' | 'optimismKovan' | 'polygon' | 'polygonMumbai' | 'arbitrum' | 'arbitrumRinkeby' | 'arbitrumGoerli'>;
|
|
8
8
|
export declare const etherscanBlockExplorers: Record<EtherscanChains, BlockExplorer>;
|
|
9
9
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { erc20ABI, erc20ABI_bytes32, erc721ABI } from './abis';
|
|
1
|
+
export { erc20ABI, erc20ABI_bytes32, erc721ABI, multicallABI } from './abis';
|
|
2
2
|
export { etherscanBlockExplorers } from './blockExplorers';
|
|
3
3
|
export type { BlockExplorer, BlockExplorerName } from './blockExplorers';
|
|
4
4
|
export { chain, chainId, allChains, defaultChains, defaultL2Chains, } from './chains';
|
|
5
|
-
export { multicallInterface } from './multicall';
|
|
6
5
|
export { alchemyRpcUrls, defaultAlchemyApiKey, defaultInfuraApiKey, infuraRpcUrls, publicRpcUrls, } from './rpcs';
|
|
7
6
|
export type { RpcProviderName } from './rpcs';
|
|
8
7
|
export { units } from './units';
|
|
@@ -72,16 +72,16 @@ export declare class ConnectorNotFoundError extends Error {
|
|
|
72
72
|
}
|
|
73
73
|
export declare class ContractMethodDoesNotExistError extends Error {
|
|
74
74
|
name: string;
|
|
75
|
-
constructor({
|
|
76
|
-
|
|
75
|
+
constructor({ address, chainId, functionName, }: {
|
|
76
|
+
address: string;
|
|
77
77
|
chainId?: number;
|
|
78
78
|
functionName: string;
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
export declare class ContractMethodNoResultError extends Error {
|
|
82
82
|
name: string;
|
|
83
|
-
constructor({
|
|
84
|
-
|
|
83
|
+
constructor({ address, args, chainId, functionName, }: {
|
|
84
|
+
address: string;
|
|
85
85
|
args: any;
|
|
86
86
|
chainId: number;
|
|
87
87
|
functionName: string;
|
|
@@ -89,8 +89,8 @@ export declare class ContractMethodNoResultError extends Error {
|
|
|
89
89
|
}
|
|
90
90
|
export declare class ContractMethodRevertedError extends Error {
|
|
91
91
|
name: string;
|
|
92
|
-
constructor({
|
|
93
|
-
|
|
92
|
+
constructor({ address, args, chainId, functionName, errorMessage, }: {
|
|
93
|
+
address: string;
|
|
94
94
|
args: any;
|
|
95
95
|
chainId: number;
|
|
96
96
|
functionName: string;
|
|
@@ -99,8 +99,8 @@ export declare class ContractMethodRevertedError extends Error {
|
|
|
99
99
|
}
|
|
100
100
|
export declare class ContractResultDecodeError extends Error {
|
|
101
101
|
name: string;
|
|
102
|
-
constructor({
|
|
103
|
-
|
|
102
|
+
constructor({ address, args, chainId, functionName, errorMessage, }: {
|
|
103
|
+
address: string;
|
|
104
104
|
args: any;
|
|
105
105
|
chainId: number;
|
|
106
106
|
functionName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { connect,
|
|
2
|
-
export type { ConnectArgs, ConnectResult,
|
|
1
|
+
export { connect, disconnect, fetchBalance, fetchBlockNumber, fetchEnsAddress, fetchEnsAvatar, fetchEnsName, fetchEnsResolver, fetchFeeData, fetchSigner, fetchToken, fetchTransaction, getAccount, getContract, getNetwork, getProvider, getWebSocketProvider, multicall, prepareWriteContract, prepareSendTransaction, readContract, readContracts, sendTransaction, signMessage, signTypedData, switchNetwork, waitForTransaction, watchAccount, watchBlockNumber, watchContractEvent, watchMulticall, watchNetwork, watchProvider, watchReadContract, watchReadContracts, watchSigner, watchWebSocketProvider, writeContract, } from './actions';
|
|
2
|
+
export type { ConnectArgs, ConnectResult, FetchBalanceArgs, FetchBalanceResult, FetchBlockNumberArgs, FetchBlockNumberResult, FetchEnsAddressArgs, FetchEnsAddressResult, FetchEnsAvatarArgs, FetchEnsAvatarResult, FetchEnsNameArgs, FetchEnsNameResult, FetchEnsResolverArgs, FetchEnsResolverResult, FetchFeeDataArgs, FetchFeeDataResult, FetchSignerArgs, FetchSignerResult, FetchTokenArgs, FetchTokenResult, FetchTransactionArgs, FetchTransactionResult, GetAccountResult, GetContractArgs, GetContractResult, GetNetworkResult, GetProviderArgs, GetProviderResult, GetWebSocketProviderArgs, GetWebSocketProviderResult, MulticallConfig, MulticallResult, PrepareWriteContractConfig, PrepareWriteContractResult, PrepareSendTransactionArgs, PrepareSendTransactionResult, ReadContractConfig, ReadContractResult, ReadContractsConfig, ReadContractsResult, SendTransactionArgs, SendTransactionPreparedRequest, SendTransactionResult, SendTransactionUnpreparedRequest, SignMessageArgs, SignMessageResult, SignTypedDataArgs, SignTypedDataResult, SwitchNetworkArgs, SwitchNetworkResult, WaitForTransactionArgs, WaitForTransactionResult, WatchAccountCallback, WatchBlockNumberArgs, WatchBlockNumberCallback, WatchMulticallConfig, WatchMulticallCallback, WatchNetworkCallback, WatchReadContractConfig, WatchReadContractCallback, WatchReadContractsConfig, WatchReadContractsCallback, WatchProviderCallback, WatchSignerCallback, WatchWebSocketProviderCallback, WriteContractArgs, WriteContractPreparedArgs, WriteContractResult, WriteContractUnpreparedArgs, } from './actions';
|
|
3
3
|
export { createClient, Client } from './client';
|
|
4
4
|
export type { ClientConfig } from './client';
|
|
5
5
|
export { Connector, InjectedConnector } from './connectors';
|
|
@@ -8,6 +8,7 @@ export { alchemyRpcUrls, allChains, chain, chainId, defaultChains, defaultL2Chai
|
|
|
8
8
|
export { AddChainError, ChainDoesNotSupportMulticallError, ChainMismatchError, ChainNotConfiguredError, ConnectorAlreadyConnectedError, ConnectorNotFoundError, ContractMethodDoesNotExistError, ContractMethodNoResultError, ContractMethodRevertedError, ContractResultDecodeError, ProviderChainsNotFound, ProviderRpcError, ResourceUnavailableError, RpcError, SwitchChainError, SwitchChainNotSupportedError, UserRejectedRequestError, } from './errors';
|
|
9
9
|
export { createStorage, noopStorage } from './storage';
|
|
10
10
|
export type { ClientStorage as Storage } from './storage';
|
|
11
|
-
export type { Chain, ChainProviderFn, Ethereum, FallbackProviderConfig, ProviderWithFallbackConfig, Provider, Signer, Unit, WebSocketProvider, } from './types';
|
|
11
|
+
export type { Chain, ChainProviderFn, Ethereum, FallbackProviderConfig, Hash, ProviderWithFallbackConfig, Provider, Signer, Unit, WebSocketProvider, } from './types';
|
|
12
|
+
export type { Address } from 'abitype';
|
|
12
13
|
export { configureChains, deepEqual, minimizeContractInterface, normalizeChainId, parseContractResult, } from './utils';
|
|
13
14
|
export type { ConfigureChainsConfig } from './utils';
|