viem 1.4.1 → 1.5.0
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/README.md +6 -0
- package/dist/cjs/accounts/index.js +1 -1
- package/dist/cjs/accounts/index.js.map +1 -1
- package/dist/cjs/accounts/utils/signMessage.js +1 -1
- package/dist/cjs/accounts/utils/signMessage.js.map +1 -1
- package/dist/cjs/accounts/utils/signTypedData.js +1 -1
- package/dist/cjs/accounts/utils/signTypedData.js.map +1 -1
- package/dist/cjs/actions/index.js.map +1 -1
- package/dist/cjs/actions/public/createContractEventFilter.js.map +1 -1
- package/dist/cjs/actions/public/createEventFilter.js +16 -8
- package/dist/cjs/actions/public/createEventFilter.js.map +1 -1
- package/dist/cjs/actions/public/getBlock.js +3 -1
- package/dist/cjs/actions/public/getBlock.js.map +1 -1
- package/dist/cjs/actions/public/getBlockNumber.js +2 -2
- package/dist/cjs/actions/public/getBlockNumber.js.map +1 -1
- package/dist/cjs/actions/public/getFilterChanges.js.map +1 -1
- package/dist/cjs/actions/public/getFilterLogs.js +1 -1
- package/dist/cjs/actions/public/getFilterLogs.js.map +1 -1
- package/dist/cjs/actions/public/getLogs.js +16 -10
- package/dist/cjs/actions/public/getLogs.js.map +1 -1
- package/dist/cjs/actions/public/getTransaction.js +2 -1
- package/dist/cjs/actions/public/getTransaction.js.map +1 -1
- package/dist/cjs/actions/public/watchBlockNumber.js +1 -1
- package/dist/cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/dist/cjs/actions/public/watchBlocks.js +2 -1
- package/dist/cjs/actions/public/watchBlocks.js.map +1 -1
- package/dist/cjs/actions/public/watchContractEvent.js.map +1 -1
- package/dist/cjs/actions/public/watchEvent.js +4 -2
- package/dist/cjs/actions/public/watchEvent.js.map +1 -1
- package/dist/cjs/clients/createClient.js +2 -1
- package/dist/cjs/clients/createClient.js.map +1 -1
- package/dist/cjs/clients/createPublicClient.js.map +1 -1
- package/dist/cjs/clients/createTestClient.js.map +1 -1
- package/dist/cjs/clients/createWalletClient.js.map +1 -1
- package/dist/cjs/clients/decorators/public.js.map +1 -1
- package/dist/cjs/constants/number.js +101 -0
- package/dist/cjs/constants/number.js.map +1 -0
- package/dist/cjs/contract.js.map +1 -1
- package/dist/cjs/errors/abi.js +8 -1
- package/dist/cjs/errors/abi.js.map +1 -1
- package/dist/cjs/errors/contract.js +56 -32
- package/dist/cjs/errors/contract.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/index.js +110 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/public.js.map +1 -1
- package/dist/cjs/utils/formatters/block.js.map +1 -1
- package/dist/cjs/utils/formatters/formatter.js +1 -0
- package/dist/cjs/utils/formatters/formatter.js.map +1 -1
- package/dist/cjs/utils/formatters/transaction.js.map +1 -1
- package/dist/cjs/utils/promise/withCache.js +3 -3
- package/dist/cjs/utils/promise/withCache.js.map +1 -1
- package/dist/cjs/utils/signature/hexToSignature.js +12 -0
- package/dist/cjs/utils/signature/hexToSignature.js.map +1 -0
- package/dist/cjs/utils/signature/signatureToHex.js.map +1 -0
- package/dist/esm/accounts/index.js +1 -1
- package/dist/esm/accounts/index.js.map +1 -1
- package/dist/esm/accounts/utils/signMessage.js +1 -1
- package/dist/esm/accounts/utils/signMessage.js.map +1 -1
- package/dist/esm/accounts/utils/signTypedData.js +1 -1
- package/dist/esm/accounts/utils/signTypedData.js.map +1 -1
- package/dist/esm/actions/index.js.map +1 -1
- package/dist/esm/actions/public/createContractEventFilter.js.map +1 -1
- package/dist/esm/actions/public/createEventFilter.js +16 -8
- package/dist/esm/actions/public/createEventFilter.js.map +1 -1
- package/dist/esm/actions/public/getBlock.js +3 -1
- package/dist/esm/actions/public/getBlock.js.map +1 -1
- package/dist/esm/actions/public/getBlockNumber.js +2 -2
- package/dist/esm/actions/public/getBlockNumber.js.map +1 -1
- package/dist/esm/actions/public/getFilterChanges.js.map +1 -1
- package/dist/esm/actions/public/getFilterLogs.js +1 -1
- package/dist/esm/actions/public/getFilterLogs.js.map +1 -1
- package/dist/esm/actions/public/getLogs.js +16 -10
- package/dist/esm/actions/public/getLogs.js.map +1 -1
- package/dist/esm/actions/public/getTransaction.js +2 -1
- package/dist/esm/actions/public/getTransaction.js.map +1 -1
- package/dist/esm/actions/public/watchBlockNumber.js +1 -1
- package/dist/esm/actions/public/watchBlockNumber.js.map +1 -1
- package/dist/esm/actions/public/watchBlocks.js +2 -1
- package/dist/esm/actions/public/watchBlocks.js.map +1 -1
- package/dist/esm/actions/public/watchContractEvent.js.map +1 -1
- package/dist/esm/actions/public/watchEvent.js +4 -2
- package/dist/esm/actions/public/watchEvent.js.map +1 -1
- package/dist/esm/clients/createClient.js +2 -1
- package/dist/esm/clients/createClient.js.map +1 -1
- package/dist/esm/clients/createPublicClient.js.map +1 -1
- package/dist/esm/clients/createTestClient.js.map +1 -1
- package/dist/esm/clients/createWalletClient.js.map +1 -1
- package/dist/esm/clients/decorators/public.js.map +1 -1
- package/dist/esm/constants/number.js +97 -0
- package/dist/esm/constants/number.js.map +1 -0
- package/dist/esm/contract.js.map +1 -1
- package/dist/esm/errors/abi.js +8 -1
- package/dist/esm/errors/abi.js.map +1 -1
- package/dist/esm/errors/contract.js +56 -32
- package/dist/esm/errors/contract.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/public.js.map +1 -1
- package/dist/esm/utils/formatters/block.js.map +1 -1
- package/dist/esm/utils/formatters/formatter.js +1 -0
- package/dist/esm/utils/formatters/formatter.js.map +1 -1
- package/dist/esm/utils/formatters/transaction.js.map +1 -1
- package/dist/esm/utils/promise/withCache.js +3 -3
- package/dist/esm/utils/promise/withCache.js.map +1 -1
- package/dist/esm/utils/signature/hexToSignature.js +18 -0
- package/dist/esm/utils/signature/hexToSignature.js.map +1 -0
- package/dist/esm/utils/signature/signatureToHex.js +21 -0
- package/dist/esm/utils/signature/signatureToHex.js.map +1 -0
- package/dist/types/accounts/index.d.ts +1 -1
- package/dist/types/accounts/index.d.ts.map +1 -1
- package/dist/types/actions/index.d.ts +5 -1
- package/dist/types/actions/index.d.ts.map +1 -1
- package/dist/types/actions/public/createContractEventFilter.d.ts +5 -5
- package/dist/types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/dist/types/actions/public/createEventFilter.d.ts +20 -7
- package/dist/types/actions/public/createEventFilter.d.ts.map +1 -1
- package/dist/types/actions/public/getBlock.d.ts +5 -5
- package/dist/types/actions/public/getBlock.d.ts.map +1 -1
- package/dist/types/actions/public/getBlockNumber.d.ts +4 -2
- package/dist/types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/public/getFilterChanges.d.ts +5 -8
- package/dist/types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/dist/types/actions/public/getFilterLogs.d.ts +5 -4
- package/dist/types/actions/public/getFilterLogs.d.ts.map +1 -1
- package/dist/types/actions/public/getLogs.d.ts +17 -6
- package/dist/types/actions/public/getLogs.d.ts.map +1 -1
- package/dist/types/actions/public/getTransaction.d.ts +4 -4
- package/dist/types/actions/public/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/public/watchBlocks.d.ts +10 -10
- package/dist/types/actions/public/watchBlocks.d.ts.map +1 -1
- package/dist/types/actions/public/watchContractEvent.d.ts +3 -3
- package/dist/types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/public/watchEvent.d.ts +19 -8
- package/dist/types/actions/public/watchEvent.d.ts.map +1 -1
- package/dist/types/chains/formatters/celo.d.ts +4 -0
- package/dist/types/chains/formatters/celo.d.ts.map +1 -1
- package/dist/types/chains/formatters/optimism.d.ts +5 -3
- package/dist/types/chains/formatters/optimism.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +44 -12
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/clients/createClient.d.ts +7 -0
- package/dist/types/clients/createClient.d.ts.map +1 -1
- package/dist/types/clients/createPublicClient.d.ts +1 -1
- package/dist/types/clients/createPublicClient.d.ts.map +1 -1
- package/dist/types/clients/createTestClient.d.ts +1 -1
- package/dist/types/clients/createTestClient.d.ts.map +1 -1
- package/dist/types/clients/createWalletClient.d.ts +1 -1
- package/dist/types/clients/createWalletClient.d.ts.map +1 -1
- package/dist/types/clients/decorators/public.d.ts +10 -9
- package/dist/types/clients/decorators/public.d.ts.map +1 -1
- package/dist/types/constants/number.d.ts +97 -0
- package/dist/types/constants/number.d.ts.map +1 -0
- package/dist/types/contract.d.ts +5 -1
- package/dist/types/contract.d.ts.map +1 -1
- package/dist/types/errors/abi.d.ts +1 -0
- package/dist/types/errors/abi.d.ts.map +1 -1
- package/dist/types/errors/contract.d.ts +1 -0
- package/dist/types/errors/contract.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/index.d.ts +10 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/public.d.ts +5 -1
- package/dist/types/public.d.ts.map +1 -1
- package/dist/types/types/block.d.ts +7 -7
- package/dist/types/types/block.d.ts.map +1 -1
- package/dist/types/types/contract.d.ts +1 -1
- package/dist/types/types/contract.d.ts.map +1 -1
- package/dist/types/types/filter.d.ts +7 -3
- package/dist/types/types/filter.d.ts.map +1 -1
- package/dist/types/types/formatter.d.ts +3 -0
- package/dist/types/types/formatter.d.ts.map +1 -1
- package/dist/types/types/log.d.ts +8 -8
- package/dist/types/types/log.d.ts.map +1 -1
- package/dist/types/types/misc.d.ts.map +1 -1
- package/dist/types/types/rpc.d.ts +3 -3
- package/dist/types/types/rpc.d.ts.map +1 -1
- package/dist/types/types/transaction.d.ts +8 -8
- package/dist/types/types/transaction.d.ts.map +1 -1
- package/dist/types/utils/formatters/block.d.ts +13 -3
- package/dist/types/utils/formatters/block.d.ts.map +1 -1
- package/dist/types/utils/formatters/formatter.d.ts +1 -0
- package/dist/types/utils/formatters/formatter.d.ts.map +1 -1
- package/dist/types/utils/formatters/transaction.d.ts +10 -3
- package/dist/types/utils/formatters/transaction.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionReceipt.d.ts +1 -0
- package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionRequest.d.ts +1 -0
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/dist/types/utils/promise/withCache.d.ts +3 -3
- package/dist/types/utils/promise/withCache.d.ts.map +1 -1
- package/dist/types/utils/signature/hexToSignature.d.ts +13 -0
- package/dist/types/utils/signature/hexToSignature.d.ts.map +1 -0
- package/dist/types/utils/signature/signatureToHex.d.ts +17 -0
- package/dist/types/utils/signature/signatureToHex.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/accounts/index.ts +1 -1
- package/src/accounts/utils/signMessage.ts +1 -1
- package/src/accounts/utils/signTypedData.ts +1 -1
- package/src/actions/index.ts +6 -2
- package/src/actions/public/createContractEventFilter.ts +30 -7
- package/src/actions/public/createEventFilter.ts +78 -24
- package/src/actions/public/getBlock.ts +18 -8
- package/src/actions/public/getBlockNumber.ts +5 -3
- package/src/actions/public/getFilterChanges.ts +46 -10
- package/src/actions/public/getFilterLogs.ts +26 -10
- package/src/actions/public/getLogs.ts +73 -18
- package/src/actions/public/getTransaction.ts +15 -8
- package/src/actions/public/watchBlockNumber.ts +1 -1
- package/src/actions/public/watchBlocks.ts +37 -18
- package/src/actions/public/watchContractEvent.ts +9 -9
- package/src/actions/public/watchEvent.ts +52 -19
- package/src/clients/createClient.ts +9 -0
- package/src/clients/createPublicClient.ts +7 -1
- package/src/clients/createTestClient.ts +7 -1
- package/src/clients/createWalletClient.ts +7 -1
- package/src/clients/decorators/public.ts +114 -25
- package/src/constants/number.ts +98 -0
- package/src/contract.ts +6 -2
- package/src/errors/abi.ts +5 -1
- package/src/errors/contract.ts +52 -31
- package/src/errors/version.ts +1 -1
- package/src/index.ts +108 -3
- package/src/public.ts +6 -2
- package/src/types/block.ts +25 -10
- package/src/types/contract.ts +7 -3
- package/src/types/filter.ts +32 -26
- package/src/types/formatter.ts +9 -0
- package/src/types/log.ts +13 -8
- package/src/types/misc.ts +3 -0
- package/src/types/rpc.ts +20 -6
- package/src/types/transaction.ts +22 -11
- package/src/utils/formatters/block.ts +31 -4
- package/src/utils/formatters/formatter.ts +1 -0
- package/src/utils/formatters/transaction.ts +25 -2
- package/src/utils/promise/withCache.ts +5 -5
- package/src/utils/signature/hexToSignature.ts +20 -0
- package/src/utils/signature/signatureToHex.ts +26 -0
- package/dist/cjs/accounts/utils/signatureToHex.js.map +0 -1
- package/dist/esm/accounts/utils/signatureToHex.js +0 -7
- package/dist/esm/accounts/utils/signatureToHex.js.map +0 -1
- package/dist/types/accounts/utils/signatureToHex.d.ts +0 -3
- package/dist/types/accounts/utils/signatureToHex.d.ts.map +0 -1
- package/src/accounts/utils/signatureToHex.ts +0 -12
- /package/dist/cjs/{accounts/utils → utils/signature}/signatureToHex.js +0 -0
@@ -197,6 +197,7 @@ import {
|
|
197
197
|
watchPendingTransactions,
|
198
198
|
} from '../../actions/public/watchPendingTransactions.js'
|
199
199
|
import type { Account } from '../../types/account.js'
|
200
|
+
import type { BlockNumber, BlockTag } from '../../types/block.js'
|
200
201
|
import type { Chain } from '../../types/chain.js'
|
201
202
|
import type {
|
202
203
|
ContractFunctionConfig,
|
@@ -281,10 +282,26 @@ export type PublicActions<
|
|
281
282
|
TEventName extends string | undefined,
|
282
283
|
TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined,
|
283
284
|
TStrict extends boolean | undefined = undefined,
|
285
|
+
TFromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
286
|
+
TToBlock extends BlockNumber | BlockTag | undefined = undefined,
|
284
287
|
>(
|
285
|
-
args: CreateContractEventFilterParameters<
|
288
|
+
args: CreateContractEventFilterParameters<
|
289
|
+
TAbi,
|
290
|
+
TEventName,
|
291
|
+
TArgs,
|
292
|
+
TStrict,
|
293
|
+
TFromBlock,
|
294
|
+
TToBlock
|
295
|
+
>,
|
286
296
|
) => Promise<
|
287
|
-
CreateContractEventFilterReturnType<
|
297
|
+
CreateContractEventFilterReturnType<
|
298
|
+
TAbi,
|
299
|
+
TEventName,
|
300
|
+
TArgs,
|
301
|
+
TStrict,
|
302
|
+
TFromBlock,
|
303
|
+
TToBlock
|
304
|
+
>
|
288
305
|
>
|
289
306
|
/**
|
290
307
|
* Creates a [`Filter`](https://viem.sh/docs/glossary/types.html#filter) to listen for new events that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges.html).
|
@@ -308,23 +325,38 @@ export type PublicActions<
|
|
308
325
|
* })
|
309
326
|
*/
|
310
327
|
createEventFilter: <
|
311
|
-
TAbiEvent extends AbiEvent | undefined,
|
328
|
+
TAbiEvent extends AbiEvent | undefined = undefined,
|
329
|
+
TAbiEvents extends
|
330
|
+
| readonly AbiEvent[]
|
331
|
+
| readonly unknown[]
|
332
|
+
| undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined,
|
312
333
|
TStrict extends boolean | undefined = undefined,
|
313
|
-
|
334
|
+
TFromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
335
|
+
TToBlock extends BlockNumber | BlockTag | undefined = undefined,
|
314
336
|
_EventName extends string | undefined = MaybeAbiEventName<TAbiEvent>,
|
315
337
|
_Args extends
|
316
|
-
| MaybeExtractEventArgsFromAbi<
|
338
|
+
| MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName>
|
317
339
|
| undefined = undefined,
|
318
340
|
>(
|
319
341
|
args?: CreateEventFilterParameters<
|
320
342
|
TAbiEvent,
|
343
|
+
TAbiEvents,
|
321
344
|
TStrict,
|
322
|
-
|
345
|
+
TFromBlock,
|
346
|
+
TToBlock,
|
323
347
|
_EventName,
|
324
348
|
_Args
|
325
349
|
>,
|
326
350
|
) => Promise<
|
327
|
-
CreateEventFilterReturnType<
|
351
|
+
CreateEventFilterReturnType<
|
352
|
+
TAbiEvent,
|
353
|
+
TAbiEvents,
|
354
|
+
TStrict,
|
355
|
+
TFromBlock,
|
356
|
+
TToBlock,
|
357
|
+
_EventName,
|
358
|
+
_Args
|
359
|
+
>
|
328
360
|
>
|
329
361
|
/**
|
330
362
|
* Creates a Filter to listen for new pending transaction hashes that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges.html).
|
@@ -462,7 +494,12 @@ export type PublicActions<
|
|
462
494
|
* })
|
463
495
|
* const block = await client.getBlock()
|
464
496
|
*/
|
465
|
-
getBlock:
|
497
|
+
getBlock: <
|
498
|
+
TIncludeTransactions extends boolean = false,
|
499
|
+
TBlockTag extends BlockTag = 'latest',
|
500
|
+
>(
|
501
|
+
args?: GetBlockParameters<TIncludeTransactions, TBlockTag>,
|
502
|
+
) => Promise<GetBlockReturnType<TChain, TIncludeTransactions, TBlockTag>>
|
466
503
|
/**
|
467
504
|
* Returns the number of the most recent block seen.
|
468
505
|
*
|
@@ -807,13 +844,29 @@ export type PublicActions<
|
|
807
844
|
*/
|
808
845
|
getFilterChanges: <
|
809
846
|
TFilterType extends FilterType,
|
810
|
-
TAbi extends Abi | readonly unknown[],
|
847
|
+
TAbi extends Abi | readonly unknown[] | undefined,
|
811
848
|
TEventName extends string | undefined,
|
812
849
|
TStrict extends boolean | undefined = undefined,
|
850
|
+
TFromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
851
|
+
TToBlock extends BlockNumber | BlockTag | undefined = undefined,
|
813
852
|
>(
|
814
|
-
args: GetFilterChangesParameters<
|
853
|
+
args: GetFilterChangesParameters<
|
854
|
+
TFilterType,
|
855
|
+
TAbi,
|
856
|
+
TEventName,
|
857
|
+
TStrict,
|
858
|
+
TFromBlock,
|
859
|
+
TToBlock
|
860
|
+
>,
|
815
861
|
) => Promise<
|
816
|
-
GetFilterChangesReturnType<
|
862
|
+
GetFilterChangesReturnType<
|
863
|
+
TFilterType,
|
864
|
+
TAbi,
|
865
|
+
TEventName,
|
866
|
+
TStrict,
|
867
|
+
TFromBlock,
|
868
|
+
TToBlock
|
869
|
+
>
|
817
870
|
>
|
818
871
|
/**
|
819
872
|
* Returns a list of event logs since the filter was created.
|
@@ -842,12 +895,22 @@ export type PublicActions<
|
|
842
895
|
* const logs = await client.getFilterLogs({ filter })
|
843
896
|
*/
|
844
897
|
getFilterLogs: <
|
845
|
-
TAbi extends Abi | readonly unknown[],
|
898
|
+
TAbi extends Abi | readonly unknown[] | undefined,
|
846
899
|
TEventName extends string | undefined,
|
847
900
|
TStrict extends boolean | undefined = undefined,
|
901
|
+
TFromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
902
|
+
TToBlock extends BlockNumber | BlockTag | undefined = undefined,
|
848
903
|
>(
|
849
|
-
args: GetFilterLogsParameters<
|
850
|
-
|
904
|
+
args: GetFilterLogsParameters<
|
905
|
+
TAbi,
|
906
|
+
TEventName,
|
907
|
+
TStrict,
|
908
|
+
TFromBlock,
|
909
|
+
TToBlock
|
910
|
+
>,
|
911
|
+
) => Promise<
|
912
|
+
GetFilterLogsReturnType<TAbi, TEventName, TStrict, TFromBlock, TToBlock>
|
913
|
+
>
|
851
914
|
/**
|
852
915
|
* Returns the current price of gas (in wei).
|
853
916
|
*
|
@@ -888,11 +951,25 @@ export type PublicActions<
|
|
888
951
|
* const logs = await client.getLogs()
|
889
952
|
*/
|
890
953
|
getLogs: <
|
891
|
-
TAbiEvent extends AbiEvent | undefined,
|
954
|
+
TAbiEvent extends AbiEvent | undefined = undefined,
|
955
|
+
TAbiEvents extends
|
956
|
+
| readonly AbiEvent[]
|
957
|
+
| readonly unknown[]
|
958
|
+
| undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined,
|
892
959
|
TStrict extends boolean | undefined = undefined,
|
960
|
+
TFromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
961
|
+
TToBlock extends BlockNumber | BlockTag | undefined = undefined,
|
893
962
|
>(
|
894
|
-
args?: GetLogsParameters<
|
895
|
-
|
963
|
+
args?: GetLogsParameters<
|
964
|
+
TAbiEvent,
|
965
|
+
TAbiEvents,
|
966
|
+
TStrict,
|
967
|
+
TFromBlock,
|
968
|
+
TToBlock
|
969
|
+
>,
|
970
|
+
) => Promise<
|
971
|
+
GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>
|
972
|
+
>
|
896
973
|
/**
|
897
974
|
* Returns the value from a storage slot at a given address.
|
898
975
|
*
|
@@ -941,9 +1018,9 @@ export type PublicActions<
|
|
941
1018
|
* hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
|
942
1019
|
* })
|
943
1020
|
*/
|
944
|
-
getTransaction: (
|
945
|
-
args: GetTransactionParameters
|
946
|
-
) => Promise<GetTransactionReturnType<TChain>>
|
1021
|
+
getTransaction: <TBlockTag extends BlockTag = 'latest'>(
|
1022
|
+
args: GetTransactionParameters<TBlockTag>,
|
1023
|
+
) => Promise<GetTransactionReturnType<TChain, TBlockTag>>
|
947
1024
|
/**
|
948
1025
|
* Returns the number of blocks passed (confirmations) since the transaction was processed on a block.
|
949
1026
|
*
|
@@ -1265,8 +1342,16 @@ export type PublicActions<
|
|
1265
1342
|
* onBlock: (block) => console.log(block),
|
1266
1343
|
* })
|
1267
1344
|
*/
|
1268
|
-
watchBlocks:
|
1269
|
-
|
1345
|
+
watchBlocks: <
|
1346
|
+
TIncludeTransactions extends boolean = false,
|
1347
|
+
TBlockTag extends BlockTag = 'latest',
|
1348
|
+
>(
|
1349
|
+
args: WatchBlocksParameters<
|
1350
|
+
TTransport,
|
1351
|
+
TChain,
|
1352
|
+
TIncludeTransactions,
|
1353
|
+
TBlockTag
|
1354
|
+
>,
|
1270
1355
|
) => WatchBlocksReturnType
|
1271
1356
|
/**
|
1272
1357
|
* Watches and returns emitted contract event logs.
|
@@ -1336,10 +1421,14 @@ export type PublicActions<
|
|
1336
1421
|
* })
|
1337
1422
|
*/
|
1338
1423
|
watchEvent: <
|
1339
|
-
TAbiEvent extends AbiEvent | undefined,
|
1424
|
+
TAbiEvent extends AbiEvent | undefined = undefined,
|
1425
|
+
TAbiEvents extends
|
1426
|
+
| readonly AbiEvent[]
|
1427
|
+
| readonly unknown[]
|
1428
|
+
| undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined,
|
1340
1429
|
TStrict extends boolean | undefined = undefined,
|
1341
1430
|
>(
|
1342
|
-
args: WatchEventParameters<TAbiEvent, TStrict>,
|
1431
|
+
args: WatchEventParameters<TAbiEvent, TAbiEvents, TStrict>,
|
1343
1432
|
) => WatchEventReturnType
|
1344
1433
|
/**
|
1345
1434
|
* Watches and returns pending transaction hashes.
|
@@ -1406,7 +1495,7 @@ export function publicActions<
|
|
1406
1495
|
getFilterChanges: (args) => getFilterChanges(client, args),
|
1407
1496
|
getFilterLogs: (args) => getFilterLogs(client, args),
|
1408
1497
|
getGasPrice: () => getGasPrice(client),
|
1409
|
-
getLogs: (args) => getLogs(client, args),
|
1498
|
+
getLogs: (args) => getLogs(client, args as any),
|
1410
1499
|
getStorageAt: (args) => getStorageAt(client, args),
|
1411
1500
|
getTransaction: (args) => getTransaction(client, args),
|
1412
1501
|
getTransactionConfirmations: (args) =>
|
@@ -0,0 +1,98 @@
|
|
1
|
+
export const maxInt8 = 2n ** (8n - 1n)
|
2
|
+
export const maxInt16 = 2n ** (16n - 1n)
|
3
|
+
export const maxInt24 = 2n ** (24n - 1n)
|
4
|
+
export const maxInt32 = 2n ** (32n - 1n)
|
5
|
+
export const maxInt40 = 2n ** (40n - 1n)
|
6
|
+
export const maxInt48 = 2n ** (48n - 1n)
|
7
|
+
export const maxInt56 = 2n ** (56n - 1n)
|
8
|
+
export const maxInt64 = 2n ** (64n - 1n)
|
9
|
+
export const maxInt72 = 2n ** (72n - 1n)
|
10
|
+
export const maxInt80 = 2n ** (80n - 1n)
|
11
|
+
export const maxInt88 = 2n ** (88n - 1n)
|
12
|
+
export const maxInt96 = 2n ** (96n - 1n)
|
13
|
+
export const maxInt104 = 2n ** (104n - 1n)
|
14
|
+
export const maxInt112 = 2n ** (112n - 1n)
|
15
|
+
export const maxInt120 = 2n ** (120n - 1n)
|
16
|
+
export const maxInt128 = 2n ** (128n - 1n)
|
17
|
+
export const maxInt136 = 2n ** (136n - 1n)
|
18
|
+
export const maxInt144 = 2n ** (144n - 1n)
|
19
|
+
export const maxInt152 = 2n ** (152n - 1n)
|
20
|
+
export const maxInt160 = 2n ** (160n - 1n)
|
21
|
+
export const maxInt168 = 2n ** (168n - 1n)
|
22
|
+
export const maxInt176 = 2n ** (176n - 1n)
|
23
|
+
export const maxInt184 = 2n ** (184n - 1n)
|
24
|
+
export const maxInt192 = 2n ** (192n - 1n)
|
25
|
+
export const maxInt200 = 2n ** (200n - 1n)
|
26
|
+
export const maxInt208 = 2n ** (208n - 1n)
|
27
|
+
export const maxInt216 = 2n ** (216n - 1n)
|
28
|
+
export const maxInt224 = 2n ** (224n - 1n)
|
29
|
+
export const maxInt232 = 2n ** (232n - 1n)
|
30
|
+
export const maxInt240 = 2n ** (240n - 1n)
|
31
|
+
export const maxInt248 = 2n ** (248n - 1n)
|
32
|
+
export const maxInt256 = 2n ** (256n - 1n)
|
33
|
+
|
34
|
+
export const minInt8 = -(2n ** 8n)
|
35
|
+
export const minInt16 = -(2n ** 16n)
|
36
|
+
export const minInt24 = -(2n ** 24n)
|
37
|
+
export const minInt32 = -(2n ** 32n)
|
38
|
+
export const minInt40 = -(2n ** 40n)
|
39
|
+
export const minInt48 = -(2n ** 48n)
|
40
|
+
export const minInt56 = -(2n ** 56n)
|
41
|
+
export const minInt64 = -(2n ** 64n)
|
42
|
+
export const minInt72 = -(2n ** 72n)
|
43
|
+
export const minInt80 = -(2n ** 80n)
|
44
|
+
export const minInt88 = -(2n ** 88n)
|
45
|
+
export const minInt96 = -(2n ** 96n)
|
46
|
+
export const minInt104 = -(2n ** 104n)
|
47
|
+
export const minInt112 = -(2n ** 112n)
|
48
|
+
export const minInt120 = -(2n ** 120n)
|
49
|
+
export const minInt128 = -(2n ** 128n)
|
50
|
+
export const minInt136 = -(2n ** 136n)
|
51
|
+
export const minInt144 = -(2n ** 144n)
|
52
|
+
export const minInt152 = -(2n ** 152n)
|
53
|
+
export const minInt160 = -(2n ** 160n)
|
54
|
+
export const minInt168 = -(2n ** 168n)
|
55
|
+
export const minInt176 = -(2n ** 176n)
|
56
|
+
export const minInt184 = -(2n ** 184n)
|
57
|
+
export const minInt192 = -(2n ** 192n)
|
58
|
+
export const minInt200 = -(2n ** 200n)
|
59
|
+
export const minInt208 = -(2n ** 208n)
|
60
|
+
export const minInt216 = -(2n ** 216n)
|
61
|
+
export const minInt224 = -(2n ** 224n)
|
62
|
+
export const minInt232 = -(2n ** 232n)
|
63
|
+
export const minInt240 = -(2n ** 240n)
|
64
|
+
export const minInt248 = -(2n ** 248n)
|
65
|
+
export const minInt256 = -(2n ** 256n)
|
66
|
+
|
67
|
+
export const maxUint8 = 2n ** 8n
|
68
|
+
export const maxUint16 = 2n ** 16n
|
69
|
+
export const maxUint24 = 2n ** 24n
|
70
|
+
export const maxUint32 = 2n ** 32n
|
71
|
+
export const maxUint40 = 2n ** 40n
|
72
|
+
export const maxUint48 = 2n ** 48n
|
73
|
+
export const maxUint56 = 2n ** 56n
|
74
|
+
export const maxUint64 = 2n ** 64n
|
75
|
+
export const maxUint72 = 2n ** 72n
|
76
|
+
export const maxUint80 = 2n ** 80n
|
77
|
+
export const maxUint88 = 2n ** 88n
|
78
|
+
export const maxUint96 = 2n ** 96n
|
79
|
+
export const maxUint104 = 2n ** 104n
|
80
|
+
export const maxUint112 = 2n ** 112n
|
81
|
+
export const maxUint120 = 2n ** 120n
|
82
|
+
export const maxUint128 = 2n ** 128n
|
83
|
+
export const maxUint136 = 2n ** 136n
|
84
|
+
export const maxUint144 = 2n ** 144n
|
85
|
+
export const maxUint152 = 2n ** 152n
|
86
|
+
export const maxUint160 = 2n ** 160n
|
87
|
+
export const maxUint168 = 2n ** 168n
|
88
|
+
export const maxUint176 = 2n ** 176n
|
89
|
+
export const maxUint184 = 2n ** 184n
|
90
|
+
export const maxUint192 = 2n ** 192n
|
91
|
+
export const maxUint200 = 2n ** 200n
|
92
|
+
export const maxUint208 = 2n ** 208n
|
93
|
+
export const maxUint216 = 2n ** 216n
|
94
|
+
export const maxUint224 = 2n ** 224n
|
95
|
+
export const maxUint232 = 2n ** 232n
|
96
|
+
export const maxUint240 = 2n ** 240n
|
97
|
+
export const maxUint248 = 2n ** 248n
|
98
|
+
export const maxUint256 = 2n ** 256n
|
package/src/contract.ts
CHANGED
@@ -24,8 +24,12 @@ export {
|
|
24
24
|
multicall,
|
25
25
|
} from './actions/public/multicall.js'
|
26
26
|
export type {
|
27
|
-
|
28
|
-
|
27
|
+
WatchEventOnLogsFn,
|
28
|
+
/** @deprecated - use `WatchEventOnLogsFn` instead. */
|
29
|
+
WatchEventOnLogsFn as OnLogsFn,
|
30
|
+
WatchEventOnLogsParameter,
|
31
|
+
/** @deprecated - use `WatchEventOnLogsParameter` instead. */
|
32
|
+
WatchEventOnLogsParameter as OnLogsParameter,
|
29
33
|
} from './actions/public/watchEvent.js'
|
30
34
|
export {
|
31
35
|
type ReadContractParameters,
|
package/src/errors/abi.ts
CHANGED
@@ -163,17 +163,21 @@ export class AbiErrorNotFoundError extends BaseError {
|
|
163
163
|
|
164
164
|
export class AbiErrorSignatureNotFoundError extends BaseError {
|
165
165
|
override name = 'AbiErrorSignatureNotFoundError'
|
166
|
+
|
167
|
+
signature: Hex
|
168
|
+
|
166
169
|
constructor(signature: Hex, { docsPath }: { docsPath: string }) {
|
167
170
|
super(
|
168
171
|
[
|
169
172
|
`Encoded error signature "${signature}" not found on ABI.`,
|
170
173
|
'Make sure you are using the correct ABI and that the error exists on it.',
|
171
|
-
`You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`,
|
174
|
+
`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${signature}.`,
|
172
175
|
].join('\n'),
|
173
176
|
{
|
174
177
|
docsPath,
|
175
178
|
},
|
176
179
|
)
|
180
|
+
this.signature = signature
|
177
181
|
}
|
178
182
|
}
|
179
183
|
|
package/src/errors/contract.ts
CHANGED
@@ -15,6 +15,7 @@ import { getAbiItem } from '../utils/abi/getAbiItem.js'
|
|
15
15
|
import { formatEther } from '../utils/unit/formatEther.js'
|
16
16
|
import { formatGwei } from '../utils/unit/formatGwei.js'
|
17
17
|
|
18
|
+
import { AbiErrorSignatureNotFoundError } from './abi.js'
|
18
19
|
import { BaseError } from './base.js'
|
19
20
|
import { prettyPrint } from './transaction.js'
|
20
21
|
import { getContractAddress } from './utils.js'
|
@@ -154,6 +155,7 @@ export class ContractFunctionRevertedError extends BaseError {
|
|
154
155
|
|
155
156
|
data?: DecodeErrorResultReturnType
|
156
157
|
reason?: string
|
158
|
+
signature?: Hex
|
157
159
|
|
158
160
|
constructor({
|
159
161
|
abi,
|
@@ -161,56 +163,75 @@ export class ContractFunctionRevertedError extends BaseError {
|
|
161
163
|
functionName,
|
162
164
|
message,
|
163
165
|
}: { abi: Abi; data?: Hex; functionName: string; message?: string }) {
|
166
|
+
let cause: Error | undefined
|
164
167
|
let decodedData: DecodeErrorResultReturnType | undefined = undefined
|
165
168
|
let metaMessages
|
166
169
|
let reason
|
167
170
|
if (data && data !== '0x') {
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
const formattedArgs =
|
180
|
-
abiItem && errorArgs
|
181
|
-
? formatAbiItemWithArgs({
|
182
|
-
abiItem,
|
183
|
-
args: errorArgs,
|
184
|
-
includeFunctionName: false,
|
185
|
-
includeName: false,
|
186
|
-
})
|
171
|
+
try {
|
172
|
+
decodedData = decodeErrorResult({ abi, data })
|
173
|
+
const { abiItem, errorName, args: errorArgs } = decodedData
|
174
|
+
if (errorName === 'Error') {
|
175
|
+
reason = (errorArgs as [string])[0]
|
176
|
+
} else if (errorName === 'Panic') {
|
177
|
+
const [firstArg] = errorArgs as [number]
|
178
|
+
reason = panicReasons[firstArg as keyof typeof panicReasons]
|
179
|
+
} else {
|
180
|
+
const errorWithParams = abiItem
|
181
|
+
? formatAbiItem(abiItem, { includeName: true })
|
187
182
|
: undefined
|
183
|
+
const formattedArgs =
|
184
|
+
abiItem && errorArgs
|
185
|
+
? formatAbiItemWithArgs({
|
186
|
+
abiItem,
|
187
|
+
args: errorArgs,
|
188
|
+
includeFunctionName: false,
|
189
|
+
includeName: false,
|
190
|
+
})
|
191
|
+
: undefined
|
188
192
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
193
|
+
metaMessages = [
|
194
|
+
errorWithParams ? `Error: ${errorWithParams}` : '',
|
195
|
+
formattedArgs && formattedArgs !== '()'
|
196
|
+
? ` ${[...Array(errorName?.length ?? 0).keys()]
|
197
|
+
.map(() => ' ')
|
198
|
+
.join('')}${formattedArgs}`
|
199
|
+
: '',
|
200
|
+
]
|
201
|
+
}
|
202
|
+
} catch (err) {
|
203
|
+
cause = err as Error
|
197
204
|
}
|
198
205
|
} else if (message) reason = message
|
199
206
|
|
207
|
+
let signature: Hex | undefined
|
208
|
+
if (cause instanceof AbiErrorSignatureNotFoundError) {
|
209
|
+
signature = cause.signature
|
210
|
+
metaMessages = [
|
211
|
+
`Unable to decode signature "${signature}" as it was not found on the provided ABI.`,
|
212
|
+
'Make sure you are using the correct ABI and that the error exists on it.',
|
213
|
+
`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${signature}.`,
|
214
|
+
]
|
215
|
+
}
|
216
|
+
|
200
217
|
super(
|
201
|
-
reason && reason !== 'execution reverted'
|
218
|
+
(reason && reason !== 'execution reverted') || signature
|
202
219
|
? [
|
203
|
-
`The contract function "${functionName}" reverted with the following
|
204
|
-
|
220
|
+
`The contract function "${functionName}" reverted with the following ${
|
221
|
+
signature ? 'signature' : 'reason'
|
222
|
+
}:`,
|
223
|
+
reason || signature,
|
205
224
|
].join('\n')
|
206
225
|
: `The contract function "${functionName}" reverted.`,
|
207
226
|
{
|
227
|
+
cause,
|
208
228
|
metaMessages,
|
209
229
|
},
|
210
230
|
)
|
211
231
|
|
212
|
-
this.reason = reason
|
213
232
|
this.data = decodedData
|
233
|
+
this.reason = reason
|
234
|
+
this.signature = signature
|
214
235
|
}
|
215
236
|
}
|
216
237
|
|
package/src/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '1.
|
1
|
+
export const version = '1.5.0'
|
package/src/index.ts
CHANGED
@@ -156,8 +156,12 @@ export type {
|
|
156
156
|
WatchBlockNumberReturnType,
|
157
157
|
} from './actions/public/watchBlockNumber.js'
|
158
158
|
export type {
|
159
|
-
|
160
|
-
|
159
|
+
WatchEventOnLogsFn,
|
160
|
+
/** @deprecated - use `WatchEventOnLogsFn` instead. */
|
161
|
+
WatchEventOnLogsFn as OnLogFn,
|
162
|
+
WatchEventOnLogsParameter,
|
163
|
+
/** @deprecated - use `WatchEventOnLogsParameter` instead. */
|
164
|
+
WatchEventOnLogsParameter as OnLogParameter,
|
161
165
|
WatchEventParameters,
|
162
166
|
WatchEventReturnType,
|
163
167
|
} from './actions/public/watchEvent.js'
|
@@ -233,6 +237,7 @@ export type {
|
|
233
237
|
VerifyHashReturnType,
|
234
238
|
} from './actions/public/verifyHash.js'
|
235
239
|
export type {
|
240
|
+
WatchContractEventOnLogsParameter,
|
236
241
|
WatchContractEventParameters,
|
237
242
|
WatchContractEventReturnType,
|
238
243
|
} from './actions/public/watchContractEvent.js'
|
@@ -299,8 +304,106 @@ export {
|
|
299
304
|
webSocket,
|
300
305
|
} from './clients/transports/webSocket.js'
|
301
306
|
export { multicall3Abi } from './constants/abis.js'
|
302
|
-
export { etherUnits, gweiUnits, weiUnits } from './constants/unit.js'
|
303
307
|
export { zeroAddress } from './constants/address.js'
|
308
|
+
export { etherUnits, gweiUnits, weiUnits } from './constants/unit.js'
|
309
|
+
export {
|
310
|
+
maxInt8,
|
311
|
+
maxInt16,
|
312
|
+
maxInt24,
|
313
|
+
maxInt32,
|
314
|
+
maxInt40,
|
315
|
+
maxInt48,
|
316
|
+
maxInt56,
|
317
|
+
maxInt64,
|
318
|
+
maxInt72,
|
319
|
+
maxInt80,
|
320
|
+
maxInt88,
|
321
|
+
maxInt96,
|
322
|
+
maxInt104,
|
323
|
+
maxInt112,
|
324
|
+
maxInt120,
|
325
|
+
maxInt128,
|
326
|
+
maxInt136,
|
327
|
+
maxInt144,
|
328
|
+
maxInt152,
|
329
|
+
maxInt160,
|
330
|
+
maxInt168,
|
331
|
+
maxInt176,
|
332
|
+
maxInt184,
|
333
|
+
maxInt192,
|
334
|
+
maxInt200,
|
335
|
+
maxInt208,
|
336
|
+
maxInt216,
|
337
|
+
maxInt224,
|
338
|
+
maxInt232,
|
339
|
+
maxInt240,
|
340
|
+
maxInt248,
|
341
|
+
maxInt256,
|
342
|
+
maxUint8,
|
343
|
+
maxUint16,
|
344
|
+
maxUint24,
|
345
|
+
maxUint32,
|
346
|
+
maxUint40,
|
347
|
+
maxUint48,
|
348
|
+
maxUint56,
|
349
|
+
maxUint64,
|
350
|
+
maxUint72,
|
351
|
+
maxUint80,
|
352
|
+
maxUint88,
|
353
|
+
maxUint96,
|
354
|
+
maxUint104,
|
355
|
+
maxUint112,
|
356
|
+
maxUint120,
|
357
|
+
maxUint128,
|
358
|
+
maxUint136,
|
359
|
+
maxUint144,
|
360
|
+
maxUint152,
|
361
|
+
maxUint160,
|
362
|
+
maxUint168,
|
363
|
+
maxUint176,
|
364
|
+
maxUint184,
|
365
|
+
maxUint192,
|
366
|
+
maxUint200,
|
367
|
+
maxUint208,
|
368
|
+
maxUint216,
|
369
|
+
maxUint224,
|
370
|
+
maxUint232,
|
371
|
+
maxUint240,
|
372
|
+
maxUint248,
|
373
|
+
maxUint256,
|
374
|
+
minInt8,
|
375
|
+
minInt16,
|
376
|
+
minInt24,
|
377
|
+
minInt32,
|
378
|
+
minInt40,
|
379
|
+
minInt48,
|
380
|
+
minInt56,
|
381
|
+
minInt64,
|
382
|
+
minInt72,
|
383
|
+
minInt80,
|
384
|
+
minInt88,
|
385
|
+
minInt96,
|
386
|
+
minInt104,
|
387
|
+
minInt112,
|
388
|
+
minInt120,
|
389
|
+
minInt128,
|
390
|
+
minInt136,
|
391
|
+
minInt144,
|
392
|
+
minInt152,
|
393
|
+
minInt160,
|
394
|
+
minInt168,
|
395
|
+
minInt176,
|
396
|
+
minInt184,
|
397
|
+
minInt192,
|
398
|
+
minInt200,
|
399
|
+
minInt208,
|
400
|
+
minInt216,
|
401
|
+
minInt224,
|
402
|
+
minInt232,
|
403
|
+
minInt240,
|
404
|
+
minInt248,
|
405
|
+
minInt256,
|
406
|
+
} from './constants/number.js'
|
304
407
|
export {
|
305
408
|
AbiConstructorNotFoundError,
|
306
409
|
AbiConstructorParamsNotFoundError,
|
@@ -631,6 +734,7 @@ export {
|
|
631
734
|
type HashTypedDataReturnType,
|
632
735
|
hashTypedData,
|
633
736
|
} from './utils/signature/hashTypedData.js'
|
737
|
+
export { hexToSignature } from './utils/signature/hexToSignature.js'
|
634
738
|
export {
|
635
739
|
type RecoverAddressParameters,
|
636
740
|
type RecoverAddressReturnType,
|
@@ -651,6 +755,7 @@ export {
|
|
651
755
|
type RecoverTypedDataAddressReturnType,
|
652
756
|
recoverTypedDataAddress,
|
653
757
|
} from './utils/signature/recoverTypedDataAddress.js'
|
758
|
+
export { signatureToHex } from './utils/signature/signatureToHex.js'
|
654
759
|
export { type ToRlpReturnType, toRlp } from './utils/encoding/toRlp.js'
|
655
760
|
export {
|
656
761
|
type VerifyMessageParameters,
|
package/src/public.ts
CHANGED
@@ -114,8 +114,12 @@ export {
|
|
114
114
|
} from './actions/public/watchBlocks.js'
|
115
115
|
export {
|
116
116
|
watchEvent,
|
117
|
-
type
|
118
|
-
|
117
|
+
type WatchEventOnLogsFn,
|
118
|
+
/** @deprecated - use `WatchEventOnLogsFn` instead. */
|
119
|
+
type WatchEventOnLogsFn as OnLogsFn,
|
120
|
+
type WatchEventOnLogsParameter,
|
121
|
+
/** @deprecated - use `WatchEventOnLogsParameter` instead. */
|
122
|
+
type WatchEventOnLogsParameter as OnLogsParameter,
|
119
123
|
} from './actions/public/watchEvent.js'
|
120
124
|
export {
|
121
125
|
watchPendingTransactions,
|