@sentio/protos 2.8.0 → 2.9.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.
@@ -36,6 +36,7 @@ export declare enum HandlerType {
36
36
  APT_RESOURCE = 8,
37
37
  SUI_EVENT = 3,
38
38
  SUI_CALL = 9,
39
+ SUI_OBJECT = 10,
39
40
  UNRECOGNIZED = -1
40
41
  }
41
42
  export declare function handlerTypeFromJSON(object: any): HandlerType;
@@ -123,6 +124,7 @@ export interface AccountConfig {
123
124
  startBlock: bigint;
124
125
  intervalConfigs: OnIntervalConfig[];
125
126
  aptosIntervalConfigs: AptosOnIntervalConfig[];
127
+ suiIntervalConfigs: SuiOnIntervalConfig[];
126
128
  logConfigs: LogHandlerConfig[];
127
129
  }
128
130
  export interface HandleInterval {
@@ -140,6 +142,9 @@ export interface AptosOnIntervalConfig {
140
142
  intervalConfig: OnIntervalConfig | undefined;
141
143
  type: string;
142
144
  }
145
+ export interface SuiOnIntervalConfig {
146
+ intervalConfig: OnIntervalConfig | undefined;
147
+ }
143
148
  export interface ContractInfo {
144
149
  name: string;
145
150
  chainId: string;
@@ -231,6 +236,7 @@ export interface Data {
231
236
  aptResource?: Data_AptResource | undefined;
232
237
  suiEvent?: Data_SuiEvent | undefined;
233
238
  suiCall?: Data_SuiCall | undefined;
239
+ suiObject?: Data_SuiObject | undefined;
234
240
  }
235
241
  export interface Data_EthLog {
236
242
  log: {
@@ -319,6 +325,13 @@ export interface Data_SuiCall {
319
325
  timestamp: Date | undefined;
320
326
  slot: bigint;
321
327
  }
328
+ export interface Data_SuiObject {
329
+ objects: {
330
+ [key: string]: any;
331
+ } | undefined;
332
+ timestamp: Date | undefined;
333
+ slot: bigint;
334
+ }
322
335
  export interface DataBinding {
323
336
  data: Data | undefined;
324
337
  handlerType: HandlerType;
@@ -498,6 +511,14 @@ export declare const AptosOnIntervalConfig: {
498
511
  create(base?: DeepPartial<AptosOnIntervalConfig>): AptosOnIntervalConfig;
499
512
  fromPartial(object: DeepPartial<AptosOnIntervalConfig>): AptosOnIntervalConfig;
500
513
  };
514
+ export declare const SuiOnIntervalConfig: {
515
+ encode(message: SuiOnIntervalConfig, writer?: _m0.Writer): _m0.Writer;
516
+ decode(input: _m0.Reader | Uint8Array, length?: number): SuiOnIntervalConfig;
517
+ fromJSON(object: any): SuiOnIntervalConfig;
518
+ toJSON(message: SuiOnIntervalConfig): unknown;
519
+ create(base?: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig;
520
+ fromPartial(object: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig;
521
+ };
501
522
  export declare const ContractInfo: {
502
523
  encode(message: ContractInfo, writer?: _m0.Writer): _m0.Writer;
503
524
  decode(input: _m0.Reader | Uint8Array, length?: number): ContractInfo;
@@ -730,6 +751,14 @@ export declare const Data_SuiCall: {
730
751
  create(base?: DeepPartial<Data_SuiCall>): Data_SuiCall;
731
752
  fromPartial(object: DeepPartial<Data_SuiCall>): Data_SuiCall;
732
753
  };
754
+ export declare const Data_SuiObject: {
755
+ encode(message: Data_SuiObject, writer?: _m0.Writer): _m0.Writer;
756
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_SuiObject;
757
+ fromJSON(object: any): Data_SuiObject;
758
+ toJSON(message: Data_SuiObject): unknown;
759
+ create(base?: DeepPartial<Data_SuiObject>): Data_SuiObject;
760
+ fromPartial(object: DeepPartial<Data_SuiObject>): Data_SuiObject;
761
+ };
733
762
  export declare const DataBinding: {
734
763
  encode(message: DataBinding, writer?: _m0.Writer): _m0.Writer;
735
764
  decode(input: _m0.Reader | Uint8Array, length?: number): DataBinding;
@@ -127,6 +127,7 @@ export var HandlerType;
127
127
  HandlerType[HandlerType["APT_RESOURCE"] = 8] = "APT_RESOURCE";
128
128
  HandlerType[HandlerType["SUI_EVENT"] = 3] = "SUI_EVENT";
129
129
  HandlerType[HandlerType["SUI_CALL"] = 9] = "SUI_CALL";
130
+ HandlerType[HandlerType["SUI_OBJECT"] = 10] = "SUI_OBJECT";
130
131
  HandlerType[HandlerType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
131
132
  })(HandlerType || (HandlerType = {}));
132
133
  export function handlerTypeFromJSON(object) {
@@ -161,6 +162,9 @@ export function handlerTypeFromJSON(object) {
161
162
  case 9:
162
163
  case "SUI_CALL":
163
164
  return HandlerType.SUI_CALL;
165
+ case 10:
166
+ case "SUI_OBJECT":
167
+ return HandlerType.SUI_OBJECT;
164
168
  case -1:
165
169
  case "UNRECOGNIZED":
166
170
  default:
@@ -189,6 +193,8 @@ export function handlerTypeToJSON(object) {
189
193
  return "SUI_EVENT";
190
194
  case HandlerType.SUI_CALL:
191
195
  return "SUI_CALL";
196
+ case HandlerType.SUI_OBJECT:
197
+ return "SUI_OBJECT";
192
198
  case HandlerType.UNRECOGNIZED:
193
199
  default:
194
200
  return "UNRECOGNIZED";
@@ -1205,6 +1211,7 @@ function createBaseAccountConfig() {
1205
1211
  startBlock: BigInt("0"),
1206
1212
  intervalConfigs: [],
1207
1213
  aptosIntervalConfigs: [],
1214
+ suiIntervalConfigs: [],
1208
1215
  logConfigs: [],
1209
1216
  };
1210
1217
  }
@@ -1225,6 +1232,9 @@ export const AccountConfig = {
1225
1232
  for (const v of message.aptosIntervalConfigs) {
1226
1233
  AptosOnIntervalConfig.encode(v, writer.uint32(42).fork()).ldelim();
1227
1234
  }
1235
+ for (const v of message.suiIntervalConfigs) {
1236
+ SuiOnIntervalConfig.encode(v, writer.uint32(58).fork()).ldelim();
1237
+ }
1228
1238
  for (const v of message.logConfigs) {
1229
1239
  LogHandlerConfig.encode(v, writer.uint32(50).fork()).ldelim();
1230
1240
  }
@@ -1252,6 +1262,9 @@ export const AccountConfig = {
1252
1262
  case 5:
1253
1263
  message.aptosIntervalConfigs.push(AptosOnIntervalConfig.decode(reader, reader.uint32()));
1254
1264
  break;
1265
+ case 7:
1266
+ message.suiIntervalConfigs.push(SuiOnIntervalConfig.decode(reader, reader.uint32()));
1267
+ break;
1255
1268
  case 6:
1256
1269
  message.logConfigs.push(LogHandlerConfig.decode(reader, reader.uint32()));
1257
1270
  break;
@@ -1273,6 +1286,9 @@ export const AccountConfig = {
1273
1286
  aptosIntervalConfigs: Array.isArray(object?.aptosIntervalConfigs)
1274
1287
  ? object.aptosIntervalConfigs.map((e) => AptosOnIntervalConfig.fromJSON(e))
1275
1288
  : [],
1289
+ suiIntervalConfigs: Array.isArray(object?.suiIntervalConfigs)
1290
+ ? object.suiIntervalConfigs.map((e) => SuiOnIntervalConfig.fromJSON(e))
1291
+ : [],
1276
1292
  logConfigs: Array.isArray(object?.logConfigs)
1277
1293
  ? object.logConfigs.map((e) => LogHandlerConfig.fromJSON(e))
1278
1294
  : [],
@@ -1295,6 +1311,12 @@ export const AccountConfig = {
1295
1311
  else {
1296
1312
  obj.aptosIntervalConfigs = [];
1297
1313
  }
1314
+ if (message.suiIntervalConfigs) {
1315
+ obj.suiIntervalConfigs = message.suiIntervalConfigs.map((e) => e ? SuiOnIntervalConfig.toJSON(e) : undefined);
1316
+ }
1317
+ else {
1318
+ obj.suiIntervalConfigs = [];
1319
+ }
1298
1320
  if (message.logConfigs) {
1299
1321
  obj.logConfigs = message.logConfigs.map((e) => e ? LogHandlerConfig.toJSON(e) : undefined);
1300
1322
  }
@@ -1313,6 +1335,7 @@ export const AccountConfig = {
1313
1335
  message.startBlock = object.startBlock ?? BigInt("0");
1314
1336
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
1315
1337
  message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
1338
+ message.suiIntervalConfigs = object.suiIntervalConfigs?.map((e) => SuiOnIntervalConfig.fromPartial(e)) || [];
1316
1339
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
1317
1340
  return message;
1318
1341
  },
@@ -1518,6 +1541,55 @@ export const AptosOnIntervalConfig = {
1518
1541
  return message;
1519
1542
  },
1520
1543
  };
1544
+ function createBaseSuiOnIntervalConfig() {
1545
+ return { intervalConfig: undefined };
1546
+ }
1547
+ export const SuiOnIntervalConfig = {
1548
+ encode(message, writer = _m0.Writer.create()) {
1549
+ if (message.intervalConfig !== undefined) {
1550
+ OnIntervalConfig.encode(message.intervalConfig, writer.uint32(10).fork()).ldelim();
1551
+ }
1552
+ return writer;
1553
+ },
1554
+ decode(input, length) {
1555
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1556
+ let end = length === undefined ? reader.len : reader.pos + length;
1557
+ const message = createBaseSuiOnIntervalConfig();
1558
+ while (reader.pos < end) {
1559
+ const tag = reader.uint32();
1560
+ switch (tag >>> 3) {
1561
+ case 1:
1562
+ message.intervalConfig = OnIntervalConfig.decode(reader, reader.uint32());
1563
+ break;
1564
+ default:
1565
+ reader.skipType(tag & 7);
1566
+ break;
1567
+ }
1568
+ }
1569
+ return message;
1570
+ },
1571
+ fromJSON(object) {
1572
+ return {
1573
+ intervalConfig: isSet(object.intervalConfig) ? OnIntervalConfig.fromJSON(object.intervalConfig) : undefined,
1574
+ };
1575
+ },
1576
+ toJSON(message) {
1577
+ const obj = {};
1578
+ message.intervalConfig !== undefined &&
1579
+ (obj.intervalConfig = message.intervalConfig ? OnIntervalConfig.toJSON(message.intervalConfig) : undefined);
1580
+ return obj;
1581
+ },
1582
+ create(base) {
1583
+ return SuiOnIntervalConfig.fromPartial(base ?? {});
1584
+ },
1585
+ fromPartial(object) {
1586
+ const message = createBaseSuiOnIntervalConfig();
1587
+ message.intervalConfig = (object.intervalConfig !== undefined && object.intervalConfig !== null)
1588
+ ? OnIntervalConfig.fromPartial(object.intervalConfig)
1589
+ : undefined;
1590
+ return message;
1591
+ },
1592
+ };
1521
1593
  function createBaseContractInfo() {
1522
1594
  return { name: "", chainId: "", address: "", abi: "" };
1523
1595
  }
@@ -2649,6 +2721,7 @@ function createBaseData() {
2649
2721
  aptResource: undefined,
2650
2722
  suiEvent: undefined,
2651
2723
  suiCall: undefined,
2724
+ suiObject: undefined,
2652
2725
  };
2653
2726
  }
2654
2727
  export const Data = {
@@ -2683,6 +2756,9 @@ export const Data = {
2683
2756
  if (message.suiCall !== undefined) {
2684
2757
  Data_SuiCall.encode(message.suiCall, writer.uint32(90).fork()).ldelim();
2685
2758
  }
2759
+ if (message.suiObject !== undefined) {
2760
+ Data_SuiObject.encode(message.suiObject, writer.uint32(98).fork()).ldelim();
2761
+ }
2686
2762
  return writer;
2687
2763
  },
2688
2764
  decode(input, length) {
@@ -2722,6 +2798,9 @@ export const Data = {
2722
2798
  case 11:
2723
2799
  message.suiCall = Data_SuiCall.decode(reader, reader.uint32());
2724
2800
  break;
2801
+ case 12:
2802
+ message.suiObject = Data_SuiObject.decode(reader, reader.uint32());
2803
+ break;
2725
2804
  default:
2726
2805
  reader.skipType(tag & 7);
2727
2806
  break;
@@ -2741,6 +2820,7 @@ export const Data = {
2741
2820
  aptResource: isSet(object.aptResource) ? Data_AptResource.fromJSON(object.aptResource) : undefined,
2742
2821
  suiEvent: isSet(object.suiEvent) ? Data_SuiEvent.fromJSON(object.suiEvent) : undefined,
2743
2822
  suiCall: isSet(object.suiCall) ? Data_SuiCall.fromJSON(object.suiCall) : undefined,
2823
+ suiObject: isSet(object.suiObject) ? Data_SuiObject.fromJSON(object.suiObject) : undefined,
2744
2824
  };
2745
2825
  },
2746
2826
  toJSON(message) {
@@ -2762,6 +2842,8 @@ export const Data = {
2762
2842
  message.suiEvent !== undefined &&
2763
2843
  (obj.suiEvent = message.suiEvent ? Data_SuiEvent.toJSON(message.suiEvent) : undefined);
2764
2844
  message.suiCall !== undefined && (obj.suiCall = message.suiCall ? Data_SuiCall.toJSON(message.suiCall) : undefined);
2845
+ message.suiObject !== undefined &&
2846
+ (obj.suiObject = message.suiObject ? Data_SuiObject.toJSON(message.suiObject) : undefined);
2765
2847
  return obj;
2766
2848
  },
2767
2849
  create(base) {
@@ -2799,6 +2881,9 @@ export const Data = {
2799
2881
  message.suiCall = (object.suiCall !== undefined && object.suiCall !== null)
2800
2882
  ? Data_SuiCall.fromPartial(object.suiCall)
2801
2883
  : undefined;
2884
+ message.suiObject = (object.suiObject !== undefined && object.suiObject !== null)
2885
+ ? Data_SuiObject.fromPartial(object.suiObject)
2886
+ : undefined;
2802
2887
  return message;
2803
2888
  },
2804
2889
  };
@@ -3467,6 +3552,70 @@ export const Data_SuiCall = {
3467
3552
  return message;
3468
3553
  },
3469
3554
  };
3555
+ function createBaseData_SuiObject() {
3556
+ return { objects: undefined, timestamp: undefined, slot: BigInt("0") };
3557
+ }
3558
+ export const Data_SuiObject = {
3559
+ encode(message, writer = _m0.Writer.create()) {
3560
+ if (message.objects !== undefined) {
3561
+ Struct.encode(Struct.wrap(message.objects), writer.uint32(10).fork()).ldelim();
3562
+ }
3563
+ if (message.timestamp !== undefined) {
3564
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
3565
+ }
3566
+ if (message.slot !== BigInt("0")) {
3567
+ writer.uint32(24).uint64(message.slot.toString());
3568
+ }
3569
+ return writer;
3570
+ },
3571
+ decode(input, length) {
3572
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3573
+ let end = length === undefined ? reader.len : reader.pos + length;
3574
+ const message = createBaseData_SuiObject();
3575
+ while (reader.pos < end) {
3576
+ const tag = reader.uint32();
3577
+ switch (tag >>> 3) {
3578
+ case 1:
3579
+ message.objects = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3580
+ break;
3581
+ case 2:
3582
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3583
+ break;
3584
+ case 3:
3585
+ message.slot = longToBigint(reader.uint64());
3586
+ break;
3587
+ default:
3588
+ reader.skipType(tag & 7);
3589
+ break;
3590
+ }
3591
+ }
3592
+ return message;
3593
+ },
3594
+ fromJSON(object) {
3595
+ return {
3596
+ objects: isObject(object.objects) ? object.objects : undefined,
3597
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3598
+ slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
3599
+ };
3600
+ },
3601
+ toJSON(message) {
3602
+ const obj = {};
3603
+ message.objects !== undefined && (obj.objects = message.objects);
3604
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3605
+ message.slot !== undefined && (obj.slot = message.slot.toString());
3606
+ return obj;
3607
+ },
3608
+ create(base) {
3609
+ return Data_SuiObject.fromPartial(base ?? {});
3610
+ },
3611
+ fromPartial(object) {
3612
+ const message = createBaseData_SuiObject();
3613
+ message.objects = object.objects ?? undefined;
3614
+ message.timestamp = object.timestamp ?? undefined;
3615
+ message.slot = object.slot ?? BigInt("0");
3616
+ return message;
3617
+ },
3618
+ };
3470
3619
  function createBaseDataBinding() {
3471
3620
  return { data: undefined, handlerType: 0, handlerIds: [] };
3472
3621
  }