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

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 (435) 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.d.ts +1 -1
  6. package/dist/common/index.js +390 -11802
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/account/Account.mjs +1 -55
  9. package/dist/esm/account/Ed25519Account.mjs +1 -53
  10. package/dist/esm/account/EphemeralKeyPair.mjs +1 -36
  11. package/dist/esm/account/KeylessAccount.mjs +1 -56
  12. package/dist/esm/account/MultiKeyAccount.mjs +1 -55
  13. package/dist/esm/account/SingleKeyAccount.mjs +1 -53
  14. package/dist/esm/account/index.mjs +1 -76
  15. package/dist/esm/api/account.mjs +1 -76
  16. package/dist/esm/api/ans.mjs +1 -87
  17. package/dist/esm/api/aptos.mjs +1 -116
  18. package/dist/esm/api/aptosConfig.mjs +1 -9
  19. package/dist/esm/api/coin.mjs +1 -86
  20. package/dist/esm/api/digitalAsset.mjs +1 -87
  21. package/dist/esm/api/event.mjs +1 -54
  22. package/dist/esm/api/faucet.mjs +1 -53
  23. package/dist/esm/api/fungibleAsset.mjs +1 -87
  24. package/dist/esm/api/general.mjs +1 -84
  25. package/dist/esm/api/index.mjs +1 -120
  26. package/dist/esm/api/keyless.mjs +1 -70
  27. package/dist/esm/api/staking.mjs +1 -54
  28. package/dist/esm/api/transaction.mjs +1 -94
  29. package/dist/esm/api/transactionSubmission/build.mjs +1 -85
  30. package/dist/esm/api/transactionSubmission/helpers.mjs +1 -9
  31. package/dist/esm/api/transactionSubmission/management.mjs +1 -89
  32. package/dist/esm/api/transactionSubmission/sign.mjs +1 -109
  33. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  34. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -86
  35. package/dist/esm/api/transactionSubmission/submit.mjs +1 -86
  36. package/dist/esm/api/utils.mjs +1 -34
  37. package/dist/esm/bcs/consts.mjs +1 -17
  38. package/dist/esm/bcs/deserializer.mjs +1 -8
  39. package/dist/esm/bcs/index.mjs +1 -57
  40. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -12
  41. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -11
  42. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -25
  43. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -18
  44. package/dist/esm/bcs/serializer.mjs +1 -18
  45. package/dist/esm/chunk-23MNZ5LZ.mjs +2 -0
  46. package/dist/esm/{chunk-RCQMWXEW.mjs.map → chunk-23MNZ5LZ.mjs.map} +1 -1
  47. package/dist/esm/chunk-24ZOKI52.mjs +2 -0
  48. package/dist/esm/{chunk-F2ZWA7B7.mjs.map → chunk-24ZOKI52.mjs.map} +1 -1
  49. package/dist/esm/chunk-25H3DXTL.mjs +2 -0
  50. package/dist/esm/{chunk-B5S6DDUD.mjs.map → chunk-25H3DXTL.mjs.map} +1 -1
  51. package/dist/esm/chunk-2ECWQRBB.mjs +2 -0
  52. package/dist/esm/{chunk-2OQW7BMN.mjs.map → chunk-2ECWQRBB.mjs.map} +1 -1
  53. package/dist/esm/chunk-2HD2G4AH.mjs +2 -0
  54. package/dist/esm/{chunk-Y2LV3S5W.mjs.map → chunk-2HD2G4AH.mjs.map} +1 -1
  55. package/dist/esm/chunk-3CMS2KOX.mjs +2 -0
  56. package/dist/esm/{chunk-NW45SCPY.mjs.map → chunk-3CMS2KOX.mjs.map} +1 -1
  57. package/dist/esm/chunk-3COVJN6Z.mjs +2 -0
  58. package/dist/esm/{chunk-2JOCR2VL.mjs.map → chunk-3COVJN6Z.mjs.map} +1 -1
  59. package/dist/esm/chunk-3CUVYW32.mjs +2 -0
  60. package/dist/esm/{chunk-DIYZRGR6.mjs.map → chunk-3CUVYW32.mjs.map} +1 -1
  61. package/dist/esm/chunk-3FVRXELT.mjs +2 -0
  62. package/dist/esm/{chunk-KK2BSALW.mjs.map → chunk-3FVRXELT.mjs.map} +1 -1
  63. package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
  64. package/dist/esm/{chunk-GGMTQAQP.mjs.map → chunk-3JPVQHOR.mjs.map} +1 -1
  65. package/dist/esm/chunk-3S3GIUQY.mjs +2 -0
  66. package/dist/esm/{chunk-ASF2VWOX.mjs.map → chunk-3S3GIUQY.mjs.map} +1 -1
  67. package/dist/esm/chunk-3VGX3TXH.mjs +2 -0
  68. package/dist/esm/{chunk-7FO3S6IZ.mjs.map → chunk-3VGX3TXH.mjs.map} +1 -1
  69. package/dist/esm/chunk-56CNRT2K.mjs +2 -0
  70. package/dist/esm/{chunk-SBB4YEPT.mjs.map → chunk-56CNRT2K.mjs.map} +1 -1
  71. package/dist/esm/chunk-5XOFEQWC.mjs +2 -0
  72. package/dist/esm/{chunk-ATVFVXR6.mjs.map → chunk-5XOFEQWC.mjs.map} +1 -1
  73. package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
  74. package/dist/esm/{chunk-SIJELMDP.mjs.map → chunk-6EMN3BOV.mjs.map} +1 -1
  75. package/dist/esm/chunk-6RBUXB5I.mjs +2 -0
  76. package/dist/esm/{chunk-WK5ZSNE2.mjs.map → chunk-6RBUXB5I.mjs.map} +1 -1
  77. package/dist/esm/chunk-6WIB3GGF.mjs +2 -0
  78. package/dist/esm/{chunk-CTJSZT5V.mjs.map → chunk-6WIB3GGF.mjs.map} +1 -1
  79. package/dist/esm/chunk-75J7H3XD.mjs +2 -0
  80. package/dist/esm/{chunk-GBEVD2VM.mjs.map → chunk-75J7H3XD.mjs.map} +1 -1
  81. package/dist/esm/chunk-7IMWGGA6.mjs +2 -0
  82. package/dist/esm/{chunk-UX5NSZEN.mjs.map → chunk-7IMWGGA6.mjs.map} +1 -1
  83. package/dist/esm/chunk-7KOC7VNK.mjs +2 -0
  84. package/dist/esm/{chunk-YYOPNUX5.mjs.map → chunk-7KOC7VNK.mjs.map} +1 -1
  85. package/dist/esm/chunk-7SIQDOYY.mjs +2 -0
  86. package/dist/esm/{chunk-ST4QXIMI.mjs.map → chunk-7SIQDOYY.mjs.map} +1 -1
  87. package/dist/esm/chunk-7STYQ5ZE.mjs +2 -0
  88. package/dist/esm/{chunk-UEBBLQJ5.mjs.map → chunk-7STYQ5ZE.mjs.map} +1 -1
  89. package/dist/esm/chunk-7XYECSW6.mjs +2 -0
  90. package/dist/esm/{chunk-GSVQ6EUD.mjs.map → chunk-7XYECSW6.mjs.map} +1 -1
  91. package/dist/esm/chunk-AH44UPM4.mjs +2 -0
  92. package/dist/esm/{chunk-EYHRMZPO.mjs.map → chunk-AH44UPM4.mjs.map} +1 -1
  93. package/dist/esm/chunk-AHNE2QA3.mjs +2 -0
  94. package/dist/esm/{chunk-WDRH2URB.mjs.map → chunk-AHNE2QA3.mjs.map} +1 -1
  95. package/dist/esm/chunk-AJ7UC2G3.mjs +2 -0
  96. package/dist/esm/{chunk-ZAHJ7KXB.mjs.map → chunk-AJ7UC2G3.mjs.map} +1 -1
  97. package/dist/esm/chunk-AOCNYMMX.mjs +2 -0
  98. package/dist/esm/{chunk-YV7M4CFP.mjs.map → chunk-AOCNYMMX.mjs.map} +1 -1
  99. package/dist/esm/chunk-BTLFW3YY.mjs +2 -0
  100. package/dist/esm/{chunk-2ZEGJU43.mjs.map → chunk-BTLFW3YY.mjs.map} +1 -1
  101. package/dist/esm/chunk-C3L4ETUF.mjs +2 -0
  102. package/dist/esm/{chunk-PIMQHG2J.mjs.map → chunk-C3L4ETUF.mjs.map} +1 -1
  103. package/dist/esm/chunk-CB6CNNM2.mjs +2 -0
  104. package/dist/esm/{chunk-VPWUODU4.mjs.map → chunk-CB6CNNM2.mjs.map} +1 -1
  105. package/dist/esm/chunk-CO53EOHE.mjs +2 -0
  106. package/dist/esm/{chunk-MZZLEY6O.mjs.map → chunk-CO53EOHE.mjs.map} +1 -1
  107. package/dist/esm/chunk-COW5IGYC.mjs +2 -0
  108. package/dist/esm/{chunk-FXKSE3ZP.mjs.map → chunk-COW5IGYC.mjs.map} +1 -1
  109. package/dist/esm/chunk-CS7B3FVO.mjs +2 -0
  110. package/dist/esm/{chunk-CXUGZXED.mjs.map → chunk-CS7B3FVO.mjs.map} +1 -1
  111. package/dist/esm/chunk-DD2VWOMZ.mjs +2 -0
  112. package/dist/esm/{chunk-55NODGHC.mjs.map → chunk-DD2VWOMZ.mjs.map} +1 -1
  113. package/dist/esm/chunk-EB7AI4B4.mjs +2 -0
  114. package/dist/esm/{chunk-AR7X6GWQ.mjs.map → chunk-EB7AI4B4.mjs.map} +1 -1
  115. package/dist/esm/chunk-FBPNHF54.mjs +2 -0
  116. package/dist/esm/{chunk-QMM2KL6C.mjs.map → chunk-FBPNHF54.mjs.map} +1 -1
  117. package/dist/esm/chunk-FLYEALDB.mjs +2 -0
  118. package/dist/esm/{chunk-76TSTAU4.mjs.map → chunk-FLYEALDB.mjs.map} +1 -1
  119. package/dist/esm/chunk-FVA2OPG4.mjs +2 -0
  120. package/dist/esm/chunk-GNNNICLW.mjs +2 -0
  121. package/dist/esm/{chunk-DGV7DYU4.mjs.map → chunk-GNNNICLW.mjs.map} +1 -1
  122. package/dist/esm/chunk-GQ6HIKZT.mjs +2 -0
  123. package/dist/esm/{chunk-NYL77J4X.mjs.map → chunk-GQ6HIKZT.mjs.map} +1 -1
  124. package/dist/esm/chunk-H62IKYXG.mjs +2 -0
  125. package/dist/esm/{chunk-QFOG4LIN.mjs.map → chunk-H62IKYXG.mjs.map} +1 -1
  126. package/dist/esm/chunk-HGZGTBA4.mjs +2 -0
  127. package/dist/esm/{chunk-PYLOAMR2.mjs.map → chunk-HGZGTBA4.mjs.map} +1 -1
  128. package/dist/esm/chunk-HHVAU5HU.mjs +2 -0
  129. package/dist/esm/{chunk-UKU6A2W2.mjs.map → chunk-HHVAU5HU.mjs.map} +1 -1
  130. package/dist/esm/chunk-HMFL7AOJ.mjs +2 -0
  131. package/dist/esm/{chunk-KMXSRHJ6.mjs.map → chunk-HMFL7AOJ.mjs.map} +1 -1
  132. package/dist/esm/chunk-HSFG2AIK.mjs +2 -0
  133. package/dist/esm/{chunk-HBNSRCZN.mjs.map → chunk-HSFG2AIK.mjs.map} +1 -1
  134. package/dist/esm/chunk-HYDDIAJ6.mjs +2 -0
  135. package/dist/esm/{chunk-IC56GQFJ.mjs.map → chunk-HYDDIAJ6.mjs.map} +1 -1
  136. package/dist/esm/chunk-HYU23YVP.mjs +2 -0
  137. package/dist/esm/{chunk-U3IUCR2G.mjs.map → chunk-HYU23YVP.mjs.map} +1 -1
  138. package/dist/esm/chunk-JLWKIYHV.mjs +2 -0
  139. package/dist/esm/{chunk-WHBWEN6N.mjs.map → chunk-JLWKIYHV.mjs.map} +1 -1
  140. package/dist/esm/chunk-JM2B5E2I.mjs +2 -0
  141. package/dist/esm/{chunk-CX3NAVRD.mjs.map → chunk-JM2B5E2I.mjs.map} +1 -1
  142. package/dist/esm/chunk-JM544NRW.mjs +2 -0
  143. package/dist/esm/{chunk-7REUIYF4.mjs.map → chunk-JM544NRW.mjs.map} +1 -1
  144. package/dist/esm/chunk-KMKSA7LM.mjs +2 -0
  145. package/dist/esm/{chunk-FF4JPDKD.mjs.map → chunk-KMKSA7LM.mjs.map} +1 -1
  146. package/dist/esm/chunk-L54P6EGN.mjs +2 -0
  147. package/dist/esm/{chunk-SS3NUM5L.mjs.map → chunk-L54P6EGN.mjs.map} +1 -1
  148. package/dist/esm/chunk-L5WUYZ35.mjs +2 -0
  149. package/dist/esm/{chunk-7FUHWL6A.mjs.map → chunk-L5WUYZ35.mjs.map} +1 -1
  150. package/dist/esm/chunk-LDQ6JFEF.mjs +2 -0
  151. package/dist/esm/{chunk-N4WKFNQ6.mjs.map → chunk-LDQ6JFEF.mjs.map} +1 -1
  152. package/dist/esm/chunk-LR65XHSF.mjs +2 -0
  153. package/dist/esm/{chunk-PU5AFUX3.mjs.map → chunk-LR65XHSF.mjs.map} +1 -1
  154. package/dist/esm/chunk-MGOHPDX4.mjs +2 -0
  155. package/dist/esm/{chunk-2TJJWII2.mjs.map → chunk-MGOHPDX4.mjs.map} +1 -1
  156. package/dist/esm/chunk-MOKAU77C.mjs +2 -0
  157. package/dist/esm/{chunk-IHNPN5CQ.mjs.map → chunk-MOKAU77C.mjs.map} +1 -1
  158. package/dist/esm/chunk-MWUJCP27.mjs +2 -0
  159. package/dist/esm/{chunk-6MSZMIFW.mjs.map → chunk-MWUJCP27.mjs.map} +1 -1
  160. package/dist/esm/chunk-N466X3S6.mjs +2 -0
  161. package/dist/esm/{chunk-WLTBF4DF.mjs.map → chunk-N466X3S6.mjs.map} +1 -1
  162. package/dist/esm/chunk-NBEXLW7P.mjs +2 -0
  163. package/dist/esm/{chunk-D2BVBXWO.mjs.map → chunk-NBEXLW7P.mjs.map} +1 -1
  164. package/dist/esm/chunk-NC5HHEEM.mjs +2 -0
  165. package/dist/esm/{chunk-XANFAUBD.mjs.map → chunk-NC5HHEEM.mjs.map} +1 -1
  166. package/dist/esm/chunk-O3PLAAN7.mjs +2 -0
  167. package/dist/esm/{chunk-LLLQJWRZ.mjs.map → chunk-O3PLAAN7.mjs.map} +1 -1
  168. package/dist/esm/chunk-P2WALKSW.mjs +2 -0
  169. package/dist/esm/{chunk-O6PSHSN3.mjs.map → chunk-P2WALKSW.mjs.map} +1 -1
  170. package/dist/esm/chunk-P7JMD7KZ.mjs +2 -0
  171. package/dist/esm/{chunk-TBHU6ZW6.mjs.map → chunk-P7JMD7KZ.mjs.map} +1 -1
  172. package/dist/esm/chunk-PFFAQZHT.mjs +2 -0
  173. package/dist/esm/{chunk-DNPMS2OF.mjs.map → chunk-PFFAQZHT.mjs.map} +1 -1
  174. package/dist/esm/chunk-PGCBIU33.mjs +2 -0
  175. package/dist/esm/{chunk-4OYYOYSO.mjs.map → chunk-PGCBIU33.mjs.map} +1 -1
  176. package/dist/esm/chunk-PMPTAPM3.mjs +2 -0
  177. package/dist/esm/{chunk-DVPQGCFT.mjs.map → chunk-PMPTAPM3.mjs.map} +1 -1
  178. package/dist/esm/chunk-PYUWGGAW.mjs +2 -0
  179. package/dist/esm/chunk-PYUWGGAW.mjs.map +1 -0
  180. package/dist/esm/chunk-R52BRP36.mjs +2 -0
  181. package/dist/esm/{chunk-BXMHDQHW.mjs.map → chunk-R52BRP36.mjs.map} +1 -1
  182. package/dist/esm/chunk-RKHPXZM6.mjs +2 -0
  183. package/dist/esm/{chunk-PCLNX6FS.mjs.map → chunk-RKHPXZM6.mjs.map} +1 -1
  184. package/dist/esm/chunk-RKTM5GBP.mjs +2 -0
  185. package/dist/esm/{chunk-LI2QV6RU.mjs.map → chunk-RKTM5GBP.mjs.map} +1 -1
  186. package/dist/esm/{chunk-4PJ5FYGQ.mjs → chunk-S4SEFF4K.mjs} +27 -302
  187. package/dist/esm/{chunk-4PJ5FYGQ.mjs.map → chunk-S4SEFF4K.mjs.map} +1 -1
  188. package/dist/esm/chunk-SI7MPP6G.mjs +2 -0
  189. package/dist/esm/{chunk-RX4VG2AT.mjs.map → chunk-SI7MPP6G.mjs.map} +1 -1
  190. package/dist/esm/chunk-SLI3KELH.mjs +2 -0
  191. package/dist/esm/{chunk-7IDBB4J4.mjs.map → chunk-SLI3KELH.mjs.map} +1 -1
  192. package/dist/esm/chunk-STYDBDYL.mjs +2 -0
  193. package/dist/esm/{chunk-FDWJNY4U.mjs.map → chunk-STYDBDYL.mjs.map} +1 -1
  194. package/dist/esm/chunk-T23OVRNF.mjs +2 -0
  195. package/dist/esm/{chunk-CMNJG4NN.mjs.map → chunk-T23OVRNF.mjs.map} +1 -1
  196. package/dist/esm/chunk-TE3WIJ26.mjs +2 -0
  197. package/dist/esm/{chunk-CC4DQ6NH.mjs.map → chunk-TE3WIJ26.mjs.map} +1 -1
  198. package/dist/esm/chunk-TICM455H.mjs +2 -0
  199. package/dist/esm/{chunk-ZMFKQUHL.mjs.map → chunk-TICM455H.mjs.map} +1 -1
  200. package/dist/esm/chunk-TJDC5PWD.mjs +2 -0
  201. package/dist/esm/{chunk-NMKCJNQM.mjs.map → chunk-TJDC5PWD.mjs.map} +1 -1
  202. package/dist/esm/chunk-TVRJ3M7B.mjs +2 -0
  203. package/dist/esm/{chunk-FQQW55X7.mjs.map → chunk-TVRJ3M7B.mjs.map} +1 -1
  204. package/dist/esm/chunk-U5C2PXC6.mjs +2 -0
  205. package/dist/esm/{chunk-WVGO4D7K.mjs.map → chunk-U5C2PXC6.mjs.map} +1 -1
  206. package/dist/esm/chunk-U6Z4FNB7.mjs +2 -0
  207. package/dist/esm/{chunk-AC3OGAL6.mjs.map → chunk-U6Z4FNB7.mjs.map} +1 -1
  208. package/dist/esm/chunk-UTXJOB3O.mjs +2 -0
  209. package/dist/esm/{chunk-QBBTUC66.mjs.map → chunk-UTXJOB3O.mjs.map} +1 -1
  210. package/dist/esm/chunk-VL6EYA53.mjs +2 -0
  211. package/dist/esm/{chunk-VZQXLVEP.mjs.map → chunk-VL6EYA53.mjs.map} +1 -1
  212. package/dist/esm/chunk-VPKPQBKL.mjs +2 -0
  213. package/dist/esm/{chunk-6LRQSBRH.mjs.map → chunk-VPKPQBKL.mjs.map} +1 -1
  214. package/dist/esm/chunk-VSD2AWUR.mjs +2 -0
  215. package/dist/esm/chunk-VSD2AWUR.mjs.map +1 -0
  216. package/dist/esm/chunk-VT6XJSRO.mjs +2 -0
  217. package/dist/esm/{chunk-7JRMOHBP.mjs.map → chunk-VT6XJSRO.mjs.map} +1 -1
  218. package/dist/esm/chunk-WM2NCYZL.mjs +2 -0
  219. package/dist/esm/{chunk-VKJQORON.mjs.map → chunk-WM2NCYZL.mjs.map} +1 -1
  220. package/dist/esm/chunk-WWGROAKX.mjs +2 -0
  221. package/dist/esm/{chunk-W76MGKZB.mjs.map → chunk-WWGROAKX.mjs.map} +1 -1
  222. package/dist/esm/chunk-XZGQMZ2H.mjs +2 -0
  223. package/dist/esm/{chunk-VJP2VWMF.mjs.map → chunk-XZGQMZ2H.mjs.map} +1 -1
  224. package/dist/esm/chunk-Y33CIIZX.mjs +2 -0
  225. package/dist/esm/{chunk-JHDHNGJ3.mjs.map → chunk-Y33CIIZX.mjs.map} +1 -1
  226. package/dist/esm/chunk-Y4SSUCPJ.mjs +2 -0
  227. package/dist/esm/{chunk-VDJBDX3A.mjs.map → chunk-Y4SSUCPJ.mjs.map} +1 -1
  228. package/dist/esm/chunk-YE5B2S5L.mjs +2 -0
  229. package/dist/esm/{chunk-NFJCQRVK.mjs.map → chunk-YE5B2S5L.mjs.map} +1 -1
  230. package/dist/esm/chunk-YGOJYDJA.mjs +2 -0
  231. package/dist/esm/{chunk-LYK4TQZO.mjs.map → chunk-YGOJYDJA.mjs.map} +1 -1
  232. package/dist/esm/chunk-YNNPWCF6.mjs +2 -0
  233. package/dist/esm/{chunk-NXFO2W4G.mjs.map → chunk-YNNPWCF6.mjs.map} +1 -1
  234. package/dist/esm/chunk-YV7OBLK2.mjs +2 -0
  235. package/dist/esm/{chunk-TLNHRJB2.mjs.map → chunk-YV7OBLK2.mjs.map} +1 -1
  236. package/dist/esm/chunk-ZKRG4C4U.mjs +2 -0
  237. package/dist/esm/{chunk-LYMY63SO.mjs.map → chunk-ZKRG4C4U.mjs.map} +1 -1
  238. package/dist/esm/chunk-ZNEBMSNC.mjs +2 -0
  239. package/dist/esm/{chunk-JL2JHVS4.mjs.map → chunk-ZNEBMSNC.mjs.map} +1 -1
  240. package/dist/esm/chunk-ZPMS2Q37.mjs +2 -0
  241. package/dist/esm/{chunk-KVSQ57HU.mjs.map → chunk-ZPMS2Q37.mjs.map} +1 -1
  242. package/dist/esm/cli/index.mjs +1 -12
  243. package/dist/esm/cli/localNode.mjs +1 -8
  244. package/dist/esm/cli/move.mjs +1 -7
  245. package/dist/esm/client/core.mjs +1 -27
  246. package/dist/esm/client/get.mjs +1 -32
  247. package/dist/esm/client/index.mjs +1 -55
  248. package/dist/esm/client/post.mjs +1 -36
  249. package/dist/esm/client/types.mjs +1 -7
  250. package/dist/esm/core/account/index.mjs +1 -19
  251. package/dist/esm/core/account/utils/address.mjs +1 -18
  252. package/dist/esm/core/account/utils/index.mjs +1 -19
  253. package/dist/esm/core/accountAddress.mjs +1 -15
  254. package/dist/esm/core/authenticationKey.mjs +1 -14
  255. package/dist/esm/core/common.mjs +1 -7
  256. package/dist/esm/core/crypto/ed25519.mjs +1 -29
  257. package/dist/esm/core/crypto/ephemeral.mjs +1 -28
  258. package/dist/esm/core/crypto/hdKey.mjs +1 -25
  259. package/dist/esm/core/crypto/index.mjs +1 -124
  260. package/dist/esm/core/crypto/keyless.mjs +1 -55
  261. package/dist/esm/core/crypto/multiEd25519.mjs +1 -28
  262. package/dist/esm/core/crypto/multiKey.mjs +1 -34
  263. package/dist/esm/core/crypto/poseidon.mjs +1 -15
  264. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  265. package/dist/esm/core/crypto/proof.mjs +1 -19
  266. package/dist/esm/core/crypto/publicKey.mjs +1 -21
  267. package/dist/esm/core/crypto/secp256k1.mjs +1 -27
  268. package/dist/esm/core/crypto/signature.mjs +1 -19
  269. package/dist/esm/core/crypto/singleKey.mjs +1 -33
  270. package/dist/esm/core/crypto/utils.mjs +1 -9
  271. package/dist/esm/core/hex.mjs +1 -10
  272. package/dist/esm/core/index.mjs +1 -141
  273. package/dist/esm/index.mjs +1 -635
  274. package/dist/esm/internal/account.mjs +1 -106
  275. package/dist/esm/internal/ans.mjs +1 -120
  276. package/dist/esm/internal/coin.mjs +1 -85
  277. package/dist/esm/internal/digitalAsset.mjs +1 -127
  278. package/dist/esm/internal/event.mjs +1 -55
  279. package/dist/esm/internal/faucet.mjs +1 -52
  280. package/dist/esm/internal/fungibleAsset.mjs +1 -91
  281. package/dist/esm/internal/general.mjs +1 -46
  282. package/dist/esm/internal/keyless.mjs +1 -73
  283. package/dist/esm/internal/staking.mjs +1 -53
  284. package/dist/esm/internal/transaction.mjs +1 -51
  285. package/dist/esm/internal/transactionSubmission.mjs +1 -102
  286. package/dist/esm/internal/view.mjs +1 -83
  287. package/dist/esm/transactions/authenticator/account.mjs +1 -44
  288. package/dist/esm/transactions/authenticator/index.mjs +1 -60
  289. package/dist/esm/transactions/authenticator/transaction.mjs +1 -48
  290. package/dist/esm/transactions/index.mjs +1 -284
  291. package/dist/esm/transactions/instances/chainId.mjs +1 -11
  292. package/dist/esm/transactions/instances/identifier.mjs +1 -11
  293. package/dist/esm/transactions/instances/index.mjs +1 -96
  294. package/dist/esm/transactions/instances/moduleId.mjs +1 -38
  295. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -43
  296. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -48
  297. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -20
  298. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -45
  299. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -43
  300. package/dist/esm/transactions/instances/transactionArgument.mjs +1 -1
  301. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -56
  302. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -74
  303. package/dist/esm/transactions/management/asyncQueue.mjs +1 -9
  304. package/dist/esm/transactions/management/index.mjs +1 -95
  305. package/dist/esm/transactions/management/transactionWorker.mjs +1 -91
  306. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -75
  307. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -162
  308. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -85
  309. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -58
  310. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +1 -1
  311. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -98
  312. package/dist/esm/transactions/typeTag/index.mjs +1 -74
  313. package/dist/esm/transactions/typeTag/parser.mjs +1 -43
  314. package/dist/esm/transactions/types.mjs +1 -1
  315. package/dist/esm/types/generated/queries.mjs +1 -57
  316. package/dist/esm/types/generated/types.mjs +1 -809
  317. package/dist/esm/types/generated/types.mjs.map +1 -1
  318. package/dist/esm/types/index.mjs +1 -68
  319. package/dist/esm/types/indexer.mjs +1 -1
  320. package/dist/esm/types/keyless.mjs +1 -9
  321. package/dist/esm/utils/apiEndpoints.mjs +1 -21
  322. package/dist/esm/utils/const.mjs +1 -21
  323. package/dist/esm/utils/helpers.mjs +1 -7
  324. package/dist/esm/utils/index.mjs +1 -56
  325. package/dist/esm/utils/memoize.mjs +1 -9
  326. package/dist/esm/utils/normalizeBundle.mjs +1 -19
  327. package/dist/esm/version.d.mts +1 -1
  328. package/dist/esm/version.mjs +1 -7
  329. package/package.json +2 -2
  330. package/src/account/KeylessAccount.ts +1 -2
  331. package/src/transactions/transactionBuilder/transactionBuilder.ts +16 -2
  332. package/src/version.ts +1 -1
  333. package/dist/common/chunk-QRI7EC4T.js +0 -24
  334. package/dist/common/chunk-QRI7EC4T.js.map +0 -1
  335. package/dist/esm/chunk-2JOCR2VL.mjs +0 -32
  336. package/dist/esm/chunk-2OQW7BMN.mjs +0 -129
  337. package/dist/esm/chunk-2TJJWII2.mjs +0 -23
  338. package/dist/esm/chunk-2ZEGJU43.mjs +0 -252
  339. package/dist/esm/chunk-4OYYOYSO.mjs +0 -336
  340. package/dist/esm/chunk-55NODGHC.mjs +0 -135
  341. package/dist/esm/chunk-6LRQSBRH.mjs +0 -130
  342. package/dist/esm/chunk-6MSZMIFW.mjs +0 -23
  343. package/dist/esm/chunk-76TSTAU4.mjs +0 -120
  344. package/dist/esm/chunk-7FO3S6IZ.mjs +0 -324
  345. package/dist/esm/chunk-7FUHWL6A.mjs +0 -42
  346. package/dist/esm/chunk-7IDBB4J4.mjs +0 -33
  347. package/dist/esm/chunk-7JRMOHBP.mjs +0 -247
  348. package/dist/esm/chunk-7REUIYF4.mjs +0 -63
  349. package/dist/esm/chunk-AC3OGAL6.mjs +0 -87
  350. package/dist/esm/chunk-AR7X6GWQ.mjs +0 -356
  351. package/dist/esm/chunk-ASF2VWOX.mjs +0 -142
  352. package/dist/esm/chunk-ATVFVXR6.mjs +0 -43
  353. package/dist/esm/chunk-B5S6DDUD.mjs +0 -120
  354. package/dist/esm/chunk-BXMHDQHW.mjs +0 -512
  355. package/dist/esm/chunk-CC4DQ6NH.mjs +0 -19
  356. package/dist/esm/chunk-CMNJG4NN.mjs +0 -345
  357. package/dist/esm/chunk-CTJSZT5V.mjs +0 -87
  358. package/dist/esm/chunk-CX3NAVRD.mjs +0 -205
  359. package/dist/esm/chunk-CXUGZXED.mjs +0 -307
  360. package/dist/esm/chunk-D2BVBXWO.mjs +0 -7
  361. package/dist/esm/chunk-DGV7DYU4.mjs +0 -413
  362. package/dist/esm/chunk-DIYZRGR6.mjs +0 -242
  363. package/dist/esm/chunk-DNPMS2OF.mjs +0 -236
  364. package/dist/esm/chunk-DVPQGCFT.mjs +0 -74
  365. package/dist/esm/chunk-EYHRMZPO.mjs +0 -34
  366. package/dist/esm/chunk-F2ZWA7B7.mjs +0 -412
  367. package/dist/esm/chunk-FDWJNY4U.mjs +0 -22
  368. package/dist/esm/chunk-FF4JPDKD.mjs +0 -315
  369. package/dist/esm/chunk-FQQW55X7.mjs +0 -288
  370. package/dist/esm/chunk-FXKSE3ZP.mjs +0 -25
  371. package/dist/esm/chunk-GBEVD2VM.mjs +0 -99
  372. package/dist/esm/chunk-GGMTQAQP.mjs +0 -11
  373. package/dist/esm/chunk-GSVQ6EUD.mjs +0 -649
  374. package/dist/esm/chunk-HBNSRCZN.mjs +0 -100
  375. package/dist/esm/chunk-IC56GQFJ.mjs +0 -127
  376. package/dist/esm/chunk-IHNPN5CQ.mjs +0 -256
  377. package/dist/esm/chunk-JHDHNGJ3.mjs +0 -126
  378. package/dist/esm/chunk-JL2JHVS4.mjs +0 -49
  379. package/dist/esm/chunk-JV3GSIJW.mjs +0 -268
  380. package/dist/esm/chunk-JV3GSIJW.mjs.map +0 -1
  381. package/dist/esm/chunk-KK2BSALW.mjs +0 -32
  382. package/dist/esm/chunk-KMXSRHJ6.mjs +0 -93
  383. package/dist/esm/chunk-KVSQ57HU.mjs +0 -45
  384. package/dist/esm/chunk-LI2QV6RU.mjs +0 -129
  385. package/dist/esm/chunk-LLLQJWRZ.mjs +0 -35
  386. package/dist/esm/chunk-LYK4TQZO.mjs +0 -70
  387. package/dist/esm/chunk-LYMY63SO.mjs +0 -124
  388. package/dist/esm/chunk-MZZLEY6O.mjs +0 -92
  389. package/dist/esm/chunk-N4WKFNQ6.mjs +0 -156
  390. package/dist/esm/chunk-NFJCQRVK.mjs +0 -37
  391. package/dist/esm/chunk-NMKCJNQM.mjs +0 -20
  392. package/dist/esm/chunk-NW45SCPY.mjs +0 -36
  393. package/dist/esm/chunk-NXFO2W4G.mjs +0 -84
  394. package/dist/esm/chunk-NYL77J4X.mjs +0 -97
  395. package/dist/esm/chunk-O6PSHSN3.mjs +0 -53
  396. package/dist/esm/chunk-OR7TEZ25.mjs +0 -16
  397. package/dist/esm/chunk-PCLNX6FS.mjs +0 -17
  398. package/dist/esm/chunk-PIMQHG2J.mjs +0 -49
  399. package/dist/esm/chunk-PU5AFUX3.mjs +0 -52
  400. package/dist/esm/chunk-PYLOAMR2.mjs +0 -29
  401. package/dist/esm/chunk-QBBTUC66.mjs +0 -15
  402. package/dist/esm/chunk-QFOG4LIN.mjs +0 -319
  403. package/dist/esm/chunk-QMM2KL6C.mjs +0 -12
  404. package/dist/esm/chunk-RCQMWXEW.mjs +0 -35
  405. package/dist/esm/chunk-RX4VG2AT.mjs +0 -314
  406. package/dist/esm/chunk-SBB4YEPT.mjs +0 -17
  407. package/dist/esm/chunk-SIJELMDP.mjs +0 -29
  408. package/dist/esm/chunk-SS3NUM5L.mjs +0 -94
  409. package/dist/esm/chunk-ST4QXIMI.mjs +0 -37
  410. package/dist/esm/chunk-TBHU6ZW6.mjs +0 -215
  411. package/dist/esm/chunk-TLNHRJB2.mjs +0 -155
  412. package/dist/esm/chunk-U3IUCR2G.mjs +0 -54
  413. package/dist/esm/chunk-U7QBZ6PP.mjs +0 -400
  414. package/dist/esm/chunk-U7QBZ6PP.mjs.map +0 -1
  415. package/dist/esm/chunk-UEBBLQJ5.mjs +0 -94
  416. package/dist/esm/chunk-UKU6A2W2.mjs +0 -232
  417. package/dist/esm/chunk-UX5NSZEN.mjs +0 -134
  418. package/dist/esm/chunk-VDJBDX3A.mjs +0 -79
  419. package/dist/esm/chunk-VJP2VWMF.mjs +0 -58
  420. package/dist/esm/chunk-VKJQORON.mjs +0 -93
  421. package/dist/esm/chunk-VPWUODU4.mjs +0 -51
  422. package/dist/esm/chunk-VZQXLVEP.mjs +0 -197
  423. package/dist/esm/chunk-W76MGKZB.mjs +0 -33
  424. package/dist/esm/chunk-WDRH2URB.mjs +0 -91
  425. package/dist/esm/chunk-WHBWEN6N.mjs +0 -206
  426. package/dist/esm/chunk-WK5ZSNE2.mjs +0 -173
  427. package/dist/esm/chunk-WLTBF4DF.mjs +0 -22
  428. package/dist/esm/chunk-WVGO4D7K.mjs +0 -254
  429. package/dist/esm/chunk-XANFAUBD.mjs +0 -44
  430. package/dist/esm/chunk-Y2LV3S5W.mjs +0 -410
  431. package/dist/esm/chunk-YV7M4CFP.mjs +0 -137
  432. package/dist/esm/chunk-YYOPNUX5.mjs +0 -41
  433. package/dist/esm/chunk-ZAHJ7KXB.mjs +0 -81
  434. package/dist/esm/chunk-ZMFKQUHL.mjs +0 -117
  435. /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