@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,141 @@
|
|
|
1
|
+
import { M as MovementConfig, s as AccountAddressInput, aK as InputGenerateTransactionPayloadData, aG as InputGenerateTransactionOptions, ag as SimpleTransaction, ab as MultiAgentTransaction } from '../../accountAddress-CNXtapt1.mjs';
|
|
2
|
+
import '../../types/indexer.mjs';
|
|
3
|
+
import '../../types/generated/operations.mjs';
|
|
4
|
+
import '../../types/generated/types.mjs';
|
|
5
|
+
import '../../utils/apiEndpoints.mjs';
|
|
6
|
+
import '../../utils/const.mjs';
|
|
7
|
+
import '../../core/common.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A class to handle all `Build` transaction operations.
|
|
11
|
+
* @group Implementation
|
|
12
|
+
*/
|
|
13
|
+
declare class Build {
|
|
14
|
+
readonly config: MovementConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new instance of the Movement client with the specified configuration.
|
|
17
|
+
* This allows you to interact with the Movement blockchain using the provided settings.
|
|
18
|
+
*
|
|
19
|
+
* @param config - The configuration settings for the Movement client.
|
|
20
|
+
* @param config.network - The network to connect to (e.g., TESTNET, MAINNET).
|
|
21
|
+
* @param config.nodeUrl - The URL of the Movement node to connect to.
|
|
22
|
+
* @param config.account - The account details for authentication.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
27
|
+
*
|
|
28
|
+
* async function runExample() {
|
|
29
|
+
* // Create a configuration for the Movement client
|
|
30
|
+
* const config = new MovementConfig({
|
|
31
|
+
* network: Network.TESTNET, // specify the network
|
|
32
|
+
* nodeUrl: "https://testnet.movement.dev", // specify the node URL
|
|
33
|
+
* });
|
|
34
|
+
*
|
|
35
|
+
* // Initialize the Movement client
|
|
36
|
+
* const movement = new Movement(config);
|
|
37
|
+
*
|
|
38
|
+
* console.log("Movement client initialized:", aptos);
|
|
39
|
+
* }
|
|
40
|
+
* runExample().catch(console.error);
|
|
41
|
+
* ```
|
|
42
|
+
* @group Implementation
|
|
43
|
+
*/
|
|
44
|
+
constructor(config: MovementConfig);
|
|
45
|
+
/**
|
|
46
|
+
* Build a simple transaction.
|
|
47
|
+
*
|
|
48
|
+
* This function allows you to create a transaction with specified sender and data.
|
|
49
|
+
*
|
|
50
|
+
* @param args.sender - The sender account address.
|
|
51
|
+
* @param args.data - The transaction data.
|
|
52
|
+
* @param args.options - Optional transaction configurations.
|
|
53
|
+
* @param args.withFeePayer - Whether there is a fee payer for the transaction.
|
|
54
|
+
*
|
|
55
|
+
* @returns SimpleTransaction
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
60
|
+
*
|
|
61
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
62
|
+
* const movement = new Movement(config);
|
|
63
|
+
*
|
|
64
|
+
* async function runExample() {
|
|
65
|
+
* // Build a simple transaction
|
|
66
|
+
* const transaction = await movement.transaction.simple({
|
|
67
|
+
* sender: "0x1", // replace with a real sender account address
|
|
68
|
+
* data: {
|
|
69
|
+
* function: "0x1::aptos_account::transfer",
|
|
70
|
+
* functionArguments: ["0x2", 100], // replace with a real destination account address
|
|
71
|
+
* },
|
|
72
|
+
* options: {
|
|
73
|
+
* gasUnitPrice: 100, // specify your own gas unit price if needed
|
|
74
|
+
* maxGasAmount: 1000, // specify your own max gas amount if needed
|
|
75
|
+
* },
|
|
76
|
+
* });
|
|
77
|
+
*
|
|
78
|
+
* console.log(transaction);
|
|
79
|
+
* }
|
|
80
|
+
* runExample().catch(console.error);
|
|
81
|
+
* ```
|
|
82
|
+
* @group Implementation
|
|
83
|
+
*/
|
|
84
|
+
simple(args: {
|
|
85
|
+
sender: AccountAddressInput;
|
|
86
|
+
data: InputGenerateTransactionPayloadData;
|
|
87
|
+
options?: InputGenerateTransactionOptions;
|
|
88
|
+
withFeePayer?: boolean;
|
|
89
|
+
}): Promise<SimpleTransaction>;
|
|
90
|
+
/**
|
|
91
|
+
* Build a multi-agent transaction that allows multiple signers to authorize a transaction.
|
|
92
|
+
*
|
|
93
|
+
* @param args - The parameters for creating the multi-agent transaction.
|
|
94
|
+
* @param args.sender - The sender account address.
|
|
95
|
+
* @param args.data - The transaction data.
|
|
96
|
+
* @param args.secondarySignerAddresses - An array of the secondary signers' account addresses.
|
|
97
|
+
* @param args.options - Optional transaction configurations.
|
|
98
|
+
* @param args.withFeePayer - Whether there is a fee payer for the transaction.
|
|
99
|
+
*
|
|
100
|
+
* @returns MultiAgentTransaction
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```typescript
|
|
104
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
105
|
+
*
|
|
106
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
107
|
+
* const movement = new Movement(config);
|
|
108
|
+
*
|
|
109
|
+
* async function runExample() {
|
|
110
|
+
* // Build a multi-agent transaction
|
|
111
|
+
* const transaction = await movement.multiAgent({
|
|
112
|
+
* sender: "0x1", // replace with a real sender account address
|
|
113
|
+
* data: {
|
|
114
|
+
* // Transaction data structure
|
|
115
|
+
* function: "0x1::aptos_account::transfer",
|
|
116
|
+
* functionArguments: ["0x2", 100], // replace with a real destination account address and amount
|
|
117
|
+
* },
|
|
118
|
+
* secondarySignerAddresses: ["0x3", "0x4"], // replace with real secondary signer addresses
|
|
119
|
+
* options: {
|
|
120
|
+
* // Optional transaction configurations
|
|
121
|
+
* maxGasAmount: "1000",
|
|
122
|
+
* gasUnitPrice: "1",
|
|
123
|
+
* },
|
|
124
|
+
* });
|
|
125
|
+
*
|
|
126
|
+
* console.log(transaction);
|
|
127
|
+
* }
|
|
128
|
+
* runExample().catch(console.error);
|
|
129
|
+
* ```
|
|
130
|
+
* @group Implementation
|
|
131
|
+
*/
|
|
132
|
+
multiAgent(args: {
|
|
133
|
+
sender: AccountAddressInput;
|
|
134
|
+
data: InputGenerateTransactionPayloadData;
|
|
135
|
+
secondarySignerAddresses: AccountAddressInput[];
|
|
136
|
+
options?: InputGenerateTransactionOptions;
|
|
137
|
+
withFeePayer?: boolean;
|
|
138
|
+
}): Promise<MultiAgentTransaction>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { Build };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{qe as a}from"../../chunk-47V7UGV5.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-YFFYA5U3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-RUIFVDWM.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-V3O2SBO4.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-PHRRBT44.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-I6YGBK5S.mjs";import"../../chunk-S4D2KBYN.mjs";import"../../chunk-CRCE7R4D.mjs";import"../../chunk-NQUZ4UHR.mjs";import"../../chunk-NMFJJOGW.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-FJRPU2NH.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SYXDZA4K.mjs";import"../../chunk-R2G23RIY.mjs";import"../../chunk-MEWW7VTQ.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-KPJGWDSQ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-UVP74ONT.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-PCESRJYO.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Build};
|
|
2
|
+
//# sourceMappingURL=build.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { M as MovementConfig, b3 as AnyRawTransaction, a0 as AccountAuthenticator, b9 as InputTransactionPluginData } from '../../accountAddress-CNXtapt1.mjs';
|
|
2
|
+
import '../../types/indexer.mjs';
|
|
3
|
+
import '../../types/generated/operations.mjs';
|
|
4
|
+
import '../../types/generated/types.mjs';
|
|
5
|
+
import '../../utils/apiEndpoints.mjs';
|
|
6
|
+
import '../../utils/const.mjs';
|
|
7
|
+
import '../../core/common.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Validates the fee payer data when submitting a transaction to ensure that the fee
|
|
11
|
+
* payer authenticator is provided if a fee payer address is specified. This helps
|
|
12
|
+
* prevent errors in transaction submission related to fee payer authentication.
|
|
13
|
+
*
|
|
14
|
+
* The validation is skipped if a custom transaction submitter is defined.
|
|
15
|
+
*
|
|
16
|
+
* @param config - The Movement configuration that may contain a transaction submitter.
|
|
17
|
+
* @param args - The method arguments containing transaction data and optional transaction submitter.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
22
|
+
*
|
|
23
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
24
|
+
* const movement = new Movement(config);
|
|
25
|
+
*
|
|
26
|
+
* class TransactionHandler {
|
|
27
|
+
* async submitTransaction(methodArgs: { transaction: { feePayerAddress: string }, feePayerAuthenticator?: string }) {
|
|
28
|
+
* validateFeePayerDataOnSubmission(this.config, methodArgs);
|
|
29
|
+
* // Logic to submit the transaction
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
*
|
|
33
|
+
* async function runExample() {
|
|
34
|
+
* const handler = new TransactionHandler();
|
|
35
|
+
*
|
|
36
|
+
* // Attempt to submit a transaction without a fee payer authenticator
|
|
37
|
+
* try {
|
|
38
|
+
* await handler.submitTransaction({
|
|
39
|
+
* transaction: { feePayerAddress: "0x1" }, // replace with a real fee payer address
|
|
40
|
+
* });
|
|
41
|
+
* } catch (error) {
|
|
42
|
+
* console.error(error.message); // Should log the error message
|
|
43
|
+
* }
|
|
44
|
+
*
|
|
45
|
+
* // Submit a transaction with a fee payer authenticator
|
|
46
|
+
* await handler.submitTransaction({
|
|
47
|
+
* transaction: { feePayerAddress: "0x1" }, // replace with a real fee payer address
|
|
48
|
+
* feePayerAuthenticator: "authenticatorValue", // replace with a real authenticator
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
51
|
+
* console.log("Transaction submitted successfully.");
|
|
52
|
+
* }
|
|
53
|
+
* runExample().catch(console.error);
|
|
54
|
+
* ```
|
|
55
|
+
* @group Implementation
|
|
56
|
+
*/
|
|
57
|
+
declare function validateFeePayerDataOnSubmission(config: MovementConfig, args: {
|
|
58
|
+
transaction: AnyRawTransaction;
|
|
59
|
+
senderAuthenticator: AccountAuthenticator;
|
|
60
|
+
feePayerAuthenticator?: AccountAuthenticator;
|
|
61
|
+
} & InputTransactionPluginData): void;
|
|
62
|
+
/**
|
|
63
|
+
* Validates that the fee payer public key is provided when simulating a Fee Payer transaction.
|
|
64
|
+
* This ensures that all necessary data is present for the simulation to proceed correctly.
|
|
65
|
+
*
|
|
66
|
+
* @param target - The target object where the method is defined.
|
|
67
|
+
* @param propertyKey - The name of the method being decorated.
|
|
68
|
+
* @param descriptor - The property descriptor for the method.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
73
|
+
*
|
|
74
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
75
|
+
* const movement = new Movement(config);
|
|
76
|
+
*
|
|
77
|
+
* async function runExample() {
|
|
78
|
+
* const methodArgs = {
|
|
79
|
+
* transaction: {
|
|
80
|
+
* feePayerAddress: "0x1", // replace with a real fee payer address
|
|
81
|
+
* },
|
|
82
|
+
* feePayerPublicKey: undefined, // missing fee payer public key
|
|
83
|
+
* };
|
|
84
|
+
*
|
|
85
|
+
* try {
|
|
86
|
+
* // This will throw an error due to missing feePayerPublicKey
|
|
87
|
+
* await movement.someMethod(methodArgs);
|
|
88
|
+
* } catch (error) {
|
|
89
|
+
* console.error(error.message); // Output the error message
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* runExample().catch(console.error);
|
|
93
|
+
* ```
|
|
94
|
+
* @group Implementation
|
|
95
|
+
*/
|
|
96
|
+
declare function ValidateFeePayerDataOnSimulation(target: unknown, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
97
|
+
|
|
98
|
+
export { ValidateFeePayerDataOnSimulation, validateFeePayerDataOnSubmission };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import EventEmitter from 'eventemitter3';
|
|
2
|
+
import { M as MovementConfig, aK as InputGenerateTransactionPayloadData, aG as InputGenerateTransactionOptions } from '../../accountAddress-CNXtapt1.mjs';
|
|
3
|
+
import { A as Account } from '../../Ed25519Account-DsqenvLJ.mjs';
|
|
4
|
+
import { TransactionWorkerEvents, TransactionWorker } from '../../transactions/management/transactionWorker.mjs';
|
|
5
|
+
import '../../types/indexer.mjs';
|
|
6
|
+
import '../../types/generated/operations.mjs';
|
|
7
|
+
import '../../types/generated/types.mjs';
|
|
8
|
+
import '../../utils/apiEndpoints.mjs';
|
|
9
|
+
import '../../utils/const.mjs';
|
|
10
|
+
import '../../core/common.mjs';
|
|
11
|
+
import '../../transactions/management/accountSequenceNumber.mjs';
|
|
12
|
+
import '../../transactions/management/asyncQueue.mjs';
|
|
13
|
+
|
|
14
|
+
declare class TransactionManagement extends EventEmitter<TransactionWorkerEvents> {
|
|
15
|
+
account: Account;
|
|
16
|
+
transactionWorker: TransactionWorker;
|
|
17
|
+
readonly config: MovementConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes a new instance of the Movement client with the provided configuration settings.
|
|
20
|
+
* This allows you to interact with the Movement blockchain using the specified network and options.
|
|
21
|
+
*
|
|
22
|
+
* @param config - The configuration settings for the Movement client.
|
|
23
|
+
* @param config.network - The network to connect to (e.g., TESTNET, MAINNET).
|
|
24
|
+
* @param config.nodeUrl - The URL of the Movement node to connect to.
|
|
25
|
+
* @param config.account - Optional account settings for authentication.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
30
|
+
*
|
|
31
|
+
* async function runExample() {
|
|
32
|
+
* // Create a configuration for the Movement client
|
|
33
|
+
* const config = new MovementConfig({
|
|
34
|
+
* network: Network.TESTNET, // specify the network to use
|
|
35
|
+
* nodeUrl: "https://testnet.movement.dev" // replace with your node URL
|
|
36
|
+
* });
|
|
37
|
+
*
|
|
38
|
+
* // Initialize the Movement client with the configuration
|
|
39
|
+
* const movement = new Movement(config);
|
|
40
|
+
*
|
|
41
|
+
* console.log("Movement client initialized successfully.");
|
|
42
|
+
* }
|
|
43
|
+
* runExample().catch(console.error);
|
|
44
|
+
* ```
|
|
45
|
+
* @group Implementation
|
|
46
|
+
*/
|
|
47
|
+
constructor(config: MovementConfig);
|
|
48
|
+
/**
|
|
49
|
+
* Initializes the transaction worker using the provided sender account and begins listening for events.
|
|
50
|
+
* This function is essential for setting up the transaction processing environment.
|
|
51
|
+
*
|
|
52
|
+
* @param args - The arguments for starting the transaction worker.
|
|
53
|
+
* @param args.sender - The sender account to sign and submit the transaction.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import { Movement, MovementConfig, Network, Account } from "@moveindustries/ts-sdk";
|
|
58
|
+
*
|
|
59
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
60
|
+
* const movement = new Movement(config);
|
|
61
|
+
*
|
|
62
|
+
* async function runExample() {
|
|
63
|
+
* const sender = Account.generate(); // Generate a new account for sending transactions
|
|
64
|
+
*
|
|
65
|
+
* // Start the transaction worker with the sender account
|
|
66
|
+
* movement.start({ sender });
|
|
67
|
+
*
|
|
68
|
+
* console.log("Transaction worker started with sender:", sender.accountAddress);
|
|
69
|
+
* }
|
|
70
|
+
* runExample().catch(console.error);
|
|
71
|
+
* ```
|
|
72
|
+
* @group Implementation
|
|
73
|
+
*/
|
|
74
|
+
private start;
|
|
75
|
+
/**
|
|
76
|
+
* Pushes transaction data to the transaction worker for processing.
|
|
77
|
+
*
|
|
78
|
+
* @param args.data An array of transaction payloads to be processed.
|
|
79
|
+
* @param args.options Optional. Transaction generation configurations (excluding accountSequenceNumber).
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```typescript
|
|
83
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
84
|
+
*
|
|
85
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
86
|
+
* const movement = new Movement(config);
|
|
87
|
+
*
|
|
88
|
+
* async function runExample() {
|
|
89
|
+
* // Prepare transaction payloads
|
|
90
|
+
* const payloads = [
|
|
91
|
+
* {}, // Build your first transaction payload
|
|
92
|
+
* {}, // Build your second transaction payload
|
|
93
|
+
* ];
|
|
94
|
+
*
|
|
95
|
+
* // Push transaction data to the worker
|
|
96
|
+
* movement.push({
|
|
97
|
+
* data: payloads,
|
|
98
|
+
* {}, // Specify options as needed
|
|
99
|
+
* });
|
|
100
|
+
*
|
|
101
|
+
* console.log("Transaction data pushed successfully.");
|
|
102
|
+
* }
|
|
103
|
+
* runExample().catch(console.error);
|
|
104
|
+
* ```
|
|
105
|
+
* @group Implementation
|
|
106
|
+
*/
|
|
107
|
+
private push;
|
|
108
|
+
/**
|
|
109
|
+
* Starts listening to transaction worker events, allowing the application to respond to transaction status changes.
|
|
110
|
+
* This function enables the application to handle events such as transaction sent, execution success, or failure.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
115
|
+
*
|
|
116
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
117
|
+
* const movement = new Movement(config);
|
|
118
|
+
*
|
|
119
|
+
* async function runExample() {
|
|
120
|
+
* // Register to listen for transaction events
|
|
121
|
+
* movement.registerToEvents();
|
|
122
|
+
*
|
|
123
|
+
* // You can send a transaction here to see the events in action
|
|
124
|
+
* const sender = Account.generate(); // replace with a real account
|
|
125
|
+
* const destination = Account.generate(); // replace with a real account
|
|
126
|
+
*
|
|
127
|
+
* const transaction = await movement.transaction.build.simple({
|
|
128
|
+
* sender: sender.accountAddress,
|
|
129
|
+
* data: {
|
|
130
|
+
* function: "0x1::aptos_account::transfer",
|
|
131
|
+
* functionArguments: [destination.accountAddress, 100],
|
|
132
|
+
* },
|
|
133
|
+
* });
|
|
134
|
+
*
|
|
135
|
+
* await movement.transaction.send(transaction);
|
|
136
|
+
*
|
|
137
|
+
* console.log("Transaction sent and events registered.");
|
|
138
|
+
* }
|
|
139
|
+
* runExample().catch(console.error);
|
|
140
|
+
* ```
|
|
141
|
+
* @group Implementation
|
|
142
|
+
*/
|
|
143
|
+
private registerToEvents;
|
|
144
|
+
/**
|
|
145
|
+
* Send batch transactions for a single account.
|
|
146
|
+
*
|
|
147
|
+
* This function uses a transaction worker that receives payloads to be processed
|
|
148
|
+
* and submitted to chain.
|
|
149
|
+
* Note that this process is best for submitting multiple transactions that
|
|
150
|
+
* don't rely on each other, i.e. batch funds, batch token mints, etc.
|
|
151
|
+
*
|
|
152
|
+
* If any worker failure, the functions throws an error.
|
|
153
|
+
*
|
|
154
|
+
* @param args.sender The sender account to sign and submit the transaction
|
|
155
|
+
* @param args.data An array of transaction payloads
|
|
156
|
+
* @param args.options optional. Transaction generation configurations (excluding accountSequenceNumber)
|
|
157
|
+
*
|
|
158
|
+
* @return void. Throws if any error
|
|
159
|
+
* @group Implementation
|
|
160
|
+
*/
|
|
161
|
+
forSingleAccount(args: {
|
|
162
|
+
sender: Account;
|
|
163
|
+
data: InputGenerateTransactionPayloadData[];
|
|
164
|
+
options?: Omit<InputGenerateTransactionOptions, "accountSequenceNumber">;
|
|
165
|
+
}): void;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export { TransactionManagement };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ve as a}from"../../chunk-47V7UGV5.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-YFFYA5U3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-RUIFVDWM.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-V3O2SBO4.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-PHRRBT44.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-I6YGBK5S.mjs";import"../../chunk-S4D2KBYN.mjs";import"../../chunk-CRCE7R4D.mjs";import"../../chunk-NQUZ4UHR.mjs";import"../../chunk-NMFJJOGW.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-FJRPU2NH.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SYXDZA4K.mjs";import"../../chunk-R2G23RIY.mjs";import"../../chunk-MEWW7VTQ.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-KPJGWDSQ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-UVP74ONT.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-PCESRJYO.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as TransactionManagement};
|
|
2
|
+
//# sourceMappingURL=management.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { M as MovementConfig, b3 as AnyRawTransaction, a0 as AccountAuthenticator } from '../../accountAddress-CNXtapt1.mjs';
|
|
2
|
+
import { A as Account } from '../../Ed25519Account-DsqenvLJ.mjs';
|
|
3
|
+
import '../../types/indexer.mjs';
|
|
4
|
+
import '../../types/generated/operations.mjs';
|
|
5
|
+
import '../../types/generated/types.mjs';
|
|
6
|
+
import '../../utils/apiEndpoints.mjs';
|
|
7
|
+
import '../../utils/const.mjs';
|
|
8
|
+
import '../../core/common.mjs';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A class to handle all `Sign` transaction operations.
|
|
12
|
+
*
|
|
13
|
+
* @param config - The configuration object for Movement.
|
|
14
|
+
* @group Implementation
|
|
15
|
+
*/
|
|
16
|
+
declare class Sign {
|
|
17
|
+
readonly config: MovementConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Creates an instance of the Movement client with the specified configuration.
|
|
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 new Movement client with testnet configuration
|
|
29
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
30
|
+
* const movement = new Movement(config);
|
|
31
|
+
*
|
|
32
|
+
* console.log("Movement client created with config:", config);
|
|
33
|
+
* }
|
|
34
|
+
* runExample().catch(console.error);
|
|
35
|
+
* ```
|
|
36
|
+
* @group Implementation
|
|
37
|
+
*/
|
|
38
|
+
constructor(config: MovementConfig);
|
|
39
|
+
/**
|
|
40
|
+
* Signs a transaction using the provided account signer. This function is essential for ensuring that transactions are properly
|
|
41
|
+
* authenticated before being sent to the network.
|
|
42
|
+
*
|
|
43
|
+
* @param args - The arguments for signing the transaction.
|
|
44
|
+
* @param args.signer - The account that will sign the transaction.
|
|
45
|
+
* @param args.transaction - The raw transaction data to be signed.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import { Movement, MovementConfig, Network, Account } from "@moveindustries/ts-sdk";
|
|
50
|
+
*
|
|
51
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
52
|
+
* const movement = new Movement(config);
|
|
53
|
+
*
|
|
54
|
+
* async function runExample() {
|
|
55
|
+
* const sender = Account.generate(); // Generate a new account for signing
|
|
56
|
+
* const transaction = await movement.transaction.build.simple({
|
|
57
|
+
* sender: sender.accountAddress,
|
|
58
|
+
* data: {
|
|
59
|
+
* function: "0x1::aptos_account::transfer",
|
|
60
|
+
* functionArguments: [ "0x1", 100 ], // replace with a real account address and amount
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
*
|
|
64
|
+
* // Sign the transaction
|
|
65
|
+
* const signedTransaction = await movement.transaction.sign({
|
|
66
|
+
* signer: sender,
|
|
67
|
+
* transaction: transaction,
|
|
68
|
+
* });
|
|
69
|
+
*
|
|
70
|
+
* console.log("Signed Transaction:", signedTransaction);
|
|
71
|
+
* }
|
|
72
|
+
* runExample().catch(console.error);
|
|
73
|
+
* ```
|
|
74
|
+
* @group Implementation
|
|
75
|
+
*/
|
|
76
|
+
transaction(args: {
|
|
77
|
+
signer: Account;
|
|
78
|
+
transaction: AnyRawTransaction;
|
|
79
|
+
}): AccountAuthenticator;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the fee payer address for a transaction and signs it with the provided account.
|
|
82
|
+
* This function is essential for transactions that require a designated fee payer.
|
|
83
|
+
*
|
|
84
|
+
* @param args - The arguments for the function.
|
|
85
|
+
* @param args.signer - The account that will sign the transaction.
|
|
86
|
+
* @param args.transaction - The transaction object that requires a fee payer address.
|
|
87
|
+
*
|
|
88
|
+
* @throws Error if the transaction does not have a feePayerAddress property.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* import { Movement, MovementConfig, Network, Account } from "@moveindustries/ts-sdk";
|
|
93
|
+
*
|
|
94
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
95
|
+
* const movement = new Movement(config);
|
|
96
|
+
*
|
|
97
|
+
* async function runExample() {
|
|
98
|
+
* const sender = Account.generate(); // Generate a new account for signing
|
|
99
|
+
* const transaction = await movement.transaction.build.simple({
|
|
100
|
+
* sender: sender.accountAddress,
|
|
101
|
+
* data: {
|
|
102
|
+
* function: "0x1::aptos_account::transfer",
|
|
103
|
+
* functionArguments: ["0x1", 100], // replace with a real recipient address
|
|
104
|
+
* },
|
|
105
|
+
* });
|
|
106
|
+
*
|
|
107
|
+
* // Set the fee payer for the transaction
|
|
108
|
+
* transaction.feePayerAddress = "0x1"; // replace with a real fee payer address
|
|
109
|
+
*
|
|
110
|
+
* const signedTransaction = await movement.transactionAsFeePayer({ signer: sender, transaction });
|
|
111
|
+
*
|
|
112
|
+
* console.log("Signed Transaction:", signedTransaction);
|
|
113
|
+
* }
|
|
114
|
+
* runExample().catch(console.error);
|
|
115
|
+
* ```
|
|
116
|
+
* @group Implementation
|
|
117
|
+
*/
|
|
118
|
+
transactionAsFeePayer(args: {
|
|
119
|
+
signer: Account;
|
|
120
|
+
transaction: AnyRawTransaction;
|
|
121
|
+
}): AccountAuthenticator;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { Sign };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{qc as o}from"../../chunk-47V7UGV5.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-YFFYA5U3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-RUIFVDWM.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-V3O2SBO4.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-PHRRBT44.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-I6YGBK5S.mjs";import"../../chunk-S4D2KBYN.mjs";import"../../chunk-CRCE7R4D.mjs";import"../../chunk-NQUZ4UHR.mjs";import"../../chunk-NMFJJOGW.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-FJRPU2NH.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SYXDZA4K.mjs";import"../../chunk-R2G23RIY.mjs";import"../../chunk-MEWW7VTQ.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-KPJGWDSQ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-UVP74ONT.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-PCESRJYO.mjs";import"../../chunk-KDMSOCZY.mjs";var a=class{constructor(n){this.config=n}transaction(n){return o({...n})}transactionAsFeePayer(n){let{signer:r,transaction:t}=n;if(!t.feePayerAddress)throw new Error(`Transaction ${t} is not a Fee Payer transaction`);return t.feePayerAddress=r.accountAddress,o({signer:r,transaction:t})}};export{a as Sign};
|
|
2
|
+
//# sourceMappingURL=sign.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/api/transactionSubmission/sign.ts"],"sourcesContent":["// Copyright © Move Industries\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Account } from \"../../account\";\nimport { signTransaction } from \"../../internal/transactionSubmission\";\nimport { AccountAuthenticator, AnyRawTransaction } from \"../../transactions\";\nimport { MovementConfig } from \"../movementConfig\";\n\n/**\n * A class to handle all `Sign` transaction operations.\n *\n * @param config - The configuration object for Movement.\n * @group Implementation\n */\nexport class Sign {\n readonly config: MovementConfig;\n\n /**\n * Creates an instance of the Movement client with the specified configuration.\n *\n * @param config - The configuration settings for the Movement client.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network } from \"@moveindustries/ts-sdk\";\n *\n * async function runExample() {\n * // Create a new Movement client with testnet configuration\n * const config = new MovementConfig({ network: Network.TESTNET });\n * const movement = new Movement(config);\n *\n * console.log(\"Movement client created with config:\", config);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Implementation\n */\n constructor(config: MovementConfig) {\n this.config = config;\n }\n\n /**\n * Signs a transaction using the provided account signer. This function is essential for ensuring that transactions are properly\n * authenticated before being sent to the network.\n *\n * @param args - The arguments for signing the transaction.\n * @param args.signer - The account that will sign the transaction.\n * @param args.transaction - The raw transaction data to be signed.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network, Account } from \"@moveindustries/ts-sdk\";\n *\n * const config = new MovementConfig({ network: Network.TESTNET });\n * const movement = new Movement(config);\n *\n * async function runExample() {\n * const sender = Account.generate(); // Generate a new account for signing\n * const transaction = await movement.transaction.build.simple({\n * sender: sender.accountAddress,\n * data: {\n * function: \"0x1::aptos_account::transfer\",\n * functionArguments: [ \"0x1\", 100 ], // replace with a real account address and amount\n * },\n * });\n *\n * // Sign the transaction\n * const signedTransaction = await movement.transaction.sign({\n * signer: sender,\n * transaction: transaction,\n * });\n *\n * console.log(\"Signed Transaction:\", signedTransaction);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Implementation\n */\n // eslint-disable-next-line class-methods-use-this\n transaction(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n return signTransaction({\n ...args,\n });\n }\n\n /**\n * Sets the fee payer address for a transaction and signs it with the provided account.\n * This function is essential for transactions that require a designated fee payer.\n *\n * @param args - The arguments for the function.\n * @param args.signer - The account that will sign the transaction.\n * @param args.transaction - The transaction object that requires a fee payer address.\n *\n * @throws Error if the transaction does not have a feePayerAddress property.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network, Account } from \"@moveindustries/ts-sdk\";\n *\n * const config = new MovementConfig({ network: Network.TESTNET });\n * const movement = new Movement(config);\n *\n * async function runExample() {\n * const sender = Account.generate(); // Generate a new account for signing\n * const transaction = await movement.transaction.build.simple({\n * sender: sender.accountAddress,\n * data: {\n * function: \"0x1::aptos_account::transfer\",\n * functionArguments: [\"0x1\", 100], // replace with a real recipient address\n * },\n * });\n *\n * // Set the fee payer for the transaction\n * transaction.feePayerAddress = \"0x1\"; // replace with a real fee payer address\n *\n * const signedTransaction = await movement.transactionAsFeePayer({ signer: sender, transaction });\n *\n * console.log(\"Signed Transaction:\", signedTransaction);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Implementation\n */\n // eslint-disable-next-line class-methods-use-this\n transactionAsFeePayer(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n const { signer, transaction } = args;\n\n // if transaction doesn't hold a \"feePayerAddress\" prop it means\n // this is not a fee payer transaction\n if (!transaction.feePayerAddress) {\n throw new Error(`Transaction ${transaction} is not a Fee Payer transaction`);\n }\n\n // Set the feePayerAddress to the signer account address\n transaction.feePayerAddress = signer.accountAddress;\n\n return signTransaction({\n signer,\n transaction,\n });\n }\n}\n"],"mappings":"u4DAcO,IAAMA,EAAN,KAAW,CAuBhB,YAAYC,EAAwB,CAClC,KAAK,OAASA,CAChB,CAwCA,YAAYC,EAAiF,CAC3F,OAAOC,EAAgB,CACrB,GAAGD,CACL,CAAC,CACH,CAyCA,sBAAsBA,EAAiF,CACrG,GAAM,CAAE,OAAAE,EAAQ,YAAAC,CAAY,EAAIH,EAIhC,GAAI,CAACG,EAAY,gBACf,MAAM,IAAI,MAAM,eAAeA,CAAW,iCAAiC,EAI7E,OAAAA,EAAY,gBAAkBD,EAAO,eAE9BD,EAAgB,CACrB,OAAAC,EACA,YAAAC,CACF,CAAC,CACH,CACF","names":["Sign","config","args","signTransaction","signer","transaction"]}
|