@sentio/runtime 2.42.0-rc.1 → 2.42.0-rc.11

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.
@@ -378,6 +378,7 @@ export interface ExecutionConfig {
378
378
  forceExactBlockTime: boolean;
379
379
  processBindingTimeout: number;
380
380
  skipStartBlockValidation: boolean;
381
+ rpcRetryTimes: number;
381
382
  }
382
383
 
383
384
  export interface ProcessConfigRequest {
@@ -746,25 +747,50 @@ export interface BTCTransactionHandlerConfig {
746
747
  }
747
748
 
748
749
  export interface BTCTransactionFilter {
749
- address?: string | undefined;
750
- fieldFilters?: BTCTransactionFilter_FieldFilters | undefined;
751
- }
752
-
753
- export interface BTCTransactionFilter_FieldFilters {
754
- filters: BTCTransactionFilter_FieldFilter[];
750
+ inputFilter: BTCTransactionFilter_VinFilter | undefined;
751
+ outputFilter: BTCTransactionFilter_VOutFilter | undefined;
752
+ filter: BTCTransactionFilter_Filter[];
755
753
  }
756
754
 
757
- export interface BTCTransactionFilter_FieldFilter {
758
- field: string;
759
- prefix?: RichValue | undefined;
760
- contains?: RichValue | undefined;
761
- notContains?: RichValue | undefined;
755
+ export interface BTCTransactionFilter_Condition {
762
756
  eq?: RichValue | undefined;
763
757
  gt?: RichValue | undefined;
764
758
  gte?: RichValue | undefined;
765
759
  lt?: RichValue | undefined;
766
760
  lte?: RichValue | undefined;
767
761
  ne?: RichValue | undefined;
762
+ prefix?: string | undefined;
763
+ contains?: string | undefined;
764
+ notContains?: string | undefined;
765
+ lengthEq?: number | undefined;
766
+ lengthGt?: number | undefined;
767
+ lengthLt?: number | undefined;
768
+ hasAny?: RichValueList | undefined;
769
+ hasAll?: RichValueList | undefined;
770
+ in?: RichValueList | undefined;
771
+ }
772
+
773
+ export interface BTCTransactionFilter_Filter {
774
+ conditions: { [key: string]: BTCTransactionFilter_Condition };
775
+ }
776
+
777
+ export interface BTCTransactionFilter_Filter_ConditionsEntry {
778
+ key: string;
779
+ value: BTCTransactionFilter_Condition | undefined;
780
+ }
781
+
782
+ export interface BTCTransactionFilter_Filters {
783
+ filters: BTCTransactionFilter_Filter[];
784
+ }
785
+
786
+ export interface BTCTransactionFilter_VinFilter {
787
+ filters: BTCTransactionFilter_Filters | undefined;
788
+ preVOut: BTCTransactionFilter_Filter | undefined;
789
+ preTransaction: BTCTransactionFilter | undefined;
790
+ }
791
+
792
+ export interface BTCTransactionFilter_VOutFilter {
793
+ filters: BTCTransactionFilter_Filters | undefined;
768
794
  }
769
795
 
770
796
  export interface StarknetEventFilter {
@@ -1282,7 +1308,13 @@ export const ProjectConfig = {
1282
1308
  };
1283
1309
 
1284
1310
  function createBaseExecutionConfig(): ExecutionConfig {
1285
- return { sequential: false, forceExactBlockTime: false, processBindingTimeout: 0, skipStartBlockValidation: false };
1311
+ return {
1312
+ sequential: false,
1313
+ forceExactBlockTime: false,
1314
+ processBindingTimeout: 0,
1315
+ skipStartBlockValidation: false,
1316
+ rpcRetryTimes: 0,
1317
+ };
1286
1318
  }
1287
1319
 
1288
1320
  export const ExecutionConfig = {
@@ -1299,6 +1331,9 @@ export const ExecutionConfig = {
1299
1331
  if (message.skipStartBlockValidation !== false) {
1300
1332
  writer.uint32(32).bool(message.skipStartBlockValidation);
1301
1333
  }
1334
+ if (message.rpcRetryTimes !== 0) {
1335
+ writer.uint32(40).int32(message.rpcRetryTimes);
1336
+ }
1302
1337
  return writer;
1303
1338
  },
1304
1339
 
@@ -1337,6 +1372,13 @@ export const ExecutionConfig = {
1337
1372
 
1338
1373
  message.skipStartBlockValidation = reader.bool();
1339
1374
  continue;
1375
+ case 5:
1376
+ if (tag !== 40) {
1377
+ break;
1378
+ }
1379
+
1380
+ message.rpcRetryTimes = reader.int32();
1381
+ continue;
1340
1382
  }
1341
1383
  if ((tag & 7) === 4 || tag === 0) {
1342
1384
  break;
@@ -1354,6 +1396,7 @@ export const ExecutionConfig = {
1354
1396
  skipStartBlockValidation: isSet(object.skipStartBlockValidation)
1355
1397
  ? globalThis.Boolean(object.skipStartBlockValidation)
1356
1398
  : false,
1399
+ rpcRetryTimes: isSet(object.rpcRetryTimes) ? globalThis.Number(object.rpcRetryTimes) : 0,
1357
1400
  };
1358
1401
  },
1359
1402
 
@@ -1371,6 +1414,9 @@ export const ExecutionConfig = {
1371
1414
  if (message.skipStartBlockValidation !== false) {
1372
1415
  obj.skipStartBlockValidation = message.skipStartBlockValidation;
1373
1416
  }
1417
+ if (message.rpcRetryTimes !== 0) {
1418
+ obj.rpcRetryTimes = Math.round(message.rpcRetryTimes);
1419
+ }
1374
1420
  return obj;
1375
1421
  },
1376
1422
 
@@ -1383,6 +1429,7 @@ export const ExecutionConfig = {
1383
1429
  message.forceExactBlockTime = object.forceExactBlockTime ?? false;
1384
1430
  message.processBindingTimeout = object.processBindingTimeout ?? 0;
1385
1431
  message.skipStartBlockValidation = object.skipStartBlockValidation ?? false;
1432
+ message.rpcRetryTimes = object.rpcRetryTimes ?? 0;
1386
1433
  return message;
1387
1434
  },
1388
1435
  };
@@ -5701,16 +5748,19 @@ export const BTCTransactionHandlerConfig = {
5701
5748
  };
5702
5749
 
5703
5750
  function createBaseBTCTransactionFilter(): BTCTransactionFilter {
5704
- return { address: undefined, fieldFilters: undefined };
5751
+ return { inputFilter: undefined, outputFilter: undefined, filter: [] };
5705
5752
  }
5706
5753
 
5707
5754
  export const BTCTransactionFilter = {
5708
5755
  encode(message: BTCTransactionFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5709
- if (message.address !== undefined) {
5710
- writer.uint32(10).string(message.address);
5756
+ if (message.inputFilter !== undefined) {
5757
+ BTCTransactionFilter_VinFilter.encode(message.inputFilter, writer.uint32(10).fork()).ldelim();
5758
+ }
5759
+ if (message.outputFilter !== undefined) {
5760
+ BTCTransactionFilter_VOutFilter.encode(message.outputFilter, writer.uint32(18).fork()).ldelim();
5711
5761
  }
5712
- if (message.fieldFilters !== undefined) {
5713
- BTCTransactionFilter_FieldFilters.encode(message.fieldFilters, writer.uint32(18).fork()).ldelim();
5762
+ for (const v of message.filter) {
5763
+ BTCTransactionFilter_Filter.encode(v!, writer.uint32(26).fork()).ldelim();
5714
5764
  }
5715
5765
  return writer;
5716
5766
  },
@@ -5727,14 +5777,21 @@ export const BTCTransactionFilter = {
5727
5777
  break;
5728
5778
  }
5729
5779
 
5730
- message.address = reader.string();
5780
+ message.inputFilter = BTCTransactionFilter_VinFilter.decode(reader, reader.uint32());
5731
5781
  continue;
5732
5782
  case 2:
5733
5783
  if (tag !== 18) {
5734
5784
  break;
5735
5785
  }
5736
5786
 
5737
- message.fieldFilters = BTCTransactionFilter_FieldFilters.decode(reader, reader.uint32());
5787
+ message.outputFilter = BTCTransactionFilter_VOutFilter.decode(reader, reader.uint32());
5788
+ continue;
5789
+ case 3:
5790
+ if (tag !== 26) {
5791
+ break;
5792
+ }
5793
+
5794
+ message.filter.push(BTCTransactionFilter_Filter.decode(reader, reader.uint32()));
5738
5795
  continue;
5739
5796
  }
5740
5797
  if ((tag & 7) === 4 || tag === 0) {
@@ -5747,20 +5804,26 @@ export const BTCTransactionFilter = {
5747
5804
 
5748
5805
  fromJSON(object: any): BTCTransactionFilter {
5749
5806
  return {
5750
- address: isSet(object.address) ? globalThis.String(object.address) : undefined,
5751
- fieldFilters: isSet(object.fieldFilters)
5752
- ? BTCTransactionFilter_FieldFilters.fromJSON(object.fieldFilters)
5807
+ inputFilter: isSet(object.inputFilter) ? BTCTransactionFilter_VinFilter.fromJSON(object.inputFilter) : undefined,
5808
+ outputFilter: isSet(object.outputFilter)
5809
+ ? BTCTransactionFilter_VOutFilter.fromJSON(object.outputFilter)
5753
5810
  : undefined,
5811
+ filter: globalThis.Array.isArray(object?.filter)
5812
+ ? object.filter.map((e: any) => BTCTransactionFilter_Filter.fromJSON(e))
5813
+ : [],
5754
5814
  };
5755
5815
  },
5756
5816
 
5757
5817
  toJSON(message: BTCTransactionFilter): unknown {
5758
5818
  const obj: any = {};
5759
- if (message.address !== undefined) {
5760
- obj.address = message.address;
5819
+ if (message.inputFilter !== undefined) {
5820
+ obj.inputFilter = BTCTransactionFilter_VinFilter.toJSON(message.inputFilter);
5761
5821
  }
5762
- if (message.fieldFilters !== undefined) {
5763
- obj.fieldFilters = BTCTransactionFilter_FieldFilters.toJSON(message.fieldFilters);
5822
+ if (message.outputFilter !== undefined) {
5823
+ obj.outputFilter = BTCTransactionFilter_VOutFilter.toJSON(message.outputFilter);
5824
+ }
5825
+ if (message.filter?.length) {
5826
+ obj.filter = message.filter.map((e) => BTCTransactionFilter_Filter.toJSON(e));
5764
5827
  }
5765
5828
  return obj;
5766
5829
  },
@@ -5770,129 +5833,91 @@ export const BTCTransactionFilter = {
5770
5833
  },
5771
5834
  fromPartial(object: DeepPartial<BTCTransactionFilter>): BTCTransactionFilter {
5772
5835
  const message = createBaseBTCTransactionFilter();
5773
- message.address = object.address ?? undefined;
5774
- message.fieldFilters = (object.fieldFilters !== undefined && object.fieldFilters !== null)
5775
- ? BTCTransactionFilter_FieldFilters.fromPartial(object.fieldFilters)
5836
+ message.inputFilter = (object.inputFilter !== undefined && object.inputFilter !== null)
5837
+ ? BTCTransactionFilter_VinFilter.fromPartial(object.inputFilter)
5776
5838
  : undefined;
5839
+ message.outputFilter = (object.outputFilter !== undefined && object.outputFilter !== null)
5840
+ ? BTCTransactionFilter_VOutFilter.fromPartial(object.outputFilter)
5841
+ : undefined;
5842
+ message.filter = object.filter?.map((e) => BTCTransactionFilter_Filter.fromPartial(e)) || [];
5777
5843
  return message;
5778
5844
  },
5779
5845
  };
5780
5846
 
5781
- function createBaseBTCTransactionFilter_FieldFilters(): BTCTransactionFilter_FieldFilters {
5782
- return { filters: [] };
5783
- }
5784
-
5785
- export const BTCTransactionFilter_FieldFilters = {
5786
- encode(message: BTCTransactionFilter_FieldFilters, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5787
- for (const v of message.filters) {
5788
- BTCTransactionFilter_FieldFilter.encode(v!, writer.uint32(10).fork()).ldelim();
5789
- }
5790
- return writer;
5791
- },
5792
-
5793
- decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_FieldFilters {
5794
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5795
- let end = length === undefined ? reader.len : reader.pos + length;
5796
- const message = createBaseBTCTransactionFilter_FieldFilters();
5797
- while (reader.pos < end) {
5798
- const tag = reader.uint32();
5799
- switch (tag >>> 3) {
5800
- case 1:
5801
- if (tag !== 10) {
5802
- break;
5803
- }
5804
-
5805
- message.filters.push(BTCTransactionFilter_FieldFilter.decode(reader, reader.uint32()));
5806
- continue;
5807
- }
5808
- if ((tag & 7) === 4 || tag === 0) {
5809
- break;
5810
- }
5811
- reader.skipType(tag & 7);
5812
- }
5813
- return message;
5814
- },
5815
-
5816
- fromJSON(object: any): BTCTransactionFilter_FieldFilters {
5817
- return {
5818
- filters: globalThis.Array.isArray(object?.filters)
5819
- ? object.filters.map((e: any) => BTCTransactionFilter_FieldFilter.fromJSON(e))
5820
- : [],
5821
- };
5822
- },
5823
-
5824
- toJSON(message: BTCTransactionFilter_FieldFilters): unknown {
5825
- const obj: any = {};
5826
- if (message.filters?.length) {
5827
- obj.filters = message.filters.map((e) => BTCTransactionFilter_FieldFilter.toJSON(e));
5828
- }
5829
- return obj;
5830
- },
5831
-
5832
- create(base?: DeepPartial<BTCTransactionFilter_FieldFilters>): BTCTransactionFilter_FieldFilters {
5833
- return BTCTransactionFilter_FieldFilters.fromPartial(base ?? {});
5834
- },
5835
- fromPartial(object: DeepPartial<BTCTransactionFilter_FieldFilters>): BTCTransactionFilter_FieldFilters {
5836
- const message = createBaseBTCTransactionFilter_FieldFilters();
5837
- message.filters = object.filters?.map((e) => BTCTransactionFilter_FieldFilter.fromPartial(e)) || [];
5838
- return message;
5839
- },
5840
- };
5841
-
5842
- function createBaseBTCTransactionFilter_FieldFilter(): BTCTransactionFilter_FieldFilter {
5847
+ function createBaseBTCTransactionFilter_Condition(): BTCTransactionFilter_Condition {
5843
5848
  return {
5844
- field: "",
5845
- prefix: undefined,
5846
- contains: undefined,
5847
- notContains: undefined,
5848
5849
  eq: undefined,
5849
5850
  gt: undefined,
5850
5851
  gte: undefined,
5851
5852
  lt: undefined,
5852
5853
  lte: undefined,
5853
5854
  ne: undefined,
5855
+ prefix: undefined,
5856
+ contains: undefined,
5857
+ notContains: undefined,
5858
+ lengthEq: undefined,
5859
+ lengthGt: undefined,
5860
+ lengthLt: undefined,
5861
+ hasAny: undefined,
5862
+ hasAll: undefined,
5863
+ in: undefined,
5854
5864
  };
5855
5865
  }
5856
5866
 
5857
- export const BTCTransactionFilter_FieldFilter = {
5858
- encode(message: BTCTransactionFilter_FieldFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5859
- if (message.field !== "") {
5860
- writer.uint32(10).string(message.field);
5867
+ export const BTCTransactionFilter_Condition = {
5868
+ encode(message: BTCTransactionFilter_Condition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5869
+ if (message.eq !== undefined) {
5870
+ RichValue.encode(message.eq, writer.uint32(10).fork()).ldelim();
5871
+ }
5872
+ if (message.gt !== undefined) {
5873
+ RichValue.encode(message.gt, writer.uint32(18).fork()).ldelim();
5874
+ }
5875
+ if (message.gte !== undefined) {
5876
+ RichValue.encode(message.gte, writer.uint32(26).fork()).ldelim();
5877
+ }
5878
+ if (message.lt !== undefined) {
5879
+ RichValue.encode(message.lt, writer.uint32(34).fork()).ldelim();
5880
+ }
5881
+ if (message.lte !== undefined) {
5882
+ RichValue.encode(message.lte, writer.uint32(42).fork()).ldelim();
5883
+ }
5884
+ if (message.ne !== undefined) {
5885
+ RichValue.encode(message.ne, writer.uint32(50).fork()).ldelim();
5861
5886
  }
5862
5887
  if (message.prefix !== undefined) {
5863
- RichValue.encode(message.prefix, writer.uint32(18).fork()).ldelim();
5888
+ writer.uint32(58).string(message.prefix);
5864
5889
  }
5865
5890
  if (message.contains !== undefined) {
5866
- RichValue.encode(message.contains, writer.uint32(26).fork()).ldelim();
5891
+ writer.uint32(66).string(message.contains);
5867
5892
  }
5868
5893
  if (message.notContains !== undefined) {
5869
- RichValue.encode(message.notContains, writer.uint32(34).fork()).ldelim();
5894
+ writer.uint32(74).string(message.notContains);
5870
5895
  }
5871
- if (message.eq !== undefined) {
5872
- RichValue.encode(message.eq, writer.uint32(42).fork()).ldelim();
5896
+ if (message.lengthEq !== undefined) {
5897
+ writer.uint32(80).int32(message.lengthEq);
5873
5898
  }
5874
- if (message.gt !== undefined) {
5875
- RichValue.encode(message.gt, writer.uint32(50).fork()).ldelim();
5899
+ if (message.lengthGt !== undefined) {
5900
+ writer.uint32(88).int32(message.lengthGt);
5876
5901
  }
5877
- if (message.gte !== undefined) {
5878
- RichValue.encode(message.gte, writer.uint32(58).fork()).ldelim();
5902
+ if (message.lengthLt !== undefined) {
5903
+ writer.uint32(96).int32(message.lengthLt);
5879
5904
  }
5880
- if (message.lt !== undefined) {
5881
- RichValue.encode(message.lt, writer.uint32(66).fork()).ldelim();
5905
+ if (message.hasAny !== undefined) {
5906
+ RichValueList.encode(message.hasAny, writer.uint32(106).fork()).ldelim();
5882
5907
  }
5883
- if (message.lte !== undefined) {
5884
- RichValue.encode(message.lte, writer.uint32(74).fork()).ldelim();
5908
+ if (message.hasAll !== undefined) {
5909
+ RichValueList.encode(message.hasAll, writer.uint32(114).fork()).ldelim();
5885
5910
  }
5886
- if (message.ne !== undefined) {
5887
- RichValue.encode(message.ne, writer.uint32(82).fork()).ldelim();
5911
+ if (message.in !== undefined) {
5912
+ RichValueList.encode(message.in, writer.uint32(122).fork()).ldelim();
5888
5913
  }
5889
5914
  return writer;
5890
5915
  },
5891
5916
 
5892
- decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_FieldFilter {
5917
+ decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Condition {
5893
5918
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5894
5919
  let end = length === undefined ? reader.len : reader.pos + length;
5895
- const message = createBaseBTCTransactionFilter_FieldFilter();
5920
+ const message = createBaseBTCTransactionFilter_Condition();
5896
5921
  while (reader.pos < end) {
5897
5922
  const tag = reader.uint32();
5898
5923
  switch (tag >>> 3) {
@@ -5901,70 +5926,105 @@ export const BTCTransactionFilter_FieldFilter = {
5901
5926
  break;
5902
5927
  }
5903
5928
 
5904
- message.field = reader.string();
5929
+ message.eq = RichValue.decode(reader, reader.uint32());
5905
5930
  continue;
5906
5931
  case 2:
5907
5932
  if (tag !== 18) {
5908
5933
  break;
5909
5934
  }
5910
5935
 
5911
- message.prefix = RichValue.decode(reader, reader.uint32());
5936
+ message.gt = RichValue.decode(reader, reader.uint32());
5912
5937
  continue;
5913
5938
  case 3:
5914
5939
  if (tag !== 26) {
5915
5940
  break;
5916
5941
  }
5917
5942
 
5918
- message.contains = RichValue.decode(reader, reader.uint32());
5943
+ message.gte = RichValue.decode(reader, reader.uint32());
5919
5944
  continue;
5920
5945
  case 4:
5921
5946
  if (tag !== 34) {
5922
5947
  break;
5923
5948
  }
5924
5949
 
5925
- message.notContains = RichValue.decode(reader, reader.uint32());
5950
+ message.lt = RichValue.decode(reader, reader.uint32());
5926
5951
  continue;
5927
5952
  case 5:
5928
5953
  if (tag !== 42) {
5929
5954
  break;
5930
5955
  }
5931
5956
 
5932
- message.eq = RichValue.decode(reader, reader.uint32());
5957
+ message.lte = RichValue.decode(reader, reader.uint32());
5933
5958
  continue;
5934
5959
  case 6:
5935
5960
  if (tag !== 50) {
5936
5961
  break;
5937
5962
  }
5938
5963
 
5939
- message.gt = RichValue.decode(reader, reader.uint32());
5964
+ message.ne = RichValue.decode(reader, reader.uint32());
5940
5965
  continue;
5941
5966
  case 7:
5942
5967
  if (tag !== 58) {
5943
5968
  break;
5944
5969
  }
5945
5970
 
5946
- message.gte = RichValue.decode(reader, reader.uint32());
5971
+ message.prefix = reader.string();
5947
5972
  continue;
5948
5973
  case 8:
5949
5974
  if (tag !== 66) {
5950
5975
  break;
5951
5976
  }
5952
5977
 
5953
- message.lt = RichValue.decode(reader, reader.uint32());
5978
+ message.contains = reader.string();
5954
5979
  continue;
5955
5980
  case 9:
5956
5981
  if (tag !== 74) {
5957
5982
  break;
5958
5983
  }
5959
5984
 
5960
- message.lte = RichValue.decode(reader, reader.uint32());
5985
+ message.notContains = reader.string();
5961
5986
  continue;
5962
5987
  case 10:
5963
- if (tag !== 82) {
5988
+ if (tag !== 80) {
5964
5989
  break;
5965
5990
  }
5966
5991
 
5967
- message.ne = RichValue.decode(reader, reader.uint32());
5992
+ message.lengthEq = reader.int32();
5993
+ continue;
5994
+ case 11:
5995
+ if (tag !== 88) {
5996
+ break;
5997
+ }
5998
+
5999
+ message.lengthGt = reader.int32();
6000
+ continue;
6001
+ case 12:
6002
+ if (tag !== 96) {
6003
+ break;
6004
+ }
6005
+
6006
+ message.lengthLt = reader.int32();
6007
+ continue;
6008
+ case 13:
6009
+ if (tag !== 106) {
6010
+ break;
6011
+ }
6012
+
6013
+ message.hasAny = RichValueList.decode(reader, reader.uint32());
6014
+ continue;
6015
+ case 14:
6016
+ if (tag !== 114) {
6017
+ break;
6018
+ }
6019
+
6020
+ message.hasAll = RichValueList.decode(reader, reader.uint32());
6021
+ continue;
6022
+ case 15:
6023
+ if (tag !== 122) {
6024
+ break;
6025
+ }
6026
+
6027
+ message.in = RichValueList.decode(reader, reader.uint32());
5968
6028
  continue;
5969
6029
  }
5970
6030
  if ((tag & 7) === 4 || tag === 0) {
@@ -5975,35 +6035,28 @@ export const BTCTransactionFilter_FieldFilter = {
5975
6035
  return message;
5976
6036
  },
5977
6037
 
5978
- fromJSON(object: any): BTCTransactionFilter_FieldFilter {
6038
+ fromJSON(object: any): BTCTransactionFilter_Condition {
5979
6039
  return {
5980
- field: isSet(object.field) ? globalThis.String(object.field) : "",
5981
- prefix: isSet(object.prefix) ? RichValue.fromJSON(object.prefix) : undefined,
5982
- contains: isSet(object.contains) ? RichValue.fromJSON(object.contains) : undefined,
5983
- notContains: isSet(object.notContains) ? RichValue.fromJSON(object.notContains) : undefined,
5984
6040
  eq: isSet(object.eq) ? RichValue.fromJSON(object.eq) : undefined,
5985
6041
  gt: isSet(object.gt) ? RichValue.fromJSON(object.gt) : undefined,
5986
6042
  gte: isSet(object.gte) ? RichValue.fromJSON(object.gte) : undefined,
5987
6043
  lt: isSet(object.lt) ? RichValue.fromJSON(object.lt) : undefined,
5988
6044
  lte: isSet(object.lte) ? RichValue.fromJSON(object.lte) : undefined,
5989
6045
  ne: isSet(object.ne) ? RichValue.fromJSON(object.ne) : undefined,
6046
+ prefix: isSet(object.prefix) ? globalThis.String(object.prefix) : undefined,
6047
+ contains: isSet(object.contains) ? globalThis.String(object.contains) : undefined,
6048
+ notContains: isSet(object.notContains) ? globalThis.String(object.notContains) : undefined,
6049
+ lengthEq: isSet(object.lengthEq) ? globalThis.Number(object.lengthEq) : undefined,
6050
+ lengthGt: isSet(object.lengthGt) ? globalThis.Number(object.lengthGt) : undefined,
6051
+ lengthLt: isSet(object.lengthLt) ? globalThis.Number(object.lengthLt) : undefined,
6052
+ hasAny: isSet(object.hasAny) ? RichValueList.fromJSON(object.hasAny) : undefined,
6053
+ hasAll: isSet(object.hasAll) ? RichValueList.fromJSON(object.hasAll) : undefined,
6054
+ in: isSet(object.in) ? RichValueList.fromJSON(object.in) : undefined,
5990
6055
  };
5991
6056
  },
5992
6057
 
5993
- toJSON(message: BTCTransactionFilter_FieldFilter): unknown {
6058
+ toJSON(message: BTCTransactionFilter_Condition): unknown {
5994
6059
  const obj: any = {};
5995
- if (message.field !== "") {
5996
- obj.field = message.field;
5997
- }
5998
- if (message.prefix !== undefined) {
5999
- obj.prefix = RichValue.toJSON(message.prefix);
6000
- }
6001
- if (message.contains !== undefined) {
6002
- obj.contains = RichValue.toJSON(message.contains);
6003
- }
6004
- if (message.notContains !== undefined) {
6005
- obj.notContains = RichValue.toJSON(message.notContains);
6006
- }
6007
6060
  if (message.eq !== undefined) {
6008
6061
  obj.eq = RichValue.toJSON(message.eq);
6009
6062
  }
@@ -6022,30 +6075,436 @@ export const BTCTransactionFilter_FieldFilter = {
6022
6075
  if (message.ne !== undefined) {
6023
6076
  obj.ne = RichValue.toJSON(message.ne);
6024
6077
  }
6078
+ if (message.prefix !== undefined) {
6079
+ obj.prefix = message.prefix;
6080
+ }
6081
+ if (message.contains !== undefined) {
6082
+ obj.contains = message.contains;
6083
+ }
6084
+ if (message.notContains !== undefined) {
6085
+ obj.notContains = message.notContains;
6086
+ }
6087
+ if (message.lengthEq !== undefined) {
6088
+ obj.lengthEq = Math.round(message.lengthEq);
6089
+ }
6090
+ if (message.lengthGt !== undefined) {
6091
+ obj.lengthGt = Math.round(message.lengthGt);
6092
+ }
6093
+ if (message.lengthLt !== undefined) {
6094
+ obj.lengthLt = Math.round(message.lengthLt);
6095
+ }
6096
+ if (message.hasAny !== undefined) {
6097
+ obj.hasAny = RichValueList.toJSON(message.hasAny);
6098
+ }
6099
+ if (message.hasAll !== undefined) {
6100
+ obj.hasAll = RichValueList.toJSON(message.hasAll);
6101
+ }
6102
+ if (message.in !== undefined) {
6103
+ obj.in = RichValueList.toJSON(message.in);
6104
+ }
6025
6105
  return obj;
6026
6106
  },
6027
6107
 
6028
- create(base?: DeepPartial<BTCTransactionFilter_FieldFilter>): BTCTransactionFilter_FieldFilter {
6029
- return BTCTransactionFilter_FieldFilter.fromPartial(base ?? {});
6108
+ create(base?: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
6109
+ return BTCTransactionFilter_Condition.fromPartial(base ?? {});
6030
6110
  },
6031
- fromPartial(object: DeepPartial<BTCTransactionFilter_FieldFilter>): BTCTransactionFilter_FieldFilter {
6032
- const message = createBaseBTCTransactionFilter_FieldFilter();
6033
- message.field = object.field ?? "";
6034
- message.prefix = (object.prefix !== undefined && object.prefix !== null)
6035
- ? RichValue.fromPartial(object.prefix)
6036
- : undefined;
6037
- message.contains = (object.contains !== undefined && object.contains !== null)
6038
- ? RichValue.fromPartial(object.contains)
6039
- : undefined;
6040
- message.notContains = (object.notContains !== undefined && object.notContains !== null)
6041
- ? RichValue.fromPartial(object.notContains)
6042
- : undefined;
6111
+ fromPartial(object: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
6112
+ const message = createBaseBTCTransactionFilter_Condition();
6043
6113
  message.eq = (object.eq !== undefined && object.eq !== null) ? RichValue.fromPartial(object.eq) : undefined;
6044
6114
  message.gt = (object.gt !== undefined && object.gt !== null) ? RichValue.fromPartial(object.gt) : undefined;
6045
6115
  message.gte = (object.gte !== undefined && object.gte !== null) ? RichValue.fromPartial(object.gte) : undefined;
6046
6116
  message.lt = (object.lt !== undefined && object.lt !== null) ? RichValue.fromPartial(object.lt) : undefined;
6047
6117
  message.lte = (object.lte !== undefined && object.lte !== null) ? RichValue.fromPartial(object.lte) : undefined;
6048
6118
  message.ne = (object.ne !== undefined && object.ne !== null) ? RichValue.fromPartial(object.ne) : undefined;
6119
+ message.prefix = object.prefix ?? undefined;
6120
+ message.contains = object.contains ?? undefined;
6121
+ message.notContains = object.notContains ?? undefined;
6122
+ message.lengthEq = object.lengthEq ?? undefined;
6123
+ message.lengthGt = object.lengthGt ?? undefined;
6124
+ message.lengthLt = object.lengthLt ?? undefined;
6125
+ message.hasAny = (object.hasAny !== undefined && object.hasAny !== null)
6126
+ ? RichValueList.fromPartial(object.hasAny)
6127
+ : undefined;
6128
+ message.hasAll = (object.hasAll !== undefined && object.hasAll !== null)
6129
+ ? RichValueList.fromPartial(object.hasAll)
6130
+ : undefined;
6131
+ message.in = (object.in !== undefined && object.in !== null) ? RichValueList.fromPartial(object.in) : undefined;
6132
+ return message;
6133
+ },
6134
+ };
6135
+
6136
+ function createBaseBTCTransactionFilter_Filter(): BTCTransactionFilter_Filter {
6137
+ return { conditions: {} };
6138
+ }
6139
+
6140
+ export const BTCTransactionFilter_Filter = {
6141
+ encode(message: BTCTransactionFilter_Filter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6142
+ Object.entries(message.conditions).forEach(([key, value]) => {
6143
+ BTCTransactionFilter_Filter_ConditionsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
6144
+ });
6145
+ return writer;
6146
+ },
6147
+
6148
+ decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filter {
6149
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6150
+ let end = length === undefined ? reader.len : reader.pos + length;
6151
+ const message = createBaseBTCTransactionFilter_Filter();
6152
+ while (reader.pos < end) {
6153
+ const tag = reader.uint32();
6154
+ switch (tag >>> 3) {
6155
+ case 1:
6156
+ if (tag !== 10) {
6157
+ break;
6158
+ }
6159
+
6160
+ const entry1 = BTCTransactionFilter_Filter_ConditionsEntry.decode(reader, reader.uint32());
6161
+ if (entry1.value !== undefined) {
6162
+ message.conditions[entry1.key] = entry1.value;
6163
+ }
6164
+ continue;
6165
+ }
6166
+ if ((tag & 7) === 4 || tag === 0) {
6167
+ break;
6168
+ }
6169
+ reader.skipType(tag & 7);
6170
+ }
6171
+ return message;
6172
+ },
6173
+
6174
+ fromJSON(object: any): BTCTransactionFilter_Filter {
6175
+ return {
6176
+ conditions: isObject(object.conditions)
6177
+ ? Object.entries(object.conditions).reduce<{ [key: string]: BTCTransactionFilter_Condition }>(
6178
+ (acc, [key, value]) => {
6179
+ acc[key] = BTCTransactionFilter_Condition.fromJSON(value);
6180
+ return acc;
6181
+ },
6182
+ {},
6183
+ )
6184
+ : {},
6185
+ };
6186
+ },
6187
+
6188
+ toJSON(message: BTCTransactionFilter_Filter): unknown {
6189
+ const obj: any = {};
6190
+ if (message.conditions) {
6191
+ const entries = Object.entries(message.conditions);
6192
+ if (entries.length > 0) {
6193
+ obj.conditions = {};
6194
+ entries.forEach(([k, v]) => {
6195
+ obj.conditions[k] = BTCTransactionFilter_Condition.toJSON(v);
6196
+ });
6197
+ }
6198
+ }
6199
+ return obj;
6200
+ },
6201
+
6202
+ create(base?: DeepPartial<BTCTransactionFilter_Filter>): BTCTransactionFilter_Filter {
6203
+ return BTCTransactionFilter_Filter.fromPartial(base ?? {});
6204
+ },
6205
+ fromPartial(object: DeepPartial<BTCTransactionFilter_Filter>): BTCTransactionFilter_Filter {
6206
+ const message = createBaseBTCTransactionFilter_Filter();
6207
+ message.conditions = Object.entries(object.conditions ?? {}).reduce<
6208
+ { [key: string]: BTCTransactionFilter_Condition }
6209
+ >((acc, [key, value]) => {
6210
+ if (value !== undefined) {
6211
+ acc[key] = BTCTransactionFilter_Condition.fromPartial(value);
6212
+ }
6213
+ return acc;
6214
+ }, {});
6215
+ return message;
6216
+ },
6217
+ };
6218
+
6219
+ function createBaseBTCTransactionFilter_Filter_ConditionsEntry(): BTCTransactionFilter_Filter_ConditionsEntry {
6220
+ return { key: "", value: undefined };
6221
+ }
6222
+
6223
+ export const BTCTransactionFilter_Filter_ConditionsEntry = {
6224
+ encode(message: BTCTransactionFilter_Filter_ConditionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6225
+ if (message.key !== "") {
6226
+ writer.uint32(10).string(message.key);
6227
+ }
6228
+ if (message.value !== undefined) {
6229
+ BTCTransactionFilter_Condition.encode(message.value, writer.uint32(18).fork()).ldelim();
6230
+ }
6231
+ return writer;
6232
+ },
6233
+
6234
+ decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filter_ConditionsEntry {
6235
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6236
+ let end = length === undefined ? reader.len : reader.pos + length;
6237
+ const message = createBaseBTCTransactionFilter_Filter_ConditionsEntry();
6238
+ while (reader.pos < end) {
6239
+ const tag = reader.uint32();
6240
+ switch (tag >>> 3) {
6241
+ case 1:
6242
+ if (tag !== 10) {
6243
+ break;
6244
+ }
6245
+
6246
+ message.key = reader.string();
6247
+ continue;
6248
+ case 2:
6249
+ if (tag !== 18) {
6250
+ break;
6251
+ }
6252
+
6253
+ message.value = BTCTransactionFilter_Condition.decode(reader, reader.uint32());
6254
+ continue;
6255
+ }
6256
+ if ((tag & 7) === 4 || tag === 0) {
6257
+ break;
6258
+ }
6259
+ reader.skipType(tag & 7);
6260
+ }
6261
+ return message;
6262
+ },
6263
+
6264
+ fromJSON(object: any): BTCTransactionFilter_Filter_ConditionsEntry {
6265
+ return {
6266
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
6267
+ value: isSet(object.value) ? BTCTransactionFilter_Condition.fromJSON(object.value) : undefined,
6268
+ };
6269
+ },
6270
+
6271
+ toJSON(message: BTCTransactionFilter_Filter_ConditionsEntry): unknown {
6272
+ const obj: any = {};
6273
+ if (message.key !== "") {
6274
+ obj.key = message.key;
6275
+ }
6276
+ if (message.value !== undefined) {
6277
+ obj.value = BTCTransactionFilter_Condition.toJSON(message.value);
6278
+ }
6279
+ return obj;
6280
+ },
6281
+
6282
+ create(base?: DeepPartial<BTCTransactionFilter_Filter_ConditionsEntry>): BTCTransactionFilter_Filter_ConditionsEntry {
6283
+ return BTCTransactionFilter_Filter_ConditionsEntry.fromPartial(base ?? {});
6284
+ },
6285
+ fromPartial(
6286
+ object: DeepPartial<BTCTransactionFilter_Filter_ConditionsEntry>,
6287
+ ): BTCTransactionFilter_Filter_ConditionsEntry {
6288
+ const message = createBaseBTCTransactionFilter_Filter_ConditionsEntry();
6289
+ message.key = object.key ?? "";
6290
+ message.value = (object.value !== undefined && object.value !== null)
6291
+ ? BTCTransactionFilter_Condition.fromPartial(object.value)
6292
+ : undefined;
6293
+ return message;
6294
+ },
6295
+ };
6296
+
6297
+ function createBaseBTCTransactionFilter_Filters(): BTCTransactionFilter_Filters {
6298
+ return { filters: [] };
6299
+ }
6300
+
6301
+ export const BTCTransactionFilter_Filters = {
6302
+ encode(message: BTCTransactionFilter_Filters, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6303
+ for (const v of message.filters) {
6304
+ BTCTransactionFilter_Filter.encode(v!, writer.uint32(10).fork()).ldelim();
6305
+ }
6306
+ return writer;
6307
+ },
6308
+
6309
+ decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Filters {
6310
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6311
+ let end = length === undefined ? reader.len : reader.pos + length;
6312
+ const message = createBaseBTCTransactionFilter_Filters();
6313
+ while (reader.pos < end) {
6314
+ const tag = reader.uint32();
6315
+ switch (tag >>> 3) {
6316
+ case 1:
6317
+ if (tag !== 10) {
6318
+ break;
6319
+ }
6320
+
6321
+ message.filters.push(BTCTransactionFilter_Filter.decode(reader, reader.uint32()));
6322
+ continue;
6323
+ }
6324
+ if ((tag & 7) === 4 || tag === 0) {
6325
+ break;
6326
+ }
6327
+ reader.skipType(tag & 7);
6328
+ }
6329
+ return message;
6330
+ },
6331
+
6332
+ fromJSON(object: any): BTCTransactionFilter_Filters {
6333
+ return {
6334
+ filters: globalThis.Array.isArray(object?.filters)
6335
+ ? object.filters.map((e: any) => BTCTransactionFilter_Filter.fromJSON(e))
6336
+ : [],
6337
+ };
6338
+ },
6339
+
6340
+ toJSON(message: BTCTransactionFilter_Filters): unknown {
6341
+ const obj: any = {};
6342
+ if (message.filters?.length) {
6343
+ obj.filters = message.filters.map((e) => BTCTransactionFilter_Filter.toJSON(e));
6344
+ }
6345
+ return obj;
6346
+ },
6347
+
6348
+ create(base?: DeepPartial<BTCTransactionFilter_Filters>): BTCTransactionFilter_Filters {
6349
+ return BTCTransactionFilter_Filters.fromPartial(base ?? {});
6350
+ },
6351
+ fromPartial(object: DeepPartial<BTCTransactionFilter_Filters>): BTCTransactionFilter_Filters {
6352
+ const message = createBaseBTCTransactionFilter_Filters();
6353
+ message.filters = object.filters?.map((e) => BTCTransactionFilter_Filter.fromPartial(e)) || [];
6354
+ return message;
6355
+ },
6356
+ };
6357
+
6358
+ function createBaseBTCTransactionFilter_VinFilter(): BTCTransactionFilter_VinFilter {
6359
+ return { filters: undefined, preVOut: undefined, preTransaction: undefined };
6360
+ }
6361
+
6362
+ export const BTCTransactionFilter_VinFilter = {
6363
+ encode(message: BTCTransactionFilter_VinFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6364
+ if (message.filters !== undefined) {
6365
+ BTCTransactionFilter_Filters.encode(message.filters, writer.uint32(10).fork()).ldelim();
6366
+ }
6367
+ if (message.preVOut !== undefined) {
6368
+ BTCTransactionFilter_Filter.encode(message.preVOut, writer.uint32(18).fork()).ldelim();
6369
+ }
6370
+ if (message.preTransaction !== undefined) {
6371
+ BTCTransactionFilter.encode(message.preTransaction, writer.uint32(26).fork()).ldelim();
6372
+ }
6373
+ return writer;
6374
+ },
6375
+
6376
+ decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_VinFilter {
6377
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6378
+ let end = length === undefined ? reader.len : reader.pos + length;
6379
+ const message = createBaseBTCTransactionFilter_VinFilter();
6380
+ while (reader.pos < end) {
6381
+ const tag = reader.uint32();
6382
+ switch (tag >>> 3) {
6383
+ case 1:
6384
+ if (tag !== 10) {
6385
+ break;
6386
+ }
6387
+
6388
+ message.filters = BTCTransactionFilter_Filters.decode(reader, reader.uint32());
6389
+ continue;
6390
+ case 2:
6391
+ if (tag !== 18) {
6392
+ break;
6393
+ }
6394
+
6395
+ message.preVOut = BTCTransactionFilter_Filter.decode(reader, reader.uint32());
6396
+ continue;
6397
+ case 3:
6398
+ if (tag !== 26) {
6399
+ break;
6400
+ }
6401
+
6402
+ message.preTransaction = BTCTransactionFilter.decode(reader, reader.uint32());
6403
+ continue;
6404
+ }
6405
+ if ((tag & 7) === 4 || tag === 0) {
6406
+ break;
6407
+ }
6408
+ reader.skipType(tag & 7);
6409
+ }
6410
+ return message;
6411
+ },
6412
+
6413
+ fromJSON(object: any): BTCTransactionFilter_VinFilter {
6414
+ return {
6415
+ filters: isSet(object.filters) ? BTCTransactionFilter_Filters.fromJSON(object.filters) : undefined,
6416
+ preVOut: isSet(object.preVOut) ? BTCTransactionFilter_Filter.fromJSON(object.preVOut) : undefined,
6417
+ preTransaction: isSet(object.preTransaction) ? BTCTransactionFilter.fromJSON(object.preTransaction) : undefined,
6418
+ };
6419
+ },
6420
+
6421
+ toJSON(message: BTCTransactionFilter_VinFilter): unknown {
6422
+ const obj: any = {};
6423
+ if (message.filters !== undefined) {
6424
+ obj.filters = BTCTransactionFilter_Filters.toJSON(message.filters);
6425
+ }
6426
+ if (message.preVOut !== undefined) {
6427
+ obj.preVOut = BTCTransactionFilter_Filter.toJSON(message.preVOut);
6428
+ }
6429
+ if (message.preTransaction !== undefined) {
6430
+ obj.preTransaction = BTCTransactionFilter.toJSON(message.preTransaction);
6431
+ }
6432
+ return obj;
6433
+ },
6434
+
6435
+ create(base?: DeepPartial<BTCTransactionFilter_VinFilter>): BTCTransactionFilter_VinFilter {
6436
+ return BTCTransactionFilter_VinFilter.fromPartial(base ?? {});
6437
+ },
6438
+ fromPartial(object: DeepPartial<BTCTransactionFilter_VinFilter>): BTCTransactionFilter_VinFilter {
6439
+ const message = createBaseBTCTransactionFilter_VinFilter();
6440
+ message.filters = (object.filters !== undefined && object.filters !== null)
6441
+ ? BTCTransactionFilter_Filters.fromPartial(object.filters)
6442
+ : undefined;
6443
+ message.preVOut = (object.preVOut !== undefined && object.preVOut !== null)
6444
+ ? BTCTransactionFilter_Filter.fromPartial(object.preVOut)
6445
+ : undefined;
6446
+ message.preTransaction = (object.preTransaction !== undefined && object.preTransaction !== null)
6447
+ ? BTCTransactionFilter.fromPartial(object.preTransaction)
6448
+ : undefined;
6449
+ return message;
6450
+ },
6451
+ };
6452
+
6453
+ function createBaseBTCTransactionFilter_VOutFilter(): BTCTransactionFilter_VOutFilter {
6454
+ return { filters: undefined };
6455
+ }
6456
+
6457
+ export const BTCTransactionFilter_VOutFilter = {
6458
+ encode(message: BTCTransactionFilter_VOutFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6459
+ if (message.filters !== undefined) {
6460
+ BTCTransactionFilter_Filters.encode(message.filters, writer.uint32(10).fork()).ldelim();
6461
+ }
6462
+ return writer;
6463
+ },
6464
+
6465
+ decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_VOutFilter {
6466
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6467
+ let end = length === undefined ? reader.len : reader.pos + length;
6468
+ const message = createBaseBTCTransactionFilter_VOutFilter();
6469
+ while (reader.pos < end) {
6470
+ const tag = reader.uint32();
6471
+ switch (tag >>> 3) {
6472
+ case 1:
6473
+ if (tag !== 10) {
6474
+ break;
6475
+ }
6476
+
6477
+ message.filters = BTCTransactionFilter_Filters.decode(reader, reader.uint32());
6478
+ continue;
6479
+ }
6480
+ if ((tag & 7) === 4 || tag === 0) {
6481
+ break;
6482
+ }
6483
+ reader.skipType(tag & 7);
6484
+ }
6485
+ return message;
6486
+ },
6487
+
6488
+ fromJSON(object: any): BTCTransactionFilter_VOutFilter {
6489
+ return { filters: isSet(object.filters) ? BTCTransactionFilter_Filters.fromJSON(object.filters) : undefined };
6490
+ },
6491
+
6492
+ toJSON(message: BTCTransactionFilter_VOutFilter): unknown {
6493
+ const obj: any = {};
6494
+ if (message.filters !== undefined) {
6495
+ obj.filters = BTCTransactionFilter_Filters.toJSON(message.filters);
6496
+ }
6497
+ return obj;
6498
+ },
6499
+
6500
+ create(base?: DeepPartial<BTCTransactionFilter_VOutFilter>): BTCTransactionFilter_VOutFilter {
6501
+ return BTCTransactionFilter_VOutFilter.fromPartial(base ?? {});
6502
+ },
6503
+ fromPartial(object: DeepPartial<BTCTransactionFilter_VOutFilter>): BTCTransactionFilter_VOutFilter {
6504
+ const message = createBaseBTCTransactionFilter_VOutFilter();
6505
+ message.filters = (object.filters !== undefined && object.filters !== null)
6506
+ ? BTCTransactionFilter_Filters.fromPartial(object.filters)
6507
+ : undefined;
6049
6508
  return message;
6050
6509
  },
6051
6510
  };