@sentio/runtime 2.54.3-rc.1 → 2.55.0-rc.2

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.
@@ -437,7 +437,9 @@ export interface ContractConfig {
437
437
  moveEventConfigs: MoveEventHandlerConfig[];
438
438
  moveCallConfigs: MoveCallHandlerConfig[];
439
439
  moveResourceChangeConfigs: MoveResourceChangeConfig[];
440
+ /** @deprecated */
440
441
  fuelCallConfigs: FuelCallHandlerConfig[];
442
+ fuelTransactionConfigs: FuelTransactionHandlerConfig[];
441
443
  assetConfigs: FuelAssetHandlerConfig[];
442
444
  fuelLogConfigs: FuelLogHandlerConfig[];
443
445
  cosmosLogConfigs: CosmosLogHandlerConfig[];
@@ -856,6 +858,11 @@ export interface FuelCallHandlerConfig {
856
858
  handlerName: string;
857
859
  }
858
860
 
861
+ export interface FuelTransactionHandlerConfig {
862
+ handlerId: number;
863
+ handlerName: string;
864
+ }
865
+
859
866
  export interface Topic {
860
867
  hashes: string[];
861
868
  }
@@ -1053,8 +1060,6 @@ export interface DBRequest_DBFilter {
1053
1060
  }
1054
1061
 
1055
1062
  export interface Data {
1056
- /** @deprecated */
1057
- raw: Uint8Array;
1058
1063
  ethLog?: Data_EthLog | undefined;
1059
1064
  ethBlock?: Data_EthBlock | undefined;
1060
1065
  ethTransaction?: Data_EthTransaction | undefined;
@@ -1117,16 +1122,21 @@ export interface Data_SolInstruction {
1117
1122
  }
1118
1123
 
1119
1124
  export interface Data_AptEvent {
1125
+ rawEvent: string;
1126
+ eventIndex: number;
1127
+ /** @deprecated */
1120
1128
  transaction: { [key: string]: any } | undefined;
1121
1129
  rawTransaction: string;
1122
1130
  }
1123
1131
 
1124
1132
  export interface Data_AptCall {
1133
+ /** @deprecated */
1125
1134
  transaction: { [key: string]: any } | undefined;
1126
1135
  rawTransaction: string;
1127
1136
  }
1128
1137
 
1129
1138
  export interface Data_AptResource {
1139
+ /** @deprecated */
1130
1140
  resources: { [key: string]: any }[];
1131
1141
  version: bigint;
1132
1142
  timestampMicros: bigint;
@@ -1134,20 +1144,29 @@ export interface Data_AptResource {
1134
1144
  }
1135
1145
 
1136
1146
  export interface Data_SuiEvent {
1147
+ /** @deprecated */
1137
1148
  transaction: { [key: string]: any } | undefined;
1149
+ rawEvent: string;
1150
+ rawTransaction: string;
1138
1151
  timestamp: Date | undefined;
1139
1152
  slot: bigint;
1140
1153
  }
1141
1154
 
1142
1155
  export interface Data_SuiCall {
1156
+ /** @deprecated */
1143
1157
  transaction: { [key: string]: any } | undefined;
1158
+ rawTransaction: string;
1144
1159
  timestamp: Date | undefined;
1145
1160
  slot: bigint;
1146
1161
  }
1147
1162
 
1148
1163
  export interface Data_SuiObject {
1164
+ /** @deprecated */
1149
1165
  objects: { [key: string]: any }[];
1166
+ /** @deprecated */
1150
1167
  self?: { [key: string]: any } | undefined;
1168
+ rawObjects: string[];
1169
+ rawSelf?: string | undefined;
1151
1170
  objectId: string;
1152
1171
  objectVersion: bigint;
1153
1172
  objectDigest: string;
@@ -1156,7 +1175,9 @@ export interface Data_SuiObject {
1156
1175
  }
1157
1176
 
1158
1177
  export interface Data_SuiObjectChange {
1178
+ /** @deprecated */
1159
1179
  changes: { [key: string]: any }[];
1180
+ rawChanges: string[];
1160
1181
  timestamp: Date | undefined;
1161
1182
  txDigest: string;
1162
1183
  slot: bigint;
@@ -1797,6 +1818,7 @@ function createBaseContractConfig(): ContractConfig {
1797
1818
  moveCallConfigs: [],
1798
1819
  moveResourceChangeConfigs: [],
1799
1820
  fuelCallConfigs: [],
1821
+ fuelTransactionConfigs: [],
1800
1822
  assetConfigs: [],
1801
1823
  fuelLogConfigs: [],
1802
1824
  cosmosLogConfigs: [],
@@ -1841,6 +1863,9 @@ export const ContractConfig = {
1841
1863
  for (const v of message.fuelCallConfigs) {
1842
1864
  FuelCallHandlerConfig.encode(v!, writer.uint32(106).fork()).ldelim();
1843
1865
  }
1866
+ for (const v of message.fuelTransactionConfigs) {
1867
+ FuelTransactionHandlerConfig.encode(v!, writer.uint32(162).fork()).ldelim();
1868
+ }
1844
1869
  for (const v of message.assetConfigs) {
1845
1870
  FuelAssetHandlerConfig.encode(v!, writer.uint32(114).fork()).ldelim();
1846
1871
  }
@@ -1954,6 +1979,13 @@ export const ContractConfig = {
1954
1979
 
1955
1980
  message.fuelCallConfigs.push(FuelCallHandlerConfig.decode(reader, reader.uint32()));
1956
1981
  continue;
1982
+ case 20:
1983
+ if (tag !== 162) {
1984
+ break;
1985
+ }
1986
+
1987
+ message.fuelTransactionConfigs.push(FuelTransactionHandlerConfig.decode(reader, reader.uint32()));
1988
+ continue;
1957
1989
  case 14:
1958
1990
  if (tag !== 114) {
1959
1991
  break;
@@ -2056,6 +2088,9 @@ export const ContractConfig = {
2056
2088
  fuelCallConfigs: globalThis.Array.isArray(object?.fuelCallConfigs)
2057
2089
  ? object.fuelCallConfigs.map((e: any) => FuelCallHandlerConfig.fromJSON(e))
2058
2090
  : [],
2091
+ fuelTransactionConfigs: globalThis.Array.isArray(object?.fuelTransactionConfigs)
2092
+ ? object.fuelTransactionConfigs.map((e: any) => FuelTransactionHandlerConfig.fromJSON(e))
2093
+ : [],
2059
2094
  assetConfigs: globalThis.Array.isArray(object?.assetConfigs)
2060
2095
  ? object.assetConfigs.map((e: any) => FuelAssetHandlerConfig.fromJSON(e))
2061
2096
  : [],
@@ -2112,6 +2147,9 @@ export const ContractConfig = {
2112
2147
  if (message.fuelCallConfigs?.length) {
2113
2148
  obj.fuelCallConfigs = message.fuelCallConfigs.map((e) => FuelCallHandlerConfig.toJSON(e));
2114
2149
  }
2150
+ if (message.fuelTransactionConfigs?.length) {
2151
+ obj.fuelTransactionConfigs = message.fuelTransactionConfigs.map((e) => FuelTransactionHandlerConfig.toJSON(e));
2152
+ }
2115
2153
  if (message.assetConfigs?.length) {
2116
2154
  obj.assetConfigs = message.assetConfigs.map((e) => FuelAssetHandlerConfig.toJSON(e));
2117
2155
  }
@@ -2160,6 +2198,8 @@ export const ContractConfig = {
2160
2198
  message.moveResourceChangeConfigs =
2161
2199
  object.moveResourceChangeConfigs?.map((e) => MoveResourceChangeConfig.fromPartial(e)) || [];
2162
2200
  message.fuelCallConfigs = object.fuelCallConfigs?.map((e) => FuelCallHandlerConfig.fromPartial(e)) || [];
2201
+ message.fuelTransactionConfigs =
2202
+ object.fuelTransactionConfigs?.map((e) => FuelTransactionHandlerConfig.fromPartial(e)) || [];
2163
2203
  message.assetConfigs = object.assetConfigs?.map((e) => FuelAssetHandlerConfig.fromPartial(e)) || [];
2164
2204
  message.fuelLogConfigs = object.fuelLogConfigs?.map((e) => FuelLogHandlerConfig.fromPartial(e)) || [];
2165
2205
  message.cosmosLogConfigs = object.cosmosLogConfigs?.map((e) => CosmosLogHandlerConfig.fromPartial(e)) || [];
@@ -7109,6 +7149,80 @@ export const FuelCallHandlerConfig = {
7109
7149
  },
7110
7150
  };
7111
7151
 
7152
+ function createBaseFuelTransactionHandlerConfig(): FuelTransactionHandlerConfig {
7153
+ return { handlerId: 0, handlerName: "" };
7154
+ }
7155
+
7156
+ export const FuelTransactionHandlerConfig = {
7157
+ encode(message: FuelTransactionHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
7158
+ if (message.handlerId !== 0) {
7159
+ writer.uint32(8).int32(message.handlerId);
7160
+ }
7161
+ if (message.handlerName !== "") {
7162
+ writer.uint32(18).string(message.handlerName);
7163
+ }
7164
+ return writer;
7165
+ },
7166
+
7167
+ decode(input: _m0.Reader | Uint8Array, length?: number): FuelTransactionHandlerConfig {
7168
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7169
+ let end = length === undefined ? reader.len : reader.pos + length;
7170
+ const message = createBaseFuelTransactionHandlerConfig();
7171
+ while (reader.pos < end) {
7172
+ const tag = reader.uint32();
7173
+ switch (tag >>> 3) {
7174
+ case 1:
7175
+ if (tag !== 8) {
7176
+ break;
7177
+ }
7178
+
7179
+ message.handlerId = reader.int32();
7180
+ continue;
7181
+ case 2:
7182
+ if (tag !== 18) {
7183
+ break;
7184
+ }
7185
+
7186
+ message.handlerName = reader.string();
7187
+ continue;
7188
+ }
7189
+ if ((tag & 7) === 4 || tag === 0) {
7190
+ break;
7191
+ }
7192
+ reader.skipType(tag & 7);
7193
+ }
7194
+ return message;
7195
+ },
7196
+
7197
+ fromJSON(object: any): FuelTransactionHandlerConfig {
7198
+ return {
7199
+ handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
7200
+ handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
7201
+ };
7202
+ },
7203
+
7204
+ toJSON(message: FuelTransactionHandlerConfig): unknown {
7205
+ const obj: any = {};
7206
+ if (message.handlerId !== 0) {
7207
+ obj.handlerId = Math.round(message.handlerId);
7208
+ }
7209
+ if (message.handlerName !== "") {
7210
+ obj.handlerName = message.handlerName;
7211
+ }
7212
+ return obj;
7213
+ },
7214
+
7215
+ create(base?: DeepPartial<FuelTransactionHandlerConfig>): FuelTransactionHandlerConfig {
7216
+ return FuelTransactionHandlerConfig.fromPartial(base ?? {});
7217
+ },
7218
+ fromPartial(object: DeepPartial<FuelTransactionHandlerConfig>): FuelTransactionHandlerConfig {
7219
+ const message = createBaseFuelTransactionHandlerConfig();
7220
+ message.handlerId = object.handlerId ?? 0;
7221
+ message.handlerName = object.handlerName ?? "";
7222
+ return message;
7223
+ },
7224
+ };
7225
+
7112
7226
  function createBaseTopic(): Topic {
7113
7227
  return { hashes: [] };
7114
7228
  }
@@ -8651,7 +8765,6 @@ export const DBRequest_DBFilter = {
8651
8765
 
8652
8766
  function createBaseData(): Data {
8653
8767
  return {
8654
- raw: new Uint8Array(0),
8655
8768
  ethLog: undefined,
8656
8769
  ethBlock: undefined,
8657
8770
  ethTransaction: undefined,
@@ -8677,9 +8790,6 @@ function createBaseData(): Data {
8677
8790
 
8678
8791
  export const Data = {
8679
8792
  encode(message: Data, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8680
- if (message.raw.length !== 0) {
8681
- writer.uint32(10).bytes(message.raw);
8682
- }
8683
8793
  if (message.ethLog !== undefined) {
8684
8794
  Data_EthLog.encode(message.ethLog, writer.uint32(18).fork()).ldelim();
8685
8795
  }
@@ -8750,13 +8860,6 @@ export const Data = {
8750
8860
  while (reader.pos < end) {
8751
8861
  const tag = reader.uint32();
8752
8862
  switch (tag >>> 3) {
8753
- case 1:
8754
- if (tag !== 10) {
8755
- break;
8756
- }
8757
-
8758
- message.raw = reader.bytes();
8759
- continue;
8760
8863
  case 2:
8761
8864
  if (tag !== 18) {
8762
8865
  break;
@@ -8908,7 +9011,6 @@ export const Data = {
8908
9011
 
8909
9012
  fromJSON(object: any): Data {
8910
9013
  return {
8911
- raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(0),
8912
9014
  ethLog: isSet(object.ethLog) ? Data_EthLog.fromJSON(object.ethLog) : undefined,
8913
9015
  ethBlock: isSet(object.ethBlock) ? Data_EthBlock.fromJSON(object.ethBlock) : undefined,
8914
9016
  ethTransaction: isSet(object.ethTransaction) ? Data_EthTransaction.fromJSON(object.ethTransaction) : undefined,
@@ -8938,9 +9040,6 @@ export const Data = {
8938
9040
 
8939
9041
  toJSON(message: Data): unknown {
8940
9042
  const obj: any = {};
8941
- if (message.raw.length !== 0) {
8942
- obj.raw = base64FromBytes(message.raw);
8943
- }
8944
9043
  if (message.ethLog !== undefined) {
8945
9044
  obj.ethLog = Data_EthLog.toJSON(message.ethLog);
8946
9045
  }
@@ -9009,7 +9108,6 @@ export const Data = {
9009
9108
  },
9010
9109
  fromPartial(object: DeepPartial<Data>): Data {
9011
9110
  const message = createBaseData();
9012
- message.raw = object.raw ?? new Uint8Array(0);
9013
9111
  message.ethLog = (object.ethLog !== undefined && object.ethLog !== null)
9014
9112
  ? Data_EthLog.fromPartial(object.ethLog)
9015
9113
  : undefined;
@@ -9629,11 +9727,17 @@ export const Data_SolInstruction = {
9629
9727
  };
9630
9728
 
9631
9729
  function createBaseData_AptEvent(): Data_AptEvent {
9632
- return { transaction: undefined, rawTransaction: "" };
9730
+ return { rawEvent: "", eventIndex: 0, transaction: undefined, rawTransaction: "" };
9633
9731
  }
9634
9732
 
9635
9733
  export const Data_AptEvent = {
9636
9734
  encode(message: Data_AptEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
9735
+ if (message.rawEvent !== "") {
9736
+ writer.uint32(10).string(message.rawEvent);
9737
+ }
9738
+ if (message.eventIndex !== 0) {
9739
+ writer.uint32(32).int32(message.eventIndex);
9740
+ }
9637
9741
  if (message.transaction !== undefined) {
9638
9742
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
9639
9743
  }
@@ -9650,6 +9754,20 @@ export const Data_AptEvent = {
9650
9754
  while (reader.pos < end) {
9651
9755
  const tag = reader.uint32();
9652
9756
  switch (tag >>> 3) {
9757
+ case 1:
9758
+ if (tag !== 10) {
9759
+ break;
9760
+ }
9761
+
9762
+ message.rawEvent = reader.string();
9763
+ continue;
9764
+ case 4:
9765
+ if (tag !== 32) {
9766
+ break;
9767
+ }
9768
+
9769
+ message.eventIndex = reader.int32();
9770
+ continue;
9653
9771
  case 2:
9654
9772
  if (tag !== 18) {
9655
9773
  break;
@@ -9675,6 +9793,8 @@ export const Data_AptEvent = {
9675
9793
 
9676
9794
  fromJSON(object: any): Data_AptEvent {
9677
9795
  return {
9796
+ rawEvent: isSet(object.rawEvent) ? globalThis.String(object.rawEvent) : "",
9797
+ eventIndex: isSet(object.eventIndex) ? globalThis.Number(object.eventIndex) : 0,
9678
9798
  transaction: isObject(object.transaction) ? object.transaction : undefined,
9679
9799
  rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
9680
9800
  };
@@ -9682,6 +9802,12 @@ export const Data_AptEvent = {
9682
9802
 
9683
9803
  toJSON(message: Data_AptEvent): unknown {
9684
9804
  const obj: any = {};
9805
+ if (message.rawEvent !== "") {
9806
+ obj.rawEvent = message.rawEvent;
9807
+ }
9808
+ if (message.eventIndex !== 0) {
9809
+ obj.eventIndex = Math.round(message.eventIndex);
9810
+ }
9685
9811
  if (message.transaction !== undefined) {
9686
9812
  obj.transaction = message.transaction;
9687
9813
  }
@@ -9696,6 +9822,8 @@ export const Data_AptEvent = {
9696
9822
  },
9697
9823
  fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent {
9698
9824
  const message = createBaseData_AptEvent();
9825
+ message.rawEvent = object.rawEvent ?? "";
9826
+ message.eventIndex = object.eventIndex ?? 0;
9699
9827
  message.transaction = object.transaction ?? undefined;
9700
9828
  message.rawTransaction = object.rawTransaction ?? "";
9701
9829
  return message;
@@ -9889,7 +10017,7 @@ export const Data_AptResource = {
9889
10017
  };
9890
10018
 
9891
10019
  function createBaseData_SuiEvent(): Data_SuiEvent {
9892
- return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
10020
+ return { transaction: undefined, rawEvent: "", rawTransaction: "", timestamp: undefined, slot: BigInt("0") };
9893
10021
  }
9894
10022
 
9895
10023
  export const Data_SuiEvent = {
@@ -9897,6 +10025,12 @@ export const Data_SuiEvent = {
9897
10025
  if (message.transaction !== undefined) {
9898
10026
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
9899
10027
  }
10028
+ if (message.rawEvent !== "") {
10029
+ writer.uint32(34).string(message.rawEvent);
10030
+ }
10031
+ if (message.rawTransaction !== "") {
10032
+ writer.uint32(42).string(message.rawTransaction);
10033
+ }
9900
10034
  if (message.timestamp !== undefined) {
9901
10035
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
9902
10036
  }
@@ -9923,6 +10057,20 @@ export const Data_SuiEvent = {
9923
10057
 
9924
10058
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
9925
10059
  continue;
10060
+ case 4:
10061
+ if (tag !== 34) {
10062
+ break;
10063
+ }
10064
+
10065
+ message.rawEvent = reader.string();
10066
+ continue;
10067
+ case 5:
10068
+ if (tag !== 42) {
10069
+ break;
10070
+ }
10071
+
10072
+ message.rawTransaction = reader.string();
10073
+ continue;
9926
10074
  case 2:
9927
10075
  if (tag !== 18) {
9928
10076
  break;
@@ -9949,6 +10097,8 @@ export const Data_SuiEvent = {
9949
10097
  fromJSON(object: any): Data_SuiEvent {
9950
10098
  return {
9951
10099
  transaction: isObject(object.transaction) ? object.transaction : undefined,
10100
+ rawEvent: isSet(object.rawEvent) ? globalThis.String(object.rawEvent) : "",
10101
+ rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
9952
10102
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
9953
10103
  slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
9954
10104
  };
@@ -9959,6 +10109,12 @@ export const Data_SuiEvent = {
9959
10109
  if (message.transaction !== undefined) {
9960
10110
  obj.transaction = message.transaction;
9961
10111
  }
10112
+ if (message.rawEvent !== "") {
10113
+ obj.rawEvent = message.rawEvent;
10114
+ }
10115
+ if (message.rawTransaction !== "") {
10116
+ obj.rawTransaction = message.rawTransaction;
10117
+ }
9962
10118
  if (message.timestamp !== undefined) {
9963
10119
  obj.timestamp = message.timestamp.toISOString();
9964
10120
  }
@@ -9974,6 +10130,8 @@ export const Data_SuiEvent = {
9974
10130
  fromPartial(object: DeepPartial<Data_SuiEvent>): Data_SuiEvent {
9975
10131
  const message = createBaseData_SuiEvent();
9976
10132
  message.transaction = object.transaction ?? undefined;
10133
+ message.rawEvent = object.rawEvent ?? "";
10134
+ message.rawTransaction = object.rawTransaction ?? "";
9977
10135
  message.timestamp = object.timestamp ?? undefined;
9978
10136
  message.slot = object.slot ?? BigInt("0");
9979
10137
  return message;
@@ -9981,7 +10139,7 @@ export const Data_SuiEvent = {
9981
10139
  };
9982
10140
 
9983
10141
  function createBaseData_SuiCall(): Data_SuiCall {
9984
- return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
10142
+ return { transaction: undefined, rawTransaction: "", timestamp: undefined, slot: BigInt("0") };
9985
10143
  }
9986
10144
 
9987
10145
  export const Data_SuiCall = {
@@ -9989,6 +10147,9 @@ export const Data_SuiCall = {
9989
10147
  if (message.transaction !== undefined) {
9990
10148
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
9991
10149
  }
10150
+ if (message.rawTransaction !== "") {
10151
+ writer.uint32(34).string(message.rawTransaction);
10152
+ }
9992
10153
  if (message.timestamp !== undefined) {
9993
10154
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
9994
10155
  }
@@ -10015,6 +10176,13 @@ export const Data_SuiCall = {
10015
10176
 
10016
10177
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10017
10178
  continue;
10179
+ case 4:
10180
+ if (tag !== 34) {
10181
+ break;
10182
+ }
10183
+
10184
+ message.rawTransaction = reader.string();
10185
+ continue;
10018
10186
  case 2:
10019
10187
  if (tag !== 18) {
10020
10188
  break;
@@ -10041,6 +10209,7 @@ export const Data_SuiCall = {
10041
10209
  fromJSON(object: any): Data_SuiCall {
10042
10210
  return {
10043
10211
  transaction: isObject(object.transaction) ? object.transaction : undefined,
10212
+ rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
10044
10213
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
10045
10214
  slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
10046
10215
  };
@@ -10051,6 +10220,9 @@ export const Data_SuiCall = {
10051
10220
  if (message.transaction !== undefined) {
10052
10221
  obj.transaction = message.transaction;
10053
10222
  }
10223
+ if (message.rawTransaction !== "") {
10224
+ obj.rawTransaction = message.rawTransaction;
10225
+ }
10054
10226
  if (message.timestamp !== undefined) {
10055
10227
  obj.timestamp = message.timestamp.toISOString();
10056
10228
  }
@@ -10066,6 +10238,7 @@ export const Data_SuiCall = {
10066
10238
  fromPartial(object: DeepPartial<Data_SuiCall>): Data_SuiCall {
10067
10239
  const message = createBaseData_SuiCall();
10068
10240
  message.transaction = object.transaction ?? undefined;
10241
+ message.rawTransaction = object.rawTransaction ?? "";
10069
10242
  message.timestamp = object.timestamp ?? undefined;
10070
10243
  message.slot = object.slot ?? BigInt("0");
10071
10244
  return message;
@@ -10076,6 +10249,8 @@ function createBaseData_SuiObject(): Data_SuiObject {
10076
10249
  return {
10077
10250
  objects: [],
10078
10251
  self: undefined,
10252
+ rawObjects: [],
10253
+ rawSelf: undefined,
10079
10254
  objectId: "",
10080
10255
  objectVersion: BigInt("0"),
10081
10256
  objectDigest: "",
@@ -10092,6 +10267,12 @@ export const Data_SuiObject = {
10092
10267
  if (message.self !== undefined) {
10093
10268
  Struct.encode(Struct.wrap(message.self), writer.uint32(34).fork()).ldelim();
10094
10269
  }
10270
+ for (const v of message.rawObjects) {
10271
+ writer.uint32(82).string(v!);
10272
+ }
10273
+ if (message.rawSelf !== undefined) {
10274
+ writer.uint32(74).string(message.rawSelf);
10275
+ }
10095
10276
  if (message.objectId !== "") {
10096
10277
  writer.uint32(42).string(message.objectId);
10097
10278
  }
@@ -10137,6 +10318,20 @@ export const Data_SuiObject = {
10137
10318
 
10138
10319
  message.self = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10139
10320
  continue;
10321
+ case 10:
10322
+ if (tag !== 82) {
10323
+ break;
10324
+ }
10325
+
10326
+ message.rawObjects.push(reader.string());
10327
+ continue;
10328
+ case 9:
10329
+ if (tag !== 74) {
10330
+ break;
10331
+ }
10332
+
10333
+ message.rawSelf = reader.string();
10334
+ continue;
10140
10335
  case 5:
10141
10336
  if (tag !== 42) {
10142
10337
  break;
@@ -10185,6 +10380,10 @@ export const Data_SuiObject = {
10185
10380
  return {
10186
10381
  objects: globalThis.Array.isArray(object?.objects) ? [...object.objects] : [],
10187
10382
  self: isObject(object.self) ? object.self : undefined,
10383
+ rawObjects: globalThis.Array.isArray(object?.rawObjects)
10384
+ ? object.rawObjects.map((e: any) => globalThis.String(e))
10385
+ : [],
10386
+ rawSelf: isSet(object.rawSelf) ? globalThis.String(object.rawSelf) : undefined,
10188
10387
  objectId: isSet(object.objectId) ? globalThis.String(object.objectId) : "",
10189
10388
  objectVersion: isSet(object.objectVersion) ? BigInt(object.objectVersion) : BigInt("0"),
10190
10389
  objectDigest: isSet(object.objectDigest) ? globalThis.String(object.objectDigest) : "",
@@ -10201,6 +10400,12 @@ export const Data_SuiObject = {
10201
10400
  if (message.self !== undefined) {
10202
10401
  obj.self = message.self;
10203
10402
  }
10403
+ if (message.rawObjects?.length) {
10404
+ obj.rawObjects = message.rawObjects;
10405
+ }
10406
+ if (message.rawSelf !== undefined) {
10407
+ obj.rawSelf = message.rawSelf;
10408
+ }
10204
10409
  if (message.objectId !== "") {
10205
10410
  obj.objectId = message.objectId;
10206
10411
  }
@@ -10226,6 +10431,8 @@ export const Data_SuiObject = {
10226
10431
  const message = createBaseData_SuiObject();
10227
10432
  message.objects = object.objects?.map((e) => e) || [];
10228
10433
  message.self = object.self ?? undefined;
10434
+ message.rawObjects = object.rawObjects?.map((e) => e) || [];
10435
+ message.rawSelf = object.rawSelf ?? undefined;
10229
10436
  message.objectId = object.objectId ?? "";
10230
10437
  message.objectVersion = object.objectVersion ?? BigInt("0");
10231
10438
  message.objectDigest = object.objectDigest ?? "";
@@ -10236,7 +10443,7 @@ export const Data_SuiObject = {
10236
10443
  };
10237
10444
 
10238
10445
  function createBaseData_SuiObjectChange(): Data_SuiObjectChange {
10239
- return { changes: [], timestamp: undefined, txDigest: "", slot: BigInt("0") };
10446
+ return { changes: [], rawChanges: [], timestamp: undefined, txDigest: "", slot: BigInt("0") };
10240
10447
  }
10241
10448
 
10242
10449
  export const Data_SuiObjectChange = {
@@ -10244,6 +10451,9 @@ export const Data_SuiObjectChange = {
10244
10451
  for (const v of message.changes) {
10245
10452
  Struct.encode(Struct.wrap(v!), writer.uint32(10).fork()).ldelim();
10246
10453
  }
10454
+ for (const v of message.rawChanges) {
10455
+ writer.uint32(42).string(v!);
10456
+ }
10247
10457
  if (message.timestamp !== undefined) {
10248
10458
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
10249
10459
  }
@@ -10273,6 +10483,13 @@ export const Data_SuiObjectChange = {
10273
10483
 
10274
10484
  message.changes.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
10275
10485
  continue;
10486
+ case 5:
10487
+ if (tag !== 42) {
10488
+ break;
10489
+ }
10490
+
10491
+ message.rawChanges.push(reader.string());
10492
+ continue;
10276
10493
  case 2:
10277
10494
  if (tag !== 18) {
10278
10495
  break;
@@ -10306,6 +10523,9 @@ export const Data_SuiObjectChange = {
10306
10523
  fromJSON(object: any): Data_SuiObjectChange {
10307
10524
  return {
10308
10525
  changes: globalThis.Array.isArray(object?.changes) ? [...object.changes] : [],
10526
+ rawChanges: globalThis.Array.isArray(object?.rawChanges)
10527
+ ? object.rawChanges.map((e: any) => globalThis.String(e))
10528
+ : [],
10309
10529
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
10310
10530
  txDigest: isSet(object.txDigest) ? globalThis.String(object.txDigest) : "",
10311
10531
  slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
@@ -10317,6 +10537,9 @@ export const Data_SuiObjectChange = {
10317
10537
  if (message.changes?.length) {
10318
10538
  obj.changes = message.changes;
10319
10539
  }
10540
+ if (message.rawChanges?.length) {
10541
+ obj.rawChanges = message.rawChanges;
10542
+ }
10320
10543
  if (message.timestamp !== undefined) {
10321
10544
  obj.timestamp = message.timestamp.toISOString();
10322
10545
  }
@@ -10335,6 +10558,7 @@ export const Data_SuiObjectChange = {
10335
10558
  fromPartial(object: DeepPartial<Data_SuiObjectChange>): Data_SuiObjectChange {
10336
10559
  const message = createBaseData_SuiObjectChange();
10337
10560
  message.changes = object.changes?.map((e) => e) || [];
10561
+ message.rawChanges = object.rawChanges?.map((e) => e) || [];
10338
10562
  message.timestamp = object.timestamp ?? undefined;
10339
10563
  message.txDigest = object.txDigest ?? "";
10340
10564
  message.slot = object.slot ?? BigInt("0");
@@ -12798,31 +13022,6 @@ export interface ProcessorClient<CallOptionsExt = {}> {
12798
13022
  ): AsyncIterable<PreprocessStreamResponse>;
12799
13023
  }
12800
13024
 
12801
- function bytesFromBase64(b64: string): Uint8Array {
12802
- if ((globalThis as any).Buffer) {
12803
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
12804
- } else {
12805
- const bin = globalThis.atob(b64);
12806
- const arr = new Uint8Array(bin.length);
12807
- for (let i = 0; i < bin.length; ++i) {
12808
- arr[i] = bin.charCodeAt(i);
12809
- }
12810
- return arr;
12811
- }
12812
- }
12813
-
12814
- function base64FromBytes(arr: Uint8Array): string {
12815
- if ((globalThis as any).Buffer) {
12816
- return globalThis.Buffer.from(arr).toString("base64");
12817
- } else {
12818
- const bin: string[] = [];
12819
- arr.forEach((byte) => {
12820
- bin.push(globalThis.String.fromCharCode(byte));
12821
- });
12822
- return globalThis.btoa(bin.join(""));
12823
- }
12824
- }
12825
-
12826
13025
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
12827
13026
 
12828
13027
  type DeepPartial<T> = T extends Builtin ? T