@moveindustries/ts-sdk 5.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (729) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +66 -0
  3. package/dist/common/accountAddress-DoqkxUqw.d.ts +7769 -0
  4. package/dist/common/chunk-56DGDNEY.js +4 -0
  5. package/dist/common/chunk-56DGDNEY.js.map +1 -0
  6. package/dist/common/cli/index.d.ts +316 -0
  7. package/dist/common/cli/index.js +2 -0
  8. package/dist/common/cli/index.js.map +1 -0
  9. package/dist/common/index.d.ts +10643 -0
  10. package/dist/common/index.js +482 -0
  11. package/dist/common/index.js.map +1 -0
  12. package/dist/esm/Ed25519Account-DsqenvLJ.d.mts +628 -0
  13. package/dist/esm/account/AbstractKeylessAccount.d.mts +336 -0
  14. package/dist/esm/account/AbstractKeylessAccount.mjs +2 -0
  15. package/dist/esm/account/AbstractKeylessAccount.mjs.map +1 -0
  16. package/dist/esm/account/AbstractedAccount.d.mts +64 -0
  17. package/dist/esm/account/AbstractedAccount.mjs +2 -0
  18. package/dist/esm/account/AbstractedAccount.mjs.map +1 -0
  19. package/dist/esm/account/Account.d.mts +8 -0
  20. package/dist/esm/account/Account.mjs +2 -0
  21. package/dist/esm/account/Account.mjs.map +1 -0
  22. package/dist/esm/account/AccountUtils.d.mts +38 -0
  23. package/dist/esm/account/AccountUtils.mjs +2 -0
  24. package/dist/esm/account/AccountUtils.mjs.map +1 -0
  25. package/dist/esm/account/DerivableAbstractedAccount.d.mts +59 -0
  26. package/dist/esm/account/DerivableAbstractedAccount.mjs +2 -0
  27. package/dist/esm/account/DerivableAbstractedAccount.mjs.map +1 -0
  28. package/dist/esm/account/Ed25519Account.d.mts +8 -0
  29. package/dist/esm/account/Ed25519Account.mjs +2 -0
  30. package/dist/esm/account/Ed25519Account.mjs.map +1 -0
  31. package/dist/esm/account/EphemeralKeyPair.d.mts +141 -0
  32. package/dist/esm/account/EphemeralKeyPair.mjs +2 -0
  33. package/dist/esm/account/EphemeralKeyPair.mjs.map +1 -0
  34. package/dist/esm/account/FederatedKeylessAccount.d.mts +118 -0
  35. package/dist/esm/account/FederatedKeylessAccount.mjs +2 -0
  36. package/dist/esm/account/FederatedKeylessAccount.mjs.map +1 -0
  37. package/dist/esm/account/KeylessAccount.d.mts +124 -0
  38. package/dist/esm/account/KeylessAccount.mjs +2 -0
  39. package/dist/esm/account/KeylessAccount.mjs.map +1 -0
  40. package/dist/esm/account/MultiEd25519Account.d.mts +102 -0
  41. package/dist/esm/account/MultiEd25519Account.mjs +2 -0
  42. package/dist/esm/account/MultiEd25519Account.mjs.map +1 -0
  43. package/dist/esm/account/MultiKeyAccount.d.mts +206 -0
  44. package/dist/esm/account/MultiKeyAccount.mjs +2 -0
  45. package/dist/esm/account/MultiKeyAccount.mjs.map +1 -0
  46. package/dist/esm/account/SingleKeyAccount.d.mts +8 -0
  47. package/dist/esm/account/SingleKeyAccount.mjs +2 -0
  48. package/dist/esm/account/SingleKeyAccount.mjs.map +1 -0
  49. package/dist/esm/account/index.d.mts +24 -0
  50. package/dist/esm/account/index.mjs +2 -0
  51. package/dist/esm/account/index.mjs.map +1 -0
  52. package/dist/esm/account/utils.d.mts +14 -0
  53. package/dist/esm/account/utils.mjs +2 -0
  54. package/dist/esm/account/utils.mjs.map +1 -0
  55. package/dist/esm/accountAddress-CNXtapt1.d.mts +6979 -0
  56. package/dist/esm/api/account/abstraction.d.mts +181 -0
  57. package/dist/esm/api/account/abstraction.mjs +2 -0
  58. package/dist/esm/api/account/abstraction.mjs.map +1 -0
  59. package/dist/esm/api/account.d.mts +852 -0
  60. package/dist/esm/api/account.mjs +2 -0
  61. package/dist/esm/api/account.mjs.map +1 -0
  62. package/dist/esm/api/ans.d.mts +504 -0
  63. package/dist/esm/api/ans.mjs +2 -0
  64. package/dist/esm/api/ans.mjs.map +1 -0
  65. package/dist/esm/api/coin.d.mts +81 -0
  66. package/dist/esm/api/coin.mjs +2 -0
  67. package/dist/esm/api/coin.mjs.map +1 -0
  68. package/dist/esm/api/digitalAsset.d.mts +1030 -0
  69. package/dist/esm/api/digitalAsset.mjs +2 -0
  70. package/dist/esm/api/digitalAsset.mjs.map +1 -0
  71. package/dist/esm/api/faucet.d.mts +80 -0
  72. package/dist/esm/api/faucet.mjs +2 -0
  73. package/dist/esm/api/faucet.mjs.map +1 -0
  74. package/dist/esm/api/fungibleAsset.d.mts +288 -0
  75. package/dist/esm/api/fungibleAsset.mjs +2 -0
  76. package/dist/esm/api/fungibleAsset.mjs.map +1 -0
  77. package/dist/esm/api/general.d.mts +303 -0
  78. package/dist/esm/api/general.mjs +2 -0
  79. package/dist/esm/api/general.mjs.map +1 -0
  80. package/dist/esm/api/index.d.mts +46 -0
  81. package/dist/esm/api/index.mjs +2 -0
  82. package/dist/esm/api/index.mjs.map +1 -0
  83. package/dist/esm/api/keyless.d.mts +170 -0
  84. package/dist/esm/api/keyless.mjs +2 -0
  85. package/dist/esm/api/keyless.mjs.map +1 -0
  86. package/dist/esm/api/movement.d.mts +113 -0
  87. package/dist/esm/api/movement.mjs +2 -0
  88. package/dist/esm/api/movement.mjs.map +1 -0
  89. package/dist/esm/api/movementConfig.d.mts +7 -0
  90. package/dist/esm/api/movementConfig.mjs +2 -0
  91. package/dist/esm/api/movementConfig.mjs.map +1 -0
  92. package/dist/esm/api/object.d.mts +80 -0
  93. package/dist/esm/api/object.mjs +2 -0
  94. package/dist/esm/api/object.mjs.map +1 -0
  95. package/dist/esm/api/staking.d.mts +134 -0
  96. package/dist/esm/api/staking.mjs +2 -0
  97. package/dist/esm/api/staking.mjs.map +1 -0
  98. package/dist/esm/api/table.d.mts +169 -0
  99. package/dist/esm/api/table.mjs +2 -0
  100. package/dist/esm/api/table.mjs.map +1 -0
  101. package/dist/esm/api/transaction.d.mts +679 -0
  102. package/dist/esm/api/transaction.mjs +2 -0
  103. package/dist/esm/api/transaction.mjs.map +1 -0
  104. package/dist/esm/api/transactionSubmission/build.d.mts +141 -0
  105. package/dist/esm/api/transactionSubmission/build.mjs +2 -0
  106. package/dist/esm/api/transactionSubmission/build.mjs.map +1 -0
  107. package/dist/esm/api/transactionSubmission/helpers.d.mts +98 -0
  108. package/dist/esm/api/transactionSubmission/helpers.mjs +2 -0
  109. package/dist/esm/api/transactionSubmission/helpers.mjs.map +1 -0
  110. package/dist/esm/api/transactionSubmission/management.d.mts +168 -0
  111. package/dist/esm/api/transactionSubmission/management.mjs +2 -0
  112. package/dist/esm/api/transactionSubmission/management.mjs.map +1 -0
  113. package/dist/esm/api/transactionSubmission/sign.d.mts +124 -0
  114. package/dist/esm/api/transactionSubmission/sign.mjs +2 -0
  115. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -0
  116. package/dist/esm/api/transactionSubmission/simulate.d.mts +181 -0
  117. package/dist/esm/api/transactionSubmission/simulate.mjs +2 -0
  118. package/dist/esm/api/transactionSubmission/simulate.mjs.map +1 -0
  119. package/dist/esm/api/transactionSubmission/submit.d.mts +142 -0
  120. package/dist/esm/api/transactionSubmission/submit.mjs +2 -0
  121. package/dist/esm/api/transactionSubmission/submit.mjs.map +1 -0
  122. package/dist/esm/api/utils.d.mts +45 -0
  123. package/dist/esm/api/utils.mjs +2 -0
  124. package/dist/esm/api/utils.mjs.map +1 -0
  125. package/dist/esm/bcs/consts.d.mts +28 -0
  126. package/dist/esm/bcs/consts.mjs +2 -0
  127. package/dist/esm/bcs/consts.mjs.map +1 -0
  128. package/dist/esm/bcs/deserializer.d.mts +7 -0
  129. package/dist/esm/bcs/deserializer.mjs +2 -0
  130. package/dist/esm/bcs/deserializer.mjs.map +1 -0
  131. package/dist/esm/bcs/index.d.mts +8 -0
  132. package/dist/esm/bcs/index.mjs +2 -0
  133. package/dist/esm/bcs/index.mjs.map +1 -0
  134. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +65 -0
  135. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +2 -0
  136. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs.map +1 -0
  137. package/dist/esm/bcs/serializable/fixedBytes.d.mts +7 -0
  138. package/dist/esm/bcs/serializable/fixedBytes.mjs +2 -0
  139. package/dist/esm/bcs/serializable/fixedBytes.mjs.map +1 -0
  140. package/dist/esm/bcs/serializable/movePrimitives.d.mts +7 -0
  141. package/dist/esm/bcs/serializable/movePrimitives.mjs +2 -0
  142. package/dist/esm/bcs/serializable/movePrimitives.mjs.map +1 -0
  143. package/dist/esm/bcs/serializable/moveStructs.d.mts +7 -0
  144. package/dist/esm/bcs/serializable/moveStructs.mjs +2 -0
  145. package/dist/esm/bcs/serializable/moveStructs.mjs.map +1 -0
  146. package/dist/esm/bcs/serializer.d.mts +7 -0
  147. package/dist/esm/bcs/serializer.mjs +2 -0
  148. package/dist/esm/bcs/serializer.mjs.map +1 -0
  149. package/dist/esm/chunk-2KDUIZKB.mjs +2 -0
  150. package/dist/esm/chunk-2KDUIZKB.mjs.map +1 -0
  151. package/dist/esm/chunk-2QTV4AOE.mjs +2 -0
  152. package/dist/esm/chunk-2QTV4AOE.mjs.map +1 -0
  153. package/dist/esm/chunk-47V7UGV5.mjs +4 -0
  154. package/dist/esm/chunk-47V7UGV5.mjs.map +1 -0
  155. package/dist/esm/chunk-4QMXOWHP.mjs +1 -0
  156. package/dist/esm/chunk-4QMXOWHP.mjs.map +1 -0
  157. package/dist/esm/chunk-4WPQQPUF.mjs +1 -0
  158. package/dist/esm/chunk-4WPQQPUF.mjs.map +1 -0
  159. package/dist/esm/chunk-5HXLZHDW.mjs +1 -0
  160. package/dist/esm/chunk-5HXLZHDW.mjs.map +1 -0
  161. package/dist/esm/chunk-5IMQPJ6J.mjs +2 -0
  162. package/dist/esm/chunk-5IMQPJ6J.mjs.map +1 -0
  163. package/dist/esm/chunk-5ZKA765G.mjs +2 -0
  164. package/dist/esm/chunk-5ZKA765G.mjs.map +1 -0
  165. package/dist/esm/chunk-6NO4QKAO.mjs +2 -0
  166. package/dist/esm/chunk-6NO4QKAO.mjs.map +1 -0
  167. package/dist/esm/chunk-7ECCT6PK.mjs +1 -0
  168. package/dist/esm/chunk-7ECCT6PK.mjs.map +1 -0
  169. package/dist/esm/chunk-7TTTMBAK.mjs +2 -0
  170. package/dist/esm/chunk-7TTTMBAK.mjs.map +1 -0
  171. package/dist/esm/chunk-A5L76YP7.mjs +2 -0
  172. package/dist/esm/chunk-A5L76YP7.mjs.map +1 -0
  173. package/dist/esm/chunk-ANTEUWH6.mjs +2 -0
  174. package/dist/esm/chunk-ANTEUWH6.mjs.map +1 -0
  175. package/dist/esm/chunk-CHWDP6AR.mjs +2 -0
  176. package/dist/esm/chunk-CHWDP6AR.mjs.map +1 -0
  177. package/dist/esm/chunk-CRCE7R4D.mjs +2 -0
  178. package/dist/esm/chunk-CRCE7R4D.mjs.map +1 -0
  179. package/dist/esm/chunk-D6HPXGEP.mjs +2 -0
  180. package/dist/esm/chunk-D6HPXGEP.mjs.map +1 -0
  181. package/dist/esm/chunk-DS6QB6HG.mjs +4 -0
  182. package/dist/esm/chunk-DS6QB6HG.mjs.map +1 -0
  183. package/dist/esm/chunk-FD6FGKYY.mjs +1 -0
  184. package/dist/esm/chunk-FD6FGKYY.mjs.map +1 -0
  185. package/dist/esm/chunk-FJRPU2NH.mjs +2 -0
  186. package/dist/esm/chunk-FJRPU2NH.mjs.map +1 -0
  187. package/dist/esm/chunk-FS5ZJKO7.mjs +2 -0
  188. package/dist/esm/chunk-FS5ZJKO7.mjs.map +1 -0
  189. package/dist/esm/chunk-FZY4PMEE.mjs +1 -0
  190. package/dist/esm/chunk-FZY4PMEE.mjs.map +1 -0
  191. package/dist/esm/chunk-G3MHXDYA.mjs +1 -0
  192. package/dist/esm/chunk-G3MHXDYA.mjs.map +1 -0
  193. package/dist/esm/chunk-GOXRBEIJ.mjs +2 -0
  194. package/dist/esm/chunk-GOXRBEIJ.mjs.map +1 -0
  195. package/dist/esm/chunk-HGLO5LDS.mjs +1 -0
  196. package/dist/esm/chunk-HGLO5LDS.mjs.map +1 -0
  197. package/dist/esm/chunk-HL2JMZ7N.mjs +2 -0
  198. package/dist/esm/chunk-HL2JMZ7N.mjs.map +1 -0
  199. package/dist/esm/chunk-I6YGBK5S.mjs +2 -0
  200. package/dist/esm/chunk-I6YGBK5S.mjs.map +1 -0
  201. package/dist/esm/chunk-K4NT6TTN.mjs +2 -0
  202. package/dist/esm/chunk-K4NT6TTN.mjs.map +1 -0
  203. package/dist/esm/chunk-KDMSOCZY.mjs +2 -0
  204. package/dist/esm/chunk-KDMSOCZY.mjs.map +1 -0
  205. package/dist/esm/chunk-KPJGWDSQ.mjs +7 -0
  206. package/dist/esm/chunk-KPJGWDSQ.mjs.map +1 -0
  207. package/dist/esm/chunk-MEWW7VTQ.mjs +2 -0
  208. package/dist/esm/chunk-MEWW7VTQ.mjs.map +1 -0
  209. package/dist/esm/chunk-NECL5FCQ.mjs +1 -0
  210. package/dist/esm/chunk-NECL5FCQ.mjs.map +1 -0
  211. package/dist/esm/chunk-NMFJJOGW.mjs +2 -0
  212. package/dist/esm/chunk-NMFJJOGW.mjs.map +1 -0
  213. package/dist/esm/chunk-NQUZ4UHR.mjs +2 -0
  214. package/dist/esm/chunk-NQUZ4UHR.mjs.map +1 -0
  215. package/dist/esm/chunk-NUB6KE73.mjs +2 -0
  216. package/dist/esm/chunk-NUB6KE73.mjs.map +1 -0
  217. package/dist/esm/chunk-OOOAVIMQ.mjs +2 -0
  218. package/dist/esm/chunk-OOOAVIMQ.mjs.map +1 -0
  219. package/dist/esm/chunk-PCESRJYO.mjs +2 -0
  220. package/dist/esm/chunk-PCESRJYO.mjs.map +1 -0
  221. package/dist/esm/chunk-PHRRBT44.mjs +2 -0
  222. package/dist/esm/chunk-PHRRBT44.mjs.map +1 -0
  223. package/dist/esm/chunk-PZ233FIY.mjs +2 -0
  224. package/dist/esm/chunk-PZ233FIY.mjs.map +1 -0
  225. package/dist/esm/chunk-R2G23RIY.mjs +2 -0
  226. package/dist/esm/chunk-R2G23RIY.mjs.map +1 -0
  227. package/dist/esm/chunk-RL4YPMN4.mjs +2 -0
  228. package/dist/esm/chunk-RL4YPMN4.mjs.map +1 -0
  229. package/dist/esm/chunk-RUIFVDWM.mjs +2 -0
  230. package/dist/esm/chunk-RUIFVDWM.mjs.map +1 -0
  231. package/dist/esm/chunk-RXHPS4IU.mjs +2 -0
  232. package/dist/esm/chunk-RXHPS4IU.mjs.map +1 -0
  233. package/dist/esm/chunk-S4D2KBYN.mjs +2 -0
  234. package/dist/esm/chunk-S4D2KBYN.mjs.map +1 -0
  235. package/dist/esm/chunk-SRXFRTHK.mjs +2 -0
  236. package/dist/esm/chunk-SRXFRTHK.mjs.map +1 -0
  237. package/dist/esm/chunk-SYXDZA4K.mjs +2 -0
  238. package/dist/esm/chunk-SYXDZA4K.mjs.map +1 -0
  239. package/dist/esm/chunk-UI4OF6CP.mjs +2 -0
  240. package/dist/esm/chunk-UI4OF6CP.mjs.map +1 -0
  241. package/dist/esm/chunk-UL777LTI.mjs +494 -0
  242. package/dist/esm/chunk-UL777LTI.mjs.map +1 -0
  243. package/dist/esm/chunk-UVP74ONT.mjs +2 -0
  244. package/dist/esm/chunk-UVP74ONT.mjs.map +1 -0
  245. package/dist/esm/chunk-UYVPNUH3.mjs +1 -0
  246. package/dist/esm/chunk-UYVPNUH3.mjs.map +1 -0
  247. package/dist/esm/chunk-V3MBJJTL.mjs +1 -0
  248. package/dist/esm/chunk-V3MBJJTL.mjs.map +1 -0
  249. package/dist/esm/chunk-V3O2SBO4.mjs +2 -0
  250. package/dist/esm/chunk-V3O2SBO4.mjs.map +1 -0
  251. package/dist/esm/chunk-VEZCMPUG.mjs +2 -0
  252. package/dist/esm/chunk-VEZCMPUG.mjs.map +1 -0
  253. package/dist/esm/chunk-VW3WBAAD.mjs +2 -0
  254. package/dist/esm/chunk-VW3WBAAD.mjs.map +1 -0
  255. package/dist/esm/chunk-WFAH73WN.mjs +2 -0
  256. package/dist/esm/chunk-WFAH73WN.mjs.map +1 -0
  257. package/dist/esm/chunk-WVDICMU4.mjs +2 -0
  258. package/dist/esm/chunk-WVDICMU4.mjs.map +1 -0
  259. package/dist/esm/chunk-XCURF77K.mjs +2 -0
  260. package/dist/esm/chunk-XCURF77K.mjs.map +1 -0
  261. package/dist/esm/chunk-Y6YW4BAZ.mjs +2 -0
  262. package/dist/esm/chunk-Y6YW4BAZ.mjs.map +1 -0
  263. package/dist/esm/chunk-YFFYA5U3.mjs +2 -0
  264. package/dist/esm/chunk-YFFYA5U3.mjs.map +1 -0
  265. package/dist/esm/chunk-YOHEYPDP.mjs +2 -0
  266. package/dist/esm/chunk-YOHEYPDP.mjs.map +1 -0
  267. package/dist/esm/chunk-ZP4DWSQA.mjs +2 -0
  268. package/dist/esm/chunk-ZP4DWSQA.mjs.map +1 -0
  269. package/dist/esm/cli/index.d.mts +10 -0
  270. package/dist/esm/cli/index.mjs +2 -0
  271. package/dist/esm/cli/index.mjs.map +1 -0
  272. package/dist/esm/cli/localNode.d.mts +67 -0
  273. package/dist/esm/cli/localNode.mjs +2 -0
  274. package/dist/esm/cli/localNode.mjs.map +1 -0
  275. package/dist/esm/cli/move.d.mts +257 -0
  276. package/dist/esm/cli/move.mjs +2 -0
  277. package/dist/esm/cli/move.mjs.map +1 -0
  278. package/dist/esm/client/core.d.mts +42 -0
  279. package/dist/esm/client/core.mjs +2 -0
  280. package/dist/esm/client/core.mjs.map +1 -0
  281. package/dist/esm/client/get.d.mts +125 -0
  282. package/dist/esm/client/get.mjs +2 -0
  283. package/dist/esm/client/get.mjs.map +1 -0
  284. package/dist/esm/client/index.d.mts +10 -0
  285. package/dist/esm/client/index.mjs +2 -0
  286. package/dist/esm/client/index.mjs.map +1 -0
  287. package/dist/esm/client/post.d.mts +158 -0
  288. package/dist/esm/client/post.mjs +2 -0
  289. package/dist/esm/client/post.mjs.map +1 -0
  290. package/dist/esm/core/account/index.d.mts +8 -0
  291. package/dist/esm/core/account/index.mjs +2 -0
  292. package/dist/esm/core/account/index.mjs.map +1 -0
  293. package/dist/esm/core/account/utils/address.d.mts +55 -0
  294. package/dist/esm/core/account/utils/address.mjs +2 -0
  295. package/dist/esm/core/account/utils/address.mjs.map +1 -0
  296. package/dist/esm/core/account/utils/index.d.mts +8 -0
  297. package/dist/esm/core/account/utils/index.mjs +2 -0
  298. package/dist/esm/core/account/utils/index.mjs.map +1 -0
  299. package/dist/esm/core/accountAddress.d.mts +7 -0
  300. package/dist/esm/core/accountAddress.mjs +2 -0
  301. package/dist/esm/core/accountAddress.mjs.map +1 -0
  302. package/dist/esm/core/authenticationKey.d.mts +7 -0
  303. package/dist/esm/core/authenticationKey.mjs +2 -0
  304. package/dist/esm/core/authenticationKey.mjs.map +1 -0
  305. package/dist/esm/core/common.d.mts +52 -0
  306. package/dist/esm/core/common.mjs +2 -0
  307. package/dist/esm/core/common.mjs.map +1 -0
  308. package/dist/esm/core/crypto/abstraction.d.mts +24 -0
  309. package/dist/esm/core/crypto/abstraction.mjs +2 -0
  310. package/dist/esm/core/crypto/abstraction.mjs.map +1 -0
  311. package/dist/esm/core/crypto/deserializationUtils.d.mts +28 -0
  312. package/dist/esm/core/crypto/deserializationUtils.mjs +2 -0
  313. package/dist/esm/core/crypto/deserializationUtils.mjs.map +1 -0
  314. package/dist/esm/core/crypto/ed25519.d.mts +7 -0
  315. package/dist/esm/core/crypto/ed25519.mjs +2 -0
  316. package/dist/esm/core/crypto/ed25519.mjs.map +1 -0
  317. package/dist/esm/core/crypto/ephemeral.d.mts +116 -0
  318. package/dist/esm/core/crypto/ephemeral.mjs +2 -0
  319. package/dist/esm/core/crypto/ephemeral.mjs.map +1 -0
  320. package/dist/esm/core/crypto/federatedKeyless.d.mts +13 -0
  321. package/dist/esm/core/crypto/federatedKeyless.mjs +2 -0
  322. package/dist/esm/core/crypto/federatedKeyless.mjs.map +1 -0
  323. package/dist/esm/core/crypto/hdKey.d.mts +95 -0
  324. package/dist/esm/core/crypto/hdKey.mjs +2 -0
  325. package/dist/esm/core/crypto/hdKey.mjs.map +1 -0
  326. package/dist/esm/core/crypto/index.d.mts +19 -0
  327. package/dist/esm/core/crypto/index.mjs +2 -0
  328. package/dist/esm/core/crypto/index.mjs.map +1 -0
  329. package/dist/esm/core/crypto/keyless.d.mts +13 -0
  330. package/dist/esm/core/crypto/keyless.mjs +2 -0
  331. package/dist/esm/core/crypto/keyless.mjs.map +1 -0
  332. package/dist/esm/core/crypto/multiEd25519.d.mts +7 -0
  333. package/dist/esm/core/crypto/multiEd25519.mjs +2 -0
  334. package/dist/esm/core/crypto/multiEd25519.mjs.map +1 -0
  335. package/dist/esm/core/crypto/multiKey.d.mts +7 -0
  336. package/dist/esm/core/crypto/multiKey.mjs +2 -0
  337. package/dist/esm/core/crypto/multiKey.mjs.map +1 -0
  338. package/dist/esm/core/crypto/poseidon.d.mts +59 -0
  339. package/dist/esm/core/crypto/poseidon.mjs +2 -0
  340. package/dist/esm/core/crypto/poseidon.mjs.map +1 -0
  341. package/dist/esm/core/crypto/privateKey.d.mts +7 -0
  342. package/dist/esm/core/crypto/privateKey.mjs +2 -0
  343. package/dist/esm/core/crypto/privateKey.mjs.map +1 -0
  344. package/dist/esm/core/crypto/proof.d.mts +18 -0
  345. package/dist/esm/core/crypto/proof.mjs +2 -0
  346. package/dist/esm/core/crypto/proof.mjs.map +1 -0
  347. package/dist/esm/core/crypto/publicKey.d.mts +7 -0
  348. package/dist/esm/core/crypto/publicKey.mjs +2 -0
  349. package/dist/esm/core/crypto/publicKey.mjs.map +1 -0
  350. package/dist/esm/core/crypto/secp256k1.d.mts +7 -0
  351. package/dist/esm/core/crypto/secp256k1.mjs +2 -0
  352. package/dist/esm/core/crypto/secp256k1.mjs.map +1 -0
  353. package/dist/esm/core/crypto/secp256r1.d.mts +306 -0
  354. package/dist/esm/core/crypto/secp256r1.mjs +2 -0
  355. package/dist/esm/core/crypto/secp256r1.mjs.map +1 -0
  356. package/dist/esm/core/crypto/signature.d.mts +7 -0
  357. package/dist/esm/core/crypto/signature.mjs +2 -0
  358. package/dist/esm/core/crypto/signature.mjs.map +1 -0
  359. package/dist/esm/core/crypto/singleKey.d.mts +7 -0
  360. package/dist/esm/core/crypto/singleKey.mjs +2 -0
  361. package/dist/esm/core/crypto/singleKey.mjs.map +1 -0
  362. package/dist/esm/core/crypto/types.d.mts +11 -0
  363. package/dist/esm/core/crypto/types.mjs +2 -0
  364. package/dist/esm/core/crypto/types.mjs.map +1 -0
  365. package/dist/esm/core/crypto/utils.d.mts +23 -0
  366. package/dist/esm/core/crypto/utils.mjs +2 -0
  367. package/dist/esm/core/crypto/utils.mjs.map +1 -0
  368. package/dist/esm/core/hex.d.mts +7 -0
  369. package/dist/esm/core/hex.mjs +2 -0
  370. package/dist/esm/core/hex.mjs.map +1 -0
  371. package/dist/esm/core/index.d.mts +20 -0
  372. package/dist/esm/core/index.mjs +2 -0
  373. package/dist/esm/core/index.mjs.map +1 -0
  374. package/dist/esm/errors/index.d.mts +131 -0
  375. package/dist/esm/errors/index.mjs +2 -0
  376. package/dist/esm/errors/index.mjs.map +1 -0
  377. package/dist/esm/federatedKeyless-D-d9d5aC.d.mts +869 -0
  378. package/dist/esm/index.d.mts +71 -0
  379. package/dist/esm/index.mjs +2 -0
  380. package/dist/esm/index.mjs.map +1 -0
  381. package/dist/esm/internal/abstraction.d.mts +27 -0
  382. package/dist/esm/internal/abstraction.mjs +2 -0
  383. package/dist/esm/internal/abstraction.mjs.map +1 -0
  384. package/dist/esm/internal/account.d.mts +453 -0
  385. package/dist/esm/internal/account.mjs +2 -0
  386. package/dist/esm/internal/account.mjs.map +1 -0
  387. package/dist/esm/internal/ans.d.mts +365 -0
  388. package/dist/esm/internal/ans.mjs +2 -0
  389. package/dist/esm/internal/ans.mjs.map +1 -0
  390. package/dist/esm/internal/coin.d.mts +31 -0
  391. package/dist/esm/internal/coin.mjs +2 -0
  392. package/dist/esm/internal/coin.mjs.map +1 -0
  393. package/dist/esm/internal/digitalAsset.d.mts +580 -0
  394. package/dist/esm/internal/digitalAsset.mjs +2 -0
  395. package/dist/esm/internal/digitalAsset.mjs.map +1 -0
  396. package/dist/esm/internal/faucet.d.mts +39 -0
  397. package/dist/esm/internal/faucet.mjs +2 -0
  398. package/dist/esm/internal/faucet.mjs.map +1 -0
  399. package/dist/esm/internal/fungibleAsset.d.mts +112 -0
  400. package/dist/esm/internal/fungibleAsset.mjs +2 -0
  401. package/dist/esm/internal/fungibleAsset.mjs.map +1 -0
  402. package/dist/esm/internal/general.d.mts +92 -0
  403. package/dist/esm/internal/general.mjs +2 -0
  404. package/dist/esm/internal/general.mjs.map +1 -0
  405. package/dist/esm/internal/keyless.d.mts +111 -0
  406. package/dist/esm/internal/keyless.mjs +2 -0
  407. package/dist/esm/internal/keyless.mjs.map +1 -0
  408. package/dist/esm/internal/object.d.mts +42 -0
  409. package/dist/esm/internal/object.mjs +2 -0
  410. package/dist/esm/internal/object.mjs.map +1 -0
  411. package/dist/esm/internal/staking.d.mts +60 -0
  412. package/dist/esm/internal/staking.mjs +2 -0
  413. package/dist/esm/internal/staking.mjs.map +1 -0
  414. package/dist/esm/internal/table.d.mts +66 -0
  415. package/dist/esm/internal/table.mjs +2 -0
  416. package/dist/esm/internal/table.mjs.map +1 -0
  417. package/dist/esm/internal/transaction.d.mts +199 -0
  418. package/dist/esm/internal/transaction.mjs +2 -0
  419. package/dist/esm/internal/transaction.mjs.map +1 -0
  420. package/dist/esm/internal/transactionSubmission.d.mts +165 -0
  421. package/dist/esm/internal/transactionSubmission.mjs +2 -0
  422. package/dist/esm/internal/transactionSubmission.mjs.map +1 -0
  423. package/dist/esm/internal/utils/index.d.mts +8 -0
  424. package/dist/esm/internal/utils/index.mjs +2 -0
  425. package/dist/esm/internal/utils/index.mjs.map +1 -0
  426. package/dist/esm/internal/utils/utils.d.mts +41 -0
  427. package/dist/esm/internal/utils/utils.mjs +2 -0
  428. package/dist/esm/internal/utils/utils.mjs.map +1 -0
  429. package/dist/esm/internal/view.d.mts +20 -0
  430. package/dist/esm/internal/view.mjs +2 -0
  431. package/dist/esm/internal/view.mjs.map +1 -0
  432. package/dist/esm/transactions/authenticator/account.d.mts +7 -0
  433. package/dist/esm/transactions/authenticator/account.mjs +2 -0
  434. package/dist/esm/transactions/authenticator/account.mjs.map +1 -0
  435. package/dist/esm/transactions/authenticator/index.d.mts +8 -0
  436. package/dist/esm/transactions/authenticator/index.mjs +2 -0
  437. package/dist/esm/transactions/authenticator/index.mjs.map +1 -0
  438. package/dist/esm/transactions/authenticator/transaction.d.mts +152 -0
  439. package/dist/esm/transactions/authenticator/transaction.mjs +2 -0
  440. package/dist/esm/transactions/authenticator/transaction.mjs.map +1 -0
  441. package/dist/esm/transactions/index.d.mts +15 -0
  442. package/dist/esm/transactions/index.mjs +2 -0
  443. package/dist/esm/transactions/index.mjs.map +1 -0
  444. package/dist/esm/transactions/instances/chainId.d.mts +7 -0
  445. package/dist/esm/transactions/instances/chainId.mjs +2 -0
  446. package/dist/esm/transactions/instances/chainId.mjs.map +1 -0
  447. package/dist/esm/transactions/instances/identifier.d.mts +7 -0
  448. package/dist/esm/transactions/instances/identifier.mjs +2 -0
  449. package/dist/esm/transactions/instances/identifier.mjs.map +1 -0
  450. package/dist/esm/transactions/instances/index.d.mts +10 -0
  451. package/dist/esm/transactions/instances/index.mjs +2 -0
  452. package/dist/esm/transactions/instances/index.mjs.map +1 -0
  453. package/dist/esm/transactions/instances/moduleId.d.mts +7 -0
  454. package/dist/esm/transactions/instances/moduleId.mjs +2 -0
  455. package/dist/esm/transactions/instances/moduleId.mjs.map +1 -0
  456. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +7 -0
  457. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +2 -0
  458. package/dist/esm/transactions/instances/multiAgentTransaction.mjs.map +1 -0
  459. package/dist/esm/transactions/instances/rawTransaction.d.mts +7 -0
  460. package/dist/esm/transactions/instances/rawTransaction.mjs +2 -0
  461. package/dist/esm/transactions/instances/rawTransaction.mjs.map +1 -0
  462. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +58 -0
  463. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +2 -0
  464. package/dist/esm/transactions/instances/rotationProofChallenge.mjs.map +1 -0
  465. package/dist/esm/transactions/instances/signedTransaction.d.mts +59 -0
  466. package/dist/esm/transactions/instances/signedTransaction.mjs +2 -0
  467. package/dist/esm/transactions/instances/signedTransaction.mjs.map +1 -0
  468. package/dist/esm/transactions/instances/simpleTransaction.d.mts +7 -0
  469. package/dist/esm/transactions/instances/simpleTransaction.mjs +2 -0
  470. package/dist/esm/transactions/instances/simpleTransaction.mjs.map +1 -0
  471. package/dist/esm/transactions/instances/transactionArgument.d.mts +7 -0
  472. package/dist/esm/transactions/instances/transactionArgument.mjs +2 -0
  473. package/dist/esm/transactions/instances/transactionArgument.mjs.map +1 -0
  474. package/dist/esm/transactions/instances/transactionPayload.d.mts +7 -0
  475. package/dist/esm/transactions/instances/transactionPayload.mjs +2 -0
  476. package/dist/esm/transactions/instances/transactionPayload.mjs.map +1 -0
  477. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +123 -0
  478. package/dist/esm/transactions/management/accountSequenceNumber.mjs +2 -0
  479. package/dist/esm/transactions/management/accountSequenceNumber.mjs.map +1 -0
  480. package/dist/esm/transactions/management/asyncQueue.d.mts +77 -0
  481. package/dist/esm/transactions/management/asyncQueue.mjs +2 -0
  482. package/dist/esm/transactions/management/asyncQueue.mjs.map +1 -0
  483. package/dist/esm/transactions/management/index.d.mts +12 -0
  484. package/dist/esm/transactions/management/index.mjs +2 -0
  485. package/dist/esm/transactions/management/index.mjs.map +1 -0
  486. package/dist/esm/transactions/management/transactionWorker.d.mts +210 -0
  487. package/dist/esm/transactions/management/transactionWorker.mjs +2 -0
  488. package/dist/esm/transactions/management/transactionWorker.mjs.map +1 -0
  489. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +159 -0
  490. package/dist/esm/transactions/transactionBuilder/helpers.mjs +2 -0
  491. package/dist/esm/transactions/transactionBuilder/helpers.mjs.map +1 -0
  492. package/dist/esm/transactions/transactionBuilder/index.d.mts +11 -0
  493. package/dist/esm/transactions/transactionBuilder/index.mjs +2 -0
  494. package/dist/esm/transactions/transactionBuilder/index.mjs.map +1 -0
  495. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +104 -0
  496. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +2 -0
  497. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs.map +1 -0
  498. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +62 -0
  499. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +2 -0
  500. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs.map +1 -0
  501. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +192 -0
  502. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +2 -0
  503. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs.map +1 -0
  504. package/dist/esm/transactions/typeTag/index.d.mts +7 -0
  505. package/dist/esm/transactions/typeTag/index.mjs +2 -0
  506. package/dist/esm/transactions/typeTag/index.mjs.map +1 -0
  507. package/dist/esm/transactions/typeTag/parser.d.mts +81 -0
  508. package/dist/esm/transactions/typeTag/parser.mjs +2 -0
  509. package/dist/esm/transactions/typeTag/parser.mjs.map +1 -0
  510. package/dist/esm/transactions/types.d.mts +7 -0
  511. package/dist/esm/transactions/types.mjs +2 -0
  512. package/dist/esm/transactions/types.mjs.map +1 -0
  513. package/dist/esm/types/abstraction.d.mts +15 -0
  514. package/dist/esm/types/abstraction.mjs +2 -0
  515. package/dist/esm/types/abstraction.mjs.map +1 -0
  516. package/dist/esm/types/generated/operations.d.mts +709 -0
  517. package/dist/esm/types/generated/operations.mjs +1 -0
  518. package/dist/esm/types/generated/operations.mjs.map +1 -0
  519. package/dist/esm/types/generated/queries.d.mts +66 -0
  520. package/dist/esm/types/generated/queries.mjs +2 -0
  521. package/dist/esm/types/generated/queries.mjs.map +1 -0
  522. package/dist/esm/types/generated/types.d.mts +9495 -0
  523. package/dist/esm/types/generated/types.mjs +2 -0
  524. package/dist/esm/types/generated/types.mjs.map +1 -0
  525. package/dist/esm/types/index.d.mts +7 -0
  526. package/dist/esm/types/index.mjs +2 -0
  527. package/dist/esm/types/index.mjs.map +1 -0
  528. package/dist/esm/types/indexer.d.mts +186 -0
  529. package/dist/esm/types/indexer.mjs +2 -0
  530. package/dist/esm/types/indexer.mjs.map +1 -0
  531. package/dist/esm/types/keyless.d.mts +102 -0
  532. package/dist/esm/types/keyless.mjs +1 -0
  533. package/dist/esm/types/keyless.mjs.map +1 -0
  534. package/dist/esm/types/types.d.mts +7 -0
  535. package/dist/esm/types/types.mjs +2 -0
  536. package/dist/esm/types/types.mjs.map +1 -0
  537. package/dist/esm/utils/apiEndpoints.d.mts +51 -0
  538. package/dist/esm/utils/apiEndpoints.mjs +2 -0
  539. package/dist/esm/utils/apiEndpoints.mjs.map +1 -0
  540. package/dist/esm/utils/const.d.mts +90 -0
  541. package/dist/esm/utils/const.mjs +2 -0
  542. package/dist/esm/utils/const.mjs.map +1 -0
  543. package/dist/esm/utils/helpers.d.mts +174 -0
  544. package/dist/esm/utils/helpers.mjs +2 -0
  545. package/dist/esm/utils/helpers.mjs.map +1 -0
  546. package/dist/esm/utils/index.d.mts +9 -0
  547. package/dist/esm/utils/index.mjs +2 -0
  548. package/dist/esm/utils/index.mjs.map +1 -0
  549. package/dist/esm/utils/memoize.d.mts +26 -0
  550. package/dist/esm/utils/memoize.mjs +2 -0
  551. package/dist/esm/utils/memoize.mjs.map +1 -0
  552. package/dist/esm/utils/normalizeBundle.d.mts +35 -0
  553. package/dist/esm/utils/normalizeBundle.mjs +2 -0
  554. package/dist/esm/utils/normalizeBundle.mjs.map +1 -0
  555. package/dist/esm/version.d.mts +8 -0
  556. package/dist/esm/version.mjs +2 -0
  557. package/dist/esm/version.mjs.map +1 -0
  558. package/package.json +98 -0
  559. package/src/account/AbstractKeylessAccount.ts +579 -0
  560. package/src/account/AbstractedAccount.ts +124 -0
  561. package/src/account/Account.ts +354 -0
  562. package/src/account/AccountUtils.ts +216 -0
  563. package/src/account/DerivableAbstractedAccount.ts +103 -0
  564. package/src/account/Ed25519Account.ts +210 -0
  565. package/src/account/EphemeralKeyPair.ts +222 -0
  566. package/src/account/FederatedKeylessAccount.ts +178 -0
  567. package/src/account/KeylessAccount.ts +179 -0
  568. package/src/account/MultiEd25519Account.ts +181 -0
  569. package/src/account/MultiKeyAccount.ts +296 -0
  570. package/src/account/SingleKeyAccount.ts +277 -0
  571. package/src/account/index.ts +12 -0
  572. package/src/account/utils.ts +16 -0
  573. package/src/api/account/abstraction.ts +239 -0
  574. package/src/api/account.ts +1128 -0
  575. package/src/api/ans.ts +550 -0
  576. package/src/api/coin.ts +83 -0
  577. package/src/api/digitalAsset.ts +1203 -0
  578. package/src/api/faucet.ts +94 -0
  579. package/src/api/fungibleAsset.ts +371 -0
  580. package/src/api/general.ts +351 -0
  581. package/src/api/index.ts +6 -0
  582. package/src/api/keyless.ts +227 -0
  583. package/src/api/movement.ts +171 -0
  584. package/src/api/movementConfig.ts +334 -0
  585. package/src/api/object.ts +90 -0
  586. package/src/api/staking.ts +161 -0
  587. package/src/api/table.ts +193 -0
  588. package/src/api/transaction.ts +784 -0
  589. package/src/api/transactionSubmission/build.ts +153 -0
  590. package/src/api/transactionSubmission/helpers.ts +112 -0
  591. package/src/api/transactionSubmission/management.ts +211 -0
  592. package/src/api/transactionSubmission/sign.ts +142 -0
  593. package/src/api/transactionSubmission/simulate.ts +192 -0
  594. package/src/api/transactionSubmission/submit.ts +156 -0
  595. package/src/api/utils.ts +48 -0
  596. package/src/bcs/consts.ts +28 -0
  597. package/src/bcs/deserializer.ts +550 -0
  598. package/src/bcs/index.ts +10 -0
  599. package/src/bcs/serializable/entryFunctionBytes.ts +92 -0
  600. package/src/bcs/serializable/fixedBytes.ts +107 -0
  601. package/src/bcs/serializable/movePrimitives.ts +564 -0
  602. package/src/bcs/serializable/moveStructs.ts +619 -0
  603. package/src/bcs/serializer.ts +641 -0
  604. package/src/cli/index.ts +2 -0
  605. package/src/cli/localNode.ts +169 -0
  606. package/src/cli/move.ts +474 -0
  607. package/src/client/core.ts +120 -0
  608. package/src/client/get.ts +262 -0
  609. package/src/client/index.ts +7 -0
  610. package/src/client/post.ts +245 -0
  611. package/src/core/account/index.ts +1 -0
  612. package/src/core/account/utils/address.ts +85 -0
  613. package/src/core/account/utils/index.ts +1 -0
  614. package/src/core/accountAddress.ts +524 -0
  615. package/src/core/authenticationKey.ts +157 -0
  616. package/src/core/common.ts +60 -0
  617. package/src/core/crypto/abstraction.ts +52 -0
  618. package/src/core/crypto/deserializationUtils.ts +106 -0
  619. package/src/core/crypto/ed25519.ts +493 -0
  620. package/src/core/crypto/ephemeral.ts +185 -0
  621. package/src/core/crypto/federatedKeyless.ts +169 -0
  622. package/src/core/crypto/hdKey.ts +136 -0
  623. package/src/core/crypto/index.ts +21 -0
  624. package/src/core/crypto/keyless.ts +1700 -0
  625. package/src/core/crypto/multiEd25519.ts +434 -0
  626. package/src/core/crypto/multiKey.ts +498 -0
  627. package/src/core/crypto/poseidon.ts +231 -0
  628. package/src/core/crypto/privateKey.ts +115 -0
  629. package/src/core/crypto/proof.ts +9 -0
  630. package/src/core/crypto/publicKey.ts +106 -0
  631. package/src/core/crypto/secp256k1.ts +451 -0
  632. package/src/core/crypto/secp256r1.ts +495 -0
  633. package/src/core/crypto/signature.ts +57 -0
  634. package/src/core/crypto/singleKey.ts +351 -0
  635. package/src/core/crypto/types.ts +9 -0
  636. package/src/core/crypto/utils.ts +63 -0
  637. package/src/core/hex.ts +241 -0
  638. package/src/core/index.ts +10 -0
  639. package/src/errors/index.ts +457 -0
  640. package/src/index.ts +14 -0
  641. package/src/internal/abstraction.ts +79 -0
  642. package/src/internal/account.ts +1484 -0
  643. package/src/internal/ans.ts +853 -0
  644. package/src/internal/coin.ts +49 -0
  645. package/src/internal/digitalAsset.ts +1291 -0
  646. package/src/internal/faucet.ts +71 -0
  647. package/src/internal/fungibleAsset.ts +233 -0
  648. package/src/internal/general.ts +161 -0
  649. package/src/internal/keyless.ts +297 -0
  650. package/src/internal/object.ts +68 -0
  651. package/src/internal/queries/TokenActivitiesFieldsFragment.graphql +17 -0
  652. package/src/internal/queries/ansTokenFragment.graphql +11 -0
  653. package/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql +46 -0
  654. package/src/internal/queries/getAccountAddressesForAuthKey.graphql +8 -0
  655. package/src/internal/queries/getAccountCoinCount.graphql +7 -0
  656. package/src/internal/queries/getAccountCoinsData.graphql +32 -0
  657. package/src/internal/queries/getAccountCollectionsWithOwnedTokens.graphql +33 -0
  658. package/src/internal/queries/getAccountOwnedTokens.graphql +11 -0
  659. package/src/internal/queries/getAccountOwnedTokensByTokenData.graphql +11 -0
  660. package/src/internal/queries/getAccountOwnedTokensFromCollectionAddress.graphql +11 -0
  661. package/src/internal/queries/getAccountTokensCount.graphql +7 -0
  662. package/src/internal/queries/getAccountTransactionsCount.graphql +7 -0
  663. package/src/internal/queries/getAuthKeysForPublicKey.graphql +11 -0
  664. package/src/internal/queries/getChainTopUserTransactions.graphql +5 -0
  665. package/src/internal/queries/getCollectionData.graphql +29 -0
  666. package/src/internal/queries/getCurrentFungibleAssetBalances.graphql +17 -0
  667. package/src/internal/queries/getDelegatedStakingActivities.graphql +12 -0
  668. package/src/internal/queries/getEvents.graphql +13 -0
  669. package/src/internal/queries/getFungibleAssetActivities.graphql +20 -0
  670. package/src/internal/queries/getFungibleAssetMetadata.graphql +18 -0
  671. package/src/internal/queries/getNames.graphql +11 -0
  672. package/src/internal/queries/getNumberOfDelegatorsQuery.graphql +9 -0
  673. package/src/internal/queries/getObjectData.graphql +16 -0
  674. package/src/internal/queries/getProcessorStatus.graphql +7 -0
  675. package/src/internal/queries/getTableItemsData.graphql +15 -0
  676. package/src/internal/queries/getTableItemsMetadata.graphql +12 -0
  677. package/src/internal/queries/getTokenActivity.graphql +11 -0
  678. package/src/internal/queries/getTokenCurrentOwner.graphql +11 -0
  679. package/src/internal/queries/getTokenData.graphql +39 -0
  680. package/src/internal/staking.ts +96 -0
  681. package/src/internal/table.ts +117 -0
  682. package/src/internal/transaction.ts +503 -0
  683. package/src/internal/transactionSubmission.ts +454 -0
  684. package/src/internal/utils/index.ts +4 -0
  685. package/src/internal/utils/utils.ts +86 -0
  686. package/src/internal/view.ts +61 -0
  687. package/src/transactions/authenticator/account.ts +405 -0
  688. package/src/transactions/authenticator/index.ts +6 -0
  689. package/src/transactions/authenticator/transaction.ts +288 -0
  690. package/src/transactions/index.ts +10 -0
  691. package/src/transactions/instances/chainId.ts +53 -0
  692. package/src/transactions/instances/identifier.ts +54 -0
  693. package/src/transactions/instances/index.ts +14 -0
  694. package/src/transactions/instances/moduleId.ts +77 -0
  695. package/src/transactions/instances/multiAgentTransaction.ts +92 -0
  696. package/src/transactions/instances/rawTransaction.ts +256 -0
  697. package/src/transactions/instances/rotationProofChallenge.ts +86 -0
  698. package/src/transactions/instances/signedTransaction.ts +73 -0
  699. package/src/transactions/instances/simpleTransaction.ts +83 -0
  700. package/src/transactions/instances/transactionArgument.ts +79 -0
  701. package/src/transactions/instances/transactionPayload.ts +676 -0
  702. package/src/transactions/management/accountSequenceNumber.ts +226 -0
  703. package/src/transactions/management/asyncQueue.ts +126 -0
  704. package/src/transactions/management/index.ts +2 -0
  705. package/src/transactions/management/transactionWorker.ts +396 -0
  706. package/src/transactions/transactionBuilder/helpers.ts +319 -0
  707. package/src/transactions/transactionBuilder/index.ts +8 -0
  708. package/src/transactions/transactionBuilder/remoteAbi.ts +655 -0
  709. package/src/transactions/transactionBuilder/signingMessage.ts +111 -0
  710. package/src/transactions/transactionBuilder/transactionBuilder.ts +863 -0
  711. package/src/transactions/typeTag/index.ts +926 -0
  712. package/src/transactions/typeTag/parser.ts +434 -0
  713. package/src/transactions/types.ts +518 -0
  714. package/src/types/abstraction.ts +14 -0
  715. package/src/types/codegen.yaml +33 -0
  716. package/src/types/generated/operations.ts +738 -0
  717. package/src/types/generated/queries.ts +926 -0
  718. package/src/types/generated/types.ts +10421 -0
  719. package/src/types/index.ts +2 -0
  720. package/src/types/indexer.ts +240 -0
  721. package/src/types/keyless.ts +94 -0
  722. package/src/types/types.ts +1713 -0
  723. package/src/utils/apiEndpoints.ts +107 -0
  724. package/src/utils/const.ts +100 -0
  725. package/src/utils/helpers.ts +287 -0
  726. package/src/utils/index.ts +4 -0
  727. package/src/utils/memoize.ts +76 -0
  728. package/src/utils/normalizeBundle.ts +34 -0
  729. package/src/version.ts +9 -0
@@ -0,0 +1,1203 @@
1
+ // Copyright © Move Industries
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import { Account } from "../account";
5
+ import { AccountAddress, AccountAddressInput } from "../core";
6
+ import {
7
+ addDigitalAssetPropertyTransaction,
8
+ addDigitalAssetTypedPropertyTransaction,
9
+ burnDigitalAssetTransaction,
10
+ CreateCollectionOptions,
11
+ createCollectionTransaction,
12
+ freezeDigitalAssetTransferTransaction,
13
+ getCollectionData,
14
+ getCollectionDataByCollectionId,
15
+ getCollectionDataByCreatorAddress,
16
+ getCollectionDataByCreatorAddressAndCollectionName,
17
+ getCollectionId,
18
+ getCurrentDigitalAssetOwnership,
19
+ getDigitalAssetActivity,
20
+ getDigitalAssetData,
21
+ getOwnedDigitalAssets,
22
+ mintDigitalAssetTransaction,
23
+ mintSoulBoundTransaction,
24
+ PropertyType,
25
+ PropertyValue,
26
+ removeDigitalAssetPropertyTransaction,
27
+ setDigitalAssetDescriptionTransaction,
28
+ setDigitalAssetNameTransaction,
29
+ setDigitalAssetURITransaction,
30
+ transferDigitalAssetTransaction,
31
+ unfreezeDigitalAssetTransferTransaction,
32
+ updateDigitalAssetPropertyTransaction,
33
+ updateDigitalAssetTypedPropertyTransaction,
34
+ } from "../internal/digitalAsset";
35
+ import { SimpleTransaction } from "../transactions/instances/simpleTransaction";
36
+ import { InputGenerateTransactionOptions } from "../transactions/types";
37
+ import {
38
+ AnyNumber,
39
+ GetCollectionDataResponse,
40
+ GetCurrentTokenOwnershipResponse,
41
+ GetOwnedTokensResponse,
42
+ GetTokenActivityResponse,
43
+ GetTokenDataResponse,
44
+ MoveStructId,
45
+ OrderByArg,
46
+ PaginationArgs,
47
+ TokenStandardArg,
48
+ } from "../types";
49
+ import { ProcessorType } from "../utils/const";
50
+ import { MovementConfig } from "./movementConfig";
51
+ import { waitForIndexerOnVersion } from "./utils";
52
+
53
+ /**
54
+ * A class to query all `DigitalAsset` related queries on Movement.
55
+ * @group DigitalAsset
56
+ */
57
+ export class DigitalAsset {
58
+ /**
59
+ * Initializes a new instance of the Movement client with the specified configuration.
60
+ * This allows you to interact with the Movement blockchain using the provided settings.
61
+ *
62
+ * @param config - The configuration settings for the Movement client.
63
+ *
64
+ * @example
65
+ * ```typescript
66
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
67
+ *
68
+ * async function runExample() {
69
+ * // Create a configuration for the Movement client
70
+ * const config = new MovementConfig({ network: Network.TESTNET }); // Specify your desired network
71
+ *
72
+ * // Initialize the Movement client with the configuration
73
+ * const movement = new Movement(config);
74
+ *
75
+ * console.log("Movement client initialized:", aptos);
76
+ * }
77
+ * runExample().catch(console.error);
78
+ * ```
79
+ * @group DigitalAsset
80
+ */
81
+ constructor(readonly config: MovementConfig) { }
82
+
83
+ /**
84
+ * Queries data of a specific collection by the collection creator address and the collection name.
85
+ * This function is deprecated; use `getCollectionDataByCreatorAddressAndCollectionName` instead.
86
+ *
87
+ * If a creator account has two collections with the same name in v1 and v2, you can pass an optional `tokenStandard` parameter
88
+ * to query a specific standard.
89
+ *
90
+ * @param args - The arguments for querying the collection data.
91
+ * @param args.creatorAddress - The address of the collection's creator.
92
+ * @param args.collectionName - The name of the collection.
93
+ * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
94
+ * @param args.options - Optional parameters for the query.
95
+ * @param args.options.tokenStandard - The token standard to query.
96
+ * @returns GetCollectionDataResponse - The response type containing the collection data.
97
+ *
98
+ * @example
99
+ * ```typescript
100
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
101
+ *
102
+ * const config = new MovementConfig({ network: Network.TESTNET });
103
+ * const movement = new Movement(config);
104
+ *
105
+ * async function runExample() {
106
+ * // Querying collection data by creator address and collection name
107
+ * const collection = await movement.getCollectionData({
108
+ * creatorAddress: "0x1", // replace with a real creator address
109
+ * collectionName: "myCollection", // specify your collection name
110
+ * });
111
+ *
112
+ * console.log(collection);
113
+ * }
114
+ * runExample().catch(console.error);
115
+ * ```
116
+ * @group DigitalAsset
117
+ */
118
+ async getCollectionData(args: {
119
+ creatorAddress: AccountAddressInput;
120
+ collectionName: string;
121
+ minimumLedgerVersion?: AnyNumber;
122
+ options?: TokenStandardArg;
123
+ }): Promise<GetCollectionDataResponse> {
124
+ await waitForIndexerOnVersion({
125
+ config: this.config,
126
+ minimumLedgerVersion: args.minimumLedgerVersion,
127
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
128
+ });
129
+
130
+ const { creatorAddress, collectionName, options } = args;
131
+ const address = AccountAddress.from(creatorAddress);
132
+
133
+ const whereCondition: any = {
134
+ collection_name: { _eq: collectionName },
135
+ creator_address: { _eq: address.toStringLong() },
136
+ };
137
+ if (options?.tokenStandard) {
138
+ whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
139
+ }
140
+
141
+ return getCollectionData({ movementConfig: this.config, options: { where: whereCondition } });
142
+ }
143
+
144
+ /**
145
+ * Queries data of a specific collection by the collection creator address and the collection name.
146
+ * If a creator account has multiple collections with the same name across different versions,
147
+ * specify the `tokenStandard` parameter to query a specific standard.
148
+ *
149
+ * @param args.creatorAddress - The address of the collection's creator.
150
+ * @param args.collectionName - The name of the collection.
151
+ * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
152
+ * @param args.options.tokenStandard - Optional token standard to query.
153
+ * @returns GetCollectionDataResponse - The response type containing collection data.
154
+ *
155
+ * @example
156
+ * ```typescript
157
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
158
+ *
159
+ * const config = new MovementConfig({ network: Network.TESTNET });
160
+ * const movement = new Movement(config);
161
+ *
162
+ * async function runExample() {
163
+ * // Fetching collection data by creator address and collection name
164
+ * const collection = await movement.getCollectionDataByCreatorAddressAndCollectionName({
165
+ * creatorAddress: "0x1", // replace with a real creator address
166
+ * collectionName: "myCollection",
167
+ * minimumLedgerVersion: 1, // optional, specify if needed
168
+ * options: { tokenStandard: "v2" } // optional, specify if needed
169
+ * });
170
+ *
171
+ * console.log(collection);
172
+ * }
173
+ * runExample().catch(console.error);
174
+ * ```
175
+ * @group DigitalAsset
176
+ */
177
+ async getCollectionDataByCreatorAddressAndCollectionName(args: {
178
+ creatorAddress: AccountAddressInput;
179
+ collectionName: string;
180
+ minimumLedgerVersion?: AnyNumber;
181
+ options?: TokenStandardArg & PaginationArgs;
182
+ }): Promise<GetCollectionDataResponse> {
183
+ await waitForIndexerOnVersion({
184
+ config: this.config,
185
+ minimumLedgerVersion: args.minimumLedgerVersion,
186
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
187
+ });
188
+
189
+ return getCollectionDataByCreatorAddressAndCollectionName({ movementConfig: this.config, ...args });
190
+ }
191
+
192
+ /**
193
+ * Retrieves data for a specific collection created by a given creator address.
194
+ * This function allows you to query collection data while optionally specifying a minimum ledger version and pagination options.
195
+ *
196
+ * @param args.creatorAddress - The address of the collection's creator.
197
+ * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
198
+ * @param args.options.tokenStandard - Optional token standard to query.
199
+ * @param args.options.pagination - Optional pagination arguments.
200
+ * @returns GetCollectionDataResponse - The response type containing collection data.
201
+ *
202
+ * @example
203
+ * ```typescript
204
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
205
+ *
206
+ * const config = new MovementConfig({ network: Network.TESTNET });
207
+ * const movement = new Movement(config);
208
+ *
209
+ * async function runExample() {
210
+ * // Retrieve collection data by creator address
211
+ * const collectionData = await movement.getCollectionDataByCreatorAddress({
212
+ * creatorAddress: "0x1", // replace with a real creator address
213
+ * minimumLedgerVersion: 1, // specify the minimum ledger version if needed
214
+ * options: {
215
+ * tokenStandard: "v2", // specify the token standard if needed
216
+ * pagination: { limit: 10, offset: 0 } // specify pagination options if needed
217
+ * }
218
+ * });
219
+ *
220
+ * console.log(collectionData);
221
+ * }
222
+ * runExample().catch(console.error);
223
+ * ```
224
+ * @group DigitalAsset
225
+ */
226
+ async getCollectionDataByCreatorAddress(args: {
227
+ creatorAddress: AccountAddressInput;
228
+ minimumLedgerVersion?: AnyNumber;
229
+ options?: TokenStandardArg & PaginationArgs;
230
+ }): Promise<GetCollectionDataResponse> {
231
+ await waitForIndexerOnVersion({
232
+ config: this.config,
233
+ minimumLedgerVersion: args.minimumLedgerVersion,
234
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
235
+ });
236
+
237
+ return getCollectionDataByCreatorAddress({ movementConfig: this.config, ...args });
238
+ }
239
+
240
+ /**
241
+ * Queries data of a specific collection by the collection ID.
242
+ *
243
+ * @param args.collectionId - The ID of the collection, which is the same as the address of the collection object.
244
+ * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
245
+ * @param args.options - Optional parameters for token standard and pagination.
246
+ * @returns GetCollectionDataResponse - The response type containing the collection data.
247
+ *
248
+ * @example
249
+ * ```typescript
250
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
251
+ *
252
+ * const config = new MovementConfig({ network: Network.TESTNET });
253
+ * const movement = new Movement(config);
254
+ *
255
+ * async function runExample() {
256
+ * // Fetching collection data by collection ID
257
+ * const collection = await movement.getCollectionDataByCollectionId({
258
+ * collectionId: "0x123", // replace with a real collection ID
259
+ * });
260
+ *
261
+ * console.log(collection);
262
+ * }
263
+ * runExample().catch(console.error);
264
+ * ```
265
+ * @group DigitalAsset
266
+ */
267
+ async getCollectionDataByCollectionId(args: {
268
+ collectionId: AccountAddressInput;
269
+ minimumLedgerVersion?: AnyNumber;
270
+ options?: TokenStandardArg & PaginationArgs;
271
+ }): Promise<GetCollectionDataResponse> {
272
+ await waitForIndexerOnVersion({
273
+ config: this.config,
274
+ minimumLedgerVersion: args.minimumLedgerVersion,
275
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
276
+ });
277
+ return getCollectionDataByCollectionId({ movementConfig: this.config, ...args });
278
+ }
279
+
280
+ /**
281
+ * Queries the ID of a specified collection.
282
+ * This ID corresponds to the collection's object address in V2, while V1 does not utilize objects and lacks an address.
283
+ *
284
+ * @param args.creatorAddress - The address of the collection's creator.
285
+ * @param args.collectionName - The name of the collection.
286
+ * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
287
+ * @param args.options.tokenStandard - The token standard to query.
288
+ * @returns The collection ID.
289
+ *
290
+ * @example
291
+ * ```typescript
292
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
293
+ *
294
+ * const config = new MovementConfig({ network: Network.TESTNET });
295
+ * const movement = new Movement(config);
296
+ *
297
+ * async function runExample() {
298
+ * // Fetching the collection ID for a specific creator and collection name
299
+ * const collectionId = await movement.getCollectionId({
300
+ * creatorAddress: "0x1", // replace with a real creator address
301
+ * collectionName: "myCollection"
302
+ * });
303
+ *
304
+ * console.log("Collection ID:", collectionId);
305
+ * }
306
+ * runExample().catch(console.error);
307
+ * ```
308
+ * @group DigitalAsset
309
+ */
310
+ async getCollectionId(args: {
311
+ creatorAddress: AccountAddressInput;
312
+ collectionName: string;
313
+ minimumLedgerVersion?: AnyNumber;
314
+ options?: TokenStandardArg;
315
+ }): Promise<string> {
316
+ await waitForIndexerOnVersion({
317
+ config: this.config,
318
+ minimumLedgerVersion: args.minimumLedgerVersion,
319
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
320
+ });
321
+ return getCollectionId({ movementConfig: this.config, ...args });
322
+ }
323
+
324
+ /**
325
+ * Retrieves digital asset data using the address of a digital asset.
326
+ *
327
+ * @param args - The parameters for the request.
328
+ * @param args.digitalAssetAddress - The address of the digital asset.
329
+ * @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
330
+ * @returns GetTokenDataResponse containing relevant data for the digital asset.
331
+ *
332
+ * @example
333
+ * ```typescript
334
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
335
+ *
336
+ * const config = new MovementConfig({ network: Network.TESTNET });
337
+ * const movement = new Movement(config);
338
+ *
339
+ * async function runExample() {
340
+ * // Fetching digital asset data for a specific address
341
+ * const digitalAsset = await movement.getDigitalAssetData({
342
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
343
+ * });
344
+ *
345
+ * console.log(digitalAsset);
346
+ * }
347
+ * runExample().catch(console.error);
348
+ * ```
349
+ * @group DigitalAsset
350
+ */
351
+ async getDigitalAssetData(args: {
352
+ digitalAssetAddress: AccountAddressInput;
353
+ minimumLedgerVersion?: AnyNumber;
354
+ }): Promise<GetTokenDataResponse> {
355
+ await waitForIndexerOnVersion({
356
+ config: this.config,
357
+ minimumLedgerVersion: args.minimumLedgerVersion,
358
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
359
+ });
360
+ return getDigitalAssetData({ movementConfig: this.config, ...args });
361
+ }
362
+
363
+ /**
364
+ * Retrieves the current ownership data of a specified digital asset using its address.
365
+ *
366
+ * @param args The parameters for the request.
367
+ * @param args.digitalAssetAddress The address of the digital asset.
368
+ * @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
369
+ *
370
+ * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
371
+ *
372
+ * @example
373
+ * ```typescript
374
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
375
+ *
376
+ * const config = new MovementConfig({ network: Network.TESTNET });
377
+ * const movement = new Movement(config);
378
+ *
379
+ * async function runExample() {
380
+ * // Getting the current ownership of a digital asset
381
+ * const digitalAssetOwner = await movement.getCurrentDigitalAssetOwnership({
382
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
383
+ * });
384
+ *
385
+ * console.log(digitalAssetOwner);
386
+ * }
387
+ * runExample().catch(console.error);
388
+ * ```
389
+ * @group DigitalAsset
390
+ */
391
+ async getCurrentDigitalAssetOwnership(args: {
392
+ digitalAssetAddress: AccountAddressInput;
393
+ minimumLedgerVersion?: AnyNumber;
394
+ }): Promise<GetCurrentTokenOwnershipResponse> {
395
+ await waitForIndexerOnVersion({
396
+ config: this.config,
397
+ minimumLedgerVersion: args.minimumLedgerVersion,
398
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
399
+ });
400
+ return getCurrentDigitalAssetOwnership({ movementConfig: this.config, ...args });
401
+ }
402
+
403
+ /**
404
+ * Retrieves the digital assets owned by a specified address.
405
+ *
406
+ * @param args.ownerAddress The address of the owner.
407
+ * @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
408
+ * @param args.options Optional pagination and ordering parameters for the response.
409
+ *
410
+ * @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddress.
411
+ *
412
+ * @example
413
+ * ```typescript
414
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
415
+ *
416
+ * const config = new MovementConfig({ network: Network.TESTNET });
417
+ * const movement = new Movement(config);
418
+ *
419
+ * async function runExample() {
420
+ * // Fetching the digital assets owned by the specified address
421
+ * const digitalAssets = await movement.getOwnedDigitalAssets({
422
+ * ownerAddress: "0x1", // replace with a real account address
423
+ * });
424
+ *
425
+ * console.log(digitalAssets);
426
+ * }
427
+ * runExample().catch(console.error);
428
+ * ```
429
+ * @group DigitalAsset
430
+ */
431
+ async getOwnedDigitalAssets(args: {
432
+ ownerAddress: AccountAddressInput;
433
+ minimumLedgerVersion?: AnyNumber;
434
+ options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
435
+ }): Promise<GetOwnedTokensResponse> {
436
+ await waitForIndexerOnVersion({
437
+ config: this.config,
438
+ minimumLedgerVersion: args.minimumLedgerVersion,
439
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
440
+ });
441
+ return getOwnedDigitalAssets({ movementConfig: this.config, ...args });
442
+ }
443
+
444
+ /**
445
+ * Retrieves the activity data for a specified digital asset using its address.
446
+ *
447
+ * @param args - The parameters for the request.
448
+ * @param args.digitalAssetAddress - The address of the digital asset.
449
+ * @param args.minimumLedgerVersion - Optional minimum ledger version to sync up to before querying.
450
+ * @param args.options - Optional pagination and ordering parameters.
451
+ *
452
+ * @returns A promise that resolves to the activity data related to the digital asset.
453
+ *
454
+ * @example
455
+ * ```typescript
456
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
457
+ *
458
+ * const config = new MovementConfig({ network: Network.TESTNET });
459
+ * const movement = new Movement(config);
460
+ *
461
+ * async function runExample() {
462
+ * // Get the activity data for a digital asset
463
+ * const digitalAssetActivity = await movement.getDigitalAssetActivity({
464
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
465
+ * });
466
+ *
467
+ * console.log(digitalAssetActivity);
468
+ * }
469
+ * runExample().catch(console.error);
470
+ * ```
471
+ * @group DigitalAsset
472
+ */
473
+ async getDigitalAssetActivity(args: {
474
+ digitalAssetAddress: AccountAddressInput;
475
+ minimumLedgerVersion?: AnyNumber;
476
+ options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
477
+ }): Promise<GetTokenActivityResponse> {
478
+ await waitForIndexerOnVersion({
479
+ config: this.config,
480
+ minimumLedgerVersion: args.minimumLedgerVersion,
481
+ processorType: ProcessorType.TOKEN_V2_PROCESSOR,
482
+ });
483
+ return getDigitalAssetActivity({ movementConfig: this.config, ...args });
484
+ }
485
+
486
+ /**
487
+ * Creates a new collection within the specified account.
488
+ *
489
+ * @param args.creator - The account of the collection's creator.
490
+ * @param args.description - The description of the collection.
491
+ * @param args.name - The name of the collection.
492
+ * @param args.uri - The URI to additional info about the collection.
493
+ * @param args.options - Optional parameters for generating the transaction.
494
+ *
495
+ * The parameters below are optional:
496
+ * @param args.maxSupply - Controls the max supply of the digital assets. Defaults to MAX_U64_BIG_INT.
497
+ * @param args.mutableDescription - Controls mutability of the collection's description. Defaults to true.
498
+ * @param args.mutableRoyalty - Controls mutability of the collection's royalty. Defaults to true.
499
+ * @param args.mutableUri - Controls mutability of the collection's URI. Defaults to true.
500
+ * @param args.mutableTokenDescription - Controls mutability of the digital asset's description. Defaults to true.
501
+ * @param args.mutableTokenName - Controls mutability of the digital asset's name. Defaults to true.
502
+ * @param args.mutableTokenProperties - Controls mutability of digital asset's properties. Defaults to true.
503
+ * @param args.mutableTokenUri - Controls mutability of the digital asset's URI. Defaults to true.
504
+ * @param args.tokensBurnableByCreator - Controls whether digital assets can be burnable by the creator. Defaults to true.
505
+ * @param args.tokensFreezableByCreator - Controls whether digital assets can be frozen by the creator. Defaults to true.
506
+ * @param args.royaltyNumerator - The numerator of the royalty to be paid to the creator when a digital asset is transferred.
507
+ * Defaults to 0.
508
+ * @param args.royaltyDenominator - The denominator of the royalty to be paid to the creator when a digital asset is
509
+ * transferred. Defaults to 1.
510
+ *
511
+ * @returns A SimpleTransaction that when submitted will create the collection.
512
+ *
513
+ * @example
514
+ * ```typescript
515
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
516
+ *
517
+ * const config = new MovementConfig({ network: Network.TESTNET });
518
+ * const movement = new Movement(config);
519
+ *
520
+ * async function runExample() {
521
+ * // Creating a new collection transaction
522
+ * const transaction = await movement.createCollectionTransaction({
523
+ * creator: Account.generate(), // Replace with a real account
524
+ * description: "A unique collection of digital assets.",
525
+ * name: "My Digital Collection",
526
+ * uri: "https://mycollection.com",
527
+ * });
528
+ *
529
+ * console.log("Transaction created:", transaction);
530
+ * }
531
+ * runExample().catch(console.error);
532
+ * ```
533
+ * @group DigitalAsset
534
+ */
535
+ async createCollectionTransaction(
536
+ args: {
537
+ creator: Account;
538
+ description: string;
539
+ name: string;
540
+ uri: string;
541
+ options?: InputGenerateTransactionOptions;
542
+ } & CreateCollectionOptions,
543
+ ): Promise<SimpleTransaction> {
544
+ return createCollectionTransaction({ movementConfig: this.config, ...args });
545
+ }
546
+
547
+ /**
548
+ * Create a transaction to mint a digital asset into the creator's account within an existing collection.
549
+ * This function helps you generate a transaction that can be simulated or submitted to the blockchain for minting a digital asset.
550
+ *
551
+ * @param args.creator - The creator of the collection.
552
+ * @param args.collection - The name of the collection the digital asset belongs to.
553
+ * @param args.description - The description of the digital asset.
554
+ * @param args.name - The name of the digital asset.
555
+ * @param args.uri - The URI to additional info about the digital asset.
556
+ * @param args.propertyKeys - Optional array of property keys for the digital asset.
557
+ * @param args.propertyTypes - Optional array of property types for the digital asset.
558
+ * @param args.propertyValues - Optional array of property values for the digital asset.
559
+ * @param args.options - Optional transaction generation options.
560
+ *
561
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
562
+ *
563
+ * @example
564
+ * ```typescript
565
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
566
+ *
567
+ * const config = new MovementConfig({ network: Network.TESTNET });
568
+ * const movement = new Movement(config);
569
+ *
570
+ * async function runExample() {
571
+ * // Creating a transaction to mint a digital asset
572
+ * const transaction = await movement.mintDigitalAssetTransaction({
573
+ * creator: Account.generate(), // replace with a real account
574
+ * collection: "MyCollection",
575
+ * description: "This is a digital asset.",
576
+ * name: "MyDigitalAsset",
577
+ * uri: "https://example.com/my-digital-asset",
578
+ * });
579
+ *
580
+ * console.log(transaction);
581
+ * }
582
+ * runExample().catch(console.error);
583
+ * ```
584
+ * @group DigitalAsset
585
+ */
586
+ async mintDigitalAssetTransaction(args: {
587
+ creator: Account;
588
+ collection: string;
589
+ description: string;
590
+ name: string;
591
+ uri: string;
592
+ propertyKeys?: Array<string>;
593
+ propertyTypes?: Array<PropertyType>;
594
+ propertyValues?: Array<PropertyValue>;
595
+ options?: InputGenerateTransactionOptions;
596
+ }): Promise<SimpleTransaction> {
597
+ return mintDigitalAssetTransaction({ movementConfig: this.config, ...args });
598
+ }
599
+
600
+ /**
601
+ * Transfer ownership of a non-fungible digital asset.
602
+ * This function allows you to transfer a digital asset only if it is not frozen, meaning the ownership transfer is not disabled.
603
+ *
604
+ * @param args The arguments for transferring the digital asset.
605
+ * @param args.sender The sender account of the current digital asset owner.
606
+ * @param args.digitalAssetAddress The address of the digital asset being transferred.
607
+ * @param args.recipient The account address of the recipient.
608
+ * @param args.digitalAssetType Optional. The type of the digital asset, defaults to "0x4::token::Token".
609
+ * @param args.options Optional. Additional options for generating the transaction.
610
+ *
611
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
612
+ *
613
+ * @example
614
+ * ```typescript
615
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
616
+ *
617
+ * const config = new MovementConfig({ network: Network.TESTNET });
618
+ * const movement = new Movement(config);
619
+ *
620
+ * async function runExample() {
621
+ * // Transfer a digital asset
622
+ * const transaction = await movement.transferDigitalAssetTransaction({
623
+ * sender: Account.generate(), // replace with a real sender account
624
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
625
+ * recipient: "0x456", // replace with a real recipient account address
626
+ * });
627
+ *
628
+ * console.log(transaction);
629
+ * }
630
+ * runExample().catch(console.error);
631
+ * ```
632
+ * @group DigitalAsset
633
+ */
634
+ async transferDigitalAssetTransaction(args: {
635
+ sender: Account;
636
+ digitalAssetAddress: AccountAddressInput;
637
+ recipient: AccountAddress;
638
+ digitalAssetType?: MoveStructId;
639
+ options?: InputGenerateTransactionOptions;
640
+ }): Promise<SimpleTransaction> {
641
+ return transferDigitalAssetTransaction({ movementConfig: this.config, ...args });
642
+ }
643
+
644
+ /**
645
+ * Mint a soul bound digital asset into a recipient's account.
646
+ * This function allows you to create a unique digital asset that is bound to a specific account.
647
+ *
648
+ * @param args - The arguments for minting the soul bound transaction.
649
+ * @param args.account - The account that mints the digital asset.
650
+ * @param args.collection - The collection name that the digital asset belongs to.
651
+ * @param args.description - The digital asset description.
652
+ * @param args.name - The digital asset name.
653
+ * @param args.uri - The digital asset URL.
654
+ * @param args.recipient - The account address where the digital asset will be created.
655
+ * @param args.propertyKeys - The property keys for storing on-chain properties.
656
+ * @param args.propertyTypes - The type of property values.
657
+ * @param args.propertyValues - The property values to be stored on-chain.
658
+ * @param args.options - Additional options for generating the transaction.
659
+ *
660
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
661
+ *
662
+ * @example
663
+ * ```typescript
664
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
665
+ *
666
+ * const config = new MovementConfig({ network: Network.TESTNET });
667
+ * const movement = new Movement(config);
668
+ *
669
+ * async function runExample() {
670
+ * // Mint a soul bound digital asset
671
+ * const transaction = await movement.mintSoulBoundTransaction({
672
+ * account: Account.generate(), // Replace with a real account
673
+ * collection: "collectionName",
674
+ * description: "collectionDescription",
675
+ * name: "digitalAssetName",
676
+ * uri: "digital-asset-uri.com",
677
+ * recipient: "0x123" // Replace with a real recipient account address
678
+ * });
679
+ *
680
+ * console.log(transaction);
681
+ * }
682
+ * runExample().catch(console.error);
683
+ * ```
684
+ * @group DigitalAsset
685
+ */
686
+ async mintSoulBoundTransaction(args: {
687
+ account: Account;
688
+ collection: string;
689
+ description: string;
690
+ name: string;
691
+ uri: string;
692
+ recipient: AccountAddressInput;
693
+ propertyKeys?: Array<string>;
694
+ propertyTypes?: Array<PropertyType>;
695
+ propertyValues?: Array<PropertyValue>;
696
+ options?: InputGenerateTransactionOptions;
697
+ }): Promise<SimpleTransaction> {
698
+ return mintSoulBoundTransaction({ movementConfig: this.config, ...args });
699
+ }
700
+
701
+ /**
702
+ * Burn a digital asset by its creator, allowing for the removal of a specified digital asset from the blockchain.
703
+ *
704
+ * @param args The arguments for burning the digital asset.
705
+ * @param args.creator The creator account that is burning the digital asset.
706
+ * @param args.digitalAssetAddress The address of the digital asset to be burned.
707
+ * @param args.digitalAssetType Optional. The type of the digital asset being burned.
708
+ * @param args.options Optional. Additional options for generating the transaction.
709
+ *
710
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
711
+ *
712
+ * @example
713
+ * ```typescript
714
+ * import { Movement, MovementConfig, Network, Account } from "@moveindustries/ts-sdk";
715
+ *
716
+ * const config = new MovementConfig({ network: Network.TESTNET });
717
+ * const movement = new Movement(config);
718
+ *
719
+ * async function runExample() {
720
+ * const creator = Account.generate(); // Replace with a real creator account
721
+ * const transaction = await movement.burnDigitalAssetTransaction({
722
+ * creator: creator,
723
+ * digitalAssetAddress: "0x123", // Replace with a real digital asset address
724
+ * });
725
+ *
726
+ * console.log(transaction);
727
+ * }
728
+ * runExample().catch(console.error);
729
+ * ```
730
+ * @group DigitalAsset
731
+ */
732
+ async burnDigitalAssetTransaction(args: {
733
+ creator: Account;
734
+ digitalAssetAddress: AccountAddressInput;
735
+ digitalAssetType?: MoveStructId;
736
+ options?: InputGenerateTransactionOptions;
737
+ }) {
738
+ return burnDigitalAssetTransaction({ movementConfig: this.config, ...args });
739
+ }
740
+
741
+ /**
742
+ * Freeze the ability to transfer a specified digital asset.
743
+ * This function allows the creator to restrict the transfer capability of a digital asset.
744
+ *
745
+ * @param args The arguments for freezing the digital asset transfer.
746
+ * @param args.creator The creator account initiating the freeze.
747
+ * @param args.digitalAssetAddress The address of the digital asset to be frozen.
748
+ * @param args.digitalAssetType Optional. The type of the digital asset being frozen.
749
+ * @param args.options Optional. Additional options for generating the transaction.
750
+ *
751
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
752
+ *
753
+ * @example
754
+ * ```typescript
755
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
756
+ *
757
+ * const config = new MovementConfig({ network: Network.TESTNET });
758
+ * const movement = new Movement(config);
759
+ *
760
+ * async function runExample() {
761
+ * // Freeze the digital asset transfer
762
+ * const transaction = await movement.freezeDigitalAssetTransaferTransaction({
763
+ * creator: Account.generate(), // Replace with a real account if needed
764
+ * digitalAssetAddress: "0x123", // Replace with a real digital asset address
765
+ * });
766
+ *
767
+ * console.log(transaction);
768
+ * }
769
+ * runExample().catch(console.error);
770
+ * ```
771
+ * @group DigitalAsset
772
+ */
773
+ async freezeDigitalAssetTransaferTransaction(args: {
774
+ creator: Account;
775
+ digitalAssetAddress: AccountAddressInput;
776
+ digitalAssetType?: MoveStructId;
777
+ options?: InputGenerateTransactionOptions;
778
+ }) {
779
+ return freezeDigitalAssetTransferTransaction({ movementConfig: this.config, ...args });
780
+ }
781
+
782
+ /**
783
+ * Unfreeze the ability to transfer a digital asset.
784
+ * This function allows the specified creator account to unfreeze the transfer of a digital asset identified by its address.
785
+ *
786
+ * @param args The parameters for unfreezing the digital asset transfer.
787
+ * @param args.creator The creator account that is unfreezing the digital asset transfer.
788
+ * @param args.digitalAssetAddress The address of the digital asset to unfreeze.
789
+ * @param args.digitalAssetType Optional. The type of the digital asset being unfrozen.
790
+ * @param args.options Optional. Additional options for generating the transaction.
791
+ *
792
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
793
+ *
794
+ * @example
795
+ * ```typescript
796
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
797
+ *
798
+ * const config = new MovementConfig({ network: Network.TESTNET });
799
+ * const movement = new Movement(config);
800
+ *
801
+ * async function runExample() {
802
+ * // Unfreeze the ability to transfer a digital asset
803
+ * const transaction = await movement.unfreezeDigitalAssetTransaferTransaction({
804
+ * creator: Account.generate(), // replace with a real creator account
805
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
806
+ * });
807
+ *
808
+ * console.log(transaction);
809
+ * }
810
+ * runExample().catch(console.error);
811
+ * ```
812
+ * @group DigitalAsset
813
+ */
814
+ // TODO: Rename Transafer to Transfer
815
+ async unfreezeDigitalAssetTransaferTransaction(args: {
816
+ creator: Account;
817
+ digitalAssetAddress: AccountAddressInput;
818
+ digitalAssetType?: MoveStructId;
819
+ options?: InputGenerateTransactionOptions;
820
+ }) {
821
+ return unfreezeDigitalAssetTransferTransaction({ movementConfig: this.config, ...args });
822
+ }
823
+
824
+ /**
825
+ * Set the digital asset description to provide additional context or information about the asset.
826
+ *
827
+ * @param args The parameters for setting the digital asset description.
828
+ * @param args.creator The creator account responsible for the digital asset.
829
+ * @param args.description The digital asset description to be set.
830
+ * @param args.digitalAssetAddress The address of the digital asset.
831
+ * @param args.digitalAssetType Optional. The type of the digital asset.
832
+ * @param args.options Optional. Additional options for generating the transaction.
833
+ *
834
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
835
+ *
836
+ * @example
837
+ * ```typescript
838
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
839
+ *
840
+ * const config = new MovementConfig({ network: Network.TESTNET });
841
+ * const movement = new Movement(config);
842
+ *
843
+ * async function runExample() {
844
+ * // Set the digital asset description
845
+ * const transaction = await movement.setDigitalAssetDescriptionTransaction({
846
+ * creator: Account.generate(), // replace with a real account
847
+ * description: "This is a digital asset description.",
848
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
849
+ * });
850
+ *
851
+ * console.log(transaction);
852
+ * }
853
+ * runExample().catch(console.error);
854
+ * ```
855
+ * @group DigitalAsset
856
+ */
857
+ async setDigitalAssetDescriptionTransaction(args: {
858
+ creator: Account;
859
+ description: string;
860
+ digitalAssetAddress: AccountAddressInput;
861
+ digitalAssetType?: MoveStructId;
862
+ options?: InputGenerateTransactionOptions;
863
+ }) {
864
+ return setDigitalAssetDescriptionTransaction({ movementConfig: this.config, ...args });
865
+ }
866
+
867
+ /**
868
+ * Set the digital asset name, allowing you to define a name for a specific digital asset on the blockchain.
869
+ *
870
+ * @param args The parameters for setting the digital asset name.
871
+ * @param args.creator The creator account responsible for the transaction.
872
+ * @param args.name The desired name for the digital asset.
873
+ * @param args.digitalAssetAddress The address of the digital asset.
874
+ * @param args.digitalAssetType Optional. The type of the digital asset, represented as a Move struct ID.
875
+ * @param args.options Optional. Additional options for generating the transaction.
876
+ *
877
+ * @returns A SimpleTransaction that can be simulated or submitted to the blockchain.
878
+ *
879
+ * @example
880
+ * ```typescript
881
+ * import { Movement, MovementConfig, Network, Account } from "@moveindustries/ts-sdk";
882
+ *
883
+ * const config = new MovementConfig({ network: Network.TESTNET });
884
+ * const movement = new Movement(config);
885
+ *
886
+ * async function runExample() {
887
+ * const creator = Account.generate(); // Generate a new account for the creator
888
+ * const digitalAssetAddress = "0x123"; // replace with a real digital asset address
889
+ *
890
+ * // Set the digital asset name
891
+ * const transaction = await movement.setDigitalAssetNameTransaction({
892
+ * creator: creator,
893
+ * name: "digitalAssetName",
894
+ * digitalAssetAddress: digitalAssetAddress,
895
+ * });
896
+ *
897
+ * console.log(transaction);
898
+ * }
899
+ * runExample().catch(console.error);
900
+ * ```
901
+ * @group DigitalAsset
902
+ */
903
+ async setDigitalAssetNameTransaction(args: {
904
+ creator: Account;
905
+ name: string;
906
+ digitalAssetAddress: AccountAddressInput;
907
+ digitalAssetType?: MoveStructId;
908
+ options?: InputGenerateTransactionOptions;
909
+ }) {
910
+ return setDigitalAssetNameTransaction({ movementConfig: this.config, ...args });
911
+ }
912
+
913
+ /**
914
+ * Set the URI for a digital asset, allowing you to associate a unique identifier with the asset.
915
+ *
916
+ * @param args The parameters for the transaction.
917
+ * @param args.creator The creator account initiating the transaction.
918
+ * @param args.uri The digital asset URI to be set.
919
+ * @param args.digitalAssetAddress The address of the digital asset.
920
+ * @param args.digitalAssetType Optional. The type of the digital asset.
921
+ * @param args.options Optional. Additional options for generating the transaction.
922
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
923
+ *
924
+ * @example
925
+ * ```typescript
926
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
927
+ *
928
+ * const config = new MovementConfig({ network: Network.TESTNET });
929
+ * const movement = new Movement(config);
930
+ *
931
+ * async function runExample() {
932
+ * // Set the URI for a digital asset
933
+ * const transaction = await movement.setDigitalAssetURITransaction({
934
+ * creator: Account.generate(), // Replace with a real creator account
935
+ * uri: "digital-asset-uri.com",
936
+ * digitalAssetAddress: "0x123", // Replace with a real digital asset address
937
+ * });
938
+ *
939
+ * console.log(transaction);
940
+ * }
941
+ * runExample().catch(console.error);
942
+ * ```
943
+ * @group DigitalAsset
944
+ */
945
+ async setDigitalAssetURITransaction(args: {
946
+ creator: Account;
947
+ uri: string;
948
+ digitalAssetAddress: AccountAddressInput;
949
+ digitalAssetType?: MoveStructId;
950
+ options?: InputGenerateTransactionOptions;
951
+ }) {
952
+ return setDigitalAssetURITransaction({ movementConfig: this.config, ...args });
953
+ }
954
+
955
+ /**
956
+ * Add a digital asset property to the blockchain.
957
+ * This function allows you to specify a new property for a digital asset, including its key, type, and value.
958
+ *
959
+ * @param args - The arguments for adding a digital asset property.
960
+ * @param args.creator - The account that mints the digital asset.
961
+ * @param args.propertyKey - The property key for storing on-chain properties.
962
+ * @param args.propertyType - The type of property value.
963
+ * @param args.propertyValue - The property value to be stored on-chain.
964
+ * @param args.digitalAssetAddress - The digital asset address.
965
+ * @param args.digitalAssetType - (Optional) The type of the digital asset.
966
+ * @param args.options - (Optional) Options for generating the transaction.
967
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
968
+ *
969
+ * @example
970
+ * ```typescript
971
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
972
+ *
973
+ * const config = new MovementConfig({ network: Network.TESTNET });
974
+ * const movement = new Movement(config);
975
+ *
976
+ * async function runExample() {
977
+ * // Add a digital asset property
978
+ * const transaction = await movement.addDigitalAssetPropertyTransaction({
979
+ * creator: Account.generate(), // Replace with a real account
980
+ * propertyKey: "newKey",
981
+ * propertyType: "BOOLEAN",
982
+ * propertyValue: true,
983
+ * digitalAssetAddress: "0x123", // Replace with a real digital asset address
984
+ * });
985
+ *
986
+ * console.log(transaction);
987
+ * }
988
+ * runExample().catch(console.error);
989
+ * ```
990
+ * @group DigitalAsset
991
+ */
992
+ async addDigitalAssetPropertyTransaction(args: {
993
+ creator: Account;
994
+ propertyKey: string;
995
+ propertyType: PropertyType;
996
+ propertyValue: PropertyValue;
997
+ digitalAssetAddress: AccountAddressInput;
998
+ digitalAssetType?: MoveStructId;
999
+ options?: InputGenerateTransactionOptions;
1000
+ }) {
1001
+ return addDigitalAssetPropertyTransaction({ movementConfig: this.config, ...args });
1002
+ }
1003
+
1004
+ /**
1005
+ * Remove a digital asset property from the blockchain.
1006
+ * This function allows you to delete an existing property associated with a digital asset.
1007
+ *
1008
+ * @param args The parameters required to remove the digital asset property.
1009
+ * @param args.creator The account that mints the digital asset.
1010
+ * @param args.propertyKey The property key for storing on-chain properties.
1011
+ * @param args.propertyType The type of property value.
1012
+ * @param args.propertyValue The property value to be stored on-chain.
1013
+ * @param args.digitalAssetAddress The digital asset address.
1014
+ * @param args.digitalAssetType Optional. The type of the digital asset.
1015
+ * @param args.options Optional. Additional options for generating the transaction.
1016
+ *
1017
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
1018
+ *
1019
+ * @example
1020
+ * ```typescript
1021
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
1022
+ *
1023
+ * const config = new MovementConfig({ network: Network.TESTNET });
1024
+ * const movement = new Movement(config);
1025
+ *
1026
+ * async function runExample() {
1027
+ * // Remove a digital asset property
1028
+ * const transaction = await movement.removeDigitalAssetPropertyTransaction({
1029
+ * creator: Account.generate(), // replace with a real account
1030
+ * propertyKey: "newKey",
1031
+ * propertyType: "BOOLEAN",
1032
+ * propertyValue: true,
1033
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
1034
+ * });
1035
+ *
1036
+ * console.log(transaction);
1037
+ * }
1038
+ * runExample().catch(console.error);
1039
+ * ```
1040
+ * @group DigitalAsset
1041
+ */
1042
+ async removeDigitalAssetPropertyTransaction(args: {
1043
+ creator: Account;
1044
+ propertyKey: string;
1045
+ propertyType: PropertyType;
1046
+ propertyValue: PropertyValue;
1047
+ digitalAssetAddress: AccountAddressInput;
1048
+ digitalAssetType?: MoveStructId;
1049
+ options?: InputGenerateTransactionOptions;
1050
+ }) {
1051
+ return removeDigitalAssetPropertyTransaction({ movementConfig: this.config, ...args });
1052
+ }
1053
+
1054
+ /**
1055
+ * Update a digital asset property on-chain.
1056
+ *
1057
+ * @param args The parameters for updating the digital asset property.
1058
+ * @param args.creator The account that mints the digital asset.
1059
+ * @param args.digitalAssetAddress The address of the digital asset.
1060
+ * @param args.propertyKey The property key for storing on-chain properties.
1061
+ * @param args.propertyType The type of property value.
1062
+ * @param args.propertyValue The property value to be stored on-chain.
1063
+ * @param args.digitalAssetType Optional. The type of the digital asset.
1064
+ * @param args.options Optional. Additional options for generating the transaction.
1065
+ *
1066
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
1067
+ *
1068
+ * @example
1069
+ * ```typescript
1070
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
1071
+ *
1072
+ * const config = new MovementConfig({ network: Network.TESTNET });
1073
+ * const movement = new Movement(config);
1074
+ *
1075
+ * async function runExample() {
1076
+ * // Update a digital asset property
1077
+ * const transaction = await movement.updateDigitalAssetPropertyTransaction({
1078
+ * creator: Account.generate(), // replace with a real account
1079
+ * propertyKey: "newKey",
1080
+ * propertyType: "BOOLEAN",
1081
+ * propertyValue: false,
1082
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
1083
+ * });
1084
+ *
1085
+ * console.log(transaction);
1086
+ * }
1087
+ * runExample().catch(console.error);
1088
+ * ```
1089
+ * @group DigitalAsset
1090
+ */
1091
+ async updateDigitalAssetPropertyTransaction(args: {
1092
+ creator: Account;
1093
+ propertyKey: string;
1094
+ propertyType: PropertyType;
1095
+ propertyValue: PropertyValue;
1096
+ digitalAssetAddress: AccountAddressInput;
1097
+ digitalAssetType?: MoveStructId;
1098
+ options?: InputGenerateTransactionOptions;
1099
+ }) {
1100
+ return updateDigitalAssetPropertyTransaction({ movementConfig: this.config, ...args });
1101
+ }
1102
+
1103
+ /**
1104
+ * Add a typed digital asset property to the blockchain.
1105
+ * This function allows you to define and store a specific property for a digital asset, enabling better categorization and
1106
+ * management of digital assets.
1107
+ *
1108
+ * @param args - The parameters for adding the typed property.
1109
+ * @param args.creator - The account that mints the digital asset.
1110
+ * @param args.propertyKey - The property key for storing on-chain properties.
1111
+ * @param args.propertyType - The type of property value.
1112
+ * @param args.propertyValue - The property value to be stored on-chain.
1113
+ * @param args.digitalAssetAddress - The digital asset address.
1114
+ * @param args.digitalAssetType - The optional type of the digital asset.
1115
+ * @param args.options - Optional transaction generation options.
1116
+ *
1117
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
1118
+ *
1119
+ * @example
1120
+ * ```typescript
1121
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
1122
+ *
1123
+ * const config = new MovementConfig({ network: Network.TESTNET });
1124
+ * const movement = new Movement(config);
1125
+ *
1126
+ * async function runExample() {
1127
+ * // Adding a typed digital asset property
1128
+ * const transaction = await movement.addDigitalAssetTypedPropertyTransaction({
1129
+ * creator: Account.generate(), // replace with a real account
1130
+ * propertyKey: "typedKey",
1131
+ * propertyType: "STRING",
1132
+ * propertyValue: "hello",
1133
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
1134
+ * });
1135
+ *
1136
+ * console.log(transaction);
1137
+ * }
1138
+ * runExample().catch(console.error);
1139
+ * ```
1140
+ * @group DigitalAsset
1141
+ */
1142
+ async addDigitalAssetTypedPropertyTransaction(args: {
1143
+ creator: Account;
1144
+ propertyKey: string;
1145
+ propertyType: PropertyType;
1146
+ propertyValue: PropertyValue;
1147
+ digitalAssetAddress: AccountAddressInput;
1148
+ digitalAssetType?: MoveStructId;
1149
+ options?: InputGenerateTransactionOptions;
1150
+ }) {
1151
+ return addDigitalAssetTypedPropertyTransaction({ movementConfig: this.config, ...args });
1152
+ }
1153
+
1154
+ /**
1155
+ * Update a typed digital asset property on-chain.
1156
+ * This function allows you to modify the properties of a digital asset, enabling dynamic updates to its attributes.
1157
+ *
1158
+ * @param args - The arguments for updating the digital asset property.
1159
+ * @param args.creator - The account that mints the digital asset.
1160
+ * @param args.propertyKey - The property key for storing on-chain properties.
1161
+ * @param args.propertyType - The type of property value.
1162
+ * @param args.propertyValue - The property value to be stored on-chain.
1163
+ * @param args.digitalAssetAddress - The digital asset address.
1164
+ * @param args.digitalAssetType - (Optional) The type of the digital asset.
1165
+ * @param args.options - (Optional) Additional options for generating the transaction.
1166
+ *
1167
+ * @returns A SimpleTransaction that can be simulated or submitted to the chain.
1168
+ *
1169
+ * @example
1170
+ * ```typescript
1171
+ * import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
1172
+ *
1173
+ * const config = new MovementConfig({ network: Network.TESTNET });
1174
+ * const movement = new Movement(config);
1175
+ *
1176
+ * async function runExample() {
1177
+ * // Update a typed digital asset property
1178
+ * const transaction = await movement.updateDigitalAssetTypedPropertyTransaction({
1179
+ * creator: Account.generate(), // replace with a real account
1180
+ * propertyKey: "typedKey",
1181
+ * propertyType: "U8",
1182
+ * propertyValue: 2,
1183
+ * digitalAssetAddress: "0x123", // replace with a real digital asset address
1184
+ * });
1185
+ *
1186
+ * console.log(transaction);
1187
+ * }
1188
+ * runExample().catch(console.error);
1189
+ * ```
1190
+ * @group DigitalAsset
1191
+ */
1192
+ async updateDigitalAssetTypedPropertyTransaction(args: {
1193
+ creator: Account;
1194
+ propertyKey: string;
1195
+ propertyType: PropertyType;
1196
+ propertyValue: PropertyValue;
1197
+ digitalAssetAddress: AccountAddressInput;
1198
+ digitalAssetType?: MoveStructId;
1199
+ options?: InputGenerateTransactionOptions;
1200
+ }) {
1201
+ return updateDigitalAssetTypedPropertyTransaction({ movementConfig: this.config, ...args });
1202
+ }
1203
+ }