@sentio/sdk-bundle 2.62.0-rc.12 → 2.62.0-rc.14

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 (78) hide show
  1. package/lib/aptos/builtin/0x1.js +4 -4
  2. package/lib/aptos/builtin/0x3.js +5 -5
  3. package/lib/aptos/builtin/0x4.js +5 -5
  4. package/lib/aptos/builtin/index.js +6 -6
  5. package/lib/aptos/ext/index.js +4 -4
  6. package/lib/aptos/index.js +4 -4
  7. package/lib/btc/index.js +2 -2
  8. package/lib/{chunk-VB7NRL7X.js → chunk-26F34PRB.js} +5 -5
  9. package/lib/{chunk-CYZSY3BD.js → chunk-2YA6EDBX.js} +176 -174
  10. package/lib/chunk-2YA6EDBX.js.map +1 -0
  11. package/lib/{chunk-264SL7AZ.js → chunk-3AGHQPPD.js} +9 -8
  12. package/lib/{chunk-264SL7AZ.js.map → chunk-3AGHQPPD.js.map} +1 -1
  13. package/lib/{chunk-TTNIGDUS.js → chunk-3L34RK3M.js} +2 -2
  14. package/lib/{chunk-TTNIGDUS.js.map → chunk-3L34RK3M.js.map} +1 -1
  15. package/lib/{chunk-FOHTW6RT.js → chunk-6RCZSY3K.js} +6 -6
  16. package/lib/{chunk-3I7QRROE.js → chunk-6VBLR5FN.js} +6 -6
  17. package/lib/{chunk-IIFJ2BBO.js → chunk-76XFMBKR.js} +2 -2
  18. package/lib/{chunk-HEWGWMBC.js → chunk-7IV3OBAD.js} +2 -2
  19. package/lib/{chunk-NTLTKNCZ.js → chunk-C5FVO5NU.js} +5 -5
  20. package/lib/{chunk-DH2Q7NZC.js → chunk-CFJY5DU3.js} +4 -4
  21. package/lib/{chunk-AJFTSJ4V.js → chunk-FN7K5CJL.js} +2 -2
  22. package/lib/{chunk-Q6CXMNB5.js → chunk-FOK6HXDM.js} +8 -8
  23. package/lib/{chunk-Q6CXMNB5.js.map → chunk-FOK6HXDM.js.map} +1 -1
  24. package/lib/{chunk-CQSHL3XU.js → chunk-IEFO3UQQ.js} +3 -3
  25. package/lib/{chunk-QXKBOTZF.js → chunk-JSUDZ4BC.js} +61 -61
  26. package/lib/{chunk-QXKBOTZF.js.map → chunk-JSUDZ4BC.js.map} +1 -1
  27. package/lib/{chunk-TETKQJS3.js → chunk-KSXVJFO6.js} +2 -2
  28. package/lib/{chunk-XFJPJ6U5.js → chunk-MQPDMAHC.js} +3 -3
  29. package/lib/{chunk-HIGFJU7A.js → chunk-R5RTVQ56.js} +27 -27
  30. package/lib/{chunk-HIGFJU7A.js.map → chunk-R5RTVQ56.js.map} +1 -1
  31. package/lib/{chunk-7ZV3DAAO.js → chunk-R7A4ZYUK.js} +2 -2
  32. package/lib/{chunk-4IAG3OPB.js → chunk-SK337FFE.js} +15 -15
  33. package/lib/{chunk-4IAG3OPB.js.map → chunk-SK337FFE.js.map} +1 -1
  34. package/lib/{chunk-7VLYXLQQ.js → chunk-XG2SJDUV.js} +4 -4
  35. package/lib/core/index.js +1 -1
  36. package/lib/eth/builtin/eacaggregatorproxy.js +2 -2
  37. package/lib/eth/builtin/erc1155.js +3 -3
  38. package/lib/eth/builtin/erc20.js +2 -2
  39. package/lib/eth/builtin/erc721.js +2 -2
  40. package/lib/eth/builtin/index.js +4 -4
  41. package/lib/eth/builtin/weth9.js +3 -3
  42. package/lib/eth/index.js +2 -2
  43. package/lib/fuel/index.js +2 -2
  44. package/lib/index.js +1 -1
  45. package/lib/iota/builtin/0x1.js +7 -7
  46. package/lib/iota/builtin/0x2.js +8 -8
  47. package/lib/iota/builtin/0x3.js +9 -9
  48. package/lib/iota/builtin/index.js +9 -9
  49. package/lib/iota/ext/index.js +4 -4
  50. package/lib/iota/index.js +6 -6
  51. package/lib/move/index.js +2 -2
  52. package/lib/solana/builtin/index.js +2 -2
  53. package/lib/solana/index.js +2 -2
  54. package/lib/stark/index.js +1 -1
  55. package/lib/store/index.js +1 -1
  56. package/lib/sui/builtin/0x1.js +7 -7
  57. package/lib/sui/builtin/0x2.js +8 -8
  58. package/lib/sui/builtin/0x3.js +9 -9
  59. package/lib/sui/builtin/index.js +9 -9
  60. package/lib/sui/ext/index.js +4 -4
  61. package/lib/sui/index.js +6 -6
  62. package/lib/testing/index.js +9 -9
  63. package/lib/utils/index.js +2 -2
  64. package/package.json +2 -2
  65. package/lib/chunk-CYZSY3BD.js.map +0 -1
  66. /package/lib/{chunk-VB7NRL7X.js.map → chunk-26F34PRB.js.map} +0 -0
  67. /package/lib/{chunk-FOHTW6RT.js.map → chunk-6RCZSY3K.js.map} +0 -0
  68. /package/lib/{chunk-3I7QRROE.js.map → chunk-6VBLR5FN.js.map} +0 -0
  69. /package/lib/{chunk-IIFJ2BBO.js.map → chunk-76XFMBKR.js.map} +0 -0
  70. /package/lib/{chunk-HEWGWMBC.js.map → chunk-7IV3OBAD.js.map} +0 -0
  71. /package/lib/{chunk-NTLTKNCZ.js.map → chunk-C5FVO5NU.js.map} +0 -0
  72. /package/lib/{chunk-DH2Q7NZC.js.map → chunk-CFJY5DU3.js.map} +0 -0
  73. /package/lib/{chunk-AJFTSJ4V.js.map → chunk-FN7K5CJL.js.map} +0 -0
  74. /package/lib/{chunk-CQSHL3XU.js.map → chunk-IEFO3UQQ.js.map} +0 -0
  75. /package/lib/{chunk-TETKQJS3.js.map → chunk-KSXVJFO6.js.map} +0 -0
  76. /package/lib/{chunk-XFJPJ6U5.js.map → chunk-MQPDMAHC.js.map} +0 -0
  77. /package/lib/{chunk-7ZV3DAAO.js.map → chunk-R7A4ZYUK.js.map} +0 -0
  78. /package/lib/{chunk-7VLYXLQQ.js.map → chunk-XG2SJDUV.js.map} +0 -0
@@ -31,20 +31,20 @@ import {
31
31
  } from "./chunk-742S42NO.js";
32
32
  import {
33
33
  getPriceByType
34
- } from "./chunk-IIFJ2BBO.js";
34
+ } from "./chunk-76XFMBKR.js";
35
35
  import {
36
36
  SPLITTER,
37
37
  accountTypeString
38
- } from "./chunk-264SL7AZ.js";
38
+ } from "./chunk-3AGHQPPD.js";
39
39
  import {
40
40
  __name
41
41
  } from "./chunk-R7PMHHKJ.js";
42
42
 
43
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/b58.js
43
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/b58.js
44
44
  var toBase58 = /* @__PURE__ */ __name((buffer) => base58.encode(buffer), "toBase58");
45
45
  var fromBase58 = /* @__PURE__ */ __name((str) => base58.decode(str), "fromBase58");
46
46
 
47
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/b64.js
47
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/b64.js
48
48
  function fromBase64(base64String2) {
49
49
  return Uint8Array.from(atob(base64String2), (char) => char.charCodeAt(0));
50
50
  }
@@ -63,7 +63,7 @@ function toBase64(bytes) {
63
63
  }
64
64
  __name(toBase64, "toBase64");
65
65
 
66
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/hex.js
66
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/hex.js
67
67
  function fromHex(hexStr) {
68
68
  const normalized = hexStr.startsWith("0x") ? hexStr.slice(2) : hexStr;
69
69
  const padded = normalized.length % 2 === 0 ? normalized : `0${normalized}`;
@@ -79,7 +79,7 @@ function toHex(bytes) {
79
79
  }
80
80
  __name(toHex, "toHex");
81
81
 
82
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/chunk.js
82
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/chunk.js
83
83
  function chunk(array2, size) {
84
84
  return Array.from({ length: Math.ceil(array2.length / size) }, (_, i) => {
85
85
  return array2.slice(i * size, (i + 1) * size);
@@ -87,7 +87,7 @@ function chunk(array2, size) {
87
87
  }
88
88
  __name(chunk, "chunk");
89
89
 
90
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/dataloader.js
90
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/dataloader.js
91
91
  var DataLoader = class {
92
92
  static {
93
93
  __name(this, "DataLoader");
@@ -396,7 +396,7 @@ function isArrayLike(x) {
396
396
  }
397
397
  __name(isArrayLike, "isArrayLike");
398
398
 
399
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/uleb.js
399
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/uleb.js
400
400
  function ulebEncode(num) {
401
401
  const arr = [];
402
402
  let len = 0;
@@ -433,7 +433,7 @@ function ulebDecode(arr) {
433
433
  }
434
434
  __name(ulebDecode, "ulebDecode");
435
435
 
436
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/reader.js
436
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/reader.js
437
437
  var BcsReader = class {
438
438
  static {
439
439
  __name(this, "BcsReader");
@@ -549,7 +549,7 @@ var BcsReader = class {
549
549
  }
550
550
  };
551
551
 
552
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/utils.js
552
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/utils.js
553
553
  function encodeStr(data, encoding) {
554
554
  switch (encoding) {
555
555
  case "base58":
@@ -588,7 +588,7 @@ function splitGenericParameters(str, genericSeparators = ["<", ">"]) {
588
588
  }
589
589
  __name(splitGenericParameters, "splitGenericParameters");
590
590
 
591
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/writer.js
591
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/writer.js
592
592
  var BcsWriter = class {
593
593
  static {
594
594
  __name(this, "BcsWriter");
@@ -748,7 +748,7 @@ function toLittleEndian(bigint2, size) {
748
748
  }
749
749
  __name(toLittleEndian, "toLittleEndian");
750
750
 
751
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/bcs-type.js
751
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/bcs-type.js
752
752
  var __typeError = /* @__PURE__ */ __name((msg) => {
753
753
  throw TypeError(msg);
754
754
  }, "__typeError");
@@ -834,11 +834,11 @@ var SerializedBcs = class {
834
834
  static {
835
835
  __name(this, "SerializedBcs");
836
836
  }
837
- constructor(type, schema) {
837
+ constructor(schema, bytes) {
838
838
  __privateAdd(this, _schema);
839
839
  __privateAdd(this, _bytes);
840
- __privateSet(this, _schema, type);
841
- __privateSet(this, _bytes, schema);
840
+ __privateSet(this, _schema, schema);
841
+ __privateSet(this, _bytes, bytes);
842
842
  }
843
843
  // Used to brand SerializedBcs so that they can be identified, even between multiple copies
844
844
  // of the @mysten/bcs package are installed
@@ -1123,7 +1123,7 @@ var BcsTuple = class extends BcsType {
1123
1123
  }
1124
1124
  };
1125
1125
 
1126
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/bcs.js
1126
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/bcs.js
1127
1127
  function fixedArray(size, type, options) {
1128
1128
  return new BcsType({
1129
1129
  read: /* @__PURE__ */ __name((reader) => {
@@ -1514,7 +1514,7 @@ var bcs = {
1514
1514
  }
1515
1515
  };
1516
1516
 
1517
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/utils/suins.js
1517
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/utils/suins.js
1518
1518
  var SUI_NS_NAME_REGEX = /^(?!.*(^(?!@)|[-.@])($|[-.@]))(?:[a-z0-9-]{0,63}(?:\.[a-z0-9-]{0,63})*)?@[a-z0-9-]{0,63}$/i;
1519
1519
  var SUI_NS_DOMAIN_REGEX = /^(?!.*(^|[-.])($|[-.]))(?:[a-z0-9-]{0,63}\.)+sui$/i;
1520
1520
  var MAX_SUI_NS_NAME_LENGTH = 235;
@@ -1550,7 +1550,7 @@ function normalizeSuiNSName(name2, format = "at") {
1550
1550
  }
1551
1551
  __name(normalizeSuiNSName, "normalizeSuiNSName");
1552
1552
 
1553
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/utils/move-registry.js
1553
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/utils/move-registry.js
1554
1554
  var NAME_PATTERN = /^([a-z0-9]+(?:-[a-z0-9]+)*)$/;
1555
1555
  var VERSION_REGEX = /^\d+$/;
1556
1556
  var MAX_APP_SIZE = 64;
@@ -1571,7 +1571,7 @@ var isValidNamedType = /* @__PURE__ */ __name((type) => {
1571
1571
  return true;
1572
1572
  }, "isValidNamedType");
1573
1573
 
1574
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/utils/sui-types.js
1574
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/utils/sui-types.js
1575
1575
  var TX_DIGEST_LENGTH = 32;
1576
1576
  function isValidTransactionDigest(value) {
1577
1577
  try {
@@ -1641,7 +1641,7 @@ function getHexByteLength(value) {
1641
1641
  }
1642
1642
  __name(getHexByteLength, "getHexByteLength");
1643
1643
 
1644
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/data/internal.js
1644
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/data/internal.js
1645
1645
  function safeEnum(options) {
1646
1646
  const unionOptions = Object.entries(options).map(([key, value]) => object({ [key]: value }));
1647
1647
  return pipe(
@@ -1671,12 +1671,12 @@ var JsonU64 = pipe(
1671
1671
  }
1672
1672
  }, "Invalid u64")
1673
1673
  );
1674
- var ObjectRef = object({
1674
+ var ObjectRefSchema = object({
1675
1675
  objectId: SuiAddress,
1676
1676
  version: JsonU64,
1677
1677
  digest: string()
1678
1678
  });
1679
- var Argument = pipe(
1679
+ var ArgumentSchema = pipe(
1680
1680
  union([
1681
1681
  object({ GasCoin: literal(true) }),
1682
1682
  object({ Input: pipe(number(), integer()), type: optional(literal("pure")) }),
@@ -1690,20 +1690,20 @@ var Argument = pipe(
1690
1690
  }))
1691
1691
  // Defined manually to add `type?: 'pure' | 'object'` to Input
1692
1692
  );
1693
- var GasData = object({
1693
+ var GasDataSchema = object({
1694
1694
  budget: nullable(JsonU64),
1695
1695
  price: nullable(JsonU64),
1696
1696
  owner: nullable(SuiAddress),
1697
- payment: nullable(array(ObjectRef))
1697
+ payment: nullable(array(ObjectRefSchema))
1698
1698
  });
1699
- var StructTag = object({
1699
+ var StructTagSchema = object({
1700
1700
  address: string(),
1701
1701
  module: string(),
1702
1702
  name: string(),
1703
1703
  // type_params in rust, should be updated to use camelCase
1704
1704
  typeParams: array(string())
1705
1705
  });
1706
- var OpenMoveTypeSignatureBody = union([
1706
+ var OpenMoveTypeSignatureBodySchema = union([
1707
1707
  literal("address"),
1708
1708
  literal("bool"),
1709
1709
  literal("u8"),
@@ -1712,48 +1712,48 @@ var OpenMoveTypeSignatureBody = union([
1712
1712
  literal("u64"),
1713
1713
  literal("u128"),
1714
1714
  literal("u256"),
1715
- object({ vector: lazy(() => OpenMoveTypeSignatureBody) }),
1715
+ object({ vector: lazy(() => OpenMoveTypeSignatureBodySchema) }),
1716
1716
  object({
1717
1717
  datatype: object({
1718
1718
  package: string(),
1719
1719
  module: string(),
1720
1720
  type: string(),
1721
- typeParameters: array(lazy(() => OpenMoveTypeSignatureBody))
1721
+ typeParameters: array(lazy(() => OpenMoveTypeSignatureBodySchema))
1722
1722
  })
1723
1723
  }),
1724
1724
  object({ typeParameter: pipe(number(), integer()) })
1725
1725
  ]);
1726
- var OpenMoveTypeSignature = object({
1726
+ var OpenMoveTypeSignatureSchema = object({
1727
1727
  ref: nullable(union([literal("&"), literal("&mut")])),
1728
- body: OpenMoveTypeSignatureBody
1728
+ body: OpenMoveTypeSignatureBodySchema
1729
1729
  });
1730
- var ProgrammableMoveCall = object({
1730
+ var ProgrammableMoveCallSchema = object({
1731
1731
  package: ObjectID,
1732
1732
  module: string(),
1733
1733
  function: string(),
1734
1734
  // snake case in rust
1735
1735
  typeArguments: array(string()),
1736
- arguments: array(Argument),
1737
- _argumentTypes: optional(nullable(array(OpenMoveTypeSignature)))
1736
+ arguments: array(ArgumentSchema),
1737
+ _argumentTypes: optional(nullable(array(OpenMoveTypeSignatureSchema)))
1738
1738
  });
1739
1739
  var $Intent = object({
1740
1740
  name: string(),
1741
- inputs: record(string(), union([Argument, array(Argument)])),
1741
+ inputs: record(string(), union([ArgumentSchema, array(ArgumentSchema)])),
1742
1742
  data: record(string(), unknown())
1743
1743
  });
1744
- var Command = safeEnum({
1745
- MoveCall: ProgrammableMoveCall,
1744
+ var CommandSchema = safeEnum({
1745
+ MoveCall: ProgrammableMoveCallSchema,
1746
1746
  TransferObjects: object({
1747
- objects: array(Argument),
1748
- address: Argument
1747
+ objects: array(ArgumentSchema),
1748
+ address: ArgumentSchema
1749
1749
  }),
1750
1750
  SplitCoins: object({
1751
- coin: Argument,
1752
- amounts: array(Argument)
1751
+ coin: ArgumentSchema,
1752
+ amounts: array(ArgumentSchema)
1753
1753
  }),
1754
1754
  MergeCoins: object({
1755
- destination: Argument,
1756
- sources: array(Argument)
1755
+ destination: ArgumentSchema,
1756
+ sources: array(ArgumentSchema)
1757
1757
  }),
1758
1758
  Publish: object({
1759
1759
  modules: array(BCSBytes),
@@ -1761,28 +1761,28 @@ var Command = safeEnum({
1761
1761
  }),
1762
1762
  MakeMoveVec: object({
1763
1763
  type: nullable(string()),
1764
- elements: array(Argument)
1764
+ elements: array(ArgumentSchema)
1765
1765
  }),
1766
1766
  Upgrade: object({
1767
1767
  modules: array(BCSBytes),
1768
1768
  dependencies: array(ObjectID),
1769
1769
  package: ObjectID,
1770
- ticket: Argument
1770
+ ticket: ArgumentSchema
1771
1771
  }),
1772
1772
  $Intent
1773
1773
  });
1774
- var ObjectArg = safeEnum({
1775
- ImmOrOwnedObject: ObjectRef,
1774
+ var ObjectArgSchema = safeEnum({
1775
+ ImmOrOwnedObject: ObjectRefSchema,
1776
1776
  SharedObject: object({
1777
1777
  objectId: ObjectID,
1778
1778
  // snake case in rust
1779
1779
  initialSharedVersion: JsonU64,
1780
1780
  mutable: boolean()
1781
1781
  }),
1782
- Receiving: ObjectRef
1782
+ Receiving: ObjectRefSchema
1783
1783
  });
1784
- var CallArg = safeEnum({
1785
- Object: ObjectArg,
1784
+ var CallArgSchema = safeEnum({
1785
+ Object: ObjectArgSchema,
1786
1786
  Pure: object({
1787
1787
  bytes: BCSBytes
1788
1788
  }),
@@ -1798,7 +1798,7 @@ var CallArg = safeEnum({
1798
1798
  })
1799
1799
  });
1800
1800
  var NormalizedCallArg = safeEnum({
1801
- Object: ObjectArg,
1801
+ Object: ObjectArgSchema,
1802
1802
  Pure: object({
1803
1803
  bytes: BCSBytes
1804
1804
  })
@@ -1807,16 +1807,16 @@ var TransactionExpiration = safeEnum({
1807
1807
  None: literal(true),
1808
1808
  Epoch: JsonU64
1809
1809
  });
1810
- var TransactionData = object({
1810
+ var TransactionDataSchema = object({
1811
1811
  version: literal(2),
1812
1812
  sender: nullish(SuiAddress),
1813
1813
  expiration: nullish(TransactionExpiration),
1814
- gasData: GasData,
1815
- inputs: array(CallArg),
1816
- commands: array(Command)
1814
+ gasData: GasDataSchema,
1815
+ inputs: array(CallArgSchema),
1816
+ commands: array(CommandSchema)
1817
1817
  });
1818
1818
 
1819
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/Commands.js
1819
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/Commands.js
1820
1820
  var Commands = {
1821
1821
  MoveCall(input) {
1822
1822
  const [pkg, mod = "", fn = ""] = "target" in input ? input.target.split("::") : [input.package, input.module, input.function];
@@ -1835,8 +1835,8 @@ var Commands = {
1835
1835
  return {
1836
1836
  $kind: "TransferObjects",
1837
1837
  TransferObjects: {
1838
- objects: objects.map((o) => parse(Argument, o)),
1839
- address: parse(Argument, address)
1838
+ objects: objects.map((o) => parse(ArgumentSchema, o)),
1839
+ address: parse(ArgumentSchema, address)
1840
1840
  }
1841
1841
  };
1842
1842
  },
@@ -1844,8 +1844,8 @@ var Commands = {
1844
1844
  return {
1845
1845
  $kind: "SplitCoins",
1846
1846
  SplitCoins: {
1847
- coin: parse(Argument, coin),
1848
- amounts: amounts.map((o) => parse(Argument, o))
1847
+ coin: parse(ArgumentSchema, coin),
1848
+ amounts: amounts.map((o) => parse(ArgumentSchema, o))
1849
1849
  }
1850
1850
  };
1851
1851
  },
@@ -1853,8 +1853,8 @@ var Commands = {
1853
1853
  return {
1854
1854
  $kind: "MergeCoins",
1855
1855
  MergeCoins: {
1856
- destination: parse(Argument, destination),
1857
- sources: sources.map((o) => parse(Argument, o))
1856
+ destination: parse(ArgumentSchema, destination),
1857
+ sources: sources.map((o) => parse(ArgumentSchema, o))
1858
1858
  }
1859
1859
  };
1860
1860
  },
@@ -1886,7 +1886,7 @@ var Commands = {
1886
1886
  ),
1887
1887
  dependencies: dependencies.map((dep) => normalizeSuiObjectId(dep)),
1888
1888
  package: packageId,
1889
- ticket: parse(Argument, ticket)
1889
+ ticket: parse(ArgumentSchema, ticket)
1890
1890
  }
1891
1891
  };
1892
1892
  },
@@ -1898,7 +1898,7 @@ var Commands = {
1898
1898
  $kind: "MakeMoveVec",
1899
1899
  MakeMoveVec: {
1900
1900
  type: type ?? null,
1901
- elements: elements.map((o) => parse(Argument, o))
1901
+ elements: elements.map((o) => parse(ArgumentSchema, o))
1902
1902
  }
1903
1903
  };
1904
1904
  },
@@ -1914,7 +1914,7 @@ var Commands = {
1914
1914
  inputs: Object.fromEntries(
1915
1915
  Object.entries(inputs).map(([key, value]) => [
1916
1916
  key,
1917
- Array.isArray(value) ? value.map((o) => parse(Argument, o)) : parse(Argument, value)
1917
+ Array.isArray(value) ? value.map((o) => parse(ArgumentSchema, o)) : parse(ArgumentSchema, value)
1918
1918
  ])
1919
1919
  ),
1920
1920
  data
@@ -1923,7 +1923,7 @@ var Commands = {
1923
1923
  }
1924
1924
  };
1925
1925
 
1926
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/bcs/type-tag-serializer.js
1926
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/bcs/type-tag-serializer.js
1927
1927
  var VECTOR_REGEX = /^vector<(.+)>$/;
1928
1928
  var STRUCT_REGEX = /^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/;
1929
1929
  var TypeTagSerializer = class _TypeTagSerializer {
@@ -2015,7 +2015,7 @@ var TypeTagSerializer = class _TypeTagSerializer {
2015
2015
  }
2016
2016
  };
2017
2017
 
2018
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/bcs/bcs.js
2018
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/bcs/bcs.js
2019
2019
  function unsafe_u64(options) {
2020
2020
  return bcs.u64({
2021
2021
  name: "unsafe_u64",
@@ -2063,7 +2063,7 @@ var SharedObjectRef = bcs.struct("SharedObjectRef", {
2063
2063
  initialSharedVersion: bcs.u64(),
2064
2064
  mutable: bcs.bool()
2065
2065
  });
2066
- var ObjectArg2 = bcs.enum("ObjectArg", {
2066
+ var ObjectArg = bcs.enum("ObjectArg", {
2067
2067
  ImmOrOwnedObject: SuiObjectRef,
2068
2068
  SharedObject: SharedObjectRef,
2069
2069
  Receiving: SuiObjectRef
@@ -2080,14 +2080,14 @@ var Owner = bcs.enum("Owner", {
2080
2080
  startVersion: bcs.u64()
2081
2081
  })
2082
2082
  });
2083
- var CallArg2 = bcs.enum("CallArg", {
2083
+ var CallArg = bcs.enum("CallArg", {
2084
2084
  Pure: bcs.struct("Pure", {
2085
2085
  bytes: bcs.vector(bcs.u8()).transform({
2086
2086
  input: /* @__PURE__ */ __name((val) => typeof val === "string" ? fromBase64(val) : val, "input"),
2087
2087
  output: /* @__PURE__ */ __name((val) => toBase64(new Uint8Array(val)), "output")
2088
2088
  })
2089
2089
  }),
2090
- Object: ObjectArg2
2090
+ Object: ObjectArg
2091
2091
  });
2092
2092
  var InnerTypeTag = bcs.enum("TypeTag", {
2093
2093
  bool: null,
@@ -2097,7 +2097,7 @@ var InnerTypeTag = bcs.enum("TypeTag", {
2097
2097
  address: null,
2098
2098
  signer: null,
2099
2099
  vector: bcs.lazy(() => InnerTypeTag),
2100
- struct: bcs.lazy(() => StructTag2),
2100
+ struct: bcs.lazy(() => StructTag),
2101
2101
  u16: null,
2102
2102
  u32: null,
2103
2103
  u256: null
@@ -2106,46 +2106,46 @@ var TypeTag = InnerTypeTag.transform({
2106
2106
  input: /* @__PURE__ */ __name((typeTag) => typeof typeTag === "string" ? TypeTagSerializer.parseFromStr(typeTag, true) : typeTag, "input"),
2107
2107
  output: /* @__PURE__ */ __name((typeTag) => TypeTagSerializer.tagToString(typeTag), "output")
2108
2108
  });
2109
- var Argument2 = bcs.enum("Argument", {
2109
+ var Argument = bcs.enum("Argument", {
2110
2110
  GasCoin: null,
2111
2111
  Input: bcs.u16(),
2112
2112
  Result: bcs.u16(),
2113
2113
  NestedResult: bcs.tuple([bcs.u16(), bcs.u16()])
2114
2114
  });
2115
- var ProgrammableMoveCall2 = bcs.struct("ProgrammableMoveCall", {
2115
+ var ProgrammableMoveCall = bcs.struct("ProgrammableMoveCall", {
2116
2116
  package: Address,
2117
2117
  module: bcs.string(),
2118
2118
  function: bcs.string(),
2119
2119
  typeArguments: bcs.vector(TypeTag),
2120
- arguments: bcs.vector(Argument2)
2120
+ arguments: bcs.vector(Argument)
2121
2121
  });
2122
- var Command2 = bcs.enum("Command", {
2122
+ var Command = bcs.enum("Command", {
2123
2123
  /**
2124
2124
  * A Move Call - any public Move function can be called via
2125
2125
  * this transaction. The results can be used that instant to pass
2126
2126
  * into the next transaction.
2127
2127
  */
2128
- MoveCall: ProgrammableMoveCall2,
2128
+ MoveCall: ProgrammableMoveCall,
2129
2129
  /**
2130
2130
  * Transfer vector of objects to a receiver.
2131
2131
  */
2132
2132
  TransferObjects: bcs.struct("TransferObjects", {
2133
- objects: bcs.vector(Argument2),
2134
- address: Argument2
2133
+ objects: bcs.vector(Argument),
2134
+ address: Argument
2135
2135
  }),
2136
2136
  // /**
2137
2137
  // * Split `amount` from a `coin`.
2138
2138
  // */
2139
2139
  SplitCoins: bcs.struct("SplitCoins", {
2140
- coin: Argument2,
2141
- amounts: bcs.vector(Argument2)
2140
+ coin: Argument,
2141
+ amounts: bcs.vector(Argument)
2142
2142
  }),
2143
2143
  // /**
2144
2144
  // * Merge Vector of Coins (`sources`) into a `destination`.
2145
2145
  // */
2146
2146
  MergeCoins: bcs.struct("MergeCoins", {
2147
- destination: Argument2,
2148
- sources: bcs.vector(Argument2)
2147
+ destination: Argument,
2148
+ sources: bcs.vector(Argument)
2149
2149
  }),
2150
2150
  // /**
2151
2151
  // * Publish a Move module.
@@ -2173,7 +2173,7 @@ var Command2 = bcs.enum("Command", {
2173
2173
  }, "input"),
2174
2174
  output: /* @__PURE__ */ __name((val) => val.Some ?? null, "output")
2175
2175
  }),
2176
- elements: bcs.vector(Argument2)
2176
+ elements: bcs.vector(Argument)
2177
2177
  }),
2178
2178
  Upgrade: bcs.struct("Upgrade", {
2179
2179
  modules: bcs.vector(
@@ -2184,12 +2184,12 @@ var Command2 = bcs.enum("Command", {
2184
2184
  ),
2185
2185
  dependencies: bcs.vector(Address),
2186
2186
  package: Address,
2187
- ticket: Argument2
2187
+ ticket: Argument
2188
2188
  })
2189
2189
  });
2190
2190
  var ProgrammableTransaction = bcs.struct("ProgrammableTransaction", {
2191
- inputs: bcs.vector(CallArg2),
2192
- commands: bcs.vector(Command2)
2191
+ inputs: bcs.vector(CallArg),
2192
+ commands: bcs.vector(Command)
2193
2193
  });
2194
2194
  var TransactionKind = bcs.enum("TransactionKind", {
2195
2195
  ProgrammableTransaction,
@@ -2201,13 +2201,13 @@ var TransactionExpiration2 = bcs.enum("TransactionExpiration", {
2201
2201
  None: null,
2202
2202
  Epoch: unsafe_u64()
2203
2203
  });
2204
- var StructTag2 = bcs.struct("StructTag", {
2204
+ var StructTag = bcs.struct("StructTag", {
2205
2205
  address: Address,
2206
2206
  module: bcs.string(),
2207
2207
  name: bcs.string(),
2208
2208
  typeParams: bcs.vector(InnerTypeTag)
2209
2209
  });
2210
- var GasData2 = bcs.struct("GasData", {
2210
+ var GasData = bcs.struct("GasData", {
2211
2211
  payment: bcs.vector(SuiObjectRef),
2212
2212
  owner: Address,
2213
2213
  price: bcs.u64(),
@@ -2216,10 +2216,10 @@ var GasData2 = bcs.struct("GasData", {
2216
2216
  var TransactionDataV1 = bcs.struct("TransactionDataV1", {
2217
2217
  kind: TransactionKind,
2218
2218
  sender: Address,
2219
- gasData: GasData2,
2219
+ gasData: GasData,
2220
2220
  expiration: TransactionExpiration2
2221
2221
  });
2222
- var TransactionData2 = bcs.enum("TransactionData", {
2222
+ var TransactionData = bcs.enum("TransactionData", {
2223
2223
  V1: TransactionDataV1
2224
2224
  });
2225
2225
  var IntentScope = bcs.enum("IntentScope", {
@@ -2278,7 +2278,7 @@ var base64String = bcs.vector(bcs.u8()).transform({
2278
2278
  output: /* @__PURE__ */ __name((val) => toBase64(new Uint8Array(val)), "output")
2279
2279
  });
2280
2280
  var SenderSignedTransaction = bcs.struct("SenderSignedTransaction", {
2281
- intentMessage: IntentMessage(TransactionData2),
2281
+ intentMessage: IntentMessage(TransactionData),
2282
2282
  txSignatures: bcs.vector(base64String)
2283
2283
  });
2284
2284
  var SenderSignedData = bcs.vector(SenderSignedTransaction, {
@@ -2290,7 +2290,7 @@ var PasskeyAuthenticator = bcs.struct("PasskeyAuthenticator", {
2290
2290
  userSignature: bcs.vector(bcs.u8())
2291
2291
  });
2292
2292
 
2293
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/bcs/effects.js
2293
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/bcs/effects.js
2294
2294
  var PackageUpgradeError = bcs.enum("PackageUpgradeError", {
2295
2295
  UnableToFetchPackage: bcs.struct("UnableToFetchPackage", { packageId: Address }),
2296
2296
  NotAPackage: bcs.struct("NotAPackage", { objectId: Address }),
@@ -2476,7 +2476,7 @@ var TransactionEffects = bcs.enum("TransactionEffects", {
2476
2476
  V2: TransactionEffectsV2
2477
2477
  });
2478
2478
 
2479
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/bcs/pure.js
2479
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/bcs/pure.js
2480
2480
  function pureBcsSchemaFromTypeName(name2) {
2481
2481
  switch (name2) {
2482
2482
  case "u8":
@@ -2512,7 +2512,7 @@ function pureBcsSchemaFromTypeName(name2) {
2512
2512
  }
2513
2513
  __name(pureBcsSchemaFromTypeName, "pureBcsSchemaFromTypeName");
2514
2514
 
2515
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/bcs/index.js
2515
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/bcs/index.js
2516
2516
  var suiBcs = {
2517
2517
  ...bcs,
2518
2518
  U8: bcs.u8(),
@@ -2526,11 +2526,11 @@ var suiBcs = {
2526
2526
  String: bcs.string(),
2527
2527
  Address,
2528
2528
  AppId,
2529
- Argument: Argument2,
2530
- CallArg: CallArg2,
2531
- Command: Command2,
2529
+ Argument,
2530
+ CallArg,
2531
+ Command,
2532
2532
  CompressedSignature,
2533
- GasData: GasData2,
2533
+ GasData,
2534
2534
  Intent,
2535
2535
  IntentMessage,
2536
2536
  IntentScope,
@@ -2538,19 +2538,19 @@ var suiBcs = {
2538
2538
  MultiSig,
2539
2539
  MultiSigPkMap,
2540
2540
  MultiSigPublicKey,
2541
- ObjectArg: ObjectArg2,
2541
+ ObjectArg,
2542
2542
  ObjectDigest,
2543
2543
  Owner,
2544
2544
  PasskeyAuthenticator,
2545
- ProgrammableMoveCall: ProgrammableMoveCall2,
2545
+ ProgrammableMoveCall,
2546
2546
  ProgrammableTransaction,
2547
2547
  PublicKey,
2548
2548
  SenderSignedData,
2549
2549
  SenderSignedTransaction,
2550
2550
  SharedObjectRef,
2551
- StructTag: StructTag2,
2551
+ StructTag,
2552
2552
  SuiObjectRef,
2553
- TransactionData: TransactionData2,
2553
+ TransactionData,
2554
2554
  TransactionDataV1,
2555
2555
  TransactionEffects,
2556
2556
  TransactionExpiration: TransactionExpiration2,
@@ -2558,23 +2558,23 @@ var suiBcs = {
2558
2558
  TypeTag
2559
2559
  };
2560
2560
 
2561
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/data/v1.js
2562
- var ObjectRef2 = object({
2561
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/data/v1.js
2562
+ var ObjectRef = object({
2563
2563
  digest: string(),
2564
2564
  objectId: string(),
2565
2565
  version: union([pipe(number(), integer()), string(), bigint()])
2566
2566
  });
2567
- var ObjectArg3 = safeEnum({
2568
- ImmOrOwned: ObjectRef2,
2567
+ var ObjectArg2 = safeEnum({
2568
+ ImmOrOwned: ObjectRef,
2569
2569
  Shared: object({
2570
2570
  objectId: ObjectID,
2571
2571
  initialSharedVersion: JsonU64,
2572
2572
  mutable: boolean()
2573
2573
  }),
2574
- Receiving: ObjectRef2
2574
+ Receiving: ObjectRef
2575
2575
  });
2576
2576
  var NormalizedCallArg2 = safeEnum({
2577
- Object: ObjectArg3,
2577
+ Object: ObjectArg2,
2578
2578
  Pure: array(pipe(number(), integer()))
2579
2579
  });
2580
2580
  var TransactionInput = union([
@@ -2615,12 +2615,12 @@ var TypeTag2 = union([
2615
2615
  object({ address: nullable(literal(true)) }),
2616
2616
  object({ signer: nullable(literal(true)) }),
2617
2617
  object({ vector: lazy(() => TypeTag2) }),
2618
- object({ struct: lazy(() => StructTag3) }),
2618
+ object({ struct: lazy(() => StructTag2) }),
2619
2619
  object({ u16: nullable(literal(true)) }),
2620
2620
  object({ u32: nullable(literal(true)) }),
2621
2621
  object({ u256: nullable(literal(true)) })
2622
2622
  ]);
2623
- var StructTag3 = object({
2623
+ var StructTag2 = object({
2624
2624
  address: string(),
2625
2625
  module: string(),
2626
2626
  name: string(),
@@ -2629,7 +2629,7 @@ var StructTag3 = object({
2629
2629
  var GasConfig = object({
2630
2630
  budget: optional(StringEncodedBigint),
2631
2631
  price: optional(StringEncodedBigint),
2632
- payment: optional(array(ObjectRef2)),
2632
+ payment: optional(array(ObjectRef)),
2633
2633
  owner: optional(string())
2634
2634
  });
2635
2635
  var TransactionArgumentTypes = [
@@ -2850,7 +2850,7 @@ function convertTransactionArgument(arg, inputs) {
2850
2850
  }
2851
2851
  __name(convertTransactionArgument, "convertTransactionArgument");
2852
2852
  function transactionDataFromV1(data) {
2853
- return parse(TransactionData, {
2853
+ return parse(TransactionDataSchema, {
2854
2854
  version: 2,
2855
2855
  sender: data.sender ?? null,
2856
2856
  expiration: data.expiration ? "Epoch" in data.expiration ? { Epoch: data.expiration.Epoch } : { None: true } : null,
@@ -3011,51 +3011,51 @@ function parseV1TransactionArgument(arg) {
3011
3011
  }
3012
3012
  __name(parseV1TransactionArgument, "parseV1TransactionArgument");
3013
3013
 
3014
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/data/v2.js
3014
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/data/v2.js
3015
3015
  function enumUnion(options) {
3016
3016
  return union(
3017
3017
  Object.entries(options).map(([key, value]) => object({ [key]: value }))
3018
3018
  );
3019
3019
  }
3020
3020
  __name(enumUnion, "enumUnion");
3021
- var Argument3 = enumUnion({
3021
+ var Argument2 = enumUnion({
3022
3022
  GasCoin: literal(true),
3023
3023
  Input: pipe(number(), integer()),
3024
3024
  Result: pipe(number(), integer()),
3025
3025
  NestedResult: tuple([pipe(number(), integer()), pipe(number(), integer())])
3026
3026
  });
3027
- var GasData3 = object({
3027
+ var GasData2 = object({
3028
3028
  budget: nullable(JsonU64),
3029
3029
  price: nullable(JsonU64),
3030
3030
  owner: nullable(SuiAddress),
3031
- payment: nullable(array(ObjectRef))
3031
+ payment: nullable(array(ObjectRefSchema))
3032
3032
  });
3033
- var ProgrammableMoveCall3 = object({
3033
+ var ProgrammableMoveCall2 = object({
3034
3034
  package: ObjectID,
3035
3035
  module: string(),
3036
3036
  function: string(),
3037
3037
  // snake case in rust
3038
3038
  typeArguments: array(string()),
3039
- arguments: array(Argument3)
3039
+ arguments: array(Argument2)
3040
3040
  });
3041
3041
  var $Intent2 = object({
3042
3042
  name: string(),
3043
- inputs: record(string(), union([Argument3, array(Argument3)])),
3043
+ inputs: record(string(), union([Argument2, array(Argument2)])),
3044
3044
  data: record(string(), unknown())
3045
3045
  });
3046
- var Command3 = enumUnion({
3047
- MoveCall: ProgrammableMoveCall3,
3046
+ var Command2 = enumUnion({
3047
+ MoveCall: ProgrammableMoveCall2,
3048
3048
  TransferObjects: object({
3049
- objects: array(Argument3),
3050
- address: Argument3
3049
+ objects: array(Argument2),
3050
+ address: Argument2
3051
3051
  }),
3052
3052
  SplitCoins: object({
3053
- coin: Argument3,
3054
- amounts: array(Argument3)
3053
+ coin: Argument2,
3054
+ amounts: array(Argument2)
3055
3055
  }),
3056
3056
  MergeCoins: object({
3057
- destination: Argument3,
3058
- sources: array(Argument3)
3057
+ destination: Argument2,
3058
+ sources: array(Argument2)
3059
3059
  }),
3060
3060
  Publish: object({
3061
3061
  modules: array(BCSBytes),
@@ -3063,28 +3063,28 @@ var Command3 = enumUnion({
3063
3063
  }),
3064
3064
  MakeMoveVec: object({
3065
3065
  type: nullable(string()),
3066
- elements: array(Argument3)
3066
+ elements: array(Argument2)
3067
3067
  }),
3068
3068
  Upgrade: object({
3069
3069
  modules: array(BCSBytes),
3070
3070
  dependencies: array(ObjectID),
3071
3071
  package: ObjectID,
3072
- ticket: Argument3
3072
+ ticket: Argument2
3073
3073
  }),
3074
3074
  $Intent: $Intent2
3075
3075
  });
3076
- var ObjectArg4 = enumUnion({
3077
- ImmOrOwnedObject: ObjectRef,
3076
+ var ObjectArg3 = enumUnion({
3077
+ ImmOrOwnedObject: ObjectRefSchema,
3078
3078
  SharedObject: object({
3079
3079
  objectId: ObjectID,
3080
3080
  // snake case in rust
3081
3081
  initialSharedVersion: JsonU64,
3082
3082
  mutable: boolean()
3083
3083
  }),
3084
- Receiving: ObjectRef
3084
+ Receiving: ObjectRefSchema
3085
3085
  });
3086
- var CallArg3 = enumUnion({
3087
- Object: ObjectArg4,
3086
+ var CallArg2 = enumUnion({
3087
+ Object: ObjectArg3,
3088
3088
  Pure: object({
3089
3089
  bytes: BCSBytes
3090
3090
  }),
@@ -3103,17 +3103,17 @@ var TransactionExpiration4 = enumUnion({
3103
3103
  None: literal(true),
3104
3104
  Epoch: JsonU64
3105
3105
  });
3106
- var SerializedTransactionDataV2 = object({
3106
+ var SerializedTransactionDataV2Schema = object({
3107
3107
  version: literal(2),
3108
3108
  sender: nullish(SuiAddress),
3109
3109
  expiration: nullish(TransactionExpiration4),
3110
- gasData: GasData3,
3111
- inputs: array(CallArg3),
3112
- commands: array(Command3),
3110
+ gasData: GasData2,
3111
+ inputs: array(CallArg2),
3112
+ commands: array(Command2),
3113
3113
  digest: optional(nullable(string()))
3114
3114
  });
3115
3115
 
3116
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/Inputs.js
3116
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/Inputs.js
3117
3117
  function Pure(data) {
3118
3118
  return {
3119
3119
  $kind: "Pure",
@@ -3170,7 +3170,7 @@ var Inputs = {
3170
3170
  }
3171
3171
  };
3172
3172
 
3173
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/utils/constants.js
3173
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/utils/constants.js
3174
3174
  var MIST_PER_SUI = BigInt(1e9);
3175
3175
  var MOVE_STDLIB_ADDRESS = "0x1";
3176
3176
  var SUI_FRAMEWORK_ADDRESS = "0x2";
@@ -3178,7 +3178,7 @@ var SUI_CLOCK_OBJECT_ID = normalizeSuiObjectId("0x6");
3178
3178
  var SUI_TYPE_ARG = `${SUI_FRAMEWORK_ADDRESS}::sui::SUI`;
3179
3179
  var SUI_SYSTEM_STATE_OBJECT_ID = normalizeSuiObjectId("0x5");
3180
3180
 
3181
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/utils/dynamic-fields.js
3181
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/utils/dynamic-fields.js
3182
3182
  function deriveDynamicFieldID(parentId, typeTag, key) {
3183
3183
  const address = suiBcs.Address.serialize(parentId).toBytes();
3184
3184
  const tag = suiBcs.TypeTag.serialize(typeTag).toBytes();
@@ -3195,7 +3195,7 @@ function deriveDynamicFieldID(parentId, typeTag, key) {
3195
3195
  }
3196
3196
  __name(deriveDynamicFieldID, "deriveDynamicFieldID");
3197
3197
 
3198
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/serializer.js
3198
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/serializer.js
3199
3199
  var OBJECT_MODULE_NAME = "object";
3200
3200
  var ID_STRUCT_NAME = "ID";
3201
3201
  var STD_ASCII_MODULE_NAME = "ascii";
@@ -3325,7 +3325,7 @@ function normalizedTypeToMoveTypeSignatureBody(type) {
3325
3325
  }
3326
3326
  __name(normalizedTypeToMoveTypeSignatureBody, "normalizedTypeToMoveTypeSignatureBody");
3327
3327
 
3328
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/transports/json-rpc-resolver.js
3328
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/transports/json-rpc-resolver.js
3329
3329
  var MAX_OBJECTS_PER_FETCH = 50;
3330
3330
  var GAS_SAFE_OVERHEAD = 1000n;
3331
3331
  var MAX_GAS = 5e10;
@@ -3398,7 +3398,9 @@ async function setGasPayment(transactionData, client) {
3398
3398
  if (!paymentCoins.length) {
3399
3399
  throw new Error("No valid gas coins found for the transaction.");
3400
3400
  }
3401
- transactionData.gasConfig.payment = paymentCoins.map((payment) => parse(ObjectRef, payment));
3401
+ transactionData.gasConfig.payment = paymentCoins.map(
3402
+ (payment) => parse(ObjectRefSchema, payment)
3403
+ );
3402
3404
  }
3403
3405
  }
3404
3406
  __name(setGasPayment, "setGasPayment");
@@ -3615,7 +3617,7 @@ function isReceivingType(type) {
3615
3617
  }
3616
3618
  __name(isReceivingType, "isReceivingType");
3617
3619
 
3618
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/resolve.js
3620
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/resolve.js
3619
3621
  function needsTransactionResolution(data, options) {
3620
3622
  if (data.inputs.some((input) => {
3621
3623
  return input.UnresolvedObject || input.UnresolvedPure;
@@ -3692,7 +3694,7 @@ function normalizeRawArgument(arg, schema, transactionData) {
3692
3694
  }
3693
3695
  __name(normalizeRawArgument, "normalizeRawArgument");
3694
3696
 
3695
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/object.js
3697
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/object.js
3696
3698
  function createObjectMethods(makeObject) {
3697
3699
  function object2(value) {
3698
3700
  return makeObject(value);
@@ -3749,7 +3751,7 @@ function createObjectMethods(makeObject) {
3749
3751
  }
3750
3752
  __name(createObjectMethods, "createObjectMethods");
3751
3753
 
3752
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/pure.js
3754
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/pure.js
3753
3755
  function createPure(makePure) {
3754
3756
  function pure(typeOrSerializedValue, value) {
3755
3757
  if (typeof typeOrSerializedValue === "string") {
@@ -3783,7 +3785,7 @@ function createPure(makePure) {
3783
3785
  }
3784
3786
  __name(createPure, "createPure");
3785
3787
 
3786
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/hash.js
3788
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/hash.js
3787
3789
  function hashTypedData(typeTag, data) {
3788
3790
  const typeTagBytes = Array.from(`${typeTag}::`).map((e) => e.charCodeAt(0));
3789
3791
  const dataWithTag = new Uint8Array(typeTagBytes.length + data.length);
@@ -3793,7 +3795,7 @@ function hashTypedData(typeTag, data) {
3793
3795
  }
3794
3796
  __name(hashTypedData, "hashTypedData");
3795
3797
 
3796
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/TransactionData.js
3798
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/TransactionData.js
3797
3799
  function prepareSuiAddress(address) {
3798
3800
  return normalizeSuiAddress(address).replace("0x", "");
3799
3801
  }
@@ -3853,9 +3855,9 @@ var TransactionDataBuilder = class _TransactionDataBuilder {
3853
3855
  }
3854
3856
  static restore(data) {
3855
3857
  if (data.version === 2) {
3856
- return new _TransactionDataBuilder(parse(TransactionData, data));
3858
+ return new _TransactionDataBuilder(parse(TransactionDataSchema, data));
3857
3859
  } else {
3858
- return new _TransactionDataBuilder(parse(TransactionData, transactionDataFromV1(data)));
3860
+ return new _TransactionDataBuilder(parse(TransactionDataSchema, transactionDataFromV1(data)));
3859
3861
  }
3860
3862
  }
3861
3863
  /**
@@ -4032,7 +4034,7 @@ var TransactionDataBuilder = class _TransactionDataBuilder {
4032
4034
  return _TransactionDataBuilder.getDigestFromBytes(bytes);
4033
4035
  }
4034
4036
  snapshot() {
4035
- return parse(TransactionData, this);
4037
+ return parse(TransactionDataSchema, this);
4036
4038
  }
4037
4039
  shallowClone() {
4038
4040
  return new _TransactionDataBuilder({
@@ -4048,7 +4050,7 @@ var TransactionDataBuilder = class _TransactionDataBuilder {
4048
4050
  }
4049
4051
  };
4050
4052
 
4051
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/utils.js
4053
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/utils.js
4052
4054
  function getIdFromCallArg(arg) {
4053
4055
  if (typeof arg === "string") {
4054
4056
  return normalizeSuiAddress(arg);
@@ -4069,7 +4071,7 @@ function getIdFromCallArg(arg) {
4069
4071
  }
4070
4072
  __name(getIdFromCallArg, "getIdFromCallArg");
4071
4073
 
4072
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/cache.js
4074
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/cache.js
4073
4075
  var __typeError2 = /* @__PURE__ */ __name((msg) => {
4074
4076
  throw TypeError(msg);
4075
4077
  }, "__typeError");
@@ -4139,11 +4141,11 @@ _prefix = /* @__PURE__ */ new WeakMap();
4139
4141
  _cache = /* @__PURE__ */ new WeakMap();
4140
4142
  var ClientCache = _ClientCache;
4141
4143
 
4142
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/version.js
4143
- var PACKAGE_VERSION = "1.37.6";
4144
- var TARGETED_RPC_VERSION = "1.56.0";
4144
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/version.js
4145
+ var PACKAGE_VERSION = "1.38.0";
4146
+ var TARGETED_RPC_VERSION = "1.57.0";
4145
4147
 
4146
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/mvr.js
4148
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/mvr.js
4147
4149
  var __typeError3 = /* @__PURE__ */ __name((msg) => {
4148
4150
  throw TypeError(msg);
4149
4151
  }, "__typeError");
@@ -4488,7 +4490,7 @@ function getNamesFromTypeList(types) {
4488
4490
  }
4489
4491
  __name(getNamesFromTypeList, "getNamesFromTypeList");
4490
4492
 
4491
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/plugins/NamedPackagesPlugin.js
4493
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/plugins/NamedPackagesPlugin.js
4492
4494
  var cacheMap = /* @__PURE__ */ new WeakMap();
4493
4495
  var namedPackagesPlugin = /* @__PURE__ */ __name((options) => {
4494
4496
  let mvrClient;
@@ -4530,7 +4532,7 @@ function getClient2(options) {
4530
4532
  }
4531
4533
  __name(getClient2, "getClient");
4532
4534
 
4533
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/transactions/Transaction.js
4535
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/transactions/Transaction.js
4534
4536
  var __typeError4 = /* @__PURE__ */ __name((msg) => {
4535
4537
  throw TypeError(msg);
4536
4538
  }, "__typeError");
@@ -4644,7 +4646,7 @@ var _Transaction = class _Transaction2 {
4644
4646
  if (typeof value === "function") {
4645
4647
  return this.object(this.add(value));
4646
4648
  }
4647
- if (typeof value === "object" && is(Argument, value)) {
4649
+ if (typeof value === "object" && is(ArgumentSchema, value)) {
4648
4650
  return value;
4649
4651
  }
4650
4652
  const id = getIdFromCallArg(value);
@@ -4759,7 +4761,7 @@ var _Transaction = class _Transaction2 {
4759
4761
  __privateGet4(this, _data).gasConfig.owner = owner;
4760
4762
  }
4761
4763
  setGasPayment(payments) {
4762
- __privateGet4(this, _data).gasConfig.payment = payments.map((payment) => parse(ObjectRef, payment));
4764
+ __privateGet4(this, _data).gasConfig.payment = payments.map((payment) => parse(ObjectRefSchema, payment));
4763
4765
  }
4764
4766
  /** @deprecated Use `getData()` instead. */
4765
4767
  get blockData() {
@@ -4937,7 +4939,7 @@ var _Transaction = class _Transaction2 {
4937
4939
  const fullyResolved = this.isFullyResolved();
4938
4940
  return JSON.stringify(
4939
4941
  parse(
4940
- SerializedTransactionDataV2,
4942
+ SerializedTransactionDataV2Schema,
4941
4943
  fullyResolved ? {
4942
4944
  ...__privateGet4(this, _data).snapshot(),
4943
4945
  digest: __privateGet4(this, _data).getDigest()
@@ -5080,9 +5082,9 @@ resolveArgument_fn = /* @__PURE__ */ __name(function(arg) {
5080
5082
  if (typeof resolved === "function") {
5081
5083
  return __privateMethod2(this, _Transaction_instances, resolveArgument_fn).call(this, resolved);
5082
5084
  }
5083
- return parse(Argument, resolved);
5085
+ return parse(ArgumentSchema, resolved);
5084
5086
  }
5085
- return parse(Argument, arg);
5087
+ return parse(ArgumentSchema, arg);
5086
5088
  }, "resolveArgument_fn");
5087
5089
  prepareBuild_fn = /* @__PURE__ */ __name(async function(options) {
5088
5090
  if (!options.onlyTransactionKind && !__privateGet4(this, _data).sender) {
@@ -5199,7 +5201,7 @@ var Transaction = _Transaction;
5199
5201
  import { SuiChainId } from "@sentio/chain";
5200
5202
  import { Endpoints } from "@sentio/runtime";
5201
5203
 
5202
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/client/errors.js
5204
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/client/errors.js
5203
5205
  var CODE_TO_ERROR_TYPE = {
5204
5206
  "-32700": "ParseError",
5205
5207
  "-32701": "OversizedRequest",
@@ -5244,7 +5246,7 @@ var SuiHTTPStatusError = class extends SuiHTTPTransportError {
5244
5246
  }
5245
5247
  };
5246
5248
 
5247
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/client/rpc-websocket-client.js
5249
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/client/rpc-websocket-client.js
5248
5250
  var __typeError5 = /* @__PURE__ */ __name((msg) => {
5249
5251
  throw TypeError(msg);
5250
5252
  }, "__typeError");
@@ -5429,7 +5431,7 @@ var RpcSubscription = class {
5429
5431
  }
5430
5432
  };
5431
5433
 
5432
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/client/http-transport.js
5434
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/client/http-transport.js
5433
5435
  var __typeError6 = /* @__PURE__ */ __name((msg) => {
5434
5436
  throw TypeError(msg);
5435
5437
  }, "__typeError");
@@ -5530,7 +5532,7 @@ getWebsocketClient_fn = /* @__PURE__ */ __name(function() {
5530
5532
  return __privateGet6(this, _websocketClient);
5531
5533
  }, "getWebsocketClient_fn");
5532
5534
 
5533
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/client.js
5535
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/client.js
5534
5536
  var Experimental_BaseClient = class {
5535
5537
  static {
5536
5538
  __name(this, "Experimental_BaseClient");
@@ -5560,7 +5562,7 @@ var Experimental_BaseClient = class {
5560
5562
  }
5561
5563
  };
5562
5564
 
5563
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/core.js
5565
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/core.js
5564
5566
  var DEFAULT_MVR_URLS = {
5565
5567
  mainnet: "https://mainnet.mvr.mystenlabs.com",
5566
5568
  testnet: "https://testnet.mvr.mystenlabs.com"
@@ -5648,7 +5650,7 @@ var Experimental_CoreClient = class extends Experimental_BaseClient {
5648
5650
  }
5649
5651
  };
5650
5652
 
5651
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/errors.js
5653
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/errors.js
5652
5654
  var SuiClientError = class extends Error {
5653
5655
  static {
5654
5656
  __name(this, "SuiClientError");
@@ -5685,7 +5687,7 @@ var ObjectError = class _ObjectError extends SuiClientError {
5685
5687
  }
5686
5688
  };
5687
5689
 
5688
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/transports/utils.js
5690
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/transports/utils.js
5689
5691
  function parseTransactionBcs(bytes) {
5690
5692
  return {
5691
5693
  ...TransactionDataBuilder.fromBytes(bytes).snapshot(),
@@ -5765,7 +5767,7 @@ function parseTransactionEffectsV2({
5765
5767
  }
5766
5768
  __name(parseTransactionEffectsV2, "parseTransactionEffectsV2");
5767
5769
 
5768
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/experimental/transports/jsonRPC.js
5770
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/experimental/transports/jsonRPC.js
5769
5771
  var __typeError7 = /* @__PURE__ */ __name((msg) => {
5770
5772
  throw TypeError(msg);
5771
5773
  }, "__typeError");
@@ -6230,7 +6232,7 @@ var Coin = suiBcs.struct("Coin", {
6230
6232
  balance: Balance
6231
6233
  });
6232
6234
 
6233
- // ../../node_modules/.pnpm/@mysten+sui@1.37.6_typescript@5.5.2/node_modules/@mysten/sui/dist/esm/client/client.js
6235
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.9.2/node_modules/@mysten/sui/dist/esm/client/client.js
6234
6236
  var SUI_CLIENT_BRAND = Symbol.for("@mysten/SuiClient");
6235
6237
  var SuiClient = class extends Experimental_BaseClient {
6236
6238
  static {
@@ -7617,4 +7619,4 @@ export {
7617
7619
  getPrice,
7618
7620
  calculateValueInUsd
7619
7621
  };
7620
- //# sourceMappingURL=chunk-CYZSY3BD.js.map
7622
+ //# sourceMappingURL=chunk-2YA6EDBX.js.map