@aptos-labs/ts-sdk 1.38.0 → 2.0.0-zeta.0
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/dist/common/{accountAddress-5ltp27oM.d.ts → accountAddress-B3Y4WI-E.d.ts} +47 -11
- package/dist/common/chunk-BNN2XWNR.js +4 -0
- package/dist/common/chunk-BNN2XWNR.js.map +1 -0
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +174 -113
- package/dist/common/index.js +53 -32
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/AbstractKeylessAccount.d.mts +0 -1
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.d.mts +0 -1
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +0 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +0 -1
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/DerivableAbstractedAccount.d.mts +0 -1
- package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +0 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +0 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +1 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.d.mts +0 -1
- package/dist/esm/account/MultiEd25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +0 -1
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +0 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +0 -1
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +0 -1
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/api/account/abstraction.d.mts +0 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.d.mts +97 -6
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +0 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +5 -6
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +0 -1
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +0 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +0 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +0 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +0 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +50 -2
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +0 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +5 -6
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +0 -1
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +0 -1
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +0 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +0 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +1 -2
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +0 -66
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +0 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +0 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +0 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +0 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +0 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/consts.d.mts +0 -1
- package/dist/esm/bcs/deserializer.d.mts +0 -1
- package/dist/esm/bcs/index.d.mts +0 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +0 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +0 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +0 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +0 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +0 -1
- package/dist/esm/{chunk-NKHYIVN3.mjs → chunk-2DYSBAZ7.mjs} +2 -2
- package/dist/esm/{chunk-CDGBM4JY.mjs → chunk-34R7FSQF.mjs} +2 -2
- package/dist/esm/chunk-3FEFJIVT.mjs +2 -0
- package/dist/esm/chunk-3FEFJIVT.mjs.map +1 -0
- package/dist/esm/{chunk-IRYH7OV4.mjs → chunk-4F5EECVQ.mjs} +2 -2
- package/dist/esm/chunk-5HXLZHDW.mjs +1 -0
- package/dist/esm/{chunk-KBHJPL6Y.mjs → chunk-6UZHMEK3.mjs} +2 -2
- package/dist/esm/{chunk-PUYYROVD.mjs → chunk-CO67Y6YE.mjs} +2 -2
- package/dist/esm/{chunk-PUYYROVD.mjs.map → chunk-CO67Y6YE.mjs.map} +1 -1
- package/dist/esm/{chunk-XZGEJMIL.mjs → chunk-CQJLK4WE.mjs} +2 -2
- package/dist/esm/chunk-FD6FGKYY.mjs +1 -0
- package/dist/esm/chunk-FD6FGKYY.mjs.map +1 -0
- package/dist/esm/{chunk-GSXNMAK2.mjs → chunk-GPNNEHW4.mjs} +2 -2
- package/dist/esm/chunk-GRPSFJ3N.mjs +4 -0
- package/dist/esm/chunk-GRPSFJ3N.mjs.map +1 -0
- package/dist/esm/chunk-HLF3U7IS.mjs +2 -0
- package/dist/esm/{chunk-4AU6DSUL.mjs.map → chunk-HLF3U7IS.mjs.map} +1 -1
- package/dist/esm/{chunk-WIBQJBBB.mjs → chunk-HW7TSJI2.mjs} +2 -2
- package/dist/esm/chunk-JCFTAG5Z.mjs +2 -0
- package/dist/esm/{chunk-RJ7F4JDV.mjs.map → chunk-JCFTAG5Z.mjs.map} +1 -1
- package/dist/esm/{chunk-QQDTCQQV.mjs → chunk-SVMCNLFC.mjs} +2 -2
- package/dist/esm/{chunk-NAWRVBU4.mjs → chunk-TDGLYA35.mjs} +2 -2
- package/dist/esm/{chunk-VHNX2NUR.mjs → chunk-UL777LTI.mjs} +47 -26
- package/dist/esm/chunk-UL777LTI.mjs.map +1 -0
- package/dist/esm/{chunk-4CVPCQ56.mjs → chunk-UQWF24SS.mjs} +2 -2
- package/dist/esm/{chunk-4CVPCQ56.mjs.map → chunk-UQWF24SS.mjs.map} +1 -1
- package/dist/esm/{chunk-P23N7FX6.mjs → chunk-V7NWNNBI.mjs} +2 -2
- package/dist/esm/chunk-XTMUMN74.mjs +2 -0
- package/dist/esm/chunk-XTMUMN74.mjs.map +1 -0
- package/dist/esm/cli/index.d.mts +0 -1
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +0 -1
- package/dist/esm/client/core.d.mts +0 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +0 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +0 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +0 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.d.mts +0 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +0 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.d.mts +0 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +0 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +0 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/abstraction.d.mts +0 -1
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +0 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +0 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +0 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +0 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +10 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +2 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +0 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +0 -1
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +0 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +0 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +0 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +2 -3
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/types.d.mts +25 -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 +0 -1
- package/dist/esm/core/hex.d.mts +0 -1
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.d.mts +0 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +5 -6
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.d.mts +0 -1
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.d.mts +43 -14
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +0 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +0 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +0 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +0 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +0 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +24 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +0 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +9 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +0 -1
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +0 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +0 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +0 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +0 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/utils/index.d.mts +0 -1
- package/dist/esm/internal/utils/index.mjs +1 -1
- package/dist/esm/internal/utils/utils.d.mts +0 -1
- package/dist/esm/internal/utils/utils.mjs +1 -1
- package/dist/esm/internal/view.d.mts +0 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +0 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +0 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +0 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +2 -4
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +0 -1
- package/dist/esm/transactions/instances/identifier.d.mts +0 -1
- package/dist/esm/transactions/instances/index.d.mts +0 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +0 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +0 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +0 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +0 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +0 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +0 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +0 -1
- package/dist/esm/transactions/instances/transactionPayload.d.mts +0 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +0 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +0 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +0 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +0 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -2
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -13
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +0 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +0 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +0 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +0 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +1 -10
- package/dist/esm/types/generated/operations.d.mts +37 -10
- package/dist/esm/types/generated/queries.d.mts +6 -2
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/types.d.mts +584 -1172
- package/dist/esm/types/generated/types.mjs +1 -1
- package/dist/esm/types/generated/types.mjs.map +1 -1
- package/dist/esm/types/index.d.mts +2 -3
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +8 -2
- package/dist/esm/types/types.d.mts +25 -4
- package/dist/esm/types/types.mjs +1 -1
- package/dist/esm/utils/const.d.mts +1 -0
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +0 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +0 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +0 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -3
- package/src/account/FederatedKeylessAccount.ts +7 -1
- package/src/account/KeylessAccount.ts +17 -2
- package/src/api/account.ts +123 -2
- package/src/api/aptosConfig.ts +9 -0
- package/src/api/fungibleAsset.ts +54 -1
- package/src/api/transaction.ts +1 -0
- package/src/api/transactionSubmission/build.ts +2 -85
- package/src/core/crypto/ed25519.ts +1 -1
- package/src/core/crypto/index.ts +1 -0
- package/src/core/crypto/multiEd25519.ts +26 -0
- package/src/core/crypto/multiKey.ts +6 -0
- package/src/core/crypto/secp256k1.ts +1 -1
- package/src/core/crypto/singleKey.ts +2 -2
- package/src/core/crypto/types.ts +9 -0
- package/src/internal/account.ts +524 -53
- package/src/internal/fungibleAsset.ts +37 -0
- package/src/internal/keyless.ts +10 -0
- package/src/internal/queries/getAccountAddressesForAuthKey.graphql +8 -0
- package/src/internal/queries/getAuthKeysForPublicKey.graphql +11 -0
- package/src/transactions/index.ts +0 -1
- package/src/transactions/transactionBuilder/remoteAbi.ts +1 -26
- package/src/transactions/types.ts +0 -11
- package/src/types/codegen.yaml +1 -1
- package/src/types/generated/operations.ts +39 -8
- package/src/types/generated/queries.ts +53 -0
- package/src/types/generated/types.ts +620 -1239
- package/src/types/index.ts +0 -1
- package/src/types/indexer.ts +8 -0
- package/src/types/types.ts +40 -3
- package/src/utils/const.ts +1 -0
- package/src/version.ts +1 -1
- package/dist/common/chunk-66TIRJFD.js +0 -4
- package/dist/common/chunk-66TIRJFD.js.map +0 -1
- package/dist/esm/chunk-3OLFJ65O.mjs +0 -2
- package/dist/esm/chunk-3OLFJ65O.mjs.map +0 -1
- package/dist/esm/chunk-4AU6DSUL.mjs +0 -2
- package/dist/esm/chunk-4N2JPV7H.mjs +0 -4
- package/dist/esm/chunk-4N2JPV7H.mjs.map +0 -1
- package/dist/esm/chunk-F2ZTBAJJ.mjs +0 -2
- package/dist/esm/chunk-F2ZTBAJJ.mjs.map +0 -1
- package/dist/esm/chunk-ODAAZLPK.mjs +0 -2
- package/dist/esm/chunk-ODAAZLPK.mjs.map +0 -1
- package/dist/esm/chunk-RJ7F4JDV.mjs +0 -2
- package/dist/esm/chunk-VHNX2NUR.mjs.map +0 -1
- package/dist/esm/transactions/scriptComposer/index.d.mts +0 -53
- package/dist/esm/transactions/scriptComposer/index.mjs +0 -2
- package/src/transactions/scriptComposer/index.ts +0 -102
- /package/dist/esm/{chunk-NKHYIVN3.mjs.map → chunk-2DYSBAZ7.mjs.map} +0 -0
- /package/dist/esm/{chunk-CDGBM4JY.mjs.map → chunk-34R7FSQF.mjs.map} +0 -0
- /package/dist/esm/{chunk-IRYH7OV4.mjs.map → chunk-4F5EECVQ.mjs.map} +0 -0
- /package/dist/esm/{transactions/scriptComposer/index.mjs.map → chunk-5HXLZHDW.mjs.map} +0 -0
- /package/dist/esm/{chunk-KBHJPL6Y.mjs.map → chunk-6UZHMEK3.mjs.map} +0 -0
- /package/dist/esm/{chunk-XZGEJMIL.mjs.map → chunk-CQJLK4WE.mjs.map} +0 -0
- /package/dist/esm/{chunk-GSXNMAK2.mjs.map → chunk-GPNNEHW4.mjs.map} +0 -0
- /package/dist/esm/{chunk-WIBQJBBB.mjs.map → chunk-HW7TSJI2.mjs.map} +0 -0
- /package/dist/esm/{chunk-QQDTCQQV.mjs.map → chunk-SVMCNLFC.mjs.map} +0 -0
- /package/dist/esm/{chunk-NAWRVBU4.mjs.map → chunk-TDGLYA35.mjs.map} +0 -0
- /package/dist/esm/{chunk-P23N7FX6.mjs.map → chunk-V7NWNNBI.mjs.map} +0 -0
|
@@ -194,3 +194,40 @@ export async function transferFungibleAsset(args: {
|
|
|
194
194
|
options,
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Transfers a specified amount of a fungible asset from any (primary or secondary) fungible store to any (primary or secondary) fungible store.
|
|
200
|
+
* This function helps facilitate the transfer of digital assets between fungible stores on the Aptos blockchain.
|
|
201
|
+
*
|
|
202
|
+
* @param args - The parameters for the transfer operation.
|
|
203
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
204
|
+
* @param args.sender - The account initiating the transfer.
|
|
205
|
+
* @param args.fromStore - The address of the fungible store initiating the transfer.
|
|
206
|
+
* @param args.toStore - The address of the fungible store receiving the asset.
|
|
207
|
+
* @param args.amount - The amount of the fungible asset to transfer. Must be a positive number.
|
|
208
|
+
* @param args.options - Optional settings for generating the transaction.
|
|
209
|
+
* @returns A SimpleTransaction that can be submitted to the blockchain.
|
|
210
|
+
* @throws Error if the transaction generation fails or if the input parameters are invalid.
|
|
211
|
+
* @group Implementation
|
|
212
|
+
*/
|
|
213
|
+
export async function transferFungibleAssetBetweenStores(args: {
|
|
214
|
+
aptosConfig: AptosConfig;
|
|
215
|
+
sender: Account;
|
|
216
|
+
fromStore: AccountAddressInput;
|
|
217
|
+
toStore: AccountAddressInput;
|
|
218
|
+
amount: AnyNumber;
|
|
219
|
+
options?: InputGenerateTransactionOptions;
|
|
220
|
+
}): Promise<SimpleTransaction> {
|
|
221
|
+
const { aptosConfig, sender, fromStore, toStore, amount, options } = args;
|
|
222
|
+
return generateTransaction({
|
|
223
|
+
aptosConfig,
|
|
224
|
+
sender: sender.accountAddress,
|
|
225
|
+
data: {
|
|
226
|
+
function: "0x1::dispatchable_fungible_asset::transfer",
|
|
227
|
+
typeArguments: ["0x1::fungible_asset::FungibleStore"],
|
|
228
|
+
functionArguments: [fromStore, toStore, amount],
|
|
229
|
+
abi: faTransferAbi,
|
|
230
|
+
},
|
|
231
|
+
options,
|
|
232
|
+
});
|
|
233
|
+
}
|
package/src/internal/keyless.ts
CHANGED
|
@@ -178,6 +178,16 @@ export async function deriveKeylessAccount(args: {
|
|
|
178
178
|
proofFetchCallback?: ProofFetchCallback;
|
|
179
179
|
}): Promise<FederatedKeylessAccount>;
|
|
180
180
|
|
|
181
|
+
export async function deriveKeylessAccount(args: {
|
|
182
|
+
aptosConfig: AptosConfig;
|
|
183
|
+
jwt: string;
|
|
184
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
185
|
+
jwkAddress?: AccountAddressInput;
|
|
186
|
+
uidKey?: string;
|
|
187
|
+
pepper?: HexInput;
|
|
188
|
+
proofFetchCallback?: ProofFetchCallback;
|
|
189
|
+
}): Promise<KeylessAccount | FederatedKeylessAccount>;
|
|
190
|
+
|
|
181
191
|
export async function deriveKeylessAccount(args: {
|
|
182
192
|
aptosConfig: AptosConfig;
|
|
183
193
|
jwt: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
query getAccountAddressesForAuthKey($where_condition: auth_key_account_addresses_bool_exp, $order_by: [auth_key_account_addresses_order_by!]) {
|
|
2
|
+
auth_key_account_addresses(where: $where_condition, order_by: $order_by) {
|
|
3
|
+
auth_key
|
|
4
|
+
account_address
|
|
5
|
+
last_transaction_version
|
|
6
|
+
is_auth_key_used
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
query getAuthKeysForPublicKey($where_condition: public_key_auth_keys_bool_exp, $order_by: [public_key_auth_keys_order_by!]) {
|
|
2
|
+
public_key_auth_keys(where: $where_condition, order_by: $order_by) {
|
|
3
|
+
public_key
|
|
4
|
+
public_key_type
|
|
5
|
+
auth_key
|
|
6
|
+
account_public_key
|
|
7
|
+
last_transaction_version
|
|
8
|
+
is_public_key_used
|
|
9
|
+
signature_type
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
throwTypeMismatch,
|
|
46
46
|
convertNumber,
|
|
47
47
|
} from "./helpers";
|
|
48
|
-
import {
|
|
48
|
+
import { MoveFunction, MoveModule } from "../../types";
|
|
49
49
|
|
|
50
50
|
const TEXT_ENCODER = new TextEncoder();
|
|
51
51
|
|
|
@@ -228,31 +228,6 @@ export async function fetchViewFunctionAbi(
|
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated Handle this inline
|
|
233
|
-
*
|
|
234
|
-
* @example
|
|
235
|
-
* ```typescript
|
|
236
|
-
* const callArgument = argument instanceof CallArgument ? argument : CallArgument.newBytes(
|
|
237
|
-
* convertArgument(functionName, functionAbi, argument, position, genericTypeParams).bcsToBytes()
|
|
238
|
-
* );
|
|
239
|
-
* ```
|
|
240
|
-
*/
|
|
241
|
-
export function convertCallArgument(
|
|
242
|
-
argument: CallArgument | EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,
|
|
243
|
-
functionName: string,
|
|
244
|
-
functionAbi: FunctionABI,
|
|
245
|
-
position: number,
|
|
246
|
-
genericTypeParams: Array<TypeTag>,
|
|
247
|
-
): CallArgument {
|
|
248
|
-
if (argument instanceof CallArgument) {
|
|
249
|
-
return argument;
|
|
250
|
-
}
|
|
251
|
-
return CallArgument.newBytes(
|
|
252
|
-
convertArgument(functionName, functionAbi, argument, position, genericTypeParams).bcsToBytes(),
|
|
253
|
-
);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
231
|
/**
|
|
257
232
|
* Converts a non-BCS encoded argument into BCS encoded, if necessary.
|
|
258
233
|
* This function checks the provided argument against the expected parameter type and converts it accordingly.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Copyright © Aptos Foundation
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
|
-
import { CallArgument } from "@aptos-labs/script-composer-pack";
|
|
5
4
|
import { AptosConfig } from "../api/aptosConfig";
|
|
6
5
|
import { MoveOption, MoveString, MoveVector } from "../bcs/serializable/moveStructs";
|
|
7
6
|
import { Bool, U128, U16, U256, U32, U64, U8 } from "../bcs/serializable/movePrimitives";
|
|
@@ -193,16 +192,6 @@ export type InputMultiSigDataWithABI = {
|
|
|
193
192
|
* @category Transactions
|
|
194
193
|
*/
|
|
195
194
|
export type InputEntryFunctionDataWithRemoteABI = InputEntryFunctionData & { aptosConfig: AptosConfig };
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* The data needed to generate a batched function payload
|
|
199
|
-
*/
|
|
200
|
-
export type InputBatchedFunctionData = {
|
|
201
|
-
function: MoveFunctionId;
|
|
202
|
-
typeArguments?: Array<TypeArgument>;
|
|
203
|
-
functionArguments: Array<EntryFunctionArgumentTypes | CallArgument | SimpleEntryFunctionArgumentTypes>;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
195
|
/**
|
|
207
196
|
* The data needed to generate a Multi Sig payload
|
|
208
197
|
* @group Implementation
|
package/src/types/codegen.yaml
CHANGED
|
@@ -77,6 +77,20 @@ export type CurrentTokenOwnershipFieldsFragment = {
|
|
|
77
77
|
} | null;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
export type GetAccountAddressesForAuthKeyQueryVariables = Types.Exact<{
|
|
81
|
+
where_condition?: Types.InputMaybe<Types.AuthKeyAccountAddressesBoolExp>;
|
|
82
|
+
order_by?: Types.InputMaybe<Array<Types.AuthKeyAccountAddressesOrderBy> | Types.AuthKeyAccountAddressesOrderBy>;
|
|
83
|
+
}>;
|
|
84
|
+
|
|
85
|
+
export type GetAccountAddressesForAuthKeyQuery = {
|
|
86
|
+
auth_key_account_addresses: Array<{
|
|
87
|
+
auth_key: string;
|
|
88
|
+
account_address: string;
|
|
89
|
+
last_transaction_version: any;
|
|
90
|
+
is_auth_key_used: boolean;
|
|
91
|
+
}>;
|
|
92
|
+
};
|
|
93
|
+
|
|
80
94
|
export type GetAccountCoinsCountQueryVariables = Types.Exact<{
|
|
81
95
|
address?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
|
|
82
96
|
}>;
|
|
@@ -96,15 +110,15 @@ export type GetAccountCoinsDataQueryVariables = Types.Exact<{
|
|
|
96
110
|
|
|
97
111
|
export type GetAccountCoinsDataQuery = {
|
|
98
112
|
current_fungible_asset_balances: Array<{
|
|
99
|
-
amount
|
|
100
|
-
asset_type
|
|
113
|
+
amount: any;
|
|
114
|
+
asset_type: string;
|
|
101
115
|
is_frozen: boolean;
|
|
102
|
-
is_primary
|
|
116
|
+
is_primary: boolean;
|
|
103
117
|
last_transaction_timestamp?: any | null;
|
|
104
118
|
last_transaction_version?: any | null;
|
|
105
119
|
owner_address: string;
|
|
106
120
|
storage_id: string;
|
|
107
|
-
token_standard
|
|
121
|
+
token_standard: string;
|
|
108
122
|
metadata?: {
|
|
109
123
|
token_standard: string;
|
|
110
124
|
symbol: string;
|
|
@@ -346,6 +360,23 @@ export type GetAccountTransactionsCountQuery = {
|
|
|
346
360
|
account_transactions_aggregate: { aggregate?: { count: number } | null };
|
|
347
361
|
};
|
|
348
362
|
|
|
363
|
+
export type GetAuthKeysForPublicKeyQueryVariables = Types.Exact<{
|
|
364
|
+
where_condition?: Types.InputMaybe<Types.PublicKeyAuthKeysBoolExp>;
|
|
365
|
+
order_by?: Types.InputMaybe<Array<Types.PublicKeyAuthKeysOrderBy> | Types.PublicKeyAuthKeysOrderBy>;
|
|
366
|
+
}>;
|
|
367
|
+
|
|
368
|
+
export type GetAuthKeysForPublicKeyQuery = {
|
|
369
|
+
public_key_auth_keys: Array<{
|
|
370
|
+
public_key: string;
|
|
371
|
+
public_key_type: string;
|
|
372
|
+
auth_key: string;
|
|
373
|
+
account_public_key?: string | null;
|
|
374
|
+
last_transaction_version: any;
|
|
375
|
+
is_public_key_used: boolean;
|
|
376
|
+
signature_type: string;
|
|
377
|
+
}>;
|
|
378
|
+
};
|
|
379
|
+
|
|
349
380
|
export type GetChainTopUserTransactionsQueryVariables = Types.Exact<{
|
|
350
381
|
limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
351
382
|
}>;
|
|
@@ -394,15 +425,15 @@ export type GetCurrentFungibleAssetBalancesQueryVariables = Types.Exact<{
|
|
|
394
425
|
|
|
395
426
|
export type GetCurrentFungibleAssetBalancesQuery = {
|
|
396
427
|
current_fungible_asset_balances: Array<{
|
|
397
|
-
amount
|
|
398
|
-
asset_type
|
|
428
|
+
amount: any;
|
|
429
|
+
asset_type: string;
|
|
399
430
|
is_frozen: boolean;
|
|
400
|
-
is_primary
|
|
431
|
+
is_primary: boolean;
|
|
401
432
|
last_transaction_timestamp?: any | null;
|
|
402
433
|
last_transaction_version?: any | null;
|
|
403
434
|
owner_address: string;
|
|
404
435
|
storage_id: string;
|
|
405
|
-
token_standard
|
|
436
|
+
token_standard: string;
|
|
406
437
|
}>;
|
|
407
438
|
};
|
|
408
439
|
|
|
@@ -82,6 +82,16 @@ export const CurrentTokenOwnershipFieldsFragmentDoc = `
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
`;
|
|
85
|
+
export const GetAccountAddressesForAuthKey = `
|
|
86
|
+
query getAccountAddressesForAuthKey($where_condition: auth_key_account_addresses_bool_exp, $order_by: [auth_key_account_addresses_order_by!]) {
|
|
87
|
+
auth_key_account_addresses(where: $where_condition, order_by: $order_by) {
|
|
88
|
+
auth_key
|
|
89
|
+
account_address
|
|
90
|
+
last_transaction_version
|
|
91
|
+
is_auth_key_used
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
85
95
|
export const GetAccountCoinsCount = `
|
|
86
96
|
query getAccountCoinsCount($address: String) {
|
|
87
97
|
current_fungible_asset_balances_aggregate(
|
|
@@ -220,6 +230,19 @@ export const GetAccountTransactionsCount = `
|
|
|
220
230
|
}
|
|
221
231
|
}
|
|
222
232
|
`;
|
|
233
|
+
export const GetAuthKeysForPublicKey = `
|
|
234
|
+
query getAuthKeysForPublicKey($where_condition: public_key_auth_keys_bool_exp, $order_by: [public_key_auth_keys_order_by!]) {
|
|
235
|
+
public_key_auth_keys(where: $where_condition, order_by: $order_by) {
|
|
236
|
+
public_key
|
|
237
|
+
public_key_type
|
|
238
|
+
auth_key
|
|
239
|
+
account_public_key
|
|
240
|
+
last_transaction_version
|
|
241
|
+
is_public_key_used
|
|
242
|
+
signature_type
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
`;
|
|
223
246
|
export const GetChainTopUserTransactions = `
|
|
224
247
|
query getChainTopUserTransactions($limit: Int) {
|
|
225
248
|
user_transactions(limit: $limit, order_by: {version: desc}) {
|
|
@@ -512,6 +535,21 @@ const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationTy
|
|
|
512
535
|
|
|
513
536
|
export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
|
|
514
537
|
return {
|
|
538
|
+
getAccountAddressesForAuthKey(
|
|
539
|
+
variables?: Types.GetAccountAddressesForAuthKeyQueryVariables,
|
|
540
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
541
|
+
): Promise<Types.GetAccountAddressesForAuthKeyQuery> {
|
|
542
|
+
return withWrapper(
|
|
543
|
+
(wrappedRequestHeaders) =>
|
|
544
|
+
client.request<Types.GetAccountAddressesForAuthKeyQuery>(GetAccountAddressesForAuthKey, variables, {
|
|
545
|
+
...requestHeaders,
|
|
546
|
+
...wrappedRequestHeaders,
|
|
547
|
+
}),
|
|
548
|
+
"getAccountAddressesForAuthKey",
|
|
549
|
+
"query",
|
|
550
|
+
variables,
|
|
551
|
+
);
|
|
552
|
+
},
|
|
515
553
|
getAccountCoinsCount(
|
|
516
554
|
variables?: Types.GetAccountCoinsCountQueryVariables,
|
|
517
555
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
@@ -634,6 +672,21 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
634
672
|
variables,
|
|
635
673
|
);
|
|
636
674
|
},
|
|
675
|
+
getAuthKeysForPublicKey(
|
|
676
|
+
variables?: Types.GetAuthKeysForPublicKeyQueryVariables,
|
|
677
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
678
|
+
): Promise<Types.GetAuthKeysForPublicKeyQuery> {
|
|
679
|
+
return withWrapper(
|
|
680
|
+
(wrappedRequestHeaders) =>
|
|
681
|
+
client.request<Types.GetAuthKeysForPublicKeyQuery>(GetAuthKeysForPublicKey, variables, {
|
|
682
|
+
...requestHeaders,
|
|
683
|
+
...wrappedRequestHeaders,
|
|
684
|
+
}),
|
|
685
|
+
"getAuthKeysForPublicKey",
|
|
686
|
+
"query",
|
|
687
|
+
variables,
|
|
688
|
+
);
|
|
689
|
+
},
|
|
637
690
|
getChainTopUserTransactions(
|
|
638
691
|
variables?: Types.GetChainTopUserTransactionsQueryVariables,
|
|
639
692
|
requestHeaders?: GraphQLClientRequestHeaders,
|