@aptos-labs/ts-sdk 1.14.0-zeta.2 → 1.14.0-zeta.4

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 (429) hide show
  1. package/dist/common/chunk-KSEUZTKY.js +2 -0
  2. package/dist/common/chunk-KSEUZTKY.js.map +1 -0
  3. package/dist/common/cli/index.js +1 -245
  4. package/dist/common/cli/index.js.map +1 -1
  5. package/dist/common/index.js +390 -11802
  6. package/dist/common/index.js.map +1 -1
  7. package/dist/esm/account/Account.mjs +1 -55
  8. package/dist/esm/account/Ed25519Account.mjs +1 -53
  9. package/dist/esm/account/EphemeralKeyPair.mjs +1 -36
  10. package/dist/esm/account/KeylessAccount.mjs +1 -56
  11. package/dist/esm/account/MultiKeyAccount.mjs +1 -55
  12. package/dist/esm/account/SingleKeyAccount.mjs +1 -53
  13. package/dist/esm/account/index.mjs +1 -76
  14. package/dist/esm/api/account.mjs +1 -76
  15. package/dist/esm/api/ans.mjs +1 -87
  16. package/dist/esm/api/aptos.mjs +1 -116
  17. package/dist/esm/api/aptosConfig.mjs +1 -9
  18. package/dist/esm/api/coin.mjs +1 -86
  19. package/dist/esm/api/digitalAsset.mjs +1 -87
  20. package/dist/esm/api/event.mjs +1 -54
  21. package/dist/esm/api/faucet.mjs +1 -53
  22. package/dist/esm/api/fungibleAsset.mjs +1 -87
  23. package/dist/esm/api/general.mjs +1 -84
  24. package/dist/esm/api/index.mjs +1 -120
  25. package/dist/esm/api/keyless.mjs +1 -70
  26. package/dist/esm/api/staking.mjs +1 -54
  27. package/dist/esm/api/transaction.mjs +1 -94
  28. package/dist/esm/api/transactionSubmission/build.mjs +1 -85
  29. package/dist/esm/api/transactionSubmission/helpers.mjs +1 -9
  30. package/dist/esm/api/transactionSubmission/management.mjs +1 -89
  31. package/dist/esm/api/transactionSubmission/sign.mjs +1 -109
  32. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  33. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -86
  34. package/dist/esm/api/transactionSubmission/submit.mjs +1 -86
  35. package/dist/esm/api/utils.mjs +1 -34
  36. package/dist/esm/bcs/consts.mjs +1 -17
  37. package/dist/esm/bcs/deserializer.mjs +1 -8
  38. package/dist/esm/bcs/index.mjs +1 -57
  39. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -12
  40. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -11
  41. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -25
  42. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -18
  43. package/dist/esm/bcs/serializer.mjs +1 -18
  44. package/dist/esm/chunk-3COVJN6Z.mjs +2 -0
  45. package/dist/esm/{chunk-2JOCR2VL.mjs.map → chunk-3COVJN6Z.mjs.map} +1 -1
  46. package/dist/esm/chunk-3FVRXELT.mjs +2 -0
  47. package/dist/esm/{chunk-KK2BSALW.mjs.map → chunk-3FVRXELT.mjs.map} +1 -1
  48. package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
  49. package/dist/esm/{chunk-GGMTQAQP.mjs.map → chunk-3JPVQHOR.mjs.map} +1 -1
  50. package/dist/esm/chunk-3VGX3TXH.mjs +2 -0
  51. package/dist/esm/{chunk-7FO3S6IZ.mjs.map → chunk-3VGX3TXH.mjs.map} +1 -1
  52. package/dist/esm/chunk-4D5QYFL7.mjs +2 -0
  53. package/dist/esm/{chunk-VZQXLVEP.mjs.map → chunk-4D5QYFL7.mjs.map} +1 -1
  54. package/dist/esm/chunk-4SZSI7QT.mjs +2 -0
  55. package/dist/esm/{chunk-2ZEGJU43.mjs.map → chunk-4SZSI7QT.mjs.map} +1 -1
  56. package/dist/esm/chunk-52ECIIIH.mjs +2 -0
  57. package/dist/esm/{chunk-U3IUCR2G.mjs.map → chunk-52ECIIIH.mjs.map} +1 -1
  58. package/dist/esm/chunk-53T2VRZA.mjs +2 -0
  59. package/dist/esm/{chunk-7IDBB4J4.mjs.map → chunk-53T2VRZA.mjs.map} +1 -1
  60. package/dist/esm/chunk-56CNRT2K.mjs +2 -0
  61. package/dist/esm/{chunk-SBB4YEPT.mjs.map → chunk-56CNRT2K.mjs.map} +1 -1
  62. package/dist/esm/chunk-56NB52W6.mjs +2 -0
  63. package/dist/esm/{chunk-VJP2VWMF.mjs.map → chunk-56NB52W6.mjs.map} +1 -1
  64. package/dist/esm/chunk-5JGWZSNG.mjs +2 -0
  65. package/dist/esm/{chunk-LYK4TQZO.mjs.map → chunk-5JGWZSNG.mjs.map} +1 -1
  66. package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
  67. package/dist/esm/{chunk-SIJELMDP.mjs.map → chunk-6EMN3BOV.mjs.map} +1 -1
  68. package/dist/esm/chunk-6JT3CUFA.mjs +2 -0
  69. package/dist/esm/{chunk-ST4QXIMI.mjs.map → chunk-6JT3CUFA.mjs.map} +1 -1
  70. package/dist/esm/chunk-6KGDQGT2.mjs +2 -0
  71. package/dist/esm/{chunk-GBEVD2VM.mjs.map → chunk-6KGDQGT2.mjs.map} +1 -1
  72. package/dist/esm/chunk-6OETO7Q7.mjs +2 -0
  73. package/dist/esm/{chunk-UX5NSZEN.mjs.map → chunk-6OETO7Q7.mjs.map} +1 -1
  74. package/dist/esm/chunk-6RBUXB5I.mjs +2 -0
  75. package/dist/esm/{chunk-WK5ZSNE2.mjs.map → chunk-6RBUXB5I.mjs.map} +1 -1
  76. package/dist/esm/chunk-6YFCRKVC.mjs +2 -0
  77. package/dist/esm/{chunk-YYOPNUX5.mjs.map → chunk-6YFCRKVC.mjs.map} +1 -1
  78. package/dist/esm/chunk-7STYQ5ZE.mjs +2 -0
  79. package/dist/esm/{chunk-UEBBLQJ5.mjs.map → chunk-7STYQ5ZE.mjs.map} +1 -1
  80. package/dist/esm/chunk-7WJTKYRG.mjs +2 -0
  81. package/dist/esm/{chunk-2OQW7BMN.mjs.map → chunk-7WJTKYRG.mjs.map} +1 -1
  82. package/dist/esm/chunk-AFGTRMOR.mjs +2 -0
  83. package/dist/esm/{chunk-KMXSRHJ6.mjs.map → chunk-AFGTRMOR.mjs.map} +1 -1
  84. package/dist/esm/chunk-AH44UPM4.mjs +2 -0
  85. package/dist/esm/{chunk-EYHRMZPO.mjs.map → chunk-AH44UPM4.mjs.map} +1 -1
  86. package/dist/esm/chunk-AOCNYMMX.mjs +2 -0
  87. package/dist/esm/{chunk-YV7M4CFP.mjs.map → chunk-AOCNYMMX.mjs.map} +1 -1
  88. package/dist/esm/chunk-B3BLP5DP.mjs +2 -0
  89. package/dist/esm/{chunk-W76MGKZB.mjs.map → chunk-B3BLP5DP.mjs.map} +1 -1
  90. package/dist/esm/chunk-BTTXZYBD.mjs +2 -0
  91. package/dist/esm/{chunk-LI2QV6RU.mjs.map → chunk-BTTXZYBD.mjs.map} +1 -1
  92. package/dist/esm/chunk-C34M4T77.mjs +2 -0
  93. package/dist/esm/{chunk-UKU6A2W2.mjs.map → chunk-C34M4T77.mjs.map} +1 -1
  94. package/dist/esm/chunk-C3L4ETUF.mjs +2 -0
  95. package/dist/esm/{chunk-PIMQHG2J.mjs.map → chunk-C3L4ETUF.mjs.map} +1 -1
  96. package/dist/esm/chunk-CO53EOHE.mjs +2 -0
  97. package/dist/esm/{chunk-MZZLEY6O.mjs.map → chunk-CO53EOHE.mjs.map} +1 -1
  98. package/dist/esm/chunk-COW5IGYC.mjs +2 -0
  99. package/dist/esm/{chunk-FXKSE3ZP.mjs.map → chunk-COW5IGYC.mjs.map} +1 -1
  100. package/dist/esm/chunk-CPBGL37X.mjs +2 -0
  101. package/dist/esm/{chunk-D2BVBXWO.mjs.map → chunk-CPBGL37X.mjs.map} +1 -1
  102. package/dist/esm/chunk-CSP3V4UZ.mjs +2 -0
  103. package/dist/esm/{chunk-DGV7DYU4.mjs.map → chunk-CSP3V4UZ.mjs.map} +1 -1
  104. package/dist/esm/chunk-D4J3MCOI.mjs +2 -0
  105. package/dist/esm/{chunk-JV3GSIJW.mjs.map → chunk-D4J3MCOI.mjs.map} +1 -1
  106. package/dist/esm/chunk-EB7AI4B4.mjs +2 -0
  107. package/dist/esm/{chunk-AR7X6GWQ.mjs.map → chunk-EB7AI4B4.mjs.map} +1 -1
  108. package/dist/esm/chunk-EIXCAYQM.mjs +2 -0
  109. package/dist/esm/{chunk-O6PSHSN3.mjs.map → chunk-EIXCAYQM.mjs.map} +1 -1
  110. package/dist/esm/chunk-F3HH6U3Z.mjs +2 -0
  111. package/dist/esm/{chunk-IC56GQFJ.mjs.map → chunk-F3HH6U3Z.mjs.map} +1 -1
  112. package/dist/esm/chunk-FBPNHF54.mjs +2 -0
  113. package/dist/esm/{chunk-QMM2KL6C.mjs.map → chunk-FBPNHF54.mjs.map} +1 -1
  114. package/dist/esm/chunk-FHNW3DEN.mjs +2 -0
  115. package/dist/esm/{chunk-ATVFVXR6.mjs.map → chunk-FHNW3DEN.mjs.map} +1 -1
  116. package/dist/esm/chunk-FLYEALDB.mjs +2 -0
  117. package/dist/esm/{chunk-76TSTAU4.mjs.map → chunk-FLYEALDB.mjs.map} +1 -1
  118. package/dist/esm/chunk-FMBZNFEA.mjs +2 -0
  119. package/dist/esm/{chunk-ZAHJ7KXB.mjs.map → chunk-FMBZNFEA.mjs.map} +1 -1
  120. package/dist/esm/chunk-FVA2OPG4.mjs +2 -0
  121. package/dist/esm/chunk-GUO5GDBN.mjs +2 -0
  122. package/dist/esm/{chunk-HBNSRCZN.mjs.map → chunk-GUO5GDBN.mjs.map} +1 -1
  123. package/dist/esm/chunk-HGZGTBA4.mjs +2 -0
  124. package/dist/esm/{chunk-PYLOAMR2.mjs.map → chunk-HGZGTBA4.mjs.map} +1 -1
  125. package/dist/esm/chunk-HX5246EM.mjs +2 -0
  126. package/dist/esm/{chunk-JHDHNGJ3.mjs.map → chunk-HX5246EM.mjs.map} +1 -1
  127. package/dist/esm/chunk-HY5E66FY.mjs +2 -0
  128. package/dist/esm/{chunk-7FUHWL6A.mjs.map → chunk-HY5E66FY.mjs.map} +1 -1
  129. package/dist/esm/chunk-IBQWYF23.mjs +2 -0
  130. package/dist/esm/{chunk-WDRH2URB.mjs.map → chunk-IBQWYF23.mjs.map} +1 -1
  131. package/dist/esm/chunk-IWBLSSVA.mjs +2 -0
  132. package/dist/esm/{chunk-TBHU6ZW6.mjs.map → chunk-IWBLSSVA.mjs.map} +1 -1
  133. package/dist/esm/chunk-JJIANJE3.mjs +2 -0
  134. package/dist/esm/{chunk-GSVQ6EUD.mjs.map → chunk-JJIANJE3.mjs.map} +1 -1
  135. package/dist/esm/chunk-JM2B5E2I.mjs +2 -0
  136. package/dist/esm/{chunk-CX3NAVRD.mjs.map → chunk-JM2B5E2I.mjs.map} +1 -1
  137. package/dist/esm/chunk-JM544NRW.mjs +2 -0
  138. package/dist/esm/{chunk-7REUIYF4.mjs.map → chunk-JM544NRW.mjs.map} +1 -1
  139. package/dist/esm/chunk-JYUTX5G7.mjs +2 -0
  140. package/dist/esm/{chunk-LYMY63SO.mjs.map → chunk-JYUTX5G7.mjs.map} +1 -1
  141. package/dist/esm/chunk-K247GPES.mjs +2 -0
  142. package/dist/esm/{chunk-NYL77J4X.mjs.map → chunk-K247GPES.mjs.map} +1 -1
  143. package/dist/esm/chunk-KW2KIYJE.mjs +2 -0
  144. package/dist/esm/{chunk-BXMHDQHW.mjs.map → chunk-KW2KIYJE.mjs.map} +1 -1
  145. package/dist/esm/chunk-KYZCH7IK.mjs +2 -0
  146. package/dist/esm/{chunk-NXFO2W4G.mjs.map → chunk-KYZCH7IK.mjs.map} +1 -1
  147. package/dist/esm/chunk-L54P6EGN.mjs +2 -0
  148. package/dist/esm/{chunk-SS3NUM5L.mjs.map → chunk-L54P6EGN.mjs.map} +1 -1
  149. package/dist/esm/chunk-LDQ6JFEF.mjs +2 -0
  150. package/dist/esm/{chunk-N4WKFNQ6.mjs.map → chunk-LDQ6JFEF.mjs.map} +1 -1
  151. package/dist/esm/chunk-LR5YOJG2.mjs +2 -0
  152. package/dist/esm/{chunk-6LRQSBRH.mjs.map → chunk-LR5YOJG2.mjs.map} +1 -1
  153. package/dist/esm/chunk-LR65XHSF.mjs +2 -0
  154. package/dist/esm/{chunk-PU5AFUX3.mjs.map → chunk-LR65XHSF.mjs.map} +1 -1
  155. package/dist/esm/chunk-MC6O2XME.mjs +2 -0
  156. package/dist/esm/{chunk-RCQMWXEW.mjs.map → chunk-MC6O2XME.mjs.map} +1 -1
  157. package/dist/esm/chunk-MGOHPDX4.mjs +2 -0
  158. package/dist/esm/{chunk-2TJJWII2.mjs.map → chunk-MGOHPDX4.mjs.map} +1 -1
  159. package/dist/esm/chunk-MTLETLKV.mjs +2 -0
  160. package/dist/esm/{chunk-DIYZRGR6.mjs.map → chunk-MTLETLKV.mjs.map} +1 -1
  161. package/dist/esm/chunk-MWUJCP27.mjs +2 -0
  162. package/dist/esm/{chunk-6MSZMIFW.mjs.map → chunk-MWUJCP27.mjs.map} +1 -1
  163. package/dist/esm/chunk-N466X3S6.mjs +2 -0
  164. package/dist/esm/{chunk-WLTBF4DF.mjs.map → chunk-N466X3S6.mjs.map} +1 -1
  165. package/dist/esm/chunk-NC5HHEEM.mjs +2 -0
  166. package/dist/esm/{chunk-XANFAUBD.mjs.map → chunk-NC5HHEEM.mjs.map} +1 -1
  167. package/dist/esm/chunk-NNIHTVLA.mjs +2 -0
  168. package/dist/esm/{chunk-VPWUODU4.mjs.map → chunk-NNIHTVLA.mjs.map} +1 -1
  169. package/dist/esm/chunk-NT47KB7Y.mjs +2 -0
  170. package/dist/esm/{chunk-Y2LV3S5W.mjs.map → chunk-NT47KB7Y.mjs.map} +1 -1
  171. package/dist/esm/chunk-NWGBV3YO.mjs +2 -0
  172. package/dist/esm/{chunk-F2ZWA7B7.mjs.map → chunk-NWGBV3YO.mjs.map} +1 -1
  173. package/dist/esm/chunk-NWWXZ7EW.mjs +2 -0
  174. package/dist/esm/{chunk-B5S6DDUD.mjs.map → chunk-NWWXZ7EW.mjs.map} +1 -1
  175. package/dist/esm/chunk-NYTZPISE.mjs +2 -0
  176. package/dist/esm/{chunk-KVSQ57HU.mjs.map → chunk-NYTZPISE.mjs.map} +1 -1
  177. package/dist/esm/chunk-O6LITRY2.mjs +2 -0
  178. package/dist/esm/{chunk-CTJSZT5V.mjs.map → chunk-O6LITRY2.mjs.map} +1 -1
  179. package/dist/esm/chunk-OJFMOV2O.mjs +2 -0
  180. package/dist/esm/{chunk-TLNHRJB2.mjs.map → chunk-OJFMOV2O.mjs.map} +1 -1
  181. package/dist/esm/chunk-OMD4G3E6.mjs +2 -0
  182. package/dist/esm/{chunk-FF4JPDKD.mjs.map → chunk-OMD4G3E6.mjs.map} +1 -1
  183. package/dist/esm/chunk-PBDEW4TN.mjs +2 -0
  184. package/dist/esm/{chunk-IHNPN5CQ.mjs.map → chunk-PBDEW4TN.mjs.map} +1 -1
  185. package/dist/esm/chunk-PFFAQZHT.mjs +2 -0
  186. package/dist/esm/{chunk-DNPMS2OF.mjs.map → chunk-PFFAQZHT.mjs.map} +1 -1
  187. package/dist/esm/chunk-PTRUUJCS.mjs +2 -0
  188. package/dist/esm/{chunk-LLLQJWRZ.mjs.map → chunk-PTRUUJCS.mjs.map} +1 -1
  189. package/dist/esm/chunk-PYUU4OEL.mjs +2 -0
  190. package/dist/esm/{chunk-RX4VG2AT.mjs.map → chunk-PYUU4OEL.mjs.map} +1 -1
  191. package/dist/esm/chunk-QDJN5HCB.mjs +2 -0
  192. package/dist/esm/{chunk-CC4DQ6NH.mjs.map → chunk-QDJN5HCB.mjs.map} +1 -1
  193. package/dist/esm/chunk-QFMUMZXR.mjs +2 -0
  194. package/dist/esm/{chunk-ASF2VWOX.mjs.map → chunk-QFMUMZXR.mjs.map} +1 -1
  195. package/dist/esm/chunk-RJ4PSGZ4.mjs +2 -0
  196. package/dist/esm/{chunk-QFOG4LIN.mjs.map → chunk-RJ4PSGZ4.mjs.map} +1 -1
  197. package/dist/esm/chunk-RKHPXZM6.mjs +2 -0
  198. package/dist/esm/{chunk-PCLNX6FS.mjs.map → chunk-RKHPXZM6.mjs.map} +1 -1
  199. package/dist/esm/{chunk-4PJ5FYGQ.mjs → chunk-S4SEFF4K.mjs} +27 -302
  200. package/dist/esm/{chunk-4PJ5FYGQ.mjs.map → chunk-S4SEFF4K.mjs.map} +1 -1
  201. package/dist/esm/chunk-S4YEK4LM.mjs +2 -0
  202. package/dist/esm/{chunk-WVGO4D7K.mjs.map → chunk-S4YEK4LM.mjs.map} +1 -1
  203. package/dist/esm/chunk-STYDBDYL.mjs +2 -0
  204. package/dist/esm/{chunk-FDWJNY4U.mjs.map → chunk-STYDBDYL.mjs.map} +1 -1
  205. package/dist/esm/chunk-SXOQWGMT.mjs +2 -0
  206. package/dist/esm/{chunk-VDJBDX3A.mjs.map → chunk-SXOQWGMT.mjs.map} +1 -1
  207. package/dist/esm/chunk-T23OVRNF.mjs +2 -0
  208. package/dist/esm/{chunk-CMNJG4NN.mjs.map → chunk-T23OVRNF.mjs.map} +1 -1
  209. package/dist/esm/chunk-TBGRYIFW.mjs +2 -0
  210. package/dist/esm/{chunk-NW45SCPY.mjs.map → chunk-TBGRYIFW.mjs.map} +1 -1
  211. package/dist/esm/chunk-TICM455H.mjs +2 -0
  212. package/dist/esm/{chunk-ZMFKQUHL.mjs.map → chunk-TICM455H.mjs.map} +1 -1
  213. package/dist/esm/chunk-TJDC5PWD.mjs +2 -0
  214. package/dist/esm/{chunk-NMKCJNQM.mjs.map → chunk-TJDC5PWD.mjs.map} +1 -1
  215. package/dist/esm/chunk-TVRJ3M7B.mjs +2 -0
  216. package/dist/esm/{chunk-FQQW55X7.mjs.map → chunk-TVRJ3M7B.mjs.map} +1 -1
  217. package/dist/esm/chunk-U6Z4FNB7.mjs +2 -0
  218. package/dist/esm/{chunk-AC3OGAL6.mjs.map → chunk-U6Z4FNB7.mjs.map} +1 -1
  219. package/dist/esm/chunk-UAL7TX7O.mjs +2 -0
  220. package/dist/esm/{chunk-DVPQGCFT.mjs.map → chunk-UAL7TX7O.mjs.map} +1 -1
  221. package/dist/esm/chunk-UTXJOB3O.mjs +2 -0
  222. package/dist/esm/{chunk-QBBTUC66.mjs.map → chunk-UTXJOB3O.mjs.map} +1 -1
  223. package/dist/esm/chunk-VDMVO4R4.mjs +2 -0
  224. package/dist/esm/{chunk-4OYYOYSO.mjs.map → chunk-VDMVO4R4.mjs.map} +1 -1
  225. package/dist/esm/chunk-VT6XJSRO.mjs +2 -0
  226. package/dist/esm/{chunk-7JRMOHBP.mjs.map → chunk-VT6XJSRO.mjs.map} +1 -1
  227. package/dist/esm/chunk-VXZDDYG7.mjs +2 -0
  228. package/dist/esm/{chunk-55NODGHC.mjs.map → chunk-VXZDDYG7.mjs.map} +1 -1
  229. package/dist/esm/chunk-WOPMZAWX.mjs +2 -0
  230. package/dist/esm/{chunk-VKJQORON.mjs.map → chunk-WOPMZAWX.mjs.map} +1 -1
  231. package/dist/esm/chunk-XOTF6PQ7.mjs +2 -0
  232. package/dist/esm/{chunk-CXUGZXED.mjs.map → chunk-XOTF6PQ7.mjs.map} +1 -1
  233. package/dist/esm/chunk-YE5B2S5L.mjs +2 -0
  234. package/dist/esm/{chunk-NFJCQRVK.mjs.map → chunk-YE5B2S5L.mjs.map} +1 -1
  235. package/dist/esm/chunk-ZJDNONEP.mjs +2 -0
  236. package/dist/esm/{chunk-U7QBZ6PP.mjs.map → chunk-ZJDNONEP.mjs.map} +1 -1
  237. package/dist/esm/chunk-ZLLU4XK7.mjs +2 -0
  238. package/dist/esm/{chunk-WHBWEN6N.mjs.map → chunk-ZLLU4XK7.mjs.map} +1 -1
  239. package/dist/esm/chunk-ZNEBMSNC.mjs +2 -0
  240. package/dist/esm/{chunk-JL2JHVS4.mjs.map → chunk-ZNEBMSNC.mjs.map} +1 -1
  241. package/dist/esm/cli/index.mjs +1 -12
  242. package/dist/esm/cli/localNode.mjs +1 -8
  243. package/dist/esm/cli/move.mjs +1 -7
  244. package/dist/esm/client/core.mjs +1 -27
  245. package/dist/esm/client/get.mjs +1 -32
  246. package/dist/esm/client/index.mjs +1 -55
  247. package/dist/esm/client/post.mjs +1 -36
  248. package/dist/esm/client/types.mjs +1 -7
  249. package/dist/esm/core/account/index.mjs +1 -19
  250. package/dist/esm/core/account/utils/address.mjs +1 -18
  251. package/dist/esm/core/account/utils/index.mjs +1 -19
  252. package/dist/esm/core/accountAddress.mjs +1 -15
  253. package/dist/esm/core/authenticationKey.mjs +1 -14
  254. package/dist/esm/core/common.mjs +1 -7
  255. package/dist/esm/core/crypto/ed25519.mjs +1 -29
  256. package/dist/esm/core/crypto/ephemeral.mjs +1 -28
  257. package/dist/esm/core/crypto/hdKey.mjs +1 -25
  258. package/dist/esm/core/crypto/index.mjs +1 -124
  259. package/dist/esm/core/crypto/keyless.mjs +1 -55
  260. package/dist/esm/core/crypto/multiEd25519.mjs +1 -28
  261. package/dist/esm/core/crypto/multiKey.mjs +1 -34
  262. package/dist/esm/core/crypto/poseidon.mjs +1 -15
  263. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  264. package/dist/esm/core/crypto/proof.mjs +1 -19
  265. package/dist/esm/core/crypto/publicKey.mjs +1 -21
  266. package/dist/esm/core/crypto/secp256k1.mjs +1 -27
  267. package/dist/esm/core/crypto/signature.mjs +1 -19
  268. package/dist/esm/core/crypto/singleKey.mjs +1 -33
  269. package/dist/esm/core/crypto/utils.mjs +1 -9
  270. package/dist/esm/core/hex.mjs +1 -10
  271. package/dist/esm/core/index.mjs +1 -141
  272. package/dist/esm/index.mjs +1 -635
  273. package/dist/esm/internal/account.mjs +1 -106
  274. package/dist/esm/internal/ans.mjs +1 -120
  275. package/dist/esm/internal/coin.mjs +1 -85
  276. package/dist/esm/internal/digitalAsset.mjs +1 -127
  277. package/dist/esm/internal/event.mjs +1 -55
  278. package/dist/esm/internal/faucet.mjs +1 -52
  279. package/dist/esm/internal/fungibleAsset.mjs +1 -91
  280. package/dist/esm/internal/general.mjs +1 -46
  281. package/dist/esm/internal/keyless.mjs +1 -73
  282. package/dist/esm/internal/staking.mjs +1 -53
  283. package/dist/esm/internal/transaction.mjs +1 -51
  284. package/dist/esm/internal/transactionSubmission.mjs +1 -102
  285. package/dist/esm/internal/view.mjs +1 -83
  286. package/dist/esm/transactions/authenticator/account.mjs +1 -44
  287. package/dist/esm/transactions/authenticator/index.mjs +1 -60
  288. package/dist/esm/transactions/authenticator/transaction.mjs +1 -48
  289. package/dist/esm/transactions/index.mjs +1 -284
  290. package/dist/esm/transactions/instances/chainId.mjs +1 -11
  291. package/dist/esm/transactions/instances/identifier.mjs +1 -11
  292. package/dist/esm/transactions/instances/index.mjs +1 -96
  293. package/dist/esm/transactions/instances/moduleId.mjs +1 -38
  294. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -43
  295. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -48
  296. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -20
  297. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -45
  298. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -43
  299. package/dist/esm/transactions/instances/transactionArgument.mjs +1 -1
  300. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -56
  301. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -74
  302. package/dist/esm/transactions/management/asyncQueue.mjs +1 -9
  303. package/dist/esm/transactions/management/index.mjs +1 -95
  304. package/dist/esm/transactions/management/transactionWorker.mjs +1 -91
  305. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -75
  306. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -162
  307. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -85
  308. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -58
  309. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -98
  310. package/dist/esm/transactions/typeTag/index.mjs +1 -74
  311. package/dist/esm/transactions/typeTag/parser.mjs +1 -43
  312. package/dist/esm/transactions/types.mjs +1 -1
  313. package/dist/esm/types/generated/queries.mjs +1 -57
  314. package/dist/esm/types/generated/types.mjs +1 -809
  315. package/dist/esm/types/generated/types.mjs.map +1 -1
  316. package/dist/esm/types/index.mjs +1 -68
  317. package/dist/esm/types/indexer.mjs +1 -1
  318. package/dist/esm/types/keyless.mjs +1 -9
  319. package/dist/esm/utils/apiEndpoints.mjs +1 -21
  320. package/dist/esm/utils/const.mjs +1 -21
  321. package/dist/esm/utils/helpers.mjs +1 -7
  322. package/dist/esm/utils/index.mjs +1 -56
  323. package/dist/esm/utils/memoize.mjs +1 -9
  324. package/dist/esm/utils/normalizeBundle.mjs +1 -19
  325. package/dist/esm/version.d.mts +1 -1
  326. package/dist/esm/version.mjs +1 -7
  327. package/package.json +1 -1
  328. package/src/version.ts +1 -1
  329. package/dist/common/chunk-QRI7EC4T.js +0 -24
  330. package/dist/common/chunk-QRI7EC4T.js.map +0 -1
  331. package/dist/esm/chunk-2JOCR2VL.mjs +0 -32
  332. package/dist/esm/chunk-2OQW7BMN.mjs +0 -129
  333. package/dist/esm/chunk-2TJJWII2.mjs +0 -23
  334. package/dist/esm/chunk-2ZEGJU43.mjs +0 -252
  335. package/dist/esm/chunk-4OYYOYSO.mjs +0 -336
  336. package/dist/esm/chunk-55NODGHC.mjs +0 -135
  337. package/dist/esm/chunk-6LRQSBRH.mjs +0 -130
  338. package/dist/esm/chunk-6MSZMIFW.mjs +0 -23
  339. package/dist/esm/chunk-76TSTAU4.mjs +0 -120
  340. package/dist/esm/chunk-7FO3S6IZ.mjs +0 -324
  341. package/dist/esm/chunk-7FUHWL6A.mjs +0 -42
  342. package/dist/esm/chunk-7IDBB4J4.mjs +0 -33
  343. package/dist/esm/chunk-7JRMOHBP.mjs +0 -247
  344. package/dist/esm/chunk-7REUIYF4.mjs +0 -63
  345. package/dist/esm/chunk-AC3OGAL6.mjs +0 -87
  346. package/dist/esm/chunk-AR7X6GWQ.mjs +0 -356
  347. package/dist/esm/chunk-ASF2VWOX.mjs +0 -142
  348. package/dist/esm/chunk-ATVFVXR6.mjs +0 -43
  349. package/dist/esm/chunk-B5S6DDUD.mjs +0 -120
  350. package/dist/esm/chunk-BXMHDQHW.mjs +0 -512
  351. package/dist/esm/chunk-CC4DQ6NH.mjs +0 -19
  352. package/dist/esm/chunk-CMNJG4NN.mjs +0 -345
  353. package/dist/esm/chunk-CTJSZT5V.mjs +0 -87
  354. package/dist/esm/chunk-CX3NAVRD.mjs +0 -205
  355. package/dist/esm/chunk-CXUGZXED.mjs +0 -307
  356. package/dist/esm/chunk-D2BVBXWO.mjs +0 -7
  357. package/dist/esm/chunk-DGV7DYU4.mjs +0 -413
  358. package/dist/esm/chunk-DIYZRGR6.mjs +0 -242
  359. package/dist/esm/chunk-DNPMS2OF.mjs +0 -236
  360. package/dist/esm/chunk-DVPQGCFT.mjs +0 -74
  361. package/dist/esm/chunk-EYHRMZPO.mjs +0 -34
  362. package/dist/esm/chunk-F2ZWA7B7.mjs +0 -412
  363. package/dist/esm/chunk-FDWJNY4U.mjs +0 -22
  364. package/dist/esm/chunk-FF4JPDKD.mjs +0 -315
  365. package/dist/esm/chunk-FQQW55X7.mjs +0 -288
  366. package/dist/esm/chunk-FXKSE3ZP.mjs +0 -25
  367. package/dist/esm/chunk-GBEVD2VM.mjs +0 -99
  368. package/dist/esm/chunk-GGMTQAQP.mjs +0 -11
  369. package/dist/esm/chunk-GSVQ6EUD.mjs +0 -649
  370. package/dist/esm/chunk-HBNSRCZN.mjs +0 -100
  371. package/dist/esm/chunk-IC56GQFJ.mjs +0 -127
  372. package/dist/esm/chunk-IHNPN5CQ.mjs +0 -256
  373. package/dist/esm/chunk-JHDHNGJ3.mjs +0 -126
  374. package/dist/esm/chunk-JL2JHVS4.mjs +0 -49
  375. package/dist/esm/chunk-JV3GSIJW.mjs +0 -268
  376. package/dist/esm/chunk-KK2BSALW.mjs +0 -32
  377. package/dist/esm/chunk-KMXSRHJ6.mjs +0 -93
  378. package/dist/esm/chunk-KVSQ57HU.mjs +0 -45
  379. package/dist/esm/chunk-LI2QV6RU.mjs +0 -129
  380. package/dist/esm/chunk-LLLQJWRZ.mjs +0 -35
  381. package/dist/esm/chunk-LYK4TQZO.mjs +0 -70
  382. package/dist/esm/chunk-LYMY63SO.mjs +0 -124
  383. package/dist/esm/chunk-MZZLEY6O.mjs +0 -92
  384. package/dist/esm/chunk-N4WKFNQ6.mjs +0 -156
  385. package/dist/esm/chunk-NFJCQRVK.mjs +0 -37
  386. package/dist/esm/chunk-NMKCJNQM.mjs +0 -20
  387. package/dist/esm/chunk-NW45SCPY.mjs +0 -36
  388. package/dist/esm/chunk-NXFO2W4G.mjs +0 -84
  389. package/dist/esm/chunk-NYL77J4X.mjs +0 -97
  390. package/dist/esm/chunk-O6PSHSN3.mjs +0 -53
  391. package/dist/esm/chunk-OR7TEZ25.mjs +0 -16
  392. package/dist/esm/chunk-PCLNX6FS.mjs +0 -17
  393. package/dist/esm/chunk-PIMQHG2J.mjs +0 -49
  394. package/dist/esm/chunk-PU5AFUX3.mjs +0 -52
  395. package/dist/esm/chunk-PYLOAMR2.mjs +0 -29
  396. package/dist/esm/chunk-QBBTUC66.mjs +0 -15
  397. package/dist/esm/chunk-QFOG4LIN.mjs +0 -319
  398. package/dist/esm/chunk-QMM2KL6C.mjs +0 -12
  399. package/dist/esm/chunk-RCQMWXEW.mjs +0 -35
  400. package/dist/esm/chunk-RX4VG2AT.mjs +0 -314
  401. package/dist/esm/chunk-SBB4YEPT.mjs +0 -17
  402. package/dist/esm/chunk-SIJELMDP.mjs +0 -29
  403. package/dist/esm/chunk-SS3NUM5L.mjs +0 -94
  404. package/dist/esm/chunk-ST4QXIMI.mjs +0 -37
  405. package/dist/esm/chunk-TBHU6ZW6.mjs +0 -215
  406. package/dist/esm/chunk-TLNHRJB2.mjs +0 -155
  407. package/dist/esm/chunk-U3IUCR2G.mjs +0 -54
  408. package/dist/esm/chunk-U7QBZ6PP.mjs +0 -400
  409. package/dist/esm/chunk-UEBBLQJ5.mjs +0 -94
  410. package/dist/esm/chunk-UKU6A2W2.mjs +0 -232
  411. package/dist/esm/chunk-UX5NSZEN.mjs +0 -134
  412. package/dist/esm/chunk-VDJBDX3A.mjs +0 -79
  413. package/dist/esm/chunk-VJP2VWMF.mjs +0 -58
  414. package/dist/esm/chunk-VKJQORON.mjs +0 -93
  415. package/dist/esm/chunk-VPWUODU4.mjs +0 -51
  416. package/dist/esm/chunk-VZQXLVEP.mjs +0 -197
  417. package/dist/esm/chunk-W76MGKZB.mjs +0 -33
  418. package/dist/esm/chunk-WDRH2URB.mjs +0 -91
  419. package/dist/esm/chunk-WHBWEN6N.mjs +0 -206
  420. package/dist/esm/chunk-WK5ZSNE2.mjs +0 -173
  421. package/dist/esm/chunk-WLTBF4DF.mjs +0 -22
  422. package/dist/esm/chunk-WVGO4D7K.mjs +0 -254
  423. package/dist/esm/chunk-XANFAUBD.mjs +0 -44
  424. package/dist/esm/chunk-Y2LV3S5W.mjs +0 -410
  425. package/dist/esm/chunk-YV7M4CFP.mjs +0 -137
  426. package/dist/esm/chunk-YYOPNUX5.mjs +0 -41
  427. package/dist/esm/chunk-ZAHJ7KXB.mjs +0 -81
  428. package/dist/esm/chunk-ZMFKQUHL.mjs +0 -117
  429. /package/dist/esm/{chunk-OR7TEZ25.mjs.map → chunk-FVA2OPG4.mjs.map} +0 -0
@@ -1,649 +0,0 @@
1
- import {
2
- generateTransaction
3
- } from "./chunk-IHNPN5CQ.mjs";
4
- import {
5
- checkOrConvertArgument
6
- } from "./chunk-CXUGZXED.mjs";
7
- import {
8
- parseTypeTag
9
- } from "./chunk-DNPMS2OF.mjs";
10
- import {
11
- queryIndexer
12
- } from "./chunk-LYMY63SO.mjs";
13
- import {
14
- GetCollectionData,
15
- GetCurrentTokenOwnership,
16
- GetTokenActivity,
17
- GetTokenData
18
- } from "./chunk-4PJ5FYGQ.mjs";
19
- import {
20
- TypeTagAddress,
21
- TypeTagBool,
22
- TypeTagGeneric,
23
- TypeTagStruct,
24
- TypeTagU64,
25
- TypeTagVector,
26
- objectStructTag,
27
- stringStructTag
28
- } from "./chunk-7FO3S6IZ.mjs";
29
- import {
30
- AccountAddress
31
- } from "./chunk-CMNJG4NN.mjs";
32
- import {
33
- MoveString,
34
- MoveVector
35
- } from "./chunk-AR7X6GWQ.mjs";
36
- import {
37
- Bool,
38
- U64
39
- } from "./chunk-WK5ZSNE2.mjs";
40
- import {
41
- MAX_U64_BIG_INT
42
- } from "./chunk-SBB4YEPT.mjs";
43
-
44
- // src/internal/digitalAsset.ts
45
- var PropertyTypeMap = {
46
- BOOLEAN: "bool",
47
- U8: "u8",
48
- U16: "u16",
49
- U32: "u32",
50
- U64: "u64",
51
- U128: "u128",
52
- U256: "u256",
53
- ADDRESS: "address",
54
- STRING: "0x1::string::String",
55
- ARRAY: "vector<u8>"
56
- };
57
- var defaultDigitalAssetType = "0x4::token::Token";
58
- async function getDigitalAssetData(args) {
59
- const { aptosConfig, digitalAssetAddress } = args;
60
- const whereCondition = {
61
- token_data_id: { _eq: AccountAddress.from(digitalAssetAddress).toStringLong() }
62
- };
63
- const graphqlQuery = {
64
- query: GetTokenData,
65
- variables: {
66
- where_condition: whereCondition
67
- }
68
- };
69
- const data = await queryIndexer({
70
- aptosConfig,
71
- query: graphqlQuery,
72
- originMethod: "getDigitalAssetData"
73
- });
74
- return data.current_token_datas_v2[0];
75
- }
76
- async function getCurrentDigitalAssetOwnership(args) {
77
- const { aptosConfig, digitalAssetAddress } = args;
78
- const whereCondition = {
79
- token_data_id: { _eq: AccountAddress.from(digitalAssetAddress).toStringLong() },
80
- amount: { _gt: 0 }
81
- };
82
- const graphqlQuery = {
83
- query: GetCurrentTokenOwnership,
84
- variables: {
85
- where_condition: whereCondition
86
- }
87
- };
88
- const data = await queryIndexer({
89
- aptosConfig,
90
- query: graphqlQuery,
91
- originMethod: "getCurrentDigitalAssetOwnership"
92
- });
93
- return data.current_token_ownerships_v2[0];
94
- }
95
- async function getOwnedDigitalAssets(args) {
96
- const { aptosConfig, ownerAddress, options } = args;
97
- const whereCondition = {
98
- owner_address: { _eq: AccountAddress.from(ownerAddress).toStringLong() },
99
- amount: { _gt: 0 }
100
- };
101
- const graphqlQuery = {
102
- query: GetCurrentTokenOwnership,
103
- variables: {
104
- where_condition: whereCondition,
105
- offset: options?.offset,
106
- limit: options?.limit,
107
- order_by: options?.orderBy
108
- }
109
- };
110
- const data = await queryIndexer({
111
- aptosConfig,
112
- query: graphqlQuery,
113
- originMethod: "getOwnedDigitalAssets"
114
- });
115
- return data.current_token_ownerships_v2;
116
- }
117
- async function getDigitalAssetActivity(args) {
118
- const { aptosConfig, digitalAssetAddress, options } = args;
119
- const whereCondition = {
120
- token_data_id: { _eq: AccountAddress.from(digitalAssetAddress).toStringLong() }
121
- };
122
- const graphqlQuery = {
123
- query: GetTokenActivity,
124
- variables: {
125
- where_condition: whereCondition,
126
- offset: options?.offset,
127
- limit: options?.limit,
128
- order_by: options?.orderBy
129
- }
130
- };
131
- const data = await queryIndexer({
132
- aptosConfig,
133
- query: graphqlQuery,
134
- originMethod: "getDigitalAssetActivity"
135
- });
136
- return data.token_activities_v2;
137
- }
138
- var createCollectionAbi = {
139
- typeParameters: [],
140
- parameters: [
141
- new TypeTagStruct(stringStructTag()),
142
- new TypeTagU64(),
143
- new TypeTagStruct(stringStructTag()),
144
- new TypeTagStruct(stringStructTag()),
145
- new TypeTagBool(),
146
- new TypeTagBool(),
147
- new TypeTagBool(),
148
- new TypeTagBool(),
149
- new TypeTagBool(),
150
- new TypeTagBool(),
151
- new TypeTagBool(),
152
- new TypeTagBool(),
153
- new TypeTagBool(),
154
- new TypeTagU64(),
155
- new TypeTagU64()
156
- ]
157
- };
158
- async function createCollectionTransaction(args) {
159
- const { aptosConfig, options, creator } = args;
160
- return generateTransaction({
161
- aptosConfig,
162
- sender: creator.accountAddress,
163
- data: {
164
- function: "0x4::aptos_token::create_collection",
165
- functionArguments: [
166
- // Do not change the order
167
- new MoveString(args.description),
168
- new U64(args.maxSupply ?? MAX_U64_BIG_INT),
169
- new MoveString(args.name),
170
- new MoveString(args.uri),
171
- new Bool(args.mutableDescription ?? true),
172
- new Bool(args.mutableRoyalty ?? true),
173
- new Bool(args.mutableURI ?? true),
174
- new Bool(args.mutableTokenDescription ?? true),
175
- new Bool(args.mutableTokenName ?? true),
176
- new Bool(args.mutableTokenProperties ?? true),
177
- new Bool(args.mutableTokenURI ?? true),
178
- new Bool(args.tokensBurnableByCreator ?? true),
179
- new Bool(args.tokensFreezableByCreator ?? true),
180
- new U64(args.royaltyNumerator ?? 0),
181
- new U64(args.royaltyDenominator ?? 1)
182
- ],
183
- abi: createCollectionAbi
184
- },
185
- options
186
- });
187
- }
188
- async function getCollectionData(args) {
189
- const { aptosConfig, creatorAddress, collectionName, options } = args;
190
- const address = AccountAddress.from(creatorAddress);
191
- const whereCondition = {
192
- collection_name: { _eq: collectionName },
193
- creator_address: { _eq: address.toStringLong() }
194
- };
195
- if (options?.tokenStandard) {
196
- whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
197
- }
198
- const graphqlQuery = {
199
- query: GetCollectionData,
200
- variables: {
201
- where_condition: whereCondition
202
- }
203
- };
204
- const data = await queryIndexer({
205
- aptosConfig,
206
- query: graphqlQuery,
207
- originMethod: "getCollectionData"
208
- });
209
- return data.current_collections_v2[0];
210
- }
211
- async function getCollectionDataByCollectionId(args) {
212
- const { aptosConfig, collectionId } = args;
213
- const address = AccountAddress.from(collectionId);
214
- const whereCondition = {
215
- collection_id: { _eq: address.toStringLong() }
216
- };
217
- const graphqlQuery = {
218
- query: GetCollectionData,
219
- variables: {
220
- where_condition: whereCondition
221
- }
222
- };
223
- const data = await queryIndexer({
224
- aptosConfig,
225
- query: graphqlQuery,
226
- originMethod: "getCollectionData"
227
- });
228
- return data.current_collections_v2[0];
229
- }
230
- async function getCollectionId(args) {
231
- return (await getCollectionData(args)).collection_id;
232
- }
233
- var mintDigitalAssetAbi = {
234
- typeParameters: [],
235
- parameters: [
236
- new TypeTagStruct(stringStructTag()),
237
- new TypeTagStruct(stringStructTag()),
238
- new TypeTagStruct(stringStructTag()),
239
- new TypeTagStruct(stringStructTag()),
240
- new TypeTagVector(new TypeTagStruct(stringStructTag())),
241
- new TypeTagVector(new TypeTagStruct(stringStructTag())),
242
- new TypeTagVector(TypeTagVector.u8())
243
- ]
244
- };
245
- async function mintDigitalAssetTransaction(args) {
246
- const {
247
- aptosConfig,
248
- options,
249
- creator,
250
- collection,
251
- description,
252
- name,
253
- uri,
254
- propertyKeys,
255
- propertyTypes,
256
- propertyValues
257
- } = args;
258
- const convertedPropertyType = propertyTypes?.map((type) => PropertyTypeMap[type]);
259
- return generateTransaction({
260
- aptosConfig,
261
- sender: creator.accountAddress,
262
- data: {
263
- function: "0x4::aptos_token::mint",
264
- functionArguments: [
265
- new MoveString(collection),
266
- new MoveString(description),
267
- new MoveString(name),
268
- new MoveString(uri),
269
- MoveVector.MoveString(propertyKeys ?? []),
270
- MoveVector.MoveString(convertedPropertyType ?? []),
271
- getPropertyValueRaw(propertyValues ?? [], convertedPropertyType ?? [])
272
- ],
273
- abi: mintDigitalAssetAbi
274
- },
275
- options
276
- });
277
- }
278
- var transferDigitalAssetAbi = {
279
- typeParameters: [{ constraints: ["key" /* KEY */] }],
280
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagAddress()]
281
- };
282
- async function transferDigitalAssetTransaction(args) {
283
- const { aptosConfig, sender, digitalAssetAddress, recipient, digitalAssetType, options } = args;
284
- return generateTransaction({
285
- aptosConfig,
286
- sender: sender.accountAddress,
287
- data: {
288
- function: "0x1::object::transfer",
289
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
290
- functionArguments: [AccountAddress.from(digitalAssetAddress), AccountAddress.from(recipient)],
291
- abi: transferDigitalAssetAbi
292
- },
293
- options
294
- });
295
- }
296
- var mintSoulBoundAbi = {
297
- typeParameters: [],
298
- parameters: [
299
- new TypeTagStruct(stringStructTag()),
300
- new TypeTagStruct(stringStructTag()),
301
- new TypeTagStruct(stringStructTag()),
302
- new TypeTagStruct(stringStructTag()),
303
- new TypeTagVector(new TypeTagStruct(stringStructTag())),
304
- new TypeTagVector(new TypeTagStruct(stringStructTag())),
305
- new TypeTagVector(TypeTagVector.u8()),
306
- new TypeTagAddress()
307
- ]
308
- };
309
- async function mintSoulBoundTransaction(args) {
310
- const {
311
- aptosConfig,
312
- account,
313
- collection,
314
- description,
315
- name,
316
- uri,
317
- recipient,
318
- propertyKeys,
319
- propertyTypes,
320
- propertyValues,
321
- options
322
- } = args;
323
- if (propertyKeys?.length !== propertyValues?.length) {
324
- throw new Error("Property keys and property values counts do not match");
325
- }
326
- if (propertyTypes?.length !== propertyValues?.length) {
327
- throw new Error("Property types and property values counts do not match");
328
- }
329
- const convertedPropertyType = propertyTypes?.map((type) => PropertyTypeMap[type]);
330
- return generateTransaction({
331
- aptosConfig,
332
- sender: account.accountAddress,
333
- data: {
334
- function: "0x4::aptos_token::mint_soul_bound",
335
- functionArguments: [
336
- collection,
337
- description,
338
- name,
339
- uri,
340
- MoveVector.MoveString(propertyKeys ?? []),
341
- MoveVector.MoveString(convertedPropertyType ?? []),
342
- getPropertyValueRaw(propertyValues ?? [], convertedPropertyType ?? []),
343
- recipient
344
- ],
345
- abi: mintSoulBoundAbi
346
- },
347
- options
348
- });
349
- }
350
- var burnDigitalAssetAbi = {
351
- typeParameters: [{ constraints: ["key" /* KEY */] }],
352
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0)))]
353
- };
354
- async function burnDigitalAssetTransaction(args) {
355
- const { aptosConfig, creator, digitalAssetAddress, digitalAssetType, options } = args;
356
- return generateTransaction({
357
- aptosConfig,
358
- sender: creator.accountAddress,
359
- data: {
360
- function: "0x4::aptos_token::burn",
361
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
362
- functionArguments: [AccountAddress.from(digitalAssetAddress)],
363
- abi: burnDigitalAssetAbi
364
- },
365
- options
366
- });
367
- }
368
- var freezeDigitalAssetAbi = {
369
- typeParameters: [{ constraints: ["key" /* KEY */] }],
370
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0)))]
371
- };
372
- async function freezeDigitalAssetTransferTransaction(args) {
373
- const { aptosConfig, creator, digitalAssetAddress, digitalAssetType, options } = args;
374
- return generateTransaction({
375
- aptosConfig,
376
- sender: creator.accountAddress,
377
- data: {
378
- function: "0x4::aptos_token::freeze_transfer",
379
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
380
- functionArguments: [digitalAssetAddress],
381
- abi: freezeDigitalAssetAbi
382
- },
383
- options
384
- });
385
- }
386
- var unfreezeDigitalAssetAbi = {
387
- typeParameters: [{ constraints: ["key" /* KEY */] }],
388
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0)))]
389
- };
390
- async function unfreezeDigitalAssetTransferTransaction(args) {
391
- const { aptosConfig, creator, digitalAssetAddress, digitalAssetType, options } = args;
392
- return generateTransaction({
393
- aptosConfig,
394
- sender: creator.accountAddress,
395
- data: {
396
- function: "0x4::aptos_token::unfreeze_transfer",
397
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
398
- functionArguments: [digitalAssetAddress],
399
- abi: unfreezeDigitalAssetAbi
400
- },
401
- options
402
- });
403
- }
404
- var setDigitalAssetDescriptionAbi = {
405
- typeParameters: [{ constraints: ["key" /* KEY */] }],
406
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())]
407
- };
408
- async function setDigitalAssetDescriptionTransaction(args) {
409
- const { aptosConfig, creator, description, digitalAssetAddress, digitalAssetType, options } = args;
410
- return generateTransaction({
411
- aptosConfig,
412
- sender: creator.accountAddress,
413
- data: {
414
- function: "0x4::aptos_token::set_description",
415
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
416
- functionArguments: [AccountAddress.from(digitalAssetAddress), new MoveString(description)],
417
- abi: setDigitalAssetDescriptionAbi
418
- },
419
- options
420
- });
421
- }
422
- var setDigitalAssetNameAbi = {
423
- typeParameters: [{ constraints: ["key" /* KEY */] }],
424
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())]
425
- };
426
- async function setDigitalAssetNameTransaction(args) {
427
- const { aptosConfig, creator, name, digitalAssetAddress, digitalAssetType, options } = args;
428
- return generateTransaction({
429
- aptosConfig,
430
- sender: creator.accountAddress,
431
- data: {
432
- function: "0x4::aptos_token::set_name",
433
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
434
- functionArguments: [AccountAddress.from(digitalAssetAddress), new MoveString(name)],
435
- abi: setDigitalAssetNameAbi
436
- },
437
- options
438
- });
439
- }
440
- var setDigitalAssetURIAbi = {
441
- typeParameters: [{ constraints: ["key" /* KEY */] }],
442
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())]
443
- };
444
- async function setDigitalAssetURITransaction(args) {
445
- const { aptosConfig, creator, uri, digitalAssetAddress, digitalAssetType, options } = args;
446
- return generateTransaction({
447
- aptosConfig,
448
- sender: creator.accountAddress,
449
- data: {
450
- function: "0x4::aptos_token::set_uri",
451
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
452
- functionArguments: [AccountAddress.from(digitalAssetAddress), new MoveString(uri)],
453
- abi: setDigitalAssetURIAbi
454
- },
455
- options
456
- });
457
- }
458
- var addDigitalAssetPropertyAbi = {
459
- typeParameters: [{ constraints: ["key" /* KEY */] }],
460
- parameters: [
461
- new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))),
462
- new TypeTagStruct(stringStructTag()),
463
- new TypeTagStruct(stringStructTag()),
464
- TypeTagVector.u8()
465
- ]
466
- };
467
- async function addDigitalAssetPropertyTransaction(args) {
468
- const {
469
- aptosConfig,
470
- creator,
471
- propertyKey,
472
- propertyType,
473
- propertyValue,
474
- digitalAssetAddress,
475
- digitalAssetType,
476
- options
477
- } = args;
478
- return generateTransaction({
479
- aptosConfig,
480
- sender: creator.accountAddress,
481
- data: {
482
- function: "0x4::aptos_token::add_property",
483
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
484
- functionArguments: [
485
- AccountAddress.from(digitalAssetAddress),
486
- new MoveString(propertyKey),
487
- new MoveString(PropertyTypeMap[propertyType]),
488
- MoveVector.U8(getSinglePropertyValueRaw(propertyValue, PropertyTypeMap[propertyType]))
489
- ],
490
- abi: addDigitalAssetPropertyAbi
491
- },
492
- options
493
- });
494
- }
495
- var removeDigitalAssetPropertyAbi = {
496
- typeParameters: [{ constraints: ["key" /* KEY */] }],
497
- parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())]
498
- };
499
- async function removeDigitalAssetPropertyTransaction(args) {
500
- const { aptosConfig, creator, propertyKey, digitalAssetAddress, digitalAssetType, options } = args;
501
- return generateTransaction({
502
- aptosConfig,
503
- sender: creator.accountAddress,
504
- data: {
505
- function: "0x4::aptos_token::remove_property",
506
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
507
- functionArguments: [AccountAddress.from(digitalAssetAddress), new MoveString(propertyKey)],
508
- abi: removeDigitalAssetPropertyAbi
509
- },
510
- options
511
- });
512
- }
513
- var updateDigitalAssetPropertyAbi = {
514
- typeParameters: [{ constraints: ["key" /* KEY */] }],
515
- parameters: [
516
- new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))),
517
- new TypeTagStruct(stringStructTag()),
518
- new TypeTagStruct(stringStructTag()),
519
- TypeTagVector.u8()
520
- ]
521
- };
522
- async function updateDigitalAssetPropertyTransaction(args) {
523
- const {
524
- aptosConfig,
525
- creator,
526
- propertyKey,
527
- propertyType,
528
- propertyValue,
529
- digitalAssetAddress,
530
- digitalAssetType,
531
- options
532
- } = args;
533
- return generateTransaction({
534
- aptosConfig,
535
- sender: creator.accountAddress,
536
- data: {
537
- function: "0x4::aptos_token::update_property",
538
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType],
539
- functionArguments: [
540
- AccountAddress.from(digitalAssetAddress),
541
- new MoveString(propertyKey),
542
- new MoveString(PropertyTypeMap[propertyType]),
543
- getSinglePropertyValueRaw(propertyValue, PropertyTypeMap[propertyType])
544
- ],
545
- abi: updateDigitalAssetPropertyAbi
546
- },
547
- options
548
- });
549
- }
550
- var addDigitalAssetTypedPropertyAbi = {
551
- typeParameters: [{ constraints: ["key" /* KEY */] }, { constraints: [] }],
552
- parameters: [
553
- new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))),
554
- new TypeTagStruct(stringStructTag()),
555
- new TypeTagGeneric(1)
556
- ]
557
- };
558
- async function addDigitalAssetTypedPropertyTransaction(args) {
559
- const {
560
- aptosConfig,
561
- creator,
562
- propertyKey,
563
- propertyType,
564
- propertyValue,
565
- digitalAssetAddress,
566
- digitalAssetType,
567
- options
568
- } = args;
569
- return generateTransaction({
570
- aptosConfig,
571
- sender: creator.accountAddress,
572
- data: {
573
- function: "0x4::aptos_token::add_typed_property",
574
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType, PropertyTypeMap[propertyType]],
575
- functionArguments: [AccountAddress.from(digitalAssetAddress), new MoveString(propertyKey), propertyValue],
576
- abi: addDigitalAssetTypedPropertyAbi
577
- },
578
- options
579
- });
580
- }
581
- var updateDigitalAssetTypedPropertyAbi = {
582
- typeParameters: [{ constraints: ["key" /* KEY */] }, { constraints: [] }],
583
- parameters: [
584
- new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))),
585
- new TypeTagStruct(stringStructTag()),
586
- new TypeTagGeneric(1)
587
- ]
588
- };
589
- async function updateDigitalAssetTypedPropertyTransaction(args) {
590
- const {
591
- aptosConfig,
592
- creator,
593
- propertyKey,
594
- propertyType,
595
- propertyValue,
596
- digitalAssetAddress,
597
- digitalAssetType,
598
- options
599
- } = args;
600
- return generateTransaction({
601
- aptosConfig,
602
- sender: creator.accountAddress,
603
- data: {
604
- function: "0x4::aptos_token::update_typed_property",
605
- typeArguments: [digitalAssetType ?? defaultDigitalAssetType, PropertyTypeMap[propertyType]],
606
- functionArguments: [AccountAddress.from(digitalAssetAddress), new MoveString(propertyKey), propertyValue],
607
- abi: updateDigitalAssetTypedPropertyAbi
608
- },
609
- options
610
- });
611
- }
612
- function getPropertyValueRaw(propertyValues, propertyTypes) {
613
- const results = new Array();
614
- propertyTypes.forEach((typ, index) => {
615
- results.push(getSinglePropertyValueRaw(propertyValues[index], typ));
616
- });
617
- return results;
618
- }
619
- function getSinglePropertyValueRaw(propertyValue, propertyType) {
620
- const typeTag = parseTypeTag(propertyType);
621
- const res = checkOrConvertArgument(propertyValue, typeTag, 0, []);
622
- return res.bcsToBytes();
623
- }
624
-
625
- export {
626
- getDigitalAssetData,
627
- getCurrentDigitalAssetOwnership,
628
- getOwnedDigitalAssets,
629
- getDigitalAssetActivity,
630
- createCollectionTransaction,
631
- getCollectionData,
632
- getCollectionDataByCollectionId,
633
- getCollectionId,
634
- mintDigitalAssetTransaction,
635
- transferDigitalAssetTransaction,
636
- mintSoulBoundTransaction,
637
- burnDigitalAssetTransaction,
638
- freezeDigitalAssetTransferTransaction,
639
- unfreezeDigitalAssetTransferTransaction,
640
- setDigitalAssetDescriptionTransaction,
641
- setDigitalAssetNameTransaction,
642
- setDigitalAssetURITransaction,
643
- addDigitalAssetPropertyTransaction,
644
- removeDigitalAssetPropertyTransaction,
645
- updateDigitalAssetPropertyTransaction,
646
- addDigitalAssetTypedPropertyTransaction,
647
- updateDigitalAssetTypedPropertyTransaction
648
- };
649
- //# sourceMappingURL=chunk-GSVQ6EUD.mjs.map