@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,303 @@
|
|
|
1
|
+
import { GetChainTopUserTransactionsResponse, GraphqlQuery, GetProcessorStatusResponse } from '../types/indexer.mjs';
|
|
2
|
+
import { M as MovementConfig, dF as LedgerInfo, c3 as AnyNumber, dG as Block, dv as MoveValue, aU as InputViewFunctionData, co as LedgerVersionArg, aV as InputViewFunctionJsonData } from '../accountAddress-CNXtapt1.mjs';
|
|
3
|
+
import { ProcessorType } from '../utils/const.mjs';
|
|
4
|
+
import '../types/generated/operations.mjs';
|
|
5
|
+
import '../types/generated/types.mjs';
|
|
6
|
+
import '../utils/apiEndpoints.mjs';
|
|
7
|
+
import '../core/common.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A class to query various Movement-related information and perform operations on the Movement blockchain.
|
|
11
|
+
* @group General
|
|
12
|
+
*/
|
|
13
|
+
declare class General {
|
|
14
|
+
readonly config: MovementConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new instance of the Movement client with the specified configuration.
|
|
17
|
+
* This allows users 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
|
+
*
|
|
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({
|
|
30
|
+
* network: Network.TESTNET, // specify the network
|
|
31
|
+
* nodeUrl: "https://testnet.movement.dev" // specify the node URL
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* // Initialize the Movement client with the configuration
|
|
35
|
+
* const movement = new Movement(config);
|
|
36
|
+
*
|
|
37
|
+
* console.log("Movement client initialized:", aptos);
|
|
38
|
+
* }
|
|
39
|
+
* runExample().catch(console.error);
|
|
40
|
+
* ```
|
|
41
|
+
* @group General
|
|
42
|
+
*/
|
|
43
|
+
constructor(config: MovementConfig);
|
|
44
|
+
/**
|
|
45
|
+
* Queries for the Movement ledger information.
|
|
46
|
+
*
|
|
47
|
+
* @returns The Movement Ledger Info, which includes details such as chain ID, epoch, and ledger version.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
52
|
+
*
|
|
53
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
54
|
+
* const movement = new Movement(config);
|
|
55
|
+
*
|
|
56
|
+
* async function runExample() {
|
|
57
|
+
* // Fetching the ledger information
|
|
58
|
+
* const ledgerInfo = await movement.getLedgerInfo();
|
|
59
|
+
*
|
|
60
|
+
* console.log(ledgerInfo);
|
|
61
|
+
* }
|
|
62
|
+
* runExample().catch(console.error);
|
|
63
|
+
* ```
|
|
64
|
+
* @group General
|
|
65
|
+
*/
|
|
66
|
+
getLedgerInfo(): Promise<LedgerInfo>;
|
|
67
|
+
/**
|
|
68
|
+
* Retrieves the chain ID of the Movement blockchain.
|
|
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
|
+
* // Fetching the chain ID
|
|
79
|
+
* const chainId = await movement.getChainId();
|
|
80
|
+
* console.log("Chain ID:", chainId);
|
|
81
|
+
* }
|
|
82
|
+
* runExample().catch(console.error);
|
|
83
|
+
*
|
|
84
|
+
* @returns The chain ID of the Movement blockchain.
|
|
85
|
+
* ```
|
|
86
|
+
* @group General
|
|
87
|
+
*/
|
|
88
|
+
getChainId(): Promise<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves block information by the specified ledger version.
|
|
91
|
+
*
|
|
92
|
+
* @param args - The arguments for retrieving the block.
|
|
93
|
+
* @param args.ledgerVersion - The ledger version to lookup block information for.
|
|
94
|
+
* @param args.options - Optional parameters for the request.
|
|
95
|
+
* @param args.options.withTransactions - If set to true, include all transactions in the block.
|
|
96
|
+
*
|
|
97
|
+
* @returns Block information with optional transactions.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
102
|
+
*
|
|
103
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
104
|
+
* const movement = new Movement(config);
|
|
105
|
+
*
|
|
106
|
+
* async function runExample() {
|
|
107
|
+
* // Retrieve block information for a specific ledger version
|
|
108
|
+
* const block = await movement.getBlockByVersion({ ledgerVersion: 5 });
|
|
109
|
+
* console.log(block);
|
|
110
|
+
* }
|
|
111
|
+
* runExample().catch(console.error);
|
|
112
|
+
* ```
|
|
113
|
+
* @group General
|
|
114
|
+
*/
|
|
115
|
+
getBlockByVersion(args: {
|
|
116
|
+
ledgerVersion: AnyNumber;
|
|
117
|
+
options?: {
|
|
118
|
+
withTransactions?: boolean;
|
|
119
|
+
};
|
|
120
|
+
}): Promise<Block>;
|
|
121
|
+
/**
|
|
122
|
+
* Retrieve a block by its height, allowing for the inclusion of transactions if specified.
|
|
123
|
+
*
|
|
124
|
+
* @param args - The parameters for the block retrieval.
|
|
125
|
+
* @param args.blockHeight - The block height to look up, starting at 0.
|
|
126
|
+
* @param args.options - Optional settings for the retrieval.
|
|
127
|
+
* @param args.options.withTransactions - If set to true, includes all transactions in the block.
|
|
128
|
+
*
|
|
129
|
+
* @returns The block with optional transactions included.
|
|
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 the block at height 5, including transactions
|
|
140
|
+
* const block = await movement.getBlockByHeight({ blockHeight: 5, options: { withTransactions: true } });
|
|
141
|
+
* console.log(block);
|
|
142
|
+
* }
|
|
143
|
+
* runExample().catch(console.error);
|
|
144
|
+
* ```
|
|
145
|
+
* @group General
|
|
146
|
+
*/
|
|
147
|
+
getBlockByHeight(args: {
|
|
148
|
+
blockHeight: AnyNumber;
|
|
149
|
+
options?: {
|
|
150
|
+
withTransactions?: boolean;
|
|
151
|
+
};
|
|
152
|
+
}): Promise<Block>;
|
|
153
|
+
/**
|
|
154
|
+
* Queries for a Move view function
|
|
155
|
+
* @param args.payload Payload for the view function
|
|
156
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* const data = await movement.view({
|
|
160
|
+
* payload: {
|
|
161
|
+
* function: "0x1::coin::balance",
|
|
162
|
+
* typeArguments: ["0x1::aptos_coin::AptosCoin"],
|
|
163
|
+
* functionArguments: [accountAddress],
|
|
164
|
+
* }
|
|
165
|
+
* })
|
|
166
|
+
*
|
|
167
|
+
* @returns an array of Move values
|
|
168
|
+
* @group General
|
|
169
|
+
*/
|
|
170
|
+
view<T extends Array<MoveValue>>(args: {
|
|
171
|
+
payload: InputViewFunctionData;
|
|
172
|
+
options?: LedgerVersionArg;
|
|
173
|
+
}): Promise<T>;
|
|
174
|
+
/**
|
|
175
|
+
* Queries for a Move view function with JSON, this provides compatability with the old `aptos` package
|
|
176
|
+
* @param args.payload Payload for the view function
|
|
177
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* const data = await movement.view({
|
|
181
|
+
* payload: {
|
|
182
|
+
* function: "0x1::coin::balance",
|
|
183
|
+
* typeArguments: ["0x1::aptos_coin::AptosCoin"],
|
|
184
|
+
* functionArguments: [accountAddress.toString()],
|
|
185
|
+
* }
|
|
186
|
+
* })
|
|
187
|
+
*
|
|
188
|
+
* @returns an array of Move values
|
|
189
|
+
* @group General
|
|
190
|
+
*/
|
|
191
|
+
viewJson<T extends Array<MoveValue>>(args: {
|
|
192
|
+
payload: InputViewFunctionJsonData;
|
|
193
|
+
options?: LedgerVersionArg;
|
|
194
|
+
}): Promise<T>;
|
|
195
|
+
/**
|
|
196
|
+
* Queries the top user transactions based on the specified limit.
|
|
197
|
+
*
|
|
198
|
+
* @param args - The arguments for querying top user transactions.
|
|
199
|
+
* @param args.limit - The number of transactions to return.
|
|
200
|
+
* @returns GetChainTopUserTransactionsResponse
|
|
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
|
+
* // Fetch the top user transactions with a limit of 5
|
|
211
|
+
* const topUserTransactions = await movement.getChainTopUserTransactions({ limit: 5 });
|
|
212
|
+
*
|
|
213
|
+
* console.log(topUserTransactions);
|
|
214
|
+
* }
|
|
215
|
+
* runExample().catch(console.error);
|
|
216
|
+
* ```
|
|
217
|
+
* @group General
|
|
218
|
+
*/
|
|
219
|
+
getChainTopUserTransactions(args: {
|
|
220
|
+
limit: number;
|
|
221
|
+
}): Promise<GetChainTopUserTransactionsResponse>;
|
|
222
|
+
/**
|
|
223
|
+
* Retrieves data from the Movement Indexer using a GraphQL query.
|
|
224
|
+
* This function allows you to execute complex queries to fetch specific data from the Movement blockchain.
|
|
225
|
+
*
|
|
226
|
+
* @param args.query.query - A GraphQL query string.
|
|
227
|
+
* @param args.query.variables - The variables for the query (optional).
|
|
228
|
+
*
|
|
229
|
+
* @return The provided T type.
|
|
230
|
+
*
|
|
231
|
+
* @example
|
|
232
|
+
* ```typescript
|
|
233
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
234
|
+
*
|
|
235
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
236
|
+
* const movement = new Movement(config);
|
|
237
|
+
*
|
|
238
|
+
* async function runExample() {
|
|
239
|
+
* // Querying the Movement Indexer for ledger information
|
|
240
|
+
* const topUserTransactions = await movement.queryIndexer({
|
|
241
|
+
* query: { query: `query MyQuery {
|
|
242
|
+
* ledger_infos {
|
|
243
|
+
* chain_id
|
|
244
|
+
* }
|
|
245
|
+
* }`}
|
|
246
|
+
* });
|
|
247
|
+
*
|
|
248
|
+
* console.log(topUserTransactions);
|
|
249
|
+
* }
|
|
250
|
+
* runExample().catch(console.error);
|
|
251
|
+
* ```
|
|
252
|
+
* @group General
|
|
253
|
+
*/
|
|
254
|
+
queryIndexer<T extends {}>(args: {
|
|
255
|
+
query: GraphqlQuery;
|
|
256
|
+
}): Promise<T>;
|
|
257
|
+
/**
|
|
258
|
+
* Queries for the last successful indexer version, providing insight into the ledger version the indexer is updated to, which
|
|
259
|
+
* may lag behind the full nodes.
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```typescript
|
|
263
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
264
|
+
*
|
|
265
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
266
|
+
* const movement = new Movement(config);
|
|
267
|
+
*
|
|
268
|
+
* async function runExample() {
|
|
269
|
+
* // Get the last successful indexer version
|
|
270
|
+
* const version = await movement.getIndexerLastSuccessVersion();
|
|
271
|
+
* console.log(`Last successful indexer version: ${version}`);
|
|
272
|
+
* }
|
|
273
|
+
* runExample().catch(console.error);
|
|
274
|
+
* ```
|
|
275
|
+
* @group General
|
|
276
|
+
*/
|
|
277
|
+
getIndexerLastSuccessVersion(): Promise<bigint>;
|
|
278
|
+
/**
|
|
279
|
+
* Query the processor status for a specific processor type.
|
|
280
|
+
*
|
|
281
|
+
* @param processorType The processor type to query.
|
|
282
|
+
* @returns The status of the specified processor type.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```typescript
|
|
286
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
287
|
+
*
|
|
288
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
289
|
+
* const movement = new Movement(config);
|
|
290
|
+
*
|
|
291
|
+
* async function runExample() {
|
|
292
|
+
* // Get the processor status for the account transactions processor
|
|
293
|
+
* const status = await movement.getProcessorStatus("account_transactions_processor");
|
|
294
|
+
* console.log(status);
|
|
295
|
+
* }
|
|
296
|
+
* runExample().catch(console.error);
|
|
297
|
+
* ```
|
|
298
|
+
* @group General
|
|
299
|
+
*/
|
|
300
|
+
getProcessorStatus(processorType: ProcessorType): Promise<GetProcessorStatusResponse[0]>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export { General };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{de 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 General};
|
|
2
|
+
//# sourceMappingURL=general.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export { Movement } from './movement.mjs';
|
|
2
|
+
export { M as MovementConfig } from '../accountAddress-CNXtapt1.mjs';
|
|
3
|
+
import './account.mjs';
|
|
4
|
+
import '../types/indexer.mjs';
|
|
5
|
+
import '../types/generated/operations.mjs';
|
|
6
|
+
import '../types/generated/types.mjs';
|
|
7
|
+
import '../core/crypto/types.mjs';
|
|
8
|
+
import '../utils/apiEndpoints.mjs';
|
|
9
|
+
import '../utils/const.mjs';
|
|
10
|
+
import '../core/common.mjs';
|
|
11
|
+
import '../Ed25519Account-DsqenvLJ.mjs';
|
|
12
|
+
import '../internal/account.mjs';
|
|
13
|
+
import '../account/MultiEd25519Account.mjs';
|
|
14
|
+
import './account/abstraction.mjs';
|
|
15
|
+
import './ans.mjs';
|
|
16
|
+
import '../internal/ans.mjs';
|
|
17
|
+
import './coin.mjs';
|
|
18
|
+
import './digitalAsset.mjs';
|
|
19
|
+
import '../internal/digitalAsset.mjs';
|
|
20
|
+
import './faucet.mjs';
|
|
21
|
+
import './fungibleAsset.mjs';
|
|
22
|
+
import './general.mjs';
|
|
23
|
+
import './keyless.mjs';
|
|
24
|
+
import '../federatedKeyless-D-d9d5aC.mjs';
|
|
25
|
+
import '@noble/curves/abstract/tower';
|
|
26
|
+
import '@noble/curves/abstract/weierstrass';
|
|
27
|
+
import '../types/keyless.mjs';
|
|
28
|
+
import '../core/crypto/ephemeral.mjs';
|
|
29
|
+
import '../core/crypto/proof.mjs';
|
|
30
|
+
import '../account/EphemeralKeyPair.mjs';
|
|
31
|
+
import '../account/KeylessAccount.mjs';
|
|
32
|
+
import '../account/AbstractKeylessAccount.mjs';
|
|
33
|
+
import '../account/FederatedKeylessAccount.mjs';
|
|
34
|
+
import './object.mjs';
|
|
35
|
+
import './staking.mjs';
|
|
36
|
+
import './table.mjs';
|
|
37
|
+
import './transaction.mjs';
|
|
38
|
+
import '../internal/transactionSubmission.mjs';
|
|
39
|
+
import './transactionSubmission/build.mjs';
|
|
40
|
+
import './transactionSubmission/management.mjs';
|
|
41
|
+
import 'eventemitter3';
|
|
42
|
+
import '../transactions/management/transactionWorker.mjs';
|
|
43
|
+
import '../transactions/management/accountSequenceNumber.mjs';
|
|
44
|
+
import '../transactions/management/asyncQueue.mjs';
|
|
45
|
+
import './transactionSubmission/simulate.mjs';
|
|
46
|
+
import './transactionSubmission/submit.mjs';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ze as b}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{a}from"../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{b as Movement,a as MovementConfig};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { M as MovementConfig, bB as HexInput, s as AccountAddressInput, aG as InputGenerateTransactionOptions, ag as SimpleTransaction } from '../accountAddress-CNXtapt1.mjs';
|
|
2
|
+
import { l as ZeroKnowledgeSig } from '../federatedKeyless-D-d9d5aC.mjs';
|
|
3
|
+
import { A as Account } from '../Ed25519Account-DsqenvLJ.mjs';
|
|
4
|
+
import { EphemeralKeyPair } from '../account/EphemeralKeyPair.mjs';
|
|
5
|
+
import { KeylessAccount } from '../account/KeylessAccount.mjs';
|
|
6
|
+
import { ProofFetchCallback } from '../account/AbstractKeylessAccount.mjs';
|
|
7
|
+
import { FederatedKeylessAccount } from '../account/FederatedKeylessAccount.mjs';
|
|
8
|
+
import '../types/indexer.mjs';
|
|
9
|
+
import '../types/generated/operations.mjs';
|
|
10
|
+
import '../types/generated/types.mjs';
|
|
11
|
+
import '../utils/apiEndpoints.mjs';
|
|
12
|
+
import '../utils/const.mjs';
|
|
13
|
+
import '../core/common.mjs';
|
|
14
|
+
import '@noble/curves/abstract/tower';
|
|
15
|
+
import '@noble/curves/abstract/weierstrass';
|
|
16
|
+
import '../types/keyless.mjs';
|
|
17
|
+
import '../core/crypto/ephemeral.mjs';
|
|
18
|
+
import '../core/crypto/proof.mjs';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A class to query all `Keyless` related queries on Movement.
|
|
22
|
+
*
|
|
23
|
+
* More documentation on how to integrate Keyless Accounts see the below
|
|
24
|
+
* [Aptos Keyless Integration Guide](https://movement.dev/guides/keyless-accounts/#aptos-keyless-integration-guide).
|
|
25
|
+
* @group Keyless
|
|
26
|
+
*/
|
|
27
|
+
declare class Keyless {
|
|
28
|
+
readonly config: MovementConfig;
|
|
29
|
+
/**
|
|
30
|
+
* Initializes a new instance of the Movement class with the provided configuration.
|
|
31
|
+
* This allows you to interact with the Movement blockchain using the specified network settings.
|
|
32
|
+
*
|
|
33
|
+
* @param config - The configuration settings for connecting to the Movement network.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
38
|
+
*
|
|
39
|
+
* async function runExample() {
|
|
40
|
+
* // Create a new configuration for the Movement client
|
|
41
|
+
* const config = new MovementConfig({ network: Network.TESTNET }); // Specify your desired network
|
|
42
|
+
*
|
|
43
|
+
* // Initialize the Movement client with the configuration
|
|
44
|
+
* const movement = new Movement(config);
|
|
45
|
+
*
|
|
46
|
+
* console.log("Movement client initialized:", aptos);
|
|
47
|
+
* }
|
|
48
|
+
* runExample().catch(console.error);
|
|
49
|
+
* ```
|
|
50
|
+
* @group Keyless
|
|
51
|
+
*/
|
|
52
|
+
constructor(config: MovementConfig);
|
|
53
|
+
/**
|
|
54
|
+
* Fetches the pepper from the Movement pepper service API.
|
|
55
|
+
*
|
|
56
|
+
* @param args - The arguments for fetching the pepper.
|
|
57
|
+
* @param args.jwt - JWT token.
|
|
58
|
+
* @param args.ephemeralKeyPair - The EphemeralKeyPair used to generate the nonce in the JWT token.
|
|
59
|
+
* @param args.derivationPath - A derivation path used for creating multiple accounts per user via the BIP-44 standard. Defaults
|
|
60
|
+
* to "m/44'/637'/0'/0'/0".
|
|
61
|
+
* @returns The pepper which is a Uint8Array of length 31.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
66
|
+
*
|
|
67
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
68
|
+
* const movement = new Movement(config);
|
|
69
|
+
*
|
|
70
|
+
* async function runExample() {
|
|
71
|
+
* const ephemeralKeyPair = new EphemeralKeyPair(); // create a new ephemeral key pair
|
|
72
|
+
* const jwt = "your_jwt_token"; // replace with a real JWT token
|
|
73
|
+
*
|
|
74
|
+
* // Fetching the pepper using the provided JWT and ephemeral key pair
|
|
75
|
+
* const pepper = await movement.getPepper({
|
|
76
|
+
* jwt,
|
|
77
|
+
* ephemeralKeyPair,
|
|
78
|
+
* // derivationPath: "m/44'/637'/0'/0'/0" // specify your own if needed
|
|
79
|
+
* });
|
|
80
|
+
*
|
|
81
|
+
* console.log("Fetched pepper:", pepper);
|
|
82
|
+
* }
|
|
83
|
+
* runExample().catch(console.error);
|
|
84
|
+
* ```
|
|
85
|
+
* @group Keyless
|
|
86
|
+
*/
|
|
87
|
+
getPepper(args: {
|
|
88
|
+
jwt: string;
|
|
89
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
90
|
+
derivationPath?: string;
|
|
91
|
+
}): Promise<Uint8Array>;
|
|
92
|
+
/**
|
|
93
|
+
* Fetches a proof from the Movement prover service API.
|
|
94
|
+
*
|
|
95
|
+
* @param args - The arguments for fetching the proof.
|
|
96
|
+
* @param args.jwt - JWT token.
|
|
97
|
+
* @param args.ephemeralKeyPair - The EphemeralKeyPair used to generate the nonce in the JWT token.
|
|
98
|
+
* @param args.pepper - The pepper used for the account. If not provided, it will be fetched from the Movement pepper service.
|
|
99
|
+
* @param args.uidKey - A key in the JWT token to use to set the uidVal in the IdCommitment.
|
|
100
|
+
*
|
|
101
|
+
* @returns The proof which is represented by a ZeroKnowledgeSig.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```typescript
|
|
105
|
+
* import { Movement, MovementConfig, Network, EphemeralKeyPair, getPepper } from "@moveindustries/ts-sdk";
|
|
106
|
+
*
|
|
107
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
108
|
+
* const movement = new Movement(config);
|
|
109
|
+
*
|
|
110
|
+
* async function runExample() {
|
|
111
|
+
* const jwt = "your_jwt_token"; // replace with a real JWT token
|
|
112
|
+
* const ephemeralKeyPair = new EphemeralKeyPair(); // create a new ephemeral key pair
|
|
113
|
+
*
|
|
114
|
+
* // Fetch the proof using the getProof function
|
|
115
|
+
* const proof = await movement.getProof({
|
|
116
|
+
* jwt,
|
|
117
|
+
* ephemeralKeyPair,
|
|
118
|
+
* pepper: await getPepper({}), // fetch the pepper if not provided
|
|
119
|
+
* uidKey: "sub", // specify the uid key
|
|
120
|
+
* });
|
|
121
|
+
*
|
|
122
|
+
* console.log("Fetched proof:", proof);
|
|
123
|
+
* }
|
|
124
|
+
* runExample().catch(console.error);
|
|
125
|
+
* ```
|
|
126
|
+
* @group Keyless
|
|
127
|
+
*/
|
|
128
|
+
getProof(args: {
|
|
129
|
+
jwt: string;
|
|
130
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
131
|
+
pepper?: HexInput;
|
|
132
|
+
uidKey?: string;
|
|
133
|
+
}): Promise<ZeroKnowledgeSig>;
|
|
134
|
+
deriveKeylessAccount(args: {
|
|
135
|
+
jwt: string;
|
|
136
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
137
|
+
uidKey?: string;
|
|
138
|
+
pepper?: HexInput;
|
|
139
|
+
proofFetchCallback?: ProofFetchCallback;
|
|
140
|
+
}): Promise<KeylessAccount>;
|
|
141
|
+
deriveKeylessAccount(args: {
|
|
142
|
+
jwt: string;
|
|
143
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
144
|
+
jwkAddress: AccountAddressInput;
|
|
145
|
+
uidKey?: string;
|
|
146
|
+
pepper?: HexInput;
|
|
147
|
+
proofFetchCallback?: ProofFetchCallback;
|
|
148
|
+
}): Promise<FederatedKeylessAccount>;
|
|
149
|
+
/**
|
|
150
|
+
* This installs a set of FederatedJWKs at an address for a given iss.
|
|
151
|
+
*
|
|
152
|
+
* It will fetch the JSON Web Keyset (JWK) set from the well-known endpoint and update the FederatedJWKs at the sender's address
|
|
153
|
+
* to reflect it.
|
|
154
|
+
*
|
|
155
|
+
* @param args.sender The account that will install the JWKs
|
|
156
|
+
* @param args.iss the iss claim of the federated OIDC provider.
|
|
157
|
+
* @param args.jwksUrl the URL to find the corresponding JWKs. For supported IDP providers this parameter in not necessary.
|
|
158
|
+
*
|
|
159
|
+
* @returns The pending transaction that results from submission.
|
|
160
|
+
* @group Keyless
|
|
161
|
+
*/
|
|
162
|
+
updateFederatedKeylessJwkSetTransaction(args: {
|
|
163
|
+
sender: Account;
|
|
164
|
+
iss: string;
|
|
165
|
+
jwksUrl?: string;
|
|
166
|
+
options?: InputGenerateTransactionOptions;
|
|
167
|
+
}): Promise<SimpleTransaction>;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export { Keyless };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ie 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 Keyless};
|
|
2
|
+
//# sourceMappingURL=keyless.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Account } from './account.mjs';
|
|
2
|
+
import { ANS } from './ans.mjs';
|
|
3
|
+
import { Coin } from './coin.mjs';
|
|
4
|
+
import { DigitalAsset } from './digitalAsset.mjs';
|
|
5
|
+
import { Faucet } from './faucet.mjs';
|
|
6
|
+
import { FungibleAsset } from './fungibleAsset.mjs';
|
|
7
|
+
import { General } from './general.mjs';
|
|
8
|
+
import { Keyless } from './keyless.mjs';
|
|
9
|
+
import { M as MovementConfig } from '../accountAddress-CNXtapt1.mjs';
|
|
10
|
+
import { MovementObject } from './object.mjs';
|
|
11
|
+
import { Staking } from './staking.mjs';
|
|
12
|
+
import { Table } from './table.mjs';
|
|
13
|
+
import { Transaction } from './transaction.mjs';
|
|
14
|
+
import '../types/indexer.mjs';
|
|
15
|
+
import '../types/generated/operations.mjs';
|
|
16
|
+
import '../types/generated/types.mjs';
|
|
17
|
+
import '../core/crypto/types.mjs';
|
|
18
|
+
import '../utils/apiEndpoints.mjs';
|
|
19
|
+
import '../utils/const.mjs';
|
|
20
|
+
import '../core/common.mjs';
|
|
21
|
+
import '../Ed25519Account-DsqenvLJ.mjs';
|
|
22
|
+
import '../internal/account.mjs';
|
|
23
|
+
import '../account/MultiEd25519Account.mjs';
|
|
24
|
+
import './account/abstraction.mjs';
|
|
25
|
+
import '../internal/ans.mjs';
|
|
26
|
+
import '../internal/digitalAsset.mjs';
|
|
27
|
+
import '../federatedKeyless-D-d9d5aC.mjs';
|
|
28
|
+
import '@noble/curves/abstract/tower';
|
|
29
|
+
import '@noble/curves/abstract/weierstrass';
|
|
30
|
+
import '../types/keyless.mjs';
|
|
31
|
+
import '../core/crypto/ephemeral.mjs';
|
|
32
|
+
import '../core/crypto/proof.mjs';
|
|
33
|
+
import '../account/EphemeralKeyPair.mjs';
|
|
34
|
+
import '../account/KeylessAccount.mjs';
|
|
35
|
+
import '../account/AbstractKeylessAccount.mjs';
|
|
36
|
+
import '../account/FederatedKeylessAccount.mjs';
|
|
37
|
+
import '../internal/transactionSubmission.mjs';
|
|
38
|
+
import './transactionSubmission/build.mjs';
|
|
39
|
+
import './transactionSubmission/management.mjs';
|
|
40
|
+
import 'eventemitter3';
|
|
41
|
+
import '../transactions/management/transactionWorker.mjs';
|
|
42
|
+
import '../transactions/management/accountSequenceNumber.mjs';
|
|
43
|
+
import '../transactions/management/asyncQueue.mjs';
|
|
44
|
+
import './transactionSubmission/simulate.mjs';
|
|
45
|
+
import './transactionSubmission/submit.mjs';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The main entry point for interacting with the Movement APIs,
|
|
49
|
+
* providing access to various functionalities organized into
|
|
50
|
+
* distinct namespaces.
|
|
51
|
+
*
|
|
52
|
+
* To utilize the SDK, instantiate a new Movement object to gain
|
|
53
|
+
* access to the complete range of SDK features.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
58
|
+
*
|
|
59
|
+
* async function runExample() {
|
|
60
|
+
* // Create a configuration for connecting to the Movement testnet
|
|
61
|
+
* const config = new MovementConfig({ network: Network.TESTNET });
|
|
62
|
+
*
|
|
63
|
+
* // Initialize the Movement client with the configuration
|
|
64
|
+
* const movement = new Movement(config);
|
|
65
|
+
*
|
|
66
|
+
* console.log("Movement client initialized:", aptos);
|
|
67
|
+
* }
|
|
68
|
+
* runExample().catch(console.error);
|
|
69
|
+
* ```
|
|
70
|
+
* @group Client
|
|
71
|
+
*/
|
|
72
|
+
declare class Movement {
|
|
73
|
+
readonly config: MovementConfig;
|
|
74
|
+
readonly account: Account;
|
|
75
|
+
readonly ans: ANS;
|
|
76
|
+
readonly coin: Coin;
|
|
77
|
+
readonly digitalAsset: DigitalAsset;
|
|
78
|
+
readonly faucet: Faucet;
|
|
79
|
+
readonly fungibleAsset: FungibleAsset;
|
|
80
|
+
readonly general: General;
|
|
81
|
+
readonly staking: Staking;
|
|
82
|
+
readonly transaction: Transaction;
|
|
83
|
+
readonly table: Table;
|
|
84
|
+
readonly keyless: Keyless;
|
|
85
|
+
readonly object: MovementObject;
|
|
86
|
+
/**
|
|
87
|
+
* Initializes a new instance of the Movement client with the provided configuration settings.
|
|
88
|
+
* This allows you to interact with various Movement functionalities such as accounts, transactions, and events.
|
|
89
|
+
*
|
|
90
|
+
* @param settings - Configuration settings for the Movement client.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```typescript
|
|
94
|
+
* import { Movement, MovementConfig, Network } from "@moveindustries/ts-sdk";
|
|
95
|
+
*
|
|
96
|
+
* async function runExample() {
|
|
97
|
+
* // Create a new Movement client with default settings
|
|
98
|
+
* const config = new MovementConfig({ network: Network.TESTNET }); // Specify your own settings if needed
|
|
99
|
+
* const movement = new Movement(config);
|
|
100
|
+
*
|
|
101
|
+
* console.log("Movement client initialized:", aptos);
|
|
102
|
+
* }
|
|
103
|
+
* runExample().catch(console.error);
|
|
104
|
+
* ```
|
|
105
|
+
* @group Client
|
|
106
|
+
*/
|
|
107
|
+
constructor(config?: MovementConfig);
|
|
108
|
+
setIgnoreTransactionSubmitter(ignore: boolean): void;
|
|
109
|
+
}
|
|
110
|
+
interface Movement extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, MovementObject, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { Movement };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ze 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 Movement};
|
|
2
|
+
//# sourceMappingURL=movement.mjs.map
|