@sentio/sdk 1.39.0-rc.2 → 1.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/builtin/internal/eacaggregatorproxy_processor.d.ts +32 -31
- package/lib/builtin/internal/eacaggregatorproxy_processor.js +62 -62
- package/lib/builtin/internal/eacaggregatorproxy_processor.js.map +1 -1
- package/lib/builtin/internal/erc1155_processor.d.ts +17 -16
- package/lib/builtin/internal/erc1155_processor.js +32 -32
- package/lib/builtin/internal/erc1155_processor.js.map +1 -1
- package/lib/builtin/internal/erc20_processor.d.ts +25 -24
- package/lib/builtin/internal/erc20_processor.js +48 -48
- package/lib/builtin/internal/erc20_processor.js.map +1 -1
- package/lib/builtin/internal/erc20bytes_processor.d.ts +14 -13
- package/lib/builtin/internal/erc20bytes_processor.js +26 -26
- package/lib/builtin/internal/erc20bytes_processor.js.map +1 -1
- package/lib/builtin/internal/erc721_processor.d.ts +21 -20
- package/lib/builtin/internal/erc721_processor.js +40 -40
- package/lib/builtin/internal/erc721_processor.js.map +1 -1
- package/lib/builtin/internal/weth9_processor.d.ts +20 -19
- package/lib/builtin/internal/weth9_processor.js +38 -38
- package/lib/builtin/internal/weth9_processor.js.map +1 -1
- package/lib/core/account-processor.d.ts +14 -7
- package/lib/core/account-processor.js +27 -20
- package/lib/core/account-processor.js.map +1 -1
- package/lib/core/base-processor-template.d.ts +4 -2
- package/lib/core/base-processor-template.js +6 -2
- package/lib/core/base-processor-template.js.map +1 -1
- package/lib/core/base-processor.d.ts +5 -3
- package/lib/core/base-processor.js +9 -5
- package/lib/core/base-processor.js.map +1 -1
- package/lib/core/context.d.ts +8 -6
- package/lib/core/context.js +10 -6
- package/lib/core/context.js.map +1 -1
- package/lib/core/eth-plugin.js +4 -0
- package/lib/core/eth-plugin.js.map +1 -1
- package/lib/core/sui-plugin.js +1 -0
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/target-ethers-sentio/event-handler.js +3 -2
- package/lib/target-ethers-sentio/event-handler.js.map +1 -1
- package/lib/target-ethers-sentio/file.js +1 -0
- package/lib/target-ethers-sentio/file.js.map +1 -1
- package/lib/target-ethers-sentio/functions-handler.js +3 -2
- package/lib/target-ethers-sentio/functions-handler.js.map +1 -1
- package/lib/utils/price.js +1 -5
- package/lib/utils/price.js.map +1 -1
- package/package.json +4 -4
- package/src/builtin/internal/eacaggregatorproxy_processor.ts +101 -62
- package/src/builtin/internal/erc1155_processor.ts +54 -32
- package/src/builtin/internal/erc20_processor.ts +89 -48
- package/src/builtin/internal/erc20bytes_processor.ts +42 -26
- package/src/builtin/internal/erc721_processor.ts +69 -40
- package/src/builtin/internal/weth9_processor.ts +66 -38
- package/src/core/account-processor.ts +76 -28
- package/src/core/base-processor-template.ts +10 -3
- package/src/core/base-processor.ts +30 -11
- package/src/core/context.ts +25 -9
- package/src/core/eth-plugin.ts +4 -1
- package/src/core/sui-plugin.ts +1 -0
- package/src/target-ethers-sentio/event-handler.ts +3 -2
- package/src/target-ethers-sentio/file.ts +1 -0
- package/src/target-ethers-sentio/functions-handler.ts +3 -2
- package/src/utils/price.ts +1 -5
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
TypedCallTrace,
|
|
21
21
|
toBlockTag,
|
|
22
22
|
} from "@sentio/sdk";
|
|
23
|
+
import { EthFetchConfig } from "@sentio/protos";
|
|
23
24
|
import { PromiseOrValue } from "./common";
|
|
24
25
|
import { EACAggregatorProxy, EACAggregatorProxy__factory } from "./index";
|
|
25
26
|
import {
|
|
@@ -853,7 +854,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
|
853
854
|
event: AnswerUpdatedEvent,
|
|
854
855
|
ctx: EACAggregatorProxyContext
|
|
855
856
|
) => void,
|
|
856
|
-
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[]
|
|
857
|
+
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
|
|
858
|
+
fetchConfig?: EthFetchConfig
|
|
857
859
|
) {
|
|
858
860
|
if (!filter) {
|
|
859
861
|
// @ts-ignore
|
|
@@ -862,12 +864,13 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
|
862
864
|
"AnswerUpdated(int256,uint256,uint256)"
|
|
863
865
|
](null, null, null);
|
|
864
866
|
}
|
|
865
|
-
return super.onEvent(handler, filter
|
|
867
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
866
868
|
}
|
|
867
869
|
|
|
868
870
|
onEventNewRound(
|
|
869
871
|
handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
|
|
870
|
-
filter?: NewRoundEventFilter | NewRoundEventFilter[]
|
|
872
|
+
filter?: NewRoundEventFilter | NewRoundEventFilter[],
|
|
873
|
+
fetchConfig?: EthFetchConfig
|
|
871
874
|
) {
|
|
872
875
|
if (!filter) {
|
|
873
876
|
// @ts-ignore
|
|
@@ -876,7 +879,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
|
876
879
|
"NewRound(uint256,address,uint256)"
|
|
877
880
|
](null, null, null);
|
|
878
881
|
}
|
|
879
|
-
return super.onEvent(handler, filter
|
|
882
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
880
883
|
}
|
|
881
884
|
|
|
882
885
|
onEventOwnershipTransferRequested(
|
|
@@ -886,7 +889,8 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
|
886
889
|
) => void,
|
|
887
890
|
filter?:
|
|
888
891
|
| OwnershipTransferRequestedEventFilter
|
|
889
|
-
| OwnershipTransferRequestedEventFilter[]
|
|
892
|
+
| OwnershipTransferRequestedEventFilter[],
|
|
893
|
+
fetchConfig?: EthFetchConfig
|
|
890
894
|
) {
|
|
891
895
|
if (!filter) {
|
|
892
896
|
// @ts-ignore
|
|
@@ -895,7 +899,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
|
895
899
|
"OwnershipTransferRequested(address,address)"
|
|
896
900
|
](null, null);
|
|
897
901
|
}
|
|
898
|
-
return super.onEvent(handler, filter
|
|
902
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
899
903
|
}
|
|
900
904
|
|
|
901
905
|
onEventOwnershipTransferred(
|
|
@@ -903,7 +907,10 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
|
903
907
|
event: OwnershipTransferredEvent,
|
|
904
908
|
ctx: EACAggregatorProxyContext
|
|
905
909
|
) => void,
|
|
906
|
-
filter?:
|
|
910
|
+
filter?:
|
|
911
|
+
| OwnershipTransferredEventFilter
|
|
912
|
+
| OwnershipTransferredEventFilter[],
|
|
913
|
+
fetchConfig?: EthFetchConfig
|
|
907
914
|
) {
|
|
908
915
|
if (!filter) {
|
|
909
916
|
// @ts-ignore
|
|
@@ -912,7 +919,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
|
|
|
912
919
|
"OwnershipTransferred(address,address)"
|
|
913
920
|
](null, null);
|
|
914
921
|
}
|
|
915
|
-
return super.onEvent(handler, filter
|
|
922
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
916
923
|
}
|
|
917
924
|
}
|
|
918
925
|
|
|
@@ -925,7 +932,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
925
932
|
event: AnswerUpdatedEvent,
|
|
926
933
|
ctx: EACAggregatorProxyContext
|
|
927
934
|
) => void,
|
|
928
|
-
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[]
|
|
935
|
+
filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
|
|
936
|
+
fetchConfig?: EthFetchConfig
|
|
929
937
|
) {
|
|
930
938
|
if (!filter) {
|
|
931
939
|
// @ts-ignore
|
|
@@ -934,12 +942,13 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
934
942
|
"AnswerUpdated(int256,uint256,uint256)"
|
|
935
943
|
](null, null, null);
|
|
936
944
|
}
|
|
937
|
-
return super.onEvent(handler, filter
|
|
945
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
938
946
|
}
|
|
939
947
|
|
|
940
948
|
onEventNewRound(
|
|
941
949
|
handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
|
|
942
|
-
filter?: NewRoundEventFilter | NewRoundEventFilter[]
|
|
950
|
+
filter?: NewRoundEventFilter | NewRoundEventFilter[],
|
|
951
|
+
fetchConfig?: EthFetchConfig
|
|
943
952
|
) {
|
|
944
953
|
if (!filter) {
|
|
945
954
|
// @ts-ignore
|
|
@@ -948,7 +957,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
948
957
|
"NewRound(uint256,address,uint256)"
|
|
949
958
|
](null, null, null);
|
|
950
959
|
}
|
|
951
|
-
return super.onEvent(handler, filter
|
|
960
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
952
961
|
}
|
|
953
962
|
|
|
954
963
|
onEventOwnershipTransferRequested(
|
|
@@ -958,7 +967,8 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
958
967
|
) => void,
|
|
959
968
|
filter?:
|
|
960
969
|
| OwnershipTransferRequestedEventFilter
|
|
961
|
-
| OwnershipTransferRequestedEventFilter[]
|
|
970
|
+
| OwnershipTransferRequestedEventFilter[],
|
|
971
|
+
fetchConfig?: EthFetchConfig
|
|
962
972
|
) {
|
|
963
973
|
if (!filter) {
|
|
964
974
|
// @ts-ignore
|
|
@@ -967,7 +977,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
967
977
|
"OwnershipTransferRequested(address,address)"
|
|
968
978
|
](null, null);
|
|
969
979
|
}
|
|
970
|
-
return super.onEvent(handler, filter
|
|
980
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
971
981
|
}
|
|
972
982
|
|
|
973
983
|
onEventOwnershipTransferred(
|
|
@@ -975,7 +985,10 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
975
985
|
event: OwnershipTransferredEvent,
|
|
976
986
|
ctx: EACAggregatorProxyContext
|
|
977
987
|
) => void,
|
|
978
|
-
filter?:
|
|
988
|
+
filter?:
|
|
989
|
+
| OwnershipTransferredEventFilter
|
|
990
|
+
| OwnershipTransferredEventFilter[],
|
|
991
|
+
fetchConfig?: EthFetchConfig
|
|
979
992
|
) {
|
|
980
993
|
if (!filter) {
|
|
981
994
|
// @ts-ignore
|
|
@@ -984,196 +997,222 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
|
984
997
|
"OwnershipTransferred(address,address)"
|
|
985
998
|
](null, null);
|
|
986
999
|
}
|
|
987
|
-
return super.onEvent(handler, filter
|
|
1000
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
988
1001
|
}
|
|
989
1002
|
|
|
990
1003
|
onCallAcceptOwnership(
|
|
991
1004
|
handler: (
|
|
992
1005
|
call: AcceptOwnershipCallTrace,
|
|
993
1006
|
ctx: EACAggregatorProxyContext
|
|
994
|
-
) => void
|
|
1007
|
+
) => void,
|
|
1008
|
+
fetchConfig?: EthFetchConfig
|
|
995
1009
|
) {
|
|
996
|
-
return super.onTrace("0x79ba5097", handler);
|
|
1010
|
+
return super.onTrace("0x79ba5097", handler, fetchConfig);
|
|
997
1011
|
}
|
|
998
1012
|
|
|
999
1013
|
onCallAccessController(
|
|
1000
1014
|
handler: (
|
|
1001
1015
|
call: AccessControllerCallTrace,
|
|
1002
1016
|
ctx: EACAggregatorProxyContext
|
|
1003
|
-
) => void
|
|
1017
|
+
) => void,
|
|
1018
|
+
fetchConfig?: EthFetchConfig
|
|
1004
1019
|
) {
|
|
1005
|
-
return super.onTrace("0xbc43cbaf", handler);
|
|
1020
|
+
return super.onTrace("0xbc43cbaf", handler, fetchConfig);
|
|
1006
1021
|
}
|
|
1007
1022
|
|
|
1008
1023
|
onCallAggregator(
|
|
1009
|
-
handler: (
|
|
1024
|
+
handler: (
|
|
1025
|
+
call: AggregatorCallTrace,
|
|
1026
|
+
ctx: EACAggregatorProxyContext
|
|
1027
|
+
) => void,
|
|
1028
|
+
fetchConfig?: EthFetchConfig
|
|
1010
1029
|
) {
|
|
1011
|
-
return super.onTrace("0x245a7bfc", handler);
|
|
1030
|
+
return super.onTrace("0x245a7bfc", handler, fetchConfig);
|
|
1012
1031
|
}
|
|
1013
1032
|
|
|
1014
1033
|
onCallConfirmAggregator(
|
|
1015
1034
|
handler: (
|
|
1016
1035
|
call: ConfirmAggregatorCallTrace,
|
|
1017
1036
|
ctx: EACAggregatorProxyContext
|
|
1018
|
-
) => void
|
|
1037
|
+
) => void,
|
|
1038
|
+
fetchConfig?: EthFetchConfig
|
|
1019
1039
|
) {
|
|
1020
|
-
return super.onTrace("0xa928c096", handler);
|
|
1040
|
+
return super.onTrace("0xa928c096", handler, fetchConfig);
|
|
1021
1041
|
}
|
|
1022
1042
|
|
|
1023
1043
|
onCallDecimals(
|
|
1024
|
-
handler: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => void
|
|
1044
|
+
handler: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => void,
|
|
1045
|
+
fetchConfig?: EthFetchConfig
|
|
1025
1046
|
) {
|
|
1026
|
-
return super.onTrace("0x313ce567", handler);
|
|
1047
|
+
return super.onTrace("0x313ce567", handler, fetchConfig);
|
|
1027
1048
|
}
|
|
1028
1049
|
|
|
1029
1050
|
onCallDescription(
|
|
1030
1051
|
handler: (
|
|
1031
1052
|
call: DescriptionCallTrace,
|
|
1032
1053
|
ctx: EACAggregatorProxyContext
|
|
1033
|
-
) => void
|
|
1054
|
+
) => void,
|
|
1055
|
+
fetchConfig?: EthFetchConfig
|
|
1034
1056
|
) {
|
|
1035
|
-
return super.onTrace("0x7284e416", handler);
|
|
1057
|
+
return super.onTrace("0x7284e416", handler, fetchConfig);
|
|
1036
1058
|
}
|
|
1037
1059
|
|
|
1038
1060
|
onCallGetAnswer(
|
|
1039
|
-
handler: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => void
|
|
1061
|
+
handler: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => void,
|
|
1062
|
+
fetchConfig?: EthFetchConfig
|
|
1040
1063
|
) {
|
|
1041
|
-
return super.onTrace("0xb5ab58dc", handler);
|
|
1064
|
+
return super.onTrace("0xb5ab58dc", handler, fetchConfig);
|
|
1042
1065
|
}
|
|
1043
1066
|
|
|
1044
1067
|
onCallGetRoundData(
|
|
1045
1068
|
handler: (
|
|
1046
1069
|
call: GetRoundDataCallTrace,
|
|
1047
1070
|
ctx: EACAggregatorProxyContext
|
|
1048
|
-
) => void
|
|
1071
|
+
) => void,
|
|
1072
|
+
fetchConfig?: EthFetchConfig
|
|
1049
1073
|
) {
|
|
1050
|
-
return super.onTrace("0x9a6fc8f5", handler);
|
|
1074
|
+
return super.onTrace("0x9a6fc8f5", handler, fetchConfig);
|
|
1051
1075
|
}
|
|
1052
1076
|
|
|
1053
1077
|
onCallGetTimestamp(
|
|
1054
1078
|
handler: (
|
|
1055
1079
|
call: GetTimestampCallTrace,
|
|
1056
1080
|
ctx: EACAggregatorProxyContext
|
|
1057
|
-
) => void
|
|
1081
|
+
) => void,
|
|
1082
|
+
fetchConfig?: EthFetchConfig
|
|
1058
1083
|
) {
|
|
1059
|
-
return super.onTrace("0xb633620c", handler);
|
|
1084
|
+
return super.onTrace("0xb633620c", handler, fetchConfig);
|
|
1060
1085
|
}
|
|
1061
1086
|
|
|
1062
1087
|
onCallLatestAnswer(
|
|
1063
1088
|
handler: (
|
|
1064
1089
|
call: LatestAnswerCallTrace,
|
|
1065
1090
|
ctx: EACAggregatorProxyContext
|
|
1066
|
-
) => void
|
|
1091
|
+
) => void,
|
|
1092
|
+
fetchConfig?: EthFetchConfig
|
|
1067
1093
|
) {
|
|
1068
|
-
return super.onTrace("0x50d25bcd", handler);
|
|
1094
|
+
return super.onTrace("0x50d25bcd", handler, fetchConfig);
|
|
1069
1095
|
}
|
|
1070
1096
|
|
|
1071
1097
|
onCallLatestRound(
|
|
1072
1098
|
handler: (
|
|
1073
1099
|
call: LatestRoundCallTrace,
|
|
1074
1100
|
ctx: EACAggregatorProxyContext
|
|
1075
|
-
) => void
|
|
1101
|
+
) => void,
|
|
1102
|
+
fetchConfig?: EthFetchConfig
|
|
1076
1103
|
) {
|
|
1077
|
-
return super.onTrace("0x668a0f02", handler);
|
|
1104
|
+
return super.onTrace("0x668a0f02", handler, fetchConfig);
|
|
1078
1105
|
}
|
|
1079
1106
|
|
|
1080
1107
|
onCallLatestRoundData(
|
|
1081
1108
|
handler: (
|
|
1082
1109
|
call: LatestRoundDataCallTrace,
|
|
1083
1110
|
ctx: EACAggregatorProxyContext
|
|
1084
|
-
) => void
|
|
1111
|
+
) => void,
|
|
1112
|
+
fetchConfig?: EthFetchConfig
|
|
1085
1113
|
) {
|
|
1086
|
-
return super.onTrace("0xfeaf968c", handler);
|
|
1114
|
+
return super.onTrace("0xfeaf968c", handler, fetchConfig);
|
|
1087
1115
|
}
|
|
1088
1116
|
|
|
1089
1117
|
onCallLatestTimestamp(
|
|
1090
1118
|
handler: (
|
|
1091
1119
|
call: LatestTimestampCallTrace,
|
|
1092
1120
|
ctx: EACAggregatorProxyContext
|
|
1093
|
-
) => void
|
|
1121
|
+
) => void,
|
|
1122
|
+
fetchConfig?: EthFetchConfig
|
|
1094
1123
|
) {
|
|
1095
|
-
return super.onTrace("0x8205bf6a", handler);
|
|
1124
|
+
return super.onTrace("0x8205bf6a", handler, fetchConfig);
|
|
1096
1125
|
}
|
|
1097
1126
|
|
|
1098
1127
|
onCallOwner(
|
|
1099
|
-
handler: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => void
|
|
1128
|
+
handler: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => void,
|
|
1129
|
+
fetchConfig?: EthFetchConfig
|
|
1100
1130
|
) {
|
|
1101
|
-
return super.onTrace("0x8da5cb5b", handler);
|
|
1131
|
+
return super.onTrace("0x8da5cb5b", handler, fetchConfig);
|
|
1102
1132
|
}
|
|
1103
1133
|
|
|
1104
1134
|
onCallPhaseAggregators(
|
|
1105
1135
|
handler: (
|
|
1106
1136
|
call: PhaseAggregatorsCallTrace,
|
|
1107
1137
|
ctx: EACAggregatorProxyContext
|
|
1108
|
-
) => void
|
|
1138
|
+
) => void,
|
|
1139
|
+
fetchConfig?: EthFetchConfig
|
|
1109
1140
|
) {
|
|
1110
|
-
return super.onTrace("0xc1597304", handler);
|
|
1141
|
+
return super.onTrace("0xc1597304", handler, fetchConfig);
|
|
1111
1142
|
}
|
|
1112
1143
|
|
|
1113
1144
|
onCallPhaseId(
|
|
1114
|
-
handler: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => void
|
|
1145
|
+
handler: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => void,
|
|
1146
|
+
fetchConfig?: EthFetchConfig
|
|
1115
1147
|
) {
|
|
1116
|
-
return super.onTrace("0x58303b10", handler);
|
|
1148
|
+
return super.onTrace("0x58303b10", handler, fetchConfig);
|
|
1117
1149
|
}
|
|
1118
1150
|
|
|
1119
1151
|
onCallProposeAggregator(
|
|
1120
1152
|
handler: (
|
|
1121
1153
|
call: ProposeAggregatorCallTrace,
|
|
1122
1154
|
ctx: EACAggregatorProxyContext
|
|
1123
|
-
) => void
|
|
1155
|
+
) => void,
|
|
1156
|
+
fetchConfig?: EthFetchConfig
|
|
1124
1157
|
) {
|
|
1125
|
-
return super.onTrace("0xf8a2abd3", handler);
|
|
1158
|
+
return super.onTrace("0xf8a2abd3", handler, fetchConfig);
|
|
1126
1159
|
}
|
|
1127
1160
|
|
|
1128
1161
|
onCallProposedAggregator(
|
|
1129
1162
|
handler: (
|
|
1130
1163
|
call: ProposedAggregatorCallTrace,
|
|
1131
1164
|
ctx: EACAggregatorProxyContext
|
|
1132
|
-
) => void
|
|
1165
|
+
) => void,
|
|
1166
|
+
fetchConfig?: EthFetchConfig
|
|
1133
1167
|
) {
|
|
1134
|
-
return super.onTrace("0xe8c4be30", handler);
|
|
1168
|
+
return super.onTrace("0xe8c4be30", handler, fetchConfig);
|
|
1135
1169
|
}
|
|
1136
1170
|
|
|
1137
1171
|
onCallProposedGetRoundData(
|
|
1138
1172
|
handler: (
|
|
1139
1173
|
call: ProposedGetRoundDataCallTrace,
|
|
1140
1174
|
ctx: EACAggregatorProxyContext
|
|
1141
|
-
) => void
|
|
1175
|
+
) => void,
|
|
1176
|
+
fetchConfig?: EthFetchConfig
|
|
1142
1177
|
) {
|
|
1143
|
-
return super.onTrace("0x6001ac53", handler);
|
|
1178
|
+
return super.onTrace("0x6001ac53", handler, fetchConfig);
|
|
1144
1179
|
}
|
|
1145
1180
|
|
|
1146
1181
|
onCallProposedLatestRoundData(
|
|
1147
1182
|
handler: (
|
|
1148
1183
|
call: ProposedLatestRoundDataCallTrace,
|
|
1149
1184
|
ctx: EACAggregatorProxyContext
|
|
1150
|
-
) => void
|
|
1185
|
+
) => void,
|
|
1186
|
+
fetchConfig?: EthFetchConfig
|
|
1151
1187
|
) {
|
|
1152
|
-
return super.onTrace("0x8f6b4d91", handler);
|
|
1188
|
+
return super.onTrace("0x8f6b4d91", handler, fetchConfig);
|
|
1153
1189
|
}
|
|
1154
1190
|
|
|
1155
1191
|
onCallSetController(
|
|
1156
1192
|
handler: (
|
|
1157
1193
|
call: SetControllerCallTrace,
|
|
1158
1194
|
ctx: EACAggregatorProxyContext
|
|
1159
|
-
) => void
|
|
1195
|
+
) => void,
|
|
1196
|
+
fetchConfig?: EthFetchConfig
|
|
1160
1197
|
) {
|
|
1161
|
-
return super.onTrace("0x92eefe9b", handler);
|
|
1198
|
+
return super.onTrace("0x92eefe9b", handler, fetchConfig);
|
|
1162
1199
|
}
|
|
1163
1200
|
|
|
1164
1201
|
onCallTransferOwnership(
|
|
1165
1202
|
handler: (
|
|
1166
1203
|
call: TransferOwnershipCallTrace,
|
|
1167
1204
|
ctx: EACAggregatorProxyContext
|
|
1168
|
-
) => void
|
|
1205
|
+
) => void,
|
|
1206
|
+
fetchConfig?: EthFetchConfig
|
|
1169
1207
|
) {
|
|
1170
|
-
return super.onTrace("0xf2fde38b", handler);
|
|
1208
|
+
return super.onTrace("0xf2fde38b", handler, fetchConfig);
|
|
1171
1209
|
}
|
|
1172
1210
|
|
|
1173
1211
|
onCallVersion(
|
|
1174
|
-
handler: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => void
|
|
1212
|
+
handler: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => void,
|
|
1213
|
+
fetchConfig?: EthFetchConfig
|
|
1175
1214
|
) {
|
|
1176
|
-
return super.onTrace("0x54fd4d50", handler);
|
|
1215
|
+
return super.onTrace("0x54fd4d50", handler, fetchConfig);
|
|
1177
1216
|
}
|
|
1178
1217
|
|
|
1179
1218
|
public static filters = templateContract.filters;
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
TypedCallTrace,
|
|
21
21
|
toBlockTag,
|
|
22
22
|
} from "@sentio/sdk";
|
|
23
|
+
import { EthFetchConfig } from "@sentio/protos";
|
|
23
24
|
import { PromiseOrValue } from "./common";
|
|
24
25
|
import { ERC1155, ERC1155__factory } from "./index";
|
|
25
26
|
import {
|
|
@@ -336,7 +337,8 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
|
336
337
|
|
|
337
338
|
onEventApprovalForAll(
|
|
338
339
|
handler: (event: ApprovalForAllEvent, ctx: ERC1155Context) => void,
|
|
339
|
-
filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[]
|
|
340
|
+
filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
|
|
341
|
+
fetchConfig?: EthFetchConfig
|
|
340
342
|
) {
|
|
341
343
|
if (!filter) {
|
|
342
344
|
// @ts-ignore
|
|
@@ -345,12 +347,13 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
|
345
347
|
"ApprovalForAll(address,address,bool)"
|
|
346
348
|
](null, null, null);
|
|
347
349
|
}
|
|
348
|
-
return super.onEvent(handler, filter
|
|
350
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
349
351
|
}
|
|
350
352
|
|
|
351
353
|
onEventTransferBatch(
|
|
352
354
|
handler: (event: TransferBatchEvent, ctx: ERC1155Context) => void,
|
|
353
|
-
filter?: TransferBatchEventFilter | TransferBatchEventFilter[]
|
|
355
|
+
filter?: TransferBatchEventFilter | TransferBatchEventFilter[],
|
|
356
|
+
fetchConfig?: EthFetchConfig
|
|
354
357
|
) {
|
|
355
358
|
if (!filter) {
|
|
356
359
|
// @ts-ignore
|
|
@@ -359,12 +362,13 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
|
359
362
|
"TransferBatch(address,address,address,uint256[],uint256[])"
|
|
360
363
|
](null, null, null, null, null);
|
|
361
364
|
}
|
|
362
|
-
return super.onEvent(handler, filter
|
|
365
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
363
366
|
}
|
|
364
367
|
|
|
365
368
|
onEventTransferSingle(
|
|
366
369
|
handler: (event: TransferSingleEvent, ctx: ERC1155Context) => void,
|
|
367
|
-
filter?: TransferSingleEventFilter | TransferSingleEventFilter[]
|
|
370
|
+
filter?: TransferSingleEventFilter | TransferSingleEventFilter[],
|
|
371
|
+
fetchConfig?: EthFetchConfig
|
|
368
372
|
) {
|
|
369
373
|
if (!filter) {
|
|
370
374
|
// @ts-ignore
|
|
@@ -373,12 +377,13 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
|
373
377
|
"TransferSingle(address,address,address,uint256,uint256)"
|
|
374
378
|
](null, null, null, null, null);
|
|
375
379
|
}
|
|
376
|
-
return super.onEvent(handler, filter
|
|
380
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
377
381
|
}
|
|
378
382
|
|
|
379
383
|
onEventURI(
|
|
380
384
|
handler: (event: URIEvent, ctx: ERC1155Context) => void,
|
|
381
|
-
filter?: URIEventFilter | URIEventFilter[]
|
|
385
|
+
filter?: URIEventFilter | URIEventFilter[],
|
|
386
|
+
fetchConfig?: EthFetchConfig
|
|
382
387
|
) {
|
|
383
388
|
if (!filter) {
|
|
384
389
|
// @ts-ignore
|
|
@@ -387,7 +392,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
|
|
|
387
392
|
"URI(string,uint256)"
|
|
388
393
|
](null, null);
|
|
389
394
|
}
|
|
390
|
-
return super.onEvent(handler, filter
|
|
395
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
391
396
|
}
|
|
392
397
|
}
|
|
393
398
|
|
|
@@ -397,7 +402,8 @@ export class ERC1155Processor extends BaseProcessor<
|
|
|
397
402
|
> {
|
|
398
403
|
onEventApprovalForAll(
|
|
399
404
|
handler: (event: ApprovalForAllEvent, ctx: ERC1155Context) => void,
|
|
400
|
-
filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[]
|
|
405
|
+
filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
|
|
406
|
+
fetchConfig?: EthFetchConfig
|
|
401
407
|
) {
|
|
402
408
|
if (!filter) {
|
|
403
409
|
// @ts-ignore
|
|
@@ -406,12 +412,13 @@ export class ERC1155Processor extends BaseProcessor<
|
|
|
406
412
|
"ApprovalForAll(address,address,bool)"
|
|
407
413
|
](null, null, null);
|
|
408
414
|
}
|
|
409
|
-
return super.onEvent(handler, filter
|
|
415
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
410
416
|
}
|
|
411
417
|
|
|
412
418
|
onEventTransferBatch(
|
|
413
419
|
handler: (event: TransferBatchEvent, ctx: ERC1155Context) => void,
|
|
414
|
-
filter?: TransferBatchEventFilter | TransferBatchEventFilter[]
|
|
420
|
+
filter?: TransferBatchEventFilter | TransferBatchEventFilter[],
|
|
421
|
+
fetchConfig?: EthFetchConfig
|
|
415
422
|
) {
|
|
416
423
|
if (!filter) {
|
|
417
424
|
// @ts-ignore
|
|
@@ -420,12 +427,13 @@ export class ERC1155Processor extends BaseProcessor<
|
|
|
420
427
|
"TransferBatch(address,address,address,uint256[],uint256[])"
|
|
421
428
|
](null, null, null, null, null);
|
|
422
429
|
}
|
|
423
|
-
return super.onEvent(handler, filter
|
|
430
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
424
431
|
}
|
|
425
432
|
|
|
426
433
|
onEventTransferSingle(
|
|
427
434
|
handler: (event: TransferSingleEvent, ctx: ERC1155Context) => void,
|
|
428
|
-
filter?: TransferSingleEventFilter | TransferSingleEventFilter[]
|
|
435
|
+
filter?: TransferSingleEventFilter | TransferSingleEventFilter[],
|
|
436
|
+
fetchConfig?: EthFetchConfig
|
|
429
437
|
) {
|
|
430
438
|
if (!filter) {
|
|
431
439
|
// @ts-ignore
|
|
@@ -434,12 +442,13 @@ export class ERC1155Processor extends BaseProcessor<
|
|
|
434
442
|
"TransferSingle(address,address,address,uint256,uint256)"
|
|
435
443
|
](null, null, null, null, null);
|
|
436
444
|
}
|
|
437
|
-
return super.onEvent(handler, filter
|
|
445
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
438
446
|
}
|
|
439
447
|
|
|
440
448
|
onEventURI(
|
|
441
449
|
handler: (event: URIEvent, ctx: ERC1155Context) => void,
|
|
442
|
-
filter?: URIEventFilter | URIEventFilter[]
|
|
450
|
+
filter?: URIEventFilter | URIEventFilter[],
|
|
451
|
+
fetchConfig?: EthFetchConfig
|
|
443
452
|
) {
|
|
444
453
|
if (!filter) {
|
|
445
454
|
// @ts-ignore
|
|
@@ -448,53 +457,66 @@ export class ERC1155Processor extends BaseProcessor<
|
|
|
448
457
|
"URI(string,uint256)"
|
|
449
458
|
](null, null);
|
|
450
459
|
}
|
|
451
|
-
return super.onEvent(handler, filter
|
|
460
|
+
return super.onEvent(handler, filter!, fetchConfig);
|
|
452
461
|
}
|
|
453
462
|
|
|
454
463
|
onCallBalanceOf(
|
|
455
|
-
handler: (call: BalanceOfCallTrace, ctx: ERC1155Context) => void
|
|
464
|
+
handler: (call: BalanceOfCallTrace, ctx: ERC1155Context) => void,
|
|
465
|
+
fetchConfig?: EthFetchConfig
|
|
456
466
|
) {
|
|
457
|
-
return super.onTrace("0x00fdd58e", handler);
|
|
467
|
+
return super.onTrace("0x00fdd58e", handler, fetchConfig);
|
|
458
468
|
}
|
|
459
469
|
|
|
460
470
|
onCallBalanceOfBatch(
|
|
461
|
-
handler: (call: BalanceOfBatchCallTrace, ctx: ERC1155Context) => void
|
|
471
|
+
handler: (call: BalanceOfBatchCallTrace, ctx: ERC1155Context) => void,
|
|
472
|
+
fetchConfig?: EthFetchConfig
|
|
462
473
|
) {
|
|
463
|
-
return super.onTrace("0x4e1273f4", handler);
|
|
474
|
+
return super.onTrace("0x4e1273f4", handler, fetchConfig);
|
|
464
475
|
}
|
|
465
476
|
|
|
466
477
|
onCallIsApprovedForAll(
|
|
467
|
-
handler: (call: IsApprovedForAllCallTrace, ctx: ERC1155Context) => void
|
|
478
|
+
handler: (call: IsApprovedForAllCallTrace, ctx: ERC1155Context) => void,
|
|
479
|
+
fetchConfig?: EthFetchConfig
|
|
468
480
|
) {
|
|
469
|
-
return super.onTrace("0xe985e9c5", handler);
|
|
481
|
+
return super.onTrace("0xe985e9c5", handler, fetchConfig);
|
|
470
482
|
}
|
|
471
483
|
|
|
472
484
|
onCallSafeBatchTransferFrom(
|
|
473
|
-
handler: (
|
|
485
|
+
handler: (
|
|
486
|
+
call: SafeBatchTransferFromCallTrace,
|
|
487
|
+
ctx: ERC1155Context
|
|
488
|
+
) => void,
|
|
489
|
+
fetchConfig?: EthFetchConfig
|
|
474
490
|
) {
|
|
475
|
-
return super.onTrace("0x2eb2c2d6", handler);
|
|
491
|
+
return super.onTrace("0x2eb2c2d6", handler, fetchConfig);
|
|
476
492
|
}
|
|
477
493
|
|
|
478
494
|
onCallSafeTransferFrom(
|
|
479
|
-
handler: (call: SafeTransferFromCallTrace, ctx: ERC1155Context) => void
|
|
495
|
+
handler: (call: SafeTransferFromCallTrace, ctx: ERC1155Context) => void,
|
|
496
|
+
fetchConfig?: EthFetchConfig
|
|
480
497
|
) {
|
|
481
|
-
return super.onTrace("0xf242432a", handler);
|
|
498
|
+
return super.onTrace("0xf242432a", handler, fetchConfig);
|
|
482
499
|
}
|
|
483
500
|
|
|
484
501
|
onCallSetApprovalForAll(
|
|
485
|
-
handler: (call: SetApprovalForAllCallTrace, ctx: ERC1155Context) => void
|
|
502
|
+
handler: (call: SetApprovalForAllCallTrace, ctx: ERC1155Context) => void,
|
|
503
|
+
fetchConfig?: EthFetchConfig
|
|
486
504
|
) {
|
|
487
|
-
return super.onTrace("0xa22cb465", handler);
|
|
505
|
+
return super.onTrace("0xa22cb465", handler, fetchConfig);
|
|
488
506
|
}
|
|
489
507
|
|
|
490
508
|
onCallSupportsInterface(
|
|
491
|
-
handler: (call: SupportsInterfaceCallTrace, ctx: ERC1155Context) => void
|
|
509
|
+
handler: (call: SupportsInterfaceCallTrace, ctx: ERC1155Context) => void,
|
|
510
|
+
fetchConfig?: EthFetchConfig
|
|
492
511
|
) {
|
|
493
|
-
return super.onTrace("0x01ffc9a7", handler);
|
|
512
|
+
return super.onTrace("0x01ffc9a7", handler, fetchConfig);
|
|
494
513
|
}
|
|
495
514
|
|
|
496
|
-
onCallUri(
|
|
497
|
-
|
|
515
|
+
onCallUri(
|
|
516
|
+
handler: (call: UriCallTrace, ctx: ERC1155Context) => void,
|
|
517
|
+
fetchConfig?: EthFetchConfig
|
|
518
|
+
) {
|
|
519
|
+
return super.onTrace("0x0e89341c", handler, fetchConfig);
|
|
498
520
|
}
|
|
499
521
|
|
|
500
522
|
public static filters = templateContract.filters;
|