@sentio/sdk 2.39.7-rc.8 → 2.40.0-rc.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/lib/aptos/codegen/types.test.js.map +1 -1
- package/lib/aptos/ext/coin-event.test.js.map +1 -1
- package/lib/aptos/ext/coin.test.js.map +1 -1
- package/lib/core/event-logger.test.js.map +1 -1
- package/lib/core/normalization.test.js.map +1 -1
- package/lib/core/numberish.test.js.map +1 -1
- package/lib/eth/account-processor.d.ts +14 -8
- package/lib/eth/account-processor.d.ts.map +1 -1
- package/lib/eth/account-processor.js +43 -21
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +9 -6
- package/lib/eth/base-processor-template.d.ts.map +1 -1
- package/lib/eth/base-processor-template.js +25 -12
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +13 -8
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +109 -28
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +32 -32
- 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 -17
- 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 -25
- 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 -14
- 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 -21
- 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 -20
- 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.d.ts.map +1 -1
- package/lib/eth/codegen/event-handler.js +3 -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 +6 -4
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/codegen/functions-handler.js +4 -3
- package/lib/eth/codegen/functions-handler.js.map +1 -1
- package/lib/eth/context.d.ts +6 -5
- package/lib/eth/context.d.ts.map +1 -1
- package/lib/eth/context.js +7 -5
- package/lib/eth/context.js.map +1 -1
- package/lib/eth/eth-plugin.d.ts +22 -10
- package/lib/eth/eth-plugin.d.ts.map +1 -1
- package/lib/eth/eth-plugin.js +105 -10
- package/lib/eth/eth-plugin.js.map +1 -1
- package/lib/eth/eth.js +1 -1
- package/lib/eth/eth.js.map +1 -1
- package/lib/eth/eth.test.js.map +1 -1
- package/lib/eth/generic-processor.test.js.map +1 -1
- package/lib/eth/index.d.ts +2 -2
- package/lib/eth/index.d.ts.map +1 -1
- package/lib/eth/index.js +2 -2
- package/lib/eth/index.js.map +1 -1
- package/lib/eth/provider.d.ts.map +1 -1
- package/lib/eth/provider.js +12 -18
- package/lib/eth/provider.js.map +1 -1
- package/lib/eth/provider.test.js.map +1 -1
- package/lib/store/convert.test.js.map +1 -1
- package/lib/store/schema.js +1 -1
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +2 -1
- package/lib/store/store.js.map +1 -1
- package/lib/utils/dex-price.test.js.map +1 -1
- package/lib/utils/erc20.test.js.map +1 -1
- package/lib/utils/price.test.js.map +1 -1
- package/package.json +6 -7
- package/src/eth/account-processor.ts +93 -22
- package/src/eth/base-processor-template.ts +60 -14
- package/src/eth/base-processor.ts +181 -37
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +302 -62
- package/src/eth/builtin/internal/erc1155-processor.ts +137 -32
- package/src/eth/builtin/internal/erc20-processor.ts +235 -48
- package/src/eth/builtin/internal/erc20bytes-processor.ts +124 -26
- package/src/eth/builtin/internal/erc721-processor.ts +191 -40
- package/src/eth/builtin/internal/weth9-processor.ts +170 -38
- package/src/eth/codegen/event-handler.ts +3 -2
- package/src/eth/codegen/file.ts +6 -4
- package/src/eth/codegen/functions-handler.ts +4 -3
- package/src/eth/context.ts +23 -7
- package/src/eth/eth-plugin.ts +142 -14
- package/src/eth/eth.ts +1 -1
- package/src/eth/index.ts +2 -2
- package/src/eth/provider.ts +15 -19
- package/src/store/schema.ts +1 -1
- package/src/store/store.ts +22 -13
@@ -20,6 +20,7 @@ import {
|
|
20
20
|
TypedCallTrace,
|
21
21
|
EthContext,
|
22
22
|
EthFetchConfig,
|
23
|
+
PreprocessResult,
|
23
24
|
} from "@sentio/sdk/eth";
|
24
25
|
|
25
26
|
import { EACAggregatorProxy__factory } from "./index.js";
|
@@ -741,20 +742,28 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
741
742
|
ctx: EACAggregatorProxyContext
|
742
743
|
) => void,
|
743
744
|
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
|
744
|
-
fetchConfig?: Partial<EthFetchConfig
|
745
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
746
|
+
preprocessHandler?: (
|
747
|
+
event: AnswerUpdatedEvent,
|
748
|
+
ctx: EACAggregatorProxyContext
|
749
|
+
) => Promise<PreprocessResult>
|
745
750
|
): this {
|
746
751
|
if (!filter) {
|
747
752
|
filter = templateContract.filters[
|
748
753
|
"AnswerUpdated(int256,uint256,uint256)"
|
749
754
|
](null, null, null);
|
750
755
|
}
|
751
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
756
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
752
757
|
}
|
753
758
|
|
754
759
|
onEventNewRound(
|
755
760
|
handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
|
756
761
|
filter?: NewRoundEventFilter | NewRoundEventFilter[],
|
757
|
-
fetchConfig?: Partial<EthFetchConfig
|
762
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
763
|
+
preprocessHandler?: (
|
764
|
+
event: NewRoundEvent,
|
765
|
+
ctx: EACAggregatorProxyContext
|
766
|
+
) => Promise<PreprocessResult>
|
758
767
|
): this {
|
759
768
|
if (!filter) {
|
760
769
|
filter = templateContract.filters["NewRound(uint256,address,uint256)"](
|
@@ -763,7 +772,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
763
772
|
null
|
764
773
|
);
|
765
774
|
}
|
766
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
775
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
767
776
|
}
|
768
777
|
|
769
778
|
onEventOwnershipTransferRequested(
|
@@ -774,14 +783,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
774
783
|
filter?:
|
775
784
|
| OwnershipTransferRequestedEventFilter
|
776
785
|
| OwnershipTransferRequestedEventFilter[],
|
777
|
-
fetchConfig?: Partial<EthFetchConfig
|
786
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
787
|
+
preprocessHandler?: (
|
788
|
+
event: OwnershipTransferRequestedEvent,
|
789
|
+
ctx: EACAggregatorProxyContext
|
790
|
+
) => Promise<PreprocessResult>
|
778
791
|
): this {
|
779
792
|
if (!filter) {
|
780
793
|
filter = templateContract.filters[
|
781
794
|
"OwnershipTransferRequested(address,address)"
|
782
795
|
](null, null);
|
783
796
|
}
|
784
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
797
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
785
798
|
}
|
786
799
|
|
787
800
|
onEventOwnershipTransferred(
|
@@ -792,14 +805,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
792
805
|
filter?:
|
793
806
|
| OwnershipTransferredEventFilter
|
794
807
|
| OwnershipTransferredEventFilter[],
|
795
|
-
fetchConfig?: Partial<EthFetchConfig
|
808
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
809
|
+
preprocessHandler?: (
|
810
|
+
event: OwnershipTransferredEvent,
|
811
|
+
ctx: EACAggregatorProxyContext
|
812
|
+
) => Promise<PreprocessResult>
|
796
813
|
): this {
|
797
814
|
if (!filter) {
|
798
815
|
filter = templateContract.filters[
|
799
816
|
"OwnershipTransferred(address,address)"
|
800
817
|
](null, null);
|
801
818
|
}
|
802
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
819
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
803
820
|
}
|
804
821
|
|
805
822
|
onCallAcceptOwnership(
|
@@ -807,9 +824,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
807
824
|
call: AcceptOwnershipCallTrace,
|
808
825
|
ctx: EACAggregatorProxyContext
|
809
826
|
) => void,
|
810
|
-
fetchConfig?: Partial<EthFetchConfig
|
827
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
828
|
+
preprocessHandler?: (
|
829
|
+
call: AcceptOwnershipCallTrace,
|
830
|
+
ctx: EACAggregatorProxyContext
|
831
|
+
) => Promise<PreprocessResult>
|
811
832
|
): this {
|
812
|
-
return super.onEthTrace(
|
833
|
+
return super.onEthTrace(
|
834
|
+
"0x79ba5097",
|
835
|
+
handler as any,
|
836
|
+
fetchConfig,
|
837
|
+
preprocessHandler
|
838
|
+
);
|
813
839
|
}
|
814
840
|
|
815
841
|
onCallAccessController(
|
@@ -817,9 +843,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
817
843
|
call: AccessControllerCallTrace,
|
818
844
|
ctx: EACAggregatorProxyContext
|
819
845
|
) => void,
|
820
|
-
fetchConfig?: Partial<EthFetchConfig
|
846
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
847
|
+
preprocessHandler?: (
|
848
|
+
call: AccessControllerCallTrace,
|
849
|
+
ctx: EACAggregatorProxyContext
|
850
|
+
) => Promise<PreprocessResult>
|
821
851
|
): this {
|
822
|
-
return super.onEthTrace(
|
852
|
+
return super.onEthTrace(
|
853
|
+
"0xbc43cbaf",
|
854
|
+
handler as any,
|
855
|
+
fetchConfig,
|
856
|
+
preprocessHandler
|
857
|
+
);
|
823
858
|
}
|
824
859
|
|
825
860
|
onCallAggregator(
|
@@ -827,9 +862,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
827
862
|
call: AggregatorCallTrace,
|
828
863
|
ctx: EACAggregatorProxyContext
|
829
864
|
) => void,
|
830
|
-
fetchConfig?: Partial<EthFetchConfig
|
865
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
866
|
+
preprocessHandler?: (
|
867
|
+
call: AggregatorCallTrace,
|
868
|
+
ctx: EACAggregatorProxyContext
|
869
|
+
) => Promise<PreprocessResult>
|
831
870
|
): this {
|
832
|
-
return super.onEthTrace(
|
871
|
+
return super.onEthTrace(
|
872
|
+
"0x245a7bfc",
|
873
|
+
handler as any,
|
874
|
+
fetchConfig,
|
875
|
+
preprocessHandler
|
876
|
+
);
|
833
877
|
}
|
834
878
|
|
835
879
|
onCallConfirmAggregator(
|
@@ -837,16 +881,34 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
837
881
|
call: ConfirmAggregatorCallTrace,
|
838
882
|
ctx: EACAggregatorProxyContext
|
839
883
|
) => void,
|
840
|
-
fetchConfig?: Partial<EthFetchConfig
|
884
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
885
|
+
preprocessHandler?: (
|
886
|
+
call: ConfirmAggregatorCallTrace,
|
887
|
+
ctx: EACAggregatorProxyContext
|
888
|
+
) => Promise<PreprocessResult>
|
841
889
|
): this {
|
842
|
-
return super.onEthTrace(
|
890
|
+
return super.onEthTrace(
|
891
|
+
"0xa928c096",
|
892
|
+
handler as any,
|
893
|
+
fetchConfig,
|
894
|
+
preprocessHandler
|
895
|
+
);
|
843
896
|
}
|
844
897
|
|
845
898
|
onCallDecimals(
|
846
899
|
handler: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => void,
|
847
|
-
fetchConfig?: Partial<EthFetchConfig
|
900
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
901
|
+
preprocessHandler?: (
|
902
|
+
call: DecimalsCallTrace,
|
903
|
+
ctx: EACAggregatorProxyContext
|
904
|
+
) => Promise<PreprocessResult>
|
848
905
|
): this {
|
849
|
-
return super.onEthTrace(
|
906
|
+
return super.onEthTrace(
|
907
|
+
"0x313ce567",
|
908
|
+
handler as any,
|
909
|
+
fetchConfig,
|
910
|
+
preprocessHandler
|
911
|
+
);
|
850
912
|
}
|
851
913
|
|
852
914
|
onCallDescription(
|
@@ -854,16 +916,34 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
854
916
|
call: DescriptionCallTrace,
|
855
917
|
ctx: EACAggregatorProxyContext
|
856
918
|
) => void,
|
857
|
-
fetchConfig?: Partial<EthFetchConfig
|
919
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
920
|
+
preprocessHandler?: (
|
921
|
+
call: DescriptionCallTrace,
|
922
|
+
ctx: EACAggregatorProxyContext
|
923
|
+
) => Promise<PreprocessResult>
|
858
924
|
): this {
|
859
|
-
return super.onEthTrace(
|
925
|
+
return super.onEthTrace(
|
926
|
+
"0x7284e416",
|
927
|
+
handler as any,
|
928
|
+
fetchConfig,
|
929
|
+
preprocessHandler
|
930
|
+
);
|
860
931
|
}
|
861
932
|
|
862
933
|
onCallGetAnswer(
|
863
934
|
handler: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => void,
|
864
|
-
fetchConfig?: Partial<EthFetchConfig
|
935
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
936
|
+
preprocessHandler?: (
|
937
|
+
call: GetAnswerCallTrace,
|
938
|
+
ctx: EACAggregatorProxyContext
|
939
|
+
) => Promise<PreprocessResult>
|
865
940
|
): this {
|
866
|
-
return super.onEthTrace(
|
941
|
+
return super.onEthTrace(
|
942
|
+
"0xb5ab58dc",
|
943
|
+
handler as any,
|
944
|
+
fetchConfig,
|
945
|
+
preprocessHandler
|
946
|
+
);
|
867
947
|
}
|
868
948
|
|
869
949
|
onCallGetRoundData(
|
@@ -871,9 +951,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
871
951
|
call: GetRoundDataCallTrace,
|
872
952
|
ctx: EACAggregatorProxyContext
|
873
953
|
) => void,
|
874
|
-
fetchConfig?: Partial<EthFetchConfig
|
954
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
955
|
+
preprocessHandler?: (
|
956
|
+
call: GetRoundDataCallTrace,
|
957
|
+
ctx: EACAggregatorProxyContext
|
958
|
+
) => Promise<PreprocessResult>
|
875
959
|
): this {
|
876
|
-
return super.onEthTrace(
|
960
|
+
return super.onEthTrace(
|
961
|
+
"0x9a6fc8f5",
|
962
|
+
handler as any,
|
963
|
+
fetchConfig,
|
964
|
+
preprocessHandler
|
965
|
+
);
|
877
966
|
}
|
878
967
|
|
879
968
|
onCallGetTimestamp(
|
@@ -881,9 +970,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
881
970
|
call: GetTimestampCallTrace,
|
882
971
|
ctx: EACAggregatorProxyContext
|
883
972
|
) => void,
|
884
|
-
fetchConfig?: Partial<EthFetchConfig
|
973
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
974
|
+
preprocessHandler?: (
|
975
|
+
call: GetTimestampCallTrace,
|
976
|
+
ctx: EACAggregatorProxyContext
|
977
|
+
) => Promise<PreprocessResult>
|
885
978
|
): this {
|
886
|
-
return super.onEthTrace(
|
979
|
+
return super.onEthTrace(
|
980
|
+
"0xb633620c",
|
981
|
+
handler as any,
|
982
|
+
fetchConfig,
|
983
|
+
preprocessHandler
|
984
|
+
);
|
887
985
|
}
|
888
986
|
|
889
987
|
onCallLatestAnswer(
|
@@ -891,9 +989,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
891
989
|
call: LatestAnswerCallTrace,
|
892
990
|
ctx: EACAggregatorProxyContext
|
893
991
|
) => void,
|
894
|
-
fetchConfig?: Partial<EthFetchConfig
|
992
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
993
|
+
preprocessHandler?: (
|
994
|
+
call: LatestAnswerCallTrace,
|
995
|
+
ctx: EACAggregatorProxyContext
|
996
|
+
) => Promise<PreprocessResult>
|
895
997
|
): this {
|
896
|
-
return super.onEthTrace(
|
998
|
+
return super.onEthTrace(
|
999
|
+
"0x50d25bcd",
|
1000
|
+
handler as any,
|
1001
|
+
fetchConfig,
|
1002
|
+
preprocessHandler
|
1003
|
+
);
|
897
1004
|
}
|
898
1005
|
|
899
1006
|
onCallLatestRound(
|
@@ -901,9 +1008,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
901
1008
|
call: LatestRoundCallTrace,
|
902
1009
|
ctx: EACAggregatorProxyContext
|
903
1010
|
) => void,
|
904
|
-
fetchConfig?: Partial<EthFetchConfig
|
1011
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1012
|
+
preprocessHandler?: (
|
1013
|
+
call: LatestRoundCallTrace,
|
1014
|
+
ctx: EACAggregatorProxyContext
|
1015
|
+
) => Promise<PreprocessResult>
|
905
1016
|
): this {
|
906
|
-
return super.onEthTrace(
|
1017
|
+
return super.onEthTrace(
|
1018
|
+
"0x668a0f02",
|
1019
|
+
handler as any,
|
1020
|
+
fetchConfig,
|
1021
|
+
preprocessHandler
|
1022
|
+
);
|
907
1023
|
}
|
908
1024
|
|
909
1025
|
onCallLatestRoundData(
|
@@ -911,9 +1027,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
911
1027
|
call: LatestRoundDataCallTrace,
|
912
1028
|
ctx: EACAggregatorProxyContext
|
913
1029
|
) => void,
|
914
|
-
fetchConfig?: Partial<EthFetchConfig
|
1030
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1031
|
+
preprocessHandler?: (
|
1032
|
+
call: LatestRoundDataCallTrace,
|
1033
|
+
ctx: EACAggregatorProxyContext
|
1034
|
+
) => Promise<PreprocessResult>
|
915
1035
|
): this {
|
916
|
-
return super.onEthTrace(
|
1036
|
+
return super.onEthTrace(
|
1037
|
+
"0xfeaf968c",
|
1038
|
+
handler as any,
|
1039
|
+
fetchConfig,
|
1040
|
+
preprocessHandler
|
1041
|
+
);
|
917
1042
|
}
|
918
1043
|
|
919
1044
|
onCallLatestTimestamp(
|
@@ -921,16 +1046,34 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
921
1046
|
call: LatestTimestampCallTrace,
|
922
1047
|
ctx: EACAggregatorProxyContext
|
923
1048
|
) => void,
|
924
|
-
fetchConfig?: Partial<EthFetchConfig
|
1049
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1050
|
+
preprocessHandler?: (
|
1051
|
+
call: LatestTimestampCallTrace,
|
1052
|
+
ctx: EACAggregatorProxyContext
|
1053
|
+
) => Promise<PreprocessResult>
|
925
1054
|
): this {
|
926
|
-
return super.onEthTrace(
|
1055
|
+
return super.onEthTrace(
|
1056
|
+
"0x8205bf6a",
|
1057
|
+
handler as any,
|
1058
|
+
fetchConfig,
|
1059
|
+
preprocessHandler
|
1060
|
+
);
|
927
1061
|
}
|
928
1062
|
|
929
1063
|
onCallOwner(
|
930
1064
|
handler: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => void,
|
931
|
-
fetchConfig?: Partial<EthFetchConfig
|
1065
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1066
|
+
preprocessHandler?: (
|
1067
|
+
call: OwnerCallTrace,
|
1068
|
+
ctx: EACAggregatorProxyContext
|
1069
|
+
) => Promise<PreprocessResult>
|
932
1070
|
): this {
|
933
|
-
return super.onEthTrace(
|
1071
|
+
return super.onEthTrace(
|
1072
|
+
"0x8da5cb5b",
|
1073
|
+
handler as any,
|
1074
|
+
fetchConfig,
|
1075
|
+
preprocessHandler
|
1076
|
+
);
|
934
1077
|
}
|
935
1078
|
|
936
1079
|
onCallPhaseAggregators(
|
@@ -938,16 +1081,34 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
938
1081
|
call: PhaseAggregatorsCallTrace,
|
939
1082
|
ctx: EACAggregatorProxyContext
|
940
1083
|
) => void,
|
941
|
-
fetchConfig?: Partial<EthFetchConfig
|
1084
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1085
|
+
preprocessHandler?: (
|
1086
|
+
call: PhaseAggregatorsCallTrace,
|
1087
|
+
ctx: EACAggregatorProxyContext
|
1088
|
+
) => Promise<PreprocessResult>
|
942
1089
|
): this {
|
943
|
-
return super.onEthTrace(
|
1090
|
+
return super.onEthTrace(
|
1091
|
+
"0xc1597304",
|
1092
|
+
handler as any,
|
1093
|
+
fetchConfig,
|
1094
|
+
preprocessHandler
|
1095
|
+
);
|
944
1096
|
}
|
945
1097
|
|
946
1098
|
onCallPhaseId(
|
947
1099
|
handler: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => void,
|
948
|
-
fetchConfig?: Partial<EthFetchConfig
|
1100
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1101
|
+
preprocessHandler?: (
|
1102
|
+
call: PhaseIdCallTrace,
|
1103
|
+
ctx: EACAggregatorProxyContext
|
1104
|
+
) => Promise<PreprocessResult>
|
949
1105
|
): this {
|
950
|
-
return super.onEthTrace(
|
1106
|
+
return super.onEthTrace(
|
1107
|
+
"0x58303b10",
|
1108
|
+
handler as any,
|
1109
|
+
fetchConfig,
|
1110
|
+
preprocessHandler
|
1111
|
+
);
|
951
1112
|
}
|
952
1113
|
|
953
1114
|
onCallProposeAggregator(
|
@@ -955,9 +1116,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
955
1116
|
call: ProposeAggregatorCallTrace,
|
956
1117
|
ctx: EACAggregatorProxyContext
|
957
1118
|
) => void,
|
958
|
-
fetchConfig?: Partial<EthFetchConfig
|
1119
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1120
|
+
preprocessHandler?: (
|
1121
|
+
call: ProposeAggregatorCallTrace,
|
1122
|
+
ctx: EACAggregatorProxyContext
|
1123
|
+
) => Promise<PreprocessResult>
|
959
1124
|
): this {
|
960
|
-
return super.onEthTrace(
|
1125
|
+
return super.onEthTrace(
|
1126
|
+
"0xf8a2abd3",
|
1127
|
+
handler as any,
|
1128
|
+
fetchConfig,
|
1129
|
+
preprocessHandler
|
1130
|
+
);
|
961
1131
|
}
|
962
1132
|
|
963
1133
|
onCallProposedAggregator(
|
@@ -965,9 +1135,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
965
1135
|
call: ProposedAggregatorCallTrace,
|
966
1136
|
ctx: EACAggregatorProxyContext
|
967
1137
|
) => void,
|
968
|
-
fetchConfig?: Partial<EthFetchConfig
|
1138
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1139
|
+
preprocessHandler?: (
|
1140
|
+
call: ProposedAggregatorCallTrace,
|
1141
|
+
ctx: EACAggregatorProxyContext
|
1142
|
+
) => Promise<PreprocessResult>
|
969
1143
|
): this {
|
970
|
-
return super.onEthTrace(
|
1144
|
+
return super.onEthTrace(
|
1145
|
+
"0xe8c4be30",
|
1146
|
+
handler as any,
|
1147
|
+
fetchConfig,
|
1148
|
+
preprocessHandler
|
1149
|
+
);
|
971
1150
|
}
|
972
1151
|
|
973
1152
|
onCallProposedGetRoundData(
|
@@ -975,9 +1154,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
975
1154
|
call: ProposedGetRoundDataCallTrace,
|
976
1155
|
ctx: EACAggregatorProxyContext
|
977
1156
|
) => void,
|
978
|
-
fetchConfig?: Partial<EthFetchConfig
|
1157
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1158
|
+
preprocessHandler?: (
|
1159
|
+
call: ProposedGetRoundDataCallTrace,
|
1160
|
+
ctx: EACAggregatorProxyContext
|
1161
|
+
) => Promise<PreprocessResult>
|
979
1162
|
): this {
|
980
|
-
return super.onEthTrace(
|
1163
|
+
return super.onEthTrace(
|
1164
|
+
"0x6001ac53",
|
1165
|
+
handler as any,
|
1166
|
+
fetchConfig,
|
1167
|
+
preprocessHandler
|
1168
|
+
);
|
981
1169
|
}
|
982
1170
|
|
983
1171
|
onCallProposedLatestRoundData(
|
@@ -985,9 +1173,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
985
1173
|
call: ProposedLatestRoundDataCallTrace,
|
986
1174
|
ctx: EACAggregatorProxyContext
|
987
1175
|
) => void,
|
988
|
-
fetchConfig?: Partial<EthFetchConfig
|
1176
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1177
|
+
preprocessHandler?: (
|
1178
|
+
call: ProposedLatestRoundDataCallTrace,
|
1179
|
+
ctx: EACAggregatorProxyContext
|
1180
|
+
) => Promise<PreprocessResult>
|
989
1181
|
): this {
|
990
|
-
return super.onEthTrace(
|
1182
|
+
return super.onEthTrace(
|
1183
|
+
"0x8f6b4d91",
|
1184
|
+
handler as any,
|
1185
|
+
fetchConfig,
|
1186
|
+
preprocessHandler
|
1187
|
+
);
|
991
1188
|
}
|
992
1189
|
|
993
1190
|
onCallSetController(
|
@@ -995,9 +1192,18 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
995
1192
|
call: SetControllerCallTrace,
|
996
1193
|
ctx: EACAggregatorProxyContext
|
997
1194
|
) => void,
|
998
|
-
fetchConfig?: Partial<EthFetchConfig
|
1195
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1196
|
+
preprocessHandler?: (
|
1197
|
+
call: SetControllerCallTrace,
|
1198
|
+
ctx: EACAggregatorProxyContext
|
1199
|
+
) => Promise<PreprocessResult>
|
999
1200
|
): this {
|
1000
|
-
return super.onEthTrace(
|
1201
|
+
return super.onEthTrace(
|
1202
|
+
"0x92eefe9b",
|
1203
|
+
handler as any,
|
1204
|
+
fetchConfig,
|
1205
|
+
preprocessHandler
|
1206
|
+
);
|
1001
1207
|
}
|
1002
1208
|
|
1003
1209
|
onCallTransferOwnership(
|
@@ -1005,16 +1211,34 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
1005
1211
|
call: TransferOwnershipCallTrace,
|
1006
1212
|
ctx: EACAggregatorProxyContext
|
1007
1213
|
) => void,
|
1008
|
-
fetchConfig?: Partial<EthFetchConfig
|
1214
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1215
|
+
preprocessHandler?: (
|
1216
|
+
call: TransferOwnershipCallTrace,
|
1217
|
+
ctx: EACAggregatorProxyContext
|
1218
|
+
) => Promise<PreprocessResult>
|
1009
1219
|
): this {
|
1010
|
-
return super.onEthTrace(
|
1220
|
+
return super.onEthTrace(
|
1221
|
+
"0xf2fde38b",
|
1222
|
+
handler as any,
|
1223
|
+
fetchConfig,
|
1224
|
+
preprocessHandler
|
1225
|
+
);
|
1011
1226
|
}
|
1012
1227
|
|
1013
1228
|
onCallVersion(
|
1014
1229
|
handler: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => void,
|
1015
|
-
fetchConfig?: Partial<EthFetchConfig
|
1230
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1231
|
+
preprocessHandler?: (
|
1232
|
+
call: VersionCallTrace,
|
1233
|
+
ctx: EACAggregatorProxyContext
|
1234
|
+
) => Promise<PreprocessResult>
|
1016
1235
|
): this {
|
1017
|
-
return super.onEthTrace(
|
1236
|
+
return super.onEthTrace(
|
1237
|
+
"0x54fd4d50",
|
1238
|
+
handler as any,
|
1239
|
+
fetchConfig,
|
1240
|
+
preprocessHandler
|
1241
|
+
);
|
1018
1242
|
}
|
1019
1243
|
|
1020
1244
|
public static filters = {
|
@@ -1102,20 +1326,28 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1102
1326
|
ctx: EACAggregatorProxyContext
|
1103
1327
|
) => void,
|
1104
1328
|
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
|
1105
|
-
fetchConfig?: Partial<EthFetchConfig
|
1329
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1330
|
+
preprocessHandler?: (
|
1331
|
+
event: AnswerUpdatedEvent,
|
1332
|
+
ctx: EACAggregatorProxyContext
|
1333
|
+
) => Promise<PreprocessResult>
|
1106
1334
|
): this {
|
1107
1335
|
if (!filter) {
|
1108
1336
|
filter = templateContract.filters[
|
1109
1337
|
"AnswerUpdated(int256,uint256,uint256)"
|
1110
1338
|
](null, null, null);
|
1111
1339
|
}
|
1112
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
1340
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
1113
1341
|
}
|
1114
1342
|
|
1115
1343
|
onEventNewRound(
|
1116
1344
|
handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
|
1117
1345
|
filter?: NewRoundEventFilter | NewRoundEventFilter[],
|
1118
|
-
fetchConfig?: Partial<EthFetchConfig
|
1346
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1347
|
+
preprocessHandler?: (
|
1348
|
+
event: NewRoundEvent,
|
1349
|
+
ctx: EACAggregatorProxyContext
|
1350
|
+
) => Promise<PreprocessResult>
|
1119
1351
|
): this {
|
1120
1352
|
if (!filter) {
|
1121
1353
|
filter = templateContract.filters["NewRound(uint256,address,uint256)"](
|
@@ -1124,7 +1356,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1124
1356
|
null
|
1125
1357
|
);
|
1126
1358
|
}
|
1127
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
1359
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
1128
1360
|
}
|
1129
1361
|
|
1130
1362
|
onEventOwnershipTransferRequested(
|
@@ -1135,14 +1367,18 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1135
1367
|
filter?:
|
1136
1368
|
| OwnershipTransferRequestedEventFilter
|
1137
1369
|
| OwnershipTransferRequestedEventFilter[],
|
1138
|
-
fetchConfig?: Partial<EthFetchConfig
|
1370
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1371
|
+
preprocessHandler?: (
|
1372
|
+
event: OwnershipTransferRequestedEvent,
|
1373
|
+
ctx: EACAggregatorProxyContext
|
1374
|
+
) => Promise<PreprocessResult>
|
1139
1375
|
): this {
|
1140
1376
|
if (!filter) {
|
1141
1377
|
filter = templateContract.filters[
|
1142
1378
|
"OwnershipTransferRequested(address,address)"
|
1143
1379
|
](null, null);
|
1144
1380
|
}
|
1145
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
1381
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
1146
1382
|
}
|
1147
1383
|
|
1148
1384
|
onEventOwnershipTransferred(
|
@@ -1153,14 +1389,18 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
1153
1389
|
filter?:
|
1154
1390
|
| OwnershipTransferredEventFilter
|
1155
1391
|
| OwnershipTransferredEventFilter[],
|
1156
|
-
fetchConfig?: Partial<EthFetchConfig
|
1392
|
+
fetchConfig?: Partial<EthFetchConfig>,
|
1393
|
+
preprocessHandler?: (
|
1394
|
+
event: OwnershipTransferredEvent,
|
1395
|
+
ctx: EACAggregatorProxyContext
|
1396
|
+
) => Promise<PreprocessResult>
|
1157
1397
|
): this {
|
1158
1398
|
if (!filter) {
|
1159
1399
|
filter = templateContract.filters[
|
1160
1400
|
"OwnershipTransferred(address,address)"
|
1161
1401
|
](null, null);
|
1162
1402
|
}
|
1163
|
-
return super.onEthEvent(handler, filter!, fetchConfig);
|
1403
|
+
return super.onEthEvent(handler, filter!, fetchConfig, preprocessHandler);
|
1164
1404
|
}
|
1165
1405
|
}
|
1166
1406
|
|