@sentio/protos 2.11.2-rc.2 → 2.11.3-rc.1
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.
|
@@ -3602,12 +3602,12 @@ export const Data_SuiCall = {
|
|
|
3602
3602
|
},
|
|
3603
3603
|
};
|
|
3604
3604
|
function createBaseData_SuiObject() {
|
|
3605
|
-
return { objects:
|
|
3605
|
+
return { objects: [], timestamp: undefined, slot: BigInt("0") };
|
|
3606
3606
|
}
|
|
3607
3607
|
export const Data_SuiObject = {
|
|
3608
3608
|
encode(message, writer = _m0.Writer.create()) {
|
|
3609
|
-
|
|
3610
|
-
Struct.encode(Struct.wrap(
|
|
3609
|
+
for (const v of message.objects) {
|
|
3610
|
+
Struct.encode(Struct.wrap(v), writer.uint32(10).fork()).ldelim();
|
|
3611
3611
|
}
|
|
3612
3612
|
if (message.timestamp !== undefined) {
|
|
3613
3613
|
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
|
@@ -3625,7 +3625,7 @@ export const Data_SuiObject = {
|
|
|
3625
3625
|
const tag = reader.uint32();
|
|
3626
3626
|
switch (tag >>> 3) {
|
|
3627
3627
|
case 1:
|
|
3628
|
-
message.objects
|
|
3628
|
+
message.objects.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
|
|
3629
3629
|
break;
|
|
3630
3630
|
case 2:
|
|
3631
3631
|
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
@@ -3642,14 +3642,19 @@ export const Data_SuiObject = {
|
|
|
3642
3642
|
},
|
|
3643
3643
|
fromJSON(object) {
|
|
3644
3644
|
return {
|
|
3645
|
-
objects:
|
|
3645
|
+
objects: Array.isArray(object?.objects) ? [...object.objects] : [],
|
|
3646
3646
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
3647
3647
|
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
|
3648
3648
|
};
|
|
3649
3649
|
},
|
|
3650
3650
|
toJSON(message) {
|
|
3651
3651
|
const obj = {};
|
|
3652
|
-
|
|
3652
|
+
if (message.objects) {
|
|
3653
|
+
obj.objects = message.objects.map((e) => e);
|
|
3654
|
+
}
|
|
3655
|
+
else {
|
|
3656
|
+
obj.objects = [];
|
|
3657
|
+
}
|
|
3653
3658
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
|
|
3654
3659
|
message.slot !== undefined && (obj.slot = message.slot.toString());
|
|
3655
3660
|
return obj;
|
|
@@ -3659,7 +3664,7 @@ export const Data_SuiObject = {
|
|
|
3659
3664
|
},
|
|
3660
3665
|
fromPartial(object) {
|
|
3661
3666
|
const message = createBaseData_SuiObject();
|
|
3662
|
-
message.objects = object.objects
|
|
3667
|
+
message.objects = object.objects?.map((e) => e) || [];
|
|
3663
3668
|
message.timestamp = object.timestamp ?? undefined;
|
|
3664
3669
|
message.slot = object.slot ?? BigInt("0");
|
|
3665
3670
|
return message;
|