@aptos-labs/ts-sdk 0.0.8 → 1.1.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 (296) hide show
  1. package/README.md +17 -17
  2. package/dist/browser/index.d.ts +528 -209
  3. package/dist/browser/index.global.js +25 -25
  4. package/dist/browser/index.global.js.map +1 -1
  5. package/dist/common/index.d.ts +528 -209
  6. package/dist/common/index.js +26 -26
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/api/account.mjs +1 -1
  9. package/dist/esm/api/ans.d.mts +9 -9
  10. package/dist/esm/api/ans.mjs +1 -1
  11. package/dist/esm/api/aptos.d.mts +4 -11
  12. package/dist/esm/api/aptos.mjs +1 -1
  13. package/dist/esm/api/coin.d.mts +3 -3
  14. package/dist/esm/api/coin.mjs +1 -1
  15. package/dist/esm/api/digitalAsset.d.mts +317 -73
  16. package/dist/esm/api/digitalAsset.mjs +1 -1
  17. package/dist/esm/api/event.mjs +1 -1
  18. package/dist/esm/api/faucet.mjs +1 -1
  19. package/dist/esm/api/fungibleAsset.d.mts +3 -3
  20. package/dist/esm/api/fungibleAsset.mjs +1 -1
  21. package/dist/esm/api/general.mjs +1 -1
  22. package/dist/esm/api/index.d.mts +0 -2
  23. package/dist/esm/api/index.mjs +1 -1
  24. package/dist/esm/api/staking.mjs +1 -1
  25. package/dist/esm/api/transaction.d.mts +118 -13
  26. package/dist/esm/api/transaction.mjs +1 -1
  27. package/dist/esm/api/transactionSubmission/build.d.mts +25 -4
  28. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/helpers.d.mts +4 -0
  30. package/dist/esm/api/transactionSubmission/helpers.mjs +2 -0
  31. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  32. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  33. package/dist/esm/api/transactionSubmission/simulate.d.mts +23 -2
  34. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  35. package/dist/esm/api/transactionSubmission/submit.d.mts +21 -2
  36. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  37. package/dist/esm/api/utils.mjs +1 -1
  38. package/dist/esm/bcs/index.mjs +1 -1
  39. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  40. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  41. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  42. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  43. package/dist/esm/bcs/serializer.mjs +1 -1
  44. package/dist/esm/{chunk-ZJUDDSWN.mjs → chunk-2HBIGMDV.mjs} +2 -2
  45. package/dist/esm/{chunk-GIZLK7M7.mjs → chunk-3O4GKLXA.mjs} +2 -2
  46. package/dist/esm/chunk-3O4GKLXA.mjs.map +1 -0
  47. package/dist/esm/{chunk-CJPCOS4R.mjs → chunk-3QS3MFWJ.mjs} +2 -2
  48. package/dist/esm/{chunk-AZUWHKN5.mjs → chunk-4K252UDE.mjs} +2 -2
  49. package/dist/esm/{chunk-MWAMLQ25.mjs → chunk-4TIQQKXV.mjs} +2 -2
  50. package/dist/esm/{chunk-GMG4VR3K.mjs → chunk-4VG7DV6F.mjs} +2 -2
  51. package/dist/esm/{chunk-CCXMVVXD.mjs → chunk-4ZYW3BPF.mjs} +2 -2
  52. package/dist/esm/chunk-4ZYW3BPF.mjs.map +1 -0
  53. package/dist/esm/{chunk-UW6HQ643.mjs → chunk-5HZKDT5C.mjs} +2 -2
  54. package/dist/esm/{chunk-73VWOS4Z.mjs → chunk-6DYNAFAP.mjs} +2 -2
  55. package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
  56. package/dist/esm/chunk-6EMN3BOV.mjs.map +1 -0
  57. package/dist/esm/{chunk-HTI5LEST.mjs → chunk-6F4ACCCZ.mjs} +2 -2
  58. package/dist/esm/chunk-6MKBROIC.mjs +2 -0
  59. package/dist/esm/chunk-6MKBROIC.mjs.map +1 -0
  60. package/dist/esm/{chunk-53DS6NBQ.mjs → chunk-7B3VSBCX.mjs} +2 -2
  61. package/dist/esm/{chunk-F7EWDYTE.mjs → chunk-7QJYTQSU.mjs} +2 -2
  62. package/dist/esm/{chunk-OZZDXS26.mjs → chunk-AS7RX4RK.mjs} +2 -2
  63. package/dist/esm/chunk-AS7RX4RK.mjs.map +1 -0
  64. package/dist/esm/{chunk-GEZSEAL5.mjs → chunk-BUM2FIHF.mjs} +2 -2
  65. package/dist/esm/chunk-BV6SCEXY.mjs +2 -0
  66. package/dist/esm/chunk-BV6SCEXY.mjs.map +1 -0
  67. package/dist/esm/chunk-C3Y52GHM.mjs +2 -0
  68. package/dist/esm/chunk-C3Y52GHM.mjs.map +1 -0
  69. package/dist/esm/{chunk-OBOOY2QD.mjs → chunk-D2XLC3KK.mjs} +2 -2
  70. package/dist/esm/chunk-EHJEK7FU.mjs +2 -0
  71. package/dist/esm/chunk-EMQWD6KP.mjs +2 -0
  72. package/dist/esm/chunk-EMQWD6KP.mjs.map +1 -0
  73. package/dist/esm/{chunk-PL2VA73L.mjs → chunk-F2GFSFPW.mjs} +2 -2
  74. package/dist/esm/{chunk-GXPGRCSW.mjs → chunk-F52GIFKT.mjs} +2 -2
  75. package/dist/esm/{chunk-QNTV5NMH.mjs → chunk-FGTQT7Q5.mjs} +2 -2
  76. package/dist/esm/{chunk-RCM3K5JL.mjs → chunk-GQI3HWOB.mjs} +2 -2
  77. package/dist/esm/chunk-HDNJ4JK4.mjs +2 -0
  78. package/dist/esm/chunk-HDNJ4JK4.mjs.map +1 -0
  79. package/dist/esm/{chunk-2SAKPC5Q.mjs → chunk-HQ4DGB7L.mjs} +2 -2
  80. package/dist/esm/{chunk-KNMWDGP4.mjs → chunk-IEL6J6Z3.mjs} +2 -2
  81. package/dist/esm/{chunk-NZSGGL25.mjs → chunk-IPW2YTRD.mjs} +2 -2
  82. package/dist/esm/{chunk-F6K26WV5.mjs → chunk-IU5JZNH4.mjs} +2 -2
  83. package/dist/esm/{chunk-Y6PVFMBS.mjs → chunk-KH3M3YPI.mjs} +2 -2
  84. package/dist/esm/chunk-KSWQZKMQ.mjs +2 -0
  85. package/dist/esm/chunk-KSWQZKMQ.mjs.map +1 -0
  86. package/dist/esm/{chunk-5OPOJ43H.mjs → chunk-KVJ2KGMW.mjs} +2 -2
  87. package/dist/esm/{chunk-TZ623H2V.mjs → chunk-LUCDRB52.mjs} +2 -2
  88. package/dist/esm/chunk-LUCDRB52.mjs.map +1 -0
  89. package/dist/esm/{chunk-WTGGCH34.mjs → chunk-N25GOEVL.mjs} +2 -2
  90. package/dist/esm/{chunk-CU2DINU4.mjs → chunk-NLONZHYT.mjs} +2 -2
  91. package/dist/esm/{chunk-FZ56IS3E.mjs → chunk-NMFS5KAE.mjs} +2 -2
  92. package/dist/esm/chunk-NZ6RYGJQ.mjs +2 -0
  93. package/dist/esm/chunk-NZ6RYGJQ.mjs.map +1 -0
  94. package/dist/esm/chunk-OU4MEM5F.mjs +2 -0
  95. package/dist/esm/chunk-OU4MEM5F.mjs.map +1 -0
  96. package/dist/esm/{chunk-KZSJ5MFF.mjs → chunk-OWP2MKTX.mjs} +2 -2
  97. package/dist/esm/{chunk-QCBIJCU4.mjs → chunk-OXO3Z2MF.mjs} +2 -2
  98. package/dist/esm/{chunk-CL5B2QNS.mjs → chunk-PANYJULW.mjs} +2 -2
  99. package/dist/esm/{chunk-QEXAMHPU.mjs → chunk-PJMRQLJ5.mjs} +2 -2
  100. package/dist/esm/chunk-PJMRQLJ5.mjs.map +1 -0
  101. package/dist/esm/{chunk-XMUUI6HG.mjs → chunk-PRKZ2KJ4.mjs} +2 -2
  102. package/dist/esm/{chunk-SGTFMSOG.mjs → chunk-R3SAAJ2N.mjs} +2 -2
  103. package/dist/esm/{chunk-VQ7LYNMD.mjs → chunk-R4APGSSC.mjs} +2 -2
  104. package/dist/esm/{chunk-3F5WV6US.mjs → chunk-RCYWJZR4.mjs} +2 -2
  105. package/dist/esm/chunk-SI6QMT4N.mjs +2 -0
  106. package/dist/esm/chunk-SI6QMT4N.mjs.map +1 -0
  107. package/dist/esm/{chunk-SSJQOXEP.mjs → chunk-SMN2QQ4Q.mjs} +2 -2
  108. package/dist/esm/chunk-SMN2QQ4Q.mjs.map +1 -0
  109. package/dist/esm/chunk-SODP7NAK.mjs +2 -0
  110. package/dist/esm/{chunk-SDPICQ5B.mjs.map → chunk-SODP7NAK.mjs.map} +1 -1
  111. package/dist/esm/{chunk-OT2UDMUU.mjs → chunk-SR7XLV76.mjs} +2 -2
  112. package/dist/esm/{chunk-APSQ4M23.mjs → chunk-T3ID6KFN.mjs} +2 -2
  113. package/dist/esm/{chunk-5UY5OKXR.mjs → chunk-TCSN7PYL.mjs} +2 -2
  114. package/dist/esm/chunk-TCSN7PYL.mjs.map +1 -0
  115. package/dist/esm/chunk-TTDCRLRD.mjs +2 -0
  116. package/dist/esm/chunk-TTDCRLRD.mjs.map +1 -0
  117. package/dist/esm/{chunk-G36AY4R7.mjs → chunk-UR5E2UDO.mjs} +2 -2
  118. package/dist/esm/{chunk-JI2BBZ2W.mjs → chunk-UZB7CTLX.mjs} +2 -2
  119. package/dist/esm/chunk-VA4K6DEK.mjs +2 -0
  120. package/dist/esm/chunk-VA4K6DEK.mjs.map +1 -0
  121. package/dist/esm/{chunk-CLJLQXFQ.mjs → chunk-VBUKPN4Q.mjs} +2 -2
  122. package/dist/esm/chunk-VBUKPN4Q.mjs.map +1 -0
  123. package/dist/esm/{chunk-XITLXPBK.mjs → chunk-VMCFN5CT.mjs} +2 -2
  124. package/dist/esm/{chunk-SRGPSANH.mjs → chunk-YLI6J47P.mjs} +2 -2
  125. package/dist/esm/chunk-YLPG6XMH.mjs +2 -0
  126. package/dist/esm/chunk-YLPG6XMH.mjs.map +1 -0
  127. package/dist/esm/{chunk-HC5VMNXA.mjs → chunk-ZLYSA7JR.mjs} +2 -2
  128. package/dist/esm/client/core.mjs +1 -1
  129. package/dist/esm/client/get.mjs +1 -1
  130. package/dist/esm/client/index.mjs +1 -1
  131. package/dist/esm/client/post.mjs +1 -1
  132. package/dist/esm/core/account.d.mts +2 -2
  133. package/dist/esm/core/account.mjs +1 -1
  134. package/dist/esm/core/accountAddress.mjs +1 -1
  135. package/dist/esm/core/authenticationKey.mjs +1 -1
  136. package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
  137. package/dist/esm/core/crypto/anySignature.mjs +1 -1
  138. package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
  139. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  140. package/dist/esm/core/crypto/index.mjs +1 -1
  141. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  142. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  143. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  144. package/dist/esm/core/index.mjs +1 -1
  145. package/dist/esm/index.d.mts +1 -3
  146. package/dist/esm/index.mjs +1 -1
  147. package/dist/esm/internal/account.d.mts +1 -1
  148. package/dist/esm/internal/account.mjs +1 -1
  149. package/dist/esm/internal/ans.d.mts +5 -5
  150. package/dist/esm/internal/ans.mjs +1 -1
  151. package/dist/esm/internal/coin.d.mts +2 -2
  152. package/dist/esm/internal/coin.mjs +1 -1
  153. package/dist/esm/internal/digitalAsset.d.mts +151 -26
  154. package/dist/esm/internal/digitalAsset.mjs +1 -1
  155. package/dist/esm/internal/event.mjs +1 -1
  156. package/dist/esm/internal/faucet.mjs +1 -1
  157. package/dist/esm/internal/fungibleAsset.d.mts +12 -5
  158. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  159. package/dist/esm/internal/general.mjs +1 -1
  160. package/dist/esm/internal/staking.mjs +1 -1
  161. package/dist/esm/internal/transaction.mjs +1 -1
  162. package/dist/esm/internal/transactionSubmission.d.mts +6 -6
  163. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  164. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  165. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  166. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  167. package/dist/esm/transactions/index.d.mts +1 -1
  168. package/dist/esm/transactions/index.mjs +1 -1
  169. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  170. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  171. package/dist/esm/transactions/instances/index.mjs +1 -1
  172. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  173. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  174. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  175. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  176. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  177. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  178. package/dist/esm/transactions/management/index.mjs +1 -1
  179. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  180. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  181. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  182. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  183. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  184. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  185. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  186. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  187. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  188. package/dist/esm/transactions/types.d.mts +3 -3
  189. package/dist/esm/version.d.mts +1 -1
  190. package/dist/esm/version.mjs +1 -1
  191. package/package.json +4 -2
  192. package/src/api/ans.ts +9 -9
  193. package/src/api/aptos.ts +3 -28
  194. package/src/api/coin.ts +3 -3
  195. package/src/api/digitalAsset.ts +387 -88
  196. package/src/api/fungibleAsset.ts +3 -3
  197. package/src/api/transaction.ts +172 -2
  198. package/src/api/transactionSubmission/build.ts +25 -4
  199. package/src/api/transactionSubmission/helpers.ts +31 -0
  200. package/src/api/transactionSubmission/simulate.ts +26 -20
  201. package/src/api/transactionSubmission/submit.ts +24 -20
  202. package/src/client/core.ts +1 -1
  203. package/src/core/account.ts +2 -2
  204. package/src/internal/ans.ts +5 -5
  205. package/src/internal/coin.ts +2 -2
  206. package/src/internal/digitalAsset.ts +482 -58
  207. package/src/internal/fungibleAsset.ts +2 -2
  208. package/src/internal/transactionSubmission.ts +6 -6
  209. package/src/transactions/management/transactionWorker.ts +2 -9
  210. package/src/transactions/transactionBuilder/remoteAbi.ts +13 -5
  211. package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -4
  212. package/src/transactions/typeTag/index.ts +1 -0
  213. package/src/transactions/types.ts +2 -2
  214. package/src/version.ts +1 -1
  215. package/dist/esm/api/transactionSubmission.d.mts +0 -113
  216. package/dist/esm/api/transactionSubmission.mjs +0 -2
  217. package/dist/esm/chunk-2YQXX64E.mjs +0 -2
  218. package/dist/esm/chunk-2YQXX64E.mjs.map +0 -1
  219. package/dist/esm/chunk-5CUNY7X2.mjs +0 -2
  220. package/dist/esm/chunk-5CUNY7X2.mjs.map +0 -1
  221. package/dist/esm/chunk-5UY5OKXR.mjs.map +0 -1
  222. package/dist/esm/chunk-5ZVCSKFX.mjs +0 -2
  223. package/dist/esm/chunk-5ZVCSKFX.mjs.map +0 -1
  224. package/dist/esm/chunk-CCXMVVXD.mjs.map +0 -1
  225. package/dist/esm/chunk-CLJLQXFQ.mjs.map +0 -1
  226. package/dist/esm/chunk-EFRFDFS4.mjs +0 -2
  227. package/dist/esm/chunk-EFRFDFS4.mjs.map +0 -1
  228. package/dist/esm/chunk-GIZLK7M7.mjs.map +0 -1
  229. package/dist/esm/chunk-IELTCGLP.mjs +0 -2
  230. package/dist/esm/chunk-IELTCGLP.mjs.map +0 -1
  231. package/dist/esm/chunk-KKER5KL4.mjs +0 -2
  232. package/dist/esm/chunk-KKER5KL4.mjs.map +0 -1
  233. package/dist/esm/chunk-OZZDXS26.mjs.map +0 -1
  234. package/dist/esm/chunk-P5747ZYC.mjs +0 -2
  235. package/dist/esm/chunk-P5747ZYC.mjs.map +0 -1
  236. package/dist/esm/chunk-PXTMLJKO.mjs +0 -2
  237. package/dist/esm/chunk-QEXAMHPU.mjs.map +0 -1
  238. package/dist/esm/chunk-RLG3WOTH.mjs +0 -2
  239. package/dist/esm/chunk-RLG3WOTH.mjs.map +0 -1
  240. package/dist/esm/chunk-SDPICQ5B.mjs +0 -2
  241. package/dist/esm/chunk-SO6EE5DX.mjs +0 -2
  242. package/dist/esm/chunk-SO6EE5DX.mjs.map +0 -1
  243. package/dist/esm/chunk-SSJQOXEP.mjs.map +0 -1
  244. package/dist/esm/chunk-TZ623H2V.mjs.map +0 -1
  245. package/dist/esm/chunk-UKSA4H2O.mjs +0 -2
  246. package/dist/esm/chunk-UKSA4H2O.mjs.map +0 -1
  247. package/dist/esm/chunk-UWXDXOFK.mjs +0 -2
  248. package/dist/esm/chunk-UWXDXOFK.mjs.map +0 -1
  249. package/dist/esm/chunk-XX2Z26FH.mjs +0 -2
  250. package/dist/esm/chunk-XX2Z26FH.mjs.map +0 -1
  251. package/dist/esm/chunk-YN6UIVFB.mjs +0 -2
  252. package/dist/esm/chunk-YN6UIVFB.mjs.map +0 -1
  253. package/dist/esm/chunk-ZFK7QD3B.mjs +0 -2
  254. package/dist/esm/chunk-ZFK7QD3B.mjs.map +0 -1
  255. package/src/api/transactionSubmission.ts +0 -121
  256. /package/dist/esm/api/{transactionSubmission.mjs.map → transactionSubmission/helpers.mjs.map} +0 -0
  257. /package/dist/esm/{chunk-ZJUDDSWN.mjs.map → chunk-2HBIGMDV.mjs.map} +0 -0
  258. /package/dist/esm/{chunk-CJPCOS4R.mjs.map → chunk-3QS3MFWJ.mjs.map} +0 -0
  259. /package/dist/esm/{chunk-AZUWHKN5.mjs.map → chunk-4K252UDE.mjs.map} +0 -0
  260. /package/dist/esm/{chunk-MWAMLQ25.mjs.map → chunk-4TIQQKXV.mjs.map} +0 -0
  261. /package/dist/esm/{chunk-GMG4VR3K.mjs.map → chunk-4VG7DV6F.mjs.map} +0 -0
  262. /package/dist/esm/{chunk-UW6HQ643.mjs.map → chunk-5HZKDT5C.mjs.map} +0 -0
  263. /package/dist/esm/{chunk-73VWOS4Z.mjs.map → chunk-6DYNAFAP.mjs.map} +0 -0
  264. /package/dist/esm/{chunk-HTI5LEST.mjs.map → chunk-6F4ACCCZ.mjs.map} +0 -0
  265. /package/dist/esm/{chunk-53DS6NBQ.mjs.map → chunk-7B3VSBCX.mjs.map} +0 -0
  266. /package/dist/esm/{chunk-F7EWDYTE.mjs.map → chunk-7QJYTQSU.mjs.map} +0 -0
  267. /package/dist/esm/{chunk-GEZSEAL5.mjs.map → chunk-BUM2FIHF.mjs.map} +0 -0
  268. /package/dist/esm/{chunk-OBOOY2QD.mjs.map → chunk-D2XLC3KK.mjs.map} +0 -0
  269. /package/dist/esm/{chunk-PXTMLJKO.mjs.map → chunk-EHJEK7FU.mjs.map} +0 -0
  270. /package/dist/esm/{chunk-PL2VA73L.mjs.map → chunk-F2GFSFPW.mjs.map} +0 -0
  271. /package/dist/esm/{chunk-GXPGRCSW.mjs.map → chunk-F52GIFKT.mjs.map} +0 -0
  272. /package/dist/esm/{chunk-QNTV5NMH.mjs.map → chunk-FGTQT7Q5.mjs.map} +0 -0
  273. /package/dist/esm/{chunk-RCM3K5JL.mjs.map → chunk-GQI3HWOB.mjs.map} +0 -0
  274. /package/dist/esm/{chunk-2SAKPC5Q.mjs.map → chunk-HQ4DGB7L.mjs.map} +0 -0
  275. /package/dist/esm/{chunk-KNMWDGP4.mjs.map → chunk-IEL6J6Z3.mjs.map} +0 -0
  276. /package/dist/esm/{chunk-NZSGGL25.mjs.map → chunk-IPW2YTRD.mjs.map} +0 -0
  277. /package/dist/esm/{chunk-F6K26WV5.mjs.map → chunk-IU5JZNH4.mjs.map} +0 -0
  278. /package/dist/esm/{chunk-Y6PVFMBS.mjs.map → chunk-KH3M3YPI.mjs.map} +0 -0
  279. /package/dist/esm/{chunk-5OPOJ43H.mjs.map → chunk-KVJ2KGMW.mjs.map} +0 -0
  280. /package/dist/esm/{chunk-WTGGCH34.mjs.map → chunk-N25GOEVL.mjs.map} +0 -0
  281. /package/dist/esm/{chunk-CU2DINU4.mjs.map → chunk-NLONZHYT.mjs.map} +0 -0
  282. /package/dist/esm/{chunk-FZ56IS3E.mjs.map → chunk-NMFS5KAE.mjs.map} +0 -0
  283. /package/dist/esm/{chunk-KZSJ5MFF.mjs.map → chunk-OWP2MKTX.mjs.map} +0 -0
  284. /package/dist/esm/{chunk-QCBIJCU4.mjs.map → chunk-OXO3Z2MF.mjs.map} +0 -0
  285. /package/dist/esm/{chunk-CL5B2QNS.mjs.map → chunk-PANYJULW.mjs.map} +0 -0
  286. /package/dist/esm/{chunk-XMUUI6HG.mjs.map → chunk-PRKZ2KJ4.mjs.map} +0 -0
  287. /package/dist/esm/{chunk-SGTFMSOG.mjs.map → chunk-R3SAAJ2N.mjs.map} +0 -0
  288. /package/dist/esm/{chunk-VQ7LYNMD.mjs.map → chunk-R4APGSSC.mjs.map} +0 -0
  289. /package/dist/esm/{chunk-3F5WV6US.mjs.map → chunk-RCYWJZR4.mjs.map} +0 -0
  290. /package/dist/esm/{chunk-OT2UDMUU.mjs.map → chunk-SR7XLV76.mjs.map} +0 -0
  291. /package/dist/esm/{chunk-APSQ4M23.mjs.map → chunk-T3ID6KFN.mjs.map} +0 -0
  292. /package/dist/esm/{chunk-G36AY4R7.mjs.map → chunk-UR5E2UDO.mjs.map} +0 -0
  293. /package/dist/esm/{chunk-JI2BBZ2W.mjs.map → chunk-UZB7CTLX.mjs.map} +0 -0
  294. /package/dist/esm/{chunk-XITLXPBK.mjs.map → chunk-VMCFN5CT.mjs.map} +0 -0
  295. /package/dist/esm/{chunk-SRGPSANH.mjs.map → chunk-YLI6J47P.mjs.map} +0 -0
  296. /package/dist/esm/{chunk-HC5VMNXA.mjs.map → chunk-ZLYSA7JR.mjs.map} +0 -0
@@ -8,23 +8,39 @@ import {
8
8
  GetOwnedTokensResponse,
9
9
  GetTokenActivityResponse,
10
10
  GetTokenDataResponse,
11
+ MoveStructId,
11
12
  OrderByArg,
12
13
  PaginationArgs,
13
14
  TokenStandard,
14
15
  TokenStandardArg,
15
16
  } from "../types";
16
- import { Account, AccountAddressInput } from "../core";
17
- import { InputGenerateTransactionOptions, SingleSignerTransaction } from "../transactions/types";
17
+ import { Account, AccountAddress, AccountAddressInput } from "../core";
18
+ import { InputGenerateTransactionOptions, SimpleTransaction } from "../transactions/types";
18
19
  import {
20
+ addDigitalAssetPropertyTransaction,
21
+ addDigitalAssetTypedPropertyTransaction,
22
+ burnDigitalAssetTransaction,
19
23
  CreateCollectionOptions,
20
24
  createCollectionTransaction,
25
+ freezeDigitalAssetTransaferTransaction,
21
26
  getCollectionData,
22
27
  getCollectionId,
23
- getCurrentTokenOwnership,
24
- getOwnedTokens,
25
- getTokenActivity,
26
- getTokenData,
27
- mintTokenTransaction,
28
+ getCurrentDigitalAssetOwnership,
29
+ getDigitalAssetActivity,
30
+ getDigitalAssetData,
31
+ getOwnedDigitalAssets,
32
+ mintDigitalAssetTransaction,
33
+ mintSoulBoundTransaction,
34
+ PropertyType,
35
+ PropertyValue,
36
+ removeDigitalAssetPropertyTransaction,
37
+ setDigitalAssetDescriptionTransaction,
38
+ setDigitalAssetNameTransaction,
39
+ setDigitalAssetURITransaction,
40
+ transferDigitalAssetTransaction,
41
+ unfreezeDigitalAssetTransaferTransaction,
42
+ updateDigitalAssetPropertyTransaction,
43
+ updateDigitalAssetTypedPropertyTransaction,
28
44
  } from "../internal/digitalAsset";
29
45
  import { ProcessorType } from "../utils/const";
30
46
  import { AptosConfig } from "./aptosConfig";
@@ -36,43 +52,6 @@ import { waitForIndexerOnVersion } from "./utils";
36
52
  export class DigitalAsset {
37
53
  constructor(readonly config: AptosConfig) {}
38
54
 
39
- /**
40
- * Creates a new collection within the specified account
41
- *
42
- * @param args.creator the account of the collection's creator
43
- * @param args.description the description of the collection
44
- * @param args.name the name of the collection
45
- * @param args.uri the URI to additional info about the collection
46
- *
47
- * The parameters below are optional.
48
- * @param args.maxSupply controls the max supply of the tokens - defaults MAX_U64_BIG_INT
49
- * @param args.mutableDescription controls mutability of the collection's description - defaults true
50
- * @param args.mutableRoyalty controls mutability of the collection's description - defaults true
51
- * @param args.mutableUri controls mutability of the collection's URI - defaults true
52
- * @param args.mutableTokenDescription controls mutability of the token's description - defaults true
53
- * @param args.mutableTokenName controls mutability of the token's name - defaults true
54
- * @param args.mutableTokenProperties controls mutability of token's properties - defaults true
55
- * @param args.mutableTokenUri controls mutability of the token's URI - defaults true
56
- * @param args.tokensBurnableByCreator controls whether tokens can be burnable by the creator - defaults true
57
- * @param args.tokensFreezableByCreator controls whether tokens can be frozen by the creator - defaults true
58
- * @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when a token is transferred - defaults 0
59
- * @param args.royaltyDenominator the denominator of the royalty to be paid to the creator when a token is transferred -
60
- * defaults 1
61
- *
62
- * @returns A SingleSignerTransaction that when submitted will create the collection.
63
- */
64
- async createCollectionTransaction(
65
- args: {
66
- creator: Account;
67
- description: string;
68
- name: string;
69
- uri: string;
70
- options?: InputGenerateTransactionOptions;
71
- } & CreateCollectionOptions,
72
- ): Promise<SingleSignerTransaction> {
73
- return createCollectionTransaction({ aptosConfig: this.config, ...args });
74
- }
75
-
76
55
  /**
77
56
  * Queries data of a specific collection by the collection creator address and the collection name.
78
57
  *
@@ -126,36 +105,14 @@ export class DigitalAsset {
126
105
  }
127
106
 
128
107
  /**
129
- * Create a transaction to mint a token into the creators account within an existing collection.
108
+ * Gets digital asset data given the address of a digital asset.
130
109
  *
131
- * @param args.creator the creator of the collection
132
- * @param args.collection the name of the collection the token belongs to
133
- * @param args.description the description of the token
134
- * @param args.name the name of the token
135
- * @param args.uri the URI to additional info about the token
136
- *
137
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain
138
- */
139
- async mintTokenTransaction(args: {
140
- creator: Account;
141
- collection: string;
142
- description: string;
143
- name: string;
144
- uri: string;
145
- options?: InputGenerateTransactionOptions;
146
- }): Promise<SingleSignerTransaction> {
147
- return mintTokenTransaction({ aptosConfig: this.config, ...args });
148
- }
149
-
150
- /**
151
- * Gets token data given the address of a token.
152
- *
153
- * @param args.tokenAddress The address of the token
110
+ * @param args.tokenAddress The address of the digital asset
154
111
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
155
- * @returns GetTokenDataResponse containing relevant data to the token.
112
+ * @returns GetTokenDataResponse containing relevant data to the digital asset.
156
113
  */
157
- async getTokenData(args: {
158
- tokenAddress: AccountAddressInput;
114
+ async getDigitalAssetData(args: {
115
+ digitalAssetAddress: AccountAddressInput;
159
116
  minimumLedgerVersion?: AnyNumber;
160
117
  }): Promise<GetTokenDataResponse> {
161
118
  await waitForIndexerOnVersion({
@@ -164,18 +121,19 @@ export class DigitalAsset {
164
121
  // TODO(greg): Should take in a consistent input for token queries
165
122
  processorTypes: getTokenProcessorTypes(undefined),
166
123
  });
167
- return getTokenData({ aptosConfig: this.config, ...args });
124
+ return getDigitalAssetData({ aptosConfig: this.config, ...args });
168
125
  }
169
126
 
170
127
  /**
171
- * Gets token ownership data given the address of a token.
128
+ * Gets digital asset ownership data given the address of a digital asset.
172
129
  *
173
- * @param args.tokenAddress The address of the token
130
+ * @param args.tokenAddress The address of the digital asset
174
131
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
175
- * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the token.
132
+ *
133
+ * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
176
134
  */
177
- async getCurrentTokenOwnership(args: {
178
- tokenAddress: AccountAddressInput;
135
+ async getCurrentDigitalAssetOwnership(args: {
136
+ digitalAssetAddress: AccountAddressInput;
179
137
  minimumLedgerVersion?: AnyNumber;
180
138
  }): Promise<GetCurrentTokenOwnershipResponse> {
181
139
  await waitForIndexerOnVersion({
@@ -184,17 +142,18 @@ export class DigitalAsset {
184
142
  // TODO(greg): Should take in a consistent input for token queries
185
143
  processorTypes: getTokenProcessorTypes(undefined),
186
144
  });
187
- return getCurrentTokenOwnership({ aptosConfig: this.config, ...args });
145
+ return getCurrentDigitalAssetOwnership({ aptosConfig: this.config, ...args });
188
146
  }
189
147
 
190
148
  /**
191
- * Gets the tokens that the given address owns.
149
+ * Gets the digital assets that the given address owns.
192
150
  *
193
151
  * @param args.ownerAddress The address of the owner
194
152
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
195
- * @returns GetOwnedTokensResponse containing ownership data of the tokens belonging to the ownerAddresss.
153
+ *
154
+ * @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddresss.
196
155
  */
197
- async getOwnedTokens(args: {
156
+ async getOwnedDigitalAssets(args: {
198
157
  ownerAddress: AccountAddressInput;
199
158
  minimumLedgerVersion?: AnyNumber;
200
159
  options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
@@ -205,18 +164,19 @@ export class DigitalAsset {
205
164
  // TODO(greg): Should take in a consistent input for token queries
206
165
  processorTypes: getTokenProcessorTypes(undefined),
207
166
  });
208
- return getOwnedTokens({ aptosConfig: this.config, ...args });
167
+ return getOwnedDigitalAssets({ aptosConfig: this.config, ...args });
209
168
  }
210
169
 
211
170
  /**
212
- * Gets the activity data given the address of a token.
171
+ * Gets the activity data given the address of a digital asset.
213
172
  *
214
- * @param args.tokenAddress The address of the token
173
+ * @param args.tokenAddress The address of the digital asset
215
174
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
216
- * @returns GetTokenActivityResponse containing relevant activity data to the token.
175
+ *
176
+ * @returns GetTokenActivityResponse containing relevant activity data to the digital asset.
217
177
  */
218
- async getTokenActivity(args: {
219
- tokenAddress: AccountAddressInput;
178
+ async getDigitalAssetActivity(args: {
179
+ digitalAssetAddress: AccountAddressInput;
220
180
  minimumLedgerVersion?: AnyNumber;
221
181
  options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
222
182
  }): Promise<GetTokenActivityResponse> {
@@ -226,7 +186,346 @@ export class DigitalAsset {
226
186
  // TODO(greg): Should take in a consistent input for token queries
227
187
  processorTypes: getTokenProcessorTypes(undefined),
228
188
  });
229
- return getTokenActivity({ aptosConfig: this.config, ...args });
189
+ return getDigitalAssetActivity({ aptosConfig: this.config, ...args });
190
+ }
191
+
192
+ /**
193
+ * Creates a new collection within the specified account
194
+ *
195
+ * @param args.creator the account of the collection's creator
196
+ * @param args.description the description of the collection
197
+ * @param args.name the name of the collection
198
+ * @param args.uri the URI to additional info about the collection
199
+ *
200
+ * The parameters below are optional.
201
+ * @param args.maxSupply controls the max supply of the digital assets - defaults MAX_U64_BIG_INT
202
+ * @param args.mutableDescription controls mutability of the collection's description - defaults true
203
+ * @param args.mutableRoyalty controls mutability of the collection's description - defaults true
204
+ * @param args.mutableUri controls mutability of the collection's URI - defaults true
205
+ * @param args.mutableTokenDescription controls mutability of the digital asset's description - defaults true
206
+ * @param args.mutableTokenName controls mutability of the digital asset's name - defaults true
207
+ * @param args.mutableTokenProperties controls mutability of digital asset's properties - defaults true
208
+ * @param args.mutableTokenUri controls mutability of the digital asset's URI - defaults true
209
+ * @param args.tokensBurnableByCreator controls whether digital assets can be burnable by the creator - defaults true
210
+ * @param args.tokensFreezableByCreator controls whether digital assets can be frozen by the creator - defaults true
211
+ * @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when
212
+ * a digital asset is transferred - defaults 0
213
+ * @param args.royaltyDenominator the denominator of the royalty to be paid to the creator
214
+ * when a digital asset is transferred - defaults 1
215
+ *
216
+ * @returns A SimpleTransaction that when submitted will create the collection.
217
+ */
218
+ async createCollectionTransaction(
219
+ args: {
220
+ creator: Account;
221
+ description: string;
222
+ name: string;
223
+ uri: string;
224
+ options?: InputGenerateTransactionOptions;
225
+ } & CreateCollectionOptions,
226
+ ): Promise<SimpleTransaction> {
227
+ return createCollectionTransaction({ aptosConfig: this.config, ...args });
228
+ }
229
+
230
+ /**
231
+ * Create a transaction to mint a digital asset into the creators account within an existing collection.
232
+ *
233
+ * @param args.creator the creator of the collection
234
+ * @param args.collection the name of the collection the digital asset belongs to
235
+ * @param args.description the description of the digital asset
236
+ * @param args.name the name of the digital asset
237
+ * @param args.uri the URI to additional info about the digital asset
238
+ *
239
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
240
+ */
241
+ async mintDigitalAssetTransaction(args: {
242
+ creator: Account;
243
+ collection: string;
244
+ description: string;
245
+ name: string;
246
+ uri: string;
247
+ propertyKeys?: Array<string>;
248
+ propertyTypes?: Array<PropertyType>;
249
+ propertyValues?: Array<PropertyValue>;
250
+ options?: InputGenerateTransactionOptions;
251
+ }): Promise<SimpleTransaction> {
252
+ return mintDigitalAssetTransaction({ aptosConfig: this.config, ...args });
253
+ }
254
+
255
+ /**
256
+ * Transfer a digital asset (non fungible digital asset) ownership.
257
+ *
258
+ * We can transfer a digital asset only when the digital asset is not frozen
259
+ * (i.e. owner transfer is not disabled such as for soul bound digital assets)
260
+ *
261
+ * @param args.sender The sender account of the current digital asset owner
262
+ * @param args.digitalAssetAddress The digital asset address
263
+ * @param args.recipient The recipient account address
264
+ * @param args.digitalAssetType optional. The digital asset type, default to "0x4::token::Token"
265
+ *
266
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
267
+ */
268
+ async transferDigitalAssetTransaction(args: {
269
+ sender: Account;
270
+ digitalAssetAddress: AccountAddressInput;
271
+ recipient: AccountAddress;
272
+ digitalAssetType?: MoveStructId;
273
+ options?: InputGenerateTransactionOptions;
274
+ }): Promise<SimpleTransaction> {
275
+ return transferDigitalAssetTransaction({ aptosConfig: this.config, ...args });
276
+ }
277
+
278
+ /**
279
+ * Mint a soul bound digital asset into a recipient's account
280
+ *
281
+ * @param args.account The account that mints the digital asset
282
+ * @param args.collection The collection name that the digital asset belongs to
283
+ * @param args.description The digital asset description
284
+ * @param args.name The digital asset name
285
+ * @param args.uri The digital asset URL
286
+ * @param args.recipient The account address where the digital asset will be created
287
+ * @param args.propertyKeys The property keys for storing on-chain properties
288
+ * @param args.propertyTypes The type of property values
289
+ * @param args.propertyValues The property values to be stored on-chain
290
+ *
291
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
292
+ */
293
+ async mintSoulBoundTransaction(args: {
294
+ account: Account;
295
+ collection: string;
296
+ description: string;
297
+ name: string;
298
+ uri: string;
299
+ recipient: AccountAddress;
300
+ propertyKeys?: Array<string>;
301
+ propertyTypes?: Array<PropertyType>;
302
+ propertyValues?: Array<PropertyValue>;
303
+ options?: InputGenerateTransactionOptions;
304
+ }): Promise<SimpleTransaction> {
305
+ return mintSoulBoundTransaction({ aptosConfig: this.config, ...args });
306
+ }
307
+
308
+ /**
309
+ * Burn a digital asset by its creator
310
+ *
311
+ * @param args.creator The creator account
312
+ * @param args.digitalAssetAddress The digital asset address
313
+ *
314
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
315
+ */
316
+ async burnDigitalAssetTransaction(args: {
317
+ creator: Account;
318
+ digitalAssetAddress: AccountAddressInput;
319
+ digitalAssetType?: MoveStructId;
320
+ options?: InputGenerateTransactionOptions;
321
+ }) {
322
+ return burnDigitalAssetTransaction({ aptosConfig: this.config, ...args });
323
+ }
324
+
325
+ /**
326
+ * Freeze digital asset transfer ability
327
+ *
328
+ * @param args.creator The creator account
329
+ * @param args.digitalAssetAddress The digital asset address
330
+ *
331
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
332
+ */
333
+ async freezeDigitalAssetTransaferTransaction(args: {
334
+ creator: Account;
335
+ digitalAssetAddress: AccountAddressInput;
336
+ digitalAssetType?: MoveStructId;
337
+ options?: InputGenerateTransactionOptions;
338
+ }) {
339
+ return freezeDigitalAssetTransaferTransaction({ aptosConfig: this.config, ...args });
340
+ }
341
+
342
+ /**
343
+ * Unfreeze digital asset transfer ability
344
+ *
345
+ * @param args.creator The creator account
346
+ * @param args.digitalAssetAddress The digital asset address
347
+ *
348
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
349
+ */
350
+ async unfreezeDigitalAssetTransaferTransaction(args: {
351
+ creator: Account;
352
+ digitalAssetAddress: AccountAddressInput;
353
+ digitalAssetType?: MoveStructId;
354
+ options?: InputGenerateTransactionOptions;
355
+ }) {
356
+ return unfreezeDigitalAssetTransaferTransaction({ aptosConfig: this.config, ...args });
357
+ }
358
+
359
+ /**
360
+ * Set the digital asset description
361
+ *
362
+ * @param args.creator The creator account
363
+ * @param args.description The digital asset description
364
+ * @param args.digitalAssetAddress The digital asset address
365
+ *
366
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
367
+ */
368
+ async setDigitalAssetDescriptionTransaction(args: {
369
+ creator: Account;
370
+ description: string;
371
+ digitalAssetAddress: AccountAddressInput;
372
+ digitalAssetType?: MoveStructId;
373
+ options?: InputGenerateTransactionOptions;
374
+ }) {
375
+ return setDigitalAssetDescriptionTransaction({ aptosConfig: this.config, ...args });
376
+ }
377
+
378
+ /**
379
+ * Set the digital asset name
380
+ *
381
+ * @param args.creator The creator account
382
+ * @param args.name The digital asset name
383
+ * @param args.digitalAssetAddress The digital asset address
384
+ *
385
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
386
+ */
387
+ async setDigitalAssetNameTransaction(args: {
388
+ creator: Account;
389
+ name: string;
390
+ digitalAssetAddress: AccountAddressInput;
391
+ digitalAssetType?: MoveStructId;
392
+ options?: InputGenerateTransactionOptions;
393
+ }) {
394
+ return setDigitalAssetNameTransaction({ aptosConfig: this.config, ...args });
395
+ }
396
+
397
+ /**
398
+ * Set the digital asset name
399
+ *
400
+ * @param args.creator The creator account
401
+ * @param args.uri The digital asset uri
402
+ * @param args.digitalAssetAddress The digital asset address
403
+ *
404
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
405
+ */
406
+ async setDigitalAssetURITransaction(args: {
407
+ creator: Account;
408
+ uri: string;
409
+ digitalAssetAddress: AccountAddressInput;
410
+ digitalAssetType?: MoveStructId;
411
+ options?: InputGenerateTransactionOptions;
412
+ }) {
413
+ return setDigitalAssetURITransaction({ aptosConfig: this.config, ...args });
414
+ }
415
+
416
+ /**
417
+ * Add a digital asset property
418
+ *
419
+ * @param args.account The account that mints the digital asset
420
+ * @param args.digitalAssetAddress The digital asset address
421
+ * @param args.propertyKey The property key for storing on-chain properties
422
+ * @param args.propertyType The type of property value
423
+ * @param args.propertyValue The property value to be stored on-chain
424
+ *
425
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
426
+ */
427
+ async addDigitalAssetPropertyTransaction(args: {
428
+ creator: Account;
429
+ propertyKey: string;
430
+ propertyType: PropertyType;
431
+ propertyValue: PropertyValue;
432
+ digitalAssetAddress: AccountAddressInput;
433
+ digitalAssetType?: MoveStructId;
434
+ options?: InputGenerateTransactionOptions;
435
+ }) {
436
+ return addDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
437
+ }
438
+
439
+ /**
440
+ * Remove a digital asset property
441
+ *
442
+ * @param args.account The account that mints the digital asset
443
+ * @param args.digitalAssetAddress The digital asset address
444
+ * @param args.propertyKey The property key for storing on-chain properties
445
+ * @param args.propertyType The type of property value
446
+ * @param args.propertyValue The property value to be stored on-chain
447
+ *
448
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
449
+ */
450
+ async removeDigitalAssetPropertyTransaction(args: {
451
+ creator: Account;
452
+ propertyKey: string;
453
+ propertyType: PropertyType;
454
+ propertyValue: PropertyValue;
455
+ digitalAssetAddress: AccountAddressInput;
456
+ digitalAssetType?: MoveStructId;
457
+ options?: InputGenerateTransactionOptions;
458
+ }) {
459
+ return removeDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
460
+ }
461
+
462
+ /**
463
+ * Update a digital asset property
464
+ *
465
+ * @param args.account The account that mints the digital asset
466
+ * @param args.digitalAssetAddress The digital asset address
467
+ * @param args.propertyKey The property key for storing on-chain properties
468
+ * @param args.propertyType The type of property value
469
+ * @param args.propertyValue The property value to be stored on-chain
470
+ *
471
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
472
+ */
473
+ async updateDigitalAssetPropertyTransaction(args: {
474
+ creator: Account;
475
+ propertyKey: string;
476
+ propertyType: PropertyType;
477
+ propertyValue: PropertyValue;
478
+ digitalAssetAddress: AccountAddressInput;
479
+ digitalAssetType?: MoveStructId;
480
+ options?: InputGenerateTransactionOptions;
481
+ }) {
482
+ return updateDigitalAssetPropertyTransaction({ aptosConfig: this.config, ...args });
483
+ }
484
+
485
+ /**
486
+ * Add a typed digital asset property
487
+ *
488
+ * @param args.account The account that mints the digital asset
489
+ * @param args.digitalAssetAddress The digital asset address
490
+ * @param args.propertyKey The property key for storing on-chain properties
491
+ * @param args.propertyType The type of property value
492
+ * @param args.propertyValue The property value to be stored on-chain
493
+ *
494
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
495
+ */
496
+ async addDigitalAssetTypedPropertyTransaction(args: {
497
+ creator: Account;
498
+ propertyKey: string;
499
+ propertyType: PropertyType;
500
+ propertyValue: PropertyValue;
501
+ digitalAssetAddress: AccountAddressInput;
502
+ digitalAssetType?: MoveStructId;
503
+ options?: InputGenerateTransactionOptions;
504
+ }) {
505
+ return addDigitalAssetTypedPropertyTransaction({ aptosConfig: this.config, ...args });
506
+ }
507
+
508
+ /**
509
+ * Update a typed digital asset property
510
+ *
511
+ * @param args.account The account that mints the digital asset
512
+ * @param args.digitalAssetAddress The digital asset address
513
+ * @param args.propertyKey The property key for storing on-chain properties
514
+ * @param args.propertyType The type of property value
515
+ * @param args.propertyValue The property value to be stored on-chain
516
+ *
517
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
518
+ */
519
+ async updateDigitalAssetTypedPropertyTransaction(args: {
520
+ creator: Account;
521
+ propertyKey: string;
522
+ propertyType: PropertyType;
523
+ propertyValue: PropertyValue;
524
+ digitalAssetAddress: AccountAddressInput;
525
+ digitalAssetType?: MoveStructId;
526
+ options?: InputGenerateTransactionOptions;
527
+ }) {
528
+ return updateDigitalAssetTypedPropertyTransaction({ aptosConfig: this.config, ...args });
230
529
  }
231
530
  }
232
531
 
@@ -24,7 +24,7 @@ import { ProcessorType } from "../utils/const";
24
24
  import { AptosConfig } from "./aptosConfig";
25
25
  import { waitForIndexerOnVersion } from "./utils";
26
26
  import { Account, AccountAddress } from "../core";
27
- import { InputGenerateTransactionOptions, SingleSignerTransaction } from "../transactions";
27
+ import { InputGenerateTransactionOptions, SimpleTransaction } from "../transactions";
28
28
 
29
29
  /**
30
30
  * A class to query all `FungibleAsset` related queries on Aptos.
@@ -134,7 +134,7 @@ export class FungibleAsset {
134
134
  * @param recipient The recipient account address
135
135
  * @param amount Number of assets to transfer
136
136
  *
137
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain.
137
+ * @returns A SimpleTransaction that can be simulated or submitted to chain.
138
138
  */
139
139
  async transferFungibleAsset(args: {
140
140
  sender: Account;
@@ -142,7 +142,7 @@ export class FungibleAsset {
142
142
  recipient: AccountAddress;
143
143
  amount: AnyNumber;
144
144
  options?: InputGenerateTransactionOptions;
145
- }): Promise<SingleSignerTransaction> {
145
+ }): Promise<SimpleTransaction> {
146
146
  return transferFungibleAsset({ aptosConfig: this.config, ...args });
147
147
  }
148
148
  }