@aptos-labs/ts-sdk 0.0.4 → 0.0.6

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 (462) hide show
  1. package/README.md +3 -3
  2. package/dist/{cjs → browser}/index.d.ts +357 -297
  3. package/dist/browser/index.global.js +72 -47
  4. package/dist/browser/index.global.js.map +1 -1
  5. package/dist/{esm → common}/index.d.ts +357 -297
  6. package/dist/common/index.js +406 -0
  7. package/dist/common/index.js.map +1 -0
  8. package/dist/esm/api/account.d.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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.mts +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-2W744GUN.mjs +2 -0
  75. package/dist/esm/chunk-2W744GUN.mjs.map +1 -0
  76. package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
  77. package/dist/esm/chunk-3JPVQHOR.mjs.map +1 -0
  78. package/dist/esm/chunk-3JVGSFHP.mjs +2 -0
  79. package/dist/esm/chunk-3JVGSFHP.mjs.map +1 -0
  80. package/dist/esm/chunk-44MGBJ73.mjs +2 -0
  81. package/dist/esm/chunk-44MGBJ73.mjs.map +1 -0
  82. package/dist/esm/chunk-4ADA5BE7.mjs +2 -0
  83. package/dist/esm/chunk-4ADA5BE7.mjs.map +1 -0
  84. package/dist/esm/chunk-4RVIA63I.mjs +2 -0
  85. package/dist/esm/chunk-4RVIA63I.mjs.map +1 -0
  86. package/dist/esm/chunk-4WPQQPUF.mjs +1 -0
  87. package/dist/esm/chunk-4WPQQPUF.mjs.map +1 -0
  88. package/dist/esm/chunk-62SCW5NH.mjs +2 -0
  89. package/dist/esm/chunk-62SCW5NH.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-7MNEEVXY.mjs +2 -0
  93. package/dist/esm/chunk-7MNEEVXY.mjs.map +1 -0
  94. package/dist/esm/chunk-AAIBCWZY.mjs +2 -0
  95. package/dist/esm/chunk-AAIBCWZY.mjs.map +1 -0
  96. package/dist/esm/chunk-AH44UPM4.mjs +2 -0
  97. package/dist/esm/chunk-AH44UPM4.mjs.map +1 -0
  98. package/dist/esm/chunk-ARVSIDVB.mjs +2 -0
  99. package/dist/esm/chunk-ARVSIDVB.mjs.map +1 -0
  100. package/dist/esm/chunk-BFSEVKNA.mjs +2 -0
  101. package/dist/esm/chunk-BFSEVKNA.mjs.map +1 -0
  102. package/dist/esm/chunk-BP5ZO7NK.mjs +2 -0
  103. package/dist/esm/chunk-BP5ZO7NK.mjs.map +1 -0
  104. package/dist/esm/chunk-BPYLPPEQ.mjs +2 -0
  105. package/dist/esm/chunk-BPYLPPEQ.mjs.map +1 -0
  106. package/dist/esm/chunk-BSCOVLWS.mjs +1 -0
  107. package/dist/esm/chunk-BSCOVLWS.mjs.map +1 -0
  108. package/dist/esm/chunk-BV4OOU5Y.mjs +2 -0
  109. package/dist/esm/chunk-BV4OOU5Y.mjs.map +1 -0
  110. package/dist/esm/chunk-BWMNPUTK.mjs +2 -0
  111. package/dist/esm/chunk-BWMNPUTK.mjs.map +1 -0
  112. package/dist/esm/chunk-CYDWEPFL.mjs +1 -0
  113. package/dist/esm/chunk-CYDWEPFL.mjs.map +1 -0
  114. package/dist/esm/chunk-DNDWTM7A.mjs +2 -0
  115. package/dist/esm/chunk-DNDWTM7A.mjs.map +1 -0
  116. package/dist/esm/chunk-E7FWVXGX.mjs +1 -0
  117. package/dist/esm/chunk-E7FWVXGX.mjs.map +1 -0
  118. package/dist/esm/chunk-EFIYW4WK.mjs +2 -0
  119. package/dist/esm/chunk-EFIYW4WK.mjs.map +1 -0
  120. package/dist/esm/chunk-EGOYLZBU.mjs +2 -0
  121. package/dist/esm/chunk-EGOYLZBU.mjs.map +1 -0
  122. package/dist/esm/chunk-EQ5BEDJ7.mjs +2 -0
  123. package/dist/esm/chunk-EQ5BEDJ7.mjs.map +1 -0
  124. package/dist/esm/chunk-EWTHPMEE.mjs +2 -0
  125. package/dist/esm/chunk-EWTHPMEE.mjs.map +1 -0
  126. package/dist/esm/chunk-EYXHVA6W.mjs +2 -0
  127. package/dist/esm/chunk-EYXHVA6W.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-FYIFBLHU.mjs +2 -0
  131. package/dist/esm/chunk-FYIFBLHU.mjs.map +1 -0
  132. package/dist/esm/chunk-FZY4PMEE.mjs +1 -0
  133. package/dist/esm/chunk-FZY4PMEE.mjs.map +1 -0
  134. package/dist/esm/chunk-GEFQFRL3.mjs +2 -0
  135. package/dist/esm/chunk-GEFQFRL3.mjs.map +1 -0
  136. package/dist/esm/chunk-GTC7WHMV.mjs +2 -0
  137. package/dist/esm/chunk-GTC7WHMV.mjs.map +1 -0
  138. package/dist/esm/chunk-HA6JD5R6.mjs +2 -0
  139. package/dist/esm/chunk-HA6JD5R6.mjs.map +1 -0
  140. package/dist/esm/chunk-HTZTTZQJ.mjs +1 -0
  141. package/dist/esm/chunk-HTZTTZQJ.mjs.map +1 -0
  142. package/dist/esm/chunk-HVADSXTB.mjs +2 -0
  143. package/dist/esm/chunk-HVADSXTB.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-IG5CHHSI.mjs +2 -0
  147. package/dist/esm/chunk-IG5CHHSI.mjs.map +1 -0
  148. package/dist/esm/chunk-IXMB2GOK.mjs +2 -0
  149. package/dist/esm/chunk-IXMB2GOK.mjs.map +1 -0
  150. package/dist/esm/chunk-J5ZFOJN2.mjs +2 -0
  151. package/dist/esm/chunk-J5ZFOJN2.mjs.map +1 -0
  152. package/dist/esm/chunk-JDS7K2WI.mjs +2 -0
  153. package/dist/esm/chunk-JDS7K2WI.mjs.map +1 -0
  154. package/dist/esm/chunk-JZNLZMUC.mjs +2 -0
  155. package/dist/esm/chunk-JZNLZMUC.mjs.map +1 -0
  156. package/dist/esm/chunk-KC64ESLO.mjs +2 -0
  157. package/dist/esm/chunk-KC64ESLO.mjs.map +1 -0
  158. package/dist/esm/chunk-KQXRH5FK.mjs +2 -0
  159. package/dist/esm/chunk-KQXRH5FK.mjs.map +1 -0
  160. package/dist/esm/chunk-LR65XHSF.mjs +2 -0
  161. package/dist/esm/chunk-LR65XHSF.mjs.map +1 -0
  162. package/dist/esm/chunk-LV33NV4J.mjs +2 -0
  163. package/dist/esm/chunk-LV33NV4J.mjs.map +1 -0
  164. package/dist/esm/chunk-N2FKVZ4D.mjs +1 -0
  165. package/dist/esm/chunk-N2FKVZ4D.mjs.map +1 -0
  166. package/dist/esm/chunk-NGCFPQ22.mjs +2 -0
  167. package/dist/esm/chunk-NGCFPQ22.mjs.map +1 -0
  168. package/dist/esm/chunk-NTD3H2S4.mjs +2 -0
  169. package/dist/esm/chunk-NTD3H2S4.mjs.map +1 -0
  170. package/dist/esm/chunk-NYFVEKF6.mjs +2 -0
  171. package/dist/esm/chunk-NYFVEKF6.mjs.map +1 -0
  172. package/dist/esm/chunk-NZIJV4O2.mjs +2 -0
  173. package/dist/esm/chunk-NZIJV4O2.mjs.map +1 -0
  174. package/dist/esm/chunk-P32MY5YF.mjs +2 -0
  175. package/dist/esm/chunk-P32MY5YF.mjs.map +1 -0
  176. package/dist/esm/chunk-Q6N6QACD.mjs +2 -0
  177. package/dist/esm/chunk-Q6N6QACD.mjs.map +1 -0
  178. package/dist/esm/chunk-QWVR4RCV.mjs +2 -0
  179. package/dist/esm/chunk-QWVR4RCV.mjs.map +1 -0
  180. package/dist/esm/chunk-R26XML3D.mjs +2 -0
  181. package/dist/esm/chunk-R26XML3D.mjs.map +1 -0
  182. package/dist/esm/chunk-R3KWVOFG.mjs +2 -0
  183. package/dist/esm/chunk-R3KWVOFG.mjs.map +1 -0
  184. package/dist/esm/chunk-R7G3CLRI.mjs +1 -0
  185. package/dist/esm/chunk-R7G3CLRI.mjs.map +1 -0
  186. package/dist/esm/chunk-RMMOF53Q.mjs +1 -0
  187. package/dist/esm/chunk-RMMOF53Q.mjs.map +1 -0
  188. package/dist/esm/chunk-RYETO74W.mjs +2 -0
  189. package/dist/esm/chunk-RYETO74W.mjs.map +1 -0
  190. package/dist/esm/chunk-S36IYY6K.mjs +2 -0
  191. package/dist/esm/chunk-S36IYY6K.mjs.map +1 -0
  192. package/dist/esm/chunk-TCTZCPQ6.mjs +1 -0
  193. package/dist/esm/chunk-TCTZCPQ6.mjs.map +1 -0
  194. package/dist/esm/chunk-TIH6ARYP.mjs +2 -0
  195. package/dist/esm/chunk-TIH6ARYP.mjs.map +1 -0
  196. package/dist/esm/chunk-TQD4IGUM.mjs +2 -0
  197. package/dist/esm/chunk-TQD4IGUM.mjs.map +1 -0
  198. package/dist/esm/chunk-U25N2VWA.mjs +2 -0
  199. package/dist/esm/chunk-U25N2VWA.mjs.map +1 -0
  200. package/dist/esm/chunk-U3LO2FSJ.mjs +2 -0
  201. package/dist/esm/chunk-U3LO2FSJ.mjs.map +1 -0
  202. package/dist/esm/chunk-U6SZNNVL.mjs +2 -0
  203. package/dist/esm/chunk-U6SZNNVL.mjs.map +1 -0
  204. package/dist/esm/chunk-UAAI3NCA.mjs +2 -0
  205. package/dist/esm/chunk-UAAI3NCA.mjs.map +1 -0
  206. package/dist/esm/chunk-UNQNACJT.mjs +2 -0
  207. package/dist/esm/chunk-UNQNACJT.mjs.map +1 -0
  208. package/dist/esm/chunk-UPLWWSB4.mjs +2 -0
  209. package/dist/esm/chunk-UPLWWSB4.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-V45RFKH7.mjs +2 -0
  215. package/dist/esm/chunk-V45RFKH7.mjs.map +1 -0
  216. package/dist/esm/chunk-VMQWW5UT.mjs +2 -0
  217. package/dist/esm/chunk-VMQWW5UT.mjs.map +1 -0
  218. package/dist/esm/chunk-VOYW2TZW.mjs +2 -0
  219. package/dist/esm/chunk-VOYW2TZW.mjs.map +1 -0
  220. package/dist/esm/chunk-VWVEDCBM.mjs +2 -0
  221. package/dist/esm/chunk-VWVEDCBM.mjs.map +1 -0
  222. package/dist/esm/chunk-VYAVLUPJ.mjs +2 -0
  223. package/dist/esm/chunk-VYAVLUPJ.mjs.map +1 -0
  224. package/dist/esm/chunk-WKY5ENCK.mjs +2 -0
  225. package/dist/esm/chunk-WKY5ENCK.mjs.map +1 -0
  226. package/dist/esm/chunk-WX43AJTD.mjs +406 -0
  227. package/dist/esm/chunk-WX43AJTD.mjs.map +1 -0
  228. package/dist/esm/chunk-X32O46IB.mjs +2 -0
  229. package/dist/esm/chunk-X32O46IB.mjs.map +1 -0
  230. package/dist/esm/chunk-Y5DJPHJT.mjs +2 -0
  231. package/dist/esm/chunk-Y5DJPHJT.mjs.map +1 -0
  232. package/dist/esm/chunk-Y7VR7X5W.mjs +2 -0
  233. package/dist/esm/chunk-Y7VR7X5W.mjs.map +1 -0
  234. package/dist/esm/chunk-YYRDFZE6.mjs +2 -0
  235. package/dist/esm/chunk-YYRDFZE6.mjs.map +1 -0
  236. package/dist/esm/chunk-Z2UDRTHA.mjs +2 -0
  237. package/dist/esm/chunk-Z2UDRTHA.mjs.map +1 -0
  238. package/dist/esm/chunk-ZWH2ESXT.mjs +2 -0
  239. package/dist/esm/chunk-ZWH2ESXT.mjs.map +1 -0
  240. package/dist/esm/client/core.d.mts +24 -0
  241. package/dist/esm/client/core.mjs +2 -0
  242. package/dist/esm/client/core.mjs.map +1 -0
  243. package/dist/esm/client/get.d.mts +55 -0
  244. package/dist/esm/client/get.mjs +2 -0
  245. package/dist/esm/client/get.mjs.map +1 -0
  246. package/dist/esm/client/index.d.mts +11 -0
  247. package/dist/esm/client/index.mjs +2 -0
  248. package/dist/esm/client/index.mjs.map +1 -0
  249. package/dist/esm/client/post.d.mts +60 -0
  250. package/dist/esm/client/post.mjs +2 -0
  251. package/dist/esm/client/post.mjs.map +1 -0
  252. package/dist/esm/client/types.d.mts +46 -0
  253. package/dist/esm/client/types.mjs +2 -0
  254. package/dist/esm/client/types.mjs.map +1 -0
  255. package/dist/esm/core/account.d.mts +184 -0
  256. package/dist/esm/core/account.mjs +2 -0
  257. package/dist/esm/core/account.mjs.map +1 -0
  258. package/dist/esm/core/accountAddress.d.mts +244 -0
  259. package/dist/esm/core/accountAddress.mjs +2 -0
  260. package/dist/esm/core/accountAddress.mjs.map +1 -0
  261. package/dist/esm/core/authenticationKey.d.mts +74 -0
  262. package/dist/esm/core/authenticationKey.mjs +2 -0
  263. package/dist/esm/core/authenticationKey.mjs.map +1 -0
  264. package/dist/esm/core/common.d.mts +32 -0
  265. package/dist/esm/core/common.mjs +2 -0
  266. package/dist/esm/core/common.mjs.map +1 -0
  267. package/dist/esm/core/crypto/anyPublicKey.d.mts +54 -0
  268. package/dist/esm/core/crypto/anyPublicKey.mjs +2 -0
  269. package/dist/esm/core/crypto/anyPublicKey.mjs.map +1 -0
  270. package/dist/esm/core/crypto/anySignature.d.mts +31 -0
  271. package/dist/esm/core/crypto/anySignature.mjs +2 -0
  272. package/dist/esm/core/crypto/anySignature.mjs.map +1 -0
  273. package/dist/esm/core/crypto/asymmetricCrypto.d.mts +74 -0
  274. package/dist/esm/core/crypto/asymmetricCrypto.mjs +2 -0
  275. package/dist/esm/core/crypto/asymmetricCrypto.mjs.map +1 -0
  276. package/dist/esm/core/crypto/ed25519.d.mts +173 -0
  277. package/dist/esm/core/crypto/ed25519.mjs +2 -0
  278. package/dist/esm/core/crypto/ed25519.mjs.map +1 -0
  279. package/dist/esm/core/crypto/hdKey.d.mts +65 -0
  280. package/dist/esm/core/crypto/hdKey.mjs +2 -0
  281. package/dist/esm/core/crypto/hdKey.mjs.map +1 -0
  282. package/dist/esm/core/crypto/index.d.mts +17 -0
  283. package/dist/esm/core/crypto/index.mjs +2 -0
  284. package/dist/esm/core/crypto/index.mjs.map +1 -0
  285. package/dist/esm/core/crypto/multiEd25519.d.mts +126 -0
  286. package/dist/esm/core/crypto/multiEd25519.mjs +2 -0
  287. package/dist/esm/core/crypto/multiEd25519.mjs.map +1 -0
  288. package/dist/esm/core/crypto/multiKey.d.mts +52 -0
  289. package/dist/esm/core/crypto/multiKey.mjs +2 -0
  290. package/dist/esm/core/crypto/multiKey.mjs.map +1 -0
  291. package/dist/esm/core/crypto/secp256k1.d.mts +161 -0
  292. package/dist/esm/core/crypto/secp256k1.mjs +2 -0
  293. package/dist/esm/core/crypto/secp256k1.mjs.map +1 -0
  294. package/dist/esm/core/hex.d.mts +105 -0
  295. package/dist/esm/core/hex.mjs +2 -0
  296. package/dist/esm/core/hex.mjs.map +1 -0
  297. package/dist/esm/core/index.d.mts +21 -0
  298. package/dist/esm/core/index.mjs +2 -0
  299. package/dist/esm/core/index.mjs.map +1 -0
  300. package/dist/esm/index.d.mts +60 -0
  301. package/dist/esm/index.mjs +1 -5706
  302. package/dist/esm/index.mjs.map +1 -1
  303. package/dist/esm/internal/account.d.mts +143 -0
  304. package/dist/esm/internal/account.mjs +2 -0
  305. package/dist/esm/internal/account.mjs.map +1 -0
  306. package/dist/esm/internal/ans.d.mts +83 -0
  307. package/dist/esm/internal/ans.mjs +2 -0
  308. package/dist/esm/internal/ans.mjs.map +1 -0
  309. package/dist/esm/internal/coin.d.mts +43 -0
  310. package/dist/esm/internal/coin.mjs +2 -0
  311. package/dist/esm/internal/coin.mjs.map +1 -0
  312. package/dist/esm/internal/digitalAsset.d.mts +118 -0
  313. package/dist/esm/internal/digitalAsset.mjs +2 -0
  314. package/dist/esm/internal/digitalAsset.mjs.map +1 -0
  315. package/dist/esm/internal/event.d.mts +45 -0
  316. package/dist/esm/internal/event.mjs +2 -0
  317. package/dist/esm/internal/event.mjs.map +1 -0
  318. package/dist/esm/internal/faucet.d.mts +29 -0
  319. package/dist/esm/internal/faucet.mjs +2 -0
  320. package/dist/esm/internal/faucet.mjs.map +1 -0
  321. package/dist/esm/internal/fungibleAsset.d.mts +38 -0
  322. package/dist/esm/internal/fungibleAsset.mjs +2 -0
  323. package/dist/esm/internal/fungibleAsset.mjs.map +1 -0
  324. package/dist/esm/internal/general.d.mts +60 -0
  325. package/dist/esm/internal/general.mjs +2 -0
  326. package/dist/esm/internal/general.mjs.map +1 -0
  327. package/dist/esm/internal/staking.d.mts +38 -0
  328. package/dist/esm/internal/staking.mjs +2 -0
  329. package/dist/esm/internal/staking.mjs.map +1 -0
  330. package/dist/esm/internal/transaction.d.mts +57 -0
  331. package/dist/esm/internal/transaction.mjs +2 -0
  332. package/dist/esm/internal/transaction.mjs.map +1 -0
  333. package/dist/esm/internal/transactionSubmission.d.mts +148 -0
  334. package/dist/esm/internal/transactionSubmission.mjs +2 -0
  335. package/dist/esm/internal/transactionSubmission.mjs.map +1 -0
  336. package/dist/esm/transactions/authenticator/account.d.mts +79 -0
  337. package/dist/esm/transactions/authenticator/account.mjs +2 -0
  338. package/dist/esm/transactions/authenticator/account.mjs.map +1 -0
  339. package/dist/esm/transactions/authenticator/index.d.mts +19 -0
  340. package/dist/esm/transactions/authenticator/index.mjs +2 -0
  341. package/dist/esm/transactions/authenticator/index.mjs.map +1 -0
  342. package/dist/esm/transactions/authenticator/transaction.d.mts +105 -0
  343. package/dist/esm/transactions/authenticator/transaction.mjs +2 -0
  344. package/dist/esm/transactions/authenticator/transaction.mjs.map +1 -0
  345. package/dist/esm/transactions/index.d.mts +39 -0
  346. package/dist/esm/transactions/index.mjs +2 -0
  347. package/dist/esm/transactions/index.mjs.map +1 -0
  348. package/dist/esm/transactions/instances/chainId.d.mts +21 -0
  349. package/dist/esm/transactions/instances/chainId.mjs +2 -0
  350. package/dist/esm/transactions/instances/chainId.mjs.map +1 -0
  351. package/dist/esm/transactions/instances/identifier.d.mts +23 -0
  352. package/dist/esm/transactions/instances/identifier.mjs +2 -0
  353. package/dist/esm/transactions/instances/identifier.mjs.map +1 -0
  354. package/dist/esm/transactions/instances/index.d.mts +29 -0
  355. package/dist/esm/transactions/instances/index.mjs +2 -0
  356. package/dist/esm/transactions/instances/index.mjs.map +1 -0
  357. package/dist/esm/transactions/instances/moduleId.d.mts +37 -0
  358. package/dist/esm/transactions/instances/moduleId.mjs +2 -0
  359. package/dist/esm/transactions/instances/moduleId.mjs.map +1 -0
  360. package/dist/esm/transactions/instances/rawTransaction.d.mts +98 -0
  361. package/dist/esm/transactions/instances/rawTransaction.mjs +2 -0
  362. package/dist/esm/transactions/instances/rawTransaction.mjs.map +1 -0
  363. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +37 -0
  364. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +2 -0
  365. package/dist/esm/transactions/instances/rotationProofChallenge.mjs.map +1 -0
  366. package/dist/esm/transactions/instances/signedTransaction.d.mts +46 -0
  367. package/dist/esm/transactions/instances/signedTransaction.mjs +2 -0
  368. package/dist/esm/transactions/instances/signedTransaction.mjs.map +1 -0
  369. package/dist/esm/transactions/instances/transactionArgument.d.mts +40 -0
  370. package/dist/esm/transactions/instances/transactionArgument.mjs +2 -0
  371. package/dist/esm/transactions/instances/transactionArgument.mjs.map +1 -0
  372. package/dist/esm/transactions/instances/transactionPayload.d.mts +211 -0
  373. package/dist/esm/transactions/instances/transactionPayload.mjs +2 -0
  374. package/dist/esm/transactions/instances/transactionPayload.mjs.map +1 -0
  375. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +63 -0
  376. package/dist/esm/transactions/transactionBuilder/helpers.mjs +2 -0
  377. package/dist/esm/transactions/transactionBuilder/helpers.mjs.map +1 -0
  378. package/dist/esm/transactions/transactionBuilder/index.d.mts +35 -0
  379. package/dist/esm/transactions/transactionBuilder/index.mjs +2 -0
  380. package/dist/esm/transactions/transactionBuilder/index.mjs.map +1 -0
  381. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +54 -0
  382. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +2 -0
  383. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs.map +1 -0
  384. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +126 -0
  385. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +2 -0
  386. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs.map +1 -0
  387. package/dist/esm/transactions/typeTag/index.d.mts +127 -0
  388. package/dist/esm/transactions/typeTag/index.mjs +2 -0
  389. package/dist/esm/transactions/typeTag/index.mjs.map +1 -0
  390. package/dist/esm/transactions/typeTag/parser.d.mts +48 -0
  391. package/dist/esm/transactions/typeTag/parser.mjs +2 -0
  392. package/dist/esm/transactions/typeTag/parser.mjs.map +1 -0
  393. package/dist/esm/transactions/types.d.mts +242 -0
  394. package/dist/esm/transactions/types.mjs +2 -0
  395. package/dist/esm/transactions/types.mjs.map +1 -0
  396. package/dist/esm/types/generated/operations.d.mts +604 -0
  397. package/dist/esm/types/generated/operations.mjs +1 -0
  398. package/dist/esm/types/generated/operations.mjs.map +1 -0
  399. package/dist/esm/types/generated/queries.d.mts +55 -0
  400. package/dist/esm/types/generated/queries.mjs +2 -0
  401. package/dist/esm/types/generated/queries.mjs.map +1 -0
  402. package/dist/esm/types/generated/types.d.mts +9496 -0
  403. package/dist/esm/types/generated/types.mjs +2 -0
  404. package/dist/esm/types/generated/types.mjs.map +1 -0
  405. package/dist/esm/types/index.d.mts +886 -0
  406. package/dist/esm/types/index.mjs +2 -0
  407. package/dist/esm/types/index.mjs.map +1 -0
  408. package/dist/esm/types/indexer.d.mts +62 -0
  409. package/dist/esm/types/indexer.mjs +2 -0
  410. package/dist/esm/types/indexer.mjs.map +1 -0
  411. package/dist/esm/utils/apiEndpoints.d.mts +14 -0
  412. package/dist/esm/utils/apiEndpoints.mjs +2 -0
  413. package/dist/esm/utils/apiEndpoints.mjs.map +1 -0
  414. package/dist/esm/utils/const.d.mts +42 -0
  415. package/dist/esm/utils/const.mjs +2 -0
  416. package/dist/esm/utils/const.mjs.map +1 -0
  417. package/dist/esm/utils/helpers.d.mts +7 -0
  418. package/dist/esm/utils/helpers.mjs +2 -0
  419. package/dist/esm/utils/helpers.mjs.map +1 -0
  420. package/dist/esm/utils/index.d.mts +2 -0
  421. package/dist/esm/utils/index.mjs +2 -0
  422. package/dist/esm/utils/index.mjs.map +1 -0
  423. package/dist/esm/utils/memoize.d.mts +20 -0
  424. package/dist/esm/utils/memoize.mjs +2 -0
  425. package/dist/esm/utils/memoize.mjs.map +1 -0
  426. package/dist/esm/version.d.mts +8 -0
  427. package/dist/esm/version.mjs +2 -0
  428. package/dist/esm/version.mjs.map +1 -0
  429. package/package.json +43 -40
  430. package/src/api/account.ts +2 -2
  431. package/src/api/coin.ts +2 -2
  432. package/src/api/event.ts +2 -2
  433. package/src/api/general.ts +4 -4
  434. package/src/api/transactionSubmission.ts +20 -3
  435. package/src/bcs/serializable/moveStructs.ts +8 -4
  436. package/src/client/core.ts +7 -5
  437. package/src/client/get.ts +6 -2
  438. package/src/client/post.ts +12 -4
  439. package/src/core/account.ts +7 -4
  440. package/src/index.ts +1 -1
  441. package/src/internal/account.ts +2 -2
  442. package/src/internal/ans.ts +4 -6
  443. package/src/internal/coin.ts +2 -2
  444. package/src/internal/event.ts +3 -3
  445. package/src/internal/general.ts +7 -6
  446. package/src/internal/queries/getEvents.graphql +1 -0
  447. package/src/internal/transactionSubmission.ts +41 -3
  448. package/src/transactions/transactionBuilder/helpers.ts +2 -2
  449. package/src/transactions/transactionBuilder/remoteAbi.ts +1 -1
  450. package/src/transactions/transactionBuilder/transactionBuilder.ts +15 -20
  451. package/src/transactions/typeTag/parser.ts +10 -2
  452. package/src/transactions/types.ts +5 -14
  453. package/src/types/generated/operations.ts +52 -51
  454. package/src/types/generated/queries.ts +42 -41
  455. package/src/types/generated/types.ts +2257 -2249
  456. package/src/types/index.ts +20 -12
  457. package/src/utils/index.ts +2 -0
  458. package/dist/cjs/index.js +0 -5901
  459. package/dist/cjs/index.js.map +0 -1
  460. package/dist/types/index.d.ts +0 -1310
  461. package/dist/types/index.js +0 -176
  462. package/dist/types/index.js.map +0 -1
@@ -0,0 +1,886 @@
1
+ import { Network } from '../utils/apiEndpoints.mjs';
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.mjs';
3
+ import './generated/operations.mjs';
4
+ import './generated/types.mjs';
5
+
6
+ declare enum MimeType {
7
+ /**
8
+ * JSON representation, used for transaction submission and accept type JSON output
9
+ */
10
+ JSON = "application/json",
11
+ /**
12
+ * BCS representation, used for accept type BCS output
13
+ */
14
+ BCS = "application/x-bcs",
15
+ /**
16
+ * BCS representation, used for transaction submission in BCS input
17
+ */
18
+ BCS_SIGNED_TRANSACTION = "application/x.aptos.signed_transaction+bcs"
19
+ }
20
+ /**
21
+ * Hex data as input to a function
22
+ */
23
+ type HexInput = string | Uint8Array;
24
+ /**
25
+ * TypeTag enum as they are represented in Rust
26
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/language_storage.rs#L27}
27
+ */
28
+ declare enum TypeTagVariants {
29
+ Bool = 0,
30
+ U8 = 1,
31
+ U64 = 2,
32
+ U128 = 3,
33
+ Address = 4,
34
+ Signer = 5,
35
+ Vector = 6,
36
+ Struct = 7,
37
+ U16 = 8,
38
+ U32 = 9,
39
+ U256 = 10,
40
+ Reference = 254,
41
+ Generic = 255
42
+ }
43
+ /**
44
+ * Script transaction arguments enum as they are represented in Rust
45
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/transaction_argument.rs#L11}
46
+ */
47
+ declare enum ScriptTransactionArgumentVariants {
48
+ U8 = 0,
49
+ U64 = 1,
50
+ U128 = 2,
51
+ Address = 3,
52
+ U8Vector = 4,
53
+ Bool = 5,
54
+ U16 = 6,
55
+ U32 = 7,
56
+ U256 = 8
57
+ }
58
+ /**
59
+ * Transaction payload enum as they are represented in Rust
60
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L478}
61
+ */
62
+ declare enum TransactionPayloadVariants {
63
+ Script = 0,
64
+ EntryFunction = 2,
65
+ Multisig = 3
66
+ }
67
+ /**
68
+ * Transaction variants enum as they are represented in Rust
69
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L440}
70
+ */
71
+ declare enum TransactionVariants {
72
+ MultiAgentTransaction = 0,
73
+ FeePayerTransaction = 1
74
+ }
75
+ /**
76
+ * Transaction Authenticator enum as they are represented in Rust
77
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L44}
78
+ */
79
+ declare enum TransactionAuthenticatorVariant {
80
+ Ed25519 = 0,
81
+ MultiEd25519 = 1,
82
+ MultiAgent = 2,
83
+ FeePayer = 3,
84
+ SingleSender = 4
85
+ }
86
+ /**
87
+ * Transaction Authenticator enum as they are represented in Rust
88
+ * {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L414}
89
+ */
90
+ declare enum AccountAuthenticatorVariant {
91
+ Ed25519 = 0,
92
+ MultiEd25519 = 1,
93
+ SingleKey = 2,
94
+ MultiKey = 3
95
+ }
96
+ declare enum AnyPublicKeyVariant {
97
+ Ed25519 = 0,
98
+ Secp256k1 = 1
99
+ }
100
+ declare enum AnySignatureVariant {
101
+ Ed25519 = 0,
102
+ Secp256k1 = 1
103
+ }
104
+ /**
105
+ * BCS types
106
+ */
107
+ type Uint8 = number;
108
+ type Uint16 = number;
109
+ type Uint32 = number;
110
+ type Uint64 = bigint;
111
+ type Uint128 = bigint;
112
+ type Uint256 = bigint;
113
+ type AnyNumber = number | bigint;
114
+ /**
115
+ * Set of configuration options that can be provided when initializing the SDK.
116
+ * The purpose of these options is to configure various aspects of the SDK's
117
+ * behavior and interaction with the Aptos network
118
+ */
119
+ type AptosSettings = {
120
+ readonly network?: Network;
121
+ readonly fullnode?: string;
122
+ readonly faucet?: string;
123
+ readonly indexer?: string;
124
+ readonly clientConfig?: ClientConfig;
125
+ readonly client?: Client;
126
+ };
127
+ /**
128
+ *
129
+ * Controls the number of results that are returned and the starting position of those results.
130
+ * @param offset parameter specifies the starting position of the query result within the set of data. Default is 0.
131
+ * @param limit specifies the maximum number of items or records to return in a query result. Default is 25.
132
+ */
133
+ interface PaginationArgs {
134
+ offset?: AnyNumber;
135
+ limit?: number;
136
+ }
137
+ /**
138
+ * QUERY TYPES
139
+ */
140
+ /**
141
+ * A configuration object we can pass with the request to the server.
142
+ *
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}}
145
+ * @param HEADERS - extra headers we want to send with the request
146
+ * @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
147
+ */
148
+ type ClientConfig = {
149
+ AUTH_TOKEN?: string;
150
+ API_KEY?: string;
151
+ HEADERS?: Record<string, string | number | boolean>;
152
+ WITH_CREDENTIALS?: boolean;
153
+ };
154
+ interface ClientRequest<Req> {
155
+ url: string;
156
+ method: "GET" | "POST";
157
+ body?: Req;
158
+ contentType?: string;
159
+ params?: any;
160
+ overrides?: ClientConfig;
161
+ headers?: Record<string, any>;
162
+ }
163
+ interface ClientResponse<Res> {
164
+ status: number;
165
+ statusText: string;
166
+ data: Res;
167
+ config?: any;
168
+ request?: any;
169
+ response?: any;
170
+ headers?: any;
171
+ }
172
+ interface Client {
173
+ provider<Req, Res>(requestOptions: ClientRequest<Req>): Promise<ClientResponse<Res>>;
174
+ }
175
+ /**
176
+ * The API request type
177
+ *
178
+ * @param url - the url to make the request to, i.e https://fullnode.aptoslabs.devnet.com/v1
179
+ * @param method - the request method "GET" | "POST"
180
+ * @param endpoint (optional) - the endpoint to make the request to, i.e transactions
181
+ * @param body (optional) - the body of the request
182
+ * @param contentType (optional) - the content type to set the `content-type` header to,
183
+ * by default is set to `application/json`
184
+ * @param params (optional) - query params to add to the request
185
+ * @param originMethod (optional) - the local method the request came from
186
+ * @param overrides (optional) - a `ClientConfig` object type to override request data
187
+ */
188
+ type AptosRequest = {
189
+ url: string;
190
+ method: "GET" | "POST";
191
+ path?: string;
192
+ body?: any;
193
+ contentType?: string;
194
+ acceptType?: string;
195
+ params?: Record<string, string | AnyNumber | boolean | undefined>;
196
+ originMethod?: string;
197
+ overrides?: ClientConfig;
198
+ };
199
+ /**
200
+ * Specifies ledger version of transactions. By default latest version will be used
201
+ */
202
+ type LedgerVersion = {
203
+ ledgerVersion?: AnyNumber;
204
+ };
205
+ /**
206
+ * RESPONSE TYPES
207
+ */
208
+ /**
209
+ * Type holding the outputs of the estimate gas API
210
+ */
211
+ type GasEstimation = {
212
+ /**
213
+ * The deprioritized estimate for the gas unit price
214
+ */
215
+ deprioritized_gas_estimate?: number;
216
+ /**
217
+ * The current estimate for the gas unit price
218
+ */
219
+ gas_estimate: number;
220
+ /**
221
+ * The prioritized estimate for the gas unit price
222
+ */
223
+ prioritized_gas_estimate?: number;
224
+ };
225
+ type MoveResource = {
226
+ type: MoveStructId;
227
+ data: {};
228
+ };
229
+ type AccountData = {
230
+ sequence_number: string;
231
+ authentication_key: string;
232
+ };
233
+ type MoveModuleBytecode = {
234
+ bytecode: string;
235
+ abi?: MoveModule;
236
+ };
237
+ /**
238
+ * TRANSACTION TYPES
239
+ */
240
+ declare enum TransactionResponseType {
241
+ Pending = "pending_transaction",
242
+ User = "user_transaction",
243
+ Genesis = "genesis_transaction",
244
+ BlockMetadata = "block_metadata_transaction",
245
+ StateCheckpoint = "state_checkpoint_transaction"
246
+ }
247
+ type TransactionResponse = PendingTransactionResponse | UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse;
248
+ type PendingTransactionResponse = {
249
+ type: TransactionResponseType.Pending;
250
+ hash: string;
251
+ sender: string;
252
+ sequence_number: string;
253
+ max_gas_amount: string;
254
+ gas_unit_price: string;
255
+ expiration_timestamp_secs: string;
256
+ payload: TransactionPayloadResponse;
257
+ signature?: TransactionSignature;
258
+ };
259
+ type UserTransactionResponse = {
260
+ type: TransactionResponseType.User;
261
+ version: string;
262
+ hash: string;
263
+ state_change_hash: string;
264
+ event_root_hash: string;
265
+ state_checkpoint_hash?: string;
266
+ gas_used: string;
267
+ /**
268
+ * Whether the transaction was successful
269
+ */
270
+ success: boolean;
271
+ /**
272
+ * The VM status of the transaction, can tell useful information in a failure
273
+ */
274
+ vm_status: string;
275
+ accumulator_root_hash: string;
276
+ /**
277
+ * Final state of resources changed by the transaction
278
+ */
279
+ changes: Array<WriteSetChange>;
280
+ sender: string;
281
+ sequence_number: string;
282
+ max_gas_amount: string;
283
+ gas_unit_price: string;
284
+ expiration_timestamp_secs: string;
285
+ payload: TransactionPayloadResponse;
286
+ signature?: TransactionSignature;
287
+ /**
288
+ * Events generated by the transaction
289
+ */
290
+ events: Array<Event>;
291
+ timestamp: string;
292
+ };
293
+ type GenesisTransactionResponse = {
294
+ type: TransactionResponseType.Genesis;
295
+ version: string;
296
+ hash: string;
297
+ state_change_hash: string;
298
+ event_root_hash: string;
299
+ state_checkpoint_hash?: string;
300
+ gas_used: string;
301
+ /**
302
+ * Whether the transaction was successful
303
+ */
304
+ success: boolean;
305
+ /**
306
+ * The VM status of the transaction, can tell useful information in a failure
307
+ */
308
+ vm_status: string;
309
+ accumulator_root_hash: string;
310
+ /**
311
+ * Final state of resources changed by the transaction
312
+ */
313
+ changes: Array<WriteSetChange>;
314
+ payload: GenesisPayload;
315
+ /**
316
+ * Events emitted during genesis
317
+ */
318
+ events: Array<Event>;
319
+ };
320
+ type BlockMetadataTransactionResponse = {
321
+ type: TransactionResponseType.BlockMetadata;
322
+ version: string;
323
+ hash: string;
324
+ state_change_hash: string;
325
+ event_root_hash: string;
326
+ state_checkpoint_hash?: string;
327
+ gas_used: string;
328
+ /**
329
+ * Whether the transaction was successful
330
+ */
331
+ success: boolean;
332
+ /**
333
+ * The VM status of the transaction, can tell useful information in a failure
334
+ */
335
+ vm_status: string;
336
+ accumulator_root_hash: string;
337
+ /**
338
+ * Final state of resources changed by the transaction
339
+ */
340
+ changes: Array<WriteSetChange>;
341
+ id: string;
342
+ epoch: string;
343
+ round: string;
344
+ /**
345
+ * The events emitted at the block creation
346
+ */
347
+ events: Array<Event>;
348
+ /**
349
+ * Previous block votes
350
+ */
351
+ previous_block_votes_bitvec: Array<number>;
352
+ proposer: string;
353
+ /**
354
+ * The indices of the proposers who failed to propose
355
+ */
356
+ failed_proposer_indices: Array<number>;
357
+ timestamp: string;
358
+ };
359
+ type StateCheckpointTransactionResponse = {
360
+ type: TransactionResponseType.StateCheckpoint;
361
+ version: string;
362
+ hash: string;
363
+ state_change_hash: string;
364
+ event_root_hash: string;
365
+ state_checkpoint_hash?: string;
366
+ gas_used: string;
367
+ /**
368
+ * Whether the transaction was successful
369
+ */
370
+ success: boolean;
371
+ /**
372
+ * The VM status of the transaction, can tell useful information in a failure
373
+ */
374
+ vm_status: string;
375
+ accumulator_root_hash: string;
376
+ /**
377
+ * Final state of resources changed by the transaction
378
+ */
379
+ changes: Array<WriteSetChange>;
380
+ timestamp: string;
381
+ };
382
+ /**
383
+ * WRITESET CHANGE TYPES
384
+ */
385
+ type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
386
+ type WriteSetChangeDeleteModule = {
387
+ type: string;
388
+ address: string;
389
+ /**
390
+ * State key hash
391
+ */
392
+ state_key_hash: string;
393
+ module: MoveModuleId;
394
+ };
395
+ type WriteSetChangeDeleteResource = {
396
+ type: string;
397
+ address: string;
398
+ state_key_hash: string;
399
+ resource: string;
400
+ };
401
+ type WriteSetChangeDeleteTableItem = {
402
+ type: string;
403
+ state_key_hash: string;
404
+ handle: string;
405
+ key: string;
406
+ data?: DeletedTableData;
407
+ };
408
+ type WriteSetChangeWriteModule = {
409
+ type: string;
410
+ address: string;
411
+ state_key_hash: string;
412
+ data: MoveModuleBytecode;
413
+ };
414
+ type WriteSetChangeWriteResource = {
415
+ type: string;
416
+ address: string;
417
+ state_key_hash: string;
418
+ data: MoveResource;
419
+ };
420
+ type WriteSetChangeWriteTableItem = {
421
+ type: string;
422
+ state_key_hash: string;
423
+ handle: string;
424
+ key: string;
425
+ value: string;
426
+ data?: DecodedTableData;
427
+ };
428
+ type DecodedTableData = {
429
+ /**
430
+ * Key of table in JSON
431
+ */
432
+ key: any;
433
+ /**
434
+ * Type of key
435
+ */
436
+ key_type: string;
437
+ /**
438
+ * Value of table in JSON
439
+ */
440
+ value: any;
441
+ /**
442
+ * Type of value
443
+ */
444
+ value_type: string;
445
+ };
446
+ /**
447
+ * Deleted table data
448
+ */
449
+ type DeletedTableData = {
450
+ /**
451
+ * Deleted key
452
+ */
453
+ key: any;
454
+ /**
455
+ * Deleted key type
456
+ */
457
+ key_type: string;
458
+ };
459
+ type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
460
+ type EntryFunctionPayloadResponse = {
461
+ type: string;
462
+ function: MoveFunctionId;
463
+ /**
464
+ * Type arguments of the function
465
+ */
466
+ type_arguments: Array<string>;
467
+ /**
468
+ * Arguments of the function
469
+ */
470
+ arguments: Array<any>;
471
+ };
472
+ type ScriptPayloadResponse = {
473
+ type: string;
474
+ code: MoveScriptBytecode;
475
+ /**
476
+ * Type arguments of the function
477
+ */
478
+ type_arguments: Array<string>;
479
+ /**
480
+ * Arguments of the function
481
+ */
482
+ arguments: Array<any>;
483
+ };
484
+ type MultisigPayloadResponse = {
485
+ type: string;
486
+ multisig_address: string;
487
+ transaction_payload?: EntryFunctionPayloadResponse;
488
+ };
489
+ type GenesisPayload = {
490
+ type: string;
491
+ write_set: WriteSet;
492
+ };
493
+ /**
494
+ * Move script bytecode
495
+ */
496
+ type MoveScriptBytecode = {
497
+ bytecode: string;
498
+ abi?: MoveFunction;
499
+ };
500
+ /**
501
+ * These are the JSON representations of transaction signatures returned from the node API.
502
+ */
503
+ type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
504
+ type TransactionEd25519Signature = {
505
+ type: string;
506
+ public_key: string;
507
+ signature: "ed25519_signature";
508
+ };
509
+ type TransactionSecp256k1Signature = {
510
+ type: string;
511
+ public_key: string;
512
+ signature: "secp256k1_ecdsa_signature";
513
+ };
514
+ type TransactionMultiEd25519Signature = {
515
+ type: "multi_ed25519_signature";
516
+ /**
517
+ * The public keys for the Ed25519 signature
518
+ */
519
+ public_keys: Array<string>;
520
+ /**
521
+ * Signature associated with the public keys in the same order
522
+ */
523
+ signatures: Array<string>;
524
+ /**
525
+ * The number of signatures required for a successful transaction
526
+ */
527
+ threshold: number;
528
+ bitmap: string;
529
+ };
530
+ type TransactionMultiAgentSignature = {
531
+ type: "multi_agent_signature";
532
+ sender: AccountSignature;
533
+ /**
534
+ * The other involved parties' addresses
535
+ */
536
+ secondary_signer_addresses: Array<string>;
537
+ /**
538
+ * The associated signatures, in the same order as the secondary addresses
539
+ */
540
+ secondary_signers: Array<AccountSignature>;
541
+ };
542
+ type TransactionFeePayerSignature = {
543
+ type: "fee_payer_signature";
544
+ sender: AccountSignature;
545
+ /**
546
+ * The other involved parties' addresses
547
+ */
548
+ secondary_signer_addresses: Array<string>;
549
+ /**
550
+ * The associated signatures, in the same order as the secondary addresses
551
+ */
552
+ secondary_signers: Array<AccountSignature>;
553
+ fee_payer_address: string;
554
+ fee_payer_signer: AccountSignature;
555
+ };
556
+ /**
557
+ * The union of all single account signatures.
558
+ */
559
+ type AccountSignature = AccountEd25519Signature | AccountSecp256k1Signature | AccountMultiEd25519Signature;
560
+ type AccountEd25519Signature = TransactionEd25519Signature;
561
+ type AccountSecp256k1Signature = TransactionSecp256k1Signature;
562
+ type AccountMultiEd25519Signature = TransactionMultiEd25519Signature;
563
+ type WriteSet = ScriptWriteSet | DirectWriteSet;
564
+ type ScriptWriteSet = {
565
+ type: string;
566
+ execute_as: string;
567
+ script: ScriptPayloadResponse;
568
+ };
569
+ type DirectWriteSet = {
570
+ type: string;
571
+ changes: Array<WriteSetChange>;
572
+ events: Array<Event>;
573
+ };
574
+ type EventGuid = {
575
+ creation_number: string;
576
+ account_address: string;
577
+ };
578
+ type Event = {
579
+ guid: EventGuid;
580
+ sequence_number: string;
581
+ type: string;
582
+ /**
583
+ * The JSON representation of the event
584
+ */
585
+ data: any;
586
+ };
587
+ /**
588
+ * Map of Move types to local TypeScript types
589
+ */
590
+ type MoveUint8Type = number;
591
+ type MoveUint16Type = number;
592
+ type MoveUint32Type = number;
593
+ type MoveUint64Type = string;
594
+ type MoveUint128Type = string;
595
+ type MoveUint256Type = string;
596
+ type MoveAddressType = string;
597
+ type MoveObjectType = string;
598
+ type MoveOptionType = MoveType | null | undefined;
599
+ /**
600
+ * This is the format for a fully qualified struct, resource, or entry function in Move.
601
+ */
602
+ type MoveStructId = `${string}::${string}::${string}`;
603
+ type MoveFunctionId = MoveStructId;
604
+ type MoveStructType = {};
605
+ type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
606
+ /**
607
+ * Possible Move values acceptable by move functions (entry, view)
608
+ *
609
+ * Map of a Move value to the corresponding TypeScript value
610
+ *
611
+ * `Bool -> boolean`
612
+ *
613
+ * `u8, u16, u32 -> number`
614
+ *
615
+ * `u64, u128, u256 -> string`
616
+ *
617
+ * `String -> string`
618
+ *
619
+ * `Address -> 0x${string}`
620
+ *
621
+ * `Struct - 0x${string}::${string}::${string}`
622
+ *
623
+ * `Object -> 0x${string}`
624
+ *
625
+ * `Vector -> Array<MoveValue>`
626
+ *
627
+ * `Option -> MoveValue | null | undefined`
628
+ */
629
+ type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
630
+ /**
631
+ * Move module id is a string representation of Move module.
632
+ * Module name is case-sensitive.
633
+ */
634
+ type MoveModuleId = `${string}::${string}`;
635
+ /**
636
+ * Move function visibility
637
+ */
638
+ declare enum MoveFunctionVisibility {
639
+ PRIVATE = "private",
640
+ PUBLIC = "public",
641
+ FRIEND = "friend"
642
+ }
643
+ /**
644
+ * Move function ability
645
+ */
646
+ declare enum MoveAbility {
647
+ STORE = "store",
648
+ DROP = "drop",
649
+ KEY = "key",
650
+ COPY = "copy"
651
+ }
652
+ /**
653
+ * Move abilities tied to the generic type param and associated with the function that uses it
654
+ */
655
+ type MoveFunctionGenericTypeParam = {
656
+ constraints: Array<MoveAbility>;
657
+ };
658
+ /**
659
+ * Move struct field
660
+ */
661
+ type MoveStructField = {
662
+ name: string;
663
+ type: string;
664
+ };
665
+ /**
666
+ * A Move module
667
+ */
668
+ type MoveModule = {
669
+ address: string;
670
+ name: string;
671
+ /**
672
+ * Friends of the module
673
+ */
674
+ friends: Array<MoveModuleId>;
675
+ /**
676
+ * Public functions of the module
677
+ */
678
+ exposed_functions: Array<MoveFunction>;
679
+ /**
680
+ * Structs of the module
681
+ */
682
+ structs: Array<MoveStruct>;
683
+ };
684
+ /**
685
+ * A move struct
686
+ */
687
+ type MoveStruct = {
688
+ name: string;
689
+ /**
690
+ * Whether the struct is a native struct of Move
691
+ */
692
+ is_native: boolean;
693
+ /**
694
+ * Abilities associated with the struct
695
+ */
696
+ abilities: Array<MoveAbility>;
697
+ /**
698
+ * Generic types associated with the struct
699
+ */
700
+ generic_type_params: Array<MoveFunctionGenericTypeParam>;
701
+ /**
702
+ * Fields associated with the struct
703
+ */
704
+ fields: Array<MoveStructField>;
705
+ };
706
+ /**
707
+ * Move function
708
+ */
709
+ type MoveFunction = {
710
+ name: string;
711
+ visibility: MoveFunctionVisibility;
712
+ /**
713
+ * Whether the function can be called as an entry function directly in a transaction
714
+ */
715
+ is_entry: boolean;
716
+ /**
717
+ * Whether the function is a view function or not
718
+ */
719
+ is_view: boolean;
720
+ /**
721
+ * Generic type params associated with the Move function
722
+ */
723
+ generic_type_params: Array<MoveFunctionGenericTypeParam>;
724
+ /**
725
+ * Parameters associated with the move function
726
+ */
727
+ params: Array<string>;
728
+ /**
729
+ * Return type of the function
730
+ */
731
+ return: Array<string>;
732
+ };
733
+ declare enum RoleType {
734
+ VALIDATOR = "validator",
735
+ FULL_NODE = "full_node"
736
+ }
737
+ type LedgerInfo = {
738
+ /**
739
+ * Chain ID of the current chain
740
+ */
741
+ chain_id: number;
742
+ epoch: string;
743
+ ledger_version: string;
744
+ oldest_ledger_version: string;
745
+ ledger_timestamp: string;
746
+ node_role: RoleType;
747
+ oldest_block_height: string;
748
+ block_height: string;
749
+ /**
750
+ * Git hash of the build of the API endpoint. Can be used to determine the exact
751
+ * software version used by the API endpoint.
752
+ */
753
+ git_hash?: string;
754
+ };
755
+ /**
756
+ * A Block type
757
+ */
758
+ type Block = {
759
+ block_height: string;
760
+ block_hash: string;
761
+ block_timestamp: string;
762
+ first_version: string;
763
+ last_version: string;
764
+ /**
765
+ * The transactions in the block in sequential order
766
+ */
767
+ transactions?: Array<TransactionResponse>;
768
+ };
769
+ /**
770
+ * The data needed to generate a View Request payload
771
+ */
772
+ type InputViewRequestData = {
773
+ function: MoveFunctionId;
774
+ typeArguments?: Array<MoveStructId>;
775
+ functionArguments?: Array<MoveValue>;
776
+ };
777
+ /**
778
+ * View request for the Move view function API
779
+ *
780
+ * `type MoveFunctionId = ${string}::${string}::${string}`;
781
+ */
782
+ type ViewRequest = {
783
+ function: MoveFunctionId;
784
+ /**
785
+ * Type arguments of the function
786
+ */
787
+ typeArguments: Array<MoveStructId>;
788
+ /**
789
+ * Arguments of the function
790
+ */
791
+ functionArguments: Array<MoveValue>;
792
+ };
793
+ /**
794
+ * Table Item request for the GetTableItem API
795
+ */
796
+ type TableItemRequest = {
797
+ key_type: MoveValue;
798
+ value_type: MoveValue;
799
+ /**
800
+ * The value of the table item's key
801
+ */
802
+ key: any;
803
+ };
804
+ /**
805
+ * A list of Authentication Key schemes that are supported by Aptos.
806
+ *
807
+ * They are combinations of signing schemes and derive schemes.
808
+ */
809
+ type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
810
+ declare enum SigningScheme {
811
+ /**
812
+ * For Ed25519PublicKey
813
+ */
814
+ Ed25519 = 0,
815
+ /**
816
+ * For MultiEd25519PublicKey
817
+ */
818
+ MultiEd25519 = 1,
819
+ /**
820
+ * For SingleKey ecdsa
821
+ */
822
+ SingleKey = 2,
823
+ MultiKey = 3
824
+ }
825
+ declare enum SigningSchemeInput {
826
+ /**
827
+ * For Ed25519PublicKey
828
+ */
829
+ Ed25519 = 0,
830
+ /**
831
+ * For Secp256k1Ecdsa
832
+ */
833
+ Secp256k1Ecdsa = 2
834
+ }
835
+ /**
836
+ * Scheme used for deriving account addresses from other data
837
+ */
838
+ declare enum DeriveScheme {
839
+ /**
840
+ * Derives an address using an AUID, used for objects
841
+ */
842
+ DeriveAuid = 251,
843
+ /**
844
+ * Derives an address from another object address
845
+ */
846
+ DeriveObjectAddressFromObject = 252,
847
+ /**
848
+ * Derives an address from a GUID, used for objects
849
+ */
850
+ DeriveObjectAddressFromGuid = 253,
851
+ /**
852
+ * Derives an address from seed bytes, used for named objects
853
+ */
854
+ DeriveObjectAddressFromSeed = 254,
855
+ /**
856
+ * Derives an address from seed bytes, used for resource accounts
857
+ */
858
+ DeriveResourceAccountAddress = 255
859
+ }
860
+ /**
861
+ * Option properties to pass for waitForTransaction() function
862
+ */
863
+ type WaitForTransactionOptions = {
864
+ timeoutSecs?: number;
865
+ checkSuccess?: boolean;
866
+ indexerVersionCheck?: boolean;
867
+ };
868
+ /**
869
+ * Input type to generate an account using Single Signer
870
+ * Ed25519 or Legacy Ed25519
871
+ */
872
+ type GenerateAccountWithEd25519 = {
873
+ scheme: SigningSchemeInput.Ed25519;
874
+ legacy: boolean;
875
+ };
876
+ /**
877
+ * Input type to generate an account using Single Signer
878
+ * Secp256k1
879
+ */
880
+ type GenerateAccountWithSingleSignerSecp256k1Key = {
881
+ scheme: SigningSchemeInput.Secp256k1Ecdsa;
882
+ legacy?: false;
883
+ };
884
+ type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
885
+
886
+ 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, InputViewRequestData, LedgerInfo, LedgerVersion, MimeType, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOptionType, MoveResource, MoveScriptBytecode, MoveStruct, MoveStructField, MoveStructId, 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, WaitForTransactionOptions, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem };