@aptos-labs/ts-sdk 1.33.1 → 1.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (690) hide show
  1. package/README.md +4 -6
  2. package/dist/common/{accountAddress-BHsGaOsa.d.ts → accountAddress-Cf1amU98.d.ts} +279 -0
  3. package/dist/common/{chunk-F43XVDYJ.js → chunk-IHUCZKG2.js} +1 -1
  4. package/dist/common/chunk-IHUCZKG2.js.map +1 -0
  5. package/dist/common/cli/index.d.ts +47 -9
  6. package/dist/common/cli/index.js +1 -1
  7. package/dist/common/cli/index.js.map +1 -1
  8. package/dist/common/index.d.ts +1941 -225
  9. package/dist/common/index.js +33 -33
  10. package/dist/common/index.js.map +1 -1
  11. package/dist/esm/{Ed25519Account-B3xHXAQe.d.mts → Ed25519Account-D4j3_WIS.d.mts} +122 -12
  12. package/dist/esm/account/AbstractKeylessAccount.d.mts +81 -7
  13. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  14. package/dist/esm/account/Account.d.mts +5 -4
  15. package/dist/esm/account/Account.mjs +1 -1
  16. package/dist/esm/account/AccountUtils.d.mts +64 -0
  17. package/dist/esm/account/AccountUtils.mjs +2 -0
  18. package/dist/esm/account/Ed25519Account.d.mts +3 -2
  19. package/dist/esm/account/Ed25519Account.mjs +1 -1
  20. package/dist/esm/account/EphemeralKeyPair.d.mts +29 -1
  21. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  22. package/dist/esm/account/FederatedKeylessAccount.d.mts +25 -5
  23. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  24. package/dist/esm/account/KeylessAccount.d.mts +30 -5
  25. package/dist/esm/account/KeylessAccount.mjs +1 -1
  26. package/dist/esm/account/MultiKeyAccount.d.mts +40 -5
  27. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  28. package/dist/esm/account/SingleKeyAccount.d.mts +4 -3
  29. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  30. package/dist/esm/account/index.d.mts +4 -2
  31. package/dist/esm/account/index.mjs +1 -1
  32. package/dist/esm/account/utils.d.mts +18 -0
  33. package/dist/esm/account/utils.mjs +2 -0
  34. package/dist/esm/account/utils.mjs.map +1 -0
  35. package/dist/esm/api/account.d.mts +25 -4
  36. package/dist/esm/api/account.mjs +1 -1
  37. package/dist/esm/api/ans.d.mts +18 -2
  38. package/dist/esm/api/ans.mjs +1 -1
  39. package/dist/esm/api/aptos.d.mts +5 -2
  40. package/dist/esm/api/aptos.mjs +1 -1
  41. package/dist/esm/api/aptosConfig.d.mts +16 -0
  42. package/dist/esm/api/aptosConfig.mjs +1 -1
  43. package/dist/esm/api/coin.d.mts +5 -1
  44. package/dist/esm/api/coin.mjs +1 -1
  45. package/dist/esm/api/digitalAsset.d.mts +29 -2
  46. package/dist/esm/api/digitalAsset.mjs +1 -1
  47. package/dist/esm/api/event.d.mts +6 -0
  48. package/dist/esm/api/event.mjs +1 -1
  49. package/dist/esm/api/faucet.d.mts +11 -2
  50. package/dist/esm/api/faucet.mjs +1 -1
  51. package/dist/esm/api/fungibleAsset.d.mts +11 -2
  52. package/dist/esm/api/fungibleAsset.mjs +1 -1
  53. package/dist/esm/api/general.d.mts +14 -1
  54. package/dist/esm/api/general.mjs +1 -1
  55. package/dist/esm/api/index.d.mts +3 -2
  56. package/dist/esm/api/index.mjs +1 -1
  57. package/dist/esm/api/keyless.d.mts +8 -2
  58. package/dist/esm/api/keyless.mjs +1 -1
  59. package/dist/esm/api/object.d.mts +3 -0
  60. package/dist/esm/api/object.mjs +1 -1
  61. package/dist/esm/api/staking.d.mts +5 -0
  62. package/dist/esm/api/staking.mjs +1 -1
  63. package/dist/esm/api/table.d.mts +5 -0
  64. package/dist/esm/api/table.mjs +1 -1
  65. package/dist/esm/api/transaction.d.mts +23 -6
  66. package/dist/esm/api/transaction.mjs +1 -1
  67. package/dist/esm/api/transactionSubmission/build.d.mts +6 -1
  68. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  69. package/dist/esm/api/transactionSubmission/helpers.d.mts +2 -0
  70. package/dist/esm/api/transactionSubmission/helpers.mjs +1 -1
  71. package/dist/esm/api/transactionSubmission/management.d.mts +8 -2
  72. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  73. package/dist/esm/api/transactionSubmission/sign.d.mts +7 -2
  74. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  75. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  76. package/dist/esm/api/transactionSubmission/simulate.d.mts +6 -1
  77. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  78. package/dist/esm/api/transactionSubmission/submit.d.mts +6 -1
  79. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  80. package/dist/esm/api/utils.d.mts +1 -0
  81. package/dist/esm/api/utils.mjs +1 -1
  82. package/dist/esm/bcs/deserializer.d.mts +42 -1
  83. package/dist/esm/bcs/deserializer.mjs +1 -1
  84. package/dist/esm/bcs/index.mjs +1 -1
  85. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +10 -0
  86. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  87. package/dist/esm/bcs/serializable/fixedBytes.d.mts +12 -0
  88. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  89. package/dist/esm/bcs/serializable/movePrimitives.d.mts +24 -0
  90. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  91. package/dist/esm/bcs/serializable/moveStructs.d.mts +56 -0
  92. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  93. package/dist/esm/bcs/serializer.d.mts +60 -0
  94. package/dist/esm/bcs/serializer.mjs +1 -1
  95. package/dist/esm/{chunk-PMGK5IHB.mjs → chunk-2FBJWTJD.mjs} +2 -2
  96. package/dist/esm/chunk-2FBJWTJD.mjs.map +1 -0
  97. package/dist/esm/{chunk-L4SWQLAJ.mjs → chunk-2N5KYALM.mjs} +2 -2
  98. package/dist/esm/chunk-2N5KYALM.mjs.map +1 -0
  99. package/dist/esm/{chunk-7V35JAAF.mjs → chunk-2TJ6OTVD.mjs} +2 -2
  100. package/dist/esm/chunk-2TJ6OTVD.mjs.map +1 -0
  101. package/dist/esm/{chunk-GVNK3UMT.mjs → chunk-2UXW3EB7.mjs} +2 -2
  102. package/dist/esm/chunk-2UXW3EB7.mjs.map +1 -0
  103. package/dist/esm/{chunk-UJSTWN32.mjs → chunk-2WCATZVL.mjs} +2 -2
  104. package/dist/esm/{chunk-UJSTWN32.mjs.map → chunk-2WCATZVL.mjs.map} +1 -1
  105. package/dist/esm/{chunk-FZDEGDUY.mjs → chunk-35DKMW7Q.mjs} +1 -1
  106. package/dist/esm/chunk-35DKMW7Q.mjs.map +1 -0
  107. package/dist/esm/{chunk-WFK3XRQX.mjs → chunk-3RCAJICY.mjs} +2 -2
  108. package/dist/esm/chunk-3RCAJICY.mjs.map +1 -0
  109. package/dist/esm/{chunk-KCWRCWNT.mjs → chunk-43GCGE6C.mjs} +2 -2
  110. package/dist/esm/chunk-43GCGE6C.mjs.map +1 -0
  111. package/dist/esm/{chunk-4DP3PEYK.mjs → chunk-4EUS4E6S.mjs} +2 -2
  112. package/dist/esm/chunk-4EUS4E6S.mjs.map +1 -0
  113. package/dist/esm/chunk-4RXKALLC.mjs +2 -0
  114. package/dist/esm/chunk-4RXKALLC.mjs.map +1 -0
  115. package/dist/esm/chunk-4YLUM62M.mjs +2 -0
  116. package/dist/esm/chunk-4YLUM62M.mjs.map +1 -0
  117. package/dist/esm/{chunk-SNYYEVJA.mjs → chunk-4ZYPDCSP.mjs} +2 -2
  118. package/dist/esm/chunk-4ZYPDCSP.mjs.map +1 -0
  119. package/dist/esm/{chunk-F2WY2DEY.mjs → chunk-5EBUWO2M.mjs} +2 -2
  120. package/dist/esm/chunk-5EBUWO2M.mjs.map +1 -0
  121. package/dist/esm/{chunk-5LGKGWLX.mjs → chunk-5EYTHMRZ.mjs} +2 -2
  122. package/dist/esm/chunk-5EYTHMRZ.mjs.map +1 -0
  123. package/dist/esm/{chunk-DBTKJMLV.mjs → chunk-5PXDPMF2.mjs} +2 -2
  124. package/dist/esm/chunk-5PXDPMF2.mjs.map +1 -0
  125. package/dist/esm/chunk-5VMAJTTV.mjs +2 -0
  126. package/dist/esm/chunk-5VMAJTTV.mjs.map +1 -0
  127. package/dist/esm/{chunk-YEWZAR76.mjs → chunk-5YWH3XPN.mjs} +2 -2
  128. package/dist/esm/chunk-5YWH3XPN.mjs.map +1 -0
  129. package/dist/esm/{chunk-QI7OREBM.mjs → chunk-67ZVDKJF.mjs} +2 -2
  130. package/dist/esm/chunk-67ZVDKJF.mjs.map +1 -0
  131. package/dist/esm/{chunk-U6OCK6T4.mjs → chunk-6CXMDJQR.mjs} +2 -2
  132. package/dist/esm/chunk-6CXMDJQR.mjs.map +1 -0
  133. package/dist/esm/chunk-6IEZPA4H.mjs +2 -0
  134. package/dist/esm/chunk-6IEZPA4H.mjs.map +1 -0
  135. package/dist/esm/{chunk-N62NUAHT.mjs → chunk-6YHDZLRN.mjs} +2 -2
  136. package/dist/esm/chunk-6YHDZLRN.mjs.map +1 -0
  137. package/dist/esm/chunk-6YWYAVFS.mjs +2 -0
  138. package/dist/esm/chunk-6YWYAVFS.mjs.map +1 -0
  139. package/dist/esm/chunk-77AEKF7K.mjs +2 -0
  140. package/dist/esm/{chunk-YD2BMHH7.mjs.map → chunk-77AEKF7K.mjs.map} +1 -1
  141. package/dist/esm/{chunk-XOLU6UP3.mjs → chunk-7IY3DTEF.mjs} +2 -2
  142. package/dist/esm/chunk-7IY3DTEF.mjs.map +1 -0
  143. package/dist/esm/{chunk-2CJC43CV.mjs → chunk-A5L76YP7.mjs} +1 -1
  144. package/dist/esm/chunk-A5L76YP7.mjs.map +1 -0
  145. package/dist/esm/{chunk-ICMELYCL.mjs → chunk-AFEHO5PP.mjs} +2 -2
  146. package/dist/esm/chunk-AFEHO5PP.mjs.map +1 -0
  147. package/dist/esm/{chunk-NK67FECB.mjs → chunk-AXYARCYT.mjs} +2 -2
  148. package/dist/esm/chunk-AXYARCYT.mjs.map +1 -0
  149. package/dist/esm/{chunk-AOROYJ74.mjs → chunk-AZWVCBK2.mjs} +2 -2
  150. package/dist/esm/chunk-AZWVCBK2.mjs.map +1 -0
  151. package/dist/esm/{chunk-U3T4ZT7B.mjs → chunk-BGSEBFFC.mjs} +2 -2
  152. package/dist/esm/chunk-BGSEBFFC.mjs.map +1 -0
  153. package/dist/esm/{chunk-6ZOVTYLJ.mjs → chunk-BI3BTSUB.mjs} +2 -2
  154. package/dist/esm/chunk-BI3BTSUB.mjs.map +1 -0
  155. package/dist/esm/{chunk-OIOGOW6I.mjs → chunk-C3Q23D22.mjs} +1 -1
  156. package/dist/esm/chunk-C3Q23D22.mjs.map +1 -0
  157. package/dist/esm/{chunk-VQZMI3EZ.mjs → chunk-CWKNJZB6.mjs} +2 -2
  158. package/dist/esm/chunk-CWKNJZB6.mjs.map +1 -0
  159. package/dist/esm/{chunk-V4FKFCBL.mjs → chunk-DAFSKSZ5.mjs} +1 -1
  160. package/dist/esm/chunk-DAFSKSZ5.mjs.map +1 -0
  161. package/dist/esm/{chunk-IBZKCBN5.mjs → chunk-DOQV5BSA.mjs} +2 -2
  162. package/dist/esm/chunk-DOQV5BSA.mjs.map +1 -0
  163. package/dist/esm/chunk-DPW6ELCQ.mjs +2 -0
  164. package/dist/esm/chunk-DPW6ELCQ.mjs.map +1 -0
  165. package/dist/esm/{chunk-IK2NYNKG.mjs → chunk-DYATTONT.mjs} +2 -2
  166. package/dist/esm/chunk-DYATTONT.mjs.map +1 -0
  167. package/dist/esm/{chunk-ALNQK276.mjs → chunk-E5HGSOG2.mjs} +2 -2
  168. package/dist/esm/chunk-E5HGSOG2.mjs.map +1 -0
  169. package/dist/esm/{chunk-2MN7DW2J.mjs → chunk-E7JDVKFY.mjs} +2 -2
  170. package/dist/esm/chunk-E7JDVKFY.mjs.map +1 -0
  171. package/dist/esm/{chunk-AJ5JHBAE.mjs → chunk-EBMEXURY.mjs} +2 -2
  172. package/dist/esm/chunk-EBMEXURY.mjs.map +1 -0
  173. package/dist/esm/chunk-EMURYYVO.mjs +2 -0
  174. package/dist/esm/chunk-EMURYYVO.mjs.map +1 -0
  175. package/dist/esm/chunk-F2ZTBAJJ.mjs +2 -0
  176. package/dist/esm/chunk-F2ZTBAJJ.mjs.map +1 -0
  177. package/dist/esm/{chunk-UGIHQFID.mjs → chunk-FIEMUPXF.mjs} +2 -2
  178. package/dist/esm/chunk-FIEMUPXF.mjs.map +1 -0
  179. package/dist/esm/{chunk-AKIO3OIT.mjs → chunk-FN4C3CKC.mjs} +2 -2
  180. package/dist/esm/chunk-FN4C3CKC.mjs.map +1 -0
  181. package/dist/esm/{chunk-H3C3VTHS.mjs → chunk-FZD5RWSZ.mjs} +2 -2
  182. package/dist/esm/chunk-FZD5RWSZ.mjs.map +1 -0
  183. package/dist/esm/{chunk-T6ADNZE5.mjs → chunk-G4O6FXCF.mjs} +2 -2
  184. package/dist/esm/chunk-G4O6FXCF.mjs.map +1 -0
  185. package/dist/esm/{chunk-GMKKHGXK.mjs → chunk-GOXRBEIJ.mjs} +1 -1
  186. package/dist/esm/chunk-GOXRBEIJ.mjs.map +1 -0
  187. package/dist/esm/chunk-GP4TLDVZ.mjs +1 -0
  188. package/dist/esm/chunk-GP4TLDVZ.mjs.map +1 -0
  189. package/dist/esm/{chunk-BAEIZAP7.mjs → chunk-HBH2NQKU.mjs} +2 -2
  190. package/dist/esm/chunk-HBH2NQKU.mjs.map +1 -0
  191. package/dist/esm/{chunk-ZMMLM6ZJ.mjs → chunk-IDTLNF4M.mjs} +2 -2
  192. package/dist/esm/chunk-IDTLNF4M.mjs.map +1 -0
  193. package/dist/esm/{chunk-PXMNAP2Q.mjs → chunk-IEUEMBFD.mjs} +2 -2
  194. package/dist/esm/chunk-IEUEMBFD.mjs.map +1 -0
  195. package/dist/esm/{chunk-6Q2O5G3J.mjs → chunk-IF4UU2MT.mjs} +1 -1
  196. package/dist/esm/chunk-IF4UU2MT.mjs.map +1 -0
  197. package/dist/esm/{chunk-LPVGVTWT.mjs → chunk-JBEUUULP.mjs} +2 -2
  198. package/dist/esm/chunk-JBEUUULP.mjs.map +1 -0
  199. package/dist/esm/chunk-JJM6ELMS.mjs +2 -0
  200. package/dist/esm/chunk-JJM6ELMS.mjs.map +1 -0
  201. package/dist/esm/{chunk-2ESU5N3V.mjs → chunk-KOORZTHC.mjs} +2 -2
  202. package/dist/esm/chunk-KOORZTHC.mjs.map +1 -0
  203. package/dist/esm/{chunk-2QGJDHME.mjs → chunk-KVM2SGSF.mjs} +2 -2
  204. package/dist/esm/chunk-KVM2SGSF.mjs.map +1 -0
  205. package/dist/esm/{chunk-5PVZ4N42.mjs → chunk-M77M6NSB.mjs} +2 -2
  206. package/dist/esm/chunk-M77M6NSB.mjs.map +1 -0
  207. package/dist/esm/{chunk-G4KAHJXB.mjs → chunk-MCLYDS3O.mjs} +2 -2
  208. package/dist/esm/chunk-MCLYDS3O.mjs.map +1 -0
  209. package/dist/esm/{chunk-46O23AOD.mjs → chunk-MLSAZJZK.mjs} +2 -2
  210. package/dist/esm/chunk-MLSAZJZK.mjs.map +1 -0
  211. package/dist/esm/{chunk-BRV3RLKW.mjs → chunk-MT2RJ7H3.mjs} +2 -2
  212. package/dist/esm/chunk-MT2RJ7H3.mjs.map +1 -0
  213. package/dist/esm/chunk-MWBRD43V.mjs +2 -0
  214. package/dist/esm/chunk-MWBRD43V.mjs.map +1 -0
  215. package/dist/esm/{chunk-ACVIE7IE.mjs → chunk-N4DM5FYH.mjs} +2 -2
  216. package/dist/esm/chunk-N4DM5FYH.mjs.map +1 -0
  217. package/dist/esm/{chunk-LGTOOAQI.mjs → chunk-N6YTF76Q.mjs} +2 -2
  218. package/dist/esm/chunk-N6YTF76Q.mjs.map +1 -0
  219. package/dist/esm/{chunk-7N7FEBZA.mjs → chunk-NBNZ53ZV.mjs} +2 -2
  220. package/dist/esm/chunk-NBNZ53ZV.mjs.map +1 -0
  221. package/dist/esm/{chunk-CX6KECGV.mjs → chunk-NWLJ6RW7.mjs} +2 -2
  222. package/dist/esm/chunk-NWLJ6RW7.mjs.map +1 -0
  223. package/dist/esm/{chunk-VIZHWYI5.mjs → chunk-NYETBDSR.mjs} +2 -2
  224. package/dist/esm/chunk-NYETBDSR.mjs.map +1 -0
  225. package/dist/esm/{chunk-SK3LIS4Z.mjs → chunk-OEQ2U7GK.mjs} +2 -2
  226. package/dist/esm/chunk-OEQ2U7GK.mjs.map +1 -0
  227. package/dist/esm/{chunk-2C27NY4D.mjs → chunk-OHZURQPY.mjs} +2 -2
  228. package/dist/esm/chunk-OHZURQPY.mjs.map +1 -0
  229. package/dist/esm/{chunk-333QBK32.mjs → chunk-ONTWK5FU.mjs} +2 -2
  230. package/dist/esm/chunk-ONTWK5FU.mjs.map +1 -0
  231. package/dist/esm/chunk-OR6GFWLG.mjs +2 -0
  232. package/dist/esm/chunk-OR6GFWLG.mjs.map +1 -0
  233. package/dist/esm/{chunk-42H7WETG.mjs → chunk-ORMOQWWH.mjs} +2 -2
  234. package/dist/esm/chunk-ORMOQWWH.mjs.map +1 -0
  235. package/dist/esm/{chunk-S5SQJRAV.mjs → chunk-OROPNHRY.mjs} +2 -2
  236. package/dist/esm/chunk-OROPNHRY.mjs.map +1 -0
  237. package/dist/esm/{chunk-VWGB5BHW.mjs → chunk-OSBRPVVI.mjs} +2 -2
  238. package/dist/esm/chunk-OSBRPVVI.mjs.map +1 -0
  239. package/dist/esm/{chunk-NZ7M6NG2.mjs → chunk-P7A5RILV.mjs} +2 -2
  240. package/dist/esm/{chunk-JNO7KPMG.mjs → chunk-Q4C4U6I4.mjs} +2 -2
  241. package/dist/esm/chunk-Q4C4U6I4.mjs.map +1 -0
  242. package/dist/esm/{chunk-HMMNQFVM.mjs → chunk-QHC5DKVZ.mjs} +2 -2
  243. package/dist/esm/chunk-QHC5DKVZ.mjs.map +1 -0
  244. package/dist/esm/{chunk-F45G3GP3.mjs → chunk-QHEKBHNU.mjs} +2 -2
  245. package/dist/esm/chunk-QQEK7WVP.mjs +2 -0
  246. package/dist/esm/chunk-QQEK7WVP.mjs.map +1 -0
  247. package/dist/esm/{chunk-J7PJSK3J.mjs → chunk-RJ7F4JDV.mjs} +1 -1
  248. package/dist/esm/chunk-RJ7F4JDV.mjs.map +1 -0
  249. package/dist/esm/{chunk-BUAHUVAD.mjs → chunk-ROT6S6BM.mjs} +2 -2
  250. package/dist/esm/chunk-ROT6S6BM.mjs.map +1 -0
  251. package/dist/esm/{chunk-LKKI2KAP.mjs → chunk-S4LZMY2L.mjs} +2 -2
  252. package/dist/esm/chunk-S4LZMY2L.mjs.map +1 -0
  253. package/dist/esm/{chunk-33CVOPIN.mjs → chunk-S7RZGC56.mjs} +2 -2
  254. package/dist/esm/{chunk-33CVOPIN.mjs.map → chunk-S7RZGC56.mjs.map} +1 -1
  255. package/dist/esm/{chunk-SPRNSFUV.mjs → chunk-STY74NUA.mjs} +2 -2
  256. package/dist/esm/chunk-STY74NUA.mjs.map +1 -0
  257. package/dist/esm/{chunk-ZMBXHMVQ.mjs → chunk-TOBQ5UE6.mjs} +2 -2
  258. package/dist/esm/chunk-TOBQ5UE6.mjs.map +1 -0
  259. package/dist/esm/{chunk-7T26VA2W.mjs → chunk-UC23V7PU.mjs} +2 -2
  260. package/dist/esm/chunk-UC23V7PU.mjs.map +1 -0
  261. package/dist/esm/{chunk-4MTSP4S2.mjs → chunk-V6VPMNWJ.mjs} +2 -2
  262. package/dist/esm/chunk-V6VPMNWJ.mjs.map +1 -0
  263. package/dist/esm/{chunk-JMPHD4BP.mjs → chunk-VUIHJIMX.mjs} +2 -2
  264. package/dist/esm/chunk-VUIHJIMX.mjs.map +1 -0
  265. package/dist/esm/{chunk-2KSMV5KD.mjs → chunk-VV4HCOJQ.mjs} +2 -2
  266. package/dist/esm/chunk-VV4HCOJQ.mjs.map +1 -0
  267. package/dist/esm/{chunk-XZN344G4.mjs → chunk-VVXBVJXD.mjs} +2 -2
  268. package/dist/esm/chunk-VVXBVJXD.mjs.map +1 -0
  269. package/dist/esm/{chunk-IHGA5KAD.mjs → chunk-W4BSN6SK.mjs} +1 -1
  270. package/dist/esm/chunk-W4BSN6SK.mjs.map +1 -0
  271. package/dist/esm/chunk-WCMW2L3P.mjs +2 -0
  272. package/dist/esm/chunk-WCMW2L3P.mjs.map +1 -0
  273. package/dist/esm/{chunk-UFPYCROT.mjs → chunk-WQRGDSPD.mjs} +2 -2
  274. package/dist/esm/chunk-WQRGDSPD.mjs.map +1 -0
  275. package/dist/esm/chunk-WUWPN7XV.mjs +2 -0
  276. package/dist/esm/chunk-WUWPN7XV.mjs.map +1 -0
  277. package/dist/esm/{chunk-LA5HJILW.mjs → chunk-X6UNY6YM.mjs} +2 -2
  278. package/dist/esm/chunk-X6UNY6YM.mjs.map +1 -0
  279. package/dist/esm/chunk-XJJVJOX5.mjs +2 -0
  280. package/dist/esm/{chunk-UGTIALNW.mjs.map → chunk-XJJVJOX5.mjs.map} +1 -1
  281. package/dist/esm/{chunk-OPO5EYF7.mjs → chunk-XKUIMGKU.mjs} +2 -2
  282. package/dist/esm/chunk-XKUIMGKU.mjs.map +1 -0
  283. package/dist/esm/chunk-XTJOA5QN.mjs +2 -0
  284. package/dist/esm/chunk-XTJOA5QN.mjs.map +1 -0
  285. package/dist/esm/chunk-XTOIL6MB.mjs +2 -0
  286. package/dist/esm/chunk-XTOIL6MB.mjs.map +1 -0
  287. package/dist/esm/{chunk-ZMS3AOEZ.mjs → chunk-XY43TPRH.mjs} +2 -2
  288. package/dist/esm/chunk-XY43TPRH.mjs.map +1 -0
  289. package/dist/esm/{chunk-EGV3HFE3.mjs → chunk-XYB6KYKW.mjs} +2 -2
  290. package/dist/esm/chunk-XYB6KYKW.mjs.map +1 -0
  291. package/dist/esm/{chunk-RCA73RVB.mjs → chunk-XZ4JRYCE.mjs} +2 -2
  292. package/dist/esm/chunk-XZ4JRYCE.mjs.map +1 -0
  293. package/dist/esm/{chunk-4XB3BB5Z.mjs → chunk-YCQUYDZI.mjs} +2 -2
  294. package/dist/esm/chunk-YCQUYDZI.mjs.map +1 -0
  295. package/dist/esm/{chunk-HBIDHQ2M.mjs → chunk-YOZBVVKL.mjs} +1 -1
  296. package/dist/esm/chunk-YOZBVVKL.mjs.map +1 -0
  297. package/dist/esm/chunk-ZAIVZDOL.mjs +2 -0
  298. package/dist/esm/chunk-ZAIVZDOL.mjs.map +1 -0
  299. package/dist/esm/{chunk-ZXVN3HXB.mjs → chunk-ZGVNZE7J.mjs} +2 -2
  300. package/dist/esm/chunk-ZGVNZE7J.mjs.map +1 -0
  301. package/dist/esm/{chunk-YJVZFYBX.mjs → chunk-ZPV7HPA4.mjs} +2 -2
  302. package/dist/esm/chunk-ZPV7HPA4.mjs.map +1 -0
  303. package/dist/esm/cli/index.mjs +1 -1
  304. package/dist/esm/cli/localNode.d.mts +20 -8
  305. package/dist/esm/cli/localNode.mjs +1 -1
  306. package/dist/esm/cli/move.d.mts +26 -0
  307. package/dist/esm/cli/move.mjs +1 -1
  308. package/dist/esm/client/core.d.mts +4 -0
  309. package/dist/esm/client/core.mjs +1 -1
  310. package/dist/esm/client/get.d.mts +33 -1
  311. package/dist/esm/client/get.mjs +1 -1
  312. package/dist/esm/client/index.d.mts +1 -1
  313. package/dist/esm/client/index.mjs +1 -1
  314. package/dist/esm/client/post.d.mts +37 -0
  315. package/dist/esm/client/post.mjs +1 -1
  316. package/dist/esm/core/account/index.mjs +1 -1
  317. package/dist/esm/core/account/utils/address.d.mts +6 -0
  318. package/dist/esm/core/account/utils/address.mjs +1 -1
  319. package/dist/esm/core/account/utils/index.mjs +1 -1
  320. package/dist/esm/core/accountAddress.d.mts +46 -0
  321. package/dist/esm/core/accountAddress.mjs +1 -1
  322. package/dist/esm/core/authenticationKey.d.mts +1 -1
  323. package/dist/esm/core/authenticationKey.mjs +1 -1
  324. package/dist/esm/core/common.d.mts +14 -0
  325. package/dist/esm/core/common.mjs +1 -1
  326. package/dist/esm/core/crypto/ed25519.d.mts +57 -5
  327. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  328. package/dist/esm/core/crypto/ephemeral.d.mts +23 -1
  329. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  330. package/dist/esm/core/crypto/federatedKeyless.d.mts +13 -1
  331. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  332. package/dist/esm/core/crypto/hdKey.d.mts +28 -0
  333. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  334. package/dist/esm/core/crypto/index.d.mts +2 -2
  335. package/dist/esm/core/crypto/index.mjs +1 -1
  336. package/dist/esm/core/crypto/keyless.d.mts +131 -1
  337. package/dist/esm/core/crypto/keyless.mjs +1 -1
  338. package/dist/esm/core/crypto/multiEd25519.d.mts +41 -1
  339. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  340. package/dist/esm/core/crypto/multiKey.d.mts +38 -1
  341. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  342. package/dist/esm/core/crypto/poseidon.d.mts +10 -0
  343. package/dist/esm/core/crypto/poseidon.mjs +1 -1
  344. package/dist/esm/core/crypto/privateKey.d.mts +9 -1
  345. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  346. package/dist/esm/core/crypto/proof.d.mts +2 -0
  347. package/dist/esm/core/crypto/proof.mjs +1 -1
  348. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  349. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  350. package/dist/esm/core/crypto/secp256k1.d.mts +50 -3
  351. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  352. package/dist/esm/core/crypto/signature.d.mts +6 -0
  353. package/dist/esm/core/crypto/signature.mjs +1 -1
  354. package/dist/esm/core/crypto/singleKey.d.mts +36 -2
  355. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  356. package/dist/esm/core/crypto/utils.d.mts +2 -0
  357. package/dist/esm/core/crypto/utils.mjs +1 -1
  358. package/dist/esm/core/hex.d.mts +20 -0
  359. package/dist/esm/core/hex.mjs +1 -1
  360. package/dist/esm/core/index.d.mts +2 -2
  361. package/dist/esm/core/index.mjs +1 -1
  362. package/dist/esm/errors/index.mjs +1 -1
  363. package/dist/esm/index.d.mts +5 -4
  364. package/dist/esm/index.mjs +1 -1
  365. package/dist/esm/internal/account.d.mts +24 -4
  366. package/dist/esm/internal/account.mjs +1 -1
  367. package/dist/esm/internal/ans.d.mts +27 -2
  368. package/dist/esm/internal/ans.mjs +1 -1
  369. package/dist/esm/internal/coin.d.mts +3 -1
  370. package/dist/esm/internal/coin.mjs +1 -1
  371. package/dist/esm/internal/digitalAsset.d.mts +31 -2
  372. package/dist/esm/internal/digitalAsset.mjs +1 -1
  373. package/dist/esm/internal/event.d.mts +5 -0
  374. package/dist/esm/internal/event.mjs +1 -1
  375. package/dist/esm/internal/faucet.d.mts +5 -0
  376. package/dist/esm/internal/faucet.mjs +1 -1
  377. package/dist/esm/internal/fungibleAsset.d.mts +8 -2
  378. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  379. package/dist/esm/internal/general.d.mts +7 -0
  380. package/dist/esm/internal/general.mjs +1 -1
  381. package/dist/esm/internal/keyless.d.mts +6 -2
  382. package/dist/esm/internal/keyless.mjs +1 -1
  383. package/dist/esm/internal/object.d.mts +2 -0
  384. package/dist/esm/internal/object.mjs +1 -1
  385. package/dist/esm/internal/staking.d.mts +5 -1
  386. package/dist/esm/internal/staking.mjs +1 -1
  387. package/dist/esm/internal/table.d.mts +3 -0
  388. package/dist/esm/internal/table.mjs +1 -1
  389. package/dist/esm/internal/transaction.d.mts +14 -0
  390. package/dist/esm/internal/transaction.mjs +1 -1
  391. package/dist/esm/internal/transactionSubmission.d.mts +16 -5
  392. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  393. package/dist/esm/internal/view.d.mts +2 -1
  394. package/dist/esm/internal/view.mjs +1 -1
  395. package/dist/esm/{publicKey-BVXX1nVl.d.mts → publicKey-BMtGNNLg.d.mts} +36 -0
  396. package/dist/esm/transactions/authenticator/account.d.mts +28 -1
  397. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  398. package/dist/esm/transactions/authenticator/index.d.mts +2 -1
  399. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  400. package/dist/esm/transactions/authenticator/transaction.d.mts +23 -2
  401. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  402. package/dist/esm/transactions/index.d.mts +2 -1
  403. package/dist/esm/transactions/index.mjs +1 -1
  404. package/dist/esm/transactions/instances/chainId.d.mts +8 -0
  405. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  406. package/dist/esm/transactions/instances/identifier.d.mts +8 -0
  407. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  408. package/dist/esm/transactions/instances/index.d.mts +2 -1
  409. package/dist/esm/transactions/instances/index.mjs +1 -1
  410. package/dist/esm/transactions/instances/moduleId.d.mts +10 -0
  411. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  412. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +8 -0
  413. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  414. package/dist/esm/transactions/instances/rawTransaction.d.mts +30 -0
  415. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  416. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +7 -1
  417. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  418. package/dist/esm/transactions/instances/signedTransaction.d.mts +10 -1
  419. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  420. package/dist/esm/transactions/instances/simpleTransaction.d.mts +8 -0
  421. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  422. package/dist/esm/transactions/instances/transactionArgument.d.mts +16 -0
  423. package/dist/esm/transactions/instances/transactionPayload.d.mts +48 -0
  424. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  425. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +19 -2
  426. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  427. package/dist/esm/transactions/management/asyncQueue.d.mts +16 -0
  428. package/dist/esm/transactions/management/asyncQueue.mjs +1 -1
  429. package/dist/esm/transactions/management/index.d.mts +3 -2
  430. package/dist/esm/transactions/management/index.mjs +1 -1
  431. package/dist/esm/transactions/management/transactionWorker.d.mts +45 -7
  432. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  433. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +64 -1
  434. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  435. package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -1
  436. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  437. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +14 -1
  438. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  439. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +10 -1
  440. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  441. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +42 -1
  442. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  443. package/dist/esm/transactions/typeTag/index.d.mts +82 -0
  444. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  445. package/dist/esm/transactions/typeTag/parser.d.mts +8 -0
  446. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  447. package/dist/esm/transactions/types.d.mts +80 -1
  448. package/dist/esm/types/index.mjs +1 -1
  449. package/dist/esm/types/indexer.d.mts +52 -0
  450. package/dist/esm/types/keyless.d.mts +12 -0
  451. package/dist/esm/utils/apiEndpoints.d.mts +30 -0
  452. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  453. package/dist/esm/utils/const.d.mts +24 -0
  454. package/dist/esm/utils/const.mjs +1 -1
  455. package/dist/esm/utils/helpers.d.mts +20 -0
  456. package/dist/esm/utils/helpers.mjs +1 -1
  457. package/dist/esm/utils/index.mjs +1 -1
  458. package/dist/esm/utils/memoize.d.mts +4 -0
  459. package/dist/esm/utils/memoize.mjs +1 -1
  460. package/dist/esm/utils/normalizeBundle.d.mts +8 -0
  461. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  462. package/dist/esm/version.d.mts +1 -1
  463. package/dist/esm/version.mjs +1 -1
  464. package/package.json +19 -20
  465. package/src/account/AbstractKeylessAccount.ts +80 -9
  466. package/src/account/Account.ts +51 -6
  467. package/src/account/AccountUtils.ts +216 -0
  468. package/src/account/Ed25519Account.ts +26 -0
  469. package/src/account/EphemeralKeyPair.ts +30 -0
  470. package/src/account/FederatedKeylessAccount.ts +10 -3
  471. package/src/account/KeylessAccount.ts +13 -1
  472. package/src/account/MultiKeyAccount.ts +75 -12
  473. package/src/account/SingleKeyAccount.ts +63 -6
  474. package/src/account/index.ts +1 -0
  475. package/src/account/utils.ts +16 -0
  476. package/src/api/account.ts +22 -2
  477. package/src/api/ans.ts +15 -0
  478. package/src/api/aptos.ts +3 -0
  479. package/src/api/aptosConfig.ts +24 -0
  480. package/src/api/coin.ts +3 -0
  481. package/src/api/digitalAsset.ts +26 -0
  482. package/src/api/event.ts +6 -0
  483. package/src/api/faucet.ts +11 -2
  484. package/src/api/fungibleAsset.ts +8 -0
  485. package/src/api/general.ts +12 -0
  486. package/src/api/keyless.ts +6 -0
  487. package/src/api/object.ts +3 -0
  488. package/src/api/staking.ts +5 -0
  489. package/src/api/table.ts +5 -0
  490. package/src/api/transaction.ts +19 -3
  491. package/src/api/transactionSubmission/build.ts +4 -0
  492. package/src/api/transactionSubmission/helpers.ts +2 -0
  493. package/src/api/transactionSubmission/management.ts +5 -0
  494. package/src/api/transactionSubmission/sign.ts +4 -0
  495. package/src/api/transactionSubmission/simulate.ts +4 -0
  496. package/src/api/transactionSubmission/submit.ts +4 -0
  497. package/src/api/utils.ts +1 -0
  498. package/src/bcs/deserializer.ts +47 -1
  499. package/src/bcs/serializable/entryFunctionBytes.ts +10 -0
  500. package/src/bcs/serializable/fixedBytes.ts +12 -0
  501. package/src/bcs/serializable/movePrimitives.ts +26 -0
  502. package/src/bcs/serializable/moveStructs.ts +56 -0
  503. package/src/bcs/serializer.ts +64 -1
  504. package/src/cli/localNode.ts +22 -8
  505. package/src/cli/move.ts +26 -0
  506. package/src/client/core.ts +4 -0
  507. package/src/client/get.ts +75 -1
  508. package/src/client/post.ts +37 -0
  509. package/src/core/account/utils/address.ts +6 -0
  510. package/src/core/accountAddress.ts +46 -0
  511. package/src/core/authenticationKey.ts +22 -0
  512. package/src/core/common.ts +14 -0
  513. package/src/core/crypto/ed25519.ts +58 -4
  514. package/src/core/crypto/ephemeral.ts +22 -0
  515. package/src/core/crypto/federatedKeyless.ts +12 -0
  516. package/src/core/crypto/hdKey.ts +29 -0
  517. package/src/core/crypto/keyless.ts +134 -0
  518. package/src/core/crypto/multiEd25519.ts +40 -0
  519. package/src/core/crypto/multiKey.ts +37 -1
  520. package/src/core/crypto/poseidon.ts +20 -0
  521. package/src/core/crypto/privateKey.ts +8 -0
  522. package/src/core/crypto/proof.ts +2 -0
  523. package/src/core/crypto/publicKey.ts +14 -0
  524. package/src/core/crypto/secp256k1.ts +49 -2
  525. package/src/core/crypto/signature.ts +8 -0
  526. package/src/core/crypto/singleKey.ts +34 -2
  527. package/src/core/crypto/utils.ts +2 -0
  528. package/src/core/hex.ts +20 -0
  529. package/src/internal/account.ts +27 -7
  530. package/src/internal/ans.ts +27 -0
  531. package/src/internal/coin.ts +1 -0
  532. package/src/internal/digitalAsset.ts +30 -0
  533. package/src/internal/event.ts +6 -0
  534. package/src/internal/faucet.ts +5 -0
  535. package/src/internal/fungibleAsset.ts +5 -0
  536. package/src/internal/general.ts +7 -0
  537. package/src/internal/keyless.ts +4 -0
  538. package/src/internal/object.ts +2 -0
  539. package/src/internal/staking.ts +5 -1
  540. package/src/internal/table.ts +3 -0
  541. package/src/internal/transaction.ts +16 -0
  542. package/src/internal/transactionSubmission.ts +15 -2
  543. package/src/transactions/authenticator/account.ts +26 -0
  544. package/src/transactions/authenticator/transaction.ts +20 -0
  545. package/src/transactions/instances/chainId.ts +8 -0
  546. package/src/transactions/instances/identifier.ts +8 -0
  547. package/src/transactions/instances/moduleId.ts +10 -0
  548. package/src/transactions/instances/multiAgentTransaction.ts +8 -0
  549. package/src/transactions/instances/rawTransaction.ts +30 -0
  550. package/src/transactions/instances/rotationProofChallenge.ts +6 -0
  551. package/src/transactions/instances/signedTransaction.ts +8 -0
  552. package/src/transactions/instances/simpleTransaction.ts +8 -0
  553. package/src/transactions/instances/transactionArgument.ts +16 -0
  554. package/src/transactions/instances/transactionPayload.ts +50 -0
  555. package/src/transactions/management/accountSequenceNumber.ts +16 -0
  556. package/src/transactions/management/asyncQueue.ts +16 -0
  557. package/src/transactions/management/transactionWorker.ts +42 -5
  558. package/src/transactions/transactionBuilder/helpers.ts +82 -10
  559. package/src/transactions/transactionBuilder/remoteAbi.ts +20 -0
  560. package/src/transactions/transactionBuilder/signingMessage.ts +10 -0
  561. package/src/transactions/transactionBuilder/transactionBuilder.ts +58 -0
  562. package/src/transactions/typeTag/index.ts +82 -0
  563. package/src/transactions/typeTag/parser.ts +24 -0
  564. package/src/transactions/types.ts +78 -0
  565. package/src/types/indexer.ts +52 -0
  566. package/src/types/keyless.ts +12 -0
  567. package/src/utils/apiEndpoints.ts +30 -2
  568. package/src/utils/const.ts +24 -1
  569. package/src/utils/helpers.ts +22 -0
  570. package/src/utils/memoize.ts +6 -0
  571. package/src/utils/normalizeBundle.ts +8 -1
  572. package/src/version.ts +1 -1
  573. package/dist/common/chunk-F43XVDYJ.js.map +0 -1
  574. package/dist/esm/chunk-2C27NY4D.mjs.map +0 -1
  575. package/dist/esm/chunk-2CJC43CV.mjs.map +0 -1
  576. package/dist/esm/chunk-2ESU5N3V.mjs.map +0 -1
  577. package/dist/esm/chunk-2KSMV5KD.mjs.map +0 -1
  578. package/dist/esm/chunk-2MN7DW2J.mjs.map +0 -1
  579. package/dist/esm/chunk-2QGJDHME.mjs.map +0 -1
  580. package/dist/esm/chunk-333QBK32.mjs.map +0 -1
  581. package/dist/esm/chunk-372SLYVR.mjs +0 -2
  582. package/dist/esm/chunk-372SLYVR.mjs.map +0 -1
  583. package/dist/esm/chunk-42H7WETG.mjs.map +0 -1
  584. package/dist/esm/chunk-46O23AOD.mjs.map +0 -1
  585. package/dist/esm/chunk-4DI5SPSK.mjs +0 -2
  586. package/dist/esm/chunk-4DI5SPSK.mjs.map +0 -1
  587. package/dist/esm/chunk-4DP3PEYK.mjs.map +0 -1
  588. package/dist/esm/chunk-4MTSP4S2.mjs.map +0 -1
  589. package/dist/esm/chunk-4O5XDQDO.mjs +0 -2
  590. package/dist/esm/chunk-4O5XDQDO.mjs.map +0 -1
  591. package/dist/esm/chunk-4OV2A6PJ.mjs +0 -2
  592. package/dist/esm/chunk-4OV2A6PJ.mjs.map +0 -1
  593. package/dist/esm/chunk-4XB3BB5Z.mjs.map +0 -1
  594. package/dist/esm/chunk-5B3SMBXQ.mjs +0 -2
  595. package/dist/esm/chunk-5B3SMBXQ.mjs.map +0 -1
  596. package/dist/esm/chunk-5LGKGWLX.mjs.map +0 -1
  597. package/dist/esm/chunk-5PVZ4N42.mjs.map +0 -1
  598. package/dist/esm/chunk-6Q2O5G3J.mjs.map +0 -1
  599. package/dist/esm/chunk-6ZOVTYLJ.mjs.map +0 -1
  600. package/dist/esm/chunk-7N7FEBZA.mjs.map +0 -1
  601. package/dist/esm/chunk-7T26VA2W.mjs.map +0 -1
  602. package/dist/esm/chunk-7V35JAAF.mjs.map +0 -1
  603. package/dist/esm/chunk-ACVIE7IE.mjs.map +0 -1
  604. package/dist/esm/chunk-AJ5JHBAE.mjs.map +0 -1
  605. package/dist/esm/chunk-AKIO3OIT.mjs.map +0 -1
  606. package/dist/esm/chunk-ALNQK276.mjs.map +0 -1
  607. package/dist/esm/chunk-AOROYJ74.mjs.map +0 -1
  608. package/dist/esm/chunk-BAEIZAP7.mjs.map +0 -1
  609. package/dist/esm/chunk-BRV3RLKW.mjs.map +0 -1
  610. package/dist/esm/chunk-BUAHUVAD.mjs.map +0 -1
  611. package/dist/esm/chunk-C2HCRGQU.mjs +0 -2
  612. package/dist/esm/chunk-C2HCRGQU.mjs.map +0 -1
  613. package/dist/esm/chunk-CDEYH77E.mjs +0 -2
  614. package/dist/esm/chunk-CDEYH77E.mjs.map +0 -1
  615. package/dist/esm/chunk-CX6KECGV.mjs.map +0 -1
  616. package/dist/esm/chunk-D3OEQLUE.mjs +0 -2
  617. package/dist/esm/chunk-D3OEQLUE.mjs.map +0 -1
  618. package/dist/esm/chunk-DBTKJMLV.mjs.map +0 -1
  619. package/dist/esm/chunk-DC2IESER.mjs +0 -2
  620. package/dist/esm/chunk-DC2IESER.mjs.map +0 -1
  621. package/dist/esm/chunk-EGV3HFE3.mjs.map +0 -1
  622. package/dist/esm/chunk-ELXJ5A4B.mjs +0 -2
  623. package/dist/esm/chunk-ELXJ5A4B.mjs.map +0 -1
  624. package/dist/esm/chunk-F2WY2DEY.mjs.map +0 -1
  625. package/dist/esm/chunk-FZDEGDUY.mjs.map +0 -1
  626. package/dist/esm/chunk-G4KAHJXB.mjs.map +0 -1
  627. package/dist/esm/chunk-GAEAYY44.mjs +0 -1
  628. package/dist/esm/chunk-GMKKHGXK.mjs.map +0 -1
  629. package/dist/esm/chunk-GVNK3UMT.mjs.map +0 -1
  630. package/dist/esm/chunk-H3C3VTHS.mjs.map +0 -1
  631. package/dist/esm/chunk-HBIDHQ2M.mjs.map +0 -1
  632. package/dist/esm/chunk-HMMNQFVM.mjs.map +0 -1
  633. package/dist/esm/chunk-IBZKCBN5.mjs.map +0 -1
  634. package/dist/esm/chunk-ICMELYCL.mjs.map +0 -1
  635. package/dist/esm/chunk-IHGA5KAD.mjs.map +0 -1
  636. package/dist/esm/chunk-IK2NYNKG.mjs.map +0 -1
  637. package/dist/esm/chunk-J3E4UMBB.mjs +0 -2
  638. package/dist/esm/chunk-J3E4UMBB.mjs.map +0 -1
  639. package/dist/esm/chunk-J7PJSK3J.mjs.map +0 -1
  640. package/dist/esm/chunk-JMPHD4BP.mjs.map +0 -1
  641. package/dist/esm/chunk-JNO7KPMG.mjs.map +0 -1
  642. package/dist/esm/chunk-KCWRCWNT.mjs.map +0 -1
  643. package/dist/esm/chunk-L4SWQLAJ.mjs.map +0 -1
  644. package/dist/esm/chunk-LA5HJILW.mjs.map +0 -1
  645. package/dist/esm/chunk-LGTOOAQI.mjs.map +0 -1
  646. package/dist/esm/chunk-LKKI2KAP.mjs.map +0 -1
  647. package/dist/esm/chunk-LPVGVTWT.mjs.map +0 -1
  648. package/dist/esm/chunk-MHN6XY4Z.mjs +0 -2
  649. package/dist/esm/chunk-MHN6XY4Z.mjs.map +0 -1
  650. package/dist/esm/chunk-N62NUAHT.mjs.map +0 -1
  651. package/dist/esm/chunk-NK67FECB.mjs.map +0 -1
  652. package/dist/esm/chunk-OIOGOW6I.mjs.map +0 -1
  653. package/dist/esm/chunk-OPO5EYF7.mjs.map +0 -1
  654. package/dist/esm/chunk-P6KX7AS2.mjs +0 -2
  655. package/dist/esm/chunk-P6KX7AS2.mjs.map +0 -1
  656. package/dist/esm/chunk-PMGK5IHB.mjs.map +0 -1
  657. package/dist/esm/chunk-PXMNAP2Q.mjs.map +0 -1
  658. package/dist/esm/chunk-QI7OREBM.mjs.map +0 -1
  659. package/dist/esm/chunk-RCA73RVB.mjs.map +0 -1
  660. package/dist/esm/chunk-S5SQJRAV.mjs.map +0 -1
  661. package/dist/esm/chunk-SK3LIS4Z.mjs.map +0 -1
  662. package/dist/esm/chunk-SNYYEVJA.mjs.map +0 -1
  663. package/dist/esm/chunk-SPRNSFUV.mjs.map +0 -1
  664. package/dist/esm/chunk-T6ADNZE5.mjs.map +0 -1
  665. package/dist/esm/chunk-TCXYTPUR.mjs +0 -2
  666. package/dist/esm/chunk-TCXYTPUR.mjs.map +0 -1
  667. package/dist/esm/chunk-U3T4ZT7B.mjs.map +0 -1
  668. package/dist/esm/chunk-U6OCK6T4.mjs.map +0 -1
  669. package/dist/esm/chunk-UFPYCROT.mjs.map +0 -1
  670. package/dist/esm/chunk-UGIHQFID.mjs.map +0 -1
  671. package/dist/esm/chunk-UGTIALNW.mjs +0 -2
  672. package/dist/esm/chunk-V4FKFCBL.mjs.map +0 -1
  673. package/dist/esm/chunk-V5NDNR36.mjs +0 -2
  674. package/dist/esm/chunk-V5NDNR36.mjs.map +0 -1
  675. package/dist/esm/chunk-VIZHWYI5.mjs.map +0 -1
  676. package/dist/esm/chunk-VQZMI3EZ.mjs.map +0 -1
  677. package/dist/esm/chunk-VWGB5BHW.mjs.map +0 -1
  678. package/dist/esm/chunk-WFK3XRQX.mjs.map +0 -1
  679. package/dist/esm/chunk-XOLU6UP3.mjs.map +0 -1
  680. package/dist/esm/chunk-XZN344G4.mjs.map +0 -1
  681. package/dist/esm/chunk-YD2BMHH7.mjs +0 -2
  682. package/dist/esm/chunk-YEWZAR76.mjs.map +0 -1
  683. package/dist/esm/chunk-YJVZFYBX.mjs.map +0 -1
  684. package/dist/esm/chunk-ZMBXHMVQ.mjs.map +0 -1
  685. package/dist/esm/chunk-ZMMLM6ZJ.mjs.map +0 -1
  686. package/dist/esm/chunk-ZMS3AOEZ.mjs.map +0 -1
  687. package/dist/esm/chunk-ZXVN3HXB.mjs.map +0 -1
  688. /package/dist/esm/{chunk-GAEAYY44.mjs.map → account/AccountUtils.mjs.map} +0 -0
  689. /package/dist/esm/{chunk-NZ7M6NG2.mjs.map → chunk-P7A5RILV.mjs.map} +0 -0
  690. /package/dist/esm/{chunk-F45G3GP3.mjs.map → chunk-QHEKBHNU.mjs.map} +0 -0
@@ -1,13 +1,15 @@
1
1
  import { Deserializer, Serializer } from "../../bcs";
2
2
  import { AnyPublicKeyVariant, AnySignatureVariant, SigningScheme as AuthenticationKeyScheme } from "../../types";
3
3
  import { AuthenticationKey } from "../authenticationKey";
4
- import { Ed25519PublicKey, Ed25519Signature } from "./ed25519";
4
+ import { Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature } from "./ed25519";
5
5
  import { AccountPublicKey, PublicKey, VerifySignatureArgs } from "./publicKey";
6
- import { Secp256k1PublicKey, Secp256k1Signature } from "./secp256k1";
6
+ import { Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature } from "./secp256k1";
7
7
  import { KeylessPublicKey, KeylessSignature } from "./keyless";
8
8
  import { Signature } from "./signature";
9
9
  import { FederatedKeylessPublicKey } from "./federatedKeyless";
10
10
 
11
+ export type PrivateKeyInput = Ed25519PrivateKey | Secp256k1PrivateKey;
12
+
11
13
  /**
12
14
  * Represents any public key supported by Aptos.
13
15
  *
@@ -15,15 +17,21 @@ import { FederatedKeylessPublicKey } from "./federatedKeyless";
15
17
  * `Legacy` and `Unified` authentication keys.
16
18
  *
17
19
  * Any unified authentication key is represented in the SDK as `AnyPublicKey`.
20
+ * @group Implementation
21
+ * @category Serialization
18
22
  */
19
23
  export class AnyPublicKey extends AccountPublicKey {
20
24
  /**
21
25
  * Reference to the inner public key
26
+ * @group Implementation
27
+ * @category Serialization
22
28
  */
23
29
  public readonly publicKey: PublicKey;
24
30
 
25
31
  /**
26
32
  * Index of the underlying enum variant
33
+ * @group Implementation
34
+ * @category Serialization
27
35
  */
28
36
  public readonly variant: AnyPublicKeyVariant;
29
37
 
@@ -35,6 +43,8 @@ export class AnyPublicKey extends AccountPublicKey {
35
43
  *
36
44
  * @param publicKey - The publicKey object which determines the variant to be used.
37
45
  * @throws Error if the provided signature type is unsupported.
46
+ * @group Implementation
47
+ * @category Serialization
38
48
  */
39
49
  constructor(publicKey: PublicKey) {
40
50
  super();
@@ -64,6 +74,8 @@ export class AnyPublicKey extends AccountPublicKey {
64
74
  * @param args.message - The message that was signed.
65
75
  * @param args.signature - The signature to verify, which must be an instance of AnySignature.
66
76
  * @returns A boolean indicating whether the signature is valid for the given message.
77
+ * @group Implementation
78
+ * @category Serialization
67
79
  */
68
80
  verifySignature(args: VerifySignatureArgs): boolean {
69
81
  const { message, signature } = args;
@@ -82,6 +94,8 @@ export class AnyPublicKey extends AccountPublicKey {
82
94
  * This function is essential for creating a unique identifier for authentication purposes.
83
95
  *
84
96
  * @returns {AuthenticationKey} The generated authentication key.
97
+ * @group Implementation
98
+ * @category Serialization
85
99
  */
86
100
  authKey(): AuthenticationKey {
87
101
  return AuthenticationKey.fromSchemeAndBytes({
@@ -97,6 +111,8 @@ export class AnyPublicKey extends AccountPublicKey {
97
111
  * Use AnySignature.bcsToBytes() instead.
98
112
  *
99
113
  * @returns Uint8Array representation of the signature.
114
+ * @group Implementation
115
+ * @category Serialization
100
116
  */
101
117
  toUint8Array() {
102
118
  return this.bcsToBytes();
@@ -111,6 +127,8 @@ export class AnyPublicKey extends AccountPublicKey {
111
127
  * This function helps in converting the object into a format suitable for transmission or storage.
112
128
  *
113
129
  * @param serializer - The serializer instance used to perform the serialization.
130
+ * @group Implementation
131
+ * @category Serialization
114
132
  */
115
133
  serialize(serializer: Serializer): void {
116
134
  serializer.serializeU32AsUleb128(this.variant);
@@ -122,6 +140,8 @@ export class AnyPublicKey extends AccountPublicKey {
122
140
  * This function helps in reconstructing the AnySignature object from its serialized form, allowing for further processing or validation.
123
141
  *
124
142
  * @param deserializer - The deserializer instance used to read the serialized data.
143
+ * @group Implementation
144
+ * @category Serialization
125
145
  */
126
146
  static deserialize(deserializer: Deserializer): AnyPublicKey {
127
147
  const variantIndex = deserializer.deserializeUleb128AsU32();
@@ -151,6 +171,8 @@ export class AnyPublicKey extends AccountPublicKey {
151
171
  *
152
172
  * @param publicKey - The public key to check.
153
173
  * @deprecated Use `instanceof AnyPublicKey` instead.
174
+ * @group Implementation
175
+ * @category Serialization
154
176
  */
155
177
  static isPublicKey(publicKey: AccountPublicKey): publicKey is AnyPublicKey {
156
178
  return publicKey instanceof AnyPublicKey;
@@ -160,6 +182,8 @@ export class AnyPublicKey extends AccountPublicKey {
160
182
  * Determines if the current public key is an instance of Ed25519PublicKey.
161
183
  *
162
184
  * @deprecated use `publicKey instanceof Ed25519PublicKey` instead.
185
+ * @group Implementation
186
+ * @category Serialization
163
187
  */
164
188
  isEd25519(): boolean {
165
189
  return this.publicKey instanceof Ed25519PublicKey;
@@ -169,6 +193,8 @@ export class AnyPublicKey extends AccountPublicKey {
169
193
  * Checks if the public key is an instance of Secp256k1PublicKey.
170
194
  *
171
195
  * @deprecated use `publicKey instanceof Secp256k1PublicKey` instead.
196
+ * @group Implementation
197
+ * @category Serialization
172
198
  */
173
199
  isSecp256k1PublicKey(): boolean {
174
200
  return this.publicKey instanceof Secp256k1PublicKey;
@@ -180,6 +206,8 @@ export class AnyPublicKey extends AccountPublicKey {
180
206
  * @param publicKey - The publicKey to be checked for validity.
181
207
  * @param publicKey.publicKey - The actual publicKey object that needs to be validated.
182
208
  * @returns True if the signature is a valid instance; otherwise, false.
209
+ * @group Implementation
210
+ * @category Serialization
183
211
  */
184
212
  static isInstance(publicKey: PublicKey): publicKey is AnyPublicKey {
185
213
  return "publicKey" in publicKey && "variant" in publicKey;
@@ -192,12 +220,16 @@ export class AnyPublicKey extends AccountPublicKey {
192
220
  * only be generated by a `SingleKeySigner` due to the shared authentication mechanism.
193
221
  *
194
222
  * @extends Signature
223
+ * @group Implementation
224
+ * @category Serialization
195
225
  */
196
226
  export class AnySignature extends Signature {
197
227
  public readonly signature: Signature;
198
228
 
199
229
  /**
200
230
  * Index of the underlying enum variant
231
+ * @group Implementation
232
+ * @category Serialization
201
233
  */
202
234
  private readonly variant: AnySignatureVariant;
203
235
 
@@ -7,6 +7,8 @@ import { Hex } from "../hex";
7
7
  * @param message a message as a string or Uint8Array
8
8
  *
9
9
  * @returns a valid HexInput - string or Uint8Array
10
+ * @group Implementation
11
+ * @category Serialization
10
12
  */
11
13
  export const convertSigningMessage = (message: HexInput): HexInput => {
12
14
  // if message is of type string, verify it is a valid Hex string
package/src/core/hex.ts CHANGED
@@ -7,6 +7,8 @@ import { HexInput } from "../types";
7
7
 
8
8
  /**
9
9
  * Provides reasons for parsing failures related to hexadecimal values.
10
+ * @group Implementation
11
+ * @category Serialization
10
12
  */
11
13
  export enum HexInvalidReason {
12
14
  TOO_SHORT = "too_short",
@@ -37,6 +39,8 @@ export enum HexInvalidReason {
37
39
  * Other ways to chain the functions together:
38
40
  * - `Hex.fromHexString({ hexInput: "0x1f" }).toUint8Array()`
39
41
  * - `new Hex([1, 3]).toStringWithoutPrefix()`
42
+ * @group Implementation
43
+ * @category Serialization
40
44
  */
41
45
  export class Hex {
42
46
  private readonly data: Uint8Array;
@@ -45,6 +49,8 @@ export class Hex {
45
49
  * Create a new Hex instance from a Uint8Array.
46
50
  *
47
51
  * @param data - The Uint8Array containing the data to initialize the Hex instance.
52
+ * @group Implementation
53
+ * @category Serialization
48
54
  */
49
55
  constructor(data: Uint8Array) {
50
56
  this.data = data;
@@ -58,6 +64,8 @@ export class Hex {
58
64
  * Get the inner hex data as a Uint8Array. The inner data is already a Uint8Array, so no conversion takes place.
59
65
  *
60
66
  * @returns Hex data as Uint8Array
67
+ * @group Implementation
68
+ * @category Serialization
61
69
  */
62
70
  toUint8Array(): Uint8Array {
63
71
  return this.data;
@@ -67,6 +75,8 @@ export class Hex {
67
75
  * Get the hex data as a string without the 0x prefix.
68
76
  *
69
77
  * @returns Hex string without 0x prefix
78
+ * @group Implementation
79
+ * @category Serialization
70
80
  */
71
81
  toStringWithoutPrefix(): string {
72
82
  return bytesToHex(this.data);
@@ -76,6 +86,8 @@ export class Hex {
76
86
  * Get the hex data as a string with the 0x prefix.
77
87
  *
78
88
  * @returns Hex string with 0x prefix
89
+ * @group Implementation
90
+ * @category Serialization
79
91
  */
80
92
  toString(): string {
81
93
  return `0x${this.toStringWithoutPrefix()}`;
@@ -93,6 +105,8 @@ export class Hex {
93
105
  * @throws ParsingError - If the hex string is too short, has an odd number of characters, or contains invalid hex characters.
94
106
  *
95
107
  * @returns Hex - The resulting Hex instance created from the provided string.
108
+ * @group Implementation
109
+ * @category Serialization
96
110
  */
97
111
  static fromHexString(str: string): Hex {
98
112
  let input = str;
@@ -128,6 +142,8 @@ export class Hex {
128
142
  *
129
143
  * @param hexInput - A HexInput which can be a string or Uint8Array.
130
144
  * @returns A Hex instance created from the provided hexInput.
145
+ * @group Implementation
146
+ * @category Serialization
131
147
  */
132
148
  static fromHexInput(hexInput: HexInput): Hex {
133
149
  if (hexInput instanceof Uint8Array) return new Hex(hexInput);
@@ -192,6 +208,8 @@ export class Hex {
192
208
  * - valid: A boolean indicating whether the string is valid.
193
209
  * - invalidReason: The reason for invalidity if the string is not valid.
194
210
  * - invalidReasonMessage: A message explaining why the string is invalid.
211
+ * @group Implementation
212
+ * @category Serialization
195
213
  */
196
214
  static isValid(str: string): ParsingResult<HexInvalidReason> {
197
215
  try {
@@ -211,6 +229,8 @@ export class Hex {
211
229
  *
212
230
  * @param other The Hex instance to compare to.
213
231
  * @returns true if the Hex instances are equal, false if not.
232
+ * @group Implementation
233
+ * @category Serialization
214
234
  */
215
235
  equals(other: Hex): boolean {
216
236
  if (this.data.length !== other.data.length) return false;
@@ -6,9 +6,10 @@
6
6
  * the {@link api/account}. By moving the methods out into a separate file,
7
7
  * other namespaces and processes can access these methods without depending on the entire
8
8
  * account namespace and without having a dependency cycle error.
9
+ * @group Implementation
9
10
  */
10
11
  import { AptosConfig } from "../api/aptosConfig";
11
- import { getAptosFullNode, paginateWithCursor } from "../client";
12
+ import { getAptosFullNode, paginateWithCursor, paginateWithObfuscatedCursor } from "../client";
12
13
  import {
13
14
  AccountData,
14
15
  GetAccountCoinsDataResponse,
@@ -63,6 +64,7 @@ import { AptosApiError } from "../errors";
63
64
  * @param args - The arguments for retrieving account information.
64
65
  * @param args.aptosConfig - The configuration object for Aptos.
65
66
  * @param args.accountAddress - The address of the account to retrieve information for.
67
+ * @group Implementation
66
68
  */
67
69
  export async function getInfo(args: {
68
70
  aptosConfig: AptosConfig;
@@ -85,8 +87,9 @@ export async function getInfo(args: {
85
87
  * @param args.accountAddress - The address of the account whose modules are to be retrieved.
86
88
  * @param args.options - Optional parameters for pagination and ledger version.
87
89
  * @param args.options.limit - The maximum number of modules to retrieve (default is 1000).
88
- * @param args.options.offset - The starting point for pagination.
90
+ * @param args.options.offset - The starting point for pagination. Note, this is obfuscated and is not an index.
89
91
  * @param args.options.ledgerVersion - The specific ledger version to query.
92
+ * @group Implementation
90
93
  */
91
94
  export async function getModules(args: {
92
95
  aptosConfig: AptosConfig;
@@ -94,13 +97,13 @@ export async function getModules(args: {
94
97
  options?: PaginationArgs & LedgerVersionArg;
95
98
  }): Promise<MoveModuleBytecode[]> {
96
99
  const { aptosConfig, accountAddress, options } = args;
97
- return paginateWithCursor<{}, MoveModuleBytecode[]>({
100
+ return paginateWithObfuscatedCursor<{}, MoveModuleBytecode[]>({
98
101
  aptosConfig,
99
102
  originMethod: "getModules",
100
103
  path: `accounts/${AccountAddress.from(accountAddress).toString()}/modules`,
101
104
  params: {
102
105
  ledger_version: options?.ledgerVersion,
103
- start: options?.offset,
106
+ offset: options?.offset,
104
107
  limit: options?.limit ?? 1000,
105
108
  },
106
109
  });
@@ -117,6 +120,7 @@ export async function getModules(args: {
117
120
  * @param args.options - Optional parameters for the request.
118
121
  * @param args.options.ledgerVersion - Specifies the ledger version of transactions. By default, the latest version will be used.
119
122
  * @returns The move module.
123
+ * @group Implementation
120
124
  */
121
125
  export async function getModule(args: {
122
126
  aptosConfig: AptosConfig;
@@ -146,6 +150,7 @@ export async function getModule(args: {
146
150
  * @param args.moduleName - The name of the module to retrieve.
147
151
  * @param args.options - Optional parameters for specifying the ledger version.
148
152
  * @param args.options.ledgerVersion - The specific ledger version to query.
153
+ * @group Implementation
149
154
  */
150
155
  async function getModuleInner(args: {
151
156
  aptosConfig: AptosConfig;
@@ -174,6 +179,7 @@ async function getModuleInner(args: {
174
179
  * @param args.options - Optional pagination parameters.
175
180
  * @param args.options.offset - The starting point for pagination.
176
181
  * @param args.options.limit - The maximum number of transactions to retrieve.
182
+ * @group Implementation
177
183
  */
178
184
  export async function getTransactions(args: {
179
185
  aptosConfig: AptosConfig;
@@ -196,9 +202,10 @@ export async function getTransactions(args: {
196
202
  * @param args.aptosConfig - The configuration settings for Aptos.
197
203
  * @param args.accountAddress - The address of the account to fetch resources for.
198
204
  * @param args.options - Optional pagination and ledger version parameters.
199
- * @param args.options.offset - The starting point for pagination.
205
+ * @param args.options.offset - The starting point for pagination. Note, this is obfuscated and is not an index.
200
206
  * @param args.options.limit - The maximum number of resources to retrieve (default is 999).
201
207
  * @param args.options.ledgerVersion - The specific ledger version to query.
208
+ * @group Implementation
202
209
  */
203
210
  export async function getResources(args: {
204
211
  aptosConfig: AptosConfig;
@@ -206,13 +213,13 @@ export async function getResources(args: {
206
213
  options?: PaginationArgs & LedgerVersionArg;
207
214
  }): Promise<MoveResource[]> {
208
215
  const { aptosConfig, accountAddress, options } = args;
209
- return paginateWithCursor<{}, MoveResource[]>({
216
+ return paginateWithObfuscatedCursor<{}, MoveResource[]>({
210
217
  aptosConfig,
211
218
  originMethod: "getResources",
212
219
  path: `accounts/${AccountAddress.from(accountAddress).toString()}/resources`,
213
220
  params: {
214
221
  ledger_version: options?.ledgerVersion,
215
- start: options?.offset,
222
+ offset: options?.offset,
216
223
  limit: options?.limit ?? 999,
217
224
  },
218
225
  });
@@ -226,6 +233,7 @@ export async function getResources(args: {
226
233
  * @param args.accountAddress - The address of the account from which to retrieve the resource.
227
234
  * @param args.resourceType - The type of the resource to retrieve, specified as a MoveStructId.
228
235
  * @param args.options - Optional parameters for specifying the ledger version.
236
+ * @group Implementation
229
237
  */
230
238
  export async function getResource<T extends {}>(args: {
231
239
  aptosConfig: AptosConfig;
@@ -252,6 +260,7 @@ export async function getResource<T extends {}>(args: {
252
260
  * @param args.options - Optional parameters for specifying the ledger version.
253
261
  * @returns The original account address or the provided authentication key address if not found.
254
262
  * @throws Throws an error if the lookup fails for reasons other than the address not being found.
263
+ * @group Implementation
255
264
  */
256
265
  export async function lookupOriginalAccountAddress(args: {
257
266
  aptosConfig: AptosConfig;
@@ -306,6 +315,7 @@ export async function lookupOriginalAccountAddress(args: {
306
315
  * @param args.aptosConfig - The configuration settings for the Aptos network.
307
316
  * @param args.accountAddress - The address of the account for which to count the tokens.
308
317
  * @returns The count of tokens owned by the specified account.
318
+ * @group Implementation
309
319
  */
310
320
  export async function getAccountTokensCount(args: {
311
321
  aptosConfig: AptosConfig;
@@ -350,6 +360,7 @@ export async function getAccountTokensCount(args: {
350
360
  * @param args.options.limit - The maximum number of records to return.
351
361
  * @param args.options.orderBy - The criteria for ordering the results.
352
362
  * @returns A promise that resolves to the current token ownerships of the specified account.
363
+ * @group Implementation
353
364
  */
354
365
  export async function getAccountOwnedTokens(args: {
355
366
  aptosConfig: AptosConfig;
@@ -397,6 +408,7 @@ export async function getAccountOwnedTokens(args: {
397
408
  * @param args.collectionAddress - The address of the collection from which tokens are being retrieved.
398
409
  * @param args.options - Optional parameters for filtering and pagination, including token standard, pagination arguments, and
399
410
  * order by options.
411
+ * @group Implementation
400
412
  */
401
413
  export async function getAccountOwnedTokensFromCollectionAddress(args: {
402
414
  aptosConfig: AptosConfig;
@@ -453,6 +465,7 @@ export async function getAccountOwnedTokensFromCollectionAddress(args: {
453
465
  * @param args.options.offset - An optional offset for pagination.
454
466
  * @param args.options.limit - An optional limit for the number of results returned.
455
467
  * @param args.options.orderBy - An optional parameter to specify the order of the results.
468
+ * @group Implementation
456
469
  */
457
470
  export async function getAccountCollectionsWithOwnedTokens(args: {
458
471
  aptosConfig: AptosConfig;
@@ -501,6 +514,7 @@ export async function getAccountCollectionsWithOwnedTokens(args: {
501
514
  * @param args.aptosConfig - The configuration settings for Aptos.
502
515
  * @param args.accountAddress - The address of the account for which to retrieve the transaction count.
503
516
  * @returns The number of transactions associated with the specified account.
517
+ * @group Implementation
504
518
  */
505
519
  export async function getAccountTransactionsCount(args: {
506
520
  aptosConfig: AptosConfig;
@@ -536,6 +550,7 @@ export async function getAccountTransactionsCount(args: {
536
550
  * @param args.faMetadataAddress - Optional; the address of the fungible asset metadata.
537
551
  * @returns The amount of the specified coin held by the account, or 0 if none is found.
538
552
  * @throws Error if neither coinType nor faMetadataAddress is provided.
553
+ * @group Implementation
539
554
  */
540
555
  export async function getAccountCoinAmount(args: {
541
556
  aptosConfig: AptosConfig;
@@ -600,6 +615,7 @@ export async function getAccountCoinAmount(args: {
600
615
  * @param args.options.limit - The maximum number of items to return.
601
616
  * @param args.options.orderBy - The criteria for ordering the results.
602
617
  * @param args.options.where - Conditions to filter the results based on the current fungible asset balances.
618
+ * @group Implementation
603
619
  */
604
620
  export async function getAccountCoinsData(args: {
605
621
  aptosConfig: AptosConfig;
@@ -640,6 +656,7 @@ export async function getAccountCoinsData(args: {
640
656
  * @param args.aptosConfig - The configuration settings for the Aptos network.
641
657
  * @param args.accountAddress - The address of the account for which to retrieve the coin count.
642
658
  * @throws Error if the count of account coins cannot be retrieved.
659
+ * @group Implementation
643
660
  */
644
661
  export async function getAccountCoinsCount(args: {
645
662
  aptosConfig: AptosConfig;
@@ -677,6 +694,7 @@ export async function getAccountCoinsCount(args: {
677
694
  * @param args.options.limit - The maximum number of items to return.
678
695
  * @param args.options.orderBy - The criteria to order the results by.
679
696
  * @returns A promise that resolves to the current objects owned by the specified account.
697
+ * @group Implementation
680
698
  */
681
699
  export async function getAccountOwnedObjects(args: {
682
700
  aptosConfig: AptosConfig;
@@ -721,6 +739,7 @@ export async function getAccountOwnedObjects(args: {
721
739
  * @param args.aptosConfig - The Aptos configuration used for account lookup.
722
740
  * @param args.privateKey - The private key used to derive the account.
723
741
  * @throws Error if the account cannot be derived from the private key.
742
+ * @group Implementation
724
743
  */
725
744
  export async function deriveAccountFromPrivateKey(args: {
726
745
  aptosConfig: AptosConfig;
@@ -773,6 +792,7 @@ export async function deriveAccountFromPrivateKey(args: {
773
792
  * @returns A promise that resolves to a boolean indicating whether the account exists.
774
793
  *
775
794
  * @throws Throws an Error if there is an issue while looking for account information.
795
+ * @group Implementation
776
796
  */
777
797
  export async function isAccountExist(args: { aptosConfig: AptosConfig; authKey: AuthenticationKey }): Promise<boolean> {
778
798
  const { aptosConfig, authKey } = args;
@@ -6,6 +6,7 @@
6
6
  * the {@link api/name}. By moving the methods out into a separate file,
7
7
  * other namespaces and processes can access these methods without depending on the entire
8
8
  * name namespace and without having a dependency cycle error.
9
+ * @group Implementation
9
10
  */
10
11
 
11
12
  import { AptosConfig } from "../api/aptosConfig";
@@ -34,6 +35,7 @@ export const VALIDATION_RULES_DESCRIPTION = [
34
35
  *
35
36
  * @param fragment - A fragment of a name, either the domain or subdomain.
36
37
  * @returns A boolean indicating if the fragment is a valid fragment.
38
+ * @group Implementation
37
39
  */
38
40
  export function isValidANSSegment(fragment: string): boolean {
39
41
  if (!fragment) return false;
@@ -48,6 +50,7 @@ export function isValidANSSegment(fragment: string): boolean {
48
50
  * Checks if an ANS name is valid or not.
49
51
  *
50
52
  * @param name - A string of the domain name, which can include or exclude the .apt suffix.
53
+ * @group Implementation
51
54
  */
52
55
  export function isValidANSName(name: string): { domainName: string; subdomainName?: string } {
53
56
  const [first, second, ...rest] = name.replace(/\.apt$/, "").split(".");
@@ -72,6 +75,7 @@ export function isValidANSName(name: string): { domainName: string; subdomainNam
72
75
 
73
76
  /**
74
77
  * Policy for determining how subdomains expire in relation to their parent domain.
78
+ * @group Implementation
75
79
  */
76
80
  export enum SubdomainExpirationPolicy {
77
81
  Independent = 0,
@@ -86,6 +90,7 @@ export enum SubdomainExpirationPolicy {
86
90
  *
87
91
  * @param name - An ANS name returned from one of the functions of the SDK.
88
92
  * @returns A boolean indicating whether the contract considers the name active or not.
93
+ * @group Implementation
89
94
  */
90
95
  export function isActiveANSName(name: GetANSNameResponse[0]): boolean {
91
96
  if (!name) return false;
@@ -126,6 +131,7 @@ const NetworkToAnsContract: Record<Network, string | null> = {
126
131
  * @param aptosConfig.network - The network for which to retrieve the ANS contract address.
127
132
  *
128
133
  * @throws Throws an error if the ANS contract is not deployed to the specified network.
134
+ * @group Implementation
129
135
  */
130
136
  function getRouterAddress(aptosConfig: AptosConfig): string {
131
137
  const address = NetworkToAnsContract[aptosConfig.network];
@@ -148,6 +154,7 @@ const unwrapOption = <T>(option: any): T | undefined => {
148
154
  * @param args.aptosConfig - The Aptos configuration object.
149
155
  * @param args.name - The name of the domain or subdomain to query.
150
156
  * @returns The account address of the owner, or undefined if not found.
157
+ * @group Implementation
151
158
  */
152
159
  export async function getOwnerAddress(args: {
153
160
  aptosConfig: AptosConfig;
@@ -177,6 +184,7 @@ export async function getOwnerAddress(args: {
177
184
  * @param sender - The account initiating the name registration.
178
185
  * @param name - The name to be registered.
179
186
  * @param expiration - The expiration policy for the name registration.
187
+ * @group Implementation
180
188
  */
181
189
  export interface RegisterNameParameters {
182
190
  aptosConfig: AptosConfig;
@@ -211,6 +219,7 @@ export interface RegisterNameParameters {
211
219
  * @throws Error if the subdomain expiration time exceeds the domain expiration time.
212
220
  *
213
221
  * @returns A transaction object representing the registration process.
222
+ * @group Implementation
214
223
  */
215
224
  export async function registerName(args: RegisterNameParameters): Promise<SimpleTransaction> {
216
225
  const { aptosConfig, expiration, name, sender, targetAddress, toAddress, options, transferable } = args;
@@ -297,6 +306,7 @@ export async function registerName(args: RegisterNameParameters): Promise<Simple
297
306
  * @param args.aptosConfig - The configuration object for Aptos.
298
307
  * @param args.name - The name of the domain or subdomain to check.
299
308
  * @returns The expiration time in epoch milliseconds, or undefined if an error occurs.
309
+ * @group Implementation
300
310
  */
301
311
  export async function getExpiration(args: { aptosConfig: AptosConfig; name: string }): Promise<number | undefined> {
302
312
  const { aptosConfig, name } = args;
@@ -327,6 +337,7 @@ export async function getExpiration(args: { aptosConfig: AptosConfig; name: stri
327
337
  * @param args.aptosConfig - The Aptos configuration object.
328
338
  * @param args.address - The account address for which to retrieve the primary name.
329
339
  * @returns The primary name as a string, or undefined if no domain name exists.
340
+ * @group Implementation
330
341
  */
331
342
  export async function getPrimaryName(args: {
332
343
  aptosConfig: AptosConfig;
@@ -361,6 +372,7 @@ export async function getPrimaryName(args: {
361
372
  * @param args.name - The name to set as the primary name. If omitted, the function will clear the primary name.
362
373
  * @param args.options - Optional transaction generation options.
363
374
  * @returns A transaction object representing the operation.
375
+ * @group Implementation
364
376
  */
365
377
  export async function setPrimaryName(args: {
366
378
  aptosConfig: AptosConfig;
@@ -407,6 +419,7 @@ export async function setPrimaryName(args: {
407
419
  * @param args.aptosConfig - The Aptos configuration object.
408
420
  * @param args.name - The name of the domain, which may include a subdomain.
409
421
  * @returns The target address as an AccountAddress, or undefined if not found.
422
+ * @group Implementation
410
423
  */
411
424
  export async function getTargetAddress(args: {
412
425
  aptosConfig: AptosConfig;
@@ -440,6 +453,7 @@ export async function getTargetAddress(args: {
440
453
  * @param args.options - Optional parameters for generating the transaction.
441
454
  *
442
455
  * @returns A transaction object representing the set target address operation.
456
+ * @group Implementation
443
457
  */
444
458
  export async function setTargetAddress(args: {
445
459
  aptosConfig: AptosConfig;
@@ -472,6 +486,7 @@ export async function setTargetAddress(args: {
472
486
  * @param args.aptosConfig - The configuration object for Aptos.
473
487
  * @param args.name - The name to look up, which includes the domain and optional subdomain.
474
488
  * @returns The active Aptos name if it exists; otherwise, returns undefined.
489
+ * @group Implementation
475
490
  */
476
491
  export async function getName(args: {
477
492
  aptosConfig: AptosConfig;
@@ -510,6 +525,7 @@ export async function getName(args: {
510
525
  * Options for querying names, including pagination, ordering, and filtering criteria.
511
526
  *
512
527
  * @param options - Pagination and filtering options for the query.
528
+ * @group Implementation
513
529
  */
514
530
  interface QueryNamesOptions {
515
531
  options?: PaginationArgs & OrderByArg<GetANSNameResponse[0]> & WhereArg<CurrentAptosNamesBoolExp>;
@@ -519,6 +535,7 @@ interface QueryNamesOptions {
519
535
  * Arguments for retrieving account names based on the specified account address.
520
536
  *
521
537
  * @param accountAddress - The address of the account for which names are to be retrieved.
538
+ * @group Implementation
522
539
  */
523
540
  export interface GetAccountNamesArgs extends QueryNamesOptions {
524
541
  accountAddress: AccountAddressInput;
@@ -537,6 +554,7 @@ export interface GetAccountNamesArgs extends QueryNamesOptions {
537
554
  * @param args.accountAddress - The address of the account for which to retrieve names.
538
555
  *
539
556
  * @returns An array of sanitized Aptos names associated with the specified account address.
557
+ * @group Implementation
540
558
  */
541
559
  export async function getAccountNames(
542
560
  args: { aptosConfig: AptosConfig } & GetAccountNamesArgs,
@@ -570,6 +588,7 @@ export async function getAccountNames(
570
588
  * Arguments for retrieving the domains associated with a specific account.
571
589
  *
572
590
  * @param accountAddress - The address of the account for which to fetch domains.
591
+ * @group Implementation
573
592
  */
574
593
  export interface GetAccountDomainsArgs extends QueryNamesOptions {
575
594
  accountAddress: AccountAddressInput;
@@ -590,6 +609,7 @@ export interface GetAccountDomainsArgs extends QueryNamesOptions {
590
609
  * @param args.options.where.subdomain - The specific subdomain to filter by.
591
610
  *
592
611
  * @returns An array of sanitized domain names owned by the specified account.
612
+ * @group Implementation
593
613
  */
594
614
  export async function getAccountDomains(
595
615
  args: { aptosConfig: AptosConfig } & GetAccountDomainsArgs,
@@ -624,6 +644,7 @@ export async function getAccountDomains(
624
644
  * Arguments for retrieving subdomains associated with a specific account.
625
645
  *
626
646
  * @param accountAddress - The address of the account for which to fetch subdomains.
647
+ * @group Implementation
627
648
  */
628
649
  export interface GetAccountSubdomainsArgs extends QueryNamesOptions {
629
650
  accountAddress: AccountAddressInput;
@@ -644,6 +665,7 @@ export interface GetAccountSubdomainsArgs extends QueryNamesOptions {
644
665
  * @param args.options.where.expiration_timestamp - The expiration timestamp to filter by.
645
666
  * @param args.options.where.subdomain - The subdomain condition to filter by.
646
667
  * @param args.accountAddress - The address of the account whose subdomains are being queried.
668
+ * @group Implementation
647
669
  */
648
670
  export async function getAccountSubdomains(
649
671
  args: { aptosConfig: AptosConfig } & GetAccountSubdomainsArgs,
@@ -678,6 +700,7 @@ export async function getAccountSubdomains(
678
700
  * Arguments for retrieving subdomains associated with a specific domain.
679
701
  *
680
702
  * @param domain - The domain for which to fetch subdomains.
703
+ * @group Implementation
681
704
  */
682
705
  export interface GetDomainSubdomainsArgs extends QueryNamesOptions {
683
706
  domain: string;
@@ -696,6 +719,7 @@ export interface GetDomainSubdomainsArgs extends QueryNamesOptions {
696
719
  * @param args.domain - The domain for which to retrieve subdomains.
697
720
  *
698
721
  * @returns An array of active subdomain names.
722
+ * @group Implementation
699
723
  */
700
724
  export async function getDomainSubdomains(
701
725
  args: { aptosConfig: AptosConfig } & GetDomainSubdomainsArgs,
@@ -734,6 +758,7 @@ export async function getDomainSubdomains(
734
758
  * @param args - The arguments for the function.
735
759
  * @param args.aptosConfig - An AptosConfig object containing the configuration settings.
736
760
  * @returns The expiration date in ISO 8601 format.
761
+ * @group Implementation
737
762
  */
738
763
  async function getANSExpirationDate(args: { aptosConfig: AptosConfig }): Promise<string> {
739
764
  const { aptosConfig } = args;
@@ -762,6 +787,7 @@ async function getANSExpirationDate(args: { aptosConfig: AptosConfig }): Promise
762
787
  * @param args.years - The number of years to renew the domain for. Currently, only 1 year renewals are supported. (optional, default is 1)
763
788
  * @param args.options - Additional options for generating the transaction. (optional)
764
789
  * @throws Error if the name contains a subdomain or if the years parameter is not equal to 1.
790
+ * @group Implementation
765
791
  */
766
792
  export async function renewDomain(args: {
767
793
  aptosConfig: AptosConfig;
@@ -804,6 +830,7 @@ export async function renewDomain(args: {
804
830
  *
805
831
  * @param name - The ANS name response to sanitize.
806
832
  * @param name.expiration_timestamp - The expiration timestamp in ISO string format.
833
+ * @group Implementation
807
834
  */
808
835
  function sanitizeANSName(name: GetANSNameResponse[0]): GetANSNameResponse[0] {
809
836
  return {
@@ -23,6 +23,7 @@ const coinTransferAbi: EntryFunctionABI = {
23
23
  * @param args.amount - The amount of coins to transfer.
24
24
  * @param args.coinType - (Optional) The type of coin to transfer, defaults to Aptos Coin if not specified.
25
25
  * @param args.options - (Optional) Options for generating the transaction.
26
+ * @group Implementation
26
27
  */
27
28
  export async function transferCoinTransaction(args: {
28
29
  aptosConfig: AptosConfig;