@sentio/runtime 2.59.0-rc.1 → 2.59.0-rc.10

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.
@@ -5940,6 +5940,7 @@ function createBaseAccountConfig() {
5940
5940
  chainId: "",
5941
5941
  address: "",
5942
5942
  startBlock: BigInt("0"),
5943
+ endBlock: BigInt("0"),
5943
5944
  intervalConfigs: [],
5944
5945
  moveIntervalConfigs: [],
5945
5946
  moveCallConfigs: [],
@@ -5961,6 +5962,12 @@ var AccountConfig = {
5961
5962
  }
5962
5963
  writer.uint32(24).uint64(message.startBlock.toString());
5963
5964
  }
5965
+ if (message.endBlock !== BigInt("0")) {
5966
+ if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
5967
+ throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
5968
+ }
5969
+ writer.uint32(80).uint64(message.endBlock.toString());
5970
+ }
5964
5971
  for (const v of message.intervalConfigs) {
5965
5972
  OnIntervalConfig.encode(v, writer.uint32(34).fork()).ldelim();
5966
5973
  }
@@ -6003,6 +6010,12 @@ var AccountConfig = {
6003
6010
  }
6004
6011
  message.startBlock = longToBigint3(reader.uint64());
6005
6012
  continue;
6013
+ case 10:
6014
+ if (tag !== 80) {
6015
+ break;
6016
+ }
6017
+ message.endBlock = longToBigint3(reader.uint64());
6018
+ continue;
6006
6019
  case 4:
6007
6020
  if (tag !== 34) {
6008
6021
  break;
@@ -6046,6 +6059,7 @@ var AccountConfig = {
6046
6059
  chainId: isSet4(object.chainId) ? globalThis.String(object.chainId) : "",
6047
6060
  address: isSet4(object.address) ? globalThis.String(object.address) : "",
6048
6061
  startBlock: isSet4(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
6062
+ endBlock: isSet4(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
6049
6063
  intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs) ? object.intervalConfigs.map((e) => OnIntervalConfig.fromJSON(e)) : [],
6050
6064
  moveIntervalConfigs: globalThis.Array.isArray(object?.moveIntervalConfigs) ? object.moveIntervalConfigs.map((e) => MoveOnIntervalConfig.fromJSON(e)) : [],
6051
6065
  moveCallConfigs: globalThis.Array.isArray(object?.moveCallConfigs) ? object.moveCallConfigs.map((e) => MoveCallHandlerConfig.fromJSON(e)) : [],
@@ -6064,6 +6078,9 @@ var AccountConfig = {
6064
6078
  if (message.startBlock !== BigInt("0")) {
6065
6079
  obj.startBlock = message.startBlock.toString();
6066
6080
  }
6081
+ if (message.endBlock !== BigInt("0")) {
6082
+ obj.endBlock = message.endBlock.toString();
6083
+ }
6067
6084
  if (message.intervalConfigs?.length) {
6068
6085
  obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig.toJSON(e));
6069
6086
  }
@@ -6089,6 +6106,7 @@ var AccountConfig = {
6089
6106
  message.chainId = object.chainId ?? "";
6090
6107
  message.address = object.address ?? "";
6091
6108
  message.startBlock = object.startBlock ?? BigInt("0");
6109
+ message.endBlock = object.endBlock ?? BigInt("0");
6092
6110
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
6093
6111
  message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
6094
6112
  message.moveCallConfigs = object.moveCallConfigs?.map((e) => MoveCallHandlerConfig.fromPartial(e)) || [];
@@ -8175,13 +8193,16 @@ var MoveCallHandlerConfig = {
8175
8193
  }
8176
8194
  };
8177
8195
  function createBaseMoveResourceChangeConfig() {
8178
- return { type: "", handlerId: 0, handlerName: "" };
8196
+ return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
8179
8197
  }
8180
8198
  var MoveResourceChangeConfig = {
8181
8199
  encode(message, writer = import_minimal5.default.Writer.create()) {
8182
8200
  if (message.type !== "") {
8183
8201
  writer.uint32(10).string(message.type);
8184
8202
  }
8203
+ if (message.includeDeleted !== false) {
8204
+ writer.uint32(32).bool(message.includeDeleted);
8205
+ }
8185
8206
  if (message.handlerId !== 0) {
8186
8207
  writer.uint32(16).int32(message.handlerId);
8187
8208
  }
@@ -8203,6 +8224,12 @@ var MoveResourceChangeConfig = {
8203
8224
  }
8204
8225
  message.type = reader.string();
8205
8226
  continue;
8227
+ case 4:
8228
+ if (tag !== 32) {
8229
+ break;
8230
+ }
8231
+ message.includeDeleted = reader.bool();
8232
+ continue;
8206
8233
  case 2:
8207
8234
  if (tag !== 16) {
8208
8235
  break;
@@ -8226,6 +8253,7 @@ var MoveResourceChangeConfig = {
8226
8253
  fromJSON(object) {
8227
8254
  return {
8228
8255
  type: isSet4(object.type) ? globalThis.String(object.type) : "",
8256
+ includeDeleted: isSet4(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
8229
8257
  handlerId: isSet4(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
8230
8258
  handlerName: isSet4(object.handlerName) ? globalThis.String(object.handlerName) : ""
8231
8259
  };
@@ -8235,6 +8263,9 @@ var MoveResourceChangeConfig = {
8235
8263
  if (message.type !== "") {
8236
8264
  obj.type = message.type;
8237
8265
  }
8266
+ if (message.includeDeleted !== false) {
8267
+ obj.includeDeleted = message.includeDeleted;
8268
+ }
8238
8269
  if (message.handlerId !== 0) {
8239
8270
  obj.handlerId = Math.round(message.handlerId);
8240
8271
  }
@@ -8249,6 +8280,7 @@ var MoveResourceChangeConfig = {
8249
8280
  fromPartial(object) {
8250
8281
  const message = createBaseMoveResourceChangeConfig();
8251
8282
  message.type = object.type ?? "";
8283
+ message.includeDeleted = object.includeDeleted ?? false;
8252
8284
  message.handlerId = object.handlerId ?? 0;
8253
8285
  message.handlerName = object.handlerName ?? "";
8254
8286
  return message;
@@ -14276,6 +14308,7 @@ function createBaseAccountConfig2() {
14276
14308
  chainId: "",
14277
14309
  address: "",
14278
14310
  startBlock: BigInt("0"),
14311
+ endBlock: BigInt("0"),
14279
14312
  intervalConfigs: [],
14280
14313
  aptosIntervalConfigs: [],
14281
14314
  moveIntervalConfigs: [],
@@ -14298,6 +14331,12 @@ var AccountConfig2 = {
14298
14331
  }
14299
14332
  writer.uint32(24).uint64(message.startBlock.toString());
14300
14333
  }
14334
+ if (message.endBlock !== BigInt("0")) {
14335
+ if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
14336
+ throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
14337
+ }
14338
+ writer.uint32(80).uint64(message.endBlock.toString());
14339
+ }
14301
14340
  for (const v of message.intervalConfigs) {
14302
14341
  OnIntervalConfig2.encode(v, writer.uint32(34).fork()).ldelim();
14303
14342
  }
@@ -14343,6 +14382,12 @@ var AccountConfig2 = {
14343
14382
  }
14344
14383
  message.startBlock = longToBigint6(reader.uint64());
14345
14384
  continue;
14385
+ case 10:
14386
+ if (tag !== 80) {
14387
+ break;
14388
+ }
14389
+ message.endBlock = longToBigint6(reader.uint64());
14390
+ continue;
14346
14391
  case 4:
14347
14392
  if (tag !== 34) {
14348
14393
  break;
@@ -14392,6 +14437,7 @@ var AccountConfig2 = {
14392
14437
  chainId: isSet8(object.chainId) ? globalThis.String(object.chainId) : "",
14393
14438
  address: isSet8(object.address) ? globalThis.String(object.address) : "",
14394
14439
  startBlock: isSet8(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
14440
+ endBlock: isSet8(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
14395
14441
  intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs) ? object.intervalConfigs.map((e) => OnIntervalConfig2.fromJSON(e)) : [],
14396
14442
  aptosIntervalConfigs: globalThis.Array.isArray(object?.aptosIntervalConfigs) ? object.aptosIntervalConfigs.map((e) => AptosOnIntervalConfig.fromJSON(e)) : [],
14397
14443
  moveIntervalConfigs: globalThis.Array.isArray(object?.moveIntervalConfigs) ? object.moveIntervalConfigs.map((e) => MoveOnIntervalConfig2.fromJSON(e)) : [],
@@ -14411,6 +14457,9 @@ var AccountConfig2 = {
14411
14457
  if (message.startBlock !== BigInt("0")) {
14412
14458
  obj.startBlock = message.startBlock.toString();
14413
14459
  }
14460
+ if (message.endBlock !== BigInt("0")) {
14461
+ obj.endBlock = message.endBlock.toString();
14462
+ }
14414
14463
  if (message.intervalConfigs?.length) {
14415
14464
  obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig2.toJSON(e));
14416
14465
  }
@@ -14439,6 +14488,7 @@ var AccountConfig2 = {
14439
14488
  message.chainId = object.chainId ?? "";
14440
14489
  message.address = object.address ?? "";
14441
14490
  message.startBlock = object.startBlock ?? BigInt("0");
14491
+ message.endBlock = object.endBlock ?? BigInt("0");
14442
14492
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig2.fromPartial(e)) || [];
14443
14493
  message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
14444
14494
  message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig2.fromPartial(e)) || [];
@@ -16672,13 +16722,16 @@ var MoveCallHandlerConfig2 = {
16672
16722
  }
16673
16723
  };
16674
16724
  function createBaseMoveResourceChangeConfig2() {
16675
- return { type: "", handlerId: 0, handlerName: "" };
16725
+ return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
16676
16726
  }
16677
16727
  var MoveResourceChangeConfig2 = {
16678
16728
  encode(message, writer = import_minimal10.default.Writer.create()) {
16679
16729
  if (message.type !== "") {
16680
16730
  writer.uint32(10).string(message.type);
16681
16731
  }
16732
+ if (message.includeDeleted !== false) {
16733
+ writer.uint32(32).bool(message.includeDeleted);
16734
+ }
16682
16735
  if (message.handlerId !== 0) {
16683
16736
  writer.uint32(16).int32(message.handlerId);
16684
16737
  }
@@ -16700,6 +16753,12 @@ var MoveResourceChangeConfig2 = {
16700
16753
  }
16701
16754
  message.type = reader.string();
16702
16755
  continue;
16756
+ case 4:
16757
+ if (tag !== 32) {
16758
+ break;
16759
+ }
16760
+ message.includeDeleted = reader.bool();
16761
+ continue;
16703
16762
  case 2:
16704
16763
  if (tag !== 16) {
16705
16764
  break;
@@ -16723,6 +16782,7 @@ var MoveResourceChangeConfig2 = {
16723
16782
  fromJSON(object) {
16724
16783
  return {
16725
16784
  type: isSet8(object.type) ? globalThis.String(object.type) : "",
16785
+ includeDeleted: isSet8(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
16726
16786
  handlerId: isSet8(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
16727
16787
  handlerName: isSet8(object.handlerName) ? globalThis.String(object.handlerName) : ""
16728
16788
  };
@@ -16732,6 +16792,9 @@ var MoveResourceChangeConfig2 = {
16732
16792
  if (message.type !== "") {
16733
16793
  obj.type = message.type;
16734
16794
  }
16795
+ if (message.includeDeleted !== false) {
16796
+ obj.includeDeleted = message.includeDeleted;
16797
+ }
16735
16798
  if (message.handlerId !== 0) {
16736
16799
  obj.handlerId = Math.round(message.handlerId);
16737
16800
  }
@@ -16746,6 +16809,7 @@ var MoveResourceChangeConfig2 = {
16746
16809
  fromPartial(object) {
16747
16810
  const message = createBaseMoveResourceChangeConfig2();
16748
16811
  message.type = object.type ?? "";
16812
+ message.includeDeleted = object.includeDeleted ?? false;
16749
16813
  message.handlerId = object.handlerId ?? 0;
16750
16814
  message.handlerName = object.handlerName ?? "";
16751
16815
  return message;
@@ -23003,4 +23067,4 @@ long/index.js:
23003
23067
  * SPDX-License-Identifier: Apache-2.0
23004
23068
  *)
23005
23069
  */
23006
- //# sourceMappingURL=chunk-ZUTD563J.js.map
23070
+ //# sourceMappingURL=chunk-3T4PWGQU.js.map