@sentio/runtime 2.13.3-rc.1 → 2.13.3-rc.3

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.
@@ -347,6 +347,9 @@ export interface Data_SuiObject {
347
347
  objects: {
348
348
  [key: string]: any;
349
349
  }[];
350
+ self?: {
351
+ [key: string]: any;
352
+ } | undefined;
350
353
  timestamp: Date | undefined;
351
354
  slot: bigint;
352
355
  }
@@ -3673,13 +3673,16 @@ export const Data_SuiCall = {
3673
3673
  },
3674
3674
  };
3675
3675
  function createBaseData_SuiObject() {
3676
- return { objects: [], timestamp: undefined, slot: BigInt("0") };
3676
+ return { objects: [], self: undefined, timestamp: undefined, slot: BigInt("0") };
3677
3677
  }
3678
3678
  export const Data_SuiObject = {
3679
3679
  encode(message, writer = _m0.Writer.create()) {
3680
3680
  for (const v of message.objects) {
3681
3681
  Struct.encode(Struct.wrap(v), writer.uint32(10).fork()).ldelim();
3682
3682
  }
3683
+ if (message.self !== undefined) {
3684
+ Struct.encode(Struct.wrap(message.self), writer.uint32(34).fork()).ldelim();
3685
+ }
3683
3686
  if (message.timestamp !== undefined) {
3684
3687
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
3685
3688
  }
@@ -3698,6 +3701,9 @@ export const Data_SuiObject = {
3698
3701
  case 1:
3699
3702
  message.objects.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
3700
3703
  break;
3704
+ case 4:
3705
+ message.self = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3706
+ break;
3701
3707
  case 2:
3702
3708
  message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3703
3709
  break;
@@ -3714,6 +3720,7 @@ export const Data_SuiObject = {
3714
3720
  fromJSON(object) {
3715
3721
  return {
3716
3722
  objects: Array.isArray(object?.objects) ? [...object.objects] : [],
3723
+ self: isObject(object.self) ? object.self : undefined,
3717
3724
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3718
3725
  slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
3719
3726
  };
@@ -3726,6 +3733,7 @@ export const Data_SuiObject = {
3726
3733
  else {
3727
3734
  obj.objects = [];
3728
3735
  }
3736
+ message.self !== undefined && (obj.self = message.self);
3729
3737
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3730
3738
  message.slot !== undefined && (obj.slot = message.slot.toString());
3731
3739
  return obj;
@@ -3736,6 +3744,7 @@ export const Data_SuiObject = {
3736
3744
  fromPartial(object) {
3737
3745
  const message = createBaseData_SuiObject();
3738
3746
  message.objects = object.objects?.map((e) => e) || [];
3747
+ message.self = object.self ?? undefined;
3739
3748
  message.timestamp = object.timestamp ?? undefined;
3740
3749
  message.slot = object.slot ?? BigInt("0");
3741
3750
  return message;