@sentio/protos 2.61.0-rc.9 → 2.61.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/protos",
3
- "version": "2.61.0-rc.9",
3
+ "version": "2.61.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -674,7 +674,7 @@ export interface InitResponse {
674
674
  eventLogConfigs: EventLogConfig[];
675
675
  }
676
676
 
677
- export interface ConfigureHandlersRequest {
677
+ export interface UpdateTemplatesRequest {
678
678
  chainId: string;
679
679
  templateInstances: TemplateInstance[];
680
680
  }
@@ -989,7 +989,7 @@ export interface ProcessStreamResponse_Partitions_PartitionsEntry {
989
989
  value: ProcessStreamResponse_Partitions_Partition | undefined;
990
990
  }
991
991
 
992
- export interface ProcessStreamResponseV2 {
992
+ export interface ProcessStreamResponseV3 {
993
993
  processId: number;
994
994
  partitions?: ProcessStreamResponse_Partitions | undefined;
995
995
  dbRequest?: DBRequest | undefined;
@@ -4559,12 +4559,12 @@ export const InitResponse = {
4559
4559
  },
4560
4560
  };
4561
4561
 
4562
- function createBaseConfigureHandlersRequest(): ConfigureHandlersRequest {
4562
+ function createBaseUpdateTemplatesRequest(): UpdateTemplatesRequest {
4563
4563
  return { chainId: "", templateInstances: [] };
4564
4564
  }
4565
4565
 
4566
- export const ConfigureHandlersRequest = {
4567
- encode(message: ConfigureHandlersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4566
+ export const UpdateTemplatesRequest = {
4567
+ encode(message: UpdateTemplatesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4568
4568
  if (message.chainId !== "") {
4569
4569
  writer.uint32(10).string(message.chainId);
4570
4570
  }
@@ -4574,10 +4574,10 @@ export const ConfigureHandlersRequest = {
4574
4574
  return writer;
4575
4575
  },
4576
4576
 
4577
- decode(input: _m0.Reader | Uint8Array, length?: number): ConfigureHandlersRequest {
4577
+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateTemplatesRequest {
4578
4578
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4579
4579
  let end = length === undefined ? reader.len : reader.pos + length;
4580
- const message = createBaseConfigureHandlersRequest();
4580
+ const message = createBaseUpdateTemplatesRequest();
4581
4581
  while (reader.pos < end) {
4582
4582
  const tag = reader.uint32();
4583
4583
  switch (tag >>> 3) {
@@ -4604,7 +4604,7 @@ export const ConfigureHandlersRequest = {
4604
4604
  return message;
4605
4605
  },
4606
4606
 
4607
- fromJSON(object: any): ConfigureHandlersRequest {
4607
+ fromJSON(object: any): UpdateTemplatesRequest {
4608
4608
  return {
4609
4609
  chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
4610
4610
  templateInstances: globalThis.Array.isArray(object?.templateInstances)
@@ -4613,7 +4613,7 @@ export const ConfigureHandlersRequest = {
4613
4613
  };
4614
4614
  },
4615
4615
 
4616
- toJSON(message: ConfigureHandlersRequest): unknown {
4616
+ toJSON(message: UpdateTemplatesRequest): unknown {
4617
4617
  const obj: any = {};
4618
4618
  if (message.chainId !== "") {
4619
4619
  obj.chainId = message.chainId;
@@ -4624,11 +4624,11 @@ export const ConfigureHandlersRequest = {
4624
4624
  return obj;
4625
4625
  },
4626
4626
 
4627
- create(base?: DeepPartial<ConfigureHandlersRequest>): ConfigureHandlersRequest {
4628
- return ConfigureHandlersRequest.fromPartial(base ?? {});
4627
+ create(base?: DeepPartial<UpdateTemplatesRequest>): UpdateTemplatesRequest {
4628
+ return UpdateTemplatesRequest.fromPartial(base ?? {});
4629
4629
  },
4630
- fromPartial(object: DeepPartial<ConfigureHandlersRequest>): ConfigureHandlersRequest {
4631
- const message = createBaseConfigureHandlersRequest();
4630
+ fromPartial(object: DeepPartial<UpdateTemplatesRequest>): UpdateTemplatesRequest {
4631
+ const message = createBaseUpdateTemplatesRequest();
4632
4632
  message.chainId = object.chainId ?? "";
4633
4633
  message.templateInstances = object.templateInstances?.map((e) => TemplateInstance.fromPartial(e)) || [];
4634
4634
  return message;
@@ -8761,7 +8761,7 @@ export const ProcessStreamResponse_Partitions_PartitionsEntry = {
8761
8761
  },
8762
8762
  };
8763
8763
 
8764
- function createBaseProcessStreamResponseV2(): ProcessStreamResponseV2 {
8764
+ function createBaseProcessStreamResponseV3(): ProcessStreamResponseV3 {
8765
8765
  return {
8766
8766
  processId: 0,
8767
8767
  partitions: undefined,
@@ -8772,8 +8772,8 @@ function createBaseProcessStreamResponseV2(): ProcessStreamResponseV2 {
8772
8772
  };
8773
8773
  }
8774
8774
 
8775
- export const ProcessStreamResponseV2 = {
8776
- encode(message: ProcessStreamResponseV2, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8775
+ export const ProcessStreamResponseV3 = {
8776
+ encode(message: ProcessStreamResponseV3, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8777
8777
  if (message.processId !== 0) {
8778
8778
  writer.uint32(8).int32(message.processId);
8779
8779
  }
@@ -8795,10 +8795,10 @@ export const ProcessStreamResponseV2 = {
8795
8795
  return writer;
8796
8796
  },
8797
8797
 
8798
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponseV2 {
8798
+ decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponseV3 {
8799
8799
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
8800
8800
  let end = length === undefined ? reader.len : reader.pos + length;
8801
- const message = createBaseProcessStreamResponseV2();
8801
+ const message = createBaseProcessStreamResponseV3();
8802
8802
  while (reader.pos < end) {
8803
8803
  const tag = reader.uint32();
8804
8804
  switch (tag >>> 3) {
@@ -8853,7 +8853,7 @@ export const ProcessStreamResponseV2 = {
8853
8853
  return message;
8854
8854
  },
8855
8855
 
8856
- fromJSON(object: any): ProcessStreamResponseV2 {
8856
+ fromJSON(object: any): ProcessStreamResponseV3 {
8857
8857
  return {
8858
8858
  processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
8859
8859
  partitions: isSet(object.partitions) ? ProcessStreamResponse_Partitions.fromJSON(object.partitions) : undefined,
@@ -8864,7 +8864,7 @@ export const ProcessStreamResponseV2 = {
8864
8864
  };
8865
8865
  },
8866
8866
 
8867
- toJSON(message: ProcessStreamResponseV2): unknown {
8867
+ toJSON(message: ProcessStreamResponseV3): unknown {
8868
8868
  const obj: any = {};
8869
8869
  if (message.processId !== 0) {
8870
8870
  obj.processId = Math.round(message.processId);
@@ -8887,11 +8887,11 @@ export const ProcessStreamResponseV2 = {
8887
8887
  return obj;
8888
8888
  },
8889
8889
 
8890
- create(base?: DeepPartial<ProcessStreamResponseV2>): ProcessStreamResponseV2 {
8891
- return ProcessStreamResponseV2.fromPartial(base ?? {});
8890
+ create(base?: DeepPartial<ProcessStreamResponseV3>): ProcessStreamResponseV3 {
8891
+ return ProcessStreamResponseV3.fromPartial(base ?? {});
8892
8892
  },
8893
- fromPartial(object: DeepPartial<ProcessStreamResponseV2>): ProcessStreamResponseV2 {
8894
- const message = createBaseProcessStreamResponseV2();
8893
+ fromPartial(object: DeepPartial<ProcessStreamResponseV3>): ProcessStreamResponseV3 {
8894
+ const message = createBaseProcessStreamResponseV3();
8895
8895
  message.processId = object.processId ?? 0;
8896
8896
  message.partitions = (object.partitions !== undefined && object.partitions !== null)
8897
8897
  ? ProcessStreamResponse_Partitions.fromPartial(object.partitions)
@@ -14707,19 +14707,27 @@ export const ProcessorV3Definition = {
14707
14707
  name: "ProcessorV3",
14708
14708
  fullName: "processor.ProcessorV3",
14709
14709
  methods: {
14710
- init: {
14711
- name: "Init",
14712
- requestType: Empty,
14710
+ start: {
14711
+ name: "Start",
14712
+ requestType: StartRequest,
14713
+ requestStream: false,
14714
+ responseType: Empty,
14715
+ responseStream: false,
14716
+ options: {},
14717
+ },
14718
+ getConfig: {
14719
+ name: "GetConfig",
14720
+ requestType: ProcessConfigRequest,
14713
14721
  requestStream: false,
14714
- responseType: InitResponse,
14722
+ responseType: ProcessConfigResponse,
14715
14723
  responseStream: false,
14716
14724
  options: {},
14717
14725
  },
14718
- configureHandlers: {
14719
- name: "ConfigureHandlers",
14720
- requestType: ConfigureHandlersRequest,
14726
+ updateTemplates: {
14727
+ name: "UpdateTemplates",
14728
+ requestType: UpdateTemplatesRequest,
14721
14729
  requestStream: false,
14722
- responseType: ConfigureHandlersResponse,
14730
+ responseType: Empty,
14723
14731
  responseStream: false,
14724
14732
  options: {},
14725
14733
  },
@@ -14727,7 +14735,7 @@ export const ProcessorV3Definition = {
14727
14735
  name: "ProcessBindingsStream",
14728
14736
  requestType: ProcessStreamRequest,
14729
14737
  requestStream: true,
14730
- responseType: ProcessStreamResponseV2,
14738
+ responseType: ProcessStreamResponseV3,
14731
14739
  responseStream: true,
14732
14740
  options: {},
14733
14741
  },
@@ -14735,27 +14743,29 @@ export const ProcessorV3Definition = {
14735
14743
  } as const;
14736
14744
 
14737
14745
  export interface ProcessorV3ServiceImplementation<CallContextExt = {}> {
14738
- init(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<InitResponse>>;
14739
- configureHandlers(
14740
- request: ConfigureHandlersRequest,
14746
+ start(request: StartRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
14747
+ getConfig(
14748
+ request: ProcessConfigRequest,
14741
14749
  context: CallContext & CallContextExt,
14742
- ): Promise<DeepPartial<ConfigureHandlersResponse>>;
14750
+ ): Promise<DeepPartial<ProcessConfigResponse>>;
14751
+ updateTemplates(request: UpdateTemplatesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
14743
14752
  processBindingsStream(
14744
14753
  request: AsyncIterable<ProcessStreamRequest>,
14745
14754
  context: CallContext & CallContextExt,
14746
- ): ServerStreamingMethodResult<DeepPartial<ProcessStreamResponseV2>>;
14755
+ ): ServerStreamingMethodResult<DeepPartial<ProcessStreamResponseV3>>;
14747
14756
  }
14748
14757
 
14749
14758
  export interface ProcessorV3Client<CallOptionsExt = {}> {
14750
- init(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<InitResponse>;
14751
- configureHandlers(
14752
- request: DeepPartial<ConfigureHandlersRequest>,
14759
+ start(request: DeepPartial<StartRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
14760
+ getConfig(
14761
+ request: DeepPartial<ProcessConfigRequest>,
14753
14762
  options?: CallOptions & CallOptionsExt,
14754
- ): Promise<ConfigureHandlersResponse>;
14763
+ ): Promise<ProcessConfigResponse>;
14764
+ updateTemplates(request: DeepPartial<UpdateTemplatesRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
14755
14765
  processBindingsStream(
14756
14766
  request: AsyncIterable<DeepPartial<ProcessStreamRequest>>,
14757
14767
  options?: CallOptions & CallOptionsExt,
14758
- ): AsyncIterable<ProcessStreamResponseV2>;
14768
+ ): AsyncIterable<ProcessStreamResponseV3>;
14759
14769
  }
14760
14770
 
14761
14771
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
@@ -2116,6 +2116,9 @@ export interface RequestLog {
2116
2116
  queryDuration: bigint;
2117
2117
  method: string;
2118
2118
  rpcNodeId: string;
2119
+ originUrl: string;
2120
+ endpointType: string;
2121
+ chainId: string;
2119
2122
  }
2120
2123
 
2121
2124
  function createBaseUsageTracker(): UsageTracker {
@@ -14903,6 +14906,9 @@ function createBaseRequestLog(): RequestLog {
14903
14906
  queryDuration: BigInt("0"),
14904
14907
  method: "",
14905
14908
  rpcNodeId: "",
14909
+ originUrl: "",
14910
+ endpointType: "",
14911
+ chainId: "",
14906
14912
  };
14907
14913
  }
14908
14914
 
@@ -14959,6 +14965,15 @@ export const RequestLog = {
14959
14965
  if (message.rpcNodeId !== "") {
14960
14966
  writer.uint32(122).string(message.rpcNodeId);
14961
14967
  }
14968
+ if (message.originUrl !== "") {
14969
+ writer.uint32(130).string(message.originUrl);
14970
+ }
14971
+ if (message.endpointType !== "") {
14972
+ writer.uint32(138).string(message.endpointType);
14973
+ }
14974
+ if (message.chainId !== "") {
14975
+ writer.uint32(146).string(message.chainId);
14976
+ }
14962
14977
  return writer;
14963
14978
  },
14964
14979
 
@@ -15074,6 +15089,27 @@ export const RequestLog = {
15074
15089
 
15075
15090
  message.rpcNodeId = reader.string();
15076
15091
  continue;
15092
+ case 16:
15093
+ if (tag !== 130) {
15094
+ break;
15095
+ }
15096
+
15097
+ message.originUrl = reader.string();
15098
+ continue;
15099
+ case 17:
15100
+ if (tag !== 138) {
15101
+ break;
15102
+ }
15103
+
15104
+ message.endpointType = reader.string();
15105
+ continue;
15106
+ case 18:
15107
+ if (tag !== 146) {
15108
+ break;
15109
+ }
15110
+
15111
+ message.chainId = reader.string();
15112
+ continue;
15077
15113
  }
15078
15114
  if ((tag & 7) === 4 || tag === 0) {
15079
15115
  break;
@@ -15100,6 +15136,9 @@ export const RequestLog = {
15100
15136
  queryDuration: isSet(object.queryDuration) ? BigInt(object.queryDuration) : BigInt("0"),
15101
15137
  method: isSet(object.method) ? globalThis.String(object.method) : "",
15102
15138
  rpcNodeId: isSet(object.rpcNodeId) ? globalThis.String(object.rpcNodeId) : "",
15139
+ originUrl: isSet(object.originUrl) ? globalThis.String(object.originUrl) : "",
15140
+ endpointType: isSet(object.endpointType) ? globalThis.String(object.endpointType) : "",
15141
+ chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
15103
15142
  };
15104
15143
  },
15105
15144
 
@@ -15150,6 +15189,15 @@ export const RequestLog = {
15150
15189
  if (message.rpcNodeId !== "") {
15151
15190
  obj.rpcNodeId = message.rpcNodeId;
15152
15191
  }
15192
+ if (message.originUrl !== "") {
15193
+ obj.originUrl = message.originUrl;
15194
+ }
15195
+ if (message.endpointType !== "") {
15196
+ obj.endpointType = message.endpointType;
15197
+ }
15198
+ if (message.chainId !== "") {
15199
+ obj.chainId = message.chainId;
15200
+ }
15153
15201
  return obj;
15154
15202
  },
15155
15203
 
@@ -15173,6 +15221,9 @@ export const RequestLog = {
15173
15221
  message.queryDuration = object.queryDuration ?? BigInt("0");
15174
15222
  message.method = object.method ?? "";
15175
15223
  message.rpcNodeId = object.rpcNodeId ?? "";
15224
+ message.originUrl = object.originUrl ?? "";
15225
+ message.endpointType = object.endpointType ?? "";
15226
+ message.chainId = object.chainId ?? "";
15176
15227
  return message;
15177
15228
  },
15178
15229
  };