@sentio/sdk 2.59.0-rc.3 → 2.59.0-rc.31
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/lib/aptos/api.d.ts +1 -0
- package/lib/aptos/api.d.ts.map +1 -1
- package/lib/aptos/api.js +13 -1
- package/lib/aptos/api.js.map +1 -1
- package/lib/aptos/aptos-plugin.d.ts +8 -4
- package/lib/aptos/aptos-plugin.d.ts.map +1 -1
- package/lib/aptos/aptos-plugin.js +51 -8
- package/lib/aptos/aptos-plugin.js.map +1 -1
- package/lib/aptos/aptos-processor.d.ts +21 -19
- package/lib/aptos/aptos-processor.d.ts.map +1 -1
- package/lib/aptos/aptos-processor.js +102 -50
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/aptos-resource-processor-template.d.ts +5 -4
- package/lib/aptos/aptos-resource-processor-template.d.ts.map +1 -1
- package/lib/aptos/aptos-resource-processor-template.js +8 -8
- package/lib/aptos/aptos-resource-processor-template.js.map +1 -1
- package/lib/aptos/builtin/0x1.d.ts +803 -317
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +1458 -635
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +66 -65
- package/lib/aptos/builtin/0x3.d.ts.map +1 -1
- package/lib/aptos/builtin/0x3.js +131 -131
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.d.ts +29 -28
- package/lib/aptos/builtin/0x4.d.ts.map +1 -1
- package/lib/aptos/builtin/0x4.js +57 -57
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/aptos/codegen/codegen.js +31 -4
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/aptos/data.d.ts +45 -0
- package/lib/aptos/data.d.ts.map +1 -0
- package/lib/aptos/data.js +99 -0
- package/lib/aptos/data.js.map +1 -0
- package/lib/aptos/index.d.ts +1 -0
- package/lib/aptos/index.d.ts.map +1 -1
- package/lib/aptos/index.js.map +1 -1
- package/lib/aptos/models.d.ts +1 -0
- package/lib/aptos/models.d.ts.map +1 -1
- package/lib/aptos/move-coder.d.ts +8 -2
- package/lib/aptos/move-coder.d.ts.map +1 -1
- package/lib/aptos/move-coder.js +84 -1
- package/lib/aptos/move-coder.js.map +1 -1
- package/lib/aptos/network.d.ts +1 -0
- package/lib/aptos/network.d.ts.map +1 -1
- package/lib/aptos/network.js +1 -0
- package/lib/aptos/network.js.map +1 -1
- package/lib/btc/btc-plugin.d.ts +4 -1
- package/lib/btc/btc-plugin.d.ts.map +1 -1
- package/lib/btc/btc-plugin.js +27 -0
- package/lib/btc/btc-plugin.js.map +1 -1
- package/lib/btc/btc-processor.d.ts +6 -5
- package/lib/btc/btc-processor.d.ts.map +1 -1
- package/lib/btc/btc-processor.js +35 -9
- package/lib/btc/btc-processor.js.map +1 -1
- package/lib/btc/types.d.ts +2 -1
- package/lib/btc/types.d.ts.map +1 -1
- package/lib/core/base-context.d.ts +4 -2
- package/lib/core/base-context.d.ts.map +1 -1
- package/lib/core/base-context.js +8 -3
- package/lib/core/base-context.js.map +1 -1
- package/lib/core/event-logger.d.ts +5 -0
- package/lib/core/event-logger.d.ts.map +1 -1
- package/lib/core/event-logger.js +36 -1
- package/lib/core/event-logger.js.map +1 -1
- package/lib/core/handler-options.d.ts +25 -0
- package/lib/core/handler-options.d.ts.map +1 -0
- package/lib/core/handler-options.js +21 -0
- package/lib/core/handler-options.js.map +1 -0
- package/lib/core/index.d.ts +3 -1
- package/lib/core/index.d.ts.map +1 -1
- package/lib/core/index.js +3 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/meter.d.ts +45 -2
- package/lib/core/meter.d.ts.map +1 -1
- package/lib/core/meter.js +124 -2
- package/lib/core/meter.js.map +1 -1
- package/lib/core/numberish.d.ts +2 -1
- package/lib/core/numberish.d.ts.map +1 -1
- package/lib/core/numberish.js +35 -1
- package/lib/core/numberish.js.map +1 -1
- package/lib/core/partition-handler-manager.d.ts +44 -0
- package/lib/core/partition-handler-manager.d.ts.map +1 -0
- package/lib/core/partition-handler-manager.js +76 -0
- package/lib/core/partition-handler-manager.js.map +1 -0
- package/lib/cosmos/cosmos-processor.d.ts +3 -2
- package/lib/cosmos/cosmos-processor.d.ts.map +1 -1
- package/lib/cosmos/cosmos-processor.js +11 -1
- package/lib/cosmos/cosmos-processor.js.map +1 -1
- package/lib/cosmos/types.d.ts +1 -0
- package/lib/cosmos/types.d.ts.map +1 -1
- package/lib/eth/base-processor.d.ts +23 -17
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +173 -34
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/bind-options.d.ts +6 -0
- package/lib/eth/bind-options.d.ts.map +1 -1
- package/lib/eth/bind-options.js +2 -0
- package/lib/eth/bind-options.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +32 -31
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +62 -62
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +17 -16
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +32 -32
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +25 -24
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +48 -48
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +14 -13
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +26 -26
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +21 -20
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +40 -40
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +20 -19
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +38 -38
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/event-handler.js +2 -2
- package/lib/eth/codegen/event-handler.js.map +1 -1
- package/lib/eth/codegen/file.d.ts.map +1 -1
- package/lib/eth/codegen/file.js +1 -0
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/codegen/functions-handler.js +2 -2
- package/lib/eth/codegen/functions-handler.js.map +1 -1
- package/lib/eth/eth-plugin.d.ts +5 -1
- package/lib/eth/eth-plugin.d.ts.map +1 -1
- package/lib/eth/eth-plugin.js +53 -5
- package/lib/eth/eth-plugin.js.map +1 -1
- package/lib/eth/eth.d.ts +2 -7
- package/lib/eth/eth.d.ts.map +1 -1
- package/lib/eth/eth.js +8 -1
- package/lib/eth/eth.js.map +1 -1
- package/lib/fuel/codegen/codegen.js +5 -5
- package/lib/fuel/codegen/codegen.js.map +1 -1
- package/lib/fuel/fuel-plugin.d.ts +4 -1
- package/lib/fuel/fuel-plugin.d.ts.map +1 -1
- package/lib/fuel/fuel-plugin.js +41 -0
- package/lib/fuel/fuel-plugin.js.map +1 -1
- package/lib/fuel/fuel-processor-template.d.ts +7 -4
- package/lib/fuel/fuel-processor-template.d.ts.map +1 -1
- package/lib/fuel/fuel-processor-template.js +11 -9
- package/lib/fuel/fuel-processor-template.js.map +1 -1
- package/lib/fuel/fuel-processor.d.ts +7 -7
- package/lib/fuel/fuel-processor.d.ts.map +1 -1
- package/lib/fuel/fuel-processor.js +91 -28
- package/lib/fuel/fuel-processor.js.map +1 -1
- package/lib/fuel/types.d.ts +3 -0
- package/lib/fuel/types.d.ts.map +1 -1
- package/lib/move/filter.d.ts +5 -0
- package/lib/move/filter.d.ts.map +1 -1
- package/lib/move/filter.js +5 -0
- package/lib/move/filter.js.map +1 -1
- package/lib/move/shared-network-codegen.d.ts.map +1 -1
- package/lib/move/shared-network-codegen.js +5 -4
- package/lib/move/shared-network-codegen.js.map +1 -1
- package/lib/solana/solana-processor.d.ts +10 -4
- package/lib/solana/solana-processor.d.ts.map +1 -1
- package/lib/solana/solana-processor.js +13 -4
- package/lib/solana/solana-processor.js.map +1 -1
- package/lib/stark/starknet-processor.d.ts +3 -1
- package/lib/stark/starknet-processor.d.ts.map +1 -1
- package/lib/stark/starknet-processor.js +32 -14
- package/lib/stark/starknet-processor.js.map +1 -1
- package/lib/store/codegen.d.ts.map +1 -1
- package/lib/store/codegen.js +36 -2
- package/lib/store/codegen.js.map +1 -1
- package/lib/store/schema.d.ts.map +1 -1
- package/lib/store/schema.js +3 -1
- package/lib/store/schema.js.map +1 -1
- package/lib/store/store.d.ts +4 -3
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +41 -1
- package/lib/store/store.js.map +1 -1
- package/lib/store/types.d.ts +20 -1
- package/lib/store/types.d.ts.map +1 -1
- package/lib/store/types.js +22 -0
- package/lib/store/types.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +11 -6
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +13 -13
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +123 -59
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js +397 -119
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +89 -61
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js +222 -104
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/models.d.ts +1 -0
- package/lib/sui/models.d.ts.map +1 -1
- package/lib/sui/sui-object-processor-template.js +1 -1
- package/lib/sui/sui-object-processor-template.js.map +1 -1
- package/lib/sui/sui-object-processor.d.ts +2 -0
- package/lib/sui/sui-object-processor.d.ts.map +1 -1
- package/lib/sui/sui-object-processor.js +4 -0
- package/lib/sui/sui-object-processor.js.map +1 -1
- package/lib/sui/sui-plugin.d.ts +6 -3
- package/lib/sui/sui-plugin.d.ts.map +1 -1
- package/lib/sui/sui-plugin.js +68 -24
- package/lib/sui/sui-plugin.js.map +1 -1
- package/lib/sui/sui-processor.d.ts +6 -4
- package/lib/sui/sui-processor.d.ts.map +1 -1
- package/lib/sui/sui-processor.js +48 -11
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/testing/eth-facet.d.ts +2 -1
- package/lib/testing/eth-facet.d.ts.map +1 -1
- package/lib/testing/eth-facet.js.map +1 -1
- package/lib/utils/block.d.ts +2 -0
- package/lib/utils/block.d.ts.map +1 -1
- package/lib/utils/block.js +13 -0
- package/lib/utils/block.js.map +1 -1
- package/package.json +9 -8
- package/src/aptos/abis/0x1.json +9650 -5284
- package/src/aptos/abis/0x3.json +13 -13
- package/src/aptos/abis/0x4.json +42 -42
- package/src/aptos/api.ts +13 -1
- package/src/aptos/aptos-plugin.ts +62 -13
- package/src/aptos/aptos-processor.ts +114 -74
- package/src/aptos/aptos-resource-processor-template.ts +9 -8
- package/src/aptos/builtin/0x1.ts +3105 -705
- package/src/aptos/builtin/0x3.ts +304 -131
- package/src/aptos/builtin/0x4.ts +125 -57
- package/src/aptos/codegen/codegen.ts +40 -5
- package/src/aptos/data.ts +123 -0
- package/src/aptos/index.ts +2 -0
- package/src/aptos/models.ts +2 -0
- package/src/aptos/move-coder.ts +96 -3
- package/src/aptos/network.ts +1 -0
- package/src/btc/btc-plugin.ts +38 -0
- package/src/btc/btc-processor.ts +35 -10
- package/src/btc/types.ts +2 -1
- package/src/core/base-context.ts +8 -3
- package/src/core/event-logger.ts +45 -1
- package/src/core/handler-options.ts +40 -0
- package/src/core/index.ts +17 -1
- package/src/core/meter.ts +159 -4
- package/src/core/numberish.ts +34 -1
- package/src/core/partition-handler-manager.ts +94 -0
- package/src/cosmos/cosmos-processor.ts +12 -1
- package/src/cosmos/types.ts +1 -0
- package/src/eth/base-processor.ts +163 -41
- package/src/eth/bind-options.ts +7 -0
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +118 -62
- package/src/eth/builtin/internal/erc1155-processor.ts +76 -32
- package/src/eth/builtin/internal/erc20-processor.ts +79 -48
- package/src/eth/builtin/internal/erc20bytes-processor.ts +47 -26
- package/src/eth/builtin/internal/erc721-processor.ts +77 -40
- package/src/eth/builtin/internal/weth9-processor.ts +79 -38
- package/src/eth/codegen/event-handler.ts +2 -2
- package/src/eth/codegen/file.ts +1 -0
- package/src/eth/codegen/functions-handler.ts +2 -2
- package/src/eth/eth-plugin.ts +76 -10
- package/src/eth/eth.ts +12 -1
- package/src/fuel/codegen/codegen.ts +5 -5
- package/src/fuel/fuel-plugin.ts +56 -0
- package/src/fuel/fuel-processor-template.ts +17 -10
- package/src/fuel/fuel-processor.ts +90 -22
- package/src/fuel/types.ts +3 -0
- package/src/move/filter.ts +5 -0
- package/src/move/shared-network-codegen.ts +5 -4
- package/src/solana/solana-processor.ts +28 -6
- package/src/stark/starknet-processor.ts +31 -13
- package/src/store/codegen.ts +50 -2
- package/src/store/schema.ts +3 -1
- package/src/store/store.ts +57 -4
- package/src/store/types.ts +30 -1
- package/src/sui/abis/0x1.json +8 -0
- package/src/sui/abis/0x2.json +437 -0
- package/src/sui/abis/0x3.json +116 -5
- package/src/sui/builtin/0x1.ts +28 -13
- package/src/sui/builtin/0x2.ts +631 -119
- package/src/sui/builtin/0x3.ts +450 -116
- package/src/sui/models.ts +2 -0
- package/src/sui/sui-object-processor-template.ts +1 -1
- package/src/sui/sui-object-processor.ts +6 -0
- package/src/sui/sui-plugin.ts +77 -26
- package/src/sui/sui-processor.ts +50 -11
- package/src/testing/eth-facet.ts +2 -1
- package/src/utils/block.ts +15 -0
@@ -2,6 +2,7 @@
|
|
2
2
|
/* tslint:disable */
|
3
3
|
/* eslint-disable */
|
4
4
|
import { BigNumberish, Overrides, BytesLike } from "ethers";
|
5
|
+
import { HandlerOptions } from "@sentio/sdk";
|
5
6
|
import {
|
6
7
|
addContractByABI,
|
7
8
|
getContractByABI,
|
@@ -633,7 +634,7 @@ export class ERC1155Processor extends BaseProcessor<
|
|
633
634
|
onEventApprovalForAll(
|
634
635
|
handler: (event: ApprovalForAllEvent, ctx: ERC1155Context) => void,
|
635
636
|
filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
|
636
|
-
|
637
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, ApprovalForAllEvent>,
|
637
638
|
preprocessHandler?: (
|
638
639
|
event: ApprovalForAllEvent,
|
639
640
|
ctx: ERC1155Context,
|
@@ -647,13 +648,18 @@ export class ERC1155Processor extends BaseProcessor<
|
|
647
648
|
null,
|
648
649
|
);
|
649
650
|
}
|
650
|
-
return super.onEthEvent(
|
651
|
+
return super.onEthEvent(
|
652
|
+
handler,
|
653
|
+
filter!,
|
654
|
+
handlerOptions,
|
655
|
+
preprocessHandler,
|
656
|
+
);
|
651
657
|
}
|
652
658
|
|
653
659
|
onEventTransferBatch(
|
654
660
|
handler: (event: TransferBatchEvent, ctx: ERC1155Context) => void,
|
655
661
|
filter?: TransferBatchEventFilter | TransferBatchEventFilter[],
|
656
|
-
|
662
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, TransferBatchEvent>,
|
657
663
|
preprocessHandler?: (
|
658
664
|
event: TransferBatchEvent,
|
659
665
|
ctx: ERC1155Context,
|
@@ -665,13 +671,18 @@ export class ERC1155Processor extends BaseProcessor<
|
|
665
671
|
"TransferBatch(address,address,address,uint256[],uint256[])"
|
666
672
|
](null, null, null, null, null);
|
667
673
|
}
|
668
|
-
return super.onEthEvent(
|
674
|
+
return super.onEthEvent(
|
675
|
+
handler,
|
676
|
+
filter!,
|
677
|
+
handlerOptions,
|
678
|
+
preprocessHandler,
|
679
|
+
);
|
669
680
|
}
|
670
681
|
|
671
682
|
onEventTransferSingle(
|
672
683
|
handler: (event: TransferSingleEvent, ctx: ERC1155Context) => void,
|
673
684
|
filter?: TransferSingleEventFilter | TransferSingleEventFilter[],
|
674
|
-
|
685
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, TransferSingleEvent>,
|
675
686
|
preprocessHandler?: (
|
676
687
|
event: TransferSingleEvent,
|
677
688
|
ctx: ERC1155Context,
|
@@ -683,13 +694,18 @@ export class ERC1155Processor extends BaseProcessor<
|
|
683
694
|
"TransferSingle(address,address,address,uint256,uint256)"
|
684
695
|
](null, null, null, null, null);
|
685
696
|
}
|
686
|
-
return super.onEthEvent(
|
697
|
+
return super.onEthEvent(
|
698
|
+
handler,
|
699
|
+
filter!,
|
700
|
+
handlerOptions,
|
701
|
+
preprocessHandler,
|
702
|
+
);
|
687
703
|
}
|
688
704
|
|
689
705
|
onEventURI(
|
690
706
|
handler: (event: URIEvent, ctx: ERC1155Context) => void,
|
691
707
|
filter?: URIEventFilter | URIEventFilter[],
|
692
|
-
|
708
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, URIEvent>,
|
693
709
|
preprocessHandler?: (
|
694
710
|
event: URIEvent,
|
695
711
|
ctx: ERC1155Context,
|
@@ -699,12 +715,17 @@ export class ERC1155Processor extends BaseProcessor<
|
|
699
715
|
if (!filter) {
|
700
716
|
filter = templateContract.filters["URI(string,uint256)"](null, null);
|
701
717
|
}
|
702
|
-
return super.onEthEvent(
|
718
|
+
return super.onEthEvent(
|
719
|
+
handler,
|
720
|
+
filter!,
|
721
|
+
handlerOptions,
|
722
|
+
preprocessHandler,
|
723
|
+
);
|
703
724
|
}
|
704
725
|
|
705
726
|
onCallBalanceOf(
|
706
727
|
handler: (call: BalanceOfCallTrace, ctx: ERC1155Context) => void,
|
707
|
-
|
728
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, BalanceOfCallTrace>,
|
708
729
|
preprocessHandler?: (
|
709
730
|
call: BalanceOfCallTrace,
|
710
731
|
ctx: ERC1155Context,
|
@@ -713,14 +734,14 @@ export class ERC1155Processor extends BaseProcessor<
|
|
713
734
|
return super.onEthTrace(
|
714
735
|
"0x00fdd58e",
|
715
736
|
handler as any,
|
716
|
-
|
737
|
+
handlerOptions,
|
717
738
|
preprocessHandler,
|
718
739
|
);
|
719
740
|
}
|
720
741
|
|
721
742
|
onCallBalanceOfBatch(
|
722
743
|
handler: (call: BalanceOfBatchCallTrace, ctx: ERC1155Context) => void,
|
723
|
-
|
744
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, BalanceOfBatchCallTrace>,
|
724
745
|
preprocessHandler?: (
|
725
746
|
call: BalanceOfBatchCallTrace,
|
726
747
|
ctx: ERC1155Context,
|
@@ -729,14 +750,14 @@ export class ERC1155Processor extends BaseProcessor<
|
|
729
750
|
return super.onEthTrace(
|
730
751
|
"0x4e1273f4",
|
731
752
|
handler as any,
|
732
|
-
|
753
|
+
handlerOptions,
|
733
754
|
preprocessHandler,
|
734
755
|
);
|
735
756
|
}
|
736
757
|
|
737
758
|
onCallIsApprovedForAll(
|
738
759
|
handler: (call: IsApprovedForAllCallTrace, ctx: ERC1155Context) => void,
|
739
|
-
|
760
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, IsApprovedForAllCallTrace>,
|
740
761
|
preprocessHandler?: (
|
741
762
|
call: IsApprovedForAllCallTrace,
|
742
763
|
ctx: ERC1155Context,
|
@@ -745,7 +766,7 @@ export class ERC1155Processor extends BaseProcessor<
|
|
745
766
|
return super.onEthTrace(
|
746
767
|
"0xe985e9c5",
|
747
768
|
handler as any,
|
748
|
-
|
769
|
+
handlerOptions,
|
749
770
|
preprocessHandler,
|
750
771
|
);
|
751
772
|
}
|
@@ -755,7 +776,10 @@ export class ERC1155Processor extends BaseProcessor<
|
|
755
776
|
call: SafeBatchTransferFromCallTrace,
|
756
777
|
ctx: ERC1155Context,
|
757
778
|
) => void,
|
758
|
-
|
779
|
+
handlerOptions?: HandlerOptions<
|
780
|
+
EthFetchConfig,
|
781
|
+
SafeBatchTransferFromCallTrace
|
782
|
+
>,
|
759
783
|
preprocessHandler?: (
|
760
784
|
call: SafeBatchTransferFromCallTrace,
|
761
785
|
ctx: ERC1155Context,
|
@@ -764,14 +788,14 @@ export class ERC1155Processor extends BaseProcessor<
|
|
764
788
|
return super.onEthTrace(
|
765
789
|
"0x2eb2c2d6",
|
766
790
|
handler as any,
|
767
|
-
|
791
|
+
handlerOptions,
|
768
792
|
preprocessHandler,
|
769
793
|
);
|
770
794
|
}
|
771
795
|
|
772
796
|
onCallSafeTransferFrom(
|
773
797
|
handler: (call: SafeTransferFromCallTrace, ctx: ERC1155Context) => void,
|
774
|
-
|
798
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, SafeTransferFromCallTrace>,
|
775
799
|
preprocessHandler?: (
|
776
800
|
call: SafeTransferFromCallTrace,
|
777
801
|
ctx: ERC1155Context,
|
@@ -780,14 +804,14 @@ export class ERC1155Processor extends BaseProcessor<
|
|
780
804
|
return super.onEthTrace(
|
781
805
|
"0xf242432a",
|
782
806
|
handler as any,
|
783
|
-
|
807
|
+
handlerOptions,
|
784
808
|
preprocessHandler,
|
785
809
|
);
|
786
810
|
}
|
787
811
|
|
788
812
|
onCallSetApprovalForAll(
|
789
813
|
handler: (call: SetApprovalForAllCallTrace, ctx: ERC1155Context) => void,
|
790
|
-
|
814
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, SetApprovalForAllCallTrace>,
|
791
815
|
preprocessHandler?: (
|
792
816
|
call: SetApprovalForAllCallTrace,
|
793
817
|
ctx: ERC1155Context,
|
@@ -796,14 +820,14 @@ export class ERC1155Processor extends BaseProcessor<
|
|
796
820
|
return super.onEthTrace(
|
797
821
|
"0xa22cb465",
|
798
822
|
handler as any,
|
799
|
-
|
823
|
+
handlerOptions,
|
800
824
|
preprocessHandler,
|
801
825
|
);
|
802
826
|
}
|
803
827
|
|
804
828
|
onCallSupportsInterface(
|
805
829
|
handler: (call: SupportsInterfaceCallTrace, ctx: ERC1155Context) => void,
|
806
|
-
|
830
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, SupportsInterfaceCallTrace>,
|
807
831
|
preprocessHandler?: (
|
808
832
|
call: SupportsInterfaceCallTrace,
|
809
833
|
ctx: ERC1155Context,
|
@@ -812,14 +836,14 @@ export class ERC1155Processor extends BaseProcessor<
|
|
812
836
|
return super.onEthTrace(
|
813
837
|
"0x01ffc9a7",
|
814
838
|
handler as any,
|
815
|
-
|
839
|
+
handlerOptions,
|
816
840
|
preprocessHandler,
|
817
841
|
);
|
818
842
|
}
|
819
843
|
|
820
844
|
onCallUri(
|
821
845
|
handler: (call: UriCallTrace, ctx: ERC1155Context) => void,
|
822
|
-
|
846
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, UriCallTrace>,
|
823
847
|
preprocessHandler?: (
|
824
848
|
call: UriCallTrace,
|
825
849
|
ctx: ERC1155Context,
|
@@ -828,7 +852,7 @@ export class ERC1155Processor extends BaseProcessor<
|
|
828
852
|
return super.onEthTrace(
|
829
853
|
"0x0e89341c",
|
830
854
|
handler as any,
|
831
|
-
|
855
|
+
handlerOptions,
|
832
856
|
preprocessHandler,
|
833
857
|
);
|
834
858
|
}
|
@@ -909,7 +933,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
909
933
|
onEventApprovalForAll(
|
910
934
|
handler: (event: ApprovalForAllEvent, ctx: ERC1155Context) => void,
|
911
935
|
filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
|
912
|
-
|
936
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, ApprovalForAllEvent>,
|
913
937
|
preprocessHandler?: (
|
914
938
|
event: ApprovalForAllEvent,
|
915
939
|
ctx: ERC1155Context,
|
@@ -923,13 +947,18 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
923
947
|
null,
|
924
948
|
);
|
925
949
|
}
|
926
|
-
return super.onEthEvent(
|
950
|
+
return super.onEthEvent(
|
951
|
+
handler,
|
952
|
+
filter!,
|
953
|
+
handlerOptions,
|
954
|
+
preprocessHandler,
|
955
|
+
);
|
927
956
|
}
|
928
957
|
|
929
958
|
onEventTransferBatch(
|
930
959
|
handler: (event: TransferBatchEvent, ctx: ERC1155Context) => void,
|
931
960
|
filter?: TransferBatchEventFilter | TransferBatchEventFilter[],
|
932
|
-
|
961
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, TransferBatchEvent>,
|
933
962
|
preprocessHandler?: (
|
934
963
|
event: TransferBatchEvent,
|
935
964
|
ctx: ERC1155Context,
|
@@ -941,13 +970,18 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
941
970
|
"TransferBatch(address,address,address,uint256[],uint256[])"
|
942
971
|
](null, null, null, null, null);
|
943
972
|
}
|
944
|
-
return super.onEthEvent(
|
973
|
+
return super.onEthEvent(
|
974
|
+
handler,
|
975
|
+
filter!,
|
976
|
+
handlerOptions,
|
977
|
+
preprocessHandler,
|
978
|
+
);
|
945
979
|
}
|
946
980
|
|
947
981
|
onEventTransferSingle(
|
948
982
|
handler: (event: TransferSingleEvent, ctx: ERC1155Context) => void,
|
949
983
|
filter?: TransferSingleEventFilter | TransferSingleEventFilter[],
|
950
|
-
|
984
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, TransferSingleEvent>,
|
951
985
|
preprocessHandler?: (
|
952
986
|
event: TransferSingleEvent,
|
953
987
|
ctx: ERC1155Context,
|
@@ -959,13 +993,18 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
959
993
|
"TransferSingle(address,address,address,uint256,uint256)"
|
960
994
|
](null, null, null, null, null);
|
961
995
|
}
|
962
|
-
return super.onEthEvent(
|
996
|
+
return super.onEthEvent(
|
997
|
+
handler,
|
998
|
+
filter!,
|
999
|
+
handlerOptions,
|
1000
|
+
preprocessHandler,
|
1001
|
+
);
|
963
1002
|
}
|
964
1003
|
|
965
1004
|
onEventURI(
|
966
1005
|
handler: (event: URIEvent, ctx: ERC1155Context) => void,
|
967
1006
|
filter?: URIEventFilter | URIEventFilter[],
|
968
|
-
|
1007
|
+
handlerOptions?: HandlerOptions<EthFetchConfig, URIEvent>,
|
969
1008
|
preprocessHandler?: (
|
970
1009
|
event: URIEvent,
|
971
1010
|
ctx: ERC1155Context,
|
@@ -975,7 +1014,12 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
975
1014
|
if (!filter) {
|
976
1015
|
filter = templateContract.filters["URI(string,uint256)"](null, null);
|
977
1016
|
}
|
978
|
-
return super.onEthEvent(
|
1017
|
+
return super.onEthEvent(
|
1018
|
+
handler,
|
1019
|
+
filter!,
|
1020
|
+
handlerOptions,
|
1021
|
+
preprocessHandler,
|
1022
|
+
);
|
979
1023
|
}
|
980
1024
|
}
|
981
1025
|
|