@sentio/protos 2.62.0-rc.9 → 2.62.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/processor/protos/processor.d.ts +0 -144
- package/lib/processor/protos/processor.d.ts.map +1 -1
- package/lib/processor/protos/processor.js +105 -1070
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/common/protos/common.d.ts +3 -75
- package/lib/service/common/protos/common.d.ts.map +1 -1
- package/lib/service/common/protos/common.js +13 -466
- package/lib/service/common/protos/common.js.map +1 -1
- package/package.json +1 -1
- package/src/processor/protos/processor.ts +83 -1217
- package/src/service/common/protos/common.ts +13 -552
|
@@ -220,8 +220,6 @@ export enum HandlerType {
|
|
|
220
220
|
FUEL_BLOCK = 17,
|
|
221
221
|
COSMOS_CALL = 14,
|
|
222
222
|
STARKNET_EVENT = 15,
|
|
223
|
-
BTC_TRANSACTION = 16,
|
|
224
|
-
BTC_BLOCK = 18,
|
|
225
223
|
UNRECOGNIZED = -1,
|
|
226
224
|
}
|
|
227
225
|
|
|
@@ -284,12 +282,6 @@ export function handlerTypeFromJSON(object: any): HandlerType {
|
|
|
284
282
|
case 15:
|
|
285
283
|
case "STARKNET_EVENT":
|
|
286
284
|
return HandlerType.STARKNET_EVENT;
|
|
287
|
-
case 16:
|
|
288
|
-
case "BTC_TRANSACTION":
|
|
289
|
-
return HandlerType.BTC_TRANSACTION;
|
|
290
|
-
case 18:
|
|
291
|
-
case "BTC_BLOCK":
|
|
292
|
-
return HandlerType.BTC_BLOCK;
|
|
293
285
|
case -1:
|
|
294
286
|
case "UNRECOGNIZED":
|
|
295
287
|
default:
|
|
@@ -337,10 +329,6 @@ export function handlerTypeToJSON(object: HandlerType): string {
|
|
|
337
329
|
return "COSMOS_CALL";
|
|
338
330
|
case HandlerType.STARKNET_EVENT:
|
|
339
331
|
return "STARKNET_EVENT";
|
|
340
|
-
case HandlerType.BTC_TRANSACTION:
|
|
341
|
-
return "BTC_TRANSACTION";
|
|
342
|
-
case HandlerType.BTC_BLOCK:
|
|
343
|
-
return "BTC_BLOCK";
|
|
344
332
|
case HandlerType.UNRECOGNIZED:
|
|
345
333
|
default:
|
|
346
334
|
return "UNRECOGNIZED";
|
|
@@ -491,7 +479,6 @@ export interface ContractConfig {
|
|
|
491
479
|
fuelReceiptConfigs: FuelReceiptHandlerConfig[];
|
|
492
480
|
cosmosLogConfigs: CosmosLogHandlerConfig[];
|
|
493
481
|
starknetEventConfigs: StarknetEventHandlerConfig[];
|
|
494
|
-
btcTransactionConfigs: BTCTransactionHandlerConfig[];
|
|
495
482
|
instructionConfig: InstructionHandlerConfig | undefined;
|
|
496
483
|
startBlock: bigint;
|
|
497
484
|
endBlock: bigint;
|
|
@@ -860,59 +847,6 @@ export interface StarknetEventHandlerConfig {
|
|
|
860
847
|
handlerName: string;
|
|
861
848
|
}
|
|
862
849
|
|
|
863
|
-
export interface BTCTransactionHandlerConfig {
|
|
864
|
-
filters: BTCTransactionFilter[];
|
|
865
|
-
handlerId: number;
|
|
866
|
-
handlerName: string;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
export interface BTCTransactionFilter {
|
|
870
|
-
inputFilter: BTCTransactionFilter_VinFilter | undefined;
|
|
871
|
-
outputFilter: BTCTransactionFilter_VOutFilter | undefined;
|
|
872
|
-
filter: BTCTransactionFilter_Filter[];
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
export interface BTCTransactionFilter_Condition {
|
|
876
|
-
eq?: RichValue | undefined;
|
|
877
|
-
gt?: RichValue | undefined;
|
|
878
|
-
gte?: RichValue | undefined;
|
|
879
|
-
lt?: RichValue | undefined;
|
|
880
|
-
lte?: RichValue | undefined;
|
|
881
|
-
ne?: RichValue | undefined;
|
|
882
|
-
prefix?: string | undefined;
|
|
883
|
-
contains?: string | undefined;
|
|
884
|
-
notContains?: string | undefined;
|
|
885
|
-
lengthEq?: number | undefined;
|
|
886
|
-
lengthGt?: number | undefined;
|
|
887
|
-
lengthLt?: number | undefined;
|
|
888
|
-
hasAny?: RichValueList | undefined;
|
|
889
|
-
hasAll?: RichValueList | undefined;
|
|
890
|
-
in?: RichValueList | undefined;
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
export interface BTCTransactionFilter_Filter {
|
|
894
|
-
conditions: { [key: string]: BTCTransactionFilter_Condition };
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
export interface BTCTransactionFilter_Filter_ConditionsEntry {
|
|
898
|
-
key: string;
|
|
899
|
-
value: BTCTransactionFilter_Condition | undefined;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
export interface BTCTransactionFilter_Filters {
|
|
903
|
-
filters: BTCTransactionFilter_Filter[];
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
export interface BTCTransactionFilter_VinFilter {
|
|
907
|
-
filters: BTCTransactionFilter_Filters | undefined;
|
|
908
|
-
preVOut: BTCTransactionFilter_Filter | undefined;
|
|
909
|
-
preTransaction: BTCTransactionFilter | undefined;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export interface BTCTransactionFilter_VOutFilter {
|
|
913
|
-
filters: BTCTransactionFilter_Filters | undefined;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
850
|
export interface StarknetEventFilter {
|
|
917
851
|
address: string;
|
|
918
852
|
keys: string[];
|
|
@@ -1280,8 +1214,6 @@ export interface Data {
|
|
|
1280
1214
|
fuelBlock?: Data_FuelBlock | undefined;
|
|
1281
1215
|
cosmosCall?: Data_CosmosCall | undefined;
|
|
1282
1216
|
starknetEvents?: Data_StarknetEvent | undefined;
|
|
1283
|
-
btcTransaction?: Data_BTCTransaction | undefined;
|
|
1284
|
-
btcBlock?: Data_BTCBlock | undefined;
|
|
1285
1217
|
}
|
|
1286
1218
|
|
|
1287
1219
|
export interface Data_EthLog {
|
|
@@ -1400,16 +1332,6 @@ export interface Data_StarknetEvent {
|
|
|
1400
1332
|
timestamp: Date | undefined;
|
|
1401
1333
|
}
|
|
1402
1334
|
|
|
1403
|
-
export interface Data_BTCTransaction {
|
|
1404
|
-
transaction: { [key: string]: any } | undefined;
|
|
1405
|
-
timestamp: Date | undefined;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
export interface Data_BTCBlock {
|
|
1409
|
-
block: { [key: string]: any } | undefined;
|
|
1410
|
-
timestamp: Date | undefined;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
1335
|
export interface DataBinding {
|
|
1414
1336
|
data: Data | undefined;
|
|
1415
1337
|
handlerType: HandlerType;
|
|
@@ -2234,7 +2156,6 @@ function createBaseContractConfig(): ContractConfig {
|
|
|
2234
2156
|
fuelReceiptConfigs: [],
|
|
2235
2157
|
cosmosLogConfigs: [],
|
|
2236
2158
|
starknetEventConfigs: [],
|
|
2237
|
-
btcTransactionConfigs: [],
|
|
2238
2159
|
instructionConfig: undefined,
|
|
2239
2160
|
startBlock: BigInt("0"),
|
|
2240
2161
|
endBlock: BigInt("0"),
|
|
@@ -2286,9 +2207,6 @@ export const ContractConfig = {
|
|
|
2286
2207
|
for (const v of message.starknetEventConfigs) {
|
|
2287
2208
|
StarknetEventHandlerConfig.encode(v!, writer.uint32(138).fork()).ldelim();
|
|
2288
2209
|
}
|
|
2289
|
-
for (const v of message.btcTransactionConfigs) {
|
|
2290
|
-
BTCTransactionHandlerConfig.encode(v!, writer.uint32(146).fork()).ldelim();
|
|
2291
|
-
}
|
|
2292
2210
|
if (message.instructionConfig !== undefined) {
|
|
2293
2211
|
InstructionHandlerConfig.encode(message.instructionConfig, writer.uint32(50).fork()).ldelim();
|
|
2294
2212
|
}
|
|
@@ -2415,13 +2333,6 @@ export const ContractConfig = {
|
|
|
2415
2333
|
|
|
2416
2334
|
message.starknetEventConfigs.push(StarknetEventHandlerConfig.decode(reader, reader.uint32()));
|
|
2417
2335
|
continue;
|
|
2418
|
-
case 18:
|
|
2419
|
-
if (tag !== 146) {
|
|
2420
|
-
break;
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
-
message.btcTransactionConfigs.push(BTCTransactionHandlerConfig.decode(reader, reader.uint32()));
|
|
2424
|
-
continue;
|
|
2425
2336
|
case 6:
|
|
2426
2337
|
if (tag !== 50) {
|
|
2427
2338
|
break;
|
|
@@ -2501,9 +2412,6 @@ export const ContractConfig = {
|
|
|
2501
2412
|
starknetEventConfigs: globalThis.Array.isArray(object?.starknetEventConfigs)
|
|
2502
2413
|
? object.starknetEventConfigs.map((e: any) => StarknetEventHandlerConfig.fromJSON(e))
|
|
2503
2414
|
: [],
|
|
2504
|
-
btcTransactionConfigs: globalThis.Array.isArray(object?.btcTransactionConfigs)
|
|
2505
|
-
? object.btcTransactionConfigs.map((e: any) => BTCTransactionHandlerConfig.fromJSON(e))
|
|
2506
|
-
: [],
|
|
2507
2415
|
instructionConfig: isSet(object.instructionConfig)
|
|
2508
2416
|
? InstructionHandlerConfig.fromJSON(object.instructionConfig)
|
|
2509
2417
|
: undefined,
|
|
@@ -2557,9 +2465,6 @@ export const ContractConfig = {
|
|
|
2557
2465
|
if (message.starknetEventConfigs?.length) {
|
|
2558
2466
|
obj.starknetEventConfigs = message.starknetEventConfigs.map((e) => StarknetEventHandlerConfig.toJSON(e));
|
|
2559
2467
|
}
|
|
2560
|
-
if (message.btcTransactionConfigs?.length) {
|
|
2561
|
-
obj.btcTransactionConfigs = message.btcTransactionConfigs.map((e) => BTCTransactionHandlerConfig.toJSON(e));
|
|
2562
|
-
}
|
|
2563
2468
|
if (message.instructionConfig !== undefined) {
|
|
2564
2469
|
obj.instructionConfig = InstructionHandlerConfig.toJSON(message.instructionConfig);
|
|
2565
2470
|
}
|
|
@@ -2599,8 +2504,6 @@ export const ContractConfig = {
|
|
|
2599
2504
|
message.cosmosLogConfigs = object.cosmosLogConfigs?.map((e) => CosmosLogHandlerConfig.fromPartial(e)) || [];
|
|
2600
2505
|
message.starknetEventConfigs = object.starknetEventConfigs?.map((e) => StarknetEventHandlerConfig.fromPartial(e)) ||
|
|
2601
2506
|
[];
|
|
2602
|
-
message.btcTransactionConfigs =
|
|
2603
|
-
object.btcTransactionConfigs?.map((e) => BTCTransactionHandlerConfig.fromPartial(e)) || [];
|
|
2604
2507
|
message.instructionConfig = (object.instructionConfig !== undefined && object.instructionConfig !== null)
|
|
2605
2508
|
? InstructionHandlerConfig.fromPartial(object.instructionConfig)
|
|
2606
2509
|
: undefined;
|
|
@@ -6822,28 +6725,25 @@ export const StarknetEventHandlerConfig = {
|
|
|
6822
6725
|
},
|
|
6823
6726
|
};
|
|
6824
6727
|
|
|
6825
|
-
function
|
|
6826
|
-
return {
|
|
6728
|
+
function createBaseStarknetEventFilter(): StarknetEventFilter {
|
|
6729
|
+
return { address: "", keys: [] };
|
|
6827
6730
|
}
|
|
6828
6731
|
|
|
6829
|
-
export const
|
|
6830
|
-
encode(message:
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
}
|
|
6834
|
-
if (message.handlerId !== 0) {
|
|
6835
|
-
writer.uint32(16).int32(message.handlerId);
|
|
6732
|
+
export const StarknetEventFilter = {
|
|
6733
|
+
encode(message: StarknetEventFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
6734
|
+
if (message.address !== "") {
|
|
6735
|
+
writer.uint32(10).string(message.address);
|
|
6836
6736
|
}
|
|
6837
|
-
|
|
6838
|
-
writer.uint32(
|
|
6737
|
+
for (const v of message.keys) {
|
|
6738
|
+
writer.uint32(18).string(v!);
|
|
6839
6739
|
}
|
|
6840
6740
|
return writer;
|
|
6841
6741
|
},
|
|
6842
6742
|
|
|
6843
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
6743
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StarknetEventFilter {
|
|
6844
6744
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6845
6745
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6846
|
-
const message =
|
|
6746
|
+
const message = createBaseStarknetEventFilter();
|
|
6847
6747
|
while (reader.pos < end) {
|
|
6848
6748
|
const tag = reader.uint32();
|
|
6849
6749
|
switch (tag >>> 3) {
|
|
@@ -6852,21 +6752,14 @@ export const BTCTransactionHandlerConfig = {
|
|
|
6852
6752
|
break;
|
|
6853
6753
|
}
|
|
6854
6754
|
|
|
6855
|
-
message.
|
|
6755
|
+
message.address = reader.string();
|
|
6856
6756
|
continue;
|
|
6857
6757
|
case 2:
|
|
6858
|
-
if (tag !==
|
|
6859
|
-
break;
|
|
6860
|
-
}
|
|
6861
|
-
|
|
6862
|
-
message.handlerId = reader.int32();
|
|
6863
|
-
continue;
|
|
6864
|
-
case 3:
|
|
6865
|
-
if (tag !== 26) {
|
|
6758
|
+
if (tag !== 18) {
|
|
6866
6759
|
break;
|
|
6867
6760
|
}
|
|
6868
6761
|
|
|
6869
|
-
message.
|
|
6762
|
+
message.keys.push(reader.string());
|
|
6870
6763
|
continue;
|
|
6871
6764
|
}
|
|
6872
6765
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -6877,64 +6770,54 @@ export const BTCTransactionHandlerConfig = {
|
|
|
6877
6770
|
return message;
|
|
6878
6771
|
},
|
|
6879
6772
|
|
|
6880
|
-
fromJSON(object: any):
|
|
6773
|
+
fromJSON(object: any): StarknetEventFilter {
|
|
6881
6774
|
return {
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
: [],
|
|
6885
|
-
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
|
6886
|
-
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
|
6775
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
6776
|
+
keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e: any) => globalThis.String(e)) : [],
|
|
6887
6777
|
};
|
|
6888
6778
|
},
|
|
6889
6779
|
|
|
6890
|
-
toJSON(message:
|
|
6780
|
+
toJSON(message: StarknetEventFilter): unknown {
|
|
6891
6781
|
const obj: any = {};
|
|
6892
|
-
if (message.
|
|
6893
|
-
obj.
|
|
6894
|
-
}
|
|
6895
|
-
if (message.handlerId !== 0) {
|
|
6896
|
-
obj.handlerId = Math.round(message.handlerId);
|
|
6782
|
+
if (message.address !== "") {
|
|
6783
|
+
obj.address = message.address;
|
|
6897
6784
|
}
|
|
6898
|
-
if (message.
|
|
6899
|
-
obj.
|
|
6785
|
+
if (message.keys?.length) {
|
|
6786
|
+
obj.keys = message.keys;
|
|
6900
6787
|
}
|
|
6901
6788
|
return obj;
|
|
6902
6789
|
},
|
|
6903
6790
|
|
|
6904
|
-
create(base?: DeepPartial<
|
|
6905
|
-
return
|
|
6791
|
+
create(base?: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
|
6792
|
+
return StarknetEventFilter.fromPartial(base ?? {});
|
|
6906
6793
|
},
|
|
6907
|
-
fromPartial(object: DeepPartial<
|
|
6908
|
-
const message =
|
|
6909
|
-
message.
|
|
6910
|
-
message.
|
|
6911
|
-
message.handlerName = object.handlerName ?? "";
|
|
6794
|
+
fromPartial(object: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
|
6795
|
+
const message = createBaseStarknetEventFilter();
|
|
6796
|
+
message.address = object.address ?? "";
|
|
6797
|
+
message.keys = object.keys?.map((e) => e) || [];
|
|
6912
6798
|
return message;
|
|
6913
6799
|
},
|
|
6914
6800
|
};
|
|
6915
6801
|
|
|
6916
|
-
function
|
|
6917
|
-
return {
|
|
6802
|
+
function createBaseFuelCallFilter(): FuelCallFilter {
|
|
6803
|
+
return { function: "", includeFailed: false };
|
|
6918
6804
|
}
|
|
6919
6805
|
|
|
6920
|
-
export const
|
|
6921
|
-
encode(message:
|
|
6922
|
-
if (message.
|
|
6923
|
-
|
|
6924
|
-
}
|
|
6925
|
-
if (message.outputFilter !== undefined) {
|
|
6926
|
-
BTCTransactionFilter_VOutFilter.encode(message.outputFilter, writer.uint32(18).fork()).ldelim();
|
|
6806
|
+
export const FuelCallFilter = {
|
|
6807
|
+
encode(message: FuelCallFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
6808
|
+
if (message.function !== "") {
|
|
6809
|
+
writer.uint32(10).string(message.function);
|
|
6927
6810
|
}
|
|
6928
|
-
|
|
6929
|
-
|
|
6811
|
+
if (message.includeFailed !== false) {
|
|
6812
|
+
writer.uint32(16).bool(message.includeFailed);
|
|
6930
6813
|
}
|
|
6931
6814
|
return writer;
|
|
6932
6815
|
},
|
|
6933
6816
|
|
|
6934
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
6817
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallFilter {
|
|
6935
6818
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6936
6819
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6937
|
-
const message =
|
|
6820
|
+
const message = createBaseFuelCallFilter();
|
|
6938
6821
|
while (reader.pos < end) {
|
|
6939
6822
|
const tag = reader.uint32();
|
|
6940
6823
|
switch (tag >>> 3) {
|
|
@@ -6943,21 +6826,14 @@ export const BTCTransactionFilter = {
|
|
|
6943
6826
|
break;
|
|
6944
6827
|
}
|
|
6945
6828
|
|
|
6946
|
-
message.
|
|
6829
|
+
message.function = reader.string();
|
|
6947
6830
|
continue;
|
|
6948
6831
|
case 2:
|
|
6949
|
-
if (tag !==
|
|
6950
|
-
break;
|
|
6951
|
-
}
|
|
6952
|
-
|
|
6953
|
-
message.outputFilter = BTCTransactionFilter_VOutFilter.decode(reader, reader.uint32());
|
|
6954
|
-
continue;
|
|
6955
|
-
case 3:
|
|
6956
|
-
if (tag !== 26) {
|
|
6832
|
+
if (tag !== 16) {
|
|
6957
6833
|
break;
|
|
6958
6834
|
}
|
|
6959
6835
|
|
|
6960
|
-
message.
|
|
6836
|
+
message.includeFailed = reader.bool();
|
|
6961
6837
|
continue;
|
|
6962
6838
|
}
|
|
6963
6839
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -6968,122 +6844,57 @@ export const BTCTransactionFilter = {
|
|
|
6968
6844
|
return message;
|
|
6969
6845
|
},
|
|
6970
6846
|
|
|
6971
|
-
fromJSON(object: any):
|
|
6847
|
+
fromJSON(object: any): FuelCallFilter {
|
|
6972
6848
|
return {
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
? BTCTransactionFilter_VOutFilter.fromJSON(object.outputFilter)
|
|
6976
|
-
: undefined,
|
|
6977
|
-
filter: globalThis.Array.isArray(object?.filter)
|
|
6978
|
-
? object.filter.map((e: any) => BTCTransactionFilter_Filter.fromJSON(e))
|
|
6979
|
-
: [],
|
|
6849
|
+
function: isSet(object.function) ? globalThis.String(object.function) : "",
|
|
6850
|
+
includeFailed: isSet(object.includeFailed) ? globalThis.Boolean(object.includeFailed) : false,
|
|
6980
6851
|
};
|
|
6981
6852
|
},
|
|
6982
6853
|
|
|
6983
|
-
toJSON(message:
|
|
6854
|
+
toJSON(message: FuelCallFilter): unknown {
|
|
6984
6855
|
const obj: any = {};
|
|
6985
|
-
if (message.
|
|
6986
|
-
obj.
|
|
6987
|
-
}
|
|
6988
|
-
if (message.outputFilter !== undefined) {
|
|
6989
|
-
obj.outputFilter = BTCTransactionFilter_VOutFilter.toJSON(message.outputFilter);
|
|
6856
|
+
if (message.function !== "") {
|
|
6857
|
+
obj.function = message.function;
|
|
6990
6858
|
}
|
|
6991
|
-
if (message.
|
|
6992
|
-
obj.
|
|
6859
|
+
if (message.includeFailed !== false) {
|
|
6860
|
+
obj.includeFailed = message.includeFailed;
|
|
6993
6861
|
}
|
|
6994
6862
|
return obj;
|
|
6995
6863
|
},
|
|
6996
6864
|
|
|
6997
|
-
create(base?: DeepPartial<
|
|
6998
|
-
return
|
|
6865
|
+
create(base?: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
|
6866
|
+
return FuelCallFilter.fromPartial(base ?? {});
|
|
6999
6867
|
},
|
|
7000
|
-
fromPartial(object: DeepPartial<
|
|
7001
|
-
const message =
|
|
7002
|
-
message.
|
|
7003
|
-
|
|
7004
|
-
: undefined;
|
|
7005
|
-
message.outputFilter = (object.outputFilter !== undefined && object.outputFilter !== null)
|
|
7006
|
-
? BTCTransactionFilter_VOutFilter.fromPartial(object.outputFilter)
|
|
7007
|
-
: undefined;
|
|
7008
|
-
message.filter = object.filter?.map((e) => BTCTransactionFilter_Filter.fromPartial(e)) || [];
|
|
6868
|
+
fromPartial(object: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
|
6869
|
+
const message = createBaseFuelCallFilter();
|
|
6870
|
+
message.function = object.function ?? "";
|
|
6871
|
+
message.includeFailed = object.includeFailed ?? false;
|
|
7009
6872
|
return message;
|
|
7010
6873
|
},
|
|
7011
6874
|
};
|
|
7012
6875
|
|
|
7013
|
-
function
|
|
7014
|
-
return {
|
|
7015
|
-
eq: undefined,
|
|
7016
|
-
gt: undefined,
|
|
7017
|
-
gte: undefined,
|
|
7018
|
-
lt: undefined,
|
|
7019
|
-
lte: undefined,
|
|
7020
|
-
ne: undefined,
|
|
7021
|
-
prefix: undefined,
|
|
7022
|
-
contains: undefined,
|
|
7023
|
-
notContains: undefined,
|
|
7024
|
-
lengthEq: undefined,
|
|
7025
|
-
lengthGt: undefined,
|
|
7026
|
-
lengthLt: undefined,
|
|
7027
|
-
hasAny: undefined,
|
|
7028
|
-
hasAll: undefined,
|
|
7029
|
-
in: undefined,
|
|
7030
|
-
};
|
|
6876
|
+
function createBaseFuelCallHandlerConfig(): FuelCallHandlerConfig {
|
|
6877
|
+
return { filters: [], handlerId: 0, handlerName: "" };
|
|
7031
6878
|
}
|
|
7032
6879
|
|
|
7033
|
-
export const
|
|
7034
|
-
encode(message:
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
}
|
|
7038
|
-
if (message.gt !== undefined) {
|
|
7039
|
-
RichValue.encode(message.gt, writer.uint32(18).fork()).ldelim();
|
|
7040
|
-
}
|
|
7041
|
-
if (message.gte !== undefined) {
|
|
7042
|
-
RichValue.encode(message.gte, writer.uint32(26).fork()).ldelim();
|
|
7043
|
-
}
|
|
7044
|
-
if (message.lt !== undefined) {
|
|
7045
|
-
RichValue.encode(message.lt, writer.uint32(34).fork()).ldelim();
|
|
7046
|
-
}
|
|
7047
|
-
if (message.lte !== undefined) {
|
|
7048
|
-
RichValue.encode(message.lte, writer.uint32(42).fork()).ldelim();
|
|
7049
|
-
}
|
|
7050
|
-
if (message.ne !== undefined) {
|
|
7051
|
-
RichValue.encode(message.ne, writer.uint32(50).fork()).ldelim();
|
|
7052
|
-
}
|
|
7053
|
-
if (message.prefix !== undefined) {
|
|
7054
|
-
writer.uint32(58).string(message.prefix);
|
|
7055
|
-
}
|
|
7056
|
-
if (message.contains !== undefined) {
|
|
7057
|
-
writer.uint32(66).string(message.contains);
|
|
7058
|
-
}
|
|
7059
|
-
if (message.notContains !== undefined) {
|
|
7060
|
-
writer.uint32(74).string(message.notContains);
|
|
7061
|
-
}
|
|
7062
|
-
if (message.lengthEq !== undefined) {
|
|
7063
|
-
writer.uint32(80).int32(message.lengthEq);
|
|
7064
|
-
}
|
|
7065
|
-
if (message.lengthGt !== undefined) {
|
|
7066
|
-
writer.uint32(88).int32(message.lengthGt);
|
|
7067
|
-
}
|
|
7068
|
-
if (message.lengthLt !== undefined) {
|
|
7069
|
-
writer.uint32(96).int32(message.lengthLt);
|
|
7070
|
-
}
|
|
7071
|
-
if (message.hasAny !== undefined) {
|
|
7072
|
-
RichValueList.encode(message.hasAny, writer.uint32(106).fork()).ldelim();
|
|
6880
|
+
export const FuelCallHandlerConfig = {
|
|
6881
|
+
encode(message: FuelCallHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
6882
|
+
for (const v of message.filters) {
|
|
6883
|
+
FuelCallFilter.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7073
6884
|
}
|
|
7074
|
-
if (message.
|
|
7075
|
-
|
|
6885
|
+
if (message.handlerId !== 0) {
|
|
6886
|
+
writer.uint32(16).int32(message.handlerId);
|
|
7076
6887
|
}
|
|
7077
|
-
if (message.
|
|
7078
|
-
|
|
6888
|
+
if (message.handlerName !== "") {
|
|
6889
|
+
writer.uint32(26).string(message.handlerName);
|
|
7079
6890
|
}
|
|
7080
6891
|
return writer;
|
|
7081
6892
|
},
|
|
7082
6893
|
|
|
7083
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
6894
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallHandlerConfig {
|
|
7084
6895
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7085
6896
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7086
|
-
const message =
|
|
6897
|
+
const message = createBaseFuelCallHandlerConfig();
|
|
7087
6898
|
while (reader.pos < end) {
|
|
7088
6899
|
const tag = reader.uint32();
|
|
7089
6900
|
switch (tag >>> 3) {
|
|
@@ -7092,105 +6903,21 @@ export const BTCTransactionFilter_Condition = {
|
|
|
7092
6903
|
break;
|
|
7093
6904
|
}
|
|
7094
6905
|
|
|
7095
|
-
message.
|
|
6906
|
+
message.filters.push(FuelCallFilter.decode(reader, reader.uint32()));
|
|
7096
6907
|
continue;
|
|
7097
6908
|
case 2:
|
|
7098
|
-
if (tag !==
|
|
6909
|
+
if (tag !== 16) {
|
|
7099
6910
|
break;
|
|
7100
6911
|
}
|
|
7101
6912
|
|
|
7102
|
-
message.
|
|
6913
|
+
message.handlerId = reader.int32();
|
|
7103
6914
|
continue;
|
|
7104
6915
|
case 3:
|
|
7105
6916
|
if (tag !== 26) {
|
|
7106
6917
|
break;
|
|
7107
6918
|
}
|
|
7108
6919
|
|
|
7109
|
-
message.
|
|
7110
|
-
continue;
|
|
7111
|
-
case 4:
|
|
7112
|
-
if (tag !== 34) {
|
|
7113
|
-
break;
|
|
7114
|
-
}
|
|
7115
|
-
|
|
7116
|
-
message.lt = RichValue.decode(reader, reader.uint32());
|
|
7117
|
-
continue;
|
|
7118
|
-
case 5:
|
|
7119
|
-
if (tag !== 42) {
|
|
7120
|
-
break;
|
|
7121
|
-
}
|
|
7122
|
-
|
|
7123
|
-
message.lte = RichValue.decode(reader, reader.uint32());
|
|
7124
|
-
continue;
|
|
7125
|
-
case 6:
|
|
7126
|
-
if (tag !== 50) {
|
|
7127
|
-
break;
|
|
7128
|
-
}
|
|
7129
|
-
|
|
7130
|
-
message.ne = RichValue.decode(reader, reader.uint32());
|
|
7131
|
-
continue;
|
|
7132
|
-
case 7:
|
|
7133
|
-
if (tag !== 58) {
|
|
7134
|
-
break;
|
|
7135
|
-
}
|
|
7136
|
-
|
|
7137
|
-
message.prefix = reader.string();
|
|
7138
|
-
continue;
|
|
7139
|
-
case 8:
|
|
7140
|
-
if (tag !== 66) {
|
|
7141
|
-
break;
|
|
7142
|
-
}
|
|
7143
|
-
|
|
7144
|
-
message.contains = reader.string();
|
|
7145
|
-
continue;
|
|
7146
|
-
case 9:
|
|
7147
|
-
if (tag !== 74) {
|
|
7148
|
-
break;
|
|
7149
|
-
}
|
|
7150
|
-
|
|
7151
|
-
message.notContains = reader.string();
|
|
7152
|
-
continue;
|
|
7153
|
-
case 10:
|
|
7154
|
-
if (tag !== 80) {
|
|
7155
|
-
break;
|
|
7156
|
-
}
|
|
7157
|
-
|
|
7158
|
-
message.lengthEq = reader.int32();
|
|
7159
|
-
continue;
|
|
7160
|
-
case 11:
|
|
7161
|
-
if (tag !== 88) {
|
|
7162
|
-
break;
|
|
7163
|
-
}
|
|
7164
|
-
|
|
7165
|
-
message.lengthGt = reader.int32();
|
|
7166
|
-
continue;
|
|
7167
|
-
case 12:
|
|
7168
|
-
if (tag !== 96) {
|
|
7169
|
-
break;
|
|
7170
|
-
}
|
|
7171
|
-
|
|
7172
|
-
message.lengthLt = reader.int32();
|
|
7173
|
-
continue;
|
|
7174
|
-
case 13:
|
|
7175
|
-
if (tag !== 106) {
|
|
7176
|
-
break;
|
|
7177
|
-
}
|
|
7178
|
-
|
|
7179
|
-
message.hasAny = RichValueList.decode(reader, reader.uint32());
|
|
7180
|
-
continue;
|
|
7181
|
-
case 14:
|
|
7182
|
-
if (tag !== 114) {
|
|
7183
|
-
break;
|
|
7184
|
-
}
|
|
7185
|
-
|
|
7186
|
-
message.hasAll = RichValueList.decode(reader, reader.uint32());
|
|
7187
|
-
continue;
|
|
7188
|
-
case 15:
|
|
7189
|
-
if (tag !== 122) {
|
|
7190
|
-
break;
|
|
7191
|
-
}
|
|
7192
|
-
|
|
7193
|
-
message.in = RichValueList.decode(reader, reader.uint32());
|
|
6920
|
+
message.handlerName = reader.string();
|
|
7194
6921
|
continue;
|
|
7195
6922
|
}
|
|
7196
6923
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7201,703 +6928,26 @@ export const BTCTransactionFilter_Condition = {
|
|
|
7201
6928
|
return message;
|
|
7202
6929
|
},
|
|
7203
6930
|
|
|
7204
|
-
fromJSON(object: any):
|
|
6931
|
+
fromJSON(object: any): FuelCallHandlerConfig {
|
|
7205
6932
|
return {
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
ne: isSet(object.ne) ? RichValue.fromJSON(object.ne) : undefined,
|
|
7212
|
-
prefix: isSet(object.prefix) ? globalThis.String(object.prefix) : undefined,
|
|
7213
|
-
contains: isSet(object.contains) ? globalThis.String(object.contains) : undefined,
|
|
7214
|
-
notContains: isSet(object.notContains) ? globalThis.String(object.notContains) : undefined,
|
|
7215
|
-
lengthEq: isSet(object.lengthEq) ? globalThis.Number(object.lengthEq) : undefined,
|
|
7216
|
-
lengthGt: isSet(object.lengthGt) ? globalThis.Number(object.lengthGt) : undefined,
|
|
7217
|
-
lengthLt: isSet(object.lengthLt) ? globalThis.Number(object.lengthLt) : undefined,
|
|
7218
|
-
hasAny: isSet(object.hasAny) ? RichValueList.fromJSON(object.hasAny) : undefined,
|
|
7219
|
-
hasAll: isSet(object.hasAll) ? RichValueList.fromJSON(object.hasAll) : undefined,
|
|
7220
|
-
in: isSet(object.in) ? RichValueList.fromJSON(object.in) : undefined,
|
|
6933
|
+
filters: globalThis.Array.isArray(object?.filters)
|
|
6934
|
+
? object.filters.map((e: any) => FuelCallFilter.fromJSON(e))
|
|
6935
|
+
: [],
|
|
6936
|
+
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
|
6937
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
|
7221
6938
|
};
|
|
7222
6939
|
},
|
|
7223
6940
|
|
|
7224
|
-
toJSON(message:
|
|
6941
|
+
toJSON(message: FuelCallHandlerConfig): unknown {
|
|
7225
6942
|
const obj: any = {};
|
|
7226
|
-
if (message.
|
|
7227
|
-
obj.
|
|
7228
|
-
}
|
|
7229
|
-
if (message.gt !== undefined) {
|
|
7230
|
-
obj.gt = RichValue.toJSON(message.gt);
|
|
7231
|
-
}
|
|
7232
|
-
if (message.gte !== undefined) {
|
|
7233
|
-
obj.gte = RichValue.toJSON(message.gte);
|
|
7234
|
-
}
|
|
7235
|
-
if (message.lt !== undefined) {
|
|
7236
|
-
obj.lt = RichValue.toJSON(message.lt);
|
|
7237
|
-
}
|
|
7238
|
-
if (message.lte !== undefined) {
|
|
7239
|
-
obj.lte = RichValue.toJSON(message.lte);
|
|
7240
|
-
}
|
|
7241
|
-
if (message.ne !== undefined) {
|
|
7242
|
-
obj.ne = RichValue.toJSON(message.ne);
|
|
7243
|
-
}
|
|
7244
|
-
if (message.prefix !== undefined) {
|
|
7245
|
-
obj.prefix = message.prefix;
|
|
7246
|
-
}
|
|
7247
|
-
if (message.contains !== undefined) {
|
|
7248
|
-
obj.contains = message.contains;
|
|
7249
|
-
}
|
|
7250
|
-
if (message.notContains !== undefined) {
|
|
7251
|
-
obj.notContains = message.notContains;
|
|
7252
|
-
}
|
|
7253
|
-
if (message.lengthEq !== undefined) {
|
|
7254
|
-
obj.lengthEq = Math.round(message.lengthEq);
|
|
7255
|
-
}
|
|
7256
|
-
if (message.lengthGt !== undefined) {
|
|
7257
|
-
obj.lengthGt = Math.round(message.lengthGt);
|
|
7258
|
-
}
|
|
7259
|
-
if (message.lengthLt !== undefined) {
|
|
7260
|
-
obj.lengthLt = Math.round(message.lengthLt);
|
|
6943
|
+
if (message.filters?.length) {
|
|
6944
|
+
obj.filters = message.filters.map((e) => FuelCallFilter.toJSON(e));
|
|
7261
6945
|
}
|
|
7262
|
-
if (message.
|
|
7263
|
-
obj.
|
|
6946
|
+
if (message.handlerId !== 0) {
|
|
6947
|
+
obj.handlerId = Math.round(message.handlerId);
|
|
7264
6948
|
}
|
|
7265
|
-
if (message.
|
|
7266
|
-
obj.
|
|
7267
|
-
}
|
|
7268
|
-
if (message.in !== undefined) {
|
|
7269
|
-
obj.in = RichValueList.toJSON(message.in);
|
|
7270
|
-
}
|
|
7271
|
-
return obj;
|
|
7272
|
-
},
|
|
7273
|
-
|
|
7274
|
-
create(base?: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
|
|
7275
|
-
return BTCTransactionFilter_Condition.fromPartial(base ?? {});
|
|
7276
|
-
},
|
|
7277
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
|
|
7278
|
-
const message = createBaseBTCTransactionFilter_Condition();
|
|
7279
|
-
message.eq = (object.eq !== undefined && object.eq !== null) ? RichValue.fromPartial(object.eq) : undefined;
|
|
7280
|
-
message.gt = (object.gt !== undefined && object.gt !== null) ? RichValue.fromPartial(object.gt) : undefined;
|
|
7281
|
-
message.gte = (object.gte !== undefined && object.gte !== null) ? RichValue.fromPartial(object.gte) : undefined;
|
|
7282
|
-
message.lt = (object.lt !== undefined && object.lt !== null) ? RichValue.fromPartial(object.lt) : undefined;
|
|
7283
|
-
message.lte = (object.lte !== undefined && object.lte !== null) ? RichValue.fromPartial(object.lte) : undefined;
|
|
7284
|
-
message.ne = (object.ne !== undefined && object.ne !== null) ? RichValue.fromPartial(object.ne) : undefined;
|
|
7285
|
-
message.prefix = object.prefix ?? undefined;
|
|
7286
|
-
message.contains = object.contains ?? undefined;
|
|
7287
|
-
message.notContains = object.notContains ?? undefined;
|
|
7288
|
-
message.lengthEq = object.lengthEq ?? undefined;
|
|
7289
|
-
message.lengthGt = object.lengthGt ?? undefined;
|
|
7290
|
-
message.lengthLt = object.lengthLt ?? undefined;
|
|
7291
|
-
message.hasAny = (object.hasAny !== undefined && object.hasAny !== null)
|
|
7292
|
-
? RichValueList.fromPartial(object.hasAny)
|
|
7293
|
-
: undefined;
|
|
7294
|
-
message.hasAll = (object.hasAll !== undefined && object.hasAll !== null)
|
|
7295
|
-
? RichValueList.fromPartial(object.hasAll)
|
|
7296
|
-
: undefined;
|
|
7297
|
-
message.in = (object.in !== undefined && object.in !== null) ? RichValueList.fromPartial(object.in) : undefined;
|
|
7298
|
-
return message;
|
|
7299
|
-
},
|
|
7300
|
-
};
|
|
7301
|
-
|
|
7302
|
-
function createBaseBTCTransactionFilter_Filter(): BTCTransactionFilter_Filter {
|
|
7303
|
-
return { conditions: {} };
|
|
7304
|
-
}
|
|
7305
|
-
|
|
7306
|
-
export const BTCTransactionFilter_Filter = {
|
|
7307
|
-
encode(message: BTCTransactionFilter_Filter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7308
|
-
Object.entries(message.conditions).forEach(([key, value]) => {
|
|
7309
|
-
BTCTransactionFilter_Filter_ConditionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
|
|
7310
|
-
});
|
|
7311
|
-
return writer;
|
|
7312
|
-
},
|
|
7313
|
-
|
|
7314
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filter {
|
|
7315
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7316
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7317
|
-
const message = createBaseBTCTransactionFilter_Filter();
|
|
7318
|
-
while (reader.pos < end) {
|
|
7319
|
-
const tag = reader.uint32();
|
|
7320
|
-
switch (tag >>> 3) {
|
|
7321
|
-
case 1:
|
|
7322
|
-
if (tag !== 10) {
|
|
7323
|
-
break;
|
|
7324
|
-
}
|
|
7325
|
-
|
|
7326
|
-
const entry1 = BTCTransactionFilter_Filter_ConditionsEntry.decode(reader, reader.uint32());
|
|
7327
|
-
if (entry1.value !== undefined) {
|
|
7328
|
-
message.conditions[entry1.key] = entry1.value;
|
|
7329
|
-
}
|
|
7330
|
-
continue;
|
|
7331
|
-
}
|
|
7332
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7333
|
-
break;
|
|
7334
|
-
}
|
|
7335
|
-
reader.skipType(tag & 7);
|
|
7336
|
-
}
|
|
7337
|
-
return message;
|
|
7338
|
-
},
|
|
7339
|
-
|
|
7340
|
-
fromJSON(object: any): BTCTransactionFilter_Filter {
|
|
7341
|
-
return {
|
|
7342
|
-
conditions: isObject(object.conditions)
|
|
7343
|
-
? Object.entries(object.conditions).reduce<{ [key: string]: BTCTransactionFilter_Condition }>(
|
|
7344
|
-
(acc, [key, value]) => {
|
|
7345
|
-
acc[key] = BTCTransactionFilter_Condition.fromJSON(value);
|
|
7346
|
-
return acc;
|
|
7347
|
-
},
|
|
7348
|
-
{},
|
|
7349
|
-
)
|
|
7350
|
-
: {},
|
|
7351
|
-
};
|
|
7352
|
-
},
|
|
7353
|
-
|
|
7354
|
-
toJSON(message: BTCTransactionFilter_Filter): unknown {
|
|
7355
|
-
const obj: any = {};
|
|
7356
|
-
if (message.conditions) {
|
|
7357
|
-
const entries = Object.entries(message.conditions);
|
|
7358
|
-
if (entries.length > 0) {
|
|
7359
|
-
obj.conditions = {};
|
|
7360
|
-
entries.forEach(([k, v]) => {
|
|
7361
|
-
obj.conditions[k] = BTCTransactionFilter_Condition.toJSON(v);
|
|
7362
|
-
});
|
|
7363
|
-
}
|
|
7364
|
-
}
|
|
7365
|
-
return obj;
|
|
7366
|
-
},
|
|
7367
|
-
|
|
7368
|
-
create(base?: DeepPartial<BTCTransactionFilter_Filter>): BTCTransactionFilter_Filter {
|
|
7369
|
-
return BTCTransactionFilter_Filter.fromPartial(base ?? {});
|
|
7370
|
-
},
|
|
7371
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_Filter>): BTCTransactionFilter_Filter {
|
|
7372
|
-
const message = createBaseBTCTransactionFilter_Filter();
|
|
7373
|
-
message.conditions = Object.entries(object.conditions ?? {}).reduce<
|
|
7374
|
-
{ [key: string]: BTCTransactionFilter_Condition }
|
|
7375
|
-
>((acc, [key, value]) => {
|
|
7376
|
-
if (value !== undefined) {
|
|
7377
|
-
acc[key] = BTCTransactionFilter_Condition.fromPartial(value);
|
|
7378
|
-
}
|
|
7379
|
-
return acc;
|
|
7380
|
-
}, {});
|
|
7381
|
-
return message;
|
|
7382
|
-
},
|
|
7383
|
-
};
|
|
7384
|
-
|
|
7385
|
-
function createBaseBTCTransactionFilter_Filter_ConditionsEntry(): BTCTransactionFilter_Filter_ConditionsEntry {
|
|
7386
|
-
return { key: "", value: undefined };
|
|
7387
|
-
}
|
|
7388
|
-
|
|
7389
|
-
export const BTCTransactionFilter_Filter_ConditionsEntry = {
|
|
7390
|
-
encode(message: BTCTransactionFilter_Filter_ConditionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7391
|
-
if (message.key !== "") {
|
|
7392
|
-
writer.uint32(10).string(message.key);
|
|
7393
|
-
}
|
|
7394
|
-
if (message.value !== undefined) {
|
|
7395
|
-
BTCTransactionFilter_Condition.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
7396
|
-
}
|
|
7397
|
-
return writer;
|
|
7398
|
-
},
|
|
7399
|
-
|
|
7400
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filter_ConditionsEntry {
|
|
7401
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7402
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7403
|
-
const message = createBaseBTCTransactionFilter_Filter_ConditionsEntry();
|
|
7404
|
-
while (reader.pos < end) {
|
|
7405
|
-
const tag = reader.uint32();
|
|
7406
|
-
switch (tag >>> 3) {
|
|
7407
|
-
case 1:
|
|
7408
|
-
if (tag !== 10) {
|
|
7409
|
-
break;
|
|
7410
|
-
}
|
|
7411
|
-
|
|
7412
|
-
message.key = reader.string();
|
|
7413
|
-
continue;
|
|
7414
|
-
case 2:
|
|
7415
|
-
if (tag !== 18) {
|
|
7416
|
-
break;
|
|
7417
|
-
}
|
|
7418
|
-
|
|
7419
|
-
message.value = BTCTransactionFilter_Condition.decode(reader, reader.uint32());
|
|
7420
|
-
continue;
|
|
7421
|
-
}
|
|
7422
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7423
|
-
break;
|
|
7424
|
-
}
|
|
7425
|
-
reader.skipType(tag & 7);
|
|
7426
|
-
}
|
|
7427
|
-
return message;
|
|
7428
|
-
},
|
|
7429
|
-
|
|
7430
|
-
fromJSON(object: any): BTCTransactionFilter_Filter_ConditionsEntry {
|
|
7431
|
-
return {
|
|
7432
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
7433
|
-
value: isSet(object.value) ? BTCTransactionFilter_Condition.fromJSON(object.value) : undefined,
|
|
7434
|
-
};
|
|
7435
|
-
},
|
|
7436
|
-
|
|
7437
|
-
toJSON(message: BTCTransactionFilter_Filter_ConditionsEntry): unknown {
|
|
7438
|
-
const obj: any = {};
|
|
7439
|
-
if (message.key !== "") {
|
|
7440
|
-
obj.key = message.key;
|
|
7441
|
-
}
|
|
7442
|
-
if (message.value !== undefined) {
|
|
7443
|
-
obj.value = BTCTransactionFilter_Condition.toJSON(message.value);
|
|
7444
|
-
}
|
|
7445
|
-
return obj;
|
|
7446
|
-
},
|
|
7447
|
-
|
|
7448
|
-
create(base?: DeepPartial<BTCTransactionFilter_Filter_ConditionsEntry>): BTCTransactionFilter_Filter_ConditionsEntry {
|
|
7449
|
-
return BTCTransactionFilter_Filter_ConditionsEntry.fromPartial(base ?? {});
|
|
7450
|
-
},
|
|
7451
|
-
fromPartial(
|
|
7452
|
-
object: DeepPartial<BTCTransactionFilter_Filter_ConditionsEntry>,
|
|
7453
|
-
): BTCTransactionFilter_Filter_ConditionsEntry {
|
|
7454
|
-
const message = createBaseBTCTransactionFilter_Filter_ConditionsEntry();
|
|
7455
|
-
message.key = object.key ?? "";
|
|
7456
|
-
message.value = (object.value !== undefined && object.value !== null)
|
|
7457
|
-
? BTCTransactionFilter_Condition.fromPartial(object.value)
|
|
7458
|
-
: undefined;
|
|
7459
|
-
return message;
|
|
7460
|
-
},
|
|
7461
|
-
};
|
|
7462
|
-
|
|
7463
|
-
function createBaseBTCTransactionFilter_Filters(): BTCTransactionFilter_Filters {
|
|
7464
|
-
return { filters: [] };
|
|
7465
|
-
}
|
|
7466
|
-
|
|
7467
|
-
export const BTCTransactionFilter_Filters = {
|
|
7468
|
-
encode(message: BTCTransactionFilter_Filters, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7469
|
-
for (const v of message.filters) {
|
|
7470
|
-
BTCTransactionFilter_Filter.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7471
|
-
}
|
|
7472
|
-
return writer;
|
|
7473
|
-
},
|
|
7474
|
-
|
|
7475
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filters {
|
|
7476
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7477
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7478
|
-
const message = createBaseBTCTransactionFilter_Filters();
|
|
7479
|
-
while (reader.pos < end) {
|
|
7480
|
-
const tag = reader.uint32();
|
|
7481
|
-
switch (tag >>> 3) {
|
|
7482
|
-
case 1:
|
|
7483
|
-
if (tag !== 10) {
|
|
7484
|
-
break;
|
|
7485
|
-
}
|
|
7486
|
-
|
|
7487
|
-
message.filters.push(BTCTransactionFilter_Filter.decode(reader, reader.uint32()));
|
|
7488
|
-
continue;
|
|
7489
|
-
}
|
|
7490
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7491
|
-
break;
|
|
7492
|
-
}
|
|
7493
|
-
reader.skipType(tag & 7);
|
|
7494
|
-
}
|
|
7495
|
-
return message;
|
|
7496
|
-
},
|
|
7497
|
-
|
|
7498
|
-
fromJSON(object: any): BTCTransactionFilter_Filters {
|
|
7499
|
-
return {
|
|
7500
|
-
filters: globalThis.Array.isArray(object?.filters)
|
|
7501
|
-
? object.filters.map((e: any) => BTCTransactionFilter_Filter.fromJSON(e))
|
|
7502
|
-
: [],
|
|
7503
|
-
};
|
|
7504
|
-
},
|
|
7505
|
-
|
|
7506
|
-
toJSON(message: BTCTransactionFilter_Filters): unknown {
|
|
7507
|
-
const obj: any = {};
|
|
7508
|
-
if (message.filters?.length) {
|
|
7509
|
-
obj.filters = message.filters.map((e) => BTCTransactionFilter_Filter.toJSON(e));
|
|
7510
|
-
}
|
|
7511
|
-
return obj;
|
|
7512
|
-
},
|
|
7513
|
-
|
|
7514
|
-
create(base?: DeepPartial<BTCTransactionFilter_Filters>): BTCTransactionFilter_Filters {
|
|
7515
|
-
return BTCTransactionFilter_Filters.fromPartial(base ?? {});
|
|
7516
|
-
},
|
|
7517
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_Filters>): BTCTransactionFilter_Filters {
|
|
7518
|
-
const message = createBaseBTCTransactionFilter_Filters();
|
|
7519
|
-
message.filters = object.filters?.map((e) => BTCTransactionFilter_Filter.fromPartial(e)) || [];
|
|
7520
|
-
return message;
|
|
7521
|
-
},
|
|
7522
|
-
};
|
|
7523
|
-
|
|
7524
|
-
function createBaseBTCTransactionFilter_VinFilter(): BTCTransactionFilter_VinFilter {
|
|
7525
|
-
return { filters: undefined, preVOut: undefined, preTransaction: undefined };
|
|
7526
|
-
}
|
|
7527
|
-
|
|
7528
|
-
export const BTCTransactionFilter_VinFilter = {
|
|
7529
|
-
encode(message: BTCTransactionFilter_VinFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7530
|
-
if (message.filters !== undefined) {
|
|
7531
|
-
BTCTransactionFilter_Filters.encode(message.filters, writer.uint32(10).fork()).ldelim();
|
|
7532
|
-
}
|
|
7533
|
-
if (message.preVOut !== undefined) {
|
|
7534
|
-
BTCTransactionFilter_Filter.encode(message.preVOut, writer.uint32(18).fork()).ldelim();
|
|
7535
|
-
}
|
|
7536
|
-
if (message.preTransaction !== undefined) {
|
|
7537
|
-
BTCTransactionFilter.encode(message.preTransaction, writer.uint32(26).fork()).ldelim();
|
|
7538
|
-
}
|
|
7539
|
-
return writer;
|
|
7540
|
-
},
|
|
7541
|
-
|
|
7542
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_VinFilter {
|
|
7543
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7544
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7545
|
-
const message = createBaseBTCTransactionFilter_VinFilter();
|
|
7546
|
-
while (reader.pos < end) {
|
|
7547
|
-
const tag = reader.uint32();
|
|
7548
|
-
switch (tag >>> 3) {
|
|
7549
|
-
case 1:
|
|
7550
|
-
if (tag !== 10) {
|
|
7551
|
-
break;
|
|
7552
|
-
}
|
|
7553
|
-
|
|
7554
|
-
message.filters = BTCTransactionFilter_Filters.decode(reader, reader.uint32());
|
|
7555
|
-
continue;
|
|
7556
|
-
case 2:
|
|
7557
|
-
if (tag !== 18) {
|
|
7558
|
-
break;
|
|
7559
|
-
}
|
|
7560
|
-
|
|
7561
|
-
message.preVOut = BTCTransactionFilter_Filter.decode(reader, reader.uint32());
|
|
7562
|
-
continue;
|
|
7563
|
-
case 3:
|
|
7564
|
-
if (tag !== 26) {
|
|
7565
|
-
break;
|
|
7566
|
-
}
|
|
7567
|
-
|
|
7568
|
-
message.preTransaction = BTCTransactionFilter.decode(reader, reader.uint32());
|
|
7569
|
-
continue;
|
|
7570
|
-
}
|
|
7571
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7572
|
-
break;
|
|
7573
|
-
}
|
|
7574
|
-
reader.skipType(tag & 7);
|
|
7575
|
-
}
|
|
7576
|
-
return message;
|
|
7577
|
-
},
|
|
7578
|
-
|
|
7579
|
-
fromJSON(object: any): BTCTransactionFilter_VinFilter {
|
|
7580
|
-
return {
|
|
7581
|
-
filters: isSet(object.filters) ? BTCTransactionFilter_Filters.fromJSON(object.filters) : undefined,
|
|
7582
|
-
preVOut: isSet(object.preVOut) ? BTCTransactionFilter_Filter.fromJSON(object.preVOut) : undefined,
|
|
7583
|
-
preTransaction: isSet(object.preTransaction) ? BTCTransactionFilter.fromJSON(object.preTransaction) : undefined,
|
|
7584
|
-
};
|
|
7585
|
-
},
|
|
7586
|
-
|
|
7587
|
-
toJSON(message: BTCTransactionFilter_VinFilter): unknown {
|
|
7588
|
-
const obj: any = {};
|
|
7589
|
-
if (message.filters !== undefined) {
|
|
7590
|
-
obj.filters = BTCTransactionFilter_Filters.toJSON(message.filters);
|
|
7591
|
-
}
|
|
7592
|
-
if (message.preVOut !== undefined) {
|
|
7593
|
-
obj.preVOut = BTCTransactionFilter_Filter.toJSON(message.preVOut);
|
|
7594
|
-
}
|
|
7595
|
-
if (message.preTransaction !== undefined) {
|
|
7596
|
-
obj.preTransaction = BTCTransactionFilter.toJSON(message.preTransaction);
|
|
7597
|
-
}
|
|
7598
|
-
return obj;
|
|
7599
|
-
},
|
|
7600
|
-
|
|
7601
|
-
create(base?: DeepPartial<BTCTransactionFilter_VinFilter>): BTCTransactionFilter_VinFilter {
|
|
7602
|
-
return BTCTransactionFilter_VinFilter.fromPartial(base ?? {});
|
|
7603
|
-
},
|
|
7604
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_VinFilter>): BTCTransactionFilter_VinFilter {
|
|
7605
|
-
const message = createBaseBTCTransactionFilter_VinFilter();
|
|
7606
|
-
message.filters = (object.filters !== undefined && object.filters !== null)
|
|
7607
|
-
? BTCTransactionFilter_Filters.fromPartial(object.filters)
|
|
7608
|
-
: undefined;
|
|
7609
|
-
message.preVOut = (object.preVOut !== undefined && object.preVOut !== null)
|
|
7610
|
-
? BTCTransactionFilter_Filter.fromPartial(object.preVOut)
|
|
7611
|
-
: undefined;
|
|
7612
|
-
message.preTransaction = (object.preTransaction !== undefined && object.preTransaction !== null)
|
|
7613
|
-
? BTCTransactionFilter.fromPartial(object.preTransaction)
|
|
7614
|
-
: undefined;
|
|
7615
|
-
return message;
|
|
7616
|
-
},
|
|
7617
|
-
};
|
|
7618
|
-
|
|
7619
|
-
function createBaseBTCTransactionFilter_VOutFilter(): BTCTransactionFilter_VOutFilter {
|
|
7620
|
-
return { filters: undefined };
|
|
7621
|
-
}
|
|
7622
|
-
|
|
7623
|
-
export const BTCTransactionFilter_VOutFilter = {
|
|
7624
|
-
encode(message: BTCTransactionFilter_VOutFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7625
|
-
if (message.filters !== undefined) {
|
|
7626
|
-
BTCTransactionFilter_Filters.encode(message.filters, writer.uint32(10).fork()).ldelim();
|
|
7627
|
-
}
|
|
7628
|
-
return writer;
|
|
7629
|
-
},
|
|
7630
|
-
|
|
7631
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_VOutFilter {
|
|
7632
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7633
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7634
|
-
const message = createBaseBTCTransactionFilter_VOutFilter();
|
|
7635
|
-
while (reader.pos < end) {
|
|
7636
|
-
const tag = reader.uint32();
|
|
7637
|
-
switch (tag >>> 3) {
|
|
7638
|
-
case 1:
|
|
7639
|
-
if (tag !== 10) {
|
|
7640
|
-
break;
|
|
7641
|
-
}
|
|
7642
|
-
|
|
7643
|
-
message.filters = BTCTransactionFilter_Filters.decode(reader, reader.uint32());
|
|
7644
|
-
continue;
|
|
7645
|
-
}
|
|
7646
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7647
|
-
break;
|
|
7648
|
-
}
|
|
7649
|
-
reader.skipType(tag & 7);
|
|
7650
|
-
}
|
|
7651
|
-
return message;
|
|
7652
|
-
},
|
|
7653
|
-
|
|
7654
|
-
fromJSON(object: any): BTCTransactionFilter_VOutFilter {
|
|
7655
|
-
return { filters: isSet(object.filters) ? BTCTransactionFilter_Filters.fromJSON(object.filters) : undefined };
|
|
7656
|
-
},
|
|
7657
|
-
|
|
7658
|
-
toJSON(message: BTCTransactionFilter_VOutFilter): unknown {
|
|
7659
|
-
const obj: any = {};
|
|
7660
|
-
if (message.filters !== undefined) {
|
|
7661
|
-
obj.filters = BTCTransactionFilter_Filters.toJSON(message.filters);
|
|
7662
|
-
}
|
|
7663
|
-
return obj;
|
|
7664
|
-
},
|
|
7665
|
-
|
|
7666
|
-
create(base?: DeepPartial<BTCTransactionFilter_VOutFilter>): BTCTransactionFilter_VOutFilter {
|
|
7667
|
-
return BTCTransactionFilter_VOutFilter.fromPartial(base ?? {});
|
|
7668
|
-
},
|
|
7669
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_VOutFilter>): BTCTransactionFilter_VOutFilter {
|
|
7670
|
-
const message = createBaseBTCTransactionFilter_VOutFilter();
|
|
7671
|
-
message.filters = (object.filters !== undefined && object.filters !== null)
|
|
7672
|
-
? BTCTransactionFilter_Filters.fromPartial(object.filters)
|
|
7673
|
-
: undefined;
|
|
7674
|
-
return message;
|
|
7675
|
-
},
|
|
7676
|
-
};
|
|
7677
|
-
|
|
7678
|
-
function createBaseStarknetEventFilter(): StarknetEventFilter {
|
|
7679
|
-
return { address: "", keys: [] };
|
|
7680
|
-
}
|
|
7681
|
-
|
|
7682
|
-
export const StarknetEventFilter = {
|
|
7683
|
-
encode(message: StarknetEventFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7684
|
-
if (message.address !== "") {
|
|
7685
|
-
writer.uint32(10).string(message.address);
|
|
7686
|
-
}
|
|
7687
|
-
for (const v of message.keys) {
|
|
7688
|
-
writer.uint32(18).string(v!);
|
|
7689
|
-
}
|
|
7690
|
-
return writer;
|
|
7691
|
-
},
|
|
7692
|
-
|
|
7693
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StarknetEventFilter {
|
|
7694
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7695
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7696
|
-
const message = createBaseStarknetEventFilter();
|
|
7697
|
-
while (reader.pos < end) {
|
|
7698
|
-
const tag = reader.uint32();
|
|
7699
|
-
switch (tag >>> 3) {
|
|
7700
|
-
case 1:
|
|
7701
|
-
if (tag !== 10) {
|
|
7702
|
-
break;
|
|
7703
|
-
}
|
|
7704
|
-
|
|
7705
|
-
message.address = reader.string();
|
|
7706
|
-
continue;
|
|
7707
|
-
case 2:
|
|
7708
|
-
if (tag !== 18) {
|
|
7709
|
-
break;
|
|
7710
|
-
}
|
|
7711
|
-
|
|
7712
|
-
message.keys.push(reader.string());
|
|
7713
|
-
continue;
|
|
7714
|
-
}
|
|
7715
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7716
|
-
break;
|
|
7717
|
-
}
|
|
7718
|
-
reader.skipType(tag & 7);
|
|
7719
|
-
}
|
|
7720
|
-
return message;
|
|
7721
|
-
},
|
|
7722
|
-
|
|
7723
|
-
fromJSON(object: any): StarknetEventFilter {
|
|
7724
|
-
return {
|
|
7725
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
7726
|
-
keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e: any) => globalThis.String(e)) : [],
|
|
7727
|
-
};
|
|
7728
|
-
},
|
|
7729
|
-
|
|
7730
|
-
toJSON(message: StarknetEventFilter): unknown {
|
|
7731
|
-
const obj: any = {};
|
|
7732
|
-
if (message.address !== "") {
|
|
7733
|
-
obj.address = message.address;
|
|
7734
|
-
}
|
|
7735
|
-
if (message.keys?.length) {
|
|
7736
|
-
obj.keys = message.keys;
|
|
7737
|
-
}
|
|
7738
|
-
return obj;
|
|
7739
|
-
},
|
|
7740
|
-
|
|
7741
|
-
create(base?: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
|
7742
|
-
return StarknetEventFilter.fromPartial(base ?? {});
|
|
7743
|
-
},
|
|
7744
|
-
fromPartial(object: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
|
7745
|
-
const message = createBaseStarknetEventFilter();
|
|
7746
|
-
message.address = object.address ?? "";
|
|
7747
|
-
message.keys = object.keys?.map((e) => e) || [];
|
|
7748
|
-
return message;
|
|
7749
|
-
},
|
|
7750
|
-
};
|
|
7751
|
-
|
|
7752
|
-
function createBaseFuelCallFilter(): FuelCallFilter {
|
|
7753
|
-
return { function: "", includeFailed: false };
|
|
7754
|
-
}
|
|
7755
|
-
|
|
7756
|
-
export const FuelCallFilter = {
|
|
7757
|
-
encode(message: FuelCallFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7758
|
-
if (message.function !== "") {
|
|
7759
|
-
writer.uint32(10).string(message.function);
|
|
7760
|
-
}
|
|
7761
|
-
if (message.includeFailed !== false) {
|
|
7762
|
-
writer.uint32(16).bool(message.includeFailed);
|
|
7763
|
-
}
|
|
7764
|
-
return writer;
|
|
7765
|
-
},
|
|
7766
|
-
|
|
7767
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallFilter {
|
|
7768
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7769
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7770
|
-
const message = createBaseFuelCallFilter();
|
|
7771
|
-
while (reader.pos < end) {
|
|
7772
|
-
const tag = reader.uint32();
|
|
7773
|
-
switch (tag >>> 3) {
|
|
7774
|
-
case 1:
|
|
7775
|
-
if (tag !== 10) {
|
|
7776
|
-
break;
|
|
7777
|
-
}
|
|
7778
|
-
|
|
7779
|
-
message.function = reader.string();
|
|
7780
|
-
continue;
|
|
7781
|
-
case 2:
|
|
7782
|
-
if (tag !== 16) {
|
|
7783
|
-
break;
|
|
7784
|
-
}
|
|
7785
|
-
|
|
7786
|
-
message.includeFailed = reader.bool();
|
|
7787
|
-
continue;
|
|
7788
|
-
}
|
|
7789
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7790
|
-
break;
|
|
7791
|
-
}
|
|
7792
|
-
reader.skipType(tag & 7);
|
|
7793
|
-
}
|
|
7794
|
-
return message;
|
|
7795
|
-
},
|
|
7796
|
-
|
|
7797
|
-
fromJSON(object: any): FuelCallFilter {
|
|
7798
|
-
return {
|
|
7799
|
-
function: isSet(object.function) ? globalThis.String(object.function) : "",
|
|
7800
|
-
includeFailed: isSet(object.includeFailed) ? globalThis.Boolean(object.includeFailed) : false,
|
|
7801
|
-
};
|
|
7802
|
-
},
|
|
7803
|
-
|
|
7804
|
-
toJSON(message: FuelCallFilter): unknown {
|
|
7805
|
-
const obj: any = {};
|
|
7806
|
-
if (message.function !== "") {
|
|
7807
|
-
obj.function = message.function;
|
|
7808
|
-
}
|
|
7809
|
-
if (message.includeFailed !== false) {
|
|
7810
|
-
obj.includeFailed = message.includeFailed;
|
|
7811
|
-
}
|
|
7812
|
-
return obj;
|
|
7813
|
-
},
|
|
7814
|
-
|
|
7815
|
-
create(base?: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
|
7816
|
-
return FuelCallFilter.fromPartial(base ?? {});
|
|
7817
|
-
},
|
|
7818
|
-
fromPartial(object: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
|
7819
|
-
const message = createBaseFuelCallFilter();
|
|
7820
|
-
message.function = object.function ?? "";
|
|
7821
|
-
message.includeFailed = object.includeFailed ?? false;
|
|
7822
|
-
return message;
|
|
7823
|
-
},
|
|
7824
|
-
};
|
|
7825
|
-
|
|
7826
|
-
function createBaseFuelCallHandlerConfig(): FuelCallHandlerConfig {
|
|
7827
|
-
return { filters: [], handlerId: 0, handlerName: "" };
|
|
7828
|
-
}
|
|
7829
|
-
|
|
7830
|
-
export const FuelCallHandlerConfig = {
|
|
7831
|
-
encode(message: FuelCallHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7832
|
-
for (const v of message.filters) {
|
|
7833
|
-
FuelCallFilter.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7834
|
-
}
|
|
7835
|
-
if (message.handlerId !== 0) {
|
|
7836
|
-
writer.uint32(16).int32(message.handlerId);
|
|
7837
|
-
}
|
|
7838
|
-
if (message.handlerName !== "") {
|
|
7839
|
-
writer.uint32(26).string(message.handlerName);
|
|
7840
|
-
}
|
|
7841
|
-
return writer;
|
|
7842
|
-
},
|
|
7843
|
-
|
|
7844
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallHandlerConfig {
|
|
7845
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7846
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7847
|
-
const message = createBaseFuelCallHandlerConfig();
|
|
7848
|
-
while (reader.pos < end) {
|
|
7849
|
-
const tag = reader.uint32();
|
|
7850
|
-
switch (tag >>> 3) {
|
|
7851
|
-
case 1:
|
|
7852
|
-
if (tag !== 10) {
|
|
7853
|
-
break;
|
|
7854
|
-
}
|
|
7855
|
-
|
|
7856
|
-
message.filters.push(FuelCallFilter.decode(reader, reader.uint32()));
|
|
7857
|
-
continue;
|
|
7858
|
-
case 2:
|
|
7859
|
-
if (tag !== 16) {
|
|
7860
|
-
break;
|
|
7861
|
-
}
|
|
7862
|
-
|
|
7863
|
-
message.handlerId = reader.int32();
|
|
7864
|
-
continue;
|
|
7865
|
-
case 3:
|
|
7866
|
-
if (tag !== 26) {
|
|
7867
|
-
break;
|
|
7868
|
-
}
|
|
7869
|
-
|
|
7870
|
-
message.handlerName = reader.string();
|
|
7871
|
-
continue;
|
|
7872
|
-
}
|
|
7873
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7874
|
-
break;
|
|
7875
|
-
}
|
|
7876
|
-
reader.skipType(tag & 7);
|
|
7877
|
-
}
|
|
7878
|
-
return message;
|
|
7879
|
-
},
|
|
7880
|
-
|
|
7881
|
-
fromJSON(object: any): FuelCallHandlerConfig {
|
|
7882
|
-
return {
|
|
7883
|
-
filters: globalThis.Array.isArray(object?.filters)
|
|
7884
|
-
? object.filters.map((e: any) => FuelCallFilter.fromJSON(e))
|
|
7885
|
-
: [],
|
|
7886
|
-
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
|
7887
|
-
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
|
7888
|
-
};
|
|
7889
|
-
},
|
|
7890
|
-
|
|
7891
|
-
toJSON(message: FuelCallHandlerConfig): unknown {
|
|
7892
|
-
const obj: any = {};
|
|
7893
|
-
if (message.filters?.length) {
|
|
7894
|
-
obj.filters = message.filters.map((e) => FuelCallFilter.toJSON(e));
|
|
7895
|
-
}
|
|
7896
|
-
if (message.handlerId !== 0) {
|
|
7897
|
-
obj.handlerId = Math.round(message.handlerId);
|
|
7898
|
-
}
|
|
7899
|
-
if (message.handlerName !== "") {
|
|
7900
|
-
obj.handlerName = message.handlerName;
|
|
6949
|
+
if (message.handlerName !== "") {
|
|
6950
|
+
obj.handlerName = message.handlerName;
|
|
7901
6951
|
}
|
|
7902
6952
|
return obj;
|
|
7903
6953
|
},
|
|
@@ -10426,8 +9476,6 @@ function createBaseData(): Data {
|
|
|
10426
9476
|
fuelBlock: undefined,
|
|
10427
9477
|
cosmosCall: undefined,
|
|
10428
9478
|
starknetEvents: undefined,
|
|
10429
|
-
btcTransaction: undefined,
|
|
10430
|
-
btcBlock: undefined,
|
|
10431
9479
|
};
|
|
10432
9480
|
}
|
|
10433
9481
|
|
|
@@ -10484,12 +9532,6 @@ export const Data = {
|
|
|
10484
9532
|
if (message.starknetEvents !== undefined) {
|
|
10485
9533
|
Data_StarknetEvent.encode(message.starknetEvents, writer.uint32(130).fork()).ldelim();
|
|
10486
9534
|
}
|
|
10487
|
-
if (message.btcTransaction !== undefined) {
|
|
10488
|
-
Data_BTCTransaction.encode(message.btcTransaction, writer.uint32(138).fork()).ldelim();
|
|
10489
|
-
}
|
|
10490
|
-
if (message.btcBlock !== undefined) {
|
|
10491
|
-
Data_BTCBlock.encode(message.btcBlock, writer.uint32(154).fork()).ldelim();
|
|
10492
|
-
}
|
|
10493
9535
|
return writer;
|
|
10494
9536
|
},
|
|
10495
9537
|
|
|
@@ -10619,20 +9661,6 @@ export const Data = {
|
|
|
10619
9661
|
|
|
10620
9662
|
message.starknetEvents = Data_StarknetEvent.decode(reader, reader.uint32());
|
|
10621
9663
|
continue;
|
|
10622
|
-
case 17:
|
|
10623
|
-
if (tag !== 138) {
|
|
10624
|
-
break;
|
|
10625
|
-
}
|
|
10626
|
-
|
|
10627
|
-
message.btcTransaction = Data_BTCTransaction.decode(reader, reader.uint32());
|
|
10628
|
-
continue;
|
|
10629
|
-
case 19:
|
|
10630
|
-
if (tag !== 154) {
|
|
10631
|
-
break;
|
|
10632
|
-
}
|
|
10633
|
-
|
|
10634
|
-
message.btcBlock = Data_BTCBlock.decode(reader, reader.uint32());
|
|
10635
|
-
continue;
|
|
10636
9664
|
}
|
|
10637
9665
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10638
9666
|
break;
|
|
@@ -10665,8 +9693,6 @@ export const Data = {
|
|
|
10665
9693
|
fuelBlock: isSet(object.fuelBlock) ? Data_FuelBlock.fromJSON(object.fuelBlock) : undefined,
|
|
10666
9694
|
cosmosCall: isSet(object.cosmosCall) ? Data_CosmosCall.fromJSON(object.cosmosCall) : undefined,
|
|
10667
9695
|
starknetEvents: isSet(object.starknetEvents) ? Data_StarknetEvent.fromJSON(object.starknetEvents) : undefined,
|
|
10668
|
-
btcTransaction: isSet(object.btcTransaction) ? Data_BTCTransaction.fromJSON(object.btcTransaction) : undefined,
|
|
10669
|
-
btcBlock: isSet(object.btcBlock) ? Data_BTCBlock.fromJSON(object.btcBlock) : undefined,
|
|
10670
9696
|
};
|
|
10671
9697
|
},
|
|
10672
9698
|
|
|
@@ -10723,12 +9749,6 @@ export const Data = {
|
|
|
10723
9749
|
if (message.starknetEvents !== undefined) {
|
|
10724
9750
|
obj.starknetEvents = Data_StarknetEvent.toJSON(message.starknetEvents);
|
|
10725
9751
|
}
|
|
10726
|
-
if (message.btcTransaction !== undefined) {
|
|
10727
|
-
obj.btcTransaction = Data_BTCTransaction.toJSON(message.btcTransaction);
|
|
10728
|
-
}
|
|
10729
|
-
if (message.btcBlock !== undefined) {
|
|
10730
|
-
obj.btcBlock = Data_BTCBlock.toJSON(message.btcBlock);
|
|
10731
|
-
}
|
|
10732
9752
|
return obj;
|
|
10733
9753
|
},
|
|
10734
9754
|
|
|
@@ -10788,12 +9808,6 @@ export const Data = {
|
|
|
10788
9808
|
message.starknetEvents = (object.starknetEvents !== undefined && object.starknetEvents !== null)
|
|
10789
9809
|
? Data_StarknetEvent.fromPartial(object.starknetEvents)
|
|
10790
9810
|
: undefined;
|
|
10791
|
-
message.btcTransaction = (object.btcTransaction !== undefined && object.btcTransaction !== null)
|
|
10792
|
-
? Data_BTCTransaction.fromPartial(object.btcTransaction)
|
|
10793
|
-
: undefined;
|
|
10794
|
-
message.btcBlock = (object.btcBlock !== undefined && object.btcBlock !== null)
|
|
10795
|
-
? Data_BTCBlock.fromPartial(object.btcBlock)
|
|
10796
|
-
: undefined;
|
|
10797
9811
|
return message;
|
|
10798
9812
|
},
|
|
10799
9813
|
};
|
|
@@ -12588,154 +11602,6 @@ export const Data_StarknetEvent = {
|
|
|
12588
11602
|
},
|
|
12589
11603
|
};
|
|
12590
11604
|
|
|
12591
|
-
function createBaseData_BTCTransaction(): Data_BTCTransaction {
|
|
12592
|
-
return { transaction: undefined, timestamp: undefined };
|
|
12593
|
-
}
|
|
12594
|
-
|
|
12595
|
-
export const Data_BTCTransaction = {
|
|
12596
|
-
encode(message: Data_BTCTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
12597
|
-
if (message.transaction !== undefined) {
|
|
12598
|
-
Struct.encode(Struct.wrap(message.transaction), writer.uint32(34).fork()).ldelim();
|
|
12599
|
-
}
|
|
12600
|
-
if (message.timestamp !== undefined) {
|
|
12601
|
-
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim();
|
|
12602
|
-
}
|
|
12603
|
-
return writer;
|
|
12604
|
-
},
|
|
12605
|
-
|
|
12606
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Data_BTCTransaction {
|
|
12607
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12608
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12609
|
-
const message = createBaseData_BTCTransaction();
|
|
12610
|
-
while (reader.pos < end) {
|
|
12611
|
-
const tag = reader.uint32();
|
|
12612
|
-
switch (tag >>> 3) {
|
|
12613
|
-
case 4:
|
|
12614
|
-
if (tag !== 34) {
|
|
12615
|
-
break;
|
|
12616
|
-
}
|
|
12617
|
-
|
|
12618
|
-
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
12619
|
-
continue;
|
|
12620
|
-
case 5:
|
|
12621
|
-
if (tag !== 42) {
|
|
12622
|
-
break;
|
|
12623
|
-
}
|
|
12624
|
-
|
|
12625
|
-
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
12626
|
-
continue;
|
|
12627
|
-
}
|
|
12628
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
12629
|
-
break;
|
|
12630
|
-
}
|
|
12631
|
-
reader.skipType(tag & 7);
|
|
12632
|
-
}
|
|
12633
|
-
return message;
|
|
12634
|
-
},
|
|
12635
|
-
|
|
12636
|
-
fromJSON(object: any): Data_BTCTransaction {
|
|
12637
|
-
return {
|
|
12638
|
-
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
|
12639
|
-
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
12640
|
-
};
|
|
12641
|
-
},
|
|
12642
|
-
|
|
12643
|
-
toJSON(message: Data_BTCTransaction): unknown {
|
|
12644
|
-
const obj: any = {};
|
|
12645
|
-
if (message.transaction !== undefined) {
|
|
12646
|
-
obj.transaction = message.transaction;
|
|
12647
|
-
}
|
|
12648
|
-
if (message.timestamp !== undefined) {
|
|
12649
|
-
obj.timestamp = message.timestamp.toISOString();
|
|
12650
|
-
}
|
|
12651
|
-
return obj;
|
|
12652
|
-
},
|
|
12653
|
-
|
|
12654
|
-
create(base?: DeepPartial<Data_BTCTransaction>): Data_BTCTransaction {
|
|
12655
|
-
return Data_BTCTransaction.fromPartial(base ?? {});
|
|
12656
|
-
},
|
|
12657
|
-
fromPartial(object: DeepPartial<Data_BTCTransaction>): Data_BTCTransaction {
|
|
12658
|
-
const message = createBaseData_BTCTransaction();
|
|
12659
|
-
message.transaction = object.transaction ?? undefined;
|
|
12660
|
-
message.timestamp = object.timestamp ?? undefined;
|
|
12661
|
-
return message;
|
|
12662
|
-
},
|
|
12663
|
-
};
|
|
12664
|
-
|
|
12665
|
-
function createBaseData_BTCBlock(): Data_BTCBlock {
|
|
12666
|
-
return { block: undefined, timestamp: undefined };
|
|
12667
|
-
}
|
|
12668
|
-
|
|
12669
|
-
export const Data_BTCBlock = {
|
|
12670
|
-
encode(message: Data_BTCBlock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
12671
|
-
if (message.block !== undefined) {
|
|
12672
|
-
Struct.encode(Struct.wrap(message.block), writer.uint32(10).fork()).ldelim();
|
|
12673
|
-
}
|
|
12674
|
-
if (message.timestamp !== undefined) {
|
|
12675
|
-
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
|
12676
|
-
}
|
|
12677
|
-
return writer;
|
|
12678
|
-
},
|
|
12679
|
-
|
|
12680
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Data_BTCBlock {
|
|
12681
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12682
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12683
|
-
const message = createBaseData_BTCBlock();
|
|
12684
|
-
while (reader.pos < end) {
|
|
12685
|
-
const tag = reader.uint32();
|
|
12686
|
-
switch (tag >>> 3) {
|
|
12687
|
-
case 1:
|
|
12688
|
-
if (tag !== 10) {
|
|
12689
|
-
break;
|
|
12690
|
-
}
|
|
12691
|
-
|
|
12692
|
-
message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
12693
|
-
continue;
|
|
12694
|
-
case 2:
|
|
12695
|
-
if (tag !== 18) {
|
|
12696
|
-
break;
|
|
12697
|
-
}
|
|
12698
|
-
|
|
12699
|
-
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
12700
|
-
continue;
|
|
12701
|
-
}
|
|
12702
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
12703
|
-
break;
|
|
12704
|
-
}
|
|
12705
|
-
reader.skipType(tag & 7);
|
|
12706
|
-
}
|
|
12707
|
-
return message;
|
|
12708
|
-
},
|
|
12709
|
-
|
|
12710
|
-
fromJSON(object: any): Data_BTCBlock {
|
|
12711
|
-
return {
|
|
12712
|
-
block: isObject(object.block) ? object.block : undefined,
|
|
12713
|
-
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
12714
|
-
};
|
|
12715
|
-
},
|
|
12716
|
-
|
|
12717
|
-
toJSON(message: Data_BTCBlock): unknown {
|
|
12718
|
-
const obj: any = {};
|
|
12719
|
-
if (message.block !== undefined) {
|
|
12720
|
-
obj.block = message.block;
|
|
12721
|
-
}
|
|
12722
|
-
if (message.timestamp !== undefined) {
|
|
12723
|
-
obj.timestamp = message.timestamp.toISOString();
|
|
12724
|
-
}
|
|
12725
|
-
return obj;
|
|
12726
|
-
},
|
|
12727
|
-
|
|
12728
|
-
create(base?: DeepPartial<Data_BTCBlock>): Data_BTCBlock {
|
|
12729
|
-
return Data_BTCBlock.fromPartial(base ?? {});
|
|
12730
|
-
},
|
|
12731
|
-
fromPartial(object: DeepPartial<Data_BTCBlock>): Data_BTCBlock {
|
|
12732
|
-
const message = createBaseData_BTCBlock();
|
|
12733
|
-
message.block = object.block ?? undefined;
|
|
12734
|
-
message.timestamp = object.timestamp ?? undefined;
|
|
12735
|
-
return message;
|
|
12736
|
-
},
|
|
12737
|
-
};
|
|
12738
|
-
|
|
12739
11605
|
function createBaseDataBinding(): DataBinding {
|
|
12740
11606
|
return { data: undefined, handlerType: 0, handlerIds: [], chainId: "" };
|
|
12741
11607
|
}
|