@sentio/sdk-bundle 3.4.1-rc.1 → 3.4.1-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.
Files changed (48) hide show
  1. package/lib/aptos/builtin/0x1.js +2 -2
  2. package/lib/aptos/builtin/0x3.js +3 -3
  3. package/lib/aptos/builtin/0x4.js +3 -3
  4. package/lib/aptos/builtin/index.js +4 -4
  5. package/lib/aptos/ext/index.js +2 -2
  6. package/lib/aptos/index.js +2 -2
  7. package/lib/{chunk-N4CHGUTE.js → chunk-BYI3PJSH.js} +2 -2
  8. package/lib/{chunk-NEJJJYQT.js → chunk-GXMSKHV5.js} +6 -6
  9. package/lib/{chunk-62FLLD6M.js → chunk-HY7P5TE6.js} +6 -6
  10. package/lib/{chunk-HPKXZRIF.js → chunk-JWVPEAG3.js} +5 -5
  11. package/lib/{chunk-6WV47VNX.js → chunk-LHES6DNY.js} +1 -1
  12. package/lib/chunk-LHES6DNY.js.map +1 -0
  13. package/lib/{chunk-7QGEZEHC.js → chunk-MMBJ7C6T.js} +2 -2
  14. package/lib/{chunk-AXPJBLYF.js → chunk-OF6GQIBP.js} +4 -4
  15. package/lib/{chunk-6TX54K65.js → chunk-ROVZFRLR.js} +4 -4
  16. package/lib/{chunk-LMCCOEUH.js → chunk-VBWKCD5Y.js} +4 -4
  17. package/lib/{chunk-5AUMWNTM.js → chunk-W5HNBE7Y.js} +3 -3
  18. package/lib/{chunk-H5QN2DOV.js → chunk-XQVFMCYE.js} +5 -5
  19. package/lib/{chunk-PSG2Y4GW.js → chunk-YM4EG5FX.js} +3 -3
  20. package/lib/{chunk-G6ADAWXI.js → chunk-ZLDJKEYW.js} +30 -12
  21. package/lib/{chunk-G6ADAWXI.js.map → chunk-ZLDJKEYW.js.map} +1 -1
  22. package/lib/iota/builtin/0x1.js +5 -5
  23. package/lib/iota/builtin/0x2.js +6 -6
  24. package/lib/iota/builtin/0x3.js +7 -7
  25. package/lib/iota/builtin/index.js +7 -7
  26. package/lib/iota/ext/index.js +2 -2
  27. package/lib/iota/index.js +4 -4
  28. package/lib/move/index.js +1 -1
  29. package/lib/sui/builtin/0x1.js +5 -5
  30. package/lib/sui/builtin/0x2.js +6 -6
  31. package/lib/sui/builtin/0x3.js +7 -7
  32. package/lib/sui/builtin/index.js +7 -7
  33. package/lib/sui/ext/index.js +2 -2
  34. package/lib/sui/index.js +4 -4
  35. package/lib/testing/index.js +5 -5
  36. package/package.json +2 -2
  37. package/lib/chunk-6WV47VNX.js.map +0 -1
  38. /package/lib/{chunk-N4CHGUTE.js.map → chunk-BYI3PJSH.js.map} +0 -0
  39. /package/lib/{chunk-NEJJJYQT.js.map → chunk-GXMSKHV5.js.map} +0 -0
  40. /package/lib/{chunk-62FLLD6M.js.map → chunk-HY7P5TE6.js.map} +0 -0
  41. /package/lib/{chunk-HPKXZRIF.js.map → chunk-JWVPEAG3.js.map} +0 -0
  42. /package/lib/{chunk-7QGEZEHC.js.map → chunk-MMBJ7C6T.js.map} +0 -0
  43. /package/lib/{chunk-AXPJBLYF.js.map → chunk-OF6GQIBP.js.map} +0 -0
  44. /package/lib/{chunk-6TX54K65.js.map → chunk-ROVZFRLR.js.map} +0 -0
  45. /package/lib/{chunk-LMCCOEUH.js.map → chunk-VBWKCD5Y.js.map} +0 -0
  46. /package/lib/{chunk-5AUMWNTM.js.map → chunk-W5HNBE7Y.js.map} +0 -0
  47. /package/lib/{chunk-H5QN2DOV.js.map → chunk-XQVFMCYE.js.map} +0 -0
  48. /package/lib/{chunk-PSG2Y4GW.js.map → chunk-YM4EG5FX.js.map} +0 -0
@@ -21,7 +21,7 @@ import {
21
21
  matchType,
22
22
  moduleQname,
23
23
  parseMoveType
24
- } from "./chunk-6WV47VNX.js";
24
+ } from "./chunk-LHES6DNY.js";
25
25
  import {
26
26
  Field,
27
27
  FpInvertBatch,
@@ -21216,10 +21216,19 @@ var AptosTransactionProcessor = class {
21216
21216
  return this;
21217
21217
  }
21218
21218
  onResourceChange(handler, typeDesc, handlerOptions) {
21219
+ let typeDescArr = [];
21219
21220
  if (typeof typeDesc === "string") {
21220
- typeDesc = parseMoveType(typeDesc);
21221
+ typeDescArr = [parseMoveType(typeDesc)];
21222
+ } else if (Array.isArray(typeDesc)) {
21223
+ if (typeof typeDesc[0] === "string") {
21224
+ typeDescArr = typeDesc.map((t9) => parseMoveType(t9));
21225
+ } else {
21226
+ typeDescArr = typeDesc;
21227
+ }
21228
+ } else {
21229
+ typeDescArr = [typeDesc];
21221
21230
  }
21222
- const hasAny = typeDesc.existAnyType();
21231
+ const hasAny = typeDescArr.some((t9) => t9.existAnyType());
21223
21232
  const processor = this;
21224
21233
  this.resourceChangeHandlers.push({
21225
21234
  handlerName: getHandlerName(),
@@ -21240,7 +21249,7 @@ var AptosTransactionProcessor = class {
21240
21249
  if (hasAny) {
21241
21250
  resources = resources.filter((r13) => {
21242
21251
  const rt2 = parseMoveType(r13.type);
21243
- return matchType(typeDesc, rt2);
21252
+ return typeDescArr.find((t9) => matchType(t9, rt2)) !== void 0;
21244
21253
  });
21245
21254
  }
21246
21255
  if (resources.length > 0) {
@@ -21248,7 +21257,7 @@ var AptosTransactionProcessor = class {
21248
21257
  }
21249
21258
  return ctx.stopAndGetResult();
21250
21259
  }, "handler"),
21251
- type: hasAny ? typeDesc.qname : typeDesc.getNormalizedSignature(),
21260
+ type: hasAny ? typeDescArr.map((t9) => t9.qname) : typeDescArr.map((t9) => t9.getNormalizedSignature()),
21252
21261
  partitionHandler: /* @__PURE__ */ __name(async (data) => {
21253
21262
  const p7 = handlerOptions?.partitionKey;
21254
21263
  if (!p7) return void 0;
@@ -21450,10 +21459,19 @@ var AptosResourcesProcessor = class _AptosResourcesProcessor {
21450
21459
  );
21451
21460
  }
21452
21461
  onResourceChange(handler, typeDesc) {
21462
+ let typeDescArr = [];
21453
21463
  if (typeof typeDesc === "string") {
21454
- typeDesc = parseMoveType(typeDesc);
21464
+ typeDescArr = [parseMoveType(typeDesc)];
21465
+ } else if (Array.isArray(typeDesc)) {
21466
+ if (typeof typeDesc[0] === "string") {
21467
+ typeDescArr = typeDesc.map((t9) => parseMoveType(t9));
21468
+ } else {
21469
+ typeDescArr = typeDesc;
21470
+ }
21471
+ } else {
21472
+ typeDescArr = [typeDesc];
21455
21473
  }
21456
- const hasAny = typeDesc.existAnyType();
21474
+ const hasAny = typeDescArr.some((t9) => t9.existAnyType());
21457
21475
  const processor = this;
21458
21476
  this.resourceIntervalHandlers.push({
21459
21477
  fetchConfig: DEFAULT_RESOURCE_FETCH_CONFIG,
@@ -21475,7 +21493,7 @@ var AptosResourcesProcessor = class _AptosResourcesProcessor {
21475
21493
  if (hasAny) {
21476
21494
  resources = resources.filter((r13) => {
21477
21495
  const rt2 = parseMoveType(r13.data.type);
21478
- return matchType(typeDesc, rt2);
21496
+ return typeDescArr.find((t9) => matchType(t9, rt2)) != void 0;
21479
21497
  });
21480
21498
  }
21481
21499
  if (resources.length > 0) {
@@ -21483,7 +21501,7 @@ var AptosResourcesProcessor = class _AptosResourcesProcessor {
21483
21501
  }
21484
21502
  return ctx.stopAndGetResult();
21485
21503
  }, "handler"),
21486
- type: hasAny ? typeDesc.qname : typeDesc.getNormalizedSignature()
21504
+ type: hasAny ? typeDescArr.map((t9) => t9.qname) : typeDescArr.map((t9) => t9.getNormalizedSignature())
21487
21505
  });
21488
21506
  return this;
21489
21507
  }
@@ -25058,7 +25076,7 @@ var AptosPlugin = class extends Plugin {
25058
25076
  slotInterval: handler.versionInterval,
25059
25077
  fetchConfig: void 0
25060
25078
  },
25061
- type: handler.type || "",
25079
+ type: (Array.isArray(handler.type) ? handler.type[0] : handler.type) || "",
25062
25080
  ownerType: MoveOwnerType.ADDRESS,
25063
25081
  resourceFetchConfig: handler.fetchConfig,
25064
25082
  fetchConfig: void 0
@@ -25067,7 +25085,7 @@ var AptosPlugin = class extends Plugin {
25067
25085
  accountConfig.moveResourceChangeConfigs.push({
25068
25086
  handlerId,
25069
25087
  handlerName: handler.handlerName,
25070
- types: [handler.type],
25088
+ types: typeof handler.type == "string" ? [handler.type] : handler.type,
25071
25089
  includeDeleted: false
25072
25090
  });
25073
25091
  }
@@ -41563,4 +41581,4 @@ export {
41563
41581
  @scure/bip32/lib/esm/index.js:
41564
41582
  (*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
41565
41583
  */
41566
- //# sourceMappingURL=chunk-G6ADAWXI.js.map
41584
+ //# sourceMappingURL=chunk-ZLDJKEYW.js.map