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