@sentio/sdk 2.11.0 → 2.11.1-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/eth/builtin/internal/common.d.ts +10 -2
- package/lib/eth/builtin/internal/common.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +24 -24
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +9 -9
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +19 -19
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +10 -10
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +15 -15
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +12 -12
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/ethers-sentio.js +35 -0
- package/lib/eth/codegen/ethers-sentio.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/trace.d.ts +16 -1
- package/lib/eth/trace.js +1 -0
- package/lib/eth/trace.js.map +1 -1
- package/package.json +5 -5
- package/src/eth/builtin/internal/common.ts +10 -1
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +46 -66
- package/src/eth/builtin/internal/erc1155-processor.ts +16 -24
- package/src/eth/builtin/internal/erc20-processor.ts +36 -49
- package/src/eth/builtin/internal/erc20bytes-processor.ts +18 -25
- package/src/eth/builtin/internal/erc721-processor.ts +28 -41
- package/src/eth/builtin/internal/weth9-processor.ts +22 -30
- package/src/eth/codegen/ethers-sentio.ts +36 -0
- package/src/eth/codegen/functions-handler.ts +2 -2
- package/src/eth/trace.ts +17 -1
@@ -10,7 +10,6 @@ import {
|
|
10
10
|
getProcessor,
|
11
11
|
getProvider,
|
12
12
|
transformEtherError,
|
13
|
-
Trace,
|
14
13
|
BindOptions,
|
15
14
|
BaseProcessor,
|
16
15
|
BaseProcessorTemplate,
|
@@ -41,21 +40,18 @@ export interface AcceptOwnershipCallObject {}
|
|
41
40
|
export type AcceptOwnershipCallTrace = TypedCallTrace<
|
42
41
|
[],
|
43
42
|
AcceptOwnershipCallObject
|
44
|
-
|
45
|
-
Trace;
|
43
|
+
>;
|
46
44
|
|
47
45
|
export interface AccessControllerCallObject {}
|
48
46
|
|
49
47
|
export type AccessControllerCallTrace = TypedCallTrace<
|
50
48
|
[],
|
51
49
|
AccessControllerCallObject
|
52
|
-
|
53
|
-
Trace;
|
50
|
+
>;
|
54
51
|
|
55
52
|
export interface AggregatorCallObject {}
|
56
53
|
|
57
|
-
export type AggregatorCallTrace = TypedCallTrace<[], AggregatorCallObject
|
58
|
-
Trace;
|
54
|
+
export type AggregatorCallTrace = TypedCallTrace<[], AggregatorCallObject>;
|
59
55
|
|
60
56
|
export interface ConfirmAggregatorCallObject {
|
61
57
|
_aggregator: string;
|
@@ -64,24 +60,21 @@ export interface ConfirmAggregatorCallObject {
|
|
64
60
|
export type ConfirmAggregatorCallTrace = TypedCallTrace<
|
65
61
|
[string],
|
66
62
|
ConfirmAggregatorCallObject
|
67
|
-
|
68
|
-
Trace;
|
63
|
+
>;
|
69
64
|
|
70
65
|
export interface DecimalsCallObject {}
|
71
66
|
|
72
|
-
export type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject
|
67
|
+
export type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject>;
|
73
68
|
|
74
69
|
export interface DescriptionCallObject {}
|
75
70
|
|
76
|
-
export type DescriptionCallTrace = TypedCallTrace<[], DescriptionCallObject
|
77
|
-
Trace;
|
71
|
+
export type DescriptionCallTrace = TypedCallTrace<[], DescriptionCallObject>;
|
78
72
|
|
79
73
|
export interface GetAnswerCallObject {
|
80
74
|
_roundId: bigint;
|
81
75
|
}
|
82
76
|
|
83
|
-
export type GetAnswerCallTrace = TypedCallTrace<[bigint], GetAnswerCallObject
|
84
|
-
Trace;
|
77
|
+
export type GetAnswerCallTrace = TypedCallTrace<[bigint], GetAnswerCallObject>;
|
85
78
|
|
86
79
|
export interface GetRoundDataCallObject {
|
87
80
|
_roundId: bigint;
|
@@ -90,8 +83,7 @@ export interface GetRoundDataCallObject {
|
|
90
83
|
export type GetRoundDataCallTrace = TypedCallTrace<
|
91
84
|
[bigint],
|
92
85
|
GetRoundDataCallObject
|
93
|
-
|
94
|
-
Trace;
|
86
|
+
>;
|
95
87
|
|
96
88
|
export interface GetTimestampCallObject {
|
97
89
|
_roundId: bigint;
|
@@ -100,50 +92,44 @@ export interface GetTimestampCallObject {
|
|
100
92
|
export type GetTimestampCallTrace = TypedCallTrace<
|
101
93
|
[bigint],
|
102
94
|
GetTimestampCallObject
|
103
|
-
|
104
|
-
Trace;
|
95
|
+
>;
|
105
96
|
|
106
97
|
export interface LatestAnswerCallObject {}
|
107
98
|
|
108
|
-
export type LatestAnswerCallTrace = TypedCallTrace<[], LatestAnswerCallObject
|
109
|
-
Trace;
|
99
|
+
export type LatestAnswerCallTrace = TypedCallTrace<[], LatestAnswerCallObject>;
|
110
100
|
|
111
101
|
export interface LatestRoundCallObject {}
|
112
102
|
|
113
|
-
export type LatestRoundCallTrace = TypedCallTrace<[], LatestRoundCallObject
|
114
|
-
Trace;
|
103
|
+
export type LatestRoundCallTrace = TypedCallTrace<[], LatestRoundCallObject>;
|
115
104
|
|
116
105
|
export interface LatestRoundDataCallObject {}
|
117
106
|
|
118
107
|
export type LatestRoundDataCallTrace = TypedCallTrace<
|
119
108
|
[],
|
120
109
|
LatestRoundDataCallObject
|
121
|
-
|
122
|
-
Trace;
|
110
|
+
>;
|
123
111
|
|
124
112
|
export interface LatestTimestampCallObject {}
|
125
113
|
|
126
114
|
export type LatestTimestampCallTrace = TypedCallTrace<
|
127
115
|
[],
|
128
116
|
LatestTimestampCallObject
|
129
|
-
|
130
|
-
Trace;
|
117
|
+
>;
|
131
118
|
|
132
119
|
export interface OwnerCallObject {}
|
133
120
|
|
134
|
-
export type OwnerCallTrace = TypedCallTrace<[], OwnerCallObject
|
121
|
+
export type OwnerCallTrace = TypedCallTrace<[], OwnerCallObject>;
|
135
122
|
|
136
123
|
export interface PhaseAggregatorsCallObject {}
|
137
124
|
|
138
125
|
export type PhaseAggregatorsCallTrace = TypedCallTrace<
|
139
126
|
[bigint],
|
140
127
|
PhaseAggregatorsCallObject
|
141
|
-
|
142
|
-
Trace;
|
128
|
+
>;
|
143
129
|
|
144
130
|
export interface PhaseIdCallObject {}
|
145
131
|
|
146
|
-
export type PhaseIdCallTrace = TypedCallTrace<[], PhaseIdCallObject
|
132
|
+
export type PhaseIdCallTrace = TypedCallTrace<[], PhaseIdCallObject>;
|
147
133
|
|
148
134
|
export interface ProposeAggregatorCallObject {
|
149
135
|
_aggregator: string;
|
@@ -152,16 +138,14 @@ export interface ProposeAggregatorCallObject {
|
|
152
138
|
export type ProposeAggregatorCallTrace = TypedCallTrace<
|
153
139
|
[string],
|
154
140
|
ProposeAggregatorCallObject
|
155
|
-
|
156
|
-
Trace;
|
141
|
+
>;
|
157
142
|
|
158
143
|
export interface ProposedAggregatorCallObject {}
|
159
144
|
|
160
145
|
export type ProposedAggregatorCallTrace = TypedCallTrace<
|
161
146
|
[],
|
162
147
|
ProposedAggregatorCallObject
|
163
|
-
|
164
|
-
Trace;
|
148
|
+
>;
|
165
149
|
|
166
150
|
export interface ProposedGetRoundDataCallObject {
|
167
151
|
_roundId: bigint;
|
@@ -170,16 +154,14 @@ export interface ProposedGetRoundDataCallObject {
|
|
170
154
|
export type ProposedGetRoundDataCallTrace = TypedCallTrace<
|
171
155
|
[bigint],
|
172
156
|
ProposedGetRoundDataCallObject
|
173
|
-
|
174
|
-
Trace;
|
157
|
+
>;
|
175
158
|
|
176
159
|
export interface ProposedLatestRoundDataCallObject {}
|
177
160
|
|
178
161
|
export type ProposedLatestRoundDataCallTrace = TypedCallTrace<
|
179
162
|
[],
|
180
163
|
ProposedLatestRoundDataCallObject
|
181
|
-
|
182
|
-
Trace;
|
164
|
+
>;
|
183
165
|
|
184
166
|
export interface SetControllerCallObject {
|
185
167
|
_accessController: string;
|
@@ -188,8 +170,7 @@ export interface SetControllerCallObject {
|
|
188
170
|
export type SetControllerCallTrace = TypedCallTrace<
|
189
171
|
[string],
|
190
172
|
SetControllerCallObject
|
191
|
-
|
192
|
-
Trace;
|
173
|
+
>;
|
193
174
|
|
194
175
|
export interface TransferOwnershipCallObject {
|
195
176
|
_to: string;
|
@@ -198,12 +179,11 @@ export interface TransferOwnershipCallObject {
|
|
198
179
|
export type TransferOwnershipCallTrace = TypedCallTrace<
|
199
180
|
[string],
|
200
181
|
TransferOwnershipCallObject
|
201
|
-
|
202
|
-
Trace;
|
182
|
+
>;
|
203
183
|
|
204
184
|
export interface VersionCallObject {}
|
205
185
|
|
206
|
-
export type VersionCallTrace = TypedCallTrace<[], VersionCallObject
|
186
|
+
export type VersionCallTrace = TypedCallTrace<[], VersionCallObject>;
|
207
187
|
|
208
188
|
const templateContract = EACAggregatorProxy__factory.connect(
|
209
189
|
"0x0",
|
@@ -737,7 +717,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
737
717
|
) => void,
|
738
718
|
fetchConfig?: Partial<EthFetchConfig>
|
739
719
|
): this {
|
740
|
-
return super.onTrace("0x79ba5097", handler, fetchConfig);
|
720
|
+
return super.onTrace("0x79ba5097", handler as any, fetchConfig);
|
741
721
|
}
|
742
722
|
|
743
723
|
onCallAccessController(
|
@@ -747,7 +727,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
747
727
|
) => void,
|
748
728
|
fetchConfig?: Partial<EthFetchConfig>
|
749
729
|
): this {
|
750
|
-
return super.onTrace("0xbc43cbaf", handler, fetchConfig);
|
730
|
+
return super.onTrace("0xbc43cbaf", handler as any, fetchConfig);
|
751
731
|
}
|
752
732
|
|
753
733
|
onCallAggregator(
|
@@ -757,7 +737,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
757
737
|
) => void,
|
758
738
|
fetchConfig?: Partial<EthFetchConfig>
|
759
739
|
): this {
|
760
|
-
return super.onTrace("0x245a7bfc", handler, fetchConfig);
|
740
|
+
return super.onTrace("0x245a7bfc", handler as any, fetchConfig);
|
761
741
|
}
|
762
742
|
|
763
743
|
onCallConfirmAggregator(
|
@@ -767,14 +747,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
767
747
|
) => void,
|
768
748
|
fetchConfig?: Partial<EthFetchConfig>
|
769
749
|
): this {
|
770
|
-
return super.onTrace("0xa928c096", handler, fetchConfig);
|
750
|
+
return super.onTrace("0xa928c096", handler as any, fetchConfig);
|
771
751
|
}
|
772
752
|
|
773
753
|
onCallDecimals(
|
774
754
|
handler: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => void,
|
775
755
|
fetchConfig?: Partial<EthFetchConfig>
|
776
756
|
): this {
|
777
|
-
return super.onTrace("0x313ce567", handler, fetchConfig);
|
757
|
+
return super.onTrace("0x313ce567", handler as any, fetchConfig);
|
778
758
|
}
|
779
759
|
|
780
760
|
onCallDescription(
|
@@ -784,14 +764,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
784
764
|
) => void,
|
785
765
|
fetchConfig?: Partial<EthFetchConfig>
|
786
766
|
): this {
|
787
|
-
return super.onTrace("0x7284e416", handler, fetchConfig);
|
767
|
+
return super.onTrace("0x7284e416", handler as any, fetchConfig);
|
788
768
|
}
|
789
769
|
|
790
770
|
onCallGetAnswer(
|
791
771
|
handler: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => void,
|
792
772
|
fetchConfig?: Partial<EthFetchConfig>
|
793
773
|
): this {
|
794
|
-
return super.onTrace("0xb5ab58dc", handler, fetchConfig);
|
774
|
+
return super.onTrace("0xb5ab58dc", handler as any, fetchConfig);
|
795
775
|
}
|
796
776
|
|
797
777
|
onCallGetRoundData(
|
@@ -801,7 +781,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
801
781
|
) => void,
|
802
782
|
fetchConfig?: Partial<EthFetchConfig>
|
803
783
|
): this {
|
804
|
-
return super.onTrace("0x9a6fc8f5", handler, fetchConfig);
|
784
|
+
return super.onTrace("0x9a6fc8f5", handler as any, fetchConfig);
|
805
785
|
}
|
806
786
|
|
807
787
|
onCallGetTimestamp(
|
@@ -811,7 +791,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
811
791
|
) => void,
|
812
792
|
fetchConfig?: Partial<EthFetchConfig>
|
813
793
|
): this {
|
814
|
-
return super.onTrace("0xb633620c", handler, fetchConfig);
|
794
|
+
return super.onTrace("0xb633620c", handler as any, fetchConfig);
|
815
795
|
}
|
816
796
|
|
817
797
|
onCallLatestAnswer(
|
@@ -821,7 +801,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
821
801
|
) => void,
|
822
802
|
fetchConfig?: Partial<EthFetchConfig>
|
823
803
|
): this {
|
824
|
-
return super.onTrace("0x50d25bcd", handler, fetchConfig);
|
804
|
+
return super.onTrace("0x50d25bcd", handler as any, fetchConfig);
|
825
805
|
}
|
826
806
|
|
827
807
|
onCallLatestRound(
|
@@ -831,7 +811,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
831
811
|
) => void,
|
832
812
|
fetchConfig?: Partial<EthFetchConfig>
|
833
813
|
): this {
|
834
|
-
return super.onTrace("0x668a0f02", handler, fetchConfig);
|
814
|
+
return super.onTrace("0x668a0f02", handler as any, fetchConfig);
|
835
815
|
}
|
836
816
|
|
837
817
|
onCallLatestRoundData(
|
@@ -841,7 +821,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
841
821
|
) => void,
|
842
822
|
fetchConfig?: Partial<EthFetchConfig>
|
843
823
|
): this {
|
844
|
-
return super.onTrace("0xfeaf968c", handler, fetchConfig);
|
824
|
+
return super.onTrace("0xfeaf968c", handler as any, fetchConfig);
|
845
825
|
}
|
846
826
|
|
847
827
|
onCallLatestTimestamp(
|
@@ -851,14 +831,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
851
831
|
) => void,
|
852
832
|
fetchConfig?: Partial<EthFetchConfig>
|
853
833
|
): this {
|
854
|
-
return super.onTrace("0x8205bf6a", handler, fetchConfig);
|
834
|
+
return super.onTrace("0x8205bf6a", handler as any, fetchConfig);
|
855
835
|
}
|
856
836
|
|
857
837
|
onCallOwner(
|
858
838
|
handler: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => void,
|
859
839
|
fetchConfig?: Partial<EthFetchConfig>
|
860
840
|
): this {
|
861
|
-
return super.onTrace("0x8da5cb5b", handler, fetchConfig);
|
841
|
+
return super.onTrace("0x8da5cb5b", handler as any, fetchConfig);
|
862
842
|
}
|
863
843
|
|
864
844
|
onCallPhaseAggregators(
|
@@ -868,14 +848,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
868
848
|
) => void,
|
869
849
|
fetchConfig?: Partial<EthFetchConfig>
|
870
850
|
): this {
|
871
|
-
return super.onTrace("0xc1597304", handler, fetchConfig);
|
851
|
+
return super.onTrace("0xc1597304", handler as any, fetchConfig);
|
872
852
|
}
|
873
853
|
|
874
854
|
onCallPhaseId(
|
875
855
|
handler: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => void,
|
876
856
|
fetchConfig?: Partial<EthFetchConfig>
|
877
857
|
): this {
|
878
|
-
return super.onTrace("0x58303b10", handler, fetchConfig);
|
858
|
+
return super.onTrace("0x58303b10", handler as any, fetchConfig);
|
879
859
|
}
|
880
860
|
|
881
861
|
onCallProposeAggregator(
|
@@ -885,7 +865,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
885
865
|
) => void,
|
886
866
|
fetchConfig?: Partial<EthFetchConfig>
|
887
867
|
): this {
|
888
|
-
return super.onTrace("0xf8a2abd3", handler, fetchConfig);
|
868
|
+
return super.onTrace("0xf8a2abd3", handler as any, fetchConfig);
|
889
869
|
}
|
890
870
|
|
891
871
|
onCallProposedAggregator(
|
@@ -895,7 +875,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
895
875
|
) => void,
|
896
876
|
fetchConfig?: Partial<EthFetchConfig>
|
897
877
|
): this {
|
898
|
-
return super.onTrace("0xe8c4be30", handler, fetchConfig);
|
878
|
+
return super.onTrace("0xe8c4be30", handler as any, fetchConfig);
|
899
879
|
}
|
900
880
|
|
901
881
|
onCallProposedGetRoundData(
|
@@ -905,7 +885,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
905
885
|
) => void,
|
906
886
|
fetchConfig?: Partial<EthFetchConfig>
|
907
887
|
): this {
|
908
|
-
return super.onTrace("0x6001ac53", handler, fetchConfig);
|
888
|
+
return super.onTrace("0x6001ac53", handler as any, fetchConfig);
|
909
889
|
}
|
910
890
|
|
911
891
|
onCallProposedLatestRoundData(
|
@@ -915,7 +895,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
915
895
|
) => void,
|
916
896
|
fetchConfig?: Partial<EthFetchConfig>
|
917
897
|
): this {
|
918
|
-
return super.onTrace("0x8f6b4d91", handler, fetchConfig);
|
898
|
+
return super.onTrace("0x8f6b4d91", handler as any, fetchConfig);
|
919
899
|
}
|
920
900
|
|
921
901
|
onCallSetController(
|
@@ -925,7 +905,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
925
905
|
) => void,
|
926
906
|
fetchConfig?: Partial<EthFetchConfig>
|
927
907
|
): this {
|
928
|
-
return super.onTrace("0x92eefe9b", handler, fetchConfig);
|
908
|
+
return super.onTrace("0x92eefe9b", handler as any, fetchConfig);
|
929
909
|
}
|
930
910
|
|
931
911
|
onCallTransferOwnership(
|
@@ -935,14 +915,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
|
|
935
915
|
) => void,
|
936
916
|
fetchConfig?: Partial<EthFetchConfig>
|
937
917
|
): this {
|
938
|
-
return super.onTrace("0xf2fde38b", handler, fetchConfig);
|
918
|
+
return super.onTrace("0xf2fde38b", handler as any, fetchConfig);
|
939
919
|
}
|
940
920
|
|
941
921
|
onCallVersion(
|
942
922
|
handler: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => void,
|
943
923
|
fetchConfig?: Partial<EthFetchConfig>
|
944
924
|
): this {
|
945
|
-
return super.onTrace("0x54fd4d50", handler, fetchConfig);
|
925
|
+
return super.onTrace("0x54fd4d50", handler as any, fetchConfig);
|
946
926
|
}
|
947
927
|
|
948
928
|
public static filters = {
|
@@ -10,7 +10,6 @@ import {
|
|
10
10
|
getProcessor,
|
11
11
|
getProvider,
|
12
12
|
transformEtherError,
|
13
|
-
Trace,
|
14
13
|
BindOptions,
|
15
14
|
BaseProcessor,
|
16
15
|
BaseProcessorTemplate,
|
@@ -44,8 +43,7 @@ export interface BalanceOfCallObject {
|
|
44
43
|
export type BalanceOfCallTrace = TypedCallTrace<
|
45
44
|
[string, bigint],
|
46
45
|
BalanceOfCallObject
|
47
|
-
|
48
|
-
Trace;
|
46
|
+
>;
|
49
47
|
|
50
48
|
export interface BalanceOfBatchCallObject {
|
51
49
|
accounts: string[];
|
@@ -55,8 +53,7 @@ export interface BalanceOfBatchCallObject {
|
|
55
53
|
export type BalanceOfBatchCallTrace = TypedCallTrace<
|
56
54
|
[string[], bigint[]],
|
57
55
|
BalanceOfBatchCallObject
|
58
|
-
|
59
|
-
Trace;
|
56
|
+
>;
|
60
57
|
|
61
58
|
export interface IsApprovedForAllCallObject {
|
62
59
|
account: string;
|
@@ -66,8 +63,7 @@ export interface IsApprovedForAllCallObject {
|
|
66
63
|
export type IsApprovedForAllCallTrace = TypedCallTrace<
|
67
64
|
[string, string],
|
68
65
|
IsApprovedForAllCallObject
|
69
|
-
|
70
|
-
Trace;
|
66
|
+
>;
|
71
67
|
|
72
68
|
export interface SafeBatchTransferFromCallObject {
|
73
69
|
from: string;
|
@@ -80,8 +76,7 @@ export interface SafeBatchTransferFromCallObject {
|
|
80
76
|
export type SafeBatchTransferFromCallTrace = TypedCallTrace<
|
81
77
|
[string, string, bigint[], bigint[], string],
|
82
78
|
SafeBatchTransferFromCallObject
|
83
|
-
|
84
|
-
Trace;
|
79
|
+
>;
|
85
80
|
|
86
81
|
export interface SafeTransferFromCallObject {
|
87
82
|
from: string;
|
@@ -94,8 +89,7 @@ export interface SafeTransferFromCallObject {
|
|
94
89
|
export type SafeTransferFromCallTrace = TypedCallTrace<
|
95
90
|
[string, string, bigint, bigint, string],
|
96
91
|
SafeTransferFromCallObject
|
97
|
-
|
98
|
-
Trace;
|
92
|
+
>;
|
99
93
|
|
100
94
|
export interface SetApprovalForAllCallObject {
|
101
95
|
operator: string;
|
@@ -105,8 +99,7 @@ export interface SetApprovalForAllCallObject {
|
|
105
99
|
export type SetApprovalForAllCallTrace = TypedCallTrace<
|
106
100
|
[string, boolean],
|
107
101
|
SetApprovalForAllCallObject
|
108
|
-
|
109
|
-
Trace;
|
102
|
+
>;
|
110
103
|
|
111
104
|
export interface SupportsInterfaceCallObject {
|
112
105
|
interfaceId: string;
|
@@ -115,14 +108,13 @@ export interface SupportsInterfaceCallObject {
|
|
115
108
|
export type SupportsInterfaceCallTrace = TypedCallTrace<
|
116
109
|
[string],
|
117
110
|
SupportsInterfaceCallObject
|
118
|
-
|
119
|
-
Trace;
|
111
|
+
>;
|
120
112
|
|
121
113
|
export interface UriCallObject {
|
122
114
|
id: bigint;
|
123
115
|
}
|
124
116
|
|
125
|
-
export type UriCallTrace = TypedCallTrace<[bigint], UriCallObject
|
117
|
+
export type UriCallTrace = TypedCallTrace<[bigint], UriCallObject>;
|
126
118
|
|
127
119
|
const templateContract = ERC1155__factory.connect("0x0", DummyProvider);
|
128
120
|
|
@@ -328,21 +320,21 @@ export class ERC1155Processor extends BaseProcessor<
|
|
328
320
|
handler: (call: BalanceOfCallTrace, ctx: ERC1155Context) => void,
|
329
321
|
fetchConfig?: Partial<EthFetchConfig>
|
330
322
|
): this {
|
331
|
-
return super.onTrace("0x00fdd58e", handler, fetchConfig);
|
323
|
+
return super.onTrace("0x00fdd58e", handler as any, fetchConfig);
|
332
324
|
}
|
333
325
|
|
334
326
|
onCallBalanceOfBatch(
|
335
327
|
handler: (call: BalanceOfBatchCallTrace, ctx: ERC1155Context) => void,
|
336
328
|
fetchConfig?: Partial<EthFetchConfig>
|
337
329
|
): this {
|
338
|
-
return super.onTrace("0x4e1273f4", handler, fetchConfig);
|
330
|
+
return super.onTrace("0x4e1273f4", handler as any, fetchConfig);
|
339
331
|
}
|
340
332
|
|
341
333
|
onCallIsApprovedForAll(
|
342
334
|
handler: (call: IsApprovedForAllCallTrace, ctx: ERC1155Context) => void,
|
343
335
|
fetchConfig?: Partial<EthFetchConfig>
|
344
336
|
): this {
|
345
|
-
return super.onTrace("0xe985e9c5", handler, fetchConfig);
|
337
|
+
return super.onTrace("0xe985e9c5", handler as any, fetchConfig);
|
346
338
|
}
|
347
339
|
|
348
340
|
onCallSafeBatchTransferFrom(
|
@@ -352,35 +344,35 @@ export class ERC1155Processor extends BaseProcessor<
|
|
352
344
|
) => void,
|
353
345
|
fetchConfig?: Partial<EthFetchConfig>
|
354
346
|
): this {
|
355
|
-
return super.onTrace("0x2eb2c2d6", handler, fetchConfig);
|
347
|
+
return super.onTrace("0x2eb2c2d6", handler as any, fetchConfig);
|
356
348
|
}
|
357
349
|
|
358
350
|
onCallSafeTransferFrom(
|
359
351
|
handler: (call: SafeTransferFromCallTrace, ctx: ERC1155Context) => void,
|
360
352
|
fetchConfig?: Partial<EthFetchConfig>
|
361
353
|
): this {
|
362
|
-
return super.onTrace("0xf242432a", handler, fetchConfig);
|
354
|
+
return super.onTrace("0xf242432a", handler as any, fetchConfig);
|
363
355
|
}
|
364
356
|
|
365
357
|
onCallSetApprovalForAll(
|
366
358
|
handler: (call: SetApprovalForAllCallTrace, ctx: ERC1155Context) => void,
|
367
359
|
fetchConfig?: Partial<EthFetchConfig>
|
368
360
|
): this {
|
369
|
-
return super.onTrace("0xa22cb465", handler, fetchConfig);
|
361
|
+
return super.onTrace("0xa22cb465", handler as any, fetchConfig);
|
370
362
|
}
|
371
363
|
|
372
364
|
onCallSupportsInterface(
|
373
365
|
handler: (call: SupportsInterfaceCallTrace, ctx: ERC1155Context) => void,
|
374
366
|
fetchConfig?: Partial<EthFetchConfig>
|
375
367
|
): this {
|
376
|
-
return super.onTrace("0x01ffc9a7", handler, fetchConfig);
|
368
|
+
return super.onTrace("0x01ffc9a7", handler as any, fetchConfig);
|
377
369
|
}
|
378
370
|
|
379
371
|
onCallUri(
|
380
372
|
handler: (call: UriCallTrace, ctx: ERC1155Context) => void,
|
381
373
|
fetchConfig?: Partial<EthFetchConfig>
|
382
374
|
): this {
|
383
|
-
return super.onTrace("0x0e89341c", handler, fetchConfig);
|
375
|
+
return super.onTrace("0x0e89341c", handler as any, fetchConfig);
|
384
376
|
}
|
385
377
|
|
386
378
|
public static filters = {
|