@aptos-labs/ts-sdk 1.35.0-zeta.2 → 1.36.0-zeta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/dist/common/{accountAddress-Ce4Cv60D.d.ts → accountAddress-C685VEzA.d.ts} +11 -99
  2. package/dist/common/chunk-5GUWOXQG.js +4 -0
  3. package/dist/common/chunk-5GUWOXQG.js.map +1 -0
  4. package/dist/common/cli/index.d.ts +1 -1
  5. package/dist/common/cli/index.js +1 -486
  6. package/dist/common/cli/index.js.map +1 -1
  7. package/dist/common/index.d.ts +9105 -8699
  8. package/dist/common/index.js +436 -18333
  9. package/dist/common/index.js.map +1 -1
  10. package/dist/esm/{Ed25519Account-D4j3_WIS.d.mts → Ed25519Account-6KGApCPu.d.mts} +3 -3
  11. package/dist/esm/account/AbstractKeylessAccount.d.mts +23 -13
  12. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -75
  13. package/dist/esm/account/AbstractedAccount.d.mts +10 -10
  14. package/dist/esm/account/AbstractedAccount.mjs +1 -74
  15. package/dist/esm/account/Account.d.mts +6 -6
  16. package/dist/esm/account/Account.mjs +1 -72
  17. package/dist/esm/account/AccountUtils.d.mts +11 -10
  18. package/dist/esm/account/AccountUtils.mjs +1 -78
  19. package/dist/esm/account/Ed25519Account.d.mts +5 -5
  20. package/dist/esm/account/Ed25519Account.mjs +1 -70
  21. package/dist/esm/account/EphemeralKeyPair.d.mts +3 -1
  22. package/dist/esm/account/EphemeralKeyPair.mjs +1 -50
  23. package/dist/esm/account/FederatedKeylessAccount.d.mts +12 -11
  24. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -72
  25. package/dist/esm/account/KeylessAccount.d.mts +12 -11
  26. package/dist/esm/account/KeylessAccount.mjs +1 -72
  27. package/dist/esm/account/MultiEd25519Account.d.mts +9 -9
  28. package/dist/esm/account/MultiEd25519Account.mjs +1 -70
  29. package/dist/esm/account/MultiKeyAccount.d.mts +34 -12
  30. package/dist/esm/account/MultiKeyAccount.mjs +1 -74
  31. package/dist/esm/account/SingleKeyAccount.d.mts +5 -5
  32. package/dist/esm/account/SingleKeyAccount.mjs +1 -72
  33. package/dist/esm/account/index.d.mts +7 -6
  34. package/dist/esm/account/index.mjs +1 -119
  35. package/dist/esm/account/utils.mjs +1 -54
  36. package/dist/esm/api/account/abstraction.d.mts +9 -9
  37. package/dist/esm/api/account/abstraction.mjs +1 -101
  38. package/dist/esm/api/account.d.mts +4 -20
  39. package/dist/esm/api/account.mjs +1 -105
  40. package/dist/esm/api/ans.d.mts +13 -13
  41. package/dist/esm/api/ans.mjs +1 -101
  42. package/dist/esm/api/aptos.d.mts +6 -5
  43. package/dist/esm/api/aptos.mjs +1 -139
  44. package/dist/esm/api/aptosConfig.mjs +1 -9
  45. package/dist/esm/api/coin.d.mts +9 -9
  46. package/dist/esm/api/coin.mjs +1 -100
  47. package/dist/esm/api/digitalAsset.d.mts +5 -5
  48. package/dist/esm/api/digitalAsset.mjs +1 -101
  49. package/dist/esm/api/event.mjs +1 -59
  50. package/dist/esm/api/experimental.d.mts +7 -7
  51. package/dist/esm/api/experimental.mjs +1 -85
  52. package/dist/esm/api/faucet.mjs +1 -58
  53. package/dist/esm/api/fungibleAsset.d.mts +13 -13
  54. package/dist/esm/api/fungibleAsset.mjs +1 -101
  55. package/dist/esm/api/general.d.mts +7 -7
  56. package/dist/esm/api/general.mjs +1 -85
  57. package/dist/esm/api/index.d.mts +6 -5
  58. package/dist/esm/api/index.mjs +1 -143
  59. package/dist/esm/api/keyless.d.mts +20 -19
  60. package/dist/esm/api/keyless.mjs +1 -102
  61. package/dist/esm/api/object.mjs +1 -59
  62. package/dist/esm/api/staking.mjs +1 -59
  63. package/dist/esm/api/table.mjs +1 -38
  64. package/dist/esm/api/transaction.d.mts +4 -4
  65. package/dist/esm/api/transaction.mjs +1 -110
  66. package/dist/esm/api/transactionSubmission/build.d.mts +9 -9
  67. package/dist/esm/api/transactionSubmission/build.mjs +1 -99
  68. package/dist/esm/api/transactionSubmission/helpers.mjs +1 -9
  69. package/dist/esm/api/transactionSubmission/management.d.mts +8 -8
  70. package/dist/esm/api/transactionSubmission/management.mjs +1 -105
  71. package/dist/esm/api/transactionSubmission/sign.d.mts +3 -3
  72. package/dist/esm/api/transactionSubmission/sign.mjs +1 -218
  73. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  74. package/dist/esm/api/transactionSubmission/simulate.d.mts +9 -9
  75. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -100
  76. package/dist/esm/api/transactionSubmission/submit.d.mts +3 -3
  77. package/dist/esm/api/transactionSubmission/submit.mjs +1 -100
  78. package/dist/esm/api/utils.mjs +1 -36
  79. package/dist/esm/bcs/consts.mjs +1 -17
  80. package/dist/esm/bcs/deserializer.mjs +1 -10
  81. package/dist/esm/bcs/index.mjs +1 -60
  82. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -12
  83. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -11
  84. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -26
  85. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -22
  86. package/dist/esm/bcs/serializer.mjs +1 -18
  87. package/dist/esm/chunk-2V636AYW.mjs +2 -0
  88. package/dist/esm/{chunk-3IWV2Q3K.mjs.map → chunk-2V636AYW.mjs.map} +1 -1
  89. package/dist/esm/chunk-35CO4BP4.mjs +2 -0
  90. package/dist/esm/chunk-35CO4BP4.mjs.map +1 -0
  91. package/dist/esm/chunk-35DKMW7Q.mjs +2 -0
  92. package/dist/esm/{chunk-GUA5YTIK.mjs.map → chunk-35DKMW7Q.mjs.map} +1 -1
  93. package/dist/esm/chunk-3EUHEZND.mjs +2 -0
  94. package/dist/esm/{chunk-G34CJDST.mjs.map → chunk-3EUHEZND.mjs.map} +1 -1
  95. package/dist/esm/chunk-3OLFJ65O.mjs +2 -0
  96. package/dist/esm/{chunk-G4NBRMZ2.mjs.map → chunk-3OLFJ65O.mjs.map} +1 -1
  97. package/dist/esm/chunk-3RVAGHAA.mjs +2 -0
  98. package/dist/esm/{chunk-XQFUKBY7.mjs.map → chunk-3RVAGHAA.mjs.map} +1 -1
  99. package/dist/esm/chunk-4RXKALLC.mjs +2 -0
  100. package/dist/esm/{chunk-SFLQPB72.mjs.map → chunk-4RXKALLC.mjs.map} +1 -1
  101. package/dist/esm/chunk-56CNRT2K.mjs +2 -0
  102. package/dist/esm/{chunk-SBB4YEPT.mjs.map → chunk-56CNRT2K.mjs.map} +1 -1
  103. package/dist/esm/chunk-6KE4JZD6.mjs +2 -0
  104. package/dist/esm/chunk-6KE4JZD6.mjs.map +1 -0
  105. package/dist/esm/chunk-7CRQNXR5.mjs +2 -0
  106. package/dist/esm/{chunk-YU65LNIC.mjs.map → chunk-7CRQNXR5.mjs.map} +1 -1
  107. package/dist/esm/chunk-7YTGBTWH.mjs +2 -0
  108. package/dist/esm/chunk-7YTGBTWH.mjs.map +1 -0
  109. package/dist/esm/chunk-A3VO773Q.mjs +2 -0
  110. package/dist/esm/{chunk-KLUO6XPE.mjs.map → chunk-A3VO773Q.mjs.map} +1 -1
  111. package/dist/esm/chunk-A5L76YP7.mjs +2 -0
  112. package/dist/esm/{chunk-PT2QHUB6.mjs.map → chunk-A5L76YP7.mjs.map} +1 -1
  113. package/dist/esm/chunk-AEGA5N2W.mjs +2 -0
  114. package/dist/esm/{chunk-QJ6CGH7N.mjs.map → chunk-AEGA5N2W.mjs.map} +1 -1
  115. package/dist/esm/chunk-AIPHJFJL.mjs +2 -0
  116. package/dist/esm/{chunk-6I37A76G.mjs.map → chunk-AIPHJFJL.mjs.map} +1 -1
  117. package/dist/esm/chunk-BMPHQ3E7.mjs +2 -0
  118. package/dist/esm/{chunk-MWXBQ6HR.mjs.map → chunk-BMPHQ3E7.mjs.map} +1 -1
  119. package/dist/esm/chunk-C3Q23D22.mjs +2 -0
  120. package/dist/esm/{chunk-F7W7KS5C.mjs.map → chunk-C3Q23D22.mjs.map} +1 -1
  121. package/dist/esm/chunk-CWL7ZA3P.mjs +2 -0
  122. package/dist/esm/{chunk-6T3V5LXK.mjs.map → chunk-CWL7ZA3P.mjs.map} +1 -1
  123. package/dist/esm/chunk-DOVH6HPL.mjs +2 -0
  124. package/dist/esm/{chunk-THWEBWUC.mjs.map → chunk-DOVH6HPL.mjs.map} +1 -1
  125. package/dist/esm/chunk-EODSU3YN.mjs +2 -0
  126. package/dist/esm/{chunk-WXQUBQK4.mjs.map → chunk-EODSU3YN.mjs.map} +1 -1
  127. package/dist/esm/chunk-ERLDXTIY.mjs +2 -0
  128. package/dist/esm/{chunk-6ASWESA2.mjs.map → chunk-ERLDXTIY.mjs.map} +1 -1
  129. package/dist/esm/chunk-GOXRBEIJ.mjs +2 -0
  130. package/dist/esm/{chunk-APM7OSLS.mjs.map → chunk-GOXRBEIJ.mjs.map} +1 -1
  131. package/dist/esm/chunk-HHWJHOFZ.mjs +2 -0
  132. package/dist/esm/{chunk-KSK3XIGF.mjs.map → chunk-HHWJHOFZ.mjs.map} +1 -1
  133. package/dist/esm/chunk-IF4UU2MT.mjs +2 -0
  134. package/dist/esm/{chunk-QPT4BSAB.mjs.map → chunk-IF4UU2MT.mjs.map} +1 -1
  135. package/dist/esm/chunk-IMTC3J2M.mjs +2 -0
  136. package/dist/esm/{chunk-LJRNGZMY.mjs.map → chunk-IMTC3J2M.mjs.map} +1 -1
  137. package/dist/esm/chunk-KDMSOCZY.mjs +2 -0
  138. package/dist/esm/chunk-KSLLV3ZC.mjs +2 -0
  139. package/dist/esm/{chunk-OFUNBTK4.mjs.map → chunk-KSLLV3ZC.mjs.map} +1 -1
  140. package/dist/esm/chunk-KXVD52Y6.mjs +2 -0
  141. package/dist/esm/{chunk-YT7V6AVJ.mjs.map → chunk-KXVD52Y6.mjs.map} +1 -1
  142. package/dist/esm/chunk-LGC2JORV.mjs +2 -0
  143. package/dist/esm/chunk-LGC2JORV.mjs.map +1 -0
  144. package/dist/esm/chunk-LQOSHBB7.mjs +4 -0
  145. package/dist/esm/{chunk-CXLXUSCG.mjs.map → chunk-LQOSHBB7.mjs.map} +1 -1
  146. package/dist/esm/chunk-LS3IDL2N.mjs +2 -0
  147. package/dist/esm/{chunk-MYEYZ7PF.mjs.map → chunk-LS3IDL2N.mjs.map} +1 -1
  148. package/dist/esm/chunk-MIW45ADL.mjs +2 -0
  149. package/dist/esm/chunk-MIW45ADL.mjs.map +1 -0
  150. package/dist/esm/chunk-NFPNWY6Z.mjs +4 -0
  151. package/dist/esm/chunk-NFPNWY6Z.mjs.map +1 -0
  152. package/dist/esm/chunk-PDAWVDI7.mjs +2 -0
  153. package/dist/esm/{chunk-MFFBZ43D.mjs.map → chunk-PDAWVDI7.mjs.map} +1 -1
  154. package/dist/esm/chunk-PSZYS4RG.mjs +2 -0
  155. package/dist/esm/{chunk-YK66QBML.mjs.map → chunk-PSZYS4RG.mjs.map} +1 -1
  156. package/dist/esm/chunk-R6QCPXQG.mjs +2 -0
  157. package/dist/esm/{chunk-SQNS4SFV.mjs.map → chunk-R6QCPXQG.mjs.map} +1 -1
  158. package/dist/esm/chunk-RIINVEZA.mjs +2 -0
  159. package/dist/esm/{chunk-Y3ENAKRC.mjs.map → chunk-RIINVEZA.mjs.map} +1 -1
  160. package/dist/esm/chunk-RJ7F4JDV.mjs +2 -0
  161. package/dist/esm/chunk-RJ7F4JDV.mjs.map +1 -0
  162. package/dist/esm/chunk-RXHER6EA.mjs +2 -0
  163. package/dist/esm/{chunk-C7T6GW5P.mjs.map → chunk-RXHER6EA.mjs.map} +1 -1
  164. package/dist/esm/chunk-RXMLONF7.mjs +2 -0
  165. package/dist/esm/{chunk-BU43ZFDJ.mjs.map → chunk-RXMLONF7.mjs.map} +1 -1
  166. package/dist/esm/chunk-TBY3VMMV.mjs +2 -0
  167. package/dist/esm/chunk-TBY3VMMV.mjs.map +1 -0
  168. package/dist/esm/chunk-TKXEVD7A.mjs +2 -0
  169. package/dist/esm/{chunk-QSYWLSSN.mjs.map → chunk-TKXEVD7A.mjs.map} +1 -1
  170. package/dist/esm/chunk-TNWABITK.mjs +2 -0
  171. package/dist/esm/{chunk-FRLS4GRM.mjs.map → chunk-TNWABITK.mjs.map} +1 -1
  172. package/dist/esm/chunk-TTY5GFMN.mjs +2 -0
  173. package/dist/esm/{chunk-PKUXOBIV.mjs.map → chunk-TTY5GFMN.mjs.map} +1 -1
  174. package/dist/esm/chunk-VHNX2NUR.mjs +473 -0
  175. package/dist/esm/chunk-VHNX2NUR.mjs.map +1 -0
  176. package/dist/esm/chunk-VHY6ZATX.mjs +2 -0
  177. package/dist/esm/{chunk-BDM6FBUO.mjs.map → chunk-VHY6ZATX.mjs.map} +1 -1
  178. package/dist/esm/chunk-W4BSN6SK.mjs +2 -0
  179. package/dist/esm/{chunk-ZWCTF3NQ.mjs.map → chunk-W4BSN6SK.mjs.map} +1 -1
  180. package/dist/esm/chunk-WB26DWOY.mjs +7 -0
  181. package/dist/esm/chunk-WB26DWOY.mjs.map +1 -0
  182. package/dist/esm/chunk-X5YB74NB.mjs +2 -0
  183. package/dist/esm/{chunk-I25AX6PQ.mjs.map → chunk-X5YB74NB.mjs.map} +1 -1
  184. package/dist/esm/chunk-XLDMPCLF.mjs +2 -0
  185. package/dist/esm/{chunk-WLTQHGIJ.mjs.map → chunk-XLDMPCLF.mjs.map} +1 -1
  186. package/dist/esm/chunk-YOZBVVKL.mjs +2 -0
  187. package/dist/esm/{chunk-BEYIOC2H.mjs.map → chunk-YOZBVVKL.mjs.map} +1 -1
  188. package/dist/esm/chunk-ZD2TY5N3.mjs +2 -0
  189. package/dist/esm/{chunk-NUT2VOX2.mjs.map → chunk-ZD2TY5N3.mjs.map} +1 -1
  190. package/dist/esm/chunk-ZELTLAUN.mjs +2 -0
  191. package/dist/esm/chunk-ZELTLAUN.mjs.map +1 -0
  192. package/dist/esm/cli/index.mjs +1 -20
  193. package/dist/esm/cli/localNode.mjs +1 -16
  194. package/dist/esm/cli/move.mjs +1 -7
  195. package/dist/esm/client/core.mjs +1 -34
  196. package/dist/esm/client/get.mjs +1 -41
  197. package/dist/esm/client/index.mjs +1 -69
  198. package/dist/esm/client/post.mjs +1 -43
  199. package/dist/esm/core/account/index.mjs +1 -21
  200. package/dist/esm/core/account/utils/address.mjs +1 -19
  201. package/dist/esm/core/account/utils/index.mjs +1 -20
  202. package/dist/esm/core/accountAddress.mjs +1 -16
  203. package/dist/esm/core/authenticationKey.d.mts +3 -1
  204. package/dist/esm/core/authenticationKey.mjs +1 -15
  205. package/dist/esm/core/common.mjs +1 -7
  206. package/dist/esm/core/crypto/abstraction.d.mts +4 -1
  207. package/dist/esm/core/crypto/abstraction.mjs +1 -26
  208. package/dist/esm/core/crypto/ed25519.d.mts +18 -1
  209. package/dist/esm/core/crypto/ed25519.mjs +1 -33
  210. package/dist/esm/core/crypto/ephemeral.d.mts +8 -1
  211. package/dist/esm/core/crypto/ephemeral.mjs +1 -30
  212. package/dist/esm/core/crypto/federatedKeyless.d.mts +11 -87
  213. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -44
  214. package/dist/esm/core/crypto/hdKey.mjs +1 -25
  215. package/dist/esm/core/crypto/index.d.mts +8 -6
  216. package/dist/esm/core/crypto/index.mjs +1 -173
  217. package/dist/esm/core/crypto/keyless.d.mts +13 -586
  218. package/dist/esm/core/crypto/keyless.mjs +1 -83
  219. package/dist/esm/core/crypto/multiEd25519.d.mts +14 -4
  220. package/dist/esm/core/crypto/multiEd25519.mjs +1 -50
  221. package/dist/esm/core/crypto/multiKey.d.mts +39 -3
  222. package/dist/esm/core/crypto/multiKey.mjs +1 -51
  223. package/dist/esm/core/crypto/poseidon.mjs +1 -15
  224. package/dist/esm/core/crypto/privateKey.d.mts +3 -1
  225. package/dist/esm/core/crypto/privateKey.mjs +1 -12
  226. package/dist/esm/core/crypto/proof.mjs +1 -20
  227. package/dist/esm/core/crypto/publicKey.d.mts +3 -1
  228. package/dist/esm/core/crypto/publicKey.mjs +1 -22
  229. package/dist/esm/core/crypto/secp256k1.d.mts +26 -2
  230. package/dist/esm/core/crypto/secp256k1.mjs +1 -29
  231. package/dist/esm/core/crypto/signature.mjs +1 -20
  232. package/dist/esm/core/crypto/singleKey.d.mts +27 -5
  233. package/dist/esm/core/crypto/singleKey.mjs +1 -48
  234. package/dist/esm/core/crypto/utils.mjs +1 -9
  235. package/dist/esm/core/hex.mjs +1 -12
  236. package/dist/esm/core/index.d.mts +8 -6
  237. package/dist/esm/core/index.mjs +1 -202
  238. package/dist/esm/errors/index.d.mts +10 -2
  239. package/dist/esm/errors/index.mjs +1 -25
  240. package/dist/esm/federatedKeyless-Qe_j8OqV.d.mts +875 -0
  241. package/dist/esm/index.d.mts +11 -10
  242. package/dist/esm/index.mjs +1 -798
  243. package/dist/esm/internal/abstraction.d.mts +9 -9
  244. package/dist/esm/internal/abstraction.mjs +1 -103
  245. package/dist/esm/internal/account.d.mts +7 -24
  246. package/dist/esm/internal/account.mjs +1 -142
  247. package/dist/esm/internal/ans.d.mts +13 -13
  248. package/dist/esm/internal/ans.mjs +1 -138
  249. package/dist/esm/internal/coin.d.mts +7 -7
  250. package/dist/esm/internal/coin.mjs +1 -99
  251. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  252. package/dist/esm/internal/digitalAsset.mjs +1 -145
  253. package/dist/esm/internal/event.mjs +1 -62
  254. package/dist/esm/internal/experimental.d.mts +7 -7
  255. package/dist/esm/internal/experimental.mjs +1 -84
  256. package/dist/esm/internal/faucet.mjs +1 -57
  257. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  258. package/dist/esm/internal/fungibleAsset.mjs +1 -105
  259. package/dist/esm/internal/general.mjs +1 -43
  260. package/dist/esm/internal/keyless.d.mts +10 -20
  261. package/dist/esm/internal/keyless.mjs +1 -107
  262. package/dist/esm/internal/object.mjs +1 -58
  263. package/dist/esm/internal/staking.mjs +1 -60
  264. package/dist/esm/internal/table.mjs +1 -38
  265. package/dist/esm/internal/transaction.mjs +1 -57
  266. package/dist/esm/internal/transactionSubmission.d.mts +6 -6
  267. package/dist/esm/internal/transactionSubmission.mjs +1 -118
  268. package/dist/esm/internal/utils/index.mjs +1 -38
  269. package/dist/esm/internal/utils/utils.mjs +1 -37
  270. package/dist/esm/internal/view.d.mts +7 -7
  271. package/dist/esm/internal/view.mjs +1 -86
  272. package/dist/esm/{publicKey-BMtGNNLg.d.mts → publicKey-pDHBAZlT.d.mts} +27 -1
  273. package/dist/esm/transactions/authenticator/account.d.mts +3 -1
  274. package/dist/esm/transactions/authenticator/account.mjs +1 -67
  275. package/dist/esm/transactions/authenticator/index.d.mts +3 -1
  276. package/dist/esm/transactions/authenticator/index.mjs +1 -82
  277. package/dist/esm/transactions/authenticator/transaction.d.mts +4 -2
  278. package/dist/esm/transactions/authenticator/transaction.mjs +1 -66
  279. package/dist/esm/transactions/index.d.mts +4 -4
  280. package/dist/esm/transactions/index.mjs +1 -296
  281. package/dist/esm/transactions/instances/chainId.mjs +1 -11
  282. package/dist/esm/transactions/instances/identifier.mjs +1 -11
  283. package/dist/esm/transactions/instances/index.d.mts +4 -2
  284. package/dist/esm/transactions/instances/index.mjs +1 -114
  285. package/dist/esm/transactions/instances/moduleId.mjs +1 -55
  286. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -60
  287. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -65
  288. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +3 -1
  289. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -21
  290. package/dist/esm/transactions/instances/signedTransaction.d.mts +3 -1
  291. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -63
  292. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -60
  293. package/dist/esm/transactions/instances/transactionArgument.mjs +1 -1
  294. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -73
  295. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  296. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -101
  297. package/dist/esm/transactions/management/asyncQueue.mjs +1 -9
  298. package/dist/esm/transactions/management/index.d.mts +2 -2
  299. package/dist/esm/transactions/management/index.mjs +1 -111
  300. package/dist/esm/transactions/management/transactionWorker.d.mts +3 -3
  301. package/dist/esm/transactions/management/transactionWorker.mjs +1 -107
  302. package/dist/esm/transactions/scriptComposer/index.d.mts +7 -7
  303. package/dist/esm/transactions/scriptComposer/index.mjs +1 -80
  304. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +8 -8
  305. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -92
  306. package/dist/esm/transactions/transactionBuilder/index.d.mts +8 -8
  307. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -166
  308. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +34 -23
  309. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -74
  310. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +7 -7
  311. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -75
  312. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +8 -8
  313. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -97
  314. package/dist/esm/transactions/typeTag/index.d.mts +16 -0
  315. package/dist/esm/transactions/typeTag/index.mjs +1 -91
  316. package/dist/esm/transactions/typeTag/parser.mjs +1 -60
  317. package/dist/esm/transactions/types.d.mts +5 -5
  318. package/dist/esm/transactions/types.mjs +1 -1
  319. package/dist/esm/types/abstraction.mjs +1 -7
  320. package/dist/esm/types/generated/operations.d.mts +10 -63
  321. package/dist/esm/types/generated/queries.d.mts +2 -10
  322. package/dist/esm/types/generated/queries.mjs +1 -69
  323. package/dist/esm/types/generated/types.d.mts +1054 -824
  324. package/dist/esm/types/generated/types.mjs +1 -774
  325. package/dist/esm/types/generated/types.mjs.map +1 -1
  326. package/dist/esm/types/index.d.mts +2 -2
  327. package/dist/esm/types/index.mjs +1 -82
  328. package/dist/esm/types/indexer.d.mts +2 -14
  329. package/dist/esm/types/indexer.mjs +1 -1
  330. package/dist/esm/types/keyless.d.mts +1 -1
  331. package/dist/esm/types/types.d.mts +3 -58
  332. package/dist/esm/types/types.mjs +1 -77
  333. package/dist/esm/utils/apiEndpoints.mjs +1 -21
  334. package/dist/esm/utils/const.d.mts +1 -1
  335. package/dist/esm/utils/const.mjs +1 -25
  336. package/dist/esm/utils/helpers.d.mts +2 -1
  337. package/dist/esm/utils/helpers.mjs +1 -37
  338. package/dist/esm/utils/index.d.mts +1 -1
  339. package/dist/esm/utils/index.mjs +1 -88
  340. package/dist/esm/utils/memoize.mjs +1 -9
  341. package/dist/esm/utils/normalizeBundle.mjs +1 -20
  342. package/dist/esm/version.d.mts +1 -1
  343. package/dist/esm/version.mjs +1 -7
  344. package/package.json +3 -3
  345. package/src/account/AbstractKeylessAccount.ts +33 -49
  346. package/src/account/MultiKeyAccount.ts +23 -16
  347. package/src/api/account.ts +2 -56
  348. package/src/cli/localNode.ts +6 -15
  349. package/src/core/crypto/abstraction.ts +6 -1
  350. package/src/core/crypto/ed25519.ts +19 -1
  351. package/src/core/crypto/ephemeral.ts +9 -0
  352. package/src/core/crypto/federatedKeyless.ts +40 -4
  353. package/src/core/crypto/index.ts +4 -3
  354. package/src/core/crypto/keyless.ts +577 -17
  355. package/src/core/crypto/multiEd25519.ts +11 -3
  356. package/src/core/crypto/multiKey.ts +74 -4
  357. package/src/core/crypto/publicKey.ts +28 -0
  358. package/src/core/crypto/secp256k1.ts +25 -2
  359. package/src/core/crypto/singleKey.ts +32 -7
  360. package/src/errors/index.ts +50 -0
  361. package/src/internal/account.ts +2 -395
  362. package/src/internal/keyless.ts +9 -17
  363. package/src/transactions/scriptComposer/index.ts +19 -6
  364. package/src/transactions/transactionBuilder/remoteAbi.ts +107 -35
  365. package/src/transactions/typeTag/index.ts +22 -0
  366. package/src/types/codegen.yaml +1 -1
  367. package/src/types/generated/operations.ts +8 -69
  368. package/src/types/generated/queries.ts +0 -111
  369. package/src/types/generated/types.ts +1159 -951
  370. package/src/types/indexer.ts +0 -16
  371. package/src/types/keyless.ts +1 -1
  372. package/src/types/types.ts +3 -62
  373. package/src/utils/const.ts +1 -1
  374. package/src/utils/helpers.ts +11 -0
  375. package/src/version.ts +1 -1
  376. package/dist/common/chunk-JMOQXLED.js +0 -1305
  377. package/dist/common/chunk-JMOQXLED.js.map +0 -1
  378. package/dist/esm/chunk-2FTF6J7F.mjs +0 -97
  379. package/dist/esm/chunk-2FTF6J7F.mjs.map +0 -1
  380. package/dist/esm/chunk-2HL7JEFC.mjs +0 -829
  381. package/dist/esm/chunk-2HL7JEFC.mjs.map +0 -1
  382. package/dist/esm/chunk-2WBJAKBO.mjs +0 -53
  383. package/dist/esm/chunk-2WBJAKBO.mjs.map +0 -1
  384. package/dist/esm/chunk-32UQAST6.mjs +0 -296
  385. package/dist/esm/chunk-32UQAST6.mjs.map +0 -1
  386. package/dist/esm/chunk-3DAVHDK4.mjs +0 -195
  387. package/dist/esm/chunk-3DAVHDK4.mjs.map +0 -1
  388. package/dist/esm/chunk-3IWV2Q3K.mjs +0 -12
  389. package/dist/esm/chunk-3TUV6YMI.mjs +0 -305
  390. package/dist/esm/chunk-3TUV6YMI.mjs.map +0 -1
  391. package/dist/esm/chunk-4NMDYPUD.mjs +0 -1
  392. package/dist/esm/chunk-56UCIGTO.mjs +0 -21
  393. package/dist/esm/chunk-56UCIGTO.mjs.map +0 -1
  394. package/dist/esm/chunk-5ORUQZAR.mjs +0 -100
  395. package/dist/esm/chunk-5ORUQZAR.mjs.map +0 -1
  396. package/dist/esm/chunk-5QHMFYVL.mjs +0 -42
  397. package/dist/esm/chunk-5QHMFYVL.mjs.map +0 -1
  398. package/dist/esm/chunk-62LC4PPC.mjs +0 -128
  399. package/dist/esm/chunk-62LC4PPC.mjs.map +0 -1
  400. package/dist/esm/chunk-6ASWESA2.mjs +0 -77
  401. package/dist/esm/chunk-6I37A76G.mjs +0 -29
  402. package/dist/esm/chunk-6OFCIXWS.mjs +0 -379
  403. package/dist/esm/chunk-6OFCIXWS.mjs.map +0 -1
  404. package/dist/esm/chunk-6SNGKTWE.mjs +0 -91
  405. package/dist/esm/chunk-6SNGKTWE.mjs.map +0 -1
  406. package/dist/esm/chunk-6T3V5LXK.mjs +0 -119
  407. package/dist/esm/chunk-7F32C225.mjs +0 -219
  408. package/dist/esm/chunk-7F32C225.mjs.map +0 -1
  409. package/dist/esm/chunk-7WW735TU.mjs +0 -276
  410. package/dist/esm/chunk-7WW735TU.mjs.map +0 -1
  411. package/dist/esm/chunk-A33OBGVN.mjs +0 -1014
  412. package/dist/esm/chunk-A33OBGVN.mjs.map +0 -1
  413. package/dist/esm/chunk-A7LYGPFL.mjs +0 -208
  414. package/dist/esm/chunk-A7LYGPFL.mjs.map +0 -1
  415. package/dist/esm/chunk-AGKEC2IM.mjs +0 -250
  416. package/dist/esm/chunk-AGKEC2IM.mjs.map +0 -1
  417. package/dist/esm/chunk-AKXCFBYF.mjs +0 -49
  418. package/dist/esm/chunk-AKXCFBYF.mjs.map +0 -1
  419. package/dist/esm/chunk-APM7OSLS.mjs +0 -122
  420. package/dist/esm/chunk-BDM6FBUO.mjs +0 -198
  421. package/dist/esm/chunk-BEYIOC2H.mjs +0 -34
  422. package/dist/esm/chunk-BMM72IIP.mjs +0 -250
  423. package/dist/esm/chunk-BMM72IIP.mjs.map +0 -1
  424. package/dist/esm/chunk-BSCOVLWS.mjs +0 -1
  425. package/dist/esm/chunk-BSCOVLWS.mjs.map +0 -1
  426. package/dist/esm/chunk-BU43ZFDJ.mjs +0 -281
  427. package/dist/esm/chunk-C7EEG6SW.mjs +0 -689
  428. package/dist/esm/chunk-C7EEG6SW.mjs.map +0 -1
  429. package/dist/esm/chunk-C7T6GW5P.mjs +0 -376
  430. package/dist/esm/chunk-CXLXUSCG.mjs +0 -417
  431. package/dist/esm/chunk-D4MW64RH.mjs +0 -188
  432. package/dist/esm/chunk-D4MW64RH.mjs.map +0 -1
  433. package/dist/esm/chunk-D6RXVCE3.mjs +0 -86
  434. package/dist/esm/chunk-D6RXVCE3.mjs.map +0 -1
  435. package/dist/esm/chunk-DDZGHA66.mjs +0 -495
  436. package/dist/esm/chunk-DDZGHA66.mjs.map +0 -1
  437. package/dist/esm/chunk-DGDZNHUJ.mjs +0 -72
  438. package/dist/esm/chunk-DGDZNHUJ.mjs.map +0 -1
  439. package/dist/esm/chunk-DMFRIING.mjs +0 -286
  440. package/dist/esm/chunk-DMFRIING.mjs.map +0 -1
  441. package/dist/esm/chunk-E7FWVXGX.mjs +0 -1
  442. package/dist/esm/chunk-E7FWVXGX.mjs.map +0 -1
  443. package/dist/esm/chunk-EBFKT35C.mjs +0 -66
  444. package/dist/esm/chunk-EBFKT35C.mjs.map +0 -1
  445. package/dist/esm/chunk-ECTX2FGD.mjs +0 -355
  446. package/dist/esm/chunk-ECTX2FGD.mjs.map +0 -1
  447. package/dist/esm/chunk-EPTUAWRA.mjs +0 -895
  448. package/dist/esm/chunk-EPTUAWRA.mjs.map +0 -1
  449. package/dist/esm/chunk-F4VI7BNX.mjs +0 -58
  450. package/dist/esm/chunk-F4VI7BNX.mjs.map +0 -1
  451. package/dist/esm/chunk-F7W7KS5C.mjs +0 -52
  452. package/dist/esm/chunk-FDMI4BUL.mjs +0 -611
  453. package/dist/esm/chunk-FDMI4BUL.mjs.map +0 -1
  454. package/dist/esm/chunk-FMNMYKYH.mjs +0 -71
  455. package/dist/esm/chunk-FMNMYKYH.mjs.map +0 -1
  456. package/dist/esm/chunk-FRLS4GRM.mjs +0 -62
  457. package/dist/esm/chunk-G34CJDST.mjs +0 -139
  458. package/dist/esm/chunk-G4NBRMZ2.mjs +0 -7
  459. package/dist/esm/chunk-G6R77JKO.mjs +0 -121
  460. package/dist/esm/chunk-G6R77JKO.mjs.map +0 -1
  461. package/dist/esm/chunk-G7BB6K4B.mjs +0 -167
  462. package/dist/esm/chunk-G7BB6K4B.mjs.map +0 -1
  463. package/dist/esm/chunk-GCQK2S5Q.mjs +0 -43
  464. package/dist/esm/chunk-GCQK2S5Q.mjs.map +0 -1
  465. package/dist/esm/chunk-GFPEB22G.mjs +0 -1
  466. package/dist/esm/chunk-GFPEB22G.mjs.map +0 -1
  467. package/dist/esm/chunk-GUA5YTIK.mjs +0 -362
  468. package/dist/esm/chunk-HBXBODME.mjs +0 -84
  469. package/dist/esm/chunk-HBXBODME.mjs.map +0 -1
  470. package/dist/esm/chunk-HEZ2ZYZA.mjs +0 -1
  471. package/dist/esm/chunk-HEZ2ZYZA.mjs.map +0 -1
  472. package/dist/esm/chunk-HKQY5GXT.mjs +0 -231
  473. package/dist/esm/chunk-HKQY5GXT.mjs.map +0 -1
  474. package/dist/esm/chunk-HL337SEM.mjs +0 -219
  475. package/dist/esm/chunk-HL337SEM.mjs.map +0 -1
  476. package/dist/esm/chunk-HQDHSKVS.mjs +0 -74
  477. package/dist/esm/chunk-HQDHSKVS.mjs.map +0 -1
  478. package/dist/esm/chunk-I25AX6PQ.mjs +0 -7
  479. package/dist/esm/chunk-I5G7XFGT.mjs +0 -86
  480. package/dist/esm/chunk-I5G7XFGT.mjs.map +0 -1
  481. package/dist/esm/chunk-IHYTP2EW.mjs +0 -1
  482. package/dist/esm/chunk-IHYTP2EW.mjs.map +0 -1
  483. package/dist/esm/chunk-IJ7XCPP3.mjs +0 -480
  484. package/dist/esm/chunk-IJ7XCPP3.mjs.map +0 -1
  485. package/dist/esm/chunk-ILTEOGFF.mjs +0 -407
  486. package/dist/esm/chunk-ILTEOGFF.mjs.map +0 -1
  487. package/dist/esm/chunk-IP7GATDH.mjs +0 -322
  488. package/dist/esm/chunk-IP7GATDH.mjs.map +0 -1
  489. package/dist/esm/chunk-IPUAVRGL.mjs +0 -248
  490. package/dist/esm/chunk-IPUAVRGL.mjs.map +0 -1
  491. package/dist/esm/chunk-IQVHXOD3.mjs +0 -192
  492. package/dist/esm/chunk-IQVHXOD3.mjs.map +0 -1
  493. package/dist/esm/chunk-JAZJE3OR.mjs +0 -45
  494. package/dist/esm/chunk-JAZJE3OR.mjs.map +0 -1
  495. package/dist/esm/chunk-JEVGHYEP.mjs +0 -162
  496. package/dist/esm/chunk-JEVGHYEP.mjs.map +0 -1
  497. package/dist/esm/chunk-JFMFZ2IL.mjs +0 -147
  498. package/dist/esm/chunk-JFMFZ2IL.mjs.map +0 -1
  499. package/dist/esm/chunk-JQIRRM7G.mjs +0 -195
  500. package/dist/esm/chunk-JQIRRM7G.mjs.map +0 -1
  501. package/dist/esm/chunk-JXCZTOYC.mjs +0 -1
  502. package/dist/esm/chunk-JXCZTOYC.mjs.map +0 -1
  503. package/dist/esm/chunk-K5OCDM3W.mjs +0 -207
  504. package/dist/esm/chunk-K5OCDM3W.mjs.map +0 -1
  505. package/dist/esm/chunk-KLUO6XPE.mjs +0 -33
  506. package/dist/esm/chunk-KSK3XIGF.mjs +0 -502
  507. package/dist/esm/chunk-KW64NP2F.mjs +0 -71
  508. package/dist/esm/chunk-KW64NP2F.mjs.map +0 -1
  509. package/dist/esm/chunk-LJRNGZMY.mjs +0 -10
  510. package/dist/esm/chunk-MFFBZ43D.mjs +0 -45
  511. package/dist/esm/chunk-MWXBQ6HR.mjs +0 -15
  512. package/dist/esm/chunk-MYEYZ7PF.mjs +0 -46
  513. package/dist/esm/chunk-NUT2VOX2.mjs +0 -317
  514. package/dist/esm/chunk-OFUNBTK4.mjs +0 -169
  515. package/dist/esm/chunk-ORCQEMJL.mjs +0 -51
  516. package/dist/esm/chunk-ORCQEMJL.mjs.map +0 -1
  517. package/dist/esm/chunk-PGFEUN7K.mjs +0 -129
  518. package/dist/esm/chunk-PGFEUN7K.mjs.map +0 -1
  519. package/dist/esm/chunk-PKUXOBIV.mjs +0 -138
  520. package/dist/esm/chunk-PT2QHUB6.mjs +0 -96
  521. package/dist/esm/chunk-QJ6CGH7N.mjs +0 -71
  522. package/dist/esm/chunk-QPT4BSAB.mjs +0 -20
  523. package/dist/esm/chunk-QSYWLSSN.mjs +0 -216
  524. package/dist/esm/chunk-QYNYDQE3.mjs +0 -288
  525. package/dist/esm/chunk-QYNYDQE3.mjs.map +0 -1
  526. package/dist/esm/chunk-R45SPK6Q.mjs +0 -61
  527. package/dist/esm/chunk-R45SPK6Q.mjs.map +0 -1
  528. package/dist/esm/chunk-R4JTQQBX.mjs +0 -37
  529. package/dist/esm/chunk-R4JTQQBX.mjs.map +0 -1
  530. package/dist/esm/chunk-RCXGTN36.mjs +0 -58
  531. package/dist/esm/chunk-RCXGTN36.mjs.map +0 -1
  532. package/dist/esm/chunk-RMMOF53Q.mjs +0 -1
  533. package/dist/esm/chunk-RMMOF53Q.mjs.map +0 -1
  534. package/dist/esm/chunk-RQS33JAS.mjs +0 -77
  535. package/dist/esm/chunk-RQS33JAS.mjs.map +0 -1
  536. package/dist/esm/chunk-SAWN7RJP.mjs +0 -15
  537. package/dist/esm/chunk-SAWN7RJP.mjs.map +0 -1
  538. package/dist/esm/chunk-SBB4YEPT.mjs +0 -17
  539. package/dist/esm/chunk-SFLQPB72.mjs +0 -63
  540. package/dist/esm/chunk-SPI2HO3E.mjs +0 -177
  541. package/dist/esm/chunk-SPI2HO3E.mjs.map +0 -1
  542. package/dist/esm/chunk-SPVJXZL5.mjs +0 -865
  543. package/dist/esm/chunk-SPVJXZL5.mjs.map +0 -1
  544. package/dist/esm/chunk-SQNS4SFV.mjs +0 -232
  545. package/dist/esm/chunk-SRXIHVZE.mjs +0 -50
  546. package/dist/esm/chunk-SRXIHVZE.mjs.map +0 -1
  547. package/dist/esm/chunk-T4BFWV46.mjs +0 -63
  548. package/dist/esm/chunk-T4BFWV46.mjs.map +0 -1
  549. package/dist/esm/chunk-T573PCIR.mjs +0 -700
  550. package/dist/esm/chunk-T573PCIR.mjs.map +0 -1
  551. package/dist/esm/chunk-TDLL7QX5.mjs +0 -239
  552. package/dist/esm/chunk-TDLL7QX5.mjs.map +0 -1
  553. package/dist/esm/chunk-TFW6N66T.mjs +0 -415
  554. package/dist/esm/chunk-TFW6N66T.mjs.map +0 -1
  555. package/dist/esm/chunk-THWEBWUC.mjs +0 -20
  556. package/dist/esm/chunk-TJDF4CXI.mjs +0 -513
  557. package/dist/esm/chunk-TJDF4CXI.mjs.map +0 -1
  558. package/dist/esm/chunk-TL4Z4KHK.mjs +0 -70
  559. package/dist/esm/chunk-TL4Z4KHK.mjs.map +0 -1
  560. package/dist/esm/chunk-UGFIWCJQ.mjs +0 -130
  561. package/dist/esm/chunk-UGFIWCJQ.mjs.map +0 -1
  562. package/dist/esm/chunk-UGKZQUGE.mjs +0 -367
  563. package/dist/esm/chunk-UGKZQUGE.mjs.map +0 -1
  564. package/dist/esm/chunk-UIRAXHDH.mjs +0 -1
  565. package/dist/esm/chunk-UIRAXHDH.mjs.map +0 -1
  566. package/dist/esm/chunk-UK7SPHIE.mjs +0 -420
  567. package/dist/esm/chunk-UK7SPHIE.mjs.map +0 -1
  568. package/dist/esm/chunk-UOHCJOXI.mjs +0 -150
  569. package/dist/esm/chunk-UOHCJOXI.mjs.map +0 -1
  570. package/dist/esm/chunk-WHSS6I7T.mjs +0 -90
  571. package/dist/esm/chunk-WHSS6I7T.mjs.map +0 -1
  572. package/dist/esm/chunk-WLTQHGIJ.mjs +0 -177
  573. package/dist/esm/chunk-WUM247HF.mjs +0 -125
  574. package/dist/esm/chunk-WUM247HF.mjs.map +0 -1
  575. package/dist/esm/chunk-WXQUBQK4.mjs +0 -19
  576. package/dist/esm/chunk-X4N5BN3S.mjs +0 -40
  577. package/dist/esm/chunk-X4N5BN3S.mjs.map +0 -1
  578. package/dist/esm/chunk-XIBOO3WF.mjs +0 -168
  579. package/dist/esm/chunk-XIBOO3WF.mjs.map +0 -1
  580. package/dist/esm/chunk-XQFUKBY7.mjs +0 -136
  581. package/dist/esm/chunk-XX6C2QGI.mjs +0 -160
  582. package/dist/esm/chunk-XX6C2QGI.mjs.map +0 -1
  583. package/dist/esm/chunk-Y3ENAKRC.mjs +0 -73
  584. package/dist/esm/chunk-Y3M32DIB.mjs +0 -79
  585. package/dist/esm/chunk-Y3M32DIB.mjs.map +0 -1
  586. package/dist/esm/chunk-YK66QBML.mjs +0 -89
  587. package/dist/esm/chunk-YT7V6AVJ.mjs +0 -66
  588. package/dist/esm/chunk-YU65LNIC.mjs +0 -72
  589. package/dist/esm/chunk-ZRBUAZZD.mjs +0 -36
  590. package/dist/esm/chunk-ZRBUAZZD.mjs.map +0 -1
  591. package/dist/esm/chunk-ZWCTF3NQ.mjs +0 -25
  592. package/src/internal/queries/getAccountAddressForAuthKey.graphql +0 -8
  593. package/src/internal/queries/getAuthKeysForPublicKey.graphql +0 -9
  594. package/src/internal/queries/getMultiKeyForAuthKey.graphql +0 -9
  595. package/src/internal/queries/getSignatures.graphql +0 -13
  596. /package/dist/esm/{chunk-4NMDYPUD.mjs.map → chunk-KDMSOCZY.mjs.map} +0 -0
@@ -1,1014 +0,0 @@
1
- import {
2
- addDigitalAssetPropertyTransaction,
3
- addDigitalAssetTypedPropertyTransaction,
4
- burnDigitalAssetTransaction,
5
- createCollectionTransaction,
6
- freezeDigitalAssetTransferTransaction,
7
- getCollectionData,
8
- getCollectionDataByCollectionId,
9
- getCollectionDataByCreatorAddress,
10
- getCollectionDataByCreatorAddressAndCollectionName,
11
- getCollectionId,
12
- getCurrentDigitalAssetOwnership,
13
- getDigitalAssetActivity,
14
- getDigitalAssetData,
15
- getOwnedDigitalAssets,
16
- mintDigitalAssetTransaction,
17
- mintSoulBoundTransaction,
18
- removeDigitalAssetPropertyTransaction,
19
- setDigitalAssetDescriptionTransaction,
20
- setDigitalAssetNameTransaction,
21
- setDigitalAssetURITransaction,
22
- transferDigitalAssetTransaction,
23
- unfreezeDigitalAssetTransferTransaction,
24
- updateDigitalAssetPropertyTransaction,
25
- updateDigitalAssetTypedPropertyTransaction
26
- } from "./chunk-C7EEG6SW.mjs";
27
- import {
28
- waitForIndexerOnVersion
29
- } from "./chunk-WXQUBQK4.mjs";
30
- import {
31
- AccountAddress
32
- } from "./chunk-CXLXUSCG.mjs";
33
-
34
- // src/api/digitalAsset.ts
35
- var DigitalAsset = class {
36
- /**
37
- * Initializes a new instance of the Aptos client with the specified configuration.
38
- * This allows you to interact with the Aptos blockchain using the provided settings.
39
- *
40
- * @param config - The configuration settings for the Aptos client.
41
- *
42
- * @example
43
- * ```typescript
44
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
45
- *
46
- * async function runExample() {
47
- * // Create a configuration for the Aptos client
48
- * const config = new AptosConfig({ network: Network.TESTNET }); // Specify your desired network
49
- *
50
- * // Initialize the Aptos client with the configuration
51
- * const aptos = new Aptos(config);
52
- *
53
- * console.log("Aptos client initialized:", aptos);
54
- * }
55
- * runExample().catch(console.error);
56
- * ```
57
- * @group DigitalAsset
58
- */
59
- constructor(config) {
60
- this.config = config;
61
- }
62
- /**
63
- * Queries data of a specific collection by the collection creator address and the collection name.
64
- * This function is deprecated; use `getCollectionDataByCreatorAddressAndCollectionName` instead.
65
- *
66
- * If a creator account has two collections with the same name in v1 and v2, you can pass an optional `tokenStandard` parameter
67
- * to query a specific standard.
68
- *
69
- * @param args - The arguments for querying the collection data.
70
- * @param args.creatorAddress - The address of the collection's creator.
71
- * @param args.collectionName - The name of the collection.
72
- * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
73
- * @param args.options - Optional parameters for the query.
74
- * @param args.options.tokenStandard - The token standard to query.
75
- * @returns GetCollectionDataResponse - The response type containing the collection data.
76
- *
77
- * @example
78
- * ```typescript
79
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
80
- *
81
- * const config = new AptosConfig({ network: Network.TESTNET });
82
- * const aptos = new Aptos(config);
83
- *
84
- * async function runExample() {
85
- * // Querying collection data by creator address and collection name
86
- * const collection = await aptos.getCollectionData({
87
- * creatorAddress: "0x1", // replace with a real creator address
88
- * collectionName: "myCollection", // specify your collection name
89
- * });
90
- *
91
- * console.log(collection);
92
- * }
93
- * runExample().catch(console.error);
94
- * ```
95
- * @group DigitalAsset
96
- */
97
- async getCollectionData(args) {
98
- await waitForIndexerOnVersion({
99
- config: this.config,
100
- minimumLedgerVersion: args.minimumLedgerVersion,
101
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
102
- });
103
- const { creatorAddress, collectionName, options } = args;
104
- const address = AccountAddress.from(creatorAddress);
105
- const whereCondition = {
106
- collection_name: { _eq: collectionName },
107
- creator_address: { _eq: address.toStringLong() }
108
- };
109
- if (options?.tokenStandard) {
110
- whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
111
- }
112
- return getCollectionData({ aptosConfig: this.config, options: { where: whereCondition } });
113
- }
114
- /**
115
- * Queries data of a specific collection by the collection creator address and the collection name.
116
- * If a creator account has multiple collections with the same name across different versions,
117
- * specify the `tokenStandard` parameter to query a specific standard.
118
- *
119
- * @param args.creatorAddress - The address of the collection's creator.
120
- * @param args.collectionName - The name of the collection.
121
- * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
122
- * @param args.options.tokenStandard - Optional token standard to query.
123
- * @returns GetCollectionDataResponse - The response type containing collection data.
124
- *
125
- * @example
126
- * ```typescript
127
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
128
- *
129
- * const config = new AptosConfig({ network: Network.TESTNET });
130
- * const aptos = new Aptos(config);
131
- *
132
- * async function runExample() {
133
- * // Fetching collection data by creator address and collection name
134
- * const collection = await aptos.getCollectionDataByCreatorAddressAndCollectionName({
135
- * creatorAddress: "0x1", // replace with a real creator address
136
- * collectionName: "myCollection",
137
- * minimumLedgerVersion: 1, // optional, specify if needed
138
- * options: { tokenStandard: "v2" } // optional, specify if needed
139
- * });
140
- *
141
- * console.log(collection);
142
- * }
143
- * runExample().catch(console.error);
144
- * ```
145
- * @group DigitalAsset
146
- */
147
- async getCollectionDataByCreatorAddressAndCollectionName(args) {
148
- await waitForIndexerOnVersion({
149
- config: this.config,
150
- minimumLedgerVersion: args.minimumLedgerVersion,
151
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
152
- });
153
- return getCollectionDataByCreatorAddressAndCollectionName({ aptosConfig: this.config, ...args });
154
- }
155
- /**
156
- * Retrieves data for a specific collection created by a given creator address.
157
- * This function allows you to query collection data while optionally specifying a minimum ledger version and pagination options.
158
- *
159
- * @param args.creatorAddress - The address of the collection's creator.
160
- * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
161
- * @param args.options.tokenStandard - Optional token standard to query.
162
- * @param args.options.pagination - Optional pagination arguments.
163
- * @returns GetCollectionDataResponse - The response type containing collection data.
164
- *
165
- * @example
166
- * ```typescript
167
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
168
- *
169
- * const config = new AptosConfig({ network: Network.TESTNET });
170
- * const aptos = new Aptos(config);
171
- *
172
- * async function runExample() {
173
- * // Retrieve collection data by creator address
174
- * const collectionData = await aptos.getCollectionDataByCreatorAddress({
175
- * creatorAddress: "0x1", // replace with a real creator address
176
- * minimumLedgerVersion: 1, // specify the minimum ledger version if needed
177
- * options: {
178
- * tokenStandard: "v2", // specify the token standard if needed
179
- * pagination: { limit: 10, offset: 0 } // specify pagination options if needed
180
- * }
181
- * });
182
- *
183
- * console.log(collectionData);
184
- * }
185
- * runExample().catch(console.error);
186
- * ```
187
- * @group DigitalAsset
188
- */
189
- async getCollectionDataByCreatorAddress(args) {
190
- await waitForIndexerOnVersion({
191
- config: this.config,
192
- minimumLedgerVersion: args.minimumLedgerVersion,
193
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
194
- });
195
- return getCollectionDataByCreatorAddress({ aptosConfig: this.config, ...args });
196
- }
197
- /**
198
- * Queries data of a specific collection by the collection ID.
199
- *
200
- * @param args.collectionId - The ID of the collection, which is the same as the address of the collection object.
201
- * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
202
- * @param args.options - Optional parameters for token standard and pagination.
203
- * @returns GetCollectionDataResponse - The response type containing the collection data.
204
- *
205
- * @example
206
- * ```typescript
207
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
208
- *
209
- * const config = new AptosConfig({ network: Network.TESTNET });
210
- * const aptos = new Aptos(config);
211
- *
212
- * async function runExample() {
213
- * // Fetching collection data by collection ID
214
- * const collection = await aptos.getCollectionDataByCollectionId({
215
- * collectionId: "0x123", // replace with a real collection ID
216
- * });
217
- *
218
- * console.log(collection);
219
- * }
220
- * runExample().catch(console.error);
221
- * ```
222
- * @group DigitalAsset
223
- */
224
- async getCollectionDataByCollectionId(args) {
225
- await waitForIndexerOnVersion({
226
- config: this.config,
227
- minimumLedgerVersion: args.minimumLedgerVersion,
228
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
229
- });
230
- return getCollectionDataByCollectionId({ aptosConfig: this.config, ...args });
231
- }
232
- /**
233
- * Queries the ID of a specified collection.
234
- * This ID corresponds to the collection's object address in V2, while V1 does not utilize objects and lacks an address.
235
- *
236
- * @param args.creatorAddress - The address of the collection's creator.
237
- * @param args.collectionName - The name of the collection.
238
- * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
239
- * @param args.options.tokenStandard - The token standard to query.
240
- * @returns The collection ID.
241
- *
242
- * @example
243
- * ```typescript
244
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
245
- *
246
- * const config = new AptosConfig({ network: Network.TESTNET });
247
- * const aptos = new Aptos(config);
248
- *
249
- * async function runExample() {
250
- * // Fetching the collection ID for a specific creator and collection name
251
- * const collectionId = await aptos.getCollectionId({
252
- * creatorAddress: "0x1", // replace with a real creator address
253
- * collectionName: "myCollection"
254
- * });
255
- *
256
- * console.log("Collection ID:", collectionId);
257
- * }
258
- * runExample().catch(console.error);
259
- * ```
260
- * @group DigitalAsset
261
- */
262
- async getCollectionId(args) {
263
- await waitForIndexerOnVersion({
264
- config: this.config,
265
- minimumLedgerVersion: args.minimumLedgerVersion,
266
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
267
- });
268
- return getCollectionId({ aptosConfig: this.config, ...args });
269
- }
270
- /**
271
- * Retrieves digital asset data using the address of a digital asset.
272
- *
273
- * @param args - The parameters for the request.
274
- * @param args.digitalAssetAddress - The address of the digital asset.
275
- * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
276
- * @returns GetTokenDataResponse containing relevant data for the digital asset.
277
- *
278
- * @example
279
- * ```typescript
280
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
281
- *
282
- * const config = new AptosConfig({ network: Network.TESTNET });
283
- * const aptos = new Aptos(config);
284
- *
285
- * async function runExample() {
286
- * // Fetching digital asset data for a specific address
287
- * const digitalAsset = await aptos.getDigitalAssetData({
288
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
289
- * });
290
- *
291
- * console.log(digitalAsset);
292
- * }
293
- * runExample().catch(console.error);
294
- * ```
295
- * @group DigitalAsset
296
- */
297
- async getDigitalAssetData(args) {
298
- await waitForIndexerOnVersion({
299
- config: this.config,
300
- minimumLedgerVersion: args.minimumLedgerVersion,
301
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
302
- });
303
- return getDigitalAssetData({ aptosConfig: this.config, ...args });
304
- }
305
- /**
306
- * Retrieves the current ownership data of a specified digital asset using its address.
307
- *
308
- * @param args The parameters for the request.
309
- * @param args.digitalAssetAddress The address of the digital asset.
310
- * @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
311
- *
312
- * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
313
- *
314
- * @example
315
- * ```typescript
316
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
317
- *
318
- * const config = new AptosConfig({ network: Network.TESTNET });
319
- * const aptos = new Aptos(config);
320
- *
321
- * async function runExample() {
322
- * // Getting the current ownership of a digital asset
323
- * const digitalAssetOwner = await aptos.getCurrentDigitalAssetOwnership({
324
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
325
- * });
326
- *
327
- * console.log(digitalAssetOwner);
328
- * }
329
- * runExample().catch(console.error);
330
- * ```
331
- * @group DigitalAsset
332
- */
333
- async getCurrentDigitalAssetOwnership(args) {
334
- await waitForIndexerOnVersion({
335
- config: this.config,
336
- minimumLedgerVersion: args.minimumLedgerVersion,
337
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
338
- });
339
- return getCurrentDigitalAssetOwnership({ aptosConfig: this.config, ...args });
340
- }
341
- /**
342
- * Retrieves the digital assets owned by a specified address.
343
- *
344
- * @param args.ownerAddress The address of the owner.
345
- * @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
346
- * @param args.options Optional pagination and ordering parameters for the response.
347
- *
348
- * @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddress.
349
- *
350
- * @example
351
- * ```typescript
352
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
353
- *
354
- * const config = new AptosConfig({ network: Network.TESTNET });
355
- * const aptos = new Aptos(config);
356
- *
357
- * async function runExample() {
358
- * // Fetching the digital assets owned by the specified address
359
- * const digitalAssets = await aptos.getOwnedDigitalAssets({
360
- * ownerAddress: "0x1", // replace with a real account address
361
- * });
362
- *
363
- * console.log(digitalAssets);
364
- * }
365
- * runExample().catch(console.error);
366
- * ```
367
- * @group DigitalAsset
368
- */
369
- async getOwnedDigitalAssets(args) {
370
- await waitForIndexerOnVersion({
371
- config: this.config,
372
- minimumLedgerVersion: args.minimumLedgerVersion,
373
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
374
- });
375
- return getOwnedDigitalAssets({ aptosConfig: this.config, ...args });
376
- }
377
- /**
378
- * Retrieves the activity data for a specified digital asset using its address.
379
- *
380
- * @param args - The parameters for the request.
381
- * @param args.digitalAssetAddress - The address of the digital asset.
382
- * @param args.minimumLedgerVersion - Optional minimum ledger version to sync up to before querying.
383
- * @param args.options - Optional pagination and ordering parameters.
384
- *
385
- * @returns A promise that resolves to the activity data related to the digital asset.
386
- *
387
- * @example
388
- * ```typescript
389
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
390
- *
391
- * const config = new AptosConfig({ network: Network.TESTNET });
392
- * const aptos = new Aptos(config);
393
- *
394
- * async function runExample() {
395
- * // Get the activity data for a digital asset
396
- * const digitalAssetActivity = await aptos.getDigitalAssetActivity({
397
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
398
- * });
399
- *
400
- * console.log(digitalAssetActivity);
401
- * }
402
- * runExample().catch(console.error);
403
- * ```
404
- * @group DigitalAsset
405
- */
406
- async getDigitalAssetActivity(args) {
407
- await waitForIndexerOnVersion({
408
- config: this.config,
409
- minimumLedgerVersion: args.minimumLedgerVersion,
410
- processorType: "token_v2_processor" /* TOKEN_V2_PROCESSOR */
411
- });
412
- return getDigitalAssetActivity({ aptosConfig: this.config, ...args });
413
- }
414
- /**
415
- * Creates a new collection within the specified account.
416
- *
417
- * @param args.creator - The account of the collection's creator.
418
- * @param args.description - The description of the collection.
419
- * @param args.name - The name of the collection.
420
- * @param args.uri - The URI to additional info about the collection.
421
- * @param args.options - Optional parameters for generating the transaction.
422
- *
423
- * The parameters below are optional:
424
- * @param args.maxSupply - Controls the max supply of the digital assets. Defaults to MAX_U64_BIG_INT.
425
- * @param args.mutableDescription - Controls mutability of the collection's description. Defaults to true.
426
- * @param args.mutableRoyalty - Controls mutability of the collection's royalty. Defaults to true.
427
- * @param args.mutableUri - Controls mutability of the collection's URI. Defaults to true.
428
- * @param args.mutableTokenDescription - Controls mutability of the digital asset's description. Defaults to true.
429
- * @param args.mutableTokenName - Controls mutability of the digital asset's name. Defaults to true.
430
- * @param args.mutableTokenProperties - Controls mutability of digital asset's properties. Defaults to true.
431
- * @param args.mutableTokenUri - Controls mutability of the digital asset's URI. Defaults to true.
432
- * @param args.tokensBurnableByCreator - Controls whether digital assets can be burnable by the creator. Defaults to true.
433
- * @param args.tokensFreezableByCreator - Controls whether digital assets can be frozen by the creator. Defaults to true.
434
- * @param args.royaltyNumerator - The numerator of the royalty to be paid to the creator when a digital asset is transferred.
435
- * Defaults to 0.
436
- * @param args.royaltyDenominator - The denominator of the royalty to be paid to the creator when a digital asset is
437
- * transferred. Defaults to 1.
438
- *
439
- * @returns A SimpleTransaction that when submitted will create the collection.
440
- *
441
- * @example
442
- * ```typescript
443
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
444
- *
445
- * const config = new AptosConfig({ network: Network.TESTNET });
446
- * const aptos = new Aptos(config);
447
- *
448
- * async function runExample() {
449
- * // Creating a new collection transaction
450
- * const transaction = await aptos.createCollectionTransaction({
451
- * creator: Account.generate(), // Replace with a real account
452
- * description: "A unique collection of digital assets.",
453
- * name: "My Digital Collection",
454
- * uri: "https://mycollection.com",
455
- * });
456
- *
457
- * console.log("Transaction created:", transaction);
458
- * }
459
- * runExample().catch(console.error);
460
- * ```
461
- * @group DigitalAsset
462
- */
463
- async createCollectionTransaction(args) {
464
- return createCollectionTransaction({ aptosConfig: this.config, ...args });
465
- }
466
- /**
467
- * Create a transaction to mint a digital asset into the creator's account within an existing collection.
468
- * This function helps you generate a transaction that can be simulated or submitted to the blockchain for minting a digital asset.
469
- *
470
- * @param args.creator - The creator of the collection.
471
- * @param args.collection - The name of the collection the digital asset belongs to.
472
- * @param args.description - The description of the digital asset.
473
- * @param args.name - The name of the digital asset.
474
- * @param args.uri - The URI to additional info about the digital asset.
475
- * @param args.propertyKeys - Optional array of property keys for the digital asset.
476
- * @param args.propertyTypes - Optional array of property types for the digital asset.
477
- * @param args.propertyValues - Optional array of property values for the digital asset.
478
- * @param args.options - Optional transaction generation options.
479
- *
480
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
481
- *
482
- * @example
483
- * ```typescript
484
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
485
- *
486
- * const config = new AptosConfig({ network: Network.TESTNET });
487
- * const aptos = new Aptos(config);
488
- *
489
- * async function runExample() {
490
- * // Creating a transaction to mint a digital asset
491
- * const transaction = await aptos.mintDigitalAssetTransaction({
492
- * creator: Account.generate(), // replace with a real account
493
- * collection: "MyCollection",
494
- * description: "This is a digital asset.",
495
- * name: "MyDigitalAsset",
496
- * uri: "https://example.com/my-digital-asset",
497
- * });
498
- *
499
- * console.log(transaction);
500
- * }
501
- * runExample().catch(console.error);
502
- * ```
503
- * @group DigitalAsset
504
- */
505
- async mintDigitalAssetTransaction(args) {
506
- return mintDigitalAssetTransaction({ aptosConfig: this.config, ...args });
507
- }
508
- /**
509
- * Transfer ownership of a non-fungible digital asset.
510
- * This function allows you to transfer a digital asset only if it is not frozen, meaning the ownership transfer is not disabled.
511
- *
512
- * @param args The arguments for transferring the digital asset.
513
- * @param args.sender The sender account of the current digital asset owner.
514
- * @param args.digitalAssetAddress The address of the digital asset being transferred.
515
- * @param args.recipient The account address of the recipient.
516
- * @param args.digitalAssetType Optional. The type of the digital asset, defaults to "0x4::token::Token".
517
- * @param args.options Optional. Additional options for generating the transaction.
518
- *
519
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
520
- *
521
- * @example
522
- * ```typescript
523
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
524
- *
525
- * const config = new AptosConfig({ network: Network.TESTNET });
526
- * const aptos = new Aptos(config);
527
- *
528
- * async function runExample() {
529
- * // Transfer a digital asset
530
- * const transaction = await aptos.transferDigitalAssetTransaction({
531
- * sender: Account.generate(), // replace with a real sender account
532
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
533
- * recipient: "0x456", // replace with a real recipient account address
534
- * });
535
- *
536
- * console.log(transaction);
537
- * }
538
- * runExample().catch(console.error);
539
- * ```
540
- * @group DigitalAsset
541
- */
542
- async transferDigitalAssetTransaction(args) {
543
- return transferDigitalAssetTransaction({ aptosConfig: this.config, ...args });
544
- }
545
- /**
546
- * Mint a soul bound digital asset into a recipient's account.
547
- * This function allows you to create a unique digital asset that is bound to a specific account.
548
- *
549
- * @param args - The arguments for minting the soul bound transaction.
550
- * @param args.account - The account that mints the digital asset.
551
- * @param args.collection - The collection name that the digital asset belongs to.
552
- * @param args.description - The digital asset description.
553
- * @param args.name - The digital asset name.
554
- * @param args.uri - The digital asset URL.
555
- * @param args.recipient - The account address where the digital asset will be created.
556
- * @param args.propertyKeys - The property keys for storing on-chain properties.
557
- * @param args.propertyTypes - The type of property values.
558
- * @param args.propertyValues - The property values to be stored on-chain.
559
- * @param args.options - Additional options for generating the transaction.
560
- *
561
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
562
- *
563
- * @example
564
- * ```typescript
565
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
566
- *
567
- * const config = new AptosConfig({ network: Network.TESTNET });
568
- * const aptos = new Aptos(config);
569
- *
570
- * async function runExample() {
571
- * // Mint a soul bound digital asset
572
- * const transaction = await aptos.mintSoulBoundTransaction({
573
- * account: Account.generate(), // Replace with a real account
574
- * collection: "collectionName",
575
- * description: "collectionDescription",
576
- * name: "digitalAssetName",
577
- * uri: "digital-asset-uri.com",
578
- * recipient: "0x123" // Replace with a real recipient account address
579
- * });
580
- *
581
- * console.log(transaction);
582
- * }
583
- * runExample().catch(console.error);
584
- * ```
585
- * @group DigitalAsset
586
- */
587
- async mintSoulBoundTransaction(args) {
588
- return mintSoulBoundTransaction({ aptosConfig: this.config, ...args });
589
- }
590
- /**
591
- * Burn a digital asset by its creator, allowing for the removal of a specified digital asset from the blockchain.
592
- *
593
- * @param args The arguments for burning the digital asset.
594
- * @param args.creator The creator account that is burning the digital asset.
595
- * @param args.digitalAssetAddress The address of the digital asset to be burned.
596
- * @param args.digitalAssetType Optional. The type of the digital asset being burned.
597
- * @param args.options Optional. Additional options for generating the transaction.
598
- *
599
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
600
- *
601
- * @example
602
- * ```typescript
603
- * import { Aptos, AptosConfig, Network, Account } from "@aptos-labs/ts-sdk";
604
- *
605
- * const config = new AptosConfig({ network: Network.TESTNET });
606
- * const aptos = new Aptos(config);
607
- *
608
- * async function runExample() {
609
- * const creator = Account.generate(); // Replace with a real creator account
610
- * const transaction = await aptos.burnDigitalAssetTransaction({
611
- * creator: creator,
612
- * digitalAssetAddress: "0x123", // Replace with a real digital asset address
613
- * });
614
- *
615
- * console.log(transaction);
616
- * }
617
- * runExample().catch(console.error);
618
- * ```
619
- * @group DigitalAsset
620
- */
621
- async burnDigitalAssetTransaction(args) {
622
- return burnDigitalAssetTransaction({ aptosConfig: this.config, ...args });
623
- }
624
- /**
625
- * Freeze the ability to transfer a specified digital asset.
626
- * This function allows the creator to restrict the transfer capability of a digital asset.
627
- *
628
- * @param args The arguments for freezing the digital asset transfer.
629
- * @param args.creator The creator account initiating the freeze.
630
- * @param args.digitalAssetAddress The address of the digital asset to be frozen.
631
- * @param args.digitalAssetType Optional. The type of the digital asset being frozen.
632
- * @param args.options Optional. Additional options for generating the transaction.
633
- *
634
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
635
- *
636
- * @example
637
- * ```typescript
638
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
639
- *
640
- * const config = new AptosConfig({ network: Network.TESTNET });
641
- * const aptos = new Aptos(config);
642
- *
643
- * async function runExample() {
644
- * // Freeze the digital asset transfer
645
- * const transaction = await aptos.freezeDigitalAssetTransaferTransaction({
646
- * creator: Account.generate(), // Replace with a real account if needed
647
- * digitalAssetAddress: "0x123", // Replace with a real digital asset address
648
- * });
649
- *
650
- * console.log(transaction);
651
- * }
652
- * runExample().catch(console.error);
653
- * ```
654
- * @group DigitalAsset
655
- */
656
- async freezeDigitalAssetTransaferTransaction(args) {
657
- return freezeDigitalAssetTransferTransaction({ aptosConfig: this.config, ...args });
658
- }
659
- /**
660
- * Unfreeze the ability to transfer a digital asset.
661
- * This function allows the specified creator account to unfreeze the transfer of a digital asset identified by its address.
662
- *
663
- * @param args The parameters for unfreezing the digital asset transfer.
664
- * @param args.creator The creator account that is unfreezing the digital asset transfer.
665
- * @param args.digitalAssetAddress The address of the digital asset to unfreeze.
666
- * @param args.digitalAssetType Optional. The type of the digital asset being unfrozen.
667
- * @param args.options Optional. Additional options for generating the transaction.
668
- *
669
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
670
- *
671
- * @example
672
- * ```typescript
673
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
674
- *
675
- * const config = new AptosConfig({ network: Network.TESTNET });
676
- * const aptos = new Aptos(config);
677
- *
678
- * async function runExample() {
679
- * // Unfreeze the ability to transfer a digital asset
680
- * const transaction = await aptos.unfreezeDigitalAssetTransaferTransaction({
681
- * creator: Account.generate(), // replace with a real creator account
682
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
683
- * });
684
- *
685
- * console.log(transaction);
686
- * }
687
- * runExample().catch(console.error);
688
- * ```
689
- * @group DigitalAsset
690
- */
691
- // TODO: Rename Transafer to Transfer
692
- async unfreezeDigitalAssetTransaferTransaction(args) {
693
- return unfreezeDigitalAssetTransferTransaction({ aptosConfig: this.config, ...args });
694
- }
695
- /**
696
- * Set the digital asset description to provide additional context or information about the asset.
697
- *
698
- * @param args The parameters for setting the digital asset description.
699
- * @param args.creator The creator account responsible for the digital asset.
700
- * @param args.description The digital asset description to be set.
701
- * @param args.digitalAssetAddress The address of the digital asset.
702
- * @param args.digitalAssetType Optional. The type of the digital asset.
703
- * @param args.options Optional. Additional options for generating the transaction.
704
- *
705
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
706
- *
707
- * @example
708
- * ```typescript
709
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
710
- *
711
- * const config = new AptosConfig({ network: Network.TESTNET });
712
- * const aptos = new Aptos(config);
713
- *
714
- * async function runExample() {
715
- * // Set the digital asset description
716
- * const transaction = await aptos.setDigitalAssetDescriptionTransaction({
717
- * creator: Account.generate(), // replace with a real account
718
- * description: "This is a digital asset description.",
719
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
720
- * });
721
- *
722
- * console.log(transaction);
723
- * }
724
- * runExample().catch(console.error);
725
- * ```
726
- * @group DigitalAsset
727
- */
728
- async setDigitalAssetDescriptionTransaction(args) {
729
- return setDigitalAssetDescriptionTransaction({ aptosConfig: this.config, ...args });
730
- }
731
- /**
732
- * Set the digital asset name, allowing you to define a name for a specific digital asset on the blockchain.
733
- *
734
- * @param args The parameters for setting the digital asset name.
735
- * @param args.creator The creator account responsible for the transaction.
736
- * @param args.name The desired name for the digital asset.
737
- * @param args.digitalAssetAddress The address of the digital asset.
738
- * @param args.digitalAssetType Optional. The type of the digital asset, represented as a Move struct ID.
739
- * @param args.options Optional. Additional options for generating the transaction.
740
- *
741
- * @returns A SimpleTransaction that can be simulated or submitted to the blockchain.
742
- *
743
- * @example
744
- * ```typescript
745
- * import { Aptos, AptosConfig, Network, Account } from "@aptos-labs/ts-sdk";
746
- *
747
- * const config = new AptosConfig({ network: Network.TESTNET });
748
- * const aptos = new Aptos(config);
749
- *
750
- * async function runExample() {
751
- * const creator = Account.generate(); // Generate a new account for the creator
752
- * const digitalAssetAddress = "0x123"; // replace with a real digital asset address
753
- *
754
- * // Set the digital asset name
755
- * const transaction = await aptos.setDigitalAssetNameTransaction({
756
- * creator: creator,
757
- * name: "digitalAssetName",
758
- * digitalAssetAddress: digitalAssetAddress,
759
- * });
760
- *
761
- * console.log(transaction);
762
- * }
763
- * runExample().catch(console.error);
764
- * ```
765
- * @group DigitalAsset
766
- */
767
- async setDigitalAssetNameTransaction(args) {
768
- return setDigitalAssetNameTransaction({ aptosConfig: this.config, ...args });
769
- }
770
- /**
771
- * Set the URI for a digital asset, allowing you to associate a unique identifier with the asset.
772
- *
773
- * @param args The parameters for the transaction.
774
- * @param args.creator The creator account initiating the transaction.
775
- * @param args.uri The digital asset URI to be set.
776
- * @param args.digitalAssetAddress The address of the digital asset.
777
- * @param args.digitalAssetType Optional. The type of the digital asset.
778
- * @param args.options Optional. Additional options for generating the transaction.
779
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
780
- *
781
- * @example
782
- * ```typescript
783
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
784
- *
785
- * const config = new AptosConfig({ network: Network.TESTNET });
786
- * const aptos = new Aptos(config);
787
- *
788
- * async function runExample() {
789
- * // Set the URI for a digital asset
790
- * const transaction = await aptos.setDigitalAssetURITransaction({
791
- * creator: Account.generate(), // Replace with a real creator account
792
- * uri: "digital-asset-uri.com",
793
- * digitalAssetAddress: "0x123", // Replace with a real digital asset address
794
- * });
795
- *
796
- * console.log(transaction);
797
- * }
798
- * runExample().catch(console.error);
799
- * ```
800
- * @group DigitalAsset
801
- */
802
- async setDigitalAssetURITransaction(args) {
803
- return setDigitalAssetURITransaction({ aptosConfig: this.config, ...args });
804
- }
805
- /**
806
- * Add a digital asset property to the blockchain.
807
- * This function allows you to specify a new property for a digital asset, including its key, type, and value.
808
- *
809
- * @param args - The arguments for adding a digital asset property.
810
- * @param args.creator - The account that mints the digital asset.
811
- * @param args.propertyKey - The property key for storing on-chain properties.
812
- * @param args.propertyType - The type of property value.
813
- * @param args.propertyValue - The property value to be stored on-chain.
814
- * @param args.digitalAssetAddress - The digital asset address.
815
- * @param args.digitalAssetType - (Optional) The type of the digital asset.
816
- * @param args.options - (Optional) Options for generating the transaction.
817
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
818
- *
819
- * @example
820
- * ```typescript
821
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
822
- *
823
- * const config = new AptosConfig({ network: Network.TESTNET });
824
- * const aptos = new Aptos(config);
825
- *
826
- * async function runExample() {
827
- * // Add a digital asset property
828
- * const transaction = await aptos.addDigitalAssetPropertyTransaction({
829
- * creator: Account.generate(), // Replace with a real account
830
- * propertyKey: "newKey",
831
- * propertyType: "BOOLEAN",
832
- * propertyValue: true,
833
- * digitalAssetAddress: "0x123", // Replace with a real digital asset address
834
- * });
835
- *
836
- * console.log(transaction);
837
- * }
838
- * runExample().catch(console.error);
839
- * ```
840
- * @group DigitalAsset
841
- */
842
- async addDigitalAssetPropertyTransaction(args) {
843
- return addDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
844
- }
845
- /**
846
- * Remove a digital asset property from the blockchain.
847
- * This function allows you to delete an existing property associated with a digital asset.
848
- *
849
- * @param args The parameters required to remove the digital asset property.
850
- * @param args.creator The account that mints the digital asset.
851
- * @param args.propertyKey The property key for storing on-chain properties.
852
- * @param args.propertyType The type of property value.
853
- * @param args.propertyValue The property value to be stored on-chain.
854
- * @param args.digitalAssetAddress The digital asset address.
855
- * @param args.digitalAssetType Optional. The type of the digital asset.
856
- * @param args.options Optional. Additional options for generating the transaction.
857
- *
858
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
859
- *
860
- * @example
861
- * ```typescript
862
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
863
- *
864
- * const config = new AptosConfig({ network: Network.TESTNET });
865
- * const aptos = new Aptos(config);
866
- *
867
- * async function runExample() {
868
- * // Remove a digital asset property
869
- * const transaction = await aptos.removeDigitalAssetPropertyTransaction({
870
- * creator: Account.generate(), // replace with a real account
871
- * propertyKey: "newKey",
872
- * propertyType: "BOOLEAN",
873
- * propertyValue: true,
874
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
875
- * });
876
- *
877
- * console.log(transaction);
878
- * }
879
- * runExample().catch(console.error);
880
- * ```
881
- * @group DigitalAsset
882
- */
883
- async removeDigitalAssetPropertyTransaction(args) {
884
- return removeDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
885
- }
886
- /**
887
- * Update a digital asset property on-chain.
888
- *
889
- * @param args The parameters for updating the digital asset property.
890
- * @param args.creator The account that mints the digital asset.
891
- * @param args.digitalAssetAddress The address of the digital asset.
892
- * @param args.propertyKey The property key for storing on-chain properties.
893
- * @param args.propertyType The type of property value.
894
- * @param args.propertyValue The property value to be stored on-chain.
895
- * @param args.digitalAssetType Optional. The type of the digital asset.
896
- * @param args.options Optional. Additional options for generating the transaction.
897
- *
898
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
899
- *
900
- * @example
901
- * ```typescript
902
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
903
- *
904
- * const config = new AptosConfig({ network: Network.TESTNET });
905
- * const aptos = new Aptos(config);
906
- *
907
- * async function runExample() {
908
- * // Update a digital asset property
909
- * const transaction = await aptos.updateDigitalAssetPropertyTransaction({
910
- * creator: Account.generate(), // replace with a real account
911
- * propertyKey: "newKey",
912
- * propertyType: "BOOLEAN",
913
- * propertyValue: false,
914
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
915
- * });
916
- *
917
- * console.log(transaction);
918
- * }
919
- * runExample().catch(console.error);
920
- * ```
921
- * @group DigitalAsset
922
- */
923
- async updateDigitalAssetPropertyTransaction(args) {
924
- return updateDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
925
- }
926
- /**
927
- * Add a typed digital asset property to the blockchain.
928
- * This function allows you to define and store a specific property for a digital asset, enabling better categorization and
929
- * management of digital assets.
930
- *
931
- * @param args - The parameters for adding the typed property.
932
- * @param args.creator - The account that mints the digital asset.
933
- * @param args.propertyKey - The property key for storing on-chain properties.
934
- * @param args.propertyType - The type of property value.
935
- * @param args.propertyValue - The property value to be stored on-chain.
936
- * @param args.digitalAssetAddress - The digital asset address.
937
- * @param args.digitalAssetType - The optional type of the digital asset.
938
- * @param args.options - Optional transaction generation options.
939
- *
940
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
941
- *
942
- * @example
943
- * ```typescript
944
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
945
- *
946
- * const config = new AptosConfig({ network: Network.TESTNET });
947
- * const aptos = new Aptos(config);
948
- *
949
- * async function runExample() {
950
- * // Adding a typed digital asset property
951
- * const transaction = await aptos.addDigitalAssetTypedPropertyTransaction({
952
- * creator: Account.generate(), // replace with a real account
953
- * propertyKey: "typedKey",
954
- * propertyType: "STRING",
955
- * propertyValue: "hello",
956
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
957
- * });
958
- *
959
- * console.log(transaction);
960
- * }
961
- * runExample().catch(console.error);
962
- * ```
963
- * @group DigitalAsset
964
- */
965
- async addDigitalAssetTypedPropertyTransaction(args) {
966
- return addDigitalAssetTypedPropertyTransaction({ aptosConfig: this.config, ...args });
967
- }
968
- /**
969
- * Update a typed digital asset property on-chain.
970
- * This function allows you to modify the properties of a digital asset, enabling dynamic updates to its attributes.
971
- *
972
- * @param args - The arguments for updating the digital asset property.
973
- * @param args.creator - The account that mints the digital asset.
974
- * @param args.propertyKey - The property key for storing on-chain properties.
975
- * @param args.propertyType - The type of property value.
976
- * @param args.propertyValue - The property value to be stored on-chain.
977
- * @param args.digitalAssetAddress - The digital asset address.
978
- * @param args.digitalAssetType - (Optional) The type of the digital asset.
979
- * @param args.options - (Optional) Additional options for generating the transaction.
980
- *
981
- * @returns A SimpleTransaction that can be simulated or submitted to the chain.
982
- *
983
- * @example
984
- * ```typescript
985
- * import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
986
- *
987
- * const config = new AptosConfig({ network: Network.TESTNET });
988
- * const aptos = new Aptos(config);
989
- *
990
- * async function runExample() {
991
- * // Update a typed digital asset property
992
- * const transaction = await aptos.updateDigitalAssetTypedPropertyTransaction({
993
- * creator: Account.generate(), // replace with a real account
994
- * propertyKey: "typedKey",
995
- * propertyType: "U8",
996
- * propertyValue: 2,
997
- * digitalAssetAddress: "0x123", // replace with a real digital asset address
998
- * });
999
- *
1000
- * console.log(transaction);
1001
- * }
1002
- * runExample().catch(console.error);
1003
- * ```
1004
- * @group DigitalAsset
1005
- */
1006
- async updateDigitalAssetTypedPropertyTransaction(args) {
1007
- return updateDigitalAssetTypedPropertyTransaction({ aptosConfig: this.config, ...args });
1008
- }
1009
- };
1010
-
1011
- export {
1012
- DigitalAsset
1013
- };
1014
- //# sourceMappingURL=chunk-A33OBGVN.mjs.map