@aptos-labs/ts-sdk 1.13.3-zeta.3 → 1.14.0-zeta.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 (288) hide show
  1. package/dist/common/accountAddress-NPQwRmxn.d.ts +2121 -0
  2. package/dist/common/cli/index.d.ts +94 -1
  3. package/dist/common/cli/index.js +1 -1
  4. package/dist/common/cli/index.js.map +1 -1
  5. package/dist/common/index.d.ts +243 -2236
  6. package/dist/common/index.js +25 -25
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/{Ed25519Account-8gJF5t3F.d.mts → Ed25519Account-9zBaZEnp.d.mts} +76 -7
  9. package/dist/esm/account/Account.d.mts +1 -1
  10. package/dist/esm/account/Account.mjs +1 -1
  11. package/dist/esm/account/Ed25519Account.d.mts +1 -1
  12. package/dist/esm/account/Ed25519Account.mjs +1 -1
  13. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  14. package/dist/esm/account/KeylessAccount.d.mts +5 -4
  15. package/dist/esm/account/KeylessAccount.mjs +1 -1
  16. package/dist/esm/account/MultiKeyAccount.d.mts +67 -32
  17. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  18. package/dist/esm/account/SingleKeyAccount.d.mts +1 -1
  19. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  20. package/dist/esm/account/index.d.mts +4 -4
  21. package/dist/esm/account/index.mjs +1 -1
  22. package/dist/esm/api/account.d.mts +1 -1
  23. package/dist/esm/api/account.mjs +1 -1
  24. package/dist/esm/api/ans.d.mts +1 -1
  25. package/dist/esm/api/ans.mjs +1 -1
  26. package/dist/esm/api/aptos.d.mts +3 -3
  27. package/dist/esm/api/aptos.mjs +1 -1
  28. package/dist/esm/api/aptosConfig.mjs +1 -1
  29. package/dist/esm/api/coin.mjs +1 -1
  30. package/dist/esm/api/digitalAsset.d.mts +1 -1
  31. package/dist/esm/api/digitalAsset.mjs +1 -1
  32. package/dist/esm/api/event.mjs +1 -1
  33. package/dist/esm/api/faucet.mjs +1 -1
  34. package/dist/esm/api/fungibleAsset.d.mts +1 -1
  35. package/dist/esm/api/fungibleAsset.mjs +1 -1
  36. package/dist/esm/api/general.mjs +1 -1
  37. package/dist/esm/api/index.d.mts +3 -3
  38. package/dist/esm/api/index.mjs +1 -1
  39. package/dist/esm/api/keyless.d.mts +8 -8
  40. package/dist/esm/api/keyless.mjs +1 -1
  41. package/dist/esm/api/staking.mjs +1 -1
  42. package/dist/esm/api/transaction.d.mts +1 -1
  43. package/dist/esm/api/transaction.mjs +1 -1
  44. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  45. package/dist/esm/api/transactionSubmission/management.d.mts +1 -1
  46. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  47. package/dist/esm/api/transactionSubmission/sign.d.mts +1 -1
  48. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  49. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  50. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  51. package/dist/esm/api/utils.mjs +1 -1
  52. package/dist/esm/{chunk-5U2HUO5I.mjs → chunk-25N7RLBW.mjs} +2 -2
  53. package/dist/esm/{chunk-5U2HUO5I.mjs.map → chunk-25N7RLBW.mjs.map} +1 -1
  54. package/dist/esm/chunk-32355KGV.mjs +2 -0
  55. package/dist/esm/chunk-32355KGV.mjs.map +1 -0
  56. package/dist/esm/{chunk-DBHUQJV6.mjs → chunk-3OELNIC6.mjs} +2 -2
  57. package/dist/esm/chunk-3U5VRZLS.mjs +2 -0
  58. package/dist/esm/{chunk-S5HG2QUD.mjs.map → chunk-3U5VRZLS.mjs.map} +1 -1
  59. package/dist/esm/chunk-43WARVT3.mjs +2 -0
  60. package/dist/esm/{chunk-PGN46FRK.mjs.map → chunk-43WARVT3.mjs.map} +1 -1
  61. package/dist/esm/chunk-56NB52W6.mjs +2 -0
  62. package/dist/esm/chunk-56NB52W6.mjs.map +1 -0
  63. package/dist/esm/{chunk-ZB4QCXPI.mjs → chunk-5DW2AJPI.mjs} +2 -2
  64. package/dist/esm/{chunk-ID5XEMNJ.mjs → chunk-5QWUIVAQ.mjs} +2 -2
  65. package/dist/esm/{chunk-WTVN3XGK.mjs → chunk-6456EI2E.mjs} +2 -2
  66. package/dist/esm/{chunk-DCALFAYP.mjs → chunk-65UZZNN2.mjs} +2 -2
  67. package/dist/esm/{chunk-EEZ7W4FY.mjs → chunk-6LOTZ4GY.mjs} +2 -2
  68. package/dist/esm/{chunk-DFWISQYQ.mjs → chunk-6SHLLRJA.mjs} +2 -2
  69. package/dist/esm/{chunk-NJAV2RSI.mjs → chunk-73Y4NTDU.mjs} +2 -2
  70. package/dist/esm/chunk-7PSX4LCV.mjs +2 -0
  71. package/dist/esm/{chunk-IY76OUEM.mjs.map → chunk-7PSX4LCV.mjs.map} +1 -1
  72. package/dist/esm/chunk-7Q2NVO5M.mjs +2 -0
  73. package/dist/esm/chunk-7Q2NVO5M.mjs.map +1 -0
  74. package/dist/esm/chunk-C5UVSNZW.mjs +2 -0
  75. package/dist/esm/chunk-C5UVSNZW.mjs.map +1 -0
  76. package/dist/esm/{chunk-JDYILQSI.mjs → chunk-CLVAGDXO.mjs} +2 -2
  77. package/dist/esm/{chunk-Q5YW4VKH.mjs → chunk-D22EMNIY.mjs} +2 -2
  78. package/dist/esm/{chunk-X5HARDBD.mjs → chunk-DLTC6PJP.mjs} +2 -2
  79. package/dist/esm/{chunk-UIHUFI4D.mjs → chunk-EKABTHUZ.mjs} +2 -2
  80. package/dist/esm/chunk-EOMDZYSJ.mjs +2 -0
  81. package/dist/esm/chunk-EOMDZYSJ.mjs.map +1 -0
  82. package/dist/esm/{chunk-OEGY3D5Z.mjs → chunk-FKSACFCB.mjs} +2 -2
  83. package/dist/esm/{chunk-7NX7LTJJ.mjs → chunk-G4XSNSOT.mjs} +2 -2
  84. package/dist/esm/{chunk-I5NLKA3M.mjs → chunk-H3TFQ7K4.mjs} +2 -2
  85. package/dist/esm/{chunk-6M6XXPQQ.mjs → chunk-H6LYW7HG.mjs} +2 -2
  86. package/dist/esm/{chunk-R7BAM2G6.mjs → chunk-HCGWCB5E.mjs} +2 -2
  87. package/dist/esm/{chunk-XHPLLMR5.mjs → chunk-HXSW6X7K.mjs} +2 -2
  88. package/dist/esm/{chunk-QW55WEXU.mjs → chunk-IXYXFDJZ.mjs} +2 -2
  89. package/dist/esm/{chunk-J7BN4K72.mjs → chunk-J7J7ZTBF.mjs} +2 -2
  90. package/dist/esm/chunk-JVKMQ64G.mjs +2 -0
  91. package/dist/esm/{chunk-ALPPGXXW.mjs.map → chunk-JVKMQ64G.mjs.map} +1 -1
  92. package/dist/esm/{chunk-TISS3UCO.mjs → chunk-KWNBC5MF.mjs} +2 -2
  93. package/dist/esm/chunk-LDQ6JFEF.mjs +2 -0
  94. package/dist/esm/chunk-LDQ6JFEF.mjs.map +1 -0
  95. package/dist/esm/chunk-NGNETNK2.mjs +2 -0
  96. package/dist/esm/chunk-NGNETNK2.mjs.map +1 -0
  97. package/dist/esm/{chunk-EJPL4WP3.mjs → chunk-NKCZ4KGO.mjs} +2 -2
  98. package/dist/esm/chunk-NMECYE3D.mjs +2 -0
  99. package/dist/esm/chunk-NMECYE3D.mjs.map +1 -0
  100. package/dist/esm/{chunk-IERPDC22.mjs → chunk-NNW6HWIO.mjs} +2 -2
  101. package/dist/esm/{chunk-ZGTJMNZG.mjs → chunk-O34EOOVF.mjs} +2 -2
  102. package/dist/esm/{chunk-7JNPSNL6.mjs → chunk-OBEVVLF7.mjs} +2 -2
  103. package/dist/esm/{chunk-Z2ZV7SJI.mjs → chunk-OLGSIKFB.mjs} +2 -2
  104. package/dist/esm/{chunk-3X7RN4TM.mjs → chunk-OZC3FCJP.mjs} +2 -2
  105. package/dist/esm/{chunk-XQ2CSNQG.mjs → chunk-PINF6ZWP.mjs} +2 -2
  106. package/dist/esm/{chunk-DMKFITUM.mjs → chunk-PJXRQBF6.mjs} +2 -2
  107. package/dist/esm/{chunk-VIJBWYHD.mjs → chunk-QHVZL3LZ.mjs} +2 -2
  108. package/dist/esm/{chunk-MHANMSFM.mjs → chunk-QNHDS64I.mjs} +2 -2
  109. package/dist/esm/{chunk-5UDWQC3F.mjs → chunk-RBPGL6YB.mjs} +2 -2
  110. package/dist/esm/{chunk-4Z22B5FW.mjs → chunk-RTSEMQCK.mjs} +2 -2
  111. package/dist/esm/{chunk-5CY6DMOC.mjs → chunk-SRPTQ4VV.mjs} +2 -2
  112. package/dist/esm/{chunk-FEXAWES4.mjs → chunk-TXMPXZBG.mjs} +2 -2
  113. package/dist/esm/{chunk-H7A56KXV.mjs → chunk-UGIJHLL3.mjs} +2 -2
  114. package/dist/esm/{chunk-PTIZKRON.mjs → chunk-UVOU6BW2.mjs} +2 -2
  115. package/dist/esm/{chunk-C7ZUHEPR.mjs → chunk-V7P6MLSY.mjs} +2 -2
  116. package/dist/esm/{chunk-XVHMGCDZ.mjs → chunk-VJJN3GFD.mjs} +2 -2
  117. package/dist/esm/{chunk-FJTNAGMR.mjs → chunk-WOLIXKOK.mjs} +2 -2
  118. package/dist/esm/{chunk-YXRZEUT6.mjs → chunk-WVIPPU2C.mjs} +2 -2
  119. package/dist/esm/chunk-XCR3YNHW.mjs +2 -0
  120. package/dist/esm/chunk-XCR3YNHW.mjs.map +1 -0
  121. package/dist/esm/{chunk-SWIHAMDH.mjs → chunk-XMFPKHB5.mjs} +2 -2
  122. package/dist/esm/{chunk-WPVBC4JS.mjs → chunk-XN4SQWI5.mjs} +2 -2
  123. package/dist/esm/chunk-XN4SQWI5.mjs.map +1 -0
  124. package/dist/esm/{chunk-PEUK5XJE.mjs → chunk-Z5KKUXYI.mjs} +2 -2
  125. package/dist/esm/chunk-ZM436N3W.mjs +2 -0
  126. package/dist/esm/chunk-ZM436N3W.mjs.map +1 -0
  127. package/dist/esm/cli/index.d.mts +12 -0
  128. package/dist/esm/cli/index.mjs +1 -1
  129. package/dist/esm/cli/move.d.mts +105 -0
  130. package/dist/esm/cli/move.mjs +2 -0
  131. package/dist/esm/cli/move.mjs.map +1 -0
  132. package/dist/esm/client/core.mjs +1 -1
  133. package/dist/esm/client/get.mjs +1 -1
  134. package/dist/esm/client/index.mjs +1 -1
  135. package/dist/esm/client/post.mjs +1 -1
  136. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  137. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  138. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  139. package/dist/esm/core/crypto/index.d.mts +1 -1
  140. package/dist/esm/core/crypto/index.mjs +1 -1
  141. package/dist/esm/core/crypto/keyless.mjs +1 -1
  142. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  143. package/dist/esm/core/crypto/multiKey.d.mts +9 -3
  144. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  145. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  146. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  147. package/dist/esm/core/index.d.mts +1 -1
  148. package/dist/esm/core/index.mjs +1 -1
  149. package/dist/esm/index.d.mts +5 -5
  150. package/dist/esm/index.mjs +1 -1
  151. package/dist/esm/internal/account.d.mts +1 -1
  152. package/dist/esm/internal/account.mjs +1 -1
  153. package/dist/esm/internal/ans.d.mts +1 -1
  154. package/dist/esm/internal/ans.mjs +1 -1
  155. package/dist/esm/internal/coin.mjs +1 -1
  156. package/dist/esm/internal/digitalAsset.d.mts +1 -1
  157. package/dist/esm/internal/digitalAsset.mjs +1 -1
  158. package/dist/esm/internal/event.mjs +1 -1
  159. package/dist/esm/internal/faucet.mjs +1 -1
  160. package/dist/esm/internal/fungibleAsset.d.mts +1 -1
  161. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  162. package/dist/esm/internal/general.mjs +1 -1
  163. package/dist/esm/internal/keyless.d.mts +2 -2
  164. package/dist/esm/internal/keyless.mjs +1 -1
  165. package/dist/esm/internal/staking.mjs +1 -1
  166. package/dist/esm/internal/transaction.mjs +1 -1
  167. package/dist/esm/internal/transactionSubmission.d.mts +1 -1
  168. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  169. package/dist/esm/internal/view.mjs +1 -1
  170. package/dist/esm/transactions/authenticator/account.d.mts +3 -3
  171. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  172. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  173. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  174. package/dist/esm/transactions/index.d.mts +1 -1
  175. package/dist/esm/transactions/index.mjs +1 -1
  176. package/dist/esm/transactions/instances/index.mjs +1 -1
  177. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  178. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  179. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  180. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  181. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  182. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  183. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +1 -1
  184. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  185. package/dist/esm/transactions/management/index.d.mts +1 -1
  186. package/dist/esm/transactions/management/index.mjs +1 -1
  187. package/dist/esm/transactions/management/transactionWorker.d.mts +1 -1
  188. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  189. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  190. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  191. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  192. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  193. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +26 -1
  194. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  195. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +3 -13
  196. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  197. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  198. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  199. package/dist/esm/utils/apiEndpoints.d.mts +0 -1
  200. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  201. package/dist/esm/utils/index.mjs +1 -1
  202. package/dist/esm/version.d.mts +1 -1
  203. package/dist/esm/version.mjs +1 -1
  204. package/package.json +1 -1
  205. package/src/account/Account.ts +19 -5
  206. package/src/account/Ed25519Account.ts +35 -5
  207. package/src/account/KeylessAccount.ts +11 -7
  208. package/src/account/MultiKeyAccount.ts +95 -32
  209. package/src/account/SingleKeyAccount.ts +35 -5
  210. package/src/account/index.ts +1 -1
  211. package/src/cli/index.ts +1 -0
  212. package/src/cli/move.ts +183 -0
  213. package/src/core/crypto/hdKey.ts +5 -5
  214. package/src/core/crypto/multiKey.ts +18 -17
  215. package/src/internal/ans.ts +0 -1
  216. package/src/internal/fungibleAsset.ts +1 -1
  217. package/src/internal/transactionSubmission.ts +1 -1
  218. package/src/transactions/authenticator/account.ts +4 -4
  219. package/src/transactions/transactionBuilder/signingMessage.ts +33 -10
  220. package/src/transactions/transactionBuilder/transactionBuilder.ts +7 -51
  221. package/src/utils/apiEndpoints.ts +0 -6
  222. package/src/version.ts +1 -1
  223. package/dist/esm/chunk-5RBI4QWR.mjs +0 -2
  224. package/dist/esm/chunk-5RBI4QWR.mjs.map +0 -1
  225. package/dist/esm/chunk-ALPPGXXW.mjs +0 -2
  226. package/dist/esm/chunk-CHBG3GY5.mjs +0 -2
  227. package/dist/esm/chunk-CHBG3GY5.mjs.map +0 -1
  228. package/dist/esm/chunk-HHYQZBJO.mjs +0 -2
  229. package/dist/esm/chunk-HHYQZBJO.mjs.map +0 -1
  230. package/dist/esm/chunk-IY76OUEM.mjs +0 -2
  231. package/dist/esm/chunk-KGJITNRZ.mjs +0 -2
  232. package/dist/esm/chunk-KGJITNRZ.mjs.map +0 -1
  233. package/dist/esm/chunk-LIPZPOQG.mjs +0 -2
  234. package/dist/esm/chunk-LIPZPOQG.mjs.map +0 -1
  235. package/dist/esm/chunk-PGN46FRK.mjs +0 -2
  236. package/dist/esm/chunk-PXIIS7JA.mjs +0 -2
  237. package/dist/esm/chunk-PXIIS7JA.mjs.map +0 -1
  238. package/dist/esm/chunk-S5HG2QUD.mjs +0 -2
  239. package/dist/esm/chunk-UQ65W433.mjs +0 -2
  240. package/dist/esm/chunk-UQ65W433.mjs.map +0 -1
  241. package/dist/esm/chunk-WPVBC4JS.mjs.map +0 -1
  242. package/dist/esm/chunk-XS4XZVGH.mjs +0 -2
  243. package/dist/esm/chunk-XS4XZVGH.mjs.map +0 -1
  244. package/dist/esm/chunk-ZADLGPN7.mjs +0 -2
  245. package/dist/esm/chunk-ZADLGPN7.mjs.map +0 -1
  246. /package/dist/esm/{chunk-DBHUQJV6.mjs.map → chunk-3OELNIC6.mjs.map} +0 -0
  247. /package/dist/esm/{chunk-ZB4QCXPI.mjs.map → chunk-5DW2AJPI.mjs.map} +0 -0
  248. /package/dist/esm/{chunk-ID5XEMNJ.mjs.map → chunk-5QWUIVAQ.mjs.map} +0 -0
  249. /package/dist/esm/{chunk-WTVN3XGK.mjs.map → chunk-6456EI2E.mjs.map} +0 -0
  250. /package/dist/esm/{chunk-DCALFAYP.mjs.map → chunk-65UZZNN2.mjs.map} +0 -0
  251. /package/dist/esm/{chunk-EEZ7W4FY.mjs.map → chunk-6LOTZ4GY.mjs.map} +0 -0
  252. /package/dist/esm/{chunk-DFWISQYQ.mjs.map → chunk-6SHLLRJA.mjs.map} +0 -0
  253. /package/dist/esm/{chunk-NJAV2RSI.mjs.map → chunk-73Y4NTDU.mjs.map} +0 -0
  254. /package/dist/esm/{chunk-JDYILQSI.mjs.map → chunk-CLVAGDXO.mjs.map} +0 -0
  255. /package/dist/esm/{chunk-Q5YW4VKH.mjs.map → chunk-D22EMNIY.mjs.map} +0 -0
  256. /package/dist/esm/{chunk-X5HARDBD.mjs.map → chunk-DLTC6PJP.mjs.map} +0 -0
  257. /package/dist/esm/{chunk-UIHUFI4D.mjs.map → chunk-EKABTHUZ.mjs.map} +0 -0
  258. /package/dist/esm/{chunk-OEGY3D5Z.mjs.map → chunk-FKSACFCB.mjs.map} +0 -0
  259. /package/dist/esm/{chunk-7NX7LTJJ.mjs.map → chunk-G4XSNSOT.mjs.map} +0 -0
  260. /package/dist/esm/{chunk-I5NLKA3M.mjs.map → chunk-H3TFQ7K4.mjs.map} +0 -0
  261. /package/dist/esm/{chunk-6M6XXPQQ.mjs.map → chunk-H6LYW7HG.mjs.map} +0 -0
  262. /package/dist/esm/{chunk-R7BAM2G6.mjs.map → chunk-HCGWCB5E.mjs.map} +0 -0
  263. /package/dist/esm/{chunk-XHPLLMR5.mjs.map → chunk-HXSW6X7K.mjs.map} +0 -0
  264. /package/dist/esm/{chunk-QW55WEXU.mjs.map → chunk-IXYXFDJZ.mjs.map} +0 -0
  265. /package/dist/esm/{chunk-J7BN4K72.mjs.map → chunk-J7J7ZTBF.mjs.map} +0 -0
  266. /package/dist/esm/{chunk-TISS3UCO.mjs.map → chunk-KWNBC5MF.mjs.map} +0 -0
  267. /package/dist/esm/{chunk-EJPL4WP3.mjs.map → chunk-NKCZ4KGO.mjs.map} +0 -0
  268. /package/dist/esm/{chunk-IERPDC22.mjs.map → chunk-NNW6HWIO.mjs.map} +0 -0
  269. /package/dist/esm/{chunk-ZGTJMNZG.mjs.map → chunk-O34EOOVF.mjs.map} +0 -0
  270. /package/dist/esm/{chunk-7JNPSNL6.mjs.map → chunk-OBEVVLF7.mjs.map} +0 -0
  271. /package/dist/esm/{chunk-Z2ZV7SJI.mjs.map → chunk-OLGSIKFB.mjs.map} +0 -0
  272. /package/dist/esm/{chunk-3X7RN4TM.mjs.map → chunk-OZC3FCJP.mjs.map} +0 -0
  273. /package/dist/esm/{chunk-XQ2CSNQG.mjs.map → chunk-PINF6ZWP.mjs.map} +0 -0
  274. /package/dist/esm/{chunk-DMKFITUM.mjs.map → chunk-PJXRQBF6.mjs.map} +0 -0
  275. /package/dist/esm/{chunk-VIJBWYHD.mjs.map → chunk-QHVZL3LZ.mjs.map} +0 -0
  276. /package/dist/esm/{chunk-MHANMSFM.mjs.map → chunk-QNHDS64I.mjs.map} +0 -0
  277. /package/dist/esm/{chunk-5UDWQC3F.mjs.map → chunk-RBPGL6YB.mjs.map} +0 -0
  278. /package/dist/esm/{chunk-4Z22B5FW.mjs.map → chunk-RTSEMQCK.mjs.map} +0 -0
  279. /package/dist/esm/{chunk-5CY6DMOC.mjs.map → chunk-SRPTQ4VV.mjs.map} +0 -0
  280. /package/dist/esm/{chunk-FEXAWES4.mjs.map → chunk-TXMPXZBG.mjs.map} +0 -0
  281. /package/dist/esm/{chunk-H7A56KXV.mjs.map → chunk-UGIJHLL3.mjs.map} +0 -0
  282. /package/dist/esm/{chunk-PTIZKRON.mjs.map → chunk-UVOU6BW2.mjs.map} +0 -0
  283. /package/dist/esm/{chunk-C7ZUHEPR.mjs.map → chunk-V7P6MLSY.mjs.map} +0 -0
  284. /package/dist/esm/{chunk-XVHMGCDZ.mjs.map → chunk-VJJN3GFD.mjs.map} +0 -0
  285. /package/dist/esm/{chunk-FJTNAGMR.mjs.map → chunk-WOLIXKOK.mjs.map} +0 -0
  286. /package/dist/esm/{chunk-YXRZEUT6.mjs.map → chunk-WVIPPU2C.mjs.map} +0 -0
  287. /package/dist/esm/{chunk-SWIHAMDH.mjs.map → chunk-XMFPKHB5.mjs.map} +0 -0
  288. /package/dist/esm/{chunk-PEUK5XJE.mjs.map → chunk-Z5KKUXYI.mjs.map} +0 -0
@@ -1,21 +1,7 @@
1
+ import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, M as MoveModuleId, m as ScriptFunctionArgument, n as MoveFunctionId, o as AccountAddressInput, p as MoveFunctionGenericTypeParam, q as SigningSchemeInput, r as SigningScheme, s as AccountData, P as PaginationArgs, L as LedgerVersionArg, t as MoveModuleBytecode, u as TransactionResponse, v as MoveResource, w as MoveStructId, x as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, y as GetAccountOwnedTokensFromCollectionResponse, z as GetAccountCollectionsWithOwnedTokenResponse, B as GetAccountCoinsDataResponse, W as WhereArg, J as GetAccountOwnedObjectsResponse, K as GetCollectionDataResponse, Q as GetTokenDataResponse, R as GetCurrentTokenOwnershipResponse, V as GetOwnedTokensResponse, X as GetTokenActivityResponse, Y as GetEventsResponse, Z as WaitForTransactionOptions, _ as UserTransactionResponse, $ as MoveFunction, a0 as GetFungibleAssetMetadataResponse, a1 as GetFungibleAssetActivitiesResponse, a2 as GetCurrentFungibleAssetBalancesResponse, a3 as LedgerInfo, a4 as Block, a5 as TableItemRequest, a6 as MoveValue, a7 as GetChainTopUserTransactionsResponse, a8 as GraphqlQuery, a9 as GetProcessorStatusResponse, aa as GetANSNameResponse, ab as GetNumberOfDelegatorsResponse, ac as GetDelegatedStakingActivitiesResponse, ad as PendingTransactionResponse, ae as CommittedTransactionResponse, af as GasEstimation, ag as AptosRequest, ah as ClientRequest, ai as ClientResponse, aj as MimeType } from './accountAddress-NPQwRmxn.js';
2
+ export { aw as AccountAuthenticatorVariant, bd as AccountSignature, an as AddressInvalidReason, ax as AnySignatureVariant, aM as BlockMetadataTransactionResponse, aD as ClientHeadersType, aW as DecodedTableData, aX as DeletedTableData, bA as DeriveScheme, bg as DirectWriteSet, aZ as EntryFunctionPayloadResponse, az as EphemeralCertificate, ay as EphemeralSignatureVariant, bi as Event, bh as EventGuid, bD as GenerateAccount, bB as GenerateAccountWithEd25519, bC as GenerateAccountWithSingleSignerSecp256k1Key, b0 as GenesisPayload, aL as GenesisTransactionResponse, aq as HexInvalidReason, bv as MoveAbility, bp as MoveAddressType, bu as MoveFunctionVisibility, bx as MoveModule, bq as MoveObjectType, br as MoveOptionType, b1 as MoveScriptBytecode, by as MoveStruct, bw as MoveStructField, bs as MoveStructType, bt as MoveType, bn as MoveUint128Type, bk as MoveUint16Type, bo as MoveUint256Type, bl as MoveUint32Type, bm as MoveUint64Type, bj as MoveUint8Type, a$ as MultisigPayloadResponse, bM as NetworkToChainId, bJ as NetworkToFaucetAPI, bH as NetworkToIndexerAPI, bN as NetworkToNetworkName, bI as NetworkToNodeAPI, bK as NetworkToPepperAPI, bL as NetworkToProverAPI, bE as OrderBy, bF as OrderByValue, ao as ParsingError, ap as ParsingResult, bz as RoleType, a_ as ScriptPayloadResponse, as as ScriptTransactionArgumentVariants, bf as ScriptWriteSet, aN as StateCheckpointTransactionResponse, bG as TokenStandard, av as TransactionAuthenticatorVariant, b8 as TransactionEd25519Signature, bc as TransactionFeePayerSignature, bb as TransactionMultiAgentSignature, ba as TransactionMultiEd25519Signature, aY as TransactionPayloadResponse, at as TransactionPayloadVariants, aE as TransactionResponseType, b9 as TransactionSecp256k1Signature, b2 as TransactionSignature, au as TransactionVariants, ar as TypeTagVariants, aB as Uint128, aC as Uint256, aA as Uint64, aO as ValidatorTransactionResponse, be as WriteSet, aP as WriteSetChange, aQ as WriteSetChangeDeleteModule, aR as WriteSetChangeDeleteResource, aS as WriteSetChangeDeleteTableItem, aT as WriteSetChangeWriteModule, aU as WriteSetChangeWriteResource, aV as WriteSetChangeWriteTableItem, ak as ensureBoolean, aI as isBlockMetadataTransactionResponse, b3 as isEd25519Signature, b6 as isFeePayerSignature, aH as isGenesisTransactionResponse, b5 as isMultiAgentSignature, b7 as isMultiEd25519Signature, aF as isPendingTransactionResponse, b4 as isSecp256k1Signature, aJ as isStateCheckpointTransactionResponse, aG as isUserTransactionResponse, aK as isValidatorTransactionResponse, al as outOfRangeErrorMessage, am as validateNumberInRange } from './accountAddress-NPQwRmxn.js';
1
3
  import EventEmitter from 'eventemitter3';
2
4
 
3
- declare const NetworkToIndexerAPI: Record<string, string>;
4
- declare const NetworkToNodeAPI: Record<string, string>;
5
- declare const NetworkToFaucetAPI: Record<string, string>;
6
- declare const NetworkToPepperAPI: Record<string, string>;
7
- declare const NetworkToProverAPI: Record<string, string>;
8
- declare enum Network {
9
- MAINNET = "mainnet",
10
- TESTNET = "testnet",
11
- DEVNET = "devnet",
12
- RANDOMNET = "randomnet",
13
- LOCAL = "local",
14
- CUSTOM = "custom"
15
- }
16
- declare const NetworkToChainId: Record<string, number>;
17
- declare const NetworkToNetworkName: Record<string, Network>;
18
-
19
5
  type Maybe<T> = T | null;
20
6
  type InputMaybe<T> = Maybe<T>;
21
7
  /** All built-in and custom scalars, mapped to their actual values */
@@ -270,1942 +256,69 @@ type FungibleAssetMetadataBoolExp = {
270
256
  _and?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
271
257
  _not?: InputMaybe<FungibleAssetMetadataBoolExp>;
272
258
  _or?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
273
- asset_type?: InputMaybe<StringComparisonExp>;
274
- creator_address?: InputMaybe<StringComparisonExp>;
275
- decimals?: InputMaybe<IntComparisonExp>;
276
- icon_uri?: InputMaybe<StringComparisonExp>;
277
- last_transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
278
- last_transaction_version?: InputMaybe<BigintComparisonExp>;
279
- name?: InputMaybe<StringComparisonExp>;
280
- project_uri?: InputMaybe<StringComparisonExp>;
281
- supply_aggregator_table_handle_v1?: InputMaybe<StringComparisonExp>;
282
- supply_aggregator_table_key_v1?: InputMaybe<StringComparisonExp>;
283
- symbol?: InputMaybe<StringComparisonExp>;
284
- token_standard?: InputMaybe<StringComparisonExp>;
285
- };
286
- type JsonbCastExp = {
287
- String?: InputMaybe<StringComparisonExp>;
288
- };
289
- /** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */
290
- type JsonbComparisonExp = {
291
- _cast?: InputMaybe<JsonbCastExp>;
292
- /** is the column contained in the given json value */
293
- _contained_in?: InputMaybe<Scalars["jsonb"]["input"]>;
294
- /** does the column contain the given json value at the top level */
295
- _contains?: InputMaybe<Scalars["jsonb"]["input"]>;
296
- _eq?: InputMaybe<Scalars["jsonb"]["input"]>;
297
- _gt?: InputMaybe<Scalars["jsonb"]["input"]>;
298
- _gte?: InputMaybe<Scalars["jsonb"]["input"]>;
299
- /** does the string exist as a top-level key in the column */
300
- _has_key?: InputMaybe<Scalars["String"]["input"]>;
301
- /** do all of these strings exist as top-level keys in the column */
302
- _has_keys_all?: InputMaybe<Array<Scalars["String"]["input"]>>;
303
- /** do any of these strings exist as top-level keys in the column */
304
- _has_keys_any?: InputMaybe<Array<Scalars["String"]["input"]>>;
305
- _in?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
306
- _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
307
- _lt?: InputMaybe<Scalars["jsonb"]["input"]>;
308
- _lte?: InputMaybe<Scalars["jsonb"]["input"]>;
309
- _neq?: InputMaybe<Scalars["jsonb"]["input"]>;
310
- _nin?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
311
- };
312
- /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */
313
- type NumericComparisonExp = {
314
- _eq?: InputMaybe<Scalars["numeric"]["input"]>;
315
- _gt?: InputMaybe<Scalars["numeric"]["input"]>;
316
- _gte?: InputMaybe<Scalars["numeric"]["input"]>;
317
- _in?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
318
- _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
319
- _lt?: InputMaybe<Scalars["numeric"]["input"]>;
320
- _lte?: InputMaybe<Scalars["numeric"]["input"]>;
321
- _neq?: InputMaybe<Scalars["numeric"]["input"]>;
322
- _nin?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
323
- };
324
- /** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
325
- type TimestampComparisonExp = {
326
- _eq?: InputMaybe<Scalars["timestamp"]["input"]>;
327
- _gt?: InputMaybe<Scalars["timestamp"]["input"]>;
328
- _gte?: InputMaybe<Scalars["timestamp"]["input"]>;
329
- _in?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
330
- _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
331
- _lt?: InputMaybe<Scalars["timestamp"]["input"]>;
332
- _lte?: InputMaybe<Scalars["timestamp"]["input"]>;
333
- _neq?: InputMaybe<Scalars["timestamp"]["input"]>;
334
- _nin?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
335
- };
336
-
337
- type GetAccountCoinsDataQuery = {
338
- current_fungible_asset_balances: Array<{
339
- amount: any;
340
- asset_type: string;
341
- is_frozen: boolean;
342
- is_primary: boolean;
343
- last_transaction_timestamp: any;
344
- last_transaction_version: any;
345
- owner_address: string;
346
- storage_id: string;
347
- token_standard: string;
348
- metadata?: {
349
- token_standard: string;
350
- symbol: string;
351
- supply_aggregator_table_key_v1?: string | null;
352
- supply_aggregator_table_handle_v1?: string | null;
353
- project_uri?: string | null;
354
- name: string;
355
- last_transaction_version: any;
356
- last_transaction_timestamp: any;
357
- icon_uri?: string | null;
358
- decimals: number;
359
- creator_address: string;
360
- asset_type: string;
361
- } | null;
362
- }>;
363
- };
364
- type GetAccountCollectionsWithOwnedTokensQuery = {
365
- current_collection_ownership_v2_view: Array<{
366
- collection_id?: string | null;
367
- collection_name?: string | null;
368
- collection_uri?: string | null;
369
- creator_address?: string | null;
370
- distinct_tokens?: any | null;
371
- last_transaction_version?: any | null;
372
- owner_address?: string | null;
373
- single_token_uri?: string | null;
374
- current_collection?: {
375
- collection_id: string;
376
- collection_name: string;
377
- creator_address: string;
378
- current_supply: any;
379
- description: string;
380
- last_transaction_timestamp: any;
381
- last_transaction_version: any;
382
- mutable_description?: boolean | null;
383
- max_supply?: any | null;
384
- mutable_uri?: boolean | null;
385
- table_handle_v1?: string | null;
386
- token_standard: string;
387
- total_minted_v2?: any | null;
388
- uri: string;
389
- } | null;
390
- }>;
391
- };
392
- type GetAccountOwnedObjectsQuery = {
393
- current_objects: Array<{
394
- allow_ungated_transfer: boolean;
395
- state_key_hash: string;
396
- owner_address: string;
397
- object_address: string;
398
- last_transaction_version: any;
399
- last_guid_creation_num: any;
400
- is_deleted: boolean;
401
- }>;
402
- };
403
- type GetAccountOwnedTokensQuery = {
404
- current_token_ownerships_v2: Array<{
405
- token_standard: string;
406
- token_properties_mutated_v1?: any | null;
407
- token_data_id: string;
408
- table_type_v1?: string | null;
409
- storage_id: string;
410
- property_version_v1: any;
411
- owner_address: string;
412
- last_transaction_version: any;
413
- last_transaction_timestamp: any;
414
- is_soulbound_v2?: boolean | null;
415
- is_fungible_v2?: boolean | null;
416
- amount: any;
417
- current_token_data?: {
418
- collection_id: string;
419
- description: string;
420
- is_fungible_v2?: boolean | null;
421
- largest_property_version_v1?: any | null;
422
- last_transaction_timestamp: any;
423
- last_transaction_version: any;
424
- maximum?: any | null;
425
- supply: any;
426
- token_data_id: string;
427
- token_name: string;
428
- token_properties: any;
429
- token_standard: string;
430
- token_uri: string;
431
- decimals: any;
432
- current_collection?: {
433
- collection_id: string;
434
- collection_name: string;
435
- creator_address: string;
436
- current_supply: any;
437
- description: string;
438
- last_transaction_timestamp: any;
439
- last_transaction_version: any;
440
- max_supply?: any | null;
441
- mutable_description?: boolean | null;
442
- mutable_uri?: boolean | null;
443
- table_handle_v1?: string | null;
444
- token_standard: string;
445
- total_minted_v2?: any | null;
446
- uri: string;
447
- } | null;
448
- } | null;
449
- }>;
450
- };
451
- type GetAccountOwnedTokensFromCollectionQuery = {
452
- current_token_ownerships_v2: Array<{
453
- token_standard: string;
454
- token_properties_mutated_v1?: any | null;
455
- token_data_id: string;
456
- table_type_v1?: string | null;
457
- storage_id: string;
458
- property_version_v1: any;
459
- owner_address: string;
460
- last_transaction_version: any;
461
- last_transaction_timestamp: any;
462
- is_soulbound_v2?: boolean | null;
463
- is_fungible_v2?: boolean | null;
464
- amount: any;
465
- current_token_data?: {
466
- collection_id: string;
467
- description: string;
468
- is_fungible_v2?: boolean | null;
469
- largest_property_version_v1?: any | null;
470
- last_transaction_timestamp: any;
471
- last_transaction_version: any;
472
- maximum?: any | null;
473
- supply: any;
474
- token_data_id: string;
475
- token_name: string;
476
- token_properties: any;
477
- token_standard: string;
478
- token_uri: string;
479
- decimals: any;
480
- current_collection?: {
481
- collection_id: string;
482
- collection_name: string;
483
- creator_address: string;
484
- current_supply: any;
485
- description: string;
486
- last_transaction_timestamp: any;
487
- last_transaction_version: any;
488
- max_supply?: any | null;
489
- mutable_description?: boolean | null;
490
- mutable_uri?: boolean | null;
491
- table_handle_v1?: string | null;
492
- token_standard: string;
493
- total_minted_v2?: any | null;
494
- uri: string;
495
- } | null;
496
- } | null;
497
- }>;
498
- };
499
- type GetChainTopUserTransactionsQuery = {
500
- user_transactions: Array<{
501
- version: any;
502
- }>;
503
- };
504
- type GetCollectionDataQuery = {
505
- current_collections_v2: Array<{
506
- collection_id: string;
507
- collection_name: string;
508
- creator_address: string;
509
- current_supply: any;
510
- description: string;
511
- last_transaction_timestamp: any;
512
- last_transaction_version: any;
513
- max_supply?: any | null;
514
- mutable_description?: boolean | null;
515
- mutable_uri?: boolean | null;
516
- table_handle_v1?: string | null;
517
- token_standard: string;
518
- total_minted_v2?: any | null;
519
- uri: string;
520
- }>;
521
- };
522
- type GetCurrentFungibleAssetBalancesQuery = {
523
- current_fungible_asset_balances: Array<{
524
- amount: any;
525
- asset_type: string;
526
- is_frozen: boolean;
527
- is_primary: boolean;
528
- last_transaction_timestamp: any;
529
- last_transaction_version: any;
530
- owner_address: string;
531
- storage_id: string;
532
- token_standard: string;
533
- }>;
534
- };
535
- type GetDelegatedStakingActivitiesQuery = {
536
- delegated_staking_activities: Array<{
537
- amount: any;
538
- delegator_address: string;
539
- event_index: any;
540
- event_type: string;
541
- pool_address: string;
542
- transaction_version: any;
543
- }>;
544
- };
545
- type GetEventsQuery = {
546
- events: Array<{
547
- account_address: string;
548
- creation_number: any;
549
- data: any;
550
- event_index: any;
551
- sequence_number: any;
552
- transaction_block_height: any;
553
- transaction_version: any;
554
- type: string;
555
- indexed_type: string;
556
- }>;
557
- };
558
- type GetFungibleAssetActivitiesQuery = {
559
- fungible_asset_activities: Array<{
560
- amount?: any | null;
561
- asset_type: string;
562
- block_height: any;
563
- entry_function_id_str?: string | null;
564
- event_index: any;
565
- gas_fee_payer_address?: string | null;
566
- is_frozen?: boolean | null;
567
- is_gas_fee: boolean;
568
- is_transaction_success: boolean;
569
- owner_address: string;
570
- storage_id: string;
571
- storage_refund_amount: any;
572
- token_standard: string;
573
- transaction_timestamp: any;
574
- transaction_version: any;
575
- type: string;
576
- }>;
577
- };
578
- type GetFungibleAssetMetadataQuery = {
579
- fungible_asset_metadata: Array<{
580
- icon_uri?: string | null;
581
- project_uri?: string | null;
582
- supply_aggregator_table_handle_v1?: string | null;
583
- supply_aggregator_table_key_v1?: string | null;
584
- creator_address: string;
585
- asset_type: string;
586
- decimals: number;
587
- last_transaction_timestamp: any;
588
- last_transaction_version: any;
589
- name: string;
590
- symbol: string;
591
- token_standard: string;
592
- }>;
593
- };
594
- type GetNamesQuery = {
595
- current_aptos_names: Array<{
596
- domain?: string | null;
597
- expiration_timestamp?: any | null;
598
- registered_address?: string | null;
599
- subdomain?: string | null;
600
- token_standard?: string | null;
601
- is_primary?: boolean | null;
602
- owner_address?: string | null;
603
- }>;
604
- };
605
- type GetNumberOfDelegatorsQuery = {
606
- num_active_delegator_per_pool: Array<{
607
- num_active_delegator?: any | null;
608
- pool_address?: string | null;
609
- }>;
610
- };
611
- type GetProcessorStatusQuery = {
612
- processor_status: Array<{
613
- last_success_version: any;
614
- processor: string;
615
- last_updated: any;
616
- }>;
617
- };
618
- type GetTokenActivityQuery = {
619
- token_activities_v2: Array<{
620
- after_value?: string | null;
621
- before_value?: string | null;
622
- entry_function_id_str?: string | null;
623
- event_account_address: string;
624
- event_index: any;
625
- from_address?: string | null;
626
- is_fungible_v2?: boolean | null;
627
- property_version_v1: any;
628
- to_address?: string | null;
629
- token_amount: any;
630
- token_data_id: string;
631
- token_standard: string;
632
- transaction_timestamp: any;
633
- transaction_version: any;
634
- type: string;
635
- }>;
636
- };
637
- type GetCurrentTokenOwnershipQuery = {
638
- current_token_ownerships_v2: Array<{
639
- token_standard: string;
640
- token_properties_mutated_v1?: any | null;
641
- token_data_id: string;
642
- table_type_v1?: string | null;
643
- storage_id: string;
644
- property_version_v1: any;
645
- owner_address: string;
646
- last_transaction_version: any;
647
- last_transaction_timestamp: any;
648
- is_soulbound_v2?: boolean | null;
649
- is_fungible_v2?: boolean | null;
650
- amount: any;
651
- current_token_data?: {
652
- collection_id: string;
653
- description: string;
654
- is_fungible_v2?: boolean | null;
655
- largest_property_version_v1?: any | null;
656
- last_transaction_timestamp: any;
657
- last_transaction_version: any;
658
- maximum?: any | null;
659
- supply: any;
660
- token_data_id: string;
661
- token_name: string;
662
- token_properties: any;
663
- token_standard: string;
664
- token_uri: string;
665
- decimals: any;
666
- current_collection?: {
667
- collection_id: string;
668
- collection_name: string;
669
- creator_address: string;
670
- current_supply: any;
671
- description: string;
672
- last_transaction_timestamp: any;
673
- last_transaction_version: any;
674
- max_supply?: any | null;
675
- mutable_description?: boolean | null;
676
- mutable_uri?: boolean | null;
677
- table_handle_v1?: string | null;
678
- token_standard: string;
679
- total_minted_v2?: any | null;
680
- uri: string;
681
- } | null;
682
- } | null;
683
- }>;
684
- };
685
- type GetTokenDataQuery = {
686
- current_token_datas_v2: Array<{
687
- collection_id: string;
688
- description: string;
689
- is_fungible_v2?: boolean | null;
690
- largest_property_version_v1?: any | null;
691
- last_transaction_timestamp: any;
692
- last_transaction_version: any;
693
- maximum?: any | null;
694
- supply: any;
695
- token_data_id: string;
696
- token_name: string;
697
- token_properties: any;
698
- token_standard: string;
699
- token_uri: string;
700
- decimals: any;
701
- current_collection?: {
702
- collection_id: string;
703
- collection_name: string;
704
- creator_address: string;
705
- current_supply: any;
706
- description: string;
707
- last_transaction_timestamp: any;
708
- last_transaction_version: any;
709
- max_supply?: any | null;
710
- mutable_description?: boolean | null;
711
- mutable_uri?: boolean | null;
712
- table_handle_v1?: string | null;
713
- token_standard: string;
714
- total_minted_v2?: any | null;
715
- uri: string;
716
- } | null;
717
- }>;
718
- };
719
-
720
- /**
721
- * GENERATED QUERY TYPES FROM GRAPHQL SCHEMA
722
- *
723
- * generated types we generate from graphql schema that match the structure of the
724
- * response type when querying from Hasura schema.
725
- *
726
- * These types are used as the return type when making the actual request (usually
727
- * under the /internal/ folder)
728
- */
729
-
730
- /**
731
- * CUSTOM RESPONSE TYPES FOR THE END USER
732
- *
733
- * To provide a good dev exp, we build custom types derived from the
734
- * query types to be the response type the end developer/user will
735
- * work with.
736
- *
737
- * These types are used as the return type when calling a sdk api function
738
- * that calls the function that queries the server (usually under the /api/ folder)
739
- */
740
- type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"];
741
- type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
742
- type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
743
- type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
744
- type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
745
- type GetChainTopUserTransactionsResponse = GetChainTopUserTransactionsQuery["user_transactions"];
746
- type GetEventsResponse = GetEventsQuery["events"];
747
- type GetNumberOfDelegatorsResponse = GetNumberOfDelegatorsQuery["num_active_delegator_per_pool"];
748
- type GetDelegatedStakingActivitiesResponse = GetDelegatedStakingActivitiesQuery["delegated_staking_activities"];
749
- type GetCollectionDataResponse = GetCollectionDataQuery["current_collections_v2"][0];
750
- type GetTokenDataResponse = GetTokenDataQuery["current_token_datas_v2"][0];
751
- type GetProcessorStatusResponse = GetProcessorStatusQuery["processor_status"];
752
- type GetFungibleAssetMetadataResponse = GetFungibleAssetMetadataQuery["fungible_asset_metadata"];
753
- type GetFungibleAssetActivitiesResponse = GetFungibleAssetActivitiesQuery["fungible_asset_activities"];
754
- type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQuery["current_fungible_asset_balances"];
755
- type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
756
- type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
757
- type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
758
- type GetANSNameResponse = GetNamesQuery["current_aptos_names"];
759
- /**
760
- * A generic type that being passed by each function and holds an
761
- * array of properties we can sort the query by
762
- */
763
- type OrderBy<T> = Array<{
764
- [K in keyof T]?: OrderByValue;
765
- }>;
766
- type OrderByValue = "asc" | "asc_nulls_first" | "asc_nulls_last" | "desc" | "desc_nulls_first" | "desc_nulls_last";
767
- /**
768
- * Refers to the token standard we want to query for
769
- */
770
- type TokenStandard = "v1" | "v2";
771
- /**
772
- * The graphql query type to pass into the `queryIndexer` function
773
- */
774
- type GraphqlQuery = {
775
- query: string;
776
- variables?: {};
777
- };
778
-
779
- declare enum MimeType {
780
- /**
781
- * JSON representation, used for transaction submission and accept type JSON output
782
- */
783
- JSON = "application/json",
784
- /**
785
- * BCS representation, used for accept type BCS output
786
- */
787
- BCS = "application/x-bcs",
788
- /**
789
- * BCS representation, used for transaction submission in BCS input
790
- */
791
- BCS_SIGNED_TRANSACTION = "application/x.aptos.signed_transaction+bcs",
792
- BCS_VIEW_FUNCTION = "application/x.aptos.view_function+bcs"
793
- }
794
- /**
795
- * Hex data as input to a function
796
- */
797
- type HexInput = string | Uint8Array;
798
- /**
799
- * TypeTag enum as they are represented in Rust
800
- * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/language_storage.rs#L27}
801
- */
802
- declare enum TypeTagVariants {
803
- Bool = 0,
804
- U8 = 1,
805
- U64 = 2,
806
- U128 = 3,
807
- Address = 4,
808
- Signer = 5,
809
- Vector = 6,
810
- Struct = 7,
811
- U16 = 8,
812
- U32 = 9,
813
- U256 = 10,
814
- Reference = 254,// This is specifically a placeholder and does not represent a real type
815
- Generic = 255
816
- }
817
- /**
818
- * Script transaction arguments enum as they are represented in Rust
819
- * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/transaction_argument.rs#L11}
820
- */
821
- declare enum ScriptTransactionArgumentVariants {
822
- U8 = 0,
823
- U64 = 1,
824
- U128 = 2,
825
- Address = 3,
826
- U8Vector = 4,
827
- Bool = 5,
828
- U16 = 6,
829
- U32 = 7,
830
- U256 = 8
831
- }
832
- /**
833
- * Transaction payload enum as they are represented in Rust
834
- * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L478}
835
- */
836
- declare enum TransactionPayloadVariants {
837
- Script = 0,
838
- EntryFunction = 2,
839
- Multisig = 3
840
- }
841
- /**
842
- * Transaction variants enum as they are represented in Rust
843
- * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L440}
844
- */
845
- declare enum TransactionVariants {
846
- MultiAgentTransaction = 0,
847
- FeePayerTransaction = 1
848
- }
849
- /**
850
- * Transaction Authenticator enum as they are represented in Rust
851
- * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L44}
852
- */
853
- declare enum TransactionAuthenticatorVariant {
854
- Ed25519 = 0,
855
- MultiEd25519 = 1,
856
- MultiAgent = 2,
857
- FeePayer = 3,
858
- SingleSender = 4
859
- }
860
- /**
861
- * Transaction Authenticator enum as they are represented in Rust
862
- * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L414}
863
- */
864
- declare enum AccountAuthenticatorVariant {
865
- Ed25519 = 0,
866
- MultiEd25519 = 1,
867
- SingleKey = 2,
868
- MultiKey = 3
869
- }
870
- declare enum AnyPublicKeyVariant {
871
- Ed25519 = 0,
872
- Secp256k1 = 1,
873
- Keyless = 3
874
- }
875
- declare enum AnySignatureVariant {
876
- Ed25519 = 0,
877
- Secp256k1 = 1,
878
- Keyless = 3
879
- }
880
- declare enum EphemeralPublicKeyVariant {
881
- Ed25519 = 0
882
- }
883
- declare enum EphemeralSignatureVariant {
884
- Ed25519 = 0
885
- }
886
- declare enum EphemeralCertificate {
887
- ZkProof = 0,
888
- OpenIdSignature = 1
889
- }
890
- /**
891
- * BCS types
892
- */
893
- type Uint8 = number;
894
- type Uint16 = number;
895
- type Uint32 = number;
896
- type Uint64 = bigint;
897
- type Uint128 = bigint;
898
- type Uint256 = bigint;
899
- type AnyNumber = number | bigint;
900
- /**
901
- * Set of configuration options that can be provided when initializing the SDK.
902
- * The purpose of these options is to configure various aspects of the SDK's
903
- * behavior and interaction with the Aptos network
904
- */
905
- type AptosSettings = {
906
- readonly network?: Network;
907
- readonly fullnode?: string;
908
- readonly faucet?: string;
909
- readonly indexer?: string;
910
- readonly pepper?: string;
911
- readonly prover?: string;
912
- readonly clientConfig?: ClientConfig;
913
- readonly client?: Client;
914
- readonly fullnodeConfig?: FullNodeConfig;
915
- readonly indexerConfig?: IndexerConfig;
916
- readonly faucetConfig?: FaucetConfig;
917
- };
918
- /**
919
- *
920
- * Controls the number of results that are returned and the starting position of those results.
921
- * @param offset parameter specifies the starting position of the query result within the set of data. Default is 0.
922
- * @param limit specifies the maximum number of items or records to return in a query result. Default is 25.
923
- */
924
- interface PaginationArgs {
925
- offset?: AnyNumber;
926
- limit?: number;
927
- }
928
- interface TokenStandardArg {
929
- tokenStandard?: TokenStandard;
930
- }
931
- interface OrderByArg<T extends {}> {
932
- orderBy?: OrderBy<T>;
933
- }
934
- interface WhereArg<T extends {}> {
935
- where?: T;
936
- }
937
- /**
938
- * QUERY TYPES
939
- */
940
- /**
941
- * A configuration object we can pass with the request to the server.
942
- *
943
- * @param API_KEY - api key generated from developer portal {@link https://developers.aptoslabs.com/manage/api-keys}}
944
- * @param HEADERS - extra headers we want to send with the request
945
- * @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
946
- */
947
- type ClientConfig = ClientHeadersType & {
948
- WITH_CREDENTIALS?: boolean;
949
- API_KEY?: string;
950
- };
951
- /**
952
- * A Fullnode only configuration object
953
- *
954
- * @param HEADERS - extra headers we want to send with the request
955
- */
956
- type FullNodeConfig = ClientHeadersType;
957
- /**
958
- * An Indexer only configuration object
959
- *
960
- * @param HEADERS - extra headers we want to send with the request
961
- */
962
- type IndexerConfig = ClientHeadersType;
963
- /**
964
- * A Faucet only configuration object
965
- *
966
- * @param HEADERS - extra headers we want to send with the request
967
- * @param AUTH_TOKEN - an auth token to send with a faucet request
968
- */
969
- type FaucetConfig = ClientHeadersType & {
970
- AUTH_TOKEN?: string;
971
- };
972
- /**
973
- * General type definition for client HEADERS
974
- */
975
- type ClientHeadersType = {
976
- HEADERS?: Record<string, string | number | boolean>;
977
- };
978
- interface ClientRequest<Req> {
979
- url: string;
980
- method: "GET" | "POST";
981
- originMethod?: string;
982
- body?: Req;
983
- contentType?: string;
984
- params?: any;
985
- overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
986
- headers?: Record<string, any>;
987
- }
988
- interface ClientResponse<Res> {
989
- status: number;
990
- statusText: string;
991
- data: Res;
992
- config?: any;
993
- request?: any;
994
- response?: any;
995
- headers?: any;
996
- }
997
- interface Client {
998
- provider<Req, Res>(requestOptions: ClientRequest<Req>): Promise<ClientResponse<Res>>;
999
- }
1000
- /**
1001
- * The API request type
1002
- *
1003
- * @param url - the url to make the request to, i.e https://fullnode.devnet.aptoslabs.com/v1
1004
- * @param method - the request method "GET" | "POST"
1005
- * @param endpoint (optional) - the endpoint to make the request to, i.e transactions
1006
- * @param body (optional) - the body of the request
1007
- * @param contentType (optional) - the content type to set the `content-type` header to,
1008
- * by default is set to `application/json`
1009
- * @param params (optional) - query params to add to the request
1010
- * @param originMethod (optional) - the local method the request came from
1011
- * @param overrides (optional) - a `ClientConfig` object type to override request data
1012
- */
1013
- type AptosRequest = {
1014
- url: string;
1015
- method: "GET" | "POST";
1016
- path?: string;
1017
- body?: any;
1018
- contentType?: string;
1019
- acceptType?: string;
1020
- params?: Record<string, string | AnyNumber | boolean | undefined>;
1021
- originMethod?: string;
1022
- overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
1023
- };
1024
- /**
1025
- * Specifies ledger version of transactions. By default latest version will be used
1026
- */
1027
- type LedgerVersionArg = {
1028
- ledgerVersion?: AnyNumber;
1029
- };
1030
- /**
1031
- * RESPONSE TYPES
1032
- */
1033
- /**
1034
- * Type holding the outputs of the estimate gas API
1035
- */
1036
- type GasEstimation = {
1037
- /**
1038
- * The deprioritized estimate for the gas unit price
1039
- */
1040
- deprioritized_gas_estimate?: number;
1041
- /**
1042
- * The current estimate for the gas unit price
1043
- */
1044
- gas_estimate: number;
1045
- /**
1046
- * The prioritized estimate for the gas unit price
1047
- */
1048
- prioritized_gas_estimate?: number;
1049
- };
1050
- type MoveResource = {
1051
- type: MoveStructId;
1052
- data: {};
1053
- };
1054
- type AccountData = {
1055
- sequence_number: string;
1056
- authentication_key: string;
1057
- };
1058
- type MoveModuleBytecode = {
1059
- bytecode: string;
1060
- abi?: MoveModule;
1061
- };
1062
- /**
1063
- * TRANSACTION TYPES
1064
- */
1065
- declare enum TransactionResponseType {
1066
- Pending = "pending_transaction",
1067
- User = "user_transaction",
1068
- Genesis = "genesis_transaction",
1069
- BlockMetadata = "block_metadata_transaction",
1070
- StateCheckpoint = "state_checkpoint_transaction",
1071
- Validator = "validator_transaction"
1072
- }
1073
- type TransactionResponse = PendingTransactionResponse | CommittedTransactionResponse;
1074
- type CommittedTransactionResponse = UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse | ValidatorTransactionResponse;
1075
- declare function isPendingTransactionResponse(response: TransactionResponse): response is PendingTransactionResponse;
1076
- declare function isUserTransactionResponse(response: TransactionResponse): response is UserTransactionResponse;
1077
- declare function isGenesisTransactionResponse(response: TransactionResponse): response is GenesisTransactionResponse;
1078
- declare function isBlockMetadataTransactionResponse(response: TransactionResponse): response is BlockMetadataTransactionResponse;
1079
- declare function isStateCheckpointTransactionResponse(response: TransactionResponse): response is StateCheckpointTransactionResponse;
1080
- declare function isValidatorTransactionResponse(response: TransactionResponse): response is ValidatorTransactionResponse;
1081
- type PendingTransactionResponse = {
1082
- type: TransactionResponseType.Pending;
1083
- hash: string;
1084
- sender: string;
1085
- sequence_number: string;
1086
- max_gas_amount: string;
1087
- gas_unit_price: string;
1088
- expiration_timestamp_secs: string;
1089
- payload: TransactionPayloadResponse;
1090
- signature?: TransactionSignature;
1091
- };
1092
- type UserTransactionResponse = {
1093
- type: TransactionResponseType.User;
1094
- version: string;
1095
- hash: string;
1096
- state_change_hash: string;
1097
- event_root_hash: string;
1098
- state_checkpoint_hash: string | null;
1099
- gas_used: string;
1100
- /**
1101
- * Whether the transaction was successful
1102
- */
1103
- success: boolean;
1104
- /**
1105
- * The VM status of the transaction, can tell useful information in a failure
1106
- */
1107
- vm_status: string;
1108
- accumulator_root_hash: string;
1109
- /**
1110
- * Final state of resources changed by the transaction
1111
- */
1112
- changes: Array<WriteSetChange>;
1113
- sender: string;
1114
- sequence_number: string;
1115
- max_gas_amount: string;
1116
- gas_unit_price: string;
1117
- expiration_timestamp_secs: string;
1118
- payload: TransactionPayloadResponse;
1119
- signature?: TransactionSignature;
1120
- /**
1121
- * Events generated by the transaction
1122
- */
1123
- events: Array<Event$1>;
1124
- timestamp: string;
1125
- };
1126
- type GenesisTransactionResponse = {
1127
- type: TransactionResponseType.Genesis;
1128
- version: string;
1129
- hash: string;
1130
- state_change_hash: string;
1131
- event_root_hash: string;
1132
- state_checkpoint_hash?: string;
1133
- gas_used: string;
1134
- /**
1135
- * Whether the transaction was successful
1136
- */
1137
- success: boolean;
1138
- /**
1139
- * The VM status of the transaction, can tell useful information in a failure
1140
- */
1141
- vm_status: string;
1142
- accumulator_root_hash: string;
1143
- /**
1144
- * Final state of resources changed by the transaction
1145
- */
1146
- changes: Array<WriteSetChange>;
1147
- payload: GenesisPayload;
1148
- /**
1149
- * Events emitted during genesis
1150
- */
1151
- events: Array<Event$1>;
1152
- };
1153
- type BlockMetadataTransactionResponse = {
1154
- type: TransactionResponseType.BlockMetadata;
1155
- version: string;
1156
- hash: string;
1157
- state_change_hash: string;
1158
- event_root_hash: string;
1159
- state_checkpoint_hash: string | null;
1160
- gas_used: string;
1161
- /**
1162
- * Whether the transaction was successful
1163
- */
1164
- success: boolean;
1165
- /**
1166
- * The VM status of the transaction, can tell useful information in a failure
1167
- */
1168
- vm_status: string;
1169
- accumulator_root_hash: string;
1170
- /**
1171
- * Final state of resources changed by the transaction
1172
- */
1173
- changes: Array<WriteSetChange>;
1174
- id: string;
1175
- epoch: string;
1176
- round: string;
1177
- /**
1178
- * The events emitted at the block creation
1179
- */
1180
- events: Array<Event$1>;
1181
- /**
1182
- * Previous block votes
1183
- */
1184
- previous_block_votes_bitvec: Array<number>;
1185
- proposer: string;
1186
- /**
1187
- * The indices of the proposers who failed to propose
1188
- */
1189
- failed_proposer_indices: Array<number>;
1190
- timestamp: string;
1191
- };
1192
- type StateCheckpointTransactionResponse = {
1193
- type: TransactionResponseType.StateCheckpoint;
1194
- version: string;
1195
- hash: string;
1196
- state_change_hash: string;
1197
- event_root_hash: string;
1198
- state_checkpoint_hash: string | null;
1199
- gas_used: string;
1200
- /**
1201
- * Whether the transaction was successful
1202
- */
1203
- success: boolean;
1204
- /**
1205
- * The VM status of the transaction, can tell useful information in a failure
1206
- */
1207
- vm_status: string;
1208
- accumulator_root_hash: string;
1209
- /**
1210
- * Final state of resources changed by the transaction
1211
- */
1212
- changes: Array<WriteSetChange>;
1213
- timestamp: string;
1214
- };
1215
- type ValidatorTransactionResponse = {
1216
- type: TransactionResponseType.Validator;
1217
- version: string;
1218
- hash: string;
1219
- state_change_hash: string;
1220
- event_root_hash: string;
1221
- state_checkpoint_hash: string | null;
1222
- gas_used: string;
1223
- /**
1224
- * Whether the transaction was successful
1225
- */
1226
- success: boolean;
1227
- /**
1228
- * The VM status of the transaction, can tell useful information in a failure
1229
- */
1230
- vm_status: string;
1231
- accumulator_root_hash: string;
1232
- /**
1233
- * Final state of resources changed by the transaction
1234
- */
1235
- changes: Array<WriteSetChange>;
1236
- /**
1237
- * The events emitted by the validator transaction
1238
- */
1239
- events: Array<Event$1>;
1240
- timestamp: string;
1241
- };
1242
- /**
1243
- * WRITESET CHANGE TYPES
1244
- */
1245
- type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
1246
- type WriteSetChangeDeleteModule = {
1247
- type: string;
1248
- address: string;
1249
- /**
1250
- * State key hash
1251
- */
1252
- state_key_hash: string;
1253
- module: MoveModuleId;
1254
- };
1255
- type WriteSetChangeDeleteResource = {
1256
- type: string;
1257
- address: string;
1258
- state_key_hash: string;
1259
- resource: string;
1260
- };
1261
- type WriteSetChangeDeleteTableItem = {
1262
- type: string;
1263
- state_key_hash: string;
1264
- handle: string;
1265
- key: string;
1266
- data?: DeletedTableData;
1267
- };
1268
- type WriteSetChangeWriteModule = {
1269
- type: string;
1270
- address: string;
1271
- state_key_hash: string;
1272
- data: MoveModuleBytecode;
1273
- };
1274
- type WriteSetChangeWriteResource = {
1275
- type: string;
1276
- address: string;
1277
- state_key_hash: string;
1278
- data: MoveResource;
1279
- };
1280
- type WriteSetChangeWriteTableItem = {
1281
- type: string;
1282
- state_key_hash: string;
1283
- handle: string;
1284
- key: string;
1285
- value: string;
1286
- data?: DecodedTableData;
1287
- };
1288
- type DecodedTableData = {
1289
- /**
1290
- * Key of table in JSON
1291
- */
1292
- key: any;
1293
- /**
1294
- * Type of key
1295
- */
1296
- key_type: string;
1297
- /**
1298
- * Value of table in JSON
1299
- */
1300
- value: any;
1301
- /**
1302
- * Type of value
1303
- */
1304
- value_type: string;
1305
- };
1306
- /**
1307
- * Deleted table data
1308
- */
1309
- type DeletedTableData = {
1310
- /**
1311
- * Deleted key
1312
- */
1313
- key: any;
1314
- /**
1315
- * Deleted key type
1316
- */
1317
- key_type: string;
1318
- };
1319
- type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
1320
- type EntryFunctionPayloadResponse = {
1321
- type: string;
1322
- function: MoveFunctionId;
1323
- /**
1324
- * Type arguments of the function
1325
- */
1326
- type_arguments: Array<string>;
1327
- /**
1328
- * Arguments of the function
1329
- */
1330
- arguments: Array<any>;
1331
- };
1332
- type ScriptPayloadResponse = {
1333
- type: string;
1334
- code: MoveScriptBytecode;
1335
- /**
1336
- * Type arguments of the function
1337
- */
1338
- type_arguments: Array<string>;
1339
- /**
1340
- * Arguments of the function
1341
- */
1342
- arguments: Array<any>;
1343
- };
1344
- type MultisigPayloadResponse = {
1345
- type: string;
1346
- multisig_address: string;
1347
- transaction_payload?: EntryFunctionPayloadResponse;
1348
- };
1349
- type GenesisPayload = {
1350
- type: string;
1351
- write_set: WriteSet;
1352
- };
1353
- /**
1354
- * Move script bytecode
1355
- */
1356
- type MoveScriptBytecode = {
1357
- bytecode: string;
1358
- abi?: MoveFunction;
1359
- };
1360
- /**
1361
- * These are the JSON representations of transaction signatures returned from the node API.
1362
- */
1363
- type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
1364
- declare function isEd25519Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
1365
- declare function isSecp256k1Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
1366
- declare function isMultiAgentSignature(signature: TransactionSignature): signature is TransactionMultiAgentSignature;
1367
- declare function isFeePayerSignature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
1368
- declare function isMultiEd25519Signature(signature: TransactionSignature): signature is TransactionMultiEd25519Signature;
1369
- type TransactionEd25519Signature = {
1370
- type: string;
1371
- public_key: string;
1372
- signature: "ed25519_signature";
1373
- };
1374
- type TransactionSecp256k1Signature = {
1375
- type: string;
1376
- public_key: string;
1377
- signature: "secp256k1_ecdsa_signature";
1378
- };
1379
- type TransactionMultiEd25519Signature = {
1380
- type: "multi_ed25519_signature";
1381
- /**
1382
- * The public keys for the Ed25519 signature
1383
- */
1384
- public_keys: Array<string>;
1385
- /**
1386
- * Signature associated with the public keys in the same order
1387
- */
1388
- signatures: Array<string>;
1389
- /**
1390
- * The number of signatures required for a successful transaction
1391
- */
1392
- threshold: number;
1393
- bitmap: string;
1394
- };
1395
- type TransactionMultiAgentSignature = {
1396
- type: "multi_agent_signature";
1397
- sender: AccountSignature;
1398
- /**
1399
- * The other involved parties' addresses
1400
- */
1401
- secondary_signer_addresses: Array<string>;
1402
- /**
1403
- * The associated signatures, in the same order as the secondary addresses
1404
- */
1405
- secondary_signers: Array<AccountSignature>;
1406
- };
1407
- type TransactionFeePayerSignature = {
1408
- type: "fee_payer_signature";
1409
- sender: AccountSignature;
1410
- /**
1411
- * The other involved parties' addresses
1412
- */
1413
- secondary_signer_addresses: Array<string>;
1414
- /**
1415
- * The associated signatures, in the same order as the secondary addresses
1416
- */
1417
- secondary_signers: Array<AccountSignature>;
1418
- fee_payer_address: string;
1419
- fee_payer_signer: AccountSignature;
1420
- };
1421
- /**
1422
- * The union of all single account signatures.
1423
- */
1424
- type AccountSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature;
1425
- type WriteSet = ScriptWriteSet | DirectWriteSet;
1426
- type ScriptWriteSet = {
1427
- type: string;
1428
- execute_as: string;
1429
- script: ScriptPayloadResponse;
1430
- };
1431
- type DirectWriteSet = {
1432
- type: string;
1433
- changes: Array<WriteSetChange>;
1434
- events: Array<Event$1>;
1435
- };
1436
- type EventGuid = {
1437
- creation_number: string;
1438
- account_address: string;
1439
- };
1440
- type Event$1 = {
1441
- guid: EventGuid;
1442
- sequence_number: string;
1443
- type: string;
1444
- /**
1445
- * The JSON representation of the event
1446
- */
1447
- data: any;
1448
- };
1449
- /**
1450
- * Map of Move types to local TypeScript types
1451
- */
1452
- type MoveUint8Type = number;
1453
- type MoveUint16Type = number;
1454
- type MoveUint32Type = number;
1455
- type MoveUint64Type = string;
1456
- type MoveUint128Type = string;
1457
- type MoveUint256Type = string;
1458
- type MoveAddressType = string;
1459
- type MoveObjectType = string;
1460
- type MoveOptionType = MoveType | null | undefined;
1461
- /**
1462
- * This is the format for a fully qualified struct, resource, or entry function in Move.
1463
- */
1464
- type MoveStructId = `${string}::${string}::${string}`;
1465
- type MoveFunctionId = MoveStructId;
1466
- type MoveStructType = {};
1467
- type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
1468
- /**
1469
- * Possible Move values acceptable by move functions (entry, view)
1470
- *
1471
- * Map of a Move value to the corresponding TypeScript value
1472
- *
1473
- * `Bool -> boolean`
1474
- *
1475
- * `u8, u16, u32 -> number`
1476
- *
1477
- * `u64, u128, u256 -> string`
1478
- *
1479
- * `String -> string`
1480
- *
1481
- * `Address -> 0x${string}`
1482
- *
1483
- * `Struct - 0x${string}::${string}::${string}`
1484
- *
1485
- * `Object -> 0x${string}`
1486
- *
1487
- * `Vector -> Array<MoveValue>`
1488
- *
1489
- * `Option -> MoveValue | null | undefined`
1490
- */
1491
- type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
1492
- /**
1493
- * Move module id is a string representation of Move module.
1494
- * Module name is case-sensitive.
1495
- */
1496
- type MoveModuleId = `${string}::${string}`;
1497
- /**
1498
- * Move function visibility
1499
- */
1500
- declare enum MoveFunctionVisibility {
1501
- PRIVATE = "private",
1502
- PUBLIC = "public",
1503
- FRIEND = "friend"
1504
- }
1505
- /**
1506
- * Move function ability
1507
- */
1508
- declare enum MoveAbility {
1509
- STORE = "store",
1510
- DROP = "drop",
1511
- KEY = "key",
1512
- COPY = "copy"
1513
- }
1514
- /**
1515
- * Move abilities tied to the generic type param and associated with the function that uses it
1516
- */
1517
- type MoveFunctionGenericTypeParam = {
1518
- constraints: Array<MoveAbility>;
1519
- };
1520
- /**
1521
- * Move struct field
1522
- */
1523
- type MoveStructField = {
1524
- name: string;
1525
- type: string;
1526
- };
1527
- /**
1528
- * A Move module
1529
- */
1530
- type MoveModule = {
1531
- address: string;
1532
- name: string;
1533
- /**
1534
- * Friends of the module
1535
- */
1536
- friends: Array<MoveModuleId>;
1537
- /**
1538
- * Public functions of the module
1539
- */
1540
- exposed_functions: Array<MoveFunction>;
1541
- /**
1542
- * Structs of the module
1543
- */
1544
- structs: Array<MoveStruct>;
1545
- };
1546
- /**
1547
- * A move struct
1548
- */
1549
- type MoveStruct = {
1550
- name: string;
1551
- /**
1552
- * Whether the struct is a native struct of Move
1553
- */
1554
- is_native: boolean;
1555
- /**
1556
- * Abilities associated with the struct
1557
- */
1558
- abilities: Array<MoveAbility>;
1559
- /**
1560
- * Generic types associated with the struct
1561
- */
1562
- generic_type_params: Array<MoveFunctionGenericTypeParam>;
1563
- /**
1564
- * Fields associated with the struct
1565
- */
1566
- fields: Array<MoveStructField>;
1567
- };
1568
- /**
1569
- * Move function
1570
- */
1571
- type MoveFunction = {
1572
- name: string;
1573
- visibility: MoveFunctionVisibility;
1574
- /**
1575
- * Whether the function can be called as an entry function directly in a transaction
1576
- */
1577
- is_entry: boolean;
1578
- /**
1579
- * Whether the function is a view function or not
1580
- */
1581
- is_view: boolean;
1582
- /**
1583
- * Generic type params associated with the Move function
1584
- */
1585
- generic_type_params: Array<MoveFunctionGenericTypeParam>;
1586
- /**
1587
- * Parameters associated with the move function
1588
- */
1589
- params: Array<string>;
1590
- /**
1591
- * Return type of the function
1592
- */
1593
- return: Array<string>;
1594
- };
1595
- declare enum RoleType {
1596
- VALIDATOR = "validator",
1597
- FULL_NODE = "full_node"
1598
- }
1599
- type LedgerInfo = {
1600
- /**
1601
- * Chain ID of the current chain
1602
- */
1603
- chain_id: number;
1604
- epoch: string;
1605
- ledger_version: string;
1606
- oldest_ledger_version: string;
1607
- ledger_timestamp: string;
1608
- node_role: RoleType;
1609
- oldest_block_height: string;
1610
- block_height: string;
1611
- /**
1612
- * Git hash of the build of the API endpoint. Can be used to determine the exact
1613
- * software version used by the API endpoint.
1614
- */
1615
- git_hash?: string;
1616
- };
1617
- /**
1618
- * A Block type
1619
- */
1620
- type Block = {
1621
- block_height: string;
1622
- block_hash: string;
1623
- block_timestamp: string;
1624
- first_version: string;
1625
- last_version: string;
1626
- /**
1627
- * The transactions in the block in sequential order
1628
- */
1629
- transactions?: Array<TransactionResponse>;
1630
- };
1631
- /**
1632
- * Table Item request for the GetTableItem API
1633
- */
1634
- type TableItemRequest = {
1635
- key_type: MoveValue;
1636
- value_type: MoveValue;
1637
- /**
1638
- * The value of the table item's key
1639
- */
1640
- key: any;
1641
- };
1642
- /**
1643
- * A list of Authentication Key schemes that are supported by Aptos.
1644
- *
1645
- * They are combinations of signing schemes and derive schemes.
1646
- */
1647
- type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
1648
- declare enum SigningScheme {
1649
- /**
1650
- * For Ed25519PublicKey
1651
- */
1652
- Ed25519 = 0,
1653
- /**
1654
- * For MultiEd25519PublicKey
1655
- */
1656
- MultiEd25519 = 1,
1657
- /**
1658
- * For SingleKey ecdsa
1659
- */
1660
- SingleKey = 2,
1661
- MultiKey = 3
1662
- }
1663
- declare enum SigningSchemeInput {
1664
- /**
1665
- * For Ed25519PublicKey
1666
- */
1667
- Ed25519 = 0,
1668
- /**
1669
- * For Secp256k1Ecdsa
1670
- */
1671
- Secp256k1Ecdsa = 2
1672
- }
1673
- /**
1674
- * Scheme used for deriving account addresses from other data
1675
- */
1676
- declare enum DeriveScheme {
1677
- /**
1678
- * Derives an address using an AUID, used for objects
1679
- */
1680
- DeriveAuid = 251,
1681
- /**
1682
- * Derives an address from another object address
1683
- */
1684
- DeriveObjectAddressFromObject = 252,
1685
- /**
1686
- * Derives an address from a GUID, used for objects
1687
- */
1688
- DeriveObjectAddressFromGuid = 253,
1689
- /**
1690
- * Derives an address from seed bytes, used for named objects
1691
- */
1692
- DeriveObjectAddressFromSeed = 254,
1693
- /**
1694
- * Derives an address from seed bytes, used for resource accounts
1695
- */
1696
- DeriveResourceAccountAddress = 255
1697
- }
1698
- /**
1699
- * Option properties to pass for waitForTransaction() function
1700
- */
1701
- type WaitForTransactionOptions = {
1702
- timeoutSecs?: number;
1703
- checkSuccess?: boolean;
1704
- waitForIndexer?: boolean;
1705
- };
1706
- /**
1707
- * Input type to generate an account using Single Signer
1708
- * Ed25519 or Legacy Ed25519
1709
- */
1710
- type GenerateAccountWithEd25519 = {
1711
- scheme: SigningSchemeInput.Ed25519;
1712
- legacy: boolean;
1713
- };
1714
- /**
1715
- * Input type to generate an account using Single Signer
1716
- * Secp256k1
1717
- */
1718
- type GenerateAccountWithSingleSignerSecp256k1Key = {
1719
- scheme: SigningSchemeInput.Secp256k1Ecdsa;
1720
- legacy?: false;
1721
- };
1722
- type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
1723
-
1724
- /**
1725
- * This interface exists to define Deserializable<T> inputs for functions that
1726
- * deserialize a byte buffer into a type T.
1727
- * It is not intended to be implemented or extended, because Typescript has no support
1728
- * for static methods in interfaces.
1729
- */
1730
- interface Deserializable<T> {
1731
- deserialize(deserializer: Deserializer): T;
1732
- }
1733
- declare class Deserializer {
1734
- private buffer;
1735
- private offset;
1736
- constructor(data: Uint8Array);
1737
- private read;
1738
- /**
1739
- * Deserializes a string. UTF8 string is supported. Reads the string's bytes length "l" first,
1740
- * and then reads "l" bytes of content. Decodes the byte array into a string.
1741
- *
1742
- * BCS layout for "string": string_length | string_content
1743
- * where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
1744
- *
1745
- * @example
1746
- * ```ts
1747
- * const deserializer = new Deserializer(new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
1748
- * assert(deserializer.deserializeStr() === "1234abcd");
1749
- * ```
1750
- */
1751
- deserializeStr(): string;
1752
- /**
1753
- * Deserializes an array of bytes.
1754
- *
1755
- * BCS layout for "bytes": bytes_length | bytes
1756
- * where bytes_length is a u32 integer encoded as a uleb128 integer, equal to the length of the bytes array.
1757
- */
1758
- deserializeBytes(): Uint8Array;
1759
- /**
1760
- * Deserializes an array of bytes. The number of bytes to read is already known.
1761
- *
1762
- */
1763
- deserializeFixedBytes(len: number): Uint8Array;
1764
- /**
1765
- * Deserializes a boolean value.
1766
- *
1767
- * BCS layout for "boolean": One byte. "0x01" for true and "0x00" for false.
1768
- */
1769
- deserializeBool(): boolean;
1770
- /**
1771
- * Deserializes a uint8 number.
1772
- *
1773
- * BCS layout for "uint8": One byte. Binary format in little-endian representation.
1774
- */
1775
- deserializeU8(): Uint8;
1776
- /**
1777
- * Deserializes a uint16 number.
1778
- *
1779
- * BCS layout for "uint16": Two bytes. Binary format in little-endian representation.
1780
- * @example
1781
- * ```ts
1782
- * const deserializer = new Deserializer(new Uint8Array([0x34, 0x12]));
1783
- * assert(deserializer.deserializeU16() === 4660);
1784
- * ```
1785
- */
1786
- deserializeU16(): Uint16;
1787
- /**
1788
- * Deserializes a uint32 number.
1789
- *
1790
- * BCS layout for "uint32": Four bytes. Binary format in little-endian representation.
1791
- * @example
1792
- * ```ts
1793
- * const deserializer = new Deserializer(new Uint8Array([0x78, 0x56, 0x34, 0x12]));
1794
- * assert(deserializer.deserializeU32() === 305419896);
1795
- * ```
1796
- */
1797
- deserializeU32(): Uint32;
1798
- /**
1799
- * Deserializes a uint64 number.
1800
- *
1801
- * BCS layout for "uint64": Eight bytes. Binary format in little-endian representation.
1802
- * @example
1803
- * ```ts
1804
- * const deserializer = new Deserializer(new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
1805
- * assert(deserializer.deserializeU64() === 1311768467750121216);
1806
- * ```
1807
- */
1808
- deserializeU64(): Uint64;
1809
- /**
1810
- * Deserializes a uint128 number.
1811
- *
1812
- * BCS layout for "uint128": Sixteen bytes. Binary format in little-endian representation.
1813
- */
1814
- deserializeU128(): Uint128;
1815
- /**
1816
- * Deserializes a uint256 number.
1817
- *
1818
- * BCS layout for "uint256": Thirty-two bytes. Binary format in little-endian representation.
1819
- */
1820
- deserializeU256(): Uint256;
1821
- /**
1822
- * Deserializes a uleb128 encoded uint32 number.
1823
- *
1824
- * BCS use uleb128 encoding in two cases: (1) lengths of variable-length sequences and (2) tags of enum values
1825
- */
1826
- deserializeUleb128AsU32(): Uint32;
1827
- /**
1828
- * Helper function that primarily exists to support alternative syntax for deserialization.
1829
- * That is, if we have a `const deserializer: new Deserializer(...)`, instead of having to use
1830
- * `MyClass.deserialize(deserializer)`, we can call `deserializer.deserialize(MyClass)`.
1831
- *
1832
- * @example const deserializer = new Deserializer(new Uint8Array([1, 2, 3]));
1833
- * const value = deserializer.deserialize(MyClass); // where MyClass has a `deserialize` function
1834
- * // value is now an instance of MyClass
1835
- * // equivalent to `const value = MyClass.deserialize(deserializer)`
1836
- * @param cls The BCS-deserializable class to deserialize the buffered bytes into.
1837
- *
1838
- * @returns the deserialized value of class type T
1839
- */
1840
- deserialize<T>(cls: Deserializable<T>): T;
1841
- /**
1842
- * Deserializes an array of BCS Deserializable values given an existing Deserializer
1843
- * instance with a loaded byte buffer.
1844
- *
1845
- * @param cls The BCS-deserializable class to deserialize the buffered bytes into.
1846
- * @example
1847
- * // serialize a vector of addresses
1848
- * const addresses = new Array<AccountAddress>(
1849
- * AccountAddress.from("0x1"),
1850
- * AccountAddress.from("0x2"),
1851
- * AccountAddress.from("0xa"),
1852
- * AccountAddress.from("0xb"),
1853
- * );
1854
- * const serializer = new Serializer();
1855
- * serializer.serializeVector(addresses);
1856
- * const serializedBytes = serializer.toUint8Array();
1857
- *
1858
- * // deserialize the bytes into an array of addresses
1859
- * const deserializer = new Deserializer(serializedBytes);
1860
- * const deserializedAddresses = deserializer.deserializeVector(AccountAddress);
1861
- * // deserializedAddresses is now an array of AccountAddress instances
1862
- * @returns an array of deserialized values of type T
1863
- */
1864
- deserializeVector<T>(cls: Deserializable<T>): Array<T>;
1865
- }
1866
-
1867
- /**
1868
- * This error is used to explain why parsing failed.
1869
- */
1870
- declare class ParsingError<T> extends Error {
1871
- /**
1872
- * This provides a programmatic way to access why parsing failed. Downstream devs
1873
- * might want to use this to build their own error messages if the default error
1874
- * messages are not suitable for their use case. This should be an enum.
1875
- */
1876
- invalidReason: T;
1877
- constructor(message: string, invalidReason: T);
1878
- }
1879
- /**
1880
- * Whereas ParsingError is thrown when parsing fails, e.g. in a fromString function,
1881
- * this type is returned from "defensive" functions like isValid.
1882
- */
1883
- type ParsingResult<T> = {
1884
- /**
1885
- * True if valid, false otherwise.
1886
- */
1887
- valid: boolean;
1888
- /**
1889
- * If valid is false, this will be a code explaining why parsing failed.
1890
- */
1891
- invalidReason?: T;
1892
- /**
1893
- * If valid is false, this will be a string explaining why parsing failed.
1894
- */
1895
- invalidReasonMessage?: string;
1896
- };
1897
-
1898
- /**
1899
- * This enum is used to explain why parsing might have failed.
1900
- */
1901
- declare enum HexInvalidReason {
1902
- TOO_SHORT = "too_short",
1903
- INVALID_LENGTH = "invalid_length",
1904
- INVALID_HEX_CHARS = "invalid_hex_chars"
1905
- }
1906
- /**
1907
- * NOTE: Do not use this class when working with account addresses, use AccountAddress.
1908
- *
1909
- * NOTE: When accepting hex data as input to a function, prefer to accept HexInput and
1910
- * then use the static helper methods of this class to convert it into the desired
1911
- * format. This enables the greatest flexibility for the developer.
1912
- *
1913
- * Hex is a helper class for working with hex data. Hex data, when represented as a
1914
- * string, generally looks like this, for example: 0xaabbcc, 45cd32, etc.
1915
- *
1916
- * You might use this class like this:
1917
- *
1918
- * ```ts
1919
- * getTransactionByHash(txnHash: HexInput): Promise<Transaction> {
1920
- * const txnHashString = Hex.fromHexInput(txnHash).toString();
1921
- * return await getTransactionByHashInner(txnHashString);
1922
- * }
1923
- * ```
1924
- *
1925
- * This call to `Hex.fromHexInput().toString()` converts the HexInput to a hex string
1926
- * with a leading 0x prefix, regardless of what the input format was.
1927
- *
1928
- * These are some other ways to chain the functions together:
1929
- * - `Hex.fromHexString({ hexInput: "0x1f" }).toUint8Array()`
1930
- * - `new Hex([1, 3]).toStringWithoutPrefix()`
1931
- */
1932
- declare class Hex {
1933
- private readonly data;
1934
- /**
1935
- * Create a new Hex instance from a Uint8Array.
1936
- *
1937
- * @param data Uint8Array
1938
- */
1939
- constructor(data: Uint8Array);
1940
- /**
1941
- * Get the inner hex data. The inner data is already a Uint8Array so no conversion
1942
- * is taking place here, it just returns the inner data.
1943
- *
1944
- * @returns Hex data as Uint8Array
1945
- */
1946
- toUint8Array(): Uint8Array;
1947
- /**
1948
- * Get the hex data as a string without the 0x prefix.
1949
- *
1950
- * @returns Hex string without 0x prefix
1951
- */
1952
- toStringWithoutPrefix(): string;
1953
- /**
1954
- * Get the hex data as a string with the 0x prefix.
1955
- *
1956
- * @returns Hex string with 0x prefix
1957
- */
1958
- toString(): string;
1959
- /**
1960
- * Static method to convert a hex string to Hex
1961
- *
1962
- * @param str A hex string, with or without the 0x prefix
1963
- *
1964
- * @returns Hex
1965
- */
1966
- static fromHexString(str: string): Hex;
1967
- /**
1968
- * Static method to convert an instance of HexInput to Hex
1969
- *
1970
- * @param hexInput A HexInput (string or Uint8Array)
1971
- *
1972
- * @returns Hex
1973
- */
1974
- static fromHexInput(hexInput: HexInput): Hex;
1975
- /**
1976
- * Check if the string is valid hex.
1977
- *
1978
- * @param str A hex string representing byte data.
1979
- *
1980
- * @returns valid = true if the string is valid, false if not. If the string is not
1981
- * valid, invalidReason and invalidReasonMessage will be set explaining why it is
1982
- * invalid.
1983
- */
1984
- static isValid(str: string): ParsingResult<HexInvalidReason>;
1985
- /**
1986
- * Return whether Hex instances are equal. Hex instances are considered equal if
1987
- * their underlying byte data is identical.
1988
- *
1989
- * @param other The Hex instance to compare to.
1990
- * @returns true if the Hex instances are equal, false if not.
1991
- */
1992
- equals(other: Hex): boolean;
1993
- }
1994
-
1995
- declare abstract class Serializable {
1996
- abstract serialize(serializer: Serializer): void;
1997
- /**
1998
- * Serializes a `Serializable` value to its BCS representation.
1999
- * This function is the Typescript SDK equivalent of `bcs::to_bytes` in Move.
2000
- * @returns the BCS representation of the Serializable instance as a byte buffer
2001
- */
2002
- bcsToBytes(): Uint8Array;
2003
- /**
2004
- * Helper function to get a value's BCS-serialized bytes as a Hex instance.
2005
- * @returns a Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array
2006
- */
2007
- bcsToHex(): Hex;
2008
- }
2009
- declare class Serializer {
2010
- private buffer;
2011
- private offset;
2012
- constructor(length?: number);
2013
- private ensureBufferWillHandleSize;
2014
- protected appendToBuffer(values: Uint8Array): void;
2015
- private serializeWithFunction;
2016
- /**
2017
- * Serializes a string. UTF8 string is supported.
2018
- *
2019
- * The number of bytes in the string content is serialized first, as a uleb128-encoded u32 integer.
2020
- * Then the string content is serialized as UTF8 encoded bytes.
2021
- *
2022
- * BCS layout for "string": string_length | string_content
2023
- * where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
2024
- *
2025
- * @example
2026
- * ```ts
2027
- * const serializer = new Serializer();
2028
- * serializer.serializeStr("1234abcd");
2029
- * assert(serializer.toUint8Array() === new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
2030
- * ```
2031
- */
2032
- serializeStr(value: string): void;
2033
- /**
2034
- * Serializes an array of bytes.
2035
- *
2036
- * BCS layout for "bytes": bytes_length | bytes
2037
- * where bytes_length is a u32 integer encoded as a uleb128 integer, equal to the length of the bytes array.
2038
- */
2039
- serializeBytes(value: Uint8Array): void;
2040
- /**
2041
- * Serializes an array of bytes with known length. Therefore, length doesn't need to be
2042
- * serialized to help deserialization.
2043
- *
2044
- * When deserializing, the number of bytes to deserialize needs to be passed in.
2045
- */
2046
- serializeFixedBytes(value: Uint8Array): void;
2047
- /**
2048
- * Serializes a boolean value.
2049
- *
2050
- * BCS layout for "boolean": One byte. "0x01" for true and "0x00" for false.
2051
- */
2052
- serializeBool(value: boolean): void;
2053
- /**
2054
- * Serializes a uint8 number.
2055
- *
2056
- * BCS layout for "uint8": One byte. Binary format in little-endian representation.
2057
- */
2058
- serializeU8(value: Uint8): void;
2059
- /**
2060
- * Serializes a uint16 number.
2061
- *
2062
- * BCS layout for "uint16": Two bytes. Binary format in little-endian representation.
2063
- * @example
2064
- * ```ts
2065
- * const serializer = new Serializer();
2066
- * serializer.serializeU16(4660);
2067
- * assert(serializer.toUint8Array() === new Uint8Array([0x34, 0x12]));
2068
- * ```
2069
- */
2070
- serializeU16(value: Uint16): void;
2071
- /**
2072
- * Serializes a uint32 number.
2073
- *
2074
- * BCS layout for "uint32": Four bytes. Binary format in little-endian representation.
2075
- * @example
2076
- * ```ts
2077
- * const serializer = new Serializer();
2078
- * serializer.serializeU32(305419896);
2079
- * assert(serializer.toUint8Array() === new Uint8Array([0x78, 0x56, 0x34, 0x12]));
2080
- * ```
2081
- */
2082
- serializeU32(value: Uint32): void;
2083
- /**
2084
- * Serializes a uint64 number.
2085
- *
2086
- * BCS layout for "uint64": Eight bytes. Binary format in little-endian representation.
2087
- * @example
2088
- * ```ts
2089
- * const serializer = new Serializer();
2090
- * serializer.serializeU64(1311768467750121216);
2091
- * assert(serializer.toUint8Array() === new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
2092
- * ```
2093
- */
2094
- serializeU64(value: AnyNumber): void;
2095
- /**
2096
- * Serializes a uint128 number.
2097
- *
2098
- * BCS layout for "uint128": Sixteen bytes. Binary format in little-endian representation.
2099
- */
2100
- serializeU128(value: AnyNumber): void;
2101
- /**
2102
- * Serializes a uint256 number.
2103
- *
2104
- * BCS layout for "uint256": Sixteen bytes. Binary format in little-endian representation.
2105
- */
2106
- serializeU256(value: AnyNumber): void;
2107
- /**
2108
- * Serializes a uint32 number with uleb128.
2109
- *
2110
- * BCS uses uleb128 encoding in two cases: (1) lengths of variable-length sequences and (2) tags of enum values
2111
- */
2112
- serializeU32AsUleb128(val: Uint32): void;
2113
- /**
2114
- * Returns the buffered bytes
2115
- */
2116
- toUint8Array(): Uint8Array;
2117
- /**
2118
- * Serializes a `Serializable` value, facilitating composable serialization.
2119
- *
2120
- * @param value The Serializable value to serialize
2121
- *
2122
- * @example
2123
- * // Define the MoveStruct class that implements the Serializable interface
2124
- * class MoveStruct extends Serializable {
2125
- * constructor(
2126
- * public creatorAddress: AccountAddress, // where AccountAddress extends Serializable
2127
- * public collectionName: string,
2128
- * public tokenName: string
2129
- * ) {}
2130
- *
2131
- * serialize(serializer: Serializer): void {
2132
- * serializer.serialize(this.creatorAddress); // Composable serialization of another Serializable object
2133
- * serializer.serializeStr(this.collectionName);
2134
- * serializer.serializeStr(this.tokenName);
2135
- * }
2136
- * }
2137
- *
2138
- * // Construct a MoveStruct
2139
- * const moveStruct = new MoveStruct(new AccountAddress(...), "MyCollection", "TokenA");
2140
- *
2141
- * // Serialize a string, a u64 number, and a MoveStruct instance.
2142
- * const serializer = new Serializer();
2143
- * serializer.serializeStr("ExampleString");
2144
- * serializer.serializeU64(12345678);
2145
- * serializer.serialize(moveStruct);
2146
- *
2147
- * // Get the bytes from the Serializer instance
2148
- * const serializedBytes = serializer.toUint8Array();
2149
- *
2150
- * @returns the serializer instance
2151
- */
2152
- serialize<T extends Serializable>(value: T): void;
2153
- /**
2154
- * Serializes an array of BCS Serializable values to a serializer instance.
2155
- * Note that this does not return anything. The bytes are added to the serializer instance's byte buffer.
2156
- *
2157
- * @param values The array of BCS Serializable values
2158
- * @example
2159
- * const addresses = new Array<AccountAddress>(
2160
- * AccountAddress.from("0x1"),
2161
- * AccountAddress.from("0x2"),
2162
- * AccountAddress.from("0xa"),
2163
- * AccountAddress.from("0xb"),
2164
- * );
2165
- * const serializer = new Serializer();
2166
- * serializer.serializeVector(addresses);
2167
- * const serializedBytes = serializer.toUint8Array();
2168
- * // serializedBytes is now the BCS-serialized bytes
2169
- * // The equivalent value in Move would be:
2170
- * // `bcs::to_bytes(&vector<address> [@0x1, @0x2, @0xa, @0xb])`;
2171
- */
2172
- serializeVector<T extends Serializable>(values: Array<T>): void;
2173
- serializeOption<T extends Serializable>(value?: T): void;
2174
- serializeOptionStr(value?: string): void;
2175
- }
2176
- declare function ensureBoolean(value: unknown): asserts value is boolean;
2177
- declare const outOfRangeErrorMessage: (value: AnyNumber, min: AnyNumber, max: AnyNumber) => string;
2178
- declare function validateNumberInRange<T extends AnyNumber>(value: T, minValue: T, maxValue: T): void;
2179
-
2180
- interface TransactionArgument extends EntryFunctionArgument, ScriptFunctionArgument {
2181
- }
2182
- interface EntryFunctionArgument {
2183
- /**
2184
- * Serialize an argument to BCS-serialized bytes.
2185
- */
2186
- serialize(serializer: Serializer): void;
2187
- /**
2188
- * Serialize an argument as a type-agnostic, fixed byte sequence. The byte sequence contains
2189
- * the number of the following bytes followed by the BCS-serialized bytes for a typed argument.
2190
- */
2191
- serializeForEntryFunction(serializer: Serializer): void;
2192
- bcsToBytes(): Uint8Array;
2193
- bcsToHex(): Hex;
2194
- }
2195
- interface ScriptFunctionArgument {
2196
- /**
2197
- * Serialize an argument to BCS-serialized bytes.
2198
- */
2199
- serialize(serializer: Serializer): void;
2200
- /**
2201
- * Serialize an argument to BCS-serialized bytes as a type aware byte sequence.
2202
- * The byte sequence contains an enum variant index followed by the BCS-serialized
2203
- * bytes for a typed argument.
2204
- */
2205
- serializeForScriptFunction(serializer: Serializer): void;
2206
- bcsToBytes(): Uint8Array;
2207
- bcsToHex(): Hex;
2208
- }
259
+ asset_type?: InputMaybe<StringComparisonExp>;
260
+ creator_address?: InputMaybe<StringComparisonExp>;
261
+ decimals?: InputMaybe<IntComparisonExp>;
262
+ icon_uri?: InputMaybe<StringComparisonExp>;
263
+ last_transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
264
+ last_transaction_version?: InputMaybe<BigintComparisonExp>;
265
+ name?: InputMaybe<StringComparisonExp>;
266
+ project_uri?: InputMaybe<StringComparisonExp>;
267
+ supply_aggregator_table_handle_v1?: InputMaybe<StringComparisonExp>;
268
+ supply_aggregator_table_key_v1?: InputMaybe<StringComparisonExp>;
269
+ symbol?: InputMaybe<StringComparisonExp>;
270
+ token_standard?: InputMaybe<StringComparisonExp>;
271
+ };
272
+ type JsonbCastExp = {
273
+ String?: InputMaybe<StringComparisonExp>;
274
+ };
275
+ /** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */
276
+ type JsonbComparisonExp = {
277
+ _cast?: InputMaybe<JsonbCastExp>;
278
+ /** is the column contained in the given json value */
279
+ _contained_in?: InputMaybe<Scalars["jsonb"]["input"]>;
280
+ /** does the column contain the given json value at the top level */
281
+ _contains?: InputMaybe<Scalars["jsonb"]["input"]>;
282
+ _eq?: InputMaybe<Scalars["jsonb"]["input"]>;
283
+ _gt?: InputMaybe<Scalars["jsonb"]["input"]>;
284
+ _gte?: InputMaybe<Scalars["jsonb"]["input"]>;
285
+ /** does the string exist as a top-level key in the column */
286
+ _has_key?: InputMaybe<Scalars["String"]["input"]>;
287
+ /** do all of these strings exist as top-level keys in the column */
288
+ _has_keys_all?: InputMaybe<Array<Scalars["String"]["input"]>>;
289
+ /** do any of these strings exist as top-level keys in the column */
290
+ _has_keys_any?: InputMaybe<Array<Scalars["String"]["input"]>>;
291
+ _in?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
292
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
293
+ _lt?: InputMaybe<Scalars["jsonb"]["input"]>;
294
+ _lte?: InputMaybe<Scalars["jsonb"]["input"]>;
295
+ _neq?: InputMaybe<Scalars["jsonb"]["input"]>;
296
+ _nin?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
297
+ };
298
+ /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */
299
+ type NumericComparisonExp = {
300
+ _eq?: InputMaybe<Scalars["numeric"]["input"]>;
301
+ _gt?: InputMaybe<Scalars["numeric"]["input"]>;
302
+ _gte?: InputMaybe<Scalars["numeric"]["input"]>;
303
+ _in?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
304
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
305
+ _lt?: InputMaybe<Scalars["numeric"]["input"]>;
306
+ _lte?: InputMaybe<Scalars["numeric"]["input"]>;
307
+ _neq?: InputMaybe<Scalars["numeric"]["input"]>;
308
+ _nin?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
309
+ };
310
+ /** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
311
+ type TimestampComparisonExp = {
312
+ _eq?: InputMaybe<Scalars["timestamp"]["input"]>;
313
+ _gt?: InputMaybe<Scalars["timestamp"]["input"]>;
314
+ _gte?: InputMaybe<Scalars["timestamp"]["input"]>;
315
+ _in?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
316
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
317
+ _lt?: InputMaybe<Scalars["timestamp"]["input"]>;
318
+ _lte?: InputMaybe<Scalars["timestamp"]["input"]>;
319
+ _neq?: InputMaybe<Scalars["timestamp"]["input"]>;
320
+ _nin?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
321
+ };
2209
322
 
2210
323
  /**
2211
324
  * This class exists to represent a contiguous sequence of already serialized BCS-bytes.
@@ -2602,238 +715,6 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
2602
715
  static deserialize<U extends Serializable & EntryFunctionArgument>(deserializer: Deserializer, cls: Deserializable<U>): MoveOption<U>;
2603
716
  }
2604
717
 
2605
- /**
2606
- * This enum is used to explain why an address was invalid.
2607
- */
2608
- declare enum AddressInvalidReason {
2609
- INCORRECT_NUMBER_OF_BYTES = "incorrect_number_of_bytes",
2610
- INVALID_HEX_CHARS = "invalid_hex_chars",
2611
- TOO_SHORT = "too_short",
2612
- TOO_LONG = "too_long",
2613
- LEADING_ZERO_X_REQUIRED = "leading_zero_x_required",
2614
- LONG_FORM_REQUIRED_UNLESS_SPECIAL = "long_form_required_unless_special",
2615
- INVALID_PADDING_ZEROES = "INVALID_PADDING_ZEROES"
2616
- }
2617
- type AccountAddressInput = HexInput | AccountAddress;
2618
- /**
2619
- * NOTE: Only use this class for account addresses. For other hex data, e.g. transaction
2620
- * hashes, use the Hex class.
2621
- *
2622
- * AccountAddress is used for working with account addresses. Account addresses, when
2623
- * represented as a string, generally look like these examples:
2624
- * - 0x1
2625
- * - 0xaa86fe99004361f747f91342ca13c426ca0cccb0c1217677180c9493bad6ef0c
2626
- *
2627
- * Proper formatting and parsing of account addresses is defined by AIP-40.
2628
- * To learn more about the standard, read the AIP here:
2629
- * https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
2630
- *
2631
- * The comments in this class make frequent reference to the LONG and SHORT formats,
2632
- * as well as "special" addresses. To learn what these refer to see AIP-40.
2633
- */
2634
- declare class AccountAddress extends Serializable implements TransactionArgument {
2635
- /**
2636
- * This is the internal representation of an account address.
2637
- */
2638
- readonly data: Uint8Array;
2639
- /**
2640
- * The number of bytes that make up an account address.
2641
- */
2642
- static readonly LENGTH: number;
2643
- /**
2644
- * The length of an address string in LONG form without a leading 0x.
2645
- */
2646
- static readonly LONG_STRING_LENGTH: number;
2647
- static ZERO: AccountAddress;
2648
- static ONE: AccountAddress;
2649
- static TWO: AccountAddress;
2650
- static THREE: AccountAddress;
2651
- static FOUR: AccountAddress;
2652
- /**
2653
- * Creates an instance of AccountAddress from a Uint8Array.
2654
- *
2655
- * @param args.data A Uint8Array representing an account address.
2656
- */
2657
- constructor(input: Uint8Array);
2658
- /**
2659
- * Returns whether an address is special, where special is defined as 0x0 to 0xf
2660
- * inclusive. In other words, the last byte of the address must be < 0b10000 (16)
2661
- * and every other byte must be zero.
2662
- *
2663
- * For more information on how special addresses are defined see AIP-40:
2664
- * https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
2665
- *
2666
- * @returns true if the address is special, false if not.
2667
- */
2668
- isSpecial(): boolean;
2669
- /**
2670
- * Return the AccountAddress as a string as per AIP-40.
2671
- * https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
2672
- *
2673
- * In short, it means that special addresses are represented in SHORT form, meaning
2674
- * 0x0 through to 0xf inclusive, and every other address is represented in LONG form,
2675
- * meaning 0x + 64 hex characters.
2676
- *
2677
- * @returns AccountAddress as a string conforming to AIP-40.
2678
- */
2679
- toString(): `0x${string}`;
2680
- /**
2681
- * NOTE: Prefer to use `toString` where possible.
2682
- *
2683
- * Return the AccountAddress as a string as per AIP-40 but without the leading 0x.
2684
- *
2685
- * Learn more by reading the docstring of `toString`.
2686
- *
2687
- * @returns AccountAddress as a string conforming to AIP-40 but without the leading 0x.
2688
- */
2689
- toStringWithoutPrefix(): string;
2690
- /**
2691
- * NOTE: Prefer to use `toString` where possible.
2692
- *
2693
- * Whereas toString will format special addresses (as defined by isSpecial) using the
2694
- * SHORT form (no leading 0s), this format the address in the LONG format
2695
- * unconditionally.
2696
- *
2697
- * This means it will be 0x + 64 hex characters.
2698
- *
2699
- * @returns AccountAddress as a string in LONG form.
2700
- */
2701
- toStringLong(): `0x${string}`;
2702
- /**
2703
- * NOTE: Prefer to use `toString` where possible.
2704
- *
2705
- * Whereas toString will format special addresses (as defined by isSpecial) using the
2706
- * SHORT form (no leading 0s), this function will include leading zeroes. The string
2707
- * will not have a leading zero.
2708
- *
2709
- * This means it will be 64 hex characters without a leading 0x.
2710
- *
2711
- * @returns AccountAddress as a string in LONG form without a leading 0x.
2712
- */
2713
- toStringLongWithoutPrefix(): string;
2714
- /**
2715
- * Get the inner hex data. The inner data is already a Uint8Array so no conversion
2716
- * is taking place here, it just returns the inner data.
2717
- *
2718
- * @returns Hex data as Uint8Array
2719
- */
2720
- toUint8Array(): Uint8Array;
2721
- /**
2722
- * Serialize the AccountAddress to a Serializer instance's data buffer.
2723
- * @param serializer The serializer to serialize the AccountAddress to.
2724
- * @returns void
2725
- * @example
2726
- * const serializer = new Serializer();
2727
- * const address = AccountAddress.fromString("0x1");
2728
- * address.serialize(serializer);
2729
- * const bytes = serializer.toUint8Array();
2730
- * // `bytes` is now the BCS-serialized address.
2731
- */
2732
- serialize(serializer: Serializer): void;
2733
- serializeForEntryFunction(serializer: Serializer): void;
2734
- serializeForScriptFunction(serializer: Serializer): void;
2735
- /**
2736
- * Deserialize an AccountAddress from the byte buffer in a Deserializer instance.
2737
- * @param deserializer The deserializer to deserialize the AccountAddress from.
2738
- * @returns An instance of AccountAddress.
2739
- * @example
2740
- * const bytes = hexToBytes("0x0102030405060708091011121314151617181920212223242526272829303132");
2741
- * const deserializer = new Deserializer(bytes);
2742
- * const address = AccountAddress.deserialize(deserializer);
2743
- * // `address` is now an instance of AccountAddress.
2744
- */
2745
- static deserialize(deserializer: Deserializer): AccountAddress;
2746
- /**
2747
- * NOTE: This function has strict parsing behavior. For relaxed behavior, please use
2748
- * the `fromString` function.
2749
- *
2750
- * Creates an instance of AccountAddress from a hex string.
2751
- *
2752
- * This function allows only the strictest formats defined by AIP-40. In short this
2753
- * means only the following formats are accepted:
2754
- *
2755
- * - LONG
2756
- * - SHORT for special addresses
2757
- *
2758
- * Where:
2759
- * - LONG is defined as 0x + 64 hex characters.
2760
- * - SHORT for special addresses is 0x0 to 0xf inclusive without padding zeroes.
2761
- *
2762
- * This means the following are not accepted:
2763
- * - SHORT for non-special addresses.
2764
- * - Any address without a leading 0x.
2765
- *
2766
- * Learn more about the different address formats by reading AIP-40:
2767
- * https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
2768
- *
2769
- * @param input A hex string representing an account address.
2770
- *
2771
- * @returns An instance of AccountAddress.
2772
- */
2773
- static fromStringStrict(input: string): AccountAddress;
2774
- /**
2775
- * NOTE: This function has relaxed parsing behavior. For strict behavior, please use
2776
- * the `fromStringStrict` function. Where possible use `fromStringStrict` rather than this
2777
- * function, `fromString` is only provided for backwards compatibility.
2778
- *
2779
- * Creates an instance of AccountAddress from a hex string.
2780
- *
2781
- * This function allows all formats defined by AIP-40. In short this means the
2782
- * following formats are accepted:
2783
- *
2784
- * - LONG, with or without leading 0x
2785
- * - SHORT, with or without leading 0x
2786
- *
2787
- * Where:
2788
- * - LONG is 64 hex characters.
2789
- * - SHORT is 1 to 63 hex characters inclusive.
2790
- * - Padding zeroes are allowed, e.g. 0x0123 is valid.
2791
- *
2792
- * Learn more about the different address formats by reading AIP-40:
2793
- * https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
2794
- *
2795
- * @param input A hex string representing an account address.
2796
- *
2797
- * @returns An instance of AccountAddress.
2798
- */
2799
- static fromString(input: string): AccountAddress;
2800
- /**
2801
- * Convenience method for creating an AccountAddress from all known inputs.
2802
- *
2803
- * This handles, Uint8array, string, and AccountAddress itself
2804
- * @param input
2805
- */
2806
- static from(input: AccountAddressInput): AccountAddress;
2807
- /**
2808
- * Convenience method for creating an AccountAddress from all known inputs.
2809
- *
2810
- * This handles, Uint8array, string, and AccountAddress itself
2811
- * @param input
2812
- */
2813
- static fromStrict(input: AccountAddressInput): AccountAddress;
2814
- /**
2815
- * Check if the string is a valid AccountAddress.
2816
- *
2817
- * @param args.input A hex string representing an account address.
2818
- * @param args.strict If true, use strict parsing behavior. If false, use relaxed parsing behavior.
2819
- *
2820
- * @returns valid = true if the string is valid, valid = false if not. If the string
2821
- * is not valid, invalidReason will be set explaining why it is invalid.
2822
- */
2823
- static isValid(args: {
2824
- input: AccountAddressInput;
2825
- strict?: boolean;
2826
- }): ParsingResult<AddressInvalidReason>;
2827
- /**
2828
- * Return whether AccountAddresses are equal. AccountAddresses are considered equal
2829
- * if their underlying byte data is identical.
2830
- *
2831
- * @param other The AccountAddress to compare to.
2832
- * @returns true if the AccountAddresses are equal, false if not.
2833
- */
2834
- equals(other: AccountAddress): boolean;
2835
- }
2836
-
2837
718
  /**
2838
719
  * Each account stores an authentication key. Authentication key enables account owners to rotate
2839
720
  * their private key(s) associated with the account without changing the address that hosts their account.
@@ -3394,9 +1275,15 @@ declare class MultiKey extends AccountPublicKey {
3394
1275
  createBitmap(args: {
3395
1276
  bits: number[];
3396
1277
  }): Uint8Array;
1278
+ /**
1279
+ * Get the index of the provided public key.
1280
+ *
1281
+ * @param publicKey array of the index mapping to the matching public keys
1282
+ * @returns the corresponding index of the publicKey, if it exists
1283
+ */
3397
1284
  getIndex(publicKey: PublicKey): number;
3398
1285
  }
3399
- declare class MultiSignature extends Signature {
1286
+ declare class MultiKeySignature extends Signature {
3400
1287
  /**
3401
1288
  * Number of bytes in the bitmap representing who signed the transaction (32-bits)
3402
1289
  */
@@ -3448,7 +1335,7 @@ declare class MultiSignature extends Signature {
3448
1335
  }): Uint8Array;
3449
1336
  toUint8Array(): Uint8Array;
3450
1337
  serialize(serializer: Serializer): void;
3451
- static deserialize(deserializer: Deserializer): MultiSignature;
1338
+ static deserialize(deserializer: Deserializer): MultiKeySignature;
3452
1339
  }
3453
1340
 
3454
1341
  /**
@@ -3900,8 +1787,8 @@ declare class AccountAuthenticatorSingleKey extends AccountAuthenticator {
3900
1787
  */
3901
1788
  declare class AccountAuthenticatorMultiKey extends AccountAuthenticator {
3902
1789
  readonly public_keys: MultiKey;
3903
- readonly signatures: MultiSignature;
3904
- constructor(public_keys: MultiKey, signatures: MultiSignature);
1790
+ readonly signatures: MultiKeySignature;
1791
+ constructor(public_keys: MultiKey, signatures: MultiKeySignature);
3905
1792
  serialize(serializer: Serializer): void;
3906
1793
  static load(deserializer: Deserializer): AccountAuthenticatorMultiKey;
3907
1794
  }
@@ -4899,9 +2786,37 @@ declare class SingleKeyAccount implements Account$1 {
4899
2786
  * @param args.mnemonic the mnemonic seed phrase of the account
4900
2787
  */
4901
2788
  static fromDerivationPath(args: SingleKeySignerFromDerivationPathArgs): SingleKeyAccount;
2789
+ /**
2790
+ * Verify the given message and signature with the public key.
2791
+ *
2792
+ * @param args.message raw message data in HexInput format
2793
+ * @param args.signature signed message Signature
2794
+ * @returns
2795
+ */
4902
2796
  verifySignature(args: VerifySingleKeySignatureArgs): boolean;
4903
- signWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
2797
+ /**
2798
+ * Sign a message using the account's private key.
2799
+ * @param message the signing message, as binary input
2800
+ * @return the AccountAuthenticator containing the signature, together with the account's public key
2801
+ */
2802
+ signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey;
2803
+ /**
2804
+ * Sign a transaction using the account's private key.
2805
+ * @param transaction the raw transaction
2806
+ * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
2807
+ */
2808
+ signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
2809
+ /**
2810
+ * Sign the given message using the account's private key.
2811
+ * @param message in HexInput format
2812
+ * @returns Signature
2813
+ */
4904
2814
  sign(message: HexInput): AnySignature;
2815
+ /**
2816
+ * Sign the given transaction using the account's private key.
2817
+ * @param transaction the transaction to be signed
2818
+ * @returns Signature
2819
+ */
4905
2820
  signTransaction(transaction: AnyRawTransaction): AnySignature;
4906
2821
  }
4907
2822
 
@@ -5067,22 +2982,35 @@ declare abstract class Account$1 {
5067
2982
  static authKey(args: {
5068
2983
  publicKey: AccountPublicKey;
5069
2984
  }): AuthenticationKey;
2985
+ /**
2986
+ * Sign a message using the available signing capabilities.
2987
+ * @param message the signing message, as binary input
2988
+ * @return the AccountAuthenticator containing the signature, together with the account's public key
2989
+ */
2990
+ abstract signWithAuthenticator(message: HexInput): AccountAuthenticator;
5070
2991
  /**
5071
2992
  * Sign a transaction using the available signing capabilities.
5072
2993
  * @param transaction the raw transaction
5073
- * @return the AccountAuthenticator containing the signature og the transaction, together with the account's public key
2994
+ * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
5074
2995
  */
5075
- abstract signWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticator;
2996
+ abstract signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticator;
5076
2997
  /**
5077
- * Sign the given message with the private key.
2998
+ * Sign the given message using the available signing capabilities.
5078
2999
  * @param message in HexInput format
5079
- * @returns AccountSignature
3000
+ * @returns Signature
5080
3001
  */
5081
3002
  abstract sign(message: HexInput): Signature;
3003
+ /**
3004
+ * Sign the given transaction using the available signing capabilities.
3005
+ * @param transaction the transaction to be signed
3006
+ * @returns Signature
3007
+ */
5082
3008
  abstract signTransaction(transaction: AnyRawTransaction): Signature;
5083
3009
  /**
3010
+ * Verify the given message and signature with the public key.
5084
3011
  * @param args.message raw message data in HexInput format
5085
- * @param args.signature signed message signature
3012
+ * @param args.signature signed message Signature
3013
+ * @returns
5086
3014
  */
5087
3015
  verifySignature(args: VerifySignatureArgs): boolean;
5088
3016
  }
@@ -5126,9 +3054,37 @@ declare class Ed25519Account implements Account$1 {
5126
3054
  * @param args.mnemonic the mnemonic seed phrase of the account
5127
3055
  */
5128
3056
  static fromDerivationPath(args: Ed25519SignerFromDerivationPathArgs): Ed25519Account;
3057
+ /**
3058
+ * Verify the given message and signature with the public key.
3059
+ *
3060
+ * @param args.message raw message data in HexInput format
3061
+ * @param args.signature signed message Signature
3062
+ * @returns
3063
+ */
5129
3064
  verifySignature(args: VerifyEd25519SignatureArgs): boolean;
5130
- signWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorEd25519;
3065
+ /**
3066
+ * Sign a message using the account's Ed25519 private key.
3067
+ * @param message the signing message, as binary input
3068
+ * @return the AccountAuthenticator containing the signature, together with the account's public key
3069
+ */
3070
+ signWithAuthenticator(message: HexInput): AccountAuthenticatorEd25519;
3071
+ /**
3072
+ * Sign a transaction using the account's Ed25519 private key.
3073
+ * @param transaction the raw transaction
3074
+ * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
3075
+ */
3076
+ signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorEd25519;
3077
+ /**
3078
+ * Sign the given message using the account's Ed25519 private key.
3079
+ * @param message in HexInput format
3080
+ * @returns Signature
3081
+ */
5131
3082
  sign(message: HexInput): Ed25519Signature;
3083
+ /**
3084
+ * Sign the given transaction using the available signing capabilities.
3085
+ * @param transaction the transaction to be signed
3086
+ * @returns Signature
3087
+ */
5132
3088
  signTransaction(transaction: AnyRawTransaction): Ed25519Signature;
5133
3089
  }
5134
3090
 
@@ -5173,7 +3129,7 @@ type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;
5173
3129
  interface ProofFetchEvents {
5174
3130
  proofFetchFinish: (status: ProofFetchStatus) => void;
5175
3131
  }
5176
- declare class KeylessAccount implements Account$1 {
3132
+ declare class KeylessAccount extends Serializable implements Account$1 {
5177
3133
  static readonly PEPPER_LENGTH: number;
5178
3134
  static readonly SLIP_0010_SEED: string;
5179
3135
  publicKey: KeylessPublicKey;
@@ -5206,7 +3162,8 @@ declare class KeylessAccount implements Account$1 {
5206
3162
  isExpired(): boolean;
5207
3163
  bcsToBytes(): Uint8Array;
5208
3164
  bcsToHex(): Hex;
5209
- signWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
3165
+ signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey;
3166
+ signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
5210
3167
  waitForProofFetch(): Promise<void>;
5211
3168
  sign(data: HexInput): Signature;
5212
3169
  signTransaction(transaction: AnyRawTransaction): Signature;
@@ -5227,6 +3184,18 @@ declare class KeylessAccount implements Account$1 {
5227
3184
  static fromDerivationPath(path: string, seed: Uint8Array): Uint8Array;
5228
3185
  }
5229
3186
 
3187
+ interface VerifyMultiKeySignatureArgs {
3188
+ message: HexInput;
3189
+ signature: MultiKeySignature;
3190
+ }
3191
+ /**
3192
+ * Signer implementation for the MultiKey authentication scheme.
3193
+ *
3194
+ * This accounts to use a M of N signing scheme. M and N are specified in the {@link MultiKey}
3195
+ * It signs messages via the array of M number of Accounts that individually correspond to a public key in the {@link MultiKey}.
3196
+ *
3197
+ * Note: Generating a signer instance does not create the account on-chain.
3198
+ */
5230
3199
  declare class MultiKeyAccount implements Account$1 {
5231
3200
  /**
5232
3201
  * Public key associated with the account
@@ -5240,54 +3209,77 @@ declare class MultiKeyAccount implements Account$1 {
5240
3209
  * Signing scheme used to sign transactions
5241
3210
  */
5242
3211
  readonly signingScheme: SigningScheme;
5243
- signers: Account$1[];
5244
- signaturesBitmap: Uint8Array;
5245
3212
  /**
5246
- * constructor for Account
5247
- *
5248
- * Need to update this to use the new crypto library if new schemes are added.
5249
- *
5250
- * @param args.privateKey PrivateKey - private key of the account
5251
- * @param args.address AccountAddress - address of the account
5252
- * @param args.legacy optional. If set to false, the keypair authentication keys will be derived with a unified scheme.
5253
- * Defaults to deriving an authentication key with the legacy scheme.
3213
+ * The signers used to sign messages. These signers should correspond to public keys in the
3214
+ * MultiKeyAccount's public key. The number of signers should be equal or greater
3215
+ * than this.publicKey.signaturesRequired
3216
+ */
3217
+ readonly signers: Account$1[];
3218
+ /**
3219
+ * An array of indicies where for signer[i], signerIndicies[i] is the index of the corresponding public key in
3220
+ * publicKey.publicKeys. Used to derive the right public key to use for verification.
3221
+ */
3222
+ readonly signerIndicies: number[];
3223
+ readonly signaturesBitmap: Uint8Array;
3224
+ /**
3225
+ * constructor for MultiKeyAccount
5254
3226
  *
5255
- * This method is private because it should only be called by the factory static methods.
5256
- * @returns Account
3227
+ * @param args.multiKey the multikey of the account which consists of N public keys and a number M which is
3228
+ * the number of required signatures.
3229
+ * @param args.signers an array of M signers that will be used to sign the transaction
3230
+ * @returns MultiKeyAccount
5257
3231
  */
5258
3232
  constructor(args: {
5259
3233
  multiKey: MultiKey;
5260
3234
  signers: Account$1[];
5261
3235
  });
3236
+ /**
3237
+ * Static constructor for MultiKeyAccount
3238
+ *
3239
+ * @param args.publicKeys the N public keys of the MultiKeyAccount
3240
+ * @param args.signaturesRequired the number of signatures required
3241
+ * @param args.signers an array of M signers that will be used to sign the transaction
3242
+ * @returns MultiKeyAccount
3243
+ */
5262
3244
  static fromPublicKeysAndSigners(args: {
5263
3245
  publicKeys: PublicKey[];
5264
3246
  signaturesRequired: number;
5265
3247
  signers: Account$1[];
5266
3248
  }): MultiKeyAccount;
5267
3249
  static isMultiKeySigner(account: Account$1): account is MultiKeyAccount;
5268
- signWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorMultiKey;
3250
+ /**
3251
+ * Sign a message using the account's signers.
3252
+ * @param message the signing message, as binary input
3253
+ * @return the AccountAuthenticator containing the signature, together with the account's public key
3254
+ */
3255
+ signWithAuthenticator(message: HexInput): AccountAuthenticatorMultiKey;
3256
+ /**
3257
+ * Sign a transaction using the account's signers.
3258
+ * @param transaction the raw transaction
3259
+ * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
3260
+ */
3261
+ signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorMultiKey;
5269
3262
  waitForProofFetch(): Promise<void>;
5270
3263
  /**
5271
- * Sign the given message with the private key.
5272
- *
5273
- * TODO: Add sign transaction or specific types
5274
- *
5275
- * @param data in HexInput format
5276
- * @returns Signature
3264
+ * Sign the given message using the MultiKeyAccount's signers
3265
+ * @param message in HexInput format
3266
+ * @returns MultiKeySignature
3267
+ */
3268
+ sign(data: HexInput): MultiKeySignature;
3269
+ /**
3270
+ * Sign the given transaction using the MultiKeyAccount's signers
3271
+ * @param transaction the transaction to be signed
3272
+ * @returns MultiKeySignature
5277
3273
  */
5278
- sign(data: HexInput): MultiSignature;
5279
- signTransaction(transaction: AnyRawTransaction): MultiSignature;
3274
+ signTransaction(transaction: AnyRawTransaction): MultiKeySignature;
5280
3275
  /**
5281
3276
  * Verify the given message and signature with the public key.
5282
3277
  *
5283
3278
  * @param args.message raw message data in HexInput format
5284
- * @param args.signature signed message Signature
5285
- * @returns
3279
+ * @param args.signatures signed message MultiKeySignature
3280
+ * @returns boolean
5286
3281
  */
5287
- verifySignature(args: {
5288
- message: HexInput;
5289
- signature: Signature;
5290
- }): boolean;
3282
+ verifySignature(args: VerifyMultiKeySignatureArgs): boolean;
5291
3283
  }
5292
3284
 
5293
3285
  /**
@@ -6435,16 +4427,6 @@ declare function hashValues(input: (Uint8Array | string)[]): Uint8Array;
6435
4427
  * @param args InputSubmitTransactionData
6436
4428
  */
6437
4429
  declare function generateUserTransactionHash(args: InputSubmitTransactionData): string;
6438
- /**
6439
- * Generate a multi signers signed transaction that can be submitted to chain
6440
- *
6441
- * @param transaction MultiAgentRawTransaction | FeePayerRawTransaction
6442
- * @param senderAuthenticator The account authenticator of the transaction sender
6443
- * @param secondarySignerAuthenticators The extra signers account Authenticators
6444
- *
6445
- * @returns A SignedTransaction
6446
- */
6447
- declare function generateMultiSignersSignedTransaction(transaction: MultiAgentRawTransaction | FeePayerRawTransaction, senderAuthenticator: AccountAuthenticator, feePayerAuthenticator?: AccountAuthenticator, additionalSignersAuthenticators?: Array<AccountAuthenticator>): Uint8Array;
6448
4430
 
6449
4431
  /**
6450
4432
  * Convert type arguments to only type tags, allowing for string representations of type tags
@@ -6494,8 +4476,33 @@ declare function checkOrConvertArgument(arg: SimpleEntryFunctionArgumentTypes |
6494
4476
  * @returns FeePayerRawTransaction | MultiAgentRawTransaction | RawTransaction
6495
4477
  */
6496
4478
  declare function deriveTransactionType(transaction: AnyRawTransaction): AnyRawTransactionInstance;
4479
+ /**
4480
+ * Generates the 'signing message' form of a message to be signed.
4481
+ *
4482
+ * @param bytes The byte representation of the message to be signed and sent to the chain
4483
+ * @param domainSeparator A domain separator that starts with 'APTOS::'
4484
+ *
4485
+ * @returns The Uint8Array of the signing message
4486
+ */
6497
4487
  declare function generateSigningMessage(bytes: Uint8Array, domainSeparator: string): Uint8Array;
6498
- declare function generateSigningMessageForSerializable(obj: Serializable): Uint8Array;
4488
+ /**
4489
+ * Generates the 'signing message' form of a serilizable value. It bcs serializes the value and uses the name of
4490
+ * its constructor as the domain separator.
4491
+ *
4492
+ * @param serializable An object that has a bcs serialized form
4493
+ *
4494
+ * @returns The Uint8Array of the signing message
4495
+ */
4496
+ declare function generateSigningMessageForSerializable(serializable: Serializable): Uint8Array;
4497
+ /**
4498
+ * Generates the 'signing message' form of a transaction. It derives the type of transaction and
4499
+ * applies the appropriate domain separator based on if there is extra data such as a fee payer or
4500
+ * secondary signers.
4501
+ *
4502
+ * @param transaction A transaction that is to be signed
4503
+ *
4504
+ * @returns The Uint8Array of the signing message
4505
+ */
6499
4506
  declare function generateSigningMessageForTransaction(transaction: AnyRawTransaction): Uint8Array;
6500
4507
 
6501
4508
  declare enum TypeTagParserErrorType {
@@ -8019,4 +6026,4 @@ declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAp
8019
6026
  declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
8020
6027
  declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
8021
6028
 
8022
- export { APTOS_BIP44_DEFAULT_DERIVATION_PATH, APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountPublicKey, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, type DeserializableClass, Deserializer, type DirectWriteSet, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, EphemeralCertificate, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, EphemeralSignatureVariant, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, type FaucetConfig, FeePayerRawTransaction, FixedBytes, type FullNodeConfig, type FunctionABI, type GasEstimation, type GenerateAccount, type GenerateAccountArgs, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, KeylessAccount, KeylessPublicKey, KeylessSignature, type LedgerInfo, type LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiSig, MultiSigTransactionPayload, MultiSignature, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, NetworkToPepperAPI, NetworkToProverAPI, OpenIdSignature, OpenIdSignatureOrZkProof, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedGroth16Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, computeAddressSeed, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, fromDerivationPath, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
6029
+ export { APTOS_BIP44_DEFAULT_DERIVATION_PATH, APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, KeylessAccount, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OpenIdSignature, OpenIdSignatureOrZkProof, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedGroth16Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, computeAddressSeed, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, fromDerivationPath, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };