@sentio/runtime 2.40.0-rc.1 → 2.40.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.
@@ -3,7 +3,7 @@ import Long from "long";
3
3
  import type { CallContext, CallOptions } from "nice-grpc-common";
4
4
  import _m0 from "protobufjs/minimal.js";
5
5
  import { Empty } from "../../google/protobuf/empty.js";
6
- import { ListValue, Struct, Value } from "../../google/protobuf/struct.js";
6
+ import { ListValue, Struct } from "../../google/protobuf/struct.js";
7
7
  import { Timestamp } from "../../google/protobuf/timestamp.js";
8
8
  import { BigInteger, CoinID, RichStruct, RichStructList, RichValueList } from "../../service/common/protos/common.js";
9
9
 
@@ -203,6 +203,7 @@ export enum HandlerType {
203
203
  SUI_OBJECT_CHANGE = 12,
204
204
  FUEL_CALL = 13,
205
205
  COSMOS_CALL = 14,
206
+ STARKNET_EVENT = 15,
206
207
  UNRECOGNIZED = -1,
207
208
  }
208
209
 
@@ -253,6 +254,9 @@ export function handlerTypeFromJSON(object: any): HandlerType {
253
254
  case 14:
254
255
  case "COSMOS_CALL":
255
256
  return HandlerType.COSMOS_CALL;
257
+ case 15:
258
+ case "STARKNET_EVENT":
259
+ return HandlerType.STARKNET_EVENT;
256
260
  case -1:
257
261
  case "UNRECOGNIZED":
258
262
  default:
@@ -292,6 +296,8 @@ export function handlerTypeToJSON(object: HandlerType): string {
292
296
  return "FUEL_CALL";
293
297
  case HandlerType.COSMOS_CALL:
294
298
  return "COSMOS_CALL";
299
+ case HandlerType.STARKNET_EVENT:
300
+ return "STARKNET_EVENT";
295
301
  case HandlerType.UNRECOGNIZED:
296
302
  default:
297
303
  return "UNRECOGNIZED";
@@ -389,6 +395,7 @@ export interface ContractConfig {
389
395
  assetConfigs: FuelAssetHandlerConfig[];
390
396
  fuelLogConfigs: FuelLogHandlerConfig[];
391
397
  cosmosLogConfigs: CosmosLogHandlerConfig[];
398
+ starknetEventConfigs: StarknetEventHandlerConfig[];
392
399
  instructionConfig: InstructionHandlerConfig | undefined;
393
400
  startBlock: bigint;
394
401
  endBlock: bigint;
@@ -713,6 +720,16 @@ export interface MoveCallFilter_FromAndToAddress {
713
720
  to: string;
714
721
  }
715
722
 
723
+ export interface StarknetEventHandlerConfig {
724
+ filters: StarknetEventFilter[];
725
+ handlerId: number;
726
+ }
727
+
728
+ export interface StarknetEventFilter {
729
+ address: string;
730
+ keys: string[];
731
+ }
732
+
716
733
  export interface FuelCallFilter {
717
734
  function: string;
718
735
  includeFailed: boolean;
@@ -751,6 +768,21 @@ export interface ProcessStreamResponse {
751
768
  result?: ProcessResult | undefined;
752
769
  }
753
770
 
771
+ export interface PreprocessStreamRequest {
772
+ processId: number;
773
+ bindings?: PreprocessStreamRequest_DataBindings | undefined;
774
+ dbResult?: DBResponse | undefined;
775
+ }
776
+
777
+ export interface PreprocessStreamRequest_DataBindings {
778
+ bindings: DataBinding[];
779
+ }
780
+
781
+ export interface PreprocessStreamResponse {
782
+ processId: number;
783
+ dbRequest: DBRequest | undefined;
784
+ }
785
+
754
786
  export interface DBResponse {
755
787
  opId: bigint;
756
788
  data?: { [key: string]: any } | undefined;
@@ -921,6 +953,7 @@ export interface Data {
921
953
  suiObjectChange?: Data_SuiObjectChange | undefined;
922
954
  fuelCall?: Data_FuelCall | undefined;
923
955
  cosmosCall?: Data_CosmosCall | undefined;
956
+ starknetEvents?: Data_StarknetEvent | undefined;
924
957
  }
925
958
 
926
959
  export interface Data_EthLog {
@@ -1009,6 +1042,11 @@ export interface Data_CosmosCall {
1009
1042
  timestamp: Date | undefined;
1010
1043
  }
1011
1044
 
1045
+ export interface Data_StarknetEvent {
1046
+ result: { [key: string]: any } | undefined;
1047
+ timestamp: Date | undefined;
1048
+ }
1049
+
1012
1050
  export interface DataBinding {
1013
1051
  data: Data | undefined;
1014
1052
  handlerType: HandlerType;
@@ -1031,11 +1069,14 @@ export interface ProcessResult {
1031
1069
  }
1032
1070
 
1033
1071
  export interface EthCallParam {
1072
+ context: EthCallContext | undefined;
1073
+ calldata: string;
1074
+ }
1075
+
1076
+ export interface EthCallContext {
1034
1077
  chainId: string;
1035
1078
  address: string;
1036
- function: string;
1037
- signature: string;
1038
- args: any[];
1079
+ blockTag: string;
1039
1080
  }
1040
1081
 
1041
1082
  export interface PreprocessResult {
@@ -1043,12 +1084,12 @@ export interface PreprocessResult {
1043
1084
  }
1044
1085
 
1045
1086
  export interface PreparedData {
1046
- ethCallResults: { [key: string]: Array<any> | undefined };
1087
+ ethCallResults: { [key: string]: string };
1047
1088
  }
1048
1089
 
1049
1090
  export interface PreparedData_EthCallResultsEntry {
1050
1091
  key: string;
1051
- value: Array<any> | undefined;
1092
+ value: string;
1052
1093
  }
1053
1094
 
1054
1095
  export interface RecordMetaData {
@@ -1563,6 +1604,7 @@ function createBaseContractConfig(): ContractConfig {
1563
1604
  assetConfigs: [],
1564
1605
  fuelLogConfigs: [],
1565
1606
  cosmosLogConfigs: [],
1607
+ starknetEventConfigs: [],
1566
1608
  instructionConfig: undefined,
1567
1609
  startBlock: BigInt("0"),
1568
1610
  endBlock: BigInt("0"),
@@ -1608,6 +1650,9 @@ export const ContractConfig = {
1608
1650
  for (const v of message.cosmosLogConfigs) {
1609
1651
  CosmosLogHandlerConfig.encode(v!, writer.uint32(130).fork()).ldelim();
1610
1652
  }
1653
+ for (const v of message.starknetEventConfigs) {
1654
+ StarknetEventHandlerConfig.encode(v!, writer.uint32(138).fork()).ldelim();
1655
+ }
1611
1656
  if (message.instructionConfig !== undefined) {
1612
1657
  InstructionHandlerConfig.encode(message.instructionConfig, writer.uint32(50).fork()).ldelim();
1613
1658
  }
@@ -1720,6 +1765,13 @@ export const ContractConfig = {
1720
1765
 
1721
1766
  message.cosmosLogConfigs.push(CosmosLogHandlerConfig.decode(reader, reader.uint32()));
1722
1767
  continue;
1768
+ case 17:
1769
+ if (tag !== 138) {
1770
+ break;
1771
+ }
1772
+
1773
+ message.starknetEventConfigs.push(StarknetEventHandlerConfig.decode(reader, reader.uint32()));
1774
+ continue;
1723
1775
  case 6:
1724
1776
  if (tag !== 50) {
1725
1777
  break;
@@ -1793,6 +1845,9 @@ export const ContractConfig = {
1793
1845
  cosmosLogConfigs: globalThis.Array.isArray(object?.cosmosLogConfigs)
1794
1846
  ? object.cosmosLogConfigs.map((e: any) => CosmosLogHandlerConfig.fromJSON(e))
1795
1847
  : [],
1848
+ starknetEventConfigs: globalThis.Array.isArray(object?.starknetEventConfigs)
1849
+ ? object.starknetEventConfigs.map((e: any) => StarknetEventHandlerConfig.fromJSON(e))
1850
+ : [],
1796
1851
  instructionConfig: isSet(object.instructionConfig)
1797
1852
  ? InstructionHandlerConfig.fromJSON(object.instructionConfig)
1798
1853
  : undefined,
@@ -1840,6 +1895,9 @@ export const ContractConfig = {
1840
1895
  if (message.cosmosLogConfigs?.length) {
1841
1896
  obj.cosmosLogConfigs = message.cosmosLogConfigs.map((e) => CosmosLogHandlerConfig.toJSON(e));
1842
1897
  }
1898
+ if (message.starknetEventConfigs?.length) {
1899
+ obj.starknetEventConfigs = message.starknetEventConfigs.map((e) => StarknetEventHandlerConfig.toJSON(e));
1900
+ }
1843
1901
  if (message.instructionConfig !== undefined) {
1844
1902
  obj.instructionConfig = InstructionHandlerConfig.toJSON(message.instructionConfig);
1845
1903
  }
@@ -1875,6 +1933,8 @@ export const ContractConfig = {
1875
1933
  message.assetConfigs = object.assetConfigs?.map((e) => FuelAssetHandlerConfig.fromPartial(e)) || [];
1876
1934
  message.fuelLogConfigs = object.fuelLogConfigs?.map((e) => FuelLogHandlerConfig.fromPartial(e)) || [];
1877
1935
  message.cosmosLogConfigs = object.cosmosLogConfigs?.map((e) => CosmosLogHandlerConfig.fromPartial(e)) || [];
1936
+ message.starknetEventConfigs = object.starknetEventConfigs?.map((e) => StarknetEventHandlerConfig.fromPartial(e)) ||
1937
+ [];
1878
1938
  message.instructionConfig = (object.instructionConfig !== undefined && object.instructionConfig !== null)
1879
1939
  ? InstructionHandlerConfig.fromPartial(object.instructionConfig)
1880
1940
  : undefined;
@@ -5404,6 +5464,156 @@ export const MoveCallFilter_FromAndToAddress = {
5404
5464
  },
5405
5465
  };
5406
5466
 
5467
+ function createBaseStarknetEventHandlerConfig(): StarknetEventHandlerConfig {
5468
+ return { filters: [], handlerId: 0 };
5469
+ }
5470
+
5471
+ export const StarknetEventHandlerConfig = {
5472
+ encode(message: StarknetEventHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5473
+ for (const v of message.filters) {
5474
+ StarknetEventFilter.encode(v!, writer.uint32(10).fork()).ldelim();
5475
+ }
5476
+ if (message.handlerId !== 0) {
5477
+ writer.uint32(16).int32(message.handlerId);
5478
+ }
5479
+ return writer;
5480
+ },
5481
+
5482
+ decode(input: _m0.Reader | Uint8Array, length?: number): StarknetEventHandlerConfig {
5483
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5484
+ let end = length === undefined ? reader.len : reader.pos + length;
5485
+ const message = createBaseStarknetEventHandlerConfig();
5486
+ while (reader.pos < end) {
5487
+ const tag = reader.uint32();
5488
+ switch (tag >>> 3) {
5489
+ case 1:
5490
+ if (tag !== 10) {
5491
+ break;
5492
+ }
5493
+
5494
+ message.filters.push(StarknetEventFilter.decode(reader, reader.uint32()));
5495
+ continue;
5496
+ case 2:
5497
+ if (tag !== 16) {
5498
+ break;
5499
+ }
5500
+
5501
+ message.handlerId = reader.int32();
5502
+ continue;
5503
+ }
5504
+ if ((tag & 7) === 4 || tag === 0) {
5505
+ break;
5506
+ }
5507
+ reader.skipType(tag & 7);
5508
+ }
5509
+ return message;
5510
+ },
5511
+
5512
+ fromJSON(object: any): StarknetEventHandlerConfig {
5513
+ return {
5514
+ filters: globalThis.Array.isArray(object?.filters)
5515
+ ? object.filters.map((e: any) => StarknetEventFilter.fromJSON(e))
5516
+ : [],
5517
+ handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
5518
+ };
5519
+ },
5520
+
5521
+ toJSON(message: StarknetEventHandlerConfig): unknown {
5522
+ const obj: any = {};
5523
+ if (message.filters?.length) {
5524
+ obj.filters = message.filters.map((e) => StarknetEventFilter.toJSON(e));
5525
+ }
5526
+ if (message.handlerId !== 0) {
5527
+ obj.handlerId = Math.round(message.handlerId);
5528
+ }
5529
+ return obj;
5530
+ },
5531
+
5532
+ create(base?: DeepPartial<StarknetEventHandlerConfig>): StarknetEventHandlerConfig {
5533
+ return StarknetEventHandlerConfig.fromPartial(base ?? {});
5534
+ },
5535
+ fromPartial(object: DeepPartial<StarknetEventHandlerConfig>): StarknetEventHandlerConfig {
5536
+ const message = createBaseStarknetEventHandlerConfig();
5537
+ message.filters = object.filters?.map((e) => StarknetEventFilter.fromPartial(e)) || [];
5538
+ message.handlerId = object.handlerId ?? 0;
5539
+ return message;
5540
+ },
5541
+ };
5542
+
5543
+ function createBaseStarknetEventFilter(): StarknetEventFilter {
5544
+ return { address: "", keys: [] };
5545
+ }
5546
+
5547
+ export const StarknetEventFilter = {
5548
+ encode(message: StarknetEventFilter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5549
+ if (message.address !== "") {
5550
+ writer.uint32(10).string(message.address);
5551
+ }
5552
+ for (const v of message.keys) {
5553
+ writer.uint32(18).string(v!);
5554
+ }
5555
+ return writer;
5556
+ },
5557
+
5558
+ decode(input: _m0.Reader | Uint8Array, length?: number): StarknetEventFilter {
5559
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5560
+ let end = length === undefined ? reader.len : reader.pos + length;
5561
+ const message = createBaseStarknetEventFilter();
5562
+ while (reader.pos < end) {
5563
+ const tag = reader.uint32();
5564
+ switch (tag >>> 3) {
5565
+ case 1:
5566
+ if (tag !== 10) {
5567
+ break;
5568
+ }
5569
+
5570
+ message.address = reader.string();
5571
+ continue;
5572
+ case 2:
5573
+ if (tag !== 18) {
5574
+ break;
5575
+ }
5576
+
5577
+ message.keys.push(reader.string());
5578
+ continue;
5579
+ }
5580
+ if ((tag & 7) === 4 || tag === 0) {
5581
+ break;
5582
+ }
5583
+ reader.skipType(tag & 7);
5584
+ }
5585
+ return message;
5586
+ },
5587
+
5588
+ fromJSON(object: any): StarknetEventFilter {
5589
+ return {
5590
+ address: isSet(object.address) ? globalThis.String(object.address) : "",
5591
+ keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e: any) => globalThis.String(e)) : [],
5592
+ };
5593
+ },
5594
+
5595
+ toJSON(message: StarknetEventFilter): unknown {
5596
+ const obj: any = {};
5597
+ if (message.address !== "") {
5598
+ obj.address = message.address;
5599
+ }
5600
+ if (message.keys?.length) {
5601
+ obj.keys = message.keys;
5602
+ }
5603
+ return obj;
5604
+ },
5605
+
5606
+ create(base?: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
5607
+ return StarknetEventFilter.fromPartial(base ?? {});
5608
+ },
5609
+ fromPartial(object: DeepPartial<StarknetEventFilter>): StarknetEventFilter {
5610
+ const message = createBaseStarknetEventFilter();
5611
+ message.address = object.address ?? "";
5612
+ message.keys = object.keys?.map((e) => e) || [];
5613
+ return message;
5614
+ },
5615
+ };
5616
+
5407
5617
  function createBaseFuelCallFilter(): FuelCallFilter {
5408
5618
  return { function: "", includeFailed: false };
5409
5619
  }
@@ -5936,51 +6146,28 @@ export const ProcessStreamResponse = {
5936
6146
  },
5937
6147
  };
5938
6148
 
5939
- function createBaseDBResponse(): DBResponse {
5940
- return {
5941
- opId: BigInt("0"),
5942
- data: undefined,
5943
- list: undefined,
5944
- error: undefined,
5945
- entities: undefined,
5946
- entityList: undefined,
5947
- nextCursor: undefined,
5948
- };
6149
+ function createBasePreprocessStreamRequest(): PreprocessStreamRequest {
6150
+ return { processId: 0, bindings: undefined, dbResult: undefined };
5949
6151
  }
5950
6152
 
5951
- export const DBResponse = {
5952
- encode(message: DBResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5953
- if (message.opId !== BigInt("0")) {
5954
- if (BigInt.asUintN(64, message.opId) !== message.opId) {
5955
- throw new globalThis.Error("value provided for field message.opId of type uint64 too large");
5956
- }
5957
- writer.uint32(8).uint64(message.opId.toString());
5958
- }
5959
- if (message.data !== undefined) {
5960
- Struct.encode(Struct.wrap(message.data), writer.uint32(18).fork()).ldelim();
5961
- }
5962
- if (message.list !== undefined) {
5963
- ListValue.encode(ListValue.wrap(message.list), writer.uint32(34).fork()).ldelim();
5964
- }
5965
- if (message.error !== undefined) {
5966
- writer.uint32(26).string(message.error);
5967
- }
5968
- if (message.entities !== undefined) {
5969
- RichStructList.encode(message.entities, writer.uint32(50).fork()).ldelim();
6153
+ export const PreprocessStreamRequest = {
6154
+ encode(message: PreprocessStreamRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6155
+ if (message.processId !== 0) {
6156
+ writer.uint32(8).int32(message.processId);
5970
6157
  }
5971
- if (message.entityList !== undefined) {
5972
- EntityList.encode(message.entityList, writer.uint32(58).fork()).ldelim();
6158
+ if (message.bindings !== undefined) {
6159
+ PreprocessStreamRequest_DataBindings.encode(message.bindings, writer.uint32(18).fork()).ldelim();
5973
6160
  }
5974
- if (message.nextCursor !== undefined) {
5975
- writer.uint32(42).string(message.nextCursor);
6161
+ if (message.dbResult !== undefined) {
6162
+ DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
5976
6163
  }
5977
6164
  return writer;
5978
6165
  },
5979
6166
 
5980
- decode(input: _m0.Reader | Uint8Array, length?: number): DBResponse {
6167
+ decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamRequest {
5981
6168
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5982
6169
  let end = length === undefined ? reader.len : reader.pos + length;
5983
- const message = createBaseDBResponse();
6170
+ const message = createBasePreprocessStreamRequest();
5984
6171
  while (reader.pos < end) {
5985
6172
  const tag = reader.uint32();
5986
6173
  switch (tag >>> 3) {
@@ -5989,49 +6176,21 @@ export const DBResponse = {
5989
6176
  break;
5990
6177
  }
5991
6178
 
5992
- message.opId = longToBigint(reader.uint64() as Long);
6179
+ message.processId = reader.int32();
5993
6180
  continue;
5994
6181
  case 2:
5995
6182
  if (tag !== 18) {
5996
6183
  break;
5997
6184
  }
5998
6185
 
5999
- message.data = Struct.unwrap(Struct.decode(reader, reader.uint32()));
6000
- continue;
6001
- case 4:
6002
- if (tag !== 34) {
6003
- break;
6004
- }
6005
-
6006
- message.list = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));
6186
+ message.bindings = PreprocessStreamRequest_DataBindings.decode(reader, reader.uint32());
6007
6187
  continue;
6008
6188
  case 3:
6009
6189
  if (tag !== 26) {
6010
6190
  break;
6011
6191
  }
6012
6192
 
6013
- message.error = reader.string();
6014
- continue;
6015
- case 6:
6016
- if (tag !== 50) {
6017
- break;
6018
- }
6019
-
6020
- message.entities = RichStructList.decode(reader, reader.uint32());
6021
- continue;
6022
- case 7:
6023
- if (tag !== 58) {
6024
- break;
6025
- }
6026
-
6027
- message.entityList = EntityList.decode(reader, reader.uint32());
6028
- continue;
6029
- case 5:
6030
- if (tag !== 42) {
6031
- break;
6032
- }
6033
-
6034
- message.nextCursor = reader.string();
6193
+ message.dbResult = DBResponse.decode(reader, reader.uint32());
6035
6194
  continue;
6036
6195
  }
6037
6196
  if ((tag & 7) === 4 || tag === 0) {
@@ -6042,49 +6201,330 @@ export const DBResponse = {
6042
6201
  return message;
6043
6202
  },
6044
6203
 
6045
- fromJSON(object: any): DBResponse {
6204
+ fromJSON(object: any): PreprocessStreamRequest {
6046
6205
  return {
6047
- opId: isSet(object.opId) ? BigInt(object.opId) : BigInt("0"),
6048
- data: isObject(object.data) ? object.data : undefined,
6049
- list: globalThis.Array.isArray(object.list) ? [...object.list] : undefined,
6050
- error: isSet(object.error) ? globalThis.String(object.error) : undefined,
6051
- entities: isSet(object.entities) ? RichStructList.fromJSON(object.entities) : undefined,
6052
- entityList: isSet(object.entityList) ? EntityList.fromJSON(object.entityList) : undefined,
6053
- nextCursor: isSet(object.nextCursor) ? globalThis.String(object.nextCursor) : undefined,
6206
+ processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
6207
+ bindings: isSet(object.bindings) ? PreprocessStreamRequest_DataBindings.fromJSON(object.bindings) : undefined,
6208
+ dbResult: isSet(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : undefined,
6054
6209
  };
6055
6210
  },
6056
6211
 
6057
- toJSON(message: DBResponse): unknown {
6212
+ toJSON(message: PreprocessStreamRequest): unknown {
6058
6213
  const obj: any = {};
6059
- if (message.opId !== BigInt("0")) {
6060
- obj.opId = message.opId.toString();
6061
- }
6062
- if (message.data !== undefined) {
6063
- obj.data = message.data;
6064
- }
6065
- if (message.list !== undefined) {
6066
- obj.list = message.list;
6067
- }
6068
- if (message.error !== undefined) {
6069
- obj.error = message.error;
6070
- }
6071
- if (message.entities !== undefined) {
6072
- obj.entities = RichStructList.toJSON(message.entities);
6214
+ if (message.processId !== 0) {
6215
+ obj.processId = Math.round(message.processId);
6073
6216
  }
6074
- if (message.entityList !== undefined) {
6075
- obj.entityList = EntityList.toJSON(message.entityList);
6217
+ if (message.bindings !== undefined) {
6218
+ obj.bindings = PreprocessStreamRequest_DataBindings.toJSON(message.bindings);
6076
6219
  }
6077
- if (message.nextCursor !== undefined) {
6078
- obj.nextCursor = message.nextCursor;
6220
+ if (message.dbResult !== undefined) {
6221
+ obj.dbResult = DBResponse.toJSON(message.dbResult);
6079
6222
  }
6080
6223
  return obj;
6081
6224
  },
6082
6225
 
6083
- create(base?: DeepPartial<DBResponse>): DBResponse {
6084
- return DBResponse.fromPartial(base ?? {});
6226
+ create(base?: DeepPartial<PreprocessStreamRequest>): PreprocessStreamRequest {
6227
+ return PreprocessStreamRequest.fromPartial(base ?? {});
6085
6228
  },
6086
- fromPartial(object: DeepPartial<DBResponse>): DBResponse {
6087
- const message = createBaseDBResponse();
6229
+ fromPartial(object: DeepPartial<PreprocessStreamRequest>): PreprocessStreamRequest {
6230
+ const message = createBasePreprocessStreamRequest();
6231
+ message.processId = object.processId ?? 0;
6232
+ message.bindings = (object.bindings !== undefined && object.bindings !== null)
6233
+ ? PreprocessStreamRequest_DataBindings.fromPartial(object.bindings)
6234
+ : undefined;
6235
+ message.dbResult = (object.dbResult !== undefined && object.dbResult !== null)
6236
+ ? DBResponse.fromPartial(object.dbResult)
6237
+ : undefined;
6238
+ return message;
6239
+ },
6240
+ };
6241
+
6242
+ function createBasePreprocessStreamRequest_DataBindings(): PreprocessStreamRequest_DataBindings {
6243
+ return { bindings: [] };
6244
+ }
6245
+
6246
+ export const PreprocessStreamRequest_DataBindings = {
6247
+ encode(message: PreprocessStreamRequest_DataBindings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6248
+ for (const v of message.bindings) {
6249
+ DataBinding.encode(v!, writer.uint32(10).fork()).ldelim();
6250
+ }
6251
+ return writer;
6252
+ },
6253
+
6254
+ decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamRequest_DataBindings {
6255
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6256
+ let end = length === undefined ? reader.len : reader.pos + length;
6257
+ const message = createBasePreprocessStreamRequest_DataBindings();
6258
+ while (reader.pos < end) {
6259
+ const tag = reader.uint32();
6260
+ switch (tag >>> 3) {
6261
+ case 1:
6262
+ if (tag !== 10) {
6263
+ break;
6264
+ }
6265
+
6266
+ message.bindings.push(DataBinding.decode(reader, reader.uint32()));
6267
+ continue;
6268
+ }
6269
+ if ((tag & 7) === 4 || tag === 0) {
6270
+ break;
6271
+ }
6272
+ reader.skipType(tag & 7);
6273
+ }
6274
+ return message;
6275
+ },
6276
+
6277
+ fromJSON(object: any): PreprocessStreamRequest_DataBindings {
6278
+ return {
6279
+ bindings: globalThis.Array.isArray(object?.bindings)
6280
+ ? object.bindings.map((e: any) => DataBinding.fromJSON(e))
6281
+ : [],
6282
+ };
6283
+ },
6284
+
6285
+ toJSON(message: PreprocessStreamRequest_DataBindings): unknown {
6286
+ const obj: any = {};
6287
+ if (message.bindings?.length) {
6288
+ obj.bindings = message.bindings.map((e) => DataBinding.toJSON(e));
6289
+ }
6290
+ return obj;
6291
+ },
6292
+
6293
+ create(base?: DeepPartial<PreprocessStreamRequest_DataBindings>): PreprocessStreamRequest_DataBindings {
6294
+ return PreprocessStreamRequest_DataBindings.fromPartial(base ?? {});
6295
+ },
6296
+ fromPartial(object: DeepPartial<PreprocessStreamRequest_DataBindings>): PreprocessStreamRequest_DataBindings {
6297
+ const message = createBasePreprocessStreamRequest_DataBindings();
6298
+ message.bindings = object.bindings?.map((e) => DataBinding.fromPartial(e)) || [];
6299
+ return message;
6300
+ },
6301
+ };
6302
+
6303
+ function createBasePreprocessStreamResponse(): PreprocessStreamResponse {
6304
+ return { processId: 0, dbRequest: undefined };
6305
+ }
6306
+
6307
+ export const PreprocessStreamResponse = {
6308
+ encode(message: PreprocessStreamResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6309
+ if (message.processId !== 0) {
6310
+ writer.uint32(8).int32(message.processId);
6311
+ }
6312
+ if (message.dbRequest !== undefined) {
6313
+ DBRequest.encode(message.dbRequest, writer.uint32(18).fork()).ldelim();
6314
+ }
6315
+ return writer;
6316
+ },
6317
+
6318
+ decode(input: _m0.Reader | Uint8Array, length?: number): PreprocessStreamResponse {
6319
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6320
+ let end = length === undefined ? reader.len : reader.pos + length;
6321
+ const message = createBasePreprocessStreamResponse();
6322
+ while (reader.pos < end) {
6323
+ const tag = reader.uint32();
6324
+ switch (tag >>> 3) {
6325
+ case 1:
6326
+ if (tag !== 8) {
6327
+ break;
6328
+ }
6329
+
6330
+ message.processId = reader.int32();
6331
+ continue;
6332
+ case 2:
6333
+ if (tag !== 18) {
6334
+ break;
6335
+ }
6336
+
6337
+ message.dbRequest = DBRequest.decode(reader, reader.uint32());
6338
+ continue;
6339
+ }
6340
+ if ((tag & 7) === 4 || tag === 0) {
6341
+ break;
6342
+ }
6343
+ reader.skipType(tag & 7);
6344
+ }
6345
+ return message;
6346
+ },
6347
+
6348
+ fromJSON(object: any): PreprocessStreamResponse {
6349
+ return {
6350
+ processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
6351
+ dbRequest: isSet(object.dbRequest) ? DBRequest.fromJSON(object.dbRequest) : undefined,
6352
+ };
6353
+ },
6354
+
6355
+ toJSON(message: PreprocessStreamResponse): unknown {
6356
+ const obj: any = {};
6357
+ if (message.processId !== 0) {
6358
+ obj.processId = Math.round(message.processId);
6359
+ }
6360
+ if (message.dbRequest !== undefined) {
6361
+ obj.dbRequest = DBRequest.toJSON(message.dbRequest);
6362
+ }
6363
+ return obj;
6364
+ },
6365
+
6366
+ create(base?: DeepPartial<PreprocessStreamResponse>): PreprocessStreamResponse {
6367
+ return PreprocessStreamResponse.fromPartial(base ?? {});
6368
+ },
6369
+ fromPartial(object: DeepPartial<PreprocessStreamResponse>): PreprocessStreamResponse {
6370
+ const message = createBasePreprocessStreamResponse();
6371
+ message.processId = object.processId ?? 0;
6372
+ message.dbRequest = (object.dbRequest !== undefined && object.dbRequest !== null)
6373
+ ? DBRequest.fromPartial(object.dbRequest)
6374
+ : undefined;
6375
+ return message;
6376
+ },
6377
+ };
6378
+
6379
+ function createBaseDBResponse(): DBResponse {
6380
+ return {
6381
+ opId: BigInt("0"),
6382
+ data: undefined,
6383
+ list: undefined,
6384
+ error: undefined,
6385
+ entities: undefined,
6386
+ entityList: undefined,
6387
+ nextCursor: undefined,
6388
+ };
6389
+ }
6390
+
6391
+ export const DBResponse = {
6392
+ encode(message: DBResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6393
+ if (message.opId !== BigInt("0")) {
6394
+ if (BigInt.asUintN(64, message.opId) !== message.opId) {
6395
+ throw new globalThis.Error("value provided for field message.opId of type uint64 too large");
6396
+ }
6397
+ writer.uint32(8).uint64(message.opId.toString());
6398
+ }
6399
+ if (message.data !== undefined) {
6400
+ Struct.encode(Struct.wrap(message.data), writer.uint32(18).fork()).ldelim();
6401
+ }
6402
+ if (message.list !== undefined) {
6403
+ ListValue.encode(ListValue.wrap(message.list), writer.uint32(34).fork()).ldelim();
6404
+ }
6405
+ if (message.error !== undefined) {
6406
+ writer.uint32(26).string(message.error);
6407
+ }
6408
+ if (message.entities !== undefined) {
6409
+ RichStructList.encode(message.entities, writer.uint32(50).fork()).ldelim();
6410
+ }
6411
+ if (message.entityList !== undefined) {
6412
+ EntityList.encode(message.entityList, writer.uint32(58).fork()).ldelim();
6413
+ }
6414
+ if (message.nextCursor !== undefined) {
6415
+ writer.uint32(42).string(message.nextCursor);
6416
+ }
6417
+ return writer;
6418
+ },
6419
+
6420
+ decode(input: _m0.Reader | Uint8Array, length?: number): DBResponse {
6421
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6422
+ let end = length === undefined ? reader.len : reader.pos + length;
6423
+ const message = createBaseDBResponse();
6424
+ while (reader.pos < end) {
6425
+ const tag = reader.uint32();
6426
+ switch (tag >>> 3) {
6427
+ case 1:
6428
+ if (tag !== 8) {
6429
+ break;
6430
+ }
6431
+
6432
+ message.opId = longToBigint(reader.uint64() as Long);
6433
+ continue;
6434
+ case 2:
6435
+ if (tag !== 18) {
6436
+ break;
6437
+ }
6438
+
6439
+ message.data = Struct.unwrap(Struct.decode(reader, reader.uint32()));
6440
+ continue;
6441
+ case 4:
6442
+ if (tag !== 34) {
6443
+ break;
6444
+ }
6445
+
6446
+ message.list = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));
6447
+ continue;
6448
+ case 3:
6449
+ if (tag !== 26) {
6450
+ break;
6451
+ }
6452
+
6453
+ message.error = reader.string();
6454
+ continue;
6455
+ case 6:
6456
+ if (tag !== 50) {
6457
+ break;
6458
+ }
6459
+
6460
+ message.entities = RichStructList.decode(reader, reader.uint32());
6461
+ continue;
6462
+ case 7:
6463
+ if (tag !== 58) {
6464
+ break;
6465
+ }
6466
+
6467
+ message.entityList = EntityList.decode(reader, reader.uint32());
6468
+ continue;
6469
+ case 5:
6470
+ if (tag !== 42) {
6471
+ break;
6472
+ }
6473
+
6474
+ message.nextCursor = reader.string();
6475
+ continue;
6476
+ }
6477
+ if ((tag & 7) === 4 || tag === 0) {
6478
+ break;
6479
+ }
6480
+ reader.skipType(tag & 7);
6481
+ }
6482
+ return message;
6483
+ },
6484
+
6485
+ fromJSON(object: any): DBResponse {
6486
+ return {
6487
+ opId: isSet(object.opId) ? BigInt(object.opId) : BigInt("0"),
6488
+ data: isObject(object.data) ? object.data : undefined,
6489
+ list: globalThis.Array.isArray(object.list) ? [...object.list] : undefined,
6490
+ error: isSet(object.error) ? globalThis.String(object.error) : undefined,
6491
+ entities: isSet(object.entities) ? RichStructList.fromJSON(object.entities) : undefined,
6492
+ entityList: isSet(object.entityList) ? EntityList.fromJSON(object.entityList) : undefined,
6493
+ nextCursor: isSet(object.nextCursor) ? globalThis.String(object.nextCursor) : undefined,
6494
+ };
6495
+ },
6496
+
6497
+ toJSON(message: DBResponse): unknown {
6498
+ const obj: any = {};
6499
+ if (message.opId !== BigInt("0")) {
6500
+ obj.opId = message.opId.toString();
6501
+ }
6502
+ if (message.data !== undefined) {
6503
+ obj.data = message.data;
6504
+ }
6505
+ if (message.list !== undefined) {
6506
+ obj.list = message.list;
6507
+ }
6508
+ if (message.error !== undefined) {
6509
+ obj.error = message.error;
6510
+ }
6511
+ if (message.entities !== undefined) {
6512
+ obj.entities = RichStructList.toJSON(message.entities);
6513
+ }
6514
+ if (message.entityList !== undefined) {
6515
+ obj.entityList = EntityList.toJSON(message.entityList);
6516
+ }
6517
+ if (message.nextCursor !== undefined) {
6518
+ obj.nextCursor = message.nextCursor;
6519
+ }
6520
+ return obj;
6521
+ },
6522
+
6523
+ create(base?: DeepPartial<DBResponse>): DBResponse {
6524
+ return DBResponse.fromPartial(base ?? {});
6525
+ },
6526
+ fromPartial(object: DeepPartial<DBResponse>): DBResponse {
6527
+ const message = createBaseDBResponse();
6088
6528
  message.opId = object.opId ?? BigInt("0");
6089
6529
  message.data = object.data ?? undefined;
6090
6530
  message.list = object.list ?? undefined;
@@ -6881,6 +7321,7 @@ function createBaseData(): Data {
6881
7321
  suiObjectChange: undefined,
6882
7322
  fuelCall: undefined,
6883
7323
  cosmosCall: undefined,
7324
+ starknetEvents: undefined,
6884
7325
  };
6885
7326
  }
6886
7327
 
@@ -6931,6 +7372,9 @@ export const Data = {
6931
7372
  if (message.cosmosCall !== undefined) {
6932
7373
  Data_CosmosCall.encode(message.cosmosCall, writer.uint32(122).fork()).ldelim();
6933
7374
  }
7375
+ if (message.starknetEvents !== undefined) {
7376
+ Data_StarknetEvent.encode(message.starknetEvents, writer.uint32(130).fork()).ldelim();
7377
+ }
6934
7378
  return writer;
6935
7379
  },
6936
7380
 
@@ -7046,6 +7490,13 @@ export const Data = {
7046
7490
 
7047
7491
  message.cosmosCall = Data_CosmosCall.decode(reader, reader.uint32());
7048
7492
  continue;
7493
+ case 16:
7494
+ if (tag !== 130) {
7495
+ break;
7496
+ }
7497
+
7498
+ message.starknetEvents = Data_StarknetEvent.decode(reader, reader.uint32());
7499
+ continue;
7049
7500
  }
7050
7501
  if ((tag & 7) === 4 || tag === 0) {
7051
7502
  break;
@@ -7074,6 +7525,7 @@ export const Data = {
7074
7525
  : undefined,
7075
7526
  fuelCall: isSet(object.fuelCall) ? Data_FuelCall.fromJSON(object.fuelCall) : undefined,
7076
7527
  cosmosCall: isSet(object.cosmosCall) ? Data_CosmosCall.fromJSON(object.cosmosCall) : undefined,
7528
+ starknetEvents: isSet(object.starknetEvents) ? Data_StarknetEvent.fromJSON(object.starknetEvents) : undefined,
7077
7529
  };
7078
7530
  },
7079
7531
 
@@ -7124,6 +7576,9 @@ export const Data = {
7124
7576
  if (message.cosmosCall !== undefined) {
7125
7577
  obj.cosmosCall = Data_CosmosCall.toJSON(message.cosmosCall);
7126
7578
  }
7579
+ if (message.starknetEvents !== undefined) {
7580
+ obj.starknetEvents = Data_StarknetEvent.toJSON(message.starknetEvents);
7581
+ }
7127
7582
  return obj;
7128
7583
  },
7129
7584
 
@@ -7175,6 +7630,9 @@ export const Data = {
7175
7630
  message.cosmosCall = (object.cosmosCall !== undefined && object.cosmosCall !== null)
7176
7631
  ? Data_CosmosCall.fromPartial(object.cosmosCall)
7177
7632
  : undefined;
7633
+ message.starknetEvents = (object.starknetEvents !== undefined && object.starknetEvents !== null)
7634
+ ? Data_StarknetEvent.fromPartial(object.starknetEvents)
7635
+ : undefined;
7178
7636
  return message;
7179
7637
  },
7180
7638
  };
@@ -8488,6 +8946,80 @@ export const Data_CosmosCall = {
8488
8946
  },
8489
8947
  };
8490
8948
 
8949
+ function createBaseData_StarknetEvent(): Data_StarknetEvent {
8950
+ return { result: undefined, timestamp: undefined };
8951
+ }
8952
+
8953
+ export const Data_StarknetEvent = {
8954
+ encode(message: Data_StarknetEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8955
+ if (message.result !== undefined) {
8956
+ Struct.encode(Struct.wrap(message.result), writer.uint32(10).fork()).ldelim();
8957
+ }
8958
+ if (message.timestamp !== undefined) {
8959
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
8960
+ }
8961
+ return writer;
8962
+ },
8963
+
8964
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_StarknetEvent {
8965
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
8966
+ let end = length === undefined ? reader.len : reader.pos + length;
8967
+ const message = createBaseData_StarknetEvent();
8968
+ while (reader.pos < end) {
8969
+ const tag = reader.uint32();
8970
+ switch (tag >>> 3) {
8971
+ case 1:
8972
+ if (tag !== 10) {
8973
+ break;
8974
+ }
8975
+
8976
+ message.result = Struct.unwrap(Struct.decode(reader, reader.uint32()));
8977
+ continue;
8978
+ case 2:
8979
+ if (tag !== 18) {
8980
+ break;
8981
+ }
8982
+
8983
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
8984
+ continue;
8985
+ }
8986
+ if ((tag & 7) === 4 || tag === 0) {
8987
+ break;
8988
+ }
8989
+ reader.skipType(tag & 7);
8990
+ }
8991
+ return message;
8992
+ },
8993
+
8994
+ fromJSON(object: any): Data_StarknetEvent {
8995
+ return {
8996
+ result: isObject(object.result) ? object.result : undefined,
8997
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
8998
+ };
8999
+ },
9000
+
9001
+ toJSON(message: Data_StarknetEvent): unknown {
9002
+ const obj: any = {};
9003
+ if (message.result !== undefined) {
9004
+ obj.result = message.result;
9005
+ }
9006
+ if (message.timestamp !== undefined) {
9007
+ obj.timestamp = message.timestamp.toISOString();
9008
+ }
9009
+ return obj;
9010
+ },
9011
+
9012
+ create(base?: DeepPartial<Data_StarknetEvent>): Data_StarknetEvent {
9013
+ return Data_StarknetEvent.fromPartial(base ?? {});
9014
+ },
9015
+ fromPartial(object: DeepPartial<Data_StarknetEvent>): Data_StarknetEvent {
9016
+ const message = createBaseData_StarknetEvent();
9017
+ message.result = object.result ?? undefined;
9018
+ message.timestamp = object.timestamp ?? undefined;
9019
+ return message;
9020
+ },
9021
+ };
9022
+
8491
9023
  function createBaseDataBinding(): DataBinding {
8492
9024
  return { data: undefined, handlerType: 0, handlerIds: [] };
8493
9025
  }
@@ -8808,25 +9340,16 @@ export const ProcessResult = {
8808
9340
  };
8809
9341
 
8810
9342
  function createBaseEthCallParam(): EthCallParam {
8811
- return { chainId: "", address: "", function: "", signature: "", args: [] };
9343
+ return { context: undefined, calldata: "" };
8812
9344
  }
8813
9345
 
8814
9346
  export const EthCallParam = {
8815
9347
  encode(message: EthCallParam, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8816
- if (message.chainId !== "") {
8817
- writer.uint32(10).string(message.chainId);
9348
+ if (message.context !== undefined) {
9349
+ EthCallContext.encode(message.context, writer.uint32(10).fork()).ldelim();
8818
9350
  }
8819
- if (message.address !== "") {
8820
- writer.uint32(18).string(message.address);
8821
- }
8822
- if (message.function !== "") {
8823
- writer.uint32(26).string(message.function);
8824
- }
8825
- if (message.signature !== "") {
8826
- writer.uint32(34).string(message.signature);
8827
- }
8828
- for (const v of message.args) {
8829
- Value.encode(Value.wrap(v!), writer.uint32(42).fork()).ldelim();
9351
+ if (message.calldata !== "") {
9352
+ writer.uint32(18).string(message.calldata);
8830
9353
  }
8831
9354
  return writer;
8832
9355
  },
@@ -8843,35 +9366,100 @@ export const EthCallParam = {
8843
9366
  break;
8844
9367
  }
8845
9368
 
8846
- message.chainId = reader.string();
9369
+ message.context = EthCallContext.decode(reader, reader.uint32());
8847
9370
  continue;
8848
9371
  case 2:
8849
9372
  if (tag !== 18) {
8850
9373
  break;
8851
9374
  }
8852
9375
 
8853
- message.address = reader.string();
9376
+ message.calldata = reader.string();
8854
9377
  continue;
8855
- case 3:
8856
- if (tag !== 26) {
9378
+ }
9379
+ if ((tag & 7) === 4 || tag === 0) {
9380
+ break;
9381
+ }
9382
+ reader.skipType(tag & 7);
9383
+ }
9384
+ return message;
9385
+ },
9386
+
9387
+ fromJSON(object: any): EthCallParam {
9388
+ return {
9389
+ context: isSet(object.context) ? EthCallContext.fromJSON(object.context) : undefined,
9390
+ calldata: isSet(object.calldata) ? globalThis.String(object.calldata) : "",
9391
+ };
9392
+ },
9393
+
9394
+ toJSON(message: EthCallParam): unknown {
9395
+ const obj: any = {};
9396
+ if (message.context !== undefined) {
9397
+ obj.context = EthCallContext.toJSON(message.context);
9398
+ }
9399
+ if (message.calldata !== "") {
9400
+ obj.calldata = message.calldata;
9401
+ }
9402
+ return obj;
9403
+ },
9404
+
9405
+ create(base?: DeepPartial<EthCallParam>): EthCallParam {
9406
+ return EthCallParam.fromPartial(base ?? {});
9407
+ },
9408
+ fromPartial(object: DeepPartial<EthCallParam>): EthCallParam {
9409
+ const message = createBaseEthCallParam();
9410
+ message.context = (object.context !== undefined && object.context !== null)
9411
+ ? EthCallContext.fromPartial(object.context)
9412
+ : undefined;
9413
+ message.calldata = object.calldata ?? "";
9414
+ return message;
9415
+ },
9416
+ };
9417
+
9418
+ function createBaseEthCallContext(): EthCallContext {
9419
+ return { chainId: "", address: "", blockTag: "" };
9420
+ }
9421
+
9422
+ export const EthCallContext = {
9423
+ encode(message: EthCallContext, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
9424
+ if (message.chainId !== "") {
9425
+ writer.uint32(10).string(message.chainId);
9426
+ }
9427
+ if (message.address !== "") {
9428
+ writer.uint32(18).string(message.address);
9429
+ }
9430
+ if (message.blockTag !== "") {
9431
+ writer.uint32(26).string(message.blockTag);
9432
+ }
9433
+ return writer;
9434
+ },
9435
+
9436
+ decode(input: _m0.Reader | Uint8Array, length?: number): EthCallContext {
9437
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
9438
+ let end = length === undefined ? reader.len : reader.pos + length;
9439
+ const message = createBaseEthCallContext();
9440
+ while (reader.pos < end) {
9441
+ const tag = reader.uint32();
9442
+ switch (tag >>> 3) {
9443
+ case 1:
9444
+ if (tag !== 10) {
8857
9445
  break;
8858
9446
  }
8859
9447
 
8860
- message.function = reader.string();
9448
+ message.chainId = reader.string();
8861
9449
  continue;
8862
- case 4:
8863
- if (tag !== 34) {
9450
+ case 2:
9451
+ if (tag !== 18) {
8864
9452
  break;
8865
9453
  }
8866
9454
 
8867
- message.signature = reader.string();
9455
+ message.address = reader.string();
8868
9456
  continue;
8869
- case 5:
8870
- if (tag !== 42) {
9457
+ case 3:
9458
+ if (tag !== 26) {
8871
9459
  break;
8872
9460
  }
8873
9461
 
8874
- message.args.push(Value.unwrap(Value.decode(reader, reader.uint32())));
9462
+ message.blockTag = reader.string();
8875
9463
  continue;
8876
9464
  }
8877
9465
  if ((tag & 7) === 4 || tag === 0) {
@@ -8882,17 +9470,15 @@ export const EthCallParam = {
8882
9470
  return message;
8883
9471
  },
8884
9472
 
8885
- fromJSON(object: any): EthCallParam {
9473
+ fromJSON(object: any): EthCallContext {
8886
9474
  return {
8887
9475
  chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
8888
9476
  address: isSet(object.address) ? globalThis.String(object.address) : "",
8889
- function: isSet(object.function) ? globalThis.String(object.function) : "",
8890
- signature: isSet(object.signature) ? globalThis.String(object.signature) : "",
8891
- args: globalThis.Array.isArray(object?.args) ? [...object.args] : [],
9477
+ blockTag: isSet(object.blockTag) ? globalThis.String(object.blockTag) : "",
8892
9478
  };
8893
9479
  },
8894
9480
 
8895
- toJSON(message: EthCallParam): unknown {
9481
+ toJSON(message: EthCallContext): unknown {
8896
9482
  const obj: any = {};
8897
9483
  if (message.chainId !== "") {
8898
9484
  obj.chainId = message.chainId;
@@ -8900,28 +9486,20 @@ export const EthCallParam = {
8900
9486
  if (message.address !== "") {
8901
9487
  obj.address = message.address;
8902
9488
  }
8903
- if (message.function !== "") {
8904
- obj.function = message.function;
8905
- }
8906
- if (message.signature !== "") {
8907
- obj.signature = message.signature;
8908
- }
8909
- if (message.args?.length) {
8910
- obj.args = message.args;
9489
+ if (message.blockTag !== "") {
9490
+ obj.blockTag = message.blockTag;
8911
9491
  }
8912
9492
  return obj;
8913
9493
  },
8914
9494
 
8915
- create(base?: DeepPartial<EthCallParam>): EthCallParam {
8916
- return EthCallParam.fromPartial(base ?? {});
9495
+ create(base?: DeepPartial<EthCallContext>): EthCallContext {
9496
+ return EthCallContext.fromPartial(base ?? {});
8917
9497
  },
8918
- fromPartial(object: DeepPartial<EthCallParam>): EthCallParam {
8919
- const message = createBaseEthCallParam();
9498
+ fromPartial(object: DeepPartial<EthCallContext>): EthCallContext {
9499
+ const message = createBaseEthCallContext();
8920
9500
  message.chainId = object.chainId ?? "";
8921
9501
  message.address = object.address ?? "";
8922
- message.function = object.function ?? "";
8923
- message.signature = object.signature ?? "";
8924
- message.args = object.args?.map((e) => e) || [];
9502
+ message.blockTag = object.blockTag ?? "";
8925
9503
  return message;
8926
9504
  },
8927
9505
  };
@@ -8994,9 +9572,7 @@ function createBasePreparedData(): PreparedData {
8994
9572
  export const PreparedData = {
8995
9573
  encode(message: PreparedData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8996
9574
  Object.entries(message.ethCallResults).forEach(([key, value]) => {
8997
- if (value !== undefined) {
8998
- PreparedData_EthCallResultsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
8999
- }
9575
+ PreparedData_EthCallResultsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim();
9000
9576
  });
9001
9577
  return writer;
9002
9578
  },
@@ -9030,13 +9606,10 @@ export const PreparedData = {
9030
9606
  fromJSON(object: any): PreparedData {
9031
9607
  return {
9032
9608
  ethCallResults: isObject(object.ethCallResults)
9033
- ? Object.entries(object.ethCallResults).reduce<{ [key: string]: Array<any> | undefined }>(
9034
- (acc, [key, value]) => {
9035
- acc[key] = value as Array<any> | undefined;
9036
- return acc;
9037
- },
9038
- {},
9039
- )
9609
+ ? Object.entries(object.ethCallResults).reduce<{ [key: string]: string }>((acc, [key, value]) => {
9610
+ acc[key] = String(value);
9611
+ return acc;
9612
+ }, {})
9040
9613
  : {},
9041
9614
  };
9042
9615
  },
@@ -9060,20 +9633,21 @@ export const PreparedData = {
9060
9633
  },
9061
9634
  fromPartial(object: DeepPartial<PreparedData>): PreparedData {
9062
9635
  const message = createBasePreparedData();
9063
- message.ethCallResults = Object.entries(object.ethCallResults ?? {}).reduce<
9064
- { [key: string]: Array<any> | undefined }
9065
- >((acc, [key, value]) => {
9066
- if (value !== undefined) {
9067
- acc[key] = value;
9068
- }
9069
- return acc;
9070
- }, {});
9636
+ message.ethCallResults = Object.entries(object.ethCallResults ?? {}).reduce<{ [key: string]: string }>(
9637
+ (acc, [key, value]) => {
9638
+ if (value !== undefined) {
9639
+ acc[key] = globalThis.String(value);
9640
+ }
9641
+ return acc;
9642
+ },
9643
+ {},
9644
+ );
9071
9645
  return message;
9072
9646
  },
9073
9647
  };
9074
9648
 
9075
9649
  function createBasePreparedData_EthCallResultsEntry(): PreparedData_EthCallResultsEntry {
9076
- return { key: "", value: undefined };
9650
+ return { key: "", value: "" };
9077
9651
  }
9078
9652
 
9079
9653
  export const PreparedData_EthCallResultsEntry = {
@@ -9081,8 +9655,8 @@ export const PreparedData_EthCallResultsEntry = {
9081
9655
  if (message.key !== "") {
9082
9656
  writer.uint32(10).string(message.key);
9083
9657
  }
9084
- if (message.value !== undefined) {
9085
- ListValue.encode(ListValue.wrap(message.value), writer.uint32(18).fork()).ldelim();
9658
+ if (message.value !== "") {
9659
+ writer.uint32(18).string(message.value);
9086
9660
  }
9087
9661
  return writer;
9088
9662
  },
@@ -9106,7 +9680,7 @@ export const PreparedData_EthCallResultsEntry = {
9106
9680
  break;
9107
9681
  }
9108
9682
 
9109
- message.value = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));
9683
+ message.value = reader.string();
9110
9684
  continue;
9111
9685
  }
9112
9686
  if ((tag & 7) === 4 || tag === 0) {
@@ -9120,7 +9694,7 @@ export const PreparedData_EthCallResultsEntry = {
9120
9694
  fromJSON(object: any): PreparedData_EthCallResultsEntry {
9121
9695
  return {
9122
9696
  key: isSet(object.key) ? globalThis.String(object.key) : "",
9123
- value: globalThis.Array.isArray(object.value) ? [...object.value] : undefined,
9697
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
9124
9698
  };
9125
9699
  },
9126
9700
 
@@ -9129,7 +9703,7 @@ export const PreparedData_EthCallResultsEntry = {
9129
9703
  if (message.key !== "") {
9130
9704
  obj.key = message.key;
9131
9705
  }
9132
- if (message.value !== undefined) {
9706
+ if (message.value !== "") {
9133
9707
  obj.value = message.value;
9134
9708
  }
9135
9709
  return obj;
@@ -9141,7 +9715,7 @@ export const PreparedData_EthCallResultsEntry = {
9141
9715
  fromPartial(object: DeepPartial<PreparedData_EthCallResultsEntry>): PreparedData_EthCallResultsEntry {
9142
9716
  const message = createBasePreparedData_EthCallResultsEntry();
9143
9717
  message.key = object.key ?? "";
9144
- message.value = object.value ?? undefined;
9718
+ message.value = object.value ?? "";
9145
9719
  return message;
9146
9720
  },
9147
9721
  };
@@ -10221,6 +10795,14 @@ export const ProcessorDefinition = {
10221
10795
  responseStream: true,
10222
10796
  options: {},
10223
10797
  },
10798
+ preprocessBindingsStream: {
10799
+ name: "PreprocessBindingsStream",
10800
+ requestType: PreprocessStreamRequest,
10801
+ requestStream: true,
10802
+ responseType: PreprocessStreamResponse,
10803
+ responseStream: true,
10804
+ options: {},
10805
+ },
10224
10806
  },
10225
10807
  } as const;
10226
10808
 
@@ -10239,6 +10821,10 @@ export interface ProcessorServiceImplementation<CallContextExt = {}> {
10239
10821
  request: AsyncIterable<ProcessStreamRequest>,
10240
10822
  context: CallContext & CallContextExt,
10241
10823
  ): ServerStreamingMethodResult<DeepPartial<ProcessStreamResponse>>;
10824
+ preprocessBindingsStream(
10825
+ request: AsyncIterable<PreprocessStreamRequest>,
10826
+ context: CallContext & CallContextExt,
10827
+ ): ServerStreamingMethodResult<DeepPartial<PreprocessStreamResponse>>;
10242
10828
  }
10243
10829
 
10244
10830
  export interface ProcessorClient<CallOptionsExt = {}> {
@@ -10256,6 +10842,10 @@ export interface ProcessorClient<CallOptionsExt = {}> {
10256
10842
  request: AsyncIterable<DeepPartial<ProcessStreamRequest>>,
10257
10843
  options?: CallOptions & CallOptionsExt,
10258
10844
  ): AsyncIterable<ProcessStreamResponse>;
10845
+ preprocessBindingsStream(
10846
+ request: AsyncIterable<DeepPartial<PreprocessStreamRequest>>,
10847
+ options?: CallOptions & CallOptionsExt,
10848
+ ): AsyncIterable<PreprocessStreamResponse>;
10259
10849
  }
10260
10850
 
10261
10851
  function bytesFromBase64(b64: string): Uint8Array {