@aptos-labs/ts-sdk 0.0.3 → 0.0.5

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 (476) hide show
  1. package/README.md +1 -0
  2. package/dist/{cjs → browser}/index.d.ts +431 -237
  3. package/dist/browser/index.global.js +44 -42
  4. package/dist/browser/index.global.js.map +1 -1
  5. package/dist/common/index.d.ts +5831 -0
  6. package/dist/common/index.js +406 -0
  7. package/dist/common/index.js.map +1 -0
  8. package/dist/esm/api/account.d.ts +292 -0
  9. package/dist/esm/api/account.mjs +2 -0
  10. package/dist/esm/api/account.mjs.map +1 -0
  11. package/dist/esm/api/ans.d.ts +79 -0
  12. package/dist/esm/api/ans.mjs +2 -0
  13. package/dist/esm/api/ans.mjs.map +1 -0
  14. package/dist/esm/api/aptos.d.ts +72 -0
  15. package/dist/esm/api/aptos.mjs +2 -0
  16. package/dist/esm/api/aptos.mjs.map +1 -0
  17. package/dist/esm/api/aptosConfig.d.ts +51 -0
  18. package/dist/esm/api/aptosConfig.mjs +2 -0
  19. package/dist/esm/api/aptosConfig.mjs.map +1 -0
  20. package/dist/esm/api/coin.d.ts +59 -0
  21. package/dist/esm/api/coin.mjs +2 -0
  22. package/dist/esm/api/coin.mjs.map +1 -0
  23. package/dist/esm/api/digitalAsset.d.ts +174 -0
  24. package/dist/esm/api/digitalAsset.mjs +2 -0
  25. package/dist/esm/api/digitalAsset.mjs.map +1 -0
  26. package/dist/esm/api/event.d.ts +74 -0
  27. package/dist/esm/api/event.mjs +2 -0
  28. package/dist/esm/api/event.mjs.map +1 -0
  29. package/dist/esm/api/faucet.d.ts +37 -0
  30. package/dist/esm/api/faucet.mjs +2 -0
  31. package/dist/esm/api/faucet.mjs.map +1 -0
  32. package/dist/esm/api/fungibleAsset.d.ts +72 -0
  33. package/dist/esm/api/fungibleAsset.mjs +2 -0
  34. package/dist/esm/api/fungibleAsset.mjs.map +1 -0
  35. package/dist/esm/api/general.d.ts +150 -0
  36. package/dist/esm/api/general.mjs +2 -0
  37. package/dist/esm/api/general.mjs.map +1 -0
  38. package/dist/esm/api/index.d.ts +46 -0
  39. package/dist/esm/api/index.mjs +2 -0
  40. package/dist/esm/api/index.mjs.map +1 -0
  41. package/dist/esm/api/staking.d.ts +53 -0
  42. package/dist/esm/api/staking.mjs +2 -0
  43. package/dist/esm/api/staking.mjs.map +1 -0
  44. package/dist/esm/api/transaction.d.ts +101 -0
  45. package/dist/esm/api/transaction.mjs +2 -0
  46. package/dist/esm/api/transaction.mjs.map +1 -0
  47. package/dist/esm/api/transactionSubmission.d.ts +142 -0
  48. package/dist/esm/api/transactionSubmission.mjs +2 -0
  49. package/dist/esm/api/transactionSubmission.mjs.map +1 -0
  50. package/dist/esm/bcs/consts.d.ts +14 -0
  51. package/dist/esm/bcs/consts.mjs +2 -0
  52. package/dist/esm/bcs/consts.mjs.map +1 -0
  53. package/dist/esm/bcs/deserializer.d.ts +150 -0
  54. package/dist/esm/bcs/deserializer.mjs +2 -0
  55. package/dist/esm/bcs/deserializer.mjs.map +1 -0
  56. package/dist/esm/bcs/index.d.ts +14 -0
  57. package/dist/esm/bcs/index.mjs +2 -0
  58. package/dist/esm/bcs/index.mjs.map +1 -0
  59. package/dist/esm/bcs/serializable/entryFunctionBytes.d.ts +40 -0
  60. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +2 -0
  61. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs.map +1 -0
  62. package/dist/esm/bcs/serializable/fixedBytes.d.ts +52 -0
  63. package/dist/esm/bcs/serializable/fixedBytes.mjs +2 -0
  64. package/dist/esm/bcs/serializable/fixedBytes.mjs.map +1 -0
  65. package/dist/esm/bcs/serializable/movePrimitives.d.ts +69 -0
  66. package/dist/esm/bcs/serializable/movePrimitives.mjs +2 -0
  67. package/dist/esm/bcs/serializable/movePrimitives.mjs.map +1 -0
  68. package/dist/esm/bcs/serializable/moveStructs.d.ts +284 -0
  69. package/dist/esm/bcs/serializable/moveStructs.mjs +2 -0
  70. package/dist/esm/bcs/serializable/moveStructs.mjs.map +1 -0
  71. package/dist/esm/bcs/serializer.d.ts +192 -0
  72. package/dist/esm/bcs/serializer.mjs +2 -0
  73. package/dist/esm/bcs/serializer.mjs.map +1 -0
  74. package/dist/esm/chunk-2444YR3Y.mjs +2 -0
  75. package/dist/esm/chunk-2444YR3Y.mjs.map +1 -0
  76. package/dist/esm/chunk-27P7PELS.mjs +2 -0
  77. package/dist/esm/chunk-27P7PELS.mjs.map +1 -0
  78. package/dist/esm/chunk-2B5QXKPU.mjs +2 -0
  79. package/dist/esm/chunk-2B5QXKPU.mjs.map +1 -0
  80. package/dist/esm/chunk-2MQZUGO6.mjs +2 -0
  81. package/dist/esm/chunk-2MQZUGO6.mjs.map +1 -0
  82. package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
  83. package/dist/esm/chunk-3JPVQHOR.mjs.map +1 -0
  84. package/dist/esm/chunk-3OJN4I42.mjs +2 -0
  85. package/dist/esm/chunk-3OJN4I42.mjs.map +1 -0
  86. package/dist/esm/chunk-3YOV42H5.mjs +2 -0
  87. package/dist/esm/chunk-3YOV42H5.mjs.map +1 -0
  88. package/dist/esm/chunk-4WPQQPUF.mjs +1 -0
  89. package/dist/esm/chunk-4WPQQPUF.mjs.map +1 -0
  90. package/dist/esm/chunk-6FBKUTGF.mjs +2 -0
  91. package/dist/esm/chunk-6FBKUTGF.mjs.map +1 -0
  92. package/dist/esm/chunk-7AIV5FEN.mjs +2 -0
  93. package/dist/esm/chunk-7AIV5FEN.mjs.map +1 -0
  94. package/dist/esm/chunk-7AQXAH6Q.mjs +2 -0
  95. package/dist/esm/chunk-7AQXAH6Q.mjs.map +1 -0
  96. package/dist/esm/chunk-7TL2MY2B.mjs +2 -0
  97. package/dist/esm/chunk-7TL2MY2B.mjs.map +1 -0
  98. package/dist/esm/chunk-ADR4XQPR.mjs +2 -0
  99. package/dist/esm/chunk-ADR4XQPR.mjs.map +1 -0
  100. package/dist/esm/chunk-AH44UPM4.mjs +2 -0
  101. package/dist/esm/chunk-AH44UPM4.mjs.map +1 -0
  102. package/dist/esm/chunk-AY2HWVDO.mjs +2 -0
  103. package/dist/esm/chunk-AY2HWVDO.mjs.map +1 -0
  104. package/dist/esm/chunk-BC2NOUYT.mjs +2 -0
  105. package/dist/esm/chunk-BC2NOUYT.mjs.map +1 -0
  106. package/dist/esm/chunk-BIUGRAMO.mjs +2 -0
  107. package/dist/esm/chunk-BIUGRAMO.mjs.map +1 -0
  108. package/dist/esm/chunk-BREUBEPM.mjs +2 -0
  109. package/dist/esm/chunk-BREUBEPM.mjs.map +1 -0
  110. package/dist/esm/chunk-BSCOVLWS.mjs +1 -0
  111. package/dist/esm/chunk-BSCOVLWS.mjs.map +1 -0
  112. package/dist/esm/chunk-BTK34A5U.mjs +406 -0
  113. package/dist/esm/chunk-BTK34A5U.mjs.map +1 -0
  114. package/dist/esm/chunk-CZZJAR3B.mjs +2 -0
  115. package/dist/esm/chunk-CZZJAR3B.mjs.map +1 -0
  116. package/dist/esm/chunk-DNDWTM7A.mjs +2 -0
  117. package/dist/esm/chunk-DNDWTM7A.mjs.map +1 -0
  118. package/dist/esm/chunk-DNYVUM3K.mjs +2 -0
  119. package/dist/esm/chunk-DNYVUM3K.mjs.map +1 -0
  120. package/dist/esm/chunk-DXUIJ6KA.mjs +2 -0
  121. package/dist/esm/chunk-DXUIJ6KA.mjs.map +1 -0
  122. package/dist/esm/chunk-E72CFUU4.mjs +2 -0
  123. package/dist/esm/chunk-E72CFUU4.mjs.map +1 -0
  124. package/dist/esm/chunk-E7FWVXGX.mjs +1 -0
  125. package/dist/esm/chunk-E7FWVXGX.mjs.map +1 -0
  126. package/dist/esm/chunk-EKAOAGNQ.mjs +2 -0
  127. package/dist/esm/chunk-EKAOAGNQ.mjs.map +1 -0
  128. package/dist/esm/chunk-FBPNHF54.mjs +2 -0
  129. package/dist/esm/chunk-FBPNHF54.mjs.map +1 -0
  130. package/dist/esm/chunk-FHJ7F7Z6.mjs +2 -0
  131. package/dist/esm/chunk-FHJ7F7Z6.mjs.map +1 -0
  132. package/dist/esm/chunk-FNB6CFQR.mjs +2 -0
  133. package/dist/esm/chunk-FNB6CFQR.mjs.map +1 -0
  134. package/dist/esm/chunk-FYIFBLHU.mjs +2 -0
  135. package/dist/esm/chunk-FYIFBLHU.mjs.map +1 -0
  136. package/dist/esm/chunk-FZY4PMEE.mjs +1 -0
  137. package/dist/esm/chunk-FZY4PMEE.mjs.map +1 -0
  138. package/dist/esm/chunk-GUT3G5CG.mjs +2 -0
  139. package/dist/esm/chunk-GUT3G5CG.mjs.map +1 -0
  140. package/dist/esm/chunk-HH5RSP2H.mjs +2 -0
  141. package/dist/esm/chunk-HH5RSP2H.mjs.map +1 -0
  142. package/dist/esm/chunk-HTZTTZQJ.mjs +1 -0
  143. package/dist/esm/chunk-HTZTTZQJ.mjs.map +1 -0
  144. package/dist/esm/chunk-I5OYNCZS.mjs +1 -0
  145. package/dist/esm/chunk-I5OYNCZS.mjs.map +1 -0
  146. package/dist/esm/chunk-IPJKGHQY.mjs +2 -0
  147. package/dist/esm/chunk-IPJKGHQY.mjs.map +1 -0
  148. package/dist/esm/chunk-IXMH6AXJ.mjs +2 -0
  149. package/dist/esm/chunk-IXMH6AXJ.mjs.map +1 -0
  150. package/dist/esm/chunk-IZHPCZE3.mjs +2 -0
  151. package/dist/esm/chunk-IZHPCZE3.mjs.map +1 -0
  152. package/dist/esm/chunk-J3QOSJFP.mjs +2 -0
  153. package/dist/esm/chunk-J3QOSJFP.mjs.map +1 -0
  154. package/dist/esm/chunk-J5OKXARS.mjs +2 -0
  155. package/dist/esm/chunk-J5OKXARS.mjs.map +1 -0
  156. package/dist/esm/chunk-JTGGMXB7.mjs +2 -0
  157. package/dist/esm/chunk-JTGGMXB7.mjs.map +1 -0
  158. package/dist/esm/chunk-KC64ESLO.mjs +2 -0
  159. package/dist/esm/chunk-KC64ESLO.mjs.map +1 -0
  160. package/dist/esm/chunk-KFP7MDSD.mjs +2 -0
  161. package/dist/esm/chunk-KFP7MDSD.mjs.map +1 -0
  162. package/dist/esm/chunk-KJDY66XF.mjs +2 -0
  163. package/dist/esm/chunk-KJDY66XF.mjs.map +1 -0
  164. package/dist/esm/chunk-KNLMUSIO.mjs +2 -0
  165. package/dist/esm/chunk-KNLMUSIO.mjs.map +1 -0
  166. package/dist/esm/chunk-KPESAXVI.mjs +2 -0
  167. package/dist/esm/chunk-KPESAXVI.mjs.map +1 -0
  168. package/dist/esm/chunk-KWJ6XKNF.mjs +2 -0
  169. package/dist/esm/chunk-KWJ6XKNF.mjs.map +1 -0
  170. package/dist/esm/chunk-KYWYIK5P.mjs +2 -0
  171. package/dist/esm/chunk-KYWYIK5P.mjs.map +1 -0
  172. package/dist/esm/chunk-LAXIJRYU.mjs +2 -0
  173. package/dist/esm/chunk-LAXIJRYU.mjs.map +1 -0
  174. package/dist/esm/chunk-LR65XHSF.mjs +2 -0
  175. package/dist/esm/chunk-LR65XHSF.mjs.map +1 -0
  176. package/dist/esm/chunk-LU6VS7PJ.mjs +2 -0
  177. package/dist/esm/chunk-LU6VS7PJ.mjs.map +1 -0
  178. package/dist/esm/chunk-LV33NV4J.mjs +2 -0
  179. package/dist/esm/chunk-LV33NV4J.mjs.map +1 -0
  180. package/dist/esm/chunk-MIBLZSNS.mjs +2 -0
  181. package/dist/esm/chunk-MIBLZSNS.mjs.map +1 -0
  182. package/dist/esm/chunk-N2FKVZ4D.mjs +1 -0
  183. package/dist/esm/chunk-N2FKVZ4D.mjs.map +1 -0
  184. package/dist/esm/chunk-N6XWY4UT.mjs +2 -0
  185. package/dist/esm/chunk-N6XWY4UT.mjs.map +1 -0
  186. package/dist/esm/chunk-NKTKHC3Z.mjs +2 -0
  187. package/dist/esm/chunk-NKTKHC3Z.mjs.map +1 -0
  188. package/dist/esm/chunk-O243HOP3.mjs +2 -0
  189. package/dist/esm/chunk-O243HOP3.mjs.map +1 -0
  190. package/dist/esm/chunk-PDLUCVJB.mjs +2 -0
  191. package/dist/esm/chunk-PDLUCVJB.mjs.map +1 -0
  192. package/dist/esm/chunk-PJDVHU7X.mjs +2 -0
  193. package/dist/esm/chunk-PJDVHU7X.mjs.map +1 -0
  194. package/dist/esm/chunk-R7G3CLRI.mjs +1 -0
  195. package/dist/esm/chunk-R7G3CLRI.mjs.map +1 -0
  196. package/dist/esm/chunk-RMMOF53Q.mjs +1 -0
  197. package/dist/esm/chunk-RMMOF53Q.mjs.map +1 -0
  198. package/dist/esm/chunk-SJLO3JIH.mjs +2 -0
  199. package/dist/esm/chunk-SJLO3JIH.mjs.map +1 -0
  200. package/dist/esm/chunk-TCTZCPQ6.mjs +1 -0
  201. package/dist/esm/chunk-TCTZCPQ6.mjs.map +1 -0
  202. package/dist/esm/chunk-TXUMB5ZO.mjs +2 -0
  203. package/dist/esm/chunk-TXUMB5ZO.mjs.map +1 -0
  204. package/dist/esm/chunk-TYHBYRUA.mjs +2 -0
  205. package/dist/esm/chunk-TYHBYRUA.mjs.map +1 -0
  206. package/dist/esm/chunk-UQIOMAXE.mjs +2 -0
  207. package/dist/esm/chunk-UQIOMAXE.mjs.map +1 -0
  208. package/dist/esm/chunk-UVGCVCNG.mjs +2 -0
  209. package/dist/esm/chunk-UVGCVCNG.mjs.map +1 -0
  210. package/dist/esm/chunk-UYVPNUH3.mjs +1 -0
  211. package/dist/esm/chunk-UYVPNUH3.mjs.map +1 -0
  212. package/dist/esm/chunk-V3MBJJTL.mjs +1 -0
  213. package/dist/esm/chunk-V3MBJJTL.mjs.map +1 -0
  214. package/dist/esm/chunk-V6AAQLLJ.mjs +2 -0
  215. package/dist/esm/chunk-V6AAQLLJ.mjs.map +1 -0
  216. package/dist/esm/chunk-VAGYTPSI.mjs +2 -0
  217. package/dist/esm/chunk-VAGYTPSI.mjs.map +1 -0
  218. package/dist/esm/chunk-WGXAIQ7K.mjs +2 -0
  219. package/dist/esm/chunk-WGXAIQ7K.mjs.map +1 -0
  220. package/dist/esm/chunk-WNEZCERQ.mjs +2 -0
  221. package/dist/esm/chunk-WNEZCERQ.mjs.map +1 -0
  222. package/dist/esm/chunk-WVMDCC4V.mjs +2 -0
  223. package/dist/esm/chunk-WVMDCC4V.mjs.map +1 -0
  224. package/dist/esm/chunk-XFS5O5GJ.mjs +2 -0
  225. package/dist/esm/chunk-XFS5O5GJ.mjs.map +1 -0
  226. package/dist/esm/chunk-XFSL7O6Q.mjs +2 -0
  227. package/dist/esm/chunk-XFSL7O6Q.mjs.map +1 -0
  228. package/dist/esm/chunk-XNFEUXDS.mjs +2 -0
  229. package/dist/esm/chunk-XNFEUXDS.mjs.map +1 -0
  230. package/dist/esm/chunk-YS2OX7AB.mjs +2 -0
  231. package/dist/esm/chunk-YS2OX7AB.mjs.map +1 -0
  232. package/dist/esm/chunk-Z56AKXJ7.mjs +2 -0
  233. package/dist/esm/chunk-Z56AKXJ7.mjs.map +1 -0
  234. package/dist/esm/chunk-ZT2A5ABR.mjs +2 -0
  235. package/dist/esm/chunk-ZT2A5ABR.mjs.map +1 -0
  236. package/dist/esm/chunk-ZXJ5ZBTL.mjs +2 -0
  237. package/dist/esm/chunk-ZXJ5ZBTL.mjs.map +1 -0
  238. package/dist/esm/client/core.d.ts +24 -0
  239. package/dist/esm/client/core.mjs +2 -0
  240. package/dist/esm/client/core.mjs.map +1 -0
  241. package/dist/esm/client/get.d.ts +55 -0
  242. package/dist/esm/client/get.mjs +2 -0
  243. package/dist/esm/client/get.mjs.map +1 -0
  244. package/dist/esm/client/index.d.ts +11 -0
  245. package/dist/esm/client/index.mjs +2 -0
  246. package/dist/esm/client/index.mjs.map +1 -0
  247. package/dist/esm/client/post.d.ts +60 -0
  248. package/dist/esm/client/post.mjs +2 -0
  249. package/dist/esm/client/post.mjs.map +1 -0
  250. package/dist/esm/client/types.d.ts +46 -0
  251. package/dist/esm/client/types.mjs +2 -0
  252. package/dist/esm/client/types.mjs.map +1 -0
  253. package/dist/esm/core/account.d.ts +184 -0
  254. package/dist/esm/core/account.mjs +2 -0
  255. package/dist/esm/core/account.mjs.map +1 -0
  256. package/dist/esm/core/accountAddress.d.ts +244 -0
  257. package/dist/esm/core/accountAddress.mjs +2 -0
  258. package/dist/esm/core/accountAddress.mjs.map +1 -0
  259. package/dist/esm/core/authenticationKey.d.ts +74 -0
  260. package/dist/esm/core/authenticationKey.mjs +2 -0
  261. package/dist/esm/core/authenticationKey.mjs.map +1 -0
  262. package/dist/esm/core/common.d.ts +32 -0
  263. package/dist/esm/core/common.mjs +2 -0
  264. package/dist/esm/core/common.mjs.map +1 -0
  265. package/dist/esm/core/crypto/anyPublicKey.d.ts +54 -0
  266. package/dist/esm/core/crypto/anyPublicKey.mjs +2 -0
  267. package/dist/esm/core/crypto/anyPublicKey.mjs.map +1 -0
  268. package/dist/esm/core/crypto/anySignature.d.ts +31 -0
  269. package/dist/esm/core/crypto/anySignature.mjs +2 -0
  270. package/dist/esm/core/crypto/anySignature.mjs.map +1 -0
  271. package/dist/esm/core/crypto/asymmetricCrypto.d.ts +74 -0
  272. package/dist/esm/core/crypto/asymmetricCrypto.mjs +2 -0
  273. package/dist/esm/core/crypto/asymmetricCrypto.mjs.map +1 -0
  274. package/dist/esm/core/crypto/ed25519.d.ts +173 -0
  275. package/dist/esm/core/crypto/ed25519.mjs +2 -0
  276. package/dist/esm/core/crypto/ed25519.mjs.map +1 -0
  277. package/dist/esm/core/crypto/hdKey.d.ts +65 -0
  278. package/dist/esm/core/crypto/hdKey.mjs +2 -0
  279. package/dist/esm/core/crypto/hdKey.mjs.map +1 -0
  280. package/dist/esm/core/crypto/index.d.ts +17 -0
  281. package/dist/esm/core/crypto/index.mjs +2 -0
  282. package/dist/esm/core/crypto/index.mjs.map +1 -0
  283. package/dist/esm/core/crypto/multiEd25519.d.ts +126 -0
  284. package/dist/esm/core/crypto/multiEd25519.mjs +2 -0
  285. package/dist/esm/core/crypto/multiEd25519.mjs.map +1 -0
  286. package/dist/esm/core/crypto/multiKey.d.ts +52 -0
  287. package/dist/esm/core/crypto/multiKey.mjs +2 -0
  288. package/dist/esm/core/crypto/multiKey.mjs.map +1 -0
  289. package/dist/esm/core/crypto/secp256k1.d.ts +161 -0
  290. package/dist/esm/core/crypto/secp256k1.mjs +2 -0
  291. package/dist/esm/core/crypto/secp256k1.mjs.map +1 -0
  292. package/dist/esm/core/hex.d.ts +105 -0
  293. package/dist/esm/core/hex.mjs +2 -0
  294. package/dist/esm/core/hex.mjs.map +1 -0
  295. package/dist/esm/core/index.d.ts +21 -0
  296. package/dist/esm/core/index.mjs +2 -0
  297. package/dist/esm/core/index.mjs.map +1 -0
  298. package/dist/esm/index.d.ts +60 -5637
  299. package/dist/esm/index.mjs +1 -5444
  300. package/dist/esm/index.mjs.map +1 -1
  301. package/dist/esm/internal/account.d.ts +143 -0
  302. package/dist/esm/internal/account.mjs +2 -0
  303. package/dist/esm/internal/account.mjs.map +1 -0
  304. package/dist/esm/internal/ans.d.ts +83 -0
  305. package/dist/esm/internal/ans.mjs +2 -0
  306. package/dist/esm/internal/ans.mjs.map +1 -0
  307. package/dist/esm/internal/coin.d.ts +43 -0
  308. package/dist/esm/internal/coin.mjs +2 -0
  309. package/dist/esm/internal/coin.mjs.map +1 -0
  310. package/dist/esm/internal/digitalAsset.d.ts +118 -0
  311. package/dist/esm/internal/digitalAsset.mjs +2 -0
  312. package/dist/esm/internal/digitalAsset.mjs.map +1 -0
  313. package/dist/esm/internal/event.d.ts +45 -0
  314. package/dist/esm/internal/event.mjs +2 -0
  315. package/dist/esm/internal/event.mjs.map +1 -0
  316. package/dist/esm/internal/faucet.d.ts +29 -0
  317. package/dist/esm/internal/faucet.mjs +2 -0
  318. package/dist/esm/internal/faucet.mjs.map +1 -0
  319. package/dist/esm/internal/fungibleAsset.d.ts +38 -0
  320. package/dist/esm/internal/fungibleAsset.mjs +2 -0
  321. package/dist/esm/internal/fungibleAsset.mjs.map +1 -0
  322. package/dist/esm/internal/general.d.ts +60 -0
  323. package/dist/esm/internal/general.mjs +2 -0
  324. package/dist/esm/internal/general.mjs.map +1 -0
  325. package/dist/esm/internal/staking.d.ts +38 -0
  326. package/dist/esm/internal/staking.mjs +2 -0
  327. package/dist/esm/internal/staking.mjs.map +1 -0
  328. package/dist/esm/internal/transaction.d.ts +57 -0
  329. package/dist/esm/internal/transaction.mjs +2 -0
  330. package/dist/esm/internal/transaction.mjs.map +1 -0
  331. package/dist/esm/internal/transactionSubmission.d.ts +148 -0
  332. package/dist/esm/internal/transactionSubmission.mjs +2 -0
  333. package/dist/esm/internal/transactionSubmission.mjs.map +1 -0
  334. package/dist/esm/transactions/authenticator/account.d.ts +79 -0
  335. package/dist/esm/transactions/authenticator/account.mjs +2 -0
  336. package/dist/esm/transactions/authenticator/account.mjs.map +1 -0
  337. package/dist/esm/transactions/authenticator/index.d.ts +19 -0
  338. package/dist/esm/transactions/authenticator/index.mjs +2 -0
  339. package/dist/esm/transactions/authenticator/index.mjs.map +1 -0
  340. package/dist/esm/transactions/authenticator/transaction.d.ts +105 -0
  341. package/dist/esm/transactions/authenticator/transaction.mjs +2 -0
  342. package/dist/esm/transactions/authenticator/transaction.mjs.map +1 -0
  343. package/dist/esm/transactions/index.d.ts +39 -0
  344. package/dist/esm/transactions/index.mjs +2 -0
  345. package/dist/esm/transactions/index.mjs.map +1 -0
  346. package/dist/esm/transactions/instances/chainId.d.ts +21 -0
  347. package/dist/esm/transactions/instances/chainId.mjs +2 -0
  348. package/dist/esm/transactions/instances/chainId.mjs.map +1 -0
  349. package/dist/esm/transactions/instances/identifier.d.ts +23 -0
  350. package/dist/esm/transactions/instances/identifier.mjs +2 -0
  351. package/dist/esm/transactions/instances/identifier.mjs.map +1 -0
  352. package/dist/esm/transactions/instances/index.d.ts +29 -0
  353. package/dist/esm/transactions/instances/index.mjs +2 -0
  354. package/dist/esm/transactions/instances/index.mjs.map +1 -0
  355. package/dist/esm/transactions/instances/moduleId.d.ts +37 -0
  356. package/dist/esm/transactions/instances/moduleId.mjs +2 -0
  357. package/dist/esm/transactions/instances/moduleId.mjs.map +1 -0
  358. package/dist/esm/transactions/instances/rawTransaction.d.ts +98 -0
  359. package/dist/esm/transactions/instances/rawTransaction.mjs +2 -0
  360. package/dist/esm/transactions/instances/rawTransaction.mjs.map +1 -0
  361. package/dist/esm/transactions/instances/rotationProofChallenge.d.ts +37 -0
  362. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +2 -0
  363. package/dist/esm/transactions/instances/rotationProofChallenge.mjs.map +1 -0
  364. package/dist/esm/transactions/instances/signedTransaction.d.ts +46 -0
  365. package/dist/esm/transactions/instances/signedTransaction.mjs +2 -0
  366. package/dist/esm/transactions/instances/signedTransaction.mjs.map +1 -0
  367. package/dist/esm/transactions/instances/transactionArgument.d.ts +40 -0
  368. package/dist/esm/transactions/instances/transactionArgument.mjs +2 -0
  369. package/dist/esm/transactions/instances/transactionArgument.mjs.map +1 -0
  370. package/dist/esm/transactions/instances/transactionPayload.d.ts +211 -0
  371. package/dist/esm/transactions/instances/transactionPayload.mjs +2 -0
  372. package/dist/esm/transactions/instances/transactionPayload.mjs.map +1 -0
  373. package/dist/esm/transactions/transactionBuilder/helpers.d.ts +63 -0
  374. package/dist/esm/transactions/transactionBuilder/helpers.mjs +2 -0
  375. package/dist/esm/transactions/transactionBuilder/helpers.mjs.map +1 -0
  376. package/dist/esm/transactions/transactionBuilder/index.d.ts +35 -0
  377. package/dist/esm/transactions/transactionBuilder/index.mjs +2 -0
  378. package/dist/esm/transactions/transactionBuilder/index.mjs.map +1 -0
  379. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.ts +54 -0
  380. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +2 -0
  381. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs.map +1 -0
  382. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.ts +128 -0
  383. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +2 -0
  384. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs.map +1 -0
  385. package/dist/esm/transactions/typeTag/index.d.ts +127 -0
  386. package/dist/esm/transactions/typeTag/index.mjs +2 -0
  387. package/dist/esm/transactions/typeTag/index.mjs.map +1 -0
  388. package/dist/esm/transactions/typeTag/parser.d.ts +47 -0
  389. package/dist/esm/transactions/typeTag/parser.mjs +2 -0
  390. package/dist/esm/transactions/typeTag/parser.mjs.map +1 -0
  391. package/dist/esm/transactions/types.d.ts +253 -0
  392. package/dist/esm/transactions/types.mjs +2 -0
  393. package/dist/esm/transactions/types.mjs.map +1 -0
  394. package/dist/esm/types/generated/operations.d.ts +604 -0
  395. package/dist/esm/types/generated/operations.mjs +1 -0
  396. package/dist/esm/types/generated/operations.mjs.map +1 -0
  397. package/dist/esm/types/generated/queries.d.ts +55 -0
  398. package/dist/esm/types/generated/queries.mjs +2 -0
  399. package/dist/esm/types/generated/queries.mjs.map +1 -0
  400. package/dist/esm/types/generated/types.d.ts +9458 -0
  401. package/dist/esm/types/generated/types.mjs +2 -0
  402. package/dist/esm/types/generated/types.mjs.map +1 -0
  403. package/dist/{types → esm/types}/index.d.ts +19 -451
  404. package/dist/esm/types/index.mjs +2 -0
  405. package/dist/esm/types/index.mjs.map +1 -0
  406. package/dist/esm/types/indexer.d.ts +62 -0
  407. package/dist/esm/types/indexer.mjs +2 -0
  408. package/dist/esm/types/indexer.mjs.map +1 -0
  409. package/dist/esm/utils/apiEndpoints.d.ts +14 -0
  410. package/dist/esm/utils/apiEndpoints.mjs +2 -0
  411. package/dist/esm/utils/apiEndpoints.mjs.map +1 -0
  412. package/dist/esm/utils/const.d.ts +42 -0
  413. package/dist/esm/utils/const.mjs +2 -0
  414. package/dist/esm/utils/const.mjs.map +1 -0
  415. package/dist/esm/utils/helpers.d.ts +7 -0
  416. package/dist/esm/utils/helpers.mjs +2 -0
  417. package/dist/esm/utils/helpers.mjs.map +1 -0
  418. package/dist/esm/utils/memoize.d.ts +20 -0
  419. package/dist/esm/utils/memoize.mjs +2 -0
  420. package/dist/esm/utils/memoize.mjs.map +1 -0
  421. package/dist/esm/version.d.ts +8 -0
  422. package/dist/esm/version.mjs +2 -0
  423. package/dist/esm/version.mjs.map +1 -0
  424. package/package.json +17 -13
  425. package/src/api/account.ts +17 -18
  426. package/src/api/ans.ts +58 -0
  427. package/src/api/aptos.ts +7 -1
  428. package/src/api/coin.ts +3 -3
  429. package/src/api/digitalAsset.ts +9 -8
  430. package/src/api/event.ts +4 -3
  431. package/src/api/faucet.ts +3 -2
  432. package/src/api/general.ts +2 -2
  433. package/src/api/staking.ts +5 -4
  434. package/src/api/transactionSubmission.ts +41 -20
  435. package/src/bcs/deserializer.ts +4 -4
  436. package/src/bcs/serializable/moveStructs.ts +13 -13
  437. package/src/bcs/serializer.ts +4 -4
  438. package/src/client/core.ts +18 -8
  439. package/src/core/account.ts +90 -33
  440. package/src/core/accountAddress.ts +34 -30
  441. package/src/core/authenticationKey.ts +11 -9
  442. package/src/core/crypto/ed25519.ts +48 -1
  443. package/src/core/crypto/hdKey.ts +105 -0
  444. package/src/core/crypto/index.ts +1 -0
  445. package/src/core/crypto/secp256k1.ts +36 -0
  446. package/src/index.ts +0 -1
  447. package/src/internal/account.ts +80 -58
  448. package/src/internal/ans.ts +175 -0
  449. package/src/internal/coin.ts +5 -5
  450. package/src/internal/digitalAsset.ts +16 -17
  451. package/src/internal/event.ts +8 -8
  452. package/src/internal/faucet.ts +4 -4
  453. package/src/internal/general.ts +3 -3
  454. package/src/internal/queries/getEvents.graphql +1 -0
  455. package/src/internal/staking.ts +8 -8
  456. package/src/internal/transactionSubmission.ts +78 -19
  457. package/src/transactions/instances/index.ts +1 -0
  458. package/src/transactions/instances/moduleId.ts +1 -1
  459. package/src/transactions/instances/rotationProofChallenge.ts +58 -0
  460. package/src/transactions/transactionBuilder/helpers.ts +5 -1
  461. package/src/transactions/transactionBuilder/remoteAbi.ts +4 -4
  462. package/src/transactions/transactionBuilder/transactionBuilder.ts +31 -49
  463. package/src/transactions/typeTag/index.ts +10 -10
  464. package/src/transactions/typeTag/parser.ts +1 -1
  465. package/src/transactions/types.ts +31 -20
  466. package/src/types/generated/operations.ts +19 -18
  467. package/src/types/generated/queries.ts +20 -19
  468. package/src/types/generated/types.ts +6 -0
  469. package/src/types/index.ts +15 -18
  470. package/src/utils/apiEndpoints.ts +8 -0
  471. package/src/version.ts +1 -1
  472. package/dist/cjs/index.js +0 -5631
  473. package/dist/cjs/index.js.map +0 -1
  474. package/dist/types/index.js +0 -176
  475. package/dist/types/index.js.map +0 -1
  476. package/src/utils/hdKey.ts +0 -113
@@ -9,6 +9,7 @@ declare enum Network {
9
9
  CUSTOM = "custom"
10
10
  }
11
11
  declare const NetworkToChainId: Record<string, number>;
12
+ declare const NetworkToNetworkName: Record<string, Network>;
12
13
 
13
14
  declare type Maybe<T> = T | null;
14
15
  declare type InputMaybe<T> = Maybe<T>;
@@ -136,6 +137,7 @@ declare type EventsBoolExp = {
136
137
  creation_number?: InputMaybe<BigintComparisonExp>;
137
138
  data?: InputMaybe<JsonbComparisonExp>;
138
139
  event_index?: InputMaybe<BigintComparisonExp>;
140
+ indexed_type?: InputMaybe<StringComparisonExp>;
139
141
  sequence_number?: InputMaybe<BigintComparisonExp>;
140
142
  transaction_block_height?: InputMaybe<BigintComparisonExp>;
141
143
  transaction_version?: InputMaybe<BigintComparisonExp>;
@@ -450,6 +452,7 @@ declare type GetEventsQuery = {
450
452
  transaction_block_height: any;
451
453
  transaction_version: any;
452
454
  type: string;
455
+ indexed_type: string;
453
456
  }>;
454
457
  };
455
458
  declare type GetFungibleAssetActivitiesQuery = {
@@ -796,12 +799,14 @@ interface PaginationArgs {
796
799
  /**
797
800
  * A configuration object we can pass with the request to the server.
798
801
  *
799
- * @param TOKEN - an auth token to send with the request
802
+ * @param AUTH_TOKEN - an auth token to send with a faucet request
803
+ * @param API_KEY - api key generated from developer portal {@link https://developers.aptoslabs.com/manage/api-keys}}
800
804
  * @param HEADERS - extra headers we want to send with the request
801
805
  * @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
802
806
  */
803
807
  declare type ClientConfig = {
804
- TOKEN?: string;
808
+ AUTH_TOKEN?: string;
809
+ API_KEY?: string;
805
810
  HEADERS?: Record<string, string | number | boolean>;
806
811
  WITH_CREDENTIALS?: boolean;
807
812
  };
@@ -1518,28 +1523,22 @@ declare type WaitForTransactionOptions = {
1518
1523
  indexerVersionCheck?: boolean;
1519
1524
  };
1520
1525
  /**
1521
- * Account input type to generate an account using Legacy
1522
- * Ed25519 or MultiEd25519 keys or without a specified `scheme`.
1523
- * If `scheme` is not specified, we default to ED25519
1524
- * In this case `legacy` is always true
1526
+ * Input type to generate an account using Single Signer
1527
+ * Ed25519 or Legacy Ed25519
1525
1528
  */
1526
- declare type GenerateAccountWithLegacyKey = {
1527
- scheme?: SigningSchemeInput.Ed25519;
1528
- legacy: true;
1529
+ declare type GenerateAccountWithEd25519 = {
1530
+ scheme: SigningSchemeInput.Ed25519;
1531
+ legacy: boolean;
1529
1532
  };
1530
1533
  /**
1531
- * Account input type to generate an account using Unified
1532
- * Secp256k1Ecdsa key
1533
- * In this case `legacy` is always false
1534
+ * Input type to generate an account using Single Signer
1535
+ * Secp256k1
1534
1536
  */
1535
- declare type GenerateAccountWithUnifiedKey = {
1536
- scheme: SigningSchemeInput.Secp256k1Ecdsa | SigningSchemeInput.Ed25519;
1537
+ declare type GenerateAccountWithSingleSignerSecp256k1Key = {
1538
+ scheme: SigningSchemeInput.Secp256k1Ecdsa;
1537
1539
  legacy?: false;
1538
1540
  };
1539
- /**
1540
- * Unify GenerateAccount type for Legacy and Unified keys
1541
- */
1542
- declare type GenerateAccount = GenerateAccountWithLegacyKey | GenerateAccountWithUnifiedKey;
1541
+ declare type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
1543
1542
 
1544
1543
  /**
1545
1544
  * Type of API endpoint for request routing
@@ -1886,10 +1885,10 @@ declare class Serializer {
1886
1885
  * @param values The array of BCS Serializable values
1887
1886
  * @example
1888
1887
  * const addresses = new Array<AccountAddress>(
1889
- * AccountAddress.fromHexInputRelaxed("0x1"),
1890
- * AccountAddress.fromHexInputRelaxed("0x2"),
1891
- * AccountAddress.fromHexInputRelaxed("0xa"),
1892
- * AccountAddress.fromHexInputRelaxed("0xb"),
1888
+ * AccountAddress.fromRelaxed("0x1"),
1889
+ * AccountAddress.fromRelaxed("0x2"),
1890
+ * AccountAddress.fromRelaxed("0xa"),
1891
+ * AccountAddress.fromRelaxed("0xb"),
1893
1892
  * );
1894
1893
  * const serializer = new Serializer();
1895
1894
  * serializer.serializeVector(addresses);
@@ -2029,10 +2028,10 @@ declare class Deserializer {
2029
2028
  * @example
2030
2029
  * // serialize a vector of addresses
2031
2030
  * const addresses = new Array<AccountAddress>(
2032
- * AccountAddress.fromHexInputRelaxed("0x1"),
2033
- * AccountAddress.fromHexInputRelaxed("0x2"),
2034
- * AccountAddress.fromHexInputRelaxed("0xa"),
2035
- * AccountAddress.fromHexInputRelaxed("0xb"),
2031
+ * AccountAddress.fromRelaxed("0x1"),
2032
+ * AccountAddress.fromRelaxed("0x2"),
2033
+ * AccountAddress.fromRelaxed("0xa"),
2034
+ * AccountAddress.fromRelaxed("0xb"),
2036
2035
  * );
2037
2036
  * const serializer = new Serializer();
2038
2037
  * serializer.serializeVector(addresses);
@@ -2089,6 +2088,7 @@ declare enum AddressInvalidReason {
2089
2088
  LONG_FORM_REQUIRED_UNLESS_SPECIAL = "long_form_required_unless_special",
2090
2089
  INVALID_PADDING_ZEROES = "INVALID_PADDING_ZEROES"
2091
2090
  }
2091
+ declare type AccountAddressInput = HexInput | AccountAddress;
2092
2092
  /**
2093
2093
  * NOTE: Only use this class for account addresses. For other hex data, e.g. transaction
2094
2094
  * hashes, use the Hex class.
@@ -2128,9 +2128,7 @@ declare class AccountAddress extends Serializable implements TransactionArgument
2128
2128
  *
2129
2129
  * @param args.data A Uint8Array representing an account address.
2130
2130
  */
2131
- constructor(args: {
2132
- data: Uint8Array;
2133
- });
2131
+ constructor(input: Uint8Array);
2134
2132
  /**
2135
2133
  * Returns whether an address is special, where special is defined as 0x0 to 0xf
2136
2134
  * inclusive. In other words, the last byte of the address must be < 0b10000 (16)
@@ -2274,23 +2272,19 @@ declare class AccountAddress extends Serializable implements TransactionArgument
2274
2272
  */
2275
2273
  static fromStringRelaxed(input: string): AccountAddress;
2276
2274
  /**
2277
- * Convenience method for creating an AccountAddress from HexInput. For
2278
- * more information on how this works, see the constructor and fromString.
2279
- *
2280
- * @param input A hex string or Uint8Array representing an account address.
2275
+ * Convenience method for creating an AccountAddress from all known inputs.
2281
2276
  *
2282
- * @returns An instance of AccountAddress.
2277
+ * This handles, Uint8array, string, and AccountAddress itself
2278
+ * @param input
2283
2279
  */
2284
- static fromHexInput(input: HexInput): AccountAddress;
2280
+ static fromRelaxed(input: AccountAddressInput): AccountAddress;
2285
2281
  /**
2286
- * Convenience method for creating an AccountAddress from HexInput. For
2287
- * more information on how this works, see the constructor and fromStringRelaxed.
2288
- *
2289
- * @param hexInput A hex string or Uint8Array representing an account address.
2282
+ * Convenience method for creating an AccountAddress from all known inputs.
2290
2283
  *
2291
- * @returns An instance of AccountAddress.
2284
+ * This handles, Uint8array, string, and AccountAddress itself
2285
+ * @param input
2292
2286
  */
2293
- static fromHexInputRelaxed(hexInput: HexInput): AccountAddress;
2287
+ static from(input: AccountAddressInput): AccountAddress;
2294
2288
  /**
2295
2289
  * Check if the string is a valid AccountAddress.
2296
2290
  *
@@ -2301,7 +2295,7 @@ declare class AccountAddress extends Serializable implements TransactionArgument
2301
2295
  * is not valid, invalidReason will be set explaining why it is invalid.
2302
2296
  */
2303
2297
  static isValid(args: {
2304
- input: string;
2298
+ input: AccountAddressInput;
2305
2299
  relaxed?: boolean;
2306
2300
  }): ParsingResult<AddressInvalidReason>;
2307
2301
  /**
@@ -2472,11 +2466,6 @@ declare class U256 extends Serializable implements TransactionArgument {
2472
2466
  * const vecOfStrings = new MoveVector([new MoveString("hello"), new MoveString("world")]);
2473
2467
  * const vecOfStrings2 = MoveVector.MoveString(["hello", "world"]);
2474
2468
  *
2475
- * // where MySerializableStruct is a class you've made that implements Serializable
2476
- * const vecOfSerializableValues = new MoveVector<MySerializableStruct>([
2477
- * new MySerializableStruct("hello", "world"),
2478
- * new MySerializableStruct("foo", "bar"),
2479
- * ]);
2480
2469
  * @params
2481
2470
  * values: an Array<T> of values where T is a class that implements Serializable
2482
2471
  * @returns a `MoveVector<T>` with the values `values`
@@ -2549,7 +2538,7 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
2549
2538
  *
2550
2539
  * @example
2551
2540
  * const v = MoveVector.Bool([true, false, true, false]);
2552
- * @params values: an array of `numbers` to convert to Bools
2541
+ * @params values: an array of `bools` to convert to Bools
2553
2542
  * @returns a `MoveVector<Bool>`
2554
2543
  */
2555
2544
  static Bool(values: Array<boolean>): MoveVector<Bool>;
@@ -2558,7 +2547,7 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
2558
2547
  *
2559
2548
  * @example
2560
2549
  * const v = MoveVector.MoveString(["hello", "world"]);
2561
- * @params values: an array of `numbers` to convert to MoveStrings
2550
+ * @params values: an array of `strings` to convert to MoveStrings
2562
2551
  * @returns a `MoveVector<MoveString>`
2563
2552
  */
2564
2553
  static MoveString(values: Array<string>): MoveVector<MoveString>;
@@ -2570,8 +2559,9 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
2570
2559
  *
2571
2560
  * NOTE: This will not work with types that aren't of the Serializable class.
2572
2561
  *
2573
- * If you want to use types that merely implement Deserializable,
2574
- * please use the deserializeVector function in the Deserializer class.
2562
+ * If you're looking for a more flexible deserialization function, you can use the deserializeVector function
2563
+ * in the Deserializer class.
2564
+ *
2575
2565
  * @example
2576
2566
  * const vec = MoveVector.deserialize(deserializer, U64);
2577
2567
  * @params deserializer: the Deserializer instance to use, with bytes loaded into it already.
@@ -2777,6 +2767,66 @@ declare abstract class Signature extends Serializable {
2777
2767
  abstract serialize(serializer: Serializer): void;
2778
2768
  }
2779
2769
 
2770
+ /**
2771
+ * Each account stores an authentication key. Authentication key enables account owners to rotate
2772
+ * their private key(s) associated with the account without changing the address that hosts their account.
2773
+ * @see {@link https://aptos.dev/concepts/accounts | Account Basics}
2774
+ *
2775
+ * Account addresses can be derived from AuthenticationKey
2776
+ */
2777
+ declare class AuthenticationKey extends Serializable {
2778
+ /**
2779
+ * An authentication key is always a SHA3-256 hash of data, and is always 32 bytes.
2780
+ *
2781
+ * The data to hash depends on the underlying public key type and the derivation scheme.
2782
+ */
2783
+ static readonly LENGTH: number;
2784
+ /**
2785
+ * The raw bytes of the authentication key.
2786
+ */
2787
+ readonly data: Hex;
2788
+ constructor(args: {
2789
+ data: HexInput;
2790
+ });
2791
+ serialize(serializer: Serializer): void;
2792
+ /**
2793
+ * Deserialize an AuthenticationKey from the byte buffer in a Deserializer instance.
2794
+ * @param deserializer The deserializer to deserialize the AuthenticationKey from.
2795
+ * @returns An instance of AuthenticationKey.
2796
+ */
2797
+ static deserialize(deserializer: Deserializer): AuthenticationKey;
2798
+ toString(): string;
2799
+ toUint8Array(): Uint8Array;
2800
+ /**
2801
+ * Derives an AuthenticationKey from the public key seed bytes and an explicit derivation scheme.
2802
+ *
2803
+ * This facilitates targeting a specific scheme for deriving an authentication key from a public key.
2804
+ *
2805
+ * @param args - the public key and scheme to use for the derivation
2806
+ */
2807
+ static fromPublicKeyAndScheme(args: {
2808
+ publicKey: PublicKey;
2809
+ scheme: AuthenticationKeyScheme;
2810
+ }): AuthenticationKey;
2811
+ /**
2812
+ * Converts a PublicKey(s) to an AuthenticationKey, using the derivation scheme inferred from the
2813
+ * instance of the PublicKey type passed in.
2814
+ *
2815
+ * @param args.publicKey
2816
+ * @returns AuthenticationKey
2817
+ */
2818
+ static fromPublicKey(args: {
2819
+ publicKey: PublicKey;
2820
+ }): AuthenticationKey;
2821
+ /**
2822
+ * Derives an account address from an AuthenticationKey. Since an AccountAddress is also 32 bytes,
2823
+ * the AuthenticationKey bytes are directly translated to an AccountAddress.
2824
+ *
2825
+ * @returns AccountAddress
2826
+ */
2827
+ derivedAddress(): AccountAddress;
2828
+ }
2829
+
2780
2830
  /**
2781
2831
  * Class for creating and managing account on Aptos network
2782
2832
  *
@@ -2791,11 +2841,14 @@ declare abstract class Signature extends Serializable {
2791
2841
  * `SingleSender` supports `ED25519` and `Secp256k1`, and `MultiSender` supports
2792
2842
  * `MultiED25519`.
2793
2843
  *
2794
- * In TypeScript SDK, we support all of these options
2795
- * @generate default to generate Unified keys, with an optional `legacy` boolean argument
2796
- * that lets you generate new keys conforming to the Legacy authentication.
2844
+ * In TypeScript SDK, we support all of these options:
2845
+ *
2846
+ * @generate default to generate Legacy Ed25519 keys, with an optional `legacy` boolean argument
2847
+ * that lets you generate new keys conforming to the Unified authentication.
2848
+ *
2797
2849
  * @fromPrivateKey derives an account by a provided private key and address, with an optional
2798
- * `legacy` boolean argument that lets you generate new keys conforming to the Legacy authentication.
2850
+ * `legacy` boolean argument that lets you generate new keys conforming to the Unified authentication.
2851
+ *
2799
2852
  * @fromDerivationPath derives an account with bip44 path and mnemonics,
2800
2853
  *
2801
2854
  */
@@ -2832,7 +2885,8 @@ declare class Account$1 {
2832
2885
  private constructor();
2833
2886
  /**
2834
2887
  * Derives an account with random private key and address.
2835
- * Default generation is using the Unified flow with ED25519 key
2888
+ *
2889
+ * Default generation is using the Legacy ED25519 key
2836
2890
  *
2837
2891
  * @param args optional. Unify GenerateAccount type for Legacy and Unified keys
2838
2892
  *
@@ -2858,14 +2912,30 @@ declare class Account$1 {
2858
2912
  * @returns Account with the given signing scheme
2859
2913
  */
2860
2914
  static generate(args?: GenerateAccount): Account$1;
2915
+ /**
2916
+ * Instantiates an account given a private key.
2917
+ *
2918
+ * This is used as a local calculation and therefore is used to instantiate an `Account`
2919
+ * that has not had its authentication key rotated.
2920
+ *
2921
+ * @param privateKey PrivateKey - private key of the account
2922
+ * @param args.legacy optional. If set to false, the keypair generated is a Unified keypair. Defaults
2923
+ * to generating a Legacy Ed25519 keypair
2924
+ *
2925
+ * @returns Account
2926
+ */
2927
+ static fromPrivateKey(args: {
2928
+ privateKey: PrivateKey;
2929
+ legacy?: boolean;
2930
+ }): Account$1;
2861
2931
  /**
2862
2932
  * Instantiates an account given a private key and a specified account address.
2863
2933
  * This is primarily used to instantiate an `Account` that has had its authentication key rotated.
2864
2934
  *
2865
- * @param privateKey PrivateKey - private key of the account
2866
- * @param address The account address
2867
- * @param args.legacy optional. If set to true, the keypair authentication keys will be derived with a Legacy scheme.
2868
- * Defaults to deriving an authentication key with a Unified scheme
2935
+ * @param args.privateKey PrivateKey - the underlying private key for the account
2936
+ * @param args.address AccountAddress - The account address the `Account` will sign for
2937
+ * @param args.legacy optional. If set to false, the keypair generated is a Unified keypair. Defaults
2938
+ * to generating a Legacy Ed25519 keypair
2869
2939
  *
2870
2940
  * @returns Account
2871
2941
  */
@@ -2877,14 +2947,21 @@ declare class Account$1 {
2877
2947
  /**
2878
2948
  * Derives an account with bip44 path and mnemonics,
2879
2949
  *
2880
- * @param args.path the BIP44 derive path (e.g. m/44'/637'/0'/0'/0')
2950
+ * @param args.scheme The signing scheme to derive with
2951
+ * @param args.path the BIP44 derive hardened path (e.g. m/44'/637'/0'/0'/0') for Ed25519,
2952
+ * or non-hardened path (e.g. m/44'/637'/0'/0/0) for secp256k1
2881
2953
  * Detailed description: {@link https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki}
2882
2954
  * @param args.mnemonic the mnemonic seed phrase of the account
2883
- * @returns AptosAccount
2955
+ * @param args.legacy optional. If set to false, the keypair generated is a Unified keypair. Defaults
2956
+ * to generating a Legacy Ed25519 keypair
2957
+ *
2958
+ * @returns Account
2884
2959
  */
2885
2960
  static fromDerivationPath(args: {
2961
+ scheme: SigningSchemeInput;
2886
2962
  path: string;
2887
2963
  mnemonic: string;
2964
+ legacy?: boolean;
2888
2965
  }): Account$1;
2889
2966
  /**
2890
2967
  * This key enables account owners to rotate their private key(s)
@@ -2892,11 +2969,11 @@ declare class Account$1 {
2892
2969
  * See here for more info: {@link https://aptos.dev/concepts/accounts#single-signer-authentication}
2893
2970
  *
2894
2971
  * @param args.publicKey PublicKey - public key of the account
2895
- * @returns Authentication key for the associated account
2972
+ * @returns The authentication key for the associated account
2896
2973
  */
2897
2974
  static authKey(args: {
2898
2975
  publicKey: PublicKey;
2899
- }): Hex;
2976
+ }): AuthenticationKey;
2900
2977
  /**
2901
2978
  * Sign the given message with the private key.
2902
2979
  *
@@ -2919,64 +2996,6 @@ declare class Account$1 {
2919
2996
  }): boolean;
2920
2997
  }
2921
2998
 
2922
- /**
2923
- * Each account stores an authentication key. Authentication key enables account owners to rotate
2924
- * their private key(s) associated with the account without changing the address that hosts their account.
2925
- * @see {@link https://aptos.dev/concepts/accounts | Account Basics}
2926
- *
2927
- * Note: AuthenticationKey only supports Ed25519 and MultiEd25519 public keys for now.
2928
- *
2929
- * Account addresses can be derived from AuthenticationKey
2930
- */
2931
- declare class AuthenticationKey extends Serializable {
2932
- /**
2933
- * An authentication key is always a SHA3-256 hash of data, and is always 32 bytes.
2934
- */
2935
- static readonly LENGTH: number;
2936
- /**
2937
- * The raw bytes of the authentication key.
2938
- */
2939
- readonly data: Hex;
2940
- constructor(args: {
2941
- data: HexInput;
2942
- });
2943
- serialize(serializer: Serializer): void;
2944
- /**
2945
- * Deserialize an AuthenticationKey from the byte buffer in a Deserializer instance.
2946
- * @param deserializer The deserializer to deserialize the AuthenticationKey from.
2947
- * @returns An instance of AuthenticationKey.
2948
- */
2949
- static deserialize(deserializer: Deserializer): AuthenticationKey;
2950
- toString(): string;
2951
- toUint8Array(): Uint8Array;
2952
- /**
2953
- * Creates an AuthenticationKey from seed bytes and a scheme
2954
- *
2955
- * This allows for the creation of AuthenticationKeys that are not derived from Public Keys directly
2956
- * @param args
2957
- */
2958
- static fromPublicKeyAndScheme(args: {
2959
- publicKey: PublicKey;
2960
- scheme: AuthenticationKeyScheme;
2961
- }): AuthenticationKey;
2962
- /**
2963
- * Converts a PublicKey(s) to AuthenticationKey
2964
- *
2965
- * @param args.publicKey
2966
- * @returns AuthenticationKey
2967
- */
2968
- static fromPublicKey(args: {
2969
- publicKey: PublicKey;
2970
- }): AuthenticationKey;
2971
- /**
2972
- * Derives an account address from AuthenticationKey. Since current AccountAddress is 32 bytes,
2973
- * AuthenticationKey bytes are directly translated to AccountAddress.
2974
- *
2975
- * @returns AccountAddress
2976
- */
2977
- derivedAddress(): AccountAddress;
2978
- }
2979
-
2980
2999
  /**
2981
3000
  * Represents the public key of an Ed25519 key pair.
2982
3001
  *
@@ -3035,6 +3054,11 @@ declare class Ed25519PrivateKey extends PrivateKey {
3035
3054
  * Length of an Ed25519 private key
3036
3055
  */
3037
3056
  static readonly LENGTH: number;
3057
+ /**
3058
+ * The Ed25519 key seed to use for BIP-32 compatibility
3059
+ * See more {@link https://github.com/satoshilabs/slips/blob/master/slip-0010.md}
3060
+ */
3061
+ static readonly SLIP_0010_SEED = "ed25519 seed";
3038
3062
  /**
3039
3063
  * The Ed25519 signing key
3040
3064
  * @private
@@ -3079,6 +3103,28 @@ declare class Ed25519PrivateKey extends PrivateKey {
3079
3103
  * @returns Ed25519PublicKey
3080
3104
  */
3081
3105
  publicKey(): Ed25519PublicKey;
3106
+ /**
3107
+ * Derives a private key from a mnemonic seed phrase.
3108
+ *
3109
+ * To derive multiple keys from the same phrase, change the path
3110
+ *
3111
+ * IMPORTANT: Ed25519 supports hardened derivation only (since it lacks a key homomorphism,
3112
+ * so non-hardened derivation cannot work)
3113
+ *
3114
+ * @param path the BIP44 path
3115
+ * @param mnemonics the mnemonic seed phrase
3116
+ */
3117
+ static fromDerivationPath(path: string, mnemonics: string): Ed25519PrivateKey;
3118
+ /**
3119
+ * A private inner function so we can separate from the main fromDerivationPath() method
3120
+ * to add tests to verify we create the keys correctly.
3121
+ *
3122
+ * @param path the BIP44 path
3123
+ * @param seed the seed phrase created by the mnemonics
3124
+ * @param offset the offset used for key derivation, defaults to 0x80000000
3125
+ * @returns
3126
+ */
3127
+ private static fromDerivationPathInner;
3082
3128
  }
3083
3129
  /**
3084
3130
  * A signature of a message signed using an Ed25519 private key
@@ -3317,6 +3363,25 @@ declare class Secp256k1PrivateKey extends PrivateKey {
3317
3363
  * @returns Secp256k1PublicKey
3318
3364
  */
3319
3365
  publicKey(): Secp256k1PublicKey;
3366
+ /**
3367
+ * Derives a private key from a mnemonic seed phrase.
3368
+ *
3369
+ * @param path the BIP44 path
3370
+ * @param mnemonics the mnemonic seed phrase
3371
+ *
3372
+ * @returns The generated key
3373
+ */
3374
+ static fromDerivationPath(path: string, mnemonics: string): Secp256k1PrivateKey;
3375
+ /**
3376
+ * A private inner function so we can separate from the main fromDerivationPath() method
3377
+ * to add tests to verify we create the keys correctly.
3378
+ *
3379
+ * @param path the BIP44 path
3380
+ * @param seed the seed phrase created by the mnemonics
3381
+ *
3382
+ * @returns The generated key
3383
+ */
3384
+ private static fromDerivationPathInner;
3320
3385
  }
3321
3386
  /**
3322
3387
  * A signature of a message signed using an Secp256k1 ecdsa private key
@@ -3452,6 +3517,70 @@ declare class MultiKey extends PublicKey {
3452
3517
  static deserialize(deserializer: Deserializer): MultiKey;
3453
3518
  }
3454
3519
 
3520
+ declare type DerivedKeys = {
3521
+ key: Uint8Array;
3522
+ chainCode: Uint8Array;
3523
+ };
3524
+ /**
3525
+ * Aptos derive path is 637
3526
+ */
3527
+ declare const APTOS_HARDENED_REGEX: RegExp;
3528
+ declare const APTOS_BIP44_REGEX: RegExp;
3529
+ /**
3530
+ * A list of supported key types and associated seeds
3531
+ */
3532
+ declare enum KeyType {
3533
+ ED25519 = "ed25519 seed"
3534
+ }
3535
+ declare const HARDENED_OFFSET = 2147483648;
3536
+ /**
3537
+ * Aptos derive path is 637
3538
+ *
3539
+ * Parse and validate a path that is compliant to BIP-44 in form m/44'/637'/{account_index}'/{change_index}/{address_index}
3540
+ * for Secp256k1
3541
+ *
3542
+ * Note that for secp256k1, last two components must be non-hardened.
3543
+ *
3544
+ * @param path path string (e.g. `m/44'/637'/0'/0/0`).
3545
+ */
3546
+ declare function isValidBIP44Path(path: string): boolean;
3547
+ /**
3548
+ * Aptos derive path is 637
3549
+ *
3550
+ * Parse and validate a path that is compliant to SLIP-0010 and BIP-44
3551
+ * in form m/44'/637'/{account_index}'/{change_index}'/{address_index}'.
3552
+ * See SLIP-0010 {@link https://github.com/satoshilabs/slips/blob/master/slip-0044.md}
3553
+ * See BIP-44 {@link https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki}
3554
+ *
3555
+ * Note that for Ed25519, all components must be hardened.
3556
+ * This is because non-hardened [PK] derivation would not work due to Ed25519's lack of a key homomorphism.
3557
+ * Specifically, you cannot derive the PK associated with derivation path a/b/c given the PK of a/b.
3558
+ * This is because the PK in Ed25519 is, more or less, computed as 𝑔𝐻(𝑠𝑘),
3559
+ * with the hash function breaking the homomorphism.
3560
+ *
3561
+ * @param path path string (e.g. `m/44'/637'/0'/0'/0'`).
3562
+ */
3563
+ declare function isValidHardenedPath(path: string): boolean;
3564
+ declare const deriveKey: (hashSeed: Uint8Array | string, data: Uint8Array | string) => DerivedKeys;
3565
+ /**
3566
+ * Derive a child key from the private key
3567
+ * @param key
3568
+ * @param chainCode
3569
+ * @param index
3570
+ * @constructor
3571
+ */
3572
+ declare const CKDPriv: ({ key, chainCode }: DerivedKeys, index: number) => DerivedKeys;
3573
+ /**
3574
+ * Splits derive path into segments
3575
+ * @param path
3576
+ */
3577
+ declare const splitPath: (path: string) => Array<string>;
3578
+ /**
3579
+ * Normalizes the mnemonic by removing extra whitespace and making it lowercase
3580
+ * @param mnemonic the mnemonic seed phrase
3581
+ */
3582
+ declare const mnemonicToSeed: (mnemonic: string) => Uint8Array;
3583
+
3455
3584
  /**
3456
3585
  * A class to query all `Account` related queries on Aptos.
3457
3586
  */
@@ -3474,7 +3603,7 @@ declare class Account {
3474
3603
  * ```
3475
3604
  */
3476
3605
  getAccountInfo(args: {
3477
- accountAddress: HexInput;
3606
+ accountAddress: AccountAddressInput;
3478
3607
  }): Promise<AccountData>;
3479
3608
  /**
3480
3609
  * Queries for all modules in an account given an account address
@@ -3490,7 +3619,7 @@ declare class Account {
3490
3619
  * @returns Account modules
3491
3620
  */
3492
3621
  getAccountModules(args: {
3493
- accountAddress: HexInput;
3622
+ accountAddress: AccountAddressInput;
3494
3623
  options?: PaginationArgs & LedgerVersion;
3495
3624
  }): Promise<MoveModuleBytecode[]>;
3496
3625
  /**
@@ -3511,7 +3640,7 @@ declare class Account {
3511
3640
  * ```
3512
3641
  */
3513
3642
  getAccountModule(args: {
3514
- accountAddress: HexInput;
3643
+ accountAddress: AccountAddressInput;
3515
3644
  moduleName: string;
3516
3645
  options?: LedgerVersion;
3517
3646
  }): Promise<MoveModuleBytecode>;
@@ -3528,7 +3657,7 @@ declare class Account {
3528
3657
  * @returns The account transactions
3529
3658
  */
3530
3659
  getAccountTransactions(args: {
3531
- accountAddress: HexInput;
3660
+ accountAddress: AccountAddressInput;
3532
3661
  options?: PaginationArgs;
3533
3662
  }): Promise<TransactionResponse[]>;
3534
3663
  /**
@@ -3544,7 +3673,7 @@ declare class Account {
3544
3673
  * @returns Account resources
3545
3674
  */
3546
3675
  getAccountResources(args: {
3547
- accountAddress: HexInput;
3676
+ accountAddress: AccountAddressInput;
3548
3677
  options?: PaginationArgs & LedgerVersion;
3549
3678
  }): Promise<MoveResource[]>;
3550
3679
  /**
@@ -3566,7 +3695,7 @@ declare class Account {
3566
3695
  * ```
3567
3696
  */
3568
3697
  getAccountResource<T extends {} = any>(args: {
3569
- accountAddress: HexInput;
3698
+ accountAddress: AccountAddressInput;
3570
3699
  resourceType: MoveStructType;
3571
3700
  options?: LedgerVersion;
3572
3701
  }): Promise<T>;
@@ -3580,7 +3709,7 @@ declare class Account {
3580
3709
  * @returns Promise<AccountAddress> The accountAddress associated with the authentication key
3581
3710
  */
3582
3711
  lookupOriginalAccountAddress(args: {
3583
- authenticationKey: HexInput;
3712
+ authenticationKey: AccountAddressInput;
3584
3713
  options?: LedgerVersion;
3585
3714
  }): Promise<AccountAddress>;
3586
3715
  /**
@@ -3590,7 +3719,7 @@ declare class Account {
3590
3719
  * @returns Current count of tokens owned by the account
3591
3720
  */
3592
3721
  getAccountTokensCount(args: {
3593
- accountAddress: HexInput;
3722
+ accountAddress: AccountAddressInput;
3594
3723
  }): Promise<number>;
3595
3724
  /**
3596
3725
  * Queries the account's current owned tokens.
@@ -3606,7 +3735,7 @@ declare class Account {
3606
3735
  * @returns Tokens array with the token data
3607
3736
  */
3608
3737
  getAccountOwnedTokens(args: {
3609
- accountAddress: HexInput;
3738
+ accountAddress: AccountAddressInput;
3610
3739
  options?: {
3611
3740
  tokenStandard?: TokenStandard;
3612
3741
  pagination?: PaginationArgs;
@@ -3628,8 +3757,8 @@ declare class Account {
3628
3757
  * @returns Tokens array with the token data
3629
3758
  */
3630
3759
  getAccountOwnedTokensFromCollectionAddress(args: {
3631
- accountAddress: HexInput;
3632
- collectionAddress: HexInput;
3760
+ accountAddress: AccountAddressInput;
3761
+ collectionAddress: AccountAddressInput;
3633
3762
  options?: {
3634
3763
  tokenStandard?: TokenStandard;
3635
3764
  pagination?: PaginationArgs;
@@ -3650,7 +3779,7 @@ declare class Account {
3650
3779
  * @returns Collections array with the collections data
3651
3780
  */
3652
3781
  getAccountCollectionsWithOwnedTokens(args: {
3653
- accountAddress: HexInput;
3782
+ accountAddress: AccountAddressInput;
3654
3783
  options?: {
3655
3784
  tokenStandard?: TokenStandard;
3656
3785
  pagination?: PaginationArgs;
@@ -3664,7 +3793,7 @@ declare class Account {
3664
3793
  * @returns Current count of transactions made by an account
3665
3794
  */
3666
3795
  getAccountTransactionsCount(args: {
3667
- accountAddress: HexInput;
3796
+ accountAddress: AccountAddressInput;
3668
3797
  }): Promise<number>;
3669
3798
  /**
3670
3799
  * Queries an account's coins data
@@ -3676,7 +3805,7 @@ declare class Account {
3676
3805
  * @returns Array with the coins data
3677
3806
  */
3678
3807
  getAccountCoinsData(args: {
3679
- accountAddress: HexInput;
3808
+ accountAddress: AccountAddressInput;
3680
3809
  options?: {
3681
3810
  pagination?: PaginationArgs;
3682
3811
  orderBy?: OrderBy<GetAccountCoinsDataResponse[0]>;
@@ -3689,7 +3818,7 @@ declare class Account {
3689
3818
  * @returns Current count of the aggregated count of all account's coins
3690
3819
  */
3691
3820
  getAccountCoinsCount(args: {
3692
- accountAddress: HexInput;
3821
+ accountAddress: AccountAddressInput;
3693
3822
  }): Promise<number>;
3694
3823
  /**
3695
3824
  * Queries an account's owned objects
@@ -3701,7 +3830,7 @@ declare class Account {
3701
3830
  * @returns Objects array with the object data
3702
3831
  */
3703
3832
  getAccountOwnedObjects(args: {
3704
- accountAddress: HexInput;
3833
+ accountAddress: AccountAddressInput;
3705
3834
  options?: {
3706
3835
  pagination?: PaginationArgs;
3707
3836
  orderBy?: OrderBy<GetAccountOwnedObjectsResponse[0]>;
@@ -3872,9 +4001,9 @@ declare class TypeTagStruct extends TypeTag {
3872
4001
  }
3873
4002
  declare class StructTag extends Serializable {
3874
4003
  readonly address: AccountAddress;
3875
- readonly module_name: Identifier;
4004
+ readonly moduleName: Identifier;
3876
4005
  readonly name: Identifier;
3877
- readonly type_args: Array<TypeTag>;
4006
+ readonly typeArgs: Array<TypeTag>;
3878
4007
  constructor(address: AccountAddress, module_name: Identifier, name: Identifier, type_args: Array<TypeTag>);
3879
4008
  serialize(serializer: Serializer): void;
3880
4009
  static deserialize(deserializer: Deserializer): StructTag;
@@ -4159,6 +4288,27 @@ declare class FeePayerRawTransaction extends RawTransactionWithData {
4159
4288
  static load(deserializer: Deserializer): FeePayerRawTransaction;
4160
4289
  }
4161
4290
 
4291
+ /**
4292
+ * Representation of the challenge which is needed to sign by owner of the account
4293
+ * to rotate the authentication key.
4294
+ */
4295
+ declare class RotationProofChallenge extends Serializable {
4296
+ readonly accountAddress: AccountAddress;
4297
+ readonly moduleName: MoveString;
4298
+ readonly structName: MoveString;
4299
+ readonly originator: AccountAddress;
4300
+ readonly currentAuthKey: AccountAddress;
4301
+ readonly newPublicKey: MoveVector<U8>;
4302
+ readonly sequenceNumber: U64;
4303
+ constructor(args: {
4304
+ sequenceNumber: AnyNumber;
4305
+ originator: AccountAddress;
4306
+ currentAuthKey: AccountAddress;
4307
+ newPublicKey: PublicKey;
4308
+ });
4309
+ serialize(serializer: Serializer): void;
4310
+ }
4311
+
4162
4312
  declare abstract class AccountAuthenticator extends Serializable {
4163
4313
  abstract serialize(serializer: Serializer): void;
4164
4314
  static deserialize(deserializer: Deserializer): AccountAuthenticator;
@@ -4367,7 +4517,7 @@ declare type InputGenerateTransactionPayloadDataWithRemoteABI = (InputScriptData
4367
4517
  */
4368
4518
  declare type InputEntryFunctionData = {
4369
4519
  function: MoveStructType;
4370
- typeArguments?: Array<TypeTag>;
4520
+ typeArguments?: Array<TypeTag | string>;
4371
4521
  functionArguments: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
4372
4522
  };
4373
4523
  declare type InputEntryFunctionDataWithRemoteABI = InputEntryFunctionData & {
@@ -4383,7 +4533,7 @@ declare type InputMultiSigData = {
4383
4533
  * The data needed to generate a Multi Sig payload
4384
4534
  */
4385
4535
  declare type InputMultiSigDataWithRemoteABI = {
4386
- multisigAddress: AccountAddress | string;
4536
+ multisigAddress: AccountAddressInput;
4387
4537
  } & InputEntryFunctionDataWithRemoteABI;
4388
4538
  /**
4389
4539
  * The data needed to generate a Script payload
@@ -4408,7 +4558,7 @@ declare type EntryFunctionABI = {
4408
4558
  */
4409
4559
  interface InputGenerateSingleSignerRawTransactionArgs {
4410
4560
  aptosConfig: AptosConfig;
4411
- sender: HexInput;
4561
+ sender: AccountAddressInput;
4412
4562
  payload: AnyTransactionPayloadInstance;
4413
4563
  feePayerAddress?: undefined;
4414
4564
  secondarySignerAddresses?: undefined;
@@ -4420,10 +4570,10 @@ interface InputGenerateSingleSignerRawTransactionArgs {
4420
4570
  */
4421
4571
  interface InputGenerateFeePayerRawTransactionArgs {
4422
4572
  aptosConfig: AptosConfig;
4423
- sender: HexInput;
4573
+ sender: AccountAddressInput;
4424
4574
  payload: AnyTransactionPayloadInstance;
4425
- feePayerAddress: HexInput;
4426
- secondarySignerAddresses?: HexInput[];
4575
+ feePayerAddress: AccountAddressInput;
4576
+ secondarySignerAddresses?: AccountAddressInput[];
4427
4577
  options?: InputGenerateTransactionOptions;
4428
4578
  }
4429
4579
  /**
@@ -4432,9 +4582,9 @@ interface InputGenerateFeePayerRawTransactionArgs {
4432
4582
  */
4433
4583
  interface InputGenerateMultiAgentRawTransactionArgs {
4434
4584
  aptosConfig: AptosConfig;
4435
- sender: HexInput;
4585
+ sender: AccountAddressInput;
4436
4586
  payload: AnyTransactionPayloadInstance;
4437
- secondarySignerAddresses: HexInput[];
4587
+ secondarySignerAddresses: AccountAddressInput[];
4438
4588
  feePayerAddress?: undefined;
4439
4589
  options?: InputGenerateTransactionOptions;
4440
4590
  }
@@ -4448,7 +4598,7 @@ declare type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTrans
4448
4598
  * @param rawTransaction a bcs serialized raw transaction
4449
4599
  */
4450
4600
  interface InputSingleSignerTransaction {
4451
- rawTransaction: Uint8Array;
4601
+ rawTransaction: RawTransaction;
4452
4602
  feePayerAddress?: undefined;
4453
4603
  secondarySignerAddresses?: undefined;
4454
4604
  }
@@ -4460,7 +4610,7 @@ interface InputSingleSignerTransaction {
4460
4610
  * @param feePayerAddress fee payer address for a fee payer transaction (aka Sponsored Transaction)
4461
4611
  */
4462
4612
  interface InputFeePayerTransaction {
4463
- rawTransaction: Uint8Array;
4613
+ rawTransaction: RawTransaction;
4464
4614
  feePayerAddress: AccountAddress;
4465
4615
  secondarySignerAddresses?: AccountAddress[];
4466
4616
  }
@@ -4471,7 +4621,7 @@ interface InputFeePayerTransaction {
4471
4621
  * @param secondarySignerAddresses secondary signer addresses for multi-agent transaction
4472
4622
  */
4473
4623
  interface InputMultiAgentTransaction {
4474
- rawTransaction: Uint8Array;
4624
+ rawTransaction: RawTransaction;
4475
4625
  secondarySignerAddresses: AccountAddress[];
4476
4626
  feePayerAddress?: undefined;
4477
4627
  }
@@ -4507,8 +4657,8 @@ declare type InputSimulateTransactionOptions = {
4507
4657
  * Interface that holds the user data input when generating a single signer transaction
4508
4658
  */
4509
4659
  interface InputGenerateSingleSignerRawTransactionData {
4510
- sender: HexInput;
4511
- feePayerAddress?: undefined;
4660
+ sender: AccountAddressInput;
4661
+ hasFeePayer?: undefined;
4512
4662
  secondarySignerAddresses?: undefined;
4513
4663
  options?: InputGenerateTransactionOptions;
4514
4664
  data: InputGenerateTransactionPayloadData;
@@ -4517,9 +4667,9 @@ interface InputGenerateSingleSignerRawTransactionData {
4517
4667
  * Interface that holds the user data input when generating a fee payer transaction
4518
4668
  */
4519
4669
  interface InputGenerateFeePayerRawTransactionData {
4520
- sender: HexInput;
4521
- feePayerAddress: HexInput;
4522
- secondarySignerAddresses?: HexInput[];
4670
+ sender: AccountAddressInput;
4671
+ hasFeePayer: true;
4672
+ secondarySignerAddresses?: AccountAddressInput[];
4523
4673
  options?: InputGenerateTransactionOptions;
4524
4674
  data: InputGenerateTransactionPayloadData;
4525
4675
  }
@@ -4527,9 +4677,9 @@ interface InputGenerateFeePayerRawTransactionData {
4527
4677
  * Interface that holds the user data input when generating a multi-agent transaction
4528
4678
  */
4529
4679
  interface InputGenerateMultiAgentRawTransactionData {
4530
- sender: HexInput;
4531
- secondarySignerAddresses: HexInput[];
4532
- feePayerAddress?: undefined;
4680
+ sender: AccountAddressInput;
4681
+ secondarySignerAddresses: AccountAddressInput[];
4682
+ hasFeePayer?: undefined;
4533
4683
  options?: InputGenerateTransactionOptions;
4534
4684
  data: InputGenerateTransactionPayloadData;
4535
4685
  }
@@ -4537,6 +4687,15 @@ interface InputGenerateMultiAgentRawTransactionData {
4537
4687
  * Unified type that holds all the user data input interfaces when generating different transaction types
4538
4688
  */
4539
4689
  declare type InputGenerateTransactionData = InputGenerateMultiAgentRawTransactionData | InputGenerateFeePayerRawTransactionData | InputGenerateSingleSignerRawTransactionData;
4690
+ /**
4691
+ * Interface that holds the user data input when submitting a transaction
4692
+ */
4693
+ interface InputSubmitTransactionData {
4694
+ transaction: AnyRawTransaction;
4695
+ senderAuthenticator: AccountAuthenticator;
4696
+ feePayerAuthenticator?: AccountAuthenticator;
4697
+ additionalSignersAuthenticators?: Array<AccountAuthenticator>;
4698
+ }
4540
4699
 
4541
4700
  /**
4542
4701
  * A class to handle all `Coin` operations
@@ -4556,7 +4715,7 @@ declare class Coin {
4556
4715
  */
4557
4716
  transferCoinTransaction(args: {
4558
4717
  sender: Account$1;
4559
- recipient: HexInput;
4718
+ recipient: AccountAddressInput;
4560
4719
  amount: AnyNumber;
4561
4720
  coinType?: MoveStructType;
4562
4721
  options?: InputGenerateTransactionOptions;
@@ -4635,7 +4794,7 @@ declare class DigitalAsset {
4635
4794
  * @returns GetCollectionDataResponse response type
4636
4795
  */
4637
4796
  getCollectionData(args: {
4638
- creatorAddress: HexInput;
4797
+ creatorAddress: AccountAddressInput;
4639
4798
  collectionName: string;
4640
4799
  options?: {
4641
4800
  tokenStandard?: TokenStandard;
@@ -4653,7 +4812,7 @@ declare class DigitalAsset {
4653
4812
  * @returns the collection id
4654
4813
  */
4655
4814
  getCollectionId(args: {
4656
- creatorAddress: HexInput;
4815
+ creatorAddress: AccountAddressInput;
4657
4816
  collectionName: string;
4658
4817
  options?: {
4659
4818
  tokenStandard?: TokenStandard;
@@ -4685,7 +4844,7 @@ declare class DigitalAsset {
4685
4844
  * @returns GetTokenDataResponse containing relevant data to the token.
4686
4845
  */
4687
4846
  getTokenData(args: {
4688
- tokenAddress: HexInput;
4847
+ tokenAddress: AccountAddressInput;
4689
4848
  }): Promise<GetTokenDataResponse>;
4690
4849
  /**
4691
4850
  * Gets token ownership data given the address of a token.
@@ -4694,7 +4853,7 @@ declare class DigitalAsset {
4694
4853
  * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the token.
4695
4854
  */
4696
4855
  getCurrentTokenOwnership(args: {
4697
- tokenAddress: HexInput;
4856
+ tokenAddress: AccountAddressInput;
4698
4857
  }): Promise<GetCurrentTokenOwnershipResponse>;
4699
4858
  /**
4700
4859
  * Gets the tokens that the given address owns.
@@ -4703,7 +4862,7 @@ declare class DigitalAsset {
4703
4862
  * @returns GetOwnedTokensResponse containing ownership data of the tokens belonging to the ownerAddresss.
4704
4863
  */
4705
4864
  getOwnedTokens(args: {
4706
- ownerAddress: HexInput;
4865
+ ownerAddress: AccountAddressInput;
4707
4866
  options?: {
4708
4867
  pagination?: PaginationArgs;
4709
4868
  orderBy?: OrderBy<GetOwnedTokensResponse[0]>;
@@ -4716,7 +4875,7 @@ declare class DigitalAsset {
4716
4875
  * @returns GetTokenActivityResponse containing relevant activity data to the token.
4717
4876
  */
4718
4877
  getTokenActivity(args: {
4719
- tokenAddress: HexInput;
4878
+ tokenAddress: AccountAddressInput;
4720
4879
  options?: {
4721
4880
  pagination?: PaginationArgs;
4722
4881
  orderBy?: OrderBy<GetTokenActivityResponse[0]>;
@@ -4739,7 +4898,7 @@ declare class Event {
4739
4898
  * @returns Promise<GetEventsResponse>
4740
4899
  */
4741
4900
  getAccountEventsByCreationNumber(args: {
4742
- accountAddress: HexInput;
4901
+ accountAddress: AccountAddressInput;
4743
4902
  creationNumber: AnyNumber;
4744
4903
  }): Promise<GetEventsResponse>;
4745
4904
  /**
@@ -4751,7 +4910,7 @@ declare class Event {
4751
4910
  * @returns Promise<GetEventsResponse>
4752
4911
  */
4753
4912
  getAccountEventsByEventType(args: {
4754
- accountAddress: HexInput;
4913
+ accountAddress: AccountAddressInput;
4755
4914
  eventType: MoveStructType;
4756
4915
  options?: {
4757
4916
  pagination?: PaginationArgs;
@@ -4799,7 +4958,7 @@ declare class Faucet {
4799
4958
  * @returns Transaction hash of the transaction that funded the account
4800
4959
  */
4801
4960
  fundAccount(args: {
4802
- accountAddress: HexInput;
4961
+ accountAddress: AccountAddressInput;
4803
4962
  amount: number;
4804
4963
  options?: WaitForTransactionOptions;
4805
4964
  }): Promise<string>;
@@ -4945,11 +5104,11 @@ declare class General {
4945
5104
  *
4946
5105
  * @returns Table item value rendered in JSON
4947
5106
  */
4948
- getTableItem(args: {
5107
+ getTableItem<T>(args: {
4949
5108
  handle: string;
4950
5109
  data: TableItemRequest;
4951
5110
  options?: LedgerVersion;
4952
- }): Promise<any>;
5111
+ }): Promise<T>;
4953
5112
  /**
4954
5113
  * Queries for a Move view function
4955
5114
  * @param args.payload Payload for the view function
@@ -5009,6 +5168,76 @@ declare class General {
5009
5168
  getIndexerLastSuccessVersion(): Promise<number>;
5010
5169
  }
5011
5170
 
5171
+ /**
5172
+ * This file contains the underlying implementations for exposed API surface in
5173
+ * the {@link api/name}. By moving the methods out into a separate file,
5174
+ * other namespaces and processes can access these methods without depending on the entire
5175
+ * name namespace and without having a dependency cycle error.
5176
+ */
5177
+
5178
+ interface RegisterNameParameters {
5179
+ aptosConfig: AptosConfig;
5180
+ sender: Account$1;
5181
+ name: string;
5182
+ expiration: {
5183
+ policy: "domain";
5184
+ years: 1;
5185
+ } | {
5186
+ policy: "subdomain:follow-domain";
5187
+ } | {
5188
+ policy: "subdomain:independent";
5189
+ expirationDate: Date;
5190
+ };
5191
+ transferable?: boolean;
5192
+ toAddress?: HexInput;
5193
+ targetAddress?: HexInput;
5194
+ options?: InputGenerateTransactionOptions;
5195
+ }
5196
+
5197
+ /**
5198
+ * A class to handle all `ANS` operations
5199
+ */
5200
+ declare class ANS {
5201
+ readonly config: AptosConfig;
5202
+ constructor(config: AptosConfig);
5203
+ /**
5204
+ * Retrieve the owner address of a domain name or subdomain name.
5205
+ *
5206
+ * ```ts
5207
+ * getOwnerAddress({name: "test.aptos"})
5208
+ * // Will return the owner address of "test.aptos.apt" or undefined
5209
+ * ```
5210
+ *
5211
+ * @param args.name - A string of the name to retrieve
5212
+ *
5213
+ * @returns MoveAddressType if the name is owned, undefined otherwise
5214
+ */
5215
+ getOwnerAddress(args: {
5216
+ name: string;
5217
+ }): Promise<MoveAddressType | undefined>;
5218
+ /**
5219
+ * Registers a new domain or subdomain name
5220
+ *
5221
+ * @param args.sender - The sender account
5222
+ * @param args.name - A string or {domainName: string, subdomainName?: string} of the name to register. This
5223
+ * can be inclusive or exclusive of the .apt suffix.
5224
+ * Examples include: "xyz", "xyz.apt", "xyz.kyc.apt", {domainName: "xyz"}, {domainName: "kyc", subdomainName: "xyz"}.
5225
+ * @param args.expiration - An object with the expiration policy of the name.
5226
+ * @param args.expiration.policy - 'domain' | 'subdomain:follow-domain' | 'subdomain:independent'
5227
+ * - domain: Years is required and the name will expire after the given number of years.
5228
+ * - subdomain:follow-domain: The name will expire at the same time as the domain name.
5229
+ * - subdomain:independent: The name will expire at the given date.
5230
+ * @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.
5231
+ * @param args.targetAddress optional - The address the domain name will resolve to. If not provided,
5232
+ * the sender's address will be used.
5233
+ * @param args.toAddress optional - The address to send the domain name to. If not provided,
5234
+ * the transaction will be sent to the router.
5235
+ *
5236
+ * @returns InputSingleSignerTransaction
5237
+ */
5238
+ registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<InputSingleSignerTransaction>;
5239
+ }
5240
+
5012
5241
  /**
5013
5242
  * A class to query all `Staking` related queries on Aptos.
5014
5243
  */
@@ -5022,7 +5251,7 @@ declare class Staking {
5022
5251
  * @returns The number of delegators for the given pool
5023
5252
  */
5024
5253
  getNumberOfDelegators(args: {
5025
- poolAddress: HexInput;
5254
+ poolAddress: AccountAddressInput;
5026
5255
  }): Promise<number>;
5027
5256
  /**
5028
5257
  * Queries current number of delegators in a pool. Throws an error if the pool is not found.
@@ -5042,8 +5271,8 @@ declare class Staking {
5042
5271
  * @returns GetDelegatedStakingActivitiesResponse response type
5043
5272
  */
5044
5273
  getDelegatedStakingActivities(args: {
5045
- delegatorAddress: HexInput;
5046
- poolAddress: HexInput;
5274
+ delegatorAddress: AccountAddressInput;
5275
+ poolAddress: AccountAddressInput;
5047
5276
  }): Promise<GetDelegatedStakingActivitiesResponse>;
5048
5277
  }
5049
5278
 
@@ -5156,10 +5385,11 @@ declare class TransactionSubmission {
5156
5385
  * Sign a transaction that can later be submitted to chain
5157
5386
  *
5158
5387
  * @param args.signer The signer account to sign the transaction
5159
- * @param args.transaction A raw transaction type (note that it holds the raw transaction as a bcs serialized data)
5388
+ * @param args.transaction An instance of a RawTransaction, plus optional secondary/fee payer addresses
5389
+ * @param args.asFeePayer optional. If the signer is also the fee payer
5160
5390
  * ```
5161
5391
  * {
5162
- * rawTransaction: Uint8Array,
5392
+ * rawTransaction: RawTransaction,
5163
5393
  * secondarySignerAddresses? : Array<AccountAddress>,
5164
5394
  * feePayerAddress?: AccountAddress
5165
5395
  * }
@@ -5170,6 +5400,7 @@ declare class TransactionSubmission {
5170
5400
  signTransaction(args: {
5171
5401
  signer: Account$1;
5172
5402
  transaction: AnyRawTransaction;
5403
+ asFeePayer?: boolean;
5173
5404
  }): AccountAuthenticator;
5174
5405
  /**
5175
5406
  * Simulates a transaction before singing it.
@@ -5190,22 +5421,15 @@ declare class TransactionSubmission {
5190
5421
  *
5191
5422
  * @return PendingTransactionResponse
5192
5423
  */
5193
- submitTransaction(args: {
5194
- transaction: AnyRawTransaction;
5195
- senderAuthenticator: AccountAuthenticator;
5196
- secondarySignerAuthenticators?: {
5197
- feePayerAuthenticator?: AccountAuthenticator;
5198
- additionalSignersAuthenticators?: Array<AccountAuthenticator>;
5199
- };
5200
- }): Promise<PendingTransactionResponse>;
5424
+ submitTransaction(args: InputSubmitTransactionData): Promise<PendingTransactionResponse>;
5201
5425
  /**
5202
5426
  * Sign and submit a single signer transaction to chain
5203
5427
  *
5204
5428
  * @param args.signer The signer account to sign the transaction
5205
- * @param args.transaction A raw transaction type (note that it holds the raw transaction as a bcs serialized data)
5429
+ * @param args.transaction An instance of a RawTransaction, plus optional secondary/fee payer addresses
5206
5430
  * ```
5207
5431
  * {
5208
- * rawTransaction: Uint8Array,
5432
+ * rawTransaction: RawTransaction,
5209
5433
  * secondarySignerAddresses? : Array<AccountAddress>,
5210
5434
  * feePayerAddress?: AccountAddress
5211
5435
  * }
@@ -5231,11 +5455,25 @@ declare class TransactionSubmission {
5231
5455
  * @returns A SingleSignerTransaction that can be simulated or submitted to chain
5232
5456
  */
5233
5457
  publishPackageTransaction(args: {
5234
- account: HexInput;
5458
+ account: AccountAddressInput;
5235
5459
  metadataBytes: HexInput;
5236
5460
  moduleBytecode: Array<HexInput>;
5237
5461
  options?: InputGenerateTransactionOptions;
5238
5462
  }): Promise<InputSingleSignerTransaction>;
5463
+ /**
5464
+ * Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
5465
+ * the account.
5466
+ * Note: Only legacy Ed25519 scheme is supported for now.
5467
+ * More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
5468
+ * @param args.fromAccount The account to rotate the auth key for
5469
+ * @param args.toNewPrivateKey The new private key to rotate to
5470
+ *
5471
+ * @returns PendingTransactionResponse
5472
+ */
5473
+ rotateAuthKey(args: {
5474
+ fromAccount: Account$1;
5475
+ toNewPrivateKey: PrivateKey;
5476
+ }): Promise<TransactionResponse>;
5239
5477
  }
5240
5478
 
5241
5479
  /**
@@ -5248,6 +5486,7 @@ declare class TransactionSubmission {
5248
5486
  declare class Aptos {
5249
5487
  readonly config: AptosConfig;
5250
5488
  readonly account: Account;
5489
+ readonly ans: ANS;
5251
5490
  readonly coin: Coin;
5252
5491
  readonly digitalAsset: DigitalAsset;
5253
5492
  readonly event: Event;
@@ -5259,7 +5498,7 @@ declare class Aptos {
5259
5498
  readonly transactionSubmission: TransactionSubmission;
5260
5499
  constructor(settings?: AptosConfig);
5261
5500
  }
5262
- interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, TransactionSubmission {
5501
+ interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, ANS, TransactionSubmission {
5263
5502
  }
5264
5503
 
5265
5504
  /**
@@ -5455,7 +5694,6 @@ declare function generateTransactionPayload(args: InputMultiSigDataWithRemoteABI
5455
5694
  declare function generateTransactionPayload(args: InputGenerateTransactionPayloadDataWithRemoteABI): Promise<AnyTransactionPayloadInstance>;
5456
5695
  declare function generateTransactionPayloadWithABI(args: InputEntryFunctionData, functionAbi: EntryFunctionABI): TransactionPayloadEntryFunction;
5457
5696
  declare function generateTransactionPayloadWithABI(args: InputMultiSigData, functionAbi: EntryFunctionABI): TransactionPayloadMultisig;
5458
- declare function generateTransactionPayloadWithABI(args: InputGenerateTransactionPayloadData, functionAbi: EntryFunctionABI): AnyTransactionPayloadInstance;
5459
5697
  /**
5460
5698
  * Generates a raw transaction
5461
5699
  *
@@ -5467,7 +5705,7 @@ declare function generateTransactionPayloadWithABI(args: InputGenerateTransactio
5467
5705
  */
5468
5706
  declare function generateRawTransaction(args: {
5469
5707
  aptosConfig: AptosConfig;
5470
- sender: HexInput;
5708
+ sender: AccountAddressInput;
5471
5709
  payload: AnyTransactionPayloadInstance;
5472
5710
  options?: InputGenerateTransactionOptions;
5473
5711
  }): Promise<RawTransaction>;
@@ -5515,14 +5753,7 @@ declare function sign(args: {
5515
5753
  *
5516
5754
  * @returns A SignedTransaction
5517
5755
  */
5518
- declare function generateSignedTransaction(args: {
5519
- transaction: AnyRawTransaction;
5520
- senderAuthenticator: AccountAuthenticator;
5521
- secondarySignerAuthenticators?: {
5522
- feePayerAuthenticator?: AccountAuthenticator;
5523
- additionalSignersAuthenticators?: Array<AccountAuthenticator>;
5524
- };
5525
- }): Uint8Array;
5756
+ declare function generateSignedTransaction(args: InputSubmitTransactionData): Uint8Array;
5526
5757
  /**
5527
5758
  * Derive the raw transaction type - FeePayerRawTransaction or MultiAgentRawTransaction or RawTransaction
5528
5759
  *
@@ -5540,10 +5771,7 @@ declare function deriveTransactionType(transaction: AnyRawTransaction): AnyRawTr
5540
5771
  *
5541
5772
  * @returns A SignedTransaction
5542
5773
  */
5543
- declare function generateMultiSignersSignedTransaction(transaction: MultiAgentRawTransaction | FeePayerRawTransaction, senderAuthenticator: AccountAuthenticator, secondarySignerAuthenticators: {
5544
- feePayerAuthenticator?: AccountAuthenticator;
5545
- additionalSignersAuthenticators?: Array<AccountAuthenticator>;
5546
- }): Uint8Array;
5774
+ declare function generateMultiSignersSignedTransaction(transaction: MultiAgentRawTransaction | FeePayerRawTransaction, senderAuthenticator: AccountAuthenticator, feePayerAuthenticator?: AccountAuthenticator, additionalSignersAuthenticators?: Array<AccountAuthenticator>): Uint8Array;
5547
5775
  declare function getSigningMessage(rawTxn: AnyRawTransactionInstance): Uint8Array;
5548
5776
 
5549
5777
  /**
@@ -5600,38 +5828,4 @@ declare function parseTypeTag(typeStr: string, options?: {
5600
5828
  allowGenerics?: boolean;
5601
5829
  }): TypeTag;
5602
5830
 
5603
- declare type DerivedKeys = {
5604
- key: Uint8Array;
5605
- chainCode: Uint8Array;
5606
- };
5607
- /**
5608
- * Aptos derive path is 637
5609
- *
5610
- * See https://github.com/satoshilabs/slips/blob/master/slip-0044.md
5611
- */
5612
- declare const APTOS_PATH_REGEX: RegExp;
5613
- /**
5614
- * A list of supported key types and associated seeds
5615
- */
5616
- declare enum KeyType {
5617
- ED25519 = "ed25519 seed"
5618
- }
5619
- /**
5620
- * Checks if the BIP44 path is valid for Aptos
5621
- * @param path the BIP44 path
5622
- *
5623
- * @returns true if the path is a valid Aptos path
5624
- */
5625
- declare const isValidPath: (path: string) => boolean;
5626
- /**
5627
- * Derives a private key from a mnemonic seed phrase.
5628
- *
5629
- * To derive multiple keys from the same phrase, change the path
5630
- * @param keyType the key type seed used to derive keys
5631
- * @param path the BIP44 path
5632
- * @param seedPhrase the mnemonic seed phrase
5633
- * @param offset the offset used for key derivation, defaults to [HARDENED_OFFSET]
5634
- */
5635
- declare const derivePrivateKeyFromMnemonic: (keyType: KeyType, path: string, seedPhrase: string, offset?: number) => DerivedKeys;
5636
-
5637
- export { APTOS_PATH_REGEX, Account$1 as Account, AccountAddress, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountEd25519Signature, AccountMultiEd25519Signature, AccountSecp256k1Signature, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithLegacyKey, GenerateAccountWithUnifiedKey, GenesisPayload, GenesisTransactionResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputFeePayerTransaction, InputGenerateFeePayerRawTransactionArgs, InputGenerateFeePayerRawTransactionData, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiAgentTransaction, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSingleSignerTransaction, KeyType, LedgerInfo, LedgerVersion, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNodeAPI, OrderBy, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, PublicKey, RawTransaction, RawTransactionWithData, RoleType, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, StateCheckpointTransactionResponse, StructTag, TableItemRequest, TokenStandard, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, ViewRequestData, WaitForTransactionOptions, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, convertArgument, derivePrivateKeyFromMnemonic, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, getSigningMessage, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidPath, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, request, sign, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
5831
+ export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountEd25519Signature, AccountMultiEd25519Signature, AccountSecp256k1Signature, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputFeePayerTransaction, InputGenerateFeePayerRawTransactionArgs, InputGenerateFeePayerRawTransactionData, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiAgentTransaction, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSingleSignerTransaction, InputSubmitTransactionData, KeyType, LedgerInfo, LedgerVersion, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, PublicKey, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, StateCheckpointTransactionResponse, StructTag, TableItemRequest, TokenStandard, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, ViewRequestData, WaitForTransactionOptions, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, getSigningMessage, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };