@aptos-labs/ts-sdk 1.29.1 → 1.31.0

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 (691) hide show
  1. package/README.md +2 -2
  2. package/dist/common/{accountAddress-DUCC2ffJ.d.ts → accountAddress-DnSqjhSl.d.ts} +700 -245
  3. package/dist/common/{chunk-HBPH2AD3.js → chunk-7IYTZDXV.js} +1 -1
  4. package/dist/common/chunk-7IYTZDXV.js.map +1 -0
  5. package/dist/common/cli/index.d.ts +123 -126
  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 +5919 -1627
  9. package/dist/common/index.js +11 -9
  10. package/dist/common/index.js.map +1 -1
  11. package/dist/esm/Ed25519Account-DpH9qAcg.d.mts +470 -0
  12. package/dist/esm/account/AbstractKeylessAccount.d.mts +5 -5
  13. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  14. package/dist/esm/account/Account.d.mts +2 -2
  15. package/dist/esm/account/Account.mjs +1 -1
  16. package/dist/esm/account/Ed25519Account.d.mts +2 -2
  17. package/dist/esm/account/Ed25519Account.mjs +1 -1
  18. package/dist/esm/account/EphemeralKeyPair.d.mts +49 -14
  19. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  20. package/dist/esm/account/FederatedKeylessAccount.d.mts +3 -3
  21. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  22. package/dist/esm/account/KeylessAccount.d.mts +37 -3
  23. package/dist/esm/account/KeylessAccount.mjs +1 -1
  24. package/dist/esm/account/MultiKeyAccount.d.mts +54 -34
  25. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  26. package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
  27. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  28. package/dist/esm/account/index.d.mts +2 -2
  29. package/dist/esm/account/index.mjs +1 -1
  30. package/dist/esm/api/account.d.mts +448 -161
  31. package/dist/esm/api/account.mjs +1 -1
  32. package/dist/esm/api/ans.d.mts +369 -122
  33. package/dist/esm/api/ans.mjs +1 -1
  34. package/dist/esm/api/aptos.d.mts +40 -7
  35. package/dist/esm/api/aptos.mjs +1 -1
  36. package/dist/esm/api/aptosConfig.d.mts +102 -14
  37. package/dist/esm/api/aptosConfig.mjs +1 -1
  38. package/dist/esm/api/coin.d.mts +52 -15
  39. package/dist/esm/api/coin.mjs +1 -1
  40. package/dist/esm/api/digitalAsset.d.mts +710 -300
  41. package/dist/esm/api/digitalAsset.mjs +1 -1
  42. package/dist/esm/api/event.d.mts +129 -26
  43. package/dist/esm/api/event.mjs +1 -1
  44. package/dist/esm/api/faucet.d.mts +44 -7
  45. package/dist/esm/api/faucet.mjs +1 -1
  46. package/dist/esm/api/fungibleAsset.d.mts +152 -49
  47. package/dist/esm/api/fungibleAsset.mjs +1 -1
  48. package/dist/esm/api/general.d.mts +171 -55
  49. package/dist/esm/api/general.mjs +1 -1
  50. package/dist/esm/api/index.d.mts +2 -2
  51. package/dist/esm/api/index.mjs +1 -1
  52. package/dist/esm/api/keyless.d.mts +86 -14
  53. package/dist/esm/api/keyless.mjs +1 -1
  54. package/dist/esm/api/object.d.mts +51 -7
  55. package/dist/esm/api/object.mjs +1 -1
  56. package/dist/esm/api/staking.d.mts +86 -17
  57. package/dist/esm/api/staking.mjs +1 -1
  58. package/dist/esm/api/table.d.mts +118 -38
  59. package/dist/esm/api/table.mjs +1 -1
  60. package/dist/esm/api/transaction.d.mts +440 -109
  61. package/dist/esm/api/transaction.mjs +1 -1
  62. package/dist/esm/api/transactionSubmission/build.d.mts +99 -13
  63. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  64. package/dist/esm/api/transactionSubmission/helpers.d.mts +79 -0
  65. package/dist/esm/api/transactionSubmission/helpers.mjs +1 -1
  66. package/dist/esm/api/transactionSubmission/management.d.mts +111 -12
  67. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  68. package/dist/esm/api/transactionSubmission/sign.d.mts +97 -3
  69. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  70. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  71. package/dist/esm/api/transactionSubmission/simulate.d.mts +140 -15
  72. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  73. package/dist/esm/api/transactionSubmission/submit.d.mts +104 -13
  74. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  75. package/dist/esm/api/utils.d.mts +26 -3
  76. package/dist/esm/api/utils.mjs +1 -1
  77. package/dist/esm/bcs/consts.mjs +1 -1
  78. package/dist/esm/bcs/deserializer.d.mts +82 -32
  79. package/dist/esm/bcs/deserializer.mjs +1 -1
  80. package/dist/esm/bcs/index.mjs +1 -1
  81. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +25 -6
  82. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  83. package/dist/esm/bcs/serializable/fixedBytes.d.mts +51 -21
  84. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  85. package/dist/esm/bcs/serializable/movePrimitives.d.mts +79 -0
  86. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  87. package/dist/esm/bcs/serializable/moveStructs.d.mts +119 -32
  88. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  89. package/dist/esm/bcs/serializer.d.mts +111 -76
  90. package/dist/esm/bcs/serializer.mjs +1 -1
  91. package/dist/esm/chunk-22ZSW5EN.mjs +2 -0
  92. package/dist/esm/chunk-22ZSW5EN.mjs.map +1 -0
  93. package/dist/esm/{chunk-7V6DEA7G.mjs → chunk-2652SPOM.mjs} +2 -2
  94. package/dist/esm/chunk-2652SPOM.mjs.map +1 -0
  95. package/dist/esm/chunk-2CGJLPHP.mjs +2 -0
  96. package/dist/esm/{chunk-555I4YHP.mjs.map → chunk-2CGJLPHP.mjs.map} +1 -1
  97. package/dist/esm/{chunk-U6Z4FNB7.mjs → chunk-2CJC43CV.mjs} +1 -1
  98. package/dist/esm/chunk-2CJC43CV.mjs.map +1 -0
  99. package/dist/esm/{chunk-PUZ25PTD.mjs → chunk-2GEIHUHT.mjs} +2 -2
  100. package/dist/esm/chunk-2GEIHUHT.mjs.map +1 -0
  101. package/dist/esm/{chunk-FRGXKOU5.mjs → chunk-3H5DGQKX.mjs} +2 -2
  102. package/dist/esm/chunk-3H5DGQKX.mjs.map +1 -0
  103. package/dist/esm/chunk-4CDDWSKZ.mjs +2 -0
  104. package/dist/esm/chunk-4CDDWSKZ.mjs.map +1 -0
  105. package/dist/esm/{chunk-L5NY7TMI.mjs → chunk-4JXB6V5O.mjs} +2 -2
  106. package/dist/esm/chunk-4JXB6V5O.mjs.map +1 -0
  107. package/dist/esm/{chunk-5655UVIK.mjs → chunk-4LKLOUMG.mjs} +2 -2
  108. package/dist/esm/chunk-4LKLOUMG.mjs.map +1 -0
  109. package/dist/esm/chunk-4OV7QU2U.mjs +2 -0
  110. package/dist/esm/chunk-4OV7QU2U.mjs.map +1 -0
  111. package/dist/esm/chunk-4VU2ABLU.mjs +2 -0
  112. package/dist/esm/chunk-4VU2ABLU.mjs.map +1 -0
  113. package/dist/esm/{chunk-25NSCK4Q.mjs → chunk-4ZK3JNQT.mjs} +2 -2
  114. package/dist/esm/chunk-4ZK3JNQT.mjs.map +1 -0
  115. package/dist/esm/{chunk-SWHLSREF.mjs → chunk-5N6KJ7KS.mjs} +2 -2
  116. package/dist/esm/chunk-5N6KJ7KS.mjs.map +1 -0
  117. package/dist/esm/{chunk-WWZ3METZ.mjs → chunk-5S3Z7MT4.mjs} +2 -2
  118. package/dist/esm/chunk-5S3Z7MT4.mjs.map +1 -0
  119. package/dist/esm/{chunk-46D5QX3G.mjs → chunk-5SGSPCOY.mjs} +2 -2
  120. package/dist/esm/chunk-5SGSPCOY.mjs.map +1 -0
  121. package/dist/esm/chunk-6DMDYBV6.mjs +2 -0
  122. package/dist/esm/chunk-6DMDYBV6.mjs.map +1 -0
  123. package/dist/esm/chunk-6FLHGOKP.mjs +2 -0
  124. package/dist/esm/chunk-6FLHGOKP.mjs.map +1 -0
  125. package/dist/esm/{chunk-LG7RJQ57.mjs → chunk-6Q2O5G3J.mjs} +1 -1
  126. package/dist/esm/chunk-6Q2O5G3J.mjs.map +1 -0
  127. package/dist/esm/{chunk-BRFHAO2Y.mjs → chunk-73GCGRFW.mjs} +2 -2
  128. package/dist/esm/chunk-73GCGRFW.mjs.map +1 -0
  129. package/dist/esm/{chunk-XK3JFCP3.mjs → chunk-7JK7UG4E.mjs} +2 -2
  130. package/dist/esm/chunk-7JK7UG4E.mjs.map +1 -0
  131. package/dist/esm/{chunk-44GYWUSH.mjs → chunk-7XS45O6M.mjs} +1 -1
  132. package/dist/esm/chunk-7XS45O6M.mjs.map +1 -0
  133. package/dist/esm/{chunk-RNTXQYJQ.mjs → chunk-A2AEFKXS.mjs} +2 -2
  134. package/dist/esm/chunk-A2AEFKXS.mjs.map +1 -0
  135. package/dist/esm/{chunk-E37YRKWK.mjs → chunk-AGBA3Y7A.mjs} +2 -2
  136. package/dist/esm/chunk-AGBA3Y7A.mjs.map +1 -0
  137. package/dist/esm/chunk-AITN3DO4.mjs +2 -0
  138. package/dist/esm/chunk-AITN3DO4.mjs.map +1 -0
  139. package/dist/esm/{chunk-OY2IX7HW.mjs → chunk-AT2ZGTXQ.mjs} +2 -2
  140. package/dist/esm/chunk-AT2ZGTXQ.mjs.map +1 -0
  141. package/dist/esm/{chunk-TVFIUUVY.mjs → chunk-AZ6LVQEG.mjs} +2 -2
  142. package/dist/esm/chunk-AZ6LVQEG.mjs.map +1 -0
  143. package/dist/esm/chunk-BAGUHYFD.mjs +2 -0
  144. package/dist/esm/chunk-BAGUHYFD.mjs.map +1 -0
  145. package/dist/esm/{chunk-EWZ2M5BW.mjs → chunk-BG2TZI3H.mjs} +2 -2
  146. package/dist/esm/chunk-BG2TZI3H.mjs.map +1 -0
  147. package/dist/esm/chunk-BOWPP6YG.mjs +2 -0
  148. package/dist/esm/chunk-BOWPP6YG.mjs.map +1 -0
  149. package/dist/esm/{chunk-GFGX3QDP.mjs → chunk-BVVHGSWC.mjs} +2 -2
  150. package/dist/esm/chunk-BVVHGSWC.mjs.map +1 -0
  151. package/dist/esm/{chunk-BD6BJETG.mjs → chunk-CC7VOPYH.mjs} +2 -2
  152. package/dist/esm/chunk-CC7VOPYH.mjs.map +1 -0
  153. package/dist/esm/{chunk-K2O24YLZ.mjs → chunk-CDQGPCHU.mjs} +2 -2
  154. package/dist/esm/chunk-CDQGPCHU.mjs.map +1 -0
  155. package/dist/esm/{chunk-HSPBA2TZ.mjs → chunk-CL6EEMSL.mjs} +2 -2
  156. package/dist/esm/chunk-CL6EEMSL.mjs.map +1 -0
  157. package/dist/esm/{chunk-SCHZ67F3.mjs → chunk-D3OEQLUE.mjs} +1 -1
  158. package/dist/esm/{chunk-SCHZ67F3.mjs.map → chunk-D3OEQLUE.mjs.map} +1 -1
  159. package/dist/esm/{chunk-NNRAQP36.mjs → chunk-DMSHPWA5.mjs} +2 -2
  160. package/dist/esm/chunk-DMSHPWA5.mjs.map +1 -0
  161. package/dist/esm/{chunk-STGYDB5E.mjs → chunk-EE7GDBA5.mjs} +2 -2
  162. package/dist/esm/chunk-EE7GDBA5.mjs.map +1 -0
  163. package/dist/esm/{chunk-CPPBQDHB.mjs → chunk-EUGLLGYW.mjs} +2 -2
  164. package/dist/esm/chunk-EUGLLGYW.mjs.map +1 -0
  165. package/dist/esm/{chunk-CVDR5SJR.mjs → chunk-F2RY4YQ7.mjs} +2 -2
  166. package/dist/esm/chunk-F2RY4YQ7.mjs.map +1 -0
  167. package/dist/esm/chunk-FTZGP6XW.mjs +2 -0
  168. package/dist/esm/chunk-FTZGP6XW.mjs.map +1 -0
  169. package/dist/esm/{chunk-6RZZIOGH.mjs → chunk-GLATLXF6.mjs} +2 -2
  170. package/dist/esm/chunk-GLATLXF6.mjs.map +1 -0
  171. package/dist/esm/{chunk-SRPI2FFA.mjs → chunk-GMKKHGXK.mjs} +1 -1
  172. package/dist/esm/chunk-GMKKHGXK.mjs.map +1 -0
  173. package/dist/esm/{chunk-TDGQGILY.mjs → chunk-GQABU3RQ.mjs} +1 -1
  174. package/dist/esm/chunk-GQABU3RQ.mjs.map +1 -0
  175. package/dist/esm/{chunk-AH44UPM4.mjs → chunk-HBIDHQ2M.mjs} +1 -1
  176. package/dist/esm/chunk-HBIDHQ2M.mjs.map +1 -0
  177. package/dist/esm/chunk-HM5HITUC.mjs +4 -0
  178. package/dist/esm/chunk-HM5HITUC.mjs.map +1 -0
  179. package/dist/esm/{chunk-6EMN3BOV.mjs → chunk-I2NMCLNW.mjs} +1 -1
  180. package/dist/esm/chunk-I2NMCLNW.mjs.map +1 -0
  181. package/dist/esm/{chunk-NH2S6SB2.mjs → chunk-IAVI3H4V.mjs} +2 -2
  182. package/dist/esm/chunk-IAVI3H4V.mjs.map +1 -0
  183. package/dist/esm/chunk-IBLZ6MZU.mjs +2 -0
  184. package/dist/esm/chunk-IBLZ6MZU.mjs.map +1 -0
  185. package/dist/esm/chunk-IECDO22V.mjs +2 -0
  186. package/dist/esm/chunk-IECDO22V.mjs.map +1 -0
  187. package/dist/esm/{chunk-3YKAGVHZ.mjs → chunk-IFXUWUP2.mjs} +2 -2
  188. package/dist/esm/chunk-IFXUWUP2.mjs.map +1 -0
  189. package/dist/esm/{chunk-EXP5STXZ.mjs → chunk-J245N3XF.mjs} +1 -1
  190. package/dist/esm/chunk-J245N3XF.mjs.map +1 -0
  191. package/dist/esm/{chunk-MS4MRLGA.mjs → chunk-JGNMNCQB.mjs} +2 -2
  192. package/dist/esm/chunk-JGNMNCQB.mjs.map +1 -0
  193. package/dist/esm/{chunk-SR24OGHJ.mjs → chunk-JN36BNWA.mjs} +2 -2
  194. package/dist/esm/chunk-JN36BNWA.mjs.map +1 -0
  195. package/dist/esm/{chunk-DAXKRXRK.mjs → chunk-JNRMHDRA.mjs} +2 -2
  196. package/dist/esm/chunk-JNRMHDRA.mjs.map +1 -0
  197. package/dist/esm/{chunk-SAPUZZEU.mjs → chunk-JVTDP4KV.mjs} +2 -2
  198. package/dist/esm/chunk-JVTDP4KV.mjs.map +1 -0
  199. package/dist/esm/{chunk-FVA2OPG4.mjs → chunk-KDMSOCZY.mjs} +1 -1
  200. package/dist/esm/{chunk-BCUSI3N6.mjs → chunk-KFNDDPOW.mjs} +2 -2
  201. package/dist/esm/chunk-KFNDDPOW.mjs.map +1 -0
  202. package/dist/esm/chunk-KIW54KWR.mjs +2 -0
  203. package/dist/esm/{chunk-QPP6BX53.mjs → chunk-KM6UXNC7.mjs} +2 -2
  204. package/dist/esm/chunk-KM6UXNC7.mjs.map +1 -0
  205. package/dist/esm/{chunk-PKXEB7XP.mjs → chunk-KRVLR3L4.mjs} +2 -2
  206. package/dist/esm/chunk-KRVLR3L4.mjs.map +1 -0
  207. package/dist/esm/{chunk-XH7YKEYR.mjs → chunk-KW4FVBDD.mjs} +2 -2
  208. package/dist/esm/chunk-KW4FVBDD.mjs.map +1 -0
  209. package/dist/esm/{chunk-AFOPNDOJ.mjs → chunk-KYJU5PWF.mjs} +2 -2
  210. package/dist/esm/chunk-KYJU5PWF.mjs.map +1 -0
  211. package/dist/esm/{chunk-X4KEZTUQ.mjs → chunk-L5J3V3HW.mjs} +2 -2
  212. package/dist/esm/chunk-L5J3V3HW.mjs.map +1 -0
  213. package/dist/esm/{chunk-LDFTE4MM.mjs → chunk-LDZPO76C.mjs} +2 -2
  214. package/dist/esm/chunk-LDZPO76C.mjs.map +1 -0
  215. package/dist/esm/{chunk-UAL27G6B.mjs → chunk-LEKBJ2EG.mjs} +1 -1
  216. package/dist/esm/chunk-LEKBJ2EG.mjs.map +1 -0
  217. package/dist/esm/{chunk-YHAPZP5A.mjs → chunk-M22UGFQ5.mjs} +2 -2
  218. package/dist/esm/chunk-M22UGFQ5.mjs.map +1 -0
  219. package/dist/esm/{chunk-TMW2HIXC.mjs → chunk-MK2QAHXC.mjs} +2 -2
  220. package/dist/esm/chunk-MK2QAHXC.mjs.map +1 -0
  221. package/dist/esm/{chunk-QCUFTD7K.mjs → chunk-MSHZ4FWB.mjs} +2 -2
  222. package/dist/esm/chunk-MSHZ4FWB.mjs.map +1 -0
  223. package/dist/esm/{chunk-KEYAPEAX.mjs → chunk-N47FTRYO.mjs} +1 -1
  224. package/dist/esm/chunk-N47FTRYO.mjs.map +1 -0
  225. package/dist/esm/{chunk-QIW56MUH.mjs → chunk-NODYW7DM.mjs} +2 -2
  226. package/dist/esm/chunk-NODYW7DM.mjs.map +1 -0
  227. package/dist/esm/chunk-OAEDFM7T.mjs +2 -0
  228. package/dist/esm/chunk-OAEDFM7T.mjs.map +1 -0
  229. package/dist/esm/chunk-ONBFUPEC.mjs +2 -0
  230. package/dist/esm/chunk-ONBFUPEC.mjs.map +1 -0
  231. package/dist/esm/chunk-OTY3NO7Q.mjs +2 -0
  232. package/dist/esm/chunk-OTY3NO7Q.mjs.map +1 -0
  233. package/dist/esm/{chunk-ZGO2SK6F.mjs → chunk-OXM4BVAY.mjs} +2 -2
  234. package/dist/esm/chunk-OXM4BVAY.mjs.map +1 -0
  235. package/dist/esm/{chunk-YJCZU6PR.mjs → chunk-OZN3OOJV.mjs} +2 -2
  236. package/dist/esm/chunk-OZN3OOJV.mjs.map +1 -0
  237. package/dist/esm/{chunk-DAJOX4PL.mjs → chunk-P3J54CQG.mjs} +2 -2
  238. package/dist/esm/chunk-P3J54CQG.mjs.map +1 -0
  239. package/dist/esm/{chunk-WP7WF54Q.mjs → chunk-PCLU4KLY.mjs} +2 -2
  240. package/dist/esm/chunk-PCLU4KLY.mjs.map +1 -0
  241. package/dist/esm/{chunk-LR65XHSF.mjs → chunk-PHP47DI4.mjs} +2 -2
  242. package/dist/esm/chunk-PHP47DI4.mjs.map +1 -0
  243. package/dist/esm/chunk-PRZ7AIGA.mjs +2 -0
  244. package/dist/esm/chunk-PRZ7AIGA.mjs.map +1 -0
  245. package/dist/esm/chunk-QQIVWB6G.mjs +2 -0
  246. package/dist/esm/chunk-QQIVWB6G.mjs.map +1 -0
  247. package/dist/esm/{chunk-TS3PYRAT.mjs → chunk-RAJTNQNL.mjs} +2 -2
  248. package/dist/esm/chunk-RAJTNQNL.mjs.map +1 -0
  249. package/dist/esm/{chunk-XONG5JZ4.mjs → chunk-RBJNSUSU.mjs} +2 -2
  250. package/dist/esm/chunk-RBJNSUSU.mjs.map +1 -0
  251. package/dist/esm/{chunk-EV2USF7B.mjs → chunk-RNJHULIT.mjs} +2 -2
  252. package/dist/esm/chunk-RNJHULIT.mjs.map +1 -0
  253. package/dist/esm/{chunk-IYQISVDX.mjs → chunk-RNRNGJDA.mjs} +2 -2
  254. package/dist/esm/chunk-RNRNGJDA.mjs.map +1 -0
  255. package/dist/esm/{chunk-N5JNKD5F.mjs → chunk-SGQFWWLQ.mjs} +2 -2
  256. package/dist/esm/chunk-SGQFWWLQ.mjs.map +1 -0
  257. package/dist/esm/{chunk-7ZLBJUVZ.mjs → chunk-SOLWFAUY.mjs} +2 -2
  258. package/dist/esm/chunk-SOLWFAUY.mjs.map +1 -0
  259. package/dist/esm/{chunk-MO4IZXLK.mjs → chunk-T5BCTWGK.mjs} +2 -2
  260. package/dist/esm/chunk-T5BCTWGK.mjs.map +1 -0
  261. package/dist/esm/{chunk-U67PFBTL.mjs → chunk-TPJLAYW6.mjs} +2 -2
  262. package/dist/esm/chunk-TPJLAYW6.mjs.map +1 -0
  263. package/dist/esm/{chunk-XXHW3ZT3.mjs → chunk-UCRROMZN.mjs} +2 -2
  264. package/dist/esm/chunk-UCRROMZN.mjs.map +1 -0
  265. package/dist/esm/{chunk-QLN2URFX.mjs → chunk-UGL2GPGK.mjs} +2 -2
  266. package/dist/esm/chunk-UGL2GPGK.mjs.map +1 -0
  267. package/dist/esm/{chunk-NMD45OTM.mjs → chunk-V5NDNR36.mjs} +2 -2
  268. package/dist/esm/chunk-V5NDNR36.mjs.map +1 -0
  269. package/dist/esm/{chunk-KYSDF3CA.mjs → chunk-VYMRIKUV.mjs} +2 -2
  270. package/dist/esm/chunk-VYMRIKUV.mjs.map +1 -0
  271. package/dist/esm/{chunk-KXBIA4KR.mjs → chunk-WSZCPSV4.mjs} +2 -2
  272. package/dist/esm/chunk-WSZCPSV4.mjs.map +1 -0
  273. package/dist/esm/{chunk-B2CXRZL5.mjs → chunk-WV2VJQDS.mjs} +2 -2
  274. package/dist/esm/chunk-WV2VJQDS.mjs.map +1 -0
  275. package/dist/esm/{chunk-B6M7QBUO.mjs → chunk-WZCKSN2U.mjs} +2 -2
  276. package/dist/esm/chunk-WZCKSN2U.mjs.map +1 -0
  277. package/dist/esm/{chunk-25TIHDS6.mjs → chunk-XFJD6QIP.mjs} +2 -2
  278. package/dist/esm/chunk-XFJD6QIP.mjs.map +1 -0
  279. package/dist/esm/{chunk-ECWOLU5T.mjs → chunk-XFY4O2S3.mjs} +2 -2
  280. package/dist/esm/chunk-XFY4O2S3.mjs.map +1 -0
  281. package/dist/esm/chunk-XOCRDV2V.mjs +2 -0
  282. package/dist/esm/chunk-XOCRDV2V.mjs.map +1 -0
  283. package/dist/esm/{chunk-TL7DR54X.mjs → chunk-XQ7ONNII.mjs} +2 -2
  284. package/dist/esm/chunk-XQ7ONNII.mjs.map +1 -0
  285. package/dist/esm/chunk-Y267I7DC.mjs +2 -0
  286. package/dist/esm/chunk-Y267I7DC.mjs.map +1 -0
  287. package/dist/esm/{chunk-G7MWTE2J.mjs → chunk-YZ5BCOGI.mjs} +2 -2
  288. package/dist/esm/{chunk-LXLISEQ4.mjs → chunk-ZINOJTLU.mjs} +2 -2
  289. package/dist/esm/chunk-ZINOJTLU.mjs.map +1 -0
  290. package/dist/esm/{chunk-2TQIU7CG.mjs → chunk-ZPIMARUG.mjs} +2 -2
  291. package/dist/esm/chunk-ZPIMARUG.mjs.map +1 -0
  292. package/dist/esm/chunk-ZPQUCT22.mjs +2 -0
  293. package/dist/esm/chunk-ZPQUCT22.mjs.map +1 -0
  294. package/dist/esm/cli/index.mjs +1 -1
  295. package/dist/esm/cli/localNode.d.mts +26 -10
  296. package/dist/esm/cli/localNode.mjs +1 -1
  297. package/dist/esm/cli/move.d.mts +104 -123
  298. package/dist/esm/cli/move.mjs +1 -1
  299. package/dist/esm/client/core.d.mts +21 -6
  300. package/dist/esm/client/core.mjs +1 -1
  301. package/dist/esm/client/get.d.mts +34 -6
  302. package/dist/esm/client/get.mjs +1 -1
  303. package/dist/esm/client/index.mjs +1 -1
  304. package/dist/esm/client/post.d.mts +63 -6
  305. package/dist/esm/client/post.mjs +1 -1
  306. package/dist/esm/client/types.d.mts +21 -8
  307. package/dist/esm/client/types.mjs +1 -1
  308. package/dist/esm/core/account/index.mjs +1 -1
  309. package/dist/esm/core/account/utils/address.d.mts +1 -1
  310. package/dist/esm/core/account/utils/address.mjs +1 -1
  311. package/dist/esm/core/account/utils/index.mjs +1 -1
  312. package/dist/esm/core/accountAddress.d.mts +63 -48
  313. package/dist/esm/core/accountAddress.mjs +1 -1
  314. package/dist/esm/core/authenticationKey.d.mts +1 -1
  315. package/dist/esm/core/authenticationKey.mjs +1 -1
  316. package/dist/esm/core/common.d.mts +6 -0
  317. package/dist/esm/core/common.mjs +1 -1
  318. package/dist/esm/core/crypto/ed25519.d.mts +77 -26
  319. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  320. package/dist/esm/core/crypto/ephemeral.d.mts +36 -14
  321. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  322. package/dist/esm/core/crypto/federatedKeyless.d.mts +2 -14
  323. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  324. package/dist/esm/core/crypto/hdKey.d.mts +9 -6
  325. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  326. package/dist/esm/core/crypto/index.d.mts +1 -1
  327. package/dist/esm/core/crypto/index.mjs +1 -1
  328. package/dist/esm/core/crypto/keyless.d.mts +126 -45
  329. package/dist/esm/core/crypto/keyless.mjs +1 -1
  330. package/dist/esm/core/crypto/multiEd25519.d.mts +45 -6
  331. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  332. package/dist/esm/core/crypto/multiKey.d.mts +58 -7
  333. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  334. package/dist/esm/core/crypto/poseidon.d.mts +35 -5
  335. package/dist/esm/core/crypto/poseidon.mjs +1 -1
  336. package/dist/esm/core/crypto/privateKey.d.mts +10 -6
  337. package/dist/esm/core/crypto/proof.d.mts +2 -6
  338. package/dist/esm/core/crypto/proof.mjs +1 -1
  339. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  340. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  341. package/dist/esm/core/crypto/secp256k1.d.mts +72 -27
  342. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  343. package/dist/esm/core/crypto/signature.d.mts +5 -4
  344. package/dist/esm/core/crypto/signature.mjs +1 -1
  345. package/dist/esm/core/crypto/singleKey.d.mts +63 -5
  346. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  347. package/dist/esm/core/crypto/utils.mjs +1 -1
  348. package/dist/esm/core/hex.d.mts +27 -28
  349. package/dist/esm/core/hex.mjs +1 -1
  350. package/dist/esm/core/index.d.mts +1 -1
  351. package/dist/esm/core/index.mjs +1 -1
  352. package/dist/esm/index.d.mts +2 -2
  353. package/dist/esm/index.mjs +1 -1
  354. package/dist/esm/internal/account.d.mts +191 -12
  355. package/dist/esm/internal/account.mjs +1 -1
  356. package/dist/esm/internal/ans.d.mts +206 -14
  357. package/dist/esm/internal/ans.mjs +1 -1
  358. package/dist/esm/internal/coin.d.mts +13 -1
  359. package/dist/esm/internal/coin.mjs +1 -1
  360. package/dist/esm/internal/digitalAsset.d.mts +330 -2
  361. package/dist/esm/internal/digitalAsset.mjs +1 -1
  362. package/dist/esm/internal/event.d.mts +39 -0
  363. package/dist/esm/internal/event.mjs +1 -1
  364. package/dist/esm/internal/faucet.d.mts +14 -0
  365. package/dist/esm/internal/faucet.mjs +1 -1
  366. package/dist/esm/internal/fungibleAsset.d.mts +48 -2
  367. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  368. package/dist/esm/internal/general.d.mts +46 -0
  369. package/dist/esm/internal/general.mjs +1 -1
  370. package/dist/esm/internal/keyless.d.mts +41 -4
  371. package/dist/esm/internal/keyless.mjs +1 -1
  372. package/dist/esm/internal/object.d.mts +21 -0
  373. package/dist/esm/internal/object.mjs +1 -1
  374. package/dist/esm/internal/staking.d.mts +26 -0
  375. package/dist/esm/internal/staking.mjs +1 -1
  376. package/dist/esm/internal/table.d.mts +33 -1
  377. package/dist/esm/internal/table.mjs +1 -1
  378. package/dist/esm/internal/transaction.d.mts +107 -5
  379. package/dist/esm/internal/transaction.mjs +1 -1
  380. package/dist/esm/internal/transactionSubmission.d.mts +72 -29
  381. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  382. package/dist/esm/internal/view.d.mts +1 -1
  383. package/dist/esm/internal/view.mjs +1 -1
  384. package/dist/esm/publicKey-_tPa99ea.d.mts +151 -0
  385. package/dist/esm/transactions/authenticator/account.d.mts +66 -17
  386. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  387. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  388. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  389. package/dist/esm/transactions/authenticator/transaction.d.mts +53 -20
  390. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  391. package/dist/esm/transactions/index.d.mts +1 -1
  392. package/dist/esm/transactions/index.mjs +1 -1
  393. package/dist/esm/transactions/instances/chainId.d.mts +20 -1
  394. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  395. package/dist/esm/transactions/instances/identifier.d.mts +21 -3
  396. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  397. package/dist/esm/transactions/instances/index.d.mts +1 -1
  398. package/dist/esm/transactions/instances/index.mjs +1 -1
  399. package/dist/esm/transactions/instances/moduleId.d.mts +22 -8
  400. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  401. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +24 -8
  402. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  403. package/dist/esm/transactions/instances/rawTransaction.d.mts +31 -4
  404. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  405. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +25 -3
  406. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  407. package/dist/esm/transactions/instances/signedTransaction.d.mts +29 -7
  408. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  409. package/dist/esm/transactions/instances/simpleTransaction.d.mts +23 -8
  410. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  411. package/dist/esm/transactions/instances/transactionArgument.d.mts +23 -0
  412. package/dist/esm/transactions/instances/transactionPayload.d.mts +72 -26
  413. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  414. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +37 -11
  415. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  416. package/dist/esm/transactions/management/asyncQueue.d.mts +22 -19
  417. package/dist/esm/transactions/management/asyncQueue.mjs +1 -1
  418. package/dist/esm/transactions/management/index.d.mts +2 -2
  419. package/dist/esm/transactions/management/index.mjs +1 -1
  420. package/dist/esm/transactions/management/transactionWorker.d.mts +67 -36
  421. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  422. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +74 -4
  423. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  424. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  425. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  426. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +45 -23
  427. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  428. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +20 -15
  429. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  430. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +101 -30
  431. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  432. package/dist/esm/transactions/typeTag/index.d.mts +244 -3
  433. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  434. package/dist/esm/transactions/typeTag/parser.d.mts +31 -2
  435. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  436. package/dist/esm/transactions/types.d.mts +82 -34
  437. package/dist/esm/types/generated/queries.mjs +1 -1
  438. package/dist/esm/types/generated/types.mjs +1 -1
  439. package/dist/esm/types/index.d.mts +320 -59
  440. package/dist/esm/types/index.mjs +1 -1
  441. package/dist/esm/types/indexer.d.mts +65 -2
  442. package/dist/esm/types/keyless.d.mts +18 -0
  443. package/dist/esm/utils/apiEndpoints.d.mts +3 -0
  444. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  445. package/dist/esm/utils/const.d.mts +2 -4
  446. package/dist/esm/utils/const.mjs +1 -1
  447. package/dist/esm/utils/helpers.d.mts +25 -10
  448. package/dist/esm/utils/helpers.mjs +1 -1
  449. package/dist/esm/utils/index.mjs +1 -1
  450. package/dist/esm/utils/memoize.d.mts +12 -10
  451. package/dist/esm/utils/memoize.mjs +1 -1
  452. package/dist/esm/utils/normalizeBundle.d.mts +11 -5
  453. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  454. package/dist/esm/version.d.mts +1 -1
  455. package/dist/esm/version.mjs +1 -1
  456. package/package.json +3 -2
  457. package/src/account/AbstractKeylessAccount.ts +4 -3
  458. package/src/account/Account.ts +88 -54
  459. package/src/account/Ed25519Account.ts +56 -21
  460. package/src/account/EphemeralKeyPair.ts +50 -15
  461. package/src/account/FederatedKeylessAccount.ts +1 -1
  462. package/src/account/KeylessAccount.ts +37 -1
  463. package/src/account/MultiKeyAccount.ts +56 -35
  464. package/src/account/SingleKeyAccount.ts +60 -28
  465. package/src/api/account.ts +454 -160
  466. package/src/api/ans.ts +367 -120
  467. package/src/api/aptos.ts +38 -5
  468. package/src/api/aptosConfig.ts +102 -14
  469. package/src/api/coin.ts +49 -12
  470. package/src/api/digitalAsset.ts +707 -296
  471. package/src/api/event.ts +128 -25
  472. package/src/api/faucet.ts +44 -7
  473. package/src/api/fungibleAsset.ts +149 -46
  474. package/src/api/general.ts +168 -52
  475. package/src/api/keyless.ts +119 -22
  476. package/src/api/object.ts +49 -5
  477. package/src/api/staking.ts +84 -15
  478. package/src/api/table.ts +117 -37
  479. package/src/api/transaction.ts +438 -107
  480. package/src/api/transactionSubmission/build.ts +98 -12
  481. package/src/api/transactionSubmission/helpers.ts +79 -0
  482. package/src/api/transactionSubmission/management.ts +110 -10
  483. package/src/api/transactionSubmission/sign.ts +96 -2
  484. package/src/api/transactionSubmission/simulate.ts +139 -14
  485. package/src/api/transactionSubmission/submit.ts +103 -12
  486. package/src/api/utils.ts +26 -3
  487. package/src/bcs/deserializer.ts +82 -32
  488. package/src/bcs/serializable/entryFunctionBytes.ts +27 -6
  489. package/src/bcs/serializable/fixedBytes.ts +55 -25
  490. package/src/bcs/serializable/movePrimitives.ts +91 -0
  491. package/src/bcs/serializable/moveStructs.ts +123 -35
  492. package/src/bcs/serializer.ts +131 -84
  493. package/src/cli/localNode.ts +46 -17
  494. package/src/cli/move.ts +135 -137
  495. package/src/client/core.ts +22 -7
  496. package/src/client/get.ts +34 -6
  497. package/src/client/post.ts +63 -6
  498. package/src/client/types.ts +40 -13
  499. package/src/core/account/utils/address.ts +1 -1
  500. package/src/core/accountAddress.ts +63 -50
  501. package/src/core/authenticationKey.ts +47 -20
  502. package/src/core/common.ts +6 -0
  503. package/src/core/crypto/ed25519.ts +76 -25
  504. package/src/core/crypto/ephemeral.ts +37 -21
  505. package/src/core/crypto/federatedKeyless.ts +1 -20
  506. package/src/core/crypto/hdKey.ts +10 -7
  507. package/src/core/crypto/keyless.ts +140 -63
  508. package/src/core/crypto/multiEd25519.ts +44 -5
  509. package/src/core/crypto/multiKey.ts +66 -19
  510. package/src/core/crypto/poseidon.ts +72 -5
  511. package/src/core/crypto/privateKey.ts +9 -5
  512. package/src/core/crypto/proof.ts +3 -12
  513. package/src/core/crypto/publicKey.ts +15 -5
  514. package/src/core/crypto/secp256k1.ts +76 -26
  515. package/src/core/crypto/signature.ts +7 -4
  516. package/src/core/crypto/singleKey.ts +62 -5
  517. package/src/core/hex.ts +27 -28
  518. package/src/internal/account.ts +248 -12
  519. package/src/internal/ans.ts +219 -15
  520. package/src/internal/coin.ts +12 -0
  521. package/src/internal/digitalAsset.ts +344 -3
  522. package/src/internal/event.ts +51 -0
  523. package/src/internal/faucet.ts +14 -0
  524. package/src/internal/fungibleAsset.ts +46 -0
  525. package/src/internal/general.ts +46 -0
  526. package/src/internal/keyless.ts +41 -3
  527. package/src/internal/object.ts +21 -0
  528. package/src/internal/queries/getTableItemsData.graphql +1 -1
  529. package/src/internal/queries/getTableItemsMetadata.graphql +1 -1
  530. package/src/internal/staking.ts +27 -1
  531. package/src/internal/table.ts +32 -0
  532. package/src/internal/transaction.ts +120 -7
  533. package/src/internal/transactionSubmission.ts +86 -30
  534. package/src/transactions/authenticator/account.ts +65 -16
  535. package/src/transactions/authenticator/transaction.ts +52 -19
  536. package/src/transactions/instances/chainId.ts +20 -1
  537. package/src/transactions/instances/identifier.ts +21 -3
  538. package/src/transactions/instances/moduleId.ts +22 -8
  539. package/src/transactions/instances/multiAgentTransaction.ts +26 -10
  540. package/src/transactions/instances/rawTransaction.ts +31 -4
  541. package/src/transactions/instances/rotationProofChallenge.ts +24 -2
  542. package/src/transactions/instances/signedTransaction.ts +28 -6
  543. package/src/transactions/instances/simpleTransaction.ts +26 -11
  544. package/src/transactions/instances/transactionArgument.ts +26 -0
  545. package/src/transactions/instances/transactionPayload.ts +73 -26
  546. package/src/transactions/management/accountSequenceNumber.ts +38 -11
  547. package/src/transactions/management/asyncQueue.ts +22 -19
  548. package/src/transactions/management/transactionWorker.ts +66 -40
  549. package/src/transactions/transactionBuilder/helpers.ts +130 -3
  550. package/src/transactions/transactionBuilder/remoteAbi.ts +71 -30
  551. package/src/transactions/transactionBuilder/signingMessage.ts +19 -14
  552. package/src/transactions/transactionBuilder/transactionBuilder.ts +153 -40
  553. package/src/transactions/typeTag/index.ts +264 -3
  554. package/src/transactions/typeTag/parser.ts +54 -20
  555. package/src/transactions/types.ts +81 -33
  556. package/src/types/index.ts +338 -61
  557. package/src/types/indexer.ts +82 -2
  558. package/src/types/keyless.ts +21 -0
  559. package/src/utils/apiEndpoints.ts +3 -0
  560. package/src/utils/const.ts +2 -4
  561. package/src/utils/helpers.ts +25 -10
  562. package/src/utils/memoize.ts +12 -10
  563. package/src/utils/normalizeBundle.ts +11 -5
  564. package/src/version.ts +1 -1
  565. package/dist/common/chunk-HBPH2AD3.js.map +0 -1
  566. package/dist/esm/Ed25519Account-B1VMJOY2.d.mts +0 -361
  567. package/dist/esm/chunk-25NSCK4Q.mjs.map +0 -1
  568. package/dist/esm/chunk-25TIHDS6.mjs.map +0 -1
  569. package/dist/esm/chunk-2TQIU7CG.mjs.map +0 -1
  570. package/dist/esm/chunk-3MCYLML2.mjs +0 -2
  571. package/dist/esm/chunk-3MCYLML2.mjs.map +0 -1
  572. package/dist/esm/chunk-3YKAGVHZ.mjs.map +0 -1
  573. package/dist/esm/chunk-44GYWUSH.mjs.map +0 -1
  574. package/dist/esm/chunk-46D5QX3G.mjs.map +0 -1
  575. package/dist/esm/chunk-555I4YHP.mjs +0 -2
  576. package/dist/esm/chunk-5655UVIK.mjs.map +0 -1
  577. package/dist/esm/chunk-6EMN3BOV.mjs.map +0 -1
  578. package/dist/esm/chunk-6QGVRNV6.mjs +0 -2
  579. package/dist/esm/chunk-6QGVRNV6.mjs.map +0 -1
  580. package/dist/esm/chunk-6RZZIOGH.mjs.map +0 -1
  581. package/dist/esm/chunk-7V6DEA7G.mjs.map +0 -1
  582. package/dist/esm/chunk-7ZLBJUVZ.mjs.map +0 -1
  583. package/dist/esm/chunk-AFOPNDOJ.mjs.map +0 -1
  584. package/dist/esm/chunk-AH44UPM4.mjs.map +0 -1
  585. package/dist/esm/chunk-B2CXRZL5.mjs.map +0 -1
  586. package/dist/esm/chunk-B5NYEWNM.mjs +0 -2
  587. package/dist/esm/chunk-B5NYEWNM.mjs.map +0 -1
  588. package/dist/esm/chunk-B6M7QBUO.mjs.map +0 -1
  589. package/dist/esm/chunk-BCUSI3N6.mjs.map +0 -1
  590. package/dist/esm/chunk-BD6BJETG.mjs.map +0 -1
  591. package/dist/esm/chunk-BF4ZE37Q.mjs +0 -2
  592. package/dist/esm/chunk-BF4ZE37Q.mjs.map +0 -1
  593. package/dist/esm/chunk-BKEJMQQ6.mjs +0 -2
  594. package/dist/esm/chunk-BKEJMQQ6.mjs.map +0 -1
  595. package/dist/esm/chunk-BRFHAO2Y.mjs.map +0 -1
  596. package/dist/esm/chunk-BSUYPXRD.mjs +0 -2
  597. package/dist/esm/chunk-BSUYPXRD.mjs.map +0 -1
  598. package/dist/esm/chunk-CCMHWJ3Q.mjs +0 -2
  599. package/dist/esm/chunk-CCMHWJ3Q.mjs.map +0 -1
  600. package/dist/esm/chunk-CPPBQDHB.mjs.map +0 -1
  601. package/dist/esm/chunk-CVDR5SJR.mjs.map +0 -1
  602. package/dist/esm/chunk-DAJOX4PL.mjs.map +0 -1
  603. package/dist/esm/chunk-DAXKRXRK.mjs.map +0 -1
  604. package/dist/esm/chunk-DF4WKSTK.mjs +0 -2
  605. package/dist/esm/chunk-DF4WKSTK.mjs.map +0 -1
  606. package/dist/esm/chunk-E37YRKWK.mjs.map +0 -1
  607. package/dist/esm/chunk-ECWOLU5T.mjs.map +0 -1
  608. package/dist/esm/chunk-EV2USF7B.mjs.map +0 -1
  609. package/dist/esm/chunk-EWZ2M5BW.mjs.map +0 -1
  610. package/dist/esm/chunk-EXP5STXZ.mjs.map +0 -1
  611. package/dist/esm/chunk-FRGXKOU5.mjs.map +0 -1
  612. package/dist/esm/chunk-GFGX3QDP.mjs.map +0 -1
  613. package/dist/esm/chunk-GGR3P2TG.mjs +0 -2
  614. package/dist/esm/chunk-GGR3P2TG.mjs.map +0 -1
  615. package/dist/esm/chunk-HAT5S2XX.mjs +0 -2
  616. package/dist/esm/chunk-HAT5S2XX.mjs.map +0 -1
  617. package/dist/esm/chunk-HPZ2S4FE.mjs +0 -2
  618. package/dist/esm/chunk-HPZ2S4FE.mjs.map +0 -1
  619. package/dist/esm/chunk-HSPBA2TZ.mjs.map +0 -1
  620. package/dist/esm/chunk-IMGLHDIA.mjs +0 -2
  621. package/dist/esm/chunk-IMGLHDIA.mjs.map +0 -1
  622. package/dist/esm/chunk-IYQISVDX.mjs.map +0 -1
  623. package/dist/esm/chunk-K2O24YLZ.mjs.map +0 -1
  624. package/dist/esm/chunk-KA6FZNWP.mjs +0 -2
  625. package/dist/esm/chunk-KA6FZNWP.mjs.map +0 -1
  626. package/dist/esm/chunk-KEYAPEAX.mjs.map +0 -1
  627. package/dist/esm/chunk-KXBIA4KR.mjs.map +0 -1
  628. package/dist/esm/chunk-KYSDF3CA.mjs.map +0 -1
  629. package/dist/esm/chunk-L5NY7TMI.mjs.map +0 -1
  630. package/dist/esm/chunk-LDFTE4MM.mjs.map +0 -1
  631. package/dist/esm/chunk-LG3DAAPD.mjs +0 -2
  632. package/dist/esm/chunk-LG3DAAPD.mjs.map +0 -1
  633. package/dist/esm/chunk-LG7RJQ57.mjs.map +0 -1
  634. package/dist/esm/chunk-LGD5KU56.mjs +0 -2
  635. package/dist/esm/chunk-LGD5KU56.mjs.map +0 -1
  636. package/dist/esm/chunk-LR65XHSF.mjs.map +0 -1
  637. package/dist/esm/chunk-LXLISEQ4.mjs.map +0 -1
  638. package/dist/esm/chunk-M2QV232A.mjs +0 -2
  639. package/dist/esm/chunk-M2QV232A.mjs.map +0 -1
  640. package/dist/esm/chunk-MEWFJJJN.mjs +0 -2
  641. package/dist/esm/chunk-MEWFJJJN.mjs.map +0 -1
  642. package/dist/esm/chunk-MO4IZXLK.mjs.map +0 -1
  643. package/dist/esm/chunk-MS4MRLGA.mjs.map +0 -1
  644. package/dist/esm/chunk-N5JNKD5F.mjs.map +0 -1
  645. package/dist/esm/chunk-NH2S6SB2.mjs.map +0 -1
  646. package/dist/esm/chunk-NMD45OTM.mjs.map +0 -1
  647. package/dist/esm/chunk-NNRAQP36.mjs.map +0 -1
  648. package/dist/esm/chunk-OY2IX7HW.mjs.map +0 -1
  649. package/dist/esm/chunk-PKXEB7XP.mjs.map +0 -1
  650. package/dist/esm/chunk-PNXUYOYI.mjs +0 -2
  651. package/dist/esm/chunk-PNXUYOYI.mjs.map +0 -1
  652. package/dist/esm/chunk-PUZ25PTD.mjs.map +0 -1
  653. package/dist/esm/chunk-Q4XR6QOZ.mjs +0 -2
  654. package/dist/esm/chunk-QCUFTD7K.mjs.map +0 -1
  655. package/dist/esm/chunk-QDIKOQRK.mjs +0 -2
  656. package/dist/esm/chunk-QDIKOQRK.mjs.map +0 -1
  657. package/dist/esm/chunk-QIW56MUH.mjs.map +0 -1
  658. package/dist/esm/chunk-QLN2URFX.mjs.map +0 -1
  659. package/dist/esm/chunk-QPP6BX53.mjs.map +0 -1
  660. package/dist/esm/chunk-RNTXQYJQ.mjs.map +0 -1
  661. package/dist/esm/chunk-SAPUZZEU.mjs.map +0 -1
  662. package/dist/esm/chunk-SR24OGHJ.mjs.map +0 -1
  663. package/dist/esm/chunk-SRPI2FFA.mjs.map +0 -1
  664. package/dist/esm/chunk-STGYDB5E.mjs.map +0 -1
  665. package/dist/esm/chunk-SWHLSREF.mjs.map +0 -1
  666. package/dist/esm/chunk-TDGQGILY.mjs.map +0 -1
  667. package/dist/esm/chunk-TL7DR54X.mjs.map +0 -1
  668. package/dist/esm/chunk-TMW2HIXC.mjs.map +0 -1
  669. package/dist/esm/chunk-TS3PYRAT.mjs.map +0 -1
  670. package/dist/esm/chunk-TVFIUUVY.mjs.map +0 -1
  671. package/dist/esm/chunk-U67PFBTL.mjs.map +0 -1
  672. package/dist/esm/chunk-U6Z4FNB7.mjs.map +0 -1
  673. package/dist/esm/chunk-UAL27G6B.mjs.map +0 -1
  674. package/dist/esm/chunk-WP7WF54Q.mjs.map +0 -1
  675. package/dist/esm/chunk-WS4RPKL6.mjs +0 -2
  676. package/dist/esm/chunk-WS4RPKL6.mjs.map +0 -1
  677. package/dist/esm/chunk-WWZ3METZ.mjs.map +0 -1
  678. package/dist/esm/chunk-X4KEZTUQ.mjs.map +0 -1
  679. package/dist/esm/chunk-XH7YKEYR.mjs.map +0 -1
  680. package/dist/esm/chunk-XK3JFCP3.mjs.map +0 -1
  681. package/dist/esm/chunk-XONG5JZ4.mjs.map +0 -1
  682. package/dist/esm/chunk-XXHW3ZT3.mjs.map +0 -1
  683. package/dist/esm/chunk-Y7F2V3R6.mjs +0 -2
  684. package/dist/esm/chunk-Y7F2V3R6.mjs.map +0 -1
  685. package/dist/esm/chunk-YHAPZP5A.mjs.map +0 -1
  686. package/dist/esm/chunk-YJCZU6PR.mjs.map +0 -1
  687. package/dist/esm/chunk-ZGO2SK6F.mjs.map +0 -1
  688. package/dist/esm/publicKey-B3XRNhHO.d.mts +0 -113
  689. /package/dist/esm/{chunk-FVA2OPG4.mjs.map → chunk-KDMSOCZY.mjs.map} +0 -0
  690. /package/dist/esm/{chunk-Q4XR6QOZ.mjs.map → chunk-KIW54KWR.mjs.map} +0 -0
  691. /package/dist/esm/{chunk-G7MWTE2J.mjs.map → chunk-YZ5BCOGI.mjs.map} +0 -0
@@ -4,6 +4,9 @@ export { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsW
4
4
  import './generated/operations.mjs';
5
5
  import './generated/types.mjs';
6
6
 
7
+ /**
8
+ * Different MIME types used for data interchange in transactions and responses.
9
+ */
7
10
  declare enum MimeType {
8
11
  /**
9
12
  * JSON representation, used for transaction submission and accept type JSON output
@@ -20,11 +23,11 @@ declare enum MimeType {
20
23
  BCS_VIEW_FUNCTION = "application/x.aptos.view_function+bcs"
21
24
  }
22
25
  /**
23
- * Hex data as input to a function
26
+ * Hexadecimal data input for functions, supporting both string and Uint8Array formats.
24
27
  */
25
28
  type HexInput = string | Uint8Array;
26
29
  /**
27
- * TypeTag enum as they are represented in Rust
30
+ * Variants of type tags used in the system, encompassing various data types and structures.
28
31
  * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/language_storage.rs#L27}
29
32
  */
30
33
  declare enum TypeTagVariants {
@@ -43,7 +46,7 @@ declare enum TypeTagVariants {
43
46
  Generic = 255
44
47
  }
45
48
  /**
46
- * Script transaction arguments enum as they are represented in Rust
49
+ * Variants of script transaction arguments used in Rust, encompassing various data types for transaction processing.
47
50
  * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/transaction_argument.rs#L11}
48
51
  */
49
52
  declare enum ScriptTransactionArgumentVariants {
@@ -59,7 +62,7 @@ declare enum ScriptTransactionArgumentVariants {
59
62
  Serialized = 9
60
63
  }
61
64
  /**
62
- * Transaction payload enum as they are represented in Rust
65
+ * The payload for various transaction types in the system.
63
66
  * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L478}
64
67
  */
65
68
  declare enum TransactionPayloadVariants {
@@ -68,7 +71,7 @@ declare enum TransactionPayloadVariants {
68
71
  Multisig = 3
69
72
  }
70
73
  /**
71
- * Transaction variants enum as they are represented in Rust
74
+ * Variants of transactions used in the system.
72
75
  * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L440}
73
76
  */
74
77
  declare enum TransactionVariants {
@@ -76,7 +79,7 @@ declare enum TransactionVariants {
76
79
  FeePayerTransaction = 1
77
80
  }
78
81
  /**
79
- * Transaction Authenticator enum as they are represented in Rust
82
+ * Variants of transaction authenticators used in the system.
80
83
  * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L44}
81
84
  */
82
85
  declare enum TransactionAuthenticatorVariant {
@@ -87,7 +90,7 @@ declare enum TransactionAuthenticatorVariant {
87
90
  SingleSender = 4
88
91
  }
89
92
  /**
90
- * Transaction Authenticator enum as they are represented in Rust
93
+ * Variants of account authenticators used in transactions.
91
94
  * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L414}
92
95
  */
93
96
  declare enum AccountAuthenticatorVariant {
@@ -96,26 +99,44 @@ declare enum AccountAuthenticatorVariant {
96
99
  SingleKey = 2,
97
100
  MultiKey = 3
98
101
  }
102
+ /**
103
+ * Variants of public keys used in cryptographic operations.
104
+ */
99
105
  declare enum AnyPublicKeyVariant {
100
106
  Ed25519 = 0,
101
107
  Secp256k1 = 1,
102
108
  Keyless = 3,
103
109
  FederatedKeyless = 4
104
110
  }
111
+ /**
112
+ * Variants of signature types used for cryptographic operations.
113
+ */
105
114
  declare enum AnySignatureVariant {
106
115
  Ed25519 = 0,
107
116
  Secp256k1 = 1,
108
117
  Keyless = 3
109
118
  }
119
+ /**
120
+ * Variants of ephemeral public keys used in cryptographic operations.
121
+ */
110
122
  declare enum EphemeralPublicKeyVariant {
111
123
  Ed25519 = 0
112
124
  }
125
+ /**
126
+ * Variants of ephemeral signatures used for secure communication.
127
+ */
113
128
  declare enum EphemeralSignatureVariant {
114
129
  Ed25519 = 0
115
130
  }
131
+ /**
132
+ * Variants of ephemeral certificates used in secure transactions.
133
+ */
116
134
  declare enum EphemeralCertificateVariant {
117
135
  ZkProof = 0
118
136
  }
137
+ /**
138
+ * Variants of zero-knowledge proofs used in cryptographic operations.
139
+ */
119
140
  declare enum ZkpVariant {
120
141
  Groth16 = 0
121
142
  }
@@ -123,16 +144,32 @@ declare enum ZkpVariant {
123
144
  * BCS types
124
145
  */
125
146
  type Uint8 = number;
147
+ /**
148
+ * A 16-bit unsigned integer.
149
+ */
126
150
  type Uint16 = number;
151
+ /**
152
+ * A 32-bit unsigned integer.
153
+ */
127
154
  type Uint32 = number;
155
+ /**
156
+ * A 64-bit unsigned integer value.
157
+ */
128
158
  type Uint64 = bigint;
159
+ /**
160
+ * A 128-bit unsigned integer used for precise arithmetic operations.
161
+ */
129
162
  type Uint128 = bigint;
163
+ /**
164
+ * A 256-bit unsigned integer used for precise numerical calculations.
165
+ */
130
166
  type Uint256 = bigint;
167
+ /**
168
+ * A number or a bigint value.
169
+ */
131
170
  type AnyNumber = number | bigint;
132
171
  /**
133
- * Set of configuration options that can be provided when initializing the SDK.
134
- * The purpose of these options is to configure various aspects of the SDK's
135
- * behavior and interaction with the Aptos network
172
+ * Configuration options for initializing the SDK, allowing customization of its behavior and interaction with the Aptos network.
136
173
  */
137
174
  type AptosSettings = {
138
175
  readonly network?: Network;
@@ -148,15 +185,19 @@ type AptosSettings = {
148
185
  readonly faucetConfig?: FaucetConfig;
149
186
  };
150
187
  /**
151
- *
152
- * Controls the number of results that are returned and the starting position of those results.
153
- * @param offset parameter specifies the starting position of the query result within the set of data. Default is 0.
154
- * @param limit specifies the maximum number of items or records to return in a query result. Default is 25.
188
+ * Defines the parameters for paginating query results, including the starting position and maximum number of items to return.
189
+ * @param offset Specifies the starting position of the query result. Default is 0.
190
+ * @param limit Specifies the maximum number of items to return. Default is 25.
155
191
  */
156
192
  interface PaginationArgs {
157
193
  offset?: AnyNumber;
158
194
  limit?: number;
159
195
  }
196
+ /**
197
+ * Represents the arguments for specifying a token standard.
198
+ *
199
+ * @param tokenStandard - Optional standard of the token.
200
+ */
160
201
  interface TokenStandardArg {
161
202
  tokenStandard?: TokenStandard;
162
203
  }
@@ -170,43 +211,38 @@ interface WhereArg<T extends {}> {
170
211
  * QUERY TYPES
171
212
  */
172
213
  /**
173
- * A configuration object we can pass with the request to the server.
174
- *
175
- * @param API_KEY - api key generated from developer portal {@link https://developers.aptoslabs.com/manage/api-keys}}
176
- * @param HEADERS - extra headers we want to send with the request
177
- * @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
214
+ * A configuration object for requests to the server, including API key, extra headers, and cookie handling options.
178
215
  */
179
216
  type ClientConfig = ClientHeadersType & {
180
217
  WITH_CREDENTIALS?: boolean;
181
218
  API_KEY?: string;
182
219
  };
183
220
  /**
184
- * A Fullnode only configuration object
185
- *
186
- * @param HEADERS - extra headers we want to send with the request
221
+ * A configuration object for a Fullnode, allowing for the inclusion of extra headers in requests.
187
222
  */
188
223
  type FullNodeConfig = ClientHeadersType;
189
224
  /**
190
- * An Indexer only configuration object
191
- *
192
- * @param HEADERS - extra headers we want to send with the request
225
+ * An Indexer configuration object for sending requests with additional headers.
193
226
  */
194
227
  type IndexerConfig = ClientHeadersType;
195
228
  /**
196
- * A Faucet only configuration object
197
- *
198
- * @param HEADERS - extra headers we want to send with the request
199
- * @param AUTH_TOKEN - an auth token to send with a faucet request
229
+ * A configuration object for a faucet, including optional authentication and headers for requests.
200
230
  */
201
231
  type FaucetConfig = ClientHeadersType & {
202
232
  AUTH_TOKEN?: string;
203
233
  };
204
234
  /**
205
- * General type definition for client HEADERS
235
+ * General type definition for client headers.
206
236
  */
207
237
  type ClientHeadersType = {
208
238
  HEADERS?: Record<string, string | number | boolean>;
209
239
  };
240
+ /**
241
+ * Represents a client for making requests to a service provider.
242
+ *
243
+ * @param Req - The type of the request payload.
244
+ * @param Res - The type of the response payload.
245
+ */
210
246
  interface ClientRequest<Req> {
211
247
  url: string;
212
248
  method: "GET" | "POST";
@@ -227,14 +263,28 @@ interface ClientResponse<Res> {
227
263
  headers?: any;
228
264
  }
229
265
  interface Client {
266
+ /**
267
+ * Sends a request to the specified URL with the given options.
268
+ *
269
+ * @param requestOptions - The options for the request.
270
+ * @param requestOptions.url - The URL to send the request to.
271
+ * @param requestOptions.method - The HTTP method to use, either "GET" or "POST".
272
+ * @param requestOptions.path - An optional path to append to the URL.
273
+ * @param requestOptions.body - The body of the request, applicable for POST requests.
274
+ * @param requestOptions.contentType - The content type of the request body.
275
+ * @param requestOptions.acceptType - The expected content type of the response.
276
+ * @param requestOptions.params - Optional parameters to include in the request.
277
+ * @param requestOptions.originMethod - An optional method to specify the origin of the request.
278
+ * @param requestOptions.overrides - Optional configuration overrides for the request.
279
+ */
230
280
  provider<Req, Res>(requestOptions: ClientRequest<Req>): Promise<ClientResponse<Res>>;
231
281
  }
232
282
  /**
233
283
  * The API request type
234
284
  *
235
- * @param url - the url to make the request to, i.e https://fullnode.devnet.aptoslabs.com/v1
285
+ * @param url - the url to make the request to, i.e. https://fullnode.devnet.aptoslabs.com/v1
236
286
  * @param method - the request method "GET" | "POST"
237
- * @param endpoint (optional) - the endpoint to make the request to, i.e transactions
287
+ * @param endpoint (optional) - the endpoint to make the request to, i.e. transactions
238
288
  * @param body (optional) - the body of the request
239
289
  * @param contentType (optional) - the content type to set the `content-type` header to,
240
290
  * by default is set to `application/json`
@@ -254,7 +304,7 @@ type AptosRequest = {
254
304
  overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
255
305
  };
256
306
  /**
257
- * Specifies ledger version of transactions. By default latest version will be used
307
+ * The ledger version of transactions, defaulting to the latest version if not specified.
258
308
  */
259
309
  type LedgerVersionArg = {
260
310
  ledgerVersion?: AnyNumber;
@@ -263,7 +313,7 @@ type LedgerVersionArg = {
263
313
  * RESPONSE TYPES
264
314
  */
265
315
  /**
266
- * Type holding the outputs of the estimate gas API
316
+ * The output of the estimate gas API, including the deprioritized estimate for the gas unit price.
267
317
  */
268
318
  type GasEstimation = {
269
319
  /**
@@ -283,10 +333,16 @@ type MoveResource<T = {}> = {
283
333
  type: MoveStructId;
284
334
  data: T;
285
335
  };
336
+ /**
337
+ * The data associated with an account, including its sequence number.
338
+ */
286
339
  type AccountData = {
287
340
  sequence_number: string;
288
341
  authentication_key: string;
289
342
  };
343
+ /**
344
+ * A Move module containing an address.
345
+ */
290
346
  type MoveModuleBytecode = {
291
347
  bytecode: string;
292
348
  abi?: MoveModule;
@@ -294,6 +350,9 @@ type MoveModuleBytecode = {
294
350
  /**
295
351
  * TRANSACTION TYPES
296
352
  */
353
+ /**
354
+ * Different types of transaction responses that can occur in the system.
355
+ */
297
356
  declare enum TransactionResponseType {
298
357
  Pending = "pending_transaction",
299
358
  User = "user_transaction",
@@ -303,15 +362,66 @@ declare enum TransactionResponseType {
303
362
  Validator = "validator_transaction",
304
363
  BlockEpilogue = "block_epilogue_transaction"
305
364
  }
365
+ /**
366
+ * The response for a transaction, which can be either pending or committed.
367
+ */
306
368
  type TransactionResponse = PendingTransactionResponse | CommittedTransactionResponse;
369
+ /**
370
+ * The response for a committed transaction, which can be one of several transaction types.
371
+ */
307
372
  type CommittedTransactionResponse = UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse | ValidatorTransactionResponse | BlockEpilogueTransactionResponse;
373
+ /**
374
+ * Determine if the given transaction response is currently pending.
375
+ *
376
+ * @param response - The transaction response to evaluate.
377
+ * @returns A boolean indicating whether the transaction is pending.
378
+ */
308
379
  declare function isPendingTransactionResponse(response: TransactionResponse): response is PendingTransactionResponse;
380
+ /**
381
+ * Determines if the given transaction response is a user transaction.
382
+ *
383
+ * @param response - The transaction response to evaluate.
384
+ * @returns A boolean indicating whether the transaction is of type User.
385
+ */
309
386
  declare function isUserTransactionResponse(response: TransactionResponse): response is UserTransactionResponse;
387
+ /**
388
+ * Determines if the given transaction response is a Genesis transaction.
389
+ *
390
+ * @param response - The transaction response to evaluate.
391
+ * @returns A boolean indicating whether the transaction is a Genesis transaction.
392
+ */
310
393
  declare function isGenesisTransactionResponse(response: TransactionResponse): response is GenesisTransactionResponse;
394
+ /**
395
+ * Determine if the given transaction response is of type BlockMetadata.
396
+ *
397
+ * @param response - The transaction response to evaluate.
398
+ * @returns A boolean indicating whether the response is a BlockMetadata transaction.
399
+ */
311
400
  declare function isBlockMetadataTransactionResponse(response: TransactionResponse): response is BlockMetadataTransactionResponse;
401
+ /**
402
+ * Determines if the provided transaction response is a state checkpoint transaction.
403
+ *
404
+ * @param response - The transaction response to evaluate.
405
+ * @returns A boolean indicating whether the transaction response is of type StateCheckpoint.
406
+ */
312
407
  declare function isStateCheckpointTransactionResponse(response: TransactionResponse): response is StateCheckpointTransactionResponse;
408
+ /**
409
+ * Determine if the given transaction response is of type Validator.
410
+ *
411
+ * @param response - The transaction response to evaluate.
412
+ * @returns A boolean indicating whether the transaction response is a Validator type.
413
+ */
313
414
  declare function isValidatorTransactionResponse(response: TransactionResponse): response is ValidatorTransactionResponse;
415
+ /**
416
+ * Determines if the given transaction response is of the type Block Epilogue.
417
+ *
418
+ * @param response - The transaction response to evaluate.
419
+ * @returns A boolean indicating whether the response is a Block Epilogue transaction.
420
+ */
314
421
  declare function isBlockEpilogueTransactionResponse(response: TransactionResponse): response is BlockEpilogueTransactionResponse;
422
+ /**
423
+ * The response for a pending transaction, indicating that the transaction is still being processed.
424
+ */
315
425
  type PendingTransactionResponse = {
316
426
  type: TransactionResponseType.Pending;
317
427
  hash: string;
@@ -323,6 +433,9 @@ type PendingTransactionResponse = {
323
433
  payload: TransactionPayloadResponse;
324
434
  signature?: TransactionSignature;
325
435
  };
436
+ /**
437
+ * The response structure for a user transaction.
438
+ */
326
439
  type UserTransactionResponse = {
327
440
  type: TransactionResponseType.User;
328
441
  version: string;
@@ -357,6 +470,9 @@ type UserTransactionResponse = {
357
470
  events: Array<Event>;
358
471
  timestamp: string;
359
472
  };
473
+ /**
474
+ * The response for a genesis transaction, indicating the type of transaction.
475
+ */
360
476
  type GenesisTransactionResponse = {
361
477
  type: TransactionResponseType.Genesis;
362
478
  version: string;
@@ -384,6 +500,9 @@ type GenesisTransactionResponse = {
384
500
  */
385
501
  events: Array<Event>;
386
502
  };
503
+ /**
504
+ * The structure representing a blockchain block with its height.
505
+ */
387
506
  type BlockMetadataTransactionResponse = {
388
507
  type: TransactionResponseType.BlockMetadata;
389
508
  version: string;
@@ -423,6 +542,9 @@ type BlockMetadataTransactionResponse = {
423
542
  failed_proposer_indices: Array<number>;
424
543
  timestamp: string;
425
544
  };
545
+ /**
546
+ * The response for a state checkpoint transaction, indicating the type of transaction.
547
+ */
426
548
  type StateCheckpointTransactionResponse = {
427
549
  type: TransactionResponseType.StateCheckpoint;
428
550
  version: string;
@@ -446,6 +568,9 @@ type StateCheckpointTransactionResponse = {
446
568
  changes: Array<WriteSetChange>;
447
569
  timestamp: string;
448
570
  };
571
+ /**
572
+ * The response for a validator transaction, indicating the type of transaction.
573
+ */
449
574
  type ValidatorTransactionResponse = {
450
575
  type: TransactionResponseType.Validator;
451
576
  version: string;
@@ -474,7 +599,7 @@ type ValidatorTransactionResponse = {
474
599
  timestamp: string;
475
600
  };
476
601
  /**
477
- * BlockEndInfo describes the gas state of the block
602
+ * Describes the gas state of the block, indicating whether the block gas limit has been reached.
478
603
  */
479
604
  type BlockEndInfo = {
480
605
  block_gas_limit_reached: boolean;
@@ -483,8 +608,7 @@ type BlockEndInfo = {
483
608
  block_approx_output_size: number;
484
609
  };
485
610
  /**
486
- * BlockEpilogueTransactionResponse is a transaction that is executed at the end of a block keeping track of data from
487
- * the whole block
611
+ * A transaction executed at the end of a block that tracks data from the entire block.
488
612
  */
489
613
  type BlockEpilogueTransactionResponse = {
490
614
  type: TransactionResponseType.BlockEpilogue;
@@ -513,7 +637,13 @@ type BlockEpilogueTransactionResponse = {
513
637
  /**
514
638
  * WRITESET CHANGE TYPES
515
639
  */
640
+ /**
641
+ * A union type that encompasses both script and direct write sets for data operations.
642
+ */
516
643
  type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
644
+ /**
645
+ * The structure for a module deletion change in a write set.
646
+ */
517
647
  type WriteSetChangeDeleteModule = {
518
648
  type: string;
519
649
  address: string;
@@ -523,12 +653,18 @@ type WriteSetChangeDeleteModule = {
523
653
  state_key_hash: string;
524
654
  module: MoveModuleId;
525
655
  };
656
+ /**
657
+ * The payload for a resource deletion in a write set change.
658
+ */
526
659
  type WriteSetChangeDeleteResource = {
527
660
  type: string;
528
661
  address: string;
529
662
  state_key_hash: string;
530
663
  resource: string;
531
664
  };
665
+ /**
666
+ * The payload for a write set change that deletes a table item.
667
+ */
532
668
  type WriteSetChangeDeleteTableItem = {
533
669
  type: string;
534
670
  state_key_hash: string;
@@ -536,18 +672,27 @@ type WriteSetChangeDeleteTableItem = {
536
672
  key: string;
537
673
  data?: DeletedTableData;
538
674
  };
675
+ /**
676
+ * The structure for a write module change in a write set.
677
+ */
539
678
  type WriteSetChangeWriteModule = {
540
679
  type: string;
541
680
  address: string;
542
681
  state_key_hash: string;
543
682
  data: MoveModuleBytecode;
544
683
  };
684
+ /**
685
+ * The resource associated with a write set change, identified by its type.
686
+ */
545
687
  type WriteSetChangeWriteResource = {
546
688
  type: string;
547
689
  address: string;
548
690
  state_key_hash: string;
549
691
  data: MoveResource;
550
692
  };
693
+ /**
694
+ * The structure for a write operation on a table in a write set change.
695
+ */
551
696
  type WriteSetChangeWriteTableItem = {
552
697
  type: string;
553
698
  state_key_hash: string;
@@ -556,6 +701,9 @@ type WriteSetChangeWriteTableItem = {
556
701
  value: string;
557
702
  data?: DecodedTableData;
558
703
  };
704
+ /**
705
+ * The decoded data for a table, including its key in JSON format.
706
+ */
559
707
  type DecodedTableData = {
560
708
  /**
561
709
  * Key of table in JSON
@@ -575,7 +723,7 @@ type DecodedTableData = {
575
723
  value_type: string;
576
724
  };
577
725
  /**
578
- * Deleted table data
726
+ * Data for a deleted table entry.
579
727
  */
580
728
  type DeletedTableData = {
581
729
  /**
@@ -587,7 +735,13 @@ type DeletedTableData = {
587
735
  */
588
736
  key_type: string;
589
737
  };
738
+ /**
739
+ * The payload for a transaction response, which can be an entry function, script, or multisig payload.
740
+ */
590
741
  type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
742
+ /**
743
+ * The response payload for an entry function, containing the type of the entry.
744
+ */
591
745
  type EntryFunctionPayloadResponse = {
592
746
  type: string;
593
747
  function: MoveFunctionId;
@@ -600,6 +754,9 @@ type EntryFunctionPayloadResponse = {
600
754
  */
601
755
  arguments: Array<any>;
602
756
  };
757
+ /**
758
+ * The payload for a script response, containing the type of the script.
759
+ */
603
760
  type ScriptPayloadResponse = {
604
761
  type: string;
605
762
  code: MoveScriptBytecode;
@@ -612,41 +769,88 @@ type ScriptPayloadResponse = {
612
769
  */
613
770
  arguments: Array<any>;
614
771
  };
772
+ /**
773
+ * The response payload for a multisig transaction, containing the type of the transaction.
774
+ */
615
775
  type MultisigPayloadResponse = {
616
776
  type: string;
617
777
  multisig_address: string;
618
778
  transaction_payload?: EntryFunctionPayloadResponse;
619
779
  };
780
+ /**
781
+ * The payload for the genesis block containing the type of the payload.
782
+ */
620
783
  type GenesisPayload = {
621
784
  type: string;
622
785
  write_set: WriteSet;
623
786
  };
624
787
  /**
625
- * Move script bytecode
788
+ * The bytecode for a Move script.
626
789
  */
627
790
  type MoveScriptBytecode = {
628
791
  bytecode: string;
629
792
  abi?: MoveFunction;
630
793
  };
631
794
  /**
632
- * These are the JSON representations of transaction signatures returned from the node API.
795
+ * JSON representations of transaction signatures returned from the node API.
633
796
  */
634
797
  type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
798
+ /**
799
+ * Determine if the provided signature is an Ed25519 signature.
800
+ * This function checks for the presence of the "signature" property
801
+ * and verifies that its value is "ed25519_signature".
802
+ *
803
+ * @param signature - The transaction signature to be checked.
804
+ * @returns A boolean indicating whether the signature is an Ed25519 signature.
805
+ */
635
806
  declare function isEd25519Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
807
+ /**
808
+ * Determine if the provided signature is a valid secp256k1 ECDSA signature.
809
+ *
810
+ * @param signature - The transaction signature to validate.
811
+ * @returns A boolean indicating whether the signature is a secp256k1 ECDSA signature.
812
+ */
636
813
  declare function isSecp256k1Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
814
+ /**
815
+ * Determine if the provided transaction signature is a multi-agent signature.
816
+ *
817
+ * @param signature - The transaction signature to evaluate.
818
+ * @returns A boolean indicating whether the signature is a multi-agent signature.
819
+ */
637
820
  declare function isMultiAgentSignature(signature: TransactionSignature): signature is TransactionMultiAgentSignature;
821
+ /**
822
+ * Determine if the provided signature is a fee payer signature.
823
+ *
824
+ * @param signature - The transaction signature to evaluate.
825
+ * @returns A boolean indicating whether the signature is a fee payer signature.
826
+ */
638
827
  declare function isFeePayerSignature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
828
+ /**
829
+ * Determine if the provided signature is of type "multi_ed25519_signature".
830
+ *
831
+ * @param signature - The transaction signature to check.
832
+ * @returns A boolean indicating whether the signature is a multi-ed25519 signature.
833
+ */
639
834
  declare function isMultiEd25519Signature(signature: TransactionSignature): signature is TransactionMultiEd25519Signature;
835
+ /**
836
+ * The signature for a transaction using the Ed25519 algorithm.
837
+ */
640
838
  type TransactionEd25519Signature = {
641
839
  type: string;
642
840
  public_key: string;
643
841
  signature: "ed25519_signature";
644
842
  };
843
+ /**
844
+ * The structure for a Secp256k1 signature in a transaction.
845
+ */
645
846
  type TransactionSecp256k1Signature = {
646
847
  type: string;
647
848
  public_key: string;
648
849
  signature: "secp256k1_ecdsa_signature";
649
850
  };
851
+ /**
852
+ * The structure for a multi-signature transaction using Ed25519.
853
+ */
650
854
  type TransactionMultiEd25519Signature = {
651
855
  type: "multi_ed25519_signature";
652
856
  /**
@@ -663,6 +867,9 @@ type TransactionMultiEd25519Signature = {
663
867
  threshold: number;
664
868
  bitmap: string;
665
869
  };
870
+ /**
871
+ * The structure for a multi-agent signature in a transaction.
872
+ */
666
873
  type TransactionMultiAgentSignature = {
667
874
  type: "multi_agent_signature";
668
875
  sender: AccountSignature;
@@ -675,6 +882,9 @@ type TransactionMultiAgentSignature = {
675
882
  */
676
883
  secondary_signers: Array<AccountSignature>;
677
884
  };
885
+ /**
886
+ * The signature of the fee payer in a transaction.
887
+ */
678
888
  type TransactionFeePayerSignature = {
679
889
  type: "fee_payer_signature";
680
890
  sender: AccountSignature;
@@ -690,20 +900,32 @@ type TransactionFeePayerSignature = {
690
900
  fee_payer_signer: AccountSignature;
691
901
  };
692
902
  /**
693
- * The union of all single account signatures.
903
+ * The union of all single account signatures, including Ed25519, Secp256k1, and MultiEd25519 signatures.
694
904
  */
695
905
  type AccountSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature;
696
906
  type WriteSet = ScriptWriteSet | DirectWriteSet;
907
+ /**
908
+ * The set of properties for writing scripts, including the type of script.
909
+ */
697
910
  type ScriptWriteSet = {
698
911
  type: string;
699
912
  execute_as: string;
700
913
  script: ScriptPayloadResponse;
701
914
  };
915
+ /**
916
+ * The set of direct write operations, identified by a type string.
917
+ */
702
918
  type DirectWriteSet = {
703
919
  type: string;
704
920
  changes: Array<WriteSetChange>;
705
921
  events: Array<Event>;
706
922
  };
923
+ /**
924
+ * The structure for an event's unique identifier, including its creation number.
925
+ */
926
+ /**
927
+ * The structure for an event, identified by a unique GUID.
928
+ */
707
929
  type EventGuid = {
708
930
  creation_number: string;
709
931
  account_address: string;
@@ -718,23 +940,54 @@ type Event = {
718
940
  data: any;
719
941
  };
720
942
  /**
721
- * Map of Move types to local TypeScript types
943
+ * A number representing a Move uint8 type.
722
944
  */
723
945
  type MoveUint8Type = number;
946
+ /**
947
+ * A 16-bit unsigned integer used in the Move programming language.
948
+ */
724
949
  type MoveUint16Type = number;
950
+ /**
951
+ * A 32-bit unsigned integer type used in Move programming.
952
+ */
725
953
  type MoveUint32Type = number;
954
+ /**
955
+ * A string representation of a 64-bit unsigned integer used in Move programming.
956
+ */
726
957
  type MoveUint64Type = string;
958
+ /**
959
+ * A string representing a 128-bit unsigned integer in the Move programming language.
960
+ */
727
961
  type MoveUint128Type = string;
962
+ /**
963
+ * A string representation of a 256-bit unsigned integer used in Move programming.
964
+ */
728
965
  type MoveUint256Type = string;
966
+ /**
967
+ * A string representing a Move address.
968
+ */
729
969
  type MoveAddressType = string;
970
+ /**
971
+ * The type for identifying objects to be moved within the system.
972
+ */
730
973
  type MoveObjectType = string;
974
+ /**
975
+ * The type for move options, which can be a MoveType, null, or undefined.
976
+ */
731
977
  type MoveOptionType = MoveType | null | undefined;
732
978
  /**
733
- * This is the format for a fully qualified struct, resource, or entry function in Move.
979
+ * A structure representing a move with a name.
734
980
  */
735
981
  type MoveStructId = `${string}::${string}::${string}`;
982
+ /**
983
+ * The move function containing its name. Same as MoveStructId since it reads weird to take a StructId for a Function.
984
+ */
736
985
  type MoveFunctionId = MoveStructId;
737
986
  type MoveStructType = {};
987
+ /**
988
+ * A union type that encompasses various data types used in Move, including primitive types, address types, object types, and
989
+ * arrays of MoveType.
990
+ */
738
991
  type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
739
992
  /**
740
993
  * Possible Move values acceptable by move functions (entry, view)
@@ -761,12 +1014,12 @@ type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Ty
761
1014
  */
762
1015
  type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
763
1016
  /**
764
- * Move module id is a string representation of Move module.
765
- * Module name is case-sensitive.
1017
+ * A string representation of a Move module, formatted as `module_name::function_name`.
1018
+ * Module names are case-sensitive.
766
1019
  */
767
1020
  type MoveModuleId = `${string}::${string}`;
768
1021
  /**
769
- * Move function visibility
1022
+ * Specifies the visibility levels for move functions, controlling access permissions.
770
1023
  */
771
1024
  declare enum MoveFunctionVisibility {
772
1025
  PRIVATE = "private",
@@ -774,7 +1027,7 @@ declare enum MoveFunctionVisibility {
774
1027
  FRIEND = "friend"
775
1028
  }
776
1029
  /**
777
- * Move function ability
1030
+ * Abilities related to moving items within the system.
778
1031
  */
779
1032
  declare enum MoveAbility {
780
1033
  STORE = "store",
@@ -783,13 +1036,13 @@ declare enum MoveAbility {
783
1036
  COPY = "copy"
784
1037
  }
785
1038
  /**
786
- * Move abilities tied to the generic type param and associated with the function that uses it
1039
+ * Move abilities associated with the generic type parameter of a function.
787
1040
  */
788
1041
  type MoveFunctionGenericTypeParam = {
789
1042
  constraints: Array<MoveAbility>;
790
1043
  };
791
1044
  /**
792
- * Move struct field
1045
+ * A field in a Move struct, identified by its name.
793
1046
  */
794
1047
  type MoveStructField = {
795
1048
  name: string;
@@ -869,10 +1122,16 @@ type MoveFunction = {
869
1122
  */
870
1123
  return: Array<string>;
871
1124
  };
1125
+ /**
1126
+ * Roles that can be assigned within the system, indicating different levels of access and functionality.
1127
+ */
872
1128
  declare enum RoleType {
873
1129
  VALIDATOR = "validator",
874
1130
  FULL_NODE = "full_node"
875
1131
  }
1132
+ /**
1133
+ * Information about the current blockchain ledger, including its chain ID.
1134
+ */
876
1135
  type LedgerInfo = {
877
1136
  /**
878
1137
  * Chain ID of the current chain
@@ -906,7 +1165,7 @@ type Block = {
906
1165
  transactions?: Array<TransactionResponse>;
907
1166
  };
908
1167
  /**
909
- * Table Item request for the GetTableItem API
1168
+ * The request payload for the GetTableItem API.
910
1169
  */
911
1170
  type TableItemRequest = {
912
1171
  key_type: MoveValue;
@@ -917,11 +1176,12 @@ type TableItemRequest = {
917
1176
  key: any;
918
1177
  };
919
1178
  /**
920
- * A list of Authentication Key schemes that are supported by Aptos.
921
- *
922
- * They are combinations of signing schemes and derive schemes.
1179
+ * A list of supported Authentication Key schemes in Aptos, consisting of combinations of signing schemes and derive schemes.
923
1180
  */
924
1181
  type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
1182
+ /**
1183
+ * Different schemes for signing keys used in cryptographic operations.
1184
+ */
925
1185
  declare enum SigningScheme {
926
1186
  /**
927
1187
  * For Ed25519PublicKey
@@ -937,6 +1197,9 @@ declare enum SigningScheme {
937
1197
  SingleKey = 2,
938
1198
  MultiKey = 3
939
1199
  }
1200
+ /**
1201
+ * Specifies the signing schemes available for cryptographic operations.
1202
+ */
940
1203
  declare enum SigningSchemeInput {
941
1204
  /**
942
1205
  * For Ed25519PublicKey
@@ -948,7 +1211,7 @@ declare enum SigningSchemeInput {
948
1211
  Secp256k1Ecdsa = 2
949
1212
  }
950
1213
  /**
951
- * Scheme used for deriving account addresses from other data
1214
+ * Specifies the schemes for deriving account addresses from various data sources.
952
1215
  */
953
1216
  declare enum DeriveScheme {
954
1217
  /**
@@ -973,7 +1236,7 @@ declare enum DeriveScheme {
973
1236
  DeriveResourceAccountAddress = 255
974
1237
  }
975
1238
  /**
976
- * Option properties to pass for waitForTransaction() function
1239
+ * Options for configuring the behavior of the waitForTransaction() function.
977
1240
  */
978
1241
  type WaitForTransactionOptions = {
979
1242
  timeoutSecs?: number;
@@ -981,16 +1244,14 @@ type WaitForTransactionOptions = {
981
1244
  waitForIndexer?: boolean;
982
1245
  };
983
1246
  /**
984
- * Input type to generate an account using Single Signer
985
- * Ed25519 or Legacy Ed25519
1247
+ * Input type to generate an account using the Ed25519 signing scheme.
986
1248
  */
987
1249
  type GenerateAccountWithEd25519 = {
988
1250
  scheme: SigningSchemeInput.Ed25519;
989
1251
  legacy: boolean;
990
1252
  };
991
1253
  /**
992
- * Input type to generate an account using Single Signer
993
- * Secp256k1
1254
+ * Input type to generate an account with a Single Signer using Secp256k1.
994
1255
  */
995
1256
  type GenerateAccountWithSingleSignerSecp256k1Key = {
996
1257
  scheme: SigningSchemeInput.Secp256k1Ecdsa;