@aptos-labs/ts-sdk 1.31.0 → 1.32.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 (541) hide show
  1. package/README.md +1 -1
  2. package/dist/common/{accountAddress-DnSqjhSl.d.ts → accountAddress-6RqI8Aam.d.ts} +144 -63
  3. package/dist/common/chunk-F43XVDYJ.js +2 -0
  4. package/dist/common/chunk-F43XVDYJ.js.map +1 -0
  5. package/dist/common/cli/index.d.ts +1 -1
  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 +542 -111
  9. package/dist/common/index.js +36 -29
  10. package/dist/common/index.js.map +1 -1
  11. package/dist/esm/{Ed25519Account-DpH9qAcg.d.mts → Ed25519Account-B3xHXAQe.d.mts} +2 -2
  12. package/dist/esm/account/AbstractKeylessAccount.d.mts +86 -14
  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/Ed25519Account.d.mts +5 -4
  17. package/dist/esm/account/Ed25519Account.mjs +1 -1
  18. package/dist/esm/account/EphemeralKeyPair.d.mts +4 -3
  19. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  20. package/dist/esm/account/FederatedKeylessAccount.d.mts +57 -8
  21. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  22. package/dist/esm/account/KeylessAccount.d.mts +29 -11
  23. package/dist/esm/account/KeylessAccount.mjs +1 -1
  24. package/dist/esm/account/MultiKeyAccount.d.mts +23 -10
  25. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  26. package/dist/esm/account/SingleKeyAccount.d.mts +5 -4
  27. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  28. package/dist/esm/account/index.d.mts +6 -5
  29. package/dist/esm/account/index.mjs +1 -1
  30. package/dist/esm/api/account.d.mts +6 -5
  31. package/dist/esm/api/account.mjs +1 -1
  32. package/dist/esm/api/ans.d.mts +4 -3
  33. package/dist/esm/api/ans.mjs +1 -1
  34. package/dist/esm/api/aptos.d.mts +6 -4
  35. package/dist/esm/api/aptos.mjs +1 -1
  36. package/dist/esm/api/aptosConfig.d.mts +2 -1
  37. package/dist/esm/api/coin.d.mts +4 -3
  38. package/dist/esm/api/coin.mjs +1 -1
  39. package/dist/esm/api/digitalAsset.d.mts +6 -5
  40. package/dist/esm/api/digitalAsset.mjs +1 -1
  41. package/dist/esm/api/event.d.mts +4 -3
  42. package/dist/esm/api/event.mjs +1 -1
  43. package/dist/esm/api/faucet.d.mts +3 -2
  44. package/dist/esm/api/faucet.mjs +1 -1
  45. package/dist/esm/api/fungibleAsset.d.mts +6 -5
  46. package/dist/esm/api/fungibleAsset.mjs +1 -1
  47. package/dist/esm/api/general.d.mts +4 -3
  48. package/dist/esm/api/general.mjs +1 -1
  49. package/dist/esm/api/index.d.mts +6 -4
  50. package/dist/esm/api/index.mjs +1 -1
  51. package/dist/esm/api/keyless.d.mts +7 -6
  52. package/dist/esm/api/keyless.mjs +1 -1
  53. package/dist/esm/api/object.d.mts +4 -3
  54. package/dist/esm/api/object.mjs +1 -1
  55. package/dist/esm/api/staking.d.mts +4 -3
  56. package/dist/esm/api/staking.mjs +1 -1
  57. package/dist/esm/api/table.d.mts +4 -3
  58. package/dist/esm/api/table.mjs +1 -1
  59. package/dist/esm/api/transaction.d.mts +5 -3
  60. package/dist/esm/api/transaction.mjs +1 -1
  61. package/dist/esm/api/transactionSubmission/build.d.mts +69 -3
  62. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  63. package/dist/esm/api/transactionSubmission/management.d.mts +5 -4
  64. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  65. package/dist/esm/api/transactionSubmission/sign.d.mts +5 -4
  66. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  67. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  68. package/dist/esm/api/transactionSubmission/simulate.d.mts +4 -3
  69. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  70. package/dist/esm/api/transactionSubmission/submit.d.mts +4 -3
  71. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  72. package/dist/esm/api/utils.d.mts +3 -2
  73. package/dist/esm/api/utils.mjs +1 -1
  74. package/dist/esm/bcs/consts.d.mts +3 -2
  75. package/dist/esm/bcs/deserializer.d.mts +36 -27
  76. package/dist/esm/bcs/deserializer.mjs +1 -1
  77. package/dist/esm/bcs/index.d.mts +3 -2
  78. package/dist/esm/bcs/index.mjs +1 -1
  79. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +3 -2
  80. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  81. package/dist/esm/bcs/serializable/fixedBytes.d.mts +3 -2
  82. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  83. package/dist/esm/bcs/serializable/movePrimitives.d.mts +3 -2
  84. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  85. package/dist/esm/bcs/serializable/moveStructs.d.mts +12 -12
  86. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  87. package/dist/esm/bcs/serializer.d.mts +14 -13
  88. package/dist/esm/bcs/serializer.mjs +1 -1
  89. package/dist/esm/{chunk-4ZK3JNQT.mjs → chunk-2NHQQQZK.mjs} +2 -2
  90. package/dist/esm/{chunk-MSHZ4FWB.mjs → chunk-2QBCTW67.mjs} +2 -2
  91. package/dist/esm/{chunk-MSHZ4FWB.mjs.map → chunk-2QBCTW67.mjs.map} +1 -1
  92. package/dist/esm/{chunk-F2RY4YQ7.mjs → chunk-37Y54PJ5.mjs} +2 -2
  93. package/dist/esm/chunk-3DQVGPFE.mjs +2 -0
  94. package/dist/esm/chunk-3DQVGPFE.mjs.map +1 -0
  95. package/dist/esm/{chunk-OAEDFM7T.mjs → chunk-3XCYCFYI.mjs} +2 -2
  96. package/dist/esm/{chunk-6FLHGOKP.mjs → chunk-42H7WETG.mjs} +2 -2
  97. package/dist/esm/{chunk-AZ6LVQEG.mjs → chunk-46L6BAJG.mjs} +2 -2
  98. package/dist/esm/{chunk-KW4FVBDD.mjs → chunk-4DNCQM3S.mjs} +2 -2
  99. package/dist/esm/chunk-4O5XDQDO.mjs +2 -0
  100. package/dist/esm/chunk-4PBXTMN3.mjs +2 -0
  101. package/dist/esm/chunk-4PBXTMN3.mjs.map +1 -0
  102. package/dist/esm/chunk-4YEOOZ2N.mjs +4 -0
  103. package/dist/esm/{chunk-HM5HITUC.mjs.map → chunk-4YEOOZ2N.mjs.map} +1 -1
  104. package/dist/esm/{chunk-5N6KJ7KS.mjs → chunk-5AKSORBJ.mjs} +2 -2
  105. package/dist/esm/chunk-5B3SMBXQ.mjs +2 -0
  106. package/dist/esm/{chunk-UCRROMZN.mjs → chunk-5NJWJXSS.mjs} +2 -2
  107. package/dist/esm/{chunk-CL6EEMSL.mjs → chunk-6K4TOFCO.mjs} +2 -2
  108. package/dist/esm/{chunk-RNJHULIT.mjs → chunk-6LLGRGCN.mjs} +2 -2
  109. package/dist/esm/chunk-6LLGRGCN.mjs.map +1 -0
  110. package/dist/esm/{chunk-IAVI3H4V.mjs → chunk-6PJH53CK.mjs} +2 -2
  111. package/dist/esm/{chunk-PCLU4KLY.mjs → chunk-6ZOVTYLJ.mjs} +2 -2
  112. package/dist/esm/chunk-7ECCT6PK.mjs +1 -0
  113. package/dist/esm/chunk-7WXDXBXK.mjs +2 -0
  114. package/dist/esm/{chunk-WV2VJQDS.mjs.map → chunk-7WXDXBXK.mjs.map} +1 -1
  115. package/dist/esm/{chunk-RAJTNQNL.mjs → chunk-AAATWCJT.mjs} +2 -2
  116. package/dist/esm/{chunk-NODYW7DM.mjs → chunk-ACVIE7IE.mjs} +2 -2
  117. package/dist/esm/chunk-AHWZA3GD.mjs +2 -0
  118. package/dist/esm/chunk-AHWZA3GD.mjs.map +1 -0
  119. package/dist/esm/{chunk-QQIVWB6G.mjs → chunk-AJ5JHBAE.mjs} +2 -2
  120. package/dist/esm/{chunk-QQIVWB6G.mjs.map → chunk-AJ5JHBAE.mjs.map} +1 -1
  121. package/dist/esm/{chunk-PRZ7AIGA.mjs → chunk-AKIO3OIT.mjs} +2 -2
  122. package/dist/esm/chunk-AMCJQIOT.mjs +2 -0
  123. package/dist/esm/{chunk-2CGJLPHP.mjs.map → chunk-AMCJQIOT.mjs.map} +1 -1
  124. package/dist/esm/{chunk-KRVLR3L4.mjs → chunk-AOROYJ74.mjs} +2 -2
  125. package/dist/esm/chunk-AVPQOD67.mjs +2 -0
  126. package/dist/esm/chunk-AVPQOD67.mjs.map +1 -0
  127. package/dist/esm/chunk-AVZYJAXR.mjs +2 -0
  128. package/dist/esm/chunk-AVZYJAXR.mjs.map +1 -0
  129. package/dist/esm/{chunk-6DMDYBV6.mjs → chunk-BLLHTGAP.mjs} +2 -2
  130. package/dist/esm/{chunk-JGNMNCQB.mjs → chunk-BRV3RLKW.mjs} +2 -2
  131. package/dist/esm/{chunk-7JK7UG4E.mjs → chunk-CA3Q2X6B.mjs} +2 -2
  132. package/dist/esm/chunk-D52UKPQF.mjs +2 -0
  133. package/dist/esm/chunk-D52UKPQF.mjs.map +1 -0
  134. package/dist/esm/{chunk-SOLWFAUY.mjs → chunk-DDVOBEJA.mjs} +2 -2
  135. package/dist/esm/chunk-DDVOBEJA.mjs.map +1 -0
  136. package/dist/esm/{chunk-RNRNGJDA.mjs → chunk-DP3YPGIK.mjs} +2 -2
  137. package/dist/esm/{chunk-KYJU5PWF.mjs → chunk-DSKAMBBL.mjs} +2 -2
  138. package/dist/esm/{chunk-L5J3V3HW.mjs → chunk-E2NYQVP3.mjs} +2 -2
  139. package/dist/esm/chunk-EEB7EZFO.mjs +2 -0
  140. package/dist/esm/chunk-EEB7EZFO.mjs.map +1 -0
  141. package/dist/esm/{chunk-4JXB6V5O.mjs → chunk-F2AIWA7L.mjs} +2 -2
  142. package/dist/esm/chunk-F45G3GP3.mjs +7 -0
  143. package/dist/esm/chunk-F45G3GP3.mjs.map +1 -0
  144. package/dist/esm/{chunk-WSZCPSV4.mjs → chunk-FXUI3SSD.mjs} +2 -2
  145. package/dist/esm/chunk-G2GN4LH5.mjs +2 -0
  146. package/dist/esm/chunk-G2GN4LH5.mjs.map +1 -0
  147. package/dist/esm/chunk-GBVRCWCD.mjs +2 -0
  148. package/dist/esm/chunk-GBVRCWCD.mjs.map +1 -0
  149. package/dist/esm/chunk-H457BI3I.mjs +2 -0
  150. package/dist/esm/chunk-H457BI3I.mjs.map +1 -0
  151. package/dist/esm/{chunk-A2AEFKXS.mjs → chunk-HEHVWRMO.mjs} +2 -2
  152. package/dist/esm/{chunk-UGL2GPGK.mjs → chunk-HFWFDS6Y.mjs} +2 -2
  153. package/dist/esm/{chunk-OXM4BVAY.mjs → chunk-HXXELLHN.mjs} +2 -2
  154. package/dist/esm/{chunk-RBJNSUSU.mjs → chunk-IBMZYDAR.mjs} +2 -2
  155. package/dist/esm/{chunk-AT2ZGTXQ.mjs → chunk-IDNDUJOK.mjs} +2 -2
  156. package/dist/esm/{chunk-3H5DGQKX.mjs → chunk-II654QZU.mjs} +2 -2
  157. package/dist/esm/{chunk-JNRMHDRA.mjs → chunk-JDNI5VIJ.mjs} +2 -2
  158. package/dist/esm/{chunk-73GCGRFW.mjs → chunk-JJUINAQE.mjs} +2 -2
  159. package/dist/esm/{chunk-VYMRIKUV.mjs → chunk-JLD7DLKM.mjs} +2 -2
  160. package/dist/esm/chunk-JNO7KPMG.mjs +4 -0
  161. package/dist/esm/chunk-JNO7KPMG.mjs.map +1 -0
  162. package/dist/esm/chunk-K4TJRYGQ.mjs +2 -0
  163. package/dist/esm/chunk-K4TJRYGQ.mjs.map +1 -0
  164. package/dist/esm/{chunk-XFJD6QIP.mjs → chunk-KA5FX53Q.mjs} +2 -2
  165. package/dist/esm/{chunk-2GEIHUHT.mjs → chunk-KT3DT5GV.mjs} +2 -2
  166. package/dist/esm/chunk-KT3DT5GV.mjs.map +1 -0
  167. package/dist/esm/chunk-KUL55M2H.mjs +2 -0
  168. package/dist/esm/chunk-KUL55M2H.mjs.map +1 -0
  169. package/dist/esm/{chunk-ZPIMARUG.mjs → chunk-L2QVUMBV.mjs} +2 -2
  170. package/dist/esm/chunk-L2SDI7PI.mjs +2 -0
  171. package/dist/esm/chunk-L2SDI7PI.mjs.map +1 -0
  172. package/dist/esm/chunk-L56DQ4N3.mjs +2 -0
  173. package/dist/esm/chunk-L56DQ4N3.mjs.map +1 -0
  174. package/dist/esm/{chunk-TPJLAYW6.mjs → chunk-LAAFLCDM.mjs} +2 -2
  175. package/dist/esm/{chunk-AGBA3Y7A.mjs → chunk-LGTOOAQI.mjs} +2 -2
  176. package/dist/esm/chunk-MHN6XY4Z.mjs +2 -0
  177. package/dist/esm/{chunk-JVTDP4KV.mjs → chunk-MOGPSSTD.mjs} +2 -2
  178. package/dist/esm/{chunk-WZCKSN2U.mjs → chunk-NARS3JDH.mjs} +2 -2
  179. package/dist/esm/{chunk-YZ5BCOGI.mjs → chunk-NHKAQRJB.mjs} +2 -2
  180. package/dist/esm/{chunk-PHP47DI4.mjs → chunk-OIOGOW6I.mjs} +1 -1
  181. package/dist/esm/{chunk-PHP47DI4.mjs.map → chunk-OIOGOW6I.mjs.map} +1 -1
  182. package/dist/esm/{chunk-T5BCTWGK.mjs → chunk-OJBMR5CT.mjs} +2 -2
  183. package/dist/esm/chunk-OJBMR5CT.mjs.map +1 -0
  184. package/dist/esm/{chunk-LDZPO76C.mjs → chunk-OKE3FXIP.mjs} +2 -2
  185. package/dist/esm/chunk-ONFKJ57C.mjs +2 -0
  186. package/dist/esm/chunk-ONFKJ57C.mjs.map +1 -0
  187. package/dist/esm/{chunk-ZINOJTLU.mjs → chunk-OPO5EYF7.mjs} +2 -2
  188. package/dist/esm/{chunk-BVVHGSWC.mjs → chunk-PW3ISXPN.mjs} +2 -2
  189. package/dist/esm/{chunk-CC7VOPYH.mjs → chunk-QQM47PHZ.mjs} +2 -2
  190. package/dist/esm/{chunk-EUGLLGYW.mjs → chunk-SBCLBDCP.mjs} +2 -2
  191. package/dist/esm/chunk-SPRNSFUV.mjs +2 -0
  192. package/dist/esm/chunk-SPRNSFUV.mjs.map +1 -0
  193. package/dist/esm/{chunk-EE7GDBA5.mjs → chunk-SU2WB34N.mjs} +2 -2
  194. package/dist/esm/{chunk-OTY3NO7Q.mjs → chunk-T6ADNZE5.mjs} +2 -2
  195. package/dist/esm/{chunk-IECDO22V.mjs → chunk-TM7OZT3W.mjs} +2 -2
  196. package/dist/esm/chunk-TM7OZT3W.mjs.map +1 -0
  197. package/dist/esm/chunk-UGTIALNW.mjs +2 -0
  198. package/dist/esm/chunk-UIRAXHDH.mjs +1 -0
  199. package/dist/esm/chunk-UZTJWOLS.mjs +2 -0
  200. package/dist/esm/chunk-V4FKFCBL.mjs +2 -0
  201. package/dist/esm/chunk-V4FKFCBL.mjs.map +1 -0
  202. package/dist/esm/{chunk-ZPQUCT22.mjs → chunk-VCY3JGZM.mjs} +2 -2
  203. package/dist/esm/{chunk-XOCRDV2V.mjs → chunk-VQZMI3EZ.mjs} +2 -2
  204. package/dist/esm/chunk-WGIYSLH6.mjs +2 -0
  205. package/dist/esm/chunk-WGIYSLH6.mjs.map +1 -0
  206. package/dist/esm/{chunk-2652SPOM.mjs → chunk-WKNX43KN.mjs} +2 -2
  207. package/dist/esm/chunk-WKNX43KN.mjs.map +1 -0
  208. package/dist/esm/chunk-WQF3IOXC.mjs +2 -0
  209. package/dist/esm/chunk-WQF3IOXC.mjs.map +1 -0
  210. package/dist/esm/{chunk-IFXUWUP2.mjs → chunk-WSFHH3BK.mjs} +2 -2
  211. package/dist/esm/{chunk-4LKLOUMG.mjs → chunk-X3JPX7T6.mjs} +2 -2
  212. package/dist/esm/{chunk-22ZSW5EN.mjs → chunk-XKOSS5KC.mjs} +2 -2
  213. package/dist/esm/{chunk-BG2TZI3H.mjs → chunk-XT5T5LAP.mjs} +2 -2
  214. package/dist/esm/chunk-XUP6VABV.mjs +2 -0
  215. package/dist/esm/chunk-XUP6VABV.mjs.map +1 -0
  216. package/dist/esm/{chunk-XQ7ONNII.mjs → chunk-YNT7JHMS.mjs} +2 -2
  217. package/dist/esm/{chunk-BOWPP6YG.mjs → chunk-YPBNYKOD.mjs} +2 -2
  218. package/dist/esm/{chunk-MK2QAHXC.mjs → chunk-YZ3YPLEU.mjs} +2 -2
  219. package/dist/esm/{chunk-OZN3OOJV.mjs → chunk-ZMBXHMVQ.mjs} +2 -2
  220. package/dist/esm/{chunk-XFY4O2S3.mjs → chunk-ZRWZIAF5.mjs} +2 -2
  221. package/dist/esm/cli/index.d.mts +3 -2
  222. package/dist/esm/cli/index.mjs +1 -1
  223. package/dist/esm/cli/localNode.mjs +1 -1
  224. package/dist/esm/cli/move.d.mts +2 -1
  225. package/dist/esm/client/core.d.mts +2 -2
  226. package/dist/esm/client/core.mjs +1 -1
  227. package/dist/esm/client/get.d.mts +2 -2
  228. package/dist/esm/client/get.mjs +1 -1
  229. package/dist/esm/client/index.d.mts +3 -3
  230. package/dist/esm/client/index.mjs +1 -1
  231. package/dist/esm/client/post.d.mts +2 -2
  232. package/dist/esm/client/post.mjs +1 -1
  233. package/dist/esm/core/account/index.d.mts +3 -2
  234. package/dist/esm/core/account/index.mjs +1 -1
  235. package/dist/esm/core/account/utils/address.d.mts +3 -2
  236. package/dist/esm/core/account/utils/address.mjs +1 -1
  237. package/dist/esm/core/account/utils/index.d.mts +3 -2
  238. package/dist/esm/core/account/utils/index.mjs +1 -1
  239. package/dist/esm/core/accountAddress.d.mts +20 -10
  240. package/dist/esm/core/accountAddress.mjs +1 -1
  241. package/dist/esm/core/authenticationKey.d.mts +4 -3
  242. package/dist/esm/core/authenticationKey.mjs +1 -1
  243. package/dist/esm/core/crypto/ed25519.d.mts +27 -12
  244. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  245. package/dist/esm/core/crypto/ephemeral.d.mts +4 -3
  246. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  247. package/dist/esm/core/crypto/federatedKeyless.d.mts +5 -4
  248. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  249. package/dist/esm/core/crypto/hdKey.d.mts +0 -1
  250. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  251. package/dist/esm/core/crypto/index.d.mts +5 -4
  252. package/dist/esm/core/crypto/index.mjs +1 -1
  253. package/dist/esm/core/crypto/keyless.d.mts +73 -11
  254. package/dist/esm/core/crypto/keyless.mjs +1 -1
  255. package/dist/esm/core/crypto/multiEd25519.d.mts +4 -3
  256. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  257. package/dist/esm/core/crypto/multiKey.d.mts +4 -3
  258. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  259. package/dist/esm/core/crypto/privateKey.d.mts +38 -10
  260. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  261. package/dist/esm/core/crypto/proof.d.mts +3 -2
  262. package/dist/esm/core/crypto/proof.mjs +1 -1
  263. package/dist/esm/core/crypto/publicKey.d.mts +4 -3
  264. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  265. package/dist/esm/core/crypto/secp256k1.d.mts +24 -9
  266. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  267. package/dist/esm/core/crypto/signature.d.mts +3 -2
  268. package/dist/esm/core/crypto/signature.mjs +1 -1
  269. package/dist/esm/core/crypto/singleKey.d.mts +4 -3
  270. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  271. package/dist/esm/core/crypto/utils.d.mts +3 -2
  272. package/dist/esm/core/crypto/utils.mjs +1 -1
  273. package/dist/esm/core/hex.d.mts +40 -3
  274. package/dist/esm/core/hex.mjs +1 -1
  275. package/dist/esm/core/index.d.mts +6 -5
  276. package/dist/esm/core/index.mjs +1 -1
  277. package/dist/esm/errors/index.d.mts +123 -0
  278. package/dist/esm/errors/index.mjs +2 -0
  279. package/dist/esm/index.d.mts +13 -11
  280. package/dist/esm/index.mjs +1 -1
  281. package/dist/esm/internal/account.d.mts +5 -4
  282. package/dist/esm/internal/account.mjs +1 -1
  283. package/dist/esm/internal/ans.d.mts +5 -4
  284. package/dist/esm/internal/ans.mjs +1 -1
  285. package/dist/esm/internal/coin.d.mts +3 -2
  286. package/dist/esm/internal/coin.mjs +1 -1
  287. package/dist/esm/internal/digitalAsset.d.mts +5 -4
  288. package/dist/esm/internal/digitalAsset.mjs +1 -1
  289. package/dist/esm/internal/event.d.mts +3 -2
  290. package/dist/esm/internal/event.mjs +1 -1
  291. package/dist/esm/internal/faucet.d.mts +2 -1
  292. package/dist/esm/internal/faucet.mjs +1 -1
  293. package/dist/esm/internal/fungibleAsset.d.mts +5 -4
  294. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  295. package/dist/esm/internal/general.d.mts +3 -2
  296. package/dist/esm/internal/general.mjs +1 -1
  297. package/dist/esm/internal/keyless.d.mts +10 -5
  298. package/dist/esm/internal/keyless.mjs +1 -1
  299. package/dist/esm/internal/object.d.mts +3 -2
  300. package/dist/esm/internal/object.mjs +1 -1
  301. package/dist/esm/internal/staking.d.mts +2 -1
  302. package/dist/esm/internal/staking.mjs +1 -1
  303. package/dist/esm/internal/table.d.mts +3 -2
  304. package/dist/esm/internal/table.mjs +1 -1
  305. package/dist/esm/internal/transaction.d.mts +2 -1
  306. package/dist/esm/internal/transaction.mjs +1 -1
  307. package/dist/esm/internal/transactionSubmission.d.mts +4 -3
  308. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  309. package/dist/esm/internal/view.d.mts +4 -3
  310. package/dist/esm/internal/view.mjs +1 -1
  311. package/dist/esm/{publicKey-_tPa99ea.d.mts → publicKey-BVXX1nVl.d.mts} +2 -2
  312. package/dist/esm/transactions/authenticator/account.d.mts +4 -3
  313. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  314. package/dist/esm/transactions/authenticator/index.d.mts +4 -3
  315. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  316. package/dist/esm/transactions/authenticator/transaction.d.mts +10 -4
  317. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  318. package/dist/esm/transactions/index.d.mts +7 -5
  319. package/dist/esm/transactions/index.mjs +1 -1
  320. package/dist/esm/transactions/instances/chainId.d.mts +3 -2
  321. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  322. package/dist/esm/transactions/instances/identifier.d.mts +3 -2
  323. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  324. package/dist/esm/transactions/instances/index.d.mts +4 -3
  325. package/dist/esm/transactions/instances/index.mjs +1 -1
  326. package/dist/esm/transactions/instances/moduleId.d.mts +3 -2
  327. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  328. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +3 -2
  329. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  330. package/dist/esm/transactions/instances/rawTransaction.d.mts +3 -2
  331. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  332. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +4 -3
  333. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  334. package/dist/esm/transactions/instances/signedTransaction.d.mts +4 -3
  335. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  336. package/dist/esm/transactions/instances/simpleTransaction.d.mts +3 -2
  337. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  338. package/dist/esm/transactions/instances/transactionArgument.d.mts +3 -2
  339. package/dist/esm/transactions/instances/transactionPayload.d.mts +3 -2
  340. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  341. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +5 -4
  342. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  343. package/dist/esm/transactions/management/index.d.mts +5 -4
  344. package/dist/esm/transactions/management/index.mjs +1 -1
  345. package/dist/esm/transactions/management/transactionWorker.d.mts +5 -4
  346. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  347. package/dist/esm/transactions/script-composer/index.d.mts +44 -0
  348. package/dist/esm/transactions/script-composer/index.mjs +2 -0
  349. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -2
  350. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  351. package/dist/esm/transactions/transactionBuilder/index.d.mts +5 -4
  352. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  353. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +26 -5
  354. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  355. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +4 -3
  356. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  357. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +4 -3
  358. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  359. package/dist/esm/transactions/typeTag/index.d.mts +3 -2
  360. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  361. package/dist/esm/transactions/typeTag/parser.d.mts +3 -2
  362. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  363. package/dist/esm/transactions/types.d.mts +12 -3
  364. package/dist/esm/types/index.d.mts +4 -1260
  365. package/dist/esm/types/index.mjs +1 -1
  366. package/dist/esm/types/keyless.d.mts +22 -1
  367. package/dist/esm/types/types.d.mts +1290 -0
  368. package/dist/esm/types/types.mjs +2 -0
  369. package/dist/esm/types/types.mjs.map +1 -0
  370. package/dist/esm/utils/helpers.d.mts +11 -3
  371. package/dist/esm/utils/helpers.mjs +1 -1
  372. package/dist/esm/utils/index.d.mts +3 -2
  373. package/dist/esm/utils/index.mjs +1 -1
  374. package/dist/esm/utils/normalizeBundle.d.mts +3 -2
  375. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  376. package/dist/esm/version.d.mts +1 -1
  377. package/dist/esm/version.mjs +1 -1
  378. package/package.json +2 -1
  379. package/src/account/AbstractKeylessAccount.ts +203 -10
  380. package/src/account/FederatedKeylessAccount.ts +83 -35
  381. package/src/account/KeylessAccount.ts +44 -37
  382. package/src/account/MultiKeyAccount.ts +18 -5
  383. package/src/api/keyless.ts +2 -2
  384. package/src/api/transactionSubmission/build.ts +82 -1
  385. package/src/bcs/deserializer.ts +53 -30
  386. package/src/bcs/serializable/moveStructs.ts +16 -17
  387. package/src/bcs/serializer.ts +22 -12
  388. package/src/client/core.ts +2 -2
  389. package/src/client/get.ts +1 -2
  390. package/src/client/index.ts +0 -1
  391. package/src/client/post.ts +1 -2
  392. package/src/core/accountAddress.ts +36 -9
  393. package/src/core/crypto/ed25519.ts +34 -14
  394. package/src/core/crypto/hdKey.ts +0 -1
  395. package/src/core/crypto/keyless.ts +245 -38
  396. package/src/core/crypto/privateKey.ts +81 -5
  397. package/src/core/crypto/secp256k1.ts +31 -11
  398. package/src/core/hex.ts +47 -0
  399. package/src/errors/index.ts +406 -0
  400. package/src/index.ts +1 -0
  401. package/src/internal/account.ts +6 -6
  402. package/src/internal/ans.ts +2 -1
  403. package/src/internal/keyless.ts +46 -18
  404. package/src/internal/transaction.ts +2 -1
  405. package/src/internal/transactionSubmission.ts +36 -18
  406. package/src/transactions/authenticator/transaction.ts +20 -0
  407. package/src/transactions/index.ts +1 -0
  408. package/src/transactions/script-composer/index.ts +76 -0
  409. package/src/transactions/transactionBuilder/remoteAbi.ts +55 -1
  410. package/src/transactions/types.ts +11 -0
  411. package/src/types/index.ts +2 -1483
  412. package/src/types/keyless.ts +19 -0
  413. package/src/types/types.ts +1512 -0
  414. package/src/utils/helpers.ts +10 -0
  415. package/src/version.ts +1 -1
  416. package/dist/common/chunk-7IYTZDXV.js +0 -2
  417. package/dist/common/chunk-7IYTZDXV.js.map +0 -1
  418. package/dist/esm/chunk-2652SPOM.mjs.map +0 -1
  419. package/dist/esm/chunk-2CGJLPHP.mjs +0 -2
  420. package/dist/esm/chunk-2GEIHUHT.mjs.map +0 -1
  421. package/dist/esm/chunk-4CDDWSKZ.mjs +0 -2
  422. package/dist/esm/chunk-4OV7QU2U.mjs +0 -2
  423. package/dist/esm/chunk-4VU2ABLU.mjs +0 -2
  424. package/dist/esm/chunk-4VU2ABLU.mjs.map +0 -1
  425. package/dist/esm/chunk-5S3Z7MT4.mjs +0 -2
  426. package/dist/esm/chunk-5S3Z7MT4.mjs.map +0 -1
  427. package/dist/esm/chunk-5SGSPCOY.mjs +0 -2
  428. package/dist/esm/chunk-5SGSPCOY.mjs.map +0 -1
  429. package/dist/esm/chunk-7XS45O6M.mjs +0 -2
  430. package/dist/esm/chunk-7XS45O6M.mjs.map +0 -1
  431. package/dist/esm/chunk-BAGUHYFD.mjs +0 -2
  432. package/dist/esm/chunk-BAGUHYFD.mjs.map +0 -1
  433. package/dist/esm/chunk-CDQGPCHU.mjs +0 -2
  434. package/dist/esm/chunk-CDQGPCHU.mjs.map +0 -1
  435. package/dist/esm/chunk-DMSHPWA5.mjs +0 -2
  436. package/dist/esm/chunk-DMSHPWA5.mjs.map +0 -1
  437. package/dist/esm/chunk-FTZGP6XW.mjs +0 -2
  438. package/dist/esm/chunk-FTZGP6XW.mjs.map +0 -1
  439. package/dist/esm/chunk-GLATLXF6.mjs +0 -2
  440. package/dist/esm/chunk-GLATLXF6.mjs.map +0 -1
  441. package/dist/esm/chunk-GQABU3RQ.mjs +0 -2
  442. package/dist/esm/chunk-GQABU3RQ.mjs.map +0 -1
  443. package/dist/esm/chunk-HM5HITUC.mjs +0 -4
  444. package/dist/esm/chunk-I5OYNCZS.mjs +0 -1
  445. package/dist/esm/chunk-IBLZ6MZU.mjs +0 -2
  446. package/dist/esm/chunk-IECDO22V.mjs.map +0 -1
  447. package/dist/esm/chunk-JN36BNWA.mjs +0 -2
  448. package/dist/esm/chunk-JN36BNWA.mjs.map +0 -1
  449. package/dist/esm/chunk-KFNDDPOW.mjs +0 -2
  450. package/dist/esm/chunk-KFNDDPOW.mjs.map +0 -1
  451. package/dist/esm/chunk-KIW54KWR.mjs +0 -2
  452. package/dist/esm/chunk-KM6UXNC7.mjs +0 -2
  453. package/dist/esm/chunk-KM6UXNC7.mjs.map +0 -1
  454. package/dist/esm/chunk-KUX6GQ2E.mjs +0 -1
  455. package/dist/esm/chunk-LEKBJ2EG.mjs +0 -2
  456. package/dist/esm/chunk-LEKBJ2EG.mjs.map +0 -1
  457. package/dist/esm/chunk-M22UGFQ5.mjs +0 -2
  458. package/dist/esm/chunk-M22UGFQ5.mjs.map +0 -1
  459. package/dist/esm/chunk-N2FKVZ4D.mjs +0 -1
  460. package/dist/esm/chunk-N47FTRYO.mjs +0 -2
  461. package/dist/esm/chunk-N47FTRYO.mjs.map +0 -1
  462. package/dist/esm/chunk-ONBFUPEC.mjs +0 -2
  463. package/dist/esm/chunk-P3J54CQG.mjs +0 -2
  464. package/dist/esm/chunk-P3J54CQG.mjs.map +0 -1
  465. package/dist/esm/chunk-RNJHULIT.mjs.map +0 -1
  466. package/dist/esm/chunk-SGQFWWLQ.mjs +0 -2
  467. package/dist/esm/chunk-SGQFWWLQ.mjs.map +0 -1
  468. package/dist/esm/chunk-SOLWFAUY.mjs.map +0 -1
  469. package/dist/esm/chunk-T5BCTWGK.mjs.map +0 -1
  470. package/dist/esm/chunk-WV2VJQDS.mjs +0 -2
  471. package/dist/esm/chunk-Y267I7DC.mjs +0 -2
  472. package/dist/esm/chunk-Y267I7DC.mjs.map +0 -1
  473. package/dist/esm/client/types.d.mts +0 -66
  474. package/dist/esm/client/types.mjs +0 -2
  475. package/src/client/types.ts +0 -138
  476. /package/dist/esm/{chunk-4ZK3JNQT.mjs.map → chunk-2NHQQQZK.mjs.map} +0 -0
  477. /package/dist/esm/{chunk-F2RY4YQ7.mjs.map → chunk-37Y54PJ5.mjs.map} +0 -0
  478. /package/dist/esm/{chunk-OAEDFM7T.mjs.map → chunk-3XCYCFYI.mjs.map} +0 -0
  479. /package/dist/esm/{chunk-6FLHGOKP.mjs.map → chunk-42H7WETG.mjs.map} +0 -0
  480. /package/dist/esm/{chunk-AZ6LVQEG.mjs.map → chunk-46L6BAJG.mjs.map} +0 -0
  481. /package/dist/esm/{chunk-KW4FVBDD.mjs.map → chunk-4DNCQM3S.mjs.map} +0 -0
  482. /package/dist/esm/{chunk-IBLZ6MZU.mjs.map → chunk-4O5XDQDO.mjs.map} +0 -0
  483. /package/dist/esm/{chunk-5N6KJ7KS.mjs.map → chunk-5AKSORBJ.mjs.map} +0 -0
  484. /package/dist/esm/{chunk-KIW54KWR.mjs.map → chunk-5B3SMBXQ.mjs.map} +0 -0
  485. /package/dist/esm/{chunk-UCRROMZN.mjs.map → chunk-5NJWJXSS.mjs.map} +0 -0
  486. /package/dist/esm/{chunk-CL6EEMSL.mjs.map → chunk-6K4TOFCO.mjs.map} +0 -0
  487. /package/dist/esm/{chunk-IAVI3H4V.mjs.map → chunk-6PJH53CK.mjs.map} +0 -0
  488. /package/dist/esm/{chunk-PCLU4KLY.mjs.map → chunk-6ZOVTYLJ.mjs.map} +0 -0
  489. /package/dist/esm/{chunk-I5OYNCZS.mjs.map → chunk-7ECCT6PK.mjs.map} +0 -0
  490. /package/dist/esm/{chunk-RAJTNQNL.mjs.map → chunk-AAATWCJT.mjs.map} +0 -0
  491. /package/dist/esm/{chunk-NODYW7DM.mjs.map → chunk-ACVIE7IE.mjs.map} +0 -0
  492. /package/dist/esm/{chunk-PRZ7AIGA.mjs.map → chunk-AKIO3OIT.mjs.map} +0 -0
  493. /package/dist/esm/{chunk-KRVLR3L4.mjs.map → chunk-AOROYJ74.mjs.map} +0 -0
  494. /package/dist/esm/{chunk-6DMDYBV6.mjs.map → chunk-BLLHTGAP.mjs.map} +0 -0
  495. /package/dist/esm/{chunk-JGNMNCQB.mjs.map → chunk-BRV3RLKW.mjs.map} +0 -0
  496. /package/dist/esm/{chunk-7JK7UG4E.mjs.map → chunk-CA3Q2X6B.mjs.map} +0 -0
  497. /package/dist/esm/{chunk-RNRNGJDA.mjs.map → chunk-DP3YPGIK.mjs.map} +0 -0
  498. /package/dist/esm/{chunk-KYJU5PWF.mjs.map → chunk-DSKAMBBL.mjs.map} +0 -0
  499. /package/dist/esm/{chunk-L5J3V3HW.mjs.map → chunk-E2NYQVP3.mjs.map} +0 -0
  500. /package/dist/esm/{chunk-4JXB6V5O.mjs.map → chunk-F2AIWA7L.mjs.map} +0 -0
  501. /package/dist/esm/{chunk-WSZCPSV4.mjs.map → chunk-FXUI3SSD.mjs.map} +0 -0
  502. /package/dist/esm/{chunk-A2AEFKXS.mjs.map → chunk-HEHVWRMO.mjs.map} +0 -0
  503. /package/dist/esm/{chunk-UGL2GPGK.mjs.map → chunk-HFWFDS6Y.mjs.map} +0 -0
  504. /package/dist/esm/{chunk-OXM4BVAY.mjs.map → chunk-HXXELLHN.mjs.map} +0 -0
  505. /package/dist/esm/{chunk-RBJNSUSU.mjs.map → chunk-IBMZYDAR.mjs.map} +0 -0
  506. /package/dist/esm/{chunk-AT2ZGTXQ.mjs.map → chunk-IDNDUJOK.mjs.map} +0 -0
  507. /package/dist/esm/{chunk-3H5DGQKX.mjs.map → chunk-II654QZU.mjs.map} +0 -0
  508. /package/dist/esm/{chunk-JNRMHDRA.mjs.map → chunk-JDNI5VIJ.mjs.map} +0 -0
  509. /package/dist/esm/{chunk-73GCGRFW.mjs.map → chunk-JJUINAQE.mjs.map} +0 -0
  510. /package/dist/esm/{chunk-VYMRIKUV.mjs.map → chunk-JLD7DLKM.mjs.map} +0 -0
  511. /package/dist/esm/{chunk-XFJD6QIP.mjs.map → chunk-KA5FX53Q.mjs.map} +0 -0
  512. /package/dist/esm/{chunk-ZPIMARUG.mjs.map → chunk-L2QVUMBV.mjs.map} +0 -0
  513. /package/dist/esm/{chunk-TPJLAYW6.mjs.map → chunk-LAAFLCDM.mjs.map} +0 -0
  514. /package/dist/esm/{chunk-AGBA3Y7A.mjs.map → chunk-LGTOOAQI.mjs.map} +0 -0
  515. /package/dist/esm/{chunk-4OV7QU2U.mjs.map → chunk-MHN6XY4Z.mjs.map} +0 -0
  516. /package/dist/esm/{chunk-JVTDP4KV.mjs.map → chunk-MOGPSSTD.mjs.map} +0 -0
  517. /package/dist/esm/{chunk-WZCKSN2U.mjs.map → chunk-NARS3JDH.mjs.map} +0 -0
  518. /package/dist/esm/{chunk-YZ5BCOGI.mjs.map → chunk-NHKAQRJB.mjs.map} +0 -0
  519. /package/dist/esm/{chunk-LDZPO76C.mjs.map → chunk-OKE3FXIP.mjs.map} +0 -0
  520. /package/dist/esm/{chunk-ZINOJTLU.mjs.map → chunk-OPO5EYF7.mjs.map} +0 -0
  521. /package/dist/esm/{chunk-BVVHGSWC.mjs.map → chunk-PW3ISXPN.mjs.map} +0 -0
  522. /package/dist/esm/{chunk-CC7VOPYH.mjs.map → chunk-QQM47PHZ.mjs.map} +0 -0
  523. /package/dist/esm/{chunk-EUGLLGYW.mjs.map → chunk-SBCLBDCP.mjs.map} +0 -0
  524. /package/dist/esm/{chunk-EE7GDBA5.mjs.map → chunk-SU2WB34N.mjs.map} +0 -0
  525. /package/dist/esm/{chunk-OTY3NO7Q.mjs.map → chunk-T6ADNZE5.mjs.map} +0 -0
  526. /package/dist/esm/{chunk-ONBFUPEC.mjs.map → chunk-UGTIALNW.mjs.map} +0 -0
  527. /package/dist/esm/{chunk-KUX6GQ2E.mjs.map → chunk-UIRAXHDH.mjs.map} +0 -0
  528. /package/dist/esm/{chunk-4CDDWSKZ.mjs.map → chunk-UZTJWOLS.mjs.map} +0 -0
  529. /package/dist/esm/{chunk-ZPQUCT22.mjs.map → chunk-VCY3JGZM.mjs.map} +0 -0
  530. /package/dist/esm/{chunk-XOCRDV2V.mjs.map → chunk-VQZMI3EZ.mjs.map} +0 -0
  531. /package/dist/esm/{chunk-IFXUWUP2.mjs.map → chunk-WSFHH3BK.mjs.map} +0 -0
  532. /package/dist/esm/{chunk-4LKLOUMG.mjs.map → chunk-X3JPX7T6.mjs.map} +0 -0
  533. /package/dist/esm/{chunk-22ZSW5EN.mjs.map → chunk-XKOSS5KC.mjs.map} +0 -0
  534. /package/dist/esm/{chunk-BG2TZI3H.mjs.map → chunk-XT5T5LAP.mjs.map} +0 -0
  535. /package/dist/esm/{chunk-XQ7ONNII.mjs.map → chunk-YNT7JHMS.mjs.map} +0 -0
  536. /package/dist/esm/{chunk-BOWPP6YG.mjs.map → chunk-YPBNYKOD.mjs.map} +0 -0
  537. /package/dist/esm/{chunk-MK2QAHXC.mjs.map → chunk-YZ3YPLEU.mjs.map} +0 -0
  538. /package/dist/esm/{chunk-OZN3OOJV.mjs.map → chunk-ZMBXHMVQ.mjs.map} +0 -0
  539. /package/dist/esm/{chunk-XFY4O2S3.mjs.map → chunk-ZRWZIAF5.mjs.map} +0 -0
  540. /package/dist/esm/{chunk-N2FKVZ4D.mjs.map → errors/index.mjs.map} +0 -0
  541. /package/dist/esm/{client/types.mjs.map → transactions/script-composer/index.mjs.map} +0 -0
@@ -0,0 +1,1290 @@
1
+ import { TokenStandard, OrderBy } from './indexer.mjs';
2
+ import { Network } from '../utils/apiEndpoints.mjs';
3
+ import '@wgb5445/aptos-intent-npm';
4
+ import './generated/operations.mjs';
5
+ import './generated/types.mjs';
6
+
7
+ /**
8
+ * Different MIME types used for data interchange in transactions and responses.
9
+ */
10
+ declare enum MimeType {
11
+ /**
12
+ * JSON representation, used for transaction submission and accept type JSON output
13
+ */
14
+ JSON = "application/json",
15
+ /**
16
+ * BCS representation, used for accept type BCS output
17
+ */
18
+ BCS = "application/x-bcs",
19
+ /**
20
+ * BCS representation, used for transaction submission in BCS input
21
+ */
22
+ BCS_SIGNED_TRANSACTION = "application/x.aptos.signed_transaction+bcs",
23
+ BCS_VIEW_FUNCTION = "application/x.aptos.view_function+bcs"
24
+ }
25
+ /**
26
+ * Hexadecimal data input for functions, supporting both string and Uint8Array formats.
27
+ */
28
+ type HexInput = string | Uint8Array;
29
+ /**
30
+ * Variants of type tags used in the system, encompassing various data types and structures.
31
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/language_storage.rs#L27}
32
+ */
33
+ declare enum TypeTagVariants {
34
+ Bool = 0,
35
+ U8 = 1,
36
+ U64 = 2,
37
+ U128 = 3,
38
+ Address = 4,
39
+ Signer = 5,
40
+ Vector = 6,
41
+ Struct = 7,
42
+ U16 = 8,
43
+ U32 = 9,
44
+ U256 = 10,
45
+ Reference = 254,// This is specifically a placeholder and does not represent a real type
46
+ Generic = 255
47
+ }
48
+ /**
49
+ * Variants of script transaction arguments used in Rust, encompassing various data types for transaction processing.
50
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/transaction_argument.rs#L11}
51
+ */
52
+ declare enum ScriptTransactionArgumentVariants {
53
+ U8 = 0,
54
+ U64 = 1,
55
+ U128 = 2,
56
+ Address = 3,
57
+ U8Vector = 4,
58
+ Bool = 5,
59
+ U16 = 6,
60
+ U32 = 7,
61
+ U256 = 8,
62
+ Serialized = 9
63
+ }
64
+ /**
65
+ * The payload for various transaction types in the system.
66
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L478}
67
+ */
68
+ declare enum TransactionPayloadVariants {
69
+ Script = 0,
70
+ EntryFunction = 2,
71
+ Multisig = 3
72
+ }
73
+ /**
74
+ * Variants of transactions used in the system.
75
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L440}
76
+ */
77
+ declare enum TransactionVariants {
78
+ MultiAgentTransaction = 0,
79
+ FeePayerTransaction = 1
80
+ }
81
+ /**
82
+ * Variants of transaction authenticators used in the system.
83
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L44}
84
+ */
85
+ declare enum TransactionAuthenticatorVariant {
86
+ Ed25519 = 0,
87
+ MultiEd25519 = 1,
88
+ MultiAgent = 2,
89
+ FeePayer = 3,
90
+ SingleSender = 4
91
+ }
92
+ /**
93
+ * Variants of account authenticators used in transactions.
94
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L414}
95
+ */
96
+ declare enum AccountAuthenticatorVariant {
97
+ Ed25519 = 0,
98
+ MultiEd25519 = 1,
99
+ SingleKey = 2,
100
+ MultiKey = 3
101
+ }
102
+ /**
103
+ * Variants of private keys that can comply with the AIP-80 standard.
104
+ * {@link https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md}
105
+ */
106
+ declare enum PrivateKeyVariants {
107
+ Ed25519 = "ed25519",
108
+ Secp256k1 = "secp256k1"
109
+ }
110
+ /**
111
+ * Variants of public keys used in cryptographic operations.
112
+ */
113
+ declare enum AnyPublicKeyVariant {
114
+ Ed25519 = 0,
115
+ Secp256k1 = 1,
116
+ Keyless = 3,
117
+ FederatedKeyless = 4
118
+ }
119
+ /**
120
+ * Variants of signature types used for cryptographic operations.
121
+ */
122
+ declare enum AnySignatureVariant {
123
+ Ed25519 = 0,
124
+ Secp256k1 = 1,
125
+ Keyless = 3
126
+ }
127
+ /**
128
+ * Variants of ephemeral public keys used in cryptographic operations.
129
+ */
130
+ declare enum EphemeralPublicKeyVariant {
131
+ Ed25519 = 0
132
+ }
133
+ /**
134
+ * Variants of ephemeral signatures used for secure communication.
135
+ */
136
+ declare enum EphemeralSignatureVariant {
137
+ Ed25519 = 0
138
+ }
139
+ /**
140
+ * Variants of ephemeral certificates used in secure transactions.
141
+ */
142
+ declare enum EphemeralCertificateVariant {
143
+ ZkProof = 0
144
+ }
145
+ /**
146
+ * Variants of zero-knowledge proofs used in cryptographic operations.
147
+ */
148
+ declare enum ZkpVariant {
149
+ Groth16 = 0
150
+ }
151
+ /**
152
+ * BCS types
153
+ */
154
+ type Uint8 = number;
155
+ /**
156
+ * A 16-bit unsigned integer.
157
+ */
158
+ type Uint16 = number;
159
+ /**
160
+ * A 32-bit unsigned integer.
161
+ */
162
+ type Uint32 = number;
163
+ /**
164
+ * A 64-bit unsigned integer value.
165
+ */
166
+ type Uint64 = bigint;
167
+ /**
168
+ * A 128-bit unsigned integer used for precise arithmetic operations.
169
+ */
170
+ type Uint128 = bigint;
171
+ /**
172
+ * A 256-bit unsigned integer used for precise numerical calculations.
173
+ */
174
+ type Uint256 = bigint;
175
+ /**
176
+ * A number or a bigint value.
177
+ */
178
+ type AnyNumber = number | bigint;
179
+ /**
180
+ * Configuration options for initializing the SDK, allowing customization of its behavior and interaction with the Aptos network.
181
+ */
182
+ type AptosSettings = {
183
+ readonly network?: Network;
184
+ readonly fullnode?: string;
185
+ readonly faucet?: string;
186
+ readonly indexer?: string;
187
+ readonly pepper?: string;
188
+ readonly prover?: string;
189
+ readonly clientConfig?: ClientConfig;
190
+ readonly client?: Client;
191
+ readonly fullnodeConfig?: FullNodeConfig;
192
+ readonly indexerConfig?: IndexerConfig;
193
+ readonly faucetConfig?: FaucetConfig;
194
+ };
195
+ /**
196
+ * Defines the parameters for paginating query results, including the starting position and maximum number of items to return.
197
+ * @param offset Specifies the starting position of the query result. Default is 0.
198
+ * @param limit Specifies the maximum number of items to return. Default is 25.
199
+ */
200
+ interface PaginationArgs {
201
+ offset?: AnyNumber;
202
+ limit?: number;
203
+ }
204
+ /**
205
+ * Represents the arguments for specifying a token standard.
206
+ *
207
+ * @param tokenStandard - Optional standard of the token.
208
+ */
209
+ interface TokenStandardArg {
210
+ tokenStandard?: TokenStandard;
211
+ }
212
+ interface OrderByArg<T extends {}> {
213
+ orderBy?: OrderBy<T>;
214
+ }
215
+ interface WhereArg<T extends {}> {
216
+ where?: T;
217
+ }
218
+ /**
219
+ * QUERY TYPES
220
+ */
221
+ /**
222
+ * A configuration object for requests to the server, including API key, extra headers, and cookie handling options.
223
+ */
224
+ type ClientConfig = ClientHeadersType & {
225
+ WITH_CREDENTIALS?: boolean;
226
+ API_KEY?: string;
227
+ };
228
+ /**
229
+ * A configuration object for a Fullnode, allowing for the inclusion of extra headers in requests.
230
+ */
231
+ type FullNodeConfig = ClientHeadersType;
232
+ /**
233
+ * An Indexer configuration object for sending requests with additional headers.
234
+ */
235
+ type IndexerConfig = ClientHeadersType;
236
+ /**
237
+ * A configuration object for a faucet, including optional authentication and headers for requests.
238
+ */
239
+ type FaucetConfig = ClientHeadersType & {
240
+ AUTH_TOKEN?: string;
241
+ };
242
+ /**
243
+ * General type definition for client headers.
244
+ */
245
+ type ClientHeadersType = {
246
+ HEADERS?: Record<string, string | number | boolean>;
247
+ };
248
+ /**
249
+ * Represents a client for making requests to a service provider.
250
+ *
251
+ * @param Req - The type of the request payload.
252
+ * @param Res - The type of the response payload.
253
+ */
254
+ interface ClientRequest<Req> {
255
+ url: string;
256
+ method: "GET" | "POST";
257
+ originMethod?: string;
258
+ body?: Req;
259
+ contentType?: string;
260
+ params?: any;
261
+ overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
262
+ headers?: Record<string, any>;
263
+ }
264
+ interface ClientResponse<Res> {
265
+ status: number;
266
+ statusText: string;
267
+ data: Res;
268
+ config?: any;
269
+ request?: any;
270
+ response?: any;
271
+ headers?: any;
272
+ }
273
+ interface Client {
274
+ /**
275
+ * Sends a request to the specified URL with the given options.
276
+ *
277
+ * @param requestOptions - The options for the request.
278
+ * @param requestOptions.url - The URL to send the request to.
279
+ * @param requestOptions.method - The HTTP method to use, either "GET" or "POST".
280
+ * @param requestOptions.path - An optional path to append to the URL.
281
+ * @param requestOptions.body - The body of the request, applicable for POST requests.
282
+ * @param requestOptions.contentType - The content type of the request body.
283
+ * @param requestOptions.acceptType - The expected content type of the response.
284
+ * @param requestOptions.params - Optional parameters to include in the request.
285
+ * @param requestOptions.originMethod - An optional method to specify the origin of the request.
286
+ * @param requestOptions.overrides - Optional configuration overrides for the request.
287
+ */
288
+ provider<Req, Res>(requestOptions: ClientRequest<Req>): Promise<ClientResponse<Res>>;
289
+ }
290
+ /**
291
+ * The API request type
292
+ *
293
+ * @param url - the url to make the request to, i.e. https://fullnode.devnet.aptoslabs.com/v1
294
+ * @param method - the request method "GET" | "POST"
295
+ * @param endpoint (optional) - the endpoint to make the request to, i.e. transactions
296
+ * @param body (optional) - the body of the request
297
+ * @param contentType (optional) - the content type to set the `content-type` header to,
298
+ * by default is set to `application/json`
299
+ * @param params (optional) - query params to add to the request
300
+ * @param originMethod (optional) - the local method the request came from
301
+ * @param overrides (optional) - a `ClientConfig` object type to override request data
302
+ */
303
+ type AptosRequest = {
304
+ url: string;
305
+ method: "GET" | "POST";
306
+ path?: string;
307
+ body?: any;
308
+ contentType?: string;
309
+ acceptType?: string;
310
+ params?: Record<string, string | AnyNumber | boolean | undefined>;
311
+ originMethod?: string;
312
+ overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
313
+ };
314
+ /**
315
+ * The API response type
316
+ *
317
+ * @param status - the response status. i.e. 200
318
+ * @param statusText - the response message
319
+ * @param data the response data
320
+ * @param url the url the request was made to
321
+ * @param headers the response headers
322
+ * @param config (optional) - the request object
323
+ * @param request (optional) - the request object
324
+ */
325
+ interface AptosResponse<Req, Res> {
326
+ status: number;
327
+ statusText: string;
328
+ data: Res;
329
+ url: string;
330
+ headers: any;
331
+ config?: any;
332
+ request?: Req;
333
+ }
334
+ /**
335
+ * The ledger version of transactions, defaulting to the latest version if not specified.
336
+ */
337
+ type LedgerVersionArg = {
338
+ ledgerVersion?: AnyNumber;
339
+ };
340
+ /**
341
+ * RESPONSE TYPES
342
+ */
343
+ /**
344
+ * The output of the estimate gas API, including the deprioritized estimate for the gas unit price.
345
+ */
346
+ type GasEstimation = {
347
+ /**
348
+ * The deprioritized estimate for the gas unit price
349
+ */
350
+ deprioritized_gas_estimate?: number;
351
+ /**
352
+ * The current estimate for the gas unit price
353
+ */
354
+ gas_estimate: number;
355
+ /**
356
+ * The prioritized estimate for the gas unit price
357
+ */
358
+ prioritized_gas_estimate?: number;
359
+ };
360
+ type MoveResource<T = {}> = {
361
+ type: MoveStructId;
362
+ data: T;
363
+ };
364
+ /**
365
+ * The data associated with an account, including its sequence number.
366
+ */
367
+ type AccountData = {
368
+ sequence_number: string;
369
+ authentication_key: string;
370
+ };
371
+ /**
372
+ * A Move module containing an address.
373
+ */
374
+ type MoveModuleBytecode = {
375
+ bytecode: string;
376
+ abi?: MoveModule;
377
+ };
378
+ /**
379
+ * TRANSACTION TYPES
380
+ */
381
+ /**
382
+ * Different types of transaction responses that can occur in the system.
383
+ */
384
+ declare enum TransactionResponseType {
385
+ Pending = "pending_transaction",
386
+ User = "user_transaction",
387
+ Genesis = "genesis_transaction",
388
+ BlockMetadata = "block_metadata_transaction",
389
+ StateCheckpoint = "state_checkpoint_transaction",
390
+ Validator = "validator_transaction",
391
+ BlockEpilogue = "block_epilogue_transaction"
392
+ }
393
+ /**
394
+ * The response for a transaction, which can be either pending or committed.
395
+ */
396
+ type TransactionResponse = PendingTransactionResponse | CommittedTransactionResponse;
397
+ /**
398
+ * The response for a committed transaction, which can be one of several transaction types.
399
+ */
400
+ type CommittedTransactionResponse = UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse | ValidatorTransactionResponse | BlockEpilogueTransactionResponse;
401
+ /**
402
+ * Determine if the given transaction response is currently pending.
403
+ *
404
+ * @param response - The transaction response to evaluate.
405
+ * @returns A boolean indicating whether the transaction is pending.
406
+ */
407
+ declare function isPendingTransactionResponse(response: TransactionResponse): response is PendingTransactionResponse;
408
+ /**
409
+ * Determines if the given transaction response is a user transaction.
410
+ *
411
+ * @param response - The transaction response to evaluate.
412
+ * @returns A boolean indicating whether the transaction is of type User.
413
+ */
414
+ declare function isUserTransactionResponse(response: TransactionResponse): response is UserTransactionResponse;
415
+ /**
416
+ * Determines if the given transaction response is a Genesis transaction.
417
+ *
418
+ * @param response - The transaction response to evaluate.
419
+ * @returns A boolean indicating whether the transaction is a Genesis transaction.
420
+ */
421
+ declare function isGenesisTransactionResponse(response: TransactionResponse): response is GenesisTransactionResponse;
422
+ /**
423
+ * Determine if the given transaction response is of type BlockMetadata.
424
+ *
425
+ * @param response - The transaction response to evaluate.
426
+ * @returns A boolean indicating whether the response is a BlockMetadata transaction.
427
+ */
428
+ declare function isBlockMetadataTransactionResponse(response: TransactionResponse): response is BlockMetadataTransactionResponse;
429
+ /**
430
+ * Determines if the provided transaction response is a state checkpoint transaction.
431
+ *
432
+ * @param response - The transaction response to evaluate.
433
+ * @returns A boolean indicating whether the transaction response is of type StateCheckpoint.
434
+ */
435
+ declare function isStateCheckpointTransactionResponse(response: TransactionResponse): response is StateCheckpointTransactionResponse;
436
+ /**
437
+ * Determine if the given transaction response is of type Validator.
438
+ *
439
+ * @param response - The transaction response to evaluate.
440
+ * @returns A boolean indicating whether the transaction response is a Validator type.
441
+ */
442
+ declare function isValidatorTransactionResponse(response: TransactionResponse): response is ValidatorTransactionResponse;
443
+ /**
444
+ * Determines if the given transaction response is of the type Block Epilogue.
445
+ *
446
+ * @param response - The transaction response to evaluate.
447
+ * @returns A boolean indicating whether the response is a Block Epilogue transaction.
448
+ */
449
+ declare function isBlockEpilogueTransactionResponse(response: TransactionResponse): response is BlockEpilogueTransactionResponse;
450
+ /**
451
+ * The response for a pending transaction, indicating that the transaction is still being processed.
452
+ */
453
+ type PendingTransactionResponse = {
454
+ type: TransactionResponseType.Pending;
455
+ hash: string;
456
+ sender: string;
457
+ sequence_number: string;
458
+ max_gas_amount: string;
459
+ gas_unit_price: string;
460
+ expiration_timestamp_secs: string;
461
+ payload: TransactionPayloadResponse;
462
+ signature?: TransactionSignature;
463
+ };
464
+ /**
465
+ * The response structure for a user transaction.
466
+ */
467
+ type UserTransactionResponse = {
468
+ type: TransactionResponseType.User;
469
+ version: string;
470
+ hash: string;
471
+ state_change_hash: string;
472
+ event_root_hash: string;
473
+ state_checkpoint_hash: string | null;
474
+ gas_used: string;
475
+ /**
476
+ * Whether the transaction was successful
477
+ */
478
+ success: boolean;
479
+ /**
480
+ * The VM status of the transaction, can tell useful information in a failure
481
+ */
482
+ vm_status: string;
483
+ accumulator_root_hash: string;
484
+ /**
485
+ * Final state of resources changed by the transaction
486
+ */
487
+ changes: Array<WriteSetChange>;
488
+ sender: string;
489
+ sequence_number: string;
490
+ max_gas_amount: string;
491
+ gas_unit_price: string;
492
+ expiration_timestamp_secs: string;
493
+ payload: TransactionPayloadResponse;
494
+ signature?: TransactionSignature;
495
+ /**
496
+ * Events generated by the transaction
497
+ */
498
+ events: Array<Event>;
499
+ timestamp: string;
500
+ };
501
+ /**
502
+ * The response for a genesis transaction, indicating the type of transaction.
503
+ */
504
+ type GenesisTransactionResponse = {
505
+ type: TransactionResponseType.Genesis;
506
+ version: string;
507
+ hash: string;
508
+ state_change_hash: string;
509
+ event_root_hash: string;
510
+ state_checkpoint_hash?: string;
511
+ gas_used: string;
512
+ /**
513
+ * Whether the transaction was successful
514
+ */
515
+ success: boolean;
516
+ /**
517
+ * The VM status of the transaction, can tell useful information in a failure
518
+ */
519
+ vm_status: string;
520
+ accumulator_root_hash: string;
521
+ /**
522
+ * Final state of resources changed by the transaction
523
+ */
524
+ changes: Array<WriteSetChange>;
525
+ payload: GenesisPayload;
526
+ /**
527
+ * Events emitted during genesis
528
+ */
529
+ events: Array<Event>;
530
+ };
531
+ /**
532
+ * The structure representing a blockchain block with its height.
533
+ */
534
+ type BlockMetadataTransactionResponse = {
535
+ type: TransactionResponseType.BlockMetadata;
536
+ version: string;
537
+ hash: string;
538
+ state_change_hash: string;
539
+ event_root_hash: string;
540
+ state_checkpoint_hash: string | null;
541
+ gas_used: string;
542
+ /**
543
+ * Whether the transaction was successful
544
+ */
545
+ success: boolean;
546
+ /**
547
+ * The VM status of the transaction, can tell useful information in a failure
548
+ */
549
+ vm_status: string;
550
+ accumulator_root_hash: string;
551
+ /**
552
+ * Final state of resources changed by the transaction
553
+ */
554
+ changes: Array<WriteSetChange>;
555
+ id: string;
556
+ epoch: string;
557
+ round: string;
558
+ /**
559
+ * The events emitted at the block creation
560
+ */
561
+ events: Array<Event>;
562
+ /**
563
+ * Previous block votes
564
+ */
565
+ previous_block_votes_bitvec: Array<number>;
566
+ proposer: string;
567
+ /**
568
+ * The indices of the proposers who failed to propose
569
+ */
570
+ failed_proposer_indices: Array<number>;
571
+ timestamp: string;
572
+ };
573
+ /**
574
+ * The response for a state checkpoint transaction, indicating the type of transaction.
575
+ */
576
+ type StateCheckpointTransactionResponse = {
577
+ type: TransactionResponseType.StateCheckpoint;
578
+ version: string;
579
+ hash: string;
580
+ state_change_hash: string;
581
+ event_root_hash: string;
582
+ state_checkpoint_hash: string | null;
583
+ gas_used: string;
584
+ /**
585
+ * Whether the transaction was successful
586
+ */
587
+ success: boolean;
588
+ /**
589
+ * The VM status of the transaction, can tell useful information in a failure
590
+ */
591
+ vm_status: string;
592
+ accumulator_root_hash: string;
593
+ /**
594
+ * Final state of resources changed by the transaction
595
+ */
596
+ changes: Array<WriteSetChange>;
597
+ timestamp: string;
598
+ };
599
+ /**
600
+ * The response for a validator transaction, indicating the type of transaction.
601
+ */
602
+ type ValidatorTransactionResponse = {
603
+ type: TransactionResponseType.Validator;
604
+ version: string;
605
+ hash: string;
606
+ state_change_hash: string;
607
+ event_root_hash: string;
608
+ state_checkpoint_hash: string | null;
609
+ gas_used: string;
610
+ /**
611
+ * Whether the transaction was successful
612
+ */
613
+ success: boolean;
614
+ /**
615
+ * The VM status of the transaction, can tell useful information in a failure
616
+ */
617
+ vm_status: string;
618
+ accumulator_root_hash: string;
619
+ /**
620
+ * Final state of resources changed by the transaction
621
+ */
622
+ changes: Array<WriteSetChange>;
623
+ /**
624
+ * The events emitted by the validator transaction
625
+ */
626
+ events: Array<Event>;
627
+ timestamp: string;
628
+ };
629
+ /**
630
+ * Describes the gas state of the block, indicating whether the block gas limit has been reached.
631
+ */
632
+ type BlockEndInfo = {
633
+ block_gas_limit_reached: boolean;
634
+ block_output_limit_reached: boolean;
635
+ block_effective_block_gas_units: number;
636
+ block_approx_output_size: number;
637
+ };
638
+ /**
639
+ * A transaction executed at the end of a block that tracks data from the entire block.
640
+ */
641
+ type BlockEpilogueTransactionResponse = {
642
+ type: TransactionResponseType.BlockEpilogue;
643
+ version: string;
644
+ hash: string;
645
+ state_change_hash: string;
646
+ event_root_hash: string;
647
+ state_checkpoint_hash: string | null;
648
+ gas_used: string;
649
+ /**
650
+ * Whether the transaction was successful
651
+ */
652
+ success: boolean;
653
+ /**
654
+ * The VM status of the transaction, can tell useful information in a failure
655
+ */
656
+ vm_status: string;
657
+ accumulator_root_hash: string;
658
+ /**
659
+ * Final state of resources changed by the transaction
660
+ */
661
+ changes: Array<WriteSetChange>;
662
+ timestamp: string;
663
+ block_end_info: BlockEndInfo | null;
664
+ };
665
+ /**
666
+ * WRITESET CHANGE TYPES
667
+ */
668
+ /**
669
+ * A union type that encompasses both script and direct write sets for data operations.
670
+ */
671
+ type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
672
+ /**
673
+ * The structure for a module deletion change in a write set.
674
+ */
675
+ type WriteSetChangeDeleteModule = {
676
+ type: string;
677
+ address: string;
678
+ /**
679
+ * State key hash
680
+ */
681
+ state_key_hash: string;
682
+ module: MoveModuleId;
683
+ };
684
+ /**
685
+ * The payload for a resource deletion in a write set change.
686
+ */
687
+ type WriteSetChangeDeleteResource = {
688
+ type: string;
689
+ address: string;
690
+ state_key_hash: string;
691
+ resource: string;
692
+ };
693
+ /**
694
+ * The payload for a write set change that deletes a table item.
695
+ */
696
+ type WriteSetChangeDeleteTableItem = {
697
+ type: string;
698
+ state_key_hash: string;
699
+ handle: string;
700
+ key: string;
701
+ data?: DeletedTableData;
702
+ };
703
+ /**
704
+ * The structure for a write module change in a write set.
705
+ */
706
+ type WriteSetChangeWriteModule = {
707
+ type: string;
708
+ address: string;
709
+ state_key_hash: string;
710
+ data: MoveModuleBytecode;
711
+ };
712
+ /**
713
+ * The resource associated with a write set change, identified by its type.
714
+ */
715
+ type WriteSetChangeWriteResource = {
716
+ type: string;
717
+ address: string;
718
+ state_key_hash: string;
719
+ data: MoveResource;
720
+ };
721
+ /**
722
+ * The structure for a write operation on a table in a write set change.
723
+ */
724
+ type WriteSetChangeWriteTableItem = {
725
+ type: string;
726
+ state_key_hash: string;
727
+ handle: string;
728
+ key: string;
729
+ value: string;
730
+ data?: DecodedTableData;
731
+ };
732
+ /**
733
+ * The decoded data for a table, including its key in JSON format.
734
+ */
735
+ type DecodedTableData = {
736
+ /**
737
+ * Key of table in JSON
738
+ */
739
+ key: any;
740
+ /**
741
+ * Type of key
742
+ */
743
+ key_type: string;
744
+ /**
745
+ * Value of table in JSON
746
+ */
747
+ value: any;
748
+ /**
749
+ * Type of value
750
+ */
751
+ value_type: string;
752
+ };
753
+ /**
754
+ * Data for a deleted table entry.
755
+ */
756
+ type DeletedTableData = {
757
+ /**
758
+ * Deleted key
759
+ */
760
+ key: any;
761
+ /**
762
+ * Deleted key type
763
+ */
764
+ key_type: string;
765
+ };
766
+ /**
767
+ * The payload for a transaction response, which can be an entry function, script, or multisig payload.
768
+ */
769
+ type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
770
+ /**
771
+ * The response payload for an entry function, containing the type of the entry.
772
+ */
773
+ type EntryFunctionPayloadResponse = {
774
+ type: string;
775
+ function: MoveFunctionId;
776
+ /**
777
+ * Type arguments of the function
778
+ */
779
+ type_arguments: Array<string>;
780
+ /**
781
+ * Arguments of the function
782
+ */
783
+ arguments: Array<any>;
784
+ };
785
+ /**
786
+ * The payload for a script response, containing the type of the script.
787
+ */
788
+ type ScriptPayloadResponse = {
789
+ type: string;
790
+ code: MoveScriptBytecode;
791
+ /**
792
+ * Type arguments of the function
793
+ */
794
+ type_arguments: Array<string>;
795
+ /**
796
+ * Arguments of the function
797
+ */
798
+ arguments: Array<any>;
799
+ };
800
+ /**
801
+ * The response payload for a multisig transaction, containing the type of the transaction.
802
+ */
803
+ type MultisigPayloadResponse = {
804
+ type: string;
805
+ multisig_address: string;
806
+ transaction_payload?: EntryFunctionPayloadResponse;
807
+ };
808
+ /**
809
+ * The payload for the genesis block containing the type of the payload.
810
+ */
811
+ type GenesisPayload = {
812
+ type: string;
813
+ write_set: WriteSet;
814
+ };
815
+ /**
816
+ * The bytecode for a Move script.
817
+ */
818
+ type MoveScriptBytecode = {
819
+ bytecode: string;
820
+ abi?: MoveFunction;
821
+ };
822
+ /**
823
+ * JSON representations of transaction signatures returned from the node API.
824
+ */
825
+ type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
826
+ /**
827
+ * Determine if the provided signature is an Ed25519 signature.
828
+ * This function checks for the presence of the "signature" property
829
+ * and verifies that its value is "ed25519_signature".
830
+ *
831
+ * @param signature - The transaction signature to be checked.
832
+ * @returns A boolean indicating whether the signature is an Ed25519 signature.
833
+ */
834
+ declare function isEd25519Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
835
+ /**
836
+ * Determine if the provided signature is a valid secp256k1 ECDSA signature.
837
+ *
838
+ * @param signature - The transaction signature to validate.
839
+ * @returns A boolean indicating whether the signature is a secp256k1 ECDSA signature.
840
+ */
841
+ declare function isSecp256k1Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
842
+ /**
843
+ * Determine if the provided transaction signature is a multi-agent signature.
844
+ *
845
+ * @param signature - The transaction signature to evaluate.
846
+ * @returns A boolean indicating whether the signature is a multi-agent signature.
847
+ */
848
+ declare function isMultiAgentSignature(signature: TransactionSignature): signature is TransactionMultiAgentSignature;
849
+ /**
850
+ * Determine if the provided signature is a fee payer signature.
851
+ *
852
+ * @param signature - The transaction signature to evaluate.
853
+ * @returns A boolean indicating whether the signature is a fee payer signature.
854
+ */
855
+ declare function isFeePayerSignature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
856
+ /**
857
+ * Determine if the provided signature is of type "multi_ed25519_signature".
858
+ *
859
+ * @param signature - The transaction signature to check.
860
+ * @returns A boolean indicating whether the signature is a multi-ed25519 signature.
861
+ */
862
+ declare function isMultiEd25519Signature(signature: TransactionSignature): signature is TransactionMultiEd25519Signature;
863
+ /**
864
+ * The signature for a transaction using the Ed25519 algorithm.
865
+ */
866
+ type TransactionEd25519Signature = {
867
+ type: string;
868
+ public_key: string;
869
+ signature: "ed25519_signature";
870
+ };
871
+ /**
872
+ * The structure for a Secp256k1 signature in a transaction.
873
+ */
874
+ type TransactionSecp256k1Signature = {
875
+ type: string;
876
+ public_key: string;
877
+ signature: "secp256k1_ecdsa_signature";
878
+ };
879
+ /**
880
+ * The structure for a multi-signature transaction using Ed25519.
881
+ */
882
+ type TransactionMultiEd25519Signature = {
883
+ type: "multi_ed25519_signature";
884
+ /**
885
+ * The public keys for the Ed25519 signature
886
+ */
887
+ public_keys: Array<string>;
888
+ /**
889
+ * Signature associated with the public keys in the same order
890
+ */
891
+ signatures: Array<string>;
892
+ /**
893
+ * The number of signatures required for a successful transaction
894
+ */
895
+ threshold: number;
896
+ bitmap: string;
897
+ };
898
+ /**
899
+ * The structure for a multi-agent signature in a transaction.
900
+ */
901
+ type TransactionMultiAgentSignature = {
902
+ type: "multi_agent_signature";
903
+ sender: AccountSignature;
904
+ /**
905
+ * The other involved parties' addresses
906
+ */
907
+ secondary_signer_addresses: Array<string>;
908
+ /**
909
+ * The associated signatures, in the same order as the secondary addresses
910
+ */
911
+ secondary_signers: Array<AccountSignature>;
912
+ };
913
+ /**
914
+ * The signature of the fee payer in a transaction.
915
+ */
916
+ type TransactionFeePayerSignature = {
917
+ type: "fee_payer_signature";
918
+ sender: AccountSignature;
919
+ /**
920
+ * The other involved parties' addresses
921
+ */
922
+ secondary_signer_addresses: Array<string>;
923
+ /**
924
+ * The associated signatures, in the same order as the secondary addresses
925
+ */
926
+ secondary_signers: Array<AccountSignature>;
927
+ fee_payer_address: string;
928
+ fee_payer_signer: AccountSignature;
929
+ };
930
+ /**
931
+ * The union of all single account signatures, including Ed25519, Secp256k1, and MultiEd25519 signatures.
932
+ */
933
+ type AccountSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature;
934
+ type WriteSet = ScriptWriteSet | DirectWriteSet;
935
+ /**
936
+ * The set of properties for writing scripts, including the type of script.
937
+ */
938
+ type ScriptWriteSet = {
939
+ type: string;
940
+ execute_as: string;
941
+ script: ScriptPayloadResponse;
942
+ };
943
+ /**
944
+ * The set of direct write operations, identified by a type string.
945
+ */
946
+ type DirectWriteSet = {
947
+ type: string;
948
+ changes: Array<WriteSetChange>;
949
+ events: Array<Event>;
950
+ };
951
+ /**
952
+ * The structure for an event's unique identifier, including its creation number.
953
+ */
954
+ /**
955
+ * The structure for an event, identified by a unique GUID.
956
+ */
957
+ type EventGuid = {
958
+ creation_number: string;
959
+ account_address: string;
960
+ };
961
+ type Event = {
962
+ guid: EventGuid;
963
+ sequence_number: string;
964
+ type: string;
965
+ /**
966
+ * The JSON representation of the event
967
+ */
968
+ data: any;
969
+ };
970
+ /**
971
+ * A number representing a Move uint8 type.
972
+ */
973
+ type MoveUint8Type = number;
974
+ /**
975
+ * A 16-bit unsigned integer used in the Move programming language.
976
+ */
977
+ type MoveUint16Type = number;
978
+ /**
979
+ * A 32-bit unsigned integer type used in Move programming.
980
+ */
981
+ type MoveUint32Type = number;
982
+ /**
983
+ * A string representation of a 64-bit unsigned integer used in Move programming.
984
+ */
985
+ type MoveUint64Type = string;
986
+ /**
987
+ * A string representing a 128-bit unsigned integer in the Move programming language.
988
+ */
989
+ type MoveUint128Type = string;
990
+ /**
991
+ * A string representation of a 256-bit unsigned integer used in Move programming.
992
+ */
993
+ type MoveUint256Type = string;
994
+ /**
995
+ * A string representing a Move address.
996
+ */
997
+ type MoveAddressType = string;
998
+ /**
999
+ * The type for identifying objects to be moved within the system.
1000
+ */
1001
+ type MoveObjectType = string;
1002
+ /**
1003
+ * The type for move options, which can be a MoveType, null, or undefined.
1004
+ */
1005
+ type MoveOptionType = MoveType | null | undefined;
1006
+ /**
1007
+ * A structure representing a move with a name.
1008
+ */
1009
+ type MoveStructId = `${string}::${string}::${string}`;
1010
+ /**
1011
+ * The move function containing its name. Same as MoveStructId since it reads weird to take a StructId for a Function.
1012
+ */
1013
+ type MoveFunctionId = MoveStructId;
1014
+ type MoveStructType = {};
1015
+ /**
1016
+ * A union type that encompasses various data types used in Move, including primitive types, address types, object types, and
1017
+ * arrays of MoveType.
1018
+ */
1019
+ type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
1020
+ /**
1021
+ * Possible Move values acceptable by move functions (entry, view)
1022
+ *
1023
+ * Map of a Move value to the corresponding TypeScript value
1024
+ *
1025
+ * `Bool -> boolean`
1026
+ *
1027
+ * `u8, u16, u32 -> number`
1028
+ *
1029
+ * `u64, u128, u256 -> string`
1030
+ *
1031
+ * `String -> string`
1032
+ *
1033
+ * `Address -> 0x${string}`
1034
+ *
1035
+ * `Struct - 0x${string}::${string}::${string}`
1036
+ *
1037
+ * `Object -> 0x${string}`
1038
+ *
1039
+ * `Vector -> Array<MoveValue>`
1040
+ *
1041
+ * `Option -> MoveValue | null | undefined`
1042
+ */
1043
+ type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
1044
+ /**
1045
+ * A string representation of a Move module, formatted as `module_name::function_name`.
1046
+ * Module names are case-sensitive.
1047
+ */
1048
+ type MoveModuleId = `${string}::${string}`;
1049
+ /**
1050
+ * Specifies the visibility levels for move functions, controlling access permissions.
1051
+ */
1052
+ declare enum MoveFunctionVisibility {
1053
+ PRIVATE = "private",
1054
+ PUBLIC = "public",
1055
+ FRIEND = "friend"
1056
+ }
1057
+ /**
1058
+ * Abilities related to moving items within the system.
1059
+ */
1060
+ declare enum MoveAbility {
1061
+ STORE = "store",
1062
+ DROP = "drop",
1063
+ KEY = "key",
1064
+ COPY = "copy"
1065
+ }
1066
+ /**
1067
+ * Move abilities associated with the generic type parameter of a function.
1068
+ */
1069
+ type MoveFunctionGenericTypeParam = {
1070
+ constraints: Array<MoveAbility>;
1071
+ };
1072
+ /**
1073
+ * A field in a Move struct, identified by its name.
1074
+ */
1075
+ type MoveStructField = {
1076
+ name: string;
1077
+ type: string;
1078
+ };
1079
+ /**
1080
+ * A Move module
1081
+ */
1082
+ type MoveModule = {
1083
+ address: string;
1084
+ name: string;
1085
+ /**
1086
+ * Friends of the module
1087
+ */
1088
+ friends: Array<MoveModuleId>;
1089
+ /**
1090
+ * Public functions of the module
1091
+ */
1092
+ exposed_functions: Array<MoveFunction>;
1093
+ /**
1094
+ * Structs of the module
1095
+ */
1096
+ structs: Array<MoveStruct>;
1097
+ };
1098
+ /**
1099
+ * A move struct
1100
+ */
1101
+ type MoveStruct = {
1102
+ name: string;
1103
+ /**
1104
+ * Whether the struct is a native struct of Move
1105
+ */
1106
+ is_native: boolean;
1107
+ /**
1108
+ * Whether the struct is a module event (aka v2 event). This will be false for v1
1109
+ * events because the value is derived from the #[event] attribute on the struct in
1110
+ * the Move source code. This attribute is only relevant for v2 events.
1111
+ */
1112
+ is_event: boolean;
1113
+ /**
1114
+ * Abilities associated with the struct
1115
+ */
1116
+ abilities: Array<MoveAbility>;
1117
+ /**
1118
+ * Generic types associated with the struct
1119
+ */
1120
+ generic_type_params: Array<MoveFunctionGenericTypeParam>;
1121
+ /**
1122
+ * Fields associated with the struct
1123
+ */
1124
+ fields: Array<MoveStructField>;
1125
+ };
1126
+ /**
1127
+ * Move function
1128
+ */
1129
+ type MoveFunction = {
1130
+ name: string;
1131
+ visibility: MoveFunctionVisibility;
1132
+ /**
1133
+ * Whether the function can be called as an entry function directly in a transaction
1134
+ */
1135
+ is_entry: boolean;
1136
+ /**
1137
+ * Whether the function is a view function or not
1138
+ */
1139
+ is_view: boolean;
1140
+ /**
1141
+ * Generic type params associated with the Move function
1142
+ */
1143
+ generic_type_params: Array<MoveFunctionGenericTypeParam>;
1144
+ /**
1145
+ * Parameters associated with the move function
1146
+ */
1147
+ params: Array<string>;
1148
+ /**
1149
+ * Return type of the function
1150
+ */
1151
+ return: Array<string>;
1152
+ };
1153
+ /**
1154
+ * Roles that can be assigned within the system, indicating different levels of access and functionality.
1155
+ */
1156
+ declare enum RoleType {
1157
+ VALIDATOR = "validator",
1158
+ FULL_NODE = "full_node"
1159
+ }
1160
+ /**
1161
+ * Information about the current blockchain ledger, including its chain ID.
1162
+ */
1163
+ type LedgerInfo = {
1164
+ /**
1165
+ * Chain ID of the current chain
1166
+ */
1167
+ chain_id: number;
1168
+ epoch: string;
1169
+ ledger_version: string;
1170
+ oldest_ledger_version: string;
1171
+ ledger_timestamp: string;
1172
+ node_role: RoleType;
1173
+ oldest_block_height: string;
1174
+ block_height: string;
1175
+ /**
1176
+ * Git hash of the build of the API endpoint. Can be used to determine the exact
1177
+ * software version used by the API endpoint.
1178
+ */
1179
+ git_hash?: string;
1180
+ };
1181
+ /**
1182
+ * A Block type
1183
+ */
1184
+ type Block = {
1185
+ block_height: string;
1186
+ block_hash: string;
1187
+ block_timestamp: string;
1188
+ first_version: string;
1189
+ last_version: string;
1190
+ /**
1191
+ * The transactions in the block in sequential order
1192
+ */
1193
+ transactions?: Array<TransactionResponse>;
1194
+ };
1195
+ /**
1196
+ * The request payload for the GetTableItem API.
1197
+ */
1198
+ type TableItemRequest = {
1199
+ key_type: MoveValue;
1200
+ value_type: MoveValue;
1201
+ /**
1202
+ * The value of the table item's key
1203
+ */
1204
+ key: any;
1205
+ };
1206
+ /**
1207
+ * A list of supported Authentication Key schemes in Aptos, consisting of combinations of signing schemes and derive schemes.
1208
+ */
1209
+ type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
1210
+ /**
1211
+ * Different schemes for signing keys used in cryptographic operations.
1212
+ */
1213
+ declare enum SigningScheme {
1214
+ /**
1215
+ * For Ed25519PublicKey
1216
+ */
1217
+ Ed25519 = 0,
1218
+ /**
1219
+ * For MultiEd25519PublicKey
1220
+ */
1221
+ MultiEd25519 = 1,
1222
+ /**
1223
+ * For SingleKey ecdsa
1224
+ */
1225
+ SingleKey = 2,
1226
+ MultiKey = 3
1227
+ }
1228
+ /**
1229
+ * Specifies the signing schemes available for cryptographic operations.
1230
+ */
1231
+ declare enum SigningSchemeInput {
1232
+ /**
1233
+ * For Ed25519PublicKey
1234
+ */
1235
+ Ed25519 = 0,
1236
+ /**
1237
+ * For Secp256k1Ecdsa
1238
+ */
1239
+ Secp256k1Ecdsa = 2
1240
+ }
1241
+ /**
1242
+ * Specifies the schemes for deriving account addresses from various data sources.
1243
+ */
1244
+ declare enum DeriveScheme {
1245
+ /**
1246
+ * Derives an address using an AUID, used for objects
1247
+ */
1248
+ DeriveAuid = 251,
1249
+ /**
1250
+ * Derives an address from another object address
1251
+ */
1252
+ DeriveObjectAddressFromObject = 252,
1253
+ /**
1254
+ * Derives an address from a GUID, used for objects
1255
+ */
1256
+ DeriveObjectAddressFromGuid = 253,
1257
+ /**
1258
+ * Derives an address from seed bytes, used for named objects
1259
+ */
1260
+ DeriveObjectAddressFromSeed = 254,
1261
+ /**
1262
+ * Derives an address from seed bytes, used for resource accounts
1263
+ */
1264
+ DeriveResourceAccountAddress = 255
1265
+ }
1266
+ /**
1267
+ * Options for configuring the behavior of the waitForTransaction() function.
1268
+ */
1269
+ type WaitForTransactionOptions = {
1270
+ timeoutSecs?: number;
1271
+ checkSuccess?: boolean;
1272
+ waitForIndexer?: boolean;
1273
+ };
1274
+ /**
1275
+ * Input type to generate an account using the Ed25519 signing scheme.
1276
+ */
1277
+ type GenerateAccountWithEd25519 = {
1278
+ scheme: SigningSchemeInput.Ed25519;
1279
+ legacy: boolean;
1280
+ };
1281
+ /**
1282
+ * Input type to generate an account with a Single Signer using Secp256k1.
1283
+ */
1284
+ type GenerateAccountWithSingleSignerSecp256k1Key = {
1285
+ scheme: SigningSchemeInput.Secp256k1Ecdsa;
1286
+ legacy?: false;
1287
+ };
1288
+ type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
1289
+
1290
+ export { AccountAuthenticatorVariant, type AccountData, type AccountSignature, type AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, type AptosRequest, type AptosResponse, type AptosSettings, type AuthenticationKeyScheme, type Block, type BlockEndInfo, type BlockEpilogueTransactionResponse, type BlockMetadataTransactionResponse, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type DecodedTableData, type DeletedTableData, DeriveScheme, type DirectWriteSet, type EntryFunctionPayloadResponse, EphemeralCertificateVariant, EphemeralPublicKeyVariant, EphemeralSignatureVariant, type Event, type EventGuid, type FaucetConfig, type FullNodeConfig, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type HexInput, type IndexerConfig, type LedgerInfo, type LedgerVersionArg, MimeType, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, type MoveOptionType, type MoveResource, type MoveScriptBytecode, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, type MultisigPayloadResponse, type OrderByArg, type PaginationArgs, type PendingTransactionResponse, PrivateKeyVariants, RoleType, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, SigningScheme, SigningSchemeInput, type StateCheckpointTransactionResponse, type TableItemRequest, type TokenStandardArg, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, type TransactionPayloadResponse, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TypeTagVariants, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, ZkpVariant, isBlockEpilogueTransactionResponse, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse };