@sentio/runtime 2.13.2 → 2.13.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/runtime",
3
3
  "license": "Apache-2.0",
4
- "version": "2.13.2",
4
+ "version": "2.13.3-rc.2",
5
5
  "scripts": {
6
6
  "compile": "tsc",
7
7
  "build": "yarn compile",
@@ -13,7 +13,7 @@
13
13
  "start_js": "ts-node-esm --files ./lib/processor-runner.js $PWD/../../debug/dist/lib.js"
14
14
  },
15
15
  "dependencies": {
16
- "@sentio/protos": "^2.13.2",
16
+ "@sentio/protos": "^2.13.3-rc.2",
17
17
  "command-line-args": "^5.2.1",
18
18
  "command-line-usage": "^7.0.1",
19
19
  "fs-extra": "^11.0.0",
@@ -45,5 +45,5 @@
45
45
  "!{lib,src}/tests",
46
46
  "!**/*.test.{js,ts}"
47
47
  ],
48
- "gitHead": "a727b9170f464d1f2449f1c21cb93c279989f2b6"
48
+ "gitHead": "11bde5ffb7207bbdd8f9e0f655f766cd1880fad5"
49
49
  }
@@ -618,6 +618,7 @@ export interface Data_SuiCall {
618
618
 
619
619
  export interface Data_SuiObject {
620
620
  objects: { [key: string]: any }[];
621
+ self?: { [key: string]: any } | undefined;
621
622
  timestamp: Date | undefined;
622
623
  slot: bigint;
623
624
  }
@@ -4343,7 +4344,7 @@ export const Data_SuiCall = {
4343
4344
  };
4344
4345
 
4345
4346
  function createBaseData_SuiObject(): Data_SuiObject {
4346
- return { objects: [], timestamp: undefined, slot: BigInt("0") };
4347
+ return { objects: [], self: undefined, timestamp: undefined, slot: BigInt("0") };
4347
4348
  }
4348
4349
 
4349
4350
  export const Data_SuiObject = {
@@ -4351,6 +4352,9 @@ export const Data_SuiObject = {
4351
4352
  for (const v of message.objects) {
4352
4353
  Struct.encode(Struct.wrap(v!), writer.uint32(10).fork()).ldelim();
4353
4354
  }
4355
+ if (message.self !== undefined) {
4356
+ Struct.encode(Struct.wrap(message.self), writer.uint32(34).fork()).ldelim();
4357
+ }
4354
4358
  if (message.timestamp !== undefined) {
4355
4359
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
4356
4360
  }
@@ -4370,6 +4374,9 @@ export const Data_SuiObject = {
4370
4374
  case 1:
4371
4375
  message.objects.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
4372
4376
  break;
4377
+ case 4:
4378
+ message.self = Struct.unwrap(Struct.decode(reader, reader.uint32()));
4379
+ break;
4373
4380
  case 2:
4374
4381
  message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4375
4382
  break;
@@ -4387,6 +4394,7 @@ export const Data_SuiObject = {
4387
4394
  fromJSON(object: any): Data_SuiObject {
4388
4395
  return {
4389
4396
  objects: Array.isArray(object?.objects) ? [...object.objects] : [],
4397
+ self: isObject(object.self) ? object.self : undefined,
4390
4398
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
4391
4399
  slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
4392
4400
  };
@@ -4399,6 +4407,7 @@ export const Data_SuiObject = {
4399
4407
  } else {
4400
4408
  obj.objects = [];
4401
4409
  }
4410
+ message.self !== undefined && (obj.self = message.self);
4402
4411
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
4403
4412
  message.slot !== undefined && (obj.slot = message.slot.toString());
4404
4413
  return obj;
@@ -4411,6 +4420,7 @@ export const Data_SuiObject = {
4411
4420
  fromPartial(object: DeepPartial<Data_SuiObject>): Data_SuiObject {
4412
4421
  const message = createBaseData_SuiObject();
4413
4422
  message.objects = object.objects?.map((e) => e) || [];
4423
+ message.self = object.self ?? undefined;
4414
4424
  message.timestamp = object.timestamp ?? undefined;
4415
4425
  message.slot = object.slot ?? BigInt("0");
4416
4426
  return message;