@aptos-labs/ts-sdk 1.28.0-zeta.2 → 1.28.0-zeta.4

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 +3 -3
  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-E2I4A5FG.mjs → chunk-2XSLXHVJ.mjs} +2 -2
  36. package/dist/esm/{chunk-2XLMOIBB.mjs → chunk-3QFDWOUG.mjs} +2 -2
  37. package/dist/esm/chunk-45ILXL6K.mjs +2 -0
  38. package/dist/esm/chunk-45ILXL6K.mjs.map +1 -0
  39. package/dist/esm/{chunk-6BXB4PLA.mjs → chunk-4I6IUAHQ.mjs} +2 -2
  40. package/dist/esm/{chunk-SH6IO5EV.mjs → chunk-4X4ODN6K.mjs} +2 -2
  41. package/dist/esm/{chunk-4GOLPPK3.mjs → chunk-5JRPODDO.mjs} +2 -2
  42. package/dist/esm/{chunk-RLGIYYI7.mjs → chunk-5MZJD6SA.mjs} +2 -2
  43. package/dist/esm/{chunk-I7CSJMDX.mjs → chunk-5RNKD3GW.mjs} +2 -2
  44. package/dist/esm/{chunk-56KUTRUI.mjs → chunk-7BPKOPP7.mjs} +2 -2
  45. package/dist/esm/{chunk-G76BSSWS.mjs → chunk-7T5CUI2H.mjs} +2 -2
  46. package/dist/esm/{chunk-4SEHAXB2.mjs → chunk-7WCH4LAM.mjs} +2 -2
  47. package/dist/esm/{chunk-D7W3LMWB.mjs → chunk-ABAIELQE.mjs} +2 -2
  48. package/dist/esm/{chunk-G6HZPSZ3.mjs → chunk-AGTINH7K.mjs} +2 -2
  49. package/dist/esm/{chunk-S7KCJQOA.mjs → chunk-ASQ2YBOR.mjs} +2 -2
  50. package/dist/esm/{chunk-R5QDWL5W.mjs → chunk-ASQIKTEF.mjs} +2 -2
  51. package/dist/esm/{chunk-ADPKXACB.mjs → chunk-BC5BEOKM.mjs} +2 -2
  52. package/dist/esm/{chunk-US5DBLWO.mjs → chunk-BQPQLOIW.mjs} +2 -2
  53. package/dist/esm/{chunk-YRDU2QH5.mjs → chunk-CUDIVR4U.mjs} +2 -2
  54. package/dist/esm/{chunk-YKWRPFAN.mjs → chunk-DYMN66K5.mjs} +2 -2
  55. package/dist/esm/{chunk-SINSCI7V.mjs → chunk-E2WOZVJX.mjs} +2 -2
  56. package/dist/esm/{chunk-ILVZ3RHG.mjs → chunk-ETQA37EP.mjs} +2 -2
  57. package/dist/esm/{chunk-QEPPCEFH.mjs → chunk-F7R7ICUR.mjs} +2 -2
  58. package/dist/esm/{chunk-XFG6LGA6.mjs → chunk-FDD6WNN6.mjs} +2 -2
  59. package/dist/esm/{chunk-ZOEZVSPX.mjs → chunk-FDTLBR6D.mjs} +2 -2
  60. package/dist/esm/{chunk-MNT6KBEF.mjs → chunk-FLNLQ7K5.mjs} +2 -2
  61. package/dist/esm/{chunk-QRI5UKKN.mjs → chunk-GKRIMGKW.mjs} +2 -2
  62. package/dist/esm/{chunk-SRZWWYZP.mjs → chunk-GUVL374I.mjs} +2 -2
  63. package/dist/esm/{chunk-NK2VQHI7.mjs → chunk-HIJU5HEA.mjs} +2 -2
  64. package/dist/esm/{chunk-L2EW7RS5.mjs → chunk-HOQCND6F.mjs} +2 -2
  65. package/dist/esm/{chunk-IBAA7T35.mjs → chunk-HQUG3XLS.mjs} +2 -2
  66. package/dist/esm/{chunk-CRTGCAMB.mjs → chunk-IEH7ILF3.mjs} +2 -2
  67. package/dist/esm/{chunk-TLITK5YF.mjs → chunk-JRLMKLB3.mjs} +2 -2
  68. package/dist/esm/{chunk-GVAZZ3UZ.mjs → chunk-K7ZPRL7C.mjs} +2 -2
  69. package/dist/esm/{chunk-CSK46KWT.mjs → chunk-KHYFJBKG.mjs} +2 -2
  70. package/dist/esm/{chunk-J3PN353M.mjs → chunk-LKN324IO.mjs} +2 -2
  71. package/dist/esm/{chunk-D2JMUPS3.mjs → chunk-MYF2VRVN.mjs} +2 -2
  72. package/dist/esm/{chunk-MJPZBN4E.mjs → chunk-ND23H3AK.mjs} +2 -2
  73. package/dist/esm/{chunk-3PJXUJEB.mjs → chunk-NGIPNL7N.mjs} +2 -2
  74. package/dist/esm/{chunk-TZWHQEAZ.mjs → chunk-NOVJ2ROD.mjs} +2 -2
  75. package/dist/esm/{chunk-UZUVHKIB.mjs → chunk-OKEP5IEO.mjs} +2 -2
  76. package/dist/esm/{chunk-VXG7T3TR.mjs → chunk-OOVNFKA6.mjs} +2 -2
  77. package/dist/esm/{chunk-VGBIPXYG.mjs → chunk-QD7BJPKU.mjs} +2 -2
  78. package/dist/esm/{chunk-76QOH2OW.mjs → chunk-QTTDBQAJ.mjs} +2 -2
  79. package/dist/esm/{chunk-57VN4QFR.mjs → chunk-SVO6PVAX.mjs} +2 -2
  80. package/dist/esm/{chunk-4JMLZZFL.mjs → chunk-THSR4POE.mjs} +2 -2
  81. package/dist/esm/{chunk-ILZVHKJZ.mjs → chunk-UEGCC3OP.mjs} +2 -2
  82. package/dist/esm/{chunk-4UB6MXQH.mjs → chunk-VBR46X5M.mjs} +2 -2
  83. package/dist/esm/{chunk-QUTP2ACU.mjs → chunk-VZKENIJR.mjs} +2 -2
  84. package/dist/esm/{chunk-64HK4IEO.mjs → chunk-WBDJI34Y.mjs} +2 -2
  85. package/dist/esm/{chunk-FR6MEI36.mjs → chunk-WV7HZQ2V.mjs} +2 -2
  86. package/dist/esm/{chunk-OVI2RY5L.mjs → chunk-X26OHQZO.mjs} +2 -2
  87. package/dist/esm/{chunk-QCUNTB7G.mjs → chunk-XUJXTPLV.mjs} +2 -2
  88. package/dist/esm/{chunk-7DDP75LL.mjs → chunk-YACGA3YS.mjs} +2 -2
  89. package/dist/esm/{chunk-LOLHWM3E.mjs → chunk-YRXUBXIJ.mjs} +2 -2
  90. package/dist/esm/{chunk-FIYHMSA6.mjs → chunk-YSVXROOO.mjs} +2 -2
  91. package/dist/esm/{chunk-UF25MR3N.mjs → chunk-YTVABX3A.mjs} +2 -2
  92. package/dist/esm/{chunk-LTNQQKPC.mjs → chunk-Z56T4OGM.mjs} +2 -2
  93. package/dist/esm/{chunk-MCZIV5GR.mjs → chunk-ZAHUEAGT.mjs} +2 -2
  94. package/dist/esm/{chunk-5F3DMDZI.mjs → chunk-ZASN3QQQ.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 +4 -3
  154. package/dist/esm/chunk-RAKS5RSI.mjs +0 -2
  155. package/dist/esm/chunk-RAKS5RSI.mjs.map +0 -1
  156. /package/dist/esm/{chunk-E2I4A5FG.mjs.map → chunk-2XSLXHVJ.mjs.map} +0 -0
  157. /package/dist/esm/{chunk-2XLMOIBB.mjs.map → chunk-3QFDWOUG.mjs.map} +0 -0
  158. /package/dist/esm/{chunk-6BXB4PLA.mjs.map → chunk-4I6IUAHQ.mjs.map} +0 -0
  159. /package/dist/esm/{chunk-SH6IO5EV.mjs.map → chunk-4X4ODN6K.mjs.map} +0 -0
  160. /package/dist/esm/{chunk-4GOLPPK3.mjs.map → chunk-5JRPODDO.mjs.map} +0 -0
  161. /package/dist/esm/{chunk-RLGIYYI7.mjs.map → chunk-5MZJD6SA.mjs.map} +0 -0
  162. /package/dist/esm/{chunk-I7CSJMDX.mjs.map → chunk-5RNKD3GW.mjs.map} +0 -0
  163. /package/dist/esm/{chunk-56KUTRUI.mjs.map → chunk-7BPKOPP7.mjs.map} +0 -0
  164. /package/dist/esm/{chunk-G76BSSWS.mjs.map → chunk-7T5CUI2H.mjs.map} +0 -0
  165. /package/dist/esm/{chunk-4SEHAXB2.mjs.map → chunk-7WCH4LAM.mjs.map} +0 -0
  166. /package/dist/esm/{chunk-D7W3LMWB.mjs.map → chunk-ABAIELQE.mjs.map} +0 -0
  167. /package/dist/esm/{chunk-G6HZPSZ3.mjs.map → chunk-AGTINH7K.mjs.map} +0 -0
  168. /package/dist/esm/{chunk-S7KCJQOA.mjs.map → chunk-ASQ2YBOR.mjs.map} +0 -0
  169. /package/dist/esm/{chunk-R5QDWL5W.mjs.map → chunk-ASQIKTEF.mjs.map} +0 -0
  170. /package/dist/esm/{chunk-ADPKXACB.mjs.map → chunk-BC5BEOKM.mjs.map} +0 -0
  171. /package/dist/esm/{chunk-US5DBLWO.mjs.map → chunk-BQPQLOIW.mjs.map} +0 -0
  172. /package/dist/esm/{chunk-YRDU2QH5.mjs.map → chunk-CUDIVR4U.mjs.map} +0 -0
  173. /package/dist/esm/{chunk-YKWRPFAN.mjs.map → chunk-DYMN66K5.mjs.map} +0 -0
  174. /package/dist/esm/{chunk-SINSCI7V.mjs.map → chunk-E2WOZVJX.mjs.map} +0 -0
  175. /package/dist/esm/{chunk-ILVZ3RHG.mjs.map → chunk-ETQA37EP.mjs.map} +0 -0
  176. /package/dist/esm/{chunk-QEPPCEFH.mjs.map → chunk-F7R7ICUR.mjs.map} +0 -0
  177. /package/dist/esm/{chunk-XFG6LGA6.mjs.map → chunk-FDD6WNN6.mjs.map} +0 -0
  178. /package/dist/esm/{chunk-ZOEZVSPX.mjs.map → chunk-FDTLBR6D.mjs.map} +0 -0
  179. /package/dist/esm/{chunk-MNT6KBEF.mjs.map → chunk-FLNLQ7K5.mjs.map} +0 -0
  180. /package/dist/esm/{chunk-QRI5UKKN.mjs.map → chunk-GKRIMGKW.mjs.map} +0 -0
  181. /package/dist/esm/{chunk-SRZWWYZP.mjs.map → chunk-GUVL374I.mjs.map} +0 -0
  182. /package/dist/esm/{chunk-NK2VQHI7.mjs.map → chunk-HIJU5HEA.mjs.map} +0 -0
  183. /package/dist/esm/{chunk-L2EW7RS5.mjs.map → chunk-HOQCND6F.mjs.map} +0 -0
  184. /package/dist/esm/{chunk-IBAA7T35.mjs.map → chunk-HQUG3XLS.mjs.map} +0 -0
  185. /package/dist/esm/{chunk-CRTGCAMB.mjs.map → chunk-IEH7ILF3.mjs.map} +0 -0
  186. /package/dist/esm/{chunk-TLITK5YF.mjs.map → chunk-JRLMKLB3.mjs.map} +0 -0
  187. /package/dist/esm/{chunk-GVAZZ3UZ.mjs.map → chunk-K7ZPRL7C.mjs.map} +0 -0
  188. /package/dist/esm/{chunk-CSK46KWT.mjs.map → chunk-KHYFJBKG.mjs.map} +0 -0
  189. /package/dist/esm/{chunk-J3PN353M.mjs.map → chunk-LKN324IO.mjs.map} +0 -0
  190. /package/dist/esm/{chunk-D2JMUPS3.mjs.map → chunk-MYF2VRVN.mjs.map} +0 -0
  191. /package/dist/esm/{chunk-MJPZBN4E.mjs.map → chunk-ND23H3AK.mjs.map} +0 -0
  192. /package/dist/esm/{chunk-3PJXUJEB.mjs.map → chunk-NGIPNL7N.mjs.map} +0 -0
  193. /package/dist/esm/{chunk-TZWHQEAZ.mjs.map → chunk-NOVJ2ROD.mjs.map} +0 -0
  194. /package/dist/esm/{chunk-UZUVHKIB.mjs.map → chunk-OKEP5IEO.mjs.map} +0 -0
  195. /package/dist/esm/{chunk-VXG7T3TR.mjs.map → chunk-OOVNFKA6.mjs.map} +0 -0
  196. /package/dist/esm/{chunk-VGBIPXYG.mjs.map → chunk-QD7BJPKU.mjs.map} +0 -0
  197. /package/dist/esm/{chunk-76QOH2OW.mjs.map → chunk-QTTDBQAJ.mjs.map} +0 -0
  198. /package/dist/esm/{chunk-57VN4QFR.mjs.map → chunk-SVO6PVAX.mjs.map} +0 -0
  199. /package/dist/esm/{chunk-4JMLZZFL.mjs.map → chunk-THSR4POE.mjs.map} +0 -0
  200. /package/dist/esm/{chunk-ILZVHKJZ.mjs.map → chunk-UEGCC3OP.mjs.map} +0 -0
  201. /package/dist/esm/{chunk-4UB6MXQH.mjs.map → chunk-VBR46X5M.mjs.map} +0 -0
  202. /package/dist/esm/{chunk-QUTP2ACU.mjs.map → chunk-VZKENIJR.mjs.map} +0 -0
  203. /package/dist/esm/{chunk-64HK4IEO.mjs.map → chunk-WBDJI34Y.mjs.map} +0 -0
  204. /package/dist/esm/{chunk-FR6MEI36.mjs.map → chunk-WV7HZQ2V.mjs.map} +0 -0
  205. /package/dist/esm/{chunk-OVI2RY5L.mjs.map → chunk-X26OHQZO.mjs.map} +0 -0
  206. /package/dist/esm/{chunk-QCUNTB7G.mjs.map → chunk-XUJXTPLV.mjs.map} +0 -0
  207. /package/dist/esm/{chunk-7DDP75LL.mjs.map → chunk-YACGA3YS.mjs.map} +0 -0
  208. /package/dist/esm/{chunk-LOLHWM3E.mjs.map → chunk-YRXUBXIJ.mjs.map} +0 -0
  209. /package/dist/esm/{chunk-FIYHMSA6.mjs.map → chunk-YSVXROOO.mjs.map} +0 -0
  210. /package/dist/esm/{chunk-UF25MR3N.mjs.map → chunk-YTVABX3A.mjs.map} +0 -0
  211. /package/dist/esm/{chunk-LTNQQKPC.mjs.map → chunk-Z56T4OGM.mjs.map} +0 -0
  212. /package/dist/esm/{chunk-MCZIV5GR.mjs.map → chunk-ZAHUEAGT.mjs.map} +0 -0
  213. /package/dist/esm/{chunk-5F3DMDZI.mjs.map → chunk-ZASN3QQQ.mjs.map} +0 -0
@@ -1,2 +1,2 @@
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};
1
+ import{a}from"../../chunk-YTVABX3A.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-HQUG3XLS.mjs";import"../../chunk-YSVXROOO.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-VBR46X5M.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-HIJU5HEA.mjs";import"../../chunk-3QFDWOUG.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-AZ642ORV.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-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-3TSO6PDV.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.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-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};
1
+ import{e as o}from"../../chunk-VBR46X5M.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-HIJU5HEA.mjs";import"../../chunk-3QFDWOUG.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-AZ642ORV.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-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-3TSO6PDV.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-56CNRT2K.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};
2
2
  //# sourceMappingURL=sign.mjs.map
@@ -1,2 +1,2 @@
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};
1
+ import{a}from"../../chunk-F7R7ICUR.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-VBR46X5M.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-HIJU5HEA.mjs";import"../../chunk-3QFDWOUG.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-AZ642ORV.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-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-3TSO6PDV.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
2
2
  //# sourceMappingURL=simulate.mjs.map
@@ -1,2 +1,2 @@
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};
1
+ import{a}from"../../chunk-THSR4POE.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-VBR46X5M.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-HIJU5HEA.mjs";import"../../chunk-3QFDWOUG.mjs";import"../../chunk-BQPQLOIW.mjs";import"../../chunk-AZ642ORV.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-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-3TSO6PDV.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-5VQK4F5X.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
2
2
  //# sourceMappingURL=submit.mjs.map
@@ -1,2 +1,2 @@
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};
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-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-3TSO6PDV.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-5VQK4F5X.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.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 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};
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};
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-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};
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};
2
2
  //# sourceMappingURL=moveStructs.mjs.map
@@ -1,2 +1,2 @@
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
+ import{a as d}from"./chunk-YTVABX3A.mjs";import{a as A}from"./chunk-F7R7ICUR.mjs";import{a as T}from"./chunk-THSR4POE.mjs";import{a as y}from"./chunk-KHYFJBKG.mjs";import{d as g,e as a,h as m,i as p,j as f}from"./chunk-VBR46X5M.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-2XSLXHVJ.mjs.map
@@ -1,2 +1,2 @@
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
+ 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 l}from"./chunk-AZ642ORV.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-3QFDWOUG.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as C}from"./chunk-VBR46X5M.mjs";import{g}from"./chunk-K7ZPRL7C.mjs";import{a as S}from"./chunk-IEH7ILF3.mjs";import{a as f}from"./chunk-MYF2VRVN.mjs";import{a as b}from"./chunk-ZAHUEAGT.mjs";import{i as w,l as K,m as k,n as A,p as x}from"./chunk-DYMN66K5.mjs";import{b as m}from"./chunk-4I6IUAHQ.mjs";import{e as P,f as h}from"./chunk-FTBXTZM2.mjs";import{a as u}from"./chunk-YELQZVBK.mjs";import{b as c}from"./chunk-AOCNYMMX.mjs";async function _(r){let{aptosConfig:s,jwt:p,ephemeralKeyPair:e,uidKey:i="sub",derivationPath:n}=r,o={jwt_b64:p,epk:e.getPublicKey().bcsToHex().toStringWithoutPrefix(),exp_date_secs:e.expiryDateSecs,epk_blinder:c.fromHexInput(e.blinder).toStringWithoutPrefix(),uid_key:i,derivation_path:n},{data:t}=await P({aptosConfig:s,path:"fetch",body:o,originMethod:"getPepper",overrides:{WITH_CREDENTIALS:!1}});return c.fromHexInput(t.pepper).toUint8Array()}async function v(r){let{aptosConfig:s,jwt:p,ephemeralKeyPair:e,pepper:i=await _(r),uidKey:n="sub"}=r;if(c.fromHexInput(i).toUint8Array().length!==f.PEPPER_LENGTH)throw new Error(`Pepper needs to be ${f.PEPPER_LENGTH} bytes`);let{maxExpHorizonSecs:o}=await x({aptosConfig:s}),t={jwt_b64:p,epk:e.getPublicKey().bcsToHex().toStringWithoutPrefix(),epk_blinder:c.fromHexInput(e.blinder).toStringWithoutPrefix(),exp_date_secs:e.expiryDateSecs,exp_horizon_secs:999999999999,pepper:c.fromHexInput(i).toStringWithoutPrefix(),uid_key:n,use_insecure_test_jwk:!0};console.log(JSON.stringify(t));let{data:a}=await h({aptosConfig:s,path:"prove",body:t,originMethod:"getProof",overrides:{WITH_CREDENTIALS:!1}});console.log(JSON.stringify(a));let d=a.proof,l=new K({a:d.a,b:d.b,c:d.c});return new A({proof:new k(l,0),trainingWheelsSignature:m.fromHex(a.training_wheels_signature),expHorizonSecs:o})}async function G(r){let{aptosConfig:s,jwt:p,jwkAddress:e,uidKey:i,proofFetchCallback:n,pepper:o=await _(r)}=r,t=v({...r,pepper:o}),a=n?t:await t;if(e!==void 0){let y=b.fromJwtAndPepper({jwt:p,pepper:o,jwkAddress:e,uidKey:i}),j=await g({aptosConfig:s,authenticationKey:y.authKey().derivedAddress()});return S.create({...r,address:j,proof:a,pepper:o,proofFetchCallback:n,jwkAddress:e})}let d=w.fromJwtAndPepper({jwt:p,pepper:o,uidKey:i}),l=await g({aptosConfig:s,authenticationKey:d.authKey().derivedAddress()});return f.create({...r,address:l,proof:a,pepper:o,proofFetchCallback:n})}async function L(r){let{aptosConfig:s,sender:p,iss:e}=r,i=r.jwksUrl??(e.endsWith("/")?`${e}.well-known/jwks.json`:`${e}/.well-known/jwks.json`),n=await fetch(i);if(!n.ok)throw new Error(`Failed to fetch JWKS: ${n.status} ${n.statusText}`);let o=await n.json();return C({aptosConfig:s,sender:p.accountAddress,data:{function:"0x1::jwks::update_federated_jwk_set",functionArguments:[e,u.MoveString(o.keys.map(t=>t.kid)),u.MoveString(o.keys.map(t=>t.alg)),u.MoveString(o.keys.map(t=>t.e)),u.MoveString(o.keys.map(t=>t.n))]}})}export{_ as a,v as b,G as c,L as d};
2
+ //# sourceMappingURL=chunk-45ILXL6K.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/internal/keyless.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * This file contains the underlying implementations for exposed API surface in\n * the {@link api/keyless}. By moving the methods out into a separate file,\n * other namespaces and processes can access these methods without depending on the entire\n * keyless namespace and without having a dependency cycle error.\n */\nimport { jwtDecode, JwtPayload } from \"jwt-decode\";\nimport { AptosConfig } from \"../api/aptosConfig\";\nimport { postAptosPepperService, postAptosProvingService } from \"../client\";\nimport {\n AccountAddressInput,\n EphemeralSignature,\n Groth16Zkp,\n Hex,\n KeylessPublicKey,\n ZeroKnowledgeSig,\n ZkProof,\n getKeylessConfig,\n} from \"../core\";\nimport { HexInput, ZkpVariant } from \"../types\";\nimport { Account, EphemeralKeyPair, KeylessAccount, ProofFetchCallback } from \"../account\";\nimport { PepperFetchRequest, PepperFetchResponse, ProverRequest, ProverResponse } from \"../types/keyless\";\nimport { lookupOriginalAccountAddress } from \"./account\";\nimport { FederatedKeylessPublicKey } from \"../core/crypto/federatedKeyless\";\nimport { FederatedKeylessAccount } from \"../account/FederatedKeylessAccount\";\nimport { MoveVector } from \"../bcs\";\nimport { generateTransaction } from \"./transactionSubmission\";\nimport { SimpleTransaction } from \"../transactions\";\n\nexport async function getPepper(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n uidKey?: string;\n derivationPath?: string;\n}): Promise<Uint8Array> {\n const { aptosConfig, jwt, ephemeralKeyPair, uidKey = \"sub\", derivationPath } = args;\n\n const body = {\n jwt_b64: jwt,\n epk: ephemeralKeyPair.getPublicKey().bcsToHex().toStringWithoutPrefix(),\n exp_date_secs: ephemeralKeyPair.expiryDateSecs,\n epk_blinder: Hex.fromHexInput(ephemeralKeyPair.blinder).toStringWithoutPrefix(),\n uid_key: uidKey,\n derivation_path: derivationPath,\n };\n const { data } = await postAptosPepperService<PepperFetchRequest, PepperFetchResponse>({\n aptosConfig,\n path: \"fetch\",\n body,\n originMethod: \"getPepper\",\n overrides: { WITH_CREDENTIALS: false },\n });\n return Hex.fromHexInput(data.pepper).toUint8Array();\n}\n\nexport async function getProof(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n pepper?: HexInput;\n uidKey?: string;\n}): Promise<ZeroKnowledgeSig> {\n const { aptosConfig, jwt, ephemeralKeyPair, pepper = await getPepper(args), uidKey = \"sub\" } = args;\n if (Hex.fromHexInput(pepper).toUint8Array().length !== KeylessAccount.PEPPER_LENGTH) {\n throw new Error(`Pepper needs to be ${KeylessAccount.PEPPER_LENGTH} bytes`);\n }\n const { maxExpHorizonSecs } = await getKeylessConfig({ aptosConfig });\n // if (maxExpHorizonSecs < ephemeralKeyPair.expiryDateSecs - jwtDecode<JwtPayload>(jwt).iat!) {\n // throw Error(`The EphemeralKeyPair is too long lived. It's lifespan must be less than ${maxExpHorizonSecs}`);\n // }\n const json = {\n jwt_b64: jwt,\n epk: ephemeralKeyPair.getPublicKey().bcsToHex().toStringWithoutPrefix(),\n epk_blinder: Hex.fromHexInput(ephemeralKeyPair.blinder).toStringWithoutPrefix(),\n exp_date_secs: ephemeralKeyPair.expiryDateSecs,\n exp_horizon_secs: 999_999_999_999,\n pepper: Hex.fromHexInput(pepper).toStringWithoutPrefix(),\n uid_key: uidKey,\n use_insecure_test_jwk: true,\n };\n\n console.log(JSON.stringify(json))\n\n const { data } = await postAptosProvingService<ProverRequest, ProverResponse>({\n aptosConfig,\n path: \"prove\",\n body: json,\n originMethod: \"getProof\",\n overrides: { WITH_CREDENTIALS: false },\n });\n\n console.log(JSON.stringify(data))\n\n const proofPoints = data.proof;\n const groth16Zkp = new Groth16Zkp({\n a: proofPoints.a,\n b: proofPoints.b,\n c: proofPoints.c,\n });\n\n const signedProof = new ZeroKnowledgeSig({\n proof: new ZkProof(groth16Zkp, ZkpVariant.Groth16),\n trainingWheelsSignature: EphemeralSignature.fromHex(data.training_wheels_signature),\n expHorizonSecs: maxExpHorizonSecs,\n });\n return signedProof;\n}\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<KeylessAccount>;\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n jwkAddress: AccountAddressInput;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<FederatedKeylessAccount>;\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n jwkAddress?: AccountAddressInput;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<KeylessAccount | FederatedKeylessAccount> {\n const { aptosConfig, jwt, jwkAddress, uidKey, proofFetchCallback, pepper = await getPepper(args) } = args;\n const proofPromise = getProof({ ...args, pepper });\n // If a callback is provided, pass in the proof as a promise to KeylessAccount.create. This will make the proof be fetched in the\n // background and the callback will handle the outcome of the fetch. This allows the developer to not have to block on the proof fetch\n // allowing for faster rendering of UX.\n //\n // If no callback is provided, the just await the proof fetch and continue syncronously.\n const proof = proofFetchCallback ? proofPromise : await proofPromise;\n\n // Look up the original address to handle key rotations and then instantiate the account.\n if (jwkAddress !== undefined) {\n const publicKey = FederatedKeylessPublicKey.fromJwtAndPepper({ jwt, pepper, jwkAddress, uidKey });\n const address = await lookupOriginalAccountAddress({\n aptosConfig,\n authenticationKey: publicKey.authKey().derivedAddress(),\n });\n\n return FederatedKeylessAccount.create({ ...args, address, proof, pepper, proofFetchCallback, jwkAddress });\n }\n\n const publicKey = KeylessPublicKey.fromJwtAndPepper({ jwt, pepper, uidKey });\n const address = await lookupOriginalAccountAddress({\n aptosConfig,\n authenticationKey: publicKey.authKey().derivedAddress(),\n });\n return KeylessAccount.create({ ...args, address, proof, pepper, proofFetchCallback });\n}\n\ninterface JWK {\n kty: string; // Key type\n kid: string; // Key ID\n alg: string; // Algorithm used with the key\n n: string; // Modulus (for RSA keys)\n e: string; // Exponent (for RSA keys)\n}\n\ninterface JWKS {\n keys: JWK[];\n}\n\nexport async function updateFederatedKeylessJwkSetTransaction(args: {\n aptosConfig: AptosConfig;\n sender: Account;\n iss: string;\n jwksUrl?: string;\n}): Promise<SimpleTransaction> {\n const { aptosConfig, sender, iss } = args;\n const jwksUrl = args.jwksUrl ?? (iss.endsWith(\"/\") ? `${iss}.well-known/jwks.json` : `${iss}/.well-known/jwks.json`);\n const response = await fetch(jwksUrl);\n if (!response.ok) {\n throw new Error(`Failed to fetch JWKS: ${response.status} ${response.statusText}`);\n }\n const jwks: JWKS = await response.json();\n return generateTransaction({\n aptosConfig,\n sender: sender.accountAddress,\n data: {\n function: \"0x1::jwks::update_federated_jwk_set\",\n functionArguments: [\n iss,\n MoveVector.MoveString(jwks.keys.map((key) => key.kid)),\n MoveVector.MoveString(jwks.keys.map((key) => key.alg)),\n MoveVector.MoveString(jwks.keys.map((key) => key.e)),\n MoveVector.MoveString(jwks.keys.map((key) => key.n)),\n ],\n },\n });\n}\n"],"mappings":"wbAgCA,eAAsBA,EAAUC,EAMR,CACtB,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,iBAAAC,EAAkB,OAAAC,EAAS,MAAO,eAAAC,CAAe,EAAIL,EAEzEM,EAAO,CACX,QAASJ,EACT,IAAKC,EAAiB,aAAa,EAAE,SAAS,EAAE,sBAAsB,EACtE,cAAeA,EAAiB,eAChC,YAAaI,EAAI,aAAaJ,EAAiB,OAAO,EAAE,sBAAsB,EAC9E,QAASC,EACT,gBAAiBC,CACnB,EACM,CAAE,KAAAG,CAAK,EAAI,MAAMC,EAAgE,CACrF,YAAAR,EACA,KAAM,QACN,KAAAK,EACA,aAAc,YACd,UAAW,CAAE,iBAAkB,EAAM,CACvC,CAAC,EACD,OAAOC,EAAI,aAAaC,EAAK,MAAM,EAAE,aAAa,CACpD,CAEA,eAAsBE,EAASV,EAMD,CAC5B,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,iBAAAC,EAAkB,OAAAQ,EAAS,MAAMZ,EAAUC,CAAI,EAAG,OAAAI,EAAS,KAAM,EAAIJ,EAC/F,GAAIO,EAAI,aAAaI,CAAM,EAAE,aAAa,EAAE,SAAWC,EAAe,cACpE,MAAM,IAAI,MAAM,sBAAsBA,EAAe,aAAa,QAAQ,EAE5E,GAAM,CAAE,kBAAAC,CAAkB,EAAI,MAAMC,EAAiB,CAAE,YAAAb,CAAY,CAAC,EAI9Dc,EAAO,CACX,QAASb,EACT,IAAKC,EAAiB,aAAa,EAAE,SAAS,EAAE,sBAAsB,EACtE,YAAaI,EAAI,aAAaJ,EAAiB,OAAO,EAAE,sBAAsB,EAC9E,cAAeA,EAAiB,eAChC,iBAAkB,aAClB,OAAQI,EAAI,aAAaI,CAAM,EAAE,sBAAsB,EACvD,QAASP,EACT,sBAAuB,EACzB,EAEA,QAAQ,IAAI,KAAK,UAAUW,CAAI,CAAC,EAEhC,GAAM,CAAE,KAAAP,CAAK,EAAI,MAAMQ,EAAuD,CAC5E,YAAAf,EACA,KAAM,QACN,KAAMc,EACN,aAAc,WACd,UAAW,CAAE,iBAAkB,EAAM,CACvC,CAAC,EAED,QAAQ,IAAI,KAAK,UAAUP,CAAI,CAAC,EAEhC,IAAMS,EAAcT,EAAK,MACnBU,EAAa,IAAIC,EAAW,CAChC,EAAGF,EAAY,EACf,EAAGA,EAAY,EACf,EAAGA,EAAY,CACjB,CAAC,EAOD,OALoB,IAAIG,EAAiB,CACvC,MAAO,IAAIC,EAAQH,GAA8B,EACjD,wBAAyBI,EAAmB,QAAQd,EAAK,yBAAyB,EAClF,eAAgBK,CAClB,CAAC,CAEH,CAqBA,eAAsBU,EAAqBvB,EAQW,CACpD,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,WAAAsB,EAAY,OAAApB,EAAQ,mBAAAqB,EAAoB,OAAAd,EAAS,MAAMZ,EAAUC,CAAI,CAAE,EAAIA,EAC/F0B,EAAehB,EAAS,CAAE,GAAGV,EAAM,OAAAW,CAAO,CAAC,EAM3CgB,EAAQF,EAAqBC,EAAe,MAAMA,EAGxD,GAAIF,IAAe,OAAW,CAC5B,IAAMI,EAAYC,EAA0B,iBAAiB,CAAE,IAAA3B,EAAK,OAAAS,EAAQ,WAAAa,EAAY,OAAApB,CAAO,CAAC,EAC1F0B,EAAU,MAAMC,EAA6B,CACjD,YAAA9B,EACA,kBAAmB2B,EAAU,QAAQ,EAAE,eAAe,CACxD,CAAC,EAED,OAAOI,EAAwB,OAAO,CAAE,GAAGhC,EAAM,QAAA8B,EAAS,MAAAH,EAAO,OAAAhB,EAAQ,mBAAAc,EAAoB,WAAAD,CAAW,CAAC,CAC3G,CAEA,IAAMI,EAAYK,EAAiB,iBAAiB,CAAE,IAAA/B,EAAK,OAAAS,EAAQ,OAAAP,CAAO,CAAC,EACrE0B,EAAU,MAAMC,EAA6B,CACjD,YAAA9B,EACA,kBAAmB2B,EAAU,QAAQ,EAAE,eAAe,CACxD,CAAC,EACD,OAAOhB,EAAe,OAAO,CAAE,GAAGZ,EAAM,QAAA8B,EAAS,MAAAH,EAAO,OAAAhB,EAAQ,mBAAAc,CAAmB,CAAC,CACtF,CAcA,eAAsBS,EAAwClC,EAK/B,CAC7B,GAAM,CAAE,YAAAC,EAAa,OAAAkC,EAAQ,IAAAC,CAAI,EAAIpC,EAC/BqC,EAAUrC,EAAK,UAAYoC,EAAI,SAAS,GAAG,EAAI,GAAGA,CAAG,wBAA0B,GAAGA,CAAG,0BACrFE,EAAW,MAAM,MAAMD,CAAO,EACpC,GAAI,CAACC,EAAS,GACZ,MAAM,IAAI,MAAM,yBAAyBA,EAAS,MAAM,IAAIA,EAAS,UAAU,EAAE,EAEnF,IAAMC,EAAa,MAAMD,EAAS,KAAK,EACvC,OAAOE,EAAoB,CACzB,YAAAvC,EACA,OAAQkC,EAAO,eACf,KAAM,CACJ,SAAU,sCACV,kBAAmB,CACjBC,EACAK,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,GAAG,CAAC,EACrDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,GAAG,CAAC,EACrDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,CAAC,CAAC,EACnDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,CAAC,CAAC,CACrD,CACF,CACF,CAAC,CACH","names":["getPepper","args","aptosConfig","jwt","ephemeralKeyPair","uidKey","derivationPath","body","Hex","data","postAptosPepperService","getProof","pepper","KeylessAccount","maxExpHorizonSecs","getKeylessConfig","json","postAptosProvingService","proofPoints","groth16Zkp","Groth16Zkp","ZeroKnowledgeSig","ZkProof","EphemeralSignature","deriveKeylessAccount","jwkAddress","proofFetchCallback","proofPromise","proof","publicKey","FederatedKeylessPublicKey","address","lookupOriginalAccountAddress","FederatedKeylessAccount","KeylessPublicKey","updateFederatedKeylessJwkSetTransaction","sender","iss","jwksUrl","response","jwks","generateTransaction","MoveVector","key"]}
@@ -1,2 +1,2 @@
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
+ 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,2 +1,2 @@
1
- import{g as e}from"./chunk-G6HZPSZ3.mjs";import{d as c}from"./chunk-FTBXTZM2.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";import{d as r}from"./chunk-EXP5STXZ.mjs";async function x(a){let{aptosConfig:t,accountAddress:i,amount:p,options:n}=a,u=n?.timeoutSecs||20,{data:d}=await c({aptosConfig:t,path:"fund",body:{address:s.from(i).toString(),amount:p},originMethod:"fundAccount"}),m=d.txn_hashes[0],o=await e({aptosConfig:t,transactionHash:m,options:{timeoutSecs:u,checkSuccess:n?.checkSuccess}});if(o.type==="user_transaction")return o;throw new Error(`Unexpected transaction received for fund account: ${o.type}`)}export{x as a};
2
- //# sourceMappingURL=chunk-SH6IO5EV.mjs.map
1
+ import{g as e}from"./chunk-AGTINH7K.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";import{d as c}from"./chunk-FTBXTZM2.mjs";import{d as r}from"./chunk-EXP5STXZ.mjs";async function x(a){let{aptosConfig:t,accountAddress:i,amount:p,options:n}=a,u=n?.timeoutSecs||20,{data:d}=await c({aptosConfig:t,path:"fund",body:{address:s.from(i).toString(),amount:p},originMethod:"fundAccount"}),m=d.txn_hashes[0],o=await e({aptosConfig:t,transactionHash:m,options:{timeoutSecs:u,checkSuccess:n?.checkSuccess}});if(o.type==="user_transaction")return o;throw new Error(`Unexpected transaction received for fund account: ${o.type}`)}export{x as a};
2
+ //# sourceMappingURL=chunk-4X4ODN6K.mjs.map
@@ -1,2 +1,2 @@
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
+ import{a as g}from"./chunk-YRXUBXIJ.mjs";import{a as m}from"./chunk-VBR46X5M.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-5JRPODDO.mjs.map
@@ -1,2 +1,2 @@
1
- import{h as e}from"./chunk-G6HZPSZ3.mjs";async function i(o){o.minimumLedgerVersion!==void 0&&await e({aptosConfig:o.config,minimumLedgerVersion:o.minimumLedgerVersion,processorType:o.processorType})}export{i as a};
2
- //# sourceMappingURL=chunk-RLGIYYI7.mjs.map
1
+ import{h as e}from"./chunk-AGTINH7K.mjs";async function i(o){o.minimumLedgerVersion!==void 0&&await e({aptosConfig:o.config,minimumLedgerVersion:o.minimumLedgerVersion,processorType:o.processorType})}export{i as a};
2
+ //# sourceMappingURL=chunk-5MZJD6SA.mjs.map
@@ -1,2 +1,2 @@
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
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,2 +1,2 @@
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
+ 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,2 +1,2 @@
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
+ 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,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-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
+ 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-GUVL374I.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-7WCH4LAM.mjs.map
@@ -1,2 +1,2 @@
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
+ import{a as o}from"./chunk-XUJXTPLV.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-ABAIELQE.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 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
+ 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,2 +1,2 @@
1
- import{a as o,b as r,c as t,d as s}from"./chunk-TKQEC2WD.mjs";import{a as n}from"./chunk-RLGIYYI7.mjs";var i=class{constructor(e){this.config=e}async getModuleEventsByEventType(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),o({aptosConfig:this.config,...e})}async getAccountEventsByCreationNumber(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),r({aptosConfig:this.config,...e})}async getAccountEventsByEventType(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),t({aptosConfig:this.config,...e})}async getEvents(e){return await n({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"events_processor"}),s({aptosConfig:this.config,...e})}};export{i as a};
2
- //# sourceMappingURL=chunk-S7KCJQOA.mjs.map
1
+ import{a as o,b as r,c as t,d as s}from"./chunk-TKQEC2WD.mjs";import{a as n}from"./chunk-5MZJD6SA.mjs";var i=class{constructor(e){this.config=e}async getModuleEventsByEventType(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),o({aptosConfig:this.config,...e})}async getAccountEventsByCreationNumber(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),r({aptosConfig:this.config,...e})}async getAccountEventsByEventType(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),t({aptosConfig:this.config,...e})}async getEvents(e){return await n({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"events_processor"}),s({aptosConfig:this.config,...e})}};export{i as a};
2
+ //# sourceMappingURL=chunk-ASQ2YBOR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,c}from"./chunk-76QOH2OW.mjs";import{a as u}from"./chunk-MCZIV5GR.mjs";import{i as o,j as l}from"./chunk-YKWRPFAN.mjs";import{b as n,d as s}from"./chunk-G76BSSWS.mjs";import{b as p}from"./chunk-FOLCONSQ.mjs";import{a as f}from"./chunk-QP2A5ISX.mjs";import{a as b}from"./chunk-3CE63FFN.mjs";var K=class r extends p{constructor(e){super();if(this.publicKey=e,e instanceof n)this.variant=0;else if(e instanceof a)this.variant=1;else if(e instanceof o)this.variant=3;else if(e instanceof u)this.variant=4;else throw new Error("Unsupported public key type")}verifySignature(e){let{message:t,signature:i}=e;return y.isInstance(i)?this.publicKey.verifySignature({message:t,signature:i.signature}):!1}authKey(){return b.fromSchemeAndBytes({scheme:2,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeU32AsUleb128(this.variant),this.publicKey.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32(),i;switch(t){case 0:i=n.deserialize(e);break;case 1:i=a.deserialize(e);break;case 3:i=o.deserialize(e);break;case 4:i=u.deserialize(e);break;default:throw new Error(`Unknown variant index for AnyPublicKey: ${t}`)}return new r(i)}static isPublicKey(e){return e instanceof r}isEd25519(){return this.publicKey instanceof n}isSecp256k1PublicKey(){return this.publicKey instanceof a}static isInstance(e){return"publicKey"in e&&"variant"in e}},y=class r extends f{constructor(e){super();if(this.signature=e,e instanceof s)this.variant=0;else if(e instanceof c)this.variant=1;else if(e instanceof l)this.variant=3;else throw new Error("Unsupported signature type")}toUint8Array(){return console.warn("[Aptos SDK] Calls to AnySignature.toUint8Array() will soon return the underlying signature bytes. Use AnySignature.bcsToBytes() instead."),this.bcsToBytes()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32(),i;switch(t){case 0:i=s.deserialize(e);break;case 1:i=c.deserialize(e);break;case 3:i=l.deserialize(e);break;default:throw new Error(`Unknown variant index for AnySignature: ${t}`)}return new r(i)}static isInstance(e){return"signature"in e&&typeof e.signature=="object"&&e.signature!==null&&"toUint8Array"in e.signature}};export{K as a,y as b};
2
- //# sourceMappingURL=chunk-R5QDWL5W.mjs.map
1
+ import{a,c}from"./chunk-QTTDBQAJ.mjs";import{a as u}from"./chunk-ZAHUEAGT.mjs";import{i as o,j as l}from"./chunk-DYMN66K5.mjs";import{b as n,d as s}from"./chunk-7T5CUI2H.mjs";import{b as p}from"./chunk-FOLCONSQ.mjs";import{a as f}from"./chunk-QP2A5ISX.mjs";import{a as b}from"./chunk-3CE63FFN.mjs";var K=class r extends p{constructor(e){super();if(this.publicKey=e,e instanceof n)this.variant=0;else if(e instanceof a)this.variant=1;else if(e instanceof o)this.variant=3;else if(e instanceof u)this.variant=4;else throw new Error("Unsupported public key type")}verifySignature(e){let{message:t,signature:i}=e;return y.isInstance(i)?this.publicKey.verifySignature({message:t,signature:i.signature}):!1}authKey(){return b.fromSchemeAndBytes({scheme:2,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeU32AsUleb128(this.variant),this.publicKey.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32(),i;switch(t){case 0:i=n.deserialize(e);break;case 1:i=a.deserialize(e);break;case 3:i=o.deserialize(e);break;case 4:i=u.deserialize(e);break;default:throw new Error(`Unknown variant index for AnyPublicKey: ${t}`)}return new r(i)}static isPublicKey(e){return e instanceof r}isEd25519(){return this.publicKey instanceof n}isSecp256k1PublicKey(){return this.publicKey instanceof a}static isInstance(e){return"publicKey"in e&&"variant"in e}},y=class r extends f{constructor(e){super();if(this.signature=e,e instanceof s)this.variant=0;else if(e instanceof c)this.variant=1;else if(e instanceof l)this.variant=3;else throw new Error("Unsupported signature type")}toUint8Array(){return console.warn("[Aptos SDK] Calls to AnySignature.toUint8Array() will soon return the underlying signature bytes. Use AnySignature.bcsToBytes() instead."),this.bcsToBytes()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32(),i;switch(t){case 0:i=s.deserialize(e);break;case 1:i=c.deserialize(e);break;case 3:i=l.deserialize(e);break;default:throw new Error(`Unknown variant index for AnySignature: ${t}`)}return new r(i)}static isInstance(e){return"signature"in e&&typeof e.signature=="object"&&e.signature!==null&&"toUint8Array"in e.signature}};export{K as a,y as b};
2
+ //# sourceMappingURL=chunk-ASQIKTEF.mjs.map
@@ -1,2 +1,2 @@
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
+ 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,2 +1,2 @@
1
- import{a as r}from"./chunk-TVWAYKEP.mjs";import{a as y,c as a,d as f}from"./chunk-YELQZVBK.mjs";import{a as i,b as o,c as u,d as s,e as c,f as p,g as m}from"./chunk-E7VSBBQM.mjs";import{b as g}from"./chunk-EDVGFSB5.mjs";function D(n){return typeof n=="boolean"}function l(n){return typeof n=="string"}function d(n){return typeof n=="number"}function P(n){if(d(n))return n;if(l(n)&&n!=="")return Number.parseInt(n,10)}function w(n){return typeof n=="number"||typeof n=="bigint"||typeof n=="string"}function G(n){return n==null}function $(n){return T(n)||B(n)||U(n)||b(n)||I(n)||v(n)||h(n)||E(n)||x(n)||S(n)||n instanceof y||n instanceof f}function T(n){return n instanceof i}function E(n){return n instanceof g}function x(n){return n instanceof a}function S(n){return n instanceof r}function B(n){return n instanceof o}function U(n){return n instanceof u}function b(n){return n instanceof s}function I(n){return n instanceof c}function v(n){return n instanceof p}function h(n){return n instanceof m}function O(n){return"bytecode"in n}function R(n,t){throw new Error(`Type mismatch for argument ${t}, expected '${n}'`)}function W(n){let t=n.params.findIndex(e=>e!=="signer"&&e!=="&signer");return t<0?n.params.length:t}function L(n){let t=n.split("::");if(t.length!==3)throw new Error(`Invalid function ${n}`);let e=t[0],F=t[1],A=t[2];return{moduleAddress:e,moduleName:F,functionName:A}}export{D as a,l as b,d as c,P as d,w as e,G as f,$ as g,T as h,E as i,x as j,S as k,B as l,U as m,b as n,I as o,v as p,h as q,O as r,R as s,W as t,L as u};
2
- //# sourceMappingURL=chunk-US5DBLWO.mjs.map
1
+ import{b as g}from"./chunk-EDVGFSB5.mjs";import{a as y,c as a,d as f}from"./chunk-YELQZVBK.mjs";import{a as r}from"./chunk-TVWAYKEP.mjs";import{a as i,b as o,c as u,d as s,e as c,f as p,g as m}from"./chunk-E7VSBBQM.mjs";function D(n){return typeof n=="boolean"}function l(n){return typeof n=="string"}function d(n){return typeof n=="number"}function P(n){if(d(n))return n;if(l(n)&&n!=="")return Number.parseInt(n,10)}function w(n){return typeof n=="number"||typeof n=="bigint"||typeof n=="string"}function G(n){return n==null}function $(n){return T(n)||B(n)||U(n)||b(n)||I(n)||v(n)||h(n)||E(n)||x(n)||S(n)||n instanceof y||n instanceof f}function T(n){return n instanceof i}function E(n){return n instanceof g}function x(n){return n instanceof a}function S(n){return n instanceof r}function B(n){return n instanceof o}function U(n){return n instanceof u}function b(n){return n instanceof s}function I(n){return n instanceof c}function v(n){return n instanceof p}function h(n){return n instanceof m}function O(n){return"bytecode"in n}function R(n,t){throw new Error(`Type mismatch for argument ${t}, expected '${n}'`)}function W(n){let t=n.params.findIndex(e=>e!=="signer"&&e!=="&signer");return t<0?n.params.length:t}function L(n){let t=n.split("::");if(t.length!==3)throw new Error(`Invalid function ${n}`);let e=t[0],F=t[1],A=t[2];return{moduleAddress:e,moduleName:F,functionName:A}}export{D as a,l as b,d as c,P as d,w as e,G as f,$ as g,T as h,E as i,x as j,S as k,B as l,U as m,b as n,I as o,v as p,h as q,O as r,R as s,W as t,L as u};
2
+ //# sourceMappingURL=chunk-BQPQLOIW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w,b as S}from"./chunk-SINSCI7V.mjs";import{d as h}from"./chunk-ADPKXACB.mjs";import{a,b as c}from"./chunk-R5QDWL5W.mjs";import{i as m,j as g,k as P,n as K}from"./chunk-YKWRPFAN.mjs";import{d as y}from"./chunk-UAL27G6B.mjs";import{b as d}from"./chunk-EDVGFSB5.mjs";import{a as n}from"./chunk-ZZIMFLVT.mjs";import{b as f}from"./chunk-AOCNYMMX.mjs";import H from"eventemitter3";var o=class o extends n{constructor(e){super();let{address:r,ephemeralKeyPair:t,uidKey:i,uidVal:A,aud:b,pepper:x,proof:s,proofFetchCallback:l,jwt:T}=e;if(this.ephemeralKeyPair=t,this.publicKey=m.create(e),this.accountAddress=r?d.from(r):this.publicKey.authKey().derivedAddress(),this.uidKey=i,this.uidVal=A,this.aud=b,this.jwt=T,this.emitter=new H,this.proofOrPromise=s,s instanceof K)this.proof=s;else{if(l===void 0)throw new Error("Must provide callback for async proof fetch");this.emitter.on("proofFetchFinish",async v=>{await l(v),this.emitter.removeAllListeners()}),this.init(s)}this.signingScheme=2;let u=f.fromHexInput(x).toUint8Array();if(u.length!==o.PEPPER_LENGTH)throw new Error(`Pepper length in bytes should be ${o.PEPPER_LENGTH}`);this.pepper=u}async init(e){try{this.proof=await e,this.emitter.emit("proofFetchFinish",{status:"Success"})}catch(r){r instanceof Error?this.emitter.emit("proofFetchFinish",{status:"Failed",error:r.toString()}):this.emitter.emit("proofFetchFinish",{status:"Failed",error:"Unknown"})}}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)}isExpired(){return this.ephemeralKeyPair.isExpired()}signWithAuthenticator(e){let r=new c(this.sign(e)),t=new a(this.publicKey);return new h(t,r)}signTransactionWithAuthenticator(e){let r=new c(this.signTransaction(e)),t=new a(this.publicKey);return new h(t,r)}async waitForProofFetch(){this.proofOrPromise instanceof Promise&&await this.proofOrPromise}sign(e){let{expiryDateSecs:r}=this.ephemeralKeyPair;if(this.isExpired())throw new Error("EphemeralKeyPair is expired");if(this.proof===void 0)throw new Error("Proof not defined");let t=this.ephemeralKeyPair.getPublicKey(),i=this.ephemeralKeyPair.sign(e);return new g({jwtHeader:y(this.jwt.split(".")[0]),ephemeralCertificate:new P(this.proof,0),expiryDateSecs:r,ephemeralPublicKey:t,ephemeralSignature:i})}signTransaction(e){if(this.proof===void 0)throw new Error("Proof not found");let r=w(e),i=new p(r,this.proof.proof).hash();return this.sign(i)}verifySignature(e){let{message:r,signature:t}=e;return!(this.isExpired()||!this.ephemeralKeyPair.getPublicKey().verifySignature({message:r,signature:t.ephemeralSignature}))}};o.PEPPER_LENGTH=31;var F=o,p=class extends n{constructor(e,r){super();this.domainSeparator="APTOS::TransactionAndProof";this.transaction=e,this.proof=r}serialize(e){e.serializeFixedBytes(this.transaction.bcsToBytes()),e.serializeOption(this.proof)}hash(){return S(this.bcsToBytes(),this.domainSeparator)}};export{F as a,p as b};
2
- //# sourceMappingURL=chunk-YRDU2QH5.mjs.map
1
+ import{a as w,b as S}from"./chunk-E2WOZVJX.mjs";import{d as h}from"./chunk-BC5BEOKM.mjs";import{a,b as c}from"./chunk-ASQIKTEF.mjs";import{i as m,j as g,k as P,n as K}from"./chunk-DYMN66K5.mjs";import{b as d}from"./chunk-EDVGFSB5.mjs";import{a as n}from"./chunk-ZZIMFLVT.mjs";import{b as f}from"./chunk-AOCNYMMX.mjs";import{d as y}from"./chunk-UAL27G6B.mjs";import H from"eventemitter3";var o=class o extends n{constructor(e){super();let{address:r,ephemeralKeyPair:t,uidKey:i,uidVal:A,aud:b,pepper:x,proof:s,proofFetchCallback:l,jwt:T}=e;if(this.ephemeralKeyPair=t,this.publicKey=m.create(e),this.accountAddress=r?d.from(r):this.publicKey.authKey().derivedAddress(),this.uidKey=i,this.uidVal=A,this.aud=b,this.jwt=T,this.emitter=new H,this.proofOrPromise=s,s instanceof K)this.proof=s;else{if(l===void 0)throw new Error("Must provide callback for async proof fetch");this.emitter.on("proofFetchFinish",async v=>{await l(v),this.emitter.removeAllListeners()}),this.init(s)}this.signingScheme=2;let u=f.fromHexInput(x).toUint8Array();if(u.length!==o.PEPPER_LENGTH)throw new Error(`Pepper length in bytes should be ${o.PEPPER_LENGTH}`);this.pepper=u}async init(e){try{this.proof=await e,this.emitter.emit("proofFetchFinish",{status:"Success"})}catch(r){r instanceof Error?this.emitter.emit("proofFetchFinish",{status:"Failed",error:r.toString()}):this.emitter.emit("proofFetchFinish",{status:"Failed",error:"Unknown"})}}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)}isExpired(){return this.ephemeralKeyPair.isExpired()}signWithAuthenticator(e){let r=new c(this.sign(e)),t=new a(this.publicKey);return new h(t,r)}signTransactionWithAuthenticator(e){let r=new c(this.signTransaction(e)),t=new a(this.publicKey);return new h(t,r)}async waitForProofFetch(){this.proofOrPromise instanceof Promise&&await this.proofOrPromise}sign(e){let{expiryDateSecs:r}=this.ephemeralKeyPair;if(this.isExpired())throw new Error("EphemeralKeyPair is expired");if(this.proof===void 0)throw new Error("Proof not defined");let t=this.ephemeralKeyPair.getPublicKey(),i=this.ephemeralKeyPair.sign(e);return new g({jwtHeader:y(this.jwt.split(".")[0]),ephemeralCertificate:new P(this.proof,0),expiryDateSecs:r,ephemeralPublicKey:t,ephemeralSignature:i})}signTransaction(e){if(this.proof===void 0)throw new Error("Proof not found");let r=w(e),i=new p(r,this.proof.proof).hash();return this.sign(i)}verifySignature(e){let{message:r,signature:t}=e;return!(this.isExpired()||!this.ephemeralKeyPair.getPublicKey().verifySignature({message:r,signature:t.ephemeralSignature}))}};o.PEPPER_LENGTH=31;var F=o,p=class extends n{constructor(e,r){super();this.domainSeparator="APTOS::TransactionAndProof";this.transaction=e,this.proof=r}serialize(e){e.serializeFixedBytes(this.transaction.bcsToBytes()),e.serializeOption(this.proof)}hash(){return S(this.bcsToBytes(),this.domainSeparator)}};export{F as a,p as b};
2
+ //# sourceMappingURL=chunk-CUDIVR4U.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as h,c as V,d as v,e as B}from"./chunk-IVVWQKCF.mjs";import{a as T}from"./chunk-N6EC72OZ.mjs";import{a as w,b as m}from"./chunk-6BXB4PLA.mjs";import{b as I,d as P}from"./chunk-G76BSSWS.mjs";import{b as C}from"./chunk-FOLCONSQ.mjs";import{a as y}from"./chunk-QP2A5ISX.mjs";import{a as U}from"./chunk-3CE63FFN.mjs";import{a as _}from"./chunk-AH44UPM4.mjs";import{b as A}from"./chunk-H3TJNBHX.mjs";import{a as E}from"./chunk-KEYAPEAX.mjs";import{b}from"./chunk-EDVGFSB5.mjs";import{a as d,b as H}from"./chunk-ZZIMFLVT.mjs";import{b as p}from"./chunk-AOCNYMMX.mjs";import{jwtDecode as F}from"jwt-decode";var ge=1e7,L=120,N=30,O=330,fe=120,Se=350,xe=300,be=93,o=class o extends C{constructor(e,t){super();let a=p.fromHexInput(t).toUint8Array();if(a.length!==o.ID_COMMITMENT_LENGTH)throw new Error(`Id Commitment length in bytes should be ${o.ID_COMMITMENT_LENGTH}`);this.iss=e,this.idCommitment=a}authKey(){let e=new H;return e.serializeU32AsUleb128(3),e.serializeFixedBytes(this.bcsToBytes()),U.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}toString(){return p.fromHexInput(this.toUint8Array()).toString()}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){e.serializeStr(this.iss),e.serializeBytes(this.idCommitment)}static deserialize(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static load(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static isPublicKey(e){return e instanceof o}static create(e){return D(e),new o(e.iss,D(e))}static fromJwtAndPepper(e){let{jwt:t,pepper:a,uidKey:n="sub"}=e,s=F(t),c=s.iss;if(typeof s.aud!="string")throw new Error("aud was not found or an array of values");let R=s.aud,k=s[n];return o.create({iss:c,uidKey:n,uidVal:k,aud:R,pepper:a})}static isInstance(e){return"iss"in e&&typeof e.iss=="string"&&"idCommitment"in e&&e.idCommitment instanceof Uint8Array}};o.ID_COMMITMENT_LENGTH=32;var z=o;function D(i){let{uidKey:r,uidVal:e,aud:t,pepper:a}=i,n=[V(p.fromHexInput(a).toUint8Array()),h(t,L),h(e,O),h(r,N)];return v(B(n),z.ID_COMMITMENT_LENGTH)}var M=class i extends y{constructor(e){super();let{jwtHeader:t,ephemeralCertificate:a,expiryDateSecs:n,ephemeralPublicKey:s,ephemeralSignature:c}=e;this.jwtHeader=t,this.ephemeralCertificate=a,this.expiryDateSecs=n,this.ephemeralPublicKey=s,this.ephemeralSignature=c}toUint8Array(){return this.bcsToBytes()}serialize(e){this.ephemeralCertificate.serialize(e),e.serializeStr(this.jwtHeader),e.serializeU64(this.expiryDateSecs),this.ephemeralPublicKey.serialize(e),this.ephemeralSignature.serialize(e)}static deserialize(e){let t=g.deserialize(e),a=e.deserializeStr(),n=e.deserializeU64(),s=w.deserialize(e),c=m.deserialize(e);return new i({jwtHeader:a,expiryDateSecs:Number(n),ephemeralCertificate:t,ephemeralPublicKey:s,ephemeralSignature:c})}static getSimulationSignature(){return new i({jwtHeader:"{}",ephemeralCertificate:new g(new x({proof:new S(new f({a:new Uint8Array(32),b:new Uint8Array(64),c:new Uint8Array(32)}),0),expHorizonSecs:0}),0),expiryDateSecs:0,ephemeralPublicKey:new w(new I(new Uint8Array(32))),ephemeralSignature:new m(new P(new Uint8Array(64)))})}static isSignature(e){return e instanceof i}},g=class i extends y{constructor(e,t){super();this.signature=e,this.variant=t}toUint8Array(){return this.signature.toUint8Array()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(x.deserialize(e),t);default:throw new Error(`Unknown variant index for EphemeralCertificate: ${t}`)}}},l=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==32)throw new Error("Input needs to be 32 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(32);return new i(t)}},u=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==64)throw new Error("Input needs to be 64 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(64);return new i(t)}},f=class i extends T{constructor(e){super();let{a:t,b:a,c:n}=e;this.a=new l(t),this.b=new u(a),this.c=new l(n)}serialize(e){this.a.serialize(e),this.b.serialize(e),this.c.serialize(e)}static deserialize(e){let t=l.deserialize(e).bcsToBytes(),a=u.deserialize(e).bcsToBytes(),n=l.deserialize(e).bcsToBytes();return new i({a:t,b:a,c:n})}},S=class i extends d{constructor(e,t){super();this.proof=e,this.variant=t}serialize(e){e.serializeU32AsUleb128(this.variant),this.proof.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(f.deserialize(e),t);default:throw new Error(`Unknown variant index for ZkProof: ${t}`)}}},x=class i extends y{constructor(e){super();let{proof:t,expHorizonSecs:a,trainingWheelsSignature:n,extraField:s,overrideAudVal:c}=e;this.proof=t,this.expHorizonSecs=a,this.trainingWheelsSignature=n,this.extraField=s,this.overrideAudVal=c}toUint8Array(){return this.bcsToBytes()}static fromBytes(e){return i.deserialize(new E(e))}serialize(e){this.proof.serialize(e),e.serializeU64(this.expHorizonSecs),e.serializeOptionStr(this.extraField),e.serializeOptionStr(this.overrideAudVal),e.serializeOption(this.trainingWheelsSignature)}static deserialize(e){let t=S.deserialize(e),a=Number(e.deserializeU64()),n=e.deserializeOptionStr(),s=e.deserializeOptionStr(),c=e.deserializeOption(m);return new i({proof:t,expHorizonSecs:a,trainingWheelsSignature:c,extraField:n,overrideAudVal:s})}},K=class i{constructor(r,e){this.verficationKey=r,this.maxExpHorizonSecs=e}static create(r,e){return new i(new G({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2}),e)}},G=class i{constructor(r){let{alphaG1:e,betaG2:t,deltaG2:a,gammaAbcG1:n,gammaG2:s}=r;this.alphaG1=new l(e),this.betaG2=new u(t),this.deltaG2=new u(a),this.gammaAbcG1=[new l(n[0]),new l(n[1])],this.gammaG2=new u(s)}static fromGroth16VerificationKeyResponse(r){return new i({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2})}};async function we(i){let{aptosConfig:r}=i;return _(async()=>{let e=await j(i),t=await Z(i);return K.create(t,Number(e.max_exp_horizon_secs))},`keyless-configuration-${r.network}`,1e3*60*5)()}async function j(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Configuration",{data:a}=await A({aptosConfig:r,originMethod:"getKeylessConfigurationResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}async function Z(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Groth16VerificationKey",{data:a}=await A({aptosConfig:r,originMethod:"getGroth16VerificationKeyResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}export{ge as a,L as b,N as c,O as d,fe as e,Se as f,xe as g,be as h,z as i,M as j,g as k,f as l,S as m,x as n,K as o,we as p};
2
- //# sourceMappingURL=chunk-YKWRPFAN.mjs.map
1
+ import{a as h,c as V,d as v,e as B}from"./chunk-IVVWQKCF.mjs";import{a as T}from"./chunk-N6EC72OZ.mjs";import{a as w,b as m}from"./chunk-4I6IUAHQ.mjs";import{b as I,d as P}from"./chunk-7T5CUI2H.mjs";import{b as C}from"./chunk-FOLCONSQ.mjs";import{a as y}from"./chunk-QP2A5ISX.mjs";import{a as U}from"./chunk-3CE63FFN.mjs";import{b}from"./chunk-EDVGFSB5.mjs";import{a as _}from"./chunk-AH44UPM4.mjs";import{b as A}from"./chunk-H3TJNBHX.mjs";import{a as E}from"./chunk-KEYAPEAX.mjs";import{a as d,b as H}from"./chunk-ZZIMFLVT.mjs";import{b as p}from"./chunk-AOCNYMMX.mjs";import{jwtDecode as F}from"jwt-decode";var ge=1e7,L=120,N=30,O=330,fe=120,Se=350,xe=300,be=93,o=class o extends C{constructor(e,t){super();let a=p.fromHexInput(t).toUint8Array();if(a.length!==o.ID_COMMITMENT_LENGTH)throw new Error(`Id Commitment length in bytes should be ${o.ID_COMMITMENT_LENGTH}`);this.iss=e,this.idCommitment=a}authKey(){let e=new H;return e.serializeU32AsUleb128(3),e.serializeFixedBytes(this.bcsToBytes()),U.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}toString(){return p.fromHexInput(this.toUint8Array()).toString()}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){e.serializeStr(this.iss),e.serializeBytes(this.idCommitment)}static deserialize(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static load(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static isPublicKey(e){return e instanceof o}static create(e){return D(e),new o(e.iss,D(e))}static fromJwtAndPepper(e){let{jwt:t,pepper:a,uidKey:n="sub"}=e,s=F(t),c=s.iss;if(typeof s.aud!="string")throw new Error("aud was not found or an array of values");let R=s.aud,k=s[n];return o.create({iss:c,uidKey:n,uidVal:k,aud:R,pepper:a})}static isInstance(e){return"iss"in e&&typeof e.iss=="string"&&"idCommitment"in e&&e.idCommitment instanceof Uint8Array}};o.ID_COMMITMENT_LENGTH=32;var z=o;function D(i){let{uidKey:r,uidVal:e,aud:t,pepper:a}=i,n=[V(p.fromHexInput(a).toUint8Array()),h(t,L),h(e,O),h(r,N)];return v(B(n),z.ID_COMMITMENT_LENGTH)}var M=class i extends y{constructor(e){super();let{jwtHeader:t,ephemeralCertificate:a,expiryDateSecs:n,ephemeralPublicKey:s,ephemeralSignature:c}=e;this.jwtHeader=t,this.ephemeralCertificate=a,this.expiryDateSecs=n,this.ephemeralPublicKey=s,this.ephemeralSignature=c}toUint8Array(){return this.bcsToBytes()}serialize(e){this.ephemeralCertificate.serialize(e),e.serializeStr(this.jwtHeader),e.serializeU64(this.expiryDateSecs),this.ephemeralPublicKey.serialize(e),this.ephemeralSignature.serialize(e)}static deserialize(e){let t=g.deserialize(e),a=e.deserializeStr(),n=e.deserializeU64(),s=w.deserialize(e),c=m.deserialize(e);return new i({jwtHeader:a,expiryDateSecs:Number(n),ephemeralCertificate:t,ephemeralPublicKey:s,ephemeralSignature:c})}static getSimulationSignature(){return new i({jwtHeader:"{}",ephemeralCertificate:new g(new x({proof:new S(new f({a:new Uint8Array(32),b:new Uint8Array(64),c:new Uint8Array(32)}),0),expHorizonSecs:0}),0),expiryDateSecs:0,ephemeralPublicKey:new w(new I(new Uint8Array(32))),ephemeralSignature:new m(new P(new Uint8Array(64)))})}static isSignature(e){return e instanceof i}},g=class i extends y{constructor(e,t){super();this.signature=e,this.variant=t}toUint8Array(){return this.signature.toUint8Array()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(x.deserialize(e),t);default:throw new Error(`Unknown variant index for EphemeralCertificate: ${t}`)}}},l=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==32)throw new Error("Input needs to be 32 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(32);return new i(t)}},u=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==64)throw new Error("Input needs to be 64 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(64);return new i(t)}},f=class i extends T{constructor(e){super();let{a:t,b:a,c:n}=e;this.a=new l(t),this.b=new u(a),this.c=new l(n)}serialize(e){this.a.serialize(e),this.b.serialize(e),this.c.serialize(e)}static deserialize(e){let t=l.deserialize(e).bcsToBytes(),a=u.deserialize(e).bcsToBytes(),n=l.deserialize(e).bcsToBytes();return new i({a:t,b:a,c:n})}},S=class i extends d{constructor(e,t){super();this.proof=e,this.variant=t}serialize(e){e.serializeU32AsUleb128(this.variant),this.proof.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(f.deserialize(e),t);default:throw new Error(`Unknown variant index for ZkProof: ${t}`)}}},x=class i extends y{constructor(e){super();let{proof:t,expHorizonSecs:a,trainingWheelsSignature:n,extraField:s,overrideAudVal:c}=e;this.proof=t,this.expHorizonSecs=a,this.trainingWheelsSignature=n,this.extraField=s,this.overrideAudVal=c}toUint8Array(){return this.bcsToBytes()}static fromBytes(e){return i.deserialize(new E(e))}serialize(e){this.proof.serialize(e),e.serializeU64(this.expHorizonSecs),e.serializeOptionStr(this.extraField),e.serializeOptionStr(this.overrideAudVal),e.serializeOption(this.trainingWheelsSignature)}static deserialize(e){let t=S.deserialize(e),a=Number(e.deserializeU64()),n=e.deserializeOptionStr(),s=e.deserializeOptionStr(),c=e.deserializeOption(m);return new i({proof:t,expHorizonSecs:a,trainingWheelsSignature:c,extraField:n,overrideAudVal:s})}},K=class i{constructor(r,e){this.verficationKey=r,this.maxExpHorizonSecs=e}static create(r,e){return new i(new G({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2}),e)}},G=class i{constructor(r){let{alphaG1:e,betaG2:t,deltaG2:a,gammaAbcG1:n,gammaG2:s}=r;this.alphaG1=new l(e),this.betaG2=new u(t),this.deltaG2=new u(a),this.gammaAbcG1=[new l(n[0]),new l(n[1])],this.gammaG2=new u(s)}static fromGroth16VerificationKeyResponse(r){return new i({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2})}};async function we(i){let{aptosConfig:r}=i;return _(async()=>{let e=await j(i),t=await Z(i);return K.create(t,Number(e.max_exp_horizon_secs))},`keyless-configuration-${r.network}`,1e3*60*5)()}async function j(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Configuration",{data:a}=await A({aptosConfig:r,originMethod:"getKeylessConfigurationResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}async function Z(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Groth16VerificationKey",{data:a}=await A({aptosConfig:r,originMethod:"getGroth16VerificationKeyResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}export{ge as a,L as b,N as c,O as d,fe as e,Se as f,xe as g,be as h,z as i,M as j,g as k,f as l,S as m,x as n,K as o,we as p};
2
+ //# sourceMappingURL=chunk-DYMN66K5.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as T,d as c}from"./chunk-MJPZBN4E.mjs";import{g as A,h as a}from"./chunk-EXP5STXZ.mjs";import{sha3_256 as y}from"@noble/hashes/sha3";function d(e){return e.feePayerAddress?new c(e.rawTransaction,e.secondarySignerAddresses??[],e.feePayerAddress):e.secondarySignerAddresses?new T(e.rawTransaction,e.secondarySignerAddresses):e.rawTransaction}function n(e,r){let i=y.create();if(!r.startsWith("APTOS::"))throw new Error(`Domain separator needs to start with 'APTOS::'. Provided - ${r}`);i.update(r);let s=i.digest(),o=e,t=new Uint8Array(s.length+o.length);return t.set(s),t.set(o,s.length),t}function u(e){return n(e.bcsToBytes(),`APTOS::${e.constructor.name}`)}function S(e){let r=d(e);return e.feePayerAddress?n(r.bcsToBytes(),a):e.secondarySignerAddresses?n(r.bcsToBytes(),a):n(r.bcsToBytes(),A)}export{d as a,n as b,u as c,S as d};
2
- //# sourceMappingURL=chunk-SINSCI7V.mjs.map
1
+ import{c as T,d as c}from"./chunk-ND23H3AK.mjs";import{g as A,h as a}from"./chunk-EXP5STXZ.mjs";import{sha3_256 as y}from"@noble/hashes/sha3";function d(e){return e.feePayerAddress?new c(e.rawTransaction,e.secondarySignerAddresses??[],e.feePayerAddress):e.secondarySignerAddresses?new T(e.rawTransaction,e.secondarySignerAddresses):e.rawTransaction}function n(e,r){let i=y.create();if(!r.startsWith("APTOS::"))throw new Error(`Domain separator needs to start with 'APTOS::'. Provided - ${r}`);i.update(r);let s=i.digest(),o=e,t=new Uint8Array(s.length+o.length);return t.set(s),t.set(o,s.length),t}function u(e){return n(e.bcsToBytes(),`APTOS::${e.constructor.name}`)}function S(e){let r=d(e);return e.feePayerAddress?n(r.bcsToBytes(),a):e.secondarySignerAddresses?n(r.bcsToBytes(),a):n(r.bcsToBytes(),A)}export{d as a,n as b,u as c,S as d};
2
+ //# sourceMappingURL=chunk-E2WOZVJX.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r,b as t,c as o,d as s}from"./chunk-RAKS5RSI.mjs";var i=class{constructor(e){this.config=e}async getPepper(e){return r({aptosConfig:this.config,...e})}async getProof(e){return t({aptosConfig:this.config,...e})}async deriveKeylessAccount(e){return o({aptosConfig:this.config,...e})}async updateFederatedKeylessJwkSetTransaction(e){return s({aptosConfig:this.config,...e})}};export{i as a};
2
- //# sourceMappingURL=chunk-ILVZ3RHG.mjs.map
1
+ import{a as r,b as t,c as o,d as s}from"./chunk-45ILXL6K.mjs";var i=class{constructor(e){this.config=e}async getPepper(e){return r({aptosConfig:this.config,...e})}async getProof(e){return t({aptosConfig:this.config,...e})}async deriveKeylessAccount(e){return o({aptosConfig:this.config,...e})}async updateFederatedKeylessJwkSetTransaction(e){return s({aptosConfig:this.config,...e})}};export{i as a};
2
+ //# sourceMappingURL=chunk-ETQA37EP.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-4UB6MXQH.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
2
- //# sourceMappingURL=chunk-QEPPCEFH.mjs.map
1
+ import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-VBR46X5M.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
2
+ //# sourceMappingURL=chunk-F7R7ICUR.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as h,d as l}from"./chunk-G76BSSWS.mjs";import{b as E}from"./chunk-FOLCONSQ.mjs";import{a as p}from"./chunk-QP2A5ISX.mjs";import{a as g}from"./chunk-3CE63FFN.mjs";var o=class o extends E{constructor(r){super();let{publicKeys:e,threshold:t}=r;if(e.length>o.MAX_KEYS||e.length<o.MIN_KEYS)throw new Error(`Must have between ${o.MIN_KEYS} and ${o.MAX_KEYS} public keys, inclusive`);if(t<o.MIN_THRESHOLD||t>e.length)throw new Error(`Threshold must be between ${o.MIN_THRESHOLD} and ${e.length}, inclusive`);this.publicKeys=e,this.threshold=t}verifySignature(r){let{message:e,signature:t}=r;if(!(t instanceof y))return!1;let s=[];for(let i=0;i<4;i+=1)for(let n=0;n<8;n+=1)if((t.bitmap[i]&1<<7-n)!==0){let u=i*8+n;s.push(u)}if(s.length!==t.signatures.length)throw new Error("Bitmap and signatures length mismatch");if(s.length<this.threshold)throw new Error("Not enough signatures");for(let i=0;i<s.length;i+=1)if(!this.publicKeys[s[i]].verifySignature({message:e,signature:t.signatures[i]}))return!1;return!0}authKey(){return g.fromSchemeAndBytes({scheme:1,input:this.toUint8Array()})}toUint8Array(){let r=new Uint8Array(this.publicKeys.length*h.LENGTH+1);return this.publicKeys.forEach((e,t)=>{r.set(e.toUint8Array(),t*h.LENGTH)}),r[this.publicKeys.length*h.LENGTH]=this.threshold,r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e[e.length-1],s=[];for(let i=0;i<e.length-1;i+=h.LENGTH){let n=i;s.push(new h(e.subarray(n,n+h.LENGTH)))}return new o({publicKeys:s,threshold:t})}};o.MAX_KEYS=32,o.MIN_KEYS=2,o.MIN_THRESHOLD=1;var d=o,a=class a extends p{constructor(r){super();let{signatures:e,bitmap:t}=r;if(e.length>a.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${a.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=e,!(t instanceof Uint8Array))this.bitmap=a.createBitmap({bits:t});else{if(t.length!==a.BITMAP_LEN)throw new Error(`"bitmap" length should be ${a.BITMAP_LEN}`);this.bitmap=t}}toUint8Array(){let r=new Uint8Array(this.signatures.length*l.LENGTH+a.BITMAP_LEN);return this.signatures.forEach((e,t)=>{r.set(e.toUint8Array(),t*l.LENGTH)}),r.set(this.bitmap,this.signatures.length*l.LENGTH),r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e.subarray(e.length-4),s=[];for(let i=0;i<e.length-t.length;i+=l.LENGTH){let n=i;s.push(new l(e.subarray(n,n+l.LENGTH)))}return new a({signatures:s,bitmap:t})}static createBitmap(r){let{bits:e}=r,t=128,s=new Uint8Array([0,0,0,0]),i=new Set;return e.forEach((n,c)=>{if(n>=a.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${a.MAX_SIGNATURES_SUPPORTED-1}.`);if(i.has(n))throw new Error("Duplicate bits detected.");if(c>0&&n<=e[c-1])throw new Error("The bits need to be sorted in ascending order.");i.add(n);let u=Math.floor(n/8),b=s[u];b|=t>>n%8,s[u]=b}),s}};a.MAX_SIGNATURES_SUPPORTED=32,a.BITMAP_LEN=4;var y=a;export{d as a,y as b};
2
- //# sourceMappingURL=chunk-XFG6LGA6.mjs.map
1
+ import{b as h,d as l}from"./chunk-7T5CUI2H.mjs";import{b as E}from"./chunk-FOLCONSQ.mjs";import{a as p}from"./chunk-QP2A5ISX.mjs";import{a as g}from"./chunk-3CE63FFN.mjs";var o=class o extends E{constructor(r){super();let{publicKeys:e,threshold:t}=r;if(e.length>o.MAX_KEYS||e.length<o.MIN_KEYS)throw new Error(`Must have between ${o.MIN_KEYS} and ${o.MAX_KEYS} public keys, inclusive`);if(t<o.MIN_THRESHOLD||t>e.length)throw new Error(`Threshold must be between ${o.MIN_THRESHOLD} and ${e.length}, inclusive`);this.publicKeys=e,this.threshold=t}verifySignature(r){let{message:e,signature:t}=r;if(!(t instanceof y))return!1;let s=[];for(let i=0;i<4;i+=1)for(let n=0;n<8;n+=1)if((t.bitmap[i]&1<<7-n)!==0){let u=i*8+n;s.push(u)}if(s.length!==t.signatures.length)throw new Error("Bitmap and signatures length mismatch");if(s.length<this.threshold)throw new Error("Not enough signatures");for(let i=0;i<s.length;i+=1)if(!this.publicKeys[s[i]].verifySignature({message:e,signature:t.signatures[i]}))return!1;return!0}authKey(){return g.fromSchemeAndBytes({scheme:1,input:this.toUint8Array()})}toUint8Array(){let r=new Uint8Array(this.publicKeys.length*h.LENGTH+1);return this.publicKeys.forEach((e,t)=>{r.set(e.toUint8Array(),t*h.LENGTH)}),r[this.publicKeys.length*h.LENGTH]=this.threshold,r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e[e.length-1],s=[];for(let i=0;i<e.length-1;i+=h.LENGTH){let n=i;s.push(new h(e.subarray(n,n+h.LENGTH)))}return new o({publicKeys:s,threshold:t})}};o.MAX_KEYS=32,o.MIN_KEYS=2,o.MIN_THRESHOLD=1;var d=o,a=class a extends p{constructor(r){super();let{signatures:e,bitmap:t}=r;if(e.length>a.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${a.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=e,!(t instanceof Uint8Array))this.bitmap=a.createBitmap({bits:t});else{if(t.length!==a.BITMAP_LEN)throw new Error(`"bitmap" length should be ${a.BITMAP_LEN}`);this.bitmap=t}}toUint8Array(){let r=new Uint8Array(this.signatures.length*l.LENGTH+a.BITMAP_LEN);return this.signatures.forEach((e,t)=>{r.set(e.toUint8Array(),t*l.LENGTH)}),r.set(this.bitmap,this.signatures.length*l.LENGTH),r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e.subarray(e.length-4),s=[];for(let i=0;i<e.length-t.length;i+=l.LENGTH){let n=i;s.push(new l(e.subarray(n,n+l.LENGTH)))}return new a({signatures:s,bitmap:t})}static createBitmap(r){let{bits:e}=r,t=128,s=new Uint8Array([0,0,0,0]),i=new Set;return e.forEach((n,c)=>{if(n>=a.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${a.MAX_SIGNATURES_SUPPORTED-1}.`);if(i.has(n))throw new Error("Duplicate bits detected.");if(c>0&&n<=e[c-1])throw new Error("The bits need to be sorted in ascending order.");i.add(n);let u=Math.floor(n/8),b=s[u];b|=t>>n%8,s[u]=b}),s}};a.MAX_SIGNATURES_SUPPORTED=32,a.BITMAP_LEN=4;var y=a;export{d as a,y as b};
2
+ //# sourceMappingURL=chunk-FDD6WNN6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u,b as l}from"./chunk-R5QDWL5W.mjs";import{b as g}from"./chunk-FOLCONSQ.mjs";import{a as f}from"./chunk-QP2A5ISX.mjs";import{a as m}from"./chunk-3CE63FFN.mjs";function A(y){let o=y;return o-=o>>1&1431655765,o=(o&858993459)+(o>>2&858993459),(o+(o>>4)&252645135)*16843009>>24}var p=class y extends g{constructor(e){super();let{publicKeys:r,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(r.length<t)throw new Error(`Provided ${r.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=r.map(i=>i instanceof u?i:new u(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return m.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let r=e.deserializeVector(u),t=e.deserializeU8();return new y({publicKeys:r,signaturesRequired:t})}createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach((n,c)=>{if(c+1>this.publicKeys.length)throw new Error(`Signature index ${c+1} is out of public keys range, ${this.publicKeys.length}.`);if(a.has(n))throw new Error(`Duplicate bit ${n} detected.`);a.add(n);let h=Math.floor(n/8),b=i[h];b|=t>>n%8,i[h]=b}),i}getIndex(e){let r=e instanceof u?e:new u(e),t=this.publicKeys.findIndex(i=>i.toString()===r.toString());if(t!==-1)return t;throw new Error("Public key not found in MultiKey")}},s=class s extends f{constructor(e){super();let{signatures:r,bitmap:t}=e;if(r.length>s.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${s.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=r.map(a=>a instanceof l?a:new l(a)),!(t instanceof Uint8Array))this.bitmap=s.createBitmap({bits:t});else{if(t.length!==s.BITMAP_LEN)throw new Error(`"bitmap" length should be ${s.BITMAP_LEN}`);this.bitmap=t}let i=this.bitmap.reduce((a,n)=>a+A(n),0);if(i!==this.signatures.length)throw new Error(`Expecting ${i} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach(n=>{if(n>=s.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${s.MAX_SIGNATURES_SUPPORTED-1}.`);if(a.has(n))throw new Error("Duplicate bits detected.");a.add(n);let c=Math.floor(n/8),h=i[c];h|=t>>n%8,i[c]=h}),i}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(l),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var d=s;export{p as a,d as b};
2
- //# sourceMappingURL=chunk-ZOEZVSPX.mjs.map
1
+ import{a as u,b as l}from"./chunk-ASQIKTEF.mjs";import{b as g}from"./chunk-FOLCONSQ.mjs";import{a as f}from"./chunk-QP2A5ISX.mjs";import{a as m}from"./chunk-3CE63FFN.mjs";function A(y){let o=y;return o-=o>>1&1431655765,o=(o&858993459)+(o>>2&858993459),(o+(o>>4)&252645135)*16843009>>24}var p=class y extends g{constructor(e){super();let{publicKeys:r,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(r.length<t)throw new Error(`Provided ${r.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=r.map(i=>i instanceof u?i:new u(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return m.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let r=e.deserializeVector(u),t=e.deserializeU8();return new y({publicKeys:r,signaturesRequired:t})}createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach((n,c)=>{if(c+1>this.publicKeys.length)throw new Error(`Signature index ${c+1} is out of public keys range, ${this.publicKeys.length}.`);if(a.has(n))throw new Error(`Duplicate bit ${n} detected.`);a.add(n);let h=Math.floor(n/8),b=i[h];b|=t>>n%8,i[h]=b}),i}getIndex(e){let r=e instanceof u?e:new u(e),t=this.publicKeys.findIndex(i=>i.toString()===r.toString());if(t!==-1)return t;throw new Error("Public key not found in MultiKey")}},s=class s extends f{constructor(e){super();let{signatures:r,bitmap:t}=e;if(r.length>s.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${s.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=r.map(a=>a instanceof l?a:new l(a)),!(t instanceof Uint8Array))this.bitmap=s.createBitmap({bits:t});else{if(t.length!==s.BITMAP_LEN)throw new Error(`"bitmap" length should be ${s.BITMAP_LEN}`);this.bitmap=t}let i=this.bitmap.reduce((a,n)=>a+A(n),0);if(i!==this.signatures.length)throw new Error(`Expecting ${i} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach(n=>{if(n>=s.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${s.MAX_SIGNATURES_SUPPORTED-1}.`);if(a.has(n))throw new Error("Duplicate bits detected.");a.add(n);let c=Math.floor(n/8),h=i[c];h|=t>>n%8,i[c]=h}),i}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(l),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var d=s;export{p as a,d as b};
2
+ //# sourceMappingURL=chunk-FDTLBR6D.mjs.map