@aptos-labs/ts-sdk 1.13.0-zeta.1 → 1.13.1

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 (472) hide show
  1. package/dist/common/index.d.ts +1399 -1825
  2. package/dist/common/index.js +26 -26
  3. package/dist/common/index.js.map +1 -1
  4. package/dist/esm/{Ed25519Account-hkKk3b4Z.d.mts → Ed25519Account--qjfup2u.d.mts} +13 -11
  5. package/dist/esm/api/account.d.mts +1 -13
  6. package/dist/esm/api/account.mjs +1 -1
  7. package/dist/esm/api/ans.d.mts +12 -12
  8. package/dist/esm/api/ans.mjs +1 -1
  9. package/dist/esm/api/aptos.d.mts +8 -15
  10. package/dist/esm/api/aptos.mjs +1 -1
  11. package/dist/esm/api/aptosConfig.d.mts +0 -20
  12. package/dist/esm/api/aptosConfig.mjs +1 -1
  13. package/dist/esm/api/coin.d.mts +7 -7
  14. package/dist/esm/api/coin.mjs +1 -1
  15. package/dist/esm/api/digitalAsset.d.mts +9 -9
  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.d.mts +9 -9
  20. package/dist/esm/api/fungibleAsset.mjs +1 -1
  21. package/dist/esm/api/general.d.mts +7 -7
  22. package/dist/esm/api/general.mjs +1 -1
  23. package/dist/esm/api/index.d.mts +8 -14
  24. package/dist/esm/api/index.mjs +1 -1
  25. package/dist/esm/api/staking.mjs +1 -1
  26. package/dist/esm/api/transaction.d.mts +1 -1
  27. package/dist/esm/api/transaction.mjs +1 -1
  28. package/dist/esm/api/transactionSubmission/build.d.mts +2 -2
  29. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  30. package/dist/esm/api/transactionSubmission/management.d.mts +8 -8
  31. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  32. package/dist/esm/api/transactionSubmission/sign.d.mts +1 -1
  33. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  34. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  35. package/dist/esm/api/transactionSubmission/simulate.d.mts +6 -6
  36. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  37. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  38. package/dist/esm/api/utils.mjs +1 -1
  39. package/dist/esm/bcs/index.mjs +1 -1
  40. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  41. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  42. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  43. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  44. package/dist/esm/bcs/serializer.d.mts +0 -2
  45. package/dist/esm/bcs/serializer.mjs +1 -1
  46. package/dist/esm/{chunk-RBDX3YWC.mjs → chunk-2SPJ7XZB.mjs} +2 -2
  47. package/dist/esm/chunk-32PB5F74.mjs +2 -0
  48. package/dist/esm/chunk-32PB5F74.mjs.map +1 -0
  49. package/dist/esm/chunk-3YCG7Y63.mjs +2 -0
  50. package/dist/esm/chunk-3YCG7Y63.mjs.map +1 -0
  51. package/dist/esm/chunk-4QMXOWHP.mjs +1 -0
  52. package/dist/esm/{chunk-7M3U2I23.mjs → chunk-4UJ5Y6QQ.mjs} +2 -2
  53. package/dist/esm/{chunk-52DBSOFA.mjs → chunk-52C73T26.mjs} +2 -2
  54. package/dist/esm/{chunk-52DBSOFA.mjs.map → chunk-52C73T26.mjs.map} +1 -1
  55. package/dist/esm/chunk-5M7D6SXS.mjs +2 -0
  56. package/dist/esm/chunk-5M7D6SXS.mjs.map +1 -0
  57. package/dist/esm/chunk-5RE43AX2.mjs +2 -0
  58. package/dist/esm/{chunk-OVXWFD2N.mjs.map → chunk-5RE43AX2.mjs.map} +1 -1
  59. package/dist/esm/{chunk-YNBWXDRS.mjs → chunk-6GZ5SUUK.mjs} +2 -2
  60. package/dist/esm/{chunk-XESYWLDD.mjs → chunk-6T4IFH73.mjs} +2 -2
  61. package/dist/esm/chunk-6T4IFH73.mjs.map +1 -0
  62. package/dist/esm/{chunk-5TNUDFLP.mjs → chunk-BGW77OLE.mjs} +2 -2
  63. package/dist/esm/{chunk-MRCVSUJQ.mjs → chunk-BWFJHFBQ.mjs} +2 -2
  64. package/dist/esm/chunk-CYNQRMO5.mjs +2 -0
  65. package/dist/esm/chunk-CYNQRMO5.mjs.map +1 -0
  66. package/dist/esm/chunk-CYTNMIOT.mjs +2 -0
  67. package/dist/esm/chunk-CYTNMIOT.mjs.map +1 -0
  68. package/dist/esm/{chunk-BQCIUNLZ.mjs → chunk-CZF6JTC2.mjs} +2 -2
  69. package/dist/esm/chunk-DJ5TUMIY.mjs +2 -0
  70. package/dist/esm/chunk-DJ5TUMIY.mjs.map +1 -0
  71. package/dist/esm/{chunk-Q225PZMV.mjs → chunk-DMKUAQB7.mjs} +2 -2
  72. package/dist/esm/{chunk-RM7D2ITN.mjs → chunk-DSTKXJMA.mjs} +2 -2
  73. package/dist/esm/{chunk-P4UY6YKM.mjs → chunk-DW4FAHFT.mjs} +2 -2
  74. package/dist/esm/{chunk-CHL5NDZD.mjs → chunk-DW5XFUDM.mjs} +2 -2
  75. package/dist/esm/chunk-E7FWVXGX.mjs +1 -0
  76. package/dist/esm/{chunk-CYWA4AJF.mjs → chunk-E7OPTWPP.mjs} +2 -2
  77. package/dist/esm/{chunk-5D65Z2SG.mjs → chunk-F2LL2BWZ.mjs} +2 -2
  78. package/dist/esm/chunk-F2LL2BWZ.mjs.map +1 -0
  79. package/dist/esm/{chunk-3FL3NLZ6.mjs → chunk-F5O5BBEK.mjs} +2 -2
  80. package/dist/esm/{chunk-35ZI4WOQ.mjs → chunk-FS3NSGBF.mjs} +2 -2
  81. package/dist/esm/chunk-H3NRKYG4.mjs +2 -0
  82. package/dist/esm/chunk-H3NRKYG4.mjs.map +1 -0
  83. package/dist/esm/chunk-HDDI532F.mjs +2 -0
  84. package/dist/esm/chunk-HDDI532F.mjs.map +1 -0
  85. package/dist/esm/chunk-HHETZQ6D.mjs +2 -0
  86. package/dist/esm/{chunk-TR6Q7RSZ.mjs.map → chunk-HHETZQ6D.mjs.map} +1 -1
  87. package/dist/esm/{chunk-T3QZ5HSE.mjs → chunk-HLBUOMKA.mjs} +2 -2
  88. package/dist/esm/chunk-HLBUOMKA.mjs.map +1 -0
  89. package/dist/esm/{chunk-NU6UF6RM.mjs → chunk-I24X55BI.mjs} +2 -2
  90. package/dist/esm/{chunk-2QGT5DK3.mjs → chunk-I2RHCBHM.mjs} +2 -2
  91. package/dist/esm/{chunk-2I2XAOH7.mjs → chunk-ILTVKYMT.mjs} +2 -2
  92. package/dist/esm/{chunk-U7EZI5D5.mjs → chunk-IOSQVDZI.mjs} +2 -2
  93. package/dist/esm/{chunk-R25D6NBC.mjs → chunk-J5WUVXKC.mjs} +2 -2
  94. package/dist/esm/chunk-J5WUVXKC.mjs.map +1 -0
  95. package/dist/esm/{chunk-VJCQBX6V.mjs → chunk-JAIQBRLH.mjs} +2 -2
  96. package/dist/esm/{chunk-XJFGX3E4.mjs → chunk-JK23P2GY.mjs} +2 -2
  97. package/dist/esm/chunk-JK23P2GY.mjs.map +1 -0
  98. package/dist/esm/chunk-KBRRTSF6.mjs +2 -0
  99. package/dist/esm/{chunk-T7TIIAWK.mjs.map → chunk-KBRRTSF6.mjs.map} +1 -1
  100. package/dist/esm/{chunk-YP3RMVL3.mjs → chunk-KECXKWWV.mjs} +2 -2
  101. package/dist/esm/{chunk-YIG37BG2.mjs → chunk-LGVHYLN2.mjs} +2 -2
  102. package/dist/esm/chunk-LGVHYLN2.mjs.map +1 -0
  103. package/dist/esm/chunk-LJ6MB5U7.mjs +2 -0
  104. package/dist/esm/chunk-LR65XHSF.mjs +2 -0
  105. package/dist/esm/chunk-LR65XHSF.mjs.map +1 -0
  106. package/dist/esm/chunk-LYCGUGYR.mjs +2 -0
  107. package/dist/esm/chunk-LYCGUGYR.mjs.map +1 -0
  108. package/dist/esm/chunk-M3NK6GOI.mjs +2 -0
  109. package/dist/esm/chunk-M3NK6GOI.mjs.map +1 -0
  110. package/dist/esm/{chunk-B645DPPF.mjs → chunk-MFFSJJSY.mjs} +2 -2
  111. package/dist/esm/chunk-MLWIHWNH.mjs +1 -0
  112. package/dist/esm/chunk-MQXSU6GN.mjs +2 -0
  113. package/dist/esm/{chunk-LVYKZS54.mjs.map → chunk-MQXSU6GN.mjs.map} +1 -1
  114. package/dist/esm/{chunk-JYFKKB34.mjs → chunk-NPFNYP75.mjs} +2 -2
  115. package/dist/esm/{chunk-RXMGJBCP.mjs → chunk-O5ZLNJ6Z.mjs} +2 -2
  116. package/dist/esm/chunk-O5ZLNJ6Z.mjs.map +1 -0
  117. package/dist/esm/{chunk-V7VV5QW4.mjs → chunk-O7P52OOA.mjs} +2 -2
  118. package/dist/esm/{chunk-ZGWWPB3D.mjs → chunk-O7PPRJJC.mjs} +2 -2
  119. package/dist/esm/chunk-O7PPRJJC.mjs.map +1 -0
  120. package/dist/esm/chunk-OATDMLDK.mjs +2 -0
  121. package/dist/esm/chunk-OATDMLDK.mjs.map +1 -0
  122. package/dist/esm/chunk-OMC3ZGKN.mjs +2 -0
  123. package/dist/esm/chunk-OMC3ZGKN.mjs.map +1 -0
  124. package/dist/esm/chunk-OVJQWQ2N.mjs +2 -0
  125. package/dist/esm/chunk-OVJQWQ2N.mjs.map +1 -0
  126. package/dist/esm/chunk-OWW6SIDP.mjs +2 -0
  127. package/dist/esm/chunk-OWW6SIDP.mjs.map +1 -0
  128. package/dist/esm/{chunk-MKHPGY3O.mjs → chunk-OZNBOCEF.mjs} +2 -2
  129. package/dist/esm/chunk-PNGS6IWC.mjs +2 -0
  130. package/dist/esm/{chunk-VVJEWB26.mjs → chunk-QIAHBEEW.mjs} +2 -2
  131. package/dist/esm/{chunk-ED6PYTNG.mjs → chunk-QM4UQVGB.mjs} +2 -2
  132. package/dist/esm/{chunk-KX5ESZO7.mjs → chunk-R5QUBEH6.mjs} +2 -2
  133. package/dist/esm/chunk-R7G3CLRI.mjs +1 -0
  134. package/dist/esm/{chunk-WZCUABDL.mjs → chunk-RHBCVCOS.mjs} +2 -2
  135. package/dist/esm/{chunk-7EQOLMEJ.mjs → chunk-TBMAJ6AW.mjs} +2 -2
  136. package/dist/esm/{chunk-IVBYTTN7.mjs → chunk-U43IJHQN.mjs} +2 -2
  137. package/dist/esm/{chunk-XI4LX4EC.mjs → chunk-UML2VQZT.mjs} +2 -2
  138. package/dist/esm/chunk-UVSRX4SV.mjs +1 -0
  139. package/dist/esm/chunk-V6SPPOWX.mjs +2 -0
  140. package/dist/esm/chunk-VVMR7UKB.mjs +2 -0
  141. package/dist/esm/chunk-VVMR7UKB.mjs.map +1 -0
  142. package/dist/esm/{chunk-2VCKY2ZJ.mjs → chunk-WFL6YWJS.mjs} +2 -2
  143. package/dist/esm/{chunk-HZC6A3QL.mjs → chunk-WFZDFFBM.mjs} +2 -2
  144. package/dist/esm/chunk-WZNX3RBA.mjs +2 -0
  145. package/dist/esm/chunk-XDGQTMDV.mjs +2 -0
  146. package/dist/esm/chunk-XDGQTMDV.mjs.map +1 -0
  147. package/dist/esm/chunk-XRAL7KVT.mjs +2 -0
  148. package/dist/esm/chunk-XRAL7KVT.mjs.map +1 -0
  149. package/dist/esm/{chunk-U426PZNM.mjs → chunk-Y5GRH4YJ.mjs} +2 -2
  150. package/dist/esm/chunk-Y5GRH4YJ.mjs.map +1 -0
  151. package/dist/esm/{chunk-KMHJNUXU.mjs → chunk-YUN2JVAN.mjs} +2 -2
  152. package/dist/esm/{chunk-KBSAS57Q.mjs → chunk-YVIP7DMT.mjs} +2 -2
  153. package/dist/esm/{chunk-OAOJVE5X.mjs → chunk-YWN2T4IU.mjs} +2 -2
  154. package/dist/esm/chunk-YZKDNVA5.mjs +2 -0
  155. package/dist/esm/chunk-YZKDNVA5.mjs.map +1 -0
  156. package/dist/esm/{chunk-UZHVGPGH.mjs → chunk-ZYYK3UXP.mjs} +2 -2
  157. package/dist/esm/client/core.mjs +1 -1
  158. package/dist/esm/client/get.d.mts +1 -2
  159. package/dist/esm/client/get.mjs +1 -1
  160. package/dist/esm/client/index.d.mts +2 -2
  161. package/dist/esm/client/index.mjs +1 -1
  162. package/dist/esm/client/post.d.mts +1 -3
  163. package/dist/esm/client/post.mjs +1 -1
  164. package/dist/esm/core/account/Account.d.mts +20 -0
  165. package/dist/esm/core/account/Account.mjs +2 -0
  166. package/dist/esm/core/account/Ed25519Account.d.mts +20 -0
  167. package/dist/esm/core/account/Ed25519Account.mjs +2 -0
  168. package/dist/esm/core/account/SingleKeyAccount.d.mts +20 -0
  169. package/dist/esm/core/account/SingleKeyAccount.mjs +2 -0
  170. package/dist/esm/core/account/index.d.mts +21 -0
  171. package/dist/esm/core/account/index.mjs +2 -0
  172. package/dist/esm/core/account/utils/address.mjs +1 -1
  173. package/dist/esm/core/account/utils/index.mjs +1 -1
  174. package/dist/esm/core/accountAddress.mjs +1 -1
  175. package/dist/esm/core/authenticationKey.mjs +1 -1
  176. package/dist/esm/core/crypto/ed25519.d.mts +10 -0
  177. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  178. package/dist/esm/core/crypto/hdKey.d.mts +1 -15
  179. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  180. package/dist/esm/core/crypto/index.d.mts +5 -7
  181. package/dist/esm/core/crypto/index.mjs +1 -1
  182. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  183. package/dist/esm/core/crypto/multiKey.d.mts +3 -4
  184. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  185. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  186. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  187. package/dist/esm/core/crypto/signature.mjs +1 -1
  188. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  189. package/dist/esm/core/index.d.mts +7 -6
  190. package/dist/esm/core/index.mjs +1 -1
  191. package/dist/esm/index.d.mts +9 -15
  192. package/dist/esm/index.mjs +1 -1
  193. package/dist/esm/internal/account.d.mts +1 -13
  194. package/dist/esm/internal/account.mjs +1 -1
  195. package/dist/esm/internal/ans.d.mts +3 -3
  196. package/dist/esm/internal/ans.mjs +1 -1
  197. package/dist/esm/internal/coin.d.mts +7 -7
  198. package/dist/esm/internal/coin.mjs +1 -1
  199. package/dist/esm/internal/digitalAsset.d.mts +10 -10
  200. package/dist/esm/internal/digitalAsset.mjs +1 -1
  201. package/dist/esm/internal/event.d.mts +1 -1
  202. package/dist/esm/internal/event.mjs +1 -1
  203. package/dist/esm/internal/faucet.d.mts +1 -1
  204. package/dist/esm/internal/faucet.mjs +1 -1
  205. package/dist/esm/internal/fungibleAsset.d.mts +9 -9
  206. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  207. package/dist/esm/internal/general.mjs +1 -1
  208. package/dist/esm/internal/staking.d.mts +1 -1
  209. package/dist/esm/internal/staking.mjs +1 -1
  210. package/dist/esm/internal/transaction.mjs +1 -1
  211. package/dist/esm/internal/transactionSubmission.d.mts +1 -1
  212. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  213. package/dist/esm/internal/view.d.mts +7 -7
  214. package/dist/esm/internal/view.mjs +1 -1
  215. package/dist/esm/transactions/authenticator/account.d.mts +4 -3
  216. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  217. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  218. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  219. package/dist/esm/transactions/index.d.mts +2 -2
  220. package/dist/esm/transactions/index.mjs +1 -1
  221. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  222. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  223. package/dist/esm/transactions/instances/index.mjs +1 -1
  224. package/dist/esm/transactions/instances/moduleId.d.mts +1 -1
  225. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  226. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  227. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  228. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  229. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  230. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  231. package/dist/esm/transactions/instances/transactionPayload.d.mts +1 -1
  232. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  233. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +1 -13
  234. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  235. package/dist/esm/transactions/management/index.d.mts +2 -2
  236. package/dist/esm/transactions/management/index.mjs +1 -1
  237. package/dist/esm/transactions/management/transactionWorker.d.mts +1 -1
  238. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  239. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +9 -9
  240. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  241. package/dist/esm/transactions/transactionBuilder/index.d.mts +9 -9
  242. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  243. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +6 -6
  244. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  245. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +28 -6
  246. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  247. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  248. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  249. package/dist/esm/transactions/types.d.mts +6 -6
  250. package/dist/esm/types/index.d.mts +3 -17
  251. package/dist/esm/types/index.mjs +1 -1
  252. package/dist/esm/utils/apiEndpoints.d.mts +1 -3
  253. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  254. package/dist/esm/utils/const.d.mts +3 -5
  255. package/dist/esm/utils/const.mjs +1 -1
  256. package/dist/esm/utils/index.d.mts +1 -1
  257. package/dist/esm/utils/index.mjs +1 -1
  258. package/dist/esm/version.d.mts +1 -1
  259. package/dist/esm/version.mjs +1 -1
  260. package/package.json +2 -7
  261. package/src/api/account.ts +1 -2
  262. package/src/api/ans.ts +1 -2
  263. package/src/api/aptos.ts +0 -6
  264. package/src/api/aptosConfig.ts +1 -46
  265. package/src/api/digitalAsset.ts +1 -2
  266. package/src/api/fungibleAsset.ts +1 -2
  267. package/src/api/transaction.ts +1 -2
  268. package/src/api/transactionSubmission/management.ts +1 -1
  269. package/src/api/transactionSubmission/sign.ts +1 -1
  270. package/src/bcs/serializer.ts +0 -18
  271. package/src/client/core.ts +0 -8
  272. package/src/client/get.ts +0 -6
  273. package/src/client/post.ts +0 -13
  274. package/src/{account → core/account}/Account.ts +16 -12
  275. package/src/{account → core/account}/Ed25519Account.ts +7 -13
  276. package/src/{account → core/account}/SingleKeyAccount.ts +7 -13
  277. package/src/core/account/index.ts +4 -0
  278. package/src/core/crypto/ed25519.ts +24 -6
  279. package/src/core/crypto/hdKey.ts +0 -31
  280. package/src/core/crypto/index.ts +0 -2
  281. package/src/core/crypto/multiKey.ts +11 -23
  282. package/src/core/crypto/singleKey.ts +0 -11
  283. package/src/core/index.ts +1 -0
  284. package/src/index.ts +0 -1
  285. package/src/internal/account.ts +1 -1
  286. package/src/internal/ans.ts +1 -2
  287. package/src/internal/digitalAsset.ts +1 -2
  288. package/src/internal/fungibleAsset.ts +1 -2
  289. package/src/internal/transactionSubmission.ts +10 -9
  290. package/src/transactions/authenticator/account.ts +11 -6
  291. package/src/transactions/management/accountSequenceNumber.ts +1 -1
  292. package/src/transactions/management/transactionWorker.ts +2 -8
  293. package/src/transactions/transactionBuilder/index.ts +0 -2
  294. package/src/transactions/transactionBuilder/transactionBuilder.ts +128 -40
  295. package/src/types/index.ts +0 -20
  296. package/src/utils/apiEndpoints.ts +1 -14
  297. package/src/utils/const.ts +2 -4
  298. package/src/version.ts +1 -1
  299. package/dist/esm/account/Account.d.mts +0 -34
  300. package/dist/esm/account/Account.mjs +0 -2
  301. package/dist/esm/account/Ed25519Account.d.mts +0 -34
  302. package/dist/esm/account/Ed25519Account.mjs +0 -2
  303. package/dist/esm/account/EphemeralKeyPair.d.mts +0 -42
  304. package/dist/esm/account/EphemeralKeyPair.mjs +0 -2
  305. package/dist/esm/account/KeylessAccount.d.mts +0 -85
  306. package/dist/esm/account/KeylessAccount.mjs +0 -2
  307. package/dist/esm/account/MultiKeyAccount.d.mts +0 -99
  308. package/dist/esm/account/MultiKeyAccount.mjs +0 -2
  309. package/dist/esm/account/SingleKeyAccount.d.mts +0 -34
  310. package/dist/esm/account/SingleKeyAccount.mjs +0 -2
  311. package/dist/esm/account/index.d.mts +0 -39
  312. package/dist/esm/account/index.mjs +0 -2
  313. package/dist/esm/api/keyless.d.mts +0 -75
  314. package/dist/esm/api/keyless.mjs +0 -2
  315. package/dist/esm/chunk-2FKQJL3H.mjs +0 -2
  316. package/dist/esm/chunk-2FKQJL3H.mjs.map +0 -1
  317. package/dist/esm/chunk-2HXKDHMA.mjs +0 -2
  318. package/dist/esm/chunk-2HXKDHMA.mjs.map +0 -1
  319. package/dist/esm/chunk-2MPLQPZT.mjs +0 -2
  320. package/dist/esm/chunk-2MPLQPZT.mjs.map +0 -1
  321. package/dist/esm/chunk-2Z4N3GLA.mjs +0 -2
  322. package/dist/esm/chunk-2Z4N3GLA.mjs.map +0 -1
  323. package/dist/esm/chunk-3J2Q7O57.mjs +0 -2
  324. package/dist/esm/chunk-3J2Q7O57.mjs.map +0 -1
  325. package/dist/esm/chunk-4AOGG725.mjs +0 -2
  326. package/dist/esm/chunk-4AOGG725.mjs.map +0 -1
  327. package/dist/esm/chunk-5D65Z2SG.mjs.map +0 -1
  328. package/dist/esm/chunk-5GIWRESN.mjs +0 -2
  329. package/dist/esm/chunk-6OKRMOWR.mjs +0 -2
  330. package/dist/esm/chunk-6OKRMOWR.mjs.map +0 -1
  331. package/dist/esm/chunk-7Z6DYLCA.mjs +0 -1
  332. package/dist/esm/chunk-ACOL3VVP.mjs +0 -2
  333. package/dist/esm/chunk-ACOL3VVP.mjs.map +0 -1
  334. package/dist/esm/chunk-AQ4I7VVB.mjs +0 -1
  335. package/dist/esm/chunk-AQ4I7VVB.mjs.map +0 -1
  336. package/dist/esm/chunk-ATXQWKVH.mjs +0 -2
  337. package/dist/esm/chunk-ATXQWKVH.mjs.map +0 -1
  338. package/dist/esm/chunk-EMFDNUP2.mjs +0 -2
  339. package/dist/esm/chunk-EMFDNUP2.mjs.map +0 -1
  340. package/dist/esm/chunk-EY3FIYMV.mjs +0 -2
  341. package/dist/esm/chunk-EY3FIYMV.mjs.map +0 -1
  342. package/dist/esm/chunk-FLYEALDB.mjs +0 -2
  343. package/dist/esm/chunk-FLYEALDB.mjs.map +0 -1
  344. package/dist/esm/chunk-HTO4EQNT.mjs +0 -2
  345. package/dist/esm/chunk-HTO4EQNT.mjs.map +0 -1
  346. package/dist/esm/chunk-J5SQQQPI.mjs +0 -2
  347. package/dist/esm/chunk-JXCZTOYC.mjs +0 -1
  348. package/dist/esm/chunk-JXCZTOYC.mjs.map +0 -1
  349. package/dist/esm/chunk-KWDJ4YOP.mjs +0 -2
  350. package/dist/esm/chunk-KWDJ4YOP.mjs.map +0 -1
  351. package/dist/esm/chunk-LVYKZS54.mjs +0 -2
  352. package/dist/esm/chunk-MAFSWKAF.mjs +0 -2
  353. package/dist/esm/chunk-MAFSWKAF.mjs.map +0 -1
  354. package/dist/esm/chunk-MX3YIOU5.mjs +0 -2
  355. package/dist/esm/chunk-MX3YIOU5.mjs.map +0 -1
  356. package/dist/esm/chunk-NJWTXEHT.mjs +0 -2
  357. package/dist/esm/chunk-NJWTXEHT.mjs.map +0 -1
  358. package/dist/esm/chunk-ODA4KV4Q.mjs +0 -2
  359. package/dist/esm/chunk-OVXWFD2N.mjs +0 -2
  360. package/dist/esm/chunk-Q6CZDSLM.mjs +0 -2
  361. package/dist/esm/chunk-R25D6NBC.mjs.map +0 -1
  362. package/dist/esm/chunk-RFSO3JRG.mjs +0 -1
  363. package/dist/esm/chunk-RFSO3JRG.mjs.map +0 -1
  364. package/dist/esm/chunk-RXMGJBCP.mjs.map +0 -1
  365. package/dist/esm/chunk-S5HG2QUD.mjs +0 -2
  366. package/dist/esm/chunk-S5HG2QUD.mjs.map +0 -1
  367. package/dist/esm/chunk-SCPXFKEK.mjs +0 -2
  368. package/dist/esm/chunk-SCPXFKEK.mjs.map +0 -1
  369. package/dist/esm/chunk-T3QZ5HSE.mjs.map +0 -1
  370. package/dist/esm/chunk-T7TIIAWK.mjs +0 -2
  371. package/dist/esm/chunk-TR6Q7RSZ.mjs +0 -2
  372. package/dist/esm/chunk-TT2VLL52.mjs +0 -2
  373. package/dist/esm/chunk-TT2VLL52.mjs.map +0 -1
  374. package/dist/esm/chunk-U426PZNM.mjs.map +0 -1
  375. package/dist/esm/chunk-ULUMROUJ.mjs +0 -2
  376. package/dist/esm/chunk-ULUMROUJ.mjs.map +0 -1
  377. package/dist/esm/chunk-VAZQVN5V.mjs +0 -2
  378. package/dist/esm/chunk-VAZQVN5V.mjs.map +0 -1
  379. package/dist/esm/chunk-WF737YNO.mjs +0 -2
  380. package/dist/esm/chunk-WF737YNO.mjs.map +0 -1
  381. package/dist/esm/chunk-XESYWLDD.mjs.map +0 -1
  382. package/dist/esm/chunk-XJ3HRNOP.mjs +0 -2
  383. package/dist/esm/chunk-XJ3HRNOP.mjs.map +0 -1
  384. package/dist/esm/chunk-XJFGX3E4.mjs.map +0 -1
  385. package/dist/esm/chunk-YIG37BG2.mjs.map +0 -1
  386. package/dist/esm/chunk-YPBHGSXY.mjs +0 -2
  387. package/dist/esm/chunk-YPBHGSXY.mjs.map +0 -1
  388. package/dist/esm/chunk-YU7DNMEA.mjs +0 -2
  389. package/dist/esm/chunk-YU7DNMEA.mjs.map +0 -1
  390. package/dist/esm/chunk-ZG6HOK6A.mjs +0 -2
  391. package/dist/esm/chunk-ZG6HOK6A.mjs.map +0 -1
  392. package/dist/esm/chunk-ZGWWPB3D.mjs.map +0 -1
  393. package/dist/esm/chunk-ZUDMSBVZ.mjs +0 -2
  394. package/dist/esm/chunk-ZUDMSBVZ.mjs.map +0 -1
  395. package/dist/esm/core/crypto/ephemeral.d.mts +0 -76
  396. package/dist/esm/core/crypto/ephemeral.mjs +0 -2
  397. package/dist/esm/core/crypto/ephemeral.mjs.map +0 -1
  398. package/dist/esm/core/crypto/keyless.d.mts +0 -217
  399. package/dist/esm/core/crypto/keyless.mjs +0 -2
  400. package/dist/esm/core/crypto/keyless.mjs.map +0 -1
  401. package/dist/esm/core/crypto/poseidon.d.mts +0 -7
  402. package/dist/esm/core/crypto/poseidon.mjs +0 -2
  403. package/dist/esm/core/crypto/poseidon.mjs.map +0 -1
  404. package/dist/esm/internal/keyless.d.mts +0 -68
  405. package/dist/esm/internal/keyless.mjs +0 -2
  406. package/dist/esm/internal/keyless.mjs.map +0 -1
  407. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +0 -47
  408. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +0 -2
  409. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs.map +0 -1
  410. package/dist/esm/types/keyless.d.mts +0 -14
  411. package/dist/esm/types/keyless.mjs +0 -1
  412. package/dist/esm/types/keyless.mjs.map +0 -1
  413. package/src/account/EphemeralKeyPair.ts +0 -78
  414. package/src/account/KeylessAccount.ts +0 -230
  415. package/src/account/MultiKeyAccount.ts +0 -121
  416. package/src/account/index.ts +0 -6
  417. package/src/api/keyless.ts +0 -55
  418. package/src/core/crypto/ephemeral.ts +0 -147
  419. package/src/core/crypto/keyless.ts +0 -502
  420. package/src/core/crypto/poseidon.ts +0 -134
  421. package/src/internal/keyless.ts +0 -205
  422. package/src/transactions/transactionBuilder/signingMessage.ts +0 -75
  423. package/src/types/keyless.ts +0 -6
  424. /package/dist/esm/{chunk-RBDX3YWC.mjs.map → chunk-2SPJ7XZB.mjs.map} +0 -0
  425. /package/dist/esm/{account/Account.mjs.map → chunk-4QMXOWHP.mjs.map} +0 -0
  426. /package/dist/esm/{chunk-7M3U2I23.mjs.map → chunk-4UJ5Y6QQ.mjs.map} +0 -0
  427. /package/dist/esm/{chunk-YNBWXDRS.mjs.map → chunk-6GZ5SUUK.mjs.map} +0 -0
  428. /package/dist/esm/{chunk-5TNUDFLP.mjs.map → chunk-BGW77OLE.mjs.map} +0 -0
  429. /package/dist/esm/{chunk-MRCVSUJQ.mjs.map → chunk-BWFJHFBQ.mjs.map} +0 -0
  430. /package/dist/esm/{chunk-BQCIUNLZ.mjs.map → chunk-CZF6JTC2.mjs.map} +0 -0
  431. /package/dist/esm/{chunk-Q225PZMV.mjs.map → chunk-DMKUAQB7.mjs.map} +0 -0
  432. /package/dist/esm/{chunk-RM7D2ITN.mjs.map → chunk-DSTKXJMA.mjs.map} +0 -0
  433. /package/dist/esm/{chunk-P4UY6YKM.mjs.map → chunk-DW4FAHFT.mjs.map} +0 -0
  434. /package/dist/esm/{chunk-CHL5NDZD.mjs.map → chunk-DW5XFUDM.mjs.map} +0 -0
  435. /package/dist/esm/{account/Ed25519Account.mjs.map → chunk-E7FWVXGX.mjs.map} +0 -0
  436. /package/dist/esm/{chunk-CYWA4AJF.mjs.map → chunk-E7OPTWPP.mjs.map} +0 -0
  437. /package/dist/esm/{chunk-3FL3NLZ6.mjs.map → chunk-F5O5BBEK.mjs.map} +0 -0
  438. /package/dist/esm/{chunk-35ZI4WOQ.mjs.map → chunk-FS3NSGBF.mjs.map} +0 -0
  439. /package/dist/esm/{chunk-NU6UF6RM.mjs.map → chunk-I24X55BI.mjs.map} +0 -0
  440. /package/dist/esm/{chunk-2QGT5DK3.mjs.map → chunk-I2RHCBHM.mjs.map} +0 -0
  441. /package/dist/esm/{chunk-2I2XAOH7.mjs.map → chunk-ILTVKYMT.mjs.map} +0 -0
  442. /package/dist/esm/{chunk-U7EZI5D5.mjs.map → chunk-IOSQVDZI.mjs.map} +0 -0
  443. /package/dist/esm/{chunk-VJCQBX6V.mjs.map → chunk-JAIQBRLH.mjs.map} +0 -0
  444. /package/dist/esm/{chunk-YP3RMVL3.mjs.map → chunk-KECXKWWV.mjs.map} +0 -0
  445. /package/dist/esm/{chunk-ODA4KV4Q.mjs.map → chunk-LJ6MB5U7.mjs.map} +0 -0
  446. /package/dist/esm/{chunk-B645DPPF.mjs.map → chunk-MFFSJJSY.mjs.map} +0 -0
  447. /package/dist/esm/{account/EphemeralKeyPair.mjs.map → chunk-MLWIHWNH.mjs.map} +0 -0
  448. /package/dist/esm/{chunk-JYFKKB34.mjs.map → chunk-NPFNYP75.mjs.map} +0 -0
  449. /package/dist/esm/{chunk-V7VV5QW4.mjs.map → chunk-O7P52OOA.mjs.map} +0 -0
  450. /package/dist/esm/{chunk-MKHPGY3O.mjs.map → chunk-OZNBOCEF.mjs.map} +0 -0
  451. /package/dist/esm/{chunk-Q6CZDSLM.mjs.map → chunk-PNGS6IWC.mjs.map} +0 -0
  452. /package/dist/esm/{chunk-VVJEWB26.mjs.map → chunk-QIAHBEEW.mjs.map} +0 -0
  453. /package/dist/esm/{chunk-ED6PYTNG.mjs.map → chunk-QM4UQVGB.mjs.map} +0 -0
  454. /package/dist/esm/{chunk-KX5ESZO7.mjs.map → chunk-R5QUBEH6.mjs.map} +0 -0
  455. /package/dist/esm/{account/KeylessAccount.mjs.map → chunk-R7G3CLRI.mjs.map} +0 -0
  456. /package/dist/esm/{chunk-WZCUABDL.mjs.map → chunk-RHBCVCOS.mjs.map} +0 -0
  457. /package/dist/esm/{chunk-7EQOLMEJ.mjs.map → chunk-TBMAJ6AW.mjs.map} +0 -0
  458. /package/dist/esm/{chunk-IVBYTTN7.mjs.map → chunk-U43IJHQN.mjs.map} +0 -0
  459. /package/dist/esm/{chunk-XI4LX4EC.mjs.map → chunk-UML2VQZT.mjs.map} +0 -0
  460. /package/dist/esm/{account/MultiKeyAccount.mjs.map → chunk-UVSRX4SV.mjs.map} +0 -0
  461. /package/dist/esm/{chunk-5GIWRESN.mjs.map → chunk-V6SPPOWX.mjs.map} +0 -0
  462. /package/dist/esm/{chunk-2VCKY2ZJ.mjs.map → chunk-WFL6YWJS.mjs.map} +0 -0
  463. /package/dist/esm/{chunk-HZC6A3QL.mjs.map → chunk-WFZDFFBM.mjs.map} +0 -0
  464. /package/dist/esm/{chunk-J5SQQQPI.mjs.map → chunk-WZNX3RBA.mjs.map} +0 -0
  465. /package/dist/esm/{chunk-KMHJNUXU.mjs.map → chunk-YUN2JVAN.mjs.map} +0 -0
  466. /package/dist/esm/{chunk-KBSAS57Q.mjs.map → chunk-YVIP7DMT.mjs.map} +0 -0
  467. /package/dist/esm/{chunk-OAOJVE5X.mjs.map → chunk-YWN2T4IU.mjs.map} +0 -0
  468. /package/dist/esm/{chunk-UZHVGPGH.mjs.map → chunk-ZYYK3UXP.mjs.map} +0 -0
  469. /package/dist/esm/{account/SingleKeyAccount.mjs.map → core/account/Account.mjs.map} +0 -0
  470. /package/dist/esm/{account/index.mjs.map → core/account/Ed25519Account.mjs.map} +0 -0
  471. /package/dist/esm/{api/keyless.mjs.map → core/account/SingleKeyAccount.mjs.map} +0 -0
  472. /package/dist/esm/{chunk-7Z6DYLCA.mjs.map → core/account/index.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-52DBSOFA.mjs";import{b as t}from"./chunk-AOCNYMMX.mjs";var o=class extends r{toString(){let i=this.toUint8Array();return t.fromHexInput(i).toString()}};export{o as a};
2
- //# sourceMappingURL=chunk-KX5ESZO7.mjs.map
1
+ import{a as r}from"./chunk-52C73T26.mjs";import{b as t}from"./chunk-AOCNYMMX.mjs";var o=class extends r{toString(){let i=this.toUint8Array();return t.fromHexInput(i).toString()}};export{o as a};
2
+ //# sourceMappingURL=chunk-R5QUBEH6.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-R7G3CLRI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-RM7D2ITN.mjs";import{b as i}from"./chunk-U7EZI5D5.mjs";import{a as d}from"./chunk-52DBSOFA.mjs";var o=class t extends d{constructor(e,r){super();this.address=e,this.name=r}static fromStr(e){let r=e.split("::");if(r.length!==2)throw new Error("Invalid module id.");return new t(i.fromString(r[0]),new s(r[1]))}serialize(e){this.address.serialize(e),this.name.serialize(e)}static deserialize(e){let r=i.deserialize(e),n=s.deserialize(e);return new t(r,n)}};export{o as a};
2
- //# sourceMappingURL=chunk-WZCUABDL.mjs.map
1
+ import{a as s}from"./chunk-DSTKXJMA.mjs";import{b as i}from"./chunk-IOSQVDZI.mjs";import{a as d}from"./chunk-52C73T26.mjs";var o=class t extends d{constructor(e,r){super();this.address=e,this.name=r}static fromStr(e){let r=e.split("::");if(r.length!==2)throw new Error("Invalid module id.");return new t(i.fromString(r[0]),new s(r[1]))}serialize(e){this.address.serialize(e),this.name.serialize(e)}static deserialize(e){let r=i.deserialize(e),n=s.deserialize(e);return new t(r,n)}};export{o as a};
2
+ //# sourceMappingURL=chunk-RHBCVCOS.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-52DBSOFA.mjs";import{b as i}from"./chunk-AOCNYMMX.mjs";var t=class a extends r{constructor(e){super();this.value=i.fromHexInput(e).toUint8Array()}serialize(e){e.serializeFixedBytes(this.value)}serializeForEntryFunction(e){e.serialize(this)}serializeForScriptFunction(e){e.serialize(this)}static deserialize(e,s){let o=e.deserializeFixedBytes(s);return new a(o)}};export{t as a};
2
- //# sourceMappingURL=chunk-7EQOLMEJ.mjs.map
1
+ import{a as r}from"./chunk-52C73T26.mjs";import{b as i}from"./chunk-AOCNYMMX.mjs";var t=class a extends r{constructor(e){super();this.value=i.fromHexInput(e).toUint8Array()}serialize(e){e.serializeFixedBytes(this.value)}serializeForEntryFunction(e){e.serialize(this)}serializeForScriptFunction(e){e.serialize(this)}static deserialize(e,s){let o=e.deserializeFixedBytes(s);return new a(o)}};export{t as a};
2
+ //# sourceMappingURL=chunk-TBMAJ6AW.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as l,c as f,d as x,e as v,f as U,g as A,h as P,i as C,j as y,k as E,l as b,m as I,n as G,o as M}from"./chunk-Q225PZMV.mjs";import{a as d}from"./chunk-RM7D2ITN.mjs";import{b as w}from"./chunk-U7EZI5D5.mjs";function N(e){return!!e.match(/^[_a-zA-Z0-9]+$/)}function V(e){return!!e.match(/\s/)}function $(e){return!!e.match(/^T[0-9]+$/)}function F(e,n){let i=n;for(;i<e.length;i+=1){let c=e[i];if(!V(c))break}return i}var S=(t=>(t.InvalidTypeTag="unknown type",t.UnexpectedGenericType="unexpected generic type",t.UnexpectedTypeArgumentClose="unexpected '>'",t.UnexpectedWhitespaceCharacter="unexpected whitespace character",t.UnexpectedComma="unexpected ','",t.TypeArgumentCountMismatch="type argument count doesn't match expected amount",t.MissingTypeArgumentClose="no matching '>' for '<'",t.UnexpectedPrimitiveTypeArguments="primitive types not expected to have type arguments",t.UnexpectedVectorTypeArgumentCount="vector type expected to have exactly one type argument",t.UnexpectedStructFormat="unexpected struct format, must be of the form 0xaddress::module_name::struct_name",t.InvalidModuleNameCharacter="module name must only contain alphanumeric or '_' characters",t.InvalidStructNameCharacter="struct name must only contain alphanumeric or '_' characters",t))(S||{}),r=class extends Error{constructor(n,i){super(`Failed to parse typeTag '${n}', ${i}`)}};function Z(e,n){let i=n?.allowGenerics??!1,c=[],o=[],p=[],T=0,a="",u=1;for(;T<e.length;){let g=e[T];if(g==="<")c.push({savedExpectedTypes:u,savedStr:a,savedTypes:p}),a="",p=[],u=1;else if(g===">"){if(a!==""){let _=m(a,o,i);p.push(_)}let s=c.pop();if(s===void 0)throw new r(e,"unexpected '>'");if(u!==p.length)throw new r(e,"type argument count doesn't match expected amount");let{savedStr:h,savedTypes:t,savedExpectedTypes:W}=s;o=p,p=t,a=h,u=W}else if(g===","){if(a.length!==0){let s=m(a,o,i);o=[],p.push(s),a="",u+=1}}else if(V(g)){let s=!1;if(a.length!==0){let t=m(a,o,i);o=[],p.push(t),a="",s=!0}T=F(e,T);let h=e[T];if(T<e.length&&s&&h!==","&&h!==">")throw new r(e,"unexpected whitespace character");continue}else a+=g;T+=1}if(c.length>0)throw new r(e,"no matching '>' for '<'");switch(p.length){case 0:return m(a,o,i);case 1:if(a==="")return p[0];throw new r(e,"unexpected ','");default:throw new r(e,"unexpected whitespace character")}}function m(e,n,i){switch(e){case"&signer":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new E(new y);case"signer":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new y;case"bool":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new l;case"address":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new C;case"u8":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new f;case"u16":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new x;case"u32":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new v;case"u64":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new U;case"u128":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new A;case"u256":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new P;case"vector":if(n.length!==1)throw new r(e,"vector type expected to have exactly one type argument");return new I(n[0]);default:if($(e)){if(i)return new b(Number(e.split("T")[1]));throw new r(e,"unexpected generic type")}if(!e.match(/:/))throw new r(e,"unknown type");let c=e.split("::");if(c.length!==3)throw new r(e,"unexpected struct format, must be of the form 0xaddress::module_name::struct_name");if(!N(c[1]))throw new r(e,"module name must only contain alphanumeric or '_' characters");if(!N(c[2]))throw new r(e,"struct name must only contain alphanumeric or '_' characters");return new G(new M(w.fromString(c[0]),new d(c[1]),new d(c[2]),n))}}export{S as a,r as b,Z as c};
2
- //# sourceMappingURL=chunk-IVBYTTN7.mjs.map
1
+ import{b as l,c as f,d as x,e as v,f as U,g as A,h as P,i as C,j as y,k as E,l as b,m as I,n as G,o as M}from"./chunk-DMKUAQB7.mjs";import{a as d}from"./chunk-DSTKXJMA.mjs";import{b as w}from"./chunk-IOSQVDZI.mjs";function N(e){return!!e.match(/^[_a-zA-Z0-9]+$/)}function V(e){return!!e.match(/\s/)}function $(e){return!!e.match(/^T[0-9]+$/)}function F(e,n){let i=n;for(;i<e.length;i+=1){let c=e[i];if(!V(c))break}return i}var S=(t=>(t.InvalidTypeTag="unknown type",t.UnexpectedGenericType="unexpected generic type",t.UnexpectedTypeArgumentClose="unexpected '>'",t.UnexpectedWhitespaceCharacter="unexpected whitespace character",t.UnexpectedComma="unexpected ','",t.TypeArgumentCountMismatch="type argument count doesn't match expected amount",t.MissingTypeArgumentClose="no matching '>' for '<'",t.UnexpectedPrimitiveTypeArguments="primitive types not expected to have type arguments",t.UnexpectedVectorTypeArgumentCount="vector type expected to have exactly one type argument",t.UnexpectedStructFormat="unexpected struct format, must be of the form 0xaddress::module_name::struct_name",t.InvalidModuleNameCharacter="module name must only contain alphanumeric or '_' characters",t.InvalidStructNameCharacter="struct name must only contain alphanumeric or '_' characters",t))(S||{}),r=class extends Error{constructor(n,i){super(`Failed to parse typeTag '${n}', ${i}`)}};function Z(e,n){let i=n?.allowGenerics??!1,c=[],o=[],p=[],T=0,a="",u=1;for(;T<e.length;){let g=e[T];if(g==="<")c.push({savedExpectedTypes:u,savedStr:a,savedTypes:p}),a="",p=[],u=1;else if(g===">"){if(a!==""){let _=m(a,o,i);p.push(_)}let s=c.pop();if(s===void 0)throw new r(e,"unexpected '>'");if(u!==p.length)throw new r(e,"type argument count doesn't match expected amount");let{savedStr:h,savedTypes:t,savedExpectedTypes:W}=s;o=p,p=t,a=h,u=W}else if(g===","){if(a.length!==0){let s=m(a,o,i);o=[],p.push(s),a="",u+=1}}else if(V(g)){let s=!1;if(a.length!==0){let t=m(a,o,i);o=[],p.push(t),a="",s=!0}T=F(e,T);let h=e[T];if(T<e.length&&s&&h!==","&&h!==">")throw new r(e,"unexpected whitespace character");continue}else a+=g;T+=1}if(c.length>0)throw new r(e,"no matching '>' for '<'");switch(p.length){case 0:return m(a,o,i);case 1:if(a==="")return p[0];throw new r(e,"unexpected ','");default:throw new r(e,"unexpected whitespace character")}}function m(e,n,i){switch(e){case"&signer":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new E(new y);case"signer":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new y;case"bool":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new l;case"address":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new C;case"u8":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new f;case"u16":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new x;case"u32":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new v;case"u64":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new U;case"u128":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new A;case"u256":if(n.length>0)throw new r(e,"primitive types not expected to have type arguments");return new P;case"vector":if(n.length!==1)throw new r(e,"vector type expected to have exactly one type argument");return new I(n[0]);default:if($(e)){if(i)return new b(Number(e.split("T")[1]));throw new r(e,"unexpected generic type")}if(!e.match(/:/))throw new r(e,"unknown type");let c=e.split("::");if(c.length!==3)throw new r(e,"unexpected struct format, must be of the form 0xaddress::module_name::struct_name");if(!N(c[1]))throw new r(e,"module name must only contain alphanumeric or '_' characters");if(!N(c[2]))throw new r(e,"struct name must only contain alphanumeric or '_' characters");return new G(new M(w.fromString(c[0]),new d(c[1]),new d(c[2]),n))}}export{S as a,r as b,Z as c};
2
+ //# sourceMappingURL=chunk-U43IJHQN.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as c}from"./chunk-U7EZI5D5.mjs";import{sha3_256 as n}from"@noble/hashes/sha3";var d=(e,r)=>{let t=e.bcsToBytes(),s=typeof r=="string"?Buffer.from(r,"utf8"):r,o=new Uint8Array([...t,...s,254]);return new c(n(o))},f=(e,r)=>{let t=e.bcsToBytes(),s=typeof r=="string"?Buffer.from(r,"utf8"):r,o=new Uint8Array([...t,...s,255]);return new c(n(o))},a=(e,r,t)=>{let s=`${r}::${t}`;return d(e,s)};export{d as a,f as b,a as c};
2
- //# sourceMappingURL=chunk-XI4LX4EC.mjs.map
1
+ import{b as c}from"./chunk-IOSQVDZI.mjs";import{sha3_256 as n}from"@noble/hashes/sha3";var d=(e,r)=>{let t=e.bcsToBytes(),s=typeof r=="string"?Buffer.from(r,"utf8"):r,o=new Uint8Array([...t,...s,254]);return new c(n(o))},f=(e,r)=>{let t=e.bcsToBytes(),s=typeof r=="string"?Buffer.from(r,"utf8"):r,o=new Uint8Array([...t,...s,255]);return new c(n(o))},a=(e,r,t)=>{let s=`${r}::${t}`;return d(e,s)};export{d as a,f as b,a as c};
2
+ //# sourceMappingURL=chunk-UML2VQZT.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-UVSRX4SV.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as o,b as r}from"./chunk-FS3NSGBF.mjs";import{e as u}from"./chunk-QIAHBEEW.mjs";import{b as t}from"./chunk-IOSQVDZI.mjs";import{a as i}from"./chunk-52C73T26.mjs";var c=class extends i{constructor(e){super();this.accountAddress=t.ONE;this.moduleName=new r("account");this.structName=new r("RotationProofChallenge");this.sequenceNumber=new u(e.sequenceNumber),this.originator=e.originator,this.currentAuthKey=e.currentAuthKey,this.newPublicKey=o.U8(e.newPublicKey.toUint8Array())}serialize(e){e.serialize(this.accountAddress),e.serialize(this.moduleName),e.serialize(this.structName),e.serialize(this.sequenceNumber),e.serialize(this.originator),e.serialize(this.currentAuthKey),e.serialize(this.newPublicKey)}};export{c as a};
2
+ //# sourceMappingURL=chunk-V6SPPOWX.mjs.map
@@ -0,0 +1,2 @@
1
+ import{f as e,g as s,h as t,i as o,j as r,k as i,l as a,m as c,n as m,o as g,p as u,q as d,r as p}from"./chunk-6T4IFH73.mjs";var A=class{constructor(n){this.config=n}async getOwnerAddress(n){return e({aptosConfig:this.config,...n})}async getExpiration(n){return t({aptosConfig:this.config,...n})}async getTargetAddress(n){return i({aptosConfig:this.config,...n})}async setTargetAddress(n){return a({aptosConfig:this.config,...n})}async getPrimaryName(n){return o({aptosConfig:this.config,...n})}async setPrimaryName(n){return r({aptosConfig:this.config,...n})}async registerName(n){return s({aptosConfig:this.config,...n})}async renewDomain(n){return p({aptosConfig:this.config,...n})}async getName(n){return c({aptosConfig:this.config,...n})}async getAccountNames(n){return m({aptosConfig:this.config,...n})}async getAccountDomains(n){return g({aptosConfig:this.config,...n})}async getAccountSubdomains(n){return u({aptosConfig:this.config,...n})}async getDomainSubdomains(n){return d({aptosConfig:this.config,...n})}};export{A as a};
2
+ //# sourceMappingURL=chunk-VVMR7UKB.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/api/ans.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Account, AccountAddress, AccountAddressInput } from \"../core\";\nimport {\n RegisterNameParameters,\n getExpiration,\n getOwnerAddress,\n registerName,\n getPrimaryName,\n setPrimaryName,\n getTargetAddress,\n setTargetAddress,\n renewDomain,\n getName,\n getAccountDomains,\n GetAccountDomainsArgs,\n GetAccountSubdomainsArgs,\n getAccountSubdomains,\n getAccountNames,\n GetAccountNamesArgs,\n getDomainSubdomains,\n GetDomainSubdomainsArgs,\n} from \"../internal/ans\";\nimport { GetANSNameResponse } from \"../types\";\nimport { InputGenerateTransactionOptions } from \"../transactions/types\";\nimport { AptosConfig } from \"./aptosConfig\";\nimport { SimpleTransaction } from \"../transactions/instances/simpleTransaction\";\n\n/**\n * A class to handle all `ANS` operations\n */\nexport class ANS {\n constructor(readonly config: AptosConfig) {}\n\n /**\n * Retrieve the owner address of a domain name or subdomain name from the contract.\n *\n * @example\n * // Will return the owner address of \"test.aptos.apt\" or undefined\n * const owner = await aptos.getOwnerAddress({name: \"test.aptos\"})\n * // owner = 0x123...\n *\n * @param args.name - A string of the name to retrieve\n *\n * @returns AccountAddress if the name is owned, undefined otherwise\n */\n async getOwnerAddress(args: { name: string }): Promise<AccountAddress | undefined> {\n return getOwnerAddress({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Retrieve the expiration time of a domain name or subdomain name from the contract.\n *\n * @example\n * // Will return the expiration of \"test.aptos.apt\" or undefined\n * const exp = await aptos.getExpiration({name: \"test.aptos\"})\n * // new Date(exp) would give you the date in question: 2021-01-01T00:00:00.000Z\n *\n * @param args.name - A string of the name to retrieve\n *\n * @returns number as a unix timestamp in milliseconds.\n */\n async getExpiration(args: { name: string }): Promise<number | undefined> {\n return getExpiration({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Retrieve the target address of a domain or subdomain name. This is the\n * address the name points to for use on chain. Note, the target address can\n * point to addresses that are not the owner of the name\n *\n * @example\n * const targetAddr = await aptos.getTargetAddress({name: \"test.aptos\"})\n * // targetAddr = 0x123...\n *\n * @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.\n *\n * @returns AccountAddress if the name has a target, undefined otherwise\n */\n async getTargetAddress(args: { name: string }): Promise<AccountAddress | undefined> {\n return getTargetAddress({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Sets the target address of a domain or subdomain name. This is the\n * address the name points to for use on chain. Note, the target address can\n * point to addresses that are not the owner of the name\n *\n * @example\n * await aptos.setTargetAddress({sender: alice, name: \"test.aptos\", address: bob.accountAddress})\n * const address = await aptos.getTargetAddress({name: \"test.aptos\"})\n * // address = bob.accountAddress\n *\n * @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.\n * @param args.address - A AccountAddressInput of the address to set the domain or subdomain to\n *\n * @returns SimpleTransaction\n */\n async setTargetAddress(args: {\n sender: Account;\n name: string;\n address: AccountAddressInput;\n options?: InputGenerateTransactionOptions;\n }): Promise<SimpleTransaction> {\n return setTargetAddress({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Retrieve the primary name for an account. An account can have\n * multiple names that target it, but only a single name that is primary. An\n * account also may not have a primary name.\n *\n * @example\n * const name = await aptos.getPrimaryName({address: alice.accountAddress})\n * // name = test.aptos\n *\n * @param args.address - A AccountAddressInput (address) of the account\n *\n * @returns a string if the account has a primary name, undefined otherwise\n */\n async getPrimaryName(args: { address: AccountAddressInput }): Promise<string | undefined> {\n return getPrimaryName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Sets the primary name for the sender. An account can have\n * multiple names that target it, but only a single name that is primary. An\n * account also may not have a primary name.\n *\n * @example\n * await aptos.setPrimaryName({sender: alice, name: \"test.aptos\"})\n * const primaryName = await aptos.getPrimaryName({address: alice.accountAddress})\n * // primaryName = test.aptos\n *\n * @param args.sender - The sender account\n * @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.\n *\n * @returns SimpleTransaction\n */\n async setPrimaryName(args: {\n sender: Account;\n name?: string;\n options?: InputGenerateTransactionOptions;\n }): Promise<SimpleTransaction> {\n return setPrimaryName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Registers a new name\n *\n * @example\n * // An example of registering a subdomain name assuming def.apt is already registered\n * // and belongs to the sender alice.\n * const txn = aptos.registerName({\n * sender: alice,\n * name: \"test.aptos.apt\",\n * expiration: {\n * policy: \"subdomain:independent\",\n * expirationDate: Date.now() + 30 * 24 * 60 * 60 * 1000,\n * },\n * });\n *\n * @param args.sender - The sender account\n * @param args.name - A string of the name to register. This can be inclusive or exclusive of the .apt suffix.\n * Examples include: \"test\", \"test.apt\", \"test.aptos.apt\", etc.\n * @param args.expiration - An object with the expiration policy of the name.\n * @param args.expiration.policy - 'domain' | 'subdomain:follow-domain' | 'subdomain:independent'\n * - domain: Years is required and the name will expire after the given number of years.\n * - subdomain:follow-domain: The name will expire at the same time as the domain name.\n * - subdomain:independent: The name will expire at the given date.\n * @param args.expiration.expirationDate - An epoch number in milliseconds of\n * the date when the subdomain will expire. Only applicable when the policy is\n * set to 'subdomain:independent'.\n * @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.\n * @param args.targetAddress optional - The address the domain name will resolve to. If not provided,\n * the sender's address will be used.\n * @param args.toAddress optional - The address to send the domain name to. If not provided,\n * the transaction will be sent to the router.\n *\n * @returns SimpleTransaction\n */\n async registerName(args: Omit<RegisterNameParameters, \"aptosConfig\">): Promise<SimpleTransaction> {\n return registerName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Renews a domain name\n *\n * Note: If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.\n *\n * @example\n * await aptos.renewDomain({sender: alice, name: \"test\"})\n * // test.apt will be renewed for one year\n *\n * @param args.sender - The sender account\n * @param args.name - A string of the domain the subdomain will be under. The signer must be the domain owner.\n * Subdomains cannot be renewed.\n * @param args.years - The number of years to renew the name. Currently only one year is permitted.\n *\n * @returns SimpleTransaction\n */\n async renewDomain(args: {\n sender: Account;\n name: string;\n years?: 1;\n options?: InputGenerateTransactionOptions;\n }): Promise<SimpleTransaction> {\n return renewDomain({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches a single name from the indexer\n * @param args.name - A string of the name to retrieve, e.g. \"test.aptos.apt\"\n * or \"test.apt\" or \"test\". Can be inclusive or exclusive of the .apt suffix.\n * Can be a subdomain.\n *\n * @returns A promise of an ANSName or undefined\n */\n async getName(args: { name: string }): Promise<GetANSNameResponse[0] | undefined> {\n return getName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all names for an account (both top level domains and subdomains)\n *\n * @param args\n * @param args.accountAddress - A AccountAddressInput of the address to retrieve names for.\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getAccountNames(args: GetAccountNamesArgs): Promise<GetANSNameResponse> {\n return getAccountNames({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all top level domain names for an account\n *\n * @param args\n * @param args.accountAddress - A AccountAddressInput of the address to retrieve domain names for.\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getAccountDomains(args: GetAccountDomainsArgs): Promise<GetANSNameResponse> {\n return getAccountDomains({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all subdomains names for an account\n *\n * @param args\n * @param args.accountAddress - A AccountAddressInput of the address to retrieve subdomains names for.\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<GetANSNameResponse> {\n return getAccountSubdomains({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all subdomains names for a given domain. Note, this will not return the domain itself.\n *\n * @param args\n * @param args.domain - A string of the domain name: eg. \"test.apt\" or \"test\" (without the suffix of .apt)\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<GetANSNameResponse> {\n return getDomainSubdomains({ aptosConfig: this.config, ...args });\n }\n}\n"],"mappings":"6HAgCO,IAAMA,EAAN,KAAU,CACf,YAAqBC,EAAqB,CAArB,YAAAA,CAAsB,CAc3C,MAAM,gBAAgBC,EAA6D,CACjF,OAAOC,EAAgB,CAAE,YAAa,KAAK,OAAQ,GAAGD,CAAK,CAAC,CAC9D,CAcA,MAAM,cAAcA,EAAqD,CACvE,OAAOE,EAAc,CAAE,YAAa,KAAK,OAAQ,GAAGF,CAAK,CAAC,CAC5D,CAeA,MAAM,iBAAiBA,EAA6D,CAClF,OAAOG,EAAiB,CAAE,YAAa,KAAK,OAAQ,GAAGH,CAAK,CAAC,CAC/D,CAiBA,MAAM,iBAAiBA,EAKQ,CAC7B,OAAOI,EAAiB,CAAE,YAAa,KAAK,OAAQ,GAAGJ,CAAK,CAAC,CAC/D,CAeA,MAAM,eAAeA,EAAqE,CACxF,OAAOK,EAAe,CAAE,YAAa,KAAK,OAAQ,GAAGL,CAAK,CAAC,CAC7D,CAiBA,MAAM,eAAeA,EAIU,CAC7B,OAAOM,EAAe,CAAE,YAAa,KAAK,OAAQ,GAAGN,CAAK,CAAC,CAC7D,CAoCA,MAAM,aAAaA,EAA+E,CAChG,OAAOO,EAAa,CAAE,YAAa,KAAK,OAAQ,GAAGP,CAAK,CAAC,CAC3D,CAkBA,MAAM,YAAYA,EAKa,CAC7B,OAAOQ,EAAY,CAAE,YAAa,KAAK,OAAQ,GAAGR,CAAK,CAAC,CAC1D,CAUA,MAAM,QAAQA,EAAoE,CAChF,OAAOS,EAAQ,CAAE,YAAa,KAAK,OAAQ,GAAGT,CAAK,CAAC,CACtD,CAcA,MAAM,gBAAgBA,EAAwD,CAC5E,OAAOU,EAAgB,CAAE,YAAa,KAAK,OAAQ,GAAGV,CAAK,CAAC,CAC9D,CAcA,MAAM,kBAAkBA,EAA0D,CAChF,OAAOW,EAAkB,CAAE,YAAa,KAAK,OAAQ,GAAGX,CAAK,CAAC,CAChE,CAcA,MAAM,qBAAqBA,EAA6D,CACtF,OAAOY,EAAqB,CAAE,YAAa,KAAK,OAAQ,GAAGZ,CAAK,CAAC,CACnE,CAcA,MAAM,oBAAoBA,EAA4D,CACpF,OAAOa,EAAoB,CAAE,YAAa,KAAK,OAAQ,GAAGb,CAAK,CAAC,CAClE,CACF","names":["ANS","config","args","getOwnerAddress","getExpiration","getTargetAddress","setTargetAddress","getPrimaryName","setPrimaryName","registerName","renewDomain","getName","getAccountNames","getAccountDomains","getAccountSubdomains","getDomainSubdomains"]}
@@ -1,2 +1,2 @@
1
- import{c as A}from"./chunk-IVBYTTN7.mjs";import{a as x,b as c,c as w,d as g,e as M,f as C,g as O,h,i as _,k as V,l as G,m as j,n as k,o as z,p as D,r as i,s as L}from"./chunk-T7TIIAWK.mjs";import{c as I}from"./chunk-YIG37BG2.mjs";import{n as p}from"./chunk-Q225PZMV.mjs";import{a as o,b as S,c as T}from"./chunk-35ZI4WOQ.mjs";import{a as d,b as E,c as B,d as v,e as $,f as b,g as F}from"./chunk-VVJEWB26.mjs";import{b as U}from"./chunk-U7EZI5D5.mjs";var R=new TextEncoder;function Z(n){return n?.map(e=>c(e)?A(e):e)??[]}async function P(n,e,t,u){let r=await I({aptosConfig:u,accountAddress:n,moduleName:e});if(r.abi)return r.abi.exposed_functions.find(f=>f.name===t)}async function N(n,e,t,u){let r=await P(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 f=L(r),y=[];for(let s=f;s<r.params.length;s+=1)y.push(A(r.params[s],{allowGenerics:!0}));return{signers:f,typeParameters:r.generic_type_params,parameters:y}}async function a(n,e,t,u){let r=await P(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 f=[];for(let s=0;s<r.params.length;s+=1)f.push(A(r.params[s],{allowGenerics:!0}));let y=[];for(let s=0;s<r.return.length;s+=1)y.push(A(r.return[s],{allowGenerics:!0}));return{typeParameters:r.generic_type_params,parameters:f,returnTypes:y}}function nn(n,e,t,u,r){if(u>=e.parameters.length)throw new Error(`Too many arguments for '${n}', expected ${e.parameters.length}`);let f=e.parameters[u];return l(t,f,u,r)}function l(n,e,t,u){return C(n)?(m(e,n,t),n):X(n,e,t,u)}function X(n,e,t,u){if(e.isBool()){if(x(n))return new d(n);i("boolean",t)}if(e.isAddress()){if(c(n))return U.fromString(n);i("string | AccountAddress",t)}if(e.isU8()){if(w(n))return new E(n);i("number",t)}if(e.isU16()){if(w(n))return new B(n);i("number",t)}if(e.isU32()){if(w(n))return new v(n);i("number",t)}if(e.isU64()){if(g(n))return new $(BigInt(n));i("bigint | number | string",t)}if(e.isU128()){if(g(n))return new b(BigInt(n));i("bigint | number | string",t)}if(e.isU256()){if(g(n))return new F(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 l(n,u[r],t,u)}if(e.isVector()){if(e.value.isU8()){if(c(n))return o.U8(R.encode(n));if(n instanceof Uint8Array)return o.U8(n);if(n instanceof ArrayBuffer)return o.U8(new Uint8Array(n))}if(Array.isArray(n))return new o(n.map(r=>l(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 S(n);i("string",t)}if(e.isObject()){if(c(n))return U.fromString(n);i("string | AccountAddress",t)}if(e.isOption())return M(n)?new T(null):new T(l(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 m(n,e,t){if(n.isBool()){if(O(e))return;i("Bool",t)}if(n.isAddress()){if(h(e))return;i("AccountAddress",t)}if(n.isU8()){if(V(e))return;i("U8",t)}if(n.isU16()){if(G(e))return;i("U16",t)}if(n.isU32()){if(j(e))return;i("U32",t)}if(n.isU64()){if(k(e))return;i("U64",t)}if(n.isU128()){if(z(e))return;i("U128",t)}if(n.isU256()){if(D(e))return;i("U256",t)}if(n.isVector()){if(e instanceof o){e.values.length>0&&m(n.value,e.values[0],t);return}i("MoveVector",t)}if(n instanceof p){if(n.isString()){if(_(e))return;i("MoveString",t)}if(n.isObject()){if(h(e))return;i("AccountAddress",t)}if(n.isOption()){if(e instanceof T){e.value!==void 0&&m(n.value.typeArgs[0],e.value,t);return}i("MoveOption",t)}}throw new Error(`Type mismatch for argument ${t}, expected '${n.toString()}'`)}export{Z as a,P as b,N as c,a as d,nn as e,l as f};
2
- //# sourceMappingURL=chunk-2VCKY2ZJ.mjs.map
1
+ import{a as x,b as c,c as w,d as g,e as M,f as C,g as O,h,i as _,k as V,l as G,m as j,n as k,o as z,p as D,r as i,s as L}from"./chunk-KBRRTSF6.mjs";import{c as A}from"./chunk-U43IJHQN.mjs";import{n as I}from"./chunk-DMKUAQB7.mjs";import{c as p}from"./chunk-LGVHYLN2.mjs";import{a as o,b as S,c as T}from"./chunk-FS3NSGBF.mjs";import{a as d,b as E,c as B,d as v,e as $,f as b,g as F}from"./chunk-QIAHBEEW.mjs";import{b as U}from"./chunk-IOSQVDZI.mjs";var R=new TextEncoder;function Z(n){return n?.map(e=>c(e)?A(e):e)??[]}async function P(n,e,t,u){let r=await p({aptosConfig:u,accountAddress:n,moduleName:e});if(r.abi)return r.abi.exposed_functions.find(f=>f.name===t)}async function N(n,e,t,u){let r=await P(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 f=L(r),y=[];for(let s=f;s<r.params.length;s+=1)y.push(A(r.params[s],{allowGenerics:!0}));return{signers:f,typeParameters:r.generic_type_params,parameters:y}}async function a(n,e,t,u){let r=await P(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 f=[];for(let s=0;s<r.params.length;s+=1)f.push(A(r.params[s],{allowGenerics:!0}));let y=[];for(let s=0;s<r.return.length;s+=1)y.push(A(r.return[s],{allowGenerics:!0}));return{typeParameters:r.generic_type_params,parameters:f,returnTypes:y}}function nn(n,e,t,u,r){if(u>=e.parameters.length)throw new Error(`Too many arguments for '${n}', expected ${e.parameters.length}`);let f=e.parameters[u];return l(t,f,u,r)}function l(n,e,t,u){return C(n)?(m(e,n,t),n):X(n,e,t,u)}function X(n,e,t,u){if(e.isBool()){if(x(n))return new d(n);i("boolean",t)}if(e.isAddress()){if(c(n))return U.fromString(n);i("string | AccountAddress",t)}if(e.isU8()){if(w(n))return new E(n);i("number",t)}if(e.isU16()){if(w(n))return new B(n);i("number",t)}if(e.isU32()){if(w(n))return new v(n);i("number",t)}if(e.isU64()){if(g(n))return new $(BigInt(n));i("bigint | number | string",t)}if(e.isU128()){if(g(n))return new b(BigInt(n));i("bigint | number | string",t)}if(e.isU256()){if(g(n))return new F(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 l(n,u[r],t,u)}if(e.isVector()){if(e.value.isU8()){if(c(n))return o.U8(R.encode(n));if(n instanceof Uint8Array)return o.U8(n);if(n instanceof ArrayBuffer)return o.U8(new Uint8Array(n))}if(Array.isArray(n))return new o(n.map(r=>l(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 S(n);i("string",t)}if(e.isObject()){if(c(n))return U.fromString(n);i("string | AccountAddress",t)}if(e.isOption())return M(n)?new T(null):new T(l(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 m(n,e,t){if(n.isBool()){if(O(e))return;i("Bool",t)}if(n.isAddress()){if(h(e))return;i("AccountAddress",t)}if(n.isU8()){if(V(e))return;i("U8",t)}if(n.isU16()){if(G(e))return;i("U16",t)}if(n.isU32()){if(j(e))return;i("U32",t)}if(n.isU64()){if(k(e))return;i("U64",t)}if(n.isU128()){if(z(e))return;i("U128",t)}if(n.isU256()){if(D(e))return;i("U256",t)}if(n.isVector()){if(e instanceof o){e.values.length>0&&m(n.value,e.values[0],t);return}i("MoveVector",t)}if(n instanceof I){if(n.isString()){if(_(e))return;i("MoveString",t)}if(n.isObject()){if(h(e))return;i("AccountAddress",t)}if(n.isOption()){if(e instanceof T){e.value!==void 0&&m(n.value.typeArgs[0],e.value,t);return}i("MoveOption",t)}}throw new Error(`Type mismatch for argument ${t}, expected '${n.toString()}'`)}export{Z as a,P as b,N as c,a as d,nn as e,l as f};
2
+ //# sourceMappingURL=chunk-WFL6YWJS.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-52DBSOFA.mjs";import{b as r}from"./chunk-AOCNYMMX.mjs";var t=class extends e{toString(){let n=this.toUint8Array();return r.fromHexInput(n).toString()}},a=class extends t{};export{t as a,a as b};
2
- //# sourceMappingURL=chunk-HZC6A3QL.mjs.map
1
+ import{a as e}from"./chunk-52C73T26.mjs";import{b as r}from"./chunk-AOCNYMMX.mjs";var t=class extends e{toString(){let n=this.toUint8Array();return r.fromHexInput(n).toString()}},a=class extends t{};export{t as a,a as b};
2
+ //# sourceMappingURL=chunk-WFZDFFBM.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-QM4UQVGB.mjs";import{a as i}from"./chunk-6GZ5SUUK.mjs";import{a as r}from"./chunk-52C73T26.mjs";var n=class o extends r{constructor(t,a){super();this.raw_txn=t,this.authenticator=a}serialize(t){this.raw_txn.serialize(t),this.authenticator.serialize(t)}static deserialize(t){let a=e.deserialize(t),s=i.deserialize(t);return new o(a,s)}};export{n as a};
2
+ //# sourceMappingURL=chunk-WZNX3RBA.mjs.map
@@ -0,0 +1,2 @@
1
+ var n={mainnet:"https://api.mainnet.aptoslabs.com/v1/graphql",testnet:"https://api.testnet.aptoslabs.com/v1/graphql",devnet:"https://api.devnet.aptoslabs.com/v1/graphql",randomnet:"https://indexer-randomnet.hasura.app/v1/graphql",local:"http://127.0.0.1:8090/v1/graphql"},o={mainnet:"https://api.mainnet.aptoslabs.com/v1",testnet:"https://api.testnet.aptoslabs.com/v1",devnet:"https://api.devnet.aptoslabs.com/v1",randomnet:"https://fullnode.random.aptoslabs.com/v1",local:"http://127.0.0.1:8080/v1"},a={mainnet:"https://faucet.mainnet.aptoslabs.com",testnet:"https://faucet.testnet.aptoslabs.com",devnet:"https://faucet.devnet.aptoslabs.com",randomnet:"https://faucet.random.aptoslabs.com",local:"http://127.0.0.1:8081"},e=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t.DEVNET="devnet",t.RANDOMNET="randomnet",t.LOCAL="local",t.CUSTOM="custom",t))(e||{}),s={mainnet:1,testnet:2,randomnet:70,local:4},p={mainnet:"mainnet",testnet:"testnet",devnet:"devnet",randomnet:"randomnet",local:"local",custom:"custom"};export{n as a,o as b,a as c,e as d,s as e,p as f};
2
+ //# sourceMappingURL=chunk-XDGQTMDV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/apiEndpoints.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nexport const NetworkToIndexerAPI: Record<string, string> = {\n mainnet: \"https://api.mainnet.aptoslabs.com/v1/graphql\",\n testnet: \"https://api.testnet.aptoslabs.com/v1/graphql\",\n devnet: \"https://api.devnet.aptoslabs.com/v1/graphql\",\n randomnet: \"https://indexer-randomnet.hasura.app/v1/graphql\",\n local: \"http://127.0.0.1:8090/v1/graphql\",\n};\n\nexport const NetworkToNodeAPI: Record<string, string> = {\n mainnet: \"https://api.mainnet.aptoslabs.com/v1\",\n testnet: \"https://api.testnet.aptoslabs.com/v1\",\n devnet: \"https://api.devnet.aptoslabs.com/v1\",\n randomnet: \"https://fullnode.random.aptoslabs.com/v1\",\n local: \"http://127.0.0.1:8080/v1\",\n};\n\nexport const NetworkToFaucetAPI: Record<string, string> = {\n mainnet: \"https://faucet.mainnet.aptoslabs.com\",\n testnet: \"https://faucet.testnet.aptoslabs.com\",\n devnet: \"https://faucet.devnet.aptoslabs.com\",\n randomnet: \"https://faucet.random.aptoslabs.com\",\n local: \"http://127.0.0.1:8081\",\n};\n\nexport enum Network {\n MAINNET = \"mainnet\",\n TESTNET = \"testnet\",\n DEVNET = \"devnet\",\n RANDOMNET = \"randomnet\",\n LOCAL = \"local\",\n CUSTOM = \"custom\",\n}\n\nexport const NetworkToChainId: Record<string, number> = {\n mainnet: 1,\n testnet: 2,\n randomnet: 70,\n local: 4,\n};\n\nexport const NetworkToNetworkName: Record<string, Network> = {\n mainnet: Network.MAINNET,\n testnet: Network.TESTNET,\n devnet: Network.DEVNET,\n randomnet: Network.RANDOMNET,\n local: Network.LOCAL,\n custom: Network.CUSTOM,\n};\n"],"mappings":"AAGO,IAAMA,EAA8C,CACzD,QAAS,+CACT,QAAS,+CACT,OAAQ,8CACR,UAAW,kDACX,MAAO,kCACT,EAEaC,EAA2C,CACtD,QAAS,uCACT,QAAS,uCACT,OAAQ,sCACR,UAAW,2CACX,MAAO,0BACT,EAEaC,EAA6C,CACxD,QAAS,uCACT,QAAS,uCACT,OAAQ,sCACR,UAAW,sCACX,MAAO,uBACT,EAEYC,OACVA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,UAAY,YACZA,EAAA,MAAQ,QACRA,EAAA,OAAS,SANCA,OAAA,IASCC,EAA2C,CACtD,QAAS,EACT,QAAS,EACT,UAAW,GACX,MAAO,CACT,EAEaC,EAAgD,CAC3D,QAAS,UACT,QAAS,UACT,OAAQ,SACR,UAAW,YACX,MAAO,QACP,OAAQ,QACV","names":["NetworkToIndexerAPI","NetworkToNodeAPI","NetworkToFaucetAPI","Network","NetworkToChainId","NetworkToNetworkName"]}
@@ -0,0 +1,2 @@
1
+ import{a,c}from"./chunk-MFFSJJSY.mjs";import{a as n,c as s}from"./chunk-OATDMLDK.mjs";import{b as l}from"./chunk-WFZDFFBM.mjs";import{a as y}from"./chunk-R5QUBEH6.mjs";import{a as u}from"./chunk-NPFNYP75.mjs";var b=class t extends l{constructor(e){super();if(this.publicKey=e,e instanceof n)this.variant=0;else if(e instanceof a)this.variant=1;else throw new Error("Unsupported public key type")}verifySignature(e){let{message:r,signature:i}=e;return i instanceof o?this.publicKey.verifySignature({message:r,signature:i.signature}):!1}authKey(){return u.fromSchemeAndBytes({scheme:2,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeU32AsUleb128(this.variant),this.publicKey.serialize(e)}static deserialize(e){let r=e.deserializeUleb128AsU32(),i;switch(r){case 0:i=n.deserialize(e);break;case 1:i=a.deserialize(e);break;default:throw new Error(`Unknown variant index for AnyPublicKey: ${r}`)}return new t(i)}static isPublicKey(e){return e instanceof t}isEd25519(){return this.publicKey instanceof n}isSecp256k1PublicKey(){return this.publicKey instanceof a}},o=class t extends y{constructor(e){super();if(this.signature=e,e instanceof s)this.variant=0;else if(e instanceof c)this.variant=1;else throw new Error("Unsupported signature type")}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let r=e.deserializeUleb128AsU32(),i;switch(r){case 0:i=s.deserialize(e);break;case 1:i=c.deserialize(e);break;default:throw new Error(`Unknown variant index for AnySignature: ${r}`)}return new t(i)}};export{b as a,o as b};
2
+ //# sourceMappingURL=chunk-XRAL7KVT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/crypto/singleKey.ts"],"sourcesContent":["import { Deserializer, Serializer } from \"../../bcs\";\nimport { AnyPublicKeyVariant, AnySignatureVariant, SigningScheme as AuthenticationKeyScheme } from \"../../types\";\nimport { AuthenticationKey } from \"../authenticationKey\";\nimport { Ed25519PublicKey, Ed25519Signature } from \"./ed25519\";\nimport { AccountPublicKey, PublicKey, VerifySignatureArgs } from \"./publicKey\";\nimport { Secp256k1PublicKey, Secp256k1Signature } from \"./secp256k1\";\nimport { Signature } from \"./signature\";\n\n/**\n * Represents any public key supported by Aptos.\n *\n * Since [AIP-55](https://github.com/aptos-foundation/AIPs/pull/263) Aptos supports\n * `Legacy` and `Unified` authentication keys.\n *\n * Any unified authentication key is represented in the SDK as `AnyPublicKey`.\n */\nexport class AnyPublicKey extends AccountPublicKey {\n /**\n * Reference to the inner public key\n */\n public readonly publicKey: PublicKey;\n\n /**\n * Index of the underlying enum variant\n */\n public readonly variant: AnyPublicKeyVariant;\n\n // region Constructors\n\n constructor(publicKey: PublicKey) {\n super();\n this.publicKey = publicKey;\n if (publicKey instanceof Ed25519PublicKey) {\n this.variant = AnyPublicKeyVariant.Ed25519;\n } else if (publicKey instanceof Secp256k1PublicKey) {\n this.variant = AnyPublicKeyVariant.Secp256k1;\n } else {\n throw new Error(\"Unsupported public key type\");\n }\n }\n\n // endregion\n\n // region AccountPublicKey\n\n verifySignature(args: VerifySignatureArgs): boolean {\n const { message, signature } = args;\n if (!(signature instanceof AnySignature)) {\n return false;\n }\n\n return this.publicKey.verifySignature({\n message,\n signature: signature.signature,\n });\n }\n\n authKey(): AuthenticationKey {\n return AuthenticationKey.fromSchemeAndBytes({\n scheme: AuthenticationKeyScheme.SingleKey,\n input: this.toUint8Array(),\n });\n }\n\n toUint8Array() {\n return this.bcsToBytes();\n }\n\n // endregion\n\n // region Serializable\n\n serialize(serializer: Serializer): void {\n serializer.serializeU32AsUleb128(this.variant);\n this.publicKey.serialize(serializer);\n }\n\n static deserialize(deserializer: Deserializer): AnyPublicKey {\n const variantIndex = deserializer.deserializeUleb128AsU32();\n let publicKey: PublicKey;\n switch (variantIndex) {\n case AnyPublicKeyVariant.Ed25519:\n publicKey = Ed25519PublicKey.deserialize(deserializer);\n break;\n case AnyPublicKeyVariant.Secp256k1:\n publicKey = Secp256k1PublicKey.deserialize(deserializer);\n break;\n default:\n throw new Error(`Unknown variant index for AnyPublicKey: ${variantIndex}`);\n }\n return new AnyPublicKey(publicKey);\n }\n\n // endregion\n\n /**\n * @deprecated use `instanceof AnyPublicKey` instead.\n */\n static isPublicKey(publicKey: AccountPublicKey): publicKey is AnyPublicKey {\n return publicKey instanceof AnyPublicKey;\n }\n\n /**\n * @deprecated use `publicKey instanceof Ed25519PublicKey` instead.\n */\n isEd25519(): boolean {\n return this.publicKey instanceof Ed25519PublicKey;\n }\n\n /**\n * @deprecated use `publicKey instanceof Secp256k1PublicKey` instead.\n */\n isSecp256k1PublicKey(): boolean {\n return this.publicKey instanceof Secp256k1PublicKey;\n }\n}\n\n/**\n * Instance of signature that uses the SingleKey authentication scheme.\n * This signature can only be generated by a `SingleKeySigner`, since it uses the\n * same authentication scheme.\n */\nexport class AnySignature extends Signature {\n public readonly signature: Signature;\n\n /**\n * Index of the underlying enum variant\n */\n private readonly variant: AnySignatureVariant;\n\n // region Constructors\n\n constructor(signature: Signature) {\n super();\n this.signature = signature;\n\n if (signature instanceof Ed25519Signature) {\n this.variant = AnySignatureVariant.Ed25519;\n } else if (signature instanceof Secp256k1Signature) {\n this.variant = AnySignatureVariant.Secp256k1;\n } else {\n throw new Error(\"Unsupported signature type\");\n }\n }\n\n // endregion\n\n // region AccountSignature\n\n toUint8Array() {\n return this.bcsToBytes();\n }\n\n // endregion\n\n // region Serializable\n\n serialize(serializer: Serializer): void {\n serializer.serializeU32AsUleb128(this.variant);\n this.signature.serialize(serializer);\n }\n\n static deserialize(deserializer: Deserializer): AnySignature {\n const variantIndex = deserializer.deserializeUleb128AsU32();\n let signature: Signature;\n switch (variantIndex) {\n case AnySignatureVariant.Ed25519:\n signature = Ed25519Signature.deserialize(deserializer);\n break;\n case AnySignatureVariant.Secp256k1:\n signature = Secp256k1Signature.deserialize(deserializer);\n break;\n default:\n throw new Error(`Unknown variant index for AnySignature: ${variantIndex}`);\n }\n return new AnySignature(signature);\n }\n\n // endregion\n}\n"],"mappings":"iNAgBO,IAAMA,EAAN,MAAMC,UAAqBC,CAAiB,CAajD,YAAYC,EAAsB,CAChC,MAAM,EACN,QAAK,UAAYA,EACbA,aAAqBC,EACvB,KAAK,QAAU,UACND,aAAqBE,EAC9B,KAAK,QAAU,MAEf,OAAM,IAAI,MAAM,6BAA6B,CAEjD,CAMA,gBAAgBC,EAAoC,CAClD,GAAM,CAAE,QAAAC,EAAS,UAAAC,CAAU,EAAIF,EAC/B,OAAME,aAAqBC,EAIpB,KAAK,UAAU,gBAAgB,CACpC,QAAAF,EACA,UAAWC,EAAU,SACvB,CAAC,EANQ,EAOX,CAEA,SAA6B,CAC3B,OAAOE,EAAkB,mBAAmB,CAC1C,SACA,MAAO,KAAK,aAAa,CAC3B,CAAC,CACH,CAEA,cAAe,CACb,OAAO,KAAK,WAAW,CACzB,CAMA,UAAUC,EAA8B,CACtCA,EAAW,sBAAsB,KAAK,OAAO,EAC7C,KAAK,UAAU,UAAUA,CAAU,CACrC,CAEA,OAAO,YAAYC,EAA0C,CAC3D,IAAMC,EAAeD,EAAa,wBAAwB,EACtDT,EACJ,OAAQU,EAAc,CACpB,OACEV,EAAYC,EAAiB,YAAYQ,CAAY,EACrD,MACF,OACET,EAAYE,EAAmB,YAAYO,CAAY,EACvD,MACF,QACE,MAAM,IAAI,MAAM,2CAA2CC,CAAY,EAAE,CAC7E,CACA,OAAO,IAAIZ,EAAaE,CAAS,CACnC,CAOA,OAAO,YAAYA,EAAwD,CACzE,OAAOA,aAAqBF,CAC9B,CAKA,WAAqB,CACnB,OAAO,KAAK,qBAAqBG,CACnC,CAKA,sBAAgC,CAC9B,OAAO,KAAK,qBAAqBC,CACnC,CACF,EAOaI,EAAN,MAAMK,UAAqBC,CAAU,CAU1C,YAAYP,EAAsB,CAChC,MAAM,EACN,QAAK,UAAYA,EAEbA,aAAqBQ,EACvB,KAAK,QAAU,UACNR,aAAqBS,EAC9B,KAAK,QAAU,MAEf,OAAM,IAAI,MAAM,4BAA4B,CAEhD,CAMA,cAAe,CACb,OAAO,KAAK,WAAW,CACzB,CAMA,UAAUN,EAA8B,CACtCA,EAAW,sBAAsB,KAAK,OAAO,EAC7C,KAAK,UAAU,UAAUA,CAAU,CACrC,CAEA,OAAO,YAAYC,EAA0C,CAC3D,IAAMC,EAAeD,EAAa,wBAAwB,EACtDJ,EACJ,OAAQK,EAAc,CACpB,OACEL,EAAYQ,EAAiB,YAAYJ,CAAY,EACrD,MACF,OACEJ,EAAYS,EAAmB,YAAYL,CAAY,EACvD,MACF,QACE,MAAM,IAAI,MAAM,2CAA2CC,CAAY,EAAE,CAC7E,CACA,OAAO,IAAIC,EAAaN,CAAS,CACnC,CAGF","names":["AnyPublicKey","_AnyPublicKey","AccountPublicKey","publicKey","Ed25519PublicKey","Secp256k1PublicKey","args","message","signature","AnySignature","AuthenticationKey","serializer","deserializer","variantIndex","_AnySignature","Signature","Ed25519Signature","Secp256k1Signature"]}
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-KWDJ4YOP.mjs";import{a as c}from"./chunk-WF737YNO.mjs";import{b as i}from"./chunk-VAZQVN5V.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-U426PZNM.mjs.map
1
+ import{a as n}from"./chunk-YZKDNVA5.mjs";import{a as c}from"./chunk-H3NRKYG4.mjs";import{b as i}from"./chunk-OATDMLDK.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-Y5GRH4YJ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/account/Account.ts"],"sourcesContent":["import type { AccountAuthenticator } from \"../../transactions/authenticator/account\";\nimport { HexInput, SigningScheme, SigningSchemeInput } from \"../../types\";\nimport type { AccountAddress, AccountAddressInput } from \"../accountAddress\";\nimport { AuthenticationKey } from \"../authenticationKey\";\nimport { AccountPublicKey, Ed25519PrivateKey, PrivateKey, Signature, VerifySignatureArgs } from \"../crypto\";\nimport { Ed25519Account } from \"./Ed25519Account\";\nimport { SingleKeyAccount } from \"./SingleKeyAccount\";\n\n/**\n * Arguments for creating an `Ed25519Account` from an `Ed25519PrivateKey`.\n * This is the default input type when passing an `Ed25519PrivateKey`.\n * In order to use the SingleKey authentication scheme, `legacy` needs to be explicitly set to false.\n */\nexport interface CreateEd25519AccountFromPrivateKeyArgs {\n privateKey: Ed25519PrivateKey;\n address?: AccountAddressInput;\n legacy?: true;\n}\n\n/**\n * Arguments for creating an `SingleKeyAccount` from an `Ed25519PrivateKey`.\n * The `legacy` argument needs to be explicitly set to false in order to\n * use the `SingleKey` authentication scheme.\n */\nexport interface CreateEd25519SingleKeyAccountFromPrivateKeyArgs {\n privateKey: Ed25519PrivateKey;\n address?: AccountAddressInput;\n legacy: false;\n}\n\n/**\n * Arguments for creating an `SingleKeyAccount` from any supported private key\n * that is not an `Ed25519PrivateKey`.\n * The `legacy` argument defaults to false and cannot be explicitly set to true.\n */\nexport interface CreateSingleKeyAccountFromPrivateKeyArgs {\n privateKey: Exclude<PrivateKey, Ed25519PrivateKey>;\n address?: AccountAddressInput;\n legacy?: false;\n}\n\n/**\n * Arguments for creating an opaque `Account` from any supported private key.\n * This is used when the private key type is not known at compilation time.\n */\nexport interface CreateAccountFromPrivateKeyArgs {\n privateKey: PrivateKey;\n address?: AccountAddressInput;\n legacy?: boolean;\n}\n\n/**\n * Arguments for generating an `Ed25519Account`.\n * This is the input type used by default.\n */\nexport interface GenerateEd25519AccountArgs {\n scheme?: SigningSchemeInput.Ed25519;\n legacy?: true;\n}\n\n/**\n * Arguments for generating an `SingleKeyAccount` with ah underlying `Ed25519PrivateKey`.\n * The `legacy` argument needs to be explicitly set to false,\n * otherwise an `Ed25519Account` will be returned instead.\n */\nexport interface GenerateEd25519SingleKeyAccountArgs {\n scheme?: SigningSchemeInput.Ed25519;\n legacy: false;\n}\n\n/**\n * Arguments for generating an `SingleKeyAccount` with any supported private key\n * that is not an `Ed25519PrivateKey`.\n * The `legacy` argument defaults to false and cannot be explicitly set to true.\n */\nexport interface GenerateSingleKeyAccountArgs {\n scheme: Exclude<SigningSchemeInput, SigningSchemeInput.Ed25519>;\n legacy?: false;\n}\n\n/**\n * Arguments for generating an opaque `Account`.\n * This is used when the input signature scheme is not known at compilation time.\n */\nexport interface GenerateAccountArgs {\n scheme?: SigningSchemeInput;\n legacy?: boolean;\n}\n\n/**\n * Arguments for deriving a private key from a mnemonic phrase and a BIP44 path.\n */\nexport interface PrivateKeyFromDerivationPathArgs {\n path: string;\n mnemonic: string;\n}\n\n/**\n * Interface for a generic Aptos account.\n *\n * The interface is defined as abstract class to provide a single entrypoint for account generation,\n * either through `Account.generate()` or `Account.fromDerivationPath`.\n * Despite this being an abstract class, it should be treated as an interface and enforced using\n * the `implements` keyword.\n *\n * Note: Generating an account instance does not create the account on-chain.\n */\nexport abstract class Account {\n /**\n * Private key associated with the account.\n * Note: this will be removed in the next major release,\n * as not all accounts have a private key.\n */\n abstract readonly privateKey: PrivateKey;\n\n /**\n * Public key associated with the account\n */\n abstract readonly publicKey: AccountPublicKey;\n\n /**\n * Account address associated with the account\n */\n abstract readonly accountAddress: AccountAddress;\n\n /**\n * Signing scheme used to sign transactions\n */\n abstract signingScheme: SigningScheme;\n\n /**\n * Derives an account from a randomly generated private key.\n * @param args.scheme The signature scheme to use, to generate the private key\n * @param args.legacy Whether to use a legacy authentication scheme, when applicable\n * @returns An account compatible with the provided signature scheme\n */\n static generate(args?: GenerateEd25519AccountArgs): Ed25519Account;\n static generate(args: GenerateEd25519SingleKeyAccountArgs): SingleKeyAccount;\n static generate(args: GenerateSingleKeyAccountArgs): SingleKeyAccount;\n static generate(args: GenerateAccountArgs): Account;\n static generate(args: GenerateAccountArgs = {}) {\n const { scheme = SigningSchemeInput.Ed25519, legacy = true } = args;\n if (scheme === SigningSchemeInput.Ed25519 && legacy) {\n return Ed25519Account.generate();\n }\n return SingleKeyAccount.generate({ scheme });\n }\n\n /**\n * Creates an account from the provided private key.\n *\n * @param args.privateKey a valid private key\n * @param args.address the account's address. If not provided, it will be derived from the public key.\n * @param args.legacy Whether to use a legacy authentication scheme, when applicable\n */\n static fromPrivateKey(args: CreateEd25519AccountFromPrivateKeyArgs): Ed25519Account;\n static fromPrivateKey(args: CreateEd25519SingleKeyAccountFromPrivateKeyArgs): SingleKeyAccount;\n static fromPrivateKey(args: CreateSingleKeyAccountFromPrivateKeyArgs): SingleKeyAccount;\n static fromPrivateKey(args: CreateAccountFromPrivateKeyArgs): Account;\n static fromPrivateKey(args: CreateAccountFromPrivateKeyArgs) {\n const { privateKey, address, legacy = true } = args;\n if (privateKey instanceof Ed25519PrivateKey && legacy) {\n return new Ed25519Account({\n privateKey,\n address,\n });\n }\n return new SingleKeyAccount({ privateKey, address });\n }\n\n /**\n * @deprecated use `fromPrivateKey` instead.\n * Instantiates an account given a private key and a specified account address.\n * This is primarily used to instantiate an `Account` that has had its authentication key rotated.\n *\n * @param args.privateKey PrivateKey - the underlying private key for the account\n * @param args.address AccountAddress - The account address the `Account` will sign for\n * @param args.legacy optional. If set to false, the keypair generated is a Unified keypair. Defaults\n * to generating a Legacy Ed25519 keypair\n *\n * @returns Account\n */\n static fromPrivateKeyAndAddress(args: CreateAccountFromPrivateKeyArgs) {\n return this.fromPrivateKey(args);\n }\n\n /**\n * Derives an account with bip44 path and mnemonics\n *\n * @param args.scheme The signature scheme to derive the private key with\n * @param args.path the BIP44 derive hardened path (e.g. m/44'/637'/0'/0'/0') for Ed25519,\n * or non-hardened path (e.g. m/44'/637'/0'/0/0) for secp256k1\n * Detailed description: {@link https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki}\n * @param args.mnemonic the mnemonic seed phrase of the account\n */\n static fromDerivationPath(args: GenerateEd25519AccountArgs & PrivateKeyFromDerivationPathArgs): Ed25519Account;\n static fromDerivationPath(\n args: GenerateEd25519SingleKeyAccountArgs & PrivateKeyFromDerivationPathArgs,\n ): SingleKeyAccount;\n static fromDerivationPath(args: GenerateSingleKeyAccountArgs & PrivateKeyFromDerivationPathArgs): SingleKeyAccount;\n static fromDerivationPath(args: GenerateAccountArgs & PrivateKeyFromDerivationPathArgs): Account;\n static fromDerivationPath(args: GenerateAccountArgs & PrivateKeyFromDerivationPathArgs) {\n const { scheme = SigningSchemeInput.Ed25519, mnemonic, path, legacy = true } = args;\n if (scheme === SigningSchemeInput.Ed25519 && legacy) {\n return Ed25519Account.fromDerivationPath({ mnemonic, path });\n }\n return SingleKeyAccount.fromDerivationPath({ scheme, mnemonic, path });\n }\n\n /**\n * @deprecated use `publicKey.authKey()` instead.\n * This key enables account owners to rotate their private key(s)\n * associated with the account without changing the address that hosts their account.\n * See here for more info: {@link https://aptos.dev/concepts/accounts#single-signer-authentication}\n *\n * @param args.publicKey PublicKey - public key of the account\n * @returns The authentication key for the associated account\n */\n static authKey(args: { publicKey: AccountPublicKey }): AuthenticationKey {\n const { publicKey } = args;\n return publicKey.authKey();\n }\n\n /**\n * Sign a message using the available signing capabilities.\n * @param message the signing message, as binary input\n * @return the AccountAuthenticator containing the signature, together with the account's public key\n */\n abstract signWithAuthenticator(message: HexInput): AccountAuthenticator;\n\n /**\n * Sign the given message with the private key.\n * @param message in HexInput format\n * @returns AccountSignature\n */\n abstract sign(message: HexInput): Signature;\n\n /**\n * @param args.message raw message data in HexInput format\n * @param args.signature signed message signature\n */\n verifySignature(args: VerifySignatureArgs): boolean {\n return this.publicKey.verifySignature(args);\n }\n}\n"],"mappings":"2HA2GO,IAAeA,EAAf,KAAuB,CAiC5B,OAAO,SAASC,EAA4B,CAAC,EAAG,CAC9C,GAAM,CAAE,OAAAC,IAAqC,OAAAC,EAAS,EAAK,EAAIF,EAC/D,OAAIC,IAAW,GAA8BC,EACpCC,EAAe,SAAS,EAE1BC,EAAiB,SAAS,CAAE,OAAAH,CAAO,CAAC,CAC7C,CAaA,OAAO,eAAeD,EAAuC,CAC3D,GAAM,CAAE,WAAAK,EAAY,QAAAC,EAAS,OAAAJ,EAAS,EAAK,EAAIF,EAC/C,OAAIK,aAAsBE,GAAqBL,EACtC,IAAIC,EAAe,CACxB,WAAAE,EACA,QAAAC,CACF,CAAC,EAEI,IAAIF,EAAiB,CAAE,WAAAC,EAAY,QAAAC,CAAQ,CAAC,CACrD,CAcA,OAAO,yBAAyBN,EAAuC,CACrE,OAAO,KAAK,eAAeA,CAAI,CACjC,CAiBA,OAAO,mBAAmBA,EAA8D,CACtF,GAAM,CAAE,OAAAC,IAAqC,SAAAO,EAAU,KAAAC,EAAM,OAAAP,EAAS,EAAK,EAAIF,EAC/E,OAAIC,IAAW,GAA8BC,EACpCC,EAAe,mBAAmB,CAAE,SAAAK,EAAU,KAAAC,CAAK,CAAC,EAEtDL,EAAiB,mBAAmB,CAAE,OAAAH,EAAQ,SAAAO,EAAU,KAAAC,CAAK,CAAC,CACvE,CAWA,OAAO,QAAQT,EAA0D,CACvE,GAAM,CAAE,UAAAU,CAAU,EAAIV,EACtB,OAAOU,EAAU,QAAQ,CAC3B,CAoBA,gBAAgBV,EAAoC,CAClD,OAAO,KAAK,UAAU,gBAAgBA,CAAI,CAC5C,CACF","names":["Account","args","scheme","legacy","Ed25519Account","SingleKeyAccount","privateKey","address","Ed25519PrivateKey","mnemonic","path","publicKey"]}
@@ -1,2 +1,2 @@
1
- import{f as a}from"./chunk-CYWA4AJF.mjs";import{q as d}from"./chunk-S4SEFF4K.mjs";import{b as p}from"./chunk-U7EZI5D5.mjs";var g=300,y=o=>{if(o&&o.length>g)throw new Error(`Event type length exceeds the maximum length of ${g}`)};async function f(o){let{aptosConfig:n,eventType:e,options:t}=o,r={where:{account_address:{_eq:"0x0000000000000000000000000000000000000000000000000000000000000000"},creation_number:{_eq:"0"},sequence_number:{_eq:"0"},indexed_type:{_eq:e}},pagination:t,orderBy:t?.orderBy};return c({aptosConfig:n,options:r})}async function h(o){let{accountAddress:n,aptosConfig:e,creationNumber:t,options:s}=o,i={where:{account_address:{_eq:p.from(n).toStringLong()},creation_number:{_eq:t}},pagination:s,orderBy:s?.orderBy};return c({aptosConfig:e,options:i})}async function _(o){let{accountAddress:n,aptosConfig:e,eventType:t,options:s}=o,i={where:{account_address:{_eq:p.from(n).toStringLong()},indexed_type:{_eq:t}},pagination:s,orderBy:s?.orderBy};return c({aptosConfig:e,options:i})}async function c(o){let{aptosConfig:n,options:e}=o;y(e?.where?.indexed_type?._eq);let t={query:d,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await a({aptosConfig:n,query:t,originMethod:"getEvents"})).events}export{f as a,h as b,_ as c,c as d};
2
- //# sourceMappingURL=chunk-KMHJNUXU.mjs.map
1
+ import{b as p}from"./chunk-IOSQVDZI.mjs";import{f as a}from"./chunk-E7OPTWPP.mjs";import{q as d}from"./chunk-S4SEFF4K.mjs";var g=300,y=o=>{if(o&&o.length>g)throw new Error(`Event type length exceeds the maximum length of ${g}`)};async function f(o){let{aptosConfig:n,eventType:e,options:t}=o,r={where:{account_address:{_eq:"0x0000000000000000000000000000000000000000000000000000000000000000"},creation_number:{_eq:"0"},sequence_number:{_eq:"0"},indexed_type:{_eq:e}},pagination:t,orderBy:t?.orderBy};return c({aptosConfig:n,options:r})}async function h(o){let{accountAddress:n,aptosConfig:e,creationNumber:t,options:s}=o,i={where:{account_address:{_eq:p.from(n).toStringLong()},creation_number:{_eq:t}},pagination:s,orderBy:s?.orderBy};return c({aptosConfig:e,options:i})}async function _(o){let{accountAddress:n,aptosConfig:e,eventType:t,options:s}=o,i={where:{account_address:{_eq:p.from(n).toStringLong()},indexed_type:{_eq:t}},pagination:s,orderBy:s?.orderBy};return c({aptosConfig:e,options:i})}async function c(o){let{aptosConfig:n,options:e}=o;y(e?.where?.indexed_type?._eq);let t={query:d,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await a({aptosConfig:n,query:t,originMethod:"getEvents"})).events}export{f as a,h as b,_ as c,c as d};
2
+ //# sourceMappingURL=chunk-YUN2JVAN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-6OKRMOWR.mjs";var o=class{constructor(n){this.config=n}async simple(n){return t({aptosConfig:this.config,...n})}async multiAgent(n){return t({aptosConfig:this.config,...n})}};export{o as a};
2
- //# sourceMappingURL=chunk-KBSAS57Q.mjs.map
1
+ import{a as t}from"./chunk-OMC3ZGKN.mjs";var o=class{constructor(n){this.config=n}async simple(n){return t({aptosConfig:this.config,...n})}async multiAgent(n){return t({aptosConfig:this.config,...n})}};export{o as a};
2
+ //# sourceMappingURL=chunk-YVIP7DMT.mjs.map
@@ -1,2 +1,2 @@
1
- import{f as n}from"./chunk-CYWA4AJF.mjs";import{p as g,u as d}from"./chunk-S4SEFF4K.mjs";import{b as s}from"./chunk-U7EZI5D5.mjs";async function m(e){let{aptosConfig:t,poolAddress:o}=e,r=s.from(o).toStringLong(),i=await n({aptosConfig:t,query:{query:d,variables:{where_condition:{pool_address:{_eq:r}}}}});return i.num_active_delegator_per_pool[0]?i.num_active_delegator_per_pool[0].num_active_delegator:0}async function f(e){let{aptosConfig:t,options:o}=e,r={query:d,variables:{order_by:o?.orderBy}};return(await n({aptosConfig:t,query:r})).num_active_delegator_per_pool}async function A(e){let{aptosConfig:t,delegatorAddress:o,poolAddress:r}=e,a={query:g,variables:{delegatorAddress:s.from(o).toStringLong(),poolAddress:s.from(r).toStringLong()}};return(await n({aptosConfig:t,query:a})).delegated_staking_activities}export{m as a,f as b,A as c};
2
- //# sourceMappingURL=chunk-OAOJVE5X.mjs.map
1
+ import{b as s}from"./chunk-IOSQVDZI.mjs";import{f as n}from"./chunk-E7OPTWPP.mjs";import{p as g,u as d}from"./chunk-S4SEFF4K.mjs";async function m(e){let{aptosConfig:t,poolAddress:o}=e,r=s.from(o).toStringLong(),i=await n({aptosConfig:t,query:{query:d,variables:{where_condition:{pool_address:{_eq:r}}}}});return i.num_active_delegator_per_pool[0]?i.num_active_delegator_per_pool[0].num_active_delegator:0}async function f(e){let{aptosConfig:t,options:o}=e,r={query:d,variables:{order_by:o?.orderBy}};return(await n({aptosConfig:t,query:r})).num_active_delegator_per_pool}async function A(e){let{aptosConfig:t,delegatorAddress:o,poolAddress:r}=e,a={query:g,variables:{delegatorAddress:s.from(o).toStringLong(),poolAddress:s.from(r).toStringLong()}};return(await n({aptosConfig:t,query:a})).delegated_staking_activities}export{m as a,f as b,A as c};
2
+ //# sourceMappingURL=chunk-YWN2T4IU.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as o}from"./chunk-M3NK6GOI.mjs";import{b as i}from"./chunk-OATDMLDK.mjs";import{b as s}from"./chunk-IOSQVDZI.mjs";var a=class n{constructor(e){this.signingScheme=0;let{privateKey:t,address:r}=e;this.privateKey=t,this.publicKey=t.publicKey(),this.accountAddress=r?s.from(r):this.publicKey.authKey().derivedAddress()}static generate(){let e=i.generate();return new n({privateKey:e})}static fromDerivationPath(e){let{path:t,mnemonic:r}=e,c=i.fromDerivationPath(t,r);return new n({privateKey:c})}verifySignature(e){return this.publicKey.verifySignature(e)}signWithAuthenticator(e){let t=this.privateKey.sign(e);return new o(this.publicKey,t)}sign(e){return this.signWithAuthenticator(e).signature}};export{a};
2
+ //# sourceMappingURL=chunk-YZKDNVA5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/account/Ed25519Account.ts"],"sourcesContent":["import { AccountAuthenticatorEd25519 } from \"../../transactions/authenticator/account\";\nimport { HexInput, SigningScheme } from \"../../types\";\nimport { AccountAddress, AccountAddressInput } from \"../accountAddress\";\nimport { Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature } from \"../crypto\";\nimport type { Account } from \"./Account\";\n\nexport interface Ed25519SignerConstructorArgs {\n privateKey: Ed25519PrivateKey;\n address?: AccountAddressInput;\n}\n\nexport interface Ed25519SignerFromDerivationPathArgs {\n path: string;\n mnemonic: string;\n}\n\nexport interface VerifyEd25519SignatureArgs {\n message: HexInput;\n signature: Ed25519Signature;\n}\n\n/**\n * Signer implementation for the Ed25519 authentication scheme.\n * This extends an {@link Ed25519Account} by adding signing capabilities through an {@link Ed25519PrivateKey}.\n *\n * Note: Generating a signer instance does not create the account on-chain.\n */\nexport class Ed25519Account implements Account {\n /**\n * Private key associated with the account\n */\n readonly privateKey: Ed25519PrivateKey;\n\n readonly publicKey: Ed25519PublicKey;\n\n readonly accountAddress: AccountAddress;\n\n readonly signingScheme = SigningScheme.Ed25519;\n\n // region Constructors\n\n constructor(args: Ed25519SignerConstructorArgs) {\n const { privateKey, address } = args;\n this.privateKey = privateKey;\n this.publicKey = privateKey.publicKey();\n this.accountAddress = address ? AccountAddress.from(address) : this.publicKey.authKey().derivedAddress();\n }\n\n /**\n * Derives a signer from a randomly generated private key\n */\n static generate() {\n const privateKey = Ed25519PrivateKey.generate();\n return new Ed25519Account({ privateKey });\n }\n\n /**\n * Derives an account with bip44 path and mnemonics\n *\n * @param args.path the BIP44 derive hardened path e.g. m/44'/637'/0'/0'/0'\n * Detailed description: {@link https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki}\n * @param args.mnemonic the mnemonic seed phrase of the account\n */\n static fromDerivationPath(args: Ed25519SignerFromDerivationPathArgs) {\n const { path, mnemonic } = args;\n const privateKey = Ed25519PrivateKey.fromDerivationPath(path, mnemonic);\n return new Ed25519Account({ privateKey });\n }\n\n // endregion\n\n // region Account\n\n verifySignature(args: VerifyEd25519SignatureArgs): boolean {\n return this.publicKey.verifySignature(args);\n }\n\n signWithAuthenticator(message: HexInput) {\n const signature = this.privateKey.sign(message);\n return new AccountAuthenticatorEd25519(this.publicKey, signature);\n }\n\n sign(message: HexInput) {\n return this.signWithAuthenticator(message).signature;\n }\n\n // endregion\n}\n"],"mappings":"2HA2BO,IAAMA,EAAN,MAAMC,CAAkC,CAc7C,YAAYC,EAAoC,CAJhD,KAAS,cAAgB,EAKvB,GAAM,CAAE,WAAAC,EAAY,QAAAC,CAAQ,EAAIF,EAChC,KAAK,WAAaC,EAClB,KAAK,UAAYA,EAAW,UAAU,EACtC,KAAK,eAAiBC,EAAUC,EAAe,KAAKD,CAAO,EAAI,KAAK,UAAU,QAAQ,EAAE,eAAe,CACzG,CAKA,OAAO,UAAW,CAChB,IAAMD,EAAaG,EAAkB,SAAS,EAC9C,OAAO,IAAIL,EAAe,CAAE,WAAAE,CAAW,CAAC,CAC1C,CASA,OAAO,mBAAmBD,EAA2C,CACnE,GAAM,CAAE,KAAAK,EAAM,SAAAC,CAAS,EAAIN,EACrBC,EAAaG,EAAkB,mBAAmBC,EAAMC,CAAQ,EACtE,OAAO,IAAIP,EAAe,CAAE,WAAAE,CAAW,CAAC,CAC1C,CAMA,gBAAgBD,EAA2C,CACzD,OAAO,KAAK,UAAU,gBAAgBA,CAAI,CAC5C,CAEA,sBAAsBO,EAAmB,CACvC,IAAMC,EAAY,KAAK,WAAW,KAAKD,CAAO,EAC9C,OAAO,IAAIE,EAA4B,KAAK,UAAWD,CAAS,CAClE,CAEA,KAAKD,EAAmB,CACtB,OAAO,KAAK,sBAAsBA,CAAO,EAAE,SAC7C,CAGF","names":["Ed25519Account","_Ed25519Account","args","privateKey","address","AccountAddress","Ed25519PrivateKey","path","mnemonic","message","signature","AccountAuthenticatorEd25519"]}
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-7EQOLMEJ.mjs";import{a as r}from"./chunk-52DBSOFA.mjs";var t=class l extends r{constructor(e){super();this.value=new i(e)}serialize(e){e.serialize(this.value)}serializeForEntryFunction(e){e.serializeU32AsUleb128(this.value.value.length),e.serialize(this)}static deserialize(e,s){let a=i.deserialize(e,s);return new l(a.value)}};export{t as a};
2
- //# sourceMappingURL=chunk-UZHVGPGH.mjs.map
1
+ import{a as i}from"./chunk-TBMAJ6AW.mjs";import{a as r}from"./chunk-52C73T26.mjs";var t=class l extends r{constructor(e){super();this.value=new i(e)}serialize(e){e.serialize(this.value)}serializeForEntryFunction(e){e.serializeU32AsUleb128(this.value.value.length),e.serialize(this)}static deserialize(e,s){let a=i.deserialize(e,s);return new l(a.value)}};export{t as a};
2
+ //# sourceMappingURL=chunk-ZYYK3UXP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{b as aptosRequest,a as request};
1
+ import{a,b}from"../chunk-HHETZQ6D.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-MQXSU6GN.mjs";import"../chunk-XDGQTMDV.mjs";import"../chunk-CYNQRMO5.mjs";import"../chunk-FVA2OPG4.mjs";export{b as aptosRequest,a as request};
2
2
  //# sourceMappingURL=core.mjs.map
@@ -50,7 +50,6 @@ type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
50
50
  */
51
51
  declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
52
52
  declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
53
- declare function getAptosPepperService<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
54
53
  declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
55
54
 
56
- export { type GetAptosRequestOptions, type GetRequestOptions, get, getAptosFullNode, getAptosPepperService, paginateWithCursor };
55
+ export { type GetAptosRequestOptions, type GetRequestOptions, get, getAptosFullNode, paginateWithCursor };
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../chunk-EMFDNUP2.mjs";import"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as get,b as getAptosFullNode,c as getAptosPepperService,d as paginateWithCursor};
1
+ import{a,b,c}from"../chunk-3YCG7Y63.mjs";import"../chunk-HHETZQ6D.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-MQXSU6GN.mjs";import"../chunk-XDGQTMDV.mjs";import"../chunk-CYNQRMO5.mjs";import"../chunk-FVA2OPG4.mjs";export{a as get,b as getAptosFullNode,c as paginateWithCursor};
2
2
  //# sourceMappingURL=get.mjs.map
@@ -1,6 +1,6 @@
1
1
  export { aptosRequest, request } from './core.mjs';
2
- export { GetAptosRequestOptions, GetRequestOptions, get, getAptosFullNode, getAptosPepperService, paginateWithCursor } from './get.mjs';
3
- export { PostAptosRequestOptions, PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService } from './post.mjs';
2
+ export { GetAptosRequestOptions, GetRequestOptions, get, getAptosFullNode, paginateWithCursor } from './get.mjs';
3
+ export { PostAptosRequestOptions, PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer } from './post.mjs';
4
4
  export { AptosApiError, AptosResponse } from './types.mjs';
5
5
  import '../api/aptosConfig.mjs';
6
6
  import '../types/index.mjs';
@@ -1,2 +1,2 @@
1
- import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f,d as g}from"../chunk-EMFDNUP2.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m}from"../chunk-OVXWFD2N.mjs";import{a as b,b as c}from"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import{a}from"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AptosApiError,c as aptosRequest,d as get,e as getAptosFullNode,f as getAptosPepperService,g as paginateWithCursor,h as post,k as postAptosFaucet,i as postAptosFullNode,j as postAptosIndexer,l as postAptosPepperService,m as postAptosProvingService,b as request};
1
+ import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f}from"../chunk-3YCG7Y63.mjs";import{a as g,b as h,c as i,d as j}from"../chunk-5RE43AX2.mjs";import{a as b,b as c}from"../chunk-HHETZQ6D.mjs";import"../chunk-CYDWEPFL.mjs";import{a}from"../chunk-6FBKUTGF.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-MQXSU6GN.mjs";import"../chunk-XDGQTMDV.mjs";import"../chunk-CYNQRMO5.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AptosApiError,c as aptosRequest,d as get,e as getAptosFullNode,f as paginateWithCursor,g as post,j as postAptosFaucet,h as postAptosFullNode,i as postAptosIndexer,b as request};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -56,7 +56,5 @@ declare function post<Req extends {}, Res extends {}>(options: PostRequestOption
56
56
  declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
57
57
  declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
58
58
  declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
59
- declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
60
- declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
61
59
 
62
- export { type PostAptosRequestOptions, type PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService };
60
+ export { type PostAptosRequestOptions, type PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer };
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f}from"../chunk-OVXWFD2N.mjs";import"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as post,d as postAptosFaucet,b as postAptosFullNode,c as postAptosIndexer,e as postAptosPepperService,f as postAptosProvingService};
1
+ import{a,b,c,d}from"../chunk-5RE43AX2.mjs";import"../chunk-HHETZQ6D.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-MQXSU6GN.mjs";import"../chunk-XDGQTMDV.mjs";import"../chunk-CYNQRMO5.mjs";import"../chunk-FVA2OPG4.mjs";export{a as post,d as postAptosFaucet,b as postAptosFullNode,c as postAptosIndexer};
2
2
  //# sourceMappingURL=post.mjs.map
@@ -0,0 +1,20 @@
1
+ import '../../transactions/authenticator/account.mjs';
2
+ import '../../types/index.mjs';
3
+ import '../accountAddress.mjs';
4
+ import '../../publicKey-lq5djCIY.mjs';
5
+ import '../crypto/ed25519.mjs';
6
+ import '../crypto/signature.mjs';
7
+ import '../crypto/privateKey.mjs';
8
+ export { A as Account, e as CreateAccountFromPrivateKeyArgs, C as CreateEd25519AccountFromPrivateKeyArgs, c as CreateEd25519SingleKeyAccountFromPrivateKeyArgs, d as CreateSingleKeyAccountFromPrivateKeyArgs, h as GenerateAccountArgs, G as GenerateEd25519AccountArgs, f as GenerateEd25519SingleKeyAccountArgs, g as GenerateSingleKeyAccountArgs, P as PrivateKeyFromDerivationPathArgs } from '../../Ed25519Account--qjfup2u.mjs';
9
+ import '../../bcs/deserializer.mjs';
10
+ import '../../utils/apiEndpoints.mjs';
11
+ import '../../types/indexer.mjs';
12
+ import '../../types/generated/operations.mjs';
13
+ import '../../types/generated/types.mjs';
14
+ import '../../bcs/serializer.mjs';
15
+ import '../hex.mjs';
16
+ import '../common.mjs';
17
+ import '../crypto/multiEd25519.mjs';
18
+ import '../../transactions/instances/transactionArgument.mjs';
19
+ import '../crypto/multiKey.mjs';
20
+ import '../crypto/singleKey.mjs';
@@ -0,0 +1,2 @@
1
+ import{a}from"../../chunk-Y5GRH4YJ.mjs";import"../../chunk-YZKDNVA5.mjs";import"../../chunk-H3NRKYG4.mjs";import"../../chunk-M3NK6GOI.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-I2RHCBHM.mjs";import"../../chunk-5M7D6SXS.mjs";import"../../chunk-XRAL7KVT.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MFFSJJSY.mjs";import"../../chunk-OATDMLDK.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-WFZDFFBM.mjs";import"../../chunk-R5QUBEH6.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZYYK3UXP.mjs";import"../../chunk-TBMAJ6AW.mjs";import"../../chunk-FS3NSGBF.mjs";import"../../chunk-QIAHBEEW.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-NPFNYP75.mjs";import"../../chunk-IOSQVDZI.mjs";import"../../chunk-52C73T26.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-OWW6SIDP.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Account};
2
+ //# sourceMappingURL=Account.mjs.map
@@ -0,0 +1,20 @@
1
+ import '../../transactions/authenticator/account.mjs';
2
+ import '../../types/index.mjs';
3
+ import '../accountAddress.mjs';
4
+ import '../crypto/ed25519.mjs';
5
+ export { b as Ed25519Account, E as Ed25519SignerConstructorArgs, a as Ed25519SignerFromDerivationPathArgs, V as VerifyEd25519SignatureArgs } from '../../Ed25519Account--qjfup2u.mjs';
6
+ import '../../bcs/deserializer.mjs';
7
+ import '../../utils/apiEndpoints.mjs';
8
+ import '../../types/indexer.mjs';
9
+ import '../../types/generated/operations.mjs';
10
+ import '../../types/generated/types.mjs';
11
+ import '../../bcs/serializer.mjs';
12
+ import '../hex.mjs';
13
+ import '../common.mjs';
14
+ import '../crypto/multiEd25519.mjs';
15
+ import '../../publicKey-lq5djCIY.mjs';
16
+ import '../crypto/signature.mjs';
17
+ import '../../transactions/instances/transactionArgument.mjs';
18
+ import '../crypto/privateKey.mjs';
19
+ import '../crypto/multiKey.mjs';
20
+ import '../crypto/singleKey.mjs';
@@ -0,0 +1,2 @@
1
+ import{a}from"../../chunk-YZKDNVA5.mjs";import"../../chunk-M3NK6GOI.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-I2RHCBHM.mjs";import"../../chunk-5M7D6SXS.mjs";import"../../chunk-XRAL7KVT.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MFFSJJSY.mjs";import"../../chunk-OATDMLDK.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-WFZDFFBM.mjs";import"../../chunk-R5QUBEH6.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZYYK3UXP.mjs";import"../../chunk-TBMAJ6AW.mjs";import"../../chunk-FS3NSGBF.mjs";import"../../chunk-QIAHBEEW.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-NPFNYP75.mjs";import"../../chunk-IOSQVDZI.mjs";import"../../chunk-52C73T26.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-OWW6SIDP.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Ed25519Account};
2
+ //# sourceMappingURL=Ed25519Account.mjs.map
@@ -0,0 +1,20 @@
1
+ import '../../transactions/authenticator/account.mjs';
2
+ import '../../types/index.mjs';
3
+ import '../accountAddress.mjs';
4
+ import '../crypto/privateKey.mjs';
5
+ import '../crypto/singleKey.mjs';
6
+ export { l as SingleKeyAccount, S as SingleKeySignerConstructorArgs, j as SingleKeySignerFromDerivationPathArgs, i as SingleKeySignerGenerateArgs, k as VerifySingleKeySignatureArgs } from '../../Ed25519Account--qjfup2u.mjs';
7
+ import '../../bcs/deserializer.mjs';
8
+ import '../../utils/apiEndpoints.mjs';
9
+ import '../../types/indexer.mjs';
10
+ import '../../types/generated/operations.mjs';
11
+ import '../../types/generated/types.mjs';
12
+ import '../../bcs/serializer.mjs';
13
+ import '../hex.mjs';
14
+ import '../common.mjs';
15
+ import '../crypto/ed25519.mjs';
16
+ import '../../publicKey-lq5djCIY.mjs';
17
+ import '../crypto/signature.mjs';
18
+ import '../../transactions/instances/transactionArgument.mjs';
19
+ import '../crypto/multiEd25519.mjs';
20
+ import '../crypto/multiKey.mjs';
@@ -0,0 +1,2 @@
1
+ import{a}from"../../chunk-H3NRKYG4.mjs";import"../../chunk-M3NK6GOI.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-I2RHCBHM.mjs";import"../../chunk-5M7D6SXS.mjs";import"../../chunk-XRAL7KVT.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MFFSJJSY.mjs";import"../../chunk-OATDMLDK.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-WFZDFFBM.mjs";import"../../chunk-R5QUBEH6.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZYYK3UXP.mjs";import"../../chunk-TBMAJ6AW.mjs";import"../../chunk-FS3NSGBF.mjs";import"../../chunk-QIAHBEEW.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-NPFNYP75.mjs";import"../../chunk-IOSQVDZI.mjs";import"../../chunk-52C73T26.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-OWW6SIDP.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as SingleKeyAccount};
2
+ //# sourceMappingURL=SingleKeyAccount.mjs.map
@@ -0,0 +1,21 @@
1
+ export { A as Account, e as CreateAccountFromPrivateKeyArgs, C as CreateEd25519AccountFromPrivateKeyArgs, c as CreateEd25519SingleKeyAccountFromPrivateKeyArgs, d as CreateSingleKeyAccountFromPrivateKeyArgs, b as Ed25519Account, E as Ed25519SignerConstructorArgs, a as Ed25519SignerFromDerivationPathArgs, h as GenerateAccountArgs, G as GenerateEd25519AccountArgs, f as GenerateEd25519SingleKeyAccountArgs, g as GenerateSingleKeyAccountArgs, P as PrivateKeyFromDerivationPathArgs, l as SingleKeyAccount, S as SingleKeySignerConstructorArgs, j as SingleKeySignerFromDerivationPathArgs, i as SingleKeySignerGenerateArgs, V as VerifyEd25519SignatureArgs, k as VerifySingleKeySignatureArgs } from '../../Ed25519Account--qjfup2u.mjs';
2
+ export { createObjectAddress, createResourceAddress, createTokenAddress } from './utils/address.mjs';
3
+ import '../../transactions/authenticator/account.mjs';
4
+ import '../../bcs/deserializer.mjs';
5
+ import '../../types/index.mjs';
6
+ import '../../utils/apiEndpoints.mjs';
7
+ import '../../types/indexer.mjs';
8
+ import '../../types/generated/operations.mjs';
9
+ import '../../types/generated/types.mjs';
10
+ import '../../bcs/serializer.mjs';
11
+ import '../hex.mjs';
12
+ import '../common.mjs';
13
+ import '../crypto/ed25519.mjs';
14
+ import '../../publicKey-lq5djCIY.mjs';
15
+ import '../accountAddress.mjs';
16
+ import '../../transactions/instances/transactionArgument.mjs';
17
+ import '../crypto/signature.mjs';
18
+ import '../crypto/privateKey.mjs';
19
+ import '../crypto/multiEd25519.mjs';
20
+ import '../crypto/multiKey.mjs';
21
+ import '../crypto/singleKey.mjs';
@@ -0,0 +1,2 @@
1
+ import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import{a as d,b as e,c as f}from"../../chunk-UML2VQZT.mjs";import{a as c}from"../../chunk-Y5GRH4YJ.mjs";import{a}from"../../chunk-YZKDNVA5.mjs";import{a as b}from"../../chunk-H3NRKYG4.mjs";import"../../chunk-M3NK6GOI.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-I2RHCBHM.mjs";import"../../chunk-5M7D6SXS.mjs";import"../../chunk-XRAL7KVT.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-MFFSJJSY.mjs";import"../../chunk-OATDMLDK.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-WFZDFFBM.mjs";import"../../chunk-R5QUBEH6.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZYYK3UXP.mjs";import"../../chunk-TBMAJ6AW.mjs";import"../../chunk-FS3NSGBF.mjs";import"../../chunk-QIAHBEEW.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-NPFNYP75.mjs";import"../../chunk-IOSQVDZI.mjs";import"../../chunk-52C73T26.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-OWW6SIDP.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as Account,a as Ed25519Account,b as SingleKeyAccount,d as createObjectAddress,e as createResourceAddress,f as createTokenAddress};
2
+ //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c}from"../../../chunk-XI4LX4EC.mjs";import"../../../chunk-U7EZI5D5.mjs";import"../../../chunk-52DBSOFA.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-AOCNYMMX.mjs";import"../../../chunk-FBPNHF54.mjs";import"../../../chunk-ACOL3VVP.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-FVA2OPG4.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
1
+ import{a,b,c}from"../../../chunk-UML2VQZT.mjs";import"../../../chunk-IOSQVDZI.mjs";import"../../../chunk-52C73T26.mjs";import"../../../chunk-AOCNYMMX.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-FBPNHF54.mjs";import"../../../chunk-OWW6SIDP.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-FVA2OPG4.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
2
2
  //# sourceMappingURL=address.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o,b as r,c as e}from"../../../chunk-XI4LX4EC.mjs";import"../../../chunk-U7EZI5D5.mjs";import"../../../chunk-52DBSOFA.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-AOCNYMMX.mjs";import"../../../chunk-FBPNHF54.mjs";import"../../../chunk-ACOL3VVP.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-FVA2OPG4.mjs";export{o as createObjectAddress,r as createResourceAddress,e as createTokenAddress};
1
+ import"../../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../../chunk-UML2VQZT.mjs";import"../../../chunk-IOSQVDZI.mjs";import"../../../chunk-52C73T26.mjs";import"../../../chunk-AOCNYMMX.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-FBPNHF54.mjs";import"../../../chunk-OWW6SIDP.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-FVA2OPG4.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../chunk-U7EZI5D5.mjs";import"../chunk-52DBSOFA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{b as AccountAddress,a as AddressInvalidReason};
1
+ import{a,b}from"../chunk-IOSQVDZI.mjs";import"../chunk-52C73T26.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{b as AccountAddress,a as AddressInvalidReason};
2
2
  //# sourceMappingURL=accountAddress.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-JYFKKB34.mjs";import"../chunk-U7EZI5D5.mjs";import"../chunk-52DBSOFA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AuthenticationKey};
1
+ import{a}from"../chunk-NPFNYP75.mjs";import"../chunk-IOSQVDZI.mjs";import"../chunk-52C73T26.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AuthenticationKey};
2
2
  //# sourceMappingURL=authenticationKey.mjs.map
@@ -100,6 +100,16 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
100
100
  * @param mnemonics the mnemonic seed phrase
101
101
  */
102
102
  static fromDerivationPath(path: string, mnemonics: string): Ed25519PrivateKey;
103
+ /**
104
+ * A private inner function so we can separate from the main fromDerivationPath() method
105
+ * to add tests to verify we create the keys correctly.
106
+ *
107
+ * @param path the BIP44 path
108
+ * @param seed the seed phrase created by the mnemonics
109
+ * @param offset the offset used for key derivation, defaults to 0x80000000
110
+ * @returns
111
+ */
112
+ private static fromDerivationPathInner;
103
113
  /**
104
114
  * Derive the Ed25519PublicKey for this private key.
105
115
  *
@@ -1,2 +1,2 @@
1
- import{a,b,c}from"../../chunk-VAZQVN5V.mjs";import"../../chunk-KX5ESZO7.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-HZC6A3QL.mjs";import"../../chunk-S5HG2QUD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-UZHVGPGH.mjs";import"../../chunk-7EQOLMEJ.mjs";import"../../chunk-35ZI4WOQ.mjs";import"../../chunk-VVJEWB26.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-JYFKKB34.mjs";import"../../chunk-U7EZI5D5.mjs";import"../../chunk-52DBSOFA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-ACOL3VVP.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Ed25519PrivateKey,a as Ed25519PublicKey,c as Ed25519Signature};
1
+ import{a,b,c}from"../../chunk-OATDMLDK.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-WFZDFFBM.mjs";import"../../chunk-R5QUBEH6.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZYYK3UXP.mjs";import"../../chunk-TBMAJ6AW.mjs";import"../../chunk-FS3NSGBF.mjs";import"../../chunk-QIAHBEEW.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-NPFNYP75.mjs";import"../../chunk-IOSQVDZI.mjs";import"../../chunk-52C73T26.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-OWW6SIDP.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Ed25519PrivateKey,a as Ed25519PublicKey,c as Ed25519Signature};
2
2
  //# sourceMappingURL=ed25519.mjs.map
@@ -1,9 +1,3 @@
1
- import { HexInput } from '../../types/index.mjs';
2
- import '../../utils/apiEndpoints.mjs';
3
- import '../../types/indexer.mjs';
4
- import '../../types/generated/operations.mjs';
5
- import '../../types/generated/types.mjs';
6
-
7
1
  type DerivedKeys = {
8
2
  key: Uint8Array;
9
3
  chainCode: Uint8Array;
@@ -13,7 +7,6 @@ type DerivedKeys = {
13
7
  */
14
8
  declare const APTOS_HARDENED_REGEX: RegExp;
15
9
  declare const APTOS_BIP44_REGEX: RegExp;
16
- declare const APTOS_BIP44_DEFAULT_DERIVATION_PATH = "m/44'/637'/0'/0'/0'";
17
10
  /**
18
11
  * A list of supported key types and associated seeds
19
12
  */
@@ -63,17 +56,10 @@ declare const CKDPriv: ({ key, chainCode }: DerivedKeys, index: number) => Deriv
63
56
  * @param path
64
57
  */
65
58
  declare const splitPath: (path: string) => Array<string>;
66
- /**
67
- * @param path the BIP44 path
68
- * @param seed the seed phrase created by the mnemonics
69
- * @param offset the offset used for key derivation, defaults to 0x80000000
70
- * @returns
71
- */
72
- declare function fromDerivationPath(path: string, hashSeed: HexInput, seed: Uint8Array, offset?: number): Uint8Array;
73
59
  /**
74
60
  * Normalizes the mnemonic by removing extra whitespace and making it lowercase
75
61
  * @param mnemonic the mnemonic seed phrase
76
62
  */
77
63
  declare const mnemonicToSeed: (mnemonic: string) => Uint8Array;
78
64
 
79
- export { APTOS_BIP44_DEFAULT_DERIVATION_PATH, APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, type DerivedKeys, HARDENED_OFFSET, KeyType, deriveKey, fromDerivationPath, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, splitPath };
65
+ export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, type DerivedKeys, HARDENED_OFFSET, KeyType, deriveKey, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, splitPath };
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-S5HG2QUD.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as APTOS_BIP44_DEFAULT_DERIVATION_PATH,b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,i as CKDPriv,e as HARDENED_OFFSET,d as KeyType,h as deriveKey,k as fromDerivationPath,f as isValidBIP44Path,g as isValidHardenedPath,l as mnemonicToSeed,j as splitPath};
1
+ import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-LR65XHSF.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,h as CKDPriv,d as HARDENED_OFFSET,c as KeyType,g as deriveKey,e as isValidBIP44Path,f as isValidHardenedPath,j as mnemonicToSeed,i as splitPath};
2
2
  //# sourceMappingURL=hdKey.mjs.map