@sentio/runtime 2.62.0-rc.9 → 2.62.0
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/chunk-3A7UBKPA.js +26 -0
- package/lib/chunk-3A7UBKPA.js.map +1 -0
- package/lib/chunk-AUPVVLD3.js +3 -0
- package/lib/chunk-CJDESLYQ.js +3 -0
- package/lib/{chunk-L2A6JPIQ.js.map → chunk-CJDESLYQ.js.map} +1 -1
- package/lib/chunk-G6HW3DCN.js +3 -0
- package/lib/{chunk-W3VN25ER.js.map → chunk-G6HW3DCN.js.map} +1 -1
- package/lib/chunk-QPZM6M6S.js +117 -0
- package/lib/{chunk-AHIIUVQL.js.map → chunk-QPZM6M6S.js.map} +1 -1
- package/lib/chunk-WHWNPZZ3.js +3 -0
- package/lib/{chunk-6XHWJ2VS.js.map → chunk-WHWNPZZ3.js.map} +1 -1
- package/lib/chunk-XI22N6AJ.js +38 -0
- package/lib/{chunk-PCB4OKW7.js.map → chunk-XI22N6AJ.js.map} +1 -1
- package/lib/getMachineId-bsd-I6PJXCQT.js +3 -0
- package/lib/{getMachineId-bsd-WJ6BLVOD.js.map → getMachineId-bsd-I6PJXCQT.js.map} +1 -1
- package/lib/getMachineId-darwin-HKHV3WMW.js +4 -0
- package/lib/{getMachineId-darwin-TW74DVT5.js.map → getMachineId-darwin-HKHV3WMW.js.map} +1 -1
- package/lib/getMachineId-linux-I76A7IOE.js +3 -0
- package/lib/{getMachineId-linux-MDJOKOMI.js.map → getMachineId-linux-I76A7IOE.js.map} +1 -1
- package/lib/getMachineId-unsupported-VPOZWIZS.js +3 -0
- package/lib/{getMachineId-unsupported-X2EJZ25K.js.map → getMachineId-unsupported-VPOZWIZS.js.map} +1 -1
- package/lib/getMachineId-win-W5S4EK74.js +3 -0
- package/lib/{getMachineId-win-VE7DMTAF.js.map → getMachineId-win-W5S4EK74.js.map} +1 -1
- package/lib/index.d.ts +182 -88
- package/lib/index.js +1 -76
- package/lib/index.js.map +1 -1
- package/lib/{processor-HNY62jHs.d.ts → processor-CIR4erWa.d.ts} +0 -32
- package/lib/processor-runner.js +47 -24626
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +2 -132
- package/lib/service-worker.js.map +1 -1
- package/lib/test-processor.test.d.ts +1 -1
- package/lib/test-processor.test.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/processor/protos/processor.ts +83 -1217
- package/src/gen/service/common/protos/common.ts +13 -552
- package/src/otlp.ts +9 -34
- package/src/processor-runner.ts +2 -4
- package/src/service-v3.ts +3 -6
- package/lib/chunk-6XHWJ2VS.js +0 -92
- package/lib/chunk-AHIIUVQL.js +0 -59783
- package/lib/chunk-I5YHR3CE.js +0 -27642
- package/lib/chunk-I5YHR3CE.js.map +0 -1
- package/lib/chunk-KVSDPGUI.js +0 -50
- package/lib/chunk-L2A6JPIQ.js +0 -21
- package/lib/chunk-PCB4OKW7.js +0 -10975
- package/lib/chunk-W3VN25ER.js +0 -1703
- package/lib/getMachineId-bsd-WJ6BLVOD.js +0 -41
- package/lib/getMachineId-darwin-TW74DVT5.js +0 -41
- package/lib/getMachineId-linux-MDJOKOMI.js +0 -33
- package/lib/getMachineId-unsupported-X2EJZ25K.js +0 -24
- package/lib/getMachineId-win-VE7DMTAF.js +0 -43
- /package/lib/{chunk-KVSDPGUI.js.map → chunk-AUPVVLD3.js.map} +0 -0
@@ -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";
|
@@ -495,7 +483,6 @@ export interface ContractConfig {
|
|
495
483
|
fuelReceiptConfigs: FuelReceiptHandlerConfig[];
|
496
484
|
cosmosLogConfigs: CosmosLogHandlerConfig[];
|
497
485
|
starknetEventConfigs: StarknetEventHandlerConfig[];
|
498
|
-
btcTransactionConfigs: BTCTransactionHandlerConfig[];
|
499
486
|
instructionConfig: InstructionHandlerConfig | undefined;
|
500
487
|
startBlock: bigint;
|
501
488
|
endBlock: bigint;
|
@@ -866,59 +853,6 @@ export interface StarknetEventHandlerConfig {
|
|
866
853
|
handlerName: string;
|
867
854
|
}
|
868
855
|
|
869
|
-
export interface BTCTransactionHandlerConfig {
|
870
|
-
filters: BTCTransactionFilter[];
|
871
|
-
handlerId: number;
|
872
|
-
handlerName: string;
|
873
|
-
}
|
874
|
-
|
875
|
-
export interface BTCTransactionFilter {
|
876
|
-
inputFilter: BTCTransactionFilter_VinFilter | undefined;
|
877
|
-
outputFilter: BTCTransactionFilter_VOutFilter | undefined;
|
878
|
-
filter: BTCTransactionFilter_Filter[];
|
879
|
-
}
|
880
|
-
|
881
|
-
export interface BTCTransactionFilter_Condition {
|
882
|
-
eq?: RichValue | undefined;
|
883
|
-
gt?: RichValue | undefined;
|
884
|
-
gte?: RichValue | undefined;
|
885
|
-
lt?: RichValue | undefined;
|
886
|
-
lte?: RichValue | undefined;
|
887
|
-
ne?: RichValue | undefined;
|
888
|
-
prefix?: string | undefined;
|
889
|
-
contains?: string | undefined;
|
890
|
-
notContains?: string | undefined;
|
891
|
-
lengthEq?: number | undefined;
|
892
|
-
lengthGt?: number | undefined;
|
893
|
-
lengthLt?: number | undefined;
|
894
|
-
hasAny?: RichValueList | undefined;
|
895
|
-
hasAll?: RichValueList | undefined;
|
896
|
-
in?: RichValueList | undefined;
|
897
|
-
}
|
898
|
-
|
899
|
-
export interface BTCTransactionFilter_Filter {
|
900
|
-
conditions: { [key: string]: BTCTransactionFilter_Condition };
|
901
|
-
}
|
902
|
-
|
903
|
-
export interface BTCTransactionFilter_Filter_ConditionsEntry {
|
904
|
-
key: string;
|
905
|
-
value: BTCTransactionFilter_Condition | undefined;
|
906
|
-
}
|
907
|
-
|
908
|
-
export interface BTCTransactionFilter_Filters {
|
909
|
-
filters: BTCTransactionFilter_Filter[];
|
910
|
-
}
|
911
|
-
|
912
|
-
export interface BTCTransactionFilter_VinFilter {
|
913
|
-
filters: BTCTransactionFilter_Filters | undefined;
|
914
|
-
preVOut: BTCTransactionFilter_Filter | undefined;
|
915
|
-
preTransaction: BTCTransactionFilter | undefined;
|
916
|
-
}
|
917
|
-
|
918
|
-
export interface BTCTransactionFilter_VOutFilter {
|
919
|
-
filters: BTCTransactionFilter_Filters | undefined;
|
920
|
-
}
|
921
|
-
|
922
856
|
export interface StarknetEventFilter {
|
923
857
|
address: string;
|
924
858
|
keys: string[];
|
@@ -1294,8 +1228,6 @@ export interface Data {
|
|
1294
1228
|
fuelBlock?: Data_FuelBlock | undefined;
|
1295
1229
|
cosmosCall?: Data_CosmosCall | undefined;
|
1296
1230
|
starknetEvents?: Data_StarknetEvent | undefined;
|
1297
|
-
btcTransaction?: Data_BTCTransaction | undefined;
|
1298
|
-
btcBlock?: Data_BTCBlock | undefined;
|
1299
1231
|
}
|
1300
1232
|
|
1301
1233
|
export interface Data_EthLog {
|
@@ -1436,16 +1368,6 @@ export interface Data_StarknetEvent {
|
|
1436
1368
|
timestamp: Date | undefined;
|
1437
1369
|
}
|
1438
1370
|
|
1439
|
-
export interface Data_BTCTransaction {
|
1440
|
-
transaction: { [key: string]: any } | undefined;
|
1441
|
-
timestamp: Date | undefined;
|
1442
|
-
}
|
1443
|
-
|
1444
|
-
export interface Data_BTCBlock {
|
1445
|
-
block: { [key: string]: any } | undefined;
|
1446
|
-
timestamp: Date | undefined;
|
1447
|
-
}
|
1448
|
-
|
1449
1371
|
export interface DataBinding {
|
1450
1372
|
data: Data | undefined;
|
1451
1373
|
handlerType: HandlerType;
|
@@ -2272,7 +2194,6 @@ function createBaseContractConfig(): ContractConfig {
|
|
2272
2194
|
fuelReceiptConfigs: [],
|
2273
2195
|
cosmosLogConfigs: [],
|
2274
2196
|
starknetEventConfigs: [],
|
2275
|
-
btcTransactionConfigs: [],
|
2276
2197
|
instructionConfig: undefined,
|
2277
2198
|
startBlock: BigInt("0"),
|
2278
2199
|
endBlock: BigInt("0"),
|
@@ -2330,9 +2251,6 @@ export const ContractConfig = {
|
|
2330
2251
|
for (const v of message.starknetEventConfigs) {
|
2331
2252
|
StarknetEventHandlerConfig.encode(v!, writer.uint32(138).fork()).ldelim();
|
2332
2253
|
}
|
2333
|
-
for (const v of message.btcTransactionConfigs) {
|
2334
|
-
BTCTransactionHandlerConfig.encode(v!, writer.uint32(146).fork()).ldelim();
|
2335
|
-
}
|
2336
2254
|
if (message.instructionConfig !== undefined) {
|
2337
2255
|
InstructionHandlerConfig.encode(message.instructionConfig, writer.uint32(50).fork()).ldelim();
|
2338
2256
|
}
|
@@ -2473,13 +2391,6 @@ export const ContractConfig = {
|
|
2473
2391
|
|
2474
2392
|
message.starknetEventConfigs.push(StarknetEventHandlerConfig.decode(reader, reader.uint32()));
|
2475
2393
|
continue;
|
2476
|
-
case 18:
|
2477
|
-
if (tag !== 146) {
|
2478
|
-
break;
|
2479
|
-
}
|
2480
|
-
|
2481
|
-
message.btcTransactionConfigs.push(BTCTransactionHandlerConfig.decode(reader, reader.uint32()));
|
2482
|
-
continue;
|
2483
2394
|
case 6:
|
2484
2395
|
if (tag !== 50) {
|
2485
2396
|
break;
|
@@ -2565,9 +2476,6 @@ export const ContractConfig = {
|
|
2565
2476
|
starknetEventConfigs: globalThis.Array.isArray(object?.starknetEventConfigs)
|
2566
2477
|
? object.starknetEventConfigs.map((e: any) => StarknetEventHandlerConfig.fromJSON(e))
|
2567
2478
|
: [],
|
2568
|
-
btcTransactionConfigs: globalThis.Array.isArray(object?.btcTransactionConfigs)
|
2569
|
-
? object.btcTransactionConfigs.map((e: any) => BTCTransactionHandlerConfig.fromJSON(e))
|
2570
|
-
: [],
|
2571
2479
|
instructionConfig: isSet(object.instructionConfig)
|
2572
2480
|
? InstructionHandlerConfig.fromJSON(object.instructionConfig)
|
2573
2481
|
: undefined,
|
@@ -2627,9 +2535,6 @@ export const ContractConfig = {
|
|
2627
2535
|
if (message.starknetEventConfigs?.length) {
|
2628
2536
|
obj.starknetEventConfigs = message.starknetEventConfigs.map((e) => StarknetEventHandlerConfig.toJSON(e));
|
2629
2537
|
}
|
2630
|
-
if (message.btcTransactionConfigs?.length) {
|
2631
|
-
obj.btcTransactionConfigs = message.btcTransactionConfigs.map((e) => BTCTransactionHandlerConfig.toJSON(e));
|
2632
|
-
}
|
2633
2538
|
if (message.instructionConfig !== undefined) {
|
2634
2539
|
obj.instructionConfig = InstructionHandlerConfig.toJSON(message.instructionConfig);
|
2635
2540
|
}
|
@@ -2671,8 +2576,6 @@ export const ContractConfig = {
|
|
2671
2576
|
message.cosmosLogConfigs = object.cosmosLogConfigs?.map((e) => CosmosLogHandlerConfig.fromPartial(e)) || [];
|
2672
2577
|
message.starknetEventConfigs = object.starknetEventConfigs?.map((e) => StarknetEventHandlerConfig.fromPartial(e)) ||
|
2673
2578
|
[];
|
2674
|
-
message.btcTransactionConfigs =
|
2675
|
-
object.btcTransactionConfigs?.map((e) => BTCTransactionHandlerConfig.fromPartial(e)) || [];
|
2676
2579
|
message.instructionConfig = (object.instructionConfig !== undefined && object.instructionConfig !== null)
|
2677
2580
|
? InstructionHandlerConfig.fromPartial(object.instructionConfig)
|
2678
2581
|
: undefined;
|
@@ -6912,28 +6815,25 @@ export const StarknetEventHandlerConfig = {
|
|
6912
6815
|
},
|
6913
6816
|
};
|
6914
6817
|
|
6915
|
-
function
|
6916
|
-
return {
|
6818
|
+
function createBaseStarknetEventFilter(): StarknetEventFilter {
|
6819
|
+
return { address: "", keys: [] };
|
6917
6820
|
}
|
6918
6821
|
|
6919
|
-
export const
|
6920
|
-
encode(message:
|
6921
|
-
|
6922
|
-
|
6923
|
-
}
|
6924
|
-
if (message.handlerId !== 0) {
|
6925
|
-
writer.uint32(16).int32(message.handlerId);
|
6822
|
+
export const StarknetEventFilter = {
|
6823
|
+
encode(message: StarknetEventFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
6824
|
+
if (message.address !== "") {
|
6825
|
+
writer.uint32(10).string(message.address);
|
6926
6826
|
}
|
6927
|
-
|
6928
|
-
writer.uint32(
|
6827
|
+
for (const v of message.keys) {
|
6828
|
+
writer.uint32(18).string(v!);
|
6929
6829
|
}
|
6930
6830
|
return writer;
|
6931
6831
|
},
|
6932
6832
|
|
6933
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
6833
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StarknetEventFilter {
|
6934
6834
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
6935
6835
|
let end = length === undefined ? reader.len : reader.pos + length;
|
6936
|
-
const message =
|
6836
|
+
const message = createBaseStarknetEventFilter();
|
6937
6837
|
while (reader.pos < end) {
|
6938
6838
|
const tag = reader.uint32();
|
6939
6839
|
switch (tag >>> 3) {
|
@@ -6942,21 +6842,14 @@ export const BTCTransactionHandlerConfig = {
|
|
6942
6842
|
break;
|
6943
6843
|
}
|
6944
6844
|
|
6945
|
-
message.
|
6845
|
+
message.address = reader.string();
|
6946
6846
|
continue;
|
6947
6847
|
case 2:
|
6948
|
-
if (tag !==
|
6949
|
-
break;
|
6950
|
-
}
|
6951
|
-
|
6952
|
-
message.handlerId = reader.int32();
|
6953
|
-
continue;
|
6954
|
-
case 3:
|
6955
|
-
if (tag !== 26) {
|
6848
|
+
if (tag !== 18) {
|
6956
6849
|
break;
|
6957
6850
|
}
|
6958
6851
|
|
6959
|
-
message.
|
6852
|
+
message.keys.push(reader.string());
|
6960
6853
|
continue;
|
6961
6854
|
}
|
6962
6855
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -6967,64 +6860,54 @@ export const BTCTransactionHandlerConfig = {
|
|
6967
6860
|
return message;
|
6968
6861
|
},
|
6969
6862
|
|
6970
|
-
fromJSON(object: any):
|
6863
|
+
fromJSON(object: any): StarknetEventFilter {
|
6971
6864
|
return {
|
6972
|
-
|
6973
|
-
|
6974
|
-
: [],
|
6975
|
-
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
6976
|
-
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
6865
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
6866
|
+
keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e: any) => globalThis.String(e)) : [],
|
6977
6867
|
};
|
6978
6868
|
},
|
6979
6869
|
|
6980
|
-
toJSON(message:
|
6870
|
+
toJSON(message: StarknetEventFilter): unknown {
|
6981
6871
|
const obj: any = {};
|
6982
|
-
if (message.
|
6983
|
-
obj.
|
6984
|
-
}
|
6985
|
-
if (message.handlerId !== 0) {
|
6986
|
-
obj.handlerId = Math.round(message.handlerId);
|
6872
|
+
if (message.address !== "") {
|
6873
|
+
obj.address = message.address;
|
6987
6874
|
}
|
6988
|
-
if (message.
|
6989
|
-
obj.
|
6875
|
+
if (message.keys?.length) {
|
6876
|
+
obj.keys = message.keys;
|
6990
6877
|
}
|
6991
6878
|
return obj;
|
6992
6879
|
},
|
6993
6880
|
|
6994
|
-
create(base?: DeepPartial<
|
6995
|
-
return
|
6881
|
+
create(base?: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
6882
|
+
return StarknetEventFilter.fromPartial(base ?? {});
|
6996
6883
|
},
|
6997
|
-
fromPartial(object: DeepPartial<
|
6998
|
-
const message =
|
6999
|
-
message.
|
7000
|
-
message.
|
7001
|
-
message.handlerName = object.handlerName ?? "";
|
6884
|
+
fromPartial(object: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
6885
|
+
const message = createBaseStarknetEventFilter();
|
6886
|
+
message.address = object.address ?? "";
|
6887
|
+
message.keys = object.keys?.map((e) => e) || [];
|
7002
6888
|
return message;
|
7003
6889
|
},
|
7004
6890
|
};
|
7005
6891
|
|
7006
|
-
function
|
7007
|
-
return {
|
6892
|
+
function createBaseFuelCallFilter(): FuelCallFilter {
|
6893
|
+
return { function: "", includeFailed: false };
|
7008
6894
|
}
|
7009
6895
|
|
7010
|
-
export const
|
7011
|
-
encode(message:
|
7012
|
-
if (message.
|
7013
|
-
|
7014
|
-
}
|
7015
|
-
if (message.outputFilter !== undefined) {
|
7016
|
-
BTCTransactionFilter_VOutFilter.encode(message.outputFilter, writer.uint32(18).fork()).ldelim();
|
6896
|
+
export const FuelCallFilter = {
|
6897
|
+
encode(message: FuelCallFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
6898
|
+
if (message.function !== "") {
|
6899
|
+
writer.uint32(10).string(message.function);
|
7017
6900
|
}
|
7018
|
-
|
7019
|
-
|
6901
|
+
if (message.includeFailed !== false) {
|
6902
|
+
writer.uint32(16).bool(message.includeFailed);
|
7020
6903
|
}
|
7021
6904
|
return writer;
|
7022
6905
|
},
|
7023
6906
|
|
7024
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
6907
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallFilter {
|
7025
6908
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7026
6909
|
let end = length === undefined ? reader.len : reader.pos + length;
|
7027
|
-
const message =
|
6910
|
+
const message = createBaseFuelCallFilter();
|
7028
6911
|
while (reader.pos < end) {
|
7029
6912
|
const tag = reader.uint32();
|
7030
6913
|
switch (tag >>> 3) {
|
@@ -7033,21 +6916,14 @@ export const BTCTransactionFilter = {
|
|
7033
6916
|
break;
|
7034
6917
|
}
|
7035
6918
|
|
7036
|
-
message.
|
6919
|
+
message.function = reader.string();
|
7037
6920
|
continue;
|
7038
6921
|
case 2:
|
7039
|
-
if (tag !==
|
7040
|
-
break;
|
7041
|
-
}
|
7042
|
-
|
7043
|
-
message.outputFilter = BTCTransactionFilter_VOutFilter.decode(reader, reader.uint32());
|
7044
|
-
continue;
|
7045
|
-
case 3:
|
7046
|
-
if (tag !== 26) {
|
6922
|
+
if (tag !== 16) {
|
7047
6923
|
break;
|
7048
6924
|
}
|
7049
6925
|
|
7050
|
-
message.
|
6926
|
+
message.includeFailed = reader.bool();
|
7051
6927
|
continue;
|
7052
6928
|
}
|
7053
6929
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -7058,122 +6934,57 @@ export const BTCTransactionFilter = {
|
|
7058
6934
|
return message;
|
7059
6935
|
},
|
7060
6936
|
|
7061
|
-
fromJSON(object: any):
|
6937
|
+
fromJSON(object: any): FuelCallFilter {
|
7062
6938
|
return {
|
7063
|
-
|
7064
|
-
|
7065
|
-
? BTCTransactionFilter_VOutFilter.fromJSON(object.outputFilter)
|
7066
|
-
: undefined,
|
7067
|
-
filter: globalThis.Array.isArray(object?.filter)
|
7068
|
-
? object.filter.map((e: any) => BTCTransactionFilter_Filter.fromJSON(e))
|
7069
|
-
: [],
|
6939
|
+
function: isSet(object.function) ? globalThis.String(object.function) : "",
|
6940
|
+
includeFailed: isSet(object.includeFailed) ? globalThis.Boolean(object.includeFailed) : false,
|
7070
6941
|
};
|
7071
6942
|
},
|
7072
6943
|
|
7073
|
-
toJSON(message:
|
6944
|
+
toJSON(message: FuelCallFilter): unknown {
|
7074
6945
|
const obj: any = {};
|
7075
|
-
if (message.
|
7076
|
-
obj.
|
7077
|
-
}
|
7078
|
-
if (message.outputFilter !== undefined) {
|
7079
|
-
obj.outputFilter = BTCTransactionFilter_VOutFilter.toJSON(message.outputFilter);
|
6946
|
+
if (message.function !== "") {
|
6947
|
+
obj.function = message.function;
|
7080
6948
|
}
|
7081
|
-
if (message.
|
7082
|
-
obj.
|
6949
|
+
if (message.includeFailed !== false) {
|
6950
|
+
obj.includeFailed = message.includeFailed;
|
7083
6951
|
}
|
7084
6952
|
return obj;
|
7085
6953
|
},
|
7086
6954
|
|
7087
|
-
create(base?: DeepPartial<
|
7088
|
-
return
|
6955
|
+
create(base?: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
6956
|
+
return FuelCallFilter.fromPartial(base ?? {});
|
7089
6957
|
},
|
7090
|
-
fromPartial(object: DeepPartial<
|
7091
|
-
const message =
|
7092
|
-
message.
|
7093
|
-
|
7094
|
-
: undefined;
|
7095
|
-
message.outputFilter = (object.outputFilter !== undefined && object.outputFilter !== null)
|
7096
|
-
? BTCTransactionFilter_VOutFilter.fromPartial(object.outputFilter)
|
7097
|
-
: undefined;
|
7098
|
-
message.filter = object.filter?.map((e) => BTCTransactionFilter_Filter.fromPartial(e)) || [];
|
6958
|
+
fromPartial(object: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
6959
|
+
const message = createBaseFuelCallFilter();
|
6960
|
+
message.function = object.function ?? "";
|
6961
|
+
message.includeFailed = object.includeFailed ?? false;
|
7099
6962
|
return message;
|
7100
6963
|
},
|
7101
6964
|
};
|
7102
6965
|
|
7103
|
-
function
|
7104
|
-
return {
|
7105
|
-
eq: undefined,
|
7106
|
-
gt: undefined,
|
7107
|
-
gte: undefined,
|
7108
|
-
lt: undefined,
|
7109
|
-
lte: undefined,
|
7110
|
-
ne: undefined,
|
7111
|
-
prefix: undefined,
|
7112
|
-
contains: undefined,
|
7113
|
-
notContains: undefined,
|
7114
|
-
lengthEq: undefined,
|
7115
|
-
lengthGt: undefined,
|
7116
|
-
lengthLt: undefined,
|
7117
|
-
hasAny: undefined,
|
7118
|
-
hasAll: undefined,
|
7119
|
-
in: undefined,
|
7120
|
-
};
|
6966
|
+
function createBaseFuelCallHandlerConfig(): FuelCallHandlerConfig {
|
6967
|
+
return { filters: [], handlerId: 0, handlerName: "" };
|
7121
6968
|
}
|
7122
6969
|
|
7123
|
-
export const
|
7124
|
-
encode(message:
|
7125
|
-
|
7126
|
-
|
7127
|
-
}
|
7128
|
-
if (message.gt !== undefined) {
|
7129
|
-
RichValue.encode(message.gt, writer.uint32(18).fork()).ldelim();
|
7130
|
-
}
|
7131
|
-
if (message.gte !== undefined) {
|
7132
|
-
RichValue.encode(message.gte, writer.uint32(26).fork()).ldelim();
|
7133
|
-
}
|
7134
|
-
if (message.lt !== undefined) {
|
7135
|
-
RichValue.encode(message.lt, writer.uint32(34).fork()).ldelim();
|
7136
|
-
}
|
7137
|
-
if (message.lte !== undefined) {
|
7138
|
-
RichValue.encode(message.lte, writer.uint32(42).fork()).ldelim();
|
7139
|
-
}
|
7140
|
-
if (message.ne !== undefined) {
|
7141
|
-
RichValue.encode(message.ne, writer.uint32(50).fork()).ldelim();
|
7142
|
-
}
|
7143
|
-
if (message.prefix !== undefined) {
|
7144
|
-
writer.uint32(58).string(message.prefix);
|
7145
|
-
}
|
7146
|
-
if (message.contains !== undefined) {
|
7147
|
-
writer.uint32(66).string(message.contains);
|
7148
|
-
}
|
7149
|
-
if (message.notContains !== undefined) {
|
7150
|
-
writer.uint32(74).string(message.notContains);
|
7151
|
-
}
|
7152
|
-
if (message.lengthEq !== undefined) {
|
7153
|
-
writer.uint32(80).int32(message.lengthEq);
|
7154
|
-
}
|
7155
|
-
if (message.lengthGt !== undefined) {
|
7156
|
-
writer.uint32(88).int32(message.lengthGt);
|
7157
|
-
}
|
7158
|
-
if (message.lengthLt !== undefined) {
|
7159
|
-
writer.uint32(96).int32(message.lengthLt);
|
7160
|
-
}
|
7161
|
-
if (message.hasAny !== undefined) {
|
7162
|
-
RichValueList.encode(message.hasAny, writer.uint32(106).fork()).ldelim();
|
6970
|
+
export const FuelCallHandlerConfig = {
|
6971
|
+
encode(message: FuelCallHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
6972
|
+
for (const v of message.filters) {
|
6973
|
+
FuelCallFilter.encode(v!, writer.uint32(10).fork()).ldelim();
|
7163
6974
|
}
|
7164
|
-
if (message.
|
7165
|
-
|
6975
|
+
if (message.handlerId !== 0) {
|
6976
|
+
writer.uint32(16).int32(message.handlerId);
|
7166
6977
|
}
|
7167
|
-
if (message.
|
7168
|
-
|
6978
|
+
if (message.handlerName !== "") {
|
6979
|
+
writer.uint32(26).string(message.handlerName);
|
7169
6980
|
}
|
7170
6981
|
return writer;
|
7171
6982
|
},
|
7172
6983
|
|
7173
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
6984
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallHandlerConfig {
|
7174
6985
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7175
6986
|
let end = length === undefined ? reader.len : reader.pos + length;
|
7176
|
-
const message =
|
6987
|
+
const message = createBaseFuelCallHandlerConfig();
|
7177
6988
|
while (reader.pos < end) {
|
7178
6989
|
const tag = reader.uint32();
|
7179
6990
|
switch (tag >>> 3) {
|
@@ -7182,105 +6993,21 @@ export const BTCTransactionFilter_Condition = {
|
|
7182
6993
|
break;
|
7183
6994
|
}
|
7184
6995
|
|
7185
|
-
message.
|
6996
|
+
message.filters.push(FuelCallFilter.decode(reader, reader.uint32()));
|
7186
6997
|
continue;
|
7187
6998
|
case 2:
|
7188
|
-
if (tag !==
|
6999
|
+
if (tag !== 16) {
|
7189
7000
|
break;
|
7190
7001
|
}
|
7191
7002
|
|
7192
|
-
message.
|
7003
|
+
message.handlerId = reader.int32();
|
7193
7004
|
continue;
|
7194
7005
|
case 3:
|
7195
7006
|
if (tag !== 26) {
|
7196
7007
|
break;
|
7197
7008
|
}
|
7198
7009
|
|
7199
|
-
message.
|
7200
|
-
continue;
|
7201
|
-
case 4:
|
7202
|
-
if (tag !== 34) {
|
7203
|
-
break;
|
7204
|
-
}
|
7205
|
-
|
7206
|
-
message.lt = RichValue.decode(reader, reader.uint32());
|
7207
|
-
continue;
|
7208
|
-
case 5:
|
7209
|
-
if (tag !== 42) {
|
7210
|
-
break;
|
7211
|
-
}
|
7212
|
-
|
7213
|
-
message.lte = RichValue.decode(reader, reader.uint32());
|
7214
|
-
continue;
|
7215
|
-
case 6:
|
7216
|
-
if (tag !== 50) {
|
7217
|
-
break;
|
7218
|
-
}
|
7219
|
-
|
7220
|
-
message.ne = RichValue.decode(reader, reader.uint32());
|
7221
|
-
continue;
|
7222
|
-
case 7:
|
7223
|
-
if (tag !== 58) {
|
7224
|
-
break;
|
7225
|
-
}
|
7226
|
-
|
7227
|
-
message.prefix = reader.string();
|
7228
|
-
continue;
|
7229
|
-
case 8:
|
7230
|
-
if (tag !== 66) {
|
7231
|
-
break;
|
7232
|
-
}
|
7233
|
-
|
7234
|
-
message.contains = reader.string();
|
7235
|
-
continue;
|
7236
|
-
case 9:
|
7237
|
-
if (tag !== 74) {
|
7238
|
-
break;
|
7239
|
-
}
|
7240
|
-
|
7241
|
-
message.notContains = reader.string();
|
7242
|
-
continue;
|
7243
|
-
case 10:
|
7244
|
-
if (tag !== 80) {
|
7245
|
-
break;
|
7246
|
-
}
|
7247
|
-
|
7248
|
-
message.lengthEq = reader.int32();
|
7249
|
-
continue;
|
7250
|
-
case 11:
|
7251
|
-
if (tag !== 88) {
|
7252
|
-
break;
|
7253
|
-
}
|
7254
|
-
|
7255
|
-
message.lengthGt = reader.int32();
|
7256
|
-
continue;
|
7257
|
-
case 12:
|
7258
|
-
if (tag !== 96) {
|
7259
|
-
break;
|
7260
|
-
}
|
7261
|
-
|
7262
|
-
message.lengthLt = reader.int32();
|
7263
|
-
continue;
|
7264
|
-
case 13:
|
7265
|
-
if (tag !== 106) {
|
7266
|
-
break;
|
7267
|
-
}
|
7268
|
-
|
7269
|
-
message.hasAny = RichValueList.decode(reader, reader.uint32());
|
7270
|
-
continue;
|
7271
|
-
case 14:
|
7272
|
-
if (tag !== 114) {
|
7273
|
-
break;
|
7274
|
-
}
|
7275
|
-
|
7276
|
-
message.hasAll = RichValueList.decode(reader, reader.uint32());
|
7277
|
-
continue;
|
7278
|
-
case 15:
|
7279
|
-
if (tag !== 122) {
|
7280
|
-
break;
|
7281
|
-
}
|
7282
|
-
|
7283
|
-
message.in = RichValueList.decode(reader, reader.uint32());
|
7010
|
+
message.handlerName = reader.string();
|
7284
7011
|
continue;
|
7285
7012
|
}
|
7286
7013
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -7291,703 +7018,26 @@ export const BTCTransactionFilter_Condition = {
|
|
7291
7018
|
return message;
|
7292
7019
|
},
|
7293
7020
|
|
7294
|
-
fromJSON(object: any):
|
7021
|
+
fromJSON(object: any): FuelCallHandlerConfig {
|
7295
7022
|
return {
|
7296
|
-
|
7297
|
-
|
7298
|
-
|
7299
|
-
|
7300
|
-
|
7301
|
-
ne: isSet(object.ne) ? RichValue.fromJSON(object.ne) : undefined,
|
7302
|
-
prefix: isSet(object.prefix) ? globalThis.String(object.prefix) : undefined,
|
7303
|
-
contains: isSet(object.contains) ? globalThis.String(object.contains) : undefined,
|
7304
|
-
notContains: isSet(object.notContains) ? globalThis.String(object.notContains) : undefined,
|
7305
|
-
lengthEq: isSet(object.lengthEq) ? globalThis.Number(object.lengthEq) : undefined,
|
7306
|
-
lengthGt: isSet(object.lengthGt) ? globalThis.Number(object.lengthGt) : undefined,
|
7307
|
-
lengthLt: isSet(object.lengthLt) ? globalThis.Number(object.lengthLt) : undefined,
|
7308
|
-
hasAny: isSet(object.hasAny) ? RichValueList.fromJSON(object.hasAny) : undefined,
|
7309
|
-
hasAll: isSet(object.hasAll) ? RichValueList.fromJSON(object.hasAll) : undefined,
|
7310
|
-
in: isSet(object.in) ? RichValueList.fromJSON(object.in) : undefined,
|
7023
|
+
filters: globalThis.Array.isArray(object?.filters)
|
7024
|
+
? object.filters.map((e: any) => FuelCallFilter.fromJSON(e))
|
7025
|
+
: [],
|
7026
|
+
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
7027
|
+
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
7311
7028
|
};
|
7312
7029
|
},
|
7313
7030
|
|
7314
|
-
toJSON(message:
|
7031
|
+
toJSON(message: FuelCallHandlerConfig): unknown {
|
7315
7032
|
const obj: any = {};
|
7316
|
-
if (message.
|
7317
|
-
obj.
|
7318
|
-
}
|
7319
|
-
if (message.gt !== undefined) {
|
7320
|
-
obj.gt = RichValue.toJSON(message.gt);
|
7321
|
-
}
|
7322
|
-
if (message.gte !== undefined) {
|
7323
|
-
obj.gte = RichValue.toJSON(message.gte);
|
7324
|
-
}
|
7325
|
-
if (message.lt !== undefined) {
|
7326
|
-
obj.lt = RichValue.toJSON(message.lt);
|
7327
|
-
}
|
7328
|
-
if (message.lte !== undefined) {
|
7329
|
-
obj.lte = RichValue.toJSON(message.lte);
|
7330
|
-
}
|
7331
|
-
if (message.ne !== undefined) {
|
7332
|
-
obj.ne = RichValue.toJSON(message.ne);
|
7333
|
-
}
|
7334
|
-
if (message.prefix !== undefined) {
|
7335
|
-
obj.prefix = message.prefix;
|
7336
|
-
}
|
7337
|
-
if (message.contains !== undefined) {
|
7338
|
-
obj.contains = message.contains;
|
7339
|
-
}
|
7340
|
-
if (message.notContains !== undefined) {
|
7341
|
-
obj.notContains = message.notContains;
|
7342
|
-
}
|
7343
|
-
if (message.lengthEq !== undefined) {
|
7344
|
-
obj.lengthEq = Math.round(message.lengthEq);
|
7345
|
-
}
|
7346
|
-
if (message.lengthGt !== undefined) {
|
7347
|
-
obj.lengthGt = Math.round(message.lengthGt);
|
7348
|
-
}
|
7349
|
-
if (message.lengthLt !== undefined) {
|
7350
|
-
obj.lengthLt = Math.round(message.lengthLt);
|
7033
|
+
if (message.filters?.length) {
|
7034
|
+
obj.filters = message.filters.map((e) => FuelCallFilter.toJSON(e));
|
7351
7035
|
}
|
7352
|
-
if (message.
|
7353
|
-
obj.
|
7036
|
+
if (message.handlerId !== 0) {
|
7037
|
+
obj.handlerId = Math.round(message.handlerId);
|
7354
7038
|
}
|
7355
|
-
if (message.
|
7356
|
-
obj.
|
7357
|
-
}
|
7358
|
-
if (message.in !== undefined) {
|
7359
|
-
obj.in = RichValueList.toJSON(message.in);
|
7360
|
-
}
|
7361
|
-
return obj;
|
7362
|
-
},
|
7363
|
-
|
7364
|
-
create(base?: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
|
7365
|
-
return BTCTransactionFilter_Condition.fromPartial(base ?? {});
|
7366
|
-
},
|
7367
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
|
7368
|
-
const message = createBaseBTCTransactionFilter_Condition();
|
7369
|
-
message.eq = (object.eq !== undefined && object.eq !== null) ? RichValue.fromPartial(object.eq) : undefined;
|
7370
|
-
message.gt = (object.gt !== undefined && object.gt !== null) ? RichValue.fromPartial(object.gt) : undefined;
|
7371
|
-
message.gte = (object.gte !== undefined && object.gte !== null) ? RichValue.fromPartial(object.gte) : undefined;
|
7372
|
-
message.lt = (object.lt !== undefined && object.lt !== null) ? RichValue.fromPartial(object.lt) : undefined;
|
7373
|
-
message.lte = (object.lte !== undefined && object.lte !== null) ? RichValue.fromPartial(object.lte) : undefined;
|
7374
|
-
message.ne = (object.ne !== undefined && object.ne !== null) ? RichValue.fromPartial(object.ne) : undefined;
|
7375
|
-
message.prefix = object.prefix ?? undefined;
|
7376
|
-
message.contains = object.contains ?? undefined;
|
7377
|
-
message.notContains = object.notContains ?? undefined;
|
7378
|
-
message.lengthEq = object.lengthEq ?? undefined;
|
7379
|
-
message.lengthGt = object.lengthGt ?? undefined;
|
7380
|
-
message.lengthLt = object.lengthLt ?? undefined;
|
7381
|
-
message.hasAny = (object.hasAny !== undefined && object.hasAny !== null)
|
7382
|
-
? RichValueList.fromPartial(object.hasAny)
|
7383
|
-
: undefined;
|
7384
|
-
message.hasAll = (object.hasAll !== undefined && object.hasAll !== null)
|
7385
|
-
? RichValueList.fromPartial(object.hasAll)
|
7386
|
-
: undefined;
|
7387
|
-
message.in = (object.in !== undefined && object.in !== null) ? RichValueList.fromPartial(object.in) : undefined;
|
7388
|
-
return message;
|
7389
|
-
},
|
7390
|
-
};
|
7391
|
-
|
7392
|
-
function createBaseBTCTransactionFilter_Filter(): BTCTransactionFilter_Filter {
|
7393
|
-
return { conditions: {} };
|
7394
|
-
}
|
7395
|
-
|
7396
|
-
export const BTCTransactionFilter_Filter = {
|
7397
|
-
encode(message: BTCTransactionFilter_Filter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7398
|
-
Object.entries(message.conditions).forEach(([key, value]) => {
|
7399
|
-
BTCTransactionFilter_Filter_ConditionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
|
7400
|
-
});
|
7401
|
-
return writer;
|
7402
|
-
},
|
7403
|
-
|
7404
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filter {
|
7405
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7406
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7407
|
-
const message = createBaseBTCTransactionFilter_Filter();
|
7408
|
-
while (reader.pos < end) {
|
7409
|
-
const tag = reader.uint32();
|
7410
|
-
switch (tag >>> 3) {
|
7411
|
-
case 1:
|
7412
|
-
if (tag !== 10) {
|
7413
|
-
break;
|
7414
|
-
}
|
7415
|
-
|
7416
|
-
const entry1 = BTCTransactionFilter_Filter_ConditionsEntry.decode(reader, reader.uint32());
|
7417
|
-
if (entry1.value !== undefined) {
|
7418
|
-
message.conditions[entry1.key] = entry1.value;
|
7419
|
-
}
|
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 {
|
7431
|
-
return {
|
7432
|
-
conditions: isObject(object.conditions)
|
7433
|
-
? Object.entries(object.conditions).reduce<{ [key: string]: BTCTransactionFilter_Condition }>(
|
7434
|
-
(acc, [key, value]) => {
|
7435
|
-
acc[key] = BTCTransactionFilter_Condition.fromJSON(value);
|
7436
|
-
return acc;
|
7437
|
-
},
|
7438
|
-
{},
|
7439
|
-
)
|
7440
|
-
: {},
|
7441
|
-
};
|
7442
|
-
},
|
7443
|
-
|
7444
|
-
toJSON(message: BTCTransactionFilter_Filter): unknown {
|
7445
|
-
const obj: any = {};
|
7446
|
-
if (message.conditions) {
|
7447
|
-
const entries = Object.entries(message.conditions);
|
7448
|
-
if (entries.length > 0) {
|
7449
|
-
obj.conditions = {};
|
7450
|
-
entries.forEach(([k, v]) => {
|
7451
|
-
obj.conditions[k] = BTCTransactionFilter_Condition.toJSON(v);
|
7452
|
-
});
|
7453
|
-
}
|
7454
|
-
}
|
7455
|
-
return obj;
|
7456
|
-
},
|
7457
|
-
|
7458
|
-
create(base?: DeepPartial<BTCTransactionFilter_Filter>): BTCTransactionFilter_Filter {
|
7459
|
-
return BTCTransactionFilter_Filter.fromPartial(base ?? {});
|
7460
|
-
},
|
7461
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_Filter>): BTCTransactionFilter_Filter {
|
7462
|
-
const message = createBaseBTCTransactionFilter_Filter();
|
7463
|
-
message.conditions = Object.entries(object.conditions ?? {}).reduce<
|
7464
|
-
{ [key: string]: BTCTransactionFilter_Condition }
|
7465
|
-
>((acc, [key, value]) => {
|
7466
|
-
if (value !== undefined) {
|
7467
|
-
acc[key] = BTCTransactionFilter_Condition.fromPartial(value);
|
7468
|
-
}
|
7469
|
-
return acc;
|
7470
|
-
}, {});
|
7471
|
-
return message;
|
7472
|
-
},
|
7473
|
-
};
|
7474
|
-
|
7475
|
-
function createBaseBTCTransactionFilter_Filter_ConditionsEntry(): BTCTransactionFilter_Filter_ConditionsEntry {
|
7476
|
-
return { key: "", value: undefined };
|
7477
|
-
}
|
7478
|
-
|
7479
|
-
export const BTCTransactionFilter_Filter_ConditionsEntry = {
|
7480
|
-
encode(message: BTCTransactionFilter_Filter_ConditionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7481
|
-
if (message.key !== "") {
|
7482
|
-
writer.uint32(10).string(message.key);
|
7483
|
-
}
|
7484
|
-
if (message.value !== undefined) {
|
7485
|
-
BTCTransactionFilter_Condition.encode(message.value, writer.uint32(18).fork()).ldelim();
|
7486
|
-
}
|
7487
|
-
return writer;
|
7488
|
-
},
|
7489
|
-
|
7490
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filter_ConditionsEntry {
|
7491
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7492
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7493
|
-
const message = createBaseBTCTransactionFilter_Filter_ConditionsEntry();
|
7494
|
-
while (reader.pos < end) {
|
7495
|
-
const tag = reader.uint32();
|
7496
|
-
switch (tag >>> 3) {
|
7497
|
-
case 1:
|
7498
|
-
if (tag !== 10) {
|
7499
|
-
break;
|
7500
|
-
}
|
7501
|
-
|
7502
|
-
message.key = reader.string();
|
7503
|
-
continue;
|
7504
|
-
case 2:
|
7505
|
-
if (tag !== 18) {
|
7506
|
-
break;
|
7507
|
-
}
|
7508
|
-
|
7509
|
-
message.value = BTCTransactionFilter_Condition.decode(reader, reader.uint32());
|
7510
|
-
continue;
|
7511
|
-
}
|
7512
|
-
if ((tag & 7) === 4 || tag === 0) {
|
7513
|
-
break;
|
7514
|
-
}
|
7515
|
-
reader.skipType(tag & 7);
|
7516
|
-
}
|
7517
|
-
return message;
|
7518
|
-
},
|
7519
|
-
|
7520
|
-
fromJSON(object: any): BTCTransactionFilter_Filter_ConditionsEntry {
|
7521
|
-
return {
|
7522
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
7523
|
-
value: isSet(object.value) ? BTCTransactionFilter_Condition.fromJSON(object.value) : undefined,
|
7524
|
-
};
|
7525
|
-
},
|
7526
|
-
|
7527
|
-
toJSON(message: BTCTransactionFilter_Filter_ConditionsEntry): unknown {
|
7528
|
-
const obj: any = {};
|
7529
|
-
if (message.key !== "") {
|
7530
|
-
obj.key = message.key;
|
7531
|
-
}
|
7532
|
-
if (message.value !== undefined) {
|
7533
|
-
obj.value = BTCTransactionFilter_Condition.toJSON(message.value);
|
7534
|
-
}
|
7535
|
-
return obj;
|
7536
|
-
},
|
7537
|
-
|
7538
|
-
create(base?: DeepPartial<BTCTransactionFilter_Filter_ConditionsEntry>): BTCTransactionFilter_Filter_ConditionsEntry {
|
7539
|
-
return BTCTransactionFilter_Filter_ConditionsEntry.fromPartial(base ?? {});
|
7540
|
-
},
|
7541
|
-
fromPartial(
|
7542
|
-
object: DeepPartial<BTCTransactionFilter_Filter_ConditionsEntry>,
|
7543
|
-
): BTCTransactionFilter_Filter_ConditionsEntry {
|
7544
|
-
const message = createBaseBTCTransactionFilter_Filter_ConditionsEntry();
|
7545
|
-
message.key = object.key ?? "";
|
7546
|
-
message.value = (object.value !== undefined && object.value !== null)
|
7547
|
-
? BTCTransactionFilter_Condition.fromPartial(object.value)
|
7548
|
-
: undefined;
|
7549
|
-
return message;
|
7550
|
-
},
|
7551
|
-
};
|
7552
|
-
|
7553
|
-
function createBaseBTCTransactionFilter_Filters(): BTCTransactionFilter_Filters {
|
7554
|
-
return { filters: [] };
|
7555
|
-
}
|
7556
|
-
|
7557
|
-
export const BTCTransactionFilter_Filters = {
|
7558
|
-
encode(message: BTCTransactionFilter_Filters, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7559
|
-
for (const v of message.filters) {
|
7560
|
-
BTCTransactionFilter_Filter.encode(v!, writer.uint32(10).fork()).ldelim();
|
7561
|
-
}
|
7562
|
-
return writer;
|
7563
|
-
},
|
7564
|
-
|
7565
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filters {
|
7566
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7567
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7568
|
-
const message = createBaseBTCTransactionFilter_Filters();
|
7569
|
-
while (reader.pos < end) {
|
7570
|
-
const tag = reader.uint32();
|
7571
|
-
switch (tag >>> 3) {
|
7572
|
-
case 1:
|
7573
|
-
if (tag !== 10) {
|
7574
|
-
break;
|
7575
|
-
}
|
7576
|
-
|
7577
|
-
message.filters.push(BTCTransactionFilter_Filter.decode(reader, reader.uint32()));
|
7578
|
-
continue;
|
7579
|
-
}
|
7580
|
-
if ((tag & 7) === 4 || tag === 0) {
|
7581
|
-
break;
|
7582
|
-
}
|
7583
|
-
reader.skipType(tag & 7);
|
7584
|
-
}
|
7585
|
-
return message;
|
7586
|
-
},
|
7587
|
-
|
7588
|
-
fromJSON(object: any): BTCTransactionFilter_Filters {
|
7589
|
-
return {
|
7590
|
-
filters: globalThis.Array.isArray(object?.filters)
|
7591
|
-
? object.filters.map((e: any) => BTCTransactionFilter_Filter.fromJSON(e))
|
7592
|
-
: [],
|
7593
|
-
};
|
7594
|
-
},
|
7595
|
-
|
7596
|
-
toJSON(message: BTCTransactionFilter_Filters): unknown {
|
7597
|
-
const obj: any = {};
|
7598
|
-
if (message.filters?.length) {
|
7599
|
-
obj.filters = message.filters.map((e) => BTCTransactionFilter_Filter.toJSON(e));
|
7600
|
-
}
|
7601
|
-
return obj;
|
7602
|
-
},
|
7603
|
-
|
7604
|
-
create(base?: DeepPartial<BTCTransactionFilter_Filters>): BTCTransactionFilter_Filters {
|
7605
|
-
return BTCTransactionFilter_Filters.fromPartial(base ?? {});
|
7606
|
-
},
|
7607
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_Filters>): BTCTransactionFilter_Filters {
|
7608
|
-
const message = createBaseBTCTransactionFilter_Filters();
|
7609
|
-
message.filters = object.filters?.map((e) => BTCTransactionFilter_Filter.fromPartial(e)) || [];
|
7610
|
-
return message;
|
7611
|
-
},
|
7612
|
-
};
|
7613
|
-
|
7614
|
-
function createBaseBTCTransactionFilter_VinFilter(): BTCTransactionFilter_VinFilter {
|
7615
|
-
return { filters: undefined, preVOut: undefined, preTransaction: undefined };
|
7616
|
-
}
|
7617
|
-
|
7618
|
-
export const BTCTransactionFilter_VinFilter = {
|
7619
|
-
encode(message: BTCTransactionFilter_VinFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7620
|
-
if (message.filters !== undefined) {
|
7621
|
-
BTCTransactionFilter_Filters.encode(message.filters, writer.uint32(10).fork()).ldelim();
|
7622
|
-
}
|
7623
|
-
if (message.preVOut !== undefined) {
|
7624
|
-
BTCTransactionFilter_Filter.encode(message.preVOut, writer.uint32(18).fork()).ldelim();
|
7625
|
-
}
|
7626
|
-
if (message.preTransaction !== undefined) {
|
7627
|
-
BTCTransactionFilter.encode(message.preTransaction, writer.uint32(26).fork()).ldelim();
|
7628
|
-
}
|
7629
|
-
return writer;
|
7630
|
-
},
|
7631
|
-
|
7632
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_VinFilter {
|
7633
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7634
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7635
|
-
const message = createBaseBTCTransactionFilter_VinFilter();
|
7636
|
-
while (reader.pos < end) {
|
7637
|
-
const tag = reader.uint32();
|
7638
|
-
switch (tag >>> 3) {
|
7639
|
-
case 1:
|
7640
|
-
if (tag !== 10) {
|
7641
|
-
break;
|
7642
|
-
}
|
7643
|
-
|
7644
|
-
message.filters = BTCTransactionFilter_Filters.decode(reader, reader.uint32());
|
7645
|
-
continue;
|
7646
|
-
case 2:
|
7647
|
-
if (tag !== 18) {
|
7648
|
-
break;
|
7649
|
-
}
|
7650
|
-
|
7651
|
-
message.preVOut = BTCTransactionFilter_Filter.decode(reader, reader.uint32());
|
7652
|
-
continue;
|
7653
|
-
case 3:
|
7654
|
-
if (tag !== 26) {
|
7655
|
-
break;
|
7656
|
-
}
|
7657
|
-
|
7658
|
-
message.preTransaction = BTCTransactionFilter.decode(reader, reader.uint32());
|
7659
|
-
continue;
|
7660
|
-
}
|
7661
|
-
if ((tag & 7) === 4 || tag === 0) {
|
7662
|
-
break;
|
7663
|
-
}
|
7664
|
-
reader.skipType(tag & 7);
|
7665
|
-
}
|
7666
|
-
return message;
|
7667
|
-
},
|
7668
|
-
|
7669
|
-
fromJSON(object: any): BTCTransactionFilter_VinFilter {
|
7670
|
-
return {
|
7671
|
-
filters: isSet(object.filters) ? BTCTransactionFilter_Filters.fromJSON(object.filters) : undefined,
|
7672
|
-
preVOut: isSet(object.preVOut) ? BTCTransactionFilter_Filter.fromJSON(object.preVOut) : undefined,
|
7673
|
-
preTransaction: isSet(object.preTransaction) ? BTCTransactionFilter.fromJSON(object.preTransaction) : undefined,
|
7674
|
-
};
|
7675
|
-
},
|
7676
|
-
|
7677
|
-
toJSON(message: BTCTransactionFilter_VinFilter): unknown {
|
7678
|
-
const obj: any = {};
|
7679
|
-
if (message.filters !== undefined) {
|
7680
|
-
obj.filters = BTCTransactionFilter_Filters.toJSON(message.filters);
|
7681
|
-
}
|
7682
|
-
if (message.preVOut !== undefined) {
|
7683
|
-
obj.preVOut = BTCTransactionFilter_Filter.toJSON(message.preVOut);
|
7684
|
-
}
|
7685
|
-
if (message.preTransaction !== undefined) {
|
7686
|
-
obj.preTransaction = BTCTransactionFilter.toJSON(message.preTransaction);
|
7687
|
-
}
|
7688
|
-
return obj;
|
7689
|
-
},
|
7690
|
-
|
7691
|
-
create(base?: DeepPartial<BTCTransactionFilter_VinFilter>): BTCTransactionFilter_VinFilter {
|
7692
|
-
return BTCTransactionFilter_VinFilter.fromPartial(base ?? {});
|
7693
|
-
},
|
7694
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_VinFilter>): BTCTransactionFilter_VinFilter {
|
7695
|
-
const message = createBaseBTCTransactionFilter_VinFilter();
|
7696
|
-
message.filters = (object.filters !== undefined && object.filters !== null)
|
7697
|
-
? BTCTransactionFilter_Filters.fromPartial(object.filters)
|
7698
|
-
: undefined;
|
7699
|
-
message.preVOut = (object.preVOut !== undefined && object.preVOut !== null)
|
7700
|
-
? BTCTransactionFilter_Filter.fromPartial(object.preVOut)
|
7701
|
-
: undefined;
|
7702
|
-
message.preTransaction = (object.preTransaction !== undefined && object.preTransaction !== null)
|
7703
|
-
? BTCTransactionFilter.fromPartial(object.preTransaction)
|
7704
|
-
: undefined;
|
7705
|
-
return message;
|
7706
|
-
},
|
7707
|
-
};
|
7708
|
-
|
7709
|
-
function createBaseBTCTransactionFilter_VOutFilter(): BTCTransactionFilter_VOutFilter {
|
7710
|
-
return { filters: undefined };
|
7711
|
-
}
|
7712
|
-
|
7713
|
-
export const BTCTransactionFilter_VOutFilter = {
|
7714
|
-
encode(message: BTCTransactionFilter_VOutFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7715
|
-
if (message.filters !== undefined) {
|
7716
|
-
BTCTransactionFilter_Filters.encode(message.filters, writer.uint32(10).fork()).ldelim();
|
7717
|
-
}
|
7718
|
-
return writer;
|
7719
|
-
},
|
7720
|
-
|
7721
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_VOutFilter {
|
7722
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7723
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7724
|
-
const message = createBaseBTCTransactionFilter_VOutFilter();
|
7725
|
-
while (reader.pos < end) {
|
7726
|
-
const tag = reader.uint32();
|
7727
|
-
switch (tag >>> 3) {
|
7728
|
-
case 1:
|
7729
|
-
if (tag !== 10) {
|
7730
|
-
break;
|
7731
|
-
}
|
7732
|
-
|
7733
|
-
message.filters = BTCTransactionFilter_Filters.decode(reader, reader.uint32());
|
7734
|
-
continue;
|
7735
|
-
}
|
7736
|
-
if ((tag & 7) === 4 || tag === 0) {
|
7737
|
-
break;
|
7738
|
-
}
|
7739
|
-
reader.skipType(tag & 7);
|
7740
|
-
}
|
7741
|
-
return message;
|
7742
|
-
},
|
7743
|
-
|
7744
|
-
fromJSON(object: any): BTCTransactionFilter_VOutFilter {
|
7745
|
-
return { filters: isSet(object.filters) ? BTCTransactionFilter_Filters.fromJSON(object.filters) : undefined };
|
7746
|
-
},
|
7747
|
-
|
7748
|
-
toJSON(message: BTCTransactionFilter_VOutFilter): unknown {
|
7749
|
-
const obj: any = {};
|
7750
|
-
if (message.filters !== undefined) {
|
7751
|
-
obj.filters = BTCTransactionFilter_Filters.toJSON(message.filters);
|
7752
|
-
}
|
7753
|
-
return obj;
|
7754
|
-
},
|
7755
|
-
|
7756
|
-
create(base?: DeepPartial<BTCTransactionFilter_VOutFilter>): BTCTransactionFilter_VOutFilter {
|
7757
|
-
return BTCTransactionFilter_VOutFilter.fromPartial(base ?? {});
|
7758
|
-
},
|
7759
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_VOutFilter>): BTCTransactionFilter_VOutFilter {
|
7760
|
-
const message = createBaseBTCTransactionFilter_VOutFilter();
|
7761
|
-
message.filters = (object.filters !== undefined && object.filters !== null)
|
7762
|
-
? BTCTransactionFilter_Filters.fromPartial(object.filters)
|
7763
|
-
: undefined;
|
7764
|
-
return message;
|
7765
|
-
},
|
7766
|
-
};
|
7767
|
-
|
7768
|
-
function createBaseStarknetEventFilter(): StarknetEventFilter {
|
7769
|
-
return { address: "", keys: [] };
|
7770
|
-
}
|
7771
|
-
|
7772
|
-
export const StarknetEventFilter = {
|
7773
|
-
encode(message: StarknetEventFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7774
|
-
if (message.address !== "") {
|
7775
|
-
writer.uint32(10).string(message.address);
|
7776
|
-
}
|
7777
|
-
for (const v of message.keys) {
|
7778
|
-
writer.uint32(18).string(v!);
|
7779
|
-
}
|
7780
|
-
return writer;
|
7781
|
-
},
|
7782
|
-
|
7783
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StarknetEventFilter {
|
7784
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7785
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7786
|
-
const message = createBaseStarknetEventFilter();
|
7787
|
-
while (reader.pos < end) {
|
7788
|
-
const tag = reader.uint32();
|
7789
|
-
switch (tag >>> 3) {
|
7790
|
-
case 1:
|
7791
|
-
if (tag !== 10) {
|
7792
|
-
break;
|
7793
|
-
}
|
7794
|
-
|
7795
|
-
message.address = reader.string();
|
7796
|
-
continue;
|
7797
|
-
case 2:
|
7798
|
-
if (tag !== 18) {
|
7799
|
-
break;
|
7800
|
-
}
|
7801
|
-
|
7802
|
-
message.keys.push(reader.string());
|
7803
|
-
continue;
|
7804
|
-
}
|
7805
|
-
if ((tag & 7) === 4 || tag === 0) {
|
7806
|
-
break;
|
7807
|
-
}
|
7808
|
-
reader.skipType(tag & 7);
|
7809
|
-
}
|
7810
|
-
return message;
|
7811
|
-
},
|
7812
|
-
|
7813
|
-
fromJSON(object: any): StarknetEventFilter {
|
7814
|
-
return {
|
7815
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
7816
|
-
keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e: any) => globalThis.String(e)) : [],
|
7817
|
-
};
|
7818
|
-
},
|
7819
|
-
|
7820
|
-
toJSON(message: StarknetEventFilter): unknown {
|
7821
|
-
const obj: any = {};
|
7822
|
-
if (message.address !== "") {
|
7823
|
-
obj.address = message.address;
|
7824
|
-
}
|
7825
|
-
if (message.keys?.length) {
|
7826
|
-
obj.keys = message.keys;
|
7827
|
-
}
|
7828
|
-
return obj;
|
7829
|
-
},
|
7830
|
-
|
7831
|
-
create(base?: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
7832
|
-
return StarknetEventFilter.fromPartial(base ?? {});
|
7833
|
-
},
|
7834
|
-
fromPartial(object: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
|
7835
|
-
const message = createBaseStarknetEventFilter();
|
7836
|
-
message.address = object.address ?? "";
|
7837
|
-
message.keys = object.keys?.map((e) => e) || [];
|
7838
|
-
return message;
|
7839
|
-
},
|
7840
|
-
};
|
7841
|
-
|
7842
|
-
function createBaseFuelCallFilter(): FuelCallFilter {
|
7843
|
-
return { function: "", includeFailed: false };
|
7844
|
-
}
|
7845
|
-
|
7846
|
-
export const FuelCallFilter = {
|
7847
|
-
encode(message: FuelCallFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7848
|
-
if (message.function !== "") {
|
7849
|
-
writer.uint32(10).string(message.function);
|
7850
|
-
}
|
7851
|
-
if (message.includeFailed !== false) {
|
7852
|
-
writer.uint32(16).bool(message.includeFailed);
|
7853
|
-
}
|
7854
|
-
return writer;
|
7855
|
-
},
|
7856
|
-
|
7857
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallFilter {
|
7858
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7859
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7860
|
-
const message = createBaseFuelCallFilter();
|
7861
|
-
while (reader.pos < end) {
|
7862
|
-
const tag = reader.uint32();
|
7863
|
-
switch (tag >>> 3) {
|
7864
|
-
case 1:
|
7865
|
-
if (tag !== 10) {
|
7866
|
-
break;
|
7867
|
-
}
|
7868
|
-
|
7869
|
-
message.function = reader.string();
|
7870
|
-
continue;
|
7871
|
-
case 2:
|
7872
|
-
if (tag !== 16) {
|
7873
|
-
break;
|
7874
|
-
}
|
7875
|
-
|
7876
|
-
message.includeFailed = reader.bool();
|
7877
|
-
continue;
|
7878
|
-
}
|
7879
|
-
if ((tag & 7) === 4 || tag === 0) {
|
7880
|
-
break;
|
7881
|
-
}
|
7882
|
-
reader.skipType(tag & 7);
|
7883
|
-
}
|
7884
|
-
return message;
|
7885
|
-
},
|
7886
|
-
|
7887
|
-
fromJSON(object: any): FuelCallFilter {
|
7888
|
-
return {
|
7889
|
-
function: isSet(object.function) ? globalThis.String(object.function) : "",
|
7890
|
-
includeFailed: isSet(object.includeFailed) ? globalThis.Boolean(object.includeFailed) : false,
|
7891
|
-
};
|
7892
|
-
},
|
7893
|
-
|
7894
|
-
toJSON(message: FuelCallFilter): unknown {
|
7895
|
-
const obj: any = {};
|
7896
|
-
if (message.function !== "") {
|
7897
|
-
obj.function = message.function;
|
7898
|
-
}
|
7899
|
-
if (message.includeFailed !== false) {
|
7900
|
-
obj.includeFailed = message.includeFailed;
|
7901
|
-
}
|
7902
|
-
return obj;
|
7903
|
-
},
|
7904
|
-
|
7905
|
-
create(base?: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
7906
|
-
return FuelCallFilter.fromPartial(base ?? {});
|
7907
|
-
},
|
7908
|
-
fromPartial(object: DeepPartial<FuelCallFilter>): FuelCallFilter {
|
7909
|
-
const message = createBaseFuelCallFilter();
|
7910
|
-
message.function = object.function ?? "";
|
7911
|
-
message.includeFailed = object.includeFailed ?? false;
|
7912
|
-
return message;
|
7913
|
-
},
|
7914
|
-
};
|
7915
|
-
|
7916
|
-
function createBaseFuelCallHandlerConfig(): FuelCallHandlerConfig {
|
7917
|
-
return { filters: [], handlerId: 0, handlerName: "" };
|
7918
|
-
}
|
7919
|
-
|
7920
|
-
export const FuelCallHandlerConfig = {
|
7921
|
-
encode(message: FuelCallHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
7922
|
-
for (const v of message.filters) {
|
7923
|
-
FuelCallFilter.encode(v!, writer.uint32(10).fork()).ldelim();
|
7924
|
-
}
|
7925
|
-
if (message.handlerId !== 0) {
|
7926
|
-
writer.uint32(16).int32(message.handlerId);
|
7927
|
-
}
|
7928
|
-
if (message.handlerName !== "") {
|
7929
|
-
writer.uint32(26).string(message.handlerName);
|
7930
|
-
}
|
7931
|
-
return writer;
|
7932
|
-
},
|
7933
|
-
|
7934
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): FuelCallHandlerConfig {
|
7935
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
7936
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
7937
|
-
const message = createBaseFuelCallHandlerConfig();
|
7938
|
-
while (reader.pos < end) {
|
7939
|
-
const tag = reader.uint32();
|
7940
|
-
switch (tag >>> 3) {
|
7941
|
-
case 1:
|
7942
|
-
if (tag !== 10) {
|
7943
|
-
break;
|
7944
|
-
}
|
7945
|
-
|
7946
|
-
message.filters.push(FuelCallFilter.decode(reader, reader.uint32()));
|
7947
|
-
continue;
|
7948
|
-
case 2:
|
7949
|
-
if (tag !== 16) {
|
7950
|
-
break;
|
7951
|
-
}
|
7952
|
-
|
7953
|
-
message.handlerId = reader.int32();
|
7954
|
-
continue;
|
7955
|
-
case 3:
|
7956
|
-
if (tag !== 26) {
|
7957
|
-
break;
|
7958
|
-
}
|
7959
|
-
|
7960
|
-
message.handlerName = reader.string();
|
7961
|
-
continue;
|
7962
|
-
}
|
7963
|
-
if ((tag & 7) === 4 || tag === 0) {
|
7964
|
-
break;
|
7965
|
-
}
|
7966
|
-
reader.skipType(tag & 7);
|
7967
|
-
}
|
7968
|
-
return message;
|
7969
|
-
},
|
7970
|
-
|
7971
|
-
fromJSON(object: any): FuelCallHandlerConfig {
|
7972
|
-
return {
|
7973
|
-
filters: globalThis.Array.isArray(object?.filters)
|
7974
|
-
? object.filters.map((e: any) => FuelCallFilter.fromJSON(e))
|
7975
|
-
: [],
|
7976
|
-
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
7977
|
-
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
7978
|
-
};
|
7979
|
-
},
|
7980
|
-
|
7981
|
-
toJSON(message: FuelCallHandlerConfig): unknown {
|
7982
|
-
const obj: any = {};
|
7983
|
-
if (message.filters?.length) {
|
7984
|
-
obj.filters = message.filters.map((e) => FuelCallFilter.toJSON(e));
|
7985
|
-
}
|
7986
|
-
if (message.handlerId !== 0) {
|
7987
|
-
obj.handlerId = Math.round(message.handlerId);
|
7988
|
-
}
|
7989
|
-
if (message.handlerName !== "") {
|
7990
|
-
obj.handlerName = message.handlerName;
|
7039
|
+
if (message.handlerName !== "") {
|
7040
|
+
obj.handlerName = message.handlerName;
|
7991
7041
|
}
|
7992
7042
|
return obj;
|
7993
7043
|
},
|
@@ -10534,8 +9584,6 @@ function createBaseData(): Data {
|
|
10534
9584
|
fuelBlock: undefined,
|
10535
9585
|
cosmosCall: undefined,
|
10536
9586
|
starknetEvents: undefined,
|
10537
|
-
btcTransaction: undefined,
|
10538
|
-
btcBlock: undefined,
|
10539
9587
|
};
|
10540
9588
|
}
|
10541
9589
|
|
@@ -10595,12 +9643,6 @@ export const Data = {
|
|
10595
9643
|
if (message.starknetEvents !== undefined) {
|
10596
9644
|
Data_StarknetEvent.encode(message.starknetEvents, writer.uint32(130).fork()).ldelim();
|
10597
9645
|
}
|
10598
|
-
if (message.btcTransaction !== undefined) {
|
10599
|
-
Data_BTCTransaction.encode(message.btcTransaction, writer.uint32(138).fork()).ldelim();
|
10600
|
-
}
|
10601
|
-
if (message.btcBlock !== undefined) {
|
10602
|
-
Data_BTCBlock.encode(message.btcBlock, writer.uint32(154).fork()).ldelim();
|
10603
|
-
}
|
10604
9646
|
return writer;
|
10605
9647
|
},
|
10606
9648
|
|
@@ -10737,20 +9779,6 @@ export const Data = {
|
|
10737
9779
|
|
10738
9780
|
message.starknetEvents = Data_StarknetEvent.decode(reader, reader.uint32());
|
10739
9781
|
continue;
|
10740
|
-
case 17:
|
10741
|
-
if (tag !== 138) {
|
10742
|
-
break;
|
10743
|
-
}
|
10744
|
-
|
10745
|
-
message.btcTransaction = Data_BTCTransaction.decode(reader, reader.uint32());
|
10746
|
-
continue;
|
10747
|
-
case 19:
|
10748
|
-
if (tag !== 154) {
|
10749
|
-
break;
|
10750
|
-
}
|
10751
|
-
|
10752
|
-
message.btcBlock = Data_BTCBlock.decode(reader, reader.uint32());
|
10753
|
-
continue;
|
10754
9782
|
}
|
10755
9783
|
if ((tag & 7) === 4 || tag === 0) {
|
10756
9784
|
break;
|
@@ -10784,8 +9812,6 @@ export const Data = {
|
|
10784
9812
|
fuelBlock: isSet(object.fuelBlock) ? Data_FuelBlock.fromJSON(object.fuelBlock) : undefined,
|
10785
9813
|
cosmosCall: isSet(object.cosmosCall) ? Data_CosmosCall.fromJSON(object.cosmosCall) : undefined,
|
10786
9814
|
starknetEvents: isSet(object.starknetEvents) ? Data_StarknetEvent.fromJSON(object.starknetEvents) : undefined,
|
10787
|
-
btcTransaction: isSet(object.btcTransaction) ? Data_BTCTransaction.fromJSON(object.btcTransaction) : undefined,
|
10788
|
-
btcBlock: isSet(object.btcBlock) ? Data_BTCBlock.fromJSON(object.btcBlock) : undefined,
|
10789
9815
|
};
|
10790
9816
|
},
|
10791
9817
|
|
@@ -10845,12 +9871,6 @@ export const Data = {
|
|
10845
9871
|
if (message.starknetEvents !== undefined) {
|
10846
9872
|
obj.starknetEvents = Data_StarknetEvent.toJSON(message.starknetEvents);
|
10847
9873
|
}
|
10848
|
-
if (message.btcTransaction !== undefined) {
|
10849
|
-
obj.btcTransaction = Data_BTCTransaction.toJSON(message.btcTransaction);
|
10850
|
-
}
|
10851
|
-
if (message.btcBlock !== undefined) {
|
10852
|
-
obj.btcBlock = Data_BTCBlock.toJSON(message.btcBlock);
|
10853
|
-
}
|
10854
9874
|
return obj;
|
10855
9875
|
},
|
10856
9876
|
|
@@ -10913,12 +9933,6 @@ export const Data = {
|
|
10913
9933
|
message.starknetEvents = (object.starknetEvents !== undefined && object.starknetEvents !== null)
|
10914
9934
|
? Data_StarknetEvent.fromPartial(object.starknetEvents)
|
10915
9935
|
: undefined;
|
10916
|
-
message.btcTransaction = (object.btcTransaction !== undefined && object.btcTransaction !== null)
|
10917
|
-
? Data_BTCTransaction.fromPartial(object.btcTransaction)
|
10918
|
-
: undefined;
|
10919
|
-
message.btcBlock = (object.btcBlock !== undefined && object.btcBlock !== null)
|
10920
|
-
? Data_BTCBlock.fromPartial(object.btcBlock)
|
10921
|
-
: undefined;
|
10922
9936
|
return message;
|
10923
9937
|
},
|
10924
9938
|
};
|
@@ -12911,154 +11925,6 @@ export const Data_StarknetEvent = {
|
|
12911
11925
|
},
|
12912
11926
|
};
|
12913
11927
|
|
12914
|
-
function createBaseData_BTCTransaction(): Data_BTCTransaction {
|
12915
|
-
return { transaction: undefined, timestamp: undefined };
|
12916
|
-
}
|
12917
|
-
|
12918
|
-
export const Data_BTCTransaction = {
|
12919
|
-
encode(message: Data_BTCTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
12920
|
-
if (message.transaction !== undefined) {
|
12921
|
-
Struct.encode(Struct.wrap(message.transaction), writer.uint32(34).fork()).ldelim();
|
12922
|
-
}
|
12923
|
-
if (message.timestamp !== undefined) {
|
12924
|
-
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim();
|
12925
|
-
}
|
12926
|
-
return writer;
|
12927
|
-
},
|
12928
|
-
|
12929
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Data_BTCTransaction {
|
12930
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
12931
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
12932
|
-
const message = createBaseData_BTCTransaction();
|
12933
|
-
while (reader.pos < end) {
|
12934
|
-
const tag = reader.uint32();
|
12935
|
-
switch (tag >>> 3) {
|
12936
|
-
case 4:
|
12937
|
-
if (tag !== 34) {
|
12938
|
-
break;
|
12939
|
-
}
|
12940
|
-
|
12941
|
-
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
12942
|
-
continue;
|
12943
|
-
case 5:
|
12944
|
-
if (tag !== 42) {
|
12945
|
-
break;
|
12946
|
-
}
|
12947
|
-
|
12948
|
-
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
12949
|
-
continue;
|
12950
|
-
}
|
12951
|
-
if ((tag & 7) === 4 || tag === 0) {
|
12952
|
-
break;
|
12953
|
-
}
|
12954
|
-
reader.skipType(tag & 7);
|
12955
|
-
}
|
12956
|
-
return message;
|
12957
|
-
},
|
12958
|
-
|
12959
|
-
fromJSON(object: any): Data_BTCTransaction {
|
12960
|
-
return {
|
12961
|
-
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
12962
|
-
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
12963
|
-
};
|
12964
|
-
},
|
12965
|
-
|
12966
|
-
toJSON(message: Data_BTCTransaction): unknown {
|
12967
|
-
const obj: any = {};
|
12968
|
-
if (message.transaction !== undefined) {
|
12969
|
-
obj.transaction = message.transaction;
|
12970
|
-
}
|
12971
|
-
if (message.timestamp !== undefined) {
|
12972
|
-
obj.timestamp = message.timestamp.toISOString();
|
12973
|
-
}
|
12974
|
-
return obj;
|
12975
|
-
},
|
12976
|
-
|
12977
|
-
create(base?: DeepPartial<Data_BTCTransaction>): Data_BTCTransaction {
|
12978
|
-
return Data_BTCTransaction.fromPartial(base ?? {});
|
12979
|
-
},
|
12980
|
-
fromPartial(object: DeepPartial<Data_BTCTransaction>): Data_BTCTransaction {
|
12981
|
-
const message = createBaseData_BTCTransaction();
|
12982
|
-
message.transaction = object.transaction ?? undefined;
|
12983
|
-
message.timestamp = object.timestamp ?? undefined;
|
12984
|
-
return message;
|
12985
|
-
},
|
12986
|
-
};
|
12987
|
-
|
12988
|
-
function createBaseData_BTCBlock(): Data_BTCBlock {
|
12989
|
-
return { block: undefined, timestamp: undefined };
|
12990
|
-
}
|
12991
|
-
|
12992
|
-
export const Data_BTCBlock = {
|
12993
|
-
encode(message: Data_BTCBlock, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
12994
|
-
if (message.block !== undefined) {
|
12995
|
-
Struct.encode(Struct.wrap(message.block), writer.uint32(10).fork()).ldelim();
|
12996
|
-
}
|
12997
|
-
if (message.timestamp !== undefined) {
|
12998
|
-
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
12999
|
-
}
|
13000
|
-
return writer;
|
13001
|
-
},
|
13002
|
-
|
13003
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Data_BTCBlock {
|
13004
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
13005
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
13006
|
-
const message = createBaseData_BTCBlock();
|
13007
|
-
while (reader.pos < end) {
|
13008
|
-
const tag = reader.uint32();
|
13009
|
-
switch (tag >>> 3) {
|
13010
|
-
case 1:
|
13011
|
-
if (tag !== 10) {
|
13012
|
-
break;
|
13013
|
-
}
|
13014
|
-
|
13015
|
-
message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
13016
|
-
continue;
|
13017
|
-
case 2:
|
13018
|
-
if (tag !== 18) {
|
13019
|
-
break;
|
13020
|
-
}
|
13021
|
-
|
13022
|
-
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
13023
|
-
continue;
|
13024
|
-
}
|
13025
|
-
if ((tag & 7) === 4 || tag === 0) {
|
13026
|
-
break;
|
13027
|
-
}
|
13028
|
-
reader.skipType(tag & 7);
|
13029
|
-
}
|
13030
|
-
return message;
|
13031
|
-
},
|
13032
|
-
|
13033
|
-
fromJSON(object: any): Data_BTCBlock {
|
13034
|
-
return {
|
13035
|
-
block: isObject(object.block) ? object.block : undefined,
|
13036
|
-
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
13037
|
-
};
|
13038
|
-
},
|
13039
|
-
|
13040
|
-
toJSON(message: Data_BTCBlock): unknown {
|
13041
|
-
const obj: any = {};
|
13042
|
-
if (message.block !== undefined) {
|
13043
|
-
obj.block = message.block;
|
13044
|
-
}
|
13045
|
-
if (message.timestamp !== undefined) {
|
13046
|
-
obj.timestamp = message.timestamp.toISOString();
|
13047
|
-
}
|
13048
|
-
return obj;
|
13049
|
-
},
|
13050
|
-
|
13051
|
-
create(base?: DeepPartial<Data_BTCBlock>): Data_BTCBlock {
|
13052
|
-
return Data_BTCBlock.fromPartial(base ?? {});
|
13053
|
-
},
|
13054
|
-
fromPartial(object: DeepPartial<Data_BTCBlock>): Data_BTCBlock {
|
13055
|
-
const message = createBaseData_BTCBlock();
|
13056
|
-
message.block = object.block ?? undefined;
|
13057
|
-
message.timestamp = object.timestamp ?? undefined;
|
13058
|
-
return message;
|
13059
|
-
},
|
13060
|
-
};
|
13061
|
-
|
13062
11928
|
function createBaseDataBinding(): DataBinding {
|
13063
11929
|
return { data: undefined, handlerType: 0, handlerIds: [], chainId: "" };
|
13064
11930
|
}
|