@sentio/runtime 2.11.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
3
  "license": "Apache-2.0",
4
- "version": "2.11.2",
4
+ "version": "2.11.3-rc.1",
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.11.2",
16
+ "@sentio/protos": "^2.11.3-rc.1",
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": "ba2c47c6e5c327b9386bbc107805c62251e9eb6c"
48
+ "gitHead": "60d4860a015dbf8cae46b66b86508962ff949ed2"
49
49
  }
@@ -607,7 +607,7 @@ export interface Data_SuiCall {
607
607
  }
608
608
 
609
609
  export interface Data_SuiObject {
610
- objects: { [key: string]: any } | undefined;
610
+ objects: { [key: string]: any }[];
611
611
  timestamp: Date | undefined;
612
612
  slot: bigint;
613
613
  }
@@ -4279,13 +4279,13 @@ export const Data_SuiCall = {
4279
4279
  };
4280
4280
 
4281
4281
  function createBaseData_SuiObject(): Data_SuiObject {
4282
- return { objects: undefined, timestamp: undefined, slot: BigInt("0") };
4282
+ return { objects: [], timestamp: undefined, slot: BigInt("0") };
4283
4283
  }
4284
4284
 
4285
4285
  export const Data_SuiObject = {
4286
4286
  encode(message: Data_SuiObject, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4287
- if (message.objects !== undefined) {
4288
- Struct.encode(Struct.wrap(message.objects), writer.uint32(10).fork()).ldelim();
4287
+ for (const v of message.objects) {
4288
+ Struct.encode(Struct.wrap(v!), writer.uint32(10).fork()).ldelim();
4289
4289
  }
4290
4290
  if (message.timestamp !== undefined) {
4291
4291
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
@@ -4304,7 +4304,7 @@ export const Data_SuiObject = {
4304
4304
  const tag = reader.uint32();
4305
4305
  switch (tag >>> 3) {
4306
4306
  case 1:
4307
- message.objects = Struct.unwrap(Struct.decode(reader, reader.uint32()));
4307
+ message.objects.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
4308
4308
  break;
4309
4309
  case 2:
4310
4310
  message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
@@ -4322,7 +4322,7 @@ export const Data_SuiObject = {
4322
4322
 
4323
4323
  fromJSON(object: any): Data_SuiObject {
4324
4324
  return {
4325
- objects: isObject(object.objects) ? object.objects : undefined,
4325
+ objects: Array.isArray(object?.objects) ? [...object.objects] : [],
4326
4326
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
4327
4327
  slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
4328
4328
  };
@@ -4330,7 +4330,11 @@ export const Data_SuiObject = {
4330
4330
 
4331
4331
  toJSON(message: Data_SuiObject): unknown {
4332
4332
  const obj: any = {};
4333
- message.objects !== undefined && (obj.objects = message.objects);
4333
+ if (message.objects) {
4334
+ obj.objects = message.objects.map((e) => e);
4335
+ } else {
4336
+ obj.objects = [];
4337
+ }
4334
4338
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
4335
4339
  message.slot !== undefined && (obj.slot = message.slot.toString());
4336
4340
  return obj;
@@ -4342,7 +4346,7 @@ export const Data_SuiObject = {
4342
4346
 
4343
4347
  fromPartial(object: DeepPartial<Data_SuiObject>): Data_SuiObject {
4344
4348
  const message = createBaseData_SuiObject();
4345
- message.objects = object.objects ?? undefined;
4349
+ message.objects = object.objects?.map((e) => e) || [];
4346
4350
  message.timestamp = object.timestamp ?? undefined;
4347
4351
  message.slot = object.slot ?? BigInt("0");
4348
4352
  return message;