@aptos-labs/ts-sdk 0.0.5 → 0.0.7

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 (434) hide show
  1. package/README.md +12 -7
  2. package/dist/browser/index.d.ts +874 -596
  3. package/dist/browser/index.global.js +75 -30
  4. package/dist/browser/index.global.js.map +1 -1
  5. package/dist/common/index.d.ts +874 -596
  6. package/dist/common/index.js +45 -24
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/api/{account.d.ts → account.d.mts} +17 -17
  9. package/dist/esm/api/account.mjs +1 -1
  10. package/dist/esm/api/ans.d.mts +273 -0
  11. package/dist/esm/api/ans.mjs +1 -1
  12. package/dist/esm/api/aptos.d.mts +80 -0
  13. package/dist/esm/api/aptos.mjs +1 -1
  14. package/dist/esm/api/{aptosConfig.d.ts → aptosConfig.d.mts} +6 -6
  15. package/dist/esm/api/aptosConfig.mjs +1 -1
  16. package/dist/esm/api/coin.d.mts +59 -0
  17. package/dist/esm/api/coin.mjs +1 -1
  18. package/dist/esm/api/{digitalAsset.d.ts → digitalAsset.d.mts} +35 -35
  19. package/dist/esm/api/digitalAsset.mjs +1 -1
  20. package/dist/esm/api/{event.d.ts → event.d.mts} +14 -14
  21. package/dist/esm/api/event.mjs +1 -1
  22. package/dist/esm/api/{faucet.d.ts → faucet.d.mts} +13 -13
  23. package/dist/esm/api/faucet.mjs +1 -1
  24. package/dist/esm/api/{fungibleAsset.d.ts → fungibleAsset.d.mts} +7 -7
  25. package/dist/esm/api/fungibleAsset.mjs +1 -1
  26. package/dist/esm/api/{general.d.ts → general.d.mts} +11 -11
  27. package/dist/esm/api/general.mjs +1 -1
  28. package/dist/esm/api/index.d.mts +50 -0
  29. package/dist/esm/api/index.mjs +1 -1
  30. package/dist/esm/api/{staking.d.ts → staking.d.mts} +13 -13
  31. package/dist/esm/api/staking.mjs +1 -1
  32. package/dist/esm/api/{transaction.d.ts → transaction.d.mts} +7 -7
  33. package/dist/esm/api/transaction.mjs +1 -1
  34. package/dist/esm/api/transactionSubmission/build.d.mts +53 -0
  35. package/dist/esm/api/transactionSubmission/build.mjs +2 -0
  36. package/dist/esm/api/transactionSubmission/sign.d.mts +50 -0
  37. package/dist/esm/api/transactionSubmission/sign.mjs +2 -0
  38. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -0
  39. package/dist/esm/api/transactionSubmission/simulate.d.mts +53 -0
  40. package/dist/esm/api/transactionSubmission/simulate.mjs +2 -0
  41. package/dist/esm/api/transactionSubmission/simulate.mjs.map +1 -0
  42. package/dist/esm/api/transactionSubmission/submit.d.mts +51 -0
  43. package/dist/esm/api/transactionSubmission/submit.mjs +2 -0
  44. package/dist/esm/api/transactionSubmission/submit.mjs.map +1 -0
  45. package/dist/esm/api/transactionSubmission.d.mts +91 -0
  46. package/dist/esm/api/transactionSubmission.mjs +1 -1
  47. package/dist/esm/bcs/{consts.d.ts → consts.d.mts} +5 -5
  48. package/dist/esm/bcs/consts.mjs +1 -1
  49. package/dist/esm/bcs/{deserializer.d.ts → deserializer.d.mts} +5 -5
  50. package/dist/esm/bcs/deserializer.mjs +1 -1
  51. package/dist/esm/bcs/index.d.mts +14 -0
  52. package/dist/esm/bcs/index.mjs +1 -1
  53. package/dist/esm/bcs/serializable/{entryFunctionBytes.d.ts → entryFunctionBytes.d.mts} +11 -11
  54. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  55. package/dist/esm/bcs/serializable/{fixedBytes.d.ts → fixedBytes.d.mts} +10 -10
  56. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  57. package/dist/esm/bcs/serializable/{movePrimitives.d.ts → movePrimitives.d.mts} +10 -10
  58. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  59. package/dist/esm/bcs/serializable/{moveStructs.d.ts → moveStructs.d.mts} +11 -11
  60. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  61. package/dist/esm/bcs/{serializer.d.ts → serializer.d.mts} +7 -7
  62. package/dist/esm/bcs/serializer.mjs +1 -1
  63. package/dist/esm/{chunk-2B5QXKPU.mjs → chunk-2OZRBXLM.mjs} +2 -2
  64. package/dist/esm/chunk-2OZRBXLM.mjs.map +1 -0
  65. package/dist/esm/{chunk-O243HOP3.mjs → chunk-33T7WTB6.mjs} +2 -2
  66. package/dist/esm/chunk-33T7WTB6.mjs.map +1 -0
  67. package/dist/esm/chunk-3732I6BR.mjs +2 -0
  68. package/dist/esm/chunk-3732I6BR.mjs.map +1 -0
  69. package/dist/esm/chunk-3VZ3OZKC.mjs +2 -0
  70. package/dist/esm/chunk-3VZ3OZKC.mjs.map +1 -0
  71. package/dist/esm/chunk-44MGBJ73.mjs +2 -0
  72. package/dist/esm/{chunk-CZZJAR3B.mjs.map → chunk-44MGBJ73.mjs.map} +1 -1
  73. package/dist/esm/chunk-4ADA5BE7.mjs +2 -0
  74. package/dist/esm/{chunk-7AQXAH6Q.mjs.map → chunk-4ADA5BE7.mjs.map} +1 -1
  75. package/dist/esm/chunk-4KTQIWUP.mjs +2 -0
  76. package/dist/esm/chunk-4KTQIWUP.mjs.map +1 -0
  77. package/dist/esm/chunk-5LO7FR2P.mjs +2 -0
  78. package/dist/esm/chunk-5LO7FR2P.mjs.map +1 -0
  79. package/dist/esm/chunk-62SCW5NH.mjs +2 -0
  80. package/dist/esm/{chunk-YS2OX7AB.mjs.map → chunk-62SCW5NH.mjs.map} +1 -1
  81. package/dist/esm/{chunk-DNYVUM3K.mjs → chunk-67OGU66P.mjs} +2 -2
  82. package/dist/esm/{chunk-DNYVUM3K.mjs.map → chunk-67OGU66P.mjs.map} +1 -1
  83. package/dist/esm/{chunk-XFSL7O6Q.mjs → chunk-72F5YXGC.mjs} +2 -2
  84. package/dist/esm/chunk-72F5YXGC.mjs.map +1 -0
  85. package/dist/esm/{chunk-N6XWY4UT.mjs → chunk-ARVSIDVB.mjs} +1 -1
  86. package/dist/esm/{chunk-N6XWY4UT.mjs.map → chunk-ARVSIDVB.mjs.map} +1 -1
  87. package/dist/esm/{chunk-WVMDCC4V.mjs → chunk-BFQRMCY2.mjs} +2 -2
  88. package/dist/esm/{chunk-WVMDCC4V.mjs.map → chunk-BFQRMCY2.mjs.map} +1 -1
  89. package/dist/esm/{chunk-XFS5O5GJ.mjs → chunk-BM4HBROC.mjs} +2 -2
  90. package/dist/esm/{chunk-XFS5O5GJ.mjs.map → chunk-BM4HBROC.mjs.map} +1 -1
  91. package/dist/esm/chunk-BPYLPPEQ.mjs +2 -0
  92. package/dist/esm/{chunk-V6AAQLLJ.mjs.map → chunk-BPYLPPEQ.mjs.map} +1 -1
  93. package/dist/esm/{chunk-3OJN4I42.mjs → chunk-BV4OOU5Y.mjs} +2 -2
  94. package/dist/esm/{chunk-3OJN4I42.mjs.map → chunk-BV4OOU5Y.mjs.map} +1 -1
  95. package/dist/esm/chunk-CYDWEPFL.mjs +1 -0
  96. package/dist/esm/chunk-CYDWEPFL.mjs.map +1 -0
  97. package/dist/esm/chunk-DRPMIJH7.mjs +2 -0
  98. package/dist/esm/chunk-DRPMIJH7.mjs.map +1 -0
  99. package/dist/esm/chunk-EFIYW4WK.mjs +2 -0
  100. package/dist/esm/chunk-EWTHPMEE.mjs +2 -0
  101. package/dist/esm/{chunk-LAXIJRYU.mjs.map → chunk-EWTHPMEE.mjs.map} +1 -1
  102. package/dist/esm/chunk-GAI75GOG.mjs +2 -0
  103. package/dist/esm/{chunk-J3QOSJFP.mjs.map → chunk-GAI75GOG.mjs.map} +1 -1
  104. package/dist/esm/{chunk-BC2NOUYT.mjs → chunk-GTC7WHMV.mjs} +2 -2
  105. package/dist/esm/{chunk-BC2NOUYT.mjs.map → chunk-GTC7WHMV.mjs.map} +1 -1
  106. package/dist/esm/{chunk-MIBLZSNS.mjs → chunk-GU4OUKAF.mjs} +2 -2
  107. package/dist/esm/chunk-GU4OUKAF.mjs.map +1 -0
  108. package/dist/esm/{chunk-27P7PELS.mjs → chunk-HA6JD5R6.mjs} +2 -2
  109. package/dist/esm/{chunk-27P7PELS.mjs.map → chunk-HA6JD5R6.mjs.map} +1 -1
  110. package/dist/esm/chunk-HO7K2UAK.mjs +2 -0
  111. package/dist/esm/{chunk-ADR4XQPR.mjs.map → chunk-HO7K2UAK.mjs.map} +1 -1
  112. package/dist/esm/chunk-HVADSXTB.mjs +2 -0
  113. package/dist/esm/{chunk-LU6VS7PJ.mjs.map → chunk-HVADSXTB.mjs.map} +1 -1
  114. package/dist/esm/chunk-IBH7IOIM.mjs +2 -0
  115. package/dist/esm/{chunk-ZXJ5ZBTL.mjs.map → chunk-IBH7IOIM.mjs.map} +1 -1
  116. package/dist/esm/chunk-J5BH7V37.mjs +2 -0
  117. package/dist/esm/chunk-J5BH7V37.mjs.map +1 -0
  118. package/dist/esm/chunk-JZNLZMUC.mjs +2 -0
  119. package/dist/esm/{chunk-WGXAIQ7K.mjs.map → chunk-JZNLZMUC.mjs.map} +1 -1
  120. package/dist/esm/chunk-KQXRH5FK.mjs +2 -0
  121. package/dist/esm/{chunk-UQIOMAXE.mjs.map → chunk-KQXRH5FK.mjs.map} +1 -1
  122. package/dist/esm/chunk-L7AA75WZ.mjs +2 -0
  123. package/dist/esm/chunk-L7AA75WZ.mjs.map +1 -0
  124. package/dist/esm/chunk-LACQ537H.mjs +2 -0
  125. package/dist/esm/{chunk-KFP7MDSD.mjs.map → chunk-LACQ537H.mjs.map} +1 -1
  126. package/dist/esm/{chunk-2MQZUGO6.mjs → chunk-LDAD54H5.mjs} +1 -1
  127. package/dist/esm/chunk-LDAD54H5.mjs.map +1 -0
  128. package/dist/esm/chunk-LXW3A3MJ.mjs +2 -0
  129. package/dist/esm/chunk-LXW3A3MJ.mjs.map +1 -0
  130. package/dist/esm/{chunk-KYWYIK5P.mjs → chunk-M2V2POWK.mjs} +2 -2
  131. package/dist/esm/chunk-M2V2POWK.mjs.map +1 -0
  132. package/dist/esm/chunk-ND3ZQKTT.mjs +2 -0
  133. package/dist/esm/chunk-ND3ZQKTT.mjs.map +1 -0
  134. package/dist/esm/chunk-NZIJV4O2.mjs +2 -0
  135. package/dist/esm/{chunk-HH5RSP2H.mjs.map → chunk-NZIJV4O2.mjs.map} +1 -1
  136. package/dist/esm/chunk-O2B54NZT.mjs +2 -0
  137. package/dist/esm/chunk-O2B54NZT.mjs.map +1 -0
  138. package/dist/esm/chunk-OCW2L33Q.mjs +2 -0
  139. package/dist/esm/chunk-OCW2L33Q.mjs.map +1 -0
  140. package/dist/esm/{chunk-PJDVHU7X.mjs → chunk-OCYS4V2V.mjs} +2 -2
  141. package/dist/esm/{chunk-PJDVHU7X.mjs.map → chunk-OCYS4V2V.mjs.map} +1 -1
  142. package/dist/esm/{chunk-VAGYTPSI.mjs → chunk-OSTH5JRX.mjs} +2 -2
  143. package/dist/esm/chunk-OSTH5JRX.mjs.map +1 -0
  144. package/dist/esm/chunk-OVHY6ZUJ.mjs +2 -0
  145. package/dist/esm/{chunk-JTGGMXB7.mjs.map → chunk-OVHY6ZUJ.mjs.map} +1 -1
  146. package/dist/esm/chunk-PZCMSHY6.mjs +2 -0
  147. package/dist/esm/chunk-QWVR4RCV.mjs +2 -0
  148. package/dist/esm/{chunk-IPJKGHQY.mjs.map → chunk-QWVR4RCV.mjs.map} +1 -1
  149. package/dist/esm/chunk-R3KWVOFG.mjs +2 -0
  150. package/dist/esm/{chunk-KWJ6XKNF.mjs.map → chunk-R3KWVOFG.mjs.map} +1 -1
  151. package/dist/esm/{chunk-TXUMB5ZO.mjs → chunk-RHS5ROLP.mjs} +2 -2
  152. package/dist/esm/chunk-RHS5ROLP.mjs.map +1 -0
  153. package/dist/esm/{chunk-IXMH6AXJ.mjs → chunk-RKKU2SY5.mjs} +2 -2
  154. package/dist/esm/chunk-RYETO74W.mjs +2 -0
  155. package/dist/esm/{chunk-BIUGRAMO.mjs.map → chunk-RYETO74W.mjs.map} +1 -1
  156. package/dist/esm/chunk-S36IYY6K.mjs +2 -0
  157. package/dist/esm/{chunk-DXUIJ6KA.mjs.map → chunk-S36IYY6K.mjs.map} +1 -1
  158. package/dist/esm/chunk-TGKB6ALT.mjs +2 -0
  159. package/dist/esm/chunk-TGKB6ALT.mjs.map +1 -0
  160. package/dist/esm/chunk-TIH6ARYP.mjs +2 -0
  161. package/dist/esm/{chunk-IZHPCZE3.mjs.map → chunk-TIH6ARYP.mjs.map} +1 -1
  162. package/dist/esm/chunk-TPWSHFFI.mjs +2 -0
  163. package/dist/esm/chunk-TPWSHFFI.mjs.map +1 -0
  164. package/dist/esm/chunk-U25N2VWA.mjs +2 -0
  165. package/dist/esm/{chunk-FNB6CFQR.mjs.map → chunk-U25N2VWA.mjs.map} +1 -1
  166. package/dist/esm/chunk-U6SZNNVL.mjs +2 -0
  167. package/dist/esm/chunk-U6SZNNVL.mjs.map +1 -0
  168. package/dist/esm/{chunk-EKAOAGNQ.mjs → chunk-UAAI3NCA.mjs} +2 -2
  169. package/dist/esm/{chunk-BTK34A5U.mjs → chunk-UDBH4CER.mjs} +42 -21
  170. package/dist/esm/chunk-UDBH4CER.mjs.map +1 -0
  171. package/dist/esm/chunk-VWVEDCBM.mjs +2 -0
  172. package/dist/esm/{chunk-BREUBEPM.mjs.map → chunk-VWVEDCBM.mjs.map} +1 -1
  173. package/dist/esm/{chunk-ZT2A5ABR.mjs → chunk-WEJAI26R.mjs} +2 -2
  174. package/dist/esm/{chunk-ZT2A5ABR.mjs.map → chunk-WEJAI26R.mjs.map} +1 -1
  175. package/dist/esm/chunk-WL4OXZLN.mjs +2 -0
  176. package/dist/esm/{chunk-KNLMUSIO.mjs.map → chunk-WL4OXZLN.mjs.map} +1 -1
  177. package/dist/esm/chunk-X32O46IB.mjs +2 -0
  178. package/dist/esm/{chunk-PDLUCVJB.mjs.map → chunk-X32O46IB.mjs.map} +1 -1
  179. package/dist/esm/{chunk-KPESAXVI.mjs → chunk-Y2HRRUZ6.mjs} +2 -2
  180. package/dist/esm/{chunk-GUT3G5CG.mjs → chunk-Y7VR7X5W.mjs} +2 -2
  181. package/dist/esm/chunk-Y7VR7X5W.mjs.map +1 -0
  182. package/dist/esm/chunk-YYRDFZE6.mjs +2 -0
  183. package/dist/esm/{chunk-UVGCVCNG.mjs.map → chunk-YYRDFZE6.mjs.map} +1 -1
  184. package/dist/esm/{chunk-TYHBYRUA.mjs → chunk-ZLW65YCO.mjs} +2 -2
  185. package/dist/esm/chunk-ZLW65YCO.mjs.map +1 -0
  186. package/dist/esm/chunk-ZUHN56GM.mjs +2 -0
  187. package/dist/esm/chunk-ZUHN56GM.mjs.map +1 -0
  188. package/dist/esm/{chunk-XNFEUXDS.mjs → chunk-ZWH2ESXT.mjs} +1 -1
  189. package/dist/esm/chunk-ZWH2ESXT.mjs.map +1 -0
  190. package/dist/esm/client/{core.d.ts → core.d.mts} +9 -9
  191. package/dist/esm/client/core.mjs +1 -1
  192. package/dist/esm/client/{get.d.ts → get.d.mts} +12 -12
  193. package/dist/esm/client/get.mjs +1 -1
  194. package/dist/esm/client/index.d.mts +11 -0
  195. package/dist/esm/client/index.mjs +1 -1
  196. package/dist/esm/client/{post.d.ts → post.d.mts} +14 -14
  197. package/dist/esm/client/post.mjs +1 -1
  198. package/dist/esm/client/{types.d.ts → types.d.mts} +5 -5
  199. package/dist/esm/client/types.mjs +1 -1
  200. package/dist/esm/core/{account.d.ts → account.d.mts} +13 -13
  201. package/dist/esm/core/account.mjs +1 -1
  202. package/dist/esm/core/{accountAddress.d.ts → accountAddress.d.mts} +11 -11
  203. package/dist/esm/core/accountAddress.mjs +1 -1
  204. package/dist/esm/core/{authenticationKey.d.ts → authenticationKey.d.mts} +12 -12
  205. package/dist/esm/core/authenticationKey.mjs +1 -1
  206. package/dist/esm/core/{common.d.ts → common.d.mts} +1 -1
  207. package/dist/esm/core/common.mjs +1 -1
  208. package/dist/esm/core/crypto/{anyPublicKey.d.ts → anyPublicKey.d.mts} +11 -11
  209. package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
  210. package/dist/esm/core/crypto/{anySignature.d.ts → anySignature.d.mts} +10 -10
  211. package/dist/esm/core/crypto/anySignature.mjs +1 -1
  212. package/dist/esm/core/crypto/{asymmetricCrypto.d.ts → asymmetricCrypto.d.mts} +8 -8
  213. package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
  214. package/dist/esm/core/crypto/{ed25519.d.ts → ed25519.d.mts} +10 -10
  215. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  216. package/dist/esm/core/crypto/{hdKey.d.ts → hdKey.d.mts} +1 -1
  217. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  218. package/dist/esm/core/crypto/index.d.mts +17 -0
  219. package/dist/esm/core/crypto/index.mjs +1 -1
  220. package/dist/esm/core/crypto/{multiEd25519.d.ts → multiEd25519.d.mts} +11 -11
  221. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  222. package/dist/esm/core/crypto/{multiKey.d.ts → multiKey.d.mts} +12 -12
  223. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  224. package/dist/esm/core/crypto/{secp256k1.d.ts → secp256k1.d.mts} +10 -10
  225. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  226. package/dist/esm/core/{hex.d.ts → hex.d.mts} +6 -6
  227. package/dist/esm/core/hex.mjs +1 -1
  228. package/dist/esm/core/index.d.mts +21 -0
  229. package/dist/esm/core/index.mjs +1 -1
  230. package/dist/esm/index.d.mts +64 -0
  231. package/dist/esm/index.mjs +1 -1
  232. package/dist/esm/internal/{account.d.ts → account.d.mts} +17 -17
  233. package/dist/esm/internal/account.mjs +1 -1
  234. package/dist/esm/internal/ans.d.mts +150 -0
  235. package/dist/esm/internal/ans.mjs +1 -1
  236. package/dist/esm/internal/coin.d.mts +43 -0
  237. package/dist/esm/internal/coin.mjs +1 -1
  238. package/dist/esm/internal/{digitalAsset.d.ts → digitalAsset.d.mts} +34 -34
  239. package/dist/esm/internal/digitalAsset.mjs +1 -1
  240. package/dist/esm/internal/{event.d.ts → event.d.mts} +14 -14
  241. package/dist/esm/internal/event.mjs +1 -1
  242. package/dist/esm/internal/faucet.d.mts +29 -0
  243. package/dist/esm/internal/faucet.mjs +1 -1
  244. package/dist/esm/internal/{fungibleAsset.d.ts → fungibleAsset.d.mts} +7 -7
  245. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  246. package/dist/esm/internal/{general.d.ts → general.d.mts} +11 -11
  247. package/dist/esm/internal/general.mjs +1 -1
  248. package/dist/esm/internal/{staking.d.ts → staking.d.mts} +13 -13
  249. package/dist/esm/internal/staking.mjs +1 -1
  250. package/dist/esm/internal/{transaction.d.ts → transaction.d.mts} +7 -7
  251. package/dist/esm/internal/transaction.mjs +1 -1
  252. package/dist/esm/internal/{transactionSubmission.d.ts → transactionSubmission.d.mts} +41 -72
  253. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  254. package/dist/esm/transactions/authenticator/{account.d.ts → account.d.mts} +15 -15
  255. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  256. package/dist/esm/transactions/authenticator/index.d.mts +19 -0
  257. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  258. package/dist/esm/transactions/authenticator/{transaction.d.ts → transaction.d.mts} +18 -18
  259. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  260. package/dist/esm/transactions/index.d.mts +39 -0
  261. package/dist/esm/transactions/index.mjs +1 -1
  262. package/dist/esm/transactions/instances/chainId.d.mts +21 -0
  263. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  264. package/dist/esm/transactions/instances/{identifier.d.ts → identifier.d.mts} +9 -9
  265. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  266. package/dist/esm/transactions/instances/index.d.mts +29 -0
  267. package/dist/esm/transactions/instances/index.mjs +1 -1
  268. package/dist/esm/transactions/instances/{moduleId.d.ts → moduleId.d.mts} +12 -12
  269. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  270. package/dist/esm/transactions/instances/{rawTransaction.d.ts → rawTransaction.d.mts} +16 -16
  271. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  272. package/dist/esm/transactions/instances/{rotationProofChallenge.d.ts → rotationProofChallenge.d.mts} +14 -14
  273. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  274. package/dist/esm/transactions/instances/{signedTransaction.d.ts → signedTransaction.d.mts} +25 -25
  275. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  276. package/dist/esm/transactions/instances/{transactionArgument.d.ts → transactionArgument.d.mts} +8 -8
  277. package/dist/esm/transactions/instances/{transactionPayload.d.ts → transactionPayload.d.mts} +14 -14
  278. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  279. package/dist/esm/transactions/transactionBuilder/{helpers.d.ts → helpers.d.mts} +31 -31
  280. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  281. package/dist/esm/transactions/transactionBuilder/index.d.mts +35 -0
  282. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  283. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +54 -0
  284. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  285. package/dist/esm/transactions/transactionBuilder/{transactionBuilder.d.ts → transactionBuilder.d.mts} +35 -40
  286. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  287. package/dist/esm/transactions/typeTag/{index.d.ts → index.d.mts} +12 -12
  288. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  289. package/dist/esm/transactions/typeTag/{parser.d.ts → parser.d.mts} +14 -13
  290. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  291. package/dist/esm/transactions/{types.d.ts → types.d.mts} +60 -97
  292. package/dist/esm/types/generated/{operations.d.ts → operations.d.mts} +105 -79
  293. package/dist/esm/types/generated/{queries.d.ts → queries.d.mts} +35 -32
  294. package/dist/esm/types/generated/queries.mjs +1 -1
  295. package/dist/esm/types/generated/{types.d.ts → types.d.mts} +3184 -3146
  296. package/dist/esm/types/generated/types.mjs +1 -1
  297. package/dist/esm/types/generated/types.mjs.map +1 -1
  298. package/dist/esm/types/{index.d.ts → index.d.mts} +94 -92
  299. package/dist/esm/types/index.mjs +1 -1
  300. package/dist/esm/types/indexer.d.mts +63 -0
  301. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  302. package/dist/esm/utils/const.mjs +1 -1
  303. package/dist/esm/utils/helpers.mjs +1 -1
  304. package/dist/esm/utils/index.d.mts +2 -0
  305. package/dist/esm/utils/index.mjs +2 -0
  306. package/dist/esm/utils/index.mjs.map +1 -0
  307. package/dist/esm/utils/memoize.mjs +1 -1
  308. package/dist/esm/version.mjs +1 -1
  309. package/package.json +30 -30
  310. package/src/api/account.ts +2 -2
  311. package/src/api/ans.ts +250 -11
  312. package/src/api/aptos.ts +20 -0
  313. package/src/api/coin.ts +4 -4
  314. package/src/api/digitalAsset.ts +3 -3
  315. package/src/api/event.ts +2 -2
  316. package/src/api/general.ts +4 -4
  317. package/src/api/transactionSubmission/build.ts +42 -0
  318. package/src/api/transactionSubmission/sign.ts +44 -0
  319. package/src/api/transactionSubmission/simulate.ts +56 -0
  320. package/src/api/transactionSubmission/submit.ts +53 -0
  321. package/src/api/transactionSubmission.ts +4 -138
  322. package/src/client/core.ts +1 -1
  323. package/src/client/get.ts +6 -2
  324. package/src/client/post.ts +12 -4
  325. package/src/index.ts +1 -1
  326. package/src/internal/account.ts +2 -2
  327. package/src/internal/ans.ts +408 -22
  328. package/src/internal/coin.ts +5 -5
  329. package/src/internal/digitalAsset.ts +5 -5
  330. package/src/internal/event.ts +2 -2
  331. package/src/internal/general.ts +7 -6
  332. package/src/internal/queries/ansTokenFragment.graphql +9 -0
  333. package/src/internal/queries/getNames.graphql +11 -0
  334. package/src/internal/transactionSubmission.ts +52 -12
  335. package/src/transactions/transactionBuilder/helpers.ts +2 -2
  336. package/src/transactions/transactionBuilder/transactionBuilder.ts +22 -46
  337. package/src/transactions/typeTag/parser.ts +10 -2
  338. package/src/transactions/types.ts +16 -56
  339. package/src/types/generated/operations.ts +62 -33
  340. package/src/types/generated/queries.ts +56 -22
  341. package/src/types/generated/types.ts +2253 -2251
  342. package/src/types/index.ts +16 -10
  343. package/src/types/indexer.ts +3 -0
  344. package/src/utils/index.ts +2 -0
  345. package/dist/esm/api/ans.d.ts +0 -79
  346. package/dist/esm/api/aptos.d.ts +0 -72
  347. package/dist/esm/api/coin.d.ts +0 -59
  348. package/dist/esm/api/index.d.ts +0 -46
  349. package/dist/esm/api/transactionSubmission.d.ts +0 -142
  350. package/dist/esm/bcs/index.d.ts +0 -14
  351. package/dist/esm/chunk-2444YR3Y.mjs +0 -2
  352. package/dist/esm/chunk-2444YR3Y.mjs.map +0 -1
  353. package/dist/esm/chunk-2B5QXKPU.mjs.map +0 -1
  354. package/dist/esm/chunk-2MQZUGO6.mjs.map +0 -1
  355. package/dist/esm/chunk-3YOV42H5.mjs +0 -2
  356. package/dist/esm/chunk-3YOV42H5.mjs.map +0 -1
  357. package/dist/esm/chunk-7AIV5FEN.mjs +0 -2
  358. package/dist/esm/chunk-7AIV5FEN.mjs.map +0 -1
  359. package/dist/esm/chunk-7AQXAH6Q.mjs +0 -2
  360. package/dist/esm/chunk-7TL2MY2B.mjs +0 -2
  361. package/dist/esm/chunk-7TL2MY2B.mjs.map +0 -1
  362. package/dist/esm/chunk-ADR4XQPR.mjs +0 -2
  363. package/dist/esm/chunk-AY2HWVDO.mjs +0 -2
  364. package/dist/esm/chunk-AY2HWVDO.mjs.map +0 -1
  365. package/dist/esm/chunk-BIUGRAMO.mjs +0 -2
  366. package/dist/esm/chunk-BREUBEPM.mjs +0 -2
  367. package/dist/esm/chunk-BTK34A5U.mjs.map +0 -1
  368. package/dist/esm/chunk-CZZJAR3B.mjs +0 -2
  369. package/dist/esm/chunk-DXUIJ6KA.mjs +0 -2
  370. package/dist/esm/chunk-E72CFUU4.mjs +0 -2
  371. package/dist/esm/chunk-FHJ7F7Z6.mjs +0 -2
  372. package/dist/esm/chunk-FHJ7F7Z6.mjs.map +0 -1
  373. package/dist/esm/chunk-FNB6CFQR.mjs +0 -2
  374. package/dist/esm/chunk-GUT3G5CG.mjs.map +0 -1
  375. package/dist/esm/chunk-HH5RSP2H.mjs +0 -2
  376. package/dist/esm/chunk-IPJKGHQY.mjs +0 -2
  377. package/dist/esm/chunk-IZHPCZE3.mjs +0 -2
  378. package/dist/esm/chunk-J3QOSJFP.mjs +0 -2
  379. package/dist/esm/chunk-J5OKXARS.mjs +0 -2
  380. package/dist/esm/chunk-J5OKXARS.mjs.map +0 -1
  381. package/dist/esm/chunk-JTGGMXB7.mjs +0 -2
  382. package/dist/esm/chunk-KFP7MDSD.mjs +0 -2
  383. package/dist/esm/chunk-KJDY66XF.mjs +0 -2
  384. package/dist/esm/chunk-KJDY66XF.mjs.map +0 -1
  385. package/dist/esm/chunk-KNLMUSIO.mjs +0 -2
  386. package/dist/esm/chunk-KWJ6XKNF.mjs +0 -2
  387. package/dist/esm/chunk-KYWYIK5P.mjs.map +0 -1
  388. package/dist/esm/chunk-LAXIJRYU.mjs +0 -2
  389. package/dist/esm/chunk-LU6VS7PJ.mjs +0 -2
  390. package/dist/esm/chunk-MIBLZSNS.mjs.map +0 -1
  391. package/dist/esm/chunk-NKTKHC3Z.mjs +0 -2
  392. package/dist/esm/chunk-NKTKHC3Z.mjs.map +0 -1
  393. package/dist/esm/chunk-O243HOP3.mjs.map +0 -1
  394. package/dist/esm/chunk-PDLUCVJB.mjs +0 -2
  395. package/dist/esm/chunk-SJLO3JIH.mjs +0 -2
  396. package/dist/esm/chunk-TXUMB5ZO.mjs.map +0 -1
  397. package/dist/esm/chunk-TYHBYRUA.mjs.map +0 -1
  398. package/dist/esm/chunk-UQIOMAXE.mjs +0 -2
  399. package/dist/esm/chunk-UVGCVCNG.mjs +0 -2
  400. package/dist/esm/chunk-V6AAQLLJ.mjs +0 -2
  401. package/dist/esm/chunk-VAGYTPSI.mjs.map +0 -1
  402. package/dist/esm/chunk-WGXAIQ7K.mjs +0 -2
  403. package/dist/esm/chunk-WNEZCERQ.mjs +0 -2
  404. package/dist/esm/chunk-WNEZCERQ.mjs.map +0 -1
  405. package/dist/esm/chunk-XFSL7O6Q.mjs.map +0 -1
  406. package/dist/esm/chunk-YS2OX7AB.mjs +0 -2
  407. package/dist/esm/chunk-Z56AKXJ7.mjs +0 -2
  408. package/dist/esm/chunk-Z56AKXJ7.mjs.map +0 -1
  409. package/dist/esm/chunk-ZXJ5ZBTL.mjs +0 -2
  410. package/dist/esm/client/index.d.ts +0 -11
  411. package/dist/esm/core/crypto/index.d.ts +0 -17
  412. package/dist/esm/core/index.d.ts +0 -21
  413. package/dist/esm/index.d.ts +0 -60
  414. package/dist/esm/internal/ans.d.ts +0 -83
  415. package/dist/esm/internal/coin.d.ts +0 -43
  416. package/dist/esm/internal/faucet.d.ts +0 -29
  417. package/dist/esm/transactions/authenticator/index.d.ts +0 -19
  418. package/dist/esm/transactions/index.d.ts +0 -39
  419. package/dist/esm/transactions/instances/chainId.d.ts +0 -21
  420. package/dist/esm/transactions/instances/index.d.ts +0 -29
  421. package/dist/esm/transactions/transactionBuilder/index.d.ts +0 -35
  422. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.ts +0 -54
  423. package/dist/esm/types/indexer.d.ts +0 -62
  424. /package/dist/esm/{chunk-XNFEUXDS.mjs.map → api/transactionSubmission/build.mjs.map} +0 -0
  425. /package/dist/esm/{chunk-E72CFUU4.mjs.map → chunk-EFIYW4WK.mjs.map} +0 -0
  426. /package/dist/esm/{chunk-SJLO3JIH.mjs.map → chunk-PZCMSHY6.mjs.map} +0 -0
  427. /package/dist/esm/{chunk-IXMH6AXJ.mjs.map → chunk-RKKU2SY5.mjs.map} +0 -0
  428. /package/dist/esm/{chunk-EKAOAGNQ.mjs.map → chunk-UAAI3NCA.mjs.map} +0 -0
  429. /package/dist/esm/{chunk-KPESAXVI.mjs.map → chunk-Y2HRRUZ6.mjs.map} +0 -0
  430. /package/dist/esm/utils/{apiEndpoints.d.ts → apiEndpoints.d.mts} +0 -0
  431. /package/dist/esm/utils/{const.d.ts → const.d.mts} +0 -0
  432. /package/dist/esm/utils/{helpers.d.ts → helpers.d.mts} +0 -0
  433. /package/dist/esm/utils/{memoize.d.ts → memoize.d.mts} +0 -0
  434. /package/dist/esm/{version.d.ts → version.d.mts} +0 -0
@@ -11,91 +11,121 @@ declare enum Network {
11
11
  declare const NetworkToChainId: Record<string, number>;
12
12
  declare const NetworkToNetworkName: Record<string, Network>;
13
13
 
14
- declare type Maybe<T> = T | null;
15
- declare type InputMaybe<T> = Maybe<T>;
14
+ type Maybe<T> = T | null;
15
+ type InputMaybe<T> = Maybe<T>;
16
16
  /** All built-in and custom scalars, mapped to their actual values */
17
- declare type Scalars = {
18
- ID: string;
19
- String: string;
20
- Boolean: boolean;
21
- Int: number;
22
- Float: number;
23
- bigint: any;
24
- jsonb: any;
25
- numeric: any;
26
- timestamp: any;
27
- timestamptz: any;
17
+ type Scalars = {
18
+ ID: {
19
+ input: string;
20
+ output: string;
21
+ };
22
+ String: {
23
+ input: string;
24
+ output: string;
25
+ };
26
+ Boolean: {
27
+ input: boolean;
28
+ output: boolean;
29
+ };
30
+ Int: {
31
+ input: number;
32
+ output: number;
33
+ };
34
+ Float: {
35
+ input: number;
36
+ output: number;
37
+ };
38
+ bigint: {
39
+ input: any;
40
+ output: any;
41
+ };
42
+ jsonb: {
43
+ input: any;
44
+ output: any;
45
+ };
46
+ numeric: {
47
+ input: any;
48
+ output: any;
49
+ };
50
+ timestamp: {
51
+ input: any;
52
+ output: any;
53
+ };
54
+ timestamptz: {
55
+ input: any;
56
+ output: any;
57
+ };
28
58
  };
29
59
  /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */
30
- declare type BooleanComparisonExp = {
31
- _eq?: InputMaybe<Scalars["Boolean"]>;
32
- _gt?: InputMaybe<Scalars["Boolean"]>;
33
- _gte?: InputMaybe<Scalars["Boolean"]>;
34
- _in?: InputMaybe<Array<Scalars["Boolean"]>>;
35
- _is_null?: InputMaybe<Scalars["Boolean"]>;
36
- _lt?: InputMaybe<Scalars["Boolean"]>;
37
- _lte?: InputMaybe<Scalars["Boolean"]>;
38
- _neq?: InputMaybe<Scalars["Boolean"]>;
39
- _nin?: InputMaybe<Array<Scalars["Boolean"]>>;
60
+ type BooleanComparisonExp = {
61
+ _eq?: InputMaybe<Scalars["Boolean"]["input"]>;
62
+ _gt?: InputMaybe<Scalars["Boolean"]["input"]>;
63
+ _gte?: InputMaybe<Scalars["Boolean"]["input"]>;
64
+ _in?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
65
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
66
+ _lt?: InputMaybe<Scalars["Boolean"]["input"]>;
67
+ _lte?: InputMaybe<Scalars["Boolean"]["input"]>;
68
+ _neq?: InputMaybe<Scalars["Boolean"]["input"]>;
69
+ _nin?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
40
70
  };
41
71
  /** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */
42
- declare type IntComparisonExp = {
43
- _eq?: InputMaybe<Scalars["Int"]>;
44
- _gt?: InputMaybe<Scalars["Int"]>;
45
- _gte?: InputMaybe<Scalars["Int"]>;
46
- _in?: InputMaybe<Array<Scalars["Int"]>>;
47
- _is_null?: InputMaybe<Scalars["Boolean"]>;
48
- _lt?: InputMaybe<Scalars["Int"]>;
49
- _lte?: InputMaybe<Scalars["Int"]>;
50
- _neq?: InputMaybe<Scalars["Int"]>;
51
- _nin?: InputMaybe<Array<Scalars["Int"]>>;
72
+ type IntComparisonExp = {
73
+ _eq?: InputMaybe<Scalars["Int"]["input"]>;
74
+ _gt?: InputMaybe<Scalars["Int"]["input"]>;
75
+ _gte?: InputMaybe<Scalars["Int"]["input"]>;
76
+ _in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
77
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
78
+ _lt?: InputMaybe<Scalars["Int"]["input"]>;
79
+ _lte?: InputMaybe<Scalars["Int"]["input"]>;
80
+ _neq?: InputMaybe<Scalars["Int"]["input"]>;
81
+ _nin?: InputMaybe<Array<Scalars["Int"]["input"]>>;
52
82
  };
53
83
  /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */
54
- declare type StringComparisonExp = {
55
- _eq?: InputMaybe<Scalars["String"]>;
56
- _gt?: InputMaybe<Scalars["String"]>;
57
- _gte?: InputMaybe<Scalars["String"]>;
84
+ type StringComparisonExp = {
85
+ _eq?: InputMaybe<Scalars["String"]["input"]>;
86
+ _gt?: InputMaybe<Scalars["String"]["input"]>;
87
+ _gte?: InputMaybe<Scalars["String"]["input"]>;
58
88
  /** does the column match the given case-insensitive pattern */
59
- _ilike?: InputMaybe<Scalars["String"]>;
60
- _in?: InputMaybe<Array<Scalars["String"]>>;
89
+ _ilike?: InputMaybe<Scalars["String"]["input"]>;
90
+ _in?: InputMaybe<Array<Scalars["String"]["input"]>>;
61
91
  /** does the column match the given POSIX regular expression, case insensitive */
62
- _iregex?: InputMaybe<Scalars["String"]>;
63
- _is_null?: InputMaybe<Scalars["Boolean"]>;
92
+ _iregex?: InputMaybe<Scalars["String"]["input"]>;
93
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
64
94
  /** does the column match the given pattern */
65
- _like?: InputMaybe<Scalars["String"]>;
66
- _lt?: InputMaybe<Scalars["String"]>;
67
- _lte?: InputMaybe<Scalars["String"]>;
68
- _neq?: InputMaybe<Scalars["String"]>;
95
+ _like?: InputMaybe<Scalars["String"]["input"]>;
96
+ _lt?: InputMaybe<Scalars["String"]["input"]>;
97
+ _lte?: InputMaybe<Scalars["String"]["input"]>;
98
+ _neq?: InputMaybe<Scalars["String"]["input"]>;
69
99
  /** does the column NOT match the given case-insensitive pattern */
70
- _nilike?: InputMaybe<Scalars["String"]>;
71
- _nin?: InputMaybe<Array<Scalars["String"]>>;
100
+ _nilike?: InputMaybe<Scalars["String"]["input"]>;
101
+ _nin?: InputMaybe<Array<Scalars["String"]["input"]>>;
72
102
  /** does the column NOT match the given POSIX regular expression, case insensitive */
73
- _niregex?: InputMaybe<Scalars["String"]>;
103
+ _niregex?: InputMaybe<Scalars["String"]["input"]>;
74
104
  /** does the column NOT match the given pattern */
75
- _nlike?: InputMaybe<Scalars["String"]>;
105
+ _nlike?: InputMaybe<Scalars["String"]["input"]>;
76
106
  /** does the column NOT match the given POSIX regular expression, case sensitive */
77
- _nregex?: InputMaybe<Scalars["String"]>;
107
+ _nregex?: InputMaybe<Scalars["String"]["input"]>;
78
108
  /** does the column NOT match the given SQL regular expression */
79
- _nsimilar?: InputMaybe<Scalars["String"]>;
109
+ _nsimilar?: InputMaybe<Scalars["String"]["input"]>;
80
110
  /** does the column match the given POSIX regular expression, case sensitive */
81
- _regex?: InputMaybe<Scalars["String"]>;
111
+ _regex?: InputMaybe<Scalars["String"]["input"]>;
82
112
  /** does the column match the given SQL regular expression */
83
- _similar?: InputMaybe<Scalars["String"]>;
113
+ _similar?: InputMaybe<Scalars["String"]["input"]>;
84
114
  };
85
115
  /** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */
86
- declare type BigintComparisonExp = {
87
- _eq?: InputMaybe<Scalars["bigint"]>;
88
- _gt?: InputMaybe<Scalars["bigint"]>;
89
- _gte?: InputMaybe<Scalars["bigint"]>;
90
- _in?: InputMaybe<Array<Scalars["bigint"]>>;
91
- _is_null?: InputMaybe<Scalars["Boolean"]>;
92
- _lt?: InputMaybe<Scalars["bigint"]>;
93
- _lte?: InputMaybe<Scalars["bigint"]>;
94
- _neq?: InputMaybe<Scalars["bigint"]>;
95
- _nin?: InputMaybe<Array<Scalars["bigint"]>>;
116
+ type BigintComparisonExp = {
117
+ _eq?: InputMaybe<Scalars["bigint"]["input"]>;
118
+ _gt?: InputMaybe<Scalars["bigint"]["input"]>;
119
+ _gte?: InputMaybe<Scalars["bigint"]["input"]>;
120
+ _in?: InputMaybe<Array<Scalars["bigint"]["input"]>>;
121
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
122
+ _lt?: InputMaybe<Scalars["bigint"]["input"]>;
123
+ _lte?: InputMaybe<Scalars["bigint"]["input"]>;
124
+ _neq?: InputMaybe<Scalars["bigint"]["input"]>;
125
+ _nin?: InputMaybe<Array<Scalars["bigint"]["input"]>>;
96
126
  };
97
127
  /** Boolean expression to filter rows from the table "current_aptos_names". All fields are combined with a logical 'AND'. */
98
- declare type CurrentAptosNamesBoolExp = {
128
+ type CurrentAptosNamesBoolExp = {
99
129
  _and?: InputMaybe<Array<CurrentAptosNamesBoolExp>>;
100
130
  _not?: InputMaybe<CurrentAptosNamesBoolExp>;
101
131
  _or?: InputMaybe<Array<CurrentAptosNamesBoolExp>>;
@@ -113,7 +143,7 @@ declare type CurrentAptosNamesBoolExp = {
113
143
  token_standard?: InputMaybe<StringComparisonExp>;
114
144
  };
115
145
  /** Boolean expression to filter rows from the table "current_fungible_asset_balances". All fields are combined with a logical 'AND'. */
116
- declare type CurrentFungibleAssetBalancesBoolExp = {
146
+ type CurrentFungibleAssetBalancesBoolExp = {
117
147
  _and?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
118
148
  _not?: InputMaybe<CurrentFungibleAssetBalancesBoolExp>;
119
149
  _or?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
@@ -129,7 +159,7 @@ declare type CurrentFungibleAssetBalancesBoolExp = {
129
159
  token_standard?: InputMaybe<StringComparisonExp>;
130
160
  };
131
161
  /** Boolean expression to filter rows from the table "events". All fields are combined with a logical 'AND'. */
132
- declare type EventsBoolExp = {
162
+ type EventsBoolExp = {
133
163
  _and?: InputMaybe<Array<EventsBoolExp>>;
134
164
  _not?: InputMaybe<EventsBoolExp>;
135
165
  _or?: InputMaybe<Array<EventsBoolExp>>;
@@ -144,7 +174,7 @@ declare type EventsBoolExp = {
144
174
  type?: InputMaybe<StringComparisonExp>;
145
175
  };
146
176
  /** Boolean expression to filter rows from the table "fungible_asset_activities". All fields are combined with a logical 'AND'. */
147
- declare type FungibleAssetActivitiesBoolExp = {
177
+ type FungibleAssetActivitiesBoolExp = {
148
178
  _and?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
149
179
  _not?: InputMaybe<FungibleAssetActivitiesBoolExp>;
150
180
  _or?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
@@ -168,7 +198,7 @@ declare type FungibleAssetActivitiesBoolExp = {
168
198
  type?: InputMaybe<StringComparisonExp>;
169
199
  };
170
200
  /** Boolean expression to filter rows from the table "fungible_asset_metadata". All fields are combined with a logical 'AND'. */
171
- declare type FungibleAssetMetadataBoolExp = {
201
+ type FungibleAssetMetadataBoolExp = {
172
202
  _and?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
173
203
  _not?: InputMaybe<FungibleAssetMetadataBoolExp>;
174
204
  _or?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
@@ -185,58 +215,58 @@ declare type FungibleAssetMetadataBoolExp = {
185
215
  symbol?: InputMaybe<StringComparisonExp>;
186
216
  token_standard?: InputMaybe<StringComparisonExp>;
187
217
  };
188
- declare type JsonbCastExp = {
218
+ type JsonbCastExp = {
189
219
  String?: InputMaybe<StringComparisonExp>;
190
220
  };
191
221
  /** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */
192
- declare type JsonbComparisonExp = {
222
+ type JsonbComparisonExp = {
193
223
  _cast?: InputMaybe<JsonbCastExp>;
194
224
  /** is the column contained in the given json value */
195
- _contained_in?: InputMaybe<Scalars["jsonb"]>;
225
+ _contained_in?: InputMaybe<Scalars["jsonb"]["input"]>;
196
226
  /** does the column contain the given json value at the top level */
197
- _contains?: InputMaybe<Scalars["jsonb"]>;
198
- _eq?: InputMaybe<Scalars["jsonb"]>;
199
- _gt?: InputMaybe<Scalars["jsonb"]>;
200
- _gte?: InputMaybe<Scalars["jsonb"]>;
227
+ _contains?: InputMaybe<Scalars["jsonb"]["input"]>;
228
+ _eq?: InputMaybe<Scalars["jsonb"]["input"]>;
229
+ _gt?: InputMaybe<Scalars["jsonb"]["input"]>;
230
+ _gte?: InputMaybe<Scalars["jsonb"]["input"]>;
201
231
  /** does the string exist as a top-level key in the column */
202
- _has_key?: InputMaybe<Scalars["String"]>;
232
+ _has_key?: InputMaybe<Scalars["String"]["input"]>;
203
233
  /** do all of these strings exist as top-level keys in the column */
204
- _has_keys_all?: InputMaybe<Array<Scalars["String"]>>;
234
+ _has_keys_all?: InputMaybe<Array<Scalars["String"]["input"]>>;
205
235
  /** do any of these strings exist as top-level keys in the column */
206
- _has_keys_any?: InputMaybe<Array<Scalars["String"]>>;
207
- _in?: InputMaybe<Array<Scalars["jsonb"]>>;
208
- _is_null?: InputMaybe<Scalars["Boolean"]>;
209
- _lt?: InputMaybe<Scalars["jsonb"]>;
210
- _lte?: InputMaybe<Scalars["jsonb"]>;
211
- _neq?: InputMaybe<Scalars["jsonb"]>;
212
- _nin?: InputMaybe<Array<Scalars["jsonb"]>>;
236
+ _has_keys_any?: InputMaybe<Array<Scalars["String"]["input"]>>;
237
+ _in?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
238
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
239
+ _lt?: InputMaybe<Scalars["jsonb"]["input"]>;
240
+ _lte?: InputMaybe<Scalars["jsonb"]["input"]>;
241
+ _neq?: InputMaybe<Scalars["jsonb"]["input"]>;
242
+ _nin?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
213
243
  };
214
244
  /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */
215
- declare type NumericComparisonExp = {
216
- _eq?: InputMaybe<Scalars["numeric"]>;
217
- _gt?: InputMaybe<Scalars["numeric"]>;
218
- _gte?: InputMaybe<Scalars["numeric"]>;
219
- _in?: InputMaybe<Array<Scalars["numeric"]>>;
220
- _is_null?: InputMaybe<Scalars["Boolean"]>;
221
- _lt?: InputMaybe<Scalars["numeric"]>;
222
- _lte?: InputMaybe<Scalars["numeric"]>;
223
- _neq?: InputMaybe<Scalars["numeric"]>;
224
- _nin?: InputMaybe<Array<Scalars["numeric"]>>;
245
+ type NumericComparisonExp = {
246
+ _eq?: InputMaybe<Scalars["numeric"]["input"]>;
247
+ _gt?: InputMaybe<Scalars["numeric"]["input"]>;
248
+ _gte?: InputMaybe<Scalars["numeric"]["input"]>;
249
+ _in?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
250
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
251
+ _lt?: InputMaybe<Scalars["numeric"]["input"]>;
252
+ _lte?: InputMaybe<Scalars["numeric"]["input"]>;
253
+ _neq?: InputMaybe<Scalars["numeric"]["input"]>;
254
+ _nin?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
225
255
  };
226
256
  /** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
227
- declare type TimestampComparisonExp = {
228
- _eq?: InputMaybe<Scalars["timestamp"]>;
229
- _gt?: InputMaybe<Scalars["timestamp"]>;
230
- _gte?: InputMaybe<Scalars["timestamp"]>;
231
- _in?: InputMaybe<Array<Scalars["timestamp"]>>;
232
- _is_null?: InputMaybe<Scalars["Boolean"]>;
233
- _lt?: InputMaybe<Scalars["timestamp"]>;
234
- _lte?: InputMaybe<Scalars["timestamp"]>;
235
- _neq?: InputMaybe<Scalars["timestamp"]>;
236
- _nin?: InputMaybe<Array<Scalars["timestamp"]>>;
257
+ type TimestampComparisonExp = {
258
+ _eq?: InputMaybe<Scalars["timestamp"]["input"]>;
259
+ _gt?: InputMaybe<Scalars["timestamp"]["input"]>;
260
+ _gte?: InputMaybe<Scalars["timestamp"]["input"]>;
261
+ _in?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
262
+ _is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
263
+ _lt?: InputMaybe<Scalars["timestamp"]["input"]>;
264
+ _lte?: InputMaybe<Scalars["timestamp"]["input"]>;
265
+ _neq?: InputMaybe<Scalars["timestamp"]["input"]>;
266
+ _nin?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
237
267
  };
238
268
 
239
- declare type GetAccountCoinsDataQuery = {
269
+ type GetAccountCoinsDataQuery = {
240
270
  current_fungible_asset_balances: Array<{
241
271
  amount: any;
242
272
  asset_type: string;
@@ -263,7 +293,7 @@ declare type GetAccountCoinsDataQuery = {
263
293
  } | null;
264
294
  }>;
265
295
  };
266
- declare type GetAccountCollectionsWithOwnedTokensQuery = {
296
+ type GetAccountCollectionsWithOwnedTokensQuery = {
267
297
  current_collection_ownership_v2_view: Array<{
268
298
  collection_id?: string | null;
269
299
  collection_name?: string | null;
@@ -291,7 +321,7 @@ declare type GetAccountCollectionsWithOwnedTokensQuery = {
291
321
  } | null;
292
322
  }>;
293
323
  };
294
- declare type GetAccountOwnedObjectsQuery = {
324
+ type GetAccountOwnedObjectsQuery = {
295
325
  current_objects: Array<{
296
326
  allow_ungated_transfer: boolean;
297
327
  state_key_hash: string;
@@ -302,7 +332,7 @@ declare type GetAccountOwnedObjectsQuery = {
302
332
  is_deleted: boolean;
303
333
  }>;
304
334
  };
305
- declare type GetAccountOwnedTokensQuery = {
335
+ type GetAccountOwnedTokensQuery = {
306
336
  current_token_ownerships_v2: Array<{
307
337
  token_standard: string;
308
338
  token_properties_mutated_v1?: any | null;
@@ -349,7 +379,7 @@ declare type GetAccountOwnedTokensQuery = {
349
379
  } | null;
350
380
  }>;
351
381
  };
352
- declare type GetAccountOwnedTokensFromCollectionQuery = {
382
+ type GetAccountOwnedTokensFromCollectionQuery = {
353
383
  current_token_ownerships_v2: Array<{
354
384
  token_standard: string;
355
385
  token_properties_mutated_v1?: any | null;
@@ -396,12 +426,12 @@ declare type GetAccountOwnedTokensFromCollectionQuery = {
396
426
  } | null;
397
427
  }>;
398
428
  };
399
- declare type GetChainTopUserTransactionsQuery = {
429
+ type GetChainTopUserTransactionsQuery = {
400
430
  user_transactions: Array<{
401
431
  version: any;
402
432
  }>;
403
433
  };
404
- declare type GetCollectionDataQuery = {
434
+ type GetCollectionDataQuery = {
405
435
  current_collections_v2: Array<{
406
436
  collection_id: string;
407
437
  collection_name: string;
@@ -419,7 +449,7 @@ declare type GetCollectionDataQuery = {
419
449
  uri: string;
420
450
  }>;
421
451
  };
422
- declare type GetCurrentFungibleAssetBalancesQuery = {
452
+ type GetCurrentFungibleAssetBalancesQuery = {
423
453
  current_fungible_asset_balances: Array<{
424
454
  amount: any;
425
455
  asset_type: string;
@@ -432,7 +462,7 @@ declare type GetCurrentFungibleAssetBalancesQuery = {
432
462
  token_standard: string;
433
463
  }>;
434
464
  };
435
- declare type GetDelegatedStakingActivitiesQuery = {
465
+ type GetDelegatedStakingActivitiesQuery = {
436
466
  delegated_staking_activities: Array<{
437
467
  amount: any;
438
468
  delegator_address: string;
@@ -442,7 +472,7 @@ declare type GetDelegatedStakingActivitiesQuery = {
442
472
  transaction_version: any;
443
473
  }>;
444
474
  };
445
- declare type GetEventsQuery = {
475
+ type GetEventsQuery = {
446
476
  events: Array<{
447
477
  account_address: string;
448
478
  creation_number: any;
@@ -455,7 +485,7 @@ declare type GetEventsQuery = {
455
485
  indexed_type: string;
456
486
  }>;
457
487
  };
458
- declare type GetFungibleAssetActivitiesQuery = {
488
+ type GetFungibleAssetActivitiesQuery = {
459
489
  fungible_asset_activities: Array<{
460
490
  amount?: any | null;
461
491
  asset_type: string;
@@ -475,7 +505,7 @@ declare type GetFungibleAssetActivitiesQuery = {
475
505
  type: string;
476
506
  }>;
477
507
  };
478
- declare type GetFungibleAssetMetadataQuery = {
508
+ type GetFungibleAssetMetadataQuery = {
479
509
  fungible_asset_metadata: Array<{
480
510
  icon_uri?: string | null;
481
511
  project_uri?: string | null;
@@ -491,20 +521,31 @@ declare type GetFungibleAssetMetadataQuery = {
491
521
  token_standard: string;
492
522
  }>;
493
523
  };
494
- declare type GetNumberOfDelegatorsQuery = {
524
+ type GetNamesQuery = {
525
+ current_aptos_names: Array<{
526
+ domain?: string | null;
527
+ expiration_timestamp?: any | null;
528
+ registered_address?: string | null;
529
+ subdomain?: string | null;
530
+ token_standard?: string | null;
531
+ is_primary?: boolean | null;
532
+ owner_address?: string | null;
533
+ }>;
534
+ };
535
+ type GetNumberOfDelegatorsQuery = {
495
536
  num_active_delegator_per_pool: Array<{
496
537
  num_active_delegator?: any | null;
497
538
  pool_address?: string | null;
498
539
  }>;
499
540
  };
500
- declare type GetProcessorStatusQuery = {
541
+ type GetProcessorStatusQuery = {
501
542
  processor_status: Array<{
502
543
  last_success_version: any;
503
544
  processor: string;
504
545
  last_updated: any;
505
546
  }>;
506
547
  };
507
- declare type GetTokenActivityQuery = {
548
+ type GetTokenActivityQuery = {
508
549
  token_activities_v2: Array<{
509
550
  after_value?: string | null;
510
551
  before_value?: string | null;
@@ -523,7 +564,7 @@ declare type GetTokenActivityQuery = {
523
564
  type: string;
524
565
  }>;
525
566
  };
526
- declare type GetCurrentTokenOwnershipQuery = {
567
+ type GetCurrentTokenOwnershipQuery = {
527
568
  current_token_ownerships_v2: Array<{
528
569
  token_standard: string;
529
570
  token_properties_mutated_v1?: any | null;
@@ -570,7 +611,7 @@ declare type GetCurrentTokenOwnershipQuery = {
570
611
  } | null;
571
612
  }>;
572
613
  };
573
- declare type GetTokenDataQuery = {
614
+ type GetTokenDataQuery = {
574
615
  current_token_datas_v2: Array<{
575
616
  collection_id: string;
576
617
  description: string;
@@ -624,40 +665,41 @@ declare type GetTokenDataQuery = {
624
665
  * These types are used as the return type when calling a sdk api function
625
666
  * that calls the function that queries the server (usually under the /api/ folder)
626
667
  */
627
- declare type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"];
628
- declare type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
629
- declare type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
630
- declare type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
631
- declare type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
632
- declare type GetChainTopUserTransactionsResponse = GetChainTopUserTransactionsQuery["user_transactions"];
633
- declare type GetEventsResponse = GetEventsQuery["events"];
634
- declare type GetNumberOfDelegatorsResponse = GetNumberOfDelegatorsQuery["num_active_delegator_per_pool"];
635
- declare type GetDelegatedStakingActivitiesResponse = GetDelegatedStakingActivitiesQuery["delegated_staking_activities"];
636
- declare type GetCollectionDataResponse = GetCollectionDataQuery["current_collections_v2"][0];
637
- declare type GetTokenDataResponse = GetTokenDataQuery["current_token_datas_v2"][0];
638
- declare type GetProcessorStatusResponse = GetProcessorStatusQuery["processor_status"];
639
- declare type GetFungibleAssetMetadataResponse = GetFungibleAssetMetadataQuery["fungible_asset_metadata"];
640
- declare type GetFungibleAssetActivitiesResponse = GetFungibleAssetActivitiesQuery["fungible_asset_activities"];
641
- declare type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQuery["current_fungible_asset_balances"];
642
- declare type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
643
- declare type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
644
- declare type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
668
+ type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"];
669
+ type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
670
+ type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
671
+ type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
672
+ type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
673
+ type GetChainTopUserTransactionsResponse = GetChainTopUserTransactionsQuery["user_transactions"];
674
+ type GetEventsResponse = GetEventsQuery["events"];
675
+ type GetNumberOfDelegatorsResponse = GetNumberOfDelegatorsQuery["num_active_delegator_per_pool"];
676
+ type GetDelegatedStakingActivitiesResponse = GetDelegatedStakingActivitiesQuery["delegated_staking_activities"];
677
+ type GetCollectionDataResponse = GetCollectionDataQuery["current_collections_v2"][0];
678
+ type GetTokenDataResponse = GetTokenDataQuery["current_token_datas_v2"][0];
679
+ type GetProcessorStatusResponse = GetProcessorStatusQuery["processor_status"];
680
+ type GetFungibleAssetMetadataResponse = GetFungibleAssetMetadataQuery["fungible_asset_metadata"];
681
+ type GetFungibleAssetActivitiesResponse = GetFungibleAssetActivitiesQuery["fungible_asset_activities"];
682
+ type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQuery["current_fungible_asset_balances"];
683
+ type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
684
+ type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
685
+ type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
686
+ type GetANSNameResponse = GetNamesQuery["current_aptos_names"];
645
687
  /**
646
688
  * A generic type that being passed by each function and holds an
647
689
  * array of properties we can sort the query by
648
690
  */
649
- declare type OrderBy<T> = Array<{
691
+ type OrderBy<T> = Array<{
650
692
  [K in keyof T]?: OrderByValue;
651
693
  }>;
652
- declare type OrderByValue = "asc" | "asc_nulls_first" | "asc_nulls_last" | "desc" | "desc_nulls_first" | "desc_nulls_last";
694
+ type OrderByValue = "asc" | "asc_nulls_first" | "asc_nulls_last" | "desc" | "desc_nulls_first" | "desc_nulls_last";
653
695
  /**
654
696
  * Refers to the token standard we want to query for
655
697
  */
656
- declare type TokenStandard = "v1" | "v2";
698
+ type TokenStandard = "v1" | "v2";
657
699
  /**
658
700
  * The graphql query type to pass into the `queryIndexer` function
659
701
  */
660
- declare type GraphqlQuery = {
702
+ type GraphqlQuery = {
661
703
  query: string;
662
704
  variables?: {};
663
705
  };
@@ -679,7 +721,7 @@ declare enum MimeType {
679
721
  /**
680
722
  * Hex data as input to a function
681
723
  */
682
- declare type HexInput = string | Uint8Array;
724
+ type HexInput = string | Uint8Array;
683
725
  /**
684
726
  * TypeTag enum as they are represented in Rust
685
727
  * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/language_storage.rs#L27}
@@ -763,19 +805,19 @@ declare enum AnySignatureVariant {
763
805
  /**
764
806
  * BCS types
765
807
  */
766
- declare type Uint8 = number;
767
- declare type Uint16 = number;
768
- declare type Uint32 = number;
769
- declare type Uint64 = bigint;
770
- declare type Uint128 = bigint;
771
- declare type Uint256 = bigint;
772
- declare type AnyNumber = number | bigint;
808
+ type Uint8 = number;
809
+ type Uint16 = number;
810
+ type Uint32 = number;
811
+ type Uint64 = bigint;
812
+ type Uint128 = bigint;
813
+ type Uint256 = bigint;
814
+ type AnyNumber = number | bigint;
773
815
  /**
774
816
  * Set of configuration options that can be provided when initializing the SDK.
775
817
  * The purpose of these options is to configure various aspects of the SDK's
776
818
  * behavior and interaction with the Aptos network
777
819
  */
778
- declare type AptosSettings = {
820
+ type AptosSettings = {
779
821
  readonly network?: Network;
780
822
  readonly fullnode?: string;
781
823
  readonly faucet?: string;
@@ -804,7 +846,7 @@ interface PaginationArgs {
804
846
  * @param HEADERS - extra headers we want to send with the request
805
847
  * @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
806
848
  */
807
- declare type ClientConfig = {
849
+ type ClientConfig = {
808
850
  AUTH_TOKEN?: string;
809
851
  API_KEY?: string;
810
852
  HEADERS?: Record<string, string | number | boolean>;
@@ -844,7 +886,7 @@ interface Client {
844
886
  * @param originMethod (optional) - the local method the request came from
845
887
  * @param overrides (optional) - a `ClientConfig` object type to override request data
846
888
  */
847
- declare type AptosRequest = {
889
+ type AptosRequest = {
848
890
  url: string;
849
891
  method: "GET" | "POST";
850
892
  path?: string;
@@ -858,7 +900,7 @@ declare type AptosRequest = {
858
900
  /**
859
901
  * Specifies ledger version of transactions. By default latest version will be used
860
902
  */
861
- declare type LedgerVersion = {
903
+ type LedgerVersion = {
862
904
  ledgerVersion?: AnyNumber;
863
905
  };
864
906
  /**
@@ -867,7 +909,7 @@ declare type LedgerVersion = {
867
909
  /**
868
910
  * Type holding the outputs of the estimate gas API
869
911
  */
870
- declare type GasEstimation = {
912
+ type GasEstimation = {
871
913
  /**
872
914
  * The deprioritized estimate for the gas unit price
873
915
  */
@@ -881,15 +923,15 @@ declare type GasEstimation = {
881
923
  */
882
924
  prioritized_gas_estimate?: number;
883
925
  };
884
- declare type MoveResource = {
885
- type: MoveStructType;
926
+ type MoveResource = {
927
+ type: MoveStructId;
886
928
  data: {};
887
929
  };
888
- declare type AccountData = {
930
+ type AccountData = {
889
931
  sequence_number: string;
890
932
  authentication_key: string;
891
933
  };
892
- declare type MoveModuleBytecode = {
934
+ type MoveModuleBytecode = {
893
935
  bytecode: string;
894
936
  abi?: MoveModule;
895
937
  };
@@ -903,8 +945,8 @@ declare enum TransactionResponseType {
903
945
  BlockMetadata = "block_metadata_transaction",
904
946
  StateCheckpoint = "state_checkpoint_transaction"
905
947
  }
906
- declare type TransactionResponse = PendingTransactionResponse | UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse;
907
- declare type PendingTransactionResponse = {
948
+ type TransactionResponse = PendingTransactionResponse | UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse;
949
+ type PendingTransactionResponse = {
908
950
  type: TransactionResponseType.Pending;
909
951
  hash: string;
910
952
  sender: string;
@@ -915,7 +957,7 @@ declare type PendingTransactionResponse = {
915
957
  payload: TransactionPayloadResponse;
916
958
  signature?: TransactionSignature;
917
959
  };
918
- declare type UserTransactionResponse = {
960
+ type UserTransactionResponse = {
919
961
  type: TransactionResponseType.User;
920
962
  version: string;
921
963
  hash: string;
@@ -949,7 +991,7 @@ declare type UserTransactionResponse = {
949
991
  events: Array<Event$1>;
950
992
  timestamp: string;
951
993
  };
952
- declare type GenesisTransactionResponse = {
994
+ type GenesisTransactionResponse = {
953
995
  type: TransactionResponseType.Genesis;
954
996
  version: string;
955
997
  hash: string;
@@ -976,7 +1018,7 @@ declare type GenesisTransactionResponse = {
976
1018
  */
977
1019
  events: Array<Event$1>;
978
1020
  };
979
- declare type BlockMetadataTransactionResponse = {
1021
+ type BlockMetadataTransactionResponse = {
980
1022
  type: TransactionResponseType.BlockMetadata;
981
1023
  version: string;
982
1024
  hash: string;
@@ -1015,7 +1057,7 @@ declare type BlockMetadataTransactionResponse = {
1015
1057
  failed_proposer_indices: Array<number>;
1016
1058
  timestamp: string;
1017
1059
  };
1018
- declare type StateCheckpointTransactionResponse = {
1060
+ type StateCheckpointTransactionResponse = {
1019
1061
  type: TransactionResponseType.StateCheckpoint;
1020
1062
  version: string;
1021
1063
  hash: string;
@@ -1041,8 +1083,8 @@ declare type StateCheckpointTransactionResponse = {
1041
1083
  /**
1042
1084
  * WRITESET CHANGE TYPES
1043
1085
  */
1044
- declare type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
1045
- declare type WriteSetChangeDeleteModule = {
1086
+ type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
1087
+ type WriteSetChangeDeleteModule = {
1046
1088
  type: string;
1047
1089
  address: string;
1048
1090
  /**
@@ -1051,32 +1093,32 @@ declare type WriteSetChangeDeleteModule = {
1051
1093
  state_key_hash: string;
1052
1094
  module: MoveModuleId;
1053
1095
  };
1054
- declare type WriteSetChangeDeleteResource = {
1096
+ type WriteSetChangeDeleteResource = {
1055
1097
  type: string;
1056
1098
  address: string;
1057
1099
  state_key_hash: string;
1058
1100
  resource: string;
1059
1101
  };
1060
- declare type WriteSetChangeDeleteTableItem = {
1102
+ type WriteSetChangeDeleteTableItem = {
1061
1103
  type: string;
1062
1104
  state_key_hash: string;
1063
1105
  handle: string;
1064
1106
  key: string;
1065
1107
  data?: DeletedTableData;
1066
1108
  };
1067
- declare type WriteSetChangeWriteModule = {
1109
+ type WriteSetChangeWriteModule = {
1068
1110
  type: string;
1069
1111
  address: string;
1070
1112
  state_key_hash: string;
1071
1113
  data: MoveModuleBytecode;
1072
1114
  };
1073
- declare type WriteSetChangeWriteResource = {
1115
+ type WriteSetChangeWriteResource = {
1074
1116
  type: string;
1075
1117
  address: string;
1076
1118
  state_key_hash: string;
1077
1119
  data: MoveResource;
1078
1120
  };
1079
- declare type WriteSetChangeWriteTableItem = {
1121
+ type WriteSetChangeWriteTableItem = {
1080
1122
  type: string;
1081
1123
  state_key_hash: string;
1082
1124
  handle: string;
@@ -1084,7 +1126,7 @@ declare type WriteSetChangeWriteTableItem = {
1084
1126
  value: string;
1085
1127
  data?: DecodedTableData;
1086
1128
  };
1087
- declare type DecodedTableData = {
1129
+ type DecodedTableData = {
1088
1130
  /**
1089
1131
  * Key of table in JSON
1090
1132
  */
@@ -1105,7 +1147,7 @@ declare type DecodedTableData = {
1105
1147
  /**
1106
1148
  * Deleted table data
1107
1149
  */
1108
- declare type DeletedTableData = {
1150
+ type DeletedTableData = {
1109
1151
  /**
1110
1152
  * Deleted key
1111
1153
  */
@@ -1115,10 +1157,10 @@ declare type DeletedTableData = {
1115
1157
  */
1116
1158
  key_type: string;
1117
1159
  };
1118
- declare type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
1119
- declare type EntryFunctionPayloadResponse = {
1160
+ type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
1161
+ type EntryFunctionPayloadResponse = {
1120
1162
  type: string;
1121
- function: MoveStructType;
1163
+ function: MoveFunctionId;
1122
1164
  /**
1123
1165
  * Type arguments of the function
1124
1166
  */
@@ -1128,7 +1170,7 @@ declare type EntryFunctionPayloadResponse = {
1128
1170
  */
1129
1171
  arguments: Array<any>;
1130
1172
  };
1131
- declare type ScriptPayloadResponse = {
1173
+ type ScriptPayloadResponse = {
1132
1174
  type: string;
1133
1175
  code: MoveScriptBytecode;
1134
1176
  /**
@@ -1140,37 +1182,37 @@ declare type ScriptPayloadResponse = {
1140
1182
  */
1141
1183
  arguments: Array<any>;
1142
1184
  };
1143
- declare type MultisigPayloadResponse = {
1185
+ type MultisigPayloadResponse = {
1144
1186
  type: string;
1145
1187
  multisig_address: string;
1146
1188
  transaction_payload?: EntryFunctionPayloadResponse;
1147
1189
  };
1148
- declare type GenesisPayload = {
1190
+ type GenesisPayload = {
1149
1191
  type: string;
1150
1192
  write_set: WriteSet;
1151
1193
  };
1152
1194
  /**
1153
1195
  * Move script bytecode
1154
1196
  */
1155
- declare type MoveScriptBytecode = {
1197
+ type MoveScriptBytecode = {
1156
1198
  bytecode: string;
1157
1199
  abi?: MoveFunction;
1158
1200
  };
1159
1201
  /**
1160
1202
  * These are the JSON representations of transaction signatures returned from the node API.
1161
1203
  */
1162
- declare type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
1163
- declare type TransactionEd25519Signature = {
1204
+ type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
1205
+ type TransactionEd25519Signature = {
1164
1206
  type: string;
1165
1207
  public_key: string;
1166
1208
  signature: "ed25519_signature";
1167
1209
  };
1168
- declare type TransactionSecp256k1Signature = {
1210
+ type TransactionSecp256k1Signature = {
1169
1211
  type: string;
1170
1212
  public_key: string;
1171
1213
  signature: "secp256k1_ecdsa_signature";
1172
1214
  };
1173
- declare type TransactionMultiEd25519Signature = {
1215
+ type TransactionMultiEd25519Signature = {
1174
1216
  type: "multi_ed25519_signature";
1175
1217
  /**
1176
1218
  * The public keys for the Ed25519 signature
@@ -1186,7 +1228,7 @@ declare type TransactionMultiEd25519Signature = {
1186
1228
  threshold: number;
1187
1229
  bitmap: string;
1188
1230
  };
1189
- declare type TransactionMultiAgentSignature = {
1231
+ type TransactionMultiAgentSignature = {
1190
1232
  type: "multi_agent_signature";
1191
1233
  sender: AccountSignature;
1192
1234
  /**
@@ -1198,7 +1240,7 @@ declare type TransactionMultiAgentSignature = {
1198
1240
  */
1199
1241
  secondary_signers: Array<AccountSignature>;
1200
1242
  };
1201
- declare type TransactionFeePayerSignature = {
1243
+ type TransactionFeePayerSignature = {
1202
1244
  type: "fee_payer_signature";
1203
1245
  sender: AccountSignature;
1204
1246
  /**
@@ -1215,26 +1257,26 @@ declare type TransactionFeePayerSignature = {
1215
1257
  /**
1216
1258
  * The union of all single account signatures.
1217
1259
  */
1218
- declare type AccountSignature = AccountEd25519Signature | AccountSecp256k1Signature | AccountMultiEd25519Signature;
1219
- declare type AccountEd25519Signature = TransactionEd25519Signature;
1220
- declare type AccountSecp256k1Signature = TransactionSecp256k1Signature;
1221
- declare type AccountMultiEd25519Signature = TransactionMultiEd25519Signature;
1222
- declare type WriteSet = ScriptWriteSet | DirectWriteSet;
1223
- declare type ScriptWriteSet = {
1260
+ type AccountSignature = AccountEd25519Signature | AccountSecp256k1Signature | AccountMultiEd25519Signature;
1261
+ type AccountEd25519Signature = TransactionEd25519Signature;
1262
+ type AccountSecp256k1Signature = TransactionSecp256k1Signature;
1263
+ type AccountMultiEd25519Signature = TransactionMultiEd25519Signature;
1264
+ type WriteSet = ScriptWriteSet | DirectWriteSet;
1265
+ type ScriptWriteSet = {
1224
1266
  type: string;
1225
1267
  execute_as: string;
1226
1268
  script: ScriptPayloadResponse;
1227
1269
  };
1228
- declare type DirectWriteSet = {
1270
+ type DirectWriteSet = {
1229
1271
  type: string;
1230
1272
  changes: Array<WriteSetChange>;
1231
1273
  events: Array<Event$1>;
1232
1274
  };
1233
- declare type EventGuid = {
1275
+ type EventGuid = {
1234
1276
  creation_number: string;
1235
1277
  account_address: string;
1236
1278
  };
1237
- declare type Event$1 = {
1279
+ type Event$1 = {
1238
1280
  guid: EventGuid;
1239
1281
  sequence_number: string;
1240
1282
  type: string;
@@ -1246,20 +1288,22 @@ declare type Event$1 = {
1246
1288
  /**
1247
1289
  * Map of Move types to local TypeScript types
1248
1290
  */
1249
- declare type MoveUint8Type = number;
1250
- declare type MoveUint16Type = number;
1251
- declare type MoveUint32Type = number;
1252
- declare type MoveUint64Type = string;
1253
- declare type MoveUint128Type = string;
1254
- declare type MoveUint256Type = string;
1255
- declare type MoveAddressType = string;
1256
- declare type MoveObjectType = string;
1257
- declare type MoveOptionType = MoveType | null | undefined;
1291
+ type MoveUint8Type = number;
1292
+ type MoveUint16Type = number;
1293
+ type MoveUint32Type = number;
1294
+ type MoveUint64Type = string;
1295
+ type MoveUint128Type = string;
1296
+ type MoveUint256Type = string;
1297
+ type MoveAddressType = string;
1298
+ type MoveObjectType = string;
1299
+ type MoveOptionType = MoveType | null | undefined;
1258
1300
  /**
1259
1301
  * This is the format for a fully qualified struct, resource, or entry function in Move.
1260
1302
  */
1261
- declare type MoveStructType = `${string}::${string}::${string}`;
1262
- declare type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
1303
+ type MoveStructId = `${string}::${string}::${string}`;
1304
+ type MoveFunctionId = MoveStructId;
1305
+ type MoveStructType = {};
1306
+ type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
1263
1307
  /**
1264
1308
  * Possible Move values acceptable by move functions (entry, view)
1265
1309
  *
@@ -1283,12 +1327,12 @@ declare type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | Move
1283
1327
  *
1284
1328
  * `Option -> MoveValue | null | undefined`
1285
1329
  */
1286
- declare type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | MoveOptionType | Array<MoveValue>;
1330
+ type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
1287
1331
  /**
1288
1332
  * Move module id is a string representation of Move module.
1289
1333
  * Module name is case-sensitive.
1290
1334
  */
1291
- declare type MoveModuleId = `${string}::${string}`;
1335
+ type MoveModuleId = `${string}::${string}`;
1292
1336
  /**
1293
1337
  * Move function visibility
1294
1338
  */
@@ -1309,20 +1353,20 @@ declare enum MoveAbility {
1309
1353
  /**
1310
1354
  * Move abilities tied to the generic type param and associated with the function that uses it
1311
1355
  */
1312
- declare type MoveFunctionGenericTypeParam = {
1356
+ type MoveFunctionGenericTypeParam = {
1313
1357
  constraints: Array<MoveAbility>;
1314
1358
  };
1315
1359
  /**
1316
1360
  * Move struct field
1317
1361
  */
1318
- declare type MoveStructField = {
1362
+ type MoveStructField = {
1319
1363
  name: string;
1320
1364
  type: string;
1321
1365
  };
1322
1366
  /**
1323
1367
  * A Move module
1324
1368
  */
1325
- declare type MoveModule = {
1369
+ type MoveModule = {
1326
1370
  address: string;
1327
1371
  name: string;
1328
1372
  /**
@@ -1341,7 +1385,7 @@ declare type MoveModule = {
1341
1385
  /**
1342
1386
  * A move struct
1343
1387
  */
1344
- declare type MoveStruct = {
1388
+ type MoveStruct = {
1345
1389
  name: string;
1346
1390
  /**
1347
1391
  * Whether the struct is a native struct of Move
@@ -1363,7 +1407,7 @@ declare type MoveStruct = {
1363
1407
  /**
1364
1408
  * Move function
1365
1409
  */
1366
- declare type MoveFunction = {
1410
+ type MoveFunction = {
1367
1411
  name: string;
1368
1412
  visibility: MoveFunctionVisibility;
1369
1413
  /**
@@ -1391,7 +1435,7 @@ declare enum RoleType {
1391
1435
  VALIDATOR = "validator",
1392
1436
  FULL_NODE = "full_node"
1393
1437
  }
1394
- declare type LedgerInfo = {
1438
+ type LedgerInfo = {
1395
1439
  /**
1396
1440
  * Chain ID of the current chain
1397
1441
  */
@@ -1412,7 +1456,7 @@ declare type LedgerInfo = {
1412
1456
  /**
1413
1457
  * A Block type
1414
1458
  */
1415
- declare type Block = {
1459
+ type Block = {
1416
1460
  block_height: string;
1417
1461
  block_hash: string;
1418
1462
  block_timestamp: string;
@@ -1426,22 +1470,22 @@ declare type Block = {
1426
1470
  /**
1427
1471
  * The data needed to generate a View Request payload
1428
1472
  */
1429
- declare type ViewRequestData = {
1430
- function: MoveStructType;
1431
- typeArguments?: Array<MoveStructType>;
1473
+ type InputViewRequestData = {
1474
+ function: MoveFunctionId;
1475
+ typeArguments?: Array<MoveStructId>;
1432
1476
  functionArguments?: Array<MoveValue>;
1433
1477
  };
1434
1478
  /**
1435
1479
  * View request for the Move view function API
1436
1480
  *
1437
- * `type MoveStructType = ${string}::${string}::${string}`;
1481
+ * `type MoveFunctionId = ${string}::${string}::${string}`;
1438
1482
  */
1439
- declare type ViewRequest = {
1440
- function: MoveStructType;
1483
+ type ViewRequest = {
1484
+ function: MoveFunctionId;
1441
1485
  /**
1442
1486
  * Type arguments of the function
1443
1487
  */
1444
- type_arguments: Array<MoveStructType>;
1488
+ typeArguments: Array<MoveStructId>;
1445
1489
  /**
1446
1490
  * Arguments of the function
1447
1491
  */
@@ -1450,7 +1494,7 @@ declare type ViewRequest = {
1450
1494
  /**
1451
1495
  * Table Item request for the GetTableItem API
1452
1496
  */
1453
- declare type TableItemRequest = {
1497
+ type TableItemRequest = {
1454
1498
  key_type: MoveValue;
1455
1499
  value_type: MoveValue;
1456
1500
  /**
@@ -1463,7 +1507,7 @@ declare type TableItemRequest = {
1463
1507
  *
1464
1508
  * They are combinations of signing schemes and derive schemes.
1465
1509
  */
1466
- declare type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
1510
+ type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
1467
1511
  declare enum SigningScheme {
1468
1512
  /**
1469
1513
  * For Ed25519PublicKey
@@ -1517,7 +1561,7 @@ declare enum DeriveScheme {
1517
1561
  /**
1518
1562
  * Option properties to pass for waitForTransaction() function
1519
1563
  */
1520
- declare type WaitForTransactionOptions = {
1564
+ type WaitForTransactionOptions = {
1521
1565
  timeoutSecs?: number;
1522
1566
  checkSuccess?: boolean;
1523
1567
  indexerVersionCheck?: boolean;
@@ -1526,7 +1570,7 @@ declare type WaitForTransactionOptions = {
1526
1570
  * Input type to generate an account using Single Signer
1527
1571
  * Ed25519 or Legacy Ed25519
1528
1572
  */
1529
- declare type GenerateAccountWithEd25519 = {
1573
+ type GenerateAccountWithEd25519 = {
1530
1574
  scheme: SigningSchemeInput.Ed25519;
1531
1575
  legacy: boolean;
1532
1576
  };
@@ -1534,11 +1578,11 @@ declare type GenerateAccountWithEd25519 = {
1534
1578
  * Input type to generate an account using Single Signer
1535
1579
  * Secp256k1
1536
1580
  */
1537
- declare type GenerateAccountWithSingleSignerSecp256k1Key = {
1581
+ type GenerateAccountWithSingleSignerSecp256k1Key = {
1538
1582
  scheme: SigningSchemeInput.Secp256k1Ecdsa;
1539
1583
  legacy?: false;
1540
1584
  };
1541
- declare type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
1585
+ type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
1542
1586
 
1543
1587
  /**
1544
1588
  * Type of API endpoint for request routing
@@ -1548,6 +1592,38 @@ declare enum AptosApiType {
1548
1592
  INDEXER = 1,
1549
1593
  FAUCET = 2
1550
1594
  }
1595
+ declare const DEFAULT_NETWORK = Network.DEVNET;
1596
+ /**
1597
+ * The default max gas amount when none is given.
1598
+ *
1599
+ * This is the maximum number of gas units that will be used by a transaction before being rejected.
1600
+ *
1601
+ * Note that max gas amount varies based on the transaction. A larger transaction will go over this
1602
+ * default gas amount, and the value will need to be changed for the specific transaction.
1603
+ */
1604
+ declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
1605
+ /**
1606
+ * The default transaction expiration seconds from now.
1607
+ *
1608
+ * This time is how long until the blockchain nodes will reject the transaction.
1609
+ *
1610
+ * Note that the transaction expiration time varies based on network connection and network load. It may need to be
1611
+ * increased for the transaction to be processed.
1612
+ */
1613
+ declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
1614
+ /**
1615
+ * The default number of seconds to wait for a transaction to be processed.
1616
+ *
1617
+ * This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
1618
+ * the results of the transaction. It may take longer based on network connection and network load.
1619
+ */
1620
+ declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
1621
+ /**
1622
+ * The default gas currency for the network.
1623
+ */
1624
+ declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
1625
+ declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
1626
+ declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
1551
1627
 
1552
1628
  /**
1553
1629
  * This class holds the config information for the SDK client instance.
@@ -1608,7 +1684,7 @@ declare class ParsingError<T> extends Error {
1608
1684
  * Whereas ParsingError is thrown when parsing fails, e.g. in a fromString function,
1609
1685
  * this type is returned from "defensive" functions like isValid.
1610
1686
  */
1611
- declare type ParsingResult<T> = {
1687
+ type ParsingResult<T> = {
1612
1688
  /**
1613
1689
  * True if valid, false otherwise.
1614
1690
  */
@@ -2088,7 +2164,7 @@ declare enum AddressInvalidReason {
2088
2164
  LONG_FORM_REQUIRED_UNLESS_SPECIAL = "long_form_required_unless_special",
2089
2165
  INVALID_PADDING_ZEROES = "INVALID_PADDING_ZEROES"
2090
2166
  }
2091
- declare type AccountAddressInput = HexInput | AccountAddress;
2167
+ type AccountAddressInput = HexInput | AccountAddress;
2092
2168
  /**
2093
2169
  * NOTE: Only use this class for account addresses. For other hex data, e.g. transaction
2094
2170
  * hashes, use the Hex class.
@@ -3517,7 +3593,7 @@ declare class MultiKey extends PublicKey {
3517
3593
  static deserialize(deserializer: Deserializer): MultiKey;
3518
3594
  }
3519
3595
 
3520
- declare type DerivedKeys = {
3596
+ type DerivedKeys = {
3521
3597
  key: Uint8Array;
3522
3598
  chainCode: Uint8Array;
3523
3599
  };
@@ -3696,7 +3772,7 @@ declare class Account {
3696
3772
  */
3697
3773
  getAccountResource<T extends {} = any>(args: {
3698
3774
  accountAddress: AccountAddressInput;
3699
- resourceType: MoveStructType;
3775
+ resourceType: MoveStructId;
3700
3776
  options?: LedgerVersion;
3701
3777
  }): Promise<T>;
3702
3778
  /**
@@ -4478,23 +4554,23 @@ declare class SignedTransaction extends Serializable {
4478
4554
  /**
4479
4555
  * Entry function arguments to be used when building a raw transaction using remote ABI
4480
4556
  */
4481
- declare type SimpleEntryFunctionArgumentTypes = boolean | number | bigint | string | null | undefined | Uint8Array | Array<SimpleEntryFunctionArgumentTypes>;
4557
+ type SimpleEntryFunctionArgumentTypes = boolean | number | bigint | string | null | undefined | Uint8Array | Array<SimpleEntryFunctionArgumentTypes>;
4482
4558
  /**
4483
4559
  * Entry function arguments to be used when building a raw transaction using BCS serialized arguments
4484
4560
  */
4485
- declare type EntryFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<EntryFunctionArgumentTypes> | MoveOption<EntryFunctionArgumentTypes> | MoveString | FixedBytes;
4561
+ type EntryFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<EntryFunctionArgumentTypes> | MoveOption<EntryFunctionArgumentTypes> | MoveString | FixedBytes;
4486
4562
  /**
4487
4563
  * Script function arguments to be used when building a raw transaction using BCS serialized arguments
4488
4564
  */
4489
- declare type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<U8> | MoveString | FixedBytes;
4565
+ type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<U8> | MoveString | FixedBytes;
4490
4566
  /**
4491
4567
  * Type that holds all raw transaction instances Aptos SDK supports
4492
4568
  */
4493
- declare type AnyRawTransactionInstance = RawTransaction | MultiAgentRawTransaction | FeePayerRawTransaction;
4569
+ type AnyRawTransactionInstance = RawTransaction | MultiAgentRawTransaction | FeePayerRawTransaction;
4494
4570
  /**
4495
4571
  * Optional options to set when generating a transaction
4496
4572
  */
4497
- declare type InputGenerateTransactionOptions = {
4573
+ type InputGenerateTransactionOptions = {
4498
4574
  maxGasAmount?: AnyNumber;
4499
4575
  gasUnitPrice?: AnyNumber;
4500
4576
  expireTimestamp?: AnyNumber;
@@ -4503,42 +4579,40 @@ declare type InputGenerateTransactionOptions = {
4503
4579
  /**
4504
4580
  * The generated transaction payload type that was produces from `generateTransactionPayload()` function.
4505
4581
  */
4506
- declare type AnyTransactionPayloadInstance = TransactionPayloadEntryFunction | TransactionPayloadScript | TransactionPayloadMultisig;
4582
+ type AnyTransactionPayloadInstance = TransactionPayloadEntryFunction | TransactionPayloadScript | TransactionPayloadMultisig;
4507
4583
  /**
4508
4584
  * Unified type for the data needed to generate a transaction payload of types:
4509
4585
  * Entry Function | Script | Multi Sig
4510
4586
  */
4511
- declare type InputGenerateTransactionPayloadData = InputEntryFunctionData | InputScriptData | InputMultiSigData;
4512
- declare type InputGenerateTransactionPayloadDataWithRemoteABI = (InputScriptData & {
4513
- aptosConfig?: undefined;
4514
- }) | InputEntryFunctionDataWithRemoteABI | InputMultiSigDataWithRemoteABI;
4587
+ type InputGenerateTransactionPayloadData = InputEntryFunctionData | InputScriptData | InputMultiSigData;
4588
+ type InputGenerateTransactionPayloadDataWithRemoteABI = InputScriptData | InputEntryFunctionDataWithRemoteABI | InputMultiSigDataWithRemoteABI;
4515
4589
  /**
4516
4590
  * The data needed to generate an Entry Function payload
4517
4591
  */
4518
- declare type InputEntryFunctionData = {
4519
- function: MoveStructType;
4592
+ type InputEntryFunctionData = {
4593
+ function: MoveFunctionId;
4520
4594
  typeArguments?: Array<TypeTag | string>;
4521
4595
  functionArguments: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
4522
4596
  };
4523
- declare type InputEntryFunctionDataWithRemoteABI = InputEntryFunctionData & {
4597
+ type InputEntryFunctionDataWithRemoteABI = InputEntryFunctionData & {
4524
4598
  aptosConfig: AptosConfig;
4525
4599
  };
4526
4600
  /**
4527
4601
  * The data needed to generate a Multi Sig payload
4528
4602
  */
4529
- declare type InputMultiSigData = {
4603
+ type InputMultiSigData = {
4530
4604
  multisigAddress: AccountAddress;
4531
4605
  } & InputEntryFunctionData;
4532
4606
  /**
4533
4607
  * The data needed to generate a Multi Sig payload
4534
4608
  */
4535
- declare type InputMultiSigDataWithRemoteABI = {
4609
+ type InputMultiSigDataWithRemoteABI = {
4536
4610
  multisigAddress: AccountAddressInput;
4537
4611
  } & InputEntryFunctionDataWithRemoteABI;
4538
4612
  /**
4539
4613
  * The data needed to generate a Script payload
4540
4614
  */
4541
- declare type InputScriptData = {
4615
+ type InputScriptData = {
4542
4616
  bytecode: HexInput;
4543
4617
  typeArguments?: Array<TypeTag>;
4544
4618
  functionArguments: Array<ScriptFunctionArgumentTypes>;
@@ -4548,7 +4622,7 @@ declare type InputScriptData = {
4548
4622
  *
4549
4623
  * This is used to provide type checking and simple input conversion on ABI based transaction submission.
4550
4624
  */
4551
- declare type EntryFunctionABI = {
4625
+ type EntryFunctionABI = {
4552
4626
  typeParameters: Array<MoveFunctionGenericTypeParam>;
4553
4627
  parameters: Array<TypeTag>;
4554
4628
  };
@@ -4560,21 +4634,8 @@ interface InputGenerateSingleSignerRawTransactionArgs {
4560
4634
  aptosConfig: AptosConfig;
4561
4635
  sender: AccountAddressInput;
4562
4636
  payload: AnyTransactionPayloadInstance;
4563
- feePayerAddress?: undefined;
4564
- secondarySignerAddresses?: undefined;
4565
- options?: InputGenerateTransactionOptions;
4566
- }
4567
- /**
4568
- * Interface of the arguments to generate a fee payer transaction.
4569
- * Used to provide to `generateTransaction()` method in the transaction builder flow
4570
- */
4571
- interface InputGenerateFeePayerRawTransactionArgs {
4572
- aptosConfig: AptosConfig;
4573
- sender: AccountAddressInput;
4574
- payload: AnyTransactionPayloadInstance;
4575
- feePayerAddress: AccountAddressInput;
4576
- secondarySignerAddresses?: AccountAddressInput[];
4577
4637
  options?: InputGenerateTransactionOptions;
4638
+ feePayerAddress?: AccountAddressInput;
4578
4639
  }
4579
4640
  /**
4580
4641
  * Interface of the arguments to generate a multi-agent transaction.
@@ -4585,51 +4646,39 @@ interface InputGenerateMultiAgentRawTransactionArgs {
4585
4646
  sender: AccountAddressInput;
4586
4647
  payload: AnyTransactionPayloadInstance;
4587
4648
  secondarySignerAddresses: AccountAddressInput[];
4588
- feePayerAddress?: undefined;
4589
4649
  options?: InputGenerateTransactionOptions;
4650
+ feePayerAddress?: AccountAddressInput;
4590
4651
  }
4591
4652
  /**
4592
4653
  * Unified type that holds all the interfaces to generate different transaction types
4593
4654
  */
4594
- declare type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionArgs | InputGenerateFeePayerRawTransactionArgs | InputGenerateMultiAgentRawTransactionArgs;
4655
+ type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionArgs | InputGenerateMultiAgentRawTransactionArgs;
4595
4656
  /**
4596
4657
  * Interface that holds the return data when generating a single signer transaction
4597
4658
  *
4598
4659
  * @param rawTransaction a bcs serialized raw transaction
4599
4660
  */
4600
- interface InputSingleSignerTransaction {
4661
+ interface SingleSignerTransaction {
4601
4662
  rawTransaction: RawTransaction;
4602
- feePayerAddress?: undefined;
4663
+ feePayerAddress?: AccountAddress;
4603
4664
  secondarySignerAddresses?: undefined;
4604
4665
  }
4605
- /**
4606
- * Interface that holds the return data when generating a fee payer transaction
4607
- *
4608
- * @param rawTransaction a bcs serialized raw transaction
4609
- * @param secondarySignerAddresses optional. secondary signer addresses for multi-agent transaction
4610
- * @param feePayerAddress fee payer address for a fee payer transaction (aka Sponsored Transaction)
4611
- */
4612
- interface InputFeePayerTransaction {
4613
- rawTransaction: RawTransaction;
4614
- feePayerAddress: AccountAddress;
4615
- secondarySignerAddresses?: AccountAddress[];
4616
- }
4617
4666
  /**
4618
4667
  * Interface that holds the return data when generating a multi-agent transaction.
4619
4668
  *
4620
4669
  * @param rawTransaction a bcs serialized raw transaction
4621
4670
  * @param secondarySignerAddresses secondary signer addresses for multi-agent transaction
4622
4671
  */
4623
- interface InputMultiAgentTransaction {
4672
+ interface MultiAgentTransaction {
4624
4673
  rawTransaction: RawTransaction;
4625
4674
  secondarySignerAddresses: AccountAddress[];
4626
- feePayerAddress?: undefined;
4675
+ feePayerAddress?: AccountAddress;
4627
4676
  }
4628
4677
  /**
4629
4678
  * Unified type that holds all the return interfaces when generating different transaction types
4630
4679
  */
4631
- declare type AnyRawTransaction = InputSingleSignerTransaction | InputFeePayerTransaction | InputMultiAgentTransaction;
4632
- declare type InputSimulateTransactionData = {
4680
+ type AnyRawTransaction = SingleSignerTransaction | MultiAgentTransaction;
4681
+ type InputSimulateTransactionData = {
4633
4682
  /**
4634
4683
  * The transaction to simulate, probably generated by `generateTransaction()`
4635
4684
  */
@@ -4648,7 +4697,7 @@ declare type InputSimulateTransactionData = {
4648
4697
  feePayerPublicKey?: PublicKey;
4649
4698
  options?: InputSimulateTransactionOptions;
4650
4699
  };
4651
- declare type InputSimulateTransactionOptions = {
4700
+ type InputSimulateTransactionOptions = {
4652
4701
  estimateGasUnitPrice?: boolean;
4653
4702
  estimateMaxGasAmount?: boolean;
4654
4703
  estimatePrioritizedGasUnitPrice?: boolean;
@@ -4658,35 +4707,25 @@ declare type InputSimulateTransactionOptions = {
4658
4707
  */
4659
4708
  interface InputGenerateSingleSignerRawTransactionData {
4660
4709
  sender: AccountAddressInput;
4661
- hasFeePayer?: undefined;
4662
- secondarySignerAddresses?: undefined;
4663
- options?: InputGenerateTransactionOptions;
4664
4710
  data: InputGenerateTransactionPayloadData;
4665
- }
4666
- /**
4667
- * Interface that holds the user data input when generating a fee payer transaction
4668
- */
4669
- interface InputGenerateFeePayerRawTransactionData {
4670
- sender: AccountAddressInput;
4671
- hasFeePayer: true;
4672
- secondarySignerAddresses?: AccountAddressInput[];
4673
4711
  options?: InputGenerateTransactionOptions;
4674
- data: InputGenerateTransactionPayloadData;
4712
+ withFeePayer?: boolean;
4713
+ secondarySignerAddresses?: undefined;
4675
4714
  }
4676
4715
  /**
4677
4716
  * Interface that holds the user data input when generating a multi-agent transaction
4678
4717
  */
4679
4718
  interface InputGenerateMultiAgentRawTransactionData {
4680
4719
  sender: AccountAddressInput;
4720
+ data: InputGenerateTransactionPayloadData;
4681
4721
  secondarySignerAddresses: AccountAddressInput[];
4682
- hasFeePayer?: undefined;
4683
4722
  options?: InputGenerateTransactionOptions;
4684
- data: InputGenerateTransactionPayloadData;
4723
+ withFeePayer?: boolean;
4685
4724
  }
4686
4725
  /**
4687
4726
  * Unified type that holds all the user data input interfaces when generating different transaction types
4688
4727
  */
4689
- declare type InputGenerateTransactionData = InputGenerateMultiAgentRawTransactionData | InputGenerateFeePayerRawTransactionData | InputGenerateSingleSignerRawTransactionData;
4728
+ type InputGenerateTransactionData = InputGenerateSingleSignerRawTransactionData | InputGenerateMultiAgentRawTransactionData;
4690
4729
  /**
4691
4730
  * Interface that holds the user data input when submitting a transaction
4692
4731
  */
@@ -4717,9 +4756,9 @@ declare class Coin {
4717
4756
  sender: Account$1;
4718
4757
  recipient: AccountAddressInput;
4719
4758
  amount: AnyNumber;
4720
- coinType?: MoveStructType;
4759
+ coinType?: MoveStructId;
4721
4760
  options?: InputGenerateTransactionOptions;
4722
- }): Promise<InputSingleSignerTransaction>;
4761
+ }): Promise<SingleSignerTransaction>;
4723
4762
  }
4724
4763
 
4725
4764
  /**
@@ -4781,7 +4820,7 @@ declare class DigitalAsset {
4781
4820
  name: string;
4782
4821
  uri: string;
4783
4822
  options?: InputGenerateTransactionOptions;
4784
- } & CreateCollectionOptions): Promise<InputSingleSignerTransaction>;
4823
+ } & CreateCollectionOptions): Promise<SingleSignerTransaction>;
4785
4824
  /**
4786
4825
  * Queries data of a specific collection by the collection creator address and the collection name.
4787
4826
  *
@@ -4836,7 +4875,7 @@ declare class DigitalAsset {
4836
4875
  name: string;
4837
4876
  uri: string;
4838
4877
  options?: InputGenerateTransactionOptions;
4839
- }): Promise<InputSingleSignerTransaction>;
4878
+ }): Promise<SingleSignerTransaction>;
4840
4879
  /**
4841
4880
  * Gets token data given the address of a token.
4842
4881
  *
@@ -4911,7 +4950,7 @@ declare class Event {
4911
4950
  */
4912
4951
  getAccountEventsByEventType(args: {
4913
4952
  accountAddress: AccountAddressInput;
4914
- eventType: MoveStructType;
4953
+ eventType: MoveStructId;
4915
4954
  options?: {
4916
4955
  pagination?: PaginationArgs;
4917
4956
  orderBy?: OrderBy<GetEventsResponse[0]>;
@@ -5124,10 +5163,10 @@ declare class General {
5124
5163
  *
5125
5164
  * @returns an array of Move values
5126
5165
  */
5127
- view(args: {
5128
- payload: ViewRequestData;
5166
+ view<T extends Array<MoveValue>>(args: {
5167
+ payload: InputViewRequestData;
5129
5168
  options?: LedgerVersion;
5130
- }): Promise<Array<MoveValue>>;
5169
+ }): Promise<T>;
5131
5170
  /**
5132
5171
  * Queries top user transactions
5133
5172
  *
@@ -5157,7 +5196,7 @@ declare class General {
5157
5196
  *
5158
5197
  * @return The provided T type
5159
5198
  */
5160
- queryIndexer<T>(args: {
5199
+ queryIndexer<T extends {}>(args: {
5161
5200
  query: GraphqlQuery;
5162
5201
  }): Promise<T>;
5163
5202
  /**
@@ -5181,7 +5220,7 @@ interface RegisterNameParameters {
5181
5220
  name: string;
5182
5221
  expiration: {
5183
5222
  policy: "domain";
5184
- years: 1;
5223
+ years?: 1;
5185
5224
  } | {
5186
5225
  policy: "subdomain:follow-domain";
5187
5226
  } | {
@@ -5189,10 +5228,29 @@ interface RegisterNameParameters {
5189
5228
  expirationDate: Date;
5190
5229
  };
5191
5230
  transferable?: boolean;
5192
- toAddress?: HexInput;
5193
- targetAddress?: HexInput;
5231
+ toAddress?: AccountAddressInput;
5232
+ targetAddress?: AccountAddressInput;
5194
5233
  options?: InputGenerateTransactionOptions;
5195
5234
  }
5235
+ interface QueryNamesOptions {
5236
+ options?: {
5237
+ pagination?: PaginationArgs;
5238
+ orderBy?: OrderBy<GetANSNameResponse[0]>;
5239
+ where?: CurrentAptosNamesBoolExp;
5240
+ };
5241
+ }
5242
+ interface GetAccountNamesArgs extends QueryNamesOptions {
5243
+ accountAddress: AccountAddressInput;
5244
+ }
5245
+ interface GetAccountDomainsArgs extends QueryNamesOptions {
5246
+ accountAddress: AccountAddressInput;
5247
+ }
5248
+ interface GetAccountSubdomainsArgs extends QueryNamesOptions {
5249
+ accountAddress: AccountAddressInput;
5250
+ }
5251
+ interface GetDomainSubdomainsArgs extends QueryNamesOptions {
5252
+ domain: string;
5253
+ }
5196
5254
 
5197
5255
  /**
5198
5256
  * A class to handle all `ANS` operations
@@ -5201,11 +5259,12 @@ declare class ANS {
5201
5259
  readonly config: AptosConfig;
5202
5260
  constructor(config: AptosConfig);
5203
5261
  /**
5204
- * Retrieve the owner address of a domain name or subdomain name.
5262
+ * Retrieve the owner address of a domain name or subdomain name from the contract.
5205
5263
  *
5206
5264
  * ```ts
5207
- * getOwnerAddress({name: "test.aptos"})
5208
5265
  * // Will return the owner address of "test.aptos.apt" or undefined
5266
+ * const owner = await aptos.getOwnerAddress({name: "test.aptos"})
5267
+ * // owner = 0x123...
5209
5268
  * ```
5210
5269
  *
5211
5270
  * @param args.name - A string of the name to retrieve
@@ -5216,26 +5275,219 @@ declare class ANS {
5216
5275
  name: string;
5217
5276
  }): Promise<MoveAddressType | undefined>;
5218
5277
  /**
5219
- * Registers a new domain or subdomain name
5278
+ * Retrieve the expiration time of a domain name or subdomain name from the contract.
5279
+ *
5280
+ * ```ts
5281
+ * // Will return the expiration of "test.aptos.apt" or undefined
5282
+ * const exp = await aptos.getExpiration({name: "test.aptos"})
5283
+ * // new Date(exp) would give you the date in question: 2021-01-01T00:00:00.000Z
5284
+ * ```
5285
+ *
5286
+ * @param args.name - A string of the name to retrieve
5287
+ *
5288
+ * @returns number as a unix timestamp in seconds.
5289
+ */
5290
+ getExpiration(args: {
5291
+ name: string;
5292
+ }): Promise<number | undefined>;
5293
+ /**
5294
+ * Retrieve the target address of a domain or subdomain name. This is the
5295
+ * address the name points to for use on chain. Note, the target address can
5296
+ * point to addresses that are not the owner of the name
5297
+ *
5298
+ * ```ts
5299
+ * const targetAddr = await aptos.getTargetAddress({name: "test.aptos"})
5300
+ * // targetAddr = 0x123...
5301
+ * ```
5302
+ *
5303
+ * @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.
5304
+ *
5305
+ * @returns MoveAddressType if the name has a target, undefined otherwise
5306
+ */
5307
+ getTargetAddress(args: {
5308
+ name: string;
5309
+ }): Promise<MoveAddressType | undefined>;
5310
+ /**
5311
+ * Sets the target address of a domain or subdomain name. This is the
5312
+ * address the name points to for use on chain. Note, the target address can
5313
+ * point to addresses that are not the owner of the name
5314
+ *
5315
+ * ```ts
5316
+ * await aptos.setTargetAddress({sender: alice, name: "test.aptos", address: bob.accountAddress.toString})
5317
+ * const address = await aptos.getTargetAddress({name: "test.aptos"})
5318
+ * // address = bob.accountAddress.toString()
5319
+ * ```
5320
+ *
5321
+ * @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
5322
+ * @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
5323
+ *
5324
+ * @returns SingleSignerTransaction
5325
+ */
5326
+ setTargetAddress(args: {
5327
+ sender: Account$1;
5328
+ name: string;
5329
+ address: AccountAddressInput;
5330
+ options?: InputGenerateTransactionOptions;
5331
+ }): Promise<SingleSignerTransaction>;
5332
+ /**
5333
+ * Retrieve the primary name for an account. An account can have
5334
+ * multiple names that target it, but only a single name that is primary. An
5335
+ * account also may not have a primary name.
5336
+ *
5337
+ * ```ts
5338
+ * const name = await aptos.getPrimaryName({address: alice.accountAddress.toString()})
5339
+ * // name = test.aptos
5340
+ * ```
5341
+ *
5342
+ * @param args.address - A AccountAddressInput (address) of the account
5343
+ *
5344
+ * @returns a string if the account has a primary name, undefined otherwise
5345
+ */
5346
+ getPrimaryName(args: {
5347
+ address: AccountAddressInput;
5348
+ }): Promise<string | undefined>;
5349
+ /**
5350
+ * Sets the primary name for the sender. An account can have
5351
+ * multiple names that target it, but only a single name that is primary. An
5352
+ * account also may not have a primary name.
5353
+ *
5354
+ * ```ts
5355
+ * await aptos.setPrimaryName({sender: alice, name: "test.aptos"})
5356
+ * const primaryName = await aptos.getPrimaryName({address: alice.accountAddress.toString()})
5357
+ * // primaryName = test.aptos
5358
+ * ```
5359
+ *
5360
+ * @param args.sender - The sender account
5361
+ * @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
5362
+ *
5363
+ * @returns SingleSignerTransaction
5364
+ */
5365
+ setPrimaryName(args: {
5366
+ sender: Account$1;
5367
+ name: string | null;
5368
+ options?: InputGenerateTransactionOptions;
5369
+ }): Promise<SingleSignerTransaction>;
5370
+ /**
5371
+ * Registers a new name
5372
+ *
5373
+ * ```ts
5374
+ * // An example of registering a subdomain name assuming def.apt is already registered
5375
+ * // and belongs to the sender alice.
5376
+ * const txn = aptos.registerName({
5377
+ * sender: alice,
5378
+ * name: "test.aptos.apt",
5379
+ * expiration: {
5380
+ * policy: "subdomain:independent",
5381
+ * expirationDate: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000),
5382
+ * },
5383
+ * });
5384
+ * ```
5220
5385
  *
5221
5386
  * @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"}.
5387
+ * @param args.name - A string of the name to register. This can be inclusive or exclusive of the .apt suffix.
5388
+ * Examples include: "test", "test.apt", "test.aptos.apt", etc.
5225
5389
  * @param args.expiration - An object with the expiration policy of the name.
5226
5390
  * @param args.expiration.policy - 'domain' | 'subdomain:follow-domain' | 'subdomain:independent'
5227
5391
  * - domain: Years is required and the name will expire after the given number of years.
5228
5392
  * - subdomain:follow-domain: The name will expire at the same time as the domain name.
5229
5393
  * - subdomain:independent: The name will expire at the given date.
5394
+ * @param args.expiration.expirationDate - A javascript date of when the subdomain will expire. Only applicable when
5395
+ * the policy is set to 'subdomain:independent'.
5230
5396
  * @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.
5231
5397
  * @param args.targetAddress optional - The address the domain name will resolve to. If not provided,
5232
5398
  * the sender's address will be used.
5233
5399
  * @param args.toAddress optional - The address to send the domain name to. If not provided,
5234
5400
  * the transaction will be sent to the router.
5235
5401
  *
5236
- * @returns InputSingleSignerTransaction
5402
+ * @returns SingleSignerTransaction
5403
+ */
5404
+ registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SingleSignerTransaction>;
5405
+ /**
5406
+ * Renews a domain name
5407
+ *
5408
+ * Note: If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.
5409
+ *
5410
+ * ```ts
5411
+ * await aptos.renewDomain({sender: alice, name: "test"})
5412
+ * // test.apt will be renewed for one year
5413
+ * ```
5414
+ *
5415
+ * @param args.sender - The sender account
5416
+ * @param args.name - A string of the domain the subdomain will be under. The signer must be the domain owner.
5417
+ * Subdomains cannot be renewed.
5418
+ * @param args.years - The number of years to renew the name. Currently only one year is permitted.
5419
+ *
5420
+ * @returns SingleSignerTransaction
5421
+ */
5422
+ renewDomain(args: {
5423
+ sender: Account$1;
5424
+ name: string;
5425
+ years?: 1;
5426
+ options?: InputGenerateTransactionOptions;
5427
+ }): Promise<SingleSignerTransaction>;
5428
+ /**
5429
+ * Fetches a single name from the indexer
5430
+ * @param args.name - A string of the name to retrieve, e.g. "test.aptos.apt"
5431
+ * or "test.apt" or "test". Can be inclusive or exclusive of the .apt suffix.
5432
+ * Can be a subdomain.
5433
+ *
5434
+ * @returns A promise of an ANSName or undefined
5435
+ */
5436
+ getName(args: {
5437
+ name: string;
5438
+ }): Promise<GetANSNameResponse[0] | undefined>;
5439
+ /**
5440
+ * Fetches all names for an account (both top level domains and subdomains)
5441
+ *
5442
+ * @param args
5443
+ * @param args.accountAddress - A AccountAddressInput of the address to retrieve names for.
5444
+ * @param args.options.pagination.offset - Optional, the offset to start from when fetching names
5445
+ * @param args.options.pagination.limit - Optional, A number of the names to fetch per request
5446
+ * @param args.options.orderBy - The order to sort the names by
5447
+ * @param args.options.where - Additional filters to apply to the query
5448
+ *
5449
+ * @returns a promise of an array of ANSName
5450
+ */
5451
+ getAccountNames(args: GetAccountNamesArgs): Promise<GetANSNameResponse>;
5452
+ /**
5453
+ * Fetches all top level domain names for an account
5454
+ *
5455
+ * @param args
5456
+ * @param args.accountAddress - A AccountAddressInput of the address to retrieve domain names for.
5457
+ * @param args.options.pagination.offset - Optional, the offset to start from when fetching names
5458
+ * @param args.options.pagination.limit - Optional, A number of the names to fetch per request
5459
+ * @param args.options.orderBy - The order to sort the names by
5460
+ * @param args.options.where - Additional filters to apply to the query
5461
+ *
5462
+ * @returns a promise of an array of ANSName
5463
+ */
5464
+ getAccountDomains(args: GetAccountDomainsArgs): Promise<GetANSNameResponse>;
5465
+ /**
5466
+ * Fetches all subdomains names for an account
5467
+ *
5468
+ * @param args
5469
+ * @param args.accountAddress - A AccountAddressInput of the address to retrieve subdomains names for.
5470
+ * @param args.options.pagination.offset - Optional, the offset to start from when fetching names
5471
+ * @param args.options.pagination.limit - Optional, A number of the names to fetch per request
5472
+ * @param args.options.orderBy - The order to sort the names by
5473
+ * @param args.options.where - Additional filters to apply to the query
5474
+ *
5475
+ * @returns a promise of an array of ANSName
5476
+ */
5477
+ getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<GetANSNameResponse>;
5478
+ /**
5479
+ * Fetches all subdomains names for a given domain. Note, this will not return the domain itself.
5480
+ *
5481
+ * @param args
5482
+ * @param args.domain - A string of the domain name: eg. "test.apt" or "test" (without the suffix of .apt)
5483
+ * @param args.options.pagination.offset - Optional, the offset to start from when fetching names
5484
+ * @param args.options.pagination.limit - Optional, A number of the names to fetch per request
5485
+ * @param args.options.orderBy - The order to sort the names by
5486
+ * @param args.options.where - Additional filters to apply to the query
5487
+ *
5488
+ * @returns a promise of an array of ANSName
5237
5489
  */
5238
- registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<InputSingleSignerTransaction>;
5490
+ getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<GetANSNameResponse>;
5239
5491
  }
5240
5492
 
5241
5493
  /**
@@ -5371,57 +5623,6 @@ declare class Transaction {
5371
5623
  declare class TransactionSubmission {
5372
5624
  readonly config: AptosConfig;
5373
5625
  constructor(config: AptosConfig);
5374
- /**
5375
- * We are defining function signatures, each with its specific input and output.
5376
- * These are the possible function signature for `generateTransaction` function.
5377
- * When we call `generateTransaction` function with the relevant type properties,
5378
- * Typescript can infer the return type based on the appropriate function overload.
5379
- */
5380
- generateTransaction(args: InputGenerateSingleSignerRawTransactionData): Promise<InputSingleSignerTransaction>;
5381
- generateTransaction(args: InputGenerateFeePayerRawTransactionData): Promise<InputFeePayerTransaction>;
5382
- generateTransaction(args: InputGenerateMultiAgentRawTransactionData): Promise<InputMultiAgentTransaction>;
5383
- generateTransaction(args: InputGenerateTransactionData): Promise<AnyRawTransaction>;
5384
- /**
5385
- * Sign a transaction that can later be submitted to chain
5386
- *
5387
- * @param args.signer The signer account to sign the transaction
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
5390
- * ```
5391
- * {
5392
- * rawTransaction: RawTransaction,
5393
- * secondarySignerAddresses? : Array<AccountAddress>,
5394
- * feePayerAddress?: AccountAddress
5395
- * }
5396
- * ```
5397
- *
5398
- * @return The signer AccountAuthenticator
5399
- */
5400
- signTransaction(args: {
5401
- signer: Account$1;
5402
- transaction: AnyRawTransaction;
5403
- asFeePayer?: boolean;
5404
- }): AccountAuthenticator;
5405
- /**
5406
- * Simulates a transaction before singing it.
5407
- *
5408
- * @param args.signerPublicKey The signer public key
5409
- * @param args.transaction The raw transaction to simulate
5410
- * @param args.secondarySignersPublicKeys optional. For when the transaction is a multi signers transaction
5411
- * @param args.feePayerPublicKey optional. For when the transaction is a fee payer (aka sponsored) transaction
5412
- * @param args.options optional. A config to simulate the transaction with
5413
- */
5414
- simulateTransaction(args: InputSimulateTransactionData): Promise<Array<UserTransactionResponse>>;
5415
- /**
5416
- * Submit transaction to chain
5417
- *
5418
- * @param args.transaction A aptos transaction type
5419
- * @param args.senderAuthenticator The account authenticator of the transaction sender
5420
- * @param args.secondarySignerAuthenticators optional. For when the transaction is a multi signers transaction
5421
- *
5422
- * @return PendingTransactionResponse
5423
- */
5424
- submitTransaction(args: InputSubmitTransactionData): Promise<PendingTransactionResponse>;
5425
5626
  /**
5426
5627
  * Sign and submit a single signer transaction to chain
5427
5628
  *
@@ -5459,7 +5660,7 @@ declare class TransactionSubmission {
5459
5660
  metadataBytes: HexInput;
5460
5661
  moduleBytecode: Array<HexInput>;
5461
5662
  options?: InputGenerateTransactionOptions;
5462
- }): Promise<InputSingleSignerTransaction>;
5663
+ }): Promise<SingleSignerTransaction>;
5463
5664
  /**
5464
5665
  * Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
5465
5666
  * the account.
@@ -5476,232 +5677,56 @@ declare class TransactionSubmission {
5476
5677
  }): Promise<TransactionResponse>;
5477
5678
  }
5478
5679
 
5680
+ declare function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean;
5681
+ declare function isString(arg: any): arg is string;
5682
+ declare function isNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number;
5683
+ declare function isLargeNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number | bigint | string;
5684
+ declare function isNull(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined;
5685
+ declare function isBcsBool(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is Bool;
5686
+ declare function isBcsAddress(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is AccountAddress;
5687
+ declare function isBcsString(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is MoveString;
5688
+ declare function isBcsFixedBytes(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is FixedBytes;
5689
+ declare function isBcsU8(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U8;
5690
+ declare function isBcsU16(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U16;
5691
+ declare function isBcsU32(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U32;
5692
+ declare function isBcsU64(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U64;
5693
+ declare function isBcsU128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U128;
5694
+ declare function isBcsU256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U256;
5695
+ declare function isScriptDataInput(arg: InputGenerateTransactionPayloadDataWithRemoteABI | InputGenerateTransactionPayloadData): arg is InputScriptData;
5696
+ declare function throwTypeMismatch(expectedType: string, position: number): void;
5479
5697
  /**
5480
- * This class is the main entry point into Aptos's
5481
- * APIs and separates functionality into different namespaces.
5698
+ * Finds first non-signer arg.
5482
5699
  *
5483
- * To use the SDK, create a new Aptos instance to get access
5484
- * to all the sdk functionality.
5700
+ * A function is often defined with a `signer` or `&signer` arguments at the start, which are filled in
5701
+ * by signatures, and not by the caller.
5702
+ * @param functionAbi
5485
5703
  */
5486
- declare class Aptos {
5487
- readonly config: AptosConfig;
5488
- readonly account: Account;
5489
- readonly ans: ANS;
5490
- readonly coin: Coin;
5491
- readonly digitalAsset: DigitalAsset;
5492
- readonly event: Event;
5493
- readonly faucet: Faucet;
5494
- readonly fungibleAsset: FungibleAsset;
5495
- readonly general: General;
5496
- readonly staking: Staking;
5497
- readonly transaction: Transaction;
5498
- readonly transactionSubmission: TransactionSubmission;
5499
- constructor(settings?: AptosConfig);
5500
- }
5501
- interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, ANS, TransactionSubmission {
5502
- }
5704
+ declare function findFirstNonSignerArg(functionAbi: MoveFunction): number;
5705
+ declare function getFunctionParts(functionArg: MoveFunctionId): {
5706
+ moduleAddress: string;
5707
+ moduleName: string;
5708
+ functionName: string;
5709
+ };
5503
5710
 
5504
5711
  /**
5505
- * The API response type
5506
- *
5507
- * @param status - the response status. i.e. 200
5508
- * @param statusText - the response message
5509
- * @param data the response data
5510
- * @param url the url the request was made to
5511
- * @param headers the response headers
5512
- * @param config (optional) - the request object
5513
- * @param request (optional) - the request object
5712
+ * We are defining function signatures, each with its specific input and output.
5713
+ * These are the possible function signature for our `generateTransactionPayload` function.
5714
+ * When we call our `generateTransactionPayload` function with the relevant type properties,
5715
+ * Typescript can infer the return type based on the appropriate function overload.
5514
5716
  */
5515
- interface AptosResponse<Req, Res> {
5516
- status: number;
5517
- statusText: string;
5518
- data: Res;
5519
- url: string;
5520
- headers: any;
5521
- config?: any;
5522
- request?: Req;
5523
- }
5717
+ declare function generateTransactionPayload(args: InputScriptData): Promise<TransactionPayloadScript>;
5718
+ declare function generateTransactionPayload(args: InputEntryFunctionDataWithRemoteABI): Promise<TransactionPayloadEntryFunction>;
5719
+ declare function generateTransactionPayload(args: InputMultiSigDataWithRemoteABI): Promise<TransactionPayloadMultisig>;
5720
+ declare function generateTransactionPayloadWithABI(args: InputEntryFunctionData, functionAbi: EntryFunctionABI): TransactionPayloadEntryFunction;
5721
+ declare function generateTransactionPayloadWithABI(args: InputMultiSigData, functionAbi: EntryFunctionABI): TransactionPayloadMultisig;
5524
5722
  /**
5525
- * The type returned from an API error
5723
+ * Generates a raw transaction
5526
5724
  *
5527
- * @param name - the error name "AptosApiError"
5528
- * @param url the url the request was made to
5529
- * @param status - the response status. i.e. 400
5530
- * @param statusText - the response message
5531
- * @param data the response data
5532
- * @param request - the AptosRequest
5533
- */
5534
- declare class AptosApiError extends Error {
5535
- readonly url: string;
5536
- readonly status: number;
5537
- readonly statusText: string;
5538
- readonly data: any;
5539
- readonly request: AptosRequest;
5540
- constructor(request: AptosRequest, response: AptosResponse<any, any>, message: string);
5541
- }
5542
-
5543
- /**
5544
- * Given a url and method, sends the request with axios and
5545
- * returns the response.
5546
- */
5547
- declare function request<Req, Res>(options: ClientRequest<Req>, client: Client): Promise<ClientResponse<Res>>;
5548
- /**
5549
- * The main function to use when doing an API request.
5550
- *
5551
- * @param options AptosRequest
5552
- * @param aptosConfig The config information for the SDK client instance
5553
- * @returns the response or AptosApiError
5554
- */
5555
- declare function aptosRequest<Req, Res>(options: AptosRequest, aptosConfig: AptosConfig): Promise<AptosResponse<Req, Res>>;
5556
-
5557
- declare type GetRequestOptions = {
5558
- /**
5559
- * The config for the API client
5560
- */
5561
- aptosConfig: AptosConfig;
5562
- /**
5563
- * The type of API endpoint to call e.g. fullnode, indexer, etc
5564
- */
5565
- type: AptosApiType;
5566
- /**
5567
- * The name of the API method
5568
- */
5569
- originMethod: string;
5570
- /**
5571
- * The URL path to the API method
5572
- */
5573
- path: string;
5574
- /**
5575
- * The content type of the request body
5576
- */
5577
- contentType?: MimeType;
5578
- /**
5579
- * The accepted content type of the response of the API
5580
- */
5581
- acceptType?: MimeType;
5582
- /**
5583
- * The query parameters for the request
5584
- */
5585
- params?: Record<string, string | AnyNumber | boolean | undefined>;
5586
- /**
5587
- * Specific client overrides for this request to override aptosConfig
5588
- */
5589
- overrides?: ClientConfig;
5590
- };
5591
- declare type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
5592
- /**
5593
- * Main function to do a Get request
5594
- *
5595
- * @param options GetRequestOptions
5596
- * @returns
5597
- */
5598
- declare function get<Req, Res>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
5599
- declare function getAptosFullNode<Req, Res>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5600
- declare function paginateWithCursor<Req extends Record<string, any>, Res extends any[]>(options: GetAptosRequestOptions): Promise<Res>;
5601
-
5602
- declare type PostRequestOptions = {
5603
- /**
5604
- * The config for the API client
5605
- */
5606
- aptosConfig: AptosConfig;
5607
- /**
5608
- * The type of API endpoint to call e.g. fullnode, indexer, etc
5609
- */
5610
- type: AptosApiType;
5611
- /**
5612
- * The name of the API method
5613
- */
5614
- originMethod: string;
5615
- /**
5616
- * The URL path to the API method
5617
- */
5618
- path: string;
5619
- /**
5620
- * The content type of the request body
5621
- */
5622
- contentType?: MimeType;
5623
- /**
5624
- * The accepted content type of the response of the API
5625
- */
5626
- acceptType?: MimeType;
5627
- /**
5628
- * The query parameters for the request
5629
- */
5630
- params?: Record<string, string | AnyNumber | boolean | undefined>;
5631
- /**
5632
- * The body of the request, should match the content type of the request
5633
- */
5634
- body?: any;
5635
- /**
5636
- * Specific client overrides for this request to override aptosConfig
5637
- */
5638
- overrides?: ClientConfig;
5639
- };
5640
- declare type PostAptosRequestOptions = Omit<PostRequestOptions, "type">;
5641
- /**
5642
- * Main function to do a Post request
5643
- *
5644
- * @param options PostRequestOptions
5645
- * @returns
5646
- */
5647
- declare function post<Req, Res>(options: PostRequestOptions): Promise<AptosResponse<Req, Res>>;
5648
- declare function postAptosFullNode<Req, Res>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5649
- declare function postAptosIndexer<Req, Res>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5650
- declare function postAptosFaucet<Req, Res>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
5651
-
5652
- declare function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean;
5653
- declare function isString(arg: any): arg is string;
5654
- declare function isNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number;
5655
- declare function isLargeNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number | bigint | string;
5656
- declare function isNull(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined;
5657
- declare function isBcsBool(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is Bool;
5658
- declare function isBcsAddress(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is AccountAddress;
5659
- declare function isBcsString(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is MoveString;
5660
- declare function isBcsFixedBytes(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is FixedBytes;
5661
- declare function isBcsU8(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U8;
5662
- declare function isBcsU16(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U16;
5663
- declare function isBcsU32(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U32;
5664
- declare function isBcsU64(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U64;
5665
- declare function isBcsU128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U128;
5666
- declare function isBcsU256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U256;
5667
- declare function isScriptDataInput(arg: InputGenerateTransactionPayloadDataWithRemoteABI | InputGenerateTransactionPayloadData): arg is InputScriptData;
5668
- declare function throwTypeMismatch(expectedType: string, position: number): void;
5669
- /**
5670
- * Finds first non-signer arg.
5671
- *
5672
- * A function is often defined with a `signer` or `&signer` arguments at the start, which are filled in
5673
- * by signatures, and not by the caller.
5674
- * @param functionAbi
5675
- */
5676
- declare function findFirstNonSignerArg(functionAbi: MoveFunction): number;
5677
- declare function getFunctionParts(functionArg: MoveStructType): {
5678
- moduleAddress: string;
5679
- moduleName: string;
5680
- functionName: string;
5681
- };
5682
-
5683
- /**
5684
- * We are defining function signatures, each with its specific input and output.
5685
- * These are the possible function signature for our `generateTransactionPayload` function.
5686
- * When we call our `generateTransactionPayload` function with the relevant type properties,
5687
- * Typescript can infer the return type based on the appropriate function overload.
5688
- */
5689
- declare function generateTransactionPayload(args: InputScriptData & {
5690
- aptosConfig?: undefined;
5691
- }): Promise<TransactionPayloadScript>;
5692
- declare function generateTransactionPayload(args: InputEntryFunctionDataWithRemoteABI): Promise<TransactionPayloadEntryFunction>;
5693
- declare function generateTransactionPayload(args: InputMultiSigDataWithRemoteABI): Promise<TransactionPayloadMultisig>;
5694
- declare function generateTransactionPayload(args: InputGenerateTransactionPayloadDataWithRemoteABI): Promise<AnyTransactionPayloadInstance>;
5695
- declare function generateTransactionPayloadWithABI(args: InputEntryFunctionData, functionAbi: EntryFunctionABI): TransactionPayloadEntryFunction;
5696
- declare function generateTransactionPayloadWithABI(args: InputMultiSigData, functionAbi: EntryFunctionABI): TransactionPayloadMultisig;
5697
- /**
5698
- * Generates a raw transaction
5699
- *
5700
- * @param args.aptosConfig AptosConfig
5701
- * @param args.sender The transaction's sender account address as a hex input
5702
- * @param args.payload The transaction payload - can create by using generateTransactionPayload()
5703
- *
5704
- * @returns RawTransaction
5725
+ * @param args.aptosConfig AptosConfig
5726
+ * @param args.sender The transaction's sender account address as a hex input
5727
+ * @param args.payload The transaction payload - can create by using generateTransactionPayload()
5728
+ *
5729
+ * @returns RawTransaction
5705
5730
  */
5706
5731
  declare function generateRawTransaction(args: {
5707
5732
  aptosConfig: AptosConfig;
@@ -5715,10 +5740,8 @@ declare function generateRawTransaction(args: {
5715
5740
  * When we call our `generateTransaction` function with the relevant type properties,
5716
5741
  * Typescript can infer the return type based on the appropriate function overload.
5717
5742
  */
5718
- declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<InputSingleSignerTransaction>;
5719
- declare function buildTransaction(args: InputGenerateFeePayerRawTransactionArgs): Promise<InputFeePayerTransaction>;
5720
- declare function buildTransaction(args: InputGenerateMultiAgentRawTransactionArgs): Promise<InputMultiAgentTransaction>;
5721
- declare function buildTransaction(args: InputGenerateRawTransactionArgs): Promise<AnyRawTransaction>;
5743
+ declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<SingleSignerTransaction>;
5744
+ declare function buildTransaction(args: InputGenerateMultiAgentRawTransactionArgs): Promise<MultiAgentTransaction>;
5722
5745
  /**
5723
5746
  * Simulate a transaction before signing and submit to chain
5724
5747
  *
@@ -5798,6 +5821,7 @@ declare function convertArgument(functionName: string, functionAbi: EntryFunctio
5798
5821
 
5799
5822
  declare enum TypeTagParserErrorType {
5800
5823
  InvalidTypeTag = "unknown type",
5824
+ UnexpectedGenericType = "unexpected generic type",
5801
5825
  UnexpectedTypeArgumentClose = "unexpected '>'",
5802
5826
  UnexpectedWhitespaceCharacter = "unexpected whitespace character",
5803
5827
  UnexpectedComma = "unexpected ','",
@@ -5828,4 +5852,258 @@ declare function parseTypeTag(typeStr: string, options?: {
5828
5852
  allowGenerics?: boolean;
5829
5853
  }): TypeTag;
5830
5854
 
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 };
5855
+ /**
5856
+ * A class to handle all `Build` transaction operations
5857
+ */
5858
+ declare class Build {
5859
+ readonly config: AptosConfig;
5860
+ constructor(config: AptosConfig);
5861
+ transaction(args: {
5862
+ sender: AccountAddressInput;
5863
+ data: InputGenerateTransactionPayloadData;
5864
+ options?: InputGenerateTransactionOptions;
5865
+ withFeePayer?: boolean;
5866
+ }): Promise<SingleSignerTransaction>;
5867
+ multiAgentTransaction(args: {
5868
+ sender: AccountAddressInput;
5869
+ data: InputGenerateTransactionPayloadData;
5870
+ secondarySignerAddresses: AccountAddressInput[];
5871
+ options?: InputGenerateTransactionOptions;
5872
+ withFeePayer?: boolean;
5873
+ }): Promise<MultiAgentTransaction>;
5874
+ }
5875
+
5876
+ /**
5877
+ * A class to handle all `Sign` transaction operations
5878
+ */
5879
+ declare class Sign {
5880
+ readonly config: AptosConfig;
5881
+ constructor(config: AptosConfig);
5882
+ transaction(args: {
5883
+ signer: Account$1;
5884
+ transaction: AnyRawTransaction;
5885
+ }): AccountAuthenticator;
5886
+ transactionAsFeePayer(args: {
5887
+ signer: Account$1;
5888
+ transaction: AnyRawTransaction;
5889
+ }): AccountAuthenticator;
5890
+ }
5891
+
5892
+ /**
5893
+ * A class to handle all `Simulate` transaction operations
5894
+ */
5895
+ declare class Simulate {
5896
+ readonly config: AptosConfig;
5897
+ constructor(config: AptosConfig);
5898
+ transaction(args: {
5899
+ signerPublicKey: PublicKey;
5900
+ transaction: AnyRawTransaction;
5901
+ feePayerPublicKey?: PublicKey;
5902
+ options?: InputSimulateTransactionOptions;
5903
+ }): Promise<Array<UserTransactionResponse>>;
5904
+ multiAgentTransaction(args: {
5905
+ signerPublicKey: PublicKey;
5906
+ transaction: AnyRawTransaction;
5907
+ secondarySignersPublicKeys: Array<PublicKey>;
5908
+ feePayerPublicKey?: PublicKey;
5909
+ options?: InputSimulateTransactionOptions;
5910
+ }): Promise<Array<UserTransactionResponse>>;
5911
+ }
5912
+
5913
+ /**
5914
+ * A class to handle all `Submit` transaction operations
5915
+ */
5916
+ declare class Submit {
5917
+ readonly config: AptosConfig;
5918
+ constructor(config: AptosConfig);
5919
+ transaction(args: {
5920
+ transaction: AnyRawTransaction;
5921
+ senderAuthenticator: AccountAuthenticator;
5922
+ feePayerAuthenticator?: AccountAuthenticator;
5923
+ }): Promise<PendingTransactionResponse>;
5924
+ multiAgentTransaction(args: {
5925
+ transaction: AnyRawTransaction;
5926
+ senderAuthenticator: AccountAuthenticator;
5927
+ additionalSignersAuthenticators: Array<AccountAuthenticator>;
5928
+ feePayerAuthenticator?: AccountAuthenticator;
5929
+ }): Promise<PendingTransactionResponse>;
5930
+ }
5931
+
5932
+ /**
5933
+ * This class is the main entry point into Aptos's
5934
+ * APIs and separates functionality into different namespaces.
5935
+ *
5936
+ * To use the SDK, create a new Aptos instance to get access
5937
+ * to all the sdk functionality.
5938
+ */
5939
+ declare class Aptos {
5940
+ readonly config: AptosConfig;
5941
+ readonly account: Account;
5942
+ readonly ans: ANS;
5943
+ readonly coin: Coin;
5944
+ readonly digitalAsset: DigitalAsset;
5945
+ readonly event: Event;
5946
+ readonly faucet: Faucet;
5947
+ readonly fungibleAsset: FungibleAsset;
5948
+ readonly general: General;
5949
+ readonly staking: Staking;
5950
+ readonly transaction: Transaction;
5951
+ readonly transactionSubmission: TransactionSubmission;
5952
+ readonly build: Build;
5953
+ readonly sign: Sign;
5954
+ readonly simulate: Simulate;
5955
+ readonly submit: Submit;
5956
+ constructor(settings?: AptosConfig);
5957
+ }
5958
+ interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, ANS, TransactionSubmission {
5959
+ }
5960
+
5961
+ /**
5962
+ * The API response type
5963
+ *
5964
+ * @param status - the response status. i.e. 200
5965
+ * @param statusText - the response message
5966
+ * @param data the response data
5967
+ * @param url the url the request was made to
5968
+ * @param headers the response headers
5969
+ * @param config (optional) - the request object
5970
+ * @param request (optional) - the request object
5971
+ */
5972
+ interface AptosResponse<Req, Res> {
5973
+ status: number;
5974
+ statusText: string;
5975
+ data: Res;
5976
+ url: string;
5977
+ headers: any;
5978
+ config?: any;
5979
+ request?: Req;
5980
+ }
5981
+ /**
5982
+ * The type returned from an API error
5983
+ *
5984
+ * @param name - the error name "AptosApiError"
5985
+ * @param url the url the request was made to
5986
+ * @param status - the response status. i.e. 400
5987
+ * @param statusText - the response message
5988
+ * @param data the response data
5989
+ * @param request - the AptosRequest
5990
+ */
5991
+ declare class AptosApiError extends Error {
5992
+ readonly url: string;
5993
+ readonly status: number;
5994
+ readonly statusText: string;
5995
+ readonly data: any;
5996
+ readonly request: AptosRequest;
5997
+ constructor(request: AptosRequest, response: AptosResponse<any, any>, message: string);
5998
+ }
5999
+
6000
+ /**
6001
+ * Given a url and method, sends the request with axios and
6002
+ * returns the response.
6003
+ */
6004
+ declare function request<Req, Res>(options: ClientRequest<Req>, client: Client): Promise<ClientResponse<Res>>;
6005
+ /**
6006
+ * The main function to use when doing an API request.
6007
+ *
6008
+ * @param options AptosRequest
6009
+ * @param aptosConfig The config information for the SDK client instance
6010
+ * @returns the response or AptosApiError
6011
+ */
6012
+ declare function aptosRequest<Req extends {}, Res extends {}>(options: AptosRequest, aptosConfig: AptosConfig): Promise<AptosResponse<Req, Res>>;
6013
+
6014
+ type GetRequestOptions = {
6015
+ /**
6016
+ * The config for the API client
6017
+ */
6018
+ aptosConfig: AptosConfig;
6019
+ /**
6020
+ * The type of API endpoint to call e.g. fullnode, indexer, etc
6021
+ */
6022
+ type: AptosApiType;
6023
+ /**
6024
+ * The name of the API method
6025
+ */
6026
+ originMethod: string;
6027
+ /**
6028
+ * The URL path to the API method
6029
+ */
6030
+ path: string;
6031
+ /**
6032
+ * The content type of the request body
6033
+ */
6034
+ contentType?: MimeType;
6035
+ /**
6036
+ * The accepted content type of the response of the API
6037
+ */
6038
+ acceptType?: MimeType;
6039
+ /**
6040
+ * The query parameters for the request
6041
+ */
6042
+ params?: Record<string, string | AnyNumber | boolean | undefined>;
6043
+ /**
6044
+ * Specific client overrides for this request to override aptosConfig
6045
+ */
6046
+ overrides?: ClientConfig;
6047
+ };
6048
+ type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
6049
+ /**
6050
+ * Main function to do a Get request
6051
+ *
6052
+ * @param options GetRequestOptions
6053
+ * @returns
6054
+ */
6055
+ declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
6056
+ declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6057
+ declare function paginateWithCursor<Req extends Record<string, any>, Res extends any[]>(options: GetAptosRequestOptions): Promise<Res>;
6058
+
6059
+ type PostRequestOptions = {
6060
+ /**
6061
+ * The config for the API client
6062
+ */
6063
+ aptosConfig: AptosConfig;
6064
+ /**
6065
+ * The type of API endpoint to call e.g. fullnode, indexer, etc
6066
+ */
6067
+ type: AptosApiType;
6068
+ /**
6069
+ * The name of the API method
6070
+ */
6071
+ originMethod: string;
6072
+ /**
6073
+ * The URL path to the API method
6074
+ */
6075
+ path: string;
6076
+ /**
6077
+ * The content type of the request body
6078
+ */
6079
+ contentType?: MimeType;
6080
+ /**
6081
+ * The accepted content type of the response of the API
6082
+ */
6083
+ acceptType?: MimeType;
6084
+ /**
6085
+ * The query parameters for the request
6086
+ */
6087
+ params?: Record<string, string | AnyNumber | boolean | undefined>;
6088
+ /**
6089
+ * The body of the request, should match the content type of the request
6090
+ */
6091
+ body?: any;
6092
+ /**
6093
+ * Specific client overrides for this request to override aptosConfig
6094
+ */
6095
+ overrides?: ClientConfig;
6096
+ };
6097
+ type PostAptosRequestOptions = Omit<PostRequestOptions, "type">;
6098
+ /**
6099
+ * Main function to do a Post request
6100
+ *
6101
+ * @param options PostRequestOptions
6102
+ * @returns
6103
+ */
6104
+ declare function post<Req extends {}, Res extends {}>(options: PostRequestOptions): Promise<AptosResponse<Req, Res>>;
6105
+ declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6106
+ declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6107
+ declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6108
+
6109
+ export { APTOS_BIP44_REGEX, APTOS_COIN, 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, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, 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, GetANSNameResponse, 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, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputViewRequestData, KeyType, LedgerInfo, LedgerVersion, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, SingleSignerTransaction, 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, 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 };