@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
@@ -1,435 +1,7 @@
1
- declare enum Network {
2
- MAINNET = "mainnet",
3
- TESTNET = "testnet",
4
- DEVNET = "devnet",
5
- LOCAL = "local",
6
- CUSTOM = "custom"
7
- }
8
-
9
- declare type GetAccountCoinsDataQuery = {
10
- current_fungible_asset_balances: Array<{
11
- amount: any;
12
- asset_type: string;
13
- is_frozen: boolean;
14
- is_primary: boolean;
15
- last_transaction_timestamp: any;
16
- last_transaction_version: any;
17
- owner_address: string;
18
- storage_id: string;
19
- token_standard: string;
20
- metadata?: {
21
- token_standard: string;
22
- symbol: string;
23
- supply_aggregator_table_key_v1?: string | null;
24
- supply_aggregator_table_handle_v1?: string | null;
25
- project_uri?: string | null;
26
- name: string;
27
- last_transaction_version: any;
28
- last_transaction_timestamp: any;
29
- icon_uri?: string | null;
30
- decimals: number;
31
- creator_address: string;
32
- asset_type: string;
33
- } | null;
34
- }>;
35
- };
36
- declare type GetAccountCollectionsWithOwnedTokensQuery = {
37
- current_collection_ownership_v2_view: Array<{
38
- collection_id?: string | null;
39
- collection_name?: string | null;
40
- collection_uri?: string | null;
41
- creator_address?: string | null;
42
- distinct_tokens?: any | null;
43
- last_transaction_version?: any | null;
44
- owner_address?: string | null;
45
- single_token_uri?: string | null;
46
- current_collection?: {
47
- collection_id: string;
48
- collection_name: string;
49
- creator_address: string;
50
- current_supply: any;
51
- description: string;
52
- last_transaction_timestamp: any;
53
- last_transaction_version: any;
54
- mutable_description?: boolean | null;
55
- max_supply?: any | null;
56
- mutable_uri?: boolean | null;
57
- table_handle_v1?: string | null;
58
- token_standard: string;
59
- total_minted_v2?: any | null;
60
- uri: string;
61
- } | null;
62
- }>;
63
- };
64
- declare type GetAccountOwnedObjectsQuery = {
65
- current_objects: Array<{
66
- allow_ungated_transfer: boolean;
67
- state_key_hash: string;
68
- owner_address: string;
69
- object_address: string;
70
- last_transaction_version: any;
71
- last_guid_creation_num: any;
72
- is_deleted: boolean;
73
- }>;
74
- };
75
- declare type GetAccountOwnedTokensQuery = {
76
- current_token_ownerships_v2: Array<{
77
- token_standard: string;
78
- token_properties_mutated_v1?: any | null;
79
- token_data_id: string;
80
- table_type_v1?: string | null;
81
- storage_id: string;
82
- property_version_v1: any;
83
- owner_address: string;
84
- last_transaction_version: any;
85
- last_transaction_timestamp: any;
86
- is_soulbound_v2?: boolean | null;
87
- is_fungible_v2?: boolean | null;
88
- amount: any;
89
- current_token_data?: {
90
- collection_id: string;
91
- description: string;
92
- is_fungible_v2?: boolean | null;
93
- largest_property_version_v1?: any | null;
94
- last_transaction_timestamp: any;
95
- last_transaction_version: any;
96
- maximum?: any | null;
97
- supply: any;
98
- token_data_id: string;
99
- token_name: string;
100
- token_properties: any;
101
- token_standard: string;
102
- token_uri: string;
103
- current_collection?: {
104
- collection_id: string;
105
- collection_name: string;
106
- creator_address: string;
107
- current_supply: any;
108
- description: string;
109
- last_transaction_timestamp: any;
110
- last_transaction_version: any;
111
- max_supply?: any | null;
112
- mutable_description?: boolean | null;
113
- mutable_uri?: boolean | null;
114
- table_handle_v1?: string | null;
115
- token_standard: string;
116
- total_minted_v2?: any | null;
117
- uri: string;
118
- } | null;
119
- } | null;
120
- }>;
121
- };
122
- declare type GetAccountOwnedTokensFromCollectionQuery = {
123
- current_token_ownerships_v2: Array<{
124
- token_standard: string;
125
- token_properties_mutated_v1?: any | null;
126
- token_data_id: string;
127
- table_type_v1?: string | null;
128
- storage_id: string;
129
- property_version_v1: any;
130
- owner_address: string;
131
- last_transaction_version: any;
132
- last_transaction_timestamp: any;
133
- is_soulbound_v2?: boolean | null;
134
- is_fungible_v2?: boolean | null;
135
- amount: any;
136
- current_token_data?: {
137
- collection_id: string;
138
- description: string;
139
- is_fungible_v2?: boolean | null;
140
- largest_property_version_v1?: any | null;
141
- last_transaction_timestamp: any;
142
- last_transaction_version: any;
143
- maximum?: any | null;
144
- supply: any;
145
- token_data_id: string;
146
- token_name: string;
147
- token_properties: any;
148
- token_standard: string;
149
- token_uri: string;
150
- current_collection?: {
151
- collection_id: string;
152
- collection_name: string;
153
- creator_address: string;
154
- current_supply: any;
155
- description: string;
156
- last_transaction_timestamp: any;
157
- last_transaction_version: any;
158
- max_supply?: any | null;
159
- mutable_description?: boolean | null;
160
- mutable_uri?: boolean | null;
161
- table_handle_v1?: string | null;
162
- token_standard: string;
163
- total_minted_v2?: any | null;
164
- uri: string;
165
- } | null;
166
- } | null;
167
- }>;
168
- };
169
- declare type GetChainTopUserTransactionsQuery = {
170
- user_transactions: Array<{
171
- version: any;
172
- }>;
173
- };
174
- declare type GetCollectionDataQuery = {
175
- current_collections_v2: Array<{
176
- collection_id: string;
177
- collection_name: string;
178
- creator_address: string;
179
- current_supply: any;
180
- description: string;
181
- last_transaction_timestamp: any;
182
- last_transaction_version: any;
183
- max_supply?: any | null;
184
- mutable_description?: boolean | null;
185
- mutable_uri?: boolean | null;
186
- table_handle_v1?: string | null;
187
- token_standard: string;
188
- total_minted_v2?: any | null;
189
- uri: string;
190
- }>;
191
- };
192
- declare type GetCurrentFungibleAssetBalancesQuery = {
193
- current_fungible_asset_balances: Array<{
194
- amount: any;
195
- asset_type: string;
196
- is_frozen: boolean;
197
- is_primary: boolean;
198
- last_transaction_timestamp: any;
199
- last_transaction_version: any;
200
- owner_address: string;
201
- storage_id: string;
202
- token_standard: string;
203
- }>;
204
- };
205
- declare type GetDelegatedStakingActivitiesQuery = {
206
- delegated_staking_activities: Array<{
207
- amount: any;
208
- delegator_address: string;
209
- event_index: any;
210
- event_type: string;
211
- pool_address: string;
212
- transaction_version: any;
213
- }>;
214
- };
215
- declare type GetEventsQuery = {
216
- events: Array<{
217
- account_address: string;
218
- creation_number: any;
219
- data: any;
220
- event_index: any;
221
- sequence_number: any;
222
- transaction_block_height: any;
223
- transaction_version: any;
224
- type: string;
225
- }>;
226
- };
227
- declare type GetFungibleAssetActivitiesQuery = {
228
- fungible_asset_activities: Array<{
229
- amount?: any | null;
230
- asset_type: string;
231
- block_height: any;
232
- entry_function_id_str?: string | null;
233
- event_index: any;
234
- gas_fee_payer_address?: string | null;
235
- is_frozen?: boolean | null;
236
- is_gas_fee: boolean;
237
- is_transaction_success: boolean;
238
- owner_address: string;
239
- storage_id: string;
240
- storage_refund_amount: any;
241
- token_standard: string;
242
- transaction_timestamp: any;
243
- transaction_version: any;
244
- type: string;
245
- }>;
246
- };
247
- declare type GetFungibleAssetMetadataQuery = {
248
- fungible_asset_metadata: Array<{
249
- icon_uri?: string | null;
250
- project_uri?: string | null;
251
- supply_aggregator_table_handle_v1?: string | null;
252
- supply_aggregator_table_key_v1?: string | null;
253
- creator_address: string;
254
- asset_type: string;
255
- decimals: number;
256
- last_transaction_timestamp: any;
257
- last_transaction_version: any;
258
- name: string;
259
- symbol: string;
260
- token_standard: string;
261
- }>;
262
- };
263
- declare type GetNumberOfDelegatorsQuery = {
264
- num_active_delegator_per_pool: Array<{
265
- num_active_delegator?: any | null;
266
- pool_address?: string | null;
267
- }>;
268
- };
269
- declare type GetProcessorStatusQuery = {
270
- processor_status: Array<{
271
- last_success_version: any;
272
- processor: string;
273
- last_updated: any;
274
- }>;
275
- };
276
- declare type GetTokenActivityQuery = {
277
- token_activities_v2: Array<{
278
- after_value?: string | null;
279
- before_value?: string | null;
280
- entry_function_id_str?: string | null;
281
- event_account_address: string;
282
- event_index: any;
283
- from_address?: string | null;
284
- is_fungible_v2?: boolean | null;
285
- property_version_v1: any;
286
- to_address?: string | null;
287
- token_amount: any;
288
- token_data_id: string;
289
- token_standard: string;
290
- transaction_timestamp: any;
291
- transaction_version: any;
292
- type: string;
293
- }>;
294
- };
295
- declare type GetCurrentTokenOwnershipQuery = {
296
- current_token_ownerships_v2: Array<{
297
- token_standard: string;
298
- token_properties_mutated_v1?: any | null;
299
- token_data_id: string;
300
- table_type_v1?: string | null;
301
- storage_id: string;
302
- property_version_v1: any;
303
- owner_address: string;
304
- last_transaction_version: any;
305
- last_transaction_timestamp: any;
306
- is_soulbound_v2?: boolean | null;
307
- is_fungible_v2?: boolean | null;
308
- amount: any;
309
- current_token_data?: {
310
- collection_id: string;
311
- description: string;
312
- is_fungible_v2?: boolean | null;
313
- largest_property_version_v1?: any | null;
314
- last_transaction_timestamp: any;
315
- last_transaction_version: any;
316
- maximum?: any | null;
317
- supply: any;
318
- token_data_id: string;
319
- token_name: string;
320
- token_properties: any;
321
- token_standard: string;
322
- token_uri: string;
323
- current_collection?: {
324
- collection_id: string;
325
- collection_name: string;
326
- creator_address: string;
327
- current_supply: any;
328
- description: string;
329
- last_transaction_timestamp: any;
330
- last_transaction_version: any;
331
- max_supply?: any | null;
332
- mutable_description?: boolean | null;
333
- mutable_uri?: boolean | null;
334
- table_handle_v1?: string | null;
335
- token_standard: string;
336
- total_minted_v2?: any | null;
337
- uri: string;
338
- } | null;
339
- } | null;
340
- }>;
341
- };
342
- declare type GetTokenDataQuery = {
343
- current_token_datas_v2: Array<{
344
- collection_id: string;
345
- description: string;
346
- is_fungible_v2?: boolean | null;
347
- largest_property_version_v1?: any | null;
348
- last_transaction_timestamp: any;
349
- last_transaction_version: any;
350
- maximum?: any | null;
351
- supply: any;
352
- token_data_id: string;
353
- token_name: string;
354
- token_properties: any;
355
- token_standard: string;
356
- token_uri: string;
357
- current_collection?: {
358
- collection_id: string;
359
- collection_name: string;
360
- creator_address: string;
361
- current_supply: any;
362
- description: string;
363
- last_transaction_timestamp: any;
364
- last_transaction_version: any;
365
- max_supply?: any | null;
366
- mutable_description?: boolean | null;
367
- mutable_uri?: boolean | null;
368
- table_handle_v1?: string | null;
369
- token_standard: string;
370
- total_minted_v2?: any | null;
371
- uri: string;
372
- } | null;
373
- }>;
374
- };
375
-
376
- /**
377
- * GENERATED QUERY TYPES FROM GRAPHQL SCHEMA
378
- *
379
- * generated types we generate from graphql schema that match the structure of the
380
- * response type when querying from Hasura schema.
381
- *
382
- * These types are used as the return type when making the actual request (usually
383
- * under the /internal/ folder)
384
- */
385
-
386
- /**
387
- * CUSTOM RESPONSE TYPES FOR THE END USER
388
- *
389
- * To provide a good dev exp, we build custom types derived from the
390
- * query types to be the response type the end developer/user will
391
- * work with.
392
- *
393
- * These types are used as the return type when calling a sdk api function
394
- * that calls the function that queries the server (usually under the /api/ folder)
395
- */
396
- declare type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"];
397
- declare type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
398
- declare type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
399
- declare type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
400
- declare type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
401
- declare type GetChainTopUserTransactionsResponse = GetChainTopUserTransactionsQuery["user_transactions"];
402
- declare type GetEventsResponse = GetEventsQuery["events"];
403
- declare type GetNumberOfDelegatorsResponse = GetNumberOfDelegatorsQuery["num_active_delegator_per_pool"];
404
- declare type GetDelegatedStakingActivitiesResponse = GetDelegatedStakingActivitiesQuery["delegated_staking_activities"];
405
- declare type GetCollectionDataResponse = GetCollectionDataQuery["current_collections_v2"][0];
406
- declare type GetTokenDataResponse = GetTokenDataQuery["current_token_datas_v2"][0];
407
- declare type GetProcessorStatusResponse = GetProcessorStatusQuery["processor_status"];
408
- declare type GetFungibleAssetMetadataResponse = GetFungibleAssetMetadataQuery["fungible_asset_metadata"];
409
- declare type GetFungibleAssetActivitiesResponse = GetFungibleAssetActivitiesQuery["fungible_asset_activities"];
410
- declare type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQuery["current_fungible_asset_balances"];
411
- declare type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
412
- declare type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
413
- declare type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
414
- /**
415
- * A generic type that being passed by each function and holds an
416
- * array of properties we can sort the query by
417
- */
418
- declare type OrderBy<T> = Array<{
419
- [K in keyof T]?: OrderByValue;
420
- }>;
421
- declare type OrderByValue = "asc" | "asc_nulls_first" | "asc_nulls_last" | "desc" | "desc_nulls_first" | "desc_nulls_last";
422
- /**
423
- * Refers to the token standard we want to query for
424
- */
425
- declare type TokenStandard = "v1" | "v2";
426
- /**
427
- * The graphql query type to pass into the `queryIndexer` function
428
- */
429
- declare type GraphqlQuery = {
430
- query: string;
431
- variables?: {};
432
- };
1
+ import { Network } from '../utils/apiEndpoints.js';
2
+ export { GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard } from './indexer.js';
3
+ import './generated/operations.js';
4
+ import './generated/types.js';
433
5
 
434
6
  declare enum MimeType {
435
7
  /**
@@ -568,12 +140,14 @@ interface PaginationArgs {
568
140
  /**
569
141
  * A configuration object we can pass with the request to the server.
570
142
  *
571
- * @param TOKEN - an auth token to send with the request
143
+ * @param AUTH_TOKEN - an auth token to send with a faucet request
144
+ * @param API_KEY - api key generated from developer portal {@link https://developers.aptoslabs.com/manage/api-keys}}
572
145
  * @param HEADERS - extra headers we want to send with the request
573
146
  * @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
574
147
  */
575
148
  declare type ClientConfig = {
576
- TOKEN?: string;
149
+ AUTH_TOKEN?: string;
150
+ API_KEY?: string;
577
151
  HEADERS?: Record<string, string | number | boolean>;
578
152
  WITH_CREDENTIALS?: boolean;
579
153
  };
@@ -1290,27 +864,21 @@ declare type WaitForTransactionOptions = {
1290
864
  indexerVersionCheck?: boolean;
1291
865
  };
1292
866
  /**
1293
- * Account input type to generate an account using Legacy
1294
- * Ed25519 or MultiEd25519 keys or without a specified `scheme`.
1295
- * If `scheme` is not specified, we default to ED25519
1296
- * In this case `legacy` is always true
867
+ * Input type to generate an account using Single Signer
868
+ * Ed25519 or Legacy Ed25519
1297
869
  */
1298
- declare type GenerateAccountWithLegacyKey = {
1299
- scheme?: SigningSchemeInput.Ed25519;
1300
- legacy: true;
870
+ declare type GenerateAccountWithEd25519 = {
871
+ scheme: SigningSchemeInput.Ed25519;
872
+ legacy: boolean;
1301
873
  };
1302
874
  /**
1303
- * Account input type to generate an account using Unified
1304
- * Secp256k1Ecdsa key
1305
- * In this case `legacy` is always false
875
+ * Input type to generate an account using Single Signer
876
+ * Secp256k1
1306
877
  */
1307
- declare type GenerateAccountWithUnifiedKey = {
1308
- scheme: SigningSchemeInput.Secp256k1Ecdsa | SigningSchemeInput.Ed25519;
878
+ declare type GenerateAccountWithSingleSignerSecp256k1Key = {
879
+ scheme: SigningSchemeInput.Secp256k1Ecdsa;
1309
880
  legacy?: false;
1310
881
  };
1311
- /**
1312
- * Unify GenerateAccount type for Legacy and Unified keys
1313
- */
1314
- declare type GenerateAccount = GenerateAccountWithLegacyKey | GenerateAccountWithUnifiedKey;
882
+ declare type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
1315
883
 
1316
- export { AccountAuthenticatorVariant, AccountData, AccountEd25519Signature, AccountMultiEd25519Signature, AccountSecp256k1Signature, AccountSignature, AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, AptosRequest, AptosSettings, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Client, ClientConfig, ClientRequest, ClientResponse, DecodedTableData, DeletedTableData, DeriveScheme, DirectWriteSet, EntryFunctionPayloadResponse, Event, EventGuid, GasEstimation, GenerateAccount, GenerateAccountWithLegacyKey, GenerateAccountWithUnifiedKey, GenesisPayload, GenesisTransactionResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HexInput, LedgerInfo, LedgerVersion, MimeType, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOptionType, MoveResource, MoveScriptBytecode, MoveStruct, MoveStructField, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MultisigPayloadResponse, OrderBy, OrderByValue, PaginationArgs, PendingTransactionResponse, RoleType, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, SigningScheme, SigningSchemeInput, StateCheckpointTransactionResponse, TableItemRequest, TokenStandard, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayloadResponse, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTagVariants, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, ViewRequestData, WaitForTransactionOptions, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem };
884
+ export { AccountAuthenticatorVariant, AccountData, AccountEd25519Signature, AccountMultiEd25519Signature, AccountSecp256k1Signature, AccountSignature, AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, AptosRequest, AptosSettings, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Client, ClientConfig, ClientRequest, ClientResponse, DecodedTableData, DeletedTableData, DeriveScheme, DirectWriteSet, EntryFunctionPayloadResponse, Event, EventGuid, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, HexInput, LedgerInfo, LedgerVersion, MimeType, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOptionType, MoveResource, MoveScriptBytecode, MoveStruct, MoveStructField, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MultisigPayloadResponse, PaginationArgs, PendingTransactionResponse, RoleType, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, SigningScheme, SigningSchemeInput, StateCheckpointTransactionResponse, TableItemRequest, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayloadResponse, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTagVariants, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, ViewRequestData, WaitForTransactionOptions, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem };
@@ -0,0 +1,2 @@
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{g as AccountAuthenticatorVariant,h as AnyPublicKeyVariant,i as AnySignatureVariant,p as DeriveScheme,a as MimeType,l as MoveAbility,k as MoveFunctionVisibility,m as RoleType,c as ScriptTransactionArgumentVariants,n as SigningScheme,o as SigningSchemeInput,f as TransactionAuthenticatorVariant,d as TransactionPayloadVariants,j as TransactionResponseType,e as TransactionVariants,b as TypeTagVariants};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,62 @@
1
+ import { GetAccountOwnedObjectsQuery, GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetChainTopUserTransactionsQuery, GetEventsQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetProcessorStatusQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetTokenActivityQuery, GetCurrentTokenOwnershipQuery } from './generated/operations.js';
2
+ import './generated/types.js';
3
+
4
+ /**
5
+ * GENERATED QUERY TYPES FROM GRAPHQL SCHEMA
6
+ *
7
+ * generated types we generate from graphql schema that match the structure of the
8
+ * response type when querying from Hasura schema.
9
+ *
10
+ * These types are used as the return type when making the actual request (usually
11
+ * under the /internal/ folder)
12
+ */
13
+
14
+ /**
15
+ * CUSTOM RESPONSE TYPES FOR THE END USER
16
+ *
17
+ * To provide a good dev exp, we build custom types derived from the
18
+ * query types to be the response type the end developer/user will
19
+ * work with.
20
+ *
21
+ * These types are used as the return type when calling a sdk api function
22
+ * that calls the function that queries the server (usually under the /api/ folder)
23
+ */
24
+ declare type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"];
25
+ declare type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
26
+ declare type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
27
+ declare type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
28
+ declare type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
29
+ declare type GetChainTopUserTransactionsResponse = GetChainTopUserTransactionsQuery["user_transactions"];
30
+ declare type GetEventsResponse = GetEventsQuery["events"];
31
+ declare type GetNumberOfDelegatorsResponse = GetNumberOfDelegatorsQuery["num_active_delegator_per_pool"];
32
+ declare type GetDelegatedStakingActivitiesResponse = GetDelegatedStakingActivitiesQuery["delegated_staking_activities"];
33
+ declare type GetCollectionDataResponse = GetCollectionDataQuery["current_collections_v2"][0];
34
+ declare type GetTokenDataResponse = GetTokenDataQuery["current_token_datas_v2"][0];
35
+ declare type GetProcessorStatusResponse = GetProcessorStatusQuery["processor_status"];
36
+ declare type GetFungibleAssetMetadataResponse = GetFungibleAssetMetadataQuery["fungible_asset_metadata"];
37
+ declare type GetFungibleAssetActivitiesResponse = GetFungibleAssetActivitiesQuery["fungible_asset_activities"];
38
+ declare type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQuery["current_fungible_asset_balances"];
39
+ declare type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
40
+ declare type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
41
+ declare type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
42
+ /**
43
+ * A generic type that being passed by each function and holds an
44
+ * array of properties we can sort the query by
45
+ */
46
+ declare type OrderBy<T> = Array<{
47
+ [K in keyof T]?: OrderByValue;
48
+ }>;
49
+ declare type OrderByValue = "asc" | "asc_nulls_first" | "asc_nulls_last" | "desc" | "desc_nulls_first" | "desc_nulls_last";
50
+ /**
51
+ * Refers to the token standard we want to query for
52
+ */
53
+ declare type TokenStandard = "v1" | "v2";
54
+ /**
55
+ * The graphql query type to pass into the `queryIndexer` function
56
+ */
57
+ declare type GraphqlQuery = {
58
+ query: string;
59
+ variables?: {};
60
+ };
61
+
62
+ export { GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard };
@@ -0,0 +1,2 @@
1
+ import"../chunk-4WPQQPUF.mjs";
2
+ //# sourceMappingURL=indexer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,14 @@
1
+ declare const NetworkToIndexerAPI: Record<string, string>;
2
+ declare const NetworkToNodeAPI: Record<string, string>;
3
+ declare const NetworkToFaucetAPI: Record<string, string>;
4
+ declare enum Network {
5
+ MAINNET = "mainnet",
6
+ TESTNET = "testnet",
7
+ DEVNET = "devnet",
8
+ LOCAL = "local",
9
+ CUSTOM = "custom"
10
+ }
11
+ declare const NetworkToChainId: Record<string, number>;
12
+ declare const NetworkToNetworkName: Record<string, Network>;
13
+
14
+ export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI };
@@ -0,0 +1,2 @@
1
+ import{a,b,c,d,e,f}from"../chunk-LV33NV4J.mjs";import"../chunk-XNFEUXDS.mjs";export{d as Network,e as NetworkToChainId,c as NetworkToFaucetAPI,a as NetworkToIndexerAPI,f as NetworkToNetworkName,b as NetworkToNodeAPI};
2
+ //# sourceMappingURL=apiEndpoints.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Type of API endpoint for request routing
3
+ */
4
+ declare enum AptosApiType {
5
+ FULLNODE = 0,
6
+ INDEXER = 1,
7
+ FAUCET = 2
8
+ }
9
+ declare const DEFAULT_NETWORK = Network.DEVNET;
10
+ /**
11
+ * The default max gas amount when none is given.
12
+ *
13
+ * This is the maximum number of gas units that will be used by a transaction before being rejected.
14
+ *
15
+ * Note that max gas amount varies based on the transaction. A larger transaction will go over this
16
+ * default gas amount, and the value will need to be changed for the specific transaction.
17
+ */
18
+ declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
19
+ /**
20
+ * The default transaction expiration seconds from now.
21
+ *
22
+ * This time is how long until the blockchain nodes will reject the transaction.
23
+ *
24
+ * Note that the transaction expiration time varies based on network connection and network load. It may need to be
25
+ * increased for the transaction to be processed.
26
+ */
27
+ declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
28
+ /**
29
+ * The default number of seconds to wait for a transaction to be processed.
30
+ *
31
+ * This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
32
+ * the results of the transaction. It may take longer based on network connection and network load.
33
+ */
34
+ declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
35
+ /**
36
+ * The default gas currency for the network.
37
+ */
38
+ declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
39
+ declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
40
+ declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
41
+
42
+ export { APTOS_COIN, AptosApiType, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT };
@@ -0,0 +1,2 @@
1
+ import{a,b,c,d,e,f,g,h}from"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-XNFEUXDS.mjs";export{f as APTOS_COIN,a as AptosApiType,c as DEFAULT_MAX_GAS_AMOUNT,b as DEFAULT_NETWORK,d as DEFAULT_TXN_EXP_SEC_FROM_NOW,e as DEFAULT_TXN_TIMEOUT_SEC,g as RAW_TRANSACTION_SALT,h as RAW_TRANSACTION_WITH_DATA_SALT};
2
+ //# sourceMappingURL=const.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Sleep the current thread for the given amount of time
3
+ * @param timeMs time in milliseconds to sleep
4
+ */
5
+ declare function sleep(timeMs: number): Promise<null>;
6
+
7
+ export { sleep };
@@ -0,0 +1,2 @@
1
+ import{a}from"../chunk-3JPVQHOR.mjs";import"../chunk-XNFEUXDS.mjs";export{a as sleep};
2
+ //# sourceMappingURL=helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}