@aptos-labs/ts-sdk 5.2.0 → 6.0.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/README.md +18 -0
- package/dist/common/{account-DvGDel4s.d.ts → account-Dpz_N9h-.d.ts} +225 -7
- package/dist/common/chunk-4RHBBU7C.js +4 -0
- package/dist/common/chunk-4RHBBU7C.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 +228 -28
- package/dist/common/index.js +39 -34
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-C25CwEJi.d.mts → Ed25519Account-BW_kXHC2.d.mts} +1 -1
- package/dist/esm/account/AbstractKeylessAccount.d.mts +3 -3
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.d.mts +2 -2
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +2 -2
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +3 -3
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/DerivableAbstractedAccount.d.mts +2 -2
- package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +2 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +3 -3
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +3 -3
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.d.mts +2 -2
- package/dist/esm/account/MultiEd25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +3 -3
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +3 -3
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +1 -1
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/{account-Bwu9vUe3.d.mts → account-CcxnCdYZ.d.mts} +220 -7
- package/dist/esm/api/account/abstraction.d.mts +1 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.d.mts +2 -2
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +92 -26
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +4 -3
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +1 -1
- package/dist/esm/api/coin.d.mts +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +2 -2
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +2 -2
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +4 -3
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +3 -3
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +1 -1
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +1 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +2 -2
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/helpers.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
- 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 +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/consts.d.mts +1 -1
- package/dist/esm/bcs/deserializer.d.mts +1 -1
- package/dist/esm/bcs/index.d.mts +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +1 -1
- package/dist/esm/chunk-2DPQMXUG.mjs +4 -0
- package/dist/esm/chunk-2DPQMXUG.mjs.map +1 -0
- package/dist/esm/chunk-54C2P534.mjs +2 -0
- package/dist/esm/chunk-54C2P534.mjs.map +1 -0
- package/dist/esm/{chunk-IKTH33UN.mjs → chunk-56IXVVXX.mjs} +2 -2
- package/dist/esm/{chunk-K2TQQFRV.mjs → chunk-76SVQZDX.mjs} +2 -2
- package/dist/esm/{chunk-A2G3V23K.mjs → chunk-BGZDJ5SM.mjs} +2 -2
- package/dist/esm/{chunk-TRIYATBI.mjs → chunk-CUXCVNES.mjs} +2 -2
- package/dist/esm/chunk-DE5K76I2.mjs +1 -0
- package/dist/esm/{chunk-UXUMXAUZ.mjs → chunk-F3NI6N7R.mjs} +2 -2
- package/dist/esm/chunk-FW6UHAQV.mjs +2 -0
- package/dist/esm/{chunk-VS5NYRHW.mjs.map → chunk-FW6UHAQV.mjs.map} +1 -1
- package/dist/esm/{chunk-J426EZGD.mjs → chunk-JN65XG2P.mjs} +2 -2
- package/dist/esm/{chunk-UL777LTI.mjs → chunk-LS2HRAVW.mjs} +24 -19
- package/dist/esm/chunk-LS2HRAVW.mjs.map +1 -0
- package/dist/esm/chunk-NK3Y3PV3.mjs +2 -0
- package/dist/esm/{chunk-5ABS6RDR.mjs.map → chunk-NK3Y3PV3.mjs.map} +1 -1
- package/dist/esm/chunk-NP2IAUME.mjs +2 -0
- package/dist/esm/chunk-NP2IAUME.mjs.map +1 -0
- package/dist/esm/{chunk-G2VFBYHG.mjs → chunk-NTLOKAPD.mjs} +2 -2
- package/dist/esm/{chunk-IFWE34P5.mjs → chunk-PXJEKGEG.mjs} +2 -2
- package/dist/esm/chunk-QEHKRR3I.mjs +2 -0
- package/dist/esm/chunk-QEHKRR3I.mjs.map +1 -0
- package/dist/esm/chunk-RQN6LA7E.mjs +2 -0
- package/dist/esm/{chunk-AEXYYFIZ.mjs.map → chunk-RQN6LA7E.mjs.map} +1 -1
- package/dist/esm/{chunk-HIAEKFG6.mjs → chunk-WZ6FL7CH.mjs} +2 -2
- package/dist/esm/{chunk-LND3GTJ3.mjs → chunk-X674XJNJ.mjs} +2 -2
- package/dist/esm/cli/index.d.mts +1 -1
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +1 -1
- package/dist/esm/client/core.d.mts +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.d.mts +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +1 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.d.mts +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/abstraction.d.mts +1 -1
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/deserializationUtils.d.mts +1 -1
- package/dist/esm/core/crypto/deserializationUtils.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +2 -2
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +2 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +2 -2
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +1 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +1 -1
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/secp256r1.d.mts +1 -1
- package/dist/esm/core/crypto/secp256r1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/types.d.mts +1 -1
- package/dist/esm/core/crypto/utils.d.mts +1 -1
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.d.mts +1 -1
- package/dist/esm/core/index.d.mts +2 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.d.mts +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/{federatedKeyless-BfOrG2BM.d.mts → federatedKeyless-BzaYmP03.d.mts} +1 -1
- package/dist/esm/index.d.mts +5 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.d.mts +1 -1
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.d.mts +2 -2
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +85 -33
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +2 -2
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +2 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +3 -3
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +1 -1
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +1 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +2 -2
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/utils/index.d.mts +1 -1
- package/dist/esm/internal/utils/index.mjs +1 -1
- package/dist/esm/internal/utils/utils.d.mts +1 -1
- package/dist/esm/internal/utils/utils.mjs +1 -1
- package/dist/esm/internal/view.d.mts +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +2 -2
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +1 -1
- package/dist/esm/transactions/instances/index.d.mts +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +1 -1
- package/dist/esm/transactions/instances/transactionPayload.d.mts +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +2 -2
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +32 -2
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -2
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +1 -1
- package/dist/esm/types/ans.d.mts +109 -0
- package/dist/esm/types/ans.mjs +2 -0
- package/dist/esm/types/ans.mjs.map +1 -0
- package/dist/esm/types/generated/operations.d.mts +5 -0
- package/dist/esm/types/generated/queries.d.mts +27 -27
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/types.d.mts +191 -7
- 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 -1
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/types.d.mts +1 -1
- package/dist/esm/types/types.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +1 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +1 -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 -2
- package/src/api/ans.ts +70 -25
- package/src/bcs/serializable/movePrimitives.ts +12 -14
- package/src/bcs/serializable/moveStructs.ts +205 -1
- package/src/internal/ans.ts +279 -109
- package/src/internal/queries/getNames.graphql +5 -0
- package/src/transactions/instances/transactionPayload.ts +27 -1
- package/src/transactions/transactionBuilder/helpers.ts +67 -1
- package/src/transactions/transactionBuilder/remoteAbi.ts +124 -1
- package/src/transactions/transactionBuilder/transactionBuilder.ts +4 -4
- package/src/transactions/types.ts +20 -2
- package/src/types/ans.ts +110 -0
- package/src/types/generated/operations.ts +1 -0
- package/src/types/generated/queries.ts +163 -76
- package/src/types/generated/types.ts +216 -6
- package/src/types/index.ts +1 -0
- package/src/types/types.ts +58 -0
- package/src/version.ts +1 -1
- package/dist/common/chunk-JQCMXTY7.js +0 -4
- package/dist/common/chunk-JQCMXTY7.js.map +0 -1
- package/dist/esm/chunk-5ABS6RDR.mjs +0 -2
- package/dist/esm/chunk-6XLLQB5P.mjs +0 -2
- package/dist/esm/chunk-6XLLQB5P.mjs.map +0 -1
- package/dist/esm/chunk-76PXED26.mjs +0 -4
- package/dist/esm/chunk-76PXED26.mjs.map +0 -1
- package/dist/esm/chunk-AEXYYFIZ.mjs +0 -2
- package/dist/esm/chunk-BIQOJ3OK.mjs +0 -2
- package/dist/esm/chunk-BIQOJ3OK.mjs.map +0 -1
- package/dist/esm/chunk-FD6FGKYY.mjs +0 -1
- package/dist/esm/chunk-UL777LTI.mjs.map +0 -1
- package/dist/esm/chunk-VS5NYRHW.mjs +0 -2
- /package/dist/esm/{chunk-IKTH33UN.mjs.map → chunk-56IXVVXX.mjs.map} +0 -0
- /package/dist/esm/{chunk-K2TQQFRV.mjs.map → chunk-76SVQZDX.mjs.map} +0 -0
- /package/dist/esm/{chunk-A2G3V23K.mjs.map → chunk-BGZDJ5SM.mjs.map} +0 -0
- /package/dist/esm/{chunk-TRIYATBI.mjs.map → chunk-CUXCVNES.mjs.map} +0 -0
- /package/dist/esm/{chunk-FD6FGKYY.mjs.map → chunk-DE5K76I2.mjs.map} +0 -0
- /package/dist/esm/{chunk-UXUMXAUZ.mjs.map → chunk-F3NI6N7R.mjs.map} +0 -0
- /package/dist/esm/{chunk-J426EZGD.mjs.map → chunk-JN65XG2P.mjs.map} +0 -0
- /package/dist/esm/{chunk-G2VFBYHG.mjs.map → chunk-NTLOKAPD.mjs.map} +0 -0
- /package/dist/esm/{chunk-IFWE34P5.mjs.map → chunk-PXJEKGEG.mjs.map} +0 -0
- /package/dist/esm/{chunk-HIAEKFG6.mjs.map → chunk-WZ6FL7CH.mjs.map} +0 -0
- /package/dist/esm/{chunk-LND3GTJ3.mjs.map → chunk-X674XJNJ.mjs.map} +0 -0
|
@@ -4270,6 +4270,90 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
4270
4270
|
* @category BCS
|
|
4271
4271
|
*/
|
|
4272
4272
|
static Bool(values: Array<boolean>): MoveVector<Bool>;
|
|
4273
|
+
/**
|
|
4274
|
+
* Factory method to generate a MoveVector<I8> from an array of numbers.
|
|
4275
|
+
*
|
|
4276
|
+
* @param values - The values used to fill the MoveVector.
|
|
4277
|
+
* @returns A MoveVector<I8> with the inner values.
|
|
4278
|
+
*
|
|
4279
|
+
* @example
|
|
4280
|
+
* ```typescript
|
|
4281
|
+
* const v = MoveVector.I8([-1, 0, 1, 127]);
|
|
4282
|
+
* ```
|
|
4283
|
+
* @group Implementation
|
|
4284
|
+
* @category BCS
|
|
4285
|
+
*/
|
|
4286
|
+
static I8(values: Array<number>): MoveVector<I8>;
|
|
4287
|
+
/**
|
|
4288
|
+
* Factory method to generate a MoveVector<I16> from an array of numbers.
|
|
4289
|
+
*
|
|
4290
|
+
* @param values - The values used to fill the MoveVector.
|
|
4291
|
+
* @returns A MoveVector<I16> with the inner values.
|
|
4292
|
+
*
|
|
4293
|
+
* @example
|
|
4294
|
+
* ```typescript
|
|
4295
|
+
* const v = MoveVector.I16([-1, 0, 1, 32767]);
|
|
4296
|
+
* ```
|
|
4297
|
+
* @group Implementation
|
|
4298
|
+
* @category BCS
|
|
4299
|
+
*/
|
|
4300
|
+
static I16(values: Array<number>): MoveVector<I16>;
|
|
4301
|
+
/**
|
|
4302
|
+
* Factory method to generate a MoveVector<I32> from an array of numbers.
|
|
4303
|
+
*
|
|
4304
|
+
* @param values - The values used to fill the MoveVector.
|
|
4305
|
+
* @returns A MoveVector<I32> with the inner values.
|
|
4306
|
+
*
|
|
4307
|
+
* @example
|
|
4308
|
+
* ```typescript
|
|
4309
|
+
* const v = MoveVector.I32([-1, 0, 1, 2147483647]);
|
|
4310
|
+
* ```
|
|
4311
|
+
* @group Implementation
|
|
4312
|
+
* @category BCS
|
|
4313
|
+
*/
|
|
4314
|
+
static I32(values: Array<number>): MoveVector<I32>;
|
|
4315
|
+
/**
|
|
4316
|
+
* Factory method to generate a MoveVector<I64> from an array of numbers or bigints.
|
|
4317
|
+
*
|
|
4318
|
+
* @param values - The values used to fill the MoveVector.
|
|
4319
|
+
* @returns A MoveVector<I64> with the inner values.
|
|
4320
|
+
*
|
|
4321
|
+
* @example
|
|
4322
|
+
* ```typescript
|
|
4323
|
+
* const v = MoveVector.I64([-1n, 0n, 1n, 9223372036854775807n]);
|
|
4324
|
+
* ```
|
|
4325
|
+
* @group Implementation
|
|
4326
|
+
* @category BCS
|
|
4327
|
+
*/
|
|
4328
|
+
static I64(values: Array<AnyNumber>): MoveVector<I64>;
|
|
4329
|
+
/**
|
|
4330
|
+
* Factory method to generate a MoveVector<I128> from an array of numbers or bigints.
|
|
4331
|
+
*
|
|
4332
|
+
* @param values - The values used to fill the MoveVector.
|
|
4333
|
+
* @returns A MoveVector<I128> with the inner values.
|
|
4334
|
+
*
|
|
4335
|
+
* @example
|
|
4336
|
+
* ```typescript
|
|
4337
|
+
* const v = MoveVector.I128([-1n, 0n, 1n]);
|
|
4338
|
+
* ```
|
|
4339
|
+
* @group Implementation
|
|
4340
|
+
* @category BCS
|
|
4341
|
+
*/
|
|
4342
|
+
static I128(values: Array<AnyNumber>): MoveVector<I128>;
|
|
4343
|
+
/**
|
|
4344
|
+
* Factory method to generate a MoveVector<I256> from an array of numbers or bigints.
|
|
4345
|
+
*
|
|
4346
|
+
* @param values - The values used to fill the MoveVector.
|
|
4347
|
+
* @returns A MoveVector<I256> with the inner values.
|
|
4348
|
+
*
|
|
4349
|
+
* @example
|
|
4350
|
+
* ```typescript
|
|
4351
|
+
* const v = MoveVector.I256([-1n, 0n, 1n]);
|
|
4352
|
+
* ```
|
|
4353
|
+
* @group Implementation
|
|
4354
|
+
* @category BCS
|
|
4355
|
+
*/
|
|
4356
|
+
static I256(values: Array<AnyNumber>): MoveVector<I256>;
|
|
4273
4357
|
/**
|
|
4274
4358
|
* Factory method to generate a MoveVector<MoveString> from a `string` or `undefined`.
|
|
4275
4359
|
* This function creates a MoveVector that encapsulates a MoveString if the provided value is not null or undefined.
|
|
@@ -4487,6 +4571,90 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
4487
4571
|
* @category BCS
|
|
4488
4572
|
*/
|
|
4489
4573
|
static Bool(value?: boolean | null): MoveOption<Bool>;
|
|
4574
|
+
/**
|
|
4575
|
+
* Factory method to generate a MoveOption<I8> from a `number` or `undefined`.
|
|
4576
|
+
*
|
|
4577
|
+
* @example
|
|
4578
|
+
* MoveOption.I8(1).isSome() === true;
|
|
4579
|
+
* MoveOption.I8().isSome() === false;
|
|
4580
|
+
* MoveOption.I8(undefined).isSome() === false;
|
|
4581
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
4582
|
+
* the resulting MoveOption's .isSome() method will return false.
|
|
4583
|
+
* @returns a MoveOption<I8> with an inner value `value`
|
|
4584
|
+
* @group Implementation
|
|
4585
|
+
* @category BCS
|
|
4586
|
+
*/
|
|
4587
|
+
static I8(value?: number | null): MoveOption<I8>;
|
|
4588
|
+
/**
|
|
4589
|
+
* Factory method to generate a MoveOption<I16> from a `number` or `undefined`.
|
|
4590
|
+
*
|
|
4591
|
+
* @example
|
|
4592
|
+
* MoveOption.I16(1).isSome() === true;
|
|
4593
|
+
* MoveOption.I16().isSome() === false;
|
|
4594
|
+
* MoveOption.I16(undefined).isSome() === false;
|
|
4595
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
4596
|
+
* the resulting MoveOption's .isSome() method will return false.
|
|
4597
|
+
* @returns a MoveOption<I16> with an inner value `value`
|
|
4598
|
+
* @group Implementation
|
|
4599
|
+
* @category BCS
|
|
4600
|
+
*/
|
|
4601
|
+
static I16(value?: number | null): MoveOption<I16>;
|
|
4602
|
+
/**
|
|
4603
|
+
* Factory method to generate a MoveOption<I32> from a `number` or `undefined`.
|
|
4604
|
+
*
|
|
4605
|
+
* @example
|
|
4606
|
+
* MoveOption.I32(1).isSome() === true;
|
|
4607
|
+
* MoveOption.I32().isSome() === false;
|
|
4608
|
+
* MoveOption.I32(undefined).isSome() === false;
|
|
4609
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
4610
|
+
* the resulting MoveOption's .isSome() method will return false.
|
|
4611
|
+
* @returns a MoveOption<I32> with an inner value `value`
|
|
4612
|
+
* @group Implementation
|
|
4613
|
+
* @category BCS
|
|
4614
|
+
*/
|
|
4615
|
+
static I32(value?: number | null): MoveOption<I32>;
|
|
4616
|
+
/**
|
|
4617
|
+
* Factory method to generate a MoveOption<I64> from a `number` or a `bigint` or `undefined`.
|
|
4618
|
+
*
|
|
4619
|
+
* @example
|
|
4620
|
+
* MoveOption.I64(1).isSome() === true;
|
|
4621
|
+
* MoveOption.I64().isSome() === false;
|
|
4622
|
+
* MoveOption.I64(undefined).isSome() === false;
|
|
4623
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
4624
|
+
* the resulting MoveOption's .isSome() method will return false.
|
|
4625
|
+
* @returns a MoveOption<I64> with an inner value `value`
|
|
4626
|
+
* @group Implementation
|
|
4627
|
+
* @category BCS
|
|
4628
|
+
*/
|
|
4629
|
+
static I64(value?: AnyNumber | null): MoveOption<I64>;
|
|
4630
|
+
/**
|
|
4631
|
+
* Factory method to generate a MoveOption<I128> from a `number` or a `bigint` or `undefined`.
|
|
4632
|
+
*
|
|
4633
|
+
* @example
|
|
4634
|
+
* MoveOption.I128(1).isSome() === true;
|
|
4635
|
+
* MoveOption.I128().isSome() === false;
|
|
4636
|
+
* MoveOption.I128(undefined).isSome() === false;
|
|
4637
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
4638
|
+
* the resulting MoveOption's .isSome() method will return false.
|
|
4639
|
+
* @returns a MoveOption<I128> with an inner value `value`
|
|
4640
|
+
* @group Implementation
|
|
4641
|
+
* @category BCS
|
|
4642
|
+
*/
|
|
4643
|
+
static I128(value?: AnyNumber | null): MoveOption<I128>;
|
|
4644
|
+
/**
|
|
4645
|
+
* Factory method to generate a MoveOption<I256> from a `number` or a `bigint` or `undefined`.
|
|
4646
|
+
*
|
|
4647
|
+
* @example
|
|
4648
|
+
* MoveOption.I256(1).isSome() === true;
|
|
4649
|
+
* MoveOption.I256().isSome() === false;
|
|
4650
|
+
* MoveOption.I256(undefined).isSome() === false;
|
|
4651
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
4652
|
+
* the resulting MoveOption's .isSome() method will return false.
|
|
4653
|
+
* @returns a MoveOption<I256> with an inner value `value`
|
|
4654
|
+
* @group Implementation
|
|
4655
|
+
* @category BCS
|
|
4656
|
+
*/
|
|
4657
|
+
static I256(value?: AnyNumber | null): MoveOption<I256>;
|
|
4490
4658
|
/**
|
|
4491
4659
|
* Factory method to generate a MoveOption<MoveString> from a `string` or `undefined`.
|
|
4492
4660
|
*
|
|
@@ -4598,13 +4766,13 @@ type SimpleEntryFunctionArgumentTypes = boolean | number | bigint | string | nul
|
|
|
4598
4766
|
* @group Implementation
|
|
4599
4767
|
* @category Transactions
|
|
4600
4768
|
*/
|
|
4601
|
-
type EntryFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<EntryFunctionArgumentTypes> | MoveOption<EntryFunctionArgumentTypes> | MoveString | FixedBytes;
|
|
4769
|
+
type EntryFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | I8 | I16 | I32 | I64 | I128 | I256 | AccountAddress | MoveVector<EntryFunctionArgumentTypes> | MoveOption<EntryFunctionArgumentTypes> | MoveString | FixedBytes;
|
|
4602
4770
|
/**
|
|
4603
4771
|
* Script function arguments for building raw transactions using BCS serialized arguments.
|
|
4604
4772
|
* @group Implementation
|
|
4605
4773
|
* @category Transactions
|
|
4606
4774
|
*/
|
|
4607
|
-
type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<ScriptFunctionArgumentTypes> | MoveString | FixedBytes | Serialized;
|
|
4775
|
+
type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | I8 | I16 | I32 | I64 | I128 | I256 | AccountAddress | MoveVector<ScriptFunctionArgumentTypes> | MoveString | FixedBytes | Serialized;
|
|
4608
4776
|
/**
|
|
4609
4777
|
* Inputs for Entry functions, view functions, and scripts, which can be a string representation of various types including
|
|
4610
4778
|
* primitive types, vectors, and structured types.
|
|
@@ -4617,6 +4785,12 @@ type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | A
|
|
|
4617
4785
|
* - u64
|
|
4618
4786
|
* - u128
|
|
4619
4787
|
* - u256
|
|
4788
|
+
* - i8
|
|
4789
|
+
* - i16
|
|
4790
|
+
* - i32
|
|
4791
|
+
* - i64
|
|
4792
|
+
* - i128
|
|
4793
|
+
* - i256
|
|
4620
4794
|
* - bool
|
|
4621
4795
|
* - address
|
|
4622
4796
|
* - signer
|
|
@@ -4687,7 +4861,7 @@ type InputGenerateTransactionPayloadDataWithRemoteABI = InputScriptData | InputE
|
|
|
4687
4861
|
type InputEntryFunctionData = {
|
|
4688
4862
|
function: MoveFunctionId;
|
|
4689
4863
|
typeArguments?: Array<TypeArgument>;
|
|
4690
|
-
functionArguments
|
|
4864
|
+
functionArguments?: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
|
|
4691
4865
|
abi?: EntryFunctionABI;
|
|
4692
4866
|
};
|
|
4693
4867
|
/**
|
|
@@ -5050,7 +5224,13 @@ declare enum ScriptTransactionArgumentVariants {
|
|
|
5050
5224
|
U16 = 6,
|
|
5051
5225
|
U32 = 7,
|
|
5052
5226
|
U256 = 8,
|
|
5053
|
-
Serialized = 9
|
|
5227
|
+
Serialized = 9,
|
|
5228
|
+
I8 = 10,
|
|
5229
|
+
I16 = 11,
|
|
5230
|
+
I32 = 12,
|
|
5231
|
+
I64 = 13,
|
|
5232
|
+
I128 = 14,
|
|
5233
|
+
I256 = 15
|
|
5054
5234
|
}
|
|
5055
5235
|
/**
|
|
5056
5236
|
* The payload for various transaction types in the system.
|
|
@@ -6141,6 +6321,30 @@ type MoveUint128Type = string;
|
|
|
6141
6321
|
* A string representation of a 256-bit unsigned integer used in Move programming.
|
|
6142
6322
|
*/
|
|
6143
6323
|
type MoveUint256Type = string;
|
|
6324
|
+
/**
|
|
6325
|
+
* A number representing a Move int8 type.
|
|
6326
|
+
*/
|
|
6327
|
+
type MoveInt8Type = number;
|
|
6328
|
+
/**
|
|
6329
|
+
* A 16-bit signed integer used in the Move programming language.
|
|
6330
|
+
*/
|
|
6331
|
+
type MoveInt16Type = number;
|
|
6332
|
+
/**
|
|
6333
|
+
* A 32-bit signed integer type used in Move programming.
|
|
6334
|
+
*/
|
|
6335
|
+
type MoveInt32Type = number;
|
|
6336
|
+
/**
|
|
6337
|
+
* A string representation of a 64-bit signed integer used in Move programming.
|
|
6338
|
+
*/
|
|
6339
|
+
type MoveInt64Type = string;
|
|
6340
|
+
/**
|
|
6341
|
+
* A string representing a 128-bit signed integer in the Move programming language.
|
|
6342
|
+
*/
|
|
6343
|
+
type MoveInt128Type = string;
|
|
6344
|
+
/**
|
|
6345
|
+
* A string representation of a 256-bit signed integer used in Move programming.
|
|
6346
|
+
*/
|
|
6347
|
+
type MoveInt256Type = string;
|
|
6144
6348
|
/**
|
|
6145
6349
|
* A string representing a Move address.
|
|
6146
6350
|
*/
|
|
@@ -6166,7 +6370,7 @@ type MoveStructType = {};
|
|
|
6166
6370
|
* A union type that encompasses various data types used in Move, including primitive types, address types, object types, and
|
|
6167
6371
|
* arrays of MoveType.
|
|
6168
6372
|
*/
|
|
6169
|
-
type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
|
|
6373
|
+
type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveInt8Type | MoveInt16Type | MoveInt32Type | MoveInt64Type | MoveInt128Type | MoveInt256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
|
|
6170
6374
|
/**
|
|
6171
6375
|
* Possible Move values acceptable by move functions (entry, view)
|
|
6172
6376
|
*
|
|
@@ -6178,6 +6382,10 @@ type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Ty
|
|
|
6178
6382
|
*
|
|
6179
6383
|
* `u64, u128, u256 -> string`
|
|
6180
6384
|
*
|
|
6385
|
+
* `i8, i16, i32 -> number`
|
|
6386
|
+
*
|
|
6387
|
+
* `i64, i128, i256 -> string`
|
|
6388
|
+
*
|
|
6181
6389
|
* `String -> string`
|
|
6182
6390
|
*
|
|
6183
6391
|
* `Address -> 0x${string}`
|
|
@@ -6190,7 +6398,7 @@ type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Ty
|
|
|
6190
6398
|
*
|
|
6191
6399
|
* `Option -> MoveValue | null | undefined`
|
|
6192
6400
|
*/
|
|
6193
|
-
type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
|
|
6401
|
+
type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveInt8Type | MoveInt16Type | MoveInt32Type | MoveInt64Type | MoveInt128Type | MoveInt256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
|
|
6194
6402
|
/**
|
|
6195
6403
|
* A string representation of a Move module, formatted as `module_name::function_name`.
|
|
6196
6404
|
* Module names are case-sensitive.
|
|
@@ -6260,6 +6468,11 @@ type MoveStruct = {
|
|
|
6260
6468
|
* the Move source code. This attribute is only relevant for v2 events.
|
|
6261
6469
|
*/
|
|
6262
6470
|
is_event: boolean;
|
|
6471
|
+
/**
|
|
6472
|
+
* True if the struct is an enum (e.g. enum MyEnum { A, B, C }), false if it is a
|
|
6473
|
+
* regular struct (e.g. struct MyStruct { a: u8, b: u8 }).
|
|
6474
|
+
*/
|
|
6475
|
+
is_enum: boolean;
|
|
6263
6476
|
/**
|
|
6264
6477
|
* Abilities associated with the struct
|
|
6265
6478
|
*/
|
|
@@ -6978,4 +7191,4 @@ declare class AccountAbstractionMessage extends Serializable {
|
|
|
6978
7191
|
static deserialize(deserializer: Deserializer): AccountAbstractionMessage;
|
|
6979
7192
|
}
|
|
6980
7193
|
|
|
6981
|
-
export { hexToAsciiString as $, AptosConfig as A, Bool as B, MultiEd25519Signature as C, type Deserializable as D, Ed25519PublicKey as E, FixedBytes as F, AbstractMultiKey as G, MultiKey as H, I8 as I, MultiKeySignature as J, type VerifySignatureAsyncArgs as K, PublicKey as L, MoveVector as M, AccountPublicKey as N, Secp256k1PublicKey as O, PrivateKey as P, Secp256k1PrivateKey as Q, Secp256k1Signature as R, Serializable as S, Signature as T, U8 as U, type VerifySignatureArgs as V, type PrivateKeyInput as W, AnyPublicKey as X, AnySignature as Y, HexInvalidReason as Z, Hex as _, Deserializer as a, type EntryFunctionArgumentTypes as a$, AccountAuthenticator as a0, AccountAuthenticatorEd25519 as a1, AccountAuthenticatorMultiEd25519 as a2, AccountAuthenticatorSingleKey as a3, AccountAuthenticatorMultiKey as a4, AccountAuthenticatorNoAccountAuthenticator as a5, AccountAuthenticatorAbstraction as a6, AccountAbstractionMessage as a7, ChainId as a8, Identifier as a9, MultiAgentTransaction as aA, TypeTag as aB, TypeTagBool as aC, TypeTagU8 as aD, TypeTagI8 as aE, TypeTagU16 as aF, TypeTagI16 as aG, TypeTagU32 as aH, TypeTagI32 as aI, TypeTagU64 as aJ, TypeTagI64 as aK, TypeTagU128 as aL, TypeTagI128 as aM, TypeTagU256 as aN, TypeTagI256 as aO, TypeTagAddress as aP, TypeTagSigner as aQ, TypeTagReference as aR, TypeTagGeneric as aS, TypeTagVector as aT, TypeTagStruct as aU, StructTag as aV, aptosCoinStructTag as aW, stringStructTag as aX, optionStructTag as aY, objectStructTag as aZ, type SimpleEntryFunctionArgumentTypes as a_, ModuleId as aa, RawTransaction as ab, RawTransactionWithData as ac, MultiAgentRawTransaction as ad, FeePayerRawTransaction as ae, type TransactionArgument as af, type EntryFunctionArgument as ag, type ScriptFunctionArgument as ah, deserializeFromScriptArgument as ai, TransactionPayload as aj, TransactionPayloadScript as ak, TransactionPayloadEntryFunction as al, TransactionPayloadMultiSig as am, EntryFunction as an, Script as ao, MultiSig as ap, MultiSigTransactionPayload as aq, TransactionInnerPayload as ar, TransactionInnerPayloadV1 as as, TransactionExecutable as at, TransactionExecutableScript as au, TransactionExecutableEntryFunction as av, TransactionExecutableEmpty as aw, TransactionExtraConfig as ax, TransactionExtraConfigV1 as ay, SimpleTransaction as az, Serializer as b, type Int32 as b$, type ScriptFunctionArgumentTypes as b0, type TypeArgument as b1, type AnyRawTransactionInstance as b2, type InputGenerateTransactionOptions as b3, type InputGenerateSequenceNumberTransactionOptions as b4, type InputGenerateOrderlessTransactionOptions as b5, type AnyTransactionPayloadInstance as b6, type InputGenerateTransactionPayloadData as b7, type InputGenerateTransactionPayloadDataWithRemoteABI as b8, type InputEntryFunctionData as b9, MimeType as bA, type HexInput as bB, TypeTagVariants as bC, ScriptTransactionArgumentVariants as bD, TransactionPayloadVariants as bE, TransactionInnerPayloadVariants as bF, TransactionExecutableVariants as bG, TransactionExtraConfigVariants as bH, TransactionVariants as bI, TransactionAuthenticatorVariant as bJ, AccountAuthenticatorVariant as bK, PrivateKeyVariants as bL, AnyPublicKeyVariant as bM, anyPublicKeyVariantToString as bN, AnySignatureVariant as bO, EphemeralPublicKeyVariant as bP, EphemeralSignatureVariant as bQ, EphemeralCertificateVariant as bR, ZkpVariant as bS, type Uint8 as bT, type Uint16 as bU, type Uint32 as bV, type Uint64 as bW, type Uint128 as bX, type Uint256 as bY, type Int8 as bZ, type Int16 as b_, type InputGenerateTransactionPayloadDataWithABI as ba, type InputEntryFunctionDataWithABI as bb, type InputMultiSigDataWithABI as bc, type InputEntryFunctionDataWithRemoteABI as bd, type InputMultiSigData as be, type InputMultiSigDataWithRemoteABI as bf, type InputScriptData as bg, type InputViewFunctionData as bh, type InputViewFunctionJsonData as bi, type ViewFunctionJsonPayload as bj, type InputViewFunctionDataWithRemoteABI as bk, type InputViewFunctionDataWithABI as bl, type FunctionABI as bm, type EntryFunctionABI as bn, type ViewFunctionABI as bo, type InputGenerateSingleSignerRawTransactionArgs as bp, type InputGenerateMultiAgentRawTransactionArgs as bq, type InputGenerateRawTransactionArgs as br, type AnyRawTransaction as bs, type InputSimulateTransactionData as bt, type InputSimulateTransactionOptions as bu, type InputGenerateSingleSignerRawTransactionData as bv, type InputGenerateMultiAgentRawTransactionData as bw, type InputGenerateTransactionData as bx, type InputTransactionPluginData as by, type InputSubmitTransactionData as bz, U16 as c, isEd25519Signature as c$, type Int64 as c0, type Int128 as c1, type Int256 as c2, type AnyNumber as c3, type AptosSettings as c4, type PaginationArgs as c5, type CursorPaginationArgs as c6, type TokenStandardArg as c7, type OrderByArg as c8, type WhereArg as c9, isStateCheckpointTransactionResponse as cA, isValidatorTransactionResponse as cB, isBlockEpilogueTransactionResponse as cC, type PendingTransactionResponse as cD, type UserTransactionResponse as cE, type GenesisTransactionResponse as cF, type BlockMetadataTransactionResponse as cG, type StateCheckpointTransactionResponse as cH, type ValidatorTransactionResponse as cI, type BlockEndInfo as cJ, type BlockEpilogueTransactionResponse as cK, type WriteSetChange as cL, type WriteSetChangeDeleteModule as cM, type WriteSetChangeDeleteResource as cN, type WriteSetChangeDeleteTableItem as cO, type WriteSetChangeWriteModule as cP, type WriteSetChangeWriteResource as cQ, type WriteSetChangeWriteTableItem as cR, type DecodedTableData as cS, type DeletedTableData as cT, type TransactionPayloadResponse as cU, type EntryFunctionPayloadResponse as cV, type ScriptPayloadResponse as cW, type MultisigPayloadResponse as cX, type GenesisPayload as cY, type MoveScriptBytecode as cZ, type TransactionSignature as c_, type ClientConfig as ca, type FullNodeConfig as cb, type IndexerConfig as cc, type FaucetConfig as cd, type TransactionGenerationConfig as ce, type ClientHeadersType as cf, type PluginConfig as cg, type PluginSettings as ch, type TransactionSubmitter as ci, type ClientRequest as cj, type ClientResponse as ck, type Client as cl, type AptosRequest as cm, type AptosResponse as cn, type LedgerVersionArg as co, type GasEstimation as cp, type MoveResource as cq, type AccountData as cr, type MoveModuleBytecode as cs, TransactionResponseType as ct, type TransactionResponse as cu, type CommittedTransactionResponse as cv, isPendingTransactionResponse as cw, isUserTransactionResponse as cx, isGenesisTransactionResponse as cy, isBlockMetadataTransactionResponse as cz, U32 as d, isSecp256k1Signature as d0, isMultiAgentSignature as d1, isFeePayerSignature as d2, isMultiEd25519Signature as d3, isSingleSenderSignature as d4, type TransactionEd25519Signature as d5, type TransactionSecp256k1Signature as d6, type TransactionSingleSenderSignature as d7, type TransactionMultiEd25519Signature as d8, type TransactionMultiAgentSignature as d9, type
|
|
7194
|
+
export { hexToAsciiString as $, AptosConfig as A, Bool as B, MultiEd25519Signature as C, type Deserializable as D, Ed25519PublicKey as E, FixedBytes as F, AbstractMultiKey as G, MultiKey as H, I8 as I, MultiKeySignature as J, type VerifySignatureAsyncArgs as K, PublicKey as L, MoveVector as M, AccountPublicKey as N, Secp256k1PublicKey as O, PrivateKey as P, Secp256k1PrivateKey as Q, Secp256k1Signature as R, Serializable as S, Signature as T, U8 as U, type VerifySignatureArgs as V, type PrivateKeyInput as W, AnyPublicKey as X, AnySignature as Y, HexInvalidReason as Z, Hex as _, Deserializer as a, type EntryFunctionArgumentTypes as a$, AccountAuthenticator as a0, AccountAuthenticatorEd25519 as a1, AccountAuthenticatorMultiEd25519 as a2, AccountAuthenticatorSingleKey as a3, AccountAuthenticatorMultiKey as a4, AccountAuthenticatorNoAccountAuthenticator as a5, AccountAuthenticatorAbstraction as a6, AccountAbstractionMessage as a7, ChainId as a8, Identifier as a9, MultiAgentTransaction as aA, TypeTag as aB, TypeTagBool as aC, TypeTagU8 as aD, TypeTagI8 as aE, TypeTagU16 as aF, TypeTagI16 as aG, TypeTagU32 as aH, TypeTagI32 as aI, TypeTagU64 as aJ, TypeTagI64 as aK, TypeTagU128 as aL, TypeTagI128 as aM, TypeTagU256 as aN, TypeTagI256 as aO, TypeTagAddress as aP, TypeTagSigner as aQ, TypeTagReference as aR, TypeTagGeneric as aS, TypeTagVector as aT, TypeTagStruct as aU, StructTag as aV, aptosCoinStructTag as aW, stringStructTag as aX, optionStructTag as aY, objectStructTag as aZ, type SimpleEntryFunctionArgumentTypes as a_, ModuleId as aa, RawTransaction as ab, RawTransactionWithData as ac, MultiAgentRawTransaction as ad, FeePayerRawTransaction as ae, type TransactionArgument as af, type EntryFunctionArgument as ag, type ScriptFunctionArgument as ah, deserializeFromScriptArgument as ai, TransactionPayload as aj, TransactionPayloadScript as ak, TransactionPayloadEntryFunction as al, TransactionPayloadMultiSig as am, EntryFunction as an, Script as ao, MultiSig as ap, MultiSigTransactionPayload as aq, TransactionInnerPayload as ar, TransactionInnerPayloadV1 as as, TransactionExecutable as at, TransactionExecutableScript as au, TransactionExecutableEntryFunction as av, TransactionExecutableEmpty as aw, TransactionExtraConfig as ax, TransactionExtraConfigV1 as ay, SimpleTransaction as az, Serializer as b, type Int32 as b$, type ScriptFunctionArgumentTypes as b0, type TypeArgument as b1, type AnyRawTransactionInstance as b2, type InputGenerateTransactionOptions as b3, type InputGenerateSequenceNumberTransactionOptions as b4, type InputGenerateOrderlessTransactionOptions as b5, type AnyTransactionPayloadInstance as b6, type InputGenerateTransactionPayloadData as b7, type InputGenerateTransactionPayloadDataWithRemoteABI as b8, type InputEntryFunctionData as b9, MimeType as bA, type HexInput as bB, TypeTagVariants as bC, ScriptTransactionArgumentVariants as bD, TransactionPayloadVariants as bE, TransactionInnerPayloadVariants as bF, TransactionExecutableVariants as bG, TransactionExtraConfigVariants as bH, TransactionVariants as bI, TransactionAuthenticatorVariant as bJ, AccountAuthenticatorVariant as bK, PrivateKeyVariants as bL, AnyPublicKeyVariant as bM, anyPublicKeyVariantToString as bN, AnySignatureVariant as bO, EphemeralPublicKeyVariant as bP, EphemeralSignatureVariant as bQ, EphemeralCertificateVariant as bR, ZkpVariant as bS, type Uint8 as bT, type Uint16 as bU, type Uint32 as bV, type Uint64 as bW, type Uint128 as bX, type Uint256 as bY, type Int8 as bZ, type Int16 as b_, type InputGenerateTransactionPayloadDataWithABI as ba, type InputEntryFunctionDataWithABI as bb, type InputMultiSigDataWithABI as bc, type InputEntryFunctionDataWithRemoteABI as bd, type InputMultiSigData as be, type InputMultiSigDataWithRemoteABI as bf, type InputScriptData as bg, type InputViewFunctionData as bh, type InputViewFunctionJsonData as bi, type ViewFunctionJsonPayload as bj, type InputViewFunctionDataWithRemoteABI as bk, type InputViewFunctionDataWithABI as bl, type FunctionABI as bm, type EntryFunctionABI as bn, type ViewFunctionABI as bo, type InputGenerateSingleSignerRawTransactionArgs as bp, type InputGenerateMultiAgentRawTransactionArgs as bq, type InputGenerateRawTransactionArgs as br, type AnyRawTransaction as bs, type InputSimulateTransactionData as bt, type InputSimulateTransactionOptions as bu, type InputGenerateSingleSignerRawTransactionData as bv, type InputGenerateMultiAgentRawTransactionData as bw, type InputGenerateTransactionData as bx, type InputTransactionPluginData as by, type InputSubmitTransactionData as bz, U16 as c, isEd25519Signature as c$, type Int64 as c0, type Int128 as c1, type Int256 as c2, type AnyNumber as c3, type AptosSettings as c4, type PaginationArgs as c5, type CursorPaginationArgs as c6, type TokenStandardArg as c7, type OrderByArg as c8, type WhereArg as c9, isStateCheckpointTransactionResponse as cA, isValidatorTransactionResponse as cB, isBlockEpilogueTransactionResponse as cC, type PendingTransactionResponse as cD, type UserTransactionResponse as cE, type GenesisTransactionResponse as cF, type BlockMetadataTransactionResponse as cG, type StateCheckpointTransactionResponse as cH, type ValidatorTransactionResponse as cI, type BlockEndInfo as cJ, type BlockEpilogueTransactionResponse as cK, type WriteSetChange as cL, type WriteSetChangeDeleteModule as cM, type WriteSetChangeDeleteResource as cN, type WriteSetChangeDeleteTableItem as cO, type WriteSetChangeWriteModule as cP, type WriteSetChangeWriteResource as cQ, type WriteSetChangeWriteTableItem as cR, type DecodedTableData as cS, type DeletedTableData as cT, type TransactionPayloadResponse as cU, type EntryFunctionPayloadResponse as cV, type ScriptPayloadResponse as cW, type MultisigPayloadResponse as cX, type GenesisPayload as cY, type MoveScriptBytecode as cZ, type TransactionSignature as c_, type ClientConfig as ca, type FullNodeConfig as cb, type IndexerConfig as cc, type FaucetConfig as cd, type TransactionGenerationConfig as ce, type ClientHeadersType as cf, type PluginConfig as cg, type PluginSettings as ch, type TransactionSubmitter as ci, type ClientRequest as cj, type ClientResponse as ck, type Client as cl, type AptosRequest as cm, type AptosResponse as cn, type LedgerVersionArg as co, type GasEstimation as cp, type MoveResource as cq, type AccountData as cr, type MoveModuleBytecode as cs, TransactionResponseType as ct, type TransactionResponse as cu, type CommittedTransactionResponse as cv, isPendingTransactionResponse as cw, isUserTransactionResponse as cx, isGenesisTransactionResponse as cy, isBlockMetadataTransactionResponse as cz, U32 as d, isSecp256k1Signature as d0, isMultiAgentSignature as d1, isFeePayerSignature as d2, isMultiEd25519Signature as d3, isSingleSenderSignature as d4, type TransactionEd25519Signature as d5, type TransactionSecp256k1Signature as d6, type TransactionSingleSenderSignature as d7, type TransactionMultiEd25519Signature as d8, type TransactionMultiAgentSignature as d9, type MoveType as dA, type MoveValue as dB, type MoveModuleId as dC, MoveFunctionVisibility as dD, MoveAbility as dE, type MoveFunctionGenericTypeParam as dF, type MoveStructField as dG, type MoveModule as dH, type MoveStruct as dI, type MoveFunction as dJ, RoleType as dK, type LedgerInfo as dL, type Block as dM, type TableItemRequest as dN, type AuthenticationKeyScheme as dO, SigningScheme as dP, SigningSchemeInput as dQ, DeriveScheme as dR, type WaitForTransactionOptions as dS, type GenerateAccountWithEd25519 as dT, type GenerateAccountWithSingleSignerSecp256k1Key as dU, type GenerateAccount as dV, type TransactionFeePayerSignature as da, type AccountSignature as db, type WriteSet as dc, type ScriptWriteSet as dd, type DirectWriteSet as de, type EventGuid as df, type Event as dg, type MoveUint8Type as dh, type MoveUint16Type as di, type MoveUint32Type as dj, type MoveUint64Type as dk, type MoveUint128Type as dl, type MoveUint256Type as dm, type MoveInt8Type as dn, type MoveInt16Type as dp, type MoveInt32Type as dq, type MoveInt64Type as dr, type MoveInt128Type as ds, type MoveInt256Type as dt, type MoveAddressType as du, type MoveObjectType as dv, type MoveOptionType as dw, type MoveStructId as dx, type MoveFunctionId as dy, type MoveStructType as dz, ensureBoolean as e, U64 as f, U128 as g, U256 as h, I16 as i, I32 as j, I64 as k, I128 as l, I256 as m, Serialized as n, outOfRangeErrorMessage as o, MoveString as p, MoveOption as q, AddressInvalidReason as r, type AccountAddressInput as s, AccountAddress as t, AuthenticationKey as u, validateNumberInRange as v, isCanonicalEd25519Signature as w, Ed25519PrivateKey as x, Ed25519Signature as y, MultiEd25519PublicKey as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AptosConfig, s as AccountAddressInput, b3 as InputGenerateTransactionOptions, az as SimpleTransaction, t as AccountAddress } from '../../account-
|
|
1
|
+
import { A as AptosConfig, s as AccountAddressInput, b3 as InputGenerateTransactionOptions, az as SimpleTransaction, t as AccountAddress } from '../../account-CcxnCdYZ.mjs';
|
|
2
2
|
import '../../types/indexer.mjs';
|
|
3
3
|
import '../../types/generated/operations.mjs';
|
|
4
4
|
import '../../types/generated/types.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{fd as a}from"../../chunk-2DPQMXUG.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-3P474TWM.mjs";import"../../chunk-56IXVVXX.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-6IWGTO2J.mjs";import"../../chunk-QREVMGQZ.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-NTLOKAPD.mjs";import"../../chunk-2LCPW76G.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2PASUPUO.mjs";import"../../chunk-KUF4DKN5.mjs";import"../../chunk-52PWWLJJ.mjs";import"../../chunk-5FNZUL2Y.mjs";import"../../chunk-QDJDZ3ON.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-RYOICF37.mjs";import"../../chunk-PXJEKGEG.mjs";import"../../chunk-CUXCVNES.mjs";import"../../chunk-X674XJNJ.mjs";import"../../chunk-F3NI6N7R.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-JN65XG2P.mjs";import"../../chunk-LS2HRAVW.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-BGZDJ5SM.mjs";import"../../chunk-WZ6FL7CH.mjs";import"../../chunk-76SVQZDX.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-LD3I4CYO.mjs";import"../../chunk-G3HAIETV.mjs";import"../../chunk-NCKJ7X57.mjs";import"../../chunk-P5HCJN3A.mjs";import"../../chunk-OLILO7VD.mjs";import"../../chunk-PYVKCTUN.mjs";import"../../chunk-C5UZZHA4.mjs";import"../../chunk-MEG27LEV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-QEHKRR3I.mjs";import"../../chunk-NK3Y3PV3.mjs";import"../../chunk-43LWUUXS.mjs";import"../../chunk-DIFSO4N6.mjs";import"../../chunk-DE5K76I2.mjs";import"../../chunk-NP2IAUME.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-54C2P534.mjs";import"../../chunk-Y426VCPM.mjs";import"../../chunk-I42Z32Q2.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-X2TPNKLV.mjs";import"../../chunk-RQN6LA7E.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as AccountAbstraction};
|
|
2
2
|
//# sourceMappingURL=abstraction.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetObjectDataQueryResponse } from '../types/indexer.mjs';
|
|
2
|
-
import { A as AptosConfig, s as AccountAddressInput, cr as AccountData, co as LedgerVersionArg, cs as MoveModuleBytecode, c6 as CursorPaginationArgs, c5 as PaginationArgs, cu as TransactionResponse, cq as MoveResource,
|
|
2
|
+
import { A as AptosConfig, s as AccountAddressInput, cr as AccountData, co as LedgerVersionArg, cs as MoveModuleBytecode, c6 as CursorPaginationArgs, c5 as PaginationArgs, cu as TransactionResponse, cq as MoveResource, dx as MoveStructId, c3 as AnyNumber, t as AccountAddress, c7 as TokenStandardArg, c8 as OrderByArg, c9 as WhereArg, W as PrivateKeyInput } from '../account-CcxnCdYZ.mjs';
|
|
3
3
|
import { CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.mjs';
|
|
4
|
-
import { A as Account$1 } from '../Ed25519Account-
|
|
4
|
+
import { A as Account$1 } from '../Ed25519Account-BW_kXHC2.mjs';
|
|
5
5
|
import { BaseAccountPublicKey } from '../core/crypto/types.mjs';
|
|
6
6
|
import { AccountInfo } from '../internal/account.mjs';
|
|
7
7
|
import { AccountAbstraction } from './account/abstraction.mjs';
|
package/dist/esm/api/account.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{gd as a}from"../chunk-2DPQMXUG.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-3P474TWM.mjs";import"../chunk-56IXVVXX.mjs";import"../chunk-A5L76YP7.mjs";import"../chunk-6IWGTO2J.mjs";import"../chunk-QREVMGQZ.mjs";import"../chunk-G3MHXDYA.mjs";import"../chunk-NTLOKAPD.mjs";import"../chunk-2LCPW76G.mjs";import"../chunk-5HXLZHDW.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-C3Q23D22.mjs";import"../chunk-GOXRBEIJ.mjs";import"../chunk-2PASUPUO.mjs";import"../chunk-KUF4DKN5.mjs";import"../chunk-52PWWLJJ.mjs";import"../chunk-5FNZUL2Y.mjs";import"../chunk-QDJDZ3ON.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-ZP4DWSQA.mjs";import"../chunk-RYOICF37.mjs";import"../chunk-PXJEKGEG.mjs";import"../chunk-CUXCVNES.mjs";import"../chunk-X674XJNJ.mjs";import"../chunk-F3NI6N7R.mjs";import"../chunk-YOZBVVKL.mjs";import"../chunk-JN65XG2P.mjs";import"../chunk-LS2HRAVW.mjs";import"../chunk-7ECCT6PK.mjs";import"../chunk-BGZDJ5SM.mjs";import"../chunk-WZ6FL7CH.mjs";import"../chunk-76SVQZDX.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-LD3I4CYO.mjs";import"../chunk-G3HAIETV.mjs";import"../chunk-NCKJ7X57.mjs";import"../chunk-P5HCJN3A.mjs";import"../chunk-OLILO7VD.mjs";import"../chunk-PYVKCTUN.mjs";import"../chunk-C5UZZHA4.mjs";import"../chunk-MEG27LEV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-QEHKRR3I.mjs";import"../chunk-NK3Y3PV3.mjs";import"../chunk-43LWUUXS.mjs";import"../chunk-DIFSO4N6.mjs";import"../chunk-DE5K76I2.mjs";import"../chunk-NP2IAUME.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-54C2P534.mjs";import"../chunk-Y426VCPM.mjs";import"../chunk-I42Z32Q2.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-X2TPNKLV.mjs";import"../chunk-RQN6LA7E.mjs";import"../chunk-KDMSOCZY.mjs";export{a as Account};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
package/dist/esm/api/ans.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { A as Account } from '../Ed25519Account-C25CwEJi.mjs';
|
|
1
|
+
import { A as AptosConfig, t as AccountAddress, s as AccountAddressInput, b3 as InputGenerateTransactionOptions, az as SimpleTransaction, b9 as InputEntryFunctionData } from '../account-CcxnCdYZ.mjs';
|
|
2
|
+
import { AnsName } from '../types/ans.mjs';
|
|
4
3
|
import { RegisterNameParameters, GetAccountNamesArgs, GetAccountDomainsArgs, GetAccountSubdomainsArgs, GetDomainSubdomainsArgs } from '../internal/ans.mjs';
|
|
4
|
+
import '../types/indexer.mjs';
|
|
5
5
|
import '../types/generated/operations.mjs';
|
|
6
6
|
import '../types/generated/types.mjs';
|
|
7
7
|
import '../utils/apiEndpoints.mjs';
|
|
@@ -137,7 +137,7 @@ declare class ANS {
|
|
|
137
137
|
* @param args.address - The AccountAddressInput of the address to set the domain or subdomain to.
|
|
138
138
|
* @param args.options - Optional settings for generating the transaction.
|
|
139
139
|
*
|
|
140
|
-
* @returns
|
|
140
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
143
|
* ```typescript
|
|
@@ -151,10 +151,10 @@ declare class ANS {
|
|
|
151
151
|
* const sender = Account.generate(); // replace with a real account
|
|
152
152
|
* const address = "0x1"; // replace with a real account address
|
|
153
153
|
*
|
|
154
|
-
* await aptos.setTargetAddress({
|
|
155
|
-
* sender
|
|
154
|
+
* const { transaction, data } = await aptos.setTargetAddress({
|
|
155
|
+
* sender,
|
|
156
156
|
* name: "test.aptos",
|
|
157
|
-
* address
|
|
157
|
+
* address,
|
|
158
158
|
* });
|
|
159
159
|
*
|
|
160
160
|
* const targetAddress = await aptos.getTargetAddress({ name: "test.aptos" });
|
|
@@ -165,11 +165,56 @@ declare class ANS {
|
|
|
165
165
|
* @group ANS
|
|
166
166
|
*/
|
|
167
167
|
setTargetAddress(args: {
|
|
168
|
-
sender:
|
|
168
|
+
sender: AccountAddressInput;
|
|
169
169
|
name: string;
|
|
170
170
|
address: AccountAddressInput;
|
|
171
171
|
options?: InputGenerateTransactionOptions;
|
|
172
|
-
}): Promise<
|
|
172
|
+
}): Promise<{
|
|
173
|
+
transaction: SimpleTransaction;
|
|
174
|
+
data: InputEntryFunctionData;
|
|
175
|
+
}>;
|
|
176
|
+
/**
|
|
177
|
+
* Clears the target address of a domain or subdomain name, removing the address association.
|
|
178
|
+
* After clearing, the name will no longer resolve to a specific address.
|
|
179
|
+
*
|
|
180
|
+
* @param args - The arguments for clearing the target address.
|
|
181
|
+
* @param args.sender - The account initiating the transaction.
|
|
182
|
+
* @param args.name - A string representing the domain or subdomain name (e.g., "test.aptos").
|
|
183
|
+
* @param args.options - Optional settings for generating the transaction.
|
|
184
|
+
*
|
|
185
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* ```typescript
|
|
189
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
190
|
+
*
|
|
191
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
192
|
+
* const aptos = new Aptos(config);
|
|
193
|
+
*
|
|
194
|
+
* async function runExample() {
|
|
195
|
+
* // Clearing the target address for a domain name
|
|
196
|
+
* const sender = Account.generate(); // replace with a real account
|
|
197
|
+
*
|
|
198
|
+
* const { transaction, data } = await aptos.clearTargetAddress({
|
|
199
|
+
* sender,
|
|
200
|
+
* name: "test.aptos",
|
|
201
|
+
* });
|
|
202
|
+
*
|
|
203
|
+
* const targetAddress = await aptos.getTargetAddress({ name: "test.aptos" });
|
|
204
|
+
* console.log(targetAddress); // Should log undefined after clearing
|
|
205
|
+
* }
|
|
206
|
+
* runExample().catch(console.error);
|
|
207
|
+
* ```
|
|
208
|
+
* @group ANS
|
|
209
|
+
*/
|
|
210
|
+
clearTargetAddress(args: {
|
|
211
|
+
sender: AccountAddressInput;
|
|
212
|
+
name: string;
|
|
213
|
+
options?: InputGenerateTransactionOptions;
|
|
214
|
+
}): Promise<{
|
|
215
|
+
transaction: SimpleTransaction;
|
|
216
|
+
data: InputEntryFunctionData;
|
|
217
|
+
}>;
|
|
173
218
|
/**
|
|
174
219
|
* Retrieve the primary name for an account. An account can have multiple names, but only one primary name, which may not exist.
|
|
175
220
|
*
|
|
@@ -206,7 +251,7 @@ declare class ANS {
|
|
|
206
251
|
* @param args.name - A string representing the name to set as primary (e.g., "test.aptos").
|
|
207
252
|
* @param args.options - Optional transaction options.
|
|
208
253
|
*
|
|
209
|
-
* @returns
|
|
254
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
210
255
|
*
|
|
211
256
|
* @example
|
|
212
257
|
* ```typescript
|
|
@@ -218,7 +263,7 @@ declare class ANS {
|
|
|
218
263
|
* async function runExample() {
|
|
219
264
|
* // Set the primary name for the sender account
|
|
220
265
|
* const sender = Account.generate(); // replace with a real account
|
|
221
|
-
* await aptos.setPrimaryName({ sender, name: "test.aptos" });
|
|
266
|
+
* const { transaction, data } = await aptos.setPrimaryName({ sender, name: "test.aptos" });
|
|
222
267
|
*
|
|
223
268
|
* const primaryName = await aptos.getPrimaryName({ address: sender.accountAddress });
|
|
224
269
|
* console.log("Primary Name:", primaryName); // Should log: "Primary Name: test.aptos"
|
|
@@ -228,10 +273,13 @@ declare class ANS {
|
|
|
228
273
|
* @group ANS
|
|
229
274
|
*/
|
|
230
275
|
setPrimaryName(args: {
|
|
231
|
-
sender:
|
|
276
|
+
sender: AccountAddressInput;
|
|
232
277
|
name?: string;
|
|
233
278
|
options?: InputGenerateTransactionOptions;
|
|
234
|
-
}): Promise<
|
|
279
|
+
}): Promise<{
|
|
280
|
+
transaction: SimpleTransaction;
|
|
281
|
+
data: InputEntryFunctionData;
|
|
282
|
+
}>;
|
|
235
283
|
/**
|
|
236
284
|
* Registers a new name.
|
|
237
285
|
*
|
|
@@ -253,7 +301,7 @@ declare class ANS {
|
|
|
253
301
|
* @param args.toAddress optional - The address to send the domain name to. If not provided, the transaction will be sent to the
|
|
254
302
|
* router.
|
|
255
303
|
*
|
|
256
|
-
* @returns
|
|
304
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
257
305
|
*
|
|
258
306
|
* @example
|
|
259
307
|
* ```typescript
|
|
@@ -264,7 +312,7 @@ declare class ANS {
|
|
|
264
312
|
*
|
|
265
313
|
* async function runExample() {
|
|
266
314
|
* // Registering a subdomain name assuming def.apt is already registered and belongs to the sender alice.
|
|
267
|
-
* const
|
|
315
|
+
* const { transaction, data } = await aptos.registerName({
|
|
268
316
|
* sender: "0x1", // replace with a real sender account
|
|
269
317
|
* name: "test.aptos.apt",
|
|
270
318
|
* expiration: {
|
|
@@ -273,13 +321,16 @@ declare class ANS {
|
|
|
273
321
|
* },
|
|
274
322
|
* });
|
|
275
323
|
*
|
|
276
|
-
* console.log("Transaction:",
|
|
324
|
+
* console.log("Transaction:", transaction);
|
|
277
325
|
* }
|
|
278
326
|
* runExample().catch(console.error);
|
|
279
327
|
* ```
|
|
280
328
|
* @group ANS
|
|
281
329
|
*/
|
|
282
|
-
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<
|
|
330
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<{
|
|
331
|
+
transaction: SimpleTransaction;
|
|
332
|
+
data: InputEntryFunctionData;
|
|
333
|
+
}>;
|
|
283
334
|
/**
|
|
284
335
|
* Renews a domain name for one year.
|
|
285
336
|
* If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.
|
|
@@ -290,7 +341,7 @@ declare class ANS {
|
|
|
290
341
|
* @param args.years - The number of years to renew the name. Currently, only one year is permitted.
|
|
291
342
|
* @param args.options - Optional transaction options.
|
|
292
343
|
*
|
|
293
|
-
* @returns
|
|
344
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
294
345
|
*
|
|
295
346
|
* @example
|
|
296
347
|
* ```typescript
|
|
@@ -301,7 +352,7 @@ declare class ANS {
|
|
|
301
352
|
*
|
|
302
353
|
* async function runExample() {
|
|
303
354
|
* // Renew the domain "test" for one year
|
|
304
|
-
* const transaction = await aptos.renewDomain({
|
|
355
|
+
* const { transaction, data } = await aptos.renewDomain({
|
|
305
356
|
* sender: Account.generate(), // replace with a real account
|
|
306
357
|
* name: "test"
|
|
307
358
|
* });
|
|
@@ -313,11 +364,14 @@ declare class ANS {
|
|
|
313
364
|
* @group ANS
|
|
314
365
|
*/
|
|
315
366
|
renewDomain(args: {
|
|
316
|
-
sender:
|
|
367
|
+
sender: AccountAddressInput;
|
|
317
368
|
name: string;
|
|
318
369
|
years?: 1;
|
|
319
370
|
options?: InputGenerateTransactionOptions;
|
|
320
|
-
}): Promise<
|
|
371
|
+
}): Promise<{
|
|
372
|
+
transaction: SimpleTransaction;
|
|
373
|
+
data: InputEntryFunctionData;
|
|
374
|
+
}>;
|
|
321
375
|
/**
|
|
322
376
|
* Fetches a single name from the indexer based on the provided name argument.
|
|
323
377
|
*
|
|
@@ -345,7 +399,7 @@ declare class ANS {
|
|
|
345
399
|
*/
|
|
346
400
|
getName(args: {
|
|
347
401
|
name: string;
|
|
348
|
-
}): Promise<
|
|
402
|
+
}): Promise<AnsName | undefined>;
|
|
349
403
|
/**
|
|
350
404
|
* Fetches all names for an account, including both top-level domains and subdomains.
|
|
351
405
|
*
|
|
@@ -382,7 +436,10 @@ declare class ANS {
|
|
|
382
436
|
* ```
|
|
383
437
|
* @group ANS
|
|
384
438
|
*/
|
|
385
|
-
getAccountNames(args: GetAccountNamesArgs): Promise<
|
|
439
|
+
getAccountNames(args: GetAccountNamesArgs): Promise<{
|
|
440
|
+
names: AnsName[];
|
|
441
|
+
total: number;
|
|
442
|
+
}>;
|
|
386
443
|
/**
|
|
387
444
|
* Fetches all top-level domain names for a specified account.
|
|
388
445
|
*
|
|
@@ -422,7 +479,10 @@ declare class ANS {
|
|
|
422
479
|
* ```
|
|
423
480
|
* @group ANS
|
|
424
481
|
*/
|
|
425
|
-
getAccountDomains(args: GetAccountDomainsArgs): Promise<
|
|
482
|
+
getAccountDomains(args: GetAccountDomainsArgs): Promise<{
|
|
483
|
+
names: AnsName[];
|
|
484
|
+
total: number;
|
|
485
|
+
}>;
|
|
426
486
|
/**
|
|
427
487
|
* Fetches all subdomain names for a specified account.
|
|
428
488
|
*
|
|
@@ -460,7 +520,10 @@ declare class ANS {
|
|
|
460
520
|
* ```
|
|
461
521
|
* @group ANS
|
|
462
522
|
*/
|
|
463
|
-
getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<
|
|
523
|
+
getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<{
|
|
524
|
+
names: AnsName[];
|
|
525
|
+
total: number;
|
|
526
|
+
}>;
|
|
464
527
|
/**
|
|
465
528
|
* Fetches all subdomain names for a given domain, excluding the domain itself.
|
|
466
529
|
*
|
|
@@ -498,7 +561,10 @@ declare class ANS {
|
|
|
498
561
|
* ```
|
|
499
562
|
* @group ANS
|
|
500
563
|
*/
|
|
501
|
-
getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<
|
|
564
|
+
getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<{
|
|
565
|
+
names: AnsName[];
|
|
566
|
+
total: number;
|
|
567
|
+
}>;
|
|
502
568
|
}
|
|
503
569
|
|
|
504
570
|
export { ANS };
|