@sentio/protos 2.11.2 → 2.11.3-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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/protos",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "2.11.2",
|
|
4
|
+
"version": "2.11.3-rc.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"compile": "tsc",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"{lib,src}"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "2eeb2f6cca6e05315c63f1b4b1c92d4865b74f99"
|
|
24
24
|
}
|
|
@@ -605,7 +605,7 @@ export interface Data_SuiCall {
|
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
export interface Data_SuiObject {
|
|
608
|
-
objects: { [key: string]: any }
|
|
608
|
+
objects: { [key: string]: any }[];
|
|
609
609
|
timestamp: Date | undefined;
|
|
610
610
|
slot: bigint;
|
|
611
611
|
}
|
|
@@ -4253,13 +4253,13 @@ export const Data_SuiCall = {
|
|
|
4253
4253
|
};
|
|
4254
4254
|
|
|
4255
4255
|
function createBaseData_SuiObject(): Data_SuiObject {
|
|
4256
|
-
return { objects:
|
|
4256
|
+
return { objects: [], timestamp: undefined, slot: BigInt("0") };
|
|
4257
4257
|
}
|
|
4258
4258
|
|
|
4259
4259
|
export const Data_SuiObject = {
|
|
4260
4260
|
encode(message: Data_SuiObject, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4261
|
-
|
|
4262
|
-
Struct.encode(Struct.wrap(
|
|
4261
|
+
for (const v of message.objects) {
|
|
4262
|
+
Struct.encode(Struct.wrap(v!), writer.uint32(10).fork()).ldelim();
|
|
4263
4263
|
}
|
|
4264
4264
|
if (message.timestamp !== undefined) {
|
|
4265
4265
|
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
|
@@ -4278,7 +4278,7 @@ export const Data_SuiObject = {
|
|
|
4278
4278
|
const tag = reader.uint32();
|
|
4279
4279
|
switch (tag >>> 3) {
|
|
4280
4280
|
case 1:
|
|
4281
|
-
message.objects
|
|
4281
|
+
message.objects.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
|
|
4282
4282
|
break;
|
|
4283
4283
|
case 2:
|
|
4284
4284
|
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
@@ -4296,7 +4296,7 @@ export const Data_SuiObject = {
|
|
|
4296
4296
|
|
|
4297
4297
|
fromJSON(object: any): Data_SuiObject {
|
|
4298
4298
|
return {
|
|
4299
|
-
objects:
|
|
4299
|
+
objects: Array.isArray(object?.objects) ? [...object.objects] : [],
|
|
4300
4300
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
4301
4301
|
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
|
4302
4302
|
};
|
|
@@ -4304,7 +4304,11 @@ export const Data_SuiObject = {
|
|
|
4304
4304
|
|
|
4305
4305
|
toJSON(message: Data_SuiObject): unknown {
|
|
4306
4306
|
const obj: any = {};
|
|
4307
|
-
|
|
4307
|
+
if (message.objects) {
|
|
4308
|
+
obj.objects = message.objects.map((e) => e);
|
|
4309
|
+
} else {
|
|
4310
|
+
obj.objects = [];
|
|
4311
|
+
}
|
|
4308
4312
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
|
|
4309
4313
|
message.slot !== undefined && (obj.slot = message.slot.toString());
|
|
4310
4314
|
return obj;
|
|
@@ -4316,7 +4320,7 @@ export const Data_SuiObject = {
|
|
|
4316
4320
|
|
|
4317
4321
|
fromPartial(object: DeepPartial<Data_SuiObject>): Data_SuiObject {
|
|
4318
4322
|
const message = createBaseData_SuiObject();
|
|
4319
|
-
message.objects = object.objects
|
|
4323
|
+
message.objects = object.objects?.map((e) => e) || [];
|
|
4320
4324
|
message.timestamp = object.timestamp ?? undefined;
|
|
4321
4325
|
message.slot = object.slot ?? BigInt("0");
|
|
4322
4326
|
return message;
|