@sentio/protos 2.3.1 → 2.3.2-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.
@@ -3340,13 +3340,19 @@ export const Data_AptResource = {
3340
3340
  },
3341
3341
  };
3342
3342
  function createBaseData_SuiEvent() {
3343
- return { transaction: undefined };
3343
+ return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
3344
3344
  }
3345
3345
  export const Data_SuiEvent = {
3346
3346
  encode(message, writer = _m0.Writer.create()) {
3347
3347
  if (message.transaction !== undefined) {
3348
3348
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
3349
3349
  }
3350
+ if (message.timestamp !== undefined) {
3351
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
3352
+ }
3353
+ if (message.slot !== BigInt("0")) {
3354
+ writer.uint32(24).uint64(message.slot.toString());
3355
+ }
3350
3356
  return writer;
3351
3357
  },
3352
3358
  decode(input, length) {
@@ -3359,6 +3365,12 @@ export const Data_SuiEvent = {
3359
3365
  case 1:
3360
3366
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3361
3367
  break;
3368
+ case 2:
3369
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3370
+ break;
3371
+ case 3:
3372
+ message.slot = longToBigint(reader.uint64());
3373
+ break;
3362
3374
  default:
3363
3375
  reader.skipType(tag & 7);
3364
3376
  break;
@@ -3367,11 +3379,17 @@ export const Data_SuiEvent = {
3367
3379
  return message;
3368
3380
  },
3369
3381
  fromJSON(object) {
3370
- return { transaction: isObject(object.transaction) ? object.transaction : undefined };
3382
+ return {
3383
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
3384
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3385
+ slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
3386
+ };
3371
3387
  },
3372
3388
  toJSON(message) {
3373
3389
  const obj = {};
3374
3390
  message.transaction !== undefined && (obj.transaction = message.transaction);
3391
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3392
+ message.slot !== undefined && (obj.slot = message.slot.toString());
3375
3393
  return obj;
3376
3394
  },
3377
3395
  create(base) {
@@ -3380,17 +3398,25 @@ export const Data_SuiEvent = {
3380
3398
  fromPartial(object) {
3381
3399
  const message = createBaseData_SuiEvent();
3382
3400
  message.transaction = object.transaction ?? undefined;
3401
+ message.timestamp = object.timestamp ?? undefined;
3402
+ message.slot = object.slot ?? BigInt("0");
3383
3403
  return message;
3384
3404
  },
3385
3405
  };
3386
3406
  function createBaseData_SuiCall() {
3387
- return { transaction: undefined };
3407
+ return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
3388
3408
  }
3389
3409
  export const Data_SuiCall = {
3390
3410
  encode(message, writer = _m0.Writer.create()) {
3391
3411
  if (message.transaction !== undefined) {
3392
3412
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
3393
3413
  }
3414
+ if (message.timestamp !== undefined) {
3415
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
3416
+ }
3417
+ if (message.slot !== BigInt("0")) {
3418
+ writer.uint32(24).uint64(message.slot.toString());
3419
+ }
3394
3420
  return writer;
3395
3421
  },
3396
3422
  decode(input, length) {
@@ -3403,6 +3429,12 @@ export const Data_SuiCall = {
3403
3429
  case 1:
3404
3430
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3405
3431
  break;
3432
+ case 2:
3433
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3434
+ break;
3435
+ case 3:
3436
+ message.slot = longToBigint(reader.uint64());
3437
+ break;
3406
3438
  default:
3407
3439
  reader.skipType(tag & 7);
3408
3440
  break;
@@ -3411,11 +3443,17 @@ export const Data_SuiCall = {
3411
3443
  return message;
3412
3444
  },
3413
3445
  fromJSON(object) {
3414
- return { transaction: isObject(object.transaction) ? object.transaction : undefined };
3446
+ return {
3447
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
3448
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3449
+ slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
3450
+ };
3415
3451
  },
3416
3452
  toJSON(message) {
3417
3453
  const obj = {};
3418
3454
  message.transaction !== undefined && (obj.transaction = message.transaction);
3455
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3456
+ message.slot !== undefined && (obj.slot = message.slot.toString());
3419
3457
  return obj;
3420
3458
  },
3421
3459
  create(base) {
@@ -3424,6 +3462,8 @@ export const Data_SuiCall = {
3424
3462
  fromPartial(object) {
3425
3463
  const message = createBaseData_SuiCall();
3426
3464
  message.transaction = object.transaction ?? undefined;
3465
+ message.timestamp = object.timestamp ?? undefined;
3466
+ message.slot = object.slot ?? BigInt("0");
3427
3467
  return message;
3428
3468
  },
3429
3469
  };