@sentio/runtime 2.42.0-rc.3 → 2.42.0-rc.4
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.
@@ -747,25 +747,50 @@ export interface BTCTransactionHandlerConfig {
|
|
747
747
|
}
|
748
748
|
|
749
749
|
export interface BTCTransactionFilter {
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
export interface BTCTransactionFilter_FieldFilters {
|
755
|
-
filters: BTCTransactionFilter_FieldFilter[];
|
750
|
+
inputFilter: BTCTransactionFilter_VinFilter | undefined;
|
751
|
+
outputFilter: BTCTransactionFilter_VOutFilter | undefined;
|
752
|
+
filter: BTCTransactionFilter_Filter[];
|
756
753
|
}
|
757
754
|
|
758
|
-
export interface
|
759
|
-
field: string;
|
760
|
-
prefix?: RichValue | undefined;
|
761
|
-
contains?: RichValue | undefined;
|
762
|
-
notContains?: RichValue | undefined;
|
755
|
+
export interface BTCTransactionFilter_Condition {
|
763
756
|
eq?: RichValue | undefined;
|
764
757
|
gt?: RichValue | undefined;
|
765
758
|
gte?: RichValue | undefined;
|
766
759
|
lt?: RichValue | undefined;
|
767
760
|
lte?: RichValue | undefined;
|
768
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;
|
769
794
|
}
|
770
795
|
|
771
796
|
export interface StarknetEventFilter {
|
@@ -5723,16 +5748,19 @@ export const BTCTransactionHandlerConfig = {
|
|
5723
5748
|
};
|
5724
5749
|
|
5725
5750
|
function createBaseBTCTransactionFilter(): BTCTransactionFilter {
|
5726
|
-
return {
|
5751
|
+
return { inputFilter: undefined, outputFilter: undefined, filter: [] };
|
5727
5752
|
}
|
5728
5753
|
|
5729
5754
|
export const BTCTransactionFilter = {
|
5730
5755
|
encode(message: BTCTransactionFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
5731
|
-
if (message.
|
5732
|
-
writer.uint32(10).
|
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();
|
5733
5761
|
}
|
5734
|
-
|
5735
|
-
|
5762
|
+
for (const v of message.filter) {
|
5763
|
+
BTCTransactionFilter_Filter.encode(v!, writer.uint32(26).fork()).ldelim();
|
5736
5764
|
}
|
5737
5765
|
return writer;
|
5738
5766
|
},
|
@@ -5749,14 +5777,21 @@ export const BTCTransactionFilter = {
|
|
5749
5777
|
break;
|
5750
5778
|
}
|
5751
5779
|
|
5752
|
-
message.
|
5780
|
+
message.inputFilter = BTCTransactionFilter_VinFilter.decode(reader, reader.uint32());
|
5753
5781
|
continue;
|
5754
5782
|
case 2:
|
5755
5783
|
if (tag !== 18) {
|
5756
5784
|
break;
|
5757
5785
|
}
|
5758
5786
|
|
5759
|
-
message.
|
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()));
|
5760
5795
|
continue;
|
5761
5796
|
}
|
5762
5797
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -5769,20 +5804,26 @@ export const BTCTransactionFilter = {
|
|
5769
5804
|
|
5770
5805
|
fromJSON(object: any): BTCTransactionFilter {
|
5771
5806
|
return {
|
5772
|
-
|
5773
|
-
|
5774
|
-
?
|
5807
|
+
inputFilter: isSet(object.inputFilter) ? BTCTransactionFilter_VinFilter.fromJSON(object.inputFilter) : undefined,
|
5808
|
+
outputFilter: isSet(object.outputFilter)
|
5809
|
+
? BTCTransactionFilter_VOutFilter.fromJSON(object.outputFilter)
|
5775
5810
|
: undefined,
|
5811
|
+
filter: globalThis.Array.isArray(object?.filter)
|
5812
|
+
? object.filter.map((e: any) => BTCTransactionFilter_Filter.fromJSON(e))
|
5813
|
+
: [],
|
5776
5814
|
};
|
5777
5815
|
},
|
5778
5816
|
|
5779
5817
|
toJSON(message: BTCTransactionFilter): unknown {
|
5780
5818
|
const obj: any = {};
|
5781
|
-
if (message.
|
5782
|
-
obj.
|
5819
|
+
if (message.inputFilter !== undefined) {
|
5820
|
+
obj.inputFilter = BTCTransactionFilter_VinFilter.toJSON(message.inputFilter);
|
5783
5821
|
}
|
5784
|
-
if (message.
|
5785
|
-
obj.
|
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));
|
5786
5827
|
}
|
5787
5828
|
return obj;
|
5788
5829
|
},
|
@@ -5792,129 +5833,91 @@ export const BTCTransactionFilter = {
|
|
5792
5833
|
},
|
5793
5834
|
fromPartial(object: DeepPartial<BTCTransactionFilter>): BTCTransactionFilter {
|
5794
5835
|
const message = createBaseBTCTransactionFilter();
|
5795
|
-
message.
|
5796
|
-
|
5797
|
-
? BTCTransactionFilter_FieldFilters.fromPartial(object.fieldFilters)
|
5836
|
+
message.inputFilter = (object.inputFilter !== undefined && object.inputFilter !== null)
|
5837
|
+
? BTCTransactionFilter_VinFilter.fromPartial(object.inputFilter)
|
5798
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)) || [];
|
5799
5843
|
return message;
|
5800
5844
|
},
|
5801
5845
|
};
|
5802
5846
|
|
5803
|
-
function
|
5804
|
-
return { filters: [] };
|
5805
|
-
}
|
5806
|
-
|
5807
|
-
export const BTCTransactionFilter_FieldFilters = {
|
5808
|
-
encode(message: BTCTransactionFilter_FieldFilters, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
5809
|
-
for (const v of message.filters) {
|
5810
|
-
BTCTransactionFilter_FieldFilter.encode(v!, writer.uint32(10).fork()).ldelim();
|
5811
|
-
}
|
5812
|
-
return writer;
|
5813
|
-
},
|
5814
|
-
|
5815
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_FieldFilters {
|
5816
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
5817
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
5818
|
-
const message = createBaseBTCTransactionFilter_FieldFilters();
|
5819
|
-
while (reader.pos < end) {
|
5820
|
-
const tag = reader.uint32();
|
5821
|
-
switch (tag >>> 3) {
|
5822
|
-
case 1:
|
5823
|
-
if (tag !== 10) {
|
5824
|
-
break;
|
5825
|
-
}
|
5826
|
-
|
5827
|
-
message.filters.push(BTCTransactionFilter_FieldFilter.decode(reader, reader.uint32()));
|
5828
|
-
continue;
|
5829
|
-
}
|
5830
|
-
if ((tag & 7) === 4 || tag === 0) {
|
5831
|
-
break;
|
5832
|
-
}
|
5833
|
-
reader.skipType(tag & 7);
|
5834
|
-
}
|
5835
|
-
return message;
|
5836
|
-
},
|
5837
|
-
|
5838
|
-
fromJSON(object: any): BTCTransactionFilter_FieldFilters {
|
5839
|
-
return {
|
5840
|
-
filters: globalThis.Array.isArray(object?.filters)
|
5841
|
-
? object.filters.map((e: any) => BTCTransactionFilter_FieldFilter.fromJSON(e))
|
5842
|
-
: [],
|
5843
|
-
};
|
5844
|
-
},
|
5845
|
-
|
5846
|
-
toJSON(message: BTCTransactionFilter_FieldFilters): unknown {
|
5847
|
-
const obj: any = {};
|
5848
|
-
if (message.filters?.length) {
|
5849
|
-
obj.filters = message.filters.map((e) => BTCTransactionFilter_FieldFilter.toJSON(e));
|
5850
|
-
}
|
5851
|
-
return obj;
|
5852
|
-
},
|
5853
|
-
|
5854
|
-
create(base?: DeepPartial<BTCTransactionFilter_FieldFilters>): BTCTransactionFilter_FieldFilters {
|
5855
|
-
return BTCTransactionFilter_FieldFilters.fromPartial(base ?? {});
|
5856
|
-
},
|
5857
|
-
fromPartial(object: DeepPartial<BTCTransactionFilter_FieldFilters>): BTCTransactionFilter_FieldFilters {
|
5858
|
-
const message = createBaseBTCTransactionFilter_FieldFilters();
|
5859
|
-
message.filters = object.filters?.map((e) => BTCTransactionFilter_FieldFilter.fromPartial(e)) || [];
|
5860
|
-
return message;
|
5861
|
-
},
|
5862
|
-
};
|
5863
|
-
|
5864
|
-
function createBaseBTCTransactionFilter_FieldFilter(): BTCTransactionFilter_FieldFilter {
|
5847
|
+
function createBaseBTCTransactionFilter_Condition(): BTCTransactionFilter_Condition {
|
5865
5848
|
return {
|
5866
|
-
field: "",
|
5867
|
-
prefix: undefined,
|
5868
|
-
contains: undefined,
|
5869
|
-
notContains: undefined,
|
5870
5849
|
eq: undefined,
|
5871
5850
|
gt: undefined,
|
5872
5851
|
gte: undefined,
|
5873
5852
|
lt: undefined,
|
5874
5853
|
lte: undefined,
|
5875
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,
|
5876
5864
|
};
|
5877
5865
|
}
|
5878
5866
|
|
5879
|
-
export const
|
5880
|
-
encode(message:
|
5881
|
-
if (message.
|
5882
|
-
writer.uint32(10).
|
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();
|
5883
5886
|
}
|
5884
5887
|
if (message.prefix !== undefined) {
|
5885
|
-
|
5888
|
+
writer.uint32(58).string(message.prefix);
|
5886
5889
|
}
|
5887
5890
|
if (message.contains !== undefined) {
|
5888
|
-
|
5891
|
+
writer.uint32(66).string(message.contains);
|
5889
5892
|
}
|
5890
5893
|
if (message.notContains !== undefined) {
|
5891
|
-
|
5894
|
+
writer.uint32(74).string(message.notContains);
|
5892
5895
|
}
|
5893
|
-
if (message.
|
5894
|
-
|
5896
|
+
if (message.lengthEq !== undefined) {
|
5897
|
+
writer.uint32(80).int32(message.lengthEq);
|
5895
5898
|
}
|
5896
|
-
if (message.
|
5897
|
-
|
5899
|
+
if (message.lengthGt !== undefined) {
|
5900
|
+
writer.uint32(88).int32(message.lengthGt);
|
5898
5901
|
}
|
5899
|
-
if (message.
|
5900
|
-
|
5902
|
+
if (message.lengthLt !== undefined) {
|
5903
|
+
writer.uint32(96).int32(message.lengthLt);
|
5901
5904
|
}
|
5902
|
-
if (message.
|
5903
|
-
|
5905
|
+
if (message.hasAny !== undefined) {
|
5906
|
+
RichValueList.encode(message.hasAny, writer.uint32(106).fork()).ldelim();
|
5904
5907
|
}
|
5905
|
-
if (message.
|
5906
|
-
|
5908
|
+
if (message.hasAll !== undefined) {
|
5909
|
+
RichValueList.encode(message.hasAll, writer.uint32(114).fork()).ldelim();
|
5907
5910
|
}
|
5908
|
-
if (message.
|
5909
|
-
|
5911
|
+
if (message.in !== undefined) {
|
5912
|
+
RichValueList.encode(message.in, writer.uint32(122).fork()).ldelim();
|
5910
5913
|
}
|
5911
5914
|
return writer;
|
5912
5915
|
},
|
5913
5916
|
|
5914
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
5917
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BTCTransactionFilter_Condition {
|
5915
5918
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
5916
5919
|
let end = length === undefined ? reader.len : reader.pos + length;
|
5917
|
-
const message =
|
5920
|
+
const message = createBaseBTCTransactionFilter_Condition();
|
5918
5921
|
while (reader.pos < end) {
|
5919
5922
|
const tag = reader.uint32();
|
5920
5923
|
switch (tag >>> 3) {
|
@@ -5923,70 +5926,105 @@ export const BTCTransactionFilter_FieldFilter = {
|
|
5923
5926
|
break;
|
5924
5927
|
}
|
5925
5928
|
|
5926
|
-
message.
|
5929
|
+
message.eq = RichValue.decode(reader, reader.uint32());
|
5927
5930
|
continue;
|
5928
5931
|
case 2:
|
5929
5932
|
if (tag !== 18) {
|
5930
5933
|
break;
|
5931
5934
|
}
|
5932
5935
|
|
5933
|
-
message.
|
5936
|
+
message.gt = RichValue.decode(reader, reader.uint32());
|
5934
5937
|
continue;
|
5935
5938
|
case 3:
|
5936
5939
|
if (tag !== 26) {
|
5937
5940
|
break;
|
5938
5941
|
}
|
5939
5942
|
|
5940
|
-
message.
|
5943
|
+
message.gte = RichValue.decode(reader, reader.uint32());
|
5941
5944
|
continue;
|
5942
5945
|
case 4:
|
5943
5946
|
if (tag !== 34) {
|
5944
5947
|
break;
|
5945
5948
|
}
|
5946
5949
|
|
5947
|
-
message.
|
5950
|
+
message.lt = RichValue.decode(reader, reader.uint32());
|
5948
5951
|
continue;
|
5949
5952
|
case 5:
|
5950
5953
|
if (tag !== 42) {
|
5951
5954
|
break;
|
5952
5955
|
}
|
5953
5956
|
|
5954
|
-
message.
|
5957
|
+
message.lte = RichValue.decode(reader, reader.uint32());
|
5955
5958
|
continue;
|
5956
5959
|
case 6:
|
5957
5960
|
if (tag !== 50) {
|
5958
5961
|
break;
|
5959
5962
|
}
|
5960
5963
|
|
5961
|
-
message.
|
5964
|
+
message.ne = RichValue.decode(reader, reader.uint32());
|
5962
5965
|
continue;
|
5963
5966
|
case 7:
|
5964
5967
|
if (tag !== 58) {
|
5965
5968
|
break;
|
5966
5969
|
}
|
5967
5970
|
|
5968
|
-
message.
|
5971
|
+
message.prefix = reader.string();
|
5969
5972
|
continue;
|
5970
5973
|
case 8:
|
5971
5974
|
if (tag !== 66) {
|
5972
5975
|
break;
|
5973
5976
|
}
|
5974
5977
|
|
5975
|
-
message.
|
5978
|
+
message.contains = reader.string();
|
5976
5979
|
continue;
|
5977
5980
|
case 9:
|
5978
5981
|
if (tag !== 74) {
|
5979
5982
|
break;
|
5980
5983
|
}
|
5981
5984
|
|
5982
|
-
message.
|
5985
|
+
message.notContains = reader.string();
|
5983
5986
|
continue;
|
5984
5987
|
case 10:
|
5985
|
-
if (tag !==
|
5988
|
+
if (tag !== 80) {
|
5986
5989
|
break;
|
5987
5990
|
}
|
5988
5991
|
|
5989
|
-
message.
|
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());
|
5990
6028
|
continue;
|
5991
6029
|
}
|
5992
6030
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -5997,35 +6035,28 @@ export const BTCTransactionFilter_FieldFilter = {
|
|
5997
6035
|
return message;
|
5998
6036
|
},
|
5999
6037
|
|
6000
|
-
fromJSON(object: any):
|
6038
|
+
fromJSON(object: any): BTCTransactionFilter_Condition {
|
6001
6039
|
return {
|
6002
|
-
field: isSet(object.field) ? globalThis.String(object.field) : "",
|
6003
|
-
prefix: isSet(object.prefix) ? RichValue.fromJSON(object.prefix) : undefined,
|
6004
|
-
contains: isSet(object.contains) ? RichValue.fromJSON(object.contains) : undefined,
|
6005
|
-
notContains: isSet(object.notContains) ? RichValue.fromJSON(object.notContains) : undefined,
|
6006
6040
|
eq: isSet(object.eq) ? RichValue.fromJSON(object.eq) : undefined,
|
6007
6041
|
gt: isSet(object.gt) ? RichValue.fromJSON(object.gt) : undefined,
|
6008
6042
|
gte: isSet(object.gte) ? RichValue.fromJSON(object.gte) : undefined,
|
6009
6043
|
lt: isSet(object.lt) ? RichValue.fromJSON(object.lt) : undefined,
|
6010
6044
|
lte: isSet(object.lte) ? RichValue.fromJSON(object.lte) : undefined,
|
6011
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,
|
6012
6055
|
};
|
6013
6056
|
},
|
6014
6057
|
|
6015
|
-
toJSON(message:
|
6058
|
+
toJSON(message: BTCTransactionFilter_Condition): unknown {
|
6016
6059
|
const obj: any = {};
|
6017
|
-
if (message.field !== "") {
|
6018
|
-
obj.field = message.field;
|
6019
|
-
}
|
6020
|
-
if (message.prefix !== undefined) {
|
6021
|
-
obj.prefix = RichValue.toJSON(message.prefix);
|
6022
|
-
}
|
6023
|
-
if (message.contains !== undefined) {
|
6024
|
-
obj.contains = RichValue.toJSON(message.contains);
|
6025
|
-
}
|
6026
|
-
if (message.notContains !== undefined) {
|
6027
|
-
obj.notContains = RichValue.toJSON(message.notContains);
|
6028
|
-
}
|
6029
6060
|
if (message.eq !== undefined) {
|
6030
6061
|
obj.eq = RichValue.toJSON(message.eq);
|
6031
6062
|
}
|
@@ -6044,30 +6075,436 @@ export const BTCTransactionFilter_FieldFilter = {
|
|
6044
6075
|
if (message.ne !== undefined) {
|
6045
6076
|
obj.ne = RichValue.toJSON(message.ne);
|
6046
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
|
+
}
|
6047
6105
|
return obj;
|
6048
6106
|
},
|
6049
6107
|
|
6050
|
-
create(base?: DeepPartial<
|
6051
|
-
return
|
6108
|
+
create(base?: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
|
6109
|
+
return BTCTransactionFilter_Condition.fromPartial(base ?? {});
|
6052
6110
|
},
|
6053
|
-
fromPartial(object: DeepPartial<
|
6054
|
-
const message =
|
6055
|
-
message.field = object.field ?? "";
|
6056
|
-
message.prefix = (object.prefix !== undefined && object.prefix !== null)
|
6057
|
-
? RichValue.fromPartial(object.prefix)
|
6058
|
-
: undefined;
|
6059
|
-
message.contains = (object.contains !== undefined && object.contains !== null)
|
6060
|
-
? RichValue.fromPartial(object.contains)
|
6061
|
-
: undefined;
|
6062
|
-
message.notContains = (object.notContains !== undefined && object.notContains !== null)
|
6063
|
-
? RichValue.fromPartial(object.notContains)
|
6064
|
-
: undefined;
|
6111
|
+
fromPartial(object: DeepPartial<BTCTransactionFilter_Condition>): BTCTransactionFilter_Condition {
|
6112
|
+
const message = createBaseBTCTransactionFilter_Condition();
|
6065
6113
|
message.eq = (object.eq !== undefined && object.eq !== null) ? RichValue.fromPartial(object.eq) : undefined;
|
6066
6114
|
message.gt = (object.gt !== undefined && object.gt !== null) ? RichValue.fromPartial(object.gt) : undefined;
|
6067
6115
|
message.gte = (object.gte !== undefined && object.gte !== null) ? RichValue.fromPartial(object.gte) : undefined;
|
6068
6116
|
message.lt = (object.lt !== undefined && object.lt !== null) ? RichValue.fromPartial(object.lt) : undefined;
|
6069
6117
|
message.lte = (object.lte !== undefined && object.lte !== null) ? RichValue.fromPartial(object.lte) : undefined;
|
6070
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;
|
6071
6508
|
return message;
|
6072
6509
|
},
|
6073
6510
|
};
|