@aptos-labs/ts-sdk 1.27.1-zeta.0 → 1.28.0-zeta.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 (882) hide show
  1. package/dist/common/{accountAddress-BeSCq9i_.d.ts → accountAddress-0OnKb1b9.d.ts} +3 -2
  2. package/dist/common/chunk-HBPH2AD3.js +2 -0
  3. package/dist/common/chunk-HBPH2AD3.js.map +1 -0
  4. package/dist/common/cli/index.d.ts +1 -1
  5. package/dist/common/cli/index.js +1 -453
  6. package/dist/common/cli/index.js.map +1 -1
  7. package/dist/common/index.d.ts +221 -243
  8. package/dist/common/index.js +429 -12755
  9. package/dist/common/index.js.map +1 -1
  10. package/dist/esm/{Ed25519Account-B1VMJOY2.d.mts → Ed25519Account-9zBaZEnp.d.mts} +1 -1
  11. package/dist/esm/account/Account.d.mts +2 -2
  12. package/dist/esm/account/Account.mjs +1 -70
  13. package/dist/esm/account/Ed25519Account.d.mts +2 -2
  14. package/dist/esm/account/Ed25519Account.mjs +1 -68
  15. package/dist/esm/account/EphemeralKeyPair.d.mts +1 -1
  16. package/dist/esm/account/EphemeralKeyPair.mjs +1 -49
  17. package/dist/esm/account/FederatedKeylessAccount.d.mts +18 -120
  18. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -70
  19. package/dist/esm/account/KeylessAccount.d.mts +13 -156
  20. package/dist/esm/account/KeylessAccount.mjs +1 -71
  21. package/dist/esm/account/KeylessAccountCommon.d.mts +207 -0
  22. package/dist/esm/account/KeylessAccountCommon.mjs +2 -0
  23. package/dist/esm/account/MultiKeyAccount.d.mts +4 -3
  24. package/dist/esm/account/MultiKeyAccount.mjs +1 -70
  25. package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
  26. package/dist/esm/account/SingleKeyAccount.mjs +1 -68
  27. package/dist/esm/account/index.d.mts +6 -3
  28. package/dist/esm/account/index.mjs +1 -91
  29. package/dist/esm/api/account.d.mts +4 -3
  30. package/dist/esm/api/account.mjs +1 -81
  31. package/dist/esm/api/ans.d.mts +2 -2
  32. package/dist/esm/api/ans.mjs +1 -91
  33. package/dist/esm/api/aptos.d.mts +4 -3
  34. package/dist/esm/api/aptos.mjs +1 -124
  35. package/dist/esm/api/aptosConfig.mjs +1 -9
  36. package/dist/esm/api/coin.d.mts +1 -1
  37. package/dist/esm/api/coin.mjs +1 -90
  38. package/dist/esm/api/digitalAsset.d.mts +2 -2
  39. package/dist/esm/api/digitalAsset.mjs +1 -91
  40. package/dist/esm/api/event.mjs +1 -58
  41. package/dist/esm/api/faucet.mjs +1 -57
  42. package/dist/esm/api/fungibleAsset.d.mts +2 -2
  43. package/dist/esm/api/fungibleAsset.mjs +1 -91
  44. package/dist/esm/api/general.d.mts +1 -1
  45. package/dist/esm/api/general.mjs +1 -89
  46. package/dist/esm/api/index.d.mts +4 -3
  47. package/dist/esm/api/index.mjs +1 -128
  48. package/dist/esm/api/keyless.d.mts +25 -10
  49. package/dist/esm/api/keyless.mjs +1 -81
  50. package/dist/esm/api/object.mjs +1 -58
  51. package/dist/esm/api/staking.mjs +1 -58
  52. package/dist/esm/api/table.mjs +1 -36
  53. package/dist/esm/api/transaction.d.mts +2 -2
  54. package/dist/esm/api/transaction.mjs +1 -98
  55. package/dist/esm/api/transactionSubmission/build.d.mts +1 -1
  56. package/dist/esm/api/transactionSubmission/build.mjs +1 -89
  57. package/dist/esm/api/transactionSubmission/helpers.mjs +1 -9
  58. package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
  59. package/dist/esm/api/transactionSubmission/management.mjs +1 -93
  60. package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
  61. package/dist/esm/api/transactionSubmission/sign.mjs +1 -113
  62. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  63. package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -1
  64. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -90
  65. package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
  66. package/dist/esm/api/transactionSubmission/submit.mjs +1 -90
  67. package/dist/esm/api/utils.mjs +1 -34
  68. package/dist/esm/bcs/consts.mjs +1 -17
  69. package/dist/esm/bcs/deserializer.mjs +1 -8
  70. package/dist/esm/bcs/index.d.mts +1 -1
  71. package/dist/esm/bcs/index.mjs +1 -57
  72. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -12
  73. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -11
  74. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -25
  75. package/dist/esm/bcs/serializable/moveStructs.d.mts +10 -1
  76. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -18
  77. package/dist/esm/bcs/serializer.mjs +1 -18
  78. package/dist/esm/chunk-23J256KA.mjs +2 -0
  79. package/dist/esm/chunk-23J256KA.mjs.map +1 -0
  80. package/dist/esm/chunk-2KLLSBBN.mjs +2 -0
  81. package/dist/esm/{chunk-2P7TONQL.mjs.map → chunk-2KLLSBBN.mjs.map} +1 -1
  82. package/dist/esm/chunk-2X3YDREK.mjs +2 -0
  83. package/dist/esm/{chunk-ZZA2BSOF.mjs.map → chunk-2X3YDREK.mjs.map} +1 -1
  84. package/dist/esm/chunk-35LCHJIH.mjs +2 -0
  85. package/dist/esm/{chunk-65TWSJTX.mjs.map → chunk-35LCHJIH.mjs.map} +1 -1
  86. package/dist/esm/chunk-3CE63FFN.mjs +2 -0
  87. package/dist/esm/{chunk-ANOJYMO2.mjs.map → chunk-3CE63FFN.mjs.map} +1 -1
  88. package/dist/esm/chunk-3TSO6PDV.mjs +2 -0
  89. package/dist/esm/{chunk-LITCPMVC.mjs.map → chunk-3TSO6PDV.mjs.map} +1 -1
  90. package/dist/esm/chunk-3XXBKVEX.mjs +2 -0
  91. package/dist/esm/{chunk-6LK3MDX7.mjs.map → chunk-3XXBKVEX.mjs.map} +1 -1
  92. package/dist/esm/chunk-4I6IUAHQ.mjs +2 -0
  93. package/dist/esm/{chunk-NUA7L6XF.mjs.map → chunk-4I6IUAHQ.mjs.map} +1 -1
  94. package/dist/esm/chunk-4LHVEO7T.mjs +2 -0
  95. package/dist/esm/chunk-4LHVEO7T.mjs.map +1 -0
  96. package/dist/esm/chunk-4X4ODN6K.mjs +2 -0
  97. package/dist/esm/{chunk-S7KNZC2A.mjs.map → chunk-4X4ODN6K.mjs.map} +1 -1
  98. package/dist/esm/chunk-56CNRT2K.mjs +2 -0
  99. package/dist/esm/{chunk-SBB4YEPT.mjs.map → chunk-56CNRT2K.mjs.map} +1 -1
  100. package/dist/esm/chunk-5FPWLBZT.mjs +2 -0
  101. package/dist/esm/{chunk-P3RTJ6VC.mjs.map → chunk-5FPWLBZT.mjs.map} +1 -1
  102. package/dist/esm/chunk-5HI4R3A2.mjs +2 -0
  103. package/dist/esm/{chunk-YQPKNTIN.mjs.map → chunk-5HI4R3A2.mjs.map} +1 -1
  104. package/dist/esm/chunk-5HWJ3SN4.mjs +2 -0
  105. package/dist/esm/{chunk-OL2YPOXZ.mjs.map → chunk-5HWJ3SN4.mjs.map} +1 -1
  106. package/dist/esm/chunk-5MZJD6SA.mjs +2 -0
  107. package/dist/esm/{chunk-PSRD6U34.mjs.map → chunk-5MZJD6SA.mjs.map} +1 -1
  108. package/dist/esm/chunk-5RNKD3GW.mjs +2 -0
  109. package/dist/esm/{chunk-EKY7QRXH.mjs.map → chunk-5RNKD3GW.mjs.map} +1 -1
  110. package/dist/esm/chunk-5VQK4F5X.mjs +2 -0
  111. package/dist/esm/chunk-5VQK4F5X.mjs.map +1 -0
  112. package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
  113. package/dist/esm/{chunk-SIJELMDP.mjs.map → chunk-6EMN3BOV.mjs.map} +1 -1
  114. package/dist/esm/chunk-72S2NOM5.mjs +2 -0
  115. package/dist/esm/chunk-72S2NOM5.mjs.map +1 -0
  116. package/dist/esm/chunk-7BPKOPP7.mjs +2 -0
  117. package/dist/esm/{chunk-64OZO6BS.mjs.map → chunk-7BPKOPP7.mjs.map} +1 -1
  118. package/dist/esm/chunk-7NQHLM3Y.mjs +2 -0
  119. package/dist/esm/chunk-7NQHLM3Y.mjs.map +1 -0
  120. package/dist/esm/chunk-7T4PLPI7.mjs +2 -0
  121. package/dist/esm/{chunk-7CNDQXDM.mjs.map → chunk-7T4PLPI7.mjs.map} +1 -1
  122. package/dist/esm/chunk-7T5CUI2H.mjs +2 -0
  123. package/dist/esm/{chunk-B673XLJY.mjs.map → chunk-7T5CUI2H.mjs.map} +1 -1
  124. package/dist/esm/chunk-AGFN3VVA.mjs +2 -0
  125. package/dist/esm/{chunk-BEEISUWP.mjs.map → chunk-AGFN3VVA.mjs.map} +1 -1
  126. package/dist/esm/chunk-AGTINH7K.mjs +2 -0
  127. package/dist/esm/{chunk-UZLU45X7.mjs.map → chunk-AGTINH7K.mjs.map} +1 -1
  128. package/dist/esm/chunk-AH44UPM4.mjs +2 -0
  129. package/dist/esm/{chunk-EYHRMZPO.mjs.map → chunk-AH44UPM4.mjs.map} +1 -1
  130. package/dist/esm/chunk-AOCNYMMX.mjs +2 -0
  131. package/dist/esm/{chunk-YV7M4CFP.mjs.map → chunk-AOCNYMMX.mjs.map} +1 -1
  132. package/dist/esm/chunk-ASQ2YBOR.mjs +2 -0
  133. package/dist/esm/{chunk-DNMI5PWU.mjs.map → chunk-ASQ2YBOR.mjs.map} +1 -1
  134. package/dist/esm/chunk-ASQIKTEF.mjs +2 -0
  135. package/dist/esm/{chunk-NYELBSVO.mjs.map → chunk-ASQIKTEF.mjs.map} +1 -1
  136. package/dist/esm/chunk-AT2A7OZD.mjs +2 -0
  137. package/dist/esm/{chunk-EPUYKFAT.mjs.map → chunk-AT2A7OZD.mjs.map} +1 -1
  138. package/dist/esm/chunk-AWQNX3RT.mjs +2 -0
  139. package/dist/esm/{chunk-AW4P5HCX.mjs.map → chunk-AWQNX3RT.mjs.map} +1 -1
  140. package/dist/esm/chunk-AZ642ORV.mjs +2 -0
  141. package/dist/esm/{chunk-PLUMRBKI.mjs.map → chunk-AZ642ORV.mjs.map} +1 -1
  142. package/dist/esm/chunk-B5NYEWNM.mjs +2 -0
  143. package/dist/esm/{chunk-JKM62HRP.mjs.map → chunk-B5NYEWNM.mjs.map} +1 -1
  144. package/dist/esm/chunk-BC5BEOKM.mjs +2 -0
  145. package/dist/esm/{chunk-MQALTYRJ.mjs.map → chunk-BC5BEOKM.mjs.map} +1 -1
  146. package/dist/esm/chunk-BQPQLOIW.mjs +2 -0
  147. package/dist/esm/{chunk-DXGNWBVW.mjs.map → chunk-BQPQLOIW.mjs.map} +1 -1
  148. package/dist/esm/chunk-BSUYPXRD.mjs +2 -0
  149. package/dist/esm/{chunk-G2VEDGO7.mjs.map → chunk-BSUYPXRD.mjs.map} +1 -1
  150. package/dist/esm/chunk-CDIKSNSU.mjs +2 -0
  151. package/dist/esm/{chunk-6AO2MJMN.mjs.map → chunk-CDIKSNSU.mjs.map} +1 -1
  152. package/dist/esm/chunk-CUDIVR4U.mjs +2 -0
  153. package/dist/esm/chunk-CUDIVR4U.mjs.map +1 -0
  154. package/dist/esm/chunk-DAIOG6HU.mjs +2 -0
  155. package/dist/esm/chunk-DAIOG6HU.mjs.map +1 -0
  156. package/dist/esm/chunk-DFMC56WX.mjs +2 -0
  157. package/dist/esm/chunk-DFMC56WX.mjs.map +1 -0
  158. package/dist/esm/chunk-DYMN66K5.mjs +2 -0
  159. package/dist/esm/{chunk-BMXV6WQK.mjs.map → chunk-DYMN66K5.mjs.map} +1 -1
  160. package/dist/esm/chunk-E2WOZVJX.mjs +2 -0
  161. package/dist/esm/{chunk-LMUNGBGS.mjs.map → chunk-E2WOZVJX.mjs.map} +1 -1
  162. package/dist/esm/chunk-E7VSBBQM.mjs +2 -0
  163. package/dist/esm/{chunk-GWS7OLIU.mjs.map → chunk-E7VSBBQM.mjs.map} +1 -1
  164. package/dist/esm/chunk-EDVGFSB5.mjs +2 -0
  165. package/dist/esm/{chunk-IUC6XUYA.mjs.map → chunk-EDVGFSB5.mjs.map} +1 -1
  166. package/dist/esm/chunk-EXP5STXZ.mjs +2 -0
  167. package/dist/esm/chunk-EXP5STXZ.mjs.map +1 -0
  168. package/dist/esm/chunk-FBPNHF54.mjs +2 -0
  169. package/dist/esm/{chunk-QMM2KL6C.mjs.map → chunk-FBPNHF54.mjs.map} +1 -1
  170. package/dist/esm/chunk-FDD6WNN6.mjs +2 -0
  171. package/dist/esm/{chunk-GKF3HFY2.mjs.map → chunk-FDD6WNN6.mjs.map} +1 -1
  172. package/dist/esm/chunk-FDTLBR6D.mjs +2 -0
  173. package/dist/esm/{chunk-XBY4UM6M.mjs.map → chunk-FDTLBR6D.mjs.map} +1 -1
  174. package/dist/esm/chunk-FLNLQ7K5.mjs +2 -0
  175. package/dist/esm/{chunk-CZ22MKHG.mjs.map → chunk-FLNLQ7K5.mjs.map} +1 -1
  176. package/dist/esm/chunk-FOLCONSQ.mjs +2 -0
  177. package/dist/esm/{chunk-L3E7YJBM.mjs.map → chunk-FOLCONSQ.mjs.map} +1 -1
  178. package/dist/esm/chunk-FTBXTZM2.mjs +2 -0
  179. package/dist/esm/{chunk-2UN35LUX.mjs.map → chunk-FTBXTZM2.mjs.map} +1 -1
  180. package/dist/esm/chunk-FVA2OPG4.mjs +2 -0
  181. package/dist/esm/chunk-GAEAYY44.mjs +1 -0
  182. package/dist/esm/chunk-GKRIMGKW.mjs +2 -0
  183. package/dist/esm/{chunk-WVT25KQR.mjs.map → chunk-GKRIMGKW.mjs.map} +1 -1
  184. package/dist/esm/chunk-GX2II7H4.mjs +2 -0
  185. package/dist/esm/{chunk-7PLTJUOO.mjs.map → chunk-GX2II7H4.mjs.map} +1 -1
  186. package/dist/esm/chunk-H3TJNBHX.mjs +2 -0
  187. package/dist/esm/{chunk-HCIGCJ62.mjs.map → chunk-H3TJNBHX.mjs.map} +1 -1
  188. package/dist/esm/chunk-HAT5S2XX.mjs +2 -0
  189. package/dist/esm/{chunk-KWX2PWAP.mjs.map → chunk-HAT5S2XX.mjs.map} +1 -1
  190. package/dist/esm/chunk-HOQCND6F.mjs +2 -0
  191. package/dist/esm/{chunk-3V5WGOZH.mjs.map → chunk-HOQCND6F.mjs.map} +1 -1
  192. package/dist/esm/chunk-IA4RELOH.mjs +1 -0
  193. package/dist/esm/chunk-IA4RELOH.mjs.map +1 -0
  194. package/dist/esm/chunk-IEH7ILF3.mjs +2 -0
  195. package/dist/esm/chunk-IEH7ILF3.mjs.map +1 -0
  196. package/dist/esm/chunk-ILI5TDXD.mjs +2 -0
  197. package/dist/esm/{chunk-3WDVQYWL.mjs.map → chunk-ILI5TDXD.mjs.map} +1 -1
  198. package/dist/esm/chunk-IVVWQKCF.mjs +2 -0
  199. package/dist/esm/{chunk-JWEFNE2S.mjs.map → chunk-IVVWQKCF.mjs.map} +1 -1
  200. package/dist/esm/chunk-J45FMNYT.mjs +2 -0
  201. package/dist/esm/{chunk-I5BTSNTY.mjs.map → chunk-J45FMNYT.mjs.map} +1 -1
  202. package/dist/esm/chunk-K7ZPRL7C.mjs +2 -0
  203. package/dist/esm/chunk-K7ZPRL7C.mjs.map +1 -0
  204. package/dist/esm/chunk-KEYAPEAX.mjs +2 -0
  205. package/dist/esm/{chunk-6J7C4S3H.mjs.map → chunk-KEYAPEAX.mjs.map} +1 -1
  206. package/dist/esm/chunk-KRRHWHTG.mjs +2 -0
  207. package/dist/esm/{chunk-CIPO346F.mjs.map → chunk-KRRHWHTG.mjs.map} +1 -1
  208. package/dist/esm/chunk-LKN324IO.mjs +2 -0
  209. package/dist/esm/{chunk-WKNU6EPA.mjs.map → chunk-LKN324IO.mjs.map} +1 -1
  210. package/dist/esm/chunk-LR65XHSF.mjs +2 -0
  211. package/dist/esm/{chunk-PU5AFUX3.mjs.map → chunk-LR65XHSF.mjs.map} +1 -1
  212. package/dist/esm/chunk-MYF2VRVN.mjs +2 -0
  213. package/dist/esm/chunk-MYF2VRVN.mjs.map +1 -0
  214. package/dist/esm/chunk-N6EC72OZ.mjs +2 -0
  215. package/dist/esm/{chunk-IX2XMCWZ.mjs.map → chunk-N6EC72OZ.mjs.map} +1 -1
  216. package/dist/esm/chunk-ND23H3AK.mjs +2 -0
  217. package/dist/esm/{chunk-NGUFBDTH.mjs.map → chunk-ND23H3AK.mjs.map} +1 -1
  218. package/dist/esm/chunk-NGIPNL7N.mjs +2 -0
  219. package/dist/esm/{chunk-ZR36Y2RX.mjs.map → chunk-NGIPNL7N.mjs.map} +1 -1
  220. package/dist/esm/chunk-NLV3PTOE.mjs +2 -0
  221. package/dist/esm/{chunk-6XNCA4KS.mjs.map → chunk-NLV3PTOE.mjs.map} +1 -1
  222. package/dist/esm/chunk-NOVJ2ROD.mjs +2 -0
  223. package/dist/esm/{chunk-GDE3IBAB.mjs.map → chunk-NOVJ2ROD.mjs.map} +1 -1
  224. package/dist/esm/chunk-NWTMTPPX.mjs +2 -0
  225. package/dist/esm/{chunk-4SPKF2Q3.mjs.map → chunk-NWTMTPPX.mjs.map} +1 -1
  226. package/dist/esm/chunk-OOVNFKA6.mjs +2 -0
  227. package/dist/esm/{chunk-LMUCX6RP.mjs.map → chunk-OOVNFKA6.mjs.map} +1 -1
  228. package/dist/esm/chunk-PDY3AFVI.mjs +2 -0
  229. package/dist/esm/{chunk-2LHXYQXO.mjs.map → chunk-PDY3AFVI.mjs.map} +1 -1
  230. package/dist/esm/chunk-QKVID52D.mjs +2 -0
  231. package/dist/esm/{chunk-67J3MGN7.mjs.map → chunk-QKVID52D.mjs.map} +1 -1
  232. package/dist/esm/chunk-QOE5WJMC.mjs +2 -0
  233. package/dist/esm/{chunk-J24CDBEH.mjs.map → chunk-QOE5WJMC.mjs.map} +1 -1
  234. package/dist/esm/chunk-QP2A5ISX.mjs +2 -0
  235. package/dist/esm/{chunk-6BI4XTJN.mjs.map → chunk-QP2A5ISX.mjs.map} +1 -1
  236. package/dist/esm/chunk-QTTDBQAJ.mjs +2 -0
  237. package/dist/esm/{chunk-SRKSXJ5U.mjs.map → chunk-QTTDBQAJ.mjs.map} +1 -1
  238. package/dist/esm/chunk-R2RMAWDH.mjs +2 -0
  239. package/dist/esm/{chunk-GMGJ6Q5P.mjs.map → chunk-R2RMAWDH.mjs.map} +1 -1
  240. package/dist/esm/chunk-S3I4THN5.mjs +2 -0
  241. package/dist/esm/{chunk-U6N546EH.mjs.map → chunk-S3I4THN5.mjs.map} +1 -1
  242. package/dist/esm/chunk-S6TRBKP5.mjs +2 -0
  243. package/dist/esm/{chunk-MY6PZIXF.mjs.map → chunk-S6TRBKP5.mjs.map} +1 -1
  244. package/dist/esm/chunk-SHOPSMRK.mjs +2 -0
  245. package/dist/esm/{chunk-V2LEZDNS.mjs.map → chunk-SHOPSMRK.mjs.map} +1 -1
  246. package/dist/esm/chunk-SP4PT77Z.mjs +2 -0
  247. package/dist/esm/{chunk-YJJTCGDT.mjs.map → chunk-SP4PT77Z.mjs.map} +1 -1
  248. package/dist/esm/chunk-SVO6PVAX.mjs +2 -0
  249. package/dist/esm/chunk-SVO6PVAX.mjs.map +1 -0
  250. package/dist/esm/chunk-TJDC5PWD.mjs +2 -0
  251. package/dist/esm/{chunk-NMKCJNQM.mjs.map → chunk-TJDC5PWD.mjs.map} +1 -1
  252. package/dist/esm/chunk-TKQEC2WD.mjs +2 -0
  253. package/dist/esm/chunk-TKQEC2WD.mjs.map +1 -0
  254. package/dist/esm/chunk-TVWAYKEP.mjs +2 -0
  255. package/dist/esm/{chunk-ACAXM6CI.mjs.map → chunk-TVWAYKEP.mjs.map} +1 -1
  256. package/dist/esm/chunk-U6Z4FNB7.mjs +2 -0
  257. package/dist/esm/{chunk-AC3OGAL6.mjs.map → chunk-U6Z4FNB7.mjs.map} +1 -1
  258. package/dist/esm/chunk-UAL27G6B.mjs +2 -0
  259. package/dist/esm/chunk-UAL27G6B.mjs.map +1 -0
  260. package/dist/esm/chunk-UW5TIZFE.mjs +2 -0
  261. package/dist/esm/{chunk-26HCJOBL.mjs.map → chunk-UW5TIZFE.mjs.map} +1 -1
  262. package/dist/esm/{chunk-NFA2AU5E.mjs → chunk-VHNX2NUR.mjs} +29 -352
  263. package/dist/esm/{chunk-NFA2AU5E.mjs.map → chunk-VHNX2NUR.mjs.map} +1 -1
  264. package/dist/esm/chunk-VNIBQXNX.mjs +2 -0
  265. package/dist/esm/{chunk-DPM4FHN4.mjs.map → chunk-VNIBQXNX.mjs.map} +1 -1
  266. package/dist/esm/chunk-VTEOS4PS.mjs +2 -0
  267. package/dist/esm/{chunk-5J7P2N3A.mjs.map → chunk-VTEOS4PS.mjs.map} +1 -1
  268. package/dist/esm/chunk-VZKENIJR.mjs +2 -0
  269. package/dist/esm/{chunk-FBRETS2O.mjs.map → chunk-VZKENIJR.mjs.map} +1 -1
  270. package/dist/esm/chunk-X26OHQZO.mjs +2 -0
  271. package/dist/esm/{chunk-MXMVEGUO.mjs.map → chunk-X26OHQZO.mjs.map} +1 -1
  272. package/dist/esm/chunk-YACGA3YS.mjs +2 -0
  273. package/dist/esm/{chunk-PNGNBHMD.mjs.map → chunk-YACGA3YS.mjs.map} +1 -1
  274. package/dist/esm/chunk-YELQZVBK.mjs +2 -0
  275. package/dist/esm/chunk-YELQZVBK.mjs.map +1 -0
  276. package/dist/esm/chunk-YSVXROOO.mjs +2 -0
  277. package/dist/esm/{chunk-YSSWVBLZ.mjs.map → chunk-YSVXROOO.mjs.map} +1 -1
  278. package/dist/esm/chunk-YTOQGCAM.mjs +2 -0
  279. package/dist/esm/{chunk-AF7GBOBQ.mjs.map → chunk-YTOQGCAM.mjs.map} +1 -1
  280. package/dist/esm/chunk-Z56T4OGM.mjs +2 -0
  281. package/dist/esm/chunk-Z56T4OGM.mjs.map +1 -0
  282. package/dist/esm/chunk-ZAHUEAGT.mjs +2 -0
  283. package/dist/esm/{chunk-BBCNBKEC.mjs.map → chunk-ZAHUEAGT.mjs.map} +1 -1
  284. package/dist/esm/chunk-ZASN3QQQ.mjs +2 -0
  285. package/dist/esm/{chunk-I2ZYQVA3.mjs.map → chunk-ZASN3QQQ.mjs.map} +1 -1
  286. package/dist/esm/chunk-ZXVQ2OBJ.mjs +2 -0
  287. package/dist/esm/{chunk-N6K44CGJ.mjs.map → chunk-ZXVQ2OBJ.mjs.map} +1 -1
  288. package/dist/esm/chunk-ZZIMFLVT.mjs +2 -0
  289. package/dist/esm/{chunk-UZXDD3QH.mjs.map → chunk-ZZIMFLVT.mjs.map} +1 -1
  290. package/dist/esm/cli/index.mjs +1 -12
  291. package/dist/esm/cli/localNode.mjs +1 -8
  292. package/dist/esm/cli/move.mjs +1 -7
  293. package/dist/esm/client/core.mjs +1 -28
  294. package/dist/esm/client/get.mjs +1 -33
  295. package/dist/esm/client/index.mjs +1 -56
  296. package/dist/esm/client/post.mjs +1 -37
  297. package/dist/esm/client/types.mjs +1 -8
  298. package/dist/esm/core/account/index.mjs +1 -20
  299. package/dist/esm/core/account/utils/address.mjs +1 -18
  300. package/dist/esm/core/account/utils/index.mjs +1 -19
  301. package/dist/esm/core/accountAddress.mjs +1 -15
  302. package/dist/esm/core/authenticationKey.d.mts +1 -1
  303. package/dist/esm/core/authenticationKey.mjs +1 -14
  304. package/dist/esm/core/common.mjs +1 -7
  305. package/dist/esm/core/crypto/ed25519.d.mts +1 -1
  306. package/dist/esm/core/crypto/ed25519.mjs +1 -31
  307. package/dist/esm/core/crypto/ephemeral.d.mts +1 -1
  308. package/dist/esm/core/crypto/ephemeral.mjs +1 -28
  309. package/dist/esm/core/crypto/federatedKeyless.d.mts +1 -1
  310. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -42
  311. package/dist/esm/core/crypto/hdKey.mjs +1 -25
  312. package/dist/esm/core/crypto/index.d.mts +4 -3
  313. package/dist/esm/core/crypto/index.mjs +1 -143
  314. package/dist/esm/core/crypto/keyless.d.mts +1 -1
  315. package/dist/esm/core/crypto/keyless.mjs +1 -71
  316. package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
  317. package/dist/esm/core/crypto/multiEd25519.mjs +1 -28
  318. package/dist/esm/core/crypto/multiKey.d.mts +1 -1
  319. package/dist/esm/core/crypto/multiKey.mjs +1 -47
  320. package/dist/esm/core/crypto/poseidon.mjs +1 -15
  321. package/dist/esm/core/crypto/privateKey.d.mts +1 -1
  322. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  323. package/dist/esm/core/crypto/proof.mjs +1 -19
  324. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  325. package/dist/esm/core/crypto/publicKey.mjs +1 -21
  326. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  327. package/dist/esm/core/crypto/secp256k1.mjs +1 -27
  328. package/dist/esm/core/crypto/signature.mjs +1 -19
  329. package/dist/esm/core/crypto/singleKey.d.mts +1 -1
  330. package/dist/esm/core/crypto/singleKey.mjs +1 -46
  331. package/dist/esm/core/crypto/utils.mjs +1 -9
  332. package/dist/esm/core/hex.mjs +1 -10
  333. package/dist/esm/core/index.d.mts +2 -1
  334. package/dist/esm/core/index.mjs +1 -170
  335. package/dist/esm/index.d.mts +9 -8
  336. package/dist/esm/index.mjs +1 -673
  337. package/dist/esm/internal/account.d.mts +2 -2
  338. package/dist/esm/internal/account.mjs +1 -112
  339. package/dist/esm/internal/ans.d.mts +2 -2
  340. package/dist/esm/internal/ans.mjs +1 -128
  341. package/dist/esm/internal/coin.d.mts +1 -1
  342. package/dist/esm/internal/coin.mjs +1 -89
  343. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  344. package/dist/esm/internal/digitalAsset.mjs +1 -135
  345. package/dist/esm/internal/event.mjs +1 -61
  346. package/dist/esm/internal/faucet.mjs +1 -56
  347. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  348. package/dist/esm/internal/fungibleAsset.mjs +1 -95
  349. package/dist/esm/internal/general.mjs +1 -41
  350. package/dist/esm/internal/keyless.d.mts +14 -14
  351. package/dist/esm/internal/keyless.mjs +1 -86
  352. package/dist/esm/internal/object.mjs +1 -57
  353. package/dist/esm/internal/staking.mjs +1 -59
  354. package/dist/esm/internal/table.mjs +1 -36
  355. package/dist/esm/internal/transaction.mjs +1 -55
  356. package/dist/esm/internal/transactionSubmission.d.mts +2 -2
  357. package/dist/esm/internal/transactionSubmission.mjs +1 -106
  358. package/dist/esm/internal/view.d.mts +1 -1
  359. package/dist/esm/internal/view.mjs +1 -90
  360. package/dist/esm/transactions/authenticator/account.d.mts +1 -1
  361. package/dist/esm/transactions/authenticator/account.mjs +1 -57
  362. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  363. package/dist/esm/transactions/authenticator/index.mjs +1 -76
  364. package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
  365. package/dist/esm/transactions/authenticator/transaction.mjs +1 -64
  366. package/dist/esm/transactions/index.d.mts +1 -1
  367. package/dist/esm/transactions/index.mjs +1 -291
  368. package/dist/esm/transactions/instances/chainId.mjs +1 -11
  369. package/dist/esm/transactions/instances/identifier.mjs +1 -11
  370. package/dist/esm/transactions/instances/index.d.mts +1 -1
  371. package/dist/esm/transactions/instances/index.mjs +1 -112
  372. package/dist/esm/transactions/instances/moduleId.mjs +1 -54
  373. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -59
  374. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -64
  375. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
  376. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -20
  377. package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
  378. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -61
  379. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -59
  380. package/dist/esm/transactions/instances/transactionArgument.mjs +1 -1
  381. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -72
  382. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  383. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -79
  384. package/dist/esm/transactions/management/asyncQueue.mjs +1 -9
  385. package/dist/esm/transactions/management/index.d.mts +2 -2
  386. package/dist/esm/transactions/management/index.mjs +1 -99
  387. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  388. package/dist/esm/transactions/management/transactionWorker.mjs +1 -95
  389. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
  390. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -93
  391. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  392. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -169
  393. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
  394. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -91
  395. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -1
  396. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -73
  397. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +1 -1
  398. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -103
  399. package/dist/esm/transactions/typeTag/index.mjs +1 -90
  400. package/dist/esm/transactions/typeTag/parser.mjs +1 -59
  401. package/dist/esm/transactions/types.d.mts +3 -3
  402. package/dist/esm/transactions/types.mjs +1 -1
  403. package/dist/esm/types/generated/queries.mjs +1 -61
  404. package/dist/esm/types/generated/types.mjs +1 -833
  405. package/dist/esm/types/generated/types.mjs.map +1 -1
  406. package/dist/esm/types/index.d.mts +2 -1
  407. package/dist/esm/types/index.mjs +1 -70
  408. package/dist/esm/types/indexer.mjs +1 -1
  409. package/dist/esm/utils/apiEndpoints.mjs +1 -21
  410. package/dist/esm/utils/const.d.mts +2 -1
  411. package/dist/esm/utils/const.mjs +1 -21
  412. package/dist/esm/utils/helpers.d.mts +41 -1
  413. package/dist/esm/utils/helpers.mjs +1 -17
  414. package/dist/esm/utils/index.d.mts +2 -2
  415. package/dist/esm/utils/index.mjs +1 -70
  416. package/dist/esm/utils/memoize.mjs +1 -9
  417. package/dist/esm/utils/normalizeBundle.mjs +1 -19
  418. package/dist/esm/version.d.mts +1 -1
  419. package/dist/esm/version.mjs +1 -7
  420. package/package.json +1 -1
  421. package/src/account/FederatedKeylessAccount.ts +16 -229
  422. package/src/account/KeylessAccount.ts +6 -291
  423. package/src/account/KeylessAccountCommon.ts +329 -0
  424. package/src/account/MultiKeyAccount.ts +4 -4
  425. package/src/account/index.ts +2 -0
  426. package/src/api/account.ts +31 -4
  427. package/src/api/keyless.ts +45 -31
  428. package/src/bcs/serializable/moveStructs.ts +39 -7
  429. package/src/cli/move.ts +1 -1
  430. package/src/core/crypto/index.ts +1 -0
  431. package/src/internal/account.ts +6 -5
  432. package/src/internal/event.ts +10 -3
  433. package/src/internal/keyless.ts +72 -27
  434. package/src/internal/transactionSubmission.ts +2 -2
  435. package/src/transactions/instances/transactionPayload.ts +3 -1
  436. package/src/transactions/transactionBuilder/transactionBuilder.ts +25 -14
  437. package/src/transactions/types.ts +4 -2
  438. package/src/types/index.ts +1 -0
  439. package/src/utils/apiEndpoints.ts +4 -6
  440. package/src/utils/const.ts +1 -0
  441. package/src/utils/helpers.ts +70 -0
  442. package/src/version.ts +1 -1
  443. package/dist/common/chunk-CZKNJSPC.js +0 -46
  444. package/dist/common/chunk-CZKNJSPC.js.map +0 -1
  445. package/dist/esm/chunk-26HCJOBL.mjs +0 -23
  446. package/dist/esm/chunk-2CPL3GJ7.mjs +0 -132
  447. package/dist/esm/chunk-2CPL3GJ7.mjs.map +0 -1
  448. package/dist/esm/chunk-2LHXYQXO.mjs +0 -673
  449. package/dist/esm/chunk-2P7TONQL.mjs +0 -36
  450. package/dist/esm/chunk-2UN35LUX.mjs +0 -84
  451. package/dist/esm/chunk-2ZOJUUXC.mjs +0 -121
  452. package/dist/esm/chunk-2ZOJUUXC.mjs.map +0 -1
  453. package/dist/esm/chunk-3NHOLSZE.mjs +0 -65
  454. package/dist/esm/chunk-3NHOLSZE.mjs.map +0 -1
  455. package/dist/esm/chunk-3V5WGOZH.mjs +0 -118
  456. package/dist/esm/chunk-3WDVQYWL.mjs +0 -51
  457. package/dist/esm/chunk-4FVXWQGX.mjs +0 -211
  458. package/dist/esm/chunk-4FVXWQGX.mjs.map +0 -1
  459. package/dist/esm/chunk-4K4TZF3H.mjs +0 -38
  460. package/dist/esm/chunk-4K4TZF3H.mjs.map +0 -1
  461. package/dist/esm/chunk-4SPKF2Q3.mjs +0 -91
  462. package/dist/esm/chunk-5J7P2N3A.mjs +0 -92
  463. package/dist/esm/chunk-64OZO6BS.mjs +0 -54
  464. package/dist/esm/chunk-65TWSJTX.mjs +0 -252
  465. package/dist/esm/chunk-67J3MGN7.mjs +0 -195
  466. package/dist/esm/chunk-6AO2MJMN.mjs +0 -49
  467. package/dist/esm/chunk-6BI4XTJN.mjs +0 -22
  468. package/dist/esm/chunk-6J7C4S3H.mjs +0 -255
  469. package/dist/esm/chunk-6LK3MDX7.mjs +0 -578
  470. package/dist/esm/chunk-6SEUVXPK.mjs +0 -250
  471. package/dist/esm/chunk-6SEUVXPK.mjs.map +0 -1
  472. package/dist/esm/chunk-6XNCA4KS.mjs +0 -33
  473. package/dist/esm/chunk-7CNDQXDM.mjs +0 -429
  474. package/dist/esm/chunk-7F5TMJVQ.mjs +0 -410
  475. package/dist/esm/chunk-7F5TMJVQ.mjs.map +0 -1
  476. package/dist/esm/chunk-7PLTJUOO.mjs +0 -66
  477. package/dist/esm/chunk-7Z6DYLCA.mjs +0 -1
  478. package/dist/esm/chunk-AC3OGAL6.mjs +0 -87
  479. package/dist/esm/chunk-ACAXM6CI.mjs +0 -32
  480. package/dist/esm/chunk-AF7GBOBQ.mjs +0 -315
  481. package/dist/esm/chunk-ANOJYMO2.mjs +0 -94
  482. package/dist/esm/chunk-AQ4I7VVB.mjs +0 -1
  483. package/dist/esm/chunk-AW4P5HCX.mjs +0 -53
  484. package/dist/esm/chunk-B673XLJY.mjs +0 -309
  485. package/dist/esm/chunk-BBCNBKEC.mjs +0 -104
  486. package/dist/esm/chunk-BEEISUWP.mjs +0 -42
  487. package/dist/esm/chunk-BMXV6WQK.mjs +0 -463
  488. package/dist/esm/chunk-CIPO346F.mjs +0 -35
  489. package/dist/esm/chunk-CZ22MKHG.mjs +0 -41
  490. package/dist/esm/chunk-DNMI5PWU.mjs +0 -100
  491. package/dist/esm/chunk-DPM4FHN4.mjs +0 -33
  492. package/dist/esm/chunk-DXGNWBVW.mjs +0 -127
  493. package/dist/esm/chunk-EKY7QRXH.mjs +0 -79
  494. package/dist/esm/chunk-EPUYKFAT.mjs +0 -73
  495. package/dist/esm/chunk-EYHRMZPO.mjs +0 -34
  496. package/dist/esm/chunk-FBF77YDQ.mjs +0 -243
  497. package/dist/esm/chunk-FBF77YDQ.mjs.map +0 -1
  498. package/dist/esm/chunk-FBRETS2O.mjs +0 -74
  499. package/dist/esm/chunk-FH6RKWVF.mjs +0 -72
  500. package/dist/esm/chunk-FH6RKWVF.mjs.map +0 -1
  501. package/dist/esm/chunk-G2VEDGO7.mjs +0 -15
  502. package/dist/esm/chunk-GDE3IBAB.mjs +0 -126
  503. package/dist/esm/chunk-GKF3HFY2.mjs +0 -232
  504. package/dist/esm/chunk-GMGJ6Q5P.mjs +0 -166
  505. package/dist/esm/chunk-GWS7OLIU.mjs +0 -173
  506. package/dist/esm/chunk-HCIGCJ62.mjs +0 -70
  507. package/dist/esm/chunk-I2ZYQVA3.mjs +0 -142
  508. package/dist/esm/chunk-I5BTSNTY.mjs +0 -89
  509. package/dist/esm/chunk-IUC6XUYA.mjs +0 -346
  510. package/dist/esm/chunk-IX2XMCWZ.mjs +0 -22
  511. package/dist/esm/chunk-J24CDBEH.mjs +0 -91
  512. package/dist/esm/chunk-JKM62HRP.mjs +0 -109
  513. package/dist/esm/chunk-JRVQNM7A.mjs +0 -441
  514. package/dist/esm/chunk-JRVQNM7A.mjs.map +0 -1
  515. package/dist/esm/chunk-JWEFNE2S.mjs +0 -121
  516. package/dist/esm/chunk-K77JV6D7.mjs +0 -414
  517. package/dist/esm/chunk-K77JV6D7.mjs.map +0 -1
  518. package/dist/esm/chunk-KWX2PWAP.mjs +0 -349
  519. package/dist/esm/chunk-L3E7YJBM.mjs +0 -25
  520. package/dist/esm/chunk-LD2CRNA2.mjs +0 -265
  521. package/dist/esm/chunk-LD2CRNA2.mjs.map +0 -1
  522. package/dist/esm/chunk-LITCPMVC.mjs +0 -41
  523. package/dist/esm/chunk-LMUCX6RP.mjs +0 -43
  524. package/dist/esm/chunk-LMUNGBGS.mjs +0 -58
  525. package/dist/esm/chunk-M55VZUKD.mjs +0 -64
  526. package/dist/esm/chunk-M55VZUKD.mjs.map +0 -1
  527. package/dist/esm/chunk-MQALTYRJ.mjs +0 -127
  528. package/dist/esm/chunk-MXMVEGUO.mjs +0 -93
  529. package/dist/esm/chunk-MY6PZIXF.mjs +0 -254
  530. package/dist/esm/chunk-N6K44CGJ.mjs +0 -7
  531. package/dist/esm/chunk-NGUFBDTH.mjs +0 -129
  532. package/dist/esm/chunk-NMKCJNQM.mjs +0 -20
  533. package/dist/esm/chunk-NUA7L6XF.mjs +0 -120
  534. package/dist/esm/chunk-NYELBSVO.mjs +0 -172
  535. package/dist/esm/chunk-OL2YPOXZ.mjs +0 -349
  536. package/dist/esm/chunk-OR7TEZ25.mjs +0 -16
  537. package/dist/esm/chunk-P3RTJ6VC.mjs +0 -324
  538. package/dist/esm/chunk-PLUMRBKI.mjs +0 -241
  539. package/dist/esm/chunk-PNGNBHMD.mjs +0 -44
  540. package/dist/esm/chunk-PSRD6U34.mjs +0 -19
  541. package/dist/esm/chunk-PSW5OBY2.mjs +0 -359
  542. package/dist/esm/chunk-PSW5OBY2.mjs.map +0 -1
  543. package/dist/esm/chunk-PU5AFUX3.mjs +0 -52
  544. package/dist/esm/chunk-QMM2KL6C.mjs +0 -12
  545. package/dist/esm/chunk-S7KNZC2A.mjs +0 -45
  546. package/dist/esm/chunk-SBB4YEPT.mjs +0 -17
  547. package/dist/esm/chunk-SIJELMDP.mjs +0 -29
  548. package/dist/esm/chunk-SRKSXJ5U.mjs +0 -242
  549. package/dist/esm/chunk-U6N546EH.mjs +0 -43
  550. package/dist/esm/chunk-UZLU45X7.mjs +0 -274
  551. package/dist/esm/chunk-UZXDD3QH.mjs +0 -327
  552. package/dist/esm/chunk-V2LEZDNS.mjs +0 -29
  553. package/dist/esm/chunk-WKNU6EPA.mjs +0 -40
  554. package/dist/esm/chunk-WVT25KQR.mjs +0 -51
  555. package/dist/esm/chunk-XBY4UM6M.mjs +0 -206
  556. package/dist/esm/chunk-XUNU6GVQ.mjs +0 -319
  557. package/dist/esm/chunk-XUNU6GVQ.mjs.map +0 -1
  558. package/dist/esm/chunk-YJJTCGDT.mjs +0 -49
  559. package/dist/esm/chunk-YPHGPN2P.mjs +0 -33
  560. package/dist/esm/chunk-YPHGPN2P.mjs.map +0 -1
  561. package/dist/esm/chunk-YQPKNTIN.mjs +0 -23
  562. package/dist/esm/chunk-YSSWVBLZ.mjs +0 -135
  563. package/dist/esm/chunk-YV7M4CFP.mjs +0 -137
  564. package/dist/esm/chunk-ZR36Y2RX.mjs +0 -93
  565. package/dist/esm/chunk-ZZA2BSOF.mjs +0 -97
  566. package/src/internal/move/jwks/build/jwk/BuildInfo.yaml +0 -56
  567. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/account.mv +0 -0
  568. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator.mv +0 -0
  569. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_factory.mv +0 -0
  570. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_v2.mv +0 -0
  571. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_account.mv +0 -0
  572. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_coin.mv +0 -0
  573. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_governance.mv +0 -0
  574. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/block.mv +0 -0
  575. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_id.mv +0 -0
  576. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_status.mv +0 -0
  577. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/code.mv +0 -0
  578. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/coin.mv +0 -0
  579. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/config_buffer.mv +0 -0
  580. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/consensus_config.mv +0 -0
  581. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/create_signer.mv +0 -0
  582. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/delegation_pool.mv +0 -0
  583. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dispatchable_fungible_asset.mv +0 -0
  584. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dkg.mv +0 -0
  585. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/event.mv +0 -0
  586. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/execution_config.mv +0 -0
  587. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/function_info.mv +0 -0
  588. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/fungible_asset.mv +0 -0
  589. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/gas_schedule.mv +0 -0
  590. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/genesis.mv +0 -0
  591. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/governance_proposal.mv +0 -0
  592. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/guid.mv +0 -0
  593. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwk_consensus_config.mv +0 -0
  594. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwks.mv +0 -0
  595. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/keyless_account.mv +0 -0
  596. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/managed_coin.mv +0 -0
  597. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/multisig_account.mv +0 -0
  598. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object.mv +0 -0
  599. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object_code_deployment.mv +0 -0
  600. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/optional_aggregator.mv +0 -0
  601. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/primary_fungible_store.mv +0 -0
  602. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness.mv +0 -0
  603. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_api_v0_config.mv +0 -0
  604. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config.mv +0 -0
  605. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config_seqnum.mv +0 -0
  606. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration.mv +0 -0
  607. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_state.mv +0 -0
  608. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_with_dkg.mv +0 -0
  609. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/resource_account.mv +0 -0
  610. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/stake.mv +0 -0
  611. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_config.mv +0 -0
  612. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_contract.mv +0 -0
  613. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_proxy.mv +0 -0
  614. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/state_storage.mv +0 -0
  615. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/storage_gas.mv +0 -0
  616. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/system_addresses.mv +0 -0
  617. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/timestamp.mv +0 -0
  618. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_context.mv +0 -0
  619. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_fee.mv +0 -0
  620. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_validation.mv +0 -0
  621. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/util.mv +0 -0
  622. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/validator_consensus_info.mv +0 -0
  623. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/version.mv +0 -0
  624. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/vesting.mv +0 -0
  625. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/voting.mv +0 -0
  626. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/any.mv +0 -0
  627. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/aptos_hash.mv +0 -0
  628. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/big_vector.mv +0 -0
  629. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381.mv +0 -0
  630. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381_algebra.mv +0 -0
  631. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bn254_algebra.mv +0 -0
  632. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/capability.mv +0 -0
  633. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/comparator.mv +0 -0
  634. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/copyable_any.mv +0 -0
  635. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/crypto_algebra.mv +0 -0
  636. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/debug.mv +0 -0
  637. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ed25519.mv +0 -0
  638. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/fixed_point64.mv +0 -0
  639. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/from_bcs.mv +0 -0
  640. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math128.mv +0 -0
  641. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math64.mv +0 -0
  642. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed.mv +0 -0
  643. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed64.mv +0 -0
  644. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/multi_ed25519.mv +0 -0
  645. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64.mv +0 -0
  646. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64_unbound.mv +0 -0
  647. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255.mv +0 -0
  648. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_bulletproofs.mv +0 -0
  649. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_elgamal.mv +0 -0
  650. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_pedersen.mv +0 -0
  651. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/secp256k1.mv +0 -0
  652. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/simple_map.mv +0 -0
  653. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_table.mv +0 -0
  654. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_vector.mv +0 -0
  655. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/string_utils.mv +0 -0
  656. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table.mv +0 -0
  657. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table_with_length.mv +0 -0
  658. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/type_info.mv +0 -0
  659. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/acl.mv +0 -0
  660. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bcs.mv +0 -0
  661. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bit_vector.mv +0 -0
  662. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/error.mv +0 -0
  663. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/features.mv +0 -0
  664. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/fixed_point32.mv +0 -0
  665. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/hash.mv +0 -0
  666. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/option.mv +0 -0
  667. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/signer.mv +0 -0
  668. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/string.mv +0 -0
  669. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/vector.mv +0 -0
  670. package/src/internal/move/jwks/build/jwk/bytecode_scripts/main.mv +0 -0
  671. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/account.mvsm +0 -0
  672. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator.mvsm +0 -0
  673. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_factory.mvsm +0 -0
  674. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_v2.mvsm +0 -0
  675. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_account.mvsm +0 -0
  676. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_coin.mvsm +0 -0
  677. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_governance.mvsm +0 -0
  678. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/block.mvsm +0 -0
  679. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_id.mvsm +0 -0
  680. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_status.mvsm +0 -0
  681. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/code.mvsm +0 -0
  682. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/coin.mvsm +0 -0
  683. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/config_buffer.mvsm +0 -0
  684. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/consensus_config.mvsm +0 -0
  685. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/create_signer.mvsm +0 -0
  686. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/delegation_pool.mvsm +0 -0
  687. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dispatchable_fungible_asset.mvsm +0 -0
  688. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dkg.mvsm +0 -0
  689. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/event.mvsm +0 -0
  690. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/execution_config.mvsm +0 -0
  691. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/function_info.mvsm +0 -0
  692. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/fungible_asset.mvsm +0 -0
  693. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/gas_schedule.mvsm +0 -0
  694. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/genesis.mvsm +0 -0
  695. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/governance_proposal.mvsm +0 -0
  696. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/guid.mvsm +0 -0
  697. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwk_consensus_config.mvsm +0 -0
  698. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwks.mvsm +0 -0
  699. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/keyless_account.mvsm +0 -0
  700. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/managed_coin.mvsm +0 -0
  701. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/multisig_account.mvsm +0 -0
  702. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object.mvsm +0 -0
  703. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object_code_deployment.mvsm +0 -0
  704. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/optional_aggregator.mvsm +0 -0
  705. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/primary_fungible_store.mvsm +0 -0
  706. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness.mvsm +0 -0
  707. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_api_v0_config.mvsm +0 -0
  708. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config.mvsm +0 -0
  709. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config_seqnum.mvsm +0 -0
  710. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration.mvsm +0 -0
  711. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_state.mvsm +0 -0
  712. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_with_dkg.mvsm +0 -0
  713. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/resource_account.mvsm +0 -0
  714. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/stake.mvsm +0 -0
  715. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_config.mvsm +0 -0
  716. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_contract.mvsm +0 -0
  717. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_proxy.mvsm +0 -0
  718. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/state_storage.mvsm +0 -0
  719. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/storage_gas.mvsm +0 -0
  720. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/system_addresses.mvsm +0 -0
  721. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/timestamp.mvsm +0 -0
  722. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_context.mvsm +0 -0
  723. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_fee.mvsm +0 -0
  724. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_validation.mvsm +0 -0
  725. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/util.mvsm +0 -0
  726. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/validator_consensus_info.mvsm +0 -0
  727. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/version.mvsm +0 -0
  728. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/vesting.mvsm +0 -0
  729. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/voting.mvsm +0 -0
  730. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/any.mvsm +0 -0
  731. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/aptos_hash.mvsm +0 -0
  732. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/big_vector.mvsm +0 -0
  733. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381.mvsm +0 -0
  734. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381_algebra.mvsm +0 -0
  735. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bn254_algebra.mvsm +0 -0
  736. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/capability.mvsm +0 -0
  737. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/comparator.mvsm +0 -0
  738. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/copyable_any.mvsm +0 -0
  739. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/crypto_algebra.mvsm +0 -0
  740. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/debug.mvsm +0 -0
  741. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ed25519.mvsm +0 -0
  742. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/fixed_point64.mvsm +0 -0
  743. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/from_bcs.mvsm +0 -0
  744. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math128.mvsm +0 -0
  745. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math64.mvsm +0 -0
  746. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed.mvsm +0 -0
  747. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed64.mvsm +0 -0
  748. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/multi_ed25519.mvsm +0 -0
  749. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64.mvsm +0 -0
  750. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64_unbound.mvsm +0 -0
  751. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255.mvsm +0 -0
  752. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_bulletproofs.mvsm +0 -0
  753. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_elgamal.mvsm +0 -0
  754. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_pedersen.mvsm +0 -0
  755. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/secp256k1.mvsm +0 -0
  756. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/simple_map.mvsm +0 -0
  757. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_table.mvsm +0 -0
  758. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_vector.mvsm +0 -0
  759. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/string_utils.mvsm +0 -0
  760. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table.mvsm +0 -0
  761. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table_with_length.mvsm +0 -0
  762. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/type_info.mvsm +0 -0
  763. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/acl.mvsm +0 -0
  764. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bcs.mvsm +0 -0
  765. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bit_vector.mvsm +0 -0
  766. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/error.mvsm +0 -0
  767. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/features.mvsm +0 -0
  768. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/fixed_point32.mvsm +0 -0
  769. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/hash.mvsm +0 -0
  770. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/option.mvsm +0 -0
  771. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/signer.mvsm +0 -0
  772. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/string.mvsm +0 -0
  773. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/vector.mvsm +0 -0
  774. package/src/internal/move/jwks/build/jwk/source_maps/main.mvsm +0 -0
  775. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/account.move +0 -1533
  776. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator.move +0 -48
  777. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_factory.move +0 -66
  778. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_v2.move +0 -280
  779. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_account.move +0 -443
  780. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_coin.move +0 -204
  781. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_governance.move +0 -1387
  782. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/block.move +0 -394
  783. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_id.move +0 -41
  784. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_status.move +0 -48
  785. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/code.move +0 -367
  786. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/coin.move +0 -2214
  787. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/config_buffer.move +0 -101
  788. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/consensus_config.move +0 -77
  789. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/create_signer.move +0 -21
  790. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/delegation_pool.move +0 -5568
  791. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dispatchable_fungible_asset.move +0 -228
  792. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dkg.move +0 -121
  793. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/event.move +0 -92
  794. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/execution_config.move +0 -66
  795. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/function_info.move +0 -100
  796. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/fungible_asset.move +0 -1566
  797. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/gas_schedule.move +0 -176
  798. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/genesis.move +0 -550
  799. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/governance_proposal.move +0 -23
  800. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/guid.move +0 -68
  801. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwk_consensus_config.move +0 -148
  802. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwks.move +0 -817
  803. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/keyless_account.move +0 -312
  804. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/managed_coin.move +0 -205
  805. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/multisig_account.move +0 -2477
  806. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object.move +0 -1073
  807. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object_code_deployment.move +0 -147
  808. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/optional_aggregator.move +0 -295
  809. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/primary_fungible_store.move +0 -405
  810. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness.move +0 -574
  811. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_api_v0_config.move +0 -57
  812. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config.move +0 -153
  813. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config_seqnum.move +0 -49
  814. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration.move +0 -237
  815. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_state.move +0 -132
  816. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_with_dkg.move +0 -69
  817. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/resource_account.move +0 -267
  818. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/stake.move +0 -3286
  819. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_config.move +0 -686
  820. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_contract.move +0 -1618
  821. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_proxy.move +0 -228
  822. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/state_storage.move +0 -90
  823. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/storage_gas.move +0 -622
  824. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/system_addresses.move +0 -82
  825. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/timestamp.move +0 -88
  826. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_context.move +0 -262
  827. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_fee.move +0 -457
  828. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_validation.move +0 -501
  829. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/util.move +0 -16
  830. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/validator_consensus_info.move +0 -42
  831. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/version.move +0 -115
  832. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/vesting.move +0 -2183
  833. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/voting.move +0 -1279
  834. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/any.move +0 -57
  835. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/aptos_hash.move +0 -253
  836. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/big_vector.move +0 -469
  837. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381.move +0 -985
  838. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381_algebra.move +0 -802
  839. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bn254_algebra.move +0 -855
  840. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/capability.move +0 -193
  841. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/comparator.move +0 -173
  842. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/copyable_any.move +0 -45
  843. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/crypto_algebra.move +0 -351
  844. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/debug.move +0 -278
  845. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ed25519.move +0 -262
  846. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/fixed_point64.move +0 -447
  847. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/from_bcs.move +0 -91
  848. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math128.move +0 -381
  849. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math64.move +0 -336
  850. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed.move +0 -139
  851. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed64.move +0 -142
  852. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/multi_ed25519.move +0 -482
  853. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64.move +0 -571
  854. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64_unbound.move +0 -270
  855. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255.move +0 -1310
  856. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_bulletproofs.move +0 -253
  857. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_elgamal.move +0 -234
  858. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_pedersen.move +0 -158
  859. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/secp256k1.move +0 -114
  860. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/simple_map.move +0 -319
  861. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_table.move +0 -769
  862. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_vector.move +0 -766
  863. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/string_utils.move +0 -148
  864. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table.move +0 -152
  865. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table_with_length.move +0 -141
  866. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/type_info.move +0 -351
  867. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/acl.move +0 -46
  868. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bcs.move +0 -27
  869. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bit_vector.move +0 -239
  870. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/error.move +0 -88
  871. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/features.move +0 -780
  872. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/fixed_point32.move +0 -295
  873. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/hash.move +0 -8
  874. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/option.move +0 -356
  875. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/signer.move +0 -21
  876. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/string.move +0 -93
  877. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/vector.move +0 -669
  878. package/src/internal/move/jwks/build/jwk/sources/main.move +0 -20
  879. /package/dist/esm/{chunk-7Z6DYLCA.mjs.map → account/KeylessAccountCommon.mjs.map} +0 -0
  880. /package/dist/esm/{chunk-AQ4I7VVB.mjs.map → chunk-FVA2OPG4.mjs.map} +0 -0
  881. /package/dist/esm/{chunk-OR7TEZ25.mjs.map → chunk-GAEAYY44.mjs.map} +0 -0
  882. /package/dist/esm/{publicKey-B3XRNhHO.d.mts → publicKey-lq5djCIY.d.mts} +0 -0
@@ -540,7 +540,8 @@ declare enum ScriptTransactionArgumentVariants {
540
540
  Bool = 5,
541
541
  U16 = 6,
542
542
  U32 = 7,
543
- U256 = 8
543
+ U256 = 8,
544
+ Serialized = 9
544
545
  }
545
546
  /**
546
547
  * Transaction payload enum as they are represented in Rust
@@ -2273,4 +2274,4 @@ declare class AccountAddress extends Serializable implements TransactionArgument
2273
2274
  equals(other: AccountAddress): boolean;
2274
2275
  }
2275
2276
 
2276
- export { type GetEventsResponse as $, type AnyNumber as A, type GetAccountOwnedTokensFromCollectionResponse as B, type Client as C, Deserializer as D, type EntryFunctionArgument as E, type FullNodeConfig as F, type GetAccountOwnedTokensQueryResponse as G, type HexInput as H, type IndexerConfig as I, type GetAccountCollectionsWithOwnedTokenResponse as J, type GetAccountCoinsDataResponse as K, type LedgerVersionArg as L, type MoveModuleId as M, Network as N, type OrderByArg as O, type PaginationArgs as P, type GetObjectDataQueryResponse as Q, type GetCollectionDataResponse as R, Serializable as S, type TransactionArgument as T, type Uint8 as U, type GetTokenDataResponse as V, type WhereArg as W, type GetCurrentTokenOwnershipResponse as X, type GetOwnedTokensResponse as Y, ZkpVariant as Z, type GetTokenActivityResponse as _, Serializer as a, type WriteSetChangeWriteTableItem as a$, type WaitForTransactionOptions as a0, type UserTransactionResponse as a1, type MoveFunction as a2, type GetFungibleAssetMetadataResponse as a3, type GetFungibleAssetActivitiesResponse as a4, type GetCurrentFungibleAssetBalancesResponse as a5, type LedgerInfo as a6, type Block as a7, type GetChainTopUserTransactionsResponse as a8, type GraphqlQuery as a9, AccountAuthenticatorVariant as aA, AnySignatureVariant as aB, EphemeralSignatureVariant as aC, type Uint64 as aD, type Uint128 as aE, type Uint256 as aF, type ClientHeadersType as aG, TransactionResponseType as aH, isPendingTransactionResponse as aI, isUserTransactionResponse as aJ, isGenesisTransactionResponse as aK, isBlockMetadataTransactionResponse as aL, isStateCheckpointTransactionResponse as aM, isValidatorTransactionResponse as aN, isBlockEpilogueTransactionResponse as aO, type GenesisTransactionResponse as aP, type BlockMetadataTransactionResponse as aQ, type StateCheckpointTransactionResponse as aR, type ValidatorTransactionResponse as aS, type BlockEndInfo as aT, type BlockEpilogueTransactionResponse as aU, type WriteSetChange as aV, type WriteSetChangeDeleteModule as aW, type WriteSetChangeDeleteResource as aX, type WriteSetChangeDeleteTableItem as aY, type WriteSetChangeWriteModule as aZ, type WriteSetChangeWriteResource as a_, type GetProcessorStatusResponse as aa, type GetANSNameResponse as ab, type GetNumberOfDelegatorsResponse as ac, type GetDelegatedStakingActivitiesResponse as ad, type PendingTransactionResponse as ae, type CommittedTransactionResponse as af, type GasEstimation as ag, type TableItemRequest as ah, type GetTableItemsDataResponse as ai, type GetTableItemsMetadataResponse as aj, type AptosRequest as ak, type ClientRequest as al, type ClientResponse as am, MimeType as an, ensureBoolean as ao, outOfRangeErrorMessage as ap, validateNumberInRange as aq, AddressInvalidReason as ar, ParsingError as as, type ParsingResult as at, HexInvalidReason as au, TypeTagVariants as av, ScriptTransactionArgumentVariants as aw, TransactionPayloadVariants as ax, TransactionVariants as ay, TransactionAuthenticatorVariant as az, type Uint16 as b, type DecodedTableData as b0, type DeletedTableData as b1, type TransactionPayloadResponse as b2, type EntryFunctionPayloadResponse as b3, type ScriptPayloadResponse as b4, type MultisigPayloadResponse as b5, type GenesisPayload as b6, type MoveScriptBytecode as b7, type TransactionSignature as b8, isEd25519Signature as b9, MoveFunctionVisibility as bA, MoveAbility as bB, type MoveStructField as bC, type MoveModule as bD, type MoveStruct as bE, RoleType as bF, DeriveScheme as bG, type GenerateAccountWithEd25519 as bH, type GenerateAccountWithSingleSignerSecp256k1Key as bI, type GenerateAccount as bJ, type OrderBy as bK, type OrderByValue as bL, type TokenStandard as bM, NetworkToIndexerAPI as bN, NetworkToNodeAPI as bO, NetworkToFaucetAPI as bP, NetworkToPepperAPI as bQ, NetworkToProverAPI as bR, NetworkToChainId as bS, NetworkToNetworkName as bT, isSecp256k1Signature as ba, isMultiAgentSignature as bb, isFeePayerSignature as bc, isMultiEd25519Signature as bd, type TransactionEd25519Signature as be, type TransactionSecp256k1Signature as bf, type TransactionMultiEd25519Signature as bg, type TransactionMultiAgentSignature as bh, type TransactionFeePayerSignature as bi, type AccountSignature as bj, type WriteSet as bk, type ScriptWriteSet as bl, type DirectWriteSet as bm, type EventGuid as bn, type Event as bo, type MoveUint8Type as bp, type MoveUint16Type as bq, type MoveUint32Type as br, type MoveUint64Type as bs, type MoveUint128Type as bt, type MoveUint256Type as bu, type MoveAddressType as bv, type MoveObjectType as bw, type MoveOptionType as bx, type MoveStructType as by, type MoveType as bz, type Uint32 as c, type Deserializable as d, Hex as e, type AuthenticationKeyScheme as f, AccountAddress as g, AnyPublicKeyVariant as h, EphemeralPublicKeyVariant as i, type ClientConfig as j, type FaucetConfig as k, type AptosSettings as l, EphemeralCertificateVariant as m, type ScriptFunctionArgument as n, type MoveFunctionId as o, type AccountAddressInput as p, type MoveStructId as q, type MoveValue as r, type MoveFunctionGenericTypeParam as s, SigningSchemeInput as t, SigningScheme as u, type AccountData as v, type MoveModuleBytecode as w, type TransactionResponse as x, type MoveResource as y, type TokenStandardArg as z };
2277
+ export { type GetEventsResponse as $, type AnyNumber as A, type GetAccountOwnedTokensFromCollectionResponse as B, type Client as C, Deserializer as D, type EntryFunctionArgument as E, type FullNodeConfig as F, type GetAccountOwnedTokensQueryResponse as G, type HexInput as H, type IndexerConfig as I, type GetAccountCollectionsWithOwnedTokenResponse as J, type GetAccountCoinsDataResponse as K, type LedgerVersionArg as L, type MoveModuleId as M, Network as N, type OrderByArg as O, type PaginationArgs as P, type GetObjectDataQueryResponse as Q, type GetCollectionDataResponse as R, Serializable as S, type TransactionArgument as T, type Uint8 as U, type GetTokenDataResponse as V, type WhereArg as W, type GetCurrentTokenOwnershipResponse as X, type GetOwnedTokensResponse as Y, ZkpVariant as Z, type GetTokenActivityResponse as _, Serializer as a, type WriteSetChangeWriteTableItem as a$, type WaitForTransactionOptions as a0, type UserTransactionResponse as a1, type MoveFunction as a2, type GetFungibleAssetMetadataResponse as a3, type GetFungibleAssetActivitiesResponse as a4, type GetCurrentFungibleAssetBalancesResponse as a5, type LedgerInfo as a6, type Block as a7, type GetChainTopUserTransactionsResponse as a8, type GraphqlQuery as a9, AccountAuthenticatorVariant as aA, AnySignatureVariant as aB, EphemeralSignatureVariant as aC, type Uint64 as aD, type Uint128 as aE, type Uint256 as aF, type ClientHeadersType as aG, TransactionResponseType as aH, isPendingTransactionResponse as aI, isUserTransactionResponse as aJ, isGenesisTransactionResponse as aK, isBlockMetadataTransactionResponse as aL, isStateCheckpointTransactionResponse as aM, isValidatorTransactionResponse as aN, isBlockEpilogueTransactionResponse as aO, type GenesisTransactionResponse as aP, type BlockMetadataTransactionResponse as aQ, type StateCheckpointTransactionResponse as aR, type ValidatorTransactionResponse as aS, type BlockEndInfo as aT, type BlockEpilogueTransactionResponse as aU, type WriteSetChange as aV, type WriteSetChangeDeleteModule as aW, type WriteSetChangeDeleteResource as aX, type WriteSetChangeDeleteTableItem as aY, type WriteSetChangeWriteModule as aZ, type WriteSetChangeWriteResource as a_, type GetProcessorStatusResponse as aa, type GetANSNameResponse as ab, type GetNumberOfDelegatorsResponse as ac, type GetDelegatedStakingActivitiesResponse as ad, type PendingTransactionResponse as ae, type CommittedTransactionResponse as af, type GasEstimation as ag, type TableItemRequest as ah, type GetTableItemsDataResponse as ai, type GetTableItemsMetadataResponse as aj, type AptosRequest as ak, type ClientRequest as al, type ClientResponse as am, MimeType as an, ensureBoolean as ao, outOfRangeErrorMessage as ap, validateNumberInRange as aq, AddressInvalidReason as ar, ParsingError as as, type ParsingResult as at, HexInvalidReason as au, TypeTagVariants as av, ScriptTransactionArgumentVariants as aw, TransactionPayloadVariants as ax, TransactionVariants as ay, TransactionAuthenticatorVariant as az, type Uint16 as b, type DecodedTableData as b0, type DeletedTableData as b1, type TransactionPayloadResponse as b2, type EntryFunctionPayloadResponse as b3, type ScriptPayloadResponse as b4, type MultisigPayloadResponse as b5, type GenesisPayload as b6, type MoveScriptBytecode as b7, type TransactionSignature as b8, isEd25519Signature as b9, MoveFunctionVisibility as bA, MoveAbility as bB, type MoveStructField as bC, type MoveModule as bD, type MoveStruct as bE, RoleType as bF, DeriveScheme as bG, type GenerateAccountWithEd25519 as bH, type GenerateAccountWithSingleSignerSecp256k1Key as bI, type GenerateAccount as bJ, type OrderBy as bK, type OrderByValue as bL, type TokenStandard as bM, NetworkToIndexerAPI as bN, NetworkToNodeAPI as bO, NetworkToFaucetAPI as bP, NetworkToPepperAPI as bQ, NetworkToProverAPI as bR, NetworkToChainId as bS, NetworkToNetworkName as bT, isSecp256k1Signature as ba, isMultiAgentSignature as bb, isFeePayerSignature as bc, isMultiEd25519Signature as bd, type TransactionEd25519Signature as be, type TransactionSecp256k1Signature as bf, type TransactionMultiEd25519Signature as bg, type TransactionMultiAgentSignature as bh, type TransactionFeePayerSignature as bi, type AccountSignature as bj, type WriteSet as bk, type ScriptWriteSet as bl, type DirectWriteSet as bm, type EventGuid as bn, type Event as bo, type MoveUint8Type as bp, type MoveUint16Type as bq, type MoveUint32Type as br, type MoveUint64Type as bs, type MoveUint128Type as bt, type MoveUint256Type as bu, type MoveAddressType as bv, type MoveObjectType as bw, type MoveOptionType as bx, type MoveStructType as by, type MoveType as bz, type Uint32 as c, type Deserializable as d, Hex as e, type AuthenticationKeyScheme as f, AccountAddress as g, AnyPublicKeyVariant as h, EphemeralPublicKeyVariant as i, type ClientConfig as j, type FaucetConfig as k, type AptosSettings as l, EphemeralCertificateVariant as m, type AccountAddressInput as n, type ScriptFunctionArgument as o, type MoveFunctionId as p, type MoveStructId as q, type MoveValue as r, type MoveFunctionGenericTypeParam as s, SigningSchemeInput as t, SigningScheme as u, type AccountData as v, type MoveModuleBytecode as w, type TransactionResponse as x, type MoveResource as y, type TokenStandardArg as z };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var d=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var i=(e,n,t,r)=>{for(var o=r>1?void 0:r?m(n,t):n,s=e.length-1,a;s>=0;s--)(a=e[s])&&(o=(r?a(n,t,o):a(o))||o);return r&&o&&d(n,t,o),o};var _jsbase64 = require('js-base64');async function p(e){return new Promise(n=>{setTimeout(n,e)})}var _=()=>Math.floor(Date.now()/1e3);function f(e){let n=new Date(e*1e3);return n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),Math.floor(n.getTime()/1e3)}function S(e){let n=e.replace(/-/g,"+").replace(/_/g,"/"),t=n+"==".substring(0,(3-n.length%3)%3);return _jsbase64.decode.call(void 0, t)}var h=(e,n)=>e*10**n,x= exports.g =(e,n)=>e/10**n,c=e=>{let n="";for(let t=2;t<e.length;t+=2)n+=String.fromCharCode(parseInt(e.substring(t,t+2),16));return n},y= exports.h =e=>{let{account_address:n,module_name:t,struct_name:r}=e,o=c(t),s=c(r);return`${n}::${o}::${s}`},b= exports.i =e=>typeof e=="object"&&!Array.isArray(e)&&e!==null&&"account_address"in e&&"module_name"in e&&"struct_name"in e&&typeof e.account_address=="string"&&typeof e.module_name=="string"&&typeof e.struct_name=="string";exports.a = i; exports.b = p; exports.c = _; exports.d = f; exports.e = S; exports.f = h; exports.g = x; exports.h = y; exports.i = b;
2
+ //# sourceMappingURL=chunk-HBPH2AD3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/helpers.ts"],"names":["decode","sleep","timeMs","resolve","nowInSeconds","floorToWholeHour","timestampInSeconds","date","base64UrlDecode","base64Url","base64","paddedBase64","convertAmountFromHumanReadableToOnChain","value","decimal","convertAmountFromOnChainToHumanReadable","hexToAscii","hex","str","n","parseEncodedStruct","structObj","account_address","module_name","struct_name","moduleName","structName","isEncodedStruct"],"mappings":"wMAGA,OAAS,UAAAA,MAAc,YAOvB,eAAsBC,EAAMC,EAA+B,CACzD,OAAO,IAAI,QAASC,GAAY,C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ent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { decode } from \"js-base64\";\nimport { MoveStructId } from \"../types\";\n\n/**\n * Sleep the current thread for the given amount of time\n * @param timeMs time in milliseconds to sleep\n */\nexport async function sleep(timeMs: number): Promise<null> {\n return new Promise((resolve) => {\n setTimeout(resolve, timeMs);\n });\n}\n\nexport const nowInSeconds = () => Math.floor(Date.now() / 1000);\n\nexport function floorToWholeHour(timestampInSeconds: number): number {\n const date = new Date(timestampInSeconds * 1000);\n // Reset minutes and seconds to zero\n date.setMinutes(0);\n date.setSeconds(0);\n date.setMilliseconds(0);\n return Math.floor(date.getTime() / 1000);\n}\n\nexport function base64UrlDecode(base64Url: string): string {\n // Replace base64url-specific characters\n const base64 = base64Url.replace(/-/g, \"+\").replace(/_/g, \"/\");\n // Pad the string with '=' characters if needed\n const paddedBase64 = base64 + \"==\".substring(0, (3 - (base64.length % 3)) % 3);\n const decodedString = decode(paddedBase64);\n return decodedString;\n}\n\n/**\n * Amount is represented in the smallest unit format on chain, this function converts\n * a human readable amount format to the smallest unit format\n * @example\n * human readable amount format: 500\n * on chain amount format when decimal is 8: 50000000000\n *\n * @param value The value in human readable format\n * @param decimal The token decimal\n * @returns The value is smallest units\n */\nexport const convertAmountFromHumanReadableToOnChain = (value: number, decimal: number) => value * 10 ** decimal;\n\n/**\n * Amount is represented in the smallest unit format on chain, this function converts\n * the smallest unit format to a human readable amount format\n * @example\n * human readable amount format: 500\n * on chain amount format when decimal is 8: 50000000000\n *\n * @param value The value in human readable format\n * @param decimal The token decimal\n * @returns The value is smallest units\n */\nexport const convertAmountFromOnChainToHumanReadable = (value: number, decimal: number) => value / 10 ** decimal;\n\n/**\n * Convert a hex string to an ascii string with the `0x` prefix.\n *\n * `0x6170746f735f636f696e` --> `aptos_coin`\n *\n * @param hex The hex string to convert (e.g. `0x6170746f735f636f696e`)\n * @returns The ascii string\n */\nconst hexToAscii = (hex: string) => {\n let str = \"\";\n for (let n = 2; n < hex.length; n += 2) {\n str += String.fromCharCode(parseInt(hex.substring(n, n + 2), 16));\n }\n return str;\n};\n\n/**\n * Convert an encoded struct to a MoveStructId.\n *\n * @example\n * const structObj = {\n * account_address: \"0x1\",\n * module_name: \"0x6170746f735f636f696e\",\n * struct_name: \"0x4170746f73436f696e\",\n * };\n * // structId is \"0x1::aptos_coin::AptosCoin\"\n * const structId = parseEncodedStruct(structObj);\n *\n * @param structObj The struct with account_address, module_name, and struct_name properties\n * @returns The MoveStructId\n */\nexport const parseEncodedStruct = (structObj: {\n account_address: string;\n module_name: string;\n struct_name: string;\n}): MoveStructId => {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n const { account_address, module_name, struct_name } = structObj;\n const moduleName = hexToAscii(module_name);\n const structName = hexToAscii(struct_name);\n return `${account_address}::${moduleName}::${structName}`;\n};\n\n/**\n * Determines whether the given object is an encoded struct type with the following properties:\n * - account_address: string\n * - module_name: string\n * - struct_name: string\n *\n * @param structObj The object to check\n * @returns Whether the object is an encoded struct type\n */\nexport const isEncodedStruct = (\n structObj: any,\n): structObj is {\n account_address: string;\n module_name: string;\n struct_name: string;\n} =>\n typeof structObj === \"object\" &&\n !Array.isArray(structObj) &&\n structObj !== null &&\n \"account_address\" in structObj &&\n \"module_name\" in structObj &&\n \"struct_name\" in structObj &&\n typeof structObj.account_address === \"string\" &&\n typeof structObj.module_name === \"string\" &&\n typeof structObj.struct_name === \"string\";\n"]}
@@ -1,5 +1,5 @@
1
1
  import { ChildProcessWithoutNullStreams } from 'child_process';
2
- import { N as Network, g as AccountAddress } from '../accountAddress-BeSCq9i_.js';
2
+ import { N as Network, g as AccountAddress } from '../accountAddress-0OnKb1b9.js';
3
3
 
4
4
  declare class LocalNode {
5
5
  readonly MAXIMUM_WAIT_TIME_SEC = 75;
@@ -1,454 +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; }
2
-
3
- var _chunkCZKNJSPCjs = require('../chunk-CZKNJSPC.js');
4
-
5
- // src/cli/localNode.ts
6
- var _child_process = require('child_process');
7
- var _treekill = require('tree-kill'); var _treekill2 = _interopRequireDefault(_treekill);
8
- var _os = require('os');
9
- var LocalNode = class {
10
- constructor() {
11
- this.MAXIMUM_WAIT_TIME_SEC = 75;
12
- this.READINESS_ENDPOINT = "http://127.0.0.1:8070/";
13
- this.process = null;
14
- }
15
- /**
16
- * kills all the descendent processes
17
- * of the node process, including the node process itself
18
- */
19
- async stop() {
20
- await new Promise((resolve, reject) => {
21
- if (!_optionalChain([this, 'access', _ => _.process, 'optionalAccess', _2 => _2.pid]))
22
- return;
23
- _treekill2.default.call(void 0, this.process.pid, (err) => {
24
- if (err) {
25
- reject(err);
26
- } else {
27
- resolve(true);
28
- }
29
- });
30
- });
31
- }
32
- /**
33
- * Runs a local testnet and waits for process to be up.
34
- *
35
- * If local node process is already up it returns and does
36
- * not start the process
37
- */
38
- async run() {
39
- const nodeIsUp = await this.checkIfProcessIsUp();
40
- if (nodeIsUp) {
41
- return;
42
- }
43
- this.start();
44
- await this.waitUntilProcessIsUp();
45
- }
46
- /**
47
- * Starts the local testnet by running the aptos node run-local-testnet command
48
- */
49
- start() {
50
- const cliCommand = "npx";
51
- const cliArgs = ["aptos", "node", "run-localnet", "--force-restart", "--assume-yes", "--with-indexer-api"];
52
- const currentPlatform = _os.platform.call(void 0, );
53
- let childProcess;
54
- if (currentPlatform === "win32") {
55
- childProcess = _child_process.spawn.call(void 0, cliCommand, cliArgs, { shell: true });
56
- } else {
57
- childProcess = _child_process.spawn.call(void 0, cliCommand, cliArgs);
58
- }
59
- this.process = childProcess;
60
- _optionalChain([childProcess, 'access', _3 => _3.stderr, 'optionalAccess', _4 => _4.on, 'call', _5 => _5("data", (data) => {
61
- const str = data.toString();
62
- console.log(str);
63
- })]);
64
- _optionalChain([childProcess, 'access', _6 => _6.stdout, 'optionalAccess', _7 => _7.on, 'call', _8 => _8("data", (data) => {
65
- const str = data.toString();
66
- console.log(str);
67
- })]);
68
- }
69
- /**
70
- * Waits for the local testnet process to be up
71
- *
72
- * @returns Promise<boolean>
73
- */
74
- async waitUntilProcessIsUp() {
75
- let operational = await this.checkIfProcessIsUp();
76
- const start = Date.now() / 1e3;
77
- let last = start;
78
- while (!operational && start + this.MAXIMUM_WAIT_TIME_SEC > last) {
79
- await _chunkCZKNJSPCjs.sleep.call(void 0, 1e3);
80
- operational = await this.checkIfProcessIsUp();
81
- last = Date.now() / 1e3;
82
- }
83
- if (!operational) {
84
- throw new Error("Process failed to start");
85
- }
86
- return true;
87
- }
88
- /**
89
- * Checks if the local testnet is up
90
- *
91
- * @returns Promise<boolean>
92
- */
93
- async checkIfProcessIsUp() {
94
- try {
95
- const data = await fetch(this.READINESS_ENDPOINT);
96
- if (data.status === 200) {
97
- return true;
98
- }
99
- return false;
100
- } catch (err) {
101
- return false;
102
- }
103
- }
104
- };
105
-
106
- // src/cli/move.ts
107
-
108
-
109
- var Move = class {
110
- /**
111
- * Function to initialize current directory for Aptos
112
- *
113
- * Configuration will be pushed into .aptos/config.yaml
114
- * @param args.network optional Network type argument to use for default settings, default is local
115
- * @param args.profile optional Profile to use from the config file, default is 'default'
116
- * This will be used to override associated settings such as the REST URL, the Faucet URL, and the private key arguments.
117
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
118
- * @example
119
- * ["--assume-yes","--gas-unit-price=10"]
120
- *
121
- * @returns stdout
122
- */
123
- async init(args) {
124
- const { network, profile, extraArguments } = args;
125
- const cliArgs = ["aptos", "init", `--network=${_nullishCoalesce(network, () => ( "local"))}`, `--profile=${_nullishCoalesce(profile, () => ( "default"))}`];
126
- if (extraArguments) {
127
- cliArgs.push(...extraArguments);
128
- }
129
- return this.runCommand(cliArgs);
130
- }
131
- /**
132
- * Function to compile a package
133
- *
134
- * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
135
- * @param args.namedAddresses Named addresses for the move binary
136
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
137
- * @example
138
- * ["--assume-yes","--gas-unit-price=10"]
139
- * @example
140
- * {
141
- * alice:0x1234, bob:0x5678
142
- * }
143
- *
144
- * @returns stdout
145
- */
146
- async compile(args) {
147
- const { packageDirectoryPath, namedAddresses, extraArguments } = args;
148
- const cliArgs = ["aptos", "move", "compile", "--package-dir", packageDirectoryPath];
149
- const addressesMap = this.parseNamedAddresses(namedAddresses);
150
- cliArgs.push(...this.prepareNamedAddresses(addressesMap));
151
- if (extraArguments) {
152
- cliArgs.push(...extraArguments);
153
- }
154
- return this.runCommand(cliArgs);
155
- }
156
- /**
157
- * Function to run Move unit tests for a package
158
- *
159
- * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
160
- * @param args.namedAddresses Named addresses for the move binary
161
- * @example
162
- * {
163
- * alice:0x1234, bob:0x5678
164
- * }
165
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
166
- * @example
167
- * ["--assume-yes","--gas-unit-price=10"]
168
- *
169
- * @returns stdout
170
- */
171
- async test(args) {
172
- const { packageDirectoryPath, namedAddresses, extraArguments } = args;
173
- const cliArgs = ["aptos", "move", "test", "--package-dir", packageDirectoryPath];
174
- const addressesMap = this.parseNamedAddresses(namedAddresses);
175
- cliArgs.push(...this.prepareNamedAddresses(addressesMap));
176
- if (extraArguments) {
177
- cliArgs.push(...extraArguments);
178
- }
179
- return this.runCommand(cliArgs);
180
- }
181
- /**
182
- * Function to publish the modules to the publisher account on the Aptos blockchain
183
- *
184
- * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
185
- * @param args.namedAddresses Named addresses for the move binary
186
- * @example
187
- * {
188
- * alice:0x1234, bob:0x5678
189
- * }
190
- * @param args.profile optional Profile to use from the config file.
191
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
192
- * @example
193
- * ["--assume-yes","--gas-unit-price=10"]
194
- *
195
- * @returns stdout
196
- */
197
- async publish(args) {
198
- const { packageDirectoryPath, namedAddresses, profile, extraArguments } = args;
199
- const cliArgs = [
200
- "aptos",
201
- "move",
202
- "publish",
203
- "--package-dir",
204
- packageDirectoryPath,
205
- `--profile=${_nullishCoalesce(profile, () => ( "default"))}`
206
- ];
207
- const addressesMap = this.parseNamedAddresses(namedAddresses);
208
- cliArgs.push(...this.prepareNamedAddresses(addressesMap));
209
- if (extraArguments) {
210
- cliArgs.push(...extraArguments);
211
- }
212
- return this.runCommand(cliArgs);
213
- }
214
- /**
215
- * Function to create a new object and publish the Move package to it on the Aptos blockchain
216
- *
217
- * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
218
- * @param args.addressName Address name for the Move package
219
- * @example
220
- * MoonCoin, please find the actual address name in Move.toml
221
- * @param args.namedAddresses Named addresses for the move binary
222
- * @example
223
- * {
224
- * alice:0x1234, bob:0x5678
225
- * }
226
- * @param args.profile optional Profile to use from the config file.
227
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
228
- * @example
229
- * ["--assume-yes","--gas-unit-price=10"]
230
- *
231
- * A complete example in cli
232
- * aptos move create-object-and-publish-package \
233
- * --package-dir path_to_directory_that_has_move.toml \
234
- * --address-name launchpad_addr \
235
- * --named-addresses "launchpad_addr=0x123,initial_creator_addr=0x456"\
236
- * --profile my_profile \
237
- * --assume-yes
238
- * @returns object address
239
- */
240
- async createObjectAndPublishPackage(args) {
241
- const { packageDirectoryPath, addressName, namedAddresses, profile, extraArguments } = args;
242
- const cliArgs = [
243
- "aptos",
244
- "move",
245
- "create-object-and-publish-package",
246
- "--package-dir",
247
- packageDirectoryPath,
248
- "--address-name",
249
- addressName,
250
- `--profile=${_nullishCoalesce(profile, () => ( "default"))}`
251
- ];
252
- const addressesMap = this.parseNamedAddresses(namedAddresses);
253
- cliArgs.push(...this.prepareNamedAddresses(addressesMap));
254
- if (extraArguments) {
255
- cliArgs.push(...extraArguments);
256
- }
257
- const result = await this.runCommand(cliArgs);
258
- return { objectAddress: this.extractAddressFromOutput(result.output) };
259
- }
260
- /**
261
- * Function to upgrade a Move package previously published to an object on the Aptos blockchain
262
- * Caller must be the object owner to call this function
263
- *
264
- * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
265
- * @param args.objectAddress Address of the object that the Move package published to
266
- * @example
267
- * 0x1000
268
- * @param args.namedAddresses Named addresses for the move binary
269
- * @example
270
- * {
271
- * alice:0x1234, bob:0x5678
272
- * }
273
- * @param args.profile optional Profile to use from the config file.
274
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
275
- * @example
276
- * ["--assume-yes","--gas-unit-price=10"]
277
- *
278
- * @returns stdout
279
- */
280
- async upgradeObjectPackage(args) {
281
- const { packageDirectoryPath, objectAddress, namedAddresses, profile, extraArguments } = args;
282
- const cliArgs = [
283
- "aptos",
284
- "move",
285
- "upgrade-object-package",
286
- "--package-dir",
287
- packageDirectoryPath,
288
- "--object-address",
289
- objectAddress,
290
- `--profile=${_nullishCoalesce(profile, () => ( "default"))}`
291
- ];
292
- const addressesMap = this.parseNamedAddresses(namedAddresses);
293
- cliArgs.push(...this.prepareNamedAddresses(addressesMap));
294
- if (extraArguments) {
295
- cliArgs.push(...extraArguments);
296
- }
297
- return this.runCommand(cliArgs);
298
- }
299
- /**
300
- * Build a publication transaction payload and store it in a JSON output file
301
- *
302
- * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
303
- * @param args.outputFile Output file to write publication transaction to
304
- * @param args.namedAddresses Named addresses for the move binary
305
- * @example
306
- * {
307
- * alice:0x1234, bob:0x5678
308
- * }
309
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
310
- * @example
311
- * ["--assume-yes","--gas-unit-price=10"]
312
- *
313
- * @returns stdout
314
- */
315
- async buildPublishPayload(args) {
316
- const { outputFile, packageDirectoryPath, namedAddresses, extraArguments } = args;
317
- const cliArgs = [
318
- "aptos",
319
- "move",
320
- "build-publish-payload",
321
- "--json-output-file",
322
- outputFile,
323
- "--package-dir",
324
- packageDirectoryPath
325
- ];
326
- const addressesMap = this.parseNamedAddresses(namedAddresses);
327
- cliArgs.push(...this.prepareNamedAddresses(addressesMap));
328
- if (extraArguments) {
329
- cliArgs.push(...extraArguments);
330
- }
331
- return this.runCommand(cliArgs);
332
- }
333
- /**
334
- * Function to run a Move script, please run compile before running this
335
- *
336
- * @param args.compiledScriptPath Path to a compiled Move script bytecode file
337
- * @param args.namedAddresses Named addresses for the move binary
338
- * @example
339
- * build/my_package/bytecode_scripts/my_move_script.mv
340
- * @param args.profile optional Profile to use from the config file.
341
- * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
342
- * @example
343
- * ["--assume-yes","--gas-unit-price=10"]
344
- *
345
- * @returns stdout
346
- */
347
- async runScript(args) {
348
- const { compiledScriptPath, profile, extraArguments } = args;
349
- const cliArgs = [
350
- "aptos",
351
- "move",
352
- "run-script",
353
- "--compiled-script-path",
354
- compiledScriptPath,
355
- `--profile=${_nullishCoalesce(profile, () => ( "default"))}`
356
- ];
357
- if (extraArguments) {
358
- cliArgs.push(...extraArguments);
359
- }
360
- return this.runCommand(cliArgs);
361
- }
362
- /**
363
- * Run a move command
364
- *
365
- * @param args
366
- * @returns stdout
367
- */
368
- // eslint-disable-next-line class-methods-use-this
369
- async runCommand(args) {
370
- return new Promise((resolve, reject) => {
371
- const currentPlatform = _os.platform.call(void 0, );
372
- let childProcess;
373
- let stdout = "";
374
- if (currentPlatform === "win32") {
375
- childProcess = _child_process.spawn.call(void 0, "npx", args, { shell: true });
376
- } else {
377
- childProcess = _child_process.spawn.call(void 0, "npx", args);
378
- }
379
- childProcess.stdout.on("data", (data) => {
380
- stdout += data.toString();
381
- });
382
- childProcess.stdout.pipe(process.stdout);
383
- childProcess.stderr.pipe(process.stderr);
384
- process.stdin.pipe(childProcess.stdin);
385
- childProcess.on("close", (code) => {
386
- if (code === 0) {
387
- resolve({ output: stdout });
388
- } else {
389
- reject(new Error(`Child process exited with code ${code}`));
390
- }
391
- });
392
- });
393
- }
394
- /**
395
- * Convert named addresses from a Map into an array seperated by a comma
396
- *
397
- * @example
398
- * input: {'alice' => '0x123', 'bob' => '0x456'}
399
- * output: "alice=0x123,bob=0x456"
400
- *
401
- * @param namedAddresses
402
- * @returns An array of names addresses seperated by a comma
403
- */
404
- // eslint-disable-next-line class-methods-use-this
405
- prepareNamedAddresses(namedAddresses) {
406
- const totalNames = namedAddresses.size;
407
- const newArgs = [];
408
- if (totalNames === 0) {
409
- return newArgs;
410
- }
411
- newArgs.push("--named-addresses");
412
- const names = [];
413
- namedAddresses.forEach((value, key) => {
414
- const toAppend = `${key}=${value.toString()}`;
415
- names.push(toAppend);
416
- });
417
- newArgs.push(names.join(","));
418
- return newArgs;
419
- }
420
- /**
421
- * Parse named addresses from a Record type into a Map
422
- *
423
- * @param namedAddresses
424
- * @returns Map<name,address>
425
- */
426
- // eslint-disable-next-line class-methods-use-this
427
- parseNamedAddresses(namedAddresses) {
428
- const addressesMap = /* @__PURE__ */ new Map();
429
- Object.keys(namedAddresses).forEach((key) => {
430
- const address = namedAddresses[key];
431
- addressesMap.set(key, address);
432
- });
433
- return addressesMap;
434
- }
435
- /**
436
- * Extract object address from the output
437
- *
438
- * @param output
439
- * @returns object address
440
- */
441
- // eslint-disable-next-line class-methods-use-this
442
- extractAddressFromOutput(output) {
443
- const match = output.match("Code was successfully deployed to object address (0x[0-9a-fA-F]+)\\.");
444
- if (match) {
445
- return match[1];
446
- }
447
- throw new Error("Failed to extract object address from output");
448
- }
449
- };
450
-
451
-
452
-
453
- exports.LocalNode = LocalNode; exports.Move = Move;
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 _chunkHBPH2AD3js = require('../chunk-HBPH2AD3.js');var _child_process = require('child_process');var _treekill = require('tree-kill'); var _treekill2 = _interopRequireDefault(_treekill);var _os = require('os');var p=class{constructor(){this.MAXIMUM_WAIT_TIME_SEC=75;this.READINESS_ENDPOINT="http://127.0.0.1:8070/";this.process=null}async stop(){await new Promise((s,e)=>{_optionalChain([this, 'access', _ => _.process, 'optionalAccess', _2 => _2.pid])&&_treekill2.default.call(void 0, this.process.pid,t=>{t?e(t):s(!0)})})}async run(){await this.checkIfProcessIsUp()||(this.start(),await this.waitUntilProcessIsUp())}start(){let s="npx",e=["aptos","node","run-localnet","--force-restart","--assume-yes","--with-indexer-api"],t=_os.platform.call(void 0, ),a;t==="win32"?a=_child_process.spawn.call(void 0, s,e,{shell:!0}):a=_child_process.spawn.call(void 0, s,e),this.process=a,_optionalChain([a, 'access', _3 => _3.stderr, 'optionalAccess', _4 => _4.on, 'call', _5 => _5("data",r=>{let o=r.toString();console.log(o)})]),_optionalChain([a, 'access', _6 => _6.stdout, 'optionalAccess', _7 => _7.on, 'call', _8 => _8("data",r=>{let o=r.toString();console.log(o)})])}async waitUntilProcessIsUp(){let s=await this.checkIfProcessIsUp(),e=Date.now()/1e3,t=e;for(;!s&&e+this.MAXIMUM_WAIT_TIME_SEC>t;)await _chunkHBPH2AD3js.b.call(void 0, 1e3),s=await this.checkIfProcessIsUp(),t=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 m=class{async init(s){let{network:e,profile:t,extraArguments:a}=s,r=["aptos","init",`--network=${_nullishCoalesce(e, () => ("local"))}`,`--profile=${_nullishCoalesce(t, () => ("default"))}`];return a&&r.push(...a),this.runCommand(r)}async compile(s){let{packageDirectoryPath:e,namedAddresses:t,extraArguments:a}=s,r=["aptos","move","compile","--package-dir",e],o=this.parseNamedAddresses(t);return r.push(...this.prepareNamedAddresses(o)),a&&r.push(...a),this.runCommand(r)}async test(s){let{packageDirectoryPath:e,namedAddresses:t,extraArguments:a}=s,r=["aptos","move","test","--package-dir",e],o=this.parseNamedAddresses(t);return r.push(...this.prepareNamedAddresses(o)),a&&r.push(...a),this.runCommand(r)}async publish(s){let{packageDirectoryPath:e,namedAddresses:t,profile:a,extraArguments:r}=s,o=["aptos","move","publish","--package-dir",e,`--profile=${_nullishCoalesce(a, () => ("default"))}`],n=this.parseNamedAddresses(t);return o.push(...this.prepareNamedAddresses(n)),r&&o.push(...r),this.runCommand(o)}async createObjectAndPublishPackage(s){let{packageDirectoryPath:e,addressName:t,namedAddresses:a,profile:r,extraArguments:o}=s,n=["aptos","move","create-object-and-publish-package","--package-dir",e,"--address-name",t,`--profile=${_nullishCoalesce(r, () => ("default"))}`],i=this.parseNamedAddresses(a);n.push(...this.prepareNamedAddresses(i)),o&&n.push(...o);let g=await this.runCommand(n);return{objectAddress:this.extractAddressFromOutput(g.output)}}async upgradeObjectPackage(s){let{packageDirectoryPath:e,objectAddress:t,namedAddresses:a,profile:r,extraArguments:o}=s,n=["aptos","move","upgrade-object-package","--package-dir",e,"--object-address",t,`--profile=${_nullishCoalesce(r, () => ("default"))}`],i=this.parseNamedAddresses(a);return n.push(...this.prepareNamedAddresses(i)),o&&n.push(...o),this.runCommand(n)}async buildPublishPayload(s){let{outputFile:e,packageDirectoryPath:t,namedAddresses:a,extraArguments:r}=s,o=["aptos","move","build-publish-payload","--json-output-file",e,"--package-dir",t],n=this.parseNamedAddresses(a);return o.push(...this.prepareNamedAddresses(n)),r&&o.push(...r),this.runCommand(o)}async runScript(s){let{compiledScriptPath:e,profile:t,extraArguments:a}=s,r=["aptos","move","run-script","--compiled-script-path",e,`--profile=${_nullishCoalesce(t, () => ("default"))}`];return a&&r.push(...a),this.runCommand(r)}async runCommand(s){return new Promise((e,t)=>{let a=_os.platform.call(void 0, ),r,o="";a==="win32"?r=_child_process.spawn.call(void 0, "npx",s,{shell:!0}):r=_child_process.spawn.call(void 0, "npx",s),r.stdout.on("data",n=>{o+=n.toString()}),r.stdout.pipe(process.stdout),r.stderr.pipe(process.stderr),process.stdin.pipe(r.stdin),r.on("close",n=>{n===0?e({output:o}):t(new Error(`Child process exited with code ${n}`))})})}prepareNamedAddresses(s){let e=s.size,t=[];if(e===0)return t;t.push("--named-addresses");let a=[];return s.forEach((r,o)=>{let n=`${o}=${r.toString()}`;a.push(n)}),t.push(a.join(",")),t}parseNamedAddresses(s){let e=new Map;return Object.keys(s).forEach(t=>{let a=s[t];e.set(t,a)}),e}extractAddressFromOutput(s){let e=s.match("Code was successfully deployed to object address (0x[0-9a-fA-F]+)");if(e)return e[1];throw new Error("Failed to extract object address from output")}};exports.LocalNode = p; exports.Move = m;
454
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/cli/localNode.ts","../../../src/cli/move.ts"],"names":["spawn","platform"],"mappings":";;;;;AAAA,SAAyC,aAAa;AACtD,OAAO,UAAU;AACjB,SAAS,gBAAgB;AAIlB,IAAM,YAAN,MAAgB;AAAA,EAAhB;AACL,SAAS,wBAAwB;AAEjC,SAAS,qBAAqB;AAE9B,mBAAiD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjD,MAAM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L,iBAAO,IAAI,MAAM,kCAAkC,IAAI,EAAE,CAAC;AAAA,QAC5D;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaQ,sBAAsB,gBAA4D;AACxF,UAAM,aAAa,eAAe;AAClC,UAAM,UAAyB,CAAC;AAEhC,QAAI,eAAe,GAAG;AACpB,aAAO;AAAA,IACT;AAEA,YAAQ,KAAK,mBAAmB;AAEhC,UAAM,QAAuB,CAAC;AAC9B,mBAAe,QAAQ,CAAC,OAAO,QAAQ;AACrC,YAAM,WAAW,GAAG,GAAG,IAAI,MAAM,SAAS,CAAC;AAC3C,YAAM,KAAK,QAAQ;AAAA,IACrB,CAAC;AACD,YAAQ,KAAK,MAAM,KAAK,GAAG,CAAC;AAC5B,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASQ,oBAAoB,gBAA6E;AACvG,UAAM,eAAe,oBAAI,IAAI;AAE7B,WAAO,KAAK,cAAc,EAAE,QAAQ,CAAC,QAAQ;AAC3C,YAAM,UAAU,eAAe,GAAG;AAClC,mBAAa,IAAI,KAAK,OAAO;AAAA,IAC/B,CAAC;AAED,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASQ,yBAAyB,QAAwB;AACvD,UAAM,QAAQ,OAAO,MAAM,sEAAsE;AACjG,QAAI,OAAO;AACT,aAAO,MAAM,CAAC;AAAA,IAChB;AACA,UAAM,IAAI,MAAM,8CAA8C;AAAA,EAChE;AACF","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 async stop() {\n await new Promise((resolve, reject) => {\n if (!this.process?.pid) return;\n kill(this.process.pid, (err) => {\n if (err) {\n reject(err);\n } else {\n resolve(true);\n }\n });\n });\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-localnet\", \"--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 Network 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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async init(args: {\n network?: Network;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { network, profile, extraArguments } = args;\n const cliArgs = [\"aptos\", \"init\", `--network=${network ?? \"local\"}`, `--profile=${profile ?? \"default\"}`];\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n *\n * @returns stdout\n */\n async compile(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, namedAddresses, extraArguments } = 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 if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async test(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, namedAddresses, extraArguments } = 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 if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to publish the modules to the publisher account on 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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async publish(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, namedAddresses, profile, extraArguments } = 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 if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to create a new object and publish the Move package to it on the Aptos blockchain\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.addressName Address name for the Move package\n * @example\n * MoonCoin, please find the actual address name in Move.toml\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * A complete example in cli\n * aptos move create-object-and-publish-package \\\n * --package-dir path_to_directory_that_has_move.toml \\\n * --address-name launchpad_addr \\\n * --named-addresses \"launchpad_addr=0x123,initial_creator_addr=0x456\"\\\n * --profile my_profile \\\n * --assume-yes\n * @returns object address\n */\n async createObjectAndPublishPackage(args: {\n packageDirectoryPath: string;\n addressName: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ objectAddress: string }> {\n const { packageDirectoryPath, addressName, namedAddresses, profile, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"create-object-and-publish-package\",\n \"--package-dir\",\n packageDirectoryPath,\n \"--address-name\",\n addressName,\n `--profile=${profile ?? \"default\"}`,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n const result = await this.runCommand(cliArgs);\n return { objectAddress: this.extractAddressFromOutput(result.output) };\n }\n\n /**\n * Function to upgrade a Move package previously published to an object on the Aptos blockchain\n * Caller must be the object owner to call this function\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.objectAddress Address of the object that the Move package published to\n * @example\n * 0x1000\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async upgradeObjectPackage(args: {\n packageDirectoryPath: string;\n objectAddress: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, objectAddress, namedAddresses, profile, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"upgrade-object-package\",\n \"--package-dir\",\n packageDirectoryPath,\n \"--object-address\",\n objectAddress,\n `--profile=${profile ?? \"default\"}`,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Build a publication transaction payload and store it in a JSON output file\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.outputFile Output file to write publication transaction to\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async buildPublishPayload(args: {\n packageDirectoryPath: string;\n outputFile: string;\n namedAddresses: Record<string, AccountAddress>;\n extraArguments?: Array<string>;\n }) {\n const { outputFile, packageDirectoryPath, namedAddresses, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"build-publish-payload\",\n \"--json-output-file\",\n outputFile,\n \"--package-dir\",\n packageDirectoryPath,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to run a Move script, please run compile before running this\n *\n * @param args.compiledScriptPath Path to a compiled Move script bytecode file\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * build/my_package/bytecode_scripts/my_move_script.mv\n * @param args.profile optional Profile to use from the config file.\n * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async runScript(args: {\n compiledScriptPath: string;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { compiledScriptPath, profile, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"run-script\",\n \"--compiled-script-path\",\n compiledScriptPath,\n `--profile=${profile ?? \"default\"}`,\n ];\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Run a move command\n *\n * @param args\n * @returns stdout\n */\n // eslint-disable-next-line class-methods-use-this\n private async runCommand(args: Array<string>): Promise<{ output: string }> {\n return new Promise((resolve, reject) => {\n const currentPlatform = platform();\n let childProcess;\n let stdout = \"\";\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.on(\"data\", (data) => {\n stdout += data.toString();\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({ output: stdout }); // Resolve with stdout 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 /**\n * Extract object address from the output\n *\n * @param output\n * @returns object address\n */\n // eslint-disable-next-line class-methods-use-this\n private extractAddressFromOutput(output: string): string {\n const match = output.match(\"Code was successfully deployed to object address (0x[0-9a-fA-F]+)\\\\.\");\n if (match) {\n return match[1];\n }\n throw new Error(\"Failed to extract object address from output\");\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../src/cli/localNode.ts","../../../src/cli/move.ts"],"names":["spawn","kill","platform","LocalNode","resolve","reject","err","cliCommand","cliArgs","currentPlatform","childProcess","data","str","operational","start","last","sleep","Move","args","network","profile","extraArguments","packageDirectoryPath","namedAddresses","addressesMap","addressName","result","objectAddress","outputFile","compiledScriptPath","stdout","code","totalNames","newArgs","names","value","key","toAppend","address","output","match"],"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,MAAM,MAAO,CACX,MAAM,IAAI,QAAQ,CAACC,EAASC,IAAW,CAChC,KAAK,SAAS,KACnBJ,EAAK,KAAK,Q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GAAQ,CAC3C,IAAME,EAAUf,EAAea,CAAG,EAClCZ,EAAa,IAAIY,EAAKE,CAAO,CAC/B,CAAC,EAEMd,CACT,CASQ,yBAAyBe,EAAwB,CACvD,IAAMC,EAAQD,EAAO,MAAM,mEAAmE,EAC9F,GAAIC,EACF,OAAOA,EAAM,CAAC,EAEhB,MAAM,IAAI,MAAM,8CAA8C,CAChE,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 async stop() {\n await new Promise((resolve, reject) => {\n if (!this.process?.pid) return;\n kill(this.process.pid, (err) => {\n if (err) {\n reject(err);\n } else {\n resolve(true);\n }\n });\n });\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-localnet\", \"--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 Network 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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async init(args: {\n network?: Network;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { network, profile, extraArguments } = args;\n const cliArgs = [\"aptos\", \"init\", `--network=${network ?? \"local\"}`, `--profile=${profile ?? \"default\"}`];\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n *\n * @returns stdout\n */\n async compile(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, namedAddresses, extraArguments } = 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 if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async test(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, namedAddresses, extraArguments } = 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 if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to publish the modules to the publisher account on 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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async publish(args: {\n packageDirectoryPath: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, namedAddresses, profile, extraArguments } = 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 if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to create a new object and publish the Move package to it on the Aptos blockchain\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.addressName Address name for the Move package\n * @example\n * MoonCoin, please find the actual address name in Move.toml\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * A complete example in cli\n * aptos move create-object-and-publish-package \\\n * --package-dir path_to_directory_that_has_move.toml \\\n * --address-name launchpad_addr \\\n * --named-addresses \"launchpad_addr=0x123,initial_creator_addr=0x456\"\\\n * --profile my_profile \\\n * --assume-yes\n * @returns object address\n */\n async createObjectAndPublishPackage(args: {\n packageDirectoryPath: string;\n addressName: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ objectAddress: string }> {\n const { packageDirectoryPath, addressName, namedAddresses, profile, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"create-object-and-publish-package\",\n \"--package-dir\",\n packageDirectoryPath,\n \"--address-name\",\n addressName,\n `--profile=${profile ?? \"default\"}`,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n const result = await this.runCommand(cliArgs);\n return { objectAddress: this.extractAddressFromOutput(result.output) };\n }\n\n /**\n * Function to upgrade a Move package previously published to an object on the Aptos blockchain\n * Caller must be the object owner to call this function\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.objectAddress Address of the object that the Move package published to\n * @example\n * 0x1000\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 * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async upgradeObjectPackage(args: {\n packageDirectoryPath: string;\n objectAddress: string;\n namedAddresses: Record<string, AccountAddress>;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { packageDirectoryPath, objectAddress, namedAddresses, profile, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"upgrade-object-package\",\n \"--package-dir\",\n packageDirectoryPath,\n \"--object-address\",\n objectAddress,\n `--profile=${profile ?? \"default\"}`,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Build a publication transaction payload and store it in a JSON output file\n *\n * @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)\n * @param args.outputFile Output file to write publication transaction to\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * {\n * alice:0x1234, bob:0x5678\n * }\n * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async buildPublishPayload(args: {\n packageDirectoryPath: string;\n outputFile: string;\n namedAddresses: Record<string, AccountAddress>;\n extraArguments?: Array<string>;\n }) {\n const { outputFile, packageDirectoryPath, namedAddresses, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"build-publish-payload\",\n \"--json-output-file\",\n outputFile,\n \"--package-dir\",\n packageDirectoryPath,\n ];\n\n const addressesMap = this.parseNamedAddresses(namedAddresses);\n\n cliArgs.push(...this.prepareNamedAddresses(addressesMap));\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Function to run a Move script, please run compile before running this\n *\n * @param args.compiledScriptPath Path to a compiled Move script bytecode file\n * @param args.namedAddresses Named addresses for the move binary\n * @example\n * build/my_package/bytecode_scripts/my_move_script.mv\n * @param args.profile optional Profile to use from the config file.\n * @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings\n * @example\n * [\"--assume-yes\",\"--gas-unit-price=10\"]\n *\n * @returns stdout\n */\n async runScript(args: {\n compiledScriptPath: string;\n profile?: string;\n extraArguments?: Array<string>;\n }): Promise<{ output: string }> {\n const { compiledScriptPath, profile, extraArguments } = args;\n const cliArgs = [\n \"aptos\",\n \"move\",\n \"run-script\",\n \"--compiled-script-path\",\n compiledScriptPath,\n `--profile=${profile ?? \"default\"}`,\n ];\n\n if (extraArguments) {\n cliArgs.push(...extraArguments);\n }\n\n return this.runCommand(cliArgs);\n }\n\n /**\n * Run a move command\n *\n * @param args\n * @returns stdout\n */\n // eslint-disable-next-line class-methods-use-this\n private async runCommand(args: Array<string>): Promise<{ output: string }> {\n return new Promise((resolve, reject) => {\n const currentPlatform = platform();\n let childProcess;\n let stdout = \"\";\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.on(\"data\", (data) => {\n stdout += data.toString();\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({ output: stdout }); // Resolve with stdout 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 /**\n * Extract object address from the output\n *\n * @param output\n * @returns object address\n */\n // eslint-disable-next-line class-methods-use-this\n private extractAddressFromOutput(output: string): string {\n const match = output.match(\"Code was successfully deployed to object address (0x[0-9a-fA-F]+)\");\n if (match) {\n return match[1];\n }\n throw new Error(\"Failed to extract object address from output\");\n }\n}\n"]}