@aptos-labs/ts-sdk 1.18.1 → 1.19.0

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 (240) hide show
  1. package/dist/common/cli/index.js +1 -1
  2. package/dist/common/cli/index.js.map +1 -1
  3. package/dist/common/index.d.ts +22 -3
  4. package/dist/common/index.js +8 -8
  5. package/dist/common/index.js.map +1 -1
  6. package/dist/esm/account/Account.mjs +1 -1
  7. package/dist/esm/account/Ed25519Account.mjs +1 -1
  8. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  9. package/dist/esm/account/KeylessAccount.mjs +1 -1
  10. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  11. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  12. package/dist/esm/account/index.mjs +1 -1
  13. package/dist/esm/api/account.mjs +1 -1
  14. package/dist/esm/api/ans.mjs +1 -1
  15. package/dist/esm/api/aptos.mjs +1 -1
  16. package/dist/esm/api/coin.mjs +1 -1
  17. package/dist/esm/api/digitalAsset.mjs +1 -1
  18. package/dist/esm/api/event.mjs +1 -1
  19. package/dist/esm/api/faucet.mjs +1 -1
  20. package/dist/esm/api/fungibleAsset.d.mts +18 -1
  21. package/dist/esm/api/fungibleAsset.mjs +1 -1
  22. package/dist/esm/api/general.mjs +1 -1
  23. package/dist/esm/api/index.mjs +1 -1
  24. package/dist/esm/api/keyless.mjs +1 -1
  25. package/dist/esm/api/staking.mjs +1 -1
  26. package/dist/esm/api/table.mjs +1 -1
  27. package/dist/esm/api/transaction.mjs +1 -1
  28. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  30. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  32. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  33. package/dist/esm/api/utils.mjs +1 -1
  34. package/dist/esm/bcs/index.mjs +1 -1
  35. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  36. package/dist/esm/{chunk-DPO352QL.mjs → chunk-3EDNV7KS.mjs} +2 -2
  37. package/dist/esm/{chunk-TG2LLWVU.mjs → chunk-3JEL6FIZ.mjs} +2 -2
  38. package/dist/esm/{chunk-MHZ64FIW.mjs → chunk-3KZ7HFFA.mjs} +2 -2
  39. package/dist/esm/{chunk-HHE63GFW.mjs → chunk-47M33ENP.mjs} +2 -2
  40. package/dist/esm/{chunk-6DYDZSEW.mjs → chunk-4U3MAEYH.mjs} +2 -2
  41. package/dist/esm/{chunk-FM6ALU5B.mjs → chunk-4ZM7V7HN.mjs} +2 -2
  42. package/dist/esm/{chunk-PTA3VHTQ.mjs → chunk-5Y3O7MLN.mjs} +2 -2
  43. package/dist/esm/{chunk-2QWQ6RX5.mjs → chunk-64P5SB7N.mjs} +2 -2
  44. package/dist/esm/chunk-6DDSU7HN.mjs +2 -0
  45. package/dist/esm/{chunk-LVSOUCFD.mjs.map → chunk-6DDSU7HN.mjs.map} +1 -1
  46. package/dist/esm/{chunk-NSQLZBCA.mjs → chunk-7JUBWA7V.mjs} +2 -2
  47. package/dist/esm/{chunk-S32JHML7.mjs → chunk-BCY5UOGP.mjs} +2 -2
  48. package/dist/esm/{chunk-XYLM277Z.mjs → chunk-BI5P5ASH.mjs} +2 -2
  49. package/dist/esm/{chunk-BVB3QII3.mjs → chunk-C2IJG37E.mjs} +2 -2
  50. package/dist/esm/{chunk-SLFAROVZ.mjs → chunk-CAC7G2HC.mjs} +2 -2
  51. package/dist/esm/{chunk-M3JHXCGV.mjs → chunk-CPCS5KIA.mjs} +2 -2
  52. package/dist/esm/{chunk-VCMP3MXN.mjs → chunk-DCBXXRXS.mjs} +2 -2
  53. package/dist/esm/chunk-E2JEBCSY.mjs +2 -0
  54. package/dist/esm/chunk-E2JEBCSY.mjs.map +1 -0
  55. package/dist/esm/chunk-EAXCOIOP.mjs +2 -0
  56. package/dist/esm/{chunk-Z4YHE4A5.mjs.map → chunk-EAXCOIOP.mjs.map} +1 -1
  57. package/dist/esm/{chunk-FYB7C42X.mjs → chunk-FD2VCIZG.mjs} +2 -2
  58. package/dist/esm/{chunk-JSWBLHMX.mjs → chunk-FGFQZQGX.mjs} +2 -2
  59. package/dist/esm/{chunk-BLVYB7Y3.mjs → chunk-FTA2ZMUX.mjs} +2 -2
  60. package/dist/esm/{chunk-DW2KZREM.mjs → chunk-GCPWPGCS.mjs} +2 -2
  61. package/dist/esm/{chunk-FTIW5GGG.mjs → chunk-GMHGYDZQ.mjs} +2 -2
  62. package/dist/esm/{chunk-K4CTCBLY.mjs → chunk-GPZEPKKD.mjs} +2 -2
  63. package/dist/esm/{chunk-DLDGUTFV.mjs → chunk-GRZVD45M.mjs} +2 -2
  64. package/dist/esm/{chunk-EYIJYUN7.mjs → chunk-GXLFQEPR.mjs} +2 -2
  65. package/dist/esm/{chunk-VTKPSYKA.mjs → chunk-HACVLK5I.mjs} +2 -2
  66. package/dist/esm/{chunk-XWVU4G57.mjs → chunk-HED6CPN2.mjs} +2 -2
  67. package/dist/esm/{chunk-EAW6AWYD.mjs → chunk-HJT2Q5NL.mjs} +2 -2
  68. package/dist/esm/{chunk-42SZQH5Z.mjs → chunk-ICE6OL3A.mjs} +2 -2
  69. package/dist/esm/{chunk-5X2BJDOB.mjs → chunk-ILXK4OH5.mjs} +2 -2
  70. package/dist/esm/{chunk-AVH5SYTL.mjs → chunk-IOMJ5OWV.mjs} +2 -2
  71. package/dist/esm/{chunk-QL2QFRKV.mjs → chunk-JM7CSDJ3.mjs} +2 -2
  72. package/dist/esm/{chunk-GFRNBBTY.mjs → chunk-K6NUFABY.mjs} +2 -2
  73. package/dist/esm/chunk-KMJ6TF6Y.mjs +2 -0
  74. package/dist/esm/chunk-KMJ6TF6Y.mjs.map +1 -0
  75. package/dist/esm/{chunk-NCUBVHUW.mjs → chunk-KUAN2WZF.mjs} +2 -2
  76. package/dist/esm/chunk-LAZTLEXF.mjs +2 -0
  77. package/dist/esm/chunk-LAZTLEXF.mjs.map +1 -0
  78. package/dist/esm/{chunk-UAZUO75M.mjs → chunk-LLLINNAG.mjs} +2 -2
  79. package/dist/esm/{chunk-AYKZA676.mjs → chunk-LWFSV3OA.mjs} +2 -2
  80. package/dist/esm/{chunk-U6X2FYNI.mjs → chunk-MH6HIFMG.mjs} +2 -2
  81. package/dist/esm/{chunk-2DSPX6BX.mjs → chunk-MKOIEX4B.mjs} +2 -2
  82. package/dist/esm/{chunk-L22R3OIW.mjs → chunk-MUAV4P6C.mjs} +2 -2
  83. package/dist/esm/{chunk-CZ6TC4GO.mjs → chunk-N5A4L6Z6.mjs} +2 -2
  84. package/dist/esm/{chunk-NNQYSSLH.mjs → chunk-NBGXHLM4.mjs} +2 -2
  85. package/dist/esm/{chunk-K7DBDI2I.mjs → chunk-OKLLJQM4.mjs} +2 -2
  86. package/dist/esm/{chunk-C5V4EBVP.mjs → chunk-OLVNRYGT.mjs} +2 -2
  87. package/dist/esm/{chunk-4IBJW3PB.mjs → chunk-PS7L2TLP.mjs} +2 -2
  88. package/dist/esm/{chunk-F74FF323.mjs → chunk-PVEPP4HR.mjs} +2 -2
  89. package/dist/esm/{chunk-UGVNOSD3.mjs → chunk-QTNKFKDE.mjs} +2 -2
  90. package/dist/esm/{chunk-7Y45UTRL.mjs → chunk-RUVDYKIZ.mjs} +2 -2
  91. package/dist/esm/chunk-SYV4KFI7.mjs +2 -0
  92. package/dist/esm/chunk-SYV4KFI7.mjs.map +1 -0
  93. package/dist/esm/{chunk-6JL2U7JB.mjs → chunk-TFNJPJF6.mjs} +2 -2
  94. package/dist/esm/{chunk-QVWBJJRF.mjs → chunk-V5JJHVMP.mjs} +2 -2
  95. package/dist/esm/{chunk-5YHI7WOB.mjs → chunk-VRSZLJVR.mjs} +2 -2
  96. package/dist/esm/{chunk-362JBD4O.mjs → chunk-VY2MJZWM.mjs} +2 -2
  97. package/dist/esm/{chunk-SFUTXSDK.mjs → chunk-WUWJLSGN.mjs} +2 -2
  98. package/dist/esm/{chunk-3ZCQQ3L2.mjs → chunk-XSHUCBNT.mjs} +2 -2
  99. package/dist/esm/{chunk-BS7EVBWX.mjs → chunk-Y37TV7SM.mjs} +2 -2
  100. package/dist/esm/{chunk-JPDT6E3B.mjs → chunk-YDXU6ALO.mjs} +2 -2
  101. package/dist/esm/{chunk-6UDHM6YZ.mjs → chunk-YF6UA3XW.mjs} +2 -2
  102. package/dist/esm/{chunk-WQHW4WQN.mjs → chunk-YXXEXFQH.mjs} +2 -2
  103. package/dist/esm/{chunk-QAMV4L3K.mjs → chunk-ZQUDGZIZ.mjs} +2 -2
  104. package/dist/esm/cli/index.mjs +1 -1
  105. package/dist/esm/cli/move.mjs +1 -1
  106. package/dist/esm/client/core.mjs +1 -1
  107. package/dist/esm/client/get.mjs +1 -1
  108. package/dist/esm/client/index.mjs +1 -1
  109. package/dist/esm/client/post.mjs +1 -1
  110. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  111. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  112. package/dist/esm/core/crypto/index.mjs +1 -1
  113. package/dist/esm/core/crypto/keyless.mjs +1 -1
  114. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  115. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  116. package/dist/esm/core/crypto/proof.mjs +1 -1
  117. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  118. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  119. package/dist/esm/core/crypto/signature.mjs +1 -1
  120. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  121. package/dist/esm/core/index.mjs +1 -1
  122. package/dist/esm/index.d.mts +1 -1
  123. package/dist/esm/index.mjs +1 -1
  124. package/dist/esm/internal/account.mjs +1 -1
  125. package/dist/esm/internal/ans.mjs +1 -1
  126. package/dist/esm/internal/coin.mjs +1 -1
  127. package/dist/esm/internal/digitalAsset.mjs +1 -1
  128. package/dist/esm/internal/event.mjs +1 -1
  129. package/dist/esm/internal/faucet.mjs +1 -1
  130. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  131. package/dist/esm/internal/general.mjs +1 -1
  132. package/dist/esm/internal/keyless.mjs +1 -1
  133. package/dist/esm/internal/staking.mjs +1 -1
  134. package/dist/esm/internal/table.mjs +1 -1
  135. package/dist/esm/internal/transaction.mjs +1 -1
  136. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  137. package/dist/esm/internal/view.mjs +1 -1
  138. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  139. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  140. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  141. package/dist/esm/transactions/index.d.mts +1 -1
  142. package/dist/esm/transactions/index.mjs +1 -1
  143. package/dist/esm/transactions/instances/index.mjs +1 -1
  144. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  145. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  146. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  147. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  148. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  149. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  150. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  151. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  152. package/dist/esm/transactions/management/index.mjs +1 -1
  153. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  154. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -2
  155. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  156. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  157. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  158. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -0
  159. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  160. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  161. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  162. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  163. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  164. package/dist/esm/utils/index.mjs +1 -1
  165. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  166. package/dist/esm/version.d.mts +1 -1
  167. package/dist/esm/version.mjs +1 -1
  168. package/package.json +1 -1
  169. package/src/api/fungibleAsset.ts +36 -2
  170. package/src/bcs/serializable/moveStructs.ts +5 -2
  171. package/src/cli/move.ts +2 -3
  172. package/src/transactions/transactionBuilder/helpers.ts +12 -1
  173. package/src/transactions/transactionBuilder/remoteAbi.ts +58 -24
  174. package/src/version.ts +1 -1
  175. package/dist/esm/chunk-HCN7YJGB.mjs +0 -2
  176. package/dist/esm/chunk-HCN7YJGB.mjs.map +0 -1
  177. package/dist/esm/chunk-LVSOUCFD.mjs +0 -2
  178. package/dist/esm/chunk-RJ4RKVVQ.mjs +0 -2
  179. package/dist/esm/chunk-RJ4RKVVQ.mjs.map +0 -1
  180. package/dist/esm/chunk-U4A56FN2.mjs +0 -2
  181. package/dist/esm/chunk-U4A56FN2.mjs.map +0 -1
  182. package/dist/esm/chunk-YMUCYX3B.mjs +0 -2
  183. package/dist/esm/chunk-YMUCYX3B.mjs.map +0 -1
  184. package/dist/esm/chunk-Z4YHE4A5.mjs +0 -2
  185. /package/dist/esm/{chunk-DPO352QL.mjs.map → chunk-3EDNV7KS.mjs.map} +0 -0
  186. /package/dist/esm/{chunk-TG2LLWVU.mjs.map → chunk-3JEL6FIZ.mjs.map} +0 -0
  187. /package/dist/esm/{chunk-MHZ64FIW.mjs.map → chunk-3KZ7HFFA.mjs.map} +0 -0
  188. /package/dist/esm/{chunk-HHE63GFW.mjs.map → chunk-47M33ENP.mjs.map} +0 -0
  189. /package/dist/esm/{chunk-6DYDZSEW.mjs.map → chunk-4U3MAEYH.mjs.map} +0 -0
  190. /package/dist/esm/{chunk-FM6ALU5B.mjs.map → chunk-4ZM7V7HN.mjs.map} +0 -0
  191. /package/dist/esm/{chunk-PTA3VHTQ.mjs.map → chunk-5Y3O7MLN.mjs.map} +0 -0
  192. /package/dist/esm/{chunk-2QWQ6RX5.mjs.map → chunk-64P5SB7N.mjs.map} +0 -0
  193. /package/dist/esm/{chunk-NSQLZBCA.mjs.map → chunk-7JUBWA7V.mjs.map} +0 -0
  194. /package/dist/esm/{chunk-S32JHML7.mjs.map → chunk-BCY5UOGP.mjs.map} +0 -0
  195. /package/dist/esm/{chunk-XYLM277Z.mjs.map → chunk-BI5P5ASH.mjs.map} +0 -0
  196. /package/dist/esm/{chunk-BVB3QII3.mjs.map → chunk-C2IJG37E.mjs.map} +0 -0
  197. /package/dist/esm/{chunk-SLFAROVZ.mjs.map → chunk-CAC7G2HC.mjs.map} +0 -0
  198. /package/dist/esm/{chunk-M3JHXCGV.mjs.map → chunk-CPCS5KIA.mjs.map} +0 -0
  199. /package/dist/esm/{chunk-VCMP3MXN.mjs.map → chunk-DCBXXRXS.mjs.map} +0 -0
  200. /package/dist/esm/{chunk-FYB7C42X.mjs.map → chunk-FD2VCIZG.mjs.map} +0 -0
  201. /package/dist/esm/{chunk-JSWBLHMX.mjs.map → chunk-FGFQZQGX.mjs.map} +0 -0
  202. /package/dist/esm/{chunk-BLVYB7Y3.mjs.map → chunk-FTA2ZMUX.mjs.map} +0 -0
  203. /package/dist/esm/{chunk-DW2KZREM.mjs.map → chunk-GCPWPGCS.mjs.map} +0 -0
  204. /package/dist/esm/{chunk-FTIW5GGG.mjs.map → chunk-GMHGYDZQ.mjs.map} +0 -0
  205. /package/dist/esm/{chunk-K4CTCBLY.mjs.map → chunk-GPZEPKKD.mjs.map} +0 -0
  206. /package/dist/esm/{chunk-DLDGUTFV.mjs.map → chunk-GRZVD45M.mjs.map} +0 -0
  207. /package/dist/esm/{chunk-EYIJYUN7.mjs.map → chunk-GXLFQEPR.mjs.map} +0 -0
  208. /package/dist/esm/{chunk-VTKPSYKA.mjs.map → chunk-HACVLK5I.mjs.map} +0 -0
  209. /package/dist/esm/{chunk-XWVU4G57.mjs.map → chunk-HED6CPN2.mjs.map} +0 -0
  210. /package/dist/esm/{chunk-EAW6AWYD.mjs.map → chunk-HJT2Q5NL.mjs.map} +0 -0
  211. /package/dist/esm/{chunk-42SZQH5Z.mjs.map → chunk-ICE6OL3A.mjs.map} +0 -0
  212. /package/dist/esm/{chunk-5X2BJDOB.mjs.map → chunk-ILXK4OH5.mjs.map} +0 -0
  213. /package/dist/esm/{chunk-AVH5SYTL.mjs.map → chunk-IOMJ5OWV.mjs.map} +0 -0
  214. /package/dist/esm/{chunk-QL2QFRKV.mjs.map → chunk-JM7CSDJ3.mjs.map} +0 -0
  215. /package/dist/esm/{chunk-GFRNBBTY.mjs.map → chunk-K6NUFABY.mjs.map} +0 -0
  216. /package/dist/esm/{chunk-NCUBVHUW.mjs.map → chunk-KUAN2WZF.mjs.map} +0 -0
  217. /package/dist/esm/{chunk-UAZUO75M.mjs.map → chunk-LLLINNAG.mjs.map} +0 -0
  218. /package/dist/esm/{chunk-AYKZA676.mjs.map → chunk-LWFSV3OA.mjs.map} +0 -0
  219. /package/dist/esm/{chunk-U6X2FYNI.mjs.map → chunk-MH6HIFMG.mjs.map} +0 -0
  220. /package/dist/esm/{chunk-2DSPX6BX.mjs.map → chunk-MKOIEX4B.mjs.map} +0 -0
  221. /package/dist/esm/{chunk-L22R3OIW.mjs.map → chunk-MUAV4P6C.mjs.map} +0 -0
  222. /package/dist/esm/{chunk-CZ6TC4GO.mjs.map → chunk-N5A4L6Z6.mjs.map} +0 -0
  223. /package/dist/esm/{chunk-NNQYSSLH.mjs.map → chunk-NBGXHLM4.mjs.map} +0 -0
  224. /package/dist/esm/{chunk-K7DBDI2I.mjs.map → chunk-OKLLJQM4.mjs.map} +0 -0
  225. /package/dist/esm/{chunk-C5V4EBVP.mjs.map → chunk-OLVNRYGT.mjs.map} +0 -0
  226. /package/dist/esm/{chunk-4IBJW3PB.mjs.map → chunk-PS7L2TLP.mjs.map} +0 -0
  227. /package/dist/esm/{chunk-F74FF323.mjs.map → chunk-PVEPP4HR.mjs.map} +0 -0
  228. /package/dist/esm/{chunk-UGVNOSD3.mjs.map → chunk-QTNKFKDE.mjs.map} +0 -0
  229. /package/dist/esm/{chunk-7Y45UTRL.mjs.map → chunk-RUVDYKIZ.mjs.map} +0 -0
  230. /package/dist/esm/{chunk-6JL2U7JB.mjs.map → chunk-TFNJPJF6.mjs.map} +0 -0
  231. /package/dist/esm/{chunk-QVWBJJRF.mjs.map → chunk-V5JJHVMP.mjs.map} +0 -0
  232. /package/dist/esm/{chunk-5YHI7WOB.mjs.map → chunk-VRSZLJVR.mjs.map} +0 -0
  233. /package/dist/esm/{chunk-362JBD4O.mjs.map → chunk-VY2MJZWM.mjs.map} +0 -0
  234. /package/dist/esm/{chunk-SFUTXSDK.mjs.map → chunk-WUWJLSGN.mjs.map} +0 -0
  235. /package/dist/esm/{chunk-3ZCQQ3L2.mjs.map → chunk-XSHUCBNT.mjs.map} +0 -0
  236. /package/dist/esm/{chunk-BS7EVBWX.mjs.map → chunk-Y37TV7SM.mjs.map} +0 -0
  237. /package/dist/esm/{chunk-JPDT6E3B.mjs.map → chunk-YDXU6ALO.mjs.map} +0 -0
  238. /package/dist/esm/{chunk-6UDHM6YZ.mjs.map → chunk-YF6UA3XW.mjs.map} +0 -0
  239. /package/dist/esm/{chunk-WQHW4WQN.mjs.map → chunk-YXXEXFQH.mjs.map} +0 -0
  240. /package/dist/esm/{chunk-QAMV4L3K.mjs.map → chunk-ZQUDGZIZ.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkBHKSQXUZjs = require('../chunk-BHKSQXUZ.js');var _child_process = require('child_process');var _treekill = require('tree-kill'); var _treekill2 = _interopRequireDefault(_treekill);var _os = require('os');var c=class{constructor(){this.MAXIMUM_WAIT_TIME_SEC=75;this.READINESS_ENDPOINT="http://127.0.0.1:8070/";this.process=null}stop(){_optionalChain([this, 'access', _ => _.process, 'optionalAccess', _2 => _2.pid])&&_treekill2.default.call(void 0, this.process.pid)}async run(){await this.checkIfProcessIsUp()||(this.start(),await this.waitUntilProcessIsUp())}start(){let s="npx",t=["aptos","node","run-local-testnet","--force-restart","--assume-yes","--with-indexer-api"],e=_os.platform.call(void 0, ),r;e==="win32"?r=_child_process.spawn.call(void 0, s,t,{shell:!0}):r=_child_process.spawn.call(void 0, s,t),this.process=r,_optionalChain([r, 'access', _3 => _3.stderr, 'optionalAccess', _4 => _4.on, 'call', _5 => _5("data",o=>{let a=o.toString();console.log(a)})]),_optionalChain([r, 'access', _6 => _6.stdout, 'optionalAccess', _7 => _7.on, 'call', _8 => _8("data",o=>{let a=o.toString();console.log(a)})])}async waitUntilProcessIsUp(){let s=await this.checkIfProcessIsUp(),t=Date.now()/1e3,e=t;for(;!s&&t+this.MAXIMUM_WAIT_TIME_SEC>e;)await _chunkBHKSQXUZjs.b.call(void 0, 1e3),s=await this.checkIfProcessIsUp(),e=Date.now()/1e3;if(!s)throw new Error("Process failed to start");return!0}async checkIfProcessIsUp(){try{return(await fetch(this.READINESS_ENDPOINT)).status===200}catch (e2){return!1}}};var p=class{async init(s){let{network:t,profile:e}=s,r=["aptos","init",`--network=${_nullishCoalesce(t, () => ("local"))}`,`--profile=${_nullishCoalesce(e, () => ("default"))}`];return this.runCommand(r)}async compile(s){let{packageDirectoryPath:t,namedAddresses:e}=s,r=["aptos","move","compile","--package-dir",t,"--skip-fetch-latest-git-deps"],o=this.parseNamedAddresses(e);return r.push(...this.prepareNamedAddresses(o)),this.runCommand(r)}async test(s){let{packageDirectoryPath:t,namedAddresses:e}=s,r=["aptos","move","test","--package-dir",t,"--skip-fetch-latest-git-deps"],o=this.parseNamedAddresses(e);return r.push(...this.prepareNamedAddresses(o)),this.runCommand(r)}async publish(s){let{packageDirectoryPath:t,namedAddresses:e,profile:r}=s,o=["aptos","move","publish","--package-dir",t,"--skip-fetch-latest-git-deps",`--profile=${_nullishCoalesce(r, () => ("default"))}`],a=this.parseNamedAddresses(e);return o.push(...this.prepareNamedAddresses(a)),this.runCommand(o)}async runCommand(s){return new Promise((t,e)=>{let r=_os.platform.call(void 0, ),o;r==="win32"?o=_child_process.spawn.call(void 0, "npx",s,{shell:!0}):o=_child_process.spawn.call(void 0, "npx",s),o.stdout.pipe(process.stdout),o.stderr.pipe(process.stderr),process.stdin.pipe(o.stdin),o.on("close",a=>{a===0?t(!0):e(new Error(`Child process exited with code ${a}`))})})}prepareNamedAddresses(s){let t=s.size,e=[];if(t===0)return e;e.push("--named-addresses");let r=[];return s.forEach((o,a)=>{let m=`${a}=${o.toString()}`;r.push(m)}),e.push(r.join(",")),e}parseNamedAddresses(s){let t=new Map;return Object.keys(s).forEach(e=>{let r=s[e];t.set(e,r)}),t}};exports.LocalNode = c; exports.Move = p;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkBHKSQXUZjs = require('../chunk-BHKSQXUZ.js');var _child_process = require('child_process');var _treekill = require('tree-kill'); var _treekill2 = _interopRequireDefault(_treekill);var _os = require('os');var c=class{constructor(){this.MAXIMUM_WAIT_TIME_SEC=75;this.READINESS_ENDPOINT="http://127.0.0.1:8070/";this.process=null}stop(){_optionalChain([this, 'access', _ => _.process, 'optionalAccess', _2 => _2.pid])&&_treekill2.default.call(void 0, this.process.pid)}async run(){await this.checkIfProcessIsUp()||(this.start(),await this.waitUntilProcessIsUp())}start(){let s="npx",t=["aptos","node","run-local-testnet","--force-restart","--assume-yes","--with-indexer-api"],r=_os.platform.call(void 0, ),e;r==="win32"?e=_child_process.spawn.call(void 0, s,t,{shell:!0}):e=_child_process.spawn.call(void 0, s,t),this.process=e,_optionalChain([e, 'access', _3 => _3.stderr, 'optionalAccess', _4 => _4.on, 'call', _5 => _5("data",o=>{let a=o.toString();console.log(a)})]),_optionalChain([e, 'access', _6 => _6.stdout, 'optionalAccess', _7 => _7.on, 'call', _8 => _8("data",o=>{let a=o.toString();console.log(a)})])}async waitUntilProcessIsUp(){let s=await this.checkIfProcessIsUp(),t=Date.now()/1e3,r=t;for(;!s&&t+this.MAXIMUM_WAIT_TIME_SEC>r;)await _chunkBHKSQXUZjs.b.call(void 0, 1e3),s=await this.checkIfProcessIsUp(),r=Date.now()/1e3;if(!s)throw new Error("Process failed to start");return!0}async checkIfProcessIsUp(){try{return(await fetch(this.READINESS_ENDPOINT)).status===200}catch (e2){return!1}}};var p=class{async init(s){let{network:t,profile:r}=s,e=["aptos","init",`--network=${_nullishCoalesce(t, () => ("local"))}`,`--profile=${_nullishCoalesce(r, () => ("default"))}`];return this.runCommand(e)}async compile(s){let{packageDirectoryPath:t,namedAddresses:r}=s,e=["aptos","move","compile","--package-dir",t],o=this.parseNamedAddresses(r);return e.push(...this.prepareNamedAddresses(o)),this.runCommand(e)}async test(s){let{packageDirectoryPath:t,namedAddresses:r}=s,e=["aptos","move","test","--package-dir",t],o=this.parseNamedAddresses(r);return e.push(...this.prepareNamedAddresses(o)),this.runCommand(e)}async publish(s){let{packageDirectoryPath:t,namedAddresses:r,profile:e}=s,o=["aptos","move","publish","--package-dir",t,`--profile=${_nullishCoalesce(e, () => ("default"))}`],a=this.parseNamedAddresses(r);return o.push(...this.prepareNamedAddresses(a)),this.runCommand(o)}async runCommand(s){return new Promise((t,r)=>{let e=_os.platform.call(void 0, ),o;e==="win32"?o=_child_process.spawn.call(void 0, "npx",s,{shell:!0}):o=_child_process.spawn.call(void 0, "npx",s),o.stdout.pipe(process.stdout),o.stderr.pipe(process.stderr),process.stdin.pipe(o.stdin),o.on("close",a=>{a===0?t(!0):r(new Error(`Child process exited with code ${a}`))})})}prepareNamedAddresses(s){let t=s.size,r=[];if(t===0)return r;r.push("--named-addresses");let e=[];return s.forEach((o,a)=>{let m=`${a}=${o.toString()}`;e.push(m)}),r.push(e.join(",")),r}parseNamedAddresses(s){let t=new Map;return Object.keys(s).forEach(r=>{let e=s[r];t.set(r,e)}),t}};exports.LocalNode = c; exports.Move = p;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/cli/localNode.ts","../../../src/cli/move.ts"],"names":["spawn","kill","platform","LocalNode","cliCommand","cliArgs","currentPlatform","childProcess","data","str","operational","start","last","sleep","Move","args","network","profile","packageDirectoryPath","namedAddresses","addressesMap","resolve","reject","code","totalNames","newArgs","names","value","key","toAppend","address"],"mappings":"yCAAA,OAAyC,SAAAA,MAAa,gBACtD,OAAOC,MAAU,YACjB,OAAS,YAAAC,MAAgB,KAIlB,IAAMC,EAAN,KAAgB,CAAhB,cACL,KAAS,sBAAwB,GAEjC,KAAS,mBAAqB,yBAE9B,aAAiD,KAMjD,MAAO,CACA,KAAK,SAAS,KACnBF,EAAK,KAAK,QAAQ,GAAG,CACvB,CAQA,MAA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KA,EAAa,KAAK,EAErCA,EAAa,GAAG,QAAUgB,GAAS,CAC7BA,IAAS,EACXF,EAAQ,EAAI,EAEZC,EAAO,IAAI,MAAM,kCAAkCC,CAAI,EAAE,CAAC,CAE9D,CAAC,CACH,CAAC,CACH,CAaQ,sBAAsBJ,EAA4D,CACxF,IAAMK,EAAaL,EAAe,KAC5BM,EAAyB,CAAC,EAEhC,GAAID,IAAe,EACjB,OAAOC,EAGTA,EAAQ,KAAK,mBAAmB,EAEhC,IAAMC,EAAuB,CAAC,EAC9B,OAAAP,EAAe,QAAQ,CAACQ,EAAOC,IAAQ,CACrC,IAAMC,EAAW,GAAGD,CAAG,IAAID,EAAM,SAAS,CAAC,GAC3CD,EAAM,KAAKG,CAAQ,CACrB,CAAC,EACDJ,EAAQ,KAAKC,EAAM,KAAK,GAAG,CAAC,EACrBD,CACT,CASQ,oBAAoBN,EAA6E,CACvG,IAAMC,EAAe,IAAI,IAEzB,cAAO,KAAKD,CAAc,EAAE,QAASS,GAAQ,CAC3C,IAAME,EAAUX,EAAeS,CAAG,EAClCR,EAAa,IAAIQ,EAAKE,CAAO,CAC/B,CAAC,EAEMV,CACT,CACF","sourcesContent":["import { ChildProcessWithoutNullStreams, spawn } from \"child_process\";\nimport kill from \"tree-kill\";\nimport { platform } from \"os\";\n\nimport { sleep } from \"../utils/helpers\";\n\nexport class LocalNode {\n readonly MAXIMUM_WAIT_TIME_SEC = 75;\n\n readonly READINESS_ENDPOINT = \"http://127.0.0.1:8070/\";\n\n process: ChildProcessWithoutNullStreams | null = null;\n\n /**\n * kills all the descendent processes\n * of the node process, including the node process itself\n */\n stop() {\n if (!this.process?.pid) return;\n kill(this.process.pid);\n }\n\n /**\n * Runs a local testnet and waits for process to be up.\n *\n * If local node process is already up it returns and does\n * not start the process\n */\n async run() {\n const nodeIsUp = await this.checkIfProcessIsUp();\n if (nodeIsUp) {\n return;\n }\n this.start();\n await this.waitUntilProcessIsUp();\n }\n\n /**\n * Starts the local testnet by running the aptos node run-local-testnet command\n */\n start() {\n const cliCommand = \"npx\";\n const cliArgs = [\"aptos\", \"node\", \"run-local-testnet\", \"--force-restart\", \"--assume-yes\", \"--with-indexer-api\"];\n\n const currentPlatform = platform();\n let childProcess;\n // Check if current OS is windows\n if (currentPlatform === \"win32\") {\n childProcess = spawn(cliCommand, cliArgs, { shell: true });\n } else {\n childProcess = spawn(cliCommand, cliArgs);\n }\n\n this.process = childProcess;\n\n childProcess.stderr?.on(\"data\", (data: any) => {\n const str = data.toString();\n // Print local node output log\n // eslint-disable-next-line no-console\n console.log(str);\n });\n\n childProcess.stdout?.on(\"data\", (data: any) => {\n const str = data.toString();\n // Print local node output log\n // eslint-disable-next-line no-console\n console.log(str);\n });\n }\n\n /**\n * Waits for the local testnet process to be up\n *\n * @returns Promise<boolean>\n */\n async waitUntilProcessIsUp(): Promise<boolean> {\n let operational = await this.checkIfProcessIsUp();\n const start = Date.now() / 1000;\n let last = start;\n\n while (!operational && start + this.MAXIMUM_WAIT_TIME_SEC > last) {\n // eslint-disable-next-line no-await-in-loop\n await sleep(1000);\n // eslint-disable-next-line no-await-in-loop\n operational = await this.checkIfProcessIsUp();\n last = Date.now() / 1000;\n }\n\n // If we are here it means something blocks the process to start.\n // Might worth checking if another process is running on port 8080\n if (!operational) {\n throw new Error(\"Process failed to start\");\n }\n\n return true;\n }\n\n /**\n * Checks if the local testnet is up\n *\n * @returns Promise<boolean>\n */\n async checkIfProcessIsUp(): Promise<boolean> {\n try {\n // Query readiness endpoint\n const data = await fetch(this.READINESS_ENDPOINT);\n if (data.status === 200) {\n return true;\n }\n return false;\n } catch (err: any) {\n return false;\n }\n }\n}\n","import { spawn } from \"child_process\";\nimport { platform } from \"os\";\n\nimport { AccountAddress } from \"../core\";\nimport { Network } from \"../utils\";\n\nexport class Move {\n /**\n * Function to initialize current directory for Aptos\n *\n * Configuration will be pushed into .aptos/config.yaml\n * @param args.network optional Netowrk type argument to use for default settings, default is local\n * @param args.profile optional Profile to use from the config file, default is 'default'\n * This will be used to override associated settings such as the REST URL, the Faucet URL, and the private key arguments.\n *\n * @returns\n */\n async init(args: { network?: Network; profile?: string }): Promise<boolean> {\n const { network, profile } = args;\n const cliArgs = [\"aptos\", \"init\", `--network=${network ?? \"local\"}`, `--profile=${profile ?? \"default\"}`];\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to compile a package\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n *\n * @returns\n */\n async compile(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n }): Promise<boolean> {\n const { packageDirectoryPath, namedAddresses } = args;\n const cliArgs = [\"aptos\", \"move\", \"compile\", \"--package-dir\", packageDirectoryPath, \"--skip-fetch-latest-git-deps\"];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to run Move unit tests for a package\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n *\n * @returns\n */\n async test(args: { packageDirectoryPath: string; namedAddresses: Record<string, AccountAddress> }): Promise<boolean> {\n const { packageDirectoryPath, namedAddresses } = args;\n const cliArgs = [\"aptos\", \"move\", \"test\", \"--package-dir\", packageDirectoryPath, \"--skip-fetch-latest-git-deps\"];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to publishe the modules in a Move package to the Aptos blockchain\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n * @param args.profile optional Profile to use from the config file.\n *\n * @returns\n */\n async publish(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n }): Promise<boolean> {\n const { packageDirectoryPath, namedAddresses, profile } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"publish\",\n \"--package-dir\",\n packageDirectoryPath,\n \"--skip-fetch-latest-git-deps\",\n `--profile=${profile ?? \"default\"}`,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Run a move command\n *\n * @param args\n * @returns\n */\n // eslint-disable-next-line class-methods-use-this\n private async runCommand(args: Array<string>): Promise<boolean> {\n return new Promise((resolve, reject) => {\n const currentPlatform = platform();\n let childProcess;\n\n // Check if current OS is windows\n if (currentPlatform === \"win32\") {\n childProcess = spawn(\"npx\", args, { shell: true });\n } else {\n childProcess = spawn(\"npx\", args);\n }\n\n childProcess.stdout.pipe(process.stdout);\n childProcess.stderr.pipe(process.stderr);\n process.stdin.pipe(childProcess.stdin);\n\n childProcess.on(\"close\", (code) => {\n if (code === 0) {\n resolve(true); // Resolve with true if the child process exits successfully\n } else {\n reject(new Error(`Child process exited with code ${code}`)); // Reject with an error if the child process exits with an error code\n }\n });\n });\n }\n\n /**\n * Convert named addresses from a Map into an array seperated by a comma\n *\n * @example\n * input: {'alice' => '0x123', 'bob' => '0x456'}\n * output: \"alice=0x123,bob=0x456\"\n *\n * @param namedAddresses\n * @returns An array of names addresses seperated by a comma\n */\n // eslint-disable-next-line class-methods-use-this\n private prepareNamedAddresses(namedAddresses: Map<string, AccountAddress>): Array<string> {\n const totalNames = namedAddresses.size;\n const newArgs: Array<string> = [];\n\n if (totalNames === 0) {\n return newArgs;\n }\n\n newArgs.push(\"--named-addresses\");\n\n const names: Array<string> = [];\n namedAddresses.forEach((value, key) => {\n const toAppend = `${key}=${value.toString()}`;\n names.push(toAppend);\n });\n newArgs.push(names.join(\",\"));\n return newArgs;\n }\n\n /**\n * Parse named addresses from a Record type into a Map\n *\n * @param namedAddresses\n * @returns Map<name,address>\n */\n // eslint-disable-next-line class-methods-use-this\n private parseNamedAddresses(namedAddresses: Record<string, AccountAddress>): Map<string, AccountAddress> {\n const addressesMap = new Map();\n\n Object.keys(namedAddresses).forEach((key) => {\n const address = namedAddresses[key];\n addressesMap.set(key, address);\n });\n\n return addressesMap;\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../src/cli/localNode.ts","../../../src/cli/move.ts"],"names":["spawn","kill","platform","LocalNode","cliCommand","cliArgs","currentPlatform","childProcess","data","str","operational","start","last","sleep","Move","args","network","profile","packageDirectoryPath","namedAddresses","addressesMap","resolve","reject","code","totalNames","newArgs","names","value","key","toAppend","address"],"mappings":"yCAAA,OAAyC,SAAAA,MAAa,gBACtD,OAAOC,MAAU,YACjB,OAAS,YAAAC,MAAgB,KAIlB,IAAMC,EAAN,KAAgB,CAAhB,cACL,KAAS,sBAAwB,GAEjC,KAAS,mBAAqB,yBAE9B,aAAiD,KAMjD,MAAO,CACA,KAAK,SAAS,KACnBF,EAAK,KAAK,QAAQ,GAAG,CACvB,CAQA,MAAM,KAAM,CACO,MAAM,KAAK,mBAAmB,IAI/C,KAAK,MAAM,EACX,MAAM,KAAK,qBAAqB,EAClC,CAKA,OAAQ,CACN,IAAMG,EAAa,MACbC,EAAU,CAAC,QAAS,OAAQ,oBAAqB,kBAAmB,eAAgB,oBAAoB,EAExGC,EAAkBJ,EAAS,EAC7BK,EAEAD,IAAoB,QACtBC,EAAeP,EAAMI,EAAYC,EAAS,CAAE,MAAO,EAAK,CAAC,EAEzDE,EAAeP,EAAMI,EAAYC,CAAO,EAG1C,KAAK,QAAUE,EAEfA,EAAa,QAAQ,GAAG,OAASC,GAAc,CAC7C,IAAMC,EAAMD,EAAK,SAAS,EAG1B,QAAQ,IAAIC,CAAG,CACjB,CAAC,EAEDF,EAAa,QAAQ,GAAG,OAASC,GAAc,CAC7C,IAAMC,EAAM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ASQ,oBAAoBN,EAA6E,CACvG,IAAMC,EAAe,IAAI,IAEzB,cAAO,KAAKD,CAAc,EAAE,QAASS,GAAQ,CAC3C,IAAME,EAAUX,EAAeS,CAAG,EAClCR,EAAa,IAAIQ,EAAKE,CAAO,CAC/B,CAAC,EAEMV,CACT,CACF","sourcesContent":["import { ChildProcessWithoutNullStreams, spawn } from \"child_process\";\nimport kill from \"tree-kill\";\nimport { platform } from \"os\";\n\nimport { sleep } from \"../utils/helpers\";\n\nexport class LocalNode {\n readonly MAXIMUM_WAIT_TIME_SEC = 75;\n\n readonly READINESS_ENDPOINT = \"http://127.0.0.1:8070/\";\n\n process: ChildProcessWithoutNullStreams | null = null;\n\n /**\n * kills all the descendent processes\n * of the node process, including the node process itself\n */\n stop() {\n if (!this.process?.pid) return;\n kill(this.process.pid);\n }\n\n /**\n * Runs a local testnet and waits for process to be up.\n *\n * If local node process is already up it returns and does\n * not start the process\n */\n async run() {\n const nodeIsUp = await this.checkIfProcessIsUp();\n if (nodeIsUp) {\n return;\n }\n this.start();\n await this.waitUntilProcessIsUp();\n }\n\n /**\n * Starts the local testnet by running the aptos node run-local-testnet command\n */\n start() {\n const cliCommand = \"npx\";\n const cliArgs = [\"aptos\", \"node\", \"run-local-testnet\", \"--force-restart\", \"--assume-yes\", \"--with-indexer-api\"];\n\n const currentPlatform = platform();\n let childProcess;\n // Check if current OS is windows\n if (currentPlatform === \"win32\") {\n childProcess = spawn(cliCommand, cliArgs, { shell: true });\n } else {\n childProcess = spawn(cliCommand, cliArgs);\n }\n\n this.process = childProcess;\n\n childProcess.stderr?.on(\"data\", (data: any) => {\n const str = data.toString();\n // Print local node output log\n // eslint-disable-next-line no-console\n console.log(str);\n });\n\n childProcess.stdout?.on(\"data\", (data: any) => {\n const str = data.toString();\n // Print local node output log\n // eslint-disable-next-line no-console\n console.log(str);\n });\n }\n\n /**\n * Waits for the local testnet process to be up\n *\n * @returns Promise<boolean>\n */\n async waitUntilProcessIsUp(): Promise<boolean> {\n let operational = await this.checkIfProcessIsUp();\n const start = Date.now() / 1000;\n let last = start;\n\n while (!operational && start + this.MAXIMUM_WAIT_TIME_SEC > last) {\n // eslint-disable-next-line no-await-in-loop\n await sleep(1000);\n // eslint-disable-next-line no-await-in-loop\n operational = await this.checkIfProcessIsUp();\n last = Date.now() / 1000;\n }\n\n // If we are here it means something blocks the process to start.\n // Might worth checking if another process is running on port 8080\n if (!operational) {\n throw new Error(\"Process failed to start\");\n }\n\n return true;\n }\n\n /**\n * Checks if the local testnet is up\n *\n * @returns Promise<boolean>\n */\n async checkIfProcessIsUp(): Promise<boolean> {\n try {\n // Query readiness endpoint\n const data = await fetch(this.READINESS_ENDPOINT);\n if (data.status === 200) {\n return true;\n }\n return false;\n } catch (err: any) {\n return false;\n }\n }\n}\n","import { spawn } from \"child_process\";\nimport { platform } from \"os\";\n\nimport { AccountAddress } from \"../core\";\nimport { Network } from \"../utils\";\n\nexport class Move {\n /**\n * Function to initialize current directory for Aptos\n *\n * Configuration will be pushed into .aptos/config.yaml\n * @param args.network optional Netowrk type argument to use for default settings, default is local\n * @param args.profile optional Profile to use from the config file, default is 'default'\n * This will be used to override associated settings such as the REST URL, the Faucet URL, and the private key arguments.\n *\n * @returns\n */\n async init(args: { network?: Network; profile?: string }): Promise<boolean> {\n const { network, profile } = args;\n const cliArgs = [\"aptos\", \"init\", `--network=${network ?? \"local\"}`, `--profile=${profile ?? \"default\"}`];\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to compile a package\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n *\n * @returns\n */\n async compile(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n }): Promise<boolean> {\n const { packageDirectoryPath, namedAddresses } = args;\n const cliArgs = [\"aptos\", \"move\", \"compile\", \"--package-dir\", packageDirectoryPath];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to run Move unit tests for a package\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n *\n * @returns\n */\n async test(args: { packageDirectoryPath: string; namedAddresses: Record<string, AccountAddress> }): Promise<boolean> {\n const { packageDirectoryPath, namedAddresses } = args;\n const cliArgs = [\"aptos\", \"move\", \"test\", \"--package-dir\", packageDirectoryPath];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to publishe the modules in a Move package to the Aptos blockchain\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n * @param args.profile optional Profile to use from the config file.\n *\n * @returns\n */\n async publish(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n }): Promise<boolean> {\n const { packageDirectoryPath, namedAddresses, profile } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"publish\",\n \"--package-dir\",\n packageDirectoryPath,\n `--profile=${profile ?? \"default\"}`,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Run a move command\n *\n * @param args\n * @returns\n */\n // eslint-disable-next-line class-methods-use-this\n private async runCommand(args: Array<string>): Promise<boolean> {\n return new Promise((resolve, reject) => {\n const currentPlatform = platform();\n let childProcess;\n\n // Check if current OS is windows\n if (currentPlatform === \"win32\") {\n childProcess = spawn(\"npx\", args, { shell: true });\n } else {\n childProcess = spawn(\"npx\", args);\n }\n\n childProcess.stdout.pipe(process.stdout);\n childProcess.stderr.pipe(process.stderr);\n process.stdin.pipe(childProcess.stdin);\n\n childProcess.on(\"close\", (code) => {\n if (code === 0) {\n resolve(true); // Resolve with true if the child process exits successfully\n } else {\n reject(new Error(`Child process exited with code ${code}`)); // Reject with an error if the child process exits with an error code\n }\n });\n });\n }\n\n /**\n * Convert named addresses from a Map into an array seperated by a comma\n *\n * @example\n * input: {'alice' => '0x123', 'bob' => '0x456'}\n * output: \"alice=0x123,bob=0x456\"\n *\n * @param namedAddresses\n * @returns An array of names addresses seperated by a comma\n */\n // eslint-disable-next-line class-methods-use-this\n private prepareNamedAddresses(namedAddresses: Map<string, AccountAddress>): Array<string> {\n const totalNames = namedAddresses.size;\n const newArgs: Array<string> = [];\n\n if (totalNames === 0) {\n return newArgs;\n }\n\n newArgs.push(\"--named-addresses\");\n\n const names: Array<string> = [];\n namedAddresses.forEach((value, key) => {\n const toAppend = `${key}=${value.toString()}`;\n names.push(toAppend);\n });\n newArgs.push(names.join(\",\"));\n return newArgs;\n }\n\n /**\n * Parse named addresses from a Record type into a Map\n *\n * @param namedAddresses\n * @returns Map<name,address>\n */\n // eslint-disable-next-line class-methods-use-this\n private parseNamedAddresses(namedAddresses: Record<string, AccountAddress>): Map<string, AccountAddress> {\n const addressesMap = new Map();\n\n Object.keys(namedAddresses).forEach((key) => {\n const address = namedAddresses[key];\n addressesMap.set(key, address);\n });\n\n return addressesMap;\n }\n}\n"]}
@@ -4607,8 +4607,9 @@ declare class Faucet {
4607
4607
  declare function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean;
4608
4608
  declare function isString(arg: any): arg is string;
4609
4609
  declare function isNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number;
4610
+ declare function convertNumber(arg: SimpleEntryFunctionArgumentTypes): number | undefined;
4610
4611
  declare function isLargeNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number | bigint | string;
4611
- declare function isNull(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined;
4612
+ declare function isEmptyOption(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined;
4612
4613
  declare function isEncodedEntryFunctionArgument(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is EntryFunctionArgumentTypes;
4613
4614
  declare function isBcsBool(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is Bool;
4614
4615
  declare function isBcsAddress(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is AccountAddress;
@@ -4743,6 +4744,7 @@ declare function fetchViewFunctionAbi(moduleAddress: string, moduleName: string,
4743
4744
  * @param functionAbi
4744
4745
  * @param arg
4745
4746
  * @param position
4747
+ * @param genericTypeParams
4746
4748
  */
4747
4749
  declare function convertArgument(functionName: string, functionAbi: FunctionABI, arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes, position: number, genericTypeParams: Array<TypeTag>): EntryFunctionArgumentTypes;
4748
4750
  declare function checkOrConvertArgument(arg: SimpleEntryFunctionArgumentTypes | EntryFunctionArgumentTypes, param: TypeTag, position: number, genericTypeParams: Array<TypeTag>): EntryFunctionArgumentTypes;
@@ -4844,7 +4846,7 @@ declare class FungibleAsset {
4844
4846
  options?: PaginationArgs & WhereArg<FungibleAssetMetadataBoolExp>;
4845
4847
  }): Promise<GetFungibleAssetMetadataResponse>;
4846
4848
  /**
4847
- * Queries a fungible asset metadata
4849
+ * Queries a fungible asset metadata by the asset type
4848
4850
  *
4849
4851
  * This query returns the fungible asset metadata for a specific fungible asset.
4850
4852
  *
@@ -4863,6 +4865,23 @@ declare class FungibleAsset {
4863
4865
  assetType: string;
4864
4866
  minimumLedgerVersion?: AnyNumber;
4865
4867
  }): Promise<GetFungibleAssetMetadataResponse[0]>;
4868
+ /**
4869
+ * Queries a fungible asset metadata by the creator address
4870
+ *
4871
+ * This query returns the fungible asset metadata for a specific fungible asset.
4872
+ *
4873
+ * @example
4874
+ * const fungibleAsset = await aptos.getFungibleAssetMetadataByCreatorAddress({creatorAddress:"0x123"})
4875
+ *
4876
+ * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4877
+ * @param args.creatorAddress The creator address of the fungible asset.
4878
+ *
4879
+ * @returns A fungible asset metadata item
4880
+ */
4881
+ getFungibleAssetMetadataByCreatorAddress(args: {
4882
+ creatorAddress: AccountAddressInput;
4883
+ minimumLedgerVersion?: AnyNumber;
4884
+ }): Promise<GetFungibleAssetMetadataResponse>;
4866
4885
  /**
4867
4886
  * Queries all fungible asset activities
4868
4887
  *
@@ -6409,4 +6428,4 @@ declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAp
6409
6428
  declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6410
6429
  declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
6411
6430
 
6412
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, 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, KeylessAccount, KeylessConfiguration, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, getKeylessConfig, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
6431
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, 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, KeylessAccount, KeylessConfiguration, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, convertNumber, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, getKeylessConfig, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEmptyOption, isEncodedEntryFunctionArgument, isLargeNumber, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };