@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,123 @@
|
|
|
1
|
+
import { M as MovementConfig } 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 wrapper that handles and manages an account sequence number.
|
|
12
|
+
*
|
|
13
|
+
* Submit up to `maximumInFlight` transactions per account in parallel with a timeout of `sleepTime`
|
|
14
|
+
* If local assumes `maximumInFlight` are in flight, determine the actual committed state from the network
|
|
15
|
+
* If there are less than `maximumInFlight` due to some being committed, adjust the window
|
|
16
|
+
* If `maximumInFlight` are in flight, wait `sleepTime` seconds before re-evaluating
|
|
17
|
+
* If ever waiting more than `maxWaitTime` restart the sequence number to the current on-chain state
|
|
18
|
+
*
|
|
19
|
+
* Assumptions:
|
|
20
|
+
* Accounts are expected to be managed by a single AccountSequenceNumber and not used otherwise.
|
|
21
|
+
* They are initialized to the current on-chain state, so if there are already transactions in
|
|
22
|
+
* flight, they may take some time to reset.
|
|
23
|
+
* Accounts are automatically initialized if not explicitly
|
|
24
|
+
*
|
|
25
|
+
* Notes:
|
|
26
|
+
* This is co-routine safe, that is many async tasks can be reading from this concurrently.
|
|
27
|
+
* The state of an account cannot be used across multiple AccountSequenceNumber services.
|
|
28
|
+
* The synchronize method will create a barrier that prevents additional nextSequenceNumber
|
|
29
|
+
* calls until it is complete.
|
|
30
|
+
* This only manages the distribution of sequence numbers it does not help handle transaction
|
|
31
|
+
* failures.
|
|
32
|
+
* If a transaction fails, you should call synchronize and wait for timeouts.
|
|
33
|
+
* @group Implementation
|
|
34
|
+
* @category Transactions
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Represents an account's sequence number management for transaction handling on the Movement blockchain.
|
|
39
|
+
* This class provides methods to retrieve the next available sequence number, synchronize with the on-chain sequence number,
|
|
40
|
+
* and manage local sequence numbers while ensuring thread safety.
|
|
41
|
+
*
|
|
42
|
+
* @param movementConfig - The configuration settings for Movement.
|
|
43
|
+
* @param account - The account associated with the sequence number.
|
|
44
|
+
* @param maxWaitTime - The maximum time to wait for a transaction to commit.
|
|
45
|
+
* @param maximumInFlight - The maximum number of transactions that can be in flight at once.
|
|
46
|
+
* @param sleepTime - The time to wait before retrying to get the sequence number.
|
|
47
|
+
* @group Implementation
|
|
48
|
+
* @category Transactions
|
|
49
|
+
*/
|
|
50
|
+
declare class AccountSequenceNumber {
|
|
51
|
+
readonly movementConfig: MovementConfig;
|
|
52
|
+
readonly account: Account;
|
|
53
|
+
lastUncommintedNumber: bigint | null;
|
|
54
|
+
currentNumber: bigint | null;
|
|
55
|
+
/**
|
|
56
|
+
* We want to guarantee that we preserve ordering of workers to requests.
|
|
57
|
+
*
|
|
58
|
+
* `lock` is used to try to prevent multiple coroutines from accessing a shared resource at the same time,
|
|
59
|
+
* which can result in race conditions and data inconsistency.
|
|
60
|
+
* This code actually doesn't do it though, since we aren't giving out a slot, it is still somewhat a race condition.
|
|
61
|
+
*
|
|
62
|
+
* The ideal solution is likely that each thread grabs the next number from an incremental integer.
|
|
63
|
+
* When they complete, they increment that number and that entity is able to enter the `lock`.
|
|
64
|
+
* That would guarantee ordering.
|
|
65
|
+
* @group Implementation
|
|
66
|
+
* @category Transactions
|
|
67
|
+
*/
|
|
68
|
+
lock: boolean;
|
|
69
|
+
maxWaitTime: number;
|
|
70
|
+
maximumInFlight: number;
|
|
71
|
+
sleepTime: number;
|
|
72
|
+
/**
|
|
73
|
+
* Creates an instance of the class with the specified configuration and account details.
|
|
74
|
+
* This constructor initializes the necessary parameters for managing Movement transactions.
|
|
75
|
+
*
|
|
76
|
+
* @param movementConfig - The configuration settings for Movement.
|
|
77
|
+
* @param account - The account associated with the Movement transactions.
|
|
78
|
+
* @param maxWaitTime - The maximum time to wait for a transaction to be processed, in milliseconds.
|
|
79
|
+
* @param maximumInFlight - The maximum number of transactions that can be in flight at the same time.
|
|
80
|
+
* @param sleepTime - The time to sleep between transaction checks, in milliseconds.
|
|
81
|
+
* @group Implementation
|
|
82
|
+
* @category Transactions
|
|
83
|
+
*/
|
|
84
|
+
constructor(movementConfig: MovementConfig, account: Account, maxWaitTime: number, maximumInFlight: number, sleepTime: number);
|
|
85
|
+
/**
|
|
86
|
+
* Returns the next available sequence number for this account.
|
|
87
|
+
* This function ensures that the sequence number is updated and synchronized, handling potential delays in transaction commits.
|
|
88
|
+
*
|
|
89
|
+
* @returns {BigInt} The next available sequence number.
|
|
90
|
+
* @group Implementation
|
|
91
|
+
* @category Transactions
|
|
92
|
+
*/
|
|
93
|
+
nextSequenceNumber(): Promise<bigint | null>;
|
|
94
|
+
/**
|
|
95
|
+
* Initializes this account with the sequence number on chain.
|
|
96
|
+
*
|
|
97
|
+
* @returns {Promise<void>} A promise that resolves when the account has been initialized.
|
|
98
|
+
*
|
|
99
|
+
* @throws {Error} Throws an error if the account information cannot be retrieved.
|
|
100
|
+
* @group Implementation
|
|
101
|
+
* @category Transactions
|
|
102
|
+
*/
|
|
103
|
+
initialize(): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Updates this account's sequence number with the one on-chain.
|
|
106
|
+
*
|
|
107
|
+
* @returns The on-chain sequence number for this account.
|
|
108
|
+
* @group Implementation
|
|
109
|
+
* @category Transactions
|
|
110
|
+
*/
|
|
111
|
+
update(): Promise<bigint>;
|
|
112
|
+
/**
|
|
113
|
+
* Synchronizes the local sequence number with the sequence number on-chain for the specified account.
|
|
114
|
+
* This function polls the network until all submitted transactions have either been committed or until the maximum wait time has elapsed.
|
|
115
|
+
*
|
|
116
|
+
* @throws {Error} Throws an error if there is an issue synchronizing the account sequence number with the one on-chain.
|
|
117
|
+
* @group Implementation
|
|
118
|
+
* @category Transactions
|
|
119
|
+
*/
|
|
120
|
+
synchronize(): Promise<void>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { AccountSequenceNumber };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{re 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 AccountSequenceNumber};
|
|
2
|
+
//# sourceMappingURL=accountSequenceNumber.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AsyncQueue class is an async-aware data structure that provides a queue-like
|
|
3
|
+
* behavior for managing asynchronous tasks or operations.
|
|
4
|
+
* It allows to enqueue items and dequeue them asynchronously.
|
|
5
|
+
* This is not thread-safe, but it is async concurrency safe, and
|
|
6
|
+
* it does not guarantee ordering for those that call into and await on enqueue.
|
|
7
|
+
* @group Implementation
|
|
8
|
+
* @category Transactions
|
|
9
|
+
*/
|
|
10
|
+
declare class AsyncQueue<T> {
|
|
11
|
+
readonly queue: T[];
|
|
12
|
+
private pendingDequeue;
|
|
13
|
+
private cancelled;
|
|
14
|
+
/**
|
|
15
|
+
* Adds an item to the queue. If there are pending dequeued promises, it resolves the oldest promise with the enqueued item
|
|
16
|
+
* immediately; otherwise, it adds the item to the queue.
|
|
17
|
+
*
|
|
18
|
+
* @param item - The item to be added to the queue.
|
|
19
|
+
* @group Implementation
|
|
20
|
+
* @category Transactions
|
|
21
|
+
*/
|
|
22
|
+
enqueue(item: T): void;
|
|
23
|
+
/**
|
|
24
|
+
* Dequeues the next item from the queue and returns a promise that resolves to it.
|
|
25
|
+
* If the queue is empty, it creates a new promise that will be resolved when an item is enqueued.
|
|
26
|
+
*
|
|
27
|
+
* @returns Promise<T>
|
|
28
|
+
* @group Implementation
|
|
29
|
+
* @category Transactions
|
|
30
|
+
*/
|
|
31
|
+
dequeue(): Promise<T>;
|
|
32
|
+
/**
|
|
33
|
+
* Determine whether the queue is empty.
|
|
34
|
+
*
|
|
35
|
+
* @returns boolean - Returns true if the queue has no elements, otherwise false.
|
|
36
|
+
* @group Implementation
|
|
37
|
+
* @category Transactions
|
|
38
|
+
*/
|
|
39
|
+
isEmpty(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Cancels all pending promises in the queue and rejects them with an AsyncQueueCancelledError.
|
|
42
|
+
* This ensures that any awaiting code can handle the cancellation appropriately.
|
|
43
|
+
*
|
|
44
|
+
* @returns {void}
|
|
45
|
+
* @group Implementation
|
|
46
|
+
* @category Transactions
|
|
47
|
+
*/
|
|
48
|
+
cancel(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Determine whether the queue has been cancelled.
|
|
51
|
+
*
|
|
52
|
+
* @returns boolean - Returns true if the queue is cancelled, otherwise false.
|
|
53
|
+
* @group Implementation
|
|
54
|
+
* @category Transactions
|
|
55
|
+
*/
|
|
56
|
+
isCancelled(): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieve the length of the pending dequeue.
|
|
59
|
+
*
|
|
60
|
+
* @returns number - The number of items currently in the pending dequeue.
|
|
61
|
+
* @group Implementation
|
|
62
|
+
* @category Transactions
|
|
63
|
+
*/
|
|
64
|
+
pendingDequeueLength(): number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Represents an error that occurs when an asynchronous queue operation is cancelled.
|
|
68
|
+
* This error extends the built-in Error class to provide additional context for cancellation events.
|
|
69
|
+
*
|
|
70
|
+
* @extends Error
|
|
71
|
+
* @group Implementation
|
|
72
|
+
* @category Transactions
|
|
73
|
+
*/
|
|
74
|
+
declare class AsyncQueueCancelledError extends Error {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { AsyncQueue, AsyncQueueCancelledError };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { AccountSequenceNumber } from './accountSequenceNumber.mjs';
|
|
2
|
+
export { ExecutionFinishEventData, FailureEventData, SuccessEventData, TransactionWorker, TransactionWorkerEvents, TransactionWorkerEventsEnum, promiseFulfilledStatus } from './transactionWorker.mjs';
|
|
3
|
+
import '../../accountAddress-CNXtapt1.mjs';
|
|
4
|
+
import '../../types/indexer.mjs';
|
|
5
|
+
import '../../types/generated/operations.mjs';
|
|
6
|
+
import '../../types/generated/types.mjs';
|
|
7
|
+
import '../../utils/apiEndpoints.mjs';
|
|
8
|
+
import '../../utils/const.mjs';
|
|
9
|
+
import '../../core/common.mjs';
|
|
10
|
+
import '../../Ed25519Account-DsqenvLJ.mjs';
|
|
11
|
+
import 'eventemitter3';
|
|
12
|
+
import './asyncQueue.mjs';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{re as a,se as b,te as c,ue as d}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 AccountSequenceNumber,d as TransactionWorker,c as TransactionWorkerEventsEnum,b as promiseFulfilledStatus};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { AccountSequenceNumber } from './accountSequenceNumber.mjs';
|
|
2
|
+
import EventEmitter from 'eventemitter3';
|
|
3
|
+
import { M as MovementConfig, aK as InputGenerateTransactionPayloadData, aG as InputGenerateTransactionOptions, cD as PendingTransactionResponse, ag as SimpleTransaction } from '../../accountAddress-CNXtapt1.mjs';
|
|
4
|
+
import { A as Account } from '../../Ed25519Account-DsqenvLJ.mjs';
|
|
5
|
+
import { AsyncQueue } from './asyncQueue.mjs';
|
|
6
|
+
import '../../types/indexer.mjs';
|
|
7
|
+
import '../../types/generated/operations.mjs';
|
|
8
|
+
import '../../types/generated/types.mjs';
|
|
9
|
+
import '../../utils/apiEndpoints.mjs';
|
|
10
|
+
import '../../utils/const.mjs';
|
|
11
|
+
import '../../core/common.mjs';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @group Implementation
|
|
15
|
+
* @category Transactions
|
|
16
|
+
*/
|
|
17
|
+
declare const promiseFulfilledStatus = "fulfilled";
|
|
18
|
+
/**
|
|
19
|
+
* Events emitted by the transaction worker during its operation, allowing the dapp to respond to various transaction states.
|
|
20
|
+
* @group Implementation
|
|
21
|
+
* @category Transactions
|
|
22
|
+
*/
|
|
23
|
+
declare enum TransactionWorkerEventsEnum {
|
|
24
|
+
TransactionSent = "transactionSent",
|
|
25
|
+
TransactionSendFailed = "transactionSendFailed",
|
|
26
|
+
TransactionExecuted = "transactionExecuted",
|
|
27
|
+
TransactionExecutionFailed = "transactionExecutionFailed",
|
|
28
|
+
ExecutionFinish = "executionFinish"
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Defines the events emitted by the transaction worker during various stages of transaction processing. *
|
|
32
|
+
* @group Implementation
|
|
33
|
+
* @category Transactions
|
|
34
|
+
*/
|
|
35
|
+
interface TransactionWorkerEvents {
|
|
36
|
+
transactionSent: (data: SuccessEventData) => void;
|
|
37
|
+
transactionSendFailed: (data: FailureEventData) => void;
|
|
38
|
+
transactionExecuted: (data: SuccessEventData) => void;
|
|
39
|
+
transactionExecutionFailed: (data: FailureEventData) => void;
|
|
40
|
+
executionFinish: (data: ExecutionFinishEventData) => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The payload for when the worker has finished its job.
|
|
44
|
+
* @group Implementation
|
|
45
|
+
* @category Transactions
|
|
46
|
+
*/
|
|
47
|
+
type ExecutionFinishEventData = {
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The payload for a success event.
|
|
52
|
+
* @group Implementation
|
|
53
|
+
* @category Transactions
|
|
54
|
+
*/
|
|
55
|
+
type SuccessEventData = {
|
|
56
|
+
message: string;
|
|
57
|
+
transactionHash: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* The payload for a failure event.
|
|
61
|
+
* @group Implementation
|
|
62
|
+
* @category Transactions
|
|
63
|
+
*/
|
|
64
|
+
type FailureEventData = {
|
|
65
|
+
message: string;
|
|
66
|
+
error: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* TransactionWorker provides a simple framework for receiving payloads to be processed.
|
|
70
|
+
*
|
|
71
|
+
* Once one `start()` the process and pushes a new transaction, the worker acquires
|
|
72
|
+
* the current account's next sequence number (by using the AccountSequenceNumber class),
|
|
73
|
+
* generates a signed transaction and pushes an async submission process into the `outstandingTransactions` queue.
|
|
74
|
+
* At the same time, the worker processes transactions by reading the `outstandingTransactions` queue
|
|
75
|
+
* and submits the next transaction to chain, it
|
|
76
|
+
* 1) waits for resolution of the submission process or get pre-execution validation error
|
|
77
|
+
* and 2) waits for the resolution of the execution process or get an execution error.
|
|
78
|
+
* The worker fires events for any submission and/or execution success and/or failure.
|
|
79
|
+
* @group Implementation
|
|
80
|
+
* @category Transactions
|
|
81
|
+
*/
|
|
82
|
+
declare class TransactionWorker extends EventEmitter<TransactionWorkerEvents> {
|
|
83
|
+
readonly movementConfig: MovementConfig;
|
|
84
|
+
readonly account: Account;
|
|
85
|
+
readonly accountSequnceNumber: AccountSequenceNumber;
|
|
86
|
+
readonly taskQueue: AsyncQueue<() => Promise<void>>;
|
|
87
|
+
started: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* transactions payloads waiting to be generated and signed
|
|
90
|
+
*
|
|
91
|
+
* TODO support entry function payload from ABI builder
|
|
92
|
+
* @group Implementation
|
|
93
|
+
* @category Transactions
|
|
94
|
+
*/
|
|
95
|
+
transactionsQueue: AsyncQueue<[InputGenerateTransactionPayloadData, InputGenerateTransactionOptions | undefined]>;
|
|
96
|
+
/**
|
|
97
|
+
* signed transactions waiting to be submitted
|
|
98
|
+
* @group Implementation
|
|
99
|
+
* @category Transactions
|
|
100
|
+
*/
|
|
101
|
+
outstandingTransactions: AsyncQueue<[Promise<PendingTransactionResponse>, bigint]>;
|
|
102
|
+
/**
|
|
103
|
+
* transactions that have been submitted to chain
|
|
104
|
+
* @group Implementation
|
|
105
|
+
* @category Transactions
|
|
106
|
+
*/
|
|
107
|
+
sentTransactions: Array<[string, bigint, any]>;
|
|
108
|
+
/**
|
|
109
|
+
* transactions that have been committed to chain
|
|
110
|
+
* @group Implementation
|
|
111
|
+
* @category Transactions
|
|
112
|
+
*/
|
|
113
|
+
executedTransactions: Array<[string, bigint, any]>;
|
|
114
|
+
/**
|
|
115
|
+
* Initializes a new instance of the class, providing a framework for receiving payloads to be processed.
|
|
116
|
+
*
|
|
117
|
+
* @param movementConfig - A configuration object for Movement.
|
|
118
|
+
* @param account - The account that will be used for sending transactions.
|
|
119
|
+
* @param maxWaitTime - The maximum wait time to wait before re-syncing the sequence number to the current on-chain state,
|
|
120
|
+
* default is 30 seconds.
|
|
121
|
+
* @param maximumInFlight - The maximum number of transactions that can be submitted per account, default is 100.
|
|
122
|
+
* @param sleepTime - The time to wait in seconds before re-evaluating if the maximum number of transactions are in flight,
|
|
123
|
+
* default is 10 seconds.
|
|
124
|
+
* @group Implementation
|
|
125
|
+
* @category Transactions
|
|
126
|
+
*/
|
|
127
|
+
constructor(movementConfig: MovementConfig, account: Account, maxWaitTime?: number, maximumInFlight?: number, sleepTime?: number);
|
|
128
|
+
/**
|
|
129
|
+
* Submits the next transaction for the account by generating it with the current sequence number
|
|
130
|
+
* and adding it to the outstanding transaction queue for processing.
|
|
131
|
+
* This function continues to submit transactions until there are no more to process.
|
|
132
|
+
*
|
|
133
|
+
* @throws {Error} Throws an error if the transaction submission fails.
|
|
134
|
+
* @group Implementation
|
|
135
|
+
* @category Transactions
|
|
136
|
+
*/
|
|
137
|
+
submitNextTransaction(): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Reads the outstanding transaction queue and submits the transactions to the chain.
|
|
140
|
+
* This function processes each transaction, checking their status and emitting events based on whether they were successfully
|
|
141
|
+
* sent or failed.
|
|
142
|
+
*
|
|
143
|
+
* @throws {Error} Throws an error if the process execution fails.
|
|
144
|
+
* @event TransactionWorkerEventsEnum.TransactionSent - Emitted when a transaction has been successfully committed to the chain.
|
|
145
|
+
* @event TransactionWorkerEventsEnum.TransactionSendFailed - Emitted when a transaction fails to commit, along with the error
|
|
146
|
+
* reason.
|
|
147
|
+
* @event TransactionWorkerEventsEnum.ExecutionFinish - Emitted when the execution of transactions is complete.
|
|
148
|
+
* @group Implementation
|
|
149
|
+
* @category Transactions
|
|
150
|
+
*/
|
|
151
|
+
processTransactions(): Promise<void>;
|
|
152
|
+
/**
|
|
153
|
+
* Once a transaction has been sent to the chain, this function checks for its execution status.
|
|
154
|
+
* @param sentTransaction - The transaction that was sent to the chain and is now waiting to be executed.
|
|
155
|
+
* @param sequenceNumber - The account's sequence number that was sent with the transaction.
|
|
156
|
+
* @group Implementation
|
|
157
|
+
* @category Transactions
|
|
158
|
+
*/
|
|
159
|
+
checkTransaction(sentTransaction: PromiseFulfilledResult<PendingTransactionResponse>, sequenceNumber: bigint): Promise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Pushes a transaction to the transactions queue for processing.
|
|
162
|
+
*
|
|
163
|
+
* @param transactionData - The transaction payload containing necessary details.
|
|
164
|
+
* @param transactionData.abi - For all entry function payloads, the ABI to skip remote ABI lookups.
|
|
165
|
+
* @param options - Optional parameters for transaction configuration.
|
|
166
|
+
* @param options.maxGasAmount - Maximum gas amount for the transaction.
|
|
167
|
+
* @param options.gasUnitPrice - Gas unit price for the transaction.
|
|
168
|
+
* @param options.expireTimestamp - Expiration timestamp on the transaction.
|
|
169
|
+
* @param options.accountSequenceNumber - The sequence number for the transaction.
|
|
170
|
+
* @group Implementation
|
|
171
|
+
* @category Transactions
|
|
172
|
+
*/
|
|
173
|
+
push(transactionData: InputGenerateTransactionPayloadData, options?: InputGenerateTransactionOptions): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* Generates a signed transaction that can be submitted to the chain.
|
|
176
|
+
*
|
|
177
|
+
* @param account - An Movement account used as the sender of the transaction.
|
|
178
|
+
* @param sequenceNumber - A sequence number the transaction will be generated with.
|
|
179
|
+
* @returns A signed transaction object or undefined if the transaction queue is empty.
|
|
180
|
+
* @group Implementation
|
|
181
|
+
* @category Transactions
|
|
182
|
+
*/
|
|
183
|
+
generateNextTransaction(account: Account, sequenceNumber: bigint): Promise<SimpleTransaction | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* Starts transaction submission and processing by executing tasks from the queue until it is cancelled.
|
|
186
|
+
*
|
|
187
|
+
* @throws {Error} Throws an error if unable to start transaction batching.
|
|
188
|
+
* @group Implementation
|
|
189
|
+
* @category Transactions
|
|
190
|
+
*/
|
|
191
|
+
run(): Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* Starts the transaction management process.
|
|
194
|
+
*
|
|
195
|
+
* @throws {Error} Throws an error if the worker has already started.
|
|
196
|
+
* @group Implementation
|
|
197
|
+
* @category Transactions
|
|
198
|
+
*/
|
|
199
|
+
start(): void;
|
|
200
|
+
/**
|
|
201
|
+
* Stops the transaction management process.
|
|
202
|
+
*
|
|
203
|
+
* @throws {Error} Throws an error if the worker has already stopped.
|
|
204
|
+
* @group Implementation
|
|
205
|
+
* @category Transactions
|
|
206
|
+
*/
|
|
207
|
+
stop(): void;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export { type ExecutionFinishEventData, type FailureEventData, type SuccessEventData, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, promiseFulfilledStatus };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{se as a,te as b,ue as c}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{c as TransactionWorker,b as TransactionWorkerEventsEnum,a as promiseFulfilledStatus};
|
|
2
|
+
//# sourceMappingURL=transactionWorker.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { aB as SimpleEntryFunctionArgumentTypes, aC as EntryFunctionArgumentTypes, B as Bool, t as AccountAddress, m as MoveString, F as FixedBytes, U as U8, b as U16, c as U32, d as U64, e as U128, f as U256, aL as InputGenerateTransactionPayloadDataWithRemoteABI, aK as InputGenerateTransactionPayloadData, aT as InputScriptData, dD as MoveFunction } 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
|
+
* Determines if the provided argument is of type boolean.
|
|
11
|
+
* This can help in validating input types before processing them further.
|
|
12
|
+
*
|
|
13
|
+
* @param arg - The argument to check, which can be of various types.
|
|
14
|
+
* @returns A boolean indicating whether the argument is a boolean.
|
|
15
|
+
* @group Implementation
|
|
16
|
+
* @category Transactions
|
|
17
|
+
*/
|
|
18
|
+
declare function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Checks if the provided argument is of type string.
|
|
21
|
+
*
|
|
22
|
+
* @param arg - The value to be checked for string type.
|
|
23
|
+
* @returns A boolean indicating whether the argument is a string.
|
|
24
|
+
* @group Implementation
|
|
25
|
+
* @category Transactions
|
|
26
|
+
*/
|
|
27
|
+
declare function isString(arg: any): arg is string;
|
|
28
|
+
/**
|
|
29
|
+
* Determines if the provided argument is of type number.
|
|
30
|
+
*
|
|
31
|
+
* @param arg - The argument to check, which can be of various types.
|
|
32
|
+
* @returns A boolean indicating whether the argument is a number.
|
|
33
|
+
* @group Implementation
|
|
34
|
+
* @category Transactions
|
|
35
|
+
*/
|
|
36
|
+
declare function isNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number;
|
|
37
|
+
/**
|
|
38
|
+
* Converts a number or a string representation of a number into a number type.
|
|
39
|
+
* This function is useful for ensuring that the input is in a consistent numeric format,
|
|
40
|
+
* which can help prevent type mismatches in further processing.
|
|
41
|
+
*
|
|
42
|
+
* @param arg - The input value to be converted. This can be a number, a string representing a number, or any other type.
|
|
43
|
+
* @returns Returns the converted number if the input is valid; otherwise, it returns undefined.
|
|
44
|
+
* @group Implementation
|
|
45
|
+
* @category Transactions
|
|
46
|
+
*/
|
|
47
|
+
declare function convertNumber(arg: SimpleEntryFunctionArgumentTypes): number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Determines if the provided argument is a large number, which can be a number, bigint, or string representation of a number.
|
|
50
|
+
*
|
|
51
|
+
* @param arg - The argument to check, which can be of type number, bigint, or string.
|
|
52
|
+
* @group Implementation
|
|
53
|
+
* @category Transactions
|
|
54
|
+
*/
|
|
55
|
+
declare function isLargeNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number | bigint | string;
|
|
56
|
+
/**
|
|
57
|
+
* Checks if the provided argument is empty, meaning it is either null or undefined.
|
|
58
|
+
*
|
|
59
|
+
* @param arg - The argument to check for emptiness.
|
|
60
|
+
* @returns A boolean indicating whether the argument is empty.
|
|
61
|
+
* @group Implementation
|
|
62
|
+
* @category Transactions
|
|
63
|
+
*/
|
|
64
|
+
declare function isEmptyOption(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Determines if the provided argument is a valid encoded entry function argument type.
|
|
67
|
+
* This function helps validate that the argument conforms to the expected types for entry function parameters.
|
|
68
|
+
*
|
|
69
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
70
|
+
* @group Implementation
|
|
71
|
+
* @category Transactions
|
|
72
|
+
*/
|
|
73
|
+
declare function isEncodedEntryFunctionArgument(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is EntryFunctionArgumentTypes;
|
|
74
|
+
/**
|
|
75
|
+
* @group Implementation
|
|
76
|
+
* @category Transactions
|
|
77
|
+
*/
|
|
78
|
+
declare function isBcsBool(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is Bool;
|
|
79
|
+
/**
|
|
80
|
+
* @group Implementation
|
|
81
|
+
* @category Transactions
|
|
82
|
+
*/
|
|
83
|
+
declare function isBcsAddress(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is AccountAddress;
|
|
84
|
+
/**
|
|
85
|
+
* @group Implementation
|
|
86
|
+
* @category Transactions
|
|
87
|
+
*/
|
|
88
|
+
declare function isBcsString(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is MoveString;
|
|
89
|
+
/**
|
|
90
|
+
* @group Implementation
|
|
91
|
+
* @category Transactions
|
|
92
|
+
*/
|
|
93
|
+
declare function isBcsFixedBytes(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is FixedBytes;
|
|
94
|
+
/**
|
|
95
|
+
* @group Implementation
|
|
96
|
+
* @category Transactions
|
|
97
|
+
*/
|
|
98
|
+
declare function isBcsU8(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U8;
|
|
99
|
+
/**
|
|
100
|
+
* @group Implementation
|
|
101
|
+
* @category Transactions
|
|
102
|
+
*/
|
|
103
|
+
declare function isBcsU16(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U16;
|
|
104
|
+
/**
|
|
105
|
+
* @group Implementation
|
|
106
|
+
* @category Transactions
|
|
107
|
+
*/
|
|
108
|
+
declare function isBcsU32(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U32;
|
|
109
|
+
/**
|
|
110
|
+
* @group Implementation
|
|
111
|
+
* @category Transactions
|
|
112
|
+
*/
|
|
113
|
+
declare function isBcsU64(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U64;
|
|
114
|
+
/**
|
|
115
|
+
* @group Implementation
|
|
116
|
+
* @category Transactions
|
|
117
|
+
*/
|
|
118
|
+
declare function isBcsU128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U128;
|
|
119
|
+
/**
|
|
120
|
+
* @group Implementation
|
|
121
|
+
* @category Transactions
|
|
122
|
+
*/
|
|
123
|
+
declare function isBcsU256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U256;
|
|
124
|
+
/**
|
|
125
|
+
* Determines if the provided argument contains script data input by checking for the presence of bytecode.
|
|
126
|
+
*
|
|
127
|
+
* @param arg - The input data to be checked, which can either be a payload with remote ABI or a standard payload.
|
|
128
|
+
* @param arg.bytecode - The bytecode of the script, present if the input is script data.
|
|
129
|
+
* @param arg.function - The function associated with the transaction, which is relevant for standard payloads.
|
|
130
|
+
* @param arg.args - The arguments for the function, applicable in the context of standard payloads.
|
|
131
|
+
* @group Implementation
|
|
132
|
+
* @category Transactions
|
|
133
|
+
*/
|
|
134
|
+
declare function isScriptDataInput(arg: InputGenerateTransactionPayloadDataWithRemoteABI | InputGenerateTransactionPayloadData): arg is InputScriptData;
|
|
135
|
+
/**
|
|
136
|
+
* Throws an error indicating a type mismatch for a specified argument position.
|
|
137
|
+
* This function helps in debugging by providing clear feedback on expected types.
|
|
138
|
+
*
|
|
139
|
+
* @param expectedType - The type that was expected for the argument.
|
|
140
|
+
* @param position - The position of the argument that caused the type mismatch.
|
|
141
|
+
* @group Implementation
|
|
142
|
+
* @category Transactions
|
|
143
|
+
*/
|
|
144
|
+
declare function throwTypeMismatch(expectedType: string, position: number): void;
|
|
145
|
+
/**
|
|
146
|
+
* Finds the index of the first non-signer argument in the function ABI parameters.
|
|
147
|
+
*
|
|
148
|
+
* A function is often defined with a `signer` or `&signer` arguments at the start, which are filled in
|
|
149
|
+
* by signatures and not by the caller. This function helps identify the position of the first argument that
|
|
150
|
+
* can be provided by the caller, allowing for easier handling of function parameters.
|
|
151
|
+
*
|
|
152
|
+
* @param functionAbi - The ABI of the function to analyze.
|
|
153
|
+
* @returns The index of the first non-signer argument, or the length of the parameters array if none are found.
|
|
154
|
+
* @group Implementation
|
|
155
|
+
* @category Transactions
|
|
156
|
+
*/
|
|
157
|
+
declare function findFirstNonSignerArg(functionAbi: MoveFunction): number;
|
|
158
|
+
|
|
159
|
+
export { convertNumber, findFirstNonSignerArg, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEmptyOption, isEncodedEntryFunctionArgument, isLargeNumber, isNumber, isScriptDataInput, isString, throwTypeMismatch };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ab as d,Bb as e,Cb as f,Db as g,Eb as h,Fb as i,Gb as j,Hb as k,Ib as l,Jb as m,Kb as n,Lb as o,Mb as p,Nb as q,Ob as r,Pb as s,Qb as t,xb as a,yb as b,zb as c}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{d as convertNumber,t as findFirstNonSignerArg,i as isBcsAddress,h as isBcsBool,k as isBcsFixedBytes,j as isBcsString,p as isBcsU128,m as isBcsU16,q as isBcsU256,n as isBcsU32,o as isBcsU64,l as isBcsU8,a as isBool,f as isEmptyOption,g as isEncodedEntryFunctionArgument,e as isLargeNumber,c as isNumber,r as isScriptDataInput,b as isString,s as throwTypeMismatch};
|
|
2
|
+
//# sourceMappingURL=helpers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { convertNumber, findFirstNonSignerArg, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEmptyOption, isEncodedEntryFunctionArgument, isLargeNumber, isNumber, isScriptDataInput, isString, throwTypeMismatch } from './helpers.mjs';
|
|
2
|
+
export { checkOrConvertArgument, convertArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchModuleAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, standardizeTypeTags } from './remoteAbi.mjs';
|
|
3
|
+
export { deriveTransactionType, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction } from './signingMessage.mjs';
|
|
4
|
+
export { buildTransaction, convertPayloadToInnerPayload, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, getAuthenticatorForSimulation, hashValues } from './transactionBuilder.mjs';
|
|
5
|
+
import '../../accountAddress-CNXtapt1.mjs';
|
|
6
|
+
import '../../types/indexer.mjs';
|
|
7
|
+
import '../../types/generated/operations.mjs';
|
|
8
|
+
import '../../types/generated/types.mjs';
|
|
9
|
+
import '../../utils/apiEndpoints.mjs';
|
|
10
|
+
import '../../utils/const.mjs';
|
|
11
|
+
import '../../core/common.mjs';
|