@aptos-labs/ts-sdk 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/README.md +1 -0
  2. package/dist/{cjs → browser}/index.d.ts +431 -237
  3. package/dist/browser/index.global.js +44 -42
  4. package/dist/browser/index.global.js.map +1 -1
  5. package/dist/common/index.d.ts +5831 -0
  6. package/dist/common/index.js +406 -0
  7. package/dist/common/index.js.map +1 -0
  8. package/dist/esm/api/account.d.ts +292 -0
  9. package/dist/esm/api/account.mjs +2 -0
  10. package/dist/esm/api/account.mjs.map +1 -0
  11. package/dist/esm/api/ans.d.ts +79 -0
  12. package/dist/esm/api/ans.mjs +2 -0
  13. package/dist/esm/api/ans.mjs.map +1 -0
  14. package/dist/esm/api/aptos.d.ts +72 -0
  15. package/dist/esm/api/aptos.mjs +2 -0
  16. package/dist/esm/api/aptos.mjs.map +1 -0
  17. package/dist/esm/api/aptosConfig.d.ts +51 -0
  18. package/dist/esm/api/aptosConfig.mjs +2 -0
  19. package/dist/esm/api/aptosConfig.mjs.map +1 -0
  20. package/dist/esm/api/coin.d.ts +59 -0
  21. package/dist/esm/api/coin.mjs +2 -0
  22. package/dist/esm/api/coin.mjs.map +1 -0
  23. package/dist/esm/api/digitalAsset.d.ts +174 -0
  24. package/dist/esm/api/digitalAsset.mjs +2 -0
  25. package/dist/esm/api/digitalAsset.mjs.map +1 -0
  26. package/dist/esm/api/event.d.ts +74 -0
  27. package/dist/esm/api/event.mjs +2 -0
  28. package/dist/esm/api/event.mjs.map +1 -0
  29. package/dist/esm/api/faucet.d.ts +37 -0
  30. package/dist/esm/api/faucet.mjs +2 -0
  31. package/dist/esm/api/faucet.mjs.map +1 -0
  32. package/dist/esm/api/fungibleAsset.d.ts +72 -0
  33. package/dist/esm/api/fungibleAsset.mjs +2 -0
  34. package/dist/esm/api/fungibleAsset.mjs.map +1 -0
  35. package/dist/esm/api/general.d.ts +150 -0
  36. package/dist/esm/api/general.mjs +2 -0
  37. package/dist/esm/api/general.mjs.map +1 -0
  38. package/dist/esm/api/index.d.ts +46 -0
  39. package/dist/esm/api/index.mjs +2 -0
  40. package/dist/esm/api/index.mjs.map +1 -0
  41. package/dist/esm/api/staking.d.ts +53 -0
  42. package/dist/esm/api/staking.mjs +2 -0
  43. package/dist/esm/api/staking.mjs.map +1 -0
  44. package/dist/esm/api/transaction.d.ts +101 -0
  45. package/dist/esm/api/transaction.mjs +2 -0
  46. package/dist/esm/api/transaction.mjs.map +1 -0
  47. package/dist/esm/api/transactionSubmission.d.ts +142 -0
  48. package/dist/esm/api/transactionSubmission.mjs +2 -0
  49. package/dist/esm/api/transactionSubmission.mjs.map +1 -0
  50. package/dist/esm/bcs/consts.d.ts +14 -0
  51. package/dist/esm/bcs/consts.mjs +2 -0
  52. package/dist/esm/bcs/consts.mjs.map +1 -0
  53. package/dist/esm/bcs/deserializer.d.ts +150 -0
  54. package/dist/esm/bcs/deserializer.mjs +2 -0
  55. package/dist/esm/bcs/deserializer.mjs.map +1 -0
  56. package/dist/esm/bcs/index.d.ts +14 -0
  57. package/dist/esm/bcs/index.mjs +2 -0
  58. package/dist/esm/bcs/index.mjs.map +1 -0
  59. package/dist/esm/bcs/serializable/entryFunctionBytes.d.ts +40 -0
  60. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +2 -0
  61. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs.map +1 -0
  62. package/dist/esm/bcs/serializable/fixedBytes.d.ts +52 -0
  63. package/dist/esm/bcs/serializable/fixedBytes.mjs +2 -0
  64. package/dist/esm/bcs/serializable/fixedBytes.mjs.map +1 -0
  65. package/dist/esm/bcs/serializable/movePrimitives.d.ts +69 -0
  66. package/dist/esm/bcs/serializable/movePrimitives.mjs +2 -0
  67. package/dist/esm/bcs/serializable/movePrimitives.mjs.map +1 -0
  68. package/dist/esm/bcs/serializable/moveStructs.d.ts +284 -0
  69. package/dist/esm/bcs/serializable/moveStructs.mjs +2 -0
  70. package/dist/esm/bcs/serializable/moveStructs.mjs.map +1 -0
  71. package/dist/esm/bcs/serializer.d.ts +192 -0
  72. package/dist/esm/bcs/serializer.mjs +2 -0
  73. package/dist/esm/bcs/serializer.mjs.map +1 -0
  74. package/dist/esm/chunk-2444YR3Y.mjs +2 -0
  75. package/dist/esm/chunk-2444YR3Y.mjs.map +1 -0
  76. package/dist/esm/chunk-27P7PELS.mjs +2 -0
  77. package/dist/esm/chunk-27P7PELS.mjs.map +1 -0
  78. package/dist/esm/chunk-2B5QXKPU.mjs +2 -0
  79. package/dist/esm/chunk-2B5QXKPU.mjs.map +1 -0
  80. package/dist/esm/chunk-2MQZUGO6.mjs +2 -0
  81. package/dist/esm/chunk-2MQZUGO6.mjs.map +1 -0
  82. package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
  83. package/dist/esm/chunk-3JPVQHOR.mjs.map +1 -0
  84. package/dist/esm/chunk-3OJN4I42.mjs +2 -0
  85. package/dist/esm/chunk-3OJN4I42.mjs.map +1 -0
  86. package/dist/esm/chunk-3YOV42H5.mjs +2 -0
  87. package/dist/esm/chunk-3YOV42H5.mjs.map +1 -0
  88. package/dist/esm/chunk-4WPQQPUF.mjs +1 -0
  89. package/dist/esm/chunk-4WPQQPUF.mjs.map +1 -0
  90. package/dist/esm/chunk-6FBKUTGF.mjs +2 -0
  91. package/dist/esm/chunk-6FBKUTGF.mjs.map +1 -0
  92. package/dist/esm/chunk-7AIV5FEN.mjs +2 -0
  93. package/dist/esm/chunk-7AIV5FEN.mjs.map +1 -0
  94. package/dist/esm/chunk-7AQXAH6Q.mjs +2 -0
  95. package/dist/esm/chunk-7AQXAH6Q.mjs.map +1 -0
  96. package/dist/esm/chunk-7TL2MY2B.mjs +2 -0
  97. package/dist/esm/chunk-7TL2MY2B.mjs.map +1 -0
  98. package/dist/esm/chunk-ADR4XQPR.mjs +2 -0
  99. package/dist/esm/chunk-ADR4XQPR.mjs.map +1 -0
  100. package/dist/esm/chunk-AH44UPM4.mjs +2 -0
  101. package/dist/esm/chunk-AH44UPM4.mjs.map +1 -0
  102. package/dist/esm/chunk-AY2HWVDO.mjs +2 -0
  103. package/dist/esm/chunk-AY2HWVDO.mjs.map +1 -0
  104. package/dist/esm/chunk-BC2NOUYT.mjs +2 -0
  105. package/dist/esm/chunk-BC2NOUYT.mjs.map +1 -0
  106. package/dist/esm/chunk-BIUGRAMO.mjs +2 -0
  107. package/dist/esm/chunk-BIUGRAMO.mjs.map +1 -0
  108. package/dist/esm/chunk-BREUBEPM.mjs +2 -0
  109. package/dist/esm/chunk-BREUBEPM.mjs.map +1 -0
  110. package/dist/esm/chunk-BSCOVLWS.mjs +1 -0
  111. package/dist/esm/chunk-BSCOVLWS.mjs.map +1 -0
  112. package/dist/esm/chunk-BTK34A5U.mjs +406 -0
  113. package/dist/esm/chunk-BTK34A5U.mjs.map +1 -0
  114. package/dist/esm/chunk-CZZJAR3B.mjs +2 -0
  115. package/dist/esm/chunk-CZZJAR3B.mjs.map +1 -0
  116. package/dist/esm/chunk-DNDWTM7A.mjs +2 -0
  117. package/dist/esm/chunk-DNDWTM7A.mjs.map +1 -0
  118. package/dist/esm/chunk-DNYVUM3K.mjs +2 -0
  119. package/dist/esm/chunk-DNYVUM3K.mjs.map +1 -0
  120. package/dist/esm/chunk-DXUIJ6KA.mjs +2 -0
  121. package/dist/esm/chunk-DXUIJ6KA.mjs.map +1 -0
  122. package/dist/esm/chunk-E72CFUU4.mjs +2 -0
  123. package/dist/esm/chunk-E72CFUU4.mjs.map +1 -0
  124. package/dist/esm/chunk-E7FWVXGX.mjs +1 -0
  125. package/dist/esm/chunk-E7FWVXGX.mjs.map +1 -0
  126. package/dist/esm/chunk-EKAOAGNQ.mjs +2 -0
  127. package/dist/esm/chunk-EKAOAGNQ.mjs.map +1 -0
  128. package/dist/esm/chunk-FBPNHF54.mjs +2 -0
  129. package/dist/esm/chunk-FBPNHF54.mjs.map +1 -0
  130. package/dist/esm/chunk-FHJ7F7Z6.mjs +2 -0
  131. package/dist/esm/chunk-FHJ7F7Z6.mjs.map +1 -0
  132. package/dist/esm/chunk-FNB6CFQR.mjs +2 -0
  133. package/dist/esm/chunk-FNB6CFQR.mjs.map +1 -0
  134. package/dist/esm/chunk-FYIFBLHU.mjs +2 -0
  135. package/dist/esm/chunk-FYIFBLHU.mjs.map +1 -0
  136. package/dist/esm/chunk-FZY4PMEE.mjs +1 -0
  137. package/dist/esm/chunk-FZY4PMEE.mjs.map +1 -0
  138. package/dist/esm/chunk-GUT3G5CG.mjs +2 -0
  139. package/dist/esm/chunk-GUT3G5CG.mjs.map +1 -0
  140. package/dist/esm/chunk-HH5RSP2H.mjs +2 -0
  141. package/dist/esm/chunk-HH5RSP2H.mjs.map +1 -0
  142. package/dist/esm/chunk-HTZTTZQJ.mjs +1 -0
  143. package/dist/esm/chunk-HTZTTZQJ.mjs.map +1 -0
  144. package/dist/esm/chunk-I5OYNCZS.mjs +1 -0
  145. package/dist/esm/chunk-I5OYNCZS.mjs.map +1 -0
  146. package/dist/esm/chunk-IPJKGHQY.mjs +2 -0
  147. package/dist/esm/chunk-IPJKGHQY.mjs.map +1 -0
  148. package/dist/esm/chunk-IXMH6AXJ.mjs +2 -0
  149. package/dist/esm/chunk-IXMH6AXJ.mjs.map +1 -0
  150. package/dist/esm/chunk-IZHPCZE3.mjs +2 -0
  151. package/dist/esm/chunk-IZHPCZE3.mjs.map +1 -0
  152. package/dist/esm/chunk-J3QOSJFP.mjs +2 -0
  153. package/dist/esm/chunk-J3QOSJFP.mjs.map +1 -0
  154. package/dist/esm/chunk-J5OKXARS.mjs +2 -0
  155. package/dist/esm/chunk-J5OKXARS.mjs.map +1 -0
  156. package/dist/esm/chunk-JTGGMXB7.mjs +2 -0
  157. package/dist/esm/chunk-JTGGMXB7.mjs.map +1 -0
  158. package/dist/esm/chunk-KC64ESLO.mjs +2 -0
  159. package/dist/esm/chunk-KC64ESLO.mjs.map +1 -0
  160. package/dist/esm/chunk-KFP7MDSD.mjs +2 -0
  161. package/dist/esm/chunk-KFP7MDSD.mjs.map +1 -0
  162. package/dist/esm/chunk-KJDY66XF.mjs +2 -0
  163. package/dist/esm/chunk-KJDY66XF.mjs.map +1 -0
  164. package/dist/esm/chunk-KNLMUSIO.mjs +2 -0
  165. package/dist/esm/chunk-KNLMUSIO.mjs.map +1 -0
  166. package/dist/esm/chunk-KPESAXVI.mjs +2 -0
  167. package/dist/esm/chunk-KPESAXVI.mjs.map +1 -0
  168. package/dist/esm/chunk-KWJ6XKNF.mjs +2 -0
  169. package/dist/esm/chunk-KWJ6XKNF.mjs.map +1 -0
  170. package/dist/esm/chunk-KYWYIK5P.mjs +2 -0
  171. package/dist/esm/chunk-KYWYIK5P.mjs.map +1 -0
  172. package/dist/esm/chunk-LAXIJRYU.mjs +2 -0
  173. package/dist/esm/chunk-LAXIJRYU.mjs.map +1 -0
  174. package/dist/esm/chunk-LR65XHSF.mjs +2 -0
  175. package/dist/esm/chunk-LR65XHSF.mjs.map +1 -0
  176. package/dist/esm/chunk-LU6VS7PJ.mjs +2 -0
  177. package/dist/esm/chunk-LU6VS7PJ.mjs.map +1 -0
  178. package/dist/esm/chunk-LV33NV4J.mjs +2 -0
  179. package/dist/esm/chunk-LV33NV4J.mjs.map +1 -0
  180. package/dist/esm/chunk-MIBLZSNS.mjs +2 -0
  181. package/dist/esm/chunk-MIBLZSNS.mjs.map +1 -0
  182. package/dist/esm/chunk-N2FKVZ4D.mjs +1 -0
  183. package/dist/esm/chunk-N2FKVZ4D.mjs.map +1 -0
  184. package/dist/esm/chunk-N6XWY4UT.mjs +2 -0
  185. package/dist/esm/chunk-N6XWY4UT.mjs.map +1 -0
  186. package/dist/esm/chunk-NKTKHC3Z.mjs +2 -0
  187. package/dist/esm/chunk-NKTKHC3Z.mjs.map +1 -0
  188. package/dist/esm/chunk-O243HOP3.mjs +2 -0
  189. package/dist/esm/chunk-O243HOP3.mjs.map +1 -0
  190. package/dist/esm/chunk-PDLUCVJB.mjs +2 -0
  191. package/dist/esm/chunk-PDLUCVJB.mjs.map +1 -0
  192. package/dist/esm/chunk-PJDVHU7X.mjs +2 -0
  193. package/dist/esm/chunk-PJDVHU7X.mjs.map +1 -0
  194. package/dist/esm/chunk-R7G3CLRI.mjs +1 -0
  195. package/dist/esm/chunk-R7G3CLRI.mjs.map +1 -0
  196. package/dist/esm/chunk-RMMOF53Q.mjs +1 -0
  197. package/dist/esm/chunk-RMMOF53Q.mjs.map +1 -0
  198. package/dist/esm/chunk-SJLO3JIH.mjs +2 -0
  199. package/dist/esm/chunk-SJLO3JIH.mjs.map +1 -0
  200. package/dist/esm/chunk-TCTZCPQ6.mjs +1 -0
  201. package/dist/esm/chunk-TCTZCPQ6.mjs.map +1 -0
  202. package/dist/esm/chunk-TXUMB5ZO.mjs +2 -0
  203. package/dist/esm/chunk-TXUMB5ZO.mjs.map +1 -0
  204. package/dist/esm/chunk-TYHBYRUA.mjs +2 -0
  205. package/dist/esm/chunk-TYHBYRUA.mjs.map +1 -0
  206. package/dist/esm/chunk-UQIOMAXE.mjs +2 -0
  207. package/dist/esm/chunk-UQIOMAXE.mjs.map +1 -0
  208. package/dist/esm/chunk-UVGCVCNG.mjs +2 -0
  209. package/dist/esm/chunk-UVGCVCNG.mjs.map +1 -0
  210. package/dist/esm/chunk-UYVPNUH3.mjs +1 -0
  211. package/dist/esm/chunk-UYVPNUH3.mjs.map +1 -0
  212. package/dist/esm/chunk-V3MBJJTL.mjs +1 -0
  213. package/dist/esm/chunk-V3MBJJTL.mjs.map +1 -0
  214. package/dist/esm/chunk-V6AAQLLJ.mjs +2 -0
  215. package/dist/esm/chunk-V6AAQLLJ.mjs.map +1 -0
  216. package/dist/esm/chunk-VAGYTPSI.mjs +2 -0
  217. package/dist/esm/chunk-VAGYTPSI.mjs.map +1 -0
  218. package/dist/esm/chunk-WGXAIQ7K.mjs +2 -0
  219. package/dist/esm/chunk-WGXAIQ7K.mjs.map +1 -0
  220. package/dist/esm/chunk-WNEZCERQ.mjs +2 -0
  221. package/dist/esm/chunk-WNEZCERQ.mjs.map +1 -0
  222. package/dist/esm/chunk-WVMDCC4V.mjs +2 -0
  223. package/dist/esm/chunk-WVMDCC4V.mjs.map +1 -0
  224. package/dist/esm/chunk-XFS5O5GJ.mjs +2 -0
  225. package/dist/esm/chunk-XFS5O5GJ.mjs.map +1 -0
  226. package/dist/esm/chunk-XFSL7O6Q.mjs +2 -0
  227. package/dist/esm/chunk-XFSL7O6Q.mjs.map +1 -0
  228. package/dist/esm/chunk-XNFEUXDS.mjs +2 -0
  229. package/dist/esm/chunk-XNFEUXDS.mjs.map +1 -0
  230. package/dist/esm/chunk-YS2OX7AB.mjs +2 -0
  231. package/dist/esm/chunk-YS2OX7AB.mjs.map +1 -0
  232. package/dist/esm/chunk-Z56AKXJ7.mjs +2 -0
  233. package/dist/esm/chunk-Z56AKXJ7.mjs.map +1 -0
  234. package/dist/esm/chunk-ZT2A5ABR.mjs +2 -0
  235. package/dist/esm/chunk-ZT2A5ABR.mjs.map +1 -0
  236. package/dist/esm/chunk-ZXJ5ZBTL.mjs +2 -0
  237. package/dist/esm/chunk-ZXJ5ZBTL.mjs.map +1 -0
  238. package/dist/esm/client/core.d.ts +24 -0
  239. package/dist/esm/client/core.mjs +2 -0
  240. package/dist/esm/client/core.mjs.map +1 -0
  241. package/dist/esm/client/get.d.ts +55 -0
  242. package/dist/esm/client/get.mjs +2 -0
  243. package/dist/esm/client/get.mjs.map +1 -0
  244. package/dist/esm/client/index.d.ts +11 -0
  245. package/dist/esm/client/index.mjs +2 -0
  246. package/dist/esm/client/index.mjs.map +1 -0
  247. package/dist/esm/client/post.d.ts +60 -0
  248. package/dist/esm/client/post.mjs +2 -0
  249. package/dist/esm/client/post.mjs.map +1 -0
  250. package/dist/esm/client/types.d.ts +46 -0
  251. package/dist/esm/client/types.mjs +2 -0
  252. package/dist/esm/client/types.mjs.map +1 -0
  253. package/dist/esm/core/account.d.ts +184 -0
  254. package/dist/esm/core/account.mjs +2 -0
  255. package/dist/esm/core/account.mjs.map +1 -0
  256. package/dist/esm/core/accountAddress.d.ts +244 -0
  257. package/dist/esm/core/accountAddress.mjs +2 -0
  258. package/dist/esm/core/accountAddress.mjs.map +1 -0
  259. package/dist/esm/core/authenticationKey.d.ts +74 -0
  260. package/dist/esm/core/authenticationKey.mjs +2 -0
  261. package/dist/esm/core/authenticationKey.mjs.map +1 -0
  262. package/dist/esm/core/common.d.ts +32 -0
  263. package/dist/esm/core/common.mjs +2 -0
  264. package/dist/esm/core/common.mjs.map +1 -0
  265. package/dist/esm/core/crypto/anyPublicKey.d.ts +54 -0
  266. package/dist/esm/core/crypto/anyPublicKey.mjs +2 -0
  267. package/dist/esm/core/crypto/anyPublicKey.mjs.map +1 -0
  268. package/dist/esm/core/crypto/anySignature.d.ts +31 -0
  269. package/dist/esm/core/crypto/anySignature.mjs +2 -0
  270. package/dist/esm/core/crypto/anySignature.mjs.map +1 -0
  271. package/dist/esm/core/crypto/asymmetricCrypto.d.ts +74 -0
  272. package/dist/esm/core/crypto/asymmetricCrypto.mjs +2 -0
  273. package/dist/esm/core/crypto/asymmetricCrypto.mjs.map +1 -0
  274. package/dist/esm/core/crypto/ed25519.d.ts +173 -0
  275. package/dist/esm/core/crypto/ed25519.mjs +2 -0
  276. package/dist/esm/core/crypto/ed25519.mjs.map +1 -0
  277. package/dist/esm/core/crypto/hdKey.d.ts +65 -0
  278. package/dist/esm/core/crypto/hdKey.mjs +2 -0
  279. package/dist/esm/core/crypto/hdKey.mjs.map +1 -0
  280. package/dist/esm/core/crypto/index.d.ts +17 -0
  281. package/dist/esm/core/crypto/index.mjs +2 -0
  282. package/dist/esm/core/crypto/index.mjs.map +1 -0
  283. package/dist/esm/core/crypto/multiEd25519.d.ts +126 -0
  284. package/dist/esm/core/crypto/multiEd25519.mjs +2 -0
  285. package/dist/esm/core/crypto/multiEd25519.mjs.map +1 -0
  286. package/dist/esm/core/crypto/multiKey.d.ts +52 -0
  287. package/dist/esm/core/crypto/multiKey.mjs +2 -0
  288. package/dist/esm/core/crypto/multiKey.mjs.map +1 -0
  289. package/dist/esm/core/crypto/secp256k1.d.ts +161 -0
  290. package/dist/esm/core/crypto/secp256k1.mjs +2 -0
  291. package/dist/esm/core/crypto/secp256k1.mjs.map +1 -0
  292. package/dist/esm/core/hex.d.ts +105 -0
  293. package/dist/esm/core/hex.mjs +2 -0
  294. package/dist/esm/core/hex.mjs.map +1 -0
  295. package/dist/esm/core/index.d.ts +21 -0
  296. package/dist/esm/core/index.mjs +2 -0
  297. package/dist/esm/core/index.mjs.map +1 -0
  298. package/dist/esm/index.d.ts +60 -5637
  299. package/dist/esm/index.mjs +1 -5444
  300. package/dist/esm/index.mjs.map +1 -1
  301. package/dist/esm/internal/account.d.ts +143 -0
  302. package/dist/esm/internal/account.mjs +2 -0
  303. package/dist/esm/internal/account.mjs.map +1 -0
  304. package/dist/esm/internal/ans.d.ts +83 -0
  305. package/dist/esm/internal/ans.mjs +2 -0
  306. package/dist/esm/internal/ans.mjs.map +1 -0
  307. package/dist/esm/internal/coin.d.ts +43 -0
  308. package/dist/esm/internal/coin.mjs +2 -0
  309. package/dist/esm/internal/coin.mjs.map +1 -0
  310. package/dist/esm/internal/digitalAsset.d.ts +118 -0
  311. package/dist/esm/internal/digitalAsset.mjs +2 -0
  312. package/dist/esm/internal/digitalAsset.mjs.map +1 -0
  313. package/dist/esm/internal/event.d.ts +45 -0
  314. package/dist/esm/internal/event.mjs +2 -0
  315. package/dist/esm/internal/event.mjs.map +1 -0
  316. package/dist/esm/internal/faucet.d.ts +29 -0
  317. package/dist/esm/internal/faucet.mjs +2 -0
  318. package/dist/esm/internal/faucet.mjs.map +1 -0
  319. package/dist/esm/internal/fungibleAsset.d.ts +38 -0
  320. package/dist/esm/internal/fungibleAsset.mjs +2 -0
  321. package/dist/esm/internal/fungibleAsset.mjs.map +1 -0
  322. package/dist/esm/internal/general.d.ts +60 -0
  323. package/dist/esm/internal/general.mjs +2 -0
  324. package/dist/esm/internal/general.mjs.map +1 -0
  325. package/dist/esm/internal/staking.d.ts +38 -0
  326. package/dist/esm/internal/staking.mjs +2 -0
  327. package/dist/esm/internal/staking.mjs.map +1 -0
  328. package/dist/esm/internal/transaction.d.ts +57 -0
  329. package/dist/esm/internal/transaction.mjs +2 -0
  330. package/dist/esm/internal/transaction.mjs.map +1 -0
  331. package/dist/esm/internal/transactionSubmission.d.ts +148 -0
  332. package/dist/esm/internal/transactionSubmission.mjs +2 -0
  333. package/dist/esm/internal/transactionSubmission.mjs.map +1 -0
  334. package/dist/esm/transactions/authenticator/account.d.ts +79 -0
  335. package/dist/esm/transactions/authenticator/account.mjs +2 -0
  336. package/dist/esm/transactions/authenticator/account.mjs.map +1 -0
  337. package/dist/esm/transactions/authenticator/index.d.ts +19 -0
  338. package/dist/esm/transactions/authenticator/index.mjs +2 -0
  339. package/dist/esm/transactions/authenticator/index.mjs.map +1 -0
  340. package/dist/esm/transactions/authenticator/transaction.d.ts +105 -0
  341. package/dist/esm/transactions/authenticator/transaction.mjs +2 -0
  342. package/dist/esm/transactions/authenticator/transaction.mjs.map +1 -0
  343. package/dist/esm/transactions/index.d.ts +39 -0
  344. package/dist/esm/transactions/index.mjs +2 -0
  345. package/dist/esm/transactions/index.mjs.map +1 -0
  346. package/dist/esm/transactions/instances/chainId.d.ts +21 -0
  347. package/dist/esm/transactions/instances/chainId.mjs +2 -0
  348. package/dist/esm/transactions/instances/chainId.mjs.map +1 -0
  349. package/dist/esm/transactions/instances/identifier.d.ts +23 -0
  350. package/dist/esm/transactions/instances/identifier.mjs +2 -0
  351. package/dist/esm/transactions/instances/identifier.mjs.map +1 -0
  352. package/dist/esm/transactions/instances/index.d.ts +29 -0
  353. package/dist/esm/transactions/instances/index.mjs +2 -0
  354. package/dist/esm/transactions/instances/index.mjs.map +1 -0
  355. package/dist/esm/transactions/instances/moduleId.d.ts +37 -0
  356. package/dist/esm/transactions/instances/moduleId.mjs +2 -0
  357. package/dist/esm/transactions/instances/moduleId.mjs.map +1 -0
  358. package/dist/esm/transactions/instances/rawTransaction.d.ts +98 -0
  359. package/dist/esm/transactions/instances/rawTransaction.mjs +2 -0
  360. package/dist/esm/transactions/instances/rawTransaction.mjs.map +1 -0
  361. package/dist/esm/transactions/instances/rotationProofChallenge.d.ts +37 -0
  362. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +2 -0
  363. package/dist/esm/transactions/instances/rotationProofChallenge.mjs.map +1 -0
  364. package/dist/esm/transactions/instances/signedTransaction.d.ts +46 -0
  365. package/dist/esm/transactions/instances/signedTransaction.mjs +2 -0
  366. package/dist/esm/transactions/instances/signedTransaction.mjs.map +1 -0
  367. package/dist/esm/transactions/instances/transactionArgument.d.ts +40 -0
  368. package/dist/esm/transactions/instances/transactionArgument.mjs +2 -0
  369. package/dist/esm/transactions/instances/transactionArgument.mjs.map +1 -0
  370. package/dist/esm/transactions/instances/transactionPayload.d.ts +211 -0
  371. package/dist/esm/transactions/instances/transactionPayload.mjs +2 -0
  372. package/dist/esm/transactions/instances/transactionPayload.mjs.map +1 -0
  373. package/dist/esm/transactions/transactionBuilder/helpers.d.ts +63 -0
  374. package/dist/esm/transactions/transactionBuilder/helpers.mjs +2 -0
  375. package/dist/esm/transactions/transactionBuilder/helpers.mjs.map +1 -0
  376. package/dist/esm/transactions/transactionBuilder/index.d.ts +35 -0
  377. package/dist/esm/transactions/transactionBuilder/index.mjs +2 -0
  378. package/dist/esm/transactions/transactionBuilder/index.mjs.map +1 -0
  379. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.ts +54 -0
  380. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +2 -0
  381. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs.map +1 -0
  382. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.ts +128 -0
  383. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +2 -0
  384. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs.map +1 -0
  385. package/dist/esm/transactions/typeTag/index.d.ts +127 -0
  386. package/dist/esm/transactions/typeTag/index.mjs +2 -0
  387. package/dist/esm/transactions/typeTag/index.mjs.map +1 -0
  388. package/dist/esm/transactions/typeTag/parser.d.ts +47 -0
  389. package/dist/esm/transactions/typeTag/parser.mjs +2 -0
  390. package/dist/esm/transactions/typeTag/parser.mjs.map +1 -0
  391. package/dist/esm/transactions/types.d.ts +253 -0
  392. package/dist/esm/transactions/types.mjs +2 -0
  393. package/dist/esm/transactions/types.mjs.map +1 -0
  394. package/dist/esm/types/generated/operations.d.ts +604 -0
  395. package/dist/esm/types/generated/operations.mjs +1 -0
  396. package/dist/esm/types/generated/operations.mjs.map +1 -0
  397. package/dist/esm/types/generated/queries.d.ts +55 -0
  398. package/dist/esm/types/generated/queries.mjs +2 -0
  399. package/dist/esm/types/generated/queries.mjs.map +1 -0
  400. package/dist/esm/types/generated/types.d.ts +9458 -0
  401. package/dist/esm/types/generated/types.mjs +2 -0
  402. package/dist/esm/types/generated/types.mjs.map +1 -0
  403. package/dist/{types → esm/types}/index.d.ts +19 -451
  404. package/dist/esm/types/index.mjs +2 -0
  405. package/dist/esm/types/index.mjs.map +1 -0
  406. package/dist/esm/types/indexer.d.ts +62 -0
  407. package/dist/esm/types/indexer.mjs +2 -0
  408. package/dist/esm/types/indexer.mjs.map +1 -0
  409. package/dist/esm/utils/apiEndpoints.d.ts +14 -0
  410. package/dist/esm/utils/apiEndpoints.mjs +2 -0
  411. package/dist/esm/utils/apiEndpoints.mjs.map +1 -0
  412. package/dist/esm/utils/const.d.ts +42 -0
  413. package/dist/esm/utils/const.mjs +2 -0
  414. package/dist/esm/utils/const.mjs.map +1 -0
  415. package/dist/esm/utils/helpers.d.ts +7 -0
  416. package/dist/esm/utils/helpers.mjs +2 -0
  417. package/dist/esm/utils/helpers.mjs.map +1 -0
  418. package/dist/esm/utils/memoize.d.ts +20 -0
  419. package/dist/esm/utils/memoize.mjs +2 -0
  420. package/dist/esm/utils/memoize.mjs.map +1 -0
  421. package/dist/esm/version.d.ts +8 -0
  422. package/dist/esm/version.mjs +2 -0
  423. package/dist/esm/version.mjs.map +1 -0
  424. package/package.json +17 -13
  425. package/src/api/account.ts +17 -18
  426. package/src/api/ans.ts +58 -0
  427. package/src/api/aptos.ts +7 -1
  428. package/src/api/coin.ts +3 -3
  429. package/src/api/digitalAsset.ts +9 -8
  430. package/src/api/event.ts +4 -3
  431. package/src/api/faucet.ts +3 -2
  432. package/src/api/general.ts +2 -2
  433. package/src/api/staking.ts +5 -4
  434. package/src/api/transactionSubmission.ts +41 -20
  435. package/src/bcs/deserializer.ts +4 -4
  436. package/src/bcs/serializable/moveStructs.ts +13 -13
  437. package/src/bcs/serializer.ts +4 -4
  438. package/src/client/core.ts +18 -8
  439. package/src/core/account.ts +90 -33
  440. package/src/core/accountAddress.ts +34 -30
  441. package/src/core/authenticationKey.ts +11 -9
  442. package/src/core/crypto/ed25519.ts +48 -1
  443. package/src/core/crypto/hdKey.ts +105 -0
  444. package/src/core/crypto/index.ts +1 -0
  445. package/src/core/crypto/secp256k1.ts +36 -0
  446. package/src/index.ts +0 -1
  447. package/src/internal/account.ts +80 -58
  448. package/src/internal/ans.ts +175 -0
  449. package/src/internal/coin.ts +5 -5
  450. package/src/internal/digitalAsset.ts +16 -17
  451. package/src/internal/event.ts +8 -8
  452. package/src/internal/faucet.ts +4 -4
  453. package/src/internal/general.ts +3 -3
  454. package/src/internal/queries/getEvents.graphql +1 -0
  455. package/src/internal/staking.ts +8 -8
  456. package/src/internal/transactionSubmission.ts +78 -19
  457. package/src/transactions/instances/index.ts +1 -0
  458. package/src/transactions/instances/moduleId.ts +1 -1
  459. package/src/transactions/instances/rotationProofChallenge.ts +58 -0
  460. package/src/transactions/transactionBuilder/helpers.ts +5 -1
  461. package/src/transactions/transactionBuilder/remoteAbi.ts +4 -4
  462. package/src/transactions/transactionBuilder/transactionBuilder.ts +31 -49
  463. package/src/transactions/typeTag/index.ts +10 -10
  464. package/src/transactions/typeTag/parser.ts +1 -1
  465. package/src/transactions/types.ts +31 -20
  466. package/src/types/generated/operations.ts +19 -18
  467. package/src/types/generated/queries.ts +20 -19
  468. package/src/types/generated/types.ts +6 -0
  469. package/src/types/index.ts +15 -18
  470. package/src/utils/apiEndpoints.ts +8 -0
  471. package/src/version.ts +1 -1
  472. package/dist/cjs/index.js +0 -5631
  473. package/dist/cjs/index.js.map +0 -1
  474. package/dist/types/index.js +0 -176
  475. package/dist/types/index.js.map +0 -1
  476. package/src/utils/hdKey.ts +0 -113
@@ -0,0 +1,174 @@
1
+ import { PaginationArgs } from '../types/index.js';
2
+ import { AptosConfig } from './aptosConfig.js';
3
+ import { Account } from '../core/account.js';
4
+ import { AccountAddressInput } from '../core/accountAddress.js';
5
+ import { InputGenerateTransactionOptions, InputSingleSignerTransaction } from '../transactions/types.js';
6
+ import { CreateCollectionOptions } from '../internal/digitalAsset.js';
7
+ import { TokenStandard, GetCollectionDataResponse, GetTokenDataResponse, GetCurrentTokenOwnershipResponse, OrderBy, GetOwnedTokensResponse, GetTokenActivityResponse } from '../types/indexer.js';
8
+ import '../utils/apiEndpoints.js';
9
+ import '../types/generated/operations.js';
10
+ import '../types/generated/types.js';
11
+ import '../utils/const.js';
12
+ import '../core/authenticationKey.js';
13
+ import '../core/crypto/asymmetricCrypto.js';
14
+ import '../bcs/serializer.js';
15
+ import '../core/hex.js';
16
+ import '../core/common.js';
17
+ import '../bcs/deserializer.js';
18
+ import '../transactions/instances/transactionArgument.js';
19
+ import '../bcs/serializable/moveStructs.js';
20
+ import '../bcs/serializable/movePrimitives.js';
21
+ import '../bcs/serializable/fixedBytes.js';
22
+ import '../transactions/instances/rawTransaction.js';
23
+ import '../transactions/instances/chainId.js';
24
+ import '../transactions/instances/transactionPayload.js';
25
+ import '../transactions/instances/identifier.js';
26
+ import '../transactions/instances/moduleId.js';
27
+ import '../transactions/typeTag/index.js';
28
+ import '../transactions/authenticator/account.js';
29
+ import '../core/crypto/anyPublicKey.js';
30
+ import '../core/crypto/anySignature.js';
31
+ import '../core/crypto/ed25519.js';
32
+ import '../core/crypto/multiEd25519.js';
33
+ import '../core/crypto/multiKey.js';
34
+
35
+ /**
36
+ * A class to query all `DigitalAsset` related queries on Aptos.
37
+ */
38
+ declare class DigitalAsset {
39
+ readonly config: AptosConfig;
40
+ constructor(config: AptosConfig);
41
+ /**
42
+ * Creates a new collection within the specified account
43
+ *
44
+ * @param args.creator the account of the collection's creator
45
+ * @param args.description the description of the collection
46
+ * @param args.name the name of the collection
47
+ * @param args.uri the URI to additional info about the collection
48
+ *
49
+ * The parameters below are optional.
50
+ * @param args.maxSupply controls the max supply of the tokens - defaults MAX_U64_BIG_INT
51
+ * @param args.mutableDescription controls mutability of the collection's description - defaults true
52
+ * @param args.mutableRoyalty controls mutability of the collection's description - defaults true
53
+ * @param args.mutableUri controls mutability of the collection's URI - defaults true
54
+ * @param args.mutableTokenDescription controls mutability of the token's description - defaults true
55
+ * @param args.mutableTokenName controls mutability of the token's name - defaults true
56
+ * @param args.mutableTokenProperties controls mutability of token's properties - defaults true
57
+ * @param args.mutableTokenUri controls mutability of the token's URI - defaults true
58
+ * @param args.tokensBurnableByCreator controls whether tokens can be burnable by the creator - defaults true
59
+ * @param args.tokensFreezableByCreator controls whether tokens can be frozen by the creator - defaults true
60
+ * @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when a token is transferred - defaults 0
61
+ * @param args.royaltyDenominator the denominator of the royalty to be paid to the creator when a token is transferred -
62
+ * defaults 1
63
+ *
64
+ * @returns A SingleSignerTransaction that when submitted will create the collection.
65
+ */
66
+ createCollectionTransaction(args: {
67
+ creator: Account;
68
+ description: string;
69
+ name: string;
70
+ uri: string;
71
+ options?: InputGenerateTransactionOptions;
72
+ } & CreateCollectionOptions): Promise<InputSingleSignerTransaction>;
73
+ /**
74
+ * Queries data of a specific collection by the collection creator address and the collection name.
75
+ *
76
+ * If, for some reason, a creator account has 2 collections with the same name in v1 and v2,
77
+ * can pass an optional `tokenStandard` parameter to query a specific standard
78
+ *
79
+ * @param args.creatorAddress the address of the collection's creator
80
+ * @param args.collectionName the name of the collection
81
+ * @param args.options.tokenStandard the token standard to query
82
+ * @returns GetCollectionDataResponse response type
83
+ */
84
+ getCollectionData(args: {
85
+ creatorAddress: AccountAddressInput;
86
+ collectionName: string;
87
+ options?: {
88
+ tokenStandard?: TokenStandard;
89
+ };
90
+ }): Promise<GetCollectionDataResponse>;
91
+ /**
92
+ * Queries a collection's ID.
93
+ *
94
+ * This is the same as the collection's object address in V2, but V1 does
95
+ * not use objects, and does not have an address
96
+ *
97
+ * @param args.creatorAddress the address of the collection's creator
98
+ * @param args.collectionName the name of the collection
99
+ * @param args.options.tokenStandard the token standard to query
100
+ * @returns the collection id
101
+ */
102
+ getCollectionId(args: {
103
+ creatorAddress: AccountAddressInput;
104
+ collectionName: string;
105
+ options?: {
106
+ tokenStandard?: TokenStandard;
107
+ };
108
+ }): Promise<string>;
109
+ /**
110
+ * Create a transaction to mint a token into the creators account within an existing collection.
111
+ *
112
+ * @param args.creator the creator of the collection
113
+ * @param args.collection the name of the collection the token belongs to
114
+ * @param args.description the description of the token
115
+ * @param args.name the name of the token
116
+ * @param args.uri the URI to additional info about the token
117
+ *
118
+ * @returns A SingleSignerTransaction that can be simulated or submitted to chain
119
+ */
120
+ mintTokenTransaction(args: {
121
+ creator: Account;
122
+ collection: string;
123
+ description: string;
124
+ name: string;
125
+ uri: string;
126
+ options?: InputGenerateTransactionOptions;
127
+ }): Promise<InputSingleSignerTransaction>;
128
+ /**
129
+ * Gets token data given the address of a token.
130
+ *
131
+ * @param args.tokenAddress The address of the token
132
+ * @returns GetTokenDataResponse containing relevant data to the token.
133
+ */
134
+ getTokenData(args: {
135
+ tokenAddress: AccountAddressInput;
136
+ }): Promise<GetTokenDataResponse>;
137
+ /**
138
+ * Gets token ownership data given the address of a token.
139
+ *
140
+ * @param args.tokenAddress The address of the token
141
+ * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the token.
142
+ */
143
+ getCurrentTokenOwnership(args: {
144
+ tokenAddress: AccountAddressInput;
145
+ }): Promise<GetCurrentTokenOwnershipResponse>;
146
+ /**
147
+ * Gets the tokens that the given address owns.
148
+ *
149
+ * @param args.ownerAddress The address of the owner
150
+ * @returns GetOwnedTokensResponse containing ownership data of the tokens belonging to the ownerAddresss.
151
+ */
152
+ getOwnedTokens(args: {
153
+ ownerAddress: AccountAddressInput;
154
+ options?: {
155
+ pagination?: PaginationArgs;
156
+ orderBy?: OrderBy<GetOwnedTokensResponse[0]>;
157
+ };
158
+ }): Promise<GetOwnedTokensResponse>;
159
+ /**
160
+ * Gets the activity data given the address of a token.
161
+ *
162
+ * @param args.tokenAddress The address of the token
163
+ * @returns GetTokenActivityResponse containing relevant activity data to the token.
164
+ */
165
+ getTokenActivity(args: {
166
+ tokenAddress: AccountAddressInput;
167
+ options?: {
168
+ pagination?: PaginationArgs;
169
+ orderBy?: OrderBy<GetTokenActivityResponse[0]>;
170
+ };
171
+ }): Promise<GetTokenActivityResponse>;
172
+ }
173
+
174
+ export { DigitalAsset };
@@ -0,0 +1,2 @@
1
+ import{a}from"../chunk-VAGYTPSI.mjs";import"../chunk-TXUMB5ZO.mjs";import"../chunk-7TL2MY2B.mjs";import"../chunk-7AIV5FEN.mjs";import"../chunk-WVMDCC4V.mjs";import"../chunk-NKTKHC3Z.mjs";import"../chunk-3OJN4I42.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-KNLMUSIO.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-ADR4XQPR.mjs";import"../chunk-WGXAIQ7K.mjs";import"../chunk-DXUIJ6KA.mjs";import"../chunk-BREUBEPM.mjs";import"../chunk-UQIOMAXE.mjs";import"../chunk-KWJ6XKNF.mjs";import"../chunk-LAXIJRYU.mjs";import"../chunk-EKAOAGNQ.mjs";import"../chunk-JTGGMXB7.mjs";import"../chunk-IPJKGHQY.mjs";import"../chunk-ZT2A5ABR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-O243HOP3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as DigitalAsset};
2
+ //# sourceMappingURL=digitalAsset.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,74 @@
1
+ import { AptosConfig } from './aptosConfig.js';
2
+ import { AnyNumber, MoveStructType, PaginationArgs } from '../types/index.js';
3
+ import { EventsBoolExp } from '../types/generated/types.js';
4
+ import { AccountAddressInput } from '../core/accountAddress.js';
5
+ import { GetEventsResponse, OrderBy } from '../types/indexer.js';
6
+ import '../utils/apiEndpoints.js';
7
+ import '../utils/const.js';
8
+ import '../types/generated/operations.js';
9
+ import '../bcs/serializer.js';
10
+ import '../core/hex.js';
11
+ import '../core/common.js';
12
+ import '../bcs/deserializer.js';
13
+ import '../transactions/instances/transactionArgument.js';
14
+
15
+ /**
16
+ * A class to query all `Event` Aptos related queries
17
+ */
18
+ declare class Event {
19
+ readonly config: AptosConfig;
20
+ constructor(config: AptosConfig);
21
+ /**
22
+ * Get events by creation number and an account address
23
+ *
24
+ * @param args.accountAddress - The account address
25
+ * @param args.creationNumber - The event creation number
26
+ *
27
+ * @returns Promise<GetEventsResponse>
28
+ */
29
+ getAccountEventsByCreationNumber(args: {
30
+ accountAddress: AccountAddressInput;
31
+ creationNumber: AnyNumber;
32
+ }): Promise<GetEventsResponse>;
33
+ /**
34
+ * Get events by event type and an account address
35
+ *
36
+ * @param args.accountAddress - The account address
37
+ * @param args.eventType - The event type
38
+ *
39
+ * @returns Promise<GetEventsResponse>
40
+ */
41
+ getAccountEventsByEventType(args: {
42
+ accountAddress: AccountAddressInput;
43
+ eventType: MoveStructType;
44
+ options?: {
45
+ pagination?: PaginationArgs;
46
+ orderBy?: OrderBy<GetEventsResponse[0]>;
47
+ };
48
+ }): Promise<GetEventsResponse>;
49
+ /**
50
+ * Get all events
51
+ *
52
+ * An optional `where` can be passed in to filter out the response.
53
+ *
54
+ * @example
55
+ * ```
56
+ * { where:
57
+ * {
58
+ * transaction_version: { _eq: 123456 },
59
+ * }
60
+ * }
61
+ * ```
62
+ *
63
+ * @returns GetEventsQuery response type
64
+ */
65
+ getEvents(args?: {
66
+ options?: {
67
+ where?: EventsBoolExp;
68
+ pagination?: PaginationArgs;
69
+ orderBy?: OrderBy<GetEventsResponse[0]>;
70
+ };
71
+ }): Promise<GetEventsResponse>;
72
+ }
73
+
74
+ export { Event };
@@ -0,0 +1,2 @@
1
+ import{a}from"../chunk-WNEZCERQ.mjs";import"../chunk-2B5QXKPU.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as Event};
2
+ //# sourceMappingURL=event.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,37 @@
1
+ import { AptosConfig } from './aptosConfig.js';
2
+ import { WaitForTransactionOptions } from '../types/index.js';
3
+ import { AccountAddressInput } from '../core/accountAddress.js';
4
+ import '../utils/apiEndpoints.js';
5
+ import '../utils/const.js';
6
+ import '../types/indexer.js';
7
+ import '../types/generated/operations.js';
8
+ import '../types/generated/types.js';
9
+ import '../bcs/serializer.js';
10
+ import '../core/hex.js';
11
+ import '../core/common.js';
12
+ import '../bcs/deserializer.js';
13
+ import '../transactions/instances/transactionArgument.js';
14
+
15
+ /**
16
+ * A class to query all `Faucet` related queries on Aptos.
17
+ */
18
+ declare class Faucet {
19
+ readonly config: AptosConfig;
20
+ constructor(config: AptosConfig);
21
+ /**
22
+ * This creates an account if it does not exist and mints the specified amount of
23
+ * coins into that account
24
+ *
25
+ * @param args.accountAddress Address of the account to fund
26
+ * @param args.amount Amount of tokens to fund the account with
27
+ * @param args.options Configuration options for waitForTransaction
28
+ * @returns Transaction hash of the transaction that funded the account
29
+ */
30
+ fundAccount(args: {
31
+ accountAddress: AccountAddressInput;
32
+ amount: number;
33
+ options?: WaitForTransactionOptions;
34
+ }): Promise<string>;
35
+ }
36
+
37
+ export { Faucet };
@@ -0,0 +1,2 @@
1
+ import{a}from"../chunk-SJLO3JIH.mjs";import"../chunk-XFS5O5GJ.mjs";import"../chunk-ZT2A5ABR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as Faucet};
2
+ //# sourceMappingURL=faucet.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,72 @@
1
+ import { PaginationArgs } from '../types/index.js';
2
+ import { AptosConfig } from './aptosConfig.js';
3
+ import { FungibleAssetMetadataBoolExp, FungibleAssetActivitiesBoolExp, CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.js';
4
+ import { GetFungibleAssetMetadataResponse, GetFungibleAssetActivitiesResponse, GetCurrentFungibleAssetBalancesResponse } from '../types/indexer.js';
5
+ import '../utils/apiEndpoints.js';
6
+ import '../types/generated/operations.js';
7
+ import '../utils/const.js';
8
+
9
+ /**
10
+ * A class to query all `FungibleAsset` related queries on Aptos.
11
+ */
12
+ declare class FungibleAsset {
13
+ readonly config: AptosConfig;
14
+ constructor(config: AptosConfig);
15
+ /**
16
+ * Queries the current fungible asset metadata.
17
+ *
18
+ * This query returns the fungible asset metadata for all fungible assets.
19
+ * It can be filtered by creator address and asset type.
20
+ *
21
+ * @returns getFungibleAssetMetadata A list of fungible asset metadata
22
+ */
23
+ getFungibleAssetMetadata(args?: {
24
+ options?: {
25
+ pagination?: PaginationArgs;
26
+ where?: FungibleAssetMetadataBoolExp;
27
+ };
28
+ }): Promise<GetFungibleAssetMetadataResponse>;
29
+ /**
30
+ * Queries the current specific fungible asset metadata
31
+ *
32
+ * This query returns the fungible asset metadata for a specific fungible asset.
33
+ *
34
+ * @param assetType The asset type of the fungible asset.
35
+ * e.g
36
+ * "0x1::aptos_coin::AptosCoin" for Aptos Coin
37
+ * "0xc2948283c2ce03aafbb294821de7ee684b06116bb378ab614fa2de07a99355a8" - address format if this is fungible asset
38
+ *
39
+ * @returns getFungibleAssetMetadata A fungible asset metadata item
40
+ */
41
+ getFungibleAssetMetadataByAssetType(assetType: string): Promise<GetFungibleAssetMetadataResponse[0]>;
42
+ /**
43
+ * Queries the fungible asset activities
44
+ *
45
+ * This query returns the fungible asset activities.
46
+ * It can be filtered by owner address, asset type, and type.
47
+ *
48
+ * @returns GetFungibleAssetActivitiesResponse A list of fungible asset metadata
49
+ */
50
+ getFungibleAssetActivities(args?: {
51
+ options?: {
52
+ pagination?: PaginationArgs;
53
+ where?: FungibleAssetActivitiesBoolExp;
54
+ };
55
+ }): Promise<GetFungibleAssetActivitiesResponse>;
56
+ /**
57
+ * Queries the fungible asset balance
58
+ *
59
+ * This query returns the fungible asset balance.
60
+ * It can be filtered by owner address, and asset type
61
+ *
62
+ * @returns GetCurrentFungibleAssetBalancesResponse A list of fungible asset metadata
63
+ */
64
+ getCurrentFungibleAssetBalances(args?: {
65
+ options?: {
66
+ pagination?: PaginationArgs;
67
+ where?: CurrentFungibleAssetBalancesBoolExp;
68
+ };
69
+ }): Promise<GetCurrentFungibleAssetBalancesResponse>;
70
+ }
71
+
72
+ export { FungibleAsset };
@@ -0,0 +1,2 @@
1
+ import{a}from"../chunk-DNYVUM3K.mjs";import"../chunk-KFP7MDSD.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as FungibleAsset};
2
+ //# sourceMappingURL=fungibleAsset.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,150 @@
1
+ import { AptosConfig } from './aptosConfig.js';
2
+ import { LedgerInfo, AnyNumber, Block, TableItemRequest, LedgerVersion, ViewRequestData, MoveValue } from '../types/index.js';
3
+ import { GetChainTopUserTransactionsResponse, GraphqlQuery } from '../types/indexer.js';
4
+ import '../utils/apiEndpoints.js';
5
+ import '../utils/const.js';
6
+ import '../types/generated/operations.js';
7
+ import '../types/generated/types.js';
8
+
9
+ /**
10
+ * A class to query all `General` Aptos related queries
11
+ */
12
+ declare class General {
13
+ readonly config: AptosConfig;
14
+ constructor(config: AptosConfig);
15
+ /**
16
+ * Queries for the Aptos ledger info
17
+ *
18
+ * @returns Aptos Ledger Info
19
+ *
20
+ * @example An example of the returned data
21
+ * ```
22
+ * {
23
+ * "chain_id": 4,
24
+ * "epoch": "8",
25
+ * "ledger_version": "714",
26
+ * "oldest_ledger_version": "0",
27
+ * "ledger_timestamp": "1694695496521775",
28
+ * "node_role": "validator",
29
+ * "oldest_block_height": "0",
30
+ * "block_height": "359",
31
+ * "git_hash": "c82193f36f4e185fed9f68c4ad21f6c6dd390c6e"
32
+ * }
33
+ * ```
34
+ */
35
+ getLedgerInfo(): Promise<LedgerInfo>;
36
+ /**
37
+ * Queries for the chain id
38
+ *
39
+ * @returns The chain id
40
+ */
41
+ getChainId(): Promise<number>;
42
+ /**
43
+ * Queries for block by transaction version
44
+ *
45
+ * @param args.ledgerVersion Ledger version to lookup block information for
46
+ * @param args.options.withTransactions If set to true, include all transactions in the block
47
+ *
48
+ * @returns Block information with optional transactions
49
+ */
50
+ getBlockByVersion(args: {
51
+ ledgerVersion: AnyNumber;
52
+ options?: {
53
+ withTransactions?: boolean;
54
+ };
55
+ }): Promise<Block>;
56
+ /**
57
+ * Get block by block height
58
+ *
59
+ * @param args.blockHeight Block height to lookup. Starts at 0
60
+ * @param args.options.withTransactions If set to true, include all transactions in the block
61
+ *
62
+ * @returns Block with optional transactions
63
+ */
64
+ getBlockByHeight(args: {
65
+ blockHeight: AnyNumber;
66
+ options?: {
67
+ withTransactions?: boolean;
68
+ };
69
+ }): Promise<Block>;
70
+ /**
71
+ * Queries for a table item for a table identified by the handle and the key for the item.
72
+ * Key and value types need to be passed in to help with key serialization and value deserialization.
73
+ * @param args.handle A pointer to where that table is stored
74
+ * @param args.data Object that describes table item
75
+ * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
76
+ *
77
+ * @example https://fullnode.devnet.aptoslabs.com/v1/accounts/0x1/resource/0x1::coin::CoinInfo%3C0x1::aptos_coin::AptosCoin%3E
78
+ * {
79
+ * data.key_type = "address" // Move type of table key
80
+ * data.value_type = "u128" // Move type of table value
81
+ * data.key = "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935" // Value of table key
82
+ * }
83
+ *
84
+ * @returns Table item value rendered in JSON
85
+ */
86
+ getTableItem<T>(args: {
87
+ handle: string;
88
+ data: TableItemRequest;
89
+ options?: LedgerVersion;
90
+ }): Promise<T>;
91
+ /**
92
+ * Queries for a Move view function
93
+ * @param args.payload Payload for the view function
94
+ * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
95
+ * @example
96
+ * `
97
+ * const payload: ViewRequest = {
98
+ * function: "0x1::coin::balance",
99
+ * typeArguments: ["0x1::aptos_coin::AptosCoin"],
100
+ * functionArguments: [accountAddress],
101
+ * };
102
+ * `
103
+ *
104
+ * @returns an array of Move values
105
+ */
106
+ view(args: {
107
+ payload: ViewRequestData;
108
+ options?: LedgerVersion;
109
+ }): Promise<Array<MoveValue>>;
110
+ /**
111
+ * Queries top user transactions
112
+ *
113
+ * @param args.limit The number of transactions to return
114
+ * @returns GetChainTopUserTransactionsResponse
115
+ */
116
+ getChainTopUserTransactions(args: {
117
+ limit: number;
118
+ }): Promise<GetChainTopUserTransactionsResponse>;
119
+ /**
120
+ * A generic function for retrieving data from Aptos Indexer.
121
+ * For more detailed queries specification see
122
+ * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://indexer.mainnet.aptoslabs.com/v1/graphql}
123
+ *
124
+ * @param args.query.query A GraphQL query
125
+ * @param args.query.variables The variables for the query
126
+ * @example
127
+ * ```
128
+ * {
129
+ * query: `query MyQuery {
130
+ ledger_infos {
131
+ chain_id
132
+ }
133
+ }`;
134
+ * }
135
+ * ```
136
+ *
137
+ * @return The provided T type
138
+ */
139
+ queryIndexer<T>(args: {
140
+ query: GraphqlQuery;
141
+ }): Promise<T>;
142
+ /**
143
+ * Queries for the last successful indexer version
144
+ *
145
+ * This is useful to tell what ledger version the indexer is updated to, as it can be behind the full nodes.
146
+ */
147
+ getIndexerLastSuccessVersion(): Promise<number>;
148
+ }
149
+
150
+ export { General };
@@ -0,0 +1,2 @@
1
+ import{a}from"../chunk-KYWYIK5P.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as General};
2
+ //# sourceMappingURL=general.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,46 @@
1
+ export { Aptos } from './aptos.js';
2
+ export { AptosConfig } from './aptosConfig.js';
3
+ import './account.js';
4
+ import '../core/account.js';
5
+ import '../core/accountAddress.js';
6
+ import '../bcs/serializer.js';
7
+ import '../core/hex.js';
8
+ import '../core/common.js';
9
+ import '../types/index.js';
10
+ import '../utils/apiEndpoints.js';
11
+ import '../types/indexer.js';
12
+ import '../types/generated/operations.js';
13
+ import '../types/generated/types.js';
14
+ import '../bcs/deserializer.js';
15
+ import '../transactions/instances/transactionArgument.js';
16
+ import '../core/authenticationKey.js';
17
+ import '../core/crypto/asymmetricCrypto.js';
18
+ import '../utils/const.js';
19
+ import './coin.js';
20
+ import '../transactions/types.js';
21
+ import '../bcs/serializable/moveStructs.js';
22
+ import '../bcs/serializable/movePrimitives.js';
23
+ import '../bcs/serializable/fixedBytes.js';
24
+ import '../transactions/instances/rawTransaction.js';
25
+ import '../transactions/instances/chainId.js';
26
+ import '../transactions/instances/transactionPayload.js';
27
+ import '../transactions/instances/identifier.js';
28
+ import '../transactions/instances/moduleId.js';
29
+ import '../transactions/typeTag/index.js';
30
+ import '../transactions/authenticator/account.js';
31
+ import '../core/crypto/anyPublicKey.js';
32
+ import '../core/crypto/anySignature.js';
33
+ import '../core/crypto/ed25519.js';
34
+ import '../core/crypto/multiEd25519.js';
35
+ import '../core/crypto/multiKey.js';
36
+ import './digitalAsset.js';
37
+ import '../internal/digitalAsset.js';
38
+ import './event.js';
39
+ import './faucet.js';
40
+ import './fungibleAsset.js';
41
+ import './general.js';
42
+ import './ans.js';
43
+ import '../internal/ans.js';
44
+ import './staking.js';
45
+ import './transaction.js';
46
+ import './transactionSubmission.js';
@@ -0,0 +1,2 @@
1
+ import"../chunk-RMMOF53Q.mjs";import{a as b}from"../chunk-KJDY66XF.mjs";import"../chunk-SJLO3JIH.mjs";import"../chunk-XFS5O5GJ.mjs";import"../chunk-DNYVUM3K.mjs";import"../chunk-KFP7MDSD.mjs";import"../chunk-KYWYIK5P.mjs";import"../chunk-IXMH6AXJ.mjs";import"../chunk-PJDVHU7X.mjs";import"../chunk-KPESAXVI.mjs";import"../chunk-3YOV42H5.mjs";import"../chunk-TYHBYRUA.mjs";import"../chunk-Z56AKXJ7.mjs";import"../chunk-FHJ7F7Z6.mjs";import{a}from"../chunk-N6XWY4UT.mjs";import"../chunk-XFSL7O6Q.mjs";import"../chunk-J5OKXARS.mjs";import"../chunk-VAGYTPSI.mjs";import"../chunk-TXUMB5ZO.mjs";import"../chunk-7TL2MY2B.mjs";import"../chunk-7AIV5FEN.mjs";import"../chunk-WVMDCC4V.mjs";import"../chunk-NKTKHC3Z.mjs";import"../chunk-3OJN4I42.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-KNLMUSIO.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-ADR4XQPR.mjs";import"../chunk-WGXAIQ7K.mjs";import"../chunk-DXUIJ6KA.mjs";import"../chunk-BREUBEPM.mjs";import"../chunk-UQIOMAXE.mjs";import"../chunk-KWJ6XKNF.mjs";import"../chunk-LAXIJRYU.mjs";import"../chunk-EKAOAGNQ.mjs";import"../chunk-JTGGMXB7.mjs";import"../chunk-IPJKGHQY.mjs";import"../chunk-ZT2A5ABR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-O243HOP3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-WNEZCERQ.mjs";import"../chunk-2B5QXKPU.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{b as Aptos,a as AptosConfig};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}