@aptos-labs/ts-sdk 1.11.0 → 1.12.1

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 (338) hide show
  1. package/README.md +5 -6
  2. package/dist/common/index.d.ts +108 -31
  3. package/dist/common/index.js +26 -26
  4. package/dist/common/index.js.map +1 -1
  5. package/dist/esm/api/account.mjs +1 -1
  6. package/dist/esm/api/ans.d.mts +13 -11
  7. package/dist/esm/api/ans.mjs +1 -1
  8. package/dist/esm/api/aptos.d.mts +6 -4
  9. package/dist/esm/api/aptos.mjs +1 -1
  10. package/dist/esm/api/coin.d.mts +9 -7
  11. package/dist/esm/api/coin.mjs +1 -1
  12. package/dist/esm/api/digitalAsset.d.mts +3 -1
  13. package/dist/esm/api/digitalAsset.mjs +1 -1
  14. package/dist/esm/api/event.mjs +1 -1
  15. package/dist/esm/api/faucet.mjs +1 -1
  16. package/dist/esm/api/fungibleAsset.d.mts +6 -4
  17. package/dist/esm/api/fungibleAsset.mjs +1 -1
  18. package/dist/esm/api/general.d.mts +2 -0
  19. package/dist/esm/api/general.mjs +1 -1
  20. package/dist/esm/api/index.d.mts +6 -4
  21. package/dist/esm/api/index.mjs +1 -1
  22. package/dist/esm/api/staking.mjs +1 -1
  23. package/dist/esm/api/transaction.d.mts +6 -4
  24. package/dist/esm/api/transaction.mjs +1 -1
  25. package/dist/esm/api/transactionSubmission/build.d.mts +9 -7
  26. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  27. package/dist/esm/api/transactionSubmission/management.d.mts +5 -3
  28. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/sign.d.mts +2 -0
  30. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  32. package/dist/esm/api/transactionSubmission/simulate.d.mts +2 -0
  33. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  34. package/dist/esm/api/transactionSubmission/submit.d.mts +2 -0
  35. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  36. package/dist/esm/api/utils.mjs +1 -1
  37. package/dist/esm/bcs/index.mjs +1 -1
  38. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  39. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  40. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  41. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  42. package/dist/esm/bcs/serializer.mjs +1 -1
  43. package/dist/esm/chunk-25UTAIJG.mjs +2 -0
  44. package/dist/esm/chunk-25UTAIJG.mjs.map +1 -0
  45. package/dist/esm/{chunk-SQW7K56J.mjs → chunk-35EWRSDK.mjs} +2 -2
  46. package/dist/esm/{chunk-VKWPCOZA.mjs → chunk-36QXVFR5.mjs} +2 -2
  47. package/dist/esm/{chunk-3RRZ4MSV.mjs → chunk-3MFILHZT.mjs} +2 -2
  48. package/dist/esm/{chunk-4P6KFDXF.mjs → chunk-3PMUIXFS.mjs} +2 -2
  49. package/dist/esm/chunk-3PMUIXFS.mjs.map +1 -0
  50. package/dist/esm/{chunk-CIMZIZY3.mjs → chunk-3RQ5V3F3.mjs} +2 -2
  51. package/dist/esm/{chunk-VNNLHEJ4.mjs → chunk-4AVC2RCH.mjs} +2 -2
  52. package/dist/esm/chunk-4NHWV5AI.mjs +2 -0
  53. package/dist/esm/{chunk-NDV4GZ5U.mjs → chunk-527DYQ3X.mjs} +2 -2
  54. package/dist/esm/chunk-527DYQ3X.mjs.map +1 -0
  55. package/dist/esm/{chunk-XDZF5IUF.mjs → chunk-5EN52MUT.mjs} +2 -2
  56. package/dist/esm/chunk-5ID6W7XL.mjs +2 -0
  57. package/dist/esm/chunk-5ID6W7XL.mjs.map +1 -0
  58. package/dist/esm/{chunk-U5CKFPSM.mjs → chunk-5NWTYUKC.mjs} +2 -2
  59. package/dist/esm/chunk-5NWTYUKC.mjs.map +1 -0
  60. package/dist/esm/{chunk-XXKA2GO7.mjs → chunk-5ZQJLHJA.mjs} +2 -2
  61. package/dist/esm/chunk-5ZQJLHJA.mjs.map +1 -0
  62. package/dist/esm/chunk-6O5ZR5ME.mjs +2 -0
  63. package/dist/esm/chunk-6O5ZR5ME.mjs.map +1 -0
  64. package/dist/esm/{chunk-JLDOXN33.mjs → chunk-A7XZTJ3D.mjs} +2 -2
  65. package/dist/esm/{chunk-NHVLEE5G.mjs → chunk-AIPKOP3K.mjs} +2 -2
  66. package/dist/esm/chunk-AIPKOP3K.mjs.map +1 -0
  67. package/dist/esm/chunk-ARGODLTZ.mjs +2 -0
  68. package/dist/esm/chunk-ARGODLTZ.mjs.map +1 -0
  69. package/dist/esm/chunk-ASXXZH2D.mjs +2 -0
  70. package/dist/esm/chunk-ASXXZH2D.mjs.map +1 -0
  71. package/dist/esm/{chunk-2TRSGKMS.mjs → chunk-B4DWWHNL.mjs} +2 -2
  72. package/dist/esm/{chunk-EBCIZ4D6.mjs → chunk-B7X6PSE7.mjs} +2 -2
  73. package/dist/esm/{chunk-Y7G5W2QZ.mjs → chunk-BAYKVJBZ.mjs} +2 -2
  74. package/dist/esm/chunk-BCUSI3N6.mjs +2 -0
  75. package/dist/esm/chunk-BCUSI3N6.mjs.map +1 -0
  76. package/dist/esm/{chunk-O5L7WGNH.mjs → chunk-CAGDOGXS.mjs} +2 -2
  77. package/dist/esm/{chunk-TTM66JZ4.mjs → chunk-CEHCDA3G.mjs} +2 -2
  78. package/dist/esm/{chunk-LD7YBNH5.mjs → chunk-CP4QCRBZ.mjs} +2 -2
  79. package/dist/esm/chunk-CXR7MOBW.mjs +2 -0
  80. package/dist/esm/{chunk-LNS5RI5S.mjs.map → chunk-CXR7MOBW.mjs.map} +1 -1
  81. package/dist/esm/{chunk-JF4E53MH.mjs → chunk-DGLW7OBS.mjs} +2 -2
  82. package/dist/esm/{chunk-JF4E53MH.mjs.map → chunk-DGLW7OBS.mjs.map} +1 -1
  83. package/dist/esm/{chunk-T43CJS4C.mjs → chunk-DUP7XY5P.mjs} +2 -2
  84. package/dist/esm/{chunk-VBSAEAWA.mjs → chunk-EJBUUMWV.mjs} +2 -2
  85. package/dist/esm/{chunk-HYQSORWM.mjs → chunk-EV75CYGN.mjs} +2 -2
  86. package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
  87. package/dist/esm/chunk-F7EMGK4M.mjs.map +1 -0
  88. package/dist/esm/{chunk-HSITRYZ5.mjs → chunk-FC5MU6ZN.mjs} +2 -2
  89. package/dist/esm/{chunk-JKXSSRNT.mjs → chunk-FNLRLSGJ.mjs} +2 -2
  90. package/dist/esm/{chunk-JEQSSMDK.mjs → chunk-FPD4JBPV.mjs} +2 -2
  91. package/dist/esm/{chunk-HEDMDM2U.mjs → chunk-FVMJDRHO.mjs} +2 -2
  92. package/dist/esm/chunk-FVMJDRHO.mjs.map +1 -0
  93. package/dist/esm/chunk-FXHXOVL4.mjs +2 -0
  94. package/dist/esm/chunk-FXHXOVL4.mjs.map +1 -0
  95. package/dist/esm/{chunk-RP4FMC6O.mjs → chunk-G56GPLTB.mjs} +2 -2
  96. package/dist/esm/chunk-GJDGR3KQ.mjs +2 -0
  97. package/dist/esm/chunk-GJDGR3KQ.mjs.map +1 -0
  98. package/dist/esm/{chunk-Y3R5DLBS.mjs → chunk-HJYT6LDB.mjs} +2 -2
  99. package/dist/esm/chunk-ICXA3DZH.mjs +1 -0
  100. package/dist/esm/{chunk-RWBAKP5G.mjs → chunk-IZF6DFAL.mjs} +2 -2
  101. package/dist/esm/{chunk-AVQSQJUO.mjs → chunk-JOLLCFQL.mjs} +2 -2
  102. package/dist/esm/chunk-KAGLWBIJ.mjs +2 -0
  103. package/dist/esm/chunk-KAGLWBIJ.mjs.map +1 -0
  104. package/dist/esm/{chunk-A5ACWD7S.mjs → chunk-KQB7A4OX.mjs} +2 -2
  105. package/dist/esm/{chunk-VK3H7DMJ.mjs → chunk-KXFMI7RM.mjs} +2 -2
  106. package/dist/esm/{chunk-PAY4TBCF.mjs → chunk-L54P6EGN.mjs} +2 -2
  107. package/dist/esm/{chunk-PAY4TBCF.mjs.map → chunk-L54P6EGN.mjs.map} +1 -1
  108. package/dist/esm/{chunk-O22J7RER.mjs → chunk-M4SQNMCW.mjs} +2 -2
  109. package/dist/esm/{chunk-JX3IRXNX.mjs → chunk-MJPUASSD.mjs} +2 -2
  110. package/dist/esm/{chunk-2BGOMPDV.mjs → chunk-N3U47Y6Y.mjs} +2 -2
  111. package/dist/esm/{chunk-3EKNELIS.mjs → chunk-NF5OUPPU.mjs} +2 -2
  112. package/dist/esm/{chunk-AT2HAXSH.mjs → chunk-O3YFCZJ5.mjs} +2 -2
  113. package/dist/esm/{chunk-4LQNMXX3.mjs → chunk-PF57EOJY.mjs} +2 -2
  114. package/dist/esm/{chunk-Q5GNCAA6.mjs → chunk-QJAI7DNA.mjs} +2 -2
  115. package/dist/esm/{chunk-GHMYWL3R.mjs → chunk-QRS4DGP3.mjs} +2 -2
  116. package/dist/esm/{chunk-P434YHBQ.mjs → chunk-QRVYLV76.mjs} +2 -2
  117. package/dist/esm/{chunk-CJLZV5JK.mjs → chunk-RIUFW2OG.mjs} +2 -2
  118. package/dist/esm/{chunk-QDD2MDJZ.mjs → chunk-SRDIYE3M.mjs} +2 -2
  119. package/dist/esm/{chunk-AE2K65NN.mjs → chunk-SUTBXHYU.mjs} +2 -2
  120. package/dist/esm/chunk-SUTBXHYU.mjs.map +1 -0
  121. package/dist/esm/{chunk-H4Q7YQD3.mjs → chunk-SWZOGZJ6.mjs} +2 -2
  122. package/dist/esm/chunk-SZKJ3TC5.mjs +1 -0
  123. package/dist/esm/chunk-SZKJ3TC5.mjs.map +1 -0
  124. package/dist/esm/{chunk-43QJL2AV.mjs → chunk-T4C6BVXK.mjs} +2 -2
  125. package/dist/esm/{chunk-WHNLDDPT.mjs → chunk-U3YYSIIT.mjs} +2 -2
  126. package/dist/esm/{chunk-Y3CHPF6X.mjs → chunk-UEKKYJGA.mjs} +2 -2
  127. package/dist/esm/chunk-UGPALAPN.mjs +2 -0
  128. package/dist/esm/{chunk-W5PK4QCX.mjs → chunk-UQCSBLD5.mjs} +2 -2
  129. package/dist/esm/{chunk-C62XI6VN.mjs → chunk-VBDMQERT.mjs} +2 -2
  130. package/dist/esm/{chunk-27ML4NFD.mjs → chunk-VHANL47W.mjs} +2 -2
  131. package/dist/esm/{chunk-OWEAY3N3.mjs → chunk-VLNBGWGX.mjs} +2 -2
  132. package/dist/esm/chunk-VNIABDOT.mjs +2 -0
  133. package/dist/esm/chunk-VNIABDOT.mjs.map +1 -0
  134. package/dist/esm/{chunk-BWG5NCHC.mjs → chunk-XDXI3TRT.mjs} +2 -2
  135. package/dist/esm/{chunk-2NC32JRF.mjs → chunk-XX5J7KKC.mjs} +2 -2
  136. package/dist/esm/{chunk-HYOPI6T2.mjs → chunk-YG6YYQRG.mjs} +2 -2
  137. package/dist/esm/{chunk-OH6HD5SF.mjs → chunk-YIGDWPGM.mjs} +2 -2
  138. package/dist/esm/chunk-YIGDWPGM.mjs.map +1 -0
  139. package/dist/esm/cli/index.mjs +1 -1
  140. package/dist/esm/cli/localNode.d.mts +1 -1
  141. package/dist/esm/cli/localNode.mjs +1 -1
  142. package/dist/esm/client/core.mjs +1 -1
  143. package/dist/esm/client/get.mjs +1 -1
  144. package/dist/esm/client/index.mjs +1 -1
  145. package/dist/esm/client/post.mjs +1 -1
  146. package/dist/esm/core/account/Account.mjs +1 -1
  147. package/dist/esm/core/account/Ed25519Account.mjs +1 -1
  148. package/dist/esm/core/account/SingleKeyAccount.mjs +1 -1
  149. package/dist/esm/core/account/index.d.mts +1 -1
  150. package/dist/esm/core/account/index.mjs +1 -1
  151. package/dist/esm/core/account/utils/address.d.mts +10 -1
  152. package/dist/esm/core/account/utils/address.mjs +1 -1
  153. package/dist/esm/core/account/utils/index.d.mts +1 -1
  154. package/dist/esm/core/account/utils/index.mjs +1 -1
  155. package/dist/esm/core/accountAddress.mjs +1 -1
  156. package/dist/esm/core/authenticationKey.mjs +1 -1
  157. package/dist/esm/core/crypto/ed25519.d.mts +2 -2
  158. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  159. package/dist/esm/core/crypto/index.mjs +1 -1
  160. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  161. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  162. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  163. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  164. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  165. package/dist/esm/core/crypto/signature.mjs +1 -1
  166. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  167. package/dist/esm/core/crypto/utils.d.mts +16 -0
  168. package/dist/esm/core/crypto/utils.mjs +2 -0
  169. package/dist/esm/core/crypto/utils.mjs.map +1 -0
  170. package/dist/esm/core/hex.d.mts +2 -2
  171. package/dist/esm/core/hex.mjs +1 -1
  172. package/dist/esm/core/index.d.mts +1 -1
  173. package/dist/esm/core/index.mjs +1 -1
  174. package/dist/esm/index.d.mts +7 -3
  175. package/dist/esm/index.mjs +1 -1
  176. package/dist/esm/internal/account.d.mts +1 -1
  177. package/dist/esm/internal/account.mjs +1 -1
  178. package/dist/esm/internal/ans.d.mts +8 -6
  179. package/dist/esm/internal/ans.mjs +1 -1
  180. package/dist/esm/internal/coin.d.mts +3 -1
  181. package/dist/esm/internal/coin.mjs +1 -1
  182. package/dist/esm/internal/digitalAsset.d.mts +5 -3
  183. package/dist/esm/internal/digitalAsset.mjs +1 -1
  184. package/dist/esm/internal/event.d.mts +1 -1
  185. package/dist/esm/internal/event.mjs +1 -1
  186. package/dist/esm/internal/faucet.mjs +1 -1
  187. package/dist/esm/internal/fungibleAsset.d.mts +7 -5
  188. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  189. package/dist/esm/internal/general.mjs +1 -1
  190. package/dist/esm/internal/staking.d.mts +2 -2
  191. package/dist/esm/internal/staking.mjs +1 -1
  192. package/dist/esm/internal/transaction.mjs +1 -1
  193. package/dist/esm/internal/transactionSubmission.d.mts +7 -5
  194. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  195. package/dist/esm/internal/view.d.mts +2 -0
  196. package/dist/esm/internal/view.mjs +1 -1
  197. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  198. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  199. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  200. package/dist/esm/transactions/index.d.mts +4 -2
  201. package/dist/esm/transactions/index.mjs +1 -1
  202. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  203. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  204. package/dist/esm/transactions/instances/index.d.mts +1 -0
  205. package/dist/esm/transactions/instances/index.mjs +1 -1
  206. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  207. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +41 -0
  208. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +2 -0
  209. package/dist/esm/transactions/instances/multiAgentTransaction.mjs.map +1 -0
  210. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  211. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  212. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  213. package/dist/esm/transactions/instances/simpleTransaction.d.mts +41 -0
  214. package/dist/esm/transactions/instances/simpleTransaction.mjs +2 -0
  215. package/dist/esm/transactions/instances/simpleTransaction.mjs.map +1 -0
  216. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  217. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  218. package/dist/esm/transactions/management/index.d.mts +2 -0
  219. package/dist/esm/transactions/management/index.mjs +1 -1
  220. package/dist/esm/transactions/management/transactionWorker.d.mts +3 -1
  221. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  222. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +2 -0
  223. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  224. package/dist/esm/transactions/transactionBuilder/index.d.mts +3 -1
  225. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  226. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +2 -0
  227. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  228. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +14 -2
  229. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  230. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  231. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  232. package/dist/esm/transactions/types.d.mts +3 -22
  233. package/dist/esm/version.d.mts +1 -1
  234. package/dist/esm/version.mjs +1 -1
  235. package/package.json +1 -1
  236. package/src/api/ans.ts +8 -7
  237. package/src/api/coin.ts +2 -1
  238. package/src/api/digitalAsset.ts +2 -1
  239. package/src/api/fungibleAsset.ts +2 -1
  240. package/src/api/transaction.ts +1 -1
  241. package/src/api/transactionSubmission/build.ts +3 -6
  242. package/src/cli/localNode.ts +1 -1
  243. package/src/core/account/utils/address.ts +18 -0
  244. package/src/core/crypto/ed25519.ts +7 -5
  245. package/src/core/crypto/secp256k1.ts +6 -4
  246. package/src/core/crypto/utils.ts +24 -0
  247. package/src/core/hex.ts +4 -4
  248. package/src/index.ts +1 -0
  249. package/src/internal/ans.ts +9 -5
  250. package/src/internal/coin.ts +2 -1
  251. package/src/internal/digitalAsset.ts +2 -1
  252. package/src/internal/fungibleAsset.ts +1 -1
  253. package/src/internal/transactionSubmission.ts +2 -2
  254. package/src/transactions/instances/index.ts +1 -0
  255. package/src/transactions/instances/multiAgentTransaction.ts +68 -0
  256. package/src/transactions/instances/simpleTransaction.ts +60 -0
  257. package/src/transactions/management/transactionWorker.ts +2 -1
  258. package/src/transactions/transactionBuilder/transactionBuilder.ts +38 -11
  259. package/src/transactions/types.ts +2 -23
  260. package/src/version.ts +1 -1
  261. package/dist/esm/chunk-3OOOAQJG.mjs +0 -2
  262. package/dist/esm/chunk-3OOOAQJG.mjs.map +0 -1
  263. package/dist/esm/chunk-4P6KFDXF.mjs.map +0 -1
  264. package/dist/esm/chunk-4UMTUJL5.mjs +0 -2
  265. package/dist/esm/chunk-4UMTUJL5.mjs.map +0 -1
  266. package/dist/esm/chunk-AE2K65NN.mjs.map +0 -1
  267. package/dist/esm/chunk-BZMO6Q6L.mjs +0 -2
  268. package/dist/esm/chunk-BZMO6Q6L.mjs.map +0 -1
  269. package/dist/esm/chunk-D2XKVVEN.mjs +0 -2
  270. package/dist/esm/chunk-D2XKVVEN.mjs.map +0 -1
  271. package/dist/esm/chunk-EXX55N2B.mjs +0 -2
  272. package/dist/esm/chunk-EXX55N2B.mjs.map +0 -1
  273. package/dist/esm/chunk-GQTC6QIS.mjs +0 -2
  274. package/dist/esm/chunk-GQTC6QIS.mjs.map +0 -1
  275. package/dist/esm/chunk-HEDMDM2U.mjs.map +0 -1
  276. package/dist/esm/chunk-HTZTTZQJ.mjs +0 -1
  277. package/dist/esm/chunk-IWPVPIKD.mjs +0 -2
  278. package/dist/esm/chunk-LG6SZTWR.mjs +0 -2
  279. package/dist/esm/chunk-LG6SZTWR.mjs.map +0 -1
  280. package/dist/esm/chunk-LNS5RI5S.mjs +0 -2
  281. package/dist/esm/chunk-NDV4GZ5U.mjs.map +0 -1
  282. package/dist/esm/chunk-NHVLEE5G.mjs.map +0 -1
  283. package/dist/esm/chunk-OH5ADEJO.mjs +0 -2
  284. package/dist/esm/chunk-OH6HD5SF.mjs.map +0 -1
  285. package/dist/esm/chunk-TBSPLLCB.mjs +0 -2
  286. package/dist/esm/chunk-TBSPLLCB.mjs.map +0 -1
  287. package/dist/esm/chunk-U5CKFPSM.mjs.map +0 -1
  288. package/dist/esm/chunk-XXKA2GO7.mjs.map +0 -1
  289. /package/dist/esm/{chunk-SQW7K56J.mjs.map → chunk-35EWRSDK.mjs.map} +0 -0
  290. /package/dist/esm/{chunk-VKWPCOZA.mjs.map → chunk-36QXVFR5.mjs.map} +0 -0
  291. /package/dist/esm/{chunk-3RRZ4MSV.mjs.map → chunk-3MFILHZT.mjs.map} +0 -0
  292. /package/dist/esm/{chunk-CIMZIZY3.mjs.map → chunk-3RQ5V3F3.mjs.map} +0 -0
  293. /package/dist/esm/{chunk-VNNLHEJ4.mjs.map → chunk-4AVC2RCH.mjs.map} +0 -0
  294. /package/dist/esm/{chunk-IWPVPIKD.mjs.map → chunk-4NHWV5AI.mjs.map} +0 -0
  295. /package/dist/esm/{chunk-XDZF5IUF.mjs.map → chunk-5EN52MUT.mjs.map} +0 -0
  296. /package/dist/esm/{chunk-JLDOXN33.mjs.map → chunk-A7XZTJ3D.mjs.map} +0 -0
  297. /package/dist/esm/{chunk-2TRSGKMS.mjs.map → chunk-B4DWWHNL.mjs.map} +0 -0
  298. /package/dist/esm/{chunk-EBCIZ4D6.mjs.map → chunk-B7X6PSE7.mjs.map} +0 -0
  299. /package/dist/esm/{chunk-Y7G5W2QZ.mjs.map → chunk-BAYKVJBZ.mjs.map} +0 -0
  300. /package/dist/esm/{chunk-O5L7WGNH.mjs.map → chunk-CAGDOGXS.mjs.map} +0 -0
  301. /package/dist/esm/{chunk-TTM66JZ4.mjs.map → chunk-CEHCDA3G.mjs.map} +0 -0
  302. /package/dist/esm/{chunk-LD7YBNH5.mjs.map → chunk-CP4QCRBZ.mjs.map} +0 -0
  303. /package/dist/esm/{chunk-T43CJS4C.mjs.map → chunk-DUP7XY5P.mjs.map} +0 -0
  304. /package/dist/esm/{chunk-VBSAEAWA.mjs.map → chunk-EJBUUMWV.mjs.map} +0 -0
  305. /package/dist/esm/{chunk-HYQSORWM.mjs.map → chunk-EV75CYGN.mjs.map} +0 -0
  306. /package/dist/esm/{chunk-HSITRYZ5.mjs.map → chunk-FC5MU6ZN.mjs.map} +0 -0
  307. /package/dist/esm/{chunk-JKXSSRNT.mjs.map → chunk-FNLRLSGJ.mjs.map} +0 -0
  308. /package/dist/esm/{chunk-JEQSSMDK.mjs.map → chunk-FPD4JBPV.mjs.map} +0 -0
  309. /package/dist/esm/{chunk-RP4FMC6O.mjs.map → chunk-G56GPLTB.mjs.map} +0 -0
  310. /package/dist/esm/{chunk-Y3R5DLBS.mjs.map → chunk-HJYT6LDB.mjs.map} +0 -0
  311. /package/dist/esm/{chunk-HTZTTZQJ.mjs.map → chunk-ICXA3DZH.mjs.map} +0 -0
  312. /package/dist/esm/{chunk-RWBAKP5G.mjs.map → chunk-IZF6DFAL.mjs.map} +0 -0
  313. /package/dist/esm/{chunk-AVQSQJUO.mjs.map → chunk-JOLLCFQL.mjs.map} +0 -0
  314. /package/dist/esm/{chunk-A5ACWD7S.mjs.map → chunk-KQB7A4OX.mjs.map} +0 -0
  315. /package/dist/esm/{chunk-VK3H7DMJ.mjs.map → chunk-KXFMI7RM.mjs.map} +0 -0
  316. /package/dist/esm/{chunk-O22J7RER.mjs.map → chunk-M4SQNMCW.mjs.map} +0 -0
  317. /package/dist/esm/{chunk-JX3IRXNX.mjs.map → chunk-MJPUASSD.mjs.map} +0 -0
  318. /package/dist/esm/{chunk-2BGOMPDV.mjs.map → chunk-N3U47Y6Y.mjs.map} +0 -0
  319. /package/dist/esm/{chunk-3EKNELIS.mjs.map → chunk-NF5OUPPU.mjs.map} +0 -0
  320. /package/dist/esm/{chunk-AT2HAXSH.mjs.map → chunk-O3YFCZJ5.mjs.map} +0 -0
  321. /package/dist/esm/{chunk-4LQNMXX3.mjs.map → chunk-PF57EOJY.mjs.map} +0 -0
  322. /package/dist/esm/{chunk-Q5GNCAA6.mjs.map → chunk-QJAI7DNA.mjs.map} +0 -0
  323. /package/dist/esm/{chunk-GHMYWL3R.mjs.map → chunk-QRS4DGP3.mjs.map} +0 -0
  324. /package/dist/esm/{chunk-P434YHBQ.mjs.map → chunk-QRVYLV76.mjs.map} +0 -0
  325. /package/dist/esm/{chunk-CJLZV5JK.mjs.map → chunk-RIUFW2OG.mjs.map} +0 -0
  326. /package/dist/esm/{chunk-QDD2MDJZ.mjs.map → chunk-SRDIYE3M.mjs.map} +0 -0
  327. /package/dist/esm/{chunk-H4Q7YQD3.mjs.map → chunk-SWZOGZJ6.mjs.map} +0 -0
  328. /package/dist/esm/{chunk-43QJL2AV.mjs.map → chunk-T4C6BVXK.mjs.map} +0 -0
  329. /package/dist/esm/{chunk-WHNLDDPT.mjs.map → chunk-U3YYSIIT.mjs.map} +0 -0
  330. /package/dist/esm/{chunk-Y3CHPF6X.mjs.map → chunk-UEKKYJGA.mjs.map} +0 -0
  331. /package/dist/esm/{chunk-OH5ADEJO.mjs.map → chunk-UGPALAPN.mjs.map} +0 -0
  332. /package/dist/esm/{chunk-W5PK4QCX.mjs.map → chunk-UQCSBLD5.mjs.map} +0 -0
  333. /package/dist/esm/{chunk-C62XI6VN.mjs.map → chunk-VBDMQERT.mjs.map} +0 -0
  334. /package/dist/esm/{chunk-27ML4NFD.mjs.map → chunk-VHANL47W.mjs.map} +0 -0
  335. /package/dist/esm/{chunk-OWEAY3N3.mjs.map → chunk-VLNBGWGX.mjs.map} +0 -0
  336. /package/dist/esm/{chunk-BWG5NCHC.mjs.map → chunk-XDXI3TRT.mjs.map} +0 -0
  337. /package/dist/esm/{chunk-2NC32JRF.mjs.map → chunk-XX5J7KKC.mjs.map} +0 -0
  338. /package/dist/esm/{chunk-HYOPI6T2.mjs.map → chunk-YG6YYQRG.mjs.map} +0 -0
package/README.md CHANGED
@@ -4,6 +4,11 @@
4
4
  [![Discord][discord-image]][discord-url]
5
5
  [![NPM Package Downloads][npm-image-downloads]][npm-url]
6
6
 
7
+ ### Reference Docs
8
+ 1. For SDK documentation, check out the [TypeScript SDK documentation](https://aptos.dev/sdks/new-ts-sdk/)
9
+ 2. For detailed reference documentation you can search, check out the [API reference documentation](https://aptos-labs.github.io/aptos-ts-sdk/) for the associated version.
10
+ 3. For in-depth examples, check out the [examples](./examples) folder with ready-made `package.json` files to get you going quickly!
11
+
7
12
  ### Latest Version
8
13
 
9
14
  [![NPM Package Version][npm-image-version]][npm-url]
@@ -169,12 +174,6 @@ const transaction = await aptos.transferCoinTransaction({
169
174
  const pendingTransaction = await aptos.signAndSubmitTransaction({ signer: alice, transaction });
170
175
  ```
171
176
 
172
- ## Documentation and examples
173
-
174
- - For full SDK documentation, check out the [TypeScript SDK documentation](https://aptos.dev/sdks/new-ts-sdk/)
175
- - For reference documenation, check out the [API reference documentation](https://aptos-labs.github.io/aptos-ts-sdk/) for the associated version.
176
- - For in-depth examples, check out the [examples](./examples) folder with ready-made `package.json` files to get you going quickly!
177
-
178
177
  ### Testing
179
178
 
180
179
  To run the SDK tests, simply run from the root of this repository:
@@ -1,4 +1,5 @@
1
1
  import EventEmitter from 'eventemitter3';
2
+ import { ChildProcessWithoutNullStreams } from 'child_process';
2
3
 
3
4
  declare const NetworkToIndexerAPI: Record<string, string>;
4
5
  declare const NetworkToNodeAPI: Record<string, string>;
@@ -1909,7 +1910,7 @@ declare enum HexInvalidReason {
1909
1910
  * with a leading 0x prefix, regardless of what the input format was.
1910
1911
  *
1911
1912
  * These are some other ways to chain the functions together:
1912
- * - `Hex.fromString({ hexInput: "0x1f" }).toUint8Array()`
1913
+ * - `Hex.fromHexString({ hexInput: "0x1f" }).toUint8Array()`
1913
1914
  * - `new Hex([1, 3]).toStringWithoutPrefix()`
1914
1915
  */
1915
1916
  declare class Hex {
@@ -1946,7 +1947,7 @@ declare class Hex {
1946
1947
  *
1947
1948
  * @returns Hex
1948
1949
  */
1949
- static fromString(str: string): Hex;
1950
+ static fromHexString(str: string): Hex;
1950
1951
  /**
1951
1952
  * Static method to convert an instance of HexInput to Hex
1952
1953
  *
@@ -2985,7 +2986,7 @@ declare class Ed25519PublicKey extends AccountPublicKey {
2985
2986
  constructor(hexInput: HexInput);
2986
2987
  /**
2987
2988
  * Verifies a signed data with a public key
2988
- * @param args.message a signed message
2989
+ * @param args.message a signed message as a Hex string or Uint8Array
2989
2990
  * @param args.signature the signature of the message
2990
2991
  */
2991
2992
  verifySignature(args: VerifySignatureArgs): boolean;
@@ -3064,7 +3065,7 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
3064
3065
  /**
3065
3066
  * Sign the given message with the private key.
3066
3067
  *
3067
- * @param message in HexInput format
3068
+ * @param message a message as a string or Uint8Array
3068
3069
  * @returns Signature
3069
3070
  */
3070
3071
  sign(message: HexInput): Ed25519Signature;
@@ -3497,7 +3498,7 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
3497
3498
  /**
3498
3499
  * Sign the given message with the private key.
3499
3500
  *
3500
- * @param message in HexInput format
3501
+ * @param message a message as a string or Uint8Array
3501
3502
  * @returns Signature
3502
3503
  */
3503
3504
  sign(message: HexInput): Secp256k1Signature;
@@ -3909,6 +3910,15 @@ declare class Ed25519Account implements Account$1 {
3909
3910
  * @returns The object account address
3910
3911
  */
3911
3912
  declare const createObjectAddress: (creatorAddress: AccountAddress, seed: Uint8Array | string) => AccountAddress;
3913
+ /**
3914
+ * Creates an resource address from creator address and seed
3915
+ *
3916
+ * @param creatorAddress The creator account address
3917
+ * @param seed The seed in either Uint8Array | string type
3918
+ *
3919
+ * @returns The resource account address
3920
+ */
3921
+ declare const createResourceAddress: (creatorAddress: AccountAddress, seed: Uint8Array | string) => AccountAddress;
3912
3922
  /**
3913
3923
  * Creates a token object address from creator address, collection name and token name
3914
3924
  *
@@ -4762,6 +4772,28 @@ declare class FeePayerRawTransaction extends RawTransactionWithData {
4762
4772
  static load(deserializer: Deserializer): FeePayerRawTransaction;
4763
4773
  }
4764
4774
 
4775
+ /**
4776
+ * Representation of a SimpleTransaction that can serialized and deserialized
4777
+ */
4778
+ declare class SimpleTransaction extends Serializable {
4779
+ rawTransaction: RawTransaction;
4780
+ feePayerAddress?: AccountAddress | undefined;
4781
+ readonly secondarySignerAddresses: undefined;
4782
+ /**
4783
+ * SimpleTransaction represents a simple transaction type of a single signer that
4784
+ * can be submitted to Aptos chain for execution.
4785
+ *
4786
+ * SimpleTransaction metadata contains the Raw Transaction and an optional
4787
+ * sponsor Account Address to pay the gas fees.
4788
+ *
4789
+ * @param rawTransaction The Raw Tranasaction
4790
+ * @param feePayerAddress The sponsor Account Address
4791
+ */
4792
+ constructor(rawTransaction: RawTransaction, feePayerAddress?: AccountAddress);
4793
+ serialize(serializer: Serializer): void;
4794
+ static deserialize(deserializer: Deserializer): SimpleTransaction;
4795
+ }
4796
+
4765
4797
  /**
4766
4798
  * Representation of the challenge which is needed to sign by owner of the account
4767
4799
  * to rotate the authentication key.
@@ -4887,6 +4919,28 @@ declare class SignedTransaction extends Serializable {
4887
4919
  static deserialize(deserializer: Deserializer): SignedTransaction;
4888
4920
  }
4889
4921
 
4922
+ /**
4923
+ * Representation of a Raw Transaction that can serialized and deserialized
4924
+ */
4925
+ declare class MultiAgentTransaction extends Serializable {
4926
+ rawTransaction: RawTransaction;
4927
+ feePayerAddress?: AccountAddress | undefined;
4928
+ secondarySignerAddresses: AccountAddress[];
4929
+ /**
4930
+ * SimpleTransaction represents a simple transaction type of a single signer that
4931
+ * can be submitted to Aptos chain for execution.
4932
+ *
4933
+ * SimpleTransaction metadata contains the Raw Transaction and an optional
4934
+ * sponsor Account Address to pay the gas fees.
4935
+ *
4936
+ * @param rawTransaction The Raw Tranasaction
4937
+ * @param feePayerAddress The sponsor Account Address
4938
+ */
4939
+ constructor(rawTransaction: RawTransaction, secondarySignerAddresses: AccountAddress[], feePayerAddress?: AccountAddress);
4940
+ serialize(serializer: Serializer): void;
4941
+ static deserialize(deserializer: Deserializer): MultiAgentTransaction;
4942
+ }
4943
+
4890
4944
  /**
4891
4945
  * Entry function arguments to be used when building a raw transaction using remote ABI
4892
4946
  */
@@ -5032,27 +5086,6 @@ interface InputGenerateMultiAgentRawTransactionArgs {
5032
5086
  * Unified type that holds all the interfaces to generate different transaction types
5033
5087
  */
5034
5088
  type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionArgs | InputGenerateMultiAgentRawTransactionArgs;
5035
- /**
5036
- * Interface that holds the return data when generating a single signer transaction
5037
- *
5038
- * @param rawTransaction a bcs serialized raw transaction
5039
- */
5040
- interface SimpleTransaction {
5041
- rawTransaction: RawTransaction;
5042
- feePayerAddress?: AccountAddress;
5043
- secondarySignerAddresses?: undefined;
5044
- }
5045
- /**
5046
- * Interface that holds the return data when generating a multi-agent transaction.
5047
- *
5048
- * @param rawTransaction a bcs serialized raw transaction
5049
- * @param secondarySignerAddresses secondary signer addresses for multi-agent transaction
5050
- */
5051
- interface MultiAgentTransaction {
5052
- rawTransaction: RawTransaction;
5053
- secondarySignerAddresses: AccountAddress[];
5054
- feePayerAddress?: AccountAddress;
5055
- }
5056
5089
  /**
5057
5090
  * Unified type that holds all the return interfaces when generating different transaction types
5058
5091
  */
@@ -5768,6 +5801,16 @@ declare function sign(args: {
5768
5801
  * @returns A SignedTransaction
5769
5802
  */
5770
5803
  declare function generateSignedTransaction(args: InputSubmitTransactionData): Uint8Array;
5804
+ /**
5805
+ * Hashes the set of values with a SHA-3 256 hash
5806
+ * @param input array of UTF-8 strings or Uint8array byte arrays
5807
+ */
5808
+ declare function hashValues(input: (Uint8Array | string)[]): Uint8Array;
5809
+ /**
5810
+ * Generates a user transaction hash for the given transaction payload. It must already have an authenticator
5811
+ * @param args InputSubmitTransactionData
5812
+ */
5813
+ declare function generateUserTransactionHash(args: InputSubmitTransactionData): string;
5771
5814
  /**
5772
5815
  * Derive the raw transaction type - FeePayerRawTransaction or MultiAgentRawTransaction or RawTransaction
5773
5816
  *
@@ -6145,11 +6188,11 @@ declare class ANS {
6145
6188
  *
6146
6189
  * @param args.name - A string of the name to retrieve
6147
6190
  *
6148
- * @returns MoveAddressType if the name is owned, undefined otherwise
6191
+ * @returns AccountAddress if the name is owned, undefined otherwise
6149
6192
  */
6150
6193
  getOwnerAddress(args: {
6151
6194
  name: string;
6152
- }): Promise<MoveAddressType | undefined>;
6195
+ }): Promise<AccountAddress | undefined>;
6153
6196
  /**
6154
6197
  * Retrieve the expiration time of a domain name or subdomain name from the contract.
6155
6198
  *
@@ -6178,11 +6221,11 @@ declare class ANS {
6178
6221
  *
6179
6222
  * @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.
6180
6223
  *
6181
- * @returns MoveAddressType if the name has a target, undefined otherwise
6224
+ * @returns AccountAddress if the name has a target, undefined otherwise
6182
6225
  */
6183
6226
  getTargetAddress(args: {
6184
6227
  name: string;
6185
- }): Promise<MoveAddressType | undefined>;
6228
+ }): Promise<AccountAddress | undefined>;
6186
6229
  /**
6187
6230
  * Sets the target address of a domain or subdomain name. This is the
6188
6231
  * address the name points to for use on chain. Note, the target address can
@@ -7213,4 +7256,38 @@ declare function postAptosFullNode<Req extends {}, Res extends {}>(options: Post
7213
7256
  declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
7214
7257
  declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
7215
7258
 
7216
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountPublicKey, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, type FaucetConfig, FeePayerRawTransaction, FixedBytes, type FullNodeConfig, type FunctionABI, type GasEstimation, type GenerateAccount, type GenerateAccountArgs, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, type LedgerInfo, type LedgerVersionArg, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, type MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeySignature, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, type SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, createObjectAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
7259
+ declare class LocalNode {
7260
+ readonly MAXIMUM_WAIT_TIME_SEC = 75;
7261
+ readonly READINESS_ENDPOINT = "http://127.0.0.1:8070/";
7262
+ process: ChildProcessWithoutNullStreams | null;
7263
+ /**
7264
+ * kills all the descendent processes
7265
+ * of the node process, including the node process itself
7266
+ */
7267
+ stop(): void;
7268
+ /**
7269
+ * Runs a local testnet and waits for process to be up.
7270
+ *
7271
+ * If local node process is already up it returns and does
7272
+ * not start the process
7273
+ */
7274
+ run(): Promise<void>;
7275
+ /**
7276
+ * Starts the local testnet by running the aptos node run-local-testnet command
7277
+ */
7278
+ start(): void;
7279
+ /**
7280
+ * Waits for the local testnet process to be up
7281
+ *
7282
+ * @returns Promise<boolean>
7283
+ */
7284
+ waitUntilProcessIsUp(): Promise<boolean>;
7285
+ /**
7286
+ * Checks if the local testnet is up
7287
+ *
7288
+ * @returns Promise<boolean>
7289
+ */
7290
+ checkIfProcessIsUp(): Promise<boolean>;
7291
+ }
7292
+
7293
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountPublicKey, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, type ExecutionFinishEventData, type FailureEventData, type FaucetConfig, FeePayerRawTransaction, FixedBytes, type FullNodeConfig, type FunctionABI, type GasEstimation, type GenerateAccount, type GenerateAccountArgs, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, type LedgerInfo, type LedgerVersionArg, LocalNode, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeySignature, MultiSig, MultiSigTransactionPayload, type MultisigPayloadResponse, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type StateCheckpointTransactionResponse, StructTag, type SuccessEventData, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, isValidatorTransactionResponse, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };