@sentio/protos 2.13.7 → 2.14.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -236,7 +236,6 @@ export interface ProcessBindingsRequest {
|
|
|
236
236
|
}
|
|
237
237
|
export interface ProcessBindingResponse {
|
|
238
238
|
result: ProcessResult | undefined;
|
|
239
|
-
configUpdated: boolean;
|
|
240
239
|
}
|
|
241
240
|
export interface Data {
|
|
242
241
|
ethLog?: Data_EthLog | undefined;
|
|
@@ -356,11 +355,15 @@ export interface DataBinding {
|
|
|
356
355
|
handlerType: HandlerType;
|
|
357
356
|
handlerIds: number[];
|
|
358
357
|
}
|
|
358
|
+
export interface StateResult {
|
|
359
|
+
configUpdated: boolean;
|
|
360
|
+
}
|
|
359
361
|
export interface ProcessResult {
|
|
360
362
|
gauges: GaugeResult[];
|
|
361
363
|
counters: CounterResult[];
|
|
362
364
|
events: EventTrackingResult[];
|
|
363
365
|
exports: ExportResult[];
|
|
366
|
+
states: StateResult | undefined;
|
|
364
367
|
}
|
|
365
368
|
export interface RecordMetaData {
|
|
366
369
|
address: string;
|
|
@@ -786,6 +789,14 @@ export declare const DataBinding: {
|
|
|
786
789
|
create(base?: DeepPartial<DataBinding>): DataBinding;
|
|
787
790
|
fromPartial(object: DeepPartial<DataBinding>): DataBinding;
|
|
788
791
|
};
|
|
792
|
+
export declare const StateResult: {
|
|
793
|
+
encode(message: StateResult, writer?: _m0.Writer): _m0.Writer;
|
|
794
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StateResult;
|
|
795
|
+
fromJSON(object: any): StateResult;
|
|
796
|
+
toJSON(message: StateResult): unknown;
|
|
797
|
+
create(base?: DeepPartial<StateResult>): StateResult;
|
|
798
|
+
fromPartial(object: DeepPartial<StateResult>): StateResult;
|
|
799
|
+
};
|
|
789
800
|
export declare const ProcessResult: {
|
|
790
801
|
encode(message: ProcessResult, writer?: _m0.Writer): _m0.Writer;
|
|
791
802
|
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessResult;
|
|
@@ -2747,16 +2747,13 @@ export const ProcessBindingsRequest = {
|
|
|
2747
2747
|
},
|
|
2748
2748
|
};
|
|
2749
2749
|
function createBaseProcessBindingResponse() {
|
|
2750
|
-
return { result: undefined
|
|
2750
|
+
return { result: undefined };
|
|
2751
2751
|
}
|
|
2752
2752
|
export const ProcessBindingResponse = {
|
|
2753
2753
|
encode(message, writer = _m0.Writer.create()) {
|
|
2754
2754
|
if (message.result !== undefined) {
|
|
2755
2755
|
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
2756
2756
|
}
|
|
2757
|
-
if (message.configUpdated === true) {
|
|
2758
|
-
writer.uint32(32).bool(message.configUpdated);
|
|
2759
|
-
}
|
|
2760
2757
|
return writer;
|
|
2761
2758
|
},
|
|
2762
2759
|
decode(input, length) {
|
|
@@ -2769,9 +2766,6 @@ export const ProcessBindingResponse = {
|
|
|
2769
2766
|
case 1:
|
|
2770
2767
|
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
2771
2768
|
break;
|
|
2772
|
-
case 4:
|
|
2773
|
-
message.configUpdated = reader.bool();
|
|
2774
|
-
break;
|
|
2775
2769
|
default:
|
|
2776
2770
|
reader.skipType(tag & 7);
|
|
2777
2771
|
break;
|
|
@@ -2780,15 +2774,11 @@ export const ProcessBindingResponse = {
|
|
|
2780
2774
|
return message;
|
|
2781
2775
|
},
|
|
2782
2776
|
fromJSON(object) {
|
|
2783
|
-
return {
|
|
2784
|
-
result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined,
|
|
2785
|
-
configUpdated: isSet(object.configUpdated) ? Boolean(object.configUpdated) : false,
|
|
2786
|
-
};
|
|
2777
|
+
return { result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined };
|
|
2787
2778
|
},
|
|
2788
2779
|
toJSON(message) {
|
|
2789
2780
|
const obj = {};
|
|
2790
2781
|
message.result !== undefined && (obj.result = message.result ? ProcessResult.toJSON(message.result) : undefined);
|
|
2791
|
-
message.configUpdated !== undefined && (obj.configUpdated = message.configUpdated);
|
|
2792
2782
|
return obj;
|
|
2793
2783
|
},
|
|
2794
2784
|
create(base) {
|
|
@@ -2799,7 +2789,6 @@ export const ProcessBindingResponse = {
|
|
|
2799
2789
|
message.result = (object.result !== undefined && object.result !== null)
|
|
2800
2790
|
? ProcessResult.fromPartial(object.result)
|
|
2801
2791
|
: undefined;
|
|
2802
|
-
message.configUpdated = object.configUpdated ?? false;
|
|
2803
2792
|
return message;
|
|
2804
2793
|
},
|
|
2805
2794
|
};
|
|
@@ -3818,8 +3807,52 @@ export const DataBinding = {
|
|
|
3818
3807
|
return message;
|
|
3819
3808
|
},
|
|
3820
3809
|
};
|
|
3810
|
+
function createBaseStateResult() {
|
|
3811
|
+
return { configUpdated: false };
|
|
3812
|
+
}
|
|
3813
|
+
export const StateResult = {
|
|
3814
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3815
|
+
if (message.configUpdated === true) {
|
|
3816
|
+
writer.uint32(8).bool(message.configUpdated);
|
|
3817
|
+
}
|
|
3818
|
+
return writer;
|
|
3819
|
+
},
|
|
3820
|
+
decode(input, length) {
|
|
3821
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3822
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3823
|
+
const message = createBaseStateResult();
|
|
3824
|
+
while (reader.pos < end) {
|
|
3825
|
+
const tag = reader.uint32();
|
|
3826
|
+
switch (tag >>> 3) {
|
|
3827
|
+
case 1:
|
|
3828
|
+
message.configUpdated = reader.bool();
|
|
3829
|
+
break;
|
|
3830
|
+
default:
|
|
3831
|
+
reader.skipType(tag & 7);
|
|
3832
|
+
break;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
return message;
|
|
3836
|
+
},
|
|
3837
|
+
fromJSON(object) {
|
|
3838
|
+
return { configUpdated: isSet(object.configUpdated) ? Boolean(object.configUpdated) : false };
|
|
3839
|
+
},
|
|
3840
|
+
toJSON(message) {
|
|
3841
|
+
const obj = {};
|
|
3842
|
+
message.configUpdated !== undefined && (obj.configUpdated = message.configUpdated);
|
|
3843
|
+
return obj;
|
|
3844
|
+
},
|
|
3845
|
+
create(base) {
|
|
3846
|
+
return StateResult.fromPartial(base ?? {});
|
|
3847
|
+
},
|
|
3848
|
+
fromPartial(object) {
|
|
3849
|
+
const message = createBaseStateResult();
|
|
3850
|
+
message.configUpdated = object.configUpdated ?? false;
|
|
3851
|
+
return message;
|
|
3852
|
+
},
|
|
3853
|
+
};
|
|
3821
3854
|
function createBaseProcessResult() {
|
|
3822
|
-
return { gauges: [], counters: [], events: [], exports: [] };
|
|
3855
|
+
return { gauges: [], counters: [], events: [], exports: [], states: undefined };
|
|
3823
3856
|
}
|
|
3824
3857
|
export const ProcessResult = {
|
|
3825
3858
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -3835,6 +3868,9 @@ export const ProcessResult = {
|
|
|
3835
3868
|
for (const v of message.exports) {
|
|
3836
3869
|
ExportResult.encode(v, writer.uint32(42).fork()).ldelim();
|
|
3837
3870
|
}
|
|
3871
|
+
if (message.states !== undefined) {
|
|
3872
|
+
StateResult.encode(message.states, writer.uint32(50).fork()).ldelim();
|
|
3873
|
+
}
|
|
3838
3874
|
return writer;
|
|
3839
3875
|
},
|
|
3840
3876
|
decode(input, length) {
|
|
@@ -3856,6 +3892,9 @@ export const ProcessResult = {
|
|
|
3856
3892
|
case 5:
|
|
3857
3893
|
message.exports.push(ExportResult.decode(reader, reader.uint32()));
|
|
3858
3894
|
break;
|
|
3895
|
+
case 6:
|
|
3896
|
+
message.states = StateResult.decode(reader, reader.uint32());
|
|
3897
|
+
break;
|
|
3859
3898
|
default:
|
|
3860
3899
|
reader.skipType(tag & 7);
|
|
3861
3900
|
break;
|
|
@@ -3869,6 +3908,7 @@ export const ProcessResult = {
|
|
|
3869
3908
|
counters: Array.isArray(object?.counters) ? object.counters.map((e) => CounterResult.fromJSON(e)) : [],
|
|
3870
3909
|
events: Array.isArray(object?.events) ? object.events.map((e) => EventTrackingResult.fromJSON(e)) : [],
|
|
3871
3910
|
exports: Array.isArray(object?.exports) ? object.exports.map((e) => ExportResult.fromJSON(e)) : [],
|
|
3911
|
+
states: isSet(object.states) ? StateResult.fromJSON(object.states) : undefined,
|
|
3872
3912
|
};
|
|
3873
3913
|
},
|
|
3874
3914
|
toJSON(message) {
|
|
@@ -3897,6 +3937,7 @@ export const ProcessResult = {
|
|
|
3897
3937
|
else {
|
|
3898
3938
|
obj.exports = [];
|
|
3899
3939
|
}
|
|
3940
|
+
message.states !== undefined && (obj.states = message.states ? StateResult.toJSON(message.states) : undefined);
|
|
3900
3941
|
return obj;
|
|
3901
3942
|
},
|
|
3902
3943
|
create(base) {
|
|
@@ -3908,6 +3949,9 @@ export const ProcessResult = {
|
|
|
3908
3949
|
message.counters = object.counters?.map((e) => CounterResult.fromPartial(e)) || [];
|
|
3909
3950
|
message.events = object.events?.map((e) => EventTrackingResult.fromPartial(e)) || [];
|
|
3910
3951
|
message.exports = object.exports?.map((e) => ExportResult.fromPartial(e)) || [];
|
|
3952
|
+
message.states = (object.states !== undefined && object.states !== null)
|
|
3953
|
+
? StateResult.fromPartial(object.states)
|
|
3954
|
+
: undefined;
|
|
3911
3955
|
return message;
|
|
3912
3956
|
},
|
|
3913
3957
|
};
|