@aptos-labs/ts-sdk 1.28.0-zeta.0 → 1.28.0-zeta.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 (213) hide show
  1. package/dist/common/index.js +1 -1
  2. package/dist/common/index.js.map +1 -1
  3. package/dist/esm/account/Account.mjs +1 -1
  4. package/dist/esm/account/Ed25519Account.mjs +1 -1
  5. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  6. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  7. package/dist/esm/account/KeylessAccount.mjs +1 -1
  8. package/dist/esm/account/KeylessAccountCommon.mjs +1 -1
  9. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  10. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  11. package/dist/esm/account/index.mjs +1 -1
  12. package/dist/esm/api/account.mjs +1 -1
  13. package/dist/esm/api/ans.mjs +1 -1
  14. package/dist/esm/api/aptos.mjs +1 -1
  15. package/dist/esm/api/coin.mjs +1 -1
  16. package/dist/esm/api/digitalAsset.mjs +1 -1
  17. package/dist/esm/api/event.mjs +1 -1
  18. package/dist/esm/api/faucet.mjs +1 -1
  19. package/dist/esm/api/fungibleAsset.mjs +1 -1
  20. package/dist/esm/api/general.mjs +1 -1
  21. package/dist/esm/api/index.mjs +1 -1
  22. package/dist/esm/api/keyless.mjs +1 -1
  23. package/dist/esm/api/object.mjs +1 -1
  24. package/dist/esm/api/staking.mjs +1 -1
  25. package/dist/esm/api/table.mjs +1 -1
  26. package/dist/esm/api/transaction.mjs +1 -1
  27. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  28. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  30. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  32. package/dist/esm/api/utils.mjs +1 -1
  33. package/dist/esm/bcs/index.mjs +1 -1
  34. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  35. package/dist/esm/{chunk-5HWJ3SN4.mjs → chunk-2XLMOIBB.mjs} +2 -2
  36. package/dist/esm/{chunk-NGIPNL7N.mjs → chunk-3PJXUJEB.mjs} +2 -2
  37. package/dist/esm/{chunk-7T4PLPI7.mjs → chunk-4GOLPPK3.mjs} +2 -2
  38. package/dist/esm/{chunk-NLV3PTOE.mjs → chunk-4JMLZZFL.mjs} +2 -2
  39. package/dist/esm/{chunk-3XXBKVEX.mjs → chunk-4SEHAXB2.mjs} +2 -2
  40. package/dist/esm/{chunk-72S2NOM5.mjs → chunk-4UB6MXQH.mjs} +2 -2
  41. package/dist/esm/{chunk-7BPKOPP7.mjs → chunk-56KUTRUI.mjs} +2 -2
  42. package/dist/esm/{chunk-SVO6PVAX.mjs → chunk-57VN4QFR.mjs} +2 -2
  43. package/dist/esm/{chunk-ZASN3QQQ.mjs → chunk-5F3DMDZI.mjs} +2 -2
  44. package/dist/esm/{chunk-QKVID52D.mjs → chunk-64HK4IEO.mjs} +2 -2
  45. package/dist/esm/{chunk-4I6IUAHQ.mjs → chunk-6BXB4PLA.mjs} +2 -2
  46. package/dist/esm/{chunk-QTTDBQAJ.mjs → chunk-76QOH2OW.mjs} +2 -2
  47. package/dist/esm/{chunk-YACGA3YS.mjs → chunk-7DDP75LL.mjs} +2 -2
  48. package/dist/esm/{chunk-BC5BEOKM.mjs → chunk-ADPKXACB.mjs} +2 -2
  49. package/dist/esm/{chunk-IEH7ILF3.mjs → chunk-CRTGCAMB.mjs} +2 -2
  50. package/dist/esm/{chunk-AGFN3VVA.mjs → chunk-CSK46KWT.mjs} +2 -2
  51. package/dist/esm/{chunk-MYF2VRVN.mjs → chunk-D2JMUPS3.mjs} +2 -2
  52. package/dist/esm/{chunk-KRRHWHTG.mjs → chunk-D7W3LMWB.mjs} +2 -2
  53. package/dist/esm/{chunk-YTOQGCAM.mjs → chunk-E2I4A5FG.mjs} +2 -2
  54. package/dist/esm/{chunk-YSVXROOO.mjs → chunk-FIYHMSA6.mjs} +2 -2
  55. package/dist/esm/{chunk-R2RMAWDH.mjs → chunk-FR6MEI36.mjs} +2 -2
  56. package/dist/esm/{chunk-AGTINH7K.mjs → chunk-G6HZPSZ3.mjs} +2 -2
  57. package/dist/esm/{chunk-7T5CUI2H.mjs → chunk-G76BSSWS.mjs} +2 -2
  58. package/dist/esm/{chunk-K7ZPRL7C.mjs → chunk-GVAZZ3UZ.mjs} +2 -2
  59. package/dist/esm/{chunk-5RNKD3GW.mjs → chunk-I7CSJMDX.mjs} +2 -2
  60. package/dist/esm/{chunk-S6TRBKP5.mjs → chunk-IBAA7T35.mjs} +2 -2
  61. package/dist/esm/{chunk-DFMC56WX.mjs → chunk-ILVZ3RHG.mjs} +2 -2
  62. package/dist/esm/{chunk-35LCHJIH.mjs → chunk-ILZVHKJZ.mjs} +2 -2
  63. package/dist/esm/{chunk-LKN324IO.mjs → chunk-J3PN353M.mjs} +2 -2
  64. package/dist/esm/{chunk-HOQCND6F.mjs → chunk-L2EW7RS5.mjs} +2 -2
  65. package/dist/esm/{chunk-ILI5TDXD.mjs → chunk-LOLHWM3E.mjs} +2 -2
  66. package/dist/esm/{chunk-Z56T4OGM.mjs → chunk-LTNQQKPC.mjs} +2 -2
  67. package/dist/esm/{chunk-ZAHUEAGT.mjs → chunk-MCZIV5GR.mjs} +2 -2
  68. package/dist/esm/{chunk-ND23H3AK.mjs → chunk-MJPZBN4E.mjs} +2 -2
  69. package/dist/esm/{chunk-FLNLQ7K5.mjs → chunk-MNT6KBEF.mjs} +2 -2
  70. package/dist/esm/{chunk-4LHVEO7T.mjs → chunk-NK2VQHI7.mjs} +2 -2
  71. package/dist/esm/{chunk-X26OHQZO.mjs → chunk-OVI2RY5L.mjs} +2 -2
  72. package/dist/esm/{chunk-2KLLSBBN.mjs → chunk-QCUNTB7G.mjs} +2 -2
  73. package/dist/esm/{chunk-VNIBQXNX.mjs → chunk-QEPPCEFH.mjs} +2 -2
  74. package/dist/esm/{chunk-GKRIMGKW.mjs → chunk-QRI5UKKN.mjs} +2 -2
  75. package/dist/esm/{chunk-VZKENIJR.mjs → chunk-QUTP2ACU.mjs} +2 -2
  76. package/dist/esm/{chunk-ASQIKTEF.mjs → chunk-R5QDWL5W.mjs} +2 -2
  77. package/dist/esm/chunk-RAKS5RSI.mjs +2 -0
  78. package/dist/esm/chunk-RAKS5RSI.mjs.map +1 -0
  79. package/dist/esm/{chunk-5MZJD6SA.mjs → chunk-RLGIYYI7.mjs} +2 -2
  80. package/dist/esm/{chunk-ASQ2YBOR.mjs → chunk-S7KCJQOA.mjs} +2 -2
  81. package/dist/esm/{chunk-4X4ODN6K.mjs → chunk-SH6IO5EV.mjs} +2 -2
  82. package/dist/esm/{chunk-E2WOZVJX.mjs → chunk-SINSCI7V.mjs} +2 -2
  83. package/dist/esm/{chunk-PDY3AFVI.mjs → chunk-SRZWWYZP.mjs} +2 -2
  84. package/dist/esm/{chunk-QOE5WJMC.mjs → chunk-TLITK5YF.mjs} +2 -2
  85. package/dist/esm/{chunk-NOVJ2ROD.mjs → chunk-TZWHQEAZ.mjs} +2 -2
  86. package/dist/esm/{chunk-NWTMTPPX.mjs → chunk-UF25MR3N.mjs} +2 -2
  87. package/dist/esm/{chunk-BQPQLOIW.mjs → chunk-US5DBLWO.mjs} +2 -2
  88. package/dist/esm/{chunk-2X3YDREK.mjs → chunk-UZUVHKIB.mjs} +2 -2
  89. package/dist/esm/{chunk-DAIOG6HU.mjs → chunk-VGBIPXYG.mjs} +2 -2
  90. package/dist/esm/{chunk-OOVNFKA6.mjs → chunk-VXG7T3TR.mjs} +2 -2
  91. package/dist/esm/{chunk-FDD6WNN6.mjs → chunk-XFG6LGA6.mjs} +2 -2
  92. package/dist/esm/{chunk-DYMN66K5.mjs → chunk-YKWRPFAN.mjs} +2 -2
  93. package/dist/esm/{chunk-CUDIVR4U.mjs → chunk-YRDU2QH5.mjs} +2 -2
  94. package/dist/esm/{chunk-FDTLBR6D.mjs → chunk-ZOEZVSPX.mjs} +2 -2
  95. package/dist/esm/client/core.mjs +1 -1
  96. package/dist/esm/client/get.mjs +1 -1
  97. package/dist/esm/client/index.mjs +1 -1
  98. package/dist/esm/client/post.mjs +1 -1
  99. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  100. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  101. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  102. package/dist/esm/core/crypto/index.mjs +1 -1
  103. package/dist/esm/core/crypto/keyless.mjs +1 -1
  104. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  105. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  106. package/dist/esm/core/crypto/proof.mjs +1 -1
  107. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  108. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  109. package/dist/esm/core/crypto/signature.mjs +1 -1
  110. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  111. package/dist/esm/core/index.mjs +1 -1
  112. package/dist/esm/index.mjs +1 -1
  113. package/dist/esm/internal/account.mjs +1 -1
  114. package/dist/esm/internal/ans.mjs +1 -1
  115. package/dist/esm/internal/coin.mjs +1 -1
  116. package/dist/esm/internal/digitalAsset.mjs +1 -1
  117. package/dist/esm/internal/event.mjs +1 -1
  118. package/dist/esm/internal/faucet.mjs +1 -1
  119. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  120. package/dist/esm/internal/general.mjs +1 -1
  121. package/dist/esm/internal/keyless.mjs +1 -1
  122. package/dist/esm/internal/object.mjs +1 -1
  123. package/dist/esm/internal/staking.mjs +1 -1
  124. package/dist/esm/internal/table.mjs +1 -1
  125. package/dist/esm/internal/transaction.mjs +1 -1
  126. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  127. package/dist/esm/internal/view.mjs +1 -1
  128. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  129. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  130. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  131. package/dist/esm/transactions/index.mjs +1 -1
  132. package/dist/esm/transactions/instances/index.mjs +1 -1
  133. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  134. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  135. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  136. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  137. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  138. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  139. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  140. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  141. package/dist/esm/transactions/management/index.mjs +1 -1
  142. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  143. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  144. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  145. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  146. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  147. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  148. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  149. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  150. package/dist/esm/utils/index.mjs +1 -1
  151. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  152. package/package.json +1 -1
  153. package/src/internal/keyless.ts +5 -1
  154. package/dist/esm/chunk-7NQHLM3Y.mjs +0 -2
  155. package/dist/esm/chunk-7NQHLM3Y.mjs.map +0 -1
  156. /package/dist/esm/{chunk-5HWJ3SN4.mjs.map → chunk-2XLMOIBB.mjs.map} +0 -0
  157. /package/dist/esm/{chunk-NGIPNL7N.mjs.map → chunk-3PJXUJEB.mjs.map} +0 -0
  158. /package/dist/esm/{chunk-7T4PLPI7.mjs.map → chunk-4GOLPPK3.mjs.map} +0 -0
  159. /package/dist/esm/{chunk-NLV3PTOE.mjs.map → chunk-4JMLZZFL.mjs.map} +0 -0
  160. /package/dist/esm/{chunk-3XXBKVEX.mjs.map → chunk-4SEHAXB2.mjs.map} +0 -0
  161. /package/dist/esm/{chunk-72S2NOM5.mjs.map → chunk-4UB6MXQH.mjs.map} +0 -0
  162. /package/dist/esm/{chunk-7BPKOPP7.mjs.map → chunk-56KUTRUI.mjs.map} +0 -0
  163. /package/dist/esm/{chunk-SVO6PVAX.mjs.map → chunk-57VN4QFR.mjs.map} +0 -0
  164. /package/dist/esm/{chunk-ZASN3QQQ.mjs.map → chunk-5F3DMDZI.mjs.map} +0 -0
  165. /package/dist/esm/{chunk-QKVID52D.mjs.map → chunk-64HK4IEO.mjs.map} +0 -0
  166. /package/dist/esm/{chunk-4I6IUAHQ.mjs.map → chunk-6BXB4PLA.mjs.map} +0 -0
  167. /package/dist/esm/{chunk-QTTDBQAJ.mjs.map → chunk-76QOH2OW.mjs.map} +0 -0
  168. /package/dist/esm/{chunk-YACGA3YS.mjs.map → chunk-7DDP75LL.mjs.map} +0 -0
  169. /package/dist/esm/{chunk-BC5BEOKM.mjs.map → chunk-ADPKXACB.mjs.map} +0 -0
  170. /package/dist/esm/{chunk-IEH7ILF3.mjs.map → chunk-CRTGCAMB.mjs.map} +0 -0
  171. /package/dist/esm/{chunk-AGFN3VVA.mjs.map → chunk-CSK46KWT.mjs.map} +0 -0
  172. /package/dist/esm/{chunk-MYF2VRVN.mjs.map → chunk-D2JMUPS3.mjs.map} +0 -0
  173. /package/dist/esm/{chunk-KRRHWHTG.mjs.map → chunk-D7W3LMWB.mjs.map} +0 -0
  174. /package/dist/esm/{chunk-YTOQGCAM.mjs.map → chunk-E2I4A5FG.mjs.map} +0 -0
  175. /package/dist/esm/{chunk-YSVXROOO.mjs.map → chunk-FIYHMSA6.mjs.map} +0 -0
  176. /package/dist/esm/{chunk-R2RMAWDH.mjs.map → chunk-FR6MEI36.mjs.map} +0 -0
  177. /package/dist/esm/{chunk-AGTINH7K.mjs.map → chunk-G6HZPSZ3.mjs.map} +0 -0
  178. /package/dist/esm/{chunk-7T5CUI2H.mjs.map → chunk-G76BSSWS.mjs.map} +0 -0
  179. /package/dist/esm/{chunk-K7ZPRL7C.mjs.map → chunk-GVAZZ3UZ.mjs.map} +0 -0
  180. /package/dist/esm/{chunk-5RNKD3GW.mjs.map → chunk-I7CSJMDX.mjs.map} +0 -0
  181. /package/dist/esm/{chunk-S6TRBKP5.mjs.map → chunk-IBAA7T35.mjs.map} +0 -0
  182. /package/dist/esm/{chunk-DFMC56WX.mjs.map → chunk-ILVZ3RHG.mjs.map} +0 -0
  183. /package/dist/esm/{chunk-35LCHJIH.mjs.map → chunk-ILZVHKJZ.mjs.map} +0 -0
  184. /package/dist/esm/{chunk-LKN324IO.mjs.map → chunk-J3PN353M.mjs.map} +0 -0
  185. /package/dist/esm/{chunk-HOQCND6F.mjs.map → chunk-L2EW7RS5.mjs.map} +0 -0
  186. /package/dist/esm/{chunk-ILI5TDXD.mjs.map → chunk-LOLHWM3E.mjs.map} +0 -0
  187. /package/dist/esm/{chunk-Z56T4OGM.mjs.map → chunk-LTNQQKPC.mjs.map} +0 -0
  188. /package/dist/esm/{chunk-ZAHUEAGT.mjs.map → chunk-MCZIV5GR.mjs.map} +0 -0
  189. /package/dist/esm/{chunk-ND23H3AK.mjs.map → chunk-MJPZBN4E.mjs.map} +0 -0
  190. /package/dist/esm/{chunk-FLNLQ7K5.mjs.map → chunk-MNT6KBEF.mjs.map} +0 -0
  191. /package/dist/esm/{chunk-4LHVEO7T.mjs.map → chunk-NK2VQHI7.mjs.map} +0 -0
  192. /package/dist/esm/{chunk-X26OHQZO.mjs.map → chunk-OVI2RY5L.mjs.map} +0 -0
  193. /package/dist/esm/{chunk-2KLLSBBN.mjs.map → chunk-QCUNTB7G.mjs.map} +0 -0
  194. /package/dist/esm/{chunk-VNIBQXNX.mjs.map → chunk-QEPPCEFH.mjs.map} +0 -0
  195. /package/dist/esm/{chunk-GKRIMGKW.mjs.map → chunk-QRI5UKKN.mjs.map} +0 -0
  196. /package/dist/esm/{chunk-VZKENIJR.mjs.map → chunk-QUTP2ACU.mjs.map} +0 -0
  197. /package/dist/esm/{chunk-ASQIKTEF.mjs.map → chunk-R5QDWL5W.mjs.map} +0 -0
  198. /package/dist/esm/{chunk-5MZJD6SA.mjs.map → chunk-RLGIYYI7.mjs.map} +0 -0
  199. /package/dist/esm/{chunk-ASQ2YBOR.mjs.map → chunk-S7KCJQOA.mjs.map} +0 -0
  200. /package/dist/esm/{chunk-4X4ODN6K.mjs.map → chunk-SH6IO5EV.mjs.map} +0 -0
  201. /package/dist/esm/{chunk-E2WOZVJX.mjs.map → chunk-SINSCI7V.mjs.map} +0 -0
  202. /package/dist/esm/{chunk-PDY3AFVI.mjs.map → chunk-SRZWWYZP.mjs.map} +0 -0
  203. /package/dist/esm/{chunk-QOE5WJMC.mjs.map → chunk-TLITK5YF.mjs.map} +0 -0
  204. /package/dist/esm/{chunk-NOVJ2ROD.mjs.map → chunk-TZWHQEAZ.mjs.map} +0 -0
  205. /package/dist/esm/{chunk-NWTMTPPX.mjs.map → chunk-UF25MR3N.mjs.map} +0 -0
  206. /package/dist/esm/{chunk-BQPQLOIW.mjs.map → chunk-US5DBLWO.mjs.map} +0 -0
  207. /package/dist/esm/{chunk-2X3YDREK.mjs.map → chunk-UZUVHKIB.mjs.map} +0 -0
  208. /package/dist/esm/{chunk-DAIOG6HU.mjs.map → chunk-VGBIPXYG.mjs.map} +0 -0
  209. /package/dist/esm/{chunk-OOVNFKA6.mjs.map → chunk-VXG7T3TR.mjs.map} +0 -0
  210. /package/dist/esm/{chunk-FDD6WNN6.mjs.map → chunk-XFG6LGA6.mjs.map} +0 -0
  211. /package/dist/esm/{chunk-DYMN66K5.mjs.map → chunk-YKWRPFAN.mjs.map} +0 -0
  212. /package/dist/esm/{chunk-CUDIVR4U.mjs.map → chunk-YRDU2QH5.mjs.map} +0 -0
  213. /package/dist/esm/{chunk-FDTLBR6D.mjs.map → chunk-ZOEZVSPX.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-NWTMTPPX.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-S6TRBKP5.mjs";import"../../chunk-YSVXROOO.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-72S2NOM5.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-4LHVEO7T.mjs";import"../../chunk-5HWJ3SN4.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-K7ZPRL7C.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-AGTINH7K.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-Z56T4OGM.mjs";import"../../chunk-5RNKD3GW.mjs";import"../../chunk-NOVJ2ROD.mjs";import"../../chunk-NGIPNL7N.mjs";import"../../chunk-IEH7ILF3.mjs";import"../../chunk-MYF2VRVN.mjs";import"../../chunk-HOQCND6F.mjs";import"../../chunk-CUDIVR4U.mjs";import"../../chunk-E2WOZVJX.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7BPKOPP7.mjs";import"../../chunk-YACGA3YS.mjs";import"../../chunk-OOVNFKA6.mjs";import"../../chunk-GKRIMGKW.mjs";import"../../chunk-ND23H3AK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-SVO6PVAX.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-ZASN3QQQ.mjs";import"../../chunk-BC5BEOKM.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-FDD6WNN6.mjs";import"../../chunk-FDTLBR6D.mjs";import"../../chunk-ASQIKTEF.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QTTDBQAJ.mjs";import"../../chunk-ZAHUEAGT.mjs";import"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as TransactionManagement};
1
+ import{a}from"../../chunk-UF25MR3N.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-IBAA7T35.mjs";import"../../chunk-FIYHMSA6.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-4UB6MXQH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-NK2VQHI7.mjs";import"../../chunk-2XLMOIBB.mjs";import"../../chunk-US5DBLWO.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GVAZZ3UZ.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-I7CSJMDX.mjs";import"../../chunk-3PJXUJEB.mjs";import"../../chunk-CRTGCAMB.mjs";import"../../chunk-LTNQQKPC.mjs";import"../../chunk-D2JMUPS3.mjs";import"../../chunk-L2EW7RS5.mjs";import"../../chunk-YRDU2QH5.mjs";import"../../chunk-TZWHQEAZ.mjs";import"../../chunk-SINSCI7V.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7DDP75LL.mjs";import"../../chunk-VXG7T3TR.mjs";import"../../chunk-QRI5UKKN.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-5F3DMDZI.mjs";import"../../chunk-ADPKXACB.mjs";import"../../chunk-56KUTRUI.mjs";import"../../chunk-MJPZBN4E.mjs";import"../../chunk-57VN4QFR.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-XFG6LGA6.mjs";import"../../chunk-ZOEZVSPX.mjs";import"../../chunk-R5QDWL5W.mjs";import"../../chunk-76QOH2OW.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MCZIV5GR.mjs";import"../../chunk-YKWRPFAN.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-G6HZPSZ3.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as TransactionManagement};
2
2
  //# sourceMappingURL=management.mjs.map
@@ -1,2 +1,2 @@
1
- import{e as o}from"../../chunk-72S2NOM5.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-4LHVEO7T.mjs";import"../../chunk-5HWJ3SN4.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-K7ZPRL7C.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-AGTINH7K.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-Z56T4OGM.mjs";import"../../chunk-5RNKD3GW.mjs";import"../../chunk-NOVJ2ROD.mjs";import"../../chunk-NGIPNL7N.mjs";import"../../chunk-IEH7ILF3.mjs";import"../../chunk-MYF2VRVN.mjs";import"../../chunk-HOQCND6F.mjs";import"../../chunk-CUDIVR4U.mjs";import"../../chunk-E2WOZVJX.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7BPKOPP7.mjs";import"../../chunk-YACGA3YS.mjs";import"../../chunk-OOVNFKA6.mjs";import"../../chunk-GKRIMGKW.mjs";import"../../chunk-ND23H3AK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-SVO6PVAX.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-ZASN3QQQ.mjs";import"../../chunk-BC5BEOKM.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-FDD6WNN6.mjs";import"../../chunk-FDTLBR6D.mjs";import"../../chunk-ASQIKTEF.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QTTDBQAJ.mjs";import"../../chunk-ZAHUEAGT.mjs";import"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";var a=class{constructor(n){this.config=n}transaction(n){return o({...n})}transactionAsFeePayer(n){let{signer:r,transaction:t}=n;if(!t.feePayerAddress)throw new Error(`Transaction ${t} is not a Fee Payer transaction`);return t.feePayerAddress=r.accountAddress,o({signer:r,transaction:t})}};export{a as Sign};
1
+ import{e as o}from"../../chunk-4UB6MXQH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-NK2VQHI7.mjs";import"../../chunk-2XLMOIBB.mjs";import"../../chunk-US5DBLWO.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GVAZZ3UZ.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-I7CSJMDX.mjs";import"../../chunk-3PJXUJEB.mjs";import"../../chunk-CRTGCAMB.mjs";import"../../chunk-LTNQQKPC.mjs";import"../../chunk-D2JMUPS3.mjs";import"../../chunk-L2EW7RS5.mjs";import"../../chunk-YRDU2QH5.mjs";import"../../chunk-TZWHQEAZ.mjs";import"../../chunk-SINSCI7V.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7DDP75LL.mjs";import"../../chunk-VXG7T3TR.mjs";import"../../chunk-QRI5UKKN.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-5F3DMDZI.mjs";import"../../chunk-ADPKXACB.mjs";import"../../chunk-56KUTRUI.mjs";import"../../chunk-MJPZBN4E.mjs";import"../../chunk-57VN4QFR.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-XFG6LGA6.mjs";import"../../chunk-ZOEZVSPX.mjs";import"../../chunk-R5QDWL5W.mjs";import"../../chunk-76QOH2OW.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MCZIV5GR.mjs";import"../../chunk-YKWRPFAN.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-G6HZPSZ3.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";var a=class{constructor(n){this.config=n}transaction(n){return o({...n})}transactionAsFeePayer(n){let{signer:r,transaction:t}=n;if(!t.feePayerAddress)throw new Error(`Transaction ${t} is not a Fee Payer transaction`);return t.feePayerAddress=r.accountAddress,o({signer:r,transaction:t})}};export{a as Sign};
2
2
  //# sourceMappingURL=sign.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-VNIBQXNX.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-72S2NOM5.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-4LHVEO7T.mjs";import"../../chunk-5HWJ3SN4.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-K7ZPRL7C.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-AGTINH7K.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-Z56T4OGM.mjs";import"../../chunk-5RNKD3GW.mjs";import"../../chunk-NOVJ2ROD.mjs";import"../../chunk-NGIPNL7N.mjs";import"../../chunk-IEH7ILF3.mjs";import"../../chunk-MYF2VRVN.mjs";import"../../chunk-HOQCND6F.mjs";import"../../chunk-CUDIVR4U.mjs";import"../../chunk-E2WOZVJX.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7BPKOPP7.mjs";import"../../chunk-YACGA3YS.mjs";import"../../chunk-OOVNFKA6.mjs";import"../../chunk-GKRIMGKW.mjs";import"../../chunk-ND23H3AK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-SVO6PVAX.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-ZASN3QQQ.mjs";import"../../chunk-BC5BEOKM.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-FDD6WNN6.mjs";import"../../chunk-FDTLBR6D.mjs";import"../../chunk-ASQIKTEF.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QTTDBQAJ.mjs";import"../../chunk-ZAHUEAGT.mjs";import"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
1
+ import{a}from"../../chunk-QEPPCEFH.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-4UB6MXQH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-NK2VQHI7.mjs";import"../../chunk-2XLMOIBB.mjs";import"../../chunk-US5DBLWO.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GVAZZ3UZ.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-I7CSJMDX.mjs";import"../../chunk-3PJXUJEB.mjs";import"../../chunk-CRTGCAMB.mjs";import"../../chunk-LTNQQKPC.mjs";import"../../chunk-D2JMUPS3.mjs";import"../../chunk-L2EW7RS5.mjs";import"../../chunk-YRDU2QH5.mjs";import"../../chunk-TZWHQEAZ.mjs";import"../../chunk-SINSCI7V.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7DDP75LL.mjs";import"../../chunk-VXG7T3TR.mjs";import"../../chunk-QRI5UKKN.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-5F3DMDZI.mjs";import"../../chunk-ADPKXACB.mjs";import"../../chunk-56KUTRUI.mjs";import"../../chunk-MJPZBN4E.mjs";import"../../chunk-57VN4QFR.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-XFG6LGA6.mjs";import"../../chunk-ZOEZVSPX.mjs";import"../../chunk-R5QDWL5W.mjs";import"../../chunk-76QOH2OW.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MCZIV5GR.mjs";import"../../chunk-YKWRPFAN.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-G6HZPSZ3.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
2
2
  //# sourceMappingURL=simulate.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-NLV3PTOE.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-72S2NOM5.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-4LHVEO7T.mjs";import"../../chunk-5HWJ3SN4.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-K7ZPRL7C.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-AGTINH7K.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-Z56T4OGM.mjs";import"../../chunk-5RNKD3GW.mjs";import"../../chunk-NOVJ2ROD.mjs";import"../../chunk-NGIPNL7N.mjs";import"../../chunk-IEH7ILF3.mjs";import"../../chunk-MYF2VRVN.mjs";import"../../chunk-HOQCND6F.mjs";import"../../chunk-CUDIVR4U.mjs";import"../../chunk-E2WOZVJX.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7BPKOPP7.mjs";import"../../chunk-YACGA3YS.mjs";import"../../chunk-OOVNFKA6.mjs";import"../../chunk-GKRIMGKW.mjs";import"../../chunk-ND23H3AK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-SVO6PVAX.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-ZASN3QQQ.mjs";import"../../chunk-BC5BEOKM.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-FDD6WNN6.mjs";import"../../chunk-FDTLBR6D.mjs";import"../../chunk-ASQIKTEF.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QTTDBQAJ.mjs";import"../../chunk-ZAHUEAGT.mjs";import"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
1
+ import{a}from"../../chunk-4JMLZZFL.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-4UB6MXQH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-NK2VQHI7.mjs";import"../../chunk-2XLMOIBB.mjs";import"../../chunk-US5DBLWO.mjs";import"../../chunk-AZ642ORV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GVAZZ3UZ.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-I7CSJMDX.mjs";import"../../chunk-3PJXUJEB.mjs";import"../../chunk-CRTGCAMB.mjs";import"../../chunk-LTNQQKPC.mjs";import"../../chunk-D2JMUPS3.mjs";import"../../chunk-L2EW7RS5.mjs";import"../../chunk-YRDU2QH5.mjs";import"../../chunk-TZWHQEAZ.mjs";import"../../chunk-SINSCI7V.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-7DDP75LL.mjs";import"../../chunk-VXG7T3TR.mjs";import"../../chunk-QRI5UKKN.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-5F3DMDZI.mjs";import"../../chunk-ADPKXACB.mjs";import"../../chunk-56KUTRUI.mjs";import"../../chunk-MJPZBN4E.mjs";import"../../chunk-57VN4QFR.mjs";import"../../chunk-5FPWLBZT.mjs";import"../../chunk-UW5TIZFE.mjs";import"../../chunk-SP4PT77Z.mjs";import"../../chunk-5HI4R3A2.mjs";import"../../chunk-GX2II7H4.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-SHOPSMRK.mjs";import"../../chunk-IA4RELOH.mjs";import"../../chunk-XFG6LGA6.mjs";import"../../chunk-ZOEZVSPX.mjs";import"../../chunk-R5QDWL5W.mjs";import"../../chunk-76QOH2OW.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MCZIV5GR.mjs";import"../../chunk-YKWRPFAN.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-G6HZPSZ3.mjs";import"../../chunk-J45FMNYT.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
2
2
  //# sourceMappingURL=submit.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-5MZJD6SA.mjs";import"../chunk-AGTINH7K.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-5VQK4F5X.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as waitForIndexerOnVersion};
1
+ import{a}from"../chunk-RLGIYYI7.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-5VQK4F5X.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as waitForIndexerOnVersion};
2
2
  //# sourceMappingURL=utils.mjs.map
@@ -1,2 +1,2 @@
1
- import"../chunk-FZY4PMEE.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-YELQZVBK.mjs";import{a as h}from"../chunk-CDIKSNSU.mjs";import{a as g}from"../chunk-TVWAYKEP.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o}from"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import{a}from"../chunk-KEYAPEAX.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{i as Bool,a as Deserializer,h as EntryFunctionBytes,g as FixedBytes,s as MoveOption,r as MoveString,p as MoveVector,b as Serializable,q as Serialized,c as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,d as ensureBoolean,e as outOfRangeErrorMessage,f as validateNumberInRange};
1
+ import"../chunk-FZY4PMEE.mjs";import{a as h}from"../chunk-CDIKSNSU.mjs";import{a as g}from"../chunk-TVWAYKEP.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-YELQZVBK.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o}from"../chunk-E7VSBBQM.mjs";import{a}from"../chunk-KEYAPEAX.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{i as Bool,a as Deserializer,h as EntryFunctionBytes,g as FixedBytes,s as MoveOption,r as MoveString,p as MoveVector,b as Serializable,q as Serialized,c as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,d as ensureBoolean,e as outOfRangeErrorMessage,f as validateNumberInRange};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../../chunk-YELQZVBK.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{d as MoveOption,c as MoveString,a as MoveVector,b as Serialized};
1
+ import{a,b,c,d}from"../../chunk-YELQZVBK.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{d as MoveOption,c as MoveString,a as MoveVector,b as Serialized};
2
2
  //# sourceMappingURL=moveStructs.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as l}from"./chunk-AZ642ORV.mjs";import{a as k,b as c,d as A,e as g,f as P,g as z,h as D,i as m,j as L,l as R,m as X,n as q,o as H,p as J,q as K,s as i,t as Q}from"./chunk-BQPQLOIW.mjs";import{c as j}from"./chunk-K7ZPRL7C.mjs";import{b as S,c as I,d as x,e as M,f as O,g as C,h as _,i as V,n as G}from"./chunk-5FPWLBZT.mjs";import{b as d}from"./chunk-EDVGFSB5.mjs";import{a as y,c as F,d as s}from"./chunk-YELQZVBK.mjs";import{a as w,b as h,c as B,d as E,e as v,f as $,g as b}from"./chunk-E7VSBBQM.mjs";var Y=new TextEncoder;function sn(n){return n?.map(e=>c(e)?l(e):e)??[]}async function W(n,e,t,u){let r=await j({aptosConfig:u,accountAddress:n,moduleName:e});if(r.abi)return r.abi.exposed_functions.find(o=>o.name===t)}async function fn(n,e,t,u){let r=await W(n,e,t,u);if(!r)throw new Error(`Could not find entry function ABI for '${n}::${e}::${t}'`);if(!r.is_entry)throw new Error(`'${n}::${e}::${t}' is not an entry function`);let o=Q(r),T=[];for(let f=o;f<r.params.length;f+=1)T.push(l(r.params[f],{allowGenerics:!0}));return{signers:o,typeParameters:r.generic_type_params,parameters:T}}async function on(n,e,t,u){let r=await W(n,e,t,u);if(!r)throw new Error(`Could not find view function ABI for '${n}::${e}::${t}'`);if(!r.is_view)throw new Error(`'${n}::${e}::${t}' is not an view function`);let o=[];for(let f=0;f<r.params.length;f+=1)o.push(l(r.params[f],{allowGenerics:!0}));let T=[];for(let f=0;f<r.return.length;f+=1)T.push(l(r.return[f],{allowGenerics:!0}));return{typeParameters:r.generic_type_params,parameters:o,returnTypes:T}}function cn(n,e,t,u,r){if(u>=e.parameters.length)throw new Error(`Too many arguments for '${n}', expected ${e.parameters.length}`);let o=e.parameters[u];return U(t,o,u,r)}function U(n,e,t,u){return z(n)?(p(e,n,t),n):Z(n,e,t,u)}function Z(n,e,t,u){if(e.isBool()){if(k(n))return new w(n);if(c(n)){if(n==="true")return new w(!0);if(n==="false")return new w(!1)}i("boolean",t)}if(e.isAddress()){if(c(n))return d.fromString(n);i("string | AccountAddress",t)}if(e.isU8()){let r=A(n);if(r!==void 0)return new h(r);i("number | string",t)}if(e.isU16()){let r=A(n);if(r!==void 0)return new B(r);i("number | string",t)}if(e.isU32()){let r=A(n);if(r!==void 0)return new E(r);i("number | string",t)}if(e.isU64()){if(g(n))return new v(BigInt(n));i("bigint | number | string",t)}if(e.isU128()){if(g(n))return new $(BigInt(n));i("bigint | number | string",t)}if(e.isU256()){if(g(n))return new b(BigInt(n));i("bigint | number | string",t)}if(e.isGeneric()){let r=e.value;if(r<0||r>=u.length)throw new Error(`Generic argument ${e.toString()} is invalid for argument ${t}`);return U(n,u[r],t,u)}if(e.isVector()){if(e.value.isU8()){if(c(n))return y.U8(Y.encode(n));if(n instanceof Uint8Array)return y.U8(n);if(n instanceof ArrayBuffer)return y.U8(new Uint8Array(n))}if(Array.isArray(n))return new y(n.map(r=>U(r,e.value,t,u)));throw new Error(`Type mismatch for argument ${t}, type '${e.toString()}'`)}if(e.isStruct()){if(e.isString()){if(c(n))return new F(n);i("string",t)}if(e.isObject()){if(c(n))return d.fromString(n);i("string | AccountAddress",t)}if(e.isOption()){if(P(n)){let r=e.value.typeArgs[0];return r instanceof S?new s(null):r instanceof V?new s(null):r instanceof I?new s(null):r instanceof x?new s(null):r instanceof M?new s(null):r instanceof O?new s(null):r instanceof C?new s(null):r instanceof _?new s(null):new s(null)}return new s(U(n,e.value.typeArgs[0],t,u))}throw new Error(`Unsupported struct input type for argument ${t}, type '${e.toString()}'`)}throw new Error(`Type mismatch for argument ${t}, type '${e.toString()}'`)}function p(n,e,t){if(n.isBool()){if(D(e))return;i("Bool",t)}if(n.isAddress()){if(m(e))return;i("AccountAddress",t)}if(n.isU8()){if(R(e))return;i("U8",t)}if(n.isU16()){if(X(e))return;i("U16",t)}if(n.isU32()){if(q(e))return;i("U32",t)}if(n.isU64()){if(H(e))return;i("U64",t)}if(n.isU128()){if(J(e))return;i("U128",t)}if(n.isU256()){if(K(e))return;i("U256",t)}if(n.isVector()){if(e instanceof y){e.values.length>0&&p(n.value,e.values[0],t);return}i("MoveVector",t)}if(n instanceof G){if(n.isString()){if(L(e))return;i("MoveString",t)}if(n.isObject()){if(m(e))return;i("AccountAddress",t)}if(n.isOption()){if(e instanceof s){e.value!==void 0&&p(n.value.typeArgs[0],e.value,t);return}i("MoveOption",t)}}throw new Error(`Type mismatch for argument ${t}, expected '${n.toString()}'`)}export{sn as a,W as b,fn as c,on as d,cn as e,U as f};
2
- //# sourceMappingURL=chunk-5HWJ3SN4.mjs.map
1
+ import{a as k,b as c,d as A,e as g,f as P,g as z,h as D,i as m,j as L,l as R,m as X,n as q,o as H,p as J,q as K,s as i,t as Q}from"./chunk-US5DBLWO.mjs";import{c as l}from"./chunk-AZ642ORV.mjs";import{c as j}from"./chunk-GVAZZ3UZ.mjs";import{b as S,c as I,d as x,e as M,f as O,g as C,h as _,i as V,n as G}from"./chunk-5FPWLBZT.mjs";import{a as y,c as F,d as s}from"./chunk-YELQZVBK.mjs";import{a as w,b as h,c as B,d as E,e as v,f as $,g as b}from"./chunk-E7VSBBQM.mjs";import{b as d}from"./chunk-EDVGFSB5.mjs";var Y=new TextEncoder;function sn(n){return n?.map(e=>c(e)?l(e):e)??[]}async function W(n,e,t,u){let r=await j({aptosConfig:u,accountAddress:n,moduleName:e});if(r.abi)return r.abi.exposed_functions.find(o=>o.name===t)}async function fn(n,e,t,u){let r=await W(n,e,t,u);if(!r)throw new Error(`Could not find entry function ABI for '${n}::${e}::${t}'`);if(!r.is_entry)throw new Error(`'${n}::${e}::${t}' is not an entry function`);let o=Q(r),T=[];for(let f=o;f<r.params.length;f+=1)T.push(l(r.params[f],{allowGenerics:!0}));return{signers:o,typeParameters:r.generic_type_params,parameters:T}}async function on(n,e,t,u){let r=await W(n,e,t,u);if(!r)throw new Error(`Could not find view function ABI for '${n}::${e}::${t}'`);if(!r.is_view)throw new Error(`'${n}::${e}::${t}' is not an view function`);let o=[];for(let f=0;f<r.params.length;f+=1)o.push(l(r.params[f],{allowGenerics:!0}));let T=[];for(let f=0;f<r.return.length;f+=1)T.push(l(r.return[f],{allowGenerics:!0}));return{typeParameters:r.generic_type_params,parameters:o,returnTypes:T}}function cn(n,e,t,u,r){if(u>=e.parameters.length)throw new Error(`Too many arguments for '${n}', expected ${e.parameters.length}`);let o=e.parameters[u];return U(t,o,u,r)}function U(n,e,t,u){return z(n)?(p(e,n,t),n):Z(n,e,t,u)}function Z(n,e,t,u){if(e.isBool()){if(k(n))return new w(n);if(c(n)){if(n==="true")return new w(!0);if(n==="false")return new w(!1)}i("boolean",t)}if(e.isAddress()){if(c(n))return d.fromString(n);i("string | AccountAddress",t)}if(e.isU8()){let r=A(n);if(r!==void 0)return new h(r);i("number | string",t)}if(e.isU16()){let r=A(n);if(r!==void 0)return new B(r);i("number | string",t)}if(e.isU32()){let r=A(n);if(r!==void 0)return new E(r);i("number | string",t)}if(e.isU64()){if(g(n))return new v(BigInt(n));i("bigint | number | string",t)}if(e.isU128()){if(g(n))return new $(BigInt(n));i("bigint | number | string",t)}if(e.isU256()){if(g(n))return new b(BigInt(n));i("bigint | number | string",t)}if(e.isGeneric()){let r=e.value;if(r<0||r>=u.length)throw new Error(`Generic argument ${e.toString()} is invalid for argument ${t}`);return U(n,u[r],t,u)}if(e.isVector()){if(e.value.isU8()){if(c(n))return y.U8(Y.encode(n));if(n instanceof Uint8Array)return y.U8(n);if(n instanceof ArrayBuffer)return y.U8(new Uint8Array(n))}if(Array.isArray(n))return new y(n.map(r=>U(r,e.value,t,u)));throw new Error(`Type mismatch for argument ${t}, type '${e.toString()}'`)}if(e.isStruct()){if(e.isString()){if(c(n))return new F(n);i("string",t)}if(e.isObject()){if(c(n))return d.fromString(n);i("string | AccountAddress",t)}if(e.isOption()){if(P(n)){let r=e.value.typeArgs[0];return r instanceof S?new s(null):r instanceof V?new s(null):r instanceof I?new s(null):r instanceof x?new s(null):r instanceof M?new s(null):r instanceof O?new s(null):r instanceof C?new s(null):r instanceof _?new s(null):new s(null)}return new s(U(n,e.value.typeArgs[0],t,u))}throw new Error(`Unsupported struct input type for argument ${t}, type '${e.toString()}'`)}throw new Error(`Type mismatch for argument ${t}, type '${e.toString()}'`)}function p(n,e,t){if(n.isBool()){if(D(e))return;i("Bool",t)}if(n.isAddress()){if(m(e))return;i("AccountAddress",t)}if(n.isU8()){if(R(e))return;i("U8",t)}if(n.isU16()){if(X(e))return;i("U16",t)}if(n.isU32()){if(q(e))return;i("U32",t)}if(n.isU64()){if(H(e))return;i("U64",t)}if(n.isU128()){if(J(e))return;i("U128",t)}if(n.isU256()){if(K(e))return;i("U256",t)}if(n.isVector()){if(e instanceof y){e.values.length>0&&p(n.value,e.values[0],t);return}i("MoveVector",t)}if(n instanceof G){if(n.isString()){if(L(e))return;i("MoveString",t)}if(n.isObject()){if(m(e))return;i("AccountAddress",t)}if(n.isOption()){if(e instanceof s){e.value!==void 0&&p(n.value.typeArgs[0],e.value,t);return}i("MoveOption",t)}}throw new Error(`Type mismatch for argument ${t}, expected '${n.toString()}'`)}export{sn as a,W as b,fn as c,on as d,cn as e,U as f};
2
+ //# sourceMappingURL=chunk-2XLMOIBB.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as o}from"./chunk-E2WOZVJX.mjs";import{b as i}from"./chunk-BC5BEOKM.mjs";import{c as n}from"./chunk-7T5CUI2H.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";var c=class a{constructor(t){this.signingScheme=0;let{privateKey:e,address:r}=t;this.privateKey=e,this.publicKey=e.publicKey(),this.accountAddress=r?s.from(r):this.publicKey.authKey().derivedAddress()}static generate(){let t=n.generate();return new a({privateKey:t})}static fromDerivationPath(t){let{path:e,mnemonic:r}=t,u=n.fromDerivationPath(e,r);return new a({privateKey:u})}verifySignature(t){return this.publicKey.verifySignature(t)}signWithAuthenticator(t){return new i(this.publicKey,this.privateKey.sign(t))}signTransactionWithAuthenticator(t){return new i(this.publicKey,this.signTransaction(t))}sign(t){return this.privateKey.sign(t)}signTransaction(t){return this.sign(o(t))}};export{c as a};
2
- //# sourceMappingURL=chunk-NGIPNL7N.mjs.map
1
+ import{d as o}from"./chunk-SINSCI7V.mjs";import{b as i}from"./chunk-ADPKXACB.mjs";import{c as n}from"./chunk-G76BSSWS.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";var c=class a{constructor(t){this.signingScheme=0;let{privateKey:e,address:r}=t;this.privateKey=e,this.publicKey=e.publicKey(),this.accountAddress=r?s.from(r):this.publicKey.authKey().derivedAddress()}static generate(){let t=n.generate();return new a({privateKey:t})}static fromDerivationPath(t){let{path:e,mnemonic:r}=t,u=n.fromDerivationPath(e,r);return new a({privateKey:u})}verifySignature(t){return this.publicKey.verifySignature(t)}signWithAuthenticator(t){return new i(this.publicKey,this.privateKey.sign(t))}signTransactionWithAuthenticator(t){return new i(this.publicKey,this.signTransaction(t))}sign(t){return this.privateKey.sign(t)}signTransaction(t){return this.sign(o(t))}};export{c as a};
2
+ //# sourceMappingURL=chunk-3PJXUJEB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-ILI5TDXD.mjs";import{a as m}from"./chunk-72S2NOM5.mjs";import{c as A}from"./chunk-J45FMNYT.mjs";import{s as f}from"./chunk-VHNX2NUR.mjs";import{b as w}from"./chunk-EDVGFSB5.mjs";var T=["A name must be between 3 and 63 characters long,","and can only contain lowercase a-z, 0-9, and hyphens.","A name may not start or end with a hyphen."].join(" ");function D(e){return!(!e||e.length<3||e.length>63||!/^[a-z\d][a-z\d-]{1,61}[a-z\d]$/.test(e))}function c(e){let[t,n,...o]=e.replace(/\.apt$/,"").split(".");if(o.length>0)throw new Error(`${e} is invalid. A name can only have two parts, a domain and a subdomain separated by a "."`);if(!D(t))throw new Error(`${t} is not valid. ${T}`);if(n&&!D(n))throw new Error(`${n} is not valid. ${T}`);return{domainName:n||t,subdomainName:n?t:void 0}}var I=(n=>(n[n.Independent=0]="Independent",n[n.FollowsDomain=1]="FollowsDomain",n))(I||{});function E(e){if(!e)return!1;let t=new Date(e.domain_expiration_timestamp).getTime()<Date.now(),n=new Date(e.expiration_timestamp).getTime()<Date.now();return e.subdomain&&t?!1:e.subdomain&&e.subdomain_expiration_policy===1?!0:!n}var j="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",O="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",v={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:O,custom:null,devnet:null};function d(e){let t=v[e.network];if(!t)throw new Error(`The ANS contract is not deployed to ${e.network}`);return t}var b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function F(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function Y(e){let{aptosConfig:t,expiration:n,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:u}=e,p=d(t),{domainName:y,subdomainName:N}=c(o),x=n.policy==="subdomain:independent"||n.policy==="subdomain:follow-domain";if(N&&!x)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(x&&!N)throw new Error(`Policy is set to ${n.policy} but no subdomain was provided`);if(n.policy==="domain"){let h=n.years??1;if(h!==1)throw new Error("For now, names can only be registered for 1 year at a time");let G=h*31536e3;return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[y,G,s,i]},options:a})}if(!N)throw new Error(`${n.policy} requires a subdomain to be provided.`);let _=await P({aptosConfig:t,name:y});if(!_)throw new Error("The domain does not exist");let S=n.policy==="subdomain:independent"?n.expirationDate:_;if(S>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[y,N,Math.round(S/1e3),n.policy==="subdomain:follow-domain"?1:0,!!u,s,i]},options:a})}async function P(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n);try{let i=await g({aptosConfig:t,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,s]}});return Number(i[0])*1e3}catch{return}}async function K(e){let{aptosConfig:t,address:n}=e,o=d(t),r=await g({aptosConfig:t,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(n).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function W(e){let{aptosConfig:t,sender:n,name:o,options:r}=e,s=d(t);if(!o)return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function H(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function J(e){let{aptosConfig:t,sender:n,name:o,address:r,options:s}=e,i=d(t),{domainName:a,subdomainName:u}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,u,r]},options:s})}async function X(e){let{aptosConfig:t,name:n}=e,{domainName:o,subdomainName:r=""}=c(n),a=(await A({aptosConfig:t,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=l(a)),E(a)?a:void 0}async function Z(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountNames",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(l)}async function ee(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountDomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(l)}async function ne(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(l)}async function te(e){let{aptosConfig:t,options:n,domain:o}=e;return(await A({aptosConfig:t,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""}}}}})).current_aptos_names.map(l).filter(E)}async function C(e){let{aptosConfig:t}=e,n=d(t),[o]=await g({aptosConfig:t,payload:{function:`${n}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function oe(e){let{aptosConfig:t,sender:n,name:o,years:r=1,options:s}=e,i=d(t),a=r*31536e3,{domainName:u,subdomainName:p}=c(o);if(p)throw new Error("Subdomains cannot be renewed");if(r!==1)throw new Error("Currently, only 1 year renewals are supported");return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[u,a]},options:s})}function l(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).getTime()}}export{T as a,D as b,c,I as d,E as e,j as f,O as g,F as h,Y as i,P as j,K as k,W as l,H as m,J as n,X as o,Z as p,ee as q,ne as r,te as s,oe as t};
2
- //# sourceMappingURL=chunk-7T4PLPI7.mjs.map
1
+ import{a as g}from"./chunk-LOLHWM3E.mjs";import{a as m}from"./chunk-4UB6MXQH.mjs";import{c as A}from"./chunk-J45FMNYT.mjs";import{s as f}from"./chunk-VHNX2NUR.mjs";import{b as w}from"./chunk-EDVGFSB5.mjs";var T=["A name must be between 3 and 63 characters long,","and can only contain lowercase a-z, 0-9, and hyphens.","A name may not start or end with a hyphen."].join(" ");function D(e){return!(!e||e.length<3||e.length>63||!/^[a-z\d][a-z\d-]{1,61}[a-z\d]$/.test(e))}function c(e){let[t,n,...o]=e.replace(/\.apt$/,"").split(".");if(o.length>0)throw new Error(`${e} is invalid. A name can only have two parts, a domain and a subdomain separated by a "."`);if(!D(t))throw new Error(`${t} is not valid. ${T}`);if(n&&!D(n))throw new Error(`${n} is not valid. ${T}`);return{domainName:n||t,subdomainName:n?t:void 0}}var I=(n=>(n[n.Independent=0]="Independent",n[n.FollowsDomain=1]="FollowsDomain",n))(I||{});function E(e){if(!e)return!1;let t=new Date(e.domain_expiration_timestamp).getTime()<Date.now(),n=new Date(e.expiration_timestamp).getTime()<Date.now();return e.subdomain&&t?!1:e.subdomain&&e.subdomain_expiration_policy===1?!0:!n}var j="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",O="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",v={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:O,custom:null,devnet:null};function d(e){let t=v[e.network];if(!t)throw new Error(`The ANS contract is not deployed to ${e.network}`);return t}var b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function F(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function Y(e){let{aptosConfig:t,expiration:n,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:u}=e,p=d(t),{domainName:y,subdomainName:N}=c(o),x=n.policy==="subdomain:independent"||n.policy==="subdomain:follow-domain";if(N&&!x)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(x&&!N)throw new Error(`Policy is set to ${n.policy} but no subdomain was provided`);if(n.policy==="domain"){let h=n.years??1;if(h!==1)throw new Error("For now, names can only be registered for 1 year at a time");let G=h*31536e3;return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[y,G,s,i]},options:a})}if(!N)throw new Error(`${n.policy} requires a subdomain to be provided.`);let _=await P({aptosConfig:t,name:y});if(!_)throw new Error("The domain does not exist");let S=n.policy==="subdomain:independent"?n.expirationDate:_;if(S>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[y,N,Math.round(S/1e3),n.policy==="subdomain:follow-domain"?1:0,!!u,s,i]},options:a})}async function P(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n);try{let i=await g({aptosConfig:t,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,s]}});return Number(i[0])*1e3}catch{return}}async function K(e){let{aptosConfig:t,address:n}=e,o=d(t),r=await g({aptosConfig:t,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(n).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function W(e){let{aptosConfig:t,sender:n,name:o,options:r}=e,s=d(t);if(!o)return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function H(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function J(e){let{aptosConfig:t,sender:n,name:o,address:r,options:s}=e,i=d(t),{domainName:a,subdomainName:u}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,u,r]},options:s})}async function X(e){let{aptosConfig:t,name:n}=e,{domainName:o,subdomainName:r=""}=c(n),a=(await A({aptosConfig:t,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=l(a)),E(a)?a:void 0}async function Z(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountNames",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(l)}async function ee(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountDomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(l)}async function ne(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(l)}async function te(e){let{aptosConfig:t,options:n,domain:o}=e;return(await A({aptosConfig:t,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""}}}}})).current_aptos_names.map(l).filter(E)}async function C(e){let{aptosConfig:t}=e,n=d(t),[o]=await g({aptosConfig:t,payload:{function:`${n}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function oe(e){let{aptosConfig:t,sender:n,name:o,years:r=1,options:s}=e,i=d(t),a=r*31536e3,{domainName:u,subdomainName:p}=c(o);if(p)throw new Error("Subdomains cannot be renewed");if(r!==1)throw new Error("Currently, only 1 year renewals are supported");return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[u,a]},options:s})}function l(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).getTime()}}export{T as a,D as b,c,I as d,E as e,j as f,O as g,F as h,Y as i,P as j,K as k,W as l,H as m,J as n,X as o,Z as p,ee as q,ne as r,te as s,oe as t};
2
+ //# sourceMappingURL=chunk-4GOLPPK3.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-6EMN3BOV.mjs";import{g as a}from"./chunk-72S2NOM5.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var n=class{constructor(t){this.config=t}async simple(t){return a({aptosConfig:this.config,...t})}async multiAgent(t){return a({aptosConfig:this.config,...t})}};o([i],n.prototype,"simple",1),o([i],n.prototype,"multiAgent",1);export{n as a};
2
- //# sourceMappingURL=chunk-NLV3PTOE.mjs.map
1
+ import{a as i}from"./chunk-6EMN3BOV.mjs";import{g as a}from"./chunk-4UB6MXQH.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var n=class{constructor(t){this.config=t}async simple(t){return a({aptosConfig:this.config,...t})}async multiAgent(t){return a({aptosConfig:this.config,...t})}};o([i],n.prototype,"simple",1),o([i],n.prototype,"multiAgent",1);export{n as a};
2
+ //# sourceMappingURL=chunk-4JMLZZFL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-PDY3AFVI.mjs";import{a as e}from"./chunk-5MZJD6SA.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";var L=class{constructor(t){this.config=t}async getCollectionData(t){await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"});let{creatorAddress:N,collectionName:_,options:n}=t,w=s.from(N),r={collection_name:{_eq:_},creator_address:{_eq:w.toStringLong()}};return n?.tokenStandard&&(r.token_standard={_eq:n?.tokenStandard??"v2"}),d({aptosConfig:this.config,options:{where:r}})}async getCollectionDataByCreatorAddressAndCollectionName(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),g({aptosConfig:this.config,...t})}async getCollectionDataByCreatorAddress(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),u({aptosConfig:this.config,...t})}async getCollectionDataByCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),A({aptosConfig:this.config,...t})}async getCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),y({aptosConfig:this.config,...t})}async getDigitalAssetData(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),i({aptosConfig:this.config,...t})}async getCurrentDigitalAssetOwnership(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),o({aptosConfig:this.config,...t})}async getOwnedDigitalAssets(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),a({aptosConfig:this.config,...t})}async getDigitalAssetActivity(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),c({aptosConfig:this.config,...t})}async createCollectionTransaction(t){return p({aptosConfig:this.config,...t})}async mintDigitalAssetTransaction(t){return m({aptosConfig:this.config,...t})}async transferDigitalAssetTransaction(t){return l({aptosConfig:this.config,...t})}async mintSoulBoundTransaction(t){return T({aptosConfig:this.config,...t})}async burnDigitalAssetTransaction(t){return f({aptosConfig:this.config,...t})}async freezeDigitalAssetTransaferTransaction(t){return C({aptosConfig:this.config,...t})}async unfreezeDigitalAssetTransaferTransaction(t){return I({aptosConfig:this.config,...t})}async setDigitalAssetDescriptionTransaction(t){return O({aptosConfig:this.config,...t})}async setDigitalAssetNameTransaction(t){return P({aptosConfig:this.config,...t})}async setDigitalAssetURITransaction(t){return D({aptosConfig:this.config,...t})}async addDigitalAssetPropertyTransaction(t){return V({aptosConfig:this.config,...t})}async removeDigitalAssetPropertyTransaction(t){return S({aptosConfig:this.config,...t})}async updateDigitalAssetPropertyTransaction(t){return h({aptosConfig:this.config,...t})}async addDigitalAssetTypedPropertyTransaction(t){return R({aptosConfig:this.config,...t})}async updateDigitalAssetTypedPropertyTransaction(t){return G({aptosConfig:this.config,...t})}};export{L as a};
2
- //# sourceMappingURL=chunk-3XXBKVEX.mjs.map
1
+ import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-SRZWWYZP.mjs";import{a as e}from"./chunk-RLGIYYI7.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";var L=class{constructor(t){this.config=t}async getCollectionData(t){await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"});let{creatorAddress:N,collectionName:_,options:n}=t,w=s.from(N),r={collection_name:{_eq:_},creator_address:{_eq:w.toStringLong()}};return n?.tokenStandard&&(r.token_standard={_eq:n?.tokenStandard??"v2"}),d({aptosConfig:this.config,options:{where:r}})}async getCollectionDataByCreatorAddressAndCollectionName(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),g({aptosConfig:this.config,...t})}async getCollectionDataByCreatorAddress(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),u({aptosConfig:this.config,...t})}async getCollectionDataByCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),A({aptosConfig:this.config,...t})}async getCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),y({aptosConfig:this.config,...t})}async getDigitalAssetData(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),i({aptosConfig:this.config,...t})}async getCurrentDigitalAssetOwnership(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),o({aptosConfig:this.config,...t})}async getOwnedDigitalAssets(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),a({aptosConfig:this.config,...t})}async getDigitalAssetActivity(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),c({aptosConfig:this.config,...t})}async createCollectionTransaction(t){return p({aptosConfig:this.config,...t})}async mintDigitalAssetTransaction(t){return m({aptosConfig:this.config,...t})}async transferDigitalAssetTransaction(t){return l({aptosConfig:this.config,...t})}async mintSoulBoundTransaction(t){return T({aptosConfig:this.config,...t})}async burnDigitalAssetTransaction(t){return f({aptosConfig:this.config,...t})}async freezeDigitalAssetTransaferTransaction(t){return C({aptosConfig:this.config,...t})}async unfreezeDigitalAssetTransaferTransaction(t){return I({aptosConfig:this.config,...t})}async setDigitalAssetDescriptionTransaction(t){return O({aptosConfig:this.config,...t})}async setDigitalAssetNameTransaction(t){return P({aptosConfig:this.config,...t})}async setDigitalAssetURITransaction(t){return D({aptosConfig:this.config,...t})}async addDigitalAssetPropertyTransaction(t){return V({aptosConfig:this.config,...t})}async removeDigitalAssetPropertyTransaction(t){return S({aptosConfig:this.config,...t})}async updateDigitalAssetPropertyTransaction(t){return h({aptosConfig:this.config,...t})}async addDigitalAssetTypedPropertyTransaction(t){return R({aptosConfig:this.config,...t})}async updateDigitalAssetTypedPropertyTransaction(t){return G({aptosConfig:this.config,...t})}};export{L as a};
2
+ //# sourceMappingURL=chunk-4SEHAXB2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g,f as d,g as b,i as S}from"./chunk-4LHVEO7T.mjs";import{a as C}from"./chunk-K7ZPRL7C.mjs";import{a as w}from"./chunk-Z56T4OGM.mjs";import{a as P}from"./chunk-5RNKD3GW.mjs";import{a as I}from"./chunk-CUDIVR4U.mjs";import{d as l}from"./chunk-E2WOZVJX.mjs";import{a as T}from"./chunk-YACGA3YS.mjs";import{c as f,m as s}from"./chunk-5FPWLBZT.mjs";import{b as p}from"./chunk-EDVGFSB5.mjs";import{b as A}from"./chunk-FTBXTZM2.mjs";import{a as r}from"./chunk-YELQZVBK.mjs";import{b as y}from"./chunk-E7VSBBQM.mjs";async function h(t){let a=await D(t);return G(t,a)}async function D(t){let{aptosConfig:a,data:n}=t,e,o;return"bytecode"in n?o=await g(n):"multisigAddress"in n?(e={aptosConfig:a,multisigAddress:n.multisigAddress,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await g(e)):(e={aptosConfig:a,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await g(e)),o}async function G(t,a){let{aptosConfig:n,sender:e,options:o}=t,i;if(K(t)&&(i=p.ZERO.toString()),U(t)){let{secondarySignerAddresses:c}=t;return d({aptosConfig:n,sender:e,payload:a,options:o,secondarySignerAddresses:c,feePayerAddress:i})}return d({aptosConfig:n,sender:e,payload:a,options:o,feePayerAddress:i})}function K(t){return t.withFeePayer===!0}function U(t){return"secondarySignerAddresses"in t}function Y(t){let{transaction:a}=t;return l(a)}function _(t){let{signer:a,transaction:n}=t;return a.signTransactionWithAuthenticator(n)}async function $(t){let{aptosConfig:a,transaction:n,signerPublicKey:e,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:c}=t,u=b({transaction:n,signerPublicKey:e,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:c}),{data:m}=await A({aptosConfig:a,body:u,path:"transactions/simulate",params:{estimate_gas_unit_price:t.options?.estimateGasUnitPrice??!1,estimate_max_gas_amount:t.options?.estimateMaxGasAmount??!1,estimate_prioritized_gas_unit_price:t.options?.estimatePrioritizedGasUnitPrice??!1},originMethod:"simulateTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return m}async function B(t){let{aptosConfig:a}=t,n=S({...t}),{data:e}=await A({aptosConfig:a,body:n,path:"transactions",originMethod:"submitTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return e}async function M(t){let{aptosConfig:a,signer:n,transaction:e}=t;(n instanceof I||n instanceof w)&&await n.waitForProofFetch();let o=_({signer:n,transaction:e});return B({aptosConfig:a,transaction:e,senderAuthenticator:o})}var N={typeParameters:[],parameters:[s.u8(),new s(s.u8())]};async function nn(t){let{aptosConfig:a,account:n,metadataBytes:e,moduleBytecode:o,options:i}=t,c=o.map(u=>r.U8(u));return h({aptosConfig:a,sender:p.from(n),data:{function:"0x1::code::publish_package_txn",functionArguments:[r.U8(e),new r(c)],abi:N},options:i})}var F={typeParameters:[],parameters:[new f,s.u8(),new f,s.u8(),s.u8(),s.u8()]};async function tn(t){let{aptosConfig:a,fromAccount:n,toNewPrivateKey:e}=t,o=await C({aptosConfig:a,accountAddress:n.accountAddress}),i=P.fromPrivateKey({privateKey:e,legacy:!0}),u=new T({sequenceNumber:BigInt(o.sequence_number),originator:n.accountAddress,currentAuthKey:p.from(o.authentication_key),newPublicKey:i.publicKey}).bcsToBytes(),m=n.sign(u),R=i.sign(u),x=await h({aptosConfig:a,sender:n.accountAddress,data:{function:"0x1::account::rotate_authentication_key",functionArguments:[new y(n.signingScheme),r.U8(n.publicKey.toUint8Array()),new y(i.signingScheme),r.U8(i.publicKey.toUint8Array()),r.U8(m.toUint8Array()),r.U8(R.toUint8Array())],abi:F}});return M({aptosConfig:a,signer:n,transaction:x})}export{h as a,D as b,G as c,Y as d,_ as e,$ as f,B as g,M as h,nn as i,tn as j};
2
- //# sourceMappingURL=chunk-72S2NOM5.mjs.map
1
+ import{a as g,f as d,g as b,i as S}from"./chunk-NK2VQHI7.mjs";import{a as C}from"./chunk-GVAZZ3UZ.mjs";import{a as P}from"./chunk-I7CSJMDX.mjs";import{a as w}from"./chunk-LTNQQKPC.mjs";import{a as I}from"./chunk-YRDU2QH5.mjs";import{d as l}from"./chunk-SINSCI7V.mjs";import{a as T}from"./chunk-7DDP75LL.mjs";import{c as f,m as s}from"./chunk-5FPWLBZT.mjs";import{b as A}from"./chunk-FTBXTZM2.mjs";import{a as r}from"./chunk-YELQZVBK.mjs";import{b as y}from"./chunk-E7VSBBQM.mjs";import{b as p}from"./chunk-EDVGFSB5.mjs";async function h(t){let a=await D(t);return G(t,a)}async function D(t){let{aptosConfig:a,data:n}=t,e,o;return"bytecode"in n?o=await g(n):"multisigAddress"in n?(e={aptosConfig:a,multisigAddress:n.multisigAddress,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await g(e)):(e={aptosConfig:a,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await g(e)),o}async function G(t,a){let{aptosConfig:n,sender:e,options:o}=t,i;if(K(t)&&(i=p.ZERO.toString()),U(t)){let{secondarySignerAddresses:c}=t;return d({aptosConfig:n,sender:e,payload:a,options:o,secondarySignerAddresses:c,feePayerAddress:i})}return d({aptosConfig:n,sender:e,payload:a,options:o,feePayerAddress:i})}function K(t){return t.withFeePayer===!0}function U(t){return"secondarySignerAddresses"in t}function Y(t){let{transaction:a}=t;return l(a)}function _(t){let{signer:a,transaction:n}=t;return a.signTransactionWithAuthenticator(n)}async function $(t){let{aptosConfig:a,transaction:n,signerPublicKey:e,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:c}=t,u=b({transaction:n,signerPublicKey:e,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:c}),{data:m}=await A({aptosConfig:a,body:u,path:"transactions/simulate",params:{estimate_gas_unit_price:t.options?.estimateGasUnitPrice??!1,estimate_max_gas_amount:t.options?.estimateMaxGasAmount??!1,estimate_prioritized_gas_unit_price:t.options?.estimatePrioritizedGasUnitPrice??!1},originMethod:"simulateTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return m}async function B(t){let{aptosConfig:a}=t,n=S({...t}),{data:e}=await A({aptosConfig:a,body:n,path:"transactions",originMethod:"submitTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return e}async function M(t){let{aptosConfig:a,signer:n,transaction:e}=t;(n instanceof I||n instanceof w)&&await n.waitForProofFetch();let o=_({signer:n,transaction:e});return B({aptosConfig:a,transaction:e,senderAuthenticator:o})}var N={typeParameters:[],parameters:[s.u8(),new s(s.u8())]};async function nn(t){let{aptosConfig:a,account:n,metadataBytes:e,moduleBytecode:o,options:i}=t,c=o.map(u=>r.U8(u));return h({aptosConfig:a,sender:p.from(n),data:{function:"0x1::code::publish_package_txn",functionArguments:[r.U8(e),new r(c)],abi:N},options:i})}var F={typeParameters:[],parameters:[new f,s.u8(),new f,s.u8(),s.u8(),s.u8()]};async function tn(t){let{aptosConfig:a,fromAccount:n,toNewPrivateKey:e}=t,o=await C({aptosConfig:a,accountAddress:n.accountAddress}),i=P.fromPrivateKey({privateKey:e,legacy:!0}),u=new T({sequenceNumber:BigInt(o.sequence_number),originator:n.accountAddress,currentAuthKey:p.from(o.authentication_key),newPublicKey:i.publicKey}).bcsToBytes(),m=n.sign(u),R=i.sign(u),x=await h({aptosConfig:a,sender:n.accountAddress,data:{function:"0x1::account::rotate_authentication_key",functionArguments:[new y(n.signingScheme),r.U8(n.publicKey.toUint8Array()),new y(i.signingScheme),r.U8(i.publicKey.toUint8Array()),r.U8(m.toUint8Array()),r.U8(R.toUint8Array())],abi:F}});return M({aptosConfig:a,signer:n,transaction:x})}export{h as a,D as b,G as c,Y as d,_ as e,$ as f,B as g,M as h,nn as i,tn as j};
2
+ //# sourceMappingURL=chunk-4UB6MXQH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-ND23H3AK.mjs";import{b as i}from"./chunk-EDVGFSB5.mjs";import{a as d}from"./chunk-ZZIMFLVT.mjs";var o=class t extends d{constructor(e,s,r){super();this.rawTransaction=e,this.feePayerAddress=r,this.secondarySignerAddresses=s}serialize(e){this.rawTransaction.serialize(e),e.serializeVector(this.secondarySignerAddresses),this.feePayerAddress===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.feePayerAddress.serialize(e))}static deserialize(e){let s=n.deserialize(e),r=e.deserializeVector(i),c=e.deserializeBool(),a;return c&&(a=i.deserialize(e)),new t(s,r,a)}};export{o as a};
2
- //# sourceMappingURL=chunk-7BPKOPP7.mjs.map
1
+ import{a as n}from"./chunk-MJPZBN4E.mjs";import{b as i}from"./chunk-EDVGFSB5.mjs";import{a as d}from"./chunk-ZZIMFLVT.mjs";var o=class t extends d{constructor(e,s,r){super();this.rawTransaction=e,this.feePayerAddress=r,this.secondarySignerAddresses=s}serialize(e){this.rawTransaction.serialize(e),e.serializeVector(this.secondarySignerAddresses),this.feePayerAddress===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.feePayerAddress.serialize(e))}static deserialize(e){let s=n.deserialize(e),r=e.deserializeVector(i),c=e.deserializeBool(),a;return c&&(a=i.deserialize(e)),new t(s,r,a)}};export{o as a};
2
+ //# sourceMappingURL=chunk-56KUTRUI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-5FPWLBZT.mjs";import{a as g}from"./chunk-SP4PT77Z.mjs";import{a as p}from"./chunk-5HI4R3A2.mjs";import{b as y}from"./chunk-EDVGFSB5.mjs";import{a as v,b as M}from"./chunk-YELQZVBK.mjs";import{a as S}from"./chunk-CDIKSNSU.mjs";import{a as F,b as d,c as T,d as x,e as E,f as _,g as w}from"./chunk-E7VSBBQM.mjs";import{a as u}from"./chunk-ZZIMFLVT.mjs";function I(r){let e=r.deserializeUleb128AsU32();switch(e){case 0:return d.deserialize(r);case 1:return E.deserialize(r);case 2:return _.deserialize(r);case 3:return y.deserialize(r);case 4:return v.deserialize(r,d);case 5:return F.deserialize(r);case 6:return T.deserialize(r);case 7:return x.deserialize(r);case 8:return w.deserialize(r);case 9:return M.deserialize(r);default:throw new Error(`Unknown variant index for ScriptTransactionArgument: ${e}`)}}var a=class extends u{static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return A.load(e);case 2:return z.load(e);case 3:return h.load(e);default:throw new Error(`Unknown variant index for TransactionPayload: ${t}`)}}},A=class r extends a{constructor(t){super();this.script=t}serialize(t){t.serializeU32AsUleb128(0),this.script.serialize(t)}static load(t){let i=U.deserialize(t);return new r(i)}},z=class r extends a{constructor(t){super();this.entryFunction=t}serialize(t){t.serializeU32AsUleb128(2),this.entryFunction.serialize(t)}static load(t){let i=l.deserialize(t);return new r(i)}},h=class r extends a{constructor(t){super();this.multiSig=t}serialize(t){t.serializeU32AsUleb128(3),this.multiSig.serialize(t)}static load(t){let i=f.deserialize(t);return new r(i)}},l=class r{constructor(e,t,i,n){this.module_name=e,this.function_name=t,this.type_args=i,this.args=n}static build(e,t,i,n){return new r(g.fromStr(e),new p(t),i,n)}serialize(e){this.module_name.serialize(e),this.function_name.serialize(e),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(t=>{t.serializeForEntryFunction(e)})}static deserialize(e){let t=g.deserialize(e),i=p.deserialize(e),n=e.deserializeVector(m),o=e.deserializeUleb128AsU32(),s=new Array;for(let c=0;c<o;c+=1){let B=e.deserializeUleb128AsU32(),D=S.deserialize(e,B);s.push(D)}return new r(t,i,n,s)}},U=class r{constructor(e,t,i){this.bytecode=e,this.type_args=t,this.args=i}serialize(e){e.serializeBytes(this.bytecode),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(t=>{t.serializeForScriptFunction(e)})}static deserialize(e){let t=e.deserializeBytes(),i=e.deserializeVector(m),n=e.deserializeUleb128AsU32(),o=new Array;for(let s=0;s<n;s+=1){let c=I(e);o.push(c)}return new r(t,i,o)}},f=class r{constructor(e,t){this.multisig_address=e,this.transaction_payload=t}serialize(e){this.multisig_address.serialize(e),this.transaction_payload===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.transaction_payload.serialize(e))}static deserialize(e){let t=y.deserialize(e),i=e.deserializeBool(),n;return i&&(n=b.deserialize(e)),new r(t,n)}},b=class r extends u{constructor(t){super();this.transaction_payload=t}serialize(t){t.serializeU32AsUleb128(0),this.transaction_payload.serialize(t)}static deserialize(t){return t.deserializeUleb128AsU32(),new r(l.deserialize(t))}};export{I as a,a as b,A as c,z as d,h as e,l as f,U as g,f as h,b as i};
2
- //# sourceMappingURL=chunk-SVO6PVAX.mjs.map
1
+ import{a as m}from"./chunk-5FPWLBZT.mjs";import{a as g}from"./chunk-SP4PT77Z.mjs";import{a as p}from"./chunk-5HI4R3A2.mjs";import{a as S}from"./chunk-CDIKSNSU.mjs";import{a as v,b as M}from"./chunk-YELQZVBK.mjs";import{a as F,b as d,c as T,d as x,e as E,f as _,g as w}from"./chunk-E7VSBBQM.mjs";import{b as y}from"./chunk-EDVGFSB5.mjs";import{a as u}from"./chunk-ZZIMFLVT.mjs";function I(r){let e=r.deserializeUleb128AsU32();switch(e){case 0:return d.deserialize(r);case 1:return E.deserialize(r);case 2:return _.deserialize(r);case 3:return y.deserialize(r);case 4:return v.deserialize(r,d);case 5:return F.deserialize(r);case 6:return T.deserialize(r);case 7:return x.deserialize(r);case 8:return w.deserialize(r);case 9:return M.deserialize(r);default:throw new Error(`Unknown variant index for ScriptTransactionArgument: ${e}`)}}var a=class extends u{static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return A.load(e);case 2:return z.load(e);case 3:return h.load(e);default:throw new Error(`Unknown variant index for TransactionPayload: ${t}`)}}},A=class r extends a{constructor(t){super();this.script=t}serialize(t){t.serializeU32AsUleb128(0),this.script.serialize(t)}static load(t){let i=U.deserialize(t);return new r(i)}},z=class r extends a{constructor(t){super();this.entryFunction=t}serialize(t){t.serializeU32AsUleb128(2),this.entryFunction.serialize(t)}static load(t){let i=l.deserialize(t);return new r(i)}},h=class r extends a{constructor(t){super();this.multiSig=t}serialize(t){t.serializeU32AsUleb128(3),this.multiSig.serialize(t)}static load(t){let i=f.deserialize(t);return new r(i)}},l=class r{constructor(e,t,i,n){this.module_name=e,this.function_name=t,this.type_args=i,this.args=n}static build(e,t,i,n){return new r(g.fromStr(e),new p(t),i,n)}serialize(e){this.module_name.serialize(e),this.function_name.serialize(e),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(t=>{t.serializeForEntryFunction(e)})}static deserialize(e){let t=g.deserialize(e),i=p.deserialize(e),n=e.deserializeVector(m),o=e.deserializeUleb128AsU32(),s=new Array;for(let c=0;c<o;c+=1){let B=e.deserializeUleb128AsU32(),D=S.deserialize(e,B);s.push(D)}return new r(t,i,n,s)}},U=class r{constructor(e,t,i){this.bytecode=e,this.type_args=t,this.args=i}serialize(e){e.serializeBytes(this.bytecode),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(t=>{t.serializeForScriptFunction(e)})}static deserialize(e){let t=e.deserializeBytes(),i=e.deserializeVector(m),n=e.deserializeUleb128AsU32(),o=new Array;for(let s=0;s<n;s+=1){let c=I(e);o.push(c)}return new r(t,i,o)}},f=class r{constructor(e,t){this.multisig_address=e,this.transaction_payload=t}serialize(e){this.multisig_address.serialize(e),this.transaction_payload===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.transaction_payload.serialize(e))}static deserialize(e){let t=y.deserialize(e),i=e.deserializeBool(),n;return i&&(n=b.deserialize(e)),new r(t,n)}},b=class r extends u{constructor(t){super();this.transaction_payload=t}serialize(t){t.serializeU32AsUleb128(0),this.transaction_payload.serialize(t)}static deserialize(t){return t.deserializeUleb128AsU32(),new r(l.deserialize(t))}};export{I as a,a as b,A as c,z as d,h as e,l as f,U as g,f as h,b as i};
2
+ //# sourceMappingURL=chunk-57VN4QFR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-BC5BEOKM.mjs";import{a as g,b as _}from"./chunk-FDD6WNN6.mjs";import{b as p,d as b}from"./chunk-7T5CUI2H.mjs";import{b as o}from"./chunk-EDVGFSB5.mjs";import{a as h}from"./chunk-ZZIMFLVT.mjs";var c=class extends h{static deserialize(t){let e=t.deserializeUleb128AsU32();switch(e){case 0:return d.load(t);case 1:return u.load(t);case 2:return l.load(t);case 3:return A.load(t);case 4:return y.load(t);default:throw new Error(`Unknown variant index for TransactionAuthenticator: ${e}`)}}},d=class i extends c{constructor(e,r){super();this.public_key=e,this.signature=r}serialize(e){e.serializeU32AsUleb128(0),this.public_key.serialize(e),this.signature.serialize(e)}static load(e){let r=p.deserialize(e),s=b.deserialize(e);return new i(r,s)}},u=class i extends c{constructor(e,r){super();this.public_key=e,this.signature=r}serialize(e){e.serializeU32AsUleb128(1),this.public_key.serialize(e),this.signature.serialize(e)}static load(e){let r=g.deserialize(e),s=_.deserialize(e);return new i(r,s)}},l=class i extends c{constructor(e,r,s){super();this.sender=e,this.secondary_signer_addresses=r,this.secondary_signers=s}serialize(e){e.serializeU32AsUleb128(2),this.sender.serialize(e),e.serializeVector(this.secondary_signer_addresses),e.serializeVector(this.secondary_signers)}static load(e){let r=n.deserialize(e),s=e.deserializeVector(o),a=e.deserializeVector(n);return new i(r,s,a)}},A=class i extends c{constructor(e,r,s,a){super();this.sender=e,this.secondary_signer_addresses=r,this.secondary_signers=s,this.fee_payer=a}serialize(e){e.serializeU32AsUleb128(3),this.sender.serialize(e),e.serializeVector(this.secondary_signer_addresses),e.serializeVector(this.secondary_signers),this.fee_payer.address.serialize(e),this.fee_payer.authenticator.serialize(e)}static load(e){let r=n.deserialize(e),s=e.deserializeVector(o),a=e.deserializeVector(n),z=o.deserialize(e),S=n.deserialize(e),E={address:z,authenticator:S};return new i(r,s,a,E)}},y=class i extends c{constructor(e){super();this.sender=e}serialize(e){e.serializeU32AsUleb128(4),this.sender.serialize(e)}static load(e){let r=n.deserialize(e);return new i(r)}};export{c as a,d as b,u as c,l as d,A as e,y as f};
2
- //# sourceMappingURL=chunk-ZASN3QQQ.mjs.map
1
+ import{a as n}from"./chunk-ADPKXACB.mjs";import{a as g,b as _}from"./chunk-XFG6LGA6.mjs";import{b as p,d as b}from"./chunk-G76BSSWS.mjs";import{b as o}from"./chunk-EDVGFSB5.mjs";import{a as h}from"./chunk-ZZIMFLVT.mjs";var c=class extends h{static deserialize(t){let e=t.deserializeUleb128AsU32();switch(e){case 0:return d.load(t);case 1:return u.load(t);case 2:return l.load(t);case 3:return A.load(t);case 4:return y.load(t);default:throw new Error(`Unknown variant index for TransactionAuthenticator: ${e}`)}}},d=class i extends c{constructor(e,r){super();this.public_key=e,this.signature=r}serialize(e){e.serializeU32AsUleb128(0),this.public_key.serialize(e),this.signature.serialize(e)}static load(e){let r=p.deserialize(e),s=b.deserialize(e);return new i(r,s)}},u=class i extends c{constructor(e,r){super();this.public_key=e,this.signature=r}serialize(e){e.serializeU32AsUleb128(1),this.public_key.serialize(e),this.signature.serialize(e)}static load(e){let r=g.deserialize(e),s=_.deserialize(e);return new i(r,s)}},l=class i extends c{constructor(e,r,s){super();this.sender=e,this.secondary_signer_addresses=r,this.secondary_signers=s}serialize(e){e.serializeU32AsUleb128(2),this.sender.serialize(e),e.serializeVector(this.secondary_signer_addresses),e.serializeVector(this.secondary_signers)}static load(e){let r=n.deserialize(e),s=e.deserializeVector(o),a=e.deserializeVector(n);return new i(r,s,a)}},A=class i extends c{constructor(e,r,s,a){super();this.sender=e,this.secondary_signer_addresses=r,this.secondary_signers=s,this.fee_payer=a}serialize(e){e.serializeU32AsUleb128(3),this.sender.serialize(e),e.serializeVector(this.secondary_signer_addresses),e.serializeVector(this.secondary_signers),this.fee_payer.address.serialize(e),this.fee_payer.authenticator.serialize(e)}static load(e){let r=n.deserialize(e),s=e.deserializeVector(o),a=e.deserializeVector(n),z=o.deserialize(e),S=n.deserialize(e),E={address:z,authenticator:S};return new i(r,s,a,E)}},y=class i extends c{constructor(e){super();this.sender=e}serialize(e){e.serializeU32AsUleb128(4),this.sender.serialize(e)}static load(e){let r=n.deserialize(e);return new i(r)}};export{c as a,d as b,u as c,l as d,A as e,y as f};
2
+ //# sourceMappingURL=chunk-5F3DMDZI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c,b as g}from"./chunk-ILI5TDXD.mjs";import{k as i,l as a}from"./chunk-AGTINH7K.mjs";import{a as e,b as n,c as s,e as r,f as t}from"./chunk-J45FMNYT.mjs";var p=class{constructor(o){this.config=o}async getLedgerInfo(){return e({aptosConfig:this.config})}async getChainId(){return(await this.getLedgerInfo()).chain_id}async getBlockByVersion(o){return i({aptosConfig:this.config,...o})}async getBlockByHeight(o){return a({aptosConfig:this.config,...o})}async view(o){return c({aptosConfig:this.config,...o})}async viewJson(o){return g({aptosConfig:this.config,...o})}async getChainTopUserTransactions(o){return n({aptosConfig:this.config,...o})}async queryIndexer(o){return s({aptosConfig:this.config,...o})}async getIndexerLastSuccessVersion(){return r({aptosConfig:this.config})}async getProcessorStatus(o){return t({aptosConfig:this.config,processorType:o})}};export{p as a};
2
- //# sourceMappingURL=chunk-QKVID52D.mjs.map
1
+ import{a as c,b as g}from"./chunk-LOLHWM3E.mjs";import{k as i,l as a}from"./chunk-G6HZPSZ3.mjs";import{a as e,b as n,c as s,e as r,f as t}from"./chunk-J45FMNYT.mjs";var p=class{constructor(o){this.config=o}async getLedgerInfo(){return e({aptosConfig:this.config})}async getChainId(){return(await this.getLedgerInfo()).chain_id}async getBlockByVersion(o){return i({aptosConfig:this.config,...o})}async getBlockByHeight(o){return a({aptosConfig:this.config,...o})}async view(o){return c({aptosConfig:this.config,...o})}async viewJson(o){return g({aptosConfig:this.config,...o})}async getChainTopUserTransactions(o){return n({aptosConfig:this.config,...o})}async queryIndexer(o){return s({aptosConfig:this.config,...o})}async getIndexerLastSuccessVersion(){return r({aptosConfig:this.config})}async getProcessorStatus(o){return t({aptosConfig:this.config,processorType:o})}};export{p as a};
2
+ //# sourceMappingURL=chunk-64HK4IEO.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as t,d as n}from"./chunk-7T5CUI2H.mjs";import{a as u}from"./chunk-FOLCONSQ.mjs";import{a as l}from"./chunk-QP2A5ISX.mjs";import{a as s}from"./chunk-KEYAPEAX.mjs";import{b as o}from"./chunk-AOCNYMMX.mjs";var c=class i extends u{constructor(e){super();let r=e.constructor.name;switch(r){case t.name:this.publicKey=e,this.variant=0;break;default:throw new Error(`Unsupported key for EphemeralPublicKey - ${r}`)}}toUint8Array(){return this.bcsToBytes()}verifySignature(e){let{message:r,signature:a}=e;return this.publicKey.verifySignature({message:r,signature:a.signature})}serialize(e){if(this.publicKey instanceof t)e.serializeU32AsUleb128(0),this.publicKey.serialize(e);else throw new Error("Unknown public key type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(t.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}}static isPublicKey(e){return e instanceof i}},p=class i extends l{constructor(e){super();let r=e.constructor.name;switch(r){case n.name:this.signature=e;break;default:throw new Error(`Unsupported signature for EphemeralSignature - ${r}`)}}toUint8Array(){return this.bcsToBytes()}static fromHex(e){let r=o.fromHexInput(e),a=new s(r.toUint8Array());return i.deserialize(a)}serialize(e){if(this.signature instanceof n)e.serializeU32AsUleb128(0),this.signature.serialize(e);else throw new Error("Unknown signature type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(n.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralSignature: ${r}`)}}};export{c as a,p as b};
2
- //# sourceMappingURL=chunk-4I6IUAHQ.mjs.map
1
+ import{b as t,d as n}from"./chunk-G76BSSWS.mjs";import{a as u}from"./chunk-FOLCONSQ.mjs";import{a as l}from"./chunk-QP2A5ISX.mjs";import{a as s}from"./chunk-KEYAPEAX.mjs";import{b as o}from"./chunk-AOCNYMMX.mjs";var c=class i extends u{constructor(e){super();let r=e.constructor.name;switch(r){case t.name:this.publicKey=e,this.variant=0;break;default:throw new Error(`Unsupported key for EphemeralPublicKey - ${r}`)}}toUint8Array(){return this.bcsToBytes()}verifySignature(e){let{message:r,signature:a}=e;return this.publicKey.verifySignature({message:r,signature:a.signature})}serialize(e){if(this.publicKey instanceof t)e.serializeU32AsUleb128(0),this.publicKey.serialize(e);else throw new Error("Unknown public key type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(t.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}}static isPublicKey(e){return e instanceof i}},p=class i extends l{constructor(e){super();let r=e.constructor.name;switch(r){case n.name:this.signature=e;break;default:throw new Error(`Unsupported signature for EphemeralSignature - ${r}`)}}toUint8Array(){return this.bcsToBytes()}static fromHex(e){let r=o.fromHexInput(e),a=new s(r.toUint8Array());return i.deserialize(a)}serialize(e){if(this.signature instanceof n)e.serializeU32AsUleb128(0),this.signature.serialize(e);else throw new Error("Unknown signature type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(n.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralSignature: ${r}`)}}};export{c as a,p as b};
2
+ //# sourceMappingURL=chunk-6BXB4PLA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-TJDC5PWD.mjs";import{a as f}from"./chunk-FOLCONSQ.mjs";import{a as v}from"./chunk-QP2A5ISX.mjs";import{e as h,j as d}from"./chunk-LR65XHSF.mjs";import{a as g}from"./chunk-ZZIMFLVT.mjs";import{b as s}from"./chunk-AOCNYMMX.mjs";import{sha3_256 as A}from"@noble/hashes/sha3";import{secp256k1 as o}from"@noble/curves/secp256k1";import{HDKey as K}from"@scure/bip32";var i=class i extends f{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==i.LENGTH)throw new Error(`PublicKey length should be ${i.LENGTH}`);this.key=t}verifySignature(e){let{message:t,signature:n}=e,y=c(t),l=s.fromHexInput(y).toUint8Array(),x=A(l),S=n.toUint8Array();return o.verify(S,x,this.key.toUint8Array(),{lowS:!0})}toUint8Array(){return this.key.toUint8Array()}serialize(e){e.serializeBytes(this.key.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new i(t)}static isPublicKey(e){return e instanceof i}static isInstance(e){return"key"in e&&e.key?.data?.length===i.LENGTH}};i.LENGTH=65;var u=i,r=class r extends g{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.key=t}static generate(){let e=o.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!h(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,d(t))}static fromDerivationPathInner(e,t){let{privateKey:n}=K.fromMasterSeed(t).derive(e);if(n===null)throw new Error("Invalid key");return new r(n)}sign(e){let t=c(e),n=s.fromHexInput(t),y=A(n.toUint8Array()),l=o.sign(y,this.key.toUint8Array(),{lowS:!0});return new m(l.toCompactRawBytes())}publicKey(){let e=o.getPublicKey(this.key.toUint8Array(),!1);return new u(e)}toUint8Array(){return this.key.toUint8Array()}toString(){return this.key.toString()}serialize(e){e.serializeBytes(this.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new r(t)}static isPrivateKey(e){return e instanceof r}};r.LENGTH=32;var H=r,a=class a extends v{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}, received ${t.toUint8Array().length}`);this.data=t}toUint8Array(){return this.data.toUint8Array()}serialize(e){e.serializeBytes(this.data.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new a(t)}};a.LENGTH=64;var m=a;export{u as a,H as b,m as c};
2
- //# sourceMappingURL=chunk-QTTDBQAJ.mjs.map
1
+ import{a as f}from"./chunk-FOLCONSQ.mjs";import{a as v}from"./chunk-QP2A5ISX.mjs";import{a as c}from"./chunk-TJDC5PWD.mjs";import{e as h,j as d}from"./chunk-LR65XHSF.mjs";import{a as g}from"./chunk-ZZIMFLVT.mjs";import{b as s}from"./chunk-AOCNYMMX.mjs";import{sha3_256 as A}from"@noble/hashes/sha3";import{secp256k1 as o}from"@noble/curves/secp256k1";import{HDKey as K}from"@scure/bip32";var i=class i extends f{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==i.LENGTH)throw new Error(`PublicKey length should be ${i.LENGTH}`);this.key=t}verifySignature(e){let{message:t,signature:n}=e,y=c(t),l=s.fromHexInput(y).toUint8Array(),x=A(l),S=n.toUint8Array();return o.verify(S,x,this.key.toUint8Array(),{lowS:!0})}toUint8Array(){return this.key.toUint8Array()}serialize(e){e.serializeBytes(this.key.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new i(t)}static isPublicKey(e){return e instanceof i}static isInstance(e){return"key"in e&&e.key?.data?.length===i.LENGTH}};i.LENGTH=65;var u=i,r=class r extends g{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.key=t}static generate(){let e=o.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!h(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,d(t))}static fromDerivationPathInner(e,t){let{privateKey:n}=K.fromMasterSeed(t).derive(e);if(n===null)throw new Error("Invalid key");return new r(n)}sign(e){let t=c(e),n=s.fromHexInput(t),y=A(n.toUint8Array()),l=o.sign(y,this.key.toUint8Array(),{lowS:!0});return new m(l.toCompactRawBytes())}publicKey(){let e=o.getPublicKey(this.key.toUint8Array(),!1);return new u(e)}toUint8Array(){return this.key.toUint8Array()}toString(){return this.key.toString()}serialize(e){e.serializeBytes(this.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new r(t)}static isPrivateKey(e){return e instanceof r}};r.LENGTH=32;var H=r,a=class a extends v{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}, received ${t.toUint8Array().length}`);this.data=t}toUint8Array(){return this.data.toUint8Array()}serialize(e){e.serializeBytes(this.data.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new a(t)}};a.LENGTH=64;var m=a;export{u as a,H as b,m as c};
2
+ //# sourceMappingURL=chunk-76QOH2OW.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as o}from"./chunk-EDVGFSB5.mjs";import{a as u,c as r}from"./chunk-YELQZVBK.mjs";import{e as t}from"./chunk-E7VSBBQM.mjs";import{a as i}from"./chunk-ZZIMFLVT.mjs";var c=class extends i{constructor(e){super();this.accountAddress=o.ONE;this.moduleName=new r("account");this.structName=new r("RotationProofChallenge");this.sequenceNumber=new t(e.sequenceNumber),this.originator=e.originator,this.currentAuthKey=e.currentAuthKey,this.newPublicKey=u.U8(e.newPublicKey.toUint8Array())}serialize(e){e.serialize(this.accountAddress),e.serialize(this.moduleName),e.serialize(this.structName),e.serialize(this.sequenceNumber),e.serialize(this.originator),e.serialize(this.currentAuthKey),e.serialize(this.newPublicKey)}};export{c as a};
2
- //# sourceMappingURL=chunk-YACGA3YS.mjs.map
1
+ import{a as u,c as r}from"./chunk-YELQZVBK.mjs";import{e as t}from"./chunk-E7VSBBQM.mjs";import{b as o}from"./chunk-EDVGFSB5.mjs";import{a as i}from"./chunk-ZZIMFLVT.mjs";var c=class extends i{constructor(e){super();this.accountAddress=o.ONE;this.moduleName=new r("account");this.structName=new r("RotationProofChallenge");this.sequenceNumber=new t(e.sequenceNumber),this.originator=e.originator,this.currentAuthKey=e.currentAuthKey,this.newPublicKey=u.U8(e.newPublicKey.toUint8Array())}serialize(e){e.serialize(this.accountAddress),e.serialize(this.moduleName),e.serialize(this.structName),e.serialize(this.sequenceNumber),e.serialize(this.originator),e.serialize(this.currentAuthKey),e.serialize(this.newPublicKey)}};export{c as a};
2
+ //# sourceMappingURL=chunk-7DDP75LL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as b,b as p}from"./chunk-FDD6WNN6.mjs";import{a as z,b as A}from"./chunk-FDTLBR6D.mjs";import{a as g,b as h}from"./chunk-ASQIKTEF.mjs";import{b as y,d}from"./chunk-7T5CUI2H.mjs";import{a as o}from"./chunk-ZZIMFLVT.mjs";var u=class extends o{static deserialize(t){let i=t.deserializeUleb128AsU32();switch(i){case 0:return l.load(t);case 1:return n.load(t);case 2:return a.load(t);case 3:return c.load(t);default:throw new Error(`Unknown variant index for AccountAuthenticator: ${i}`)}}isEd25519(){return this instanceof l}isMultiEd25519(){return this instanceof n}isSingleKey(){return this instanceof a}isMultiKey(){return this instanceof c}},l=class s extends u{constructor(i,e){super();this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(0),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=y.deserialize(i),r=d.deserialize(i);return new s(e,r)}},n=class s extends u{constructor(i,e){super();this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(1),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=b.deserialize(i),r=p.deserialize(i);return new s(e,r)}},a=class s extends u{constructor(i,e){super();this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(2),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=g.deserialize(i),r=h.deserialize(i);return new s(e,r)}},c=class s extends u{constructor(i,e){super();this.public_keys=i,this.signatures=e}serialize(i){i.serializeU32AsUleb128(3),this.public_keys.serialize(i),this.signatures.serialize(i)}static load(i){let e=z.deserialize(i),r=A.deserialize(i);return new s(e,r)}};export{u as a,l as b,n as c,a as d,c as e};
2
- //# sourceMappingURL=chunk-BC5BEOKM.mjs.map
1
+ import{a as b,b as p}from"./chunk-XFG6LGA6.mjs";import{a as z,b as A}from"./chunk-ZOEZVSPX.mjs";import{a as g,b as h}from"./chunk-R5QDWL5W.mjs";import{b as y,d}from"./chunk-G76BSSWS.mjs";import{a as o}from"./chunk-ZZIMFLVT.mjs";var u=class extends o{static deserialize(t){let i=t.deserializeUleb128AsU32();switch(i){case 0:return l.load(t);case 1:return n.load(t);case 2:return a.load(t);case 3:return c.load(t);default:throw new Error(`Unknown variant index for AccountAuthenticator: ${i}`)}}isEd25519(){return this instanceof l}isMultiEd25519(){return this instanceof n}isSingleKey(){return this instanceof a}isMultiKey(){return this instanceof c}},l=class s extends u{constructor(i,e){super();this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(0),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=y.deserialize(i),r=d.deserialize(i);return new s(e,r)}},n=class s extends u{constructor(i,e){super();this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(1),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=b.deserialize(i),r=p.deserialize(i);return new s(e,r)}},a=class s extends u{constructor(i,e){super();this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(2),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=g.deserialize(i),r=h.deserialize(i);return new s(e,r)}},c=class s extends u{constructor(i,e){super();this.public_keys=i,this.signatures=e}serialize(i){i.serializeU32AsUleb128(3),this.public_keys.serialize(i),this.signatures.serialize(i)}static load(i){let e=z.deserialize(i),r=A.deserialize(i);return new s(e,r)}};export{u as a,l as b,n as c,a as d,c as e};
2
+ //# sourceMappingURL=chunk-ADPKXACB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-HOQCND6F.mjs";import{a as m}from"./chunk-CUDIVR4U.mjs";import{a as y}from"./chunk-ZAHUEAGT.mjs";import{n as u}from"./chunk-DYMN66K5.mjs";import{b as c}from"./chunk-EDVGFSB5.mjs";import{a as p}from"./chunk-KEYAPEAX.mjs";import{jwtDecode as P}from"jwt-decode";var K=class o extends m{constructor(e){super(e);this.publicKey=y.create(e)}serialize(e){if(this.proof===void 0)throw new Error("Connot serialize - proof undefined");e.serializeStr(this.jwt),e.serializeStr(this.uidKey),e.serializeFixedBytes(this.pepper),this.publicKey.jwkAddress.serialize(e),this.ephemeralKeyPair.serialize(e),this.proof.serialize(e)}static deserialize(e){let s=e.deserializeStr(),i=e.deserializeStr(),r=e.deserializeFixedBytes(31),a=c.deserialize(e),d=f.deserialize(e),n=u.deserialize(e);return o.create({proof:n,pepper:r,jwkAddress:a,uidKey:i,jwt:s,ephemeralKeyPair:d})}static fromBytes(e){return o.deserialize(new p(e))}static create(e){let{address:s,proof:i,jwt:r,ephemeralKeyPair:a,pepper:d,jwkAddress:n,uidKey:l="sub",proofFetchCallback:w}=e,t=P(r),h=t.iss;if(typeof t.aud!="string")throw new Error("aud was not found or an array of values");let A=t.aud,g=t[l];return new o({address:s,proof:i,ephemeralKeyPair:a,iss:h,uidKey:l,uidVal:g,aud:A,pepper:d,jwkAddress:c.from(n),jwt:r,proofFetchCallback:w})}};export{K as a};
2
- //# sourceMappingURL=chunk-IEH7ILF3.mjs.map
1
+ import{a as f}from"./chunk-L2EW7RS5.mjs";import{a as m}from"./chunk-YRDU2QH5.mjs";import{a as y}from"./chunk-MCZIV5GR.mjs";import{n as u}from"./chunk-YKWRPFAN.mjs";import{a as p}from"./chunk-KEYAPEAX.mjs";import{b as c}from"./chunk-EDVGFSB5.mjs";import{jwtDecode as P}from"jwt-decode";var K=class o extends m{constructor(e){super(e);this.publicKey=y.create(e)}serialize(e){if(this.proof===void 0)throw new Error("Connot serialize - proof undefined");e.serializeStr(this.jwt),e.serializeStr(this.uidKey),e.serializeFixedBytes(this.pepper),this.publicKey.jwkAddress.serialize(e),this.ephemeralKeyPair.serialize(e),this.proof.serialize(e)}static deserialize(e){let s=e.deserializeStr(),i=e.deserializeStr(),r=e.deserializeFixedBytes(31),a=c.deserialize(e),d=f.deserialize(e),n=u.deserialize(e);return o.create({proof:n,pepper:r,jwkAddress:a,uidKey:i,jwt:s,ephemeralKeyPair:d})}static fromBytes(e){return o.deserialize(new p(e))}static create(e){let{address:s,proof:i,jwt:r,ephemeralKeyPair:a,pepper:d,jwkAddress:n,uidKey:l="sub",proofFetchCallback:w}=e,t=P(r),h=t.iss;if(typeof t.aud!="string")throw new Error("aud was not found or an array of values");let A=t.aud,g=t[l];return new o({address:s,proof:i,ephemeralKeyPair:a,iss:h,uidKey:l,uidVal:g,aud:A,pepper:d,jwkAddress:c.from(n),jwt:r,proofFetchCallback:w})}};export{K as a};
2
+ //# sourceMappingURL=chunk-CRTGCAMB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-72S2NOM5.mjs";var o=class{constructor(n){this.config=n}async simple(n){return t({aptosConfig:this.config,...n})}async multiAgent(n){return t({aptosConfig:this.config,...n})}};export{o as a};
2
- //# sourceMappingURL=chunk-AGFN3VVA.mjs.map
1
+ import{a as t}from"./chunk-4UB6MXQH.mjs";var o=class{constructor(n){this.config=n}async simple(n){return t({aptosConfig:this.config,...n})}async multiAgent(n){return t({aptosConfig:this.config,...n})}};export{o as a};
2
+ //# sourceMappingURL=chunk-CSK46KWT.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-HOQCND6F.mjs";import{a as u}from"./chunk-CUDIVR4U.mjs";import{n as l}from"./chunk-DYMN66K5.mjs";import{a as d}from"./chunk-KEYAPEAX.mjs";import{jwtDecode as K}from"jwt-decode";var f=class t extends u{constructor(e){super(e)}serialize(e){if(e.serializeStr(this.jwt),e.serializeStr(this.uidKey),e.serializeFixedBytes(this.pepper),this.ephemeralKeyPair.serialize(e),this.proof===void 0)throw new Error("Connot serialize - proof undefined");this.proof.serialize(e)}static deserialize(e){let i=e.deserializeStr(),s=e.deserializeStr(),r=e.deserializeFixedBytes(31),a=c.deserialize(e),n=l.deserialize(e);return t.create({proof:n,pepper:r,uidKey:s,jwt:i,ephemeralKeyPair:a})}static fromBytes(e){return t.deserialize(new d(e))}static create(e){let{address:i,proof:s,jwt:r,ephemeralKeyPair:a,pepper:n,uidKey:p="sub",proofFetchCallback:m}=e,o=K(r),y=o.iss;if(typeof o.aud!="string")throw new Error("aud was not found or an array of values");let h=o.aud,w=o[p];return new t({address:i,proof:s,ephemeralKeyPair:a,iss:y,uidKey:p,uidVal:w,aud:h,pepper:n,jwt:r,proofFetchCallback:m})}};export{f as a};
2
- //# sourceMappingURL=chunk-MYF2VRVN.mjs.map
1
+ import{a as c}from"./chunk-L2EW7RS5.mjs";import{a as u}from"./chunk-YRDU2QH5.mjs";import{n as l}from"./chunk-YKWRPFAN.mjs";import{a as d}from"./chunk-KEYAPEAX.mjs";import{jwtDecode as K}from"jwt-decode";var f=class t extends u{constructor(e){super(e)}serialize(e){if(e.serializeStr(this.jwt),e.serializeStr(this.uidKey),e.serializeFixedBytes(this.pepper),this.ephemeralKeyPair.serialize(e),this.proof===void 0)throw new Error("Connot serialize - proof undefined");this.proof.serialize(e)}static deserialize(e){let i=e.deserializeStr(),s=e.deserializeStr(),r=e.deserializeFixedBytes(31),a=c.deserialize(e),n=l.deserialize(e);return t.create({proof:n,pepper:r,uidKey:s,jwt:i,ephemeralKeyPair:a})}static fromBytes(e){return t.deserialize(new d(e))}static create(e){let{address:i,proof:s,jwt:r,ephemeralKeyPair:a,pepper:n,uidKey:p="sub",proofFetchCallback:m}=e,o=K(r),y=o.iss;if(typeof o.aud!="string")throw new Error("aud was not found or an array of values");let h=o.aud,w=o[p];return new t({address:i,proof:s,ephemeralKeyPair:a,iss:y,uidKey:p,uidVal:w,aud:h,pepper:n,jwt:r,proofFetchCallback:m})}};export{f as a};
2
+ //# sourceMappingURL=chunk-D2JMUPS3.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-2KLLSBBN.mjs";var t=class{constructor(n){this.config=n}async transferCoinTransaction(n){return o({aptosConfig:this.config,...n})}};export{t as a};
2
- //# sourceMappingURL=chunk-KRRHWHTG.mjs.map
1
+ import{a as o}from"./chunk-QCUNTB7G.mjs";var t=class{constructor(n){this.config=n}async transferCoinTransaction(n){return o({aptosConfig:this.config,...n})}};export{t as a};
2
+ //# sourceMappingURL=chunk-D7W3LMWB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-NWTMTPPX.mjs";import{a as A}from"./chunk-VNIBQXNX.mjs";import{a as T}from"./chunk-NLV3PTOE.mjs";import{a as y}from"./chunk-AGFN3VVA.mjs";import{d as g,e as a,h as m,i as p,j as f}from"./chunk-72S2NOM5.mjs";import{a as i,b as s,c as r,d as e,e as c,g as u}from"./chunk-AGTINH7K.mjs";var h=class{constructor(n){this.config=n,this.build=new y(this.config),this.simulate=new A(this.config),this.submit=new T(this.config),this.batch=new d(this.config)}async getTransactions(n){return i({aptosConfig:this.config,...n})}async getTransactionByVersion(n){return r({aptosConfig:this.config,...n})}async getTransactionByHash(n){return e({aptosConfig:this.config,...n})}async isPendingTransaction(n){return c({aptosConfig:this.config,...n})}async waitForTransaction(n){return u({aptosConfig:this.config,...n})}async getGasPriceEstimation(){return s({aptosConfig:this.config})}getSigningMessage(n){return g(n)}async publishPackageTransaction(n){return p({aptosConfig:this.config,...n})}async rotateAuthKey(n){return f({aptosConfig:this.config,...n})}sign(n){return a({...n})}signAsFeePayer(n){let{signer:t,transaction:o}=n;if(!o.feePayerAddress)throw new Error(`Transaction ${o} is not a Fee Payer transaction`);return o.feePayerAddress=t.accountAddress,a({signer:t,transaction:o})}async batchTransactionsForSingleAccount(n){try{let{sender:t,data:o,options:P}=n;this.batch.forSingleAccount({sender:t,data:o,options:P})}catch(t){throw new Error(`failed to submit transactions with error: ${t}`)}}async signAndSubmitTransaction(n){let{signer:t,transaction:o}=n;return m({aptosConfig:this.config,signer:t,transaction:o})}};export{h as a};
2
- //# sourceMappingURL=chunk-YTOQGCAM.mjs.map
1
+ import{a as d}from"./chunk-UF25MR3N.mjs";import{a as A}from"./chunk-QEPPCEFH.mjs";import{a as T}from"./chunk-4JMLZZFL.mjs";import{a as y}from"./chunk-CSK46KWT.mjs";import{d as g,e as a,h as m,i as p,j as f}from"./chunk-4UB6MXQH.mjs";import{a as i,b as s,c as r,d as e,e as c,g as u}from"./chunk-G6HZPSZ3.mjs";var h=class{constructor(n){this.config=n,this.build=new y(this.config),this.simulate=new A(this.config),this.submit=new T(this.config),this.batch=new d(this.config)}async getTransactions(n){return i({aptosConfig:this.config,...n})}async getTransactionByVersion(n){return r({aptosConfig:this.config,...n})}async getTransactionByHash(n){return e({aptosConfig:this.config,...n})}async isPendingTransaction(n){return c({aptosConfig:this.config,...n})}async waitForTransaction(n){return u({aptosConfig:this.config,...n})}async getGasPriceEstimation(){return s({aptosConfig:this.config})}getSigningMessage(n){return g(n)}async publishPackageTransaction(n){return p({aptosConfig:this.config,...n})}async rotateAuthKey(n){return f({aptosConfig:this.config,...n})}sign(n){return a({...n})}signAsFeePayer(n){let{signer:t,transaction:o}=n;if(!o.feePayerAddress)throw new Error(`Transaction ${o} is not a Fee Payer transaction`);return o.feePayerAddress=t.accountAddress,a({signer:t,transaction:o})}async batchTransactionsForSingleAccount(n){try{let{sender:t,data:o,options:P}=n;this.batch.forSingleAccount({sender:t,data:o,options:P})}catch(t){throw new Error(`failed to submit transactions with error: ${t}`)}}async signAndSubmitTransaction(n){let{signer:t,transaction:o}=n;return m({aptosConfig:this.config,signer:t,transaction:o})}};export{h as a};
2
+ //# sourceMappingURL=chunk-E2I4A5FG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-K7ZPRL7C.mjs";import{a as e,b as n}from"./chunk-UAL27G6B.mjs";var r=class{constructor(t,i,o,a,c){this.lastUncommintedNumber=null;this.currentNumber=null;this.lock=!1;this.aptosConfig=t,this.account=i,this.maxWaitTime=o,this.maximumInFlight=a,this.sleepTime=c}async nextSequenceNumber(){for(;this.lock;)await e(this.sleepTime);this.lock=!0;let t=BigInt(0);try{if((this.lastUncommintedNumber===null||this.currentNumber===null)&&await this.initialize(),this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight){await this.update();let i=n();for(;this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight;)await e(this.sleepTime),n()-i>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, resyncing ${this.account.accountAddress.toString()}`),await this.initialize()):await this.update()}t=this.currentNumber,this.currentNumber+=BigInt(1)}catch(i){console.error("error in getting next sequence number for this account",i)}finally{this.lock=!1}return t}async initialize(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});this.currentNumber=BigInt(t),this.lastUncommintedNumber=BigInt(t)}async update(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});return this.lastUncommintedNumber=BigInt(t),this.lastUncommintedNumber}async synchronize(){if(this.lastUncommintedNumber!==this.currentNumber){for(;this.lock;)await e(this.sleepTime);this.lock=!0;try{await this.update();let t=n();for(;this.lastUncommintedNumber!==this.currentNumber;)n()-t>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, resyncing ${this.account.accountAddress.toString()}`),await this.initialize()):(await e(this.sleepTime),await this.update())}catch(t){console.error("error in synchronizing this account sequence number with the one on chain",t)}finally{this.lock=!1}}}};export{r as a};
2
- //# sourceMappingURL=chunk-YSVXROOO.mjs.map
1
+ import{a as s}from"./chunk-GVAZZ3UZ.mjs";import{a as e,b as n}from"./chunk-UAL27G6B.mjs";var r=class{constructor(t,i,o,a,c){this.lastUncommintedNumber=null;this.currentNumber=null;this.lock=!1;this.aptosConfig=t,this.account=i,this.maxWaitTime=o,this.maximumInFlight=a,this.sleepTime=c}async nextSequenceNumber(){for(;this.lock;)await e(this.sleepTime);this.lock=!0;let t=BigInt(0);try{if((this.lastUncommintedNumber===null||this.currentNumber===null)&&await this.initialize(),this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight){await this.update();let i=n();for(;this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight;)await e(this.sleepTime),n()-i>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, resyncing ${this.account.accountAddress.toString()}`),await this.initialize()):await this.update()}t=this.currentNumber,this.currentNumber+=BigInt(1)}catch(i){console.error("error in getting next sequence number for this account",i)}finally{this.lock=!1}return t}async initialize(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});this.currentNumber=BigInt(t),this.lastUncommintedNumber=BigInt(t)}async update(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});return this.lastUncommintedNumber=BigInt(t),this.lastUncommintedNumber}async synchronize(){if(this.lastUncommintedNumber!==this.currentNumber){for(;this.lock;)await e(this.sleepTime);this.lock=!0;try{await this.update();let t=n();for(;this.lastUncommintedNumber!==this.currentNumber;)n()-t>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, resyncing ${this.account.accountAddress.toString()}`),await this.initialize()):(await e(this.sleepTime),await this.update())}catch(t){console.error("error in synchronizing this account sequence number with the one on chain",t)}finally{this.lock=!1}}}};export{r as a};
2
+ //# sourceMappingURL=chunk-FIYHMSA6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t,b as n,c as o,d as r}from"./chunk-2X3YDREK.mjs";import{a as s}from"./chunk-5MZJD6SA.mjs";import{b as i}from"./chunk-EDVGFSB5.mjs";var a=class{constructor(e){this.config=e}async getFungibleAssetMetadata(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),t({aptosConfig:this.config,...e})}async getFungibleAssetMetadataByAssetType(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),(await t({aptosConfig:this.config,options:{where:{asset_type:{_eq:e.assetType}}}}))[0]}async getFungibleAssetMetadataByCreatorAddress(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),await t({aptosConfig:this.config,options:{where:{creator_address:{_eq:i.from(e.creatorAddress).toStringLong()}}}})}async getFungibleAssetActivities(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),n({aptosConfig:this.config,...e})}async getCurrentFungibleAssetBalances(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),o({aptosConfig:this.config,...e})}async transferFungibleAsset(e){return r({aptosConfig:this.config,...e})}};export{a};
2
- //# sourceMappingURL=chunk-R2RMAWDH.mjs.map
1
+ import{a as t,b as n,c as o,d as r}from"./chunk-UZUVHKIB.mjs";import{a as s}from"./chunk-RLGIYYI7.mjs";import{b as i}from"./chunk-EDVGFSB5.mjs";var a=class{constructor(e){this.config=e}async getFungibleAssetMetadata(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),t({aptosConfig:this.config,...e})}async getFungibleAssetMetadataByAssetType(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),(await t({aptosConfig:this.config,options:{where:{asset_type:{_eq:e.assetType}}}}))[0]}async getFungibleAssetMetadataByCreatorAddress(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),await t({aptosConfig:this.config,options:{where:{creator_address:{_eq:i.from(e.creatorAddress).toStringLong()}}}})}async getFungibleAssetActivities(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),n({aptosConfig:this.config,...e})}async getCurrentFungibleAssetBalances(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),o({aptosConfig:this.config,...e})}async transferFungibleAsset(e){return r({aptosConfig:this.config,...e})}};export{a};
2
+ //# sourceMappingURL=chunk-FR6MEI36.mjs.map
@@ -1,2 +1,2 @@
1
- import{e as x,f as B}from"./chunk-J45FMNYT.mjs";import{a as k}from"./chunk-AH44UPM4.mjs";import{b as f,d as A}from"./chunk-H3TJNBHX.mjs";import{a as b}from"./chunk-3TSO6PDV.mjs";import{a as d}from"./chunk-UAL27G6B.mjs";import{d as C}from"./chunk-EXP5STXZ.mjs";async function H(o){let{aptosConfig:n,options:t}=o;return A({aptosConfig:n,originMethod:"getTransactions",path:"transactions",params:{start:t?.offset,limit:t?.limit}})}async function G(o){let{aptosConfig:n}=o;return k(async()=>{let{data:t}=await f({aptosConfig:n,originMethod:"getGasPriceEstimation",path:"estimate_gas_price"});return t},`gas-price-${n.network}`,1e3*60*5)()}async function W(o){let{aptosConfig:n,ledgerVersion:t}=o,{data:s}=await f({aptosConfig:n,originMethod:"getTransactionByVersion",path:`transactions/by_version/${t}`});return s}async function y(o){let{aptosConfig:n,transactionHash:t}=o,{data:s}=await f({aptosConfig:n,path:`transactions/by_hash/${t}`,originMethod:"getTransactionByHash"});return s}async function O(o){let{aptosConfig:n,transactionHash:t}=o;try{return(await y({aptosConfig:n,transactionHash:t})).type==="pending_transaction"}catch(s){if(s?.status===404)return!0;throw s}}async function R(o){let{aptosConfig:n,transactionHash:t}=o,{data:s}=await f({aptosConfig:n,path:`transactions/wait_by_hash/${t}`,originMethod:"longWaitForTransaction"});return s}async function q(o){let{aptosConfig:n,transactionHash:t,options:s}=o,r=s?.timeoutSecs??20,u=s?.checkSuccess??!0,e=!0,p=0,i,g,l=200,h=1.5;function c(a){if(!(a instanceof b)||(g=a,a.status!==404&&a.status>=400&&a.status<500))throw a}try{i=await y({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction"}catch(a){c(a)}if(e){let a=Date.now();try{i=await R({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction"}catch(w){c(w)}p=(Date.now()-a)/1e3}for(;e&&!(p>=r);){try{if(i=await y({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction",!e)break}catch(a){c(a)}await d(l),p+=l/1e3,l*=h}if(i===void 0)throw g||new m(`Fetching transaction ${t} failed and timed out after ${r} seconds`,i);if(i.type==="pending_transaction")throw new m(`Transaction ${t} timed out in pending state after ${r} seconds`,i);if(!u)return i;if(!i.success)throw new T(`Transaction ${t} failed with an error: ${i.vm_status}`,i);return i}async function z(o){let{aptosConfig:n,processorType:t}=o,s=BigInt(o.minimumLedgerVersion),r=3e3,u=new Date().getTime(),e=BigInt(-1);for(;e<s;){if(new Date().getTime()-u>r)throw new Error("waitForLastSuccessIndexerVersionSync timeout");if(t===void 0?e=await x({aptosConfig:n}):e=(await B({aptosConfig:n,processorType:t})).last_success_version,e>=s)break;await d(200)}}var m=class extends Error{constructor(t,s){super(t);this.lastSubmittedTransaction=s}},T=class extends Error{constructor(t,s){super(t);this.transaction=s}};async function U(o){let{aptosConfig:n,ledgerVersion:t,options:s}=o,{data:r}=await f({aptosConfig:n,originMethod:"getBlockByVersion",path:`blocks/by_version/${t}`,params:{with_transactions:s?.withTransactions}});return P({block:r,...o})}async function X(o){let{aptosConfig:n,blockHeight:t,options:s}=o,{data:r}=await f({aptosConfig:n,originMethod:"getBlockByHeight",path:`blocks/by_height/${t}`,params:{with_transactions:s?.withTransactions}});return P({block:r,...o})}async function P(o){let{aptosConfig:n,block:t,options:s}=o;if(s?.withTransactions){t.transactions=t.transactions??[];let r=t.transactions[t.transactions.length-1],u=BigInt(t.first_version),e=BigInt(t.last_version),p=r?.version,i;if(p===void 0?i=u-1n:i=BigInt(p),i===e)return t;let g=[],l=100n;for(let c=i+1n;c<e;c+=BigInt(100))g.push(H({aptosConfig:n,options:{offset:c,limit:Math.min(Number(l),Number(e-c+1n))}}));let h=await Promise.all(g);for(let c of h)t.transactions.push(...c)}return t}export{H as a,G as b,W as c,y as d,O as e,R as f,q as g,z as h,m as i,T as j,U as k,X as l};
2
- //# sourceMappingURL=chunk-AGTINH7K.mjs.map
1
+ import{e as x,f as B}from"./chunk-J45FMNYT.mjs";import{a as k}from"./chunk-AH44UPM4.mjs";import{b as f,d as A}from"./chunk-H3TJNBHX.mjs";import{a as d}from"./chunk-UAL27G6B.mjs";import{a as b}from"./chunk-3TSO6PDV.mjs";import{d as C}from"./chunk-EXP5STXZ.mjs";async function H(o){let{aptosConfig:n,options:t}=o;return A({aptosConfig:n,originMethod:"getTransactions",path:"transactions",params:{start:t?.offset,limit:t?.limit}})}async function G(o){let{aptosConfig:n}=o;return k(async()=>{let{data:t}=await f({aptosConfig:n,originMethod:"getGasPriceEstimation",path:"estimate_gas_price"});return t},`gas-price-${n.network}`,1e3*60*5)()}async function W(o){let{aptosConfig:n,ledgerVersion:t}=o,{data:s}=await f({aptosConfig:n,originMethod:"getTransactionByVersion",path:`transactions/by_version/${t}`});return s}async function y(o){let{aptosConfig:n,transactionHash:t}=o,{data:s}=await f({aptosConfig:n,path:`transactions/by_hash/${t}`,originMethod:"getTransactionByHash"});return s}async function O(o){let{aptosConfig:n,transactionHash:t}=o;try{return(await y({aptosConfig:n,transactionHash:t})).type==="pending_transaction"}catch(s){if(s?.status===404)return!0;throw s}}async function R(o){let{aptosConfig:n,transactionHash:t}=o,{data:s}=await f({aptosConfig:n,path:`transactions/wait_by_hash/${t}`,originMethod:"longWaitForTransaction"});return s}async function q(o){let{aptosConfig:n,transactionHash:t,options:s}=o,r=s?.timeoutSecs??20,u=s?.checkSuccess??!0,e=!0,p=0,i,g,l=200,h=1.5;function c(a){if(!(a instanceof b)||(g=a,a.status!==404&&a.status>=400&&a.status<500))throw a}try{i=await y({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction"}catch(a){c(a)}if(e){let a=Date.now();try{i=await R({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction"}catch(w){c(w)}p=(Date.now()-a)/1e3}for(;e&&!(p>=r);){try{if(i=await y({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction",!e)break}catch(a){c(a)}await d(l),p+=l/1e3,l*=h}if(i===void 0)throw g||new m(`Fetching transaction ${t} failed and timed out after ${r} seconds`,i);if(i.type==="pending_transaction")throw new m(`Transaction ${t} timed out in pending state after ${r} seconds`,i);if(!u)return i;if(!i.success)throw new T(`Transaction ${t} failed with an error: ${i.vm_status}`,i);return i}async function z(o){let{aptosConfig:n,processorType:t}=o,s=BigInt(o.minimumLedgerVersion),r=3e3,u=new Date().getTime(),e=BigInt(-1);for(;e<s;){if(new Date().getTime()-u>r)throw new Error("waitForLastSuccessIndexerVersionSync timeout");if(t===void 0?e=await x({aptosConfig:n}):e=(await B({aptosConfig:n,processorType:t})).last_success_version,e>=s)break;await d(200)}}var m=class extends Error{constructor(t,s){super(t);this.lastSubmittedTransaction=s}},T=class extends Error{constructor(t,s){super(t);this.transaction=s}};async function U(o){let{aptosConfig:n,ledgerVersion:t,options:s}=o,{data:r}=await f({aptosConfig:n,originMethod:"getBlockByVersion",path:`blocks/by_version/${t}`,params:{with_transactions:s?.withTransactions}});return P({block:r,...o})}async function X(o){let{aptosConfig:n,blockHeight:t,options:s}=o,{data:r}=await f({aptosConfig:n,originMethod:"getBlockByHeight",path:`blocks/by_height/${t}`,params:{with_transactions:s?.withTransactions}});return P({block:r,...o})}async function P(o){let{aptosConfig:n,block:t,options:s}=o;if(s?.withTransactions){t.transactions=t.transactions??[];let r=t.transactions[t.transactions.length-1],u=BigInt(t.first_version),e=BigInt(t.last_version),p=r?.version,i;if(p===void 0?i=u-1n:i=BigInt(p),i===e)return t;let g=[],l=100n;for(let c=i+1n;c<e;c+=BigInt(100))g.push(H({aptosConfig:n,options:{offset:c,limit:Math.min(Number(l),Number(e-c+1n))}}));let h=await Promise.all(g);for(let c of h)t.transactions.push(...c)}return t}export{H as a,G as b,W as c,y as d,O as e,R as f,q as g,z as h,m as i,T as j,U as k,X as l};
2
+ //# sourceMappingURL=chunk-G6HZPSZ3.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-TJDC5PWD.mjs";import{b}from"./chunk-FOLCONSQ.mjs";import{a as U}from"./chunk-QP2A5ISX.mjs";import{d as A,f as v,g as E,h as H,i as P,j as S}from"./chunk-LR65XHSF.mjs";import{a as K}from"./chunk-3CE63FFN.mjs";import{a as p}from"./chunk-ZZIMFLVT.mjs";import{b as s}from"./chunk-AOCNYMMX.mjs";import{ed25519 as c}from"@noble/curves/ed25519";var m=[237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16];function T(I){let o=I.toUint8Array().slice(32);for(let e=m.length-1;e>=0;e-=1){if(o[e]<m[e])return!0;if(o[e]>m[e])return!1}return!1}var i=class i extends b{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==i.LENGTH)throw new Error(`PublicKey length should be ${i.LENGTH}`);this.key=t}verifySignature(e){let{message:t,signature:n}=e;if(!T(n))return!1;let y=d(t),u=s.fromHexInput(y).toUint8Array(),l=n.toUint8Array(),x=this.key.toUint8Array();return c.verify(l,u,x)}authKey(){return K.fromSchemeAndBytes({scheme:0,input:this.toUint8Array()})}toUint8Array(){return this.key.toUint8Array()}serialize(e){e.serializeBytes(this.key.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new i(t)}static isPublicKey(e){return e instanceof i}static isInstance(e){return"key"in e&&e.key?.data?.length===i.LENGTH}};i.LENGTH=32;var h=i,r=class r extends p{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.signingKey=t}static generate(){let e=c.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!v(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,S(t))}static fromDerivationPathInner(e,t,n=A){let{key:y,chainCode:u}=E(r.SLIP_0010_SEED,t),l=P(e).map(g=>parseInt(g,10)),{key:x}=l.reduce((g,w)=>H(g,w+n),{key:y,chainCode:u});return new r(x)}publicKey(){let e=c.getPublicKey(this.signingKey.toUint8Array());return new h(e)}sign(e){let t=d(e),n=s.fromHexInput(t).toUint8Array(),y=c.sign(n,this.signingKey.toUint8Array());return new f(y)}toUint8Array(){return this.signingKey.toUint8Array()}toString(){return this.signingKey.toString()}serialize(e){e.serializeBytes(this.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new r(t)}static isPrivateKey(e){return e instanceof r}};r.LENGTH=32,r.SLIP_0010_SEED="ed25519 seed";var z=r,a=class a extends U{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}`);this.data=t}toUint8Array(){return this.data.toUint8Array()}serialize(e){e.serializeBytes(this.data.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new a(t)}};a.LENGTH=64;var f=a;export{T as a,h as b,z as c,f as d};
2
- //# sourceMappingURL=chunk-7T5CUI2H.mjs.map
1
+ import{b}from"./chunk-FOLCONSQ.mjs";import{a as U}from"./chunk-QP2A5ISX.mjs";import{a as d}from"./chunk-TJDC5PWD.mjs";import{d as A,f as v,g as E,h as H,i as P,j as S}from"./chunk-LR65XHSF.mjs";import{a as K}from"./chunk-3CE63FFN.mjs";import{a as p}from"./chunk-ZZIMFLVT.mjs";import{b as s}from"./chunk-AOCNYMMX.mjs";import{ed25519 as c}from"@noble/curves/ed25519";var m=[237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16];function T(I){let o=I.toUint8Array().slice(32);for(let e=m.length-1;e>=0;e-=1){if(o[e]<m[e])return!0;if(o[e]>m[e])return!1}return!1}var i=class i extends b{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==i.LENGTH)throw new Error(`PublicKey length should be ${i.LENGTH}`);this.key=t}verifySignature(e){let{message:t,signature:n}=e;if(!T(n))return!1;let y=d(t),u=s.fromHexInput(y).toUint8Array(),l=n.toUint8Array(),x=this.key.toUint8Array();return c.verify(l,u,x)}authKey(){return K.fromSchemeAndBytes({scheme:0,input:this.toUint8Array()})}toUint8Array(){return this.key.toUint8Array()}serialize(e){e.serializeBytes(this.key.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new i(t)}static isPublicKey(e){return e instanceof i}static isInstance(e){return"key"in e&&e.key?.data?.length===i.LENGTH}};i.LENGTH=32;var h=i,r=class r extends p{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.signingKey=t}static generate(){let e=c.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!v(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,S(t))}static fromDerivationPathInner(e,t,n=A){let{key:y,chainCode:u}=E(r.SLIP_0010_SEED,t),l=P(e).map(g=>parseInt(g,10)),{key:x}=l.reduce((g,w)=>H(g,w+n),{key:y,chainCode:u});return new r(x)}publicKey(){let e=c.getPublicKey(this.signingKey.toUint8Array());return new h(e)}sign(e){let t=d(e),n=s.fromHexInput(t).toUint8Array(),y=c.sign(n,this.signingKey.toUint8Array());return new f(y)}toUint8Array(){return this.signingKey.toUint8Array()}toString(){return this.signingKey.toString()}serialize(e){e.serializeBytes(this.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new r(t)}static isPrivateKey(e){return e instanceof r}};r.LENGTH=32,r.SLIP_0010_SEED="ed25519 seed";var z=r,a=class a extends U{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}`);this.data=t}toUint8Array(){return this.data.toUint8Array()}serialize(e){e.serializeBytes(this.data.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new a(t)}};a.LENGTH=64;var f=a;export{T as a,h as b,z as c,f as d};
2
+ //# sourceMappingURL=chunk-G76BSSWS.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as K}from"./chunk-GX2II7H4.mjs";import{c as d}from"./chunk-J45FMNYT.mjs";import{d as b,e as v,f as q,g as O,i as P,j as S,k as M,u as G}from"./chunk-VHNX2NUR.mjs";import{a as f}from"./chunk-5RNKD3GW.mjs";import{a as k}from"./chunk-SHOPSMRK.mjs";import{a as T}from"./chunk-ASQIKTEF.mjs";import{b as C}from"./chunk-QTTDBQAJ.mjs";import{c as _}from"./chunk-7T5CUI2H.mjs";import{a as g}from"./chunk-3CE63FFN.mjs";import{b as i}from"./chunk-EDVGFSB5.mjs";import{a as w}from"./chunk-AH44UPM4.mjs";import{b as A,d as p}from"./chunk-H3TJNBHX.mjs";import{a as h}from"./chunk-3TSO6PDV.mjs";import{e as y}from"./chunk-EXP5STXZ.mjs";async function R(o){let{aptosConfig:n,accountAddress:t}=o,{data:e}=await A({aptosConfig:n,originMethod:"getInfo",path:`accounts/${i.from(t).toString()}`});return e}async function Y(o){let{aptosConfig:n,accountAddress:t,options:e}=o;return p({aptosConfig:n,originMethod:"getModules",path:`accounts/${i.from(t).toString()}/modules`,params:{ledger_version:e?.ledgerVersion,start:e?.offset,limit:e?.limit??1e3}})}async function Z(o){return o.options?.ledgerVersion!==void 0?Q(o):w(async()=>Q(o),`module-${o.accountAddress}-${o.moduleName}`,1e3*60*5)()}async function Q(o){let{aptosConfig:n,accountAddress:t,moduleName:e,options:r}=o,{data:s}=await A({aptosConfig:n,originMethod:"getModule",path:`accounts/${i.from(t).toString()}/module/${e}`,params:{ledger_version:r?.ledgerVersion}});return s}async function ee(o){let{aptosConfig:n,accountAddress:t,options:e}=o;return p({aptosConfig:n,originMethod:"getTransactions",path:`accounts/${i.from(t).toString()}/transactions`,params:{start:e?.offset,limit:e?.limit}})}async function oe(o){let{aptosConfig:n,accountAddress:t,options:e}=o;return p({aptosConfig:n,originMethod:"getResources",path:`accounts/${i.from(t).toString()}/resources`,params:{ledger_version:e?.ledgerVersion,start:e?.offset,limit:e?.limit??999}})}async function x(o){let{aptosConfig:n,accountAddress:t,resourceType:e,options:r}=o,{data:s}=await A({aptosConfig:n,originMethod:"getResource",path:`accounts/${i.from(t).toString()}/resource/${e}`,params:{ledger_version:r?.ledgerVersion}});return s.data}async function L(o){let{aptosConfig:n,authenticationKey:t,options:e}=o,r=await x({aptosConfig:n,accountAddress:"0x1",resourceType:"0x1::account::OriginatingAddress",options:e}),{address_map:{handle:s}}=r,c=i.from(t);try{let a=await K({aptosConfig:n,handle:s,data:{key:c.toString(),key_type:"address",value_type:"address"},options:e});return i.from(a)}catch(a){if(a instanceof h&&a.data.error_code==="table_item_not_found")return c;throw a}}async function te(o){let{aptosConfig:n,accountAddress:t}=o,r={owner_address:{_eq:i.from(t).toStringLong()},amount:{_gt:0}},c=await d({aptosConfig:n,query:{query:S,variables:{where_condition:r}},originMethod:"getAccountTokensCount"});return c.current_token_ownerships_v2_aggregate.aggregate?c.current_token_ownerships_v2_aggregate.aggregate.count:0}async function ne(o){let{aptosConfig:n,accountAddress:t,options:e}=o,s={owner_address:{_eq:i.from(t).toStringLong()},amount:{_gt:0}};e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard});let c={query:O,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedTokens"})).current_token_ownerships_v2}async function re(o){let{aptosConfig:n,accountAddress:t,collectionAddress:e,options:r}=o,s=i.from(t).toStringLong(),c=i.from(e).toStringLong(),a={owner_address:{_eq:s},current_token_data:{collection_id:{_eq:c}},amount:{_gt:0}};r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard});let u={query:P,variables:{where_condition:a,offset:r?.offset,limit:r?.limit,order_by:r?.orderBy}};return(await d({aptosConfig:n,query:u,originMethod:"getAccountOwnedTokensFromCollectionAddress"})).current_token_ownerships_v2}async function se(o){let{aptosConfig:n,accountAddress:t,options:e}=o,s={owner_address:{_eq:i.from(t).toStringLong()}};e?.tokenStandard&&(s.current_collection={token_standard:{_eq:e?.tokenStandard}});let c={query:q,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCollectionsWithOwnedTokens"})).current_collection_ownership_v2_view}async function ce(o){let{aptosConfig:n,accountAddress:t}=o,e=i.from(t).toStringLong(),s=await d({aptosConfig:n,query:{query:M,variables:{address:e}},originMethod:"getAccountTransactionsCount"});return s.account_transactions_aggregate.aggregate?s.account_transactions_aggregate.aggregate.count:0}async function ie(o){let{aptosConfig:n,accountAddress:t,coinType:e,faMetadataAddress:r}=o,s=e,c;if(e!==void 0&&r!==void 0)c=i.from(r).toStringLong();else if(e!==void 0&&r===void 0)e===y?c=i.A.toStringLong():c=k(i.A,e).toStringLong();else if(e===void 0&&r!==void 0){let m=i.from(r);c=m.toStringLong(),m===i.A&&(s=y)}else throw new Error("Either coinType, fungibleAssetAddress, or both must be provided");let a=i.from(t).toStringLong(),u={asset_type:{_eq:c}};s!==void 0&&(u={asset_type:{_in:[s,c]}});let l=await B({aptosConfig:n,accountAddress:a,options:{where:u}});return l[0]?l[0].amount:0}async function B(o){let{aptosConfig:n,accountAddress:t,options:e}=o,r=i.from(t).toStringLong(),s={...e?.where,owner_address:{_eq:r}},c={query:v,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCoinsData"})).current_fungible_asset_balances}async function ae(o){let{aptosConfig:n,accountAddress:t}=o,e=i.from(t).toStringLong(),s=await d({aptosConfig:n,query:{query:b,variables:{address:e}},originMethod:"getAccountCoinsCount"});if(!s.current_fungible_asset_balances_aggregate.aggregate)throw Error("Failed to get the count of account coins");return s.current_fungible_asset_balances_aggregate.aggregate.count}async function de(o){let{aptosConfig:n,accountAddress:t,options:e}=o,s={owner_address:{_eq:i.from(t).toStringLong()}},c={query:G,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedObjects"})).current_objects}async function ue(o){let{aptosConfig:n,privateKey:t}=o,e=new T(t.publicKey());if(t instanceof C){let s=g.fromPublicKey({publicKey:e}).derivedAddress();return f.fromPrivateKey({privateKey:t,address:s})}if(t instanceof _){let r=g.fromPublicKey({publicKey:e});if(await I({authKey:r,aptosConfig:n})){let u=r.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!1})}let c=g.fromPublicKey({publicKey:e.publicKey});if(await I({authKey:c,aptosConfig:n})){let u=c.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!0})}}throw new Error(`Can't derive account from private key ${t}`)}async function I(o){let{aptosConfig:n,authKey:t}=o,e=await L({aptosConfig:n,authenticationKey:t.derivedAddress()});try{return await R({aptosConfig:n,accountAddress:e}),!0}catch(r){if(r.status===404)return!1;throw new Error(`Error while looking for an account info ${e.toString()}`)}}export{R as a,Y as b,Z as c,ee as d,oe as e,x as f,L as g,te as h,ne as i,re as j,se as k,ce as l,ie as m,B as n,ae as o,de as p,ue as q,I as r};
2
- //# sourceMappingURL=chunk-K7ZPRL7C.mjs.map
1
+ import{a as f}from"./chunk-I7CSJMDX.mjs";import{a as K}from"./chunk-GX2II7H4.mjs";import{a as k}from"./chunk-SHOPSMRK.mjs";import{a as T}from"./chunk-R5QDWL5W.mjs";import{b as C}from"./chunk-76QOH2OW.mjs";import{c as _}from"./chunk-G76BSSWS.mjs";import{a as g}from"./chunk-3CE63FFN.mjs";import{c as d}from"./chunk-J45FMNYT.mjs";import{d as b,e as v,f as q,g as O,i as P,j as S,k as M,u as G}from"./chunk-VHNX2NUR.mjs";import{a as w}from"./chunk-AH44UPM4.mjs";import{b as A,d as p}from"./chunk-H3TJNBHX.mjs";import{a as h}from"./chunk-3TSO6PDV.mjs";import{b as i}from"./chunk-EDVGFSB5.mjs";import{e as y}from"./chunk-EXP5STXZ.mjs";async function R(o){let{aptosConfig:n,accountAddress:t}=o,{data:e}=await A({aptosConfig:n,originMethod:"getInfo",path:`accounts/${i.from(t).toString()}`});return e}async function Y(o){let{aptosConfig:n,accountAddress:t,options:e}=o;return p({aptosConfig:n,originMethod:"getModules",path:`accounts/${i.from(t).toString()}/modules`,params:{ledger_version:e?.ledgerVersion,start:e?.offset,limit:e?.limit??1e3}})}async function Z(o){return o.options?.ledgerVersion!==void 0?Q(o):w(async()=>Q(o),`module-${o.accountAddress}-${o.moduleName}`,1e3*60*5)()}async function Q(o){let{aptosConfig:n,accountAddress:t,moduleName:e,options:r}=o,{data:s}=await A({aptosConfig:n,originMethod:"getModule",path:`accounts/${i.from(t).toString()}/module/${e}`,params:{ledger_version:r?.ledgerVersion}});return s}async function ee(o){let{aptosConfig:n,accountAddress:t,options:e}=o;return p({aptosConfig:n,originMethod:"getTransactions",path:`accounts/${i.from(t).toString()}/transactions`,params:{start:e?.offset,limit:e?.limit}})}async function oe(o){let{aptosConfig:n,accountAddress:t,options:e}=o;return p({aptosConfig:n,originMethod:"getResources",path:`accounts/${i.from(t).toString()}/resources`,params:{ledger_version:e?.ledgerVersion,start:e?.offset,limit:e?.limit??999}})}async function x(o){let{aptosConfig:n,accountAddress:t,resourceType:e,options:r}=o,{data:s}=await A({aptosConfig:n,originMethod:"getResource",path:`accounts/${i.from(t).toString()}/resource/${e}`,params:{ledger_version:r?.ledgerVersion}});return s.data}async function L(o){let{aptosConfig:n,authenticationKey:t,options:e}=o,r=await x({aptosConfig:n,accountAddress:"0x1",resourceType:"0x1::account::OriginatingAddress",options:e}),{address_map:{handle:s}}=r,c=i.from(t);try{let a=await K({aptosConfig:n,handle:s,data:{key:c.toString(),key_type:"address",value_type:"address"},options:e});return i.from(a)}catch(a){if(a instanceof h&&a.data.error_code==="table_item_not_found")return c;throw a}}async function te(o){let{aptosConfig:n,accountAddress:t}=o,r={owner_address:{_eq:i.from(t).toStringLong()},amount:{_gt:0}},c=await d({aptosConfig:n,query:{query:S,variables:{where_condition:r}},originMethod:"getAccountTokensCount"});return c.current_token_ownerships_v2_aggregate.aggregate?c.current_token_ownerships_v2_aggregate.aggregate.count:0}async function ne(o){let{aptosConfig:n,accountAddress:t,options:e}=o,s={owner_address:{_eq:i.from(t).toStringLong()},amount:{_gt:0}};e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard});let c={query:O,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedTokens"})).current_token_ownerships_v2}async function re(o){let{aptosConfig:n,accountAddress:t,collectionAddress:e,options:r}=o,s=i.from(t).toStringLong(),c=i.from(e).toStringLong(),a={owner_address:{_eq:s},current_token_data:{collection_id:{_eq:c}},amount:{_gt:0}};r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard});let u={query:P,variables:{where_condition:a,offset:r?.offset,limit:r?.limit,order_by:r?.orderBy}};return(await d({aptosConfig:n,query:u,originMethod:"getAccountOwnedTokensFromCollectionAddress"})).current_token_ownerships_v2}async function se(o){let{aptosConfig:n,accountAddress:t,options:e}=o,s={owner_address:{_eq:i.from(t).toStringLong()}};e?.tokenStandard&&(s.current_collection={token_standard:{_eq:e?.tokenStandard}});let c={query:q,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCollectionsWithOwnedTokens"})).current_collection_ownership_v2_view}async function ce(o){let{aptosConfig:n,accountAddress:t}=o,e=i.from(t).toStringLong(),s=await d({aptosConfig:n,query:{query:M,variables:{address:e}},originMethod:"getAccountTransactionsCount"});return s.account_transactions_aggregate.aggregate?s.account_transactions_aggregate.aggregate.count:0}async function ie(o){let{aptosConfig:n,accountAddress:t,coinType:e,faMetadataAddress:r}=o,s=e,c;if(e!==void 0&&r!==void 0)c=i.from(r).toStringLong();else if(e!==void 0&&r===void 0)e===y?c=i.A.toStringLong():c=k(i.A,e).toStringLong();else if(e===void 0&&r!==void 0){let m=i.from(r);c=m.toStringLong(),m===i.A&&(s=y)}else throw new Error("Either coinType, fungibleAssetAddress, or both must be provided");let a=i.from(t).toStringLong(),u={asset_type:{_eq:c}};s!==void 0&&(u={asset_type:{_in:[s,c]}});let l=await B({aptosConfig:n,accountAddress:a,options:{where:u}});return l[0]?l[0].amount:0}async function B(o){let{aptosConfig:n,accountAddress:t,options:e}=o,r=i.from(t).toStringLong(),s={...e?.where,owner_address:{_eq:r}},c={query:v,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCoinsData"})).current_fungible_asset_balances}async function ae(o){let{aptosConfig:n,accountAddress:t}=o,e=i.from(t).toStringLong(),s=await d({aptosConfig:n,query:{query:b,variables:{address:e}},originMethod:"getAccountCoinsCount"});if(!s.current_fungible_asset_balances_aggregate.aggregate)throw Error("Failed to get the count of account coins");return s.current_fungible_asset_balances_aggregate.aggregate.count}async function de(o){let{aptosConfig:n,accountAddress:t,options:e}=o,s={owner_address:{_eq:i.from(t).toStringLong()}},c={query:G,variables:{where_condition:s,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedObjects"})).current_objects}async function ue(o){let{aptosConfig:n,privateKey:t}=o,e=new T(t.publicKey());if(t instanceof C){let s=g.fromPublicKey({publicKey:e}).derivedAddress();return f.fromPrivateKey({privateKey:t,address:s})}if(t instanceof _){let r=g.fromPublicKey({publicKey:e});if(await I({authKey:r,aptosConfig:n})){let u=r.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!1})}let c=g.fromPublicKey({publicKey:e.publicKey});if(await I({authKey:c,aptosConfig:n})){let u=c.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!0})}}throw new Error(`Can't derive account from private key ${t}`)}async function I(o){let{aptosConfig:n,authKey:t}=o,e=await L({aptosConfig:n,authenticationKey:t.derivedAddress()});try{return await R({aptosConfig:n,accountAddress:e}),!0}catch(r){if(r.status===404)return!1;throw new Error(`Error while looking for an account info ${e.toString()}`)}}export{R as a,Y as b,Z as c,ee as d,oe as e,x as f,L as g,te as h,ne as i,re as j,se as k,ce as l,ie as m,B as n,ae as o,de as p,ue as q,I as r};
2
+ //# sourceMappingURL=chunk-GVAZZ3UZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-NOVJ2ROD.mjs";import{a as n}from"./chunk-NGIPNL7N.mjs";import{c as i}from"./chunk-7T5CUI2H.mjs";var o=class{static generate(e={}){let{scheme:t=0,legacy:r=!0}=e;return t===0&&r?n.generate():c.generate({scheme:t})}static fromPrivateKey(e){let{privateKey:t,address:r,legacy:a=!0}=e;return t instanceof i&&a?new n({privateKey:t,address:r}):new c({privateKey:t,address:r})}static fromPrivateKeyAndAddress(e){return this.fromPrivateKey(e)}static fromDerivationPath(e){let{scheme:t=0,mnemonic:r,path:a,legacy:s=!0}=e;return t===0&&s?n.fromDerivationPath({mnemonic:r,path:a}):c.fromDerivationPath({scheme:t,mnemonic:r,path:a})}static authKey(e){let{publicKey:t}=e;return t.authKey()}verifySignature(e){return this.publicKey.verifySignature(e)}};export{o as a};
2
- //# sourceMappingURL=chunk-5RNKD3GW.mjs.map
1
+ import{a as n}from"./chunk-3PJXUJEB.mjs";import{a as c}from"./chunk-TZWHQEAZ.mjs";import{c as i}from"./chunk-G76BSSWS.mjs";var o=class{static generate(e={}){let{scheme:t=0,legacy:r=!0}=e;return t===0&&r?n.generate():c.generate({scheme:t})}static fromPrivateKey(e){let{privateKey:t,address:r,legacy:a=!0}=e;return t instanceof i&&a?new n({privateKey:t,address:r}):new c({privateKey:t,address:r})}static fromPrivateKeyAndAddress(e){return this.fromPrivateKey(e)}static fromDerivationPath(e){let{scheme:t=0,mnemonic:r,path:a,legacy:s=!0}=e;return t===0&&s?n.fromDerivationPath({mnemonic:r,path:a}):c.fromDerivationPath({scheme:t,mnemonic:r,path:a})}static authKey(e){let{publicKey:t}=e;return t.authKey()}verifySignature(e){return this.publicKey.verifySignature(e)}};export{o as a};
2
+ //# sourceMappingURL=chunk-I7CSJMDX.mjs.map