@aptos-labs/ts-sdk 5.2.1 → 6.1.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/{account-Dxsj5MIn.d.ts → account-CSOaJ0SC.d.ts} +188 -20
- package/dist/common/chunk-3NBJLJ2Y.js +4 -0
- package/dist/common/chunk-3NBJLJ2Y.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 +264 -31
- package/dist/common/index.js +38 -44
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-DIIE2Drw.d.mts → Ed25519Account-BCt2cu_M.d.mts} +2 -2
- 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 +26 -2
- 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-CMR8C31P.d.mts → account-Dg0ejXHy.d.mts} +173 -9
- 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/aptosConfig.mjs +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/helpers.mjs +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/deserializer.mjs +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/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +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/bcs/serializer.mjs +1 -1
- package/dist/esm/chunk-32J7VMLV.mjs +2 -0
- package/dist/esm/chunk-32J7VMLV.mjs.map +1 -0
- package/dist/esm/chunk-3FDSKP56.mjs +2 -0
- package/dist/esm/chunk-3FDSKP56.mjs.map +1 -0
- package/dist/esm/{chunk-QITAALVJ.mjs → chunk-3Q3J4DTI.mjs} +2 -2
- package/dist/esm/chunk-7FG7RJDS.mjs +2 -0
- package/dist/esm/chunk-7FG7RJDS.mjs.map +1 -0
- package/dist/esm/chunk-BHVMFSAD.mjs +2 -0
- package/dist/esm/chunk-BHVMFSAD.mjs.map +1 -0
- package/dist/esm/chunk-CWI5B5KE.mjs +2 -0
- package/dist/esm/{chunk-QDJDZ3ON.mjs → chunk-DE4YVX3L.mjs} +2 -2
- package/dist/esm/chunk-DE5K76I2.mjs +1 -0
- package/dist/esm/chunk-DECWO3X5.mjs +2 -0
- package/dist/esm/chunk-DECWO3X5.mjs.map +1 -0
- package/dist/esm/{chunk-3GNYDMRA.mjs → chunk-DRGODFFX.mjs} +2 -2
- package/dist/esm/{chunk-GOXRBEIJ.mjs → chunk-F45HI7LU.mjs} +1 -1
- package/dist/esm/chunk-F45HI7LU.mjs.map +1 -0
- package/dist/esm/{chunk-UL777LTI.mjs → chunk-G5OONGWS.mjs} +24 -30
- package/dist/esm/chunk-G5OONGWS.mjs.map +1 -0
- package/dist/esm/chunk-GP3CDQFI.mjs +2 -0
- package/dist/esm/chunk-GP3CDQFI.mjs.map +1 -0
- package/dist/esm/chunk-GWM3VCT4.mjs +4 -0
- package/dist/esm/chunk-GWM3VCT4.mjs.map +1 -0
- package/dist/esm/{chunk-C5UZZHA4.mjs → chunk-HHAUJ5E4.mjs} +2 -2
- package/dist/esm/chunk-ITZN23GU.mjs +2 -0
- package/dist/esm/{chunk-G3HAIETV.mjs → chunk-KLDERTLN.mjs} +2 -2
- package/dist/esm/chunk-KLDERTLN.mjs.map +1 -0
- package/dist/esm/chunk-M65PXVDO.mjs +2 -0
- package/dist/esm/chunk-M65PXVDO.mjs.map +1 -0
- package/dist/esm/chunk-NP2IAUME.mjs +2 -0
- package/dist/esm/chunk-NP2IAUME.mjs.map +1 -0
- package/dist/esm/chunk-ODNZJSOC.mjs +2 -0
- package/dist/esm/chunk-ODNZJSOC.mjs.map +1 -0
- package/dist/esm/{chunk-TBOR2W2F.mjs → chunk-PDNDARQY.mjs} +2 -2
- package/dist/esm/{chunk-RYOICF37.mjs → chunk-POKQD2RK.mjs} +2 -2
- package/dist/esm/chunk-Q5ESW36C.mjs +2 -0
- package/dist/esm/chunk-Q5ESW36C.mjs.map +1 -0
- package/dist/esm/chunk-QRD5NGNC.mjs +2 -0
- package/dist/esm/{chunk-K3Q5EONX.mjs.map → chunk-QRD5NGNC.mjs.map} +1 -1
- package/dist/esm/{chunk-43LWUUXS.mjs → chunk-QV37KEZY.mjs} +2 -2
- package/dist/esm/{chunk-KY4GDJA6.mjs → chunk-QYC3HOQX.mjs} +2 -2
- package/dist/esm/{chunk-DLD62OFZ.mjs → chunk-RGXAFBFA.mjs} +2 -2
- package/dist/esm/{chunk-3P474TWM.mjs → chunk-RSUFVB4P.mjs} +2 -2
- package/dist/esm/chunk-SZBXWUBS.mjs +2 -0
- package/dist/esm/chunk-SZBXWUBS.mjs.map +1 -0
- package/dist/esm/{chunk-EIQBQ62N.mjs → chunk-TIMTVXFU.mjs} +2 -2
- package/dist/esm/chunk-TIMTVXFU.mjs.map +1 -0
- package/dist/esm/{chunk-QREVMGQZ.mjs → chunk-U5HTF4OK.mjs} +1 -1
- package/dist/esm/{chunk-QREVMGQZ.mjs.map → chunk-U5HTF4OK.mjs.map} +1 -1
- package/dist/esm/{chunk-6IWGTO2J.mjs → chunk-UNA3V4UB.mjs} +2 -2
- package/dist/esm/chunk-US6KOOYS.mjs +2 -0
- package/dist/esm/chunk-US6KOOYS.mjs.map +1 -0
- package/dist/esm/chunk-UXDYADZV.mjs +2 -0
- package/dist/esm/chunk-UXDYADZV.mjs.map +1 -0
- package/dist/esm/{chunk-5FNZUL2Y.mjs → chunk-UZMJ4DAO.mjs} +2 -2
- package/dist/esm/chunk-V5K2RRFT.mjs +2 -0
- package/dist/esm/chunk-V5K2RRFT.mjs.map +1 -0
- package/dist/esm/{chunk-35DKMW7Q.mjs → chunk-VW3Y5EOJ.mjs} +1 -1
- package/dist/esm/{chunk-35DKMW7Q.mjs.map → chunk-VW3Y5EOJ.mjs.map} +1 -1
- package/dist/esm/{chunk-MEG27LEV.mjs → chunk-VWLK43JM.mjs} +3 -3
- package/dist/esm/chunk-VWLK43JM.mjs.map +1 -0
- package/dist/esm/{chunk-DIFSO4N6.mjs → chunk-VWXVSRRQ.mjs} +2 -2
- package/dist/esm/{chunk-WBG25H7H.mjs → chunk-WRV7BWXE.mjs} +2 -2
- package/dist/esm/{chunk-56IXVVXX.mjs → chunk-YMZF4KMT.mjs} +2 -2
- package/dist/esm/chunk-YNNDFGVQ.mjs +2 -0
- package/dist/esm/{chunk-VS5NYRHW.mjs.map → chunk-YNNDFGVQ.mjs.map} +1 -1
- package/dist/esm/{chunk-GRF3NBRO.mjs → chunk-YOT47DDX.mjs} +2 -2
- package/dist/esm/chunk-YOT47DDX.mjs.map +1 -0
- 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/cli/move.mjs +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/poseidon.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-DE7i_6s_.d.mts → federatedKeyless-BYLu31Sa.d.mts} +13 -2
- package/dist/esm/index.d.mts +6 -5
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +4 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +1 -1
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +1 -1
- package/dist/esm/transactions/instances/identifier.mjs +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 +12 -4
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +2 -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 -11
- package/dist/esm/types/generated/queries.d.mts +28 -28
- 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/indexer.d.mts +1 -1
- package/dist/esm/types/types.d.mts +1 -1
- package/dist/esm/types/types.mjs +1 -1
- package/dist/esm/utils/const.d.mts +11 -1
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +21 -2
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +3 -3
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/memoize.d.mts +23 -1
- package/dist/esm/utils/memoize.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 +39 -46
- package/src/account/AbstractKeylessAccount.ts +2 -3
- package/src/account/DerivableAbstractedAccount.ts +1 -3
- package/src/account/EphemeralKeyPair.ts +53 -1
- package/src/account/MultiEd25519Account.ts +0 -2
- package/src/account/MultiKeyAccount.ts +0 -2
- package/src/account/SingleKeyAccount.ts +0 -1
- package/src/api/account.ts +1 -2
- package/src/api/ans.ts +70 -26
- package/src/api/aptos.ts +3 -2
- package/src/api/aptosConfig.ts +13 -0
- package/src/api/transaction.ts +4 -4
- package/src/api/transactionSubmission/build.ts +1 -5
- package/src/api/transactionSubmission/helpers.ts +1 -1
- package/src/api/transactionSubmission/sign.ts +2 -2
- package/src/bcs/deserializer.ts +64 -17
- package/src/bcs/serializable/movePrimitives.ts +16 -28
- package/src/bcs/serializable/moveStructs.ts +4 -6
- package/src/bcs/serializer.ts +151 -12
- package/src/cli/localNode.ts +2 -3
- package/src/cli/move.ts +5 -5
- package/src/client/get.ts +8 -10
- package/src/core/accountAddress.ts +2 -3
- package/src/core/crypto/abstraction.ts +3 -3
- package/src/core/crypto/ed25519.ts +66 -1
- package/src/core/crypto/federatedKeyless.ts +1 -1
- package/src/core/crypto/keyless.ts +65 -13
- package/src/core/crypto/multiEd25519.ts +1 -3
- package/src/core/crypto/multiKey.ts +4 -7
- package/src/core/crypto/poseidon.ts +0 -1
- package/src/core/crypto/privateKey.ts +2 -4
- package/src/core/crypto/secp256k1.ts +68 -3
- package/src/core/crypto/secp256r1.ts +1 -1
- package/src/core/crypto/singleKey.ts +4 -0
- package/src/core/crypto/utils.ts +6 -3
- package/src/errors/index.ts +4 -5
- package/src/internal/account.ts +20 -29
- package/src/internal/ans.ts +280 -111
- package/src/internal/general.ts +24 -6
- package/src/internal/queries/getCollectionData.graphql +0 -11
- package/src/internal/queries/getNames.graphql +5 -0
- package/src/internal/transaction.ts +3 -5
- package/src/internal/transactionSubmission.ts +23 -0
- package/src/transactions/authenticator/account.ts +0 -3
- package/src/transactions/authenticator/transaction.ts +0 -2
- package/src/transactions/instances/multiAgentTransaction.ts +0 -2
- package/src/transactions/instances/rawTransaction.ts +0 -2
- package/src/transactions/instances/signedTransaction.ts +0 -2
- package/src/transactions/instances/simpleTransaction.ts +0 -2
- package/src/transactions/instances/transactionPayload.ts +7 -6
- package/src/transactions/management/accountSequenceNumber.ts +0 -2
- package/src/transactions/management/transactionWorker.ts +40 -10
- package/src/transactions/transactionBuilder/remoteAbi.ts +21 -6
- package/src/transactions/transactionBuilder/transactionBuilder.ts +17 -13
- package/src/transactions/typeTag/index.ts +1 -1
- package/src/transactions/typeTag/parser.ts +1 -2
- package/src/transactions/types.ts +1 -1
- package/src/types/ans.ts +110 -0
- package/src/types/generated/operations.ts +1 -11
- package/src/types/generated/queries.ts +163 -87
- package/src/types/generated/types.ts +216 -6
- package/src/types/index.ts +1 -0
- package/src/types/types.ts +26 -0
- package/src/utils/const.ts +11 -0
- package/src/utils/helpers.ts +45 -5
- package/src/utils/memoize.ts +177 -11
- package/src/version.ts +1 -1
- package/dist/common/chunk-3KK6QRXD.js +0 -4
- package/dist/common/chunk-3KK6QRXD.js.map +0 -1
- package/dist/esm/chunk-2PASUPUO.mjs +0 -2
- package/dist/esm/chunk-2PASUPUO.mjs.map +0 -1
- package/dist/esm/chunk-54C2P534.mjs +0 -2
- package/dist/esm/chunk-54C2P534.mjs.map +0 -1
- package/dist/esm/chunk-C622NWP7.mjs +0 -2
- package/dist/esm/chunk-C622NWP7.mjs.map +0 -1
- package/dist/esm/chunk-EIQBQ62N.mjs.map +0 -1
- package/dist/esm/chunk-FD6FGKYY.mjs +0 -1
- package/dist/esm/chunk-G3HAIETV.mjs.map +0 -1
- package/dist/esm/chunk-GOXRBEIJ.mjs.map +0 -1
- package/dist/esm/chunk-GRF3NBRO.mjs.map +0 -1
- package/dist/esm/chunk-I42Z32Q2.mjs +0 -2
- package/dist/esm/chunk-I42Z32Q2.mjs.map +0 -1
- package/dist/esm/chunk-K3Q5EONX.mjs +0 -2
- package/dist/esm/chunk-KUF4DKN5.mjs +0 -2
- package/dist/esm/chunk-LD3I4CYO.mjs +0 -2
- package/dist/esm/chunk-MEG27LEV.mjs.map +0 -1
- package/dist/esm/chunk-NCKJ7X57.mjs +0 -2
- package/dist/esm/chunk-NCKJ7X57.mjs.map +0 -1
- package/dist/esm/chunk-NK3Y3PV3.mjs +0 -2
- package/dist/esm/chunk-NK3Y3PV3.mjs.map +0 -1
- package/dist/esm/chunk-OLILO7VD.mjs +0 -2
- package/dist/esm/chunk-OLILO7VD.mjs.map +0 -1
- package/dist/esm/chunk-PYVKCTUN.mjs +0 -2
- package/dist/esm/chunk-PYVKCTUN.mjs.map +0 -1
- package/dist/esm/chunk-QEHKRR3I.mjs +0 -2
- package/dist/esm/chunk-QEHKRR3I.mjs.map +0 -1
- package/dist/esm/chunk-UL777LTI.mjs.map +0 -1
- package/dist/esm/chunk-VO3JD6U6.mjs +0 -2
- package/dist/esm/chunk-VO3JD6U6.mjs.map +0 -1
- package/dist/esm/chunk-VS5NYRHW.mjs +0 -2
- package/dist/esm/chunk-Y426VCPM.mjs +0 -2
- package/dist/esm/chunk-Y426VCPM.mjs.map +0 -1
- package/dist/esm/chunk-YOZBVVKL.mjs +0 -2
- package/dist/esm/chunk-YOZBVVKL.mjs.map +0 -1
- package/dist/esm/chunk-Z6PXP6MJ.mjs +0 -2
- package/dist/esm/chunk-Z6PXP6MJ.mjs.map +0 -1
- package/dist/esm/chunk-ZSO5R7FV.mjs +0 -4
- package/dist/esm/chunk-ZSO5R7FV.mjs.map +0 -1
- /package/dist/esm/{chunk-QITAALVJ.mjs.map → chunk-3Q3J4DTI.mjs.map} +0 -0
- /package/dist/esm/{chunk-KUF4DKN5.mjs.map → chunk-CWI5B5KE.mjs.map} +0 -0
- /package/dist/esm/{chunk-QDJDZ3ON.mjs.map → chunk-DE4YVX3L.mjs.map} +0 -0
- /package/dist/esm/{chunk-FD6FGKYY.mjs.map → chunk-DE5K76I2.mjs.map} +0 -0
- /package/dist/esm/{chunk-3GNYDMRA.mjs.map → chunk-DRGODFFX.mjs.map} +0 -0
- /package/dist/esm/{chunk-C5UZZHA4.mjs.map → chunk-HHAUJ5E4.mjs.map} +0 -0
- /package/dist/esm/{chunk-LD3I4CYO.mjs.map → chunk-ITZN23GU.mjs.map} +0 -0
- /package/dist/esm/{chunk-TBOR2W2F.mjs.map → chunk-PDNDARQY.mjs.map} +0 -0
- /package/dist/esm/{chunk-RYOICF37.mjs.map → chunk-POKQD2RK.mjs.map} +0 -0
- /package/dist/esm/{chunk-43LWUUXS.mjs.map → chunk-QV37KEZY.mjs.map} +0 -0
- /package/dist/esm/{chunk-KY4GDJA6.mjs.map → chunk-QYC3HOQX.mjs.map} +0 -0
- /package/dist/esm/{chunk-DLD62OFZ.mjs.map → chunk-RGXAFBFA.mjs.map} +0 -0
- /package/dist/esm/{chunk-3P474TWM.mjs.map → chunk-RSUFVB4P.mjs.map} +0 -0
- /package/dist/esm/{chunk-6IWGTO2J.mjs.map → chunk-UNA3V4UB.mjs.map} +0 -0
- /package/dist/esm/{chunk-5FNZUL2Y.mjs.map → chunk-UZMJ4DAO.mjs.map} +0 -0
- /package/dist/esm/{chunk-DIFSO4N6.mjs.map → chunk-VWXVSRRQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-WBG25H7H.mjs.map → chunk-WRV7BWXE.mjs.map} +0 -0
- /package/dist/esm/{chunk-56IXVVXX.mjs.map → chunk-YMZF4KMT.mjs.map} +0 -0
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountAddress, a as AccountPublicKey, b as AuthenticationKey, V as VerifySignatureArgs, c as VerifySignatureAsyncArgs, S as Serializer, d as Signature, H as HexInput, D as Deserializer, P as PublicKey, E as EphemeralPublicKeyVariant, e as AptosConfig, f as Serializable, g as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, h as AccountAddressInput, i as PrivateKey, j as Hex, k as Ed25519PublicKey, l as AnyPublicKey, M as MultiKey, m as MultiEd25519PublicKey, n as Ed25519Signature, o as MultiEd25519Signature, p as AccountAuthenticator, q as MoveString, r as MoveVector, U as U8, s as U64, t as AnyNumber, R as RawTransaction, u as SimpleEntryFunctionArgumentTypes, v as EntryFunctionArgumentTypes, B as Bool, F as FixedBytes,
|
|
2
|
-
export {
|
|
1
|
+
import { A as AccountAddress, a as AccountPublicKey, b as AuthenticationKey, V as VerifySignatureArgs, c as VerifySignatureAsyncArgs, S as Serializer, d as Signature, H as HexInput, D as Deserializer, P as PublicKey, E as EphemeralPublicKeyVariant, e as AptosConfig, f as Serializable, g as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, h as AccountAddressInput, i as PrivateKey, j as Hex, k as Ed25519PublicKey, l as AnyPublicKey, M as MultiKey, m as MultiEd25519PublicKey, n as Ed25519Signature, o as MultiEd25519Signature, p as AccountAuthenticator, q as MoveString, r as MoveVector, U as U8, s as U64, t as AnyNumber, R as RawTransaction, u as SimpleEntryFunctionArgumentTypes, v as MoveFunction, w as EntryFunctionArgumentTypes, B as Bool, F as FixedBytes, I as I128, x as I16, y as I256, z as I32, C as I64, G as I8, J as U128, K as U16, N as U256, O as U32, Q as InputGenerateTransactionPayloadDataWithRemoteABI, T as InputGenerateTransactionPayloadData, W as InputScriptData, X as InputGenerateSingleSignerRawTransactionArgs, Y as SimpleTransaction, _ as InputGenerateMultiAgentRawTransactionArgs, $ as MultiAgentTransaction, a0 as AnyTransactionPayloadInstance, a1 as TransactionInnerPayload, a2 as InputGenerateTransactionOptions, a3 as InputSubmitTransactionData, a4 as InputSimulateTransactionData, a5 as TransactionPayloadScript, a6 as InputEntryFunctionDataWithRemoteABI, a7 as TransactionPayloadEntryFunction, a8 as InputMultiSigDataWithRemoteABI, a9 as TransactionPayloadMultiSig, aa as InputEntryFunctionDataWithABI, ab as InputMultiSigDataWithABI, ac as InputViewFunctionDataWithRemoteABI, ad as EntryFunction, ae as InputViewFunctionDataWithABI, af as AccountAuthenticatorNoAccountAuthenticator, ag as AccountAuthenticatorEd25519, ah as AccountAuthenticatorSingleKey, ai as AccountAuthenticatorMultiKey, aj as TypeTag, ak as MoveModule, al as FunctionABI, am as EntryFunctionABI, an as ViewFunctionABI, ao as TypeArgument, ap as AnyRawTransaction, aq as AnyRawTransactionInstance, ar as AccountData, as as MoveModuleBytecode, at as CursorPaginationArgs, au as PaginationArgs, av as TransactionResponse, aw as MoveResource, ax as MoveStructId, ay as TokenStandardArg, az as OrderByArg, aA as GetAccountOwnedTokensQueryResponse, aB as GetAccountOwnedTokensFromCollectionResponse, aC as GetAccountCollectionsWithOwnedTokenResponse, aD as GetAccountCoinsDataResponse, aE as WhereArg, aF as GetObjectDataQueryResponse, aG as PrivateKeyInput, aH as GetCollectionDataResponse, aI as GetTokenDataResponse, aJ as GetCurrentTokenOwnershipResponse, aK as GetOwnedTokensResponse, aL as GetTokenActivityResponse, aM as WaitForTransactionOptions, aN as UserTransactionResponse, aO as GetFungibleAssetMetadataResponse, aP as GetFungibleAssetActivitiesResponse, aQ as GetCurrentFungibleAssetBalancesResponse, aR as LedgerInfo, aS as Block, aT as MoveValue, aU as InputViewFunctionData, aV as InputViewFunctionJsonData, aW as GetChainTopUserTransactionsResponse, aX as GraphqlQuery, aY as ProcessorType, aZ as GetProcessorStatusResponse, a_ as InputEntryFunctionData, a$ as GetNumberOfDelegatorsResponse, b0 as GetDelegatedStakingActivitiesResponse, b1 as InputSimulateTransactionOptions, b2 as InputTransactionPluginData, b3 as PendingTransactionResponse, b4 as CommittedTransactionResponse, b5 as GasEstimation, b6 as Ed25519PrivateKey, b7 as TableItemRequest, b8 as GetTableItemsDataResponse, b9 as GetTableItemsMetadataResponse, ba as SigningScheme, bb as SigningSchemeInput, bc as AnySignature, bd as GetANSNameResponse, be as EntryFunctionArgument, bf as MultiKeySignature, bg as AccountAuthenticatorMultiEd25519, bh as AccountAuthenticatorAbstraction, bi as MoveFunctionId, bj as AptosRequest, bk as AptosApiType, bl as AptosResponse, bm as ClientRequest, bn as Client, bo as ClientResponse, bp as MimeType, bq as ClientConfig } from './account-CSOaJ0SC.js';
|
|
2
|
+
export { br as ACCOUNT_ABSTRACTION_SIGNING_DATA_SALT, bs as APTOS_COIN, bt as APTOS_FA, bu as AbstractMultiKey, bv as AccountAbstractionMessage, bw as AccountAuthenticatorVariant, bx as AccountSignature, by as AddressInvalidReason, bz as AnyPublicKeyVariant, bA as AnySignatureVariant, bB as AptosSettings, bC as AuthenticationKeyScheme, bD as BlockEndInfo, bE as BlockEpilogueTransactionResponse, bF as BlockMetadataTransactionResponse, bG as ChainId, bH as ClientHeadersType, bI as DEFAULT_MAX_GAS_AMOUNT, bJ as DEFAULT_TXN_EXP_SEC_FROM_NOW, bK as DEFAULT_TXN_TIMEOUT_SEC, bL as DecodedTableData, bM as DeletedTableData, bN as DeriveScheme, bO as Deserializable, bP as DirectWriteSet, bQ as EntryFunctionPayloadResponse, bR as EphemeralSignatureVariant, bS as Event, bT as EventGuid, bU as FIREBASE_AUTH_ISS_PATTERN, bV as FaucetConfig, bW as FeePayerRawTransaction, bX as FullNodeConfig, bY as GenerateAccount, bZ as GenerateAccountWithEd25519, b_ as GenerateAccountWithSingleSignerSecp256k1Key, b$ as GenesisPayload, c0 as GenesisTransactionResponse, c1 as GetAccountAddressesForAuthKeyResponse, c2 as GetEventsResponse, c3 as HexInvalidReason, c4 as Identifier, c5 as IndexerConfig, c6 as InputGenerateMultiAgentRawTransactionData, c7 as InputGenerateOrderlessTransactionOptions, c8 as InputGenerateRawTransactionArgs, c9 as InputGenerateSequenceNumberTransactionOptions, ca as InputGenerateSingleSignerRawTransactionData, cb as InputGenerateTransactionData, cc as InputGenerateTransactionPayloadDataWithABI, cd as InputMultiSigData, ce as Int128, cf as Int16, cg as Int256, ch as Int32, ci as Int64, cj as Int8, ck as MIN_MAX_GAS_AMOUNT, cl as ModuleId, cm as MoveAbility, cn as MoveAddressType, co as MoveFunctionGenericTypeParam, cp as MoveFunctionVisibility, cq as MoveInt128Type, cr as MoveInt16Type, cs as MoveInt256Type, ct as MoveInt32Type, cu as MoveInt64Type, cv as MoveInt8Type, cw as MoveModuleId, cx as MoveObjectType, cy as MoveOption, cz as MoveOptionType, cA as MoveScriptBytecode, cB as MoveStruct, cC as MoveStructField, cD as MoveStructType, cE as MoveType, cF as MoveUint128Type, cG as MoveUint16Type, cH as MoveUint256Type, cI as MoveUint32Type, cJ as MoveUint64Type, cK as MoveUint8Type, cL as MultiAgentRawTransaction, cM as MultiSig, cN as MultiSigTransactionPayload, cO as MultisigPayloadResponse, cP as Network, cQ as NetworkToChainId, cR as NetworkToFaucetAPI, cS as NetworkToIndexerAPI, cT as NetworkToNetworkName, cU as NetworkToNodeAPI, cV as NetworkToPepperAPI, cW as NetworkToProverAPI, cX as OrderBy, cY as OrderByValue, cZ as ParsingError, c_ as ParsingResult, c$ as PluginConfig, d0 as PluginSettings, d1 as PrivateKeyVariants, d2 as RAW_TRANSACTION_SALT, d3 as RAW_TRANSACTION_WITH_DATA_SALT, d4 as RawTransactionWithData, d5 as RoleType, d6 as Script, d7 as ScriptFunctionArgument, d8 as ScriptFunctionArgumentTypes, d9 as ScriptPayloadResponse, da as ScriptTransactionArgumentVariants, db as ScriptWriteSet, dc as Secp256k1PrivateKey, dd as Secp256k1PublicKey, de as Secp256k1Signature, df as Serialized, dg as StateCheckpointTransactionResponse, dh as StructTag, di as TokenStandard, dj as TransactionArgument, dk as TransactionAuthenticatorVariant, dl as TransactionEd25519Signature, dm as TransactionExecutable, dn as TransactionExecutableEmpty, dp as TransactionExecutableEntryFunction, dq as TransactionExecutableScript, dr as TransactionExecutableVariants, ds as TransactionExtraConfig, dt as TransactionExtraConfigV1, du as TransactionExtraConfigVariants, dv as TransactionFeePayerSignature, dw as TransactionGenerationConfig, dx as TransactionInnerPayloadV1, dy as TransactionInnerPayloadVariants, dz as TransactionMultiAgentSignature, dA as TransactionMultiEd25519Signature, dB as TransactionPayload, dC as TransactionPayloadResponse, dD as TransactionPayloadVariants, dE as TransactionResponseType, dF as TransactionSecp256k1Signature, dG as TransactionSignature, dH as TransactionSingleSenderSignature, dI as TransactionSubmitter, dJ as TransactionVariants, dK as TypeTagAddress, dL as TypeTagBool, dM as TypeTagGeneric, dN as TypeTagI128, dO as TypeTagI16, dP as TypeTagI256, dQ as TypeTagI32, dR as TypeTagI64, dS as TypeTagI8, dT as TypeTagReference, dU as TypeTagSigner, dV as TypeTagStruct, dW as TypeTagU128, dX as TypeTagU16, dY as TypeTagU256, dZ as TypeTagU32, d_ as TypeTagU64, d$ as TypeTagU8, e0 as TypeTagVariants, e1 as TypeTagVector, e2 as Uint128, e3 as Uint16, e4 as Uint256, e5 as Uint32, e6 as Uint64, e7 as Uint8, e8 as ValidatorTransactionResponse, e9 as ViewFunctionJsonPayload, ea as WriteSet, eb as WriteSetChange, ec as WriteSetChangeDeleteModule, ed as WriteSetChangeDeleteResource, ee as WriteSetChangeDeleteTableItem, ef as WriteSetChangeWriteModule, eg as WriteSetChangeWriteResource, eh as WriteSetChangeWriteTableItem, ei as anyPublicKeyVariantToString, ej as aptosCoinStructTag, ek as deserializeFromScriptArgument, el as ensureBoolean, em as hexToAsciiString, en as isBlockEpilogueTransactionResponse, eo as isBlockMetadataTransactionResponse, ep as isCanonicalEd25519Signature, eq as isEd25519Signature, er as isFeePayerSignature, es as isGenesisTransactionResponse, et as isMultiAgentSignature, eu as isMultiEd25519Signature, ev as isPendingTransactionResponse, ew as isSecp256k1Signature, ex as isSingleSenderSignature, ey as isStateCheckpointTransactionResponse, ez as isUserTransactionResponse, eA as isValidatorTransactionResponse, eB as objectStructTag, eC as optionStructTag, eD as outOfRangeErrorMessage, eE as stringStructTag, eF as validateNumberInRange } from './account-CSOaJ0SC.js';
|
|
3
3
|
import { ProjPointType } from '@noble/curves/abstract/weierstrass';
|
|
4
4
|
import { Fp2 } from '@noble/curves/abstract/tower';
|
|
5
5
|
import EventEmitter from 'eventemitter3';
|
|
@@ -1283,10 +1283,20 @@ declare function getIssAudAndUidVal(args: {
|
|
|
1283
1283
|
aud: string;
|
|
1284
1284
|
uidVal: string;
|
|
1285
1285
|
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Fetches JWKs from the blockchain with optional caching.
|
|
1288
|
+
*
|
|
1289
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
1290
|
+
* @param args.jwkAddr - Optional. The address to fetch JWKs from (for federated keyless).
|
|
1291
|
+
* @param args.options - Optional. Ledger version options.
|
|
1292
|
+
* @param args.useCache - Optional. Whether to use cached JWKs. Defaults to true.
|
|
1293
|
+
* @returns A map of issuer to JWK arrays.
|
|
1294
|
+
*/
|
|
1286
1295
|
declare function getKeylessJWKs(args: {
|
|
1287
1296
|
aptosConfig: AptosConfig;
|
|
1288
1297
|
jwkAddr?: AccountAddressInput;
|
|
1289
1298
|
options?: LedgerVersionArg;
|
|
1299
|
+
useCache?: boolean;
|
|
1290
1300
|
}): Promise<Map<string, MoveJWK[]>>;
|
|
1291
1301
|
declare class MoveJWK extends Serializable {
|
|
1292
1302
|
kid: string;
|
|
@@ -1313,6 +1323,7 @@ interface JwtHeader {
|
|
|
1313
1323
|
* Safely parses the JWT header.
|
|
1314
1324
|
* @param jwtHeader The JWT header string
|
|
1315
1325
|
* @returns Parsed JWT header as an object.
|
|
1326
|
+
* @throws KeylessError if the header is invalid or missing required fields
|
|
1316
1327
|
*/
|
|
1317
1328
|
declare function parseJwtHeader(jwtHeader: string): JwtHeader;
|
|
1318
1329
|
|
|
@@ -2499,6 +2510,7 @@ declare function generateUserTransactionHash(args: InputSubmitTransactionData):
|
|
|
2499
2510
|
declare function standardizeTypeTags(typeArguments?: Array<TypeArgument>): Array<TypeTag>;
|
|
2500
2511
|
/**
|
|
2501
2512
|
* Fetches the ABI of a specified module from the on-chain module ABI.
|
|
2513
|
+
* Results are cached for 5 minutes to reduce redundant network calls.
|
|
2502
2514
|
*
|
|
2503
2515
|
* @param moduleAddress - The address of the module from which to fetch the ABI.
|
|
2504
2516
|
* @param moduleName - The name of the module containing the ABI.
|
|
@@ -5553,7 +5565,7 @@ declare class General {
|
|
|
5553
5565
|
*/
|
|
5554
5566
|
interface RegisterNameParameters {
|
|
5555
5567
|
aptosConfig: AptosConfig;
|
|
5556
|
-
sender:
|
|
5568
|
+
sender: AccountAddressInput;
|
|
5557
5569
|
name: string;
|
|
5558
5570
|
expiration: {
|
|
5559
5571
|
policy: "domain";
|
|
@@ -5576,7 +5588,7 @@ interface RegisterNameParameters {
|
|
|
5576
5588
|
* @group Implementation
|
|
5577
5589
|
*/
|
|
5578
5590
|
interface QueryNamesOptions {
|
|
5579
|
-
options?: PaginationArgs & OrderByArg<
|
|
5591
|
+
options?: PaginationArgs & OrderByArg<AnsName> & WhereArg<CurrentAptosNamesBoolExp>;
|
|
5580
5592
|
}
|
|
5581
5593
|
/**
|
|
5582
5594
|
* Arguments for retrieving account names based on the specified account address.
|
|
@@ -5744,7 +5756,7 @@ declare class ANS {
|
|
|
5744
5756
|
* @param args.address - The AccountAddressInput of the address to set the domain or subdomain to.
|
|
5745
5757
|
* @param args.options - Optional settings for generating the transaction.
|
|
5746
5758
|
*
|
|
5747
|
-
* @returns
|
|
5759
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
5748
5760
|
*
|
|
5749
5761
|
* @example
|
|
5750
5762
|
* ```typescript
|
|
@@ -5758,10 +5770,10 @@ declare class ANS {
|
|
|
5758
5770
|
* const sender = Account.generate(); // replace with a real account
|
|
5759
5771
|
* const address = "0x1"; // replace with a real account address
|
|
5760
5772
|
*
|
|
5761
|
-
* await aptos.setTargetAddress({
|
|
5762
|
-
* sender
|
|
5773
|
+
* const { transaction, data } = await aptos.setTargetAddress({
|
|
5774
|
+
* sender,
|
|
5763
5775
|
* name: "test.aptos",
|
|
5764
|
-
* address
|
|
5776
|
+
* address,
|
|
5765
5777
|
* });
|
|
5766
5778
|
*
|
|
5767
5779
|
* const targetAddress = await aptos.getTargetAddress({ name: "test.aptos" });
|
|
@@ -5772,11 +5784,56 @@ declare class ANS {
|
|
|
5772
5784
|
* @group ANS
|
|
5773
5785
|
*/
|
|
5774
5786
|
setTargetAddress(args: {
|
|
5775
|
-
sender:
|
|
5787
|
+
sender: AccountAddressInput;
|
|
5776
5788
|
name: string;
|
|
5777
5789
|
address: AccountAddressInput;
|
|
5778
5790
|
options?: InputGenerateTransactionOptions;
|
|
5779
|
-
}): Promise<
|
|
5791
|
+
}): Promise<{
|
|
5792
|
+
transaction: SimpleTransaction;
|
|
5793
|
+
data: InputEntryFunctionData;
|
|
5794
|
+
}>;
|
|
5795
|
+
/**
|
|
5796
|
+
* Clears the target address of a domain or subdomain name, removing the address association.
|
|
5797
|
+
* After clearing, the name will no longer resolve to a specific address.
|
|
5798
|
+
*
|
|
5799
|
+
* @param args - The arguments for clearing the target address.
|
|
5800
|
+
* @param args.sender - The account initiating the transaction.
|
|
5801
|
+
* @param args.name - A string representing the domain or subdomain name (e.g., "test.aptos").
|
|
5802
|
+
* @param args.options - Optional settings for generating the transaction.
|
|
5803
|
+
*
|
|
5804
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
5805
|
+
*
|
|
5806
|
+
* @example
|
|
5807
|
+
* ```typescript
|
|
5808
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
5809
|
+
*
|
|
5810
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
5811
|
+
* const aptos = new Aptos(config);
|
|
5812
|
+
*
|
|
5813
|
+
* async function runExample() {
|
|
5814
|
+
* // Clearing the target address for a domain name
|
|
5815
|
+
* const sender = Account.generate(); // replace with a real account
|
|
5816
|
+
*
|
|
5817
|
+
* const { transaction, data } = await aptos.clearTargetAddress({
|
|
5818
|
+
* sender,
|
|
5819
|
+
* name: "test.aptos",
|
|
5820
|
+
* });
|
|
5821
|
+
*
|
|
5822
|
+
* const targetAddress = await aptos.getTargetAddress({ name: "test.aptos" });
|
|
5823
|
+
* console.log(targetAddress); // Should log undefined after clearing
|
|
5824
|
+
* }
|
|
5825
|
+
* runExample().catch(console.error);
|
|
5826
|
+
* ```
|
|
5827
|
+
* @group ANS
|
|
5828
|
+
*/
|
|
5829
|
+
clearTargetAddress(args: {
|
|
5830
|
+
sender: AccountAddressInput;
|
|
5831
|
+
name: string;
|
|
5832
|
+
options?: InputGenerateTransactionOptions;
|
|
5833
|
+
}): Promise<{
|
|
5834
|
+
transaction: SimpleTransaction;
|
|
5835
|
+
data: InputEntryFunctionData;
|
|
5836
|
+
}>;
|
|
5780
5837
|
/**
|
|
5781
5838
|
* Retrieve the primary name for an account. An account can have multiple names, but only one primary name, which may not exist.
|
|
5782
5839
|
*
|
|
@@ -5813,7 +5870,7 @@ declare class ANS {
|
|
|
5813
5870
|
* @param args.name - A string representing the name to set as primary (e.g., "test.aptos").
|
|
5814
5871
|
* @param args.options - Optional transaction options.
|
|
5815
5872
|
*
|
|
5816
|
-
* @returns
|
|
5873
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
5817
5874
|
*
|
|
5818
5875
|
* @example
|
|
5819
5876
|
* ```typescript
|
|
@@ -5825,7 +5882,7 @@ declare class ANS {
|
|
|
5825
5882
|
* async function runExample() {
|
|
5826
5883
|
* // Set the primary name for the sender account
|
|
5827
5884
|
* const sender = Account.generate(); // replace with a real account
|
|
5828
|
-
* await aptos.setPrimaryName({ sender, name: "test.aptos" });
|
|
5885
|
+
* const { transaction, data } = await aptos.setPrimaryName({ sender, name: "test.aptos" });
|
|
5829
5886
|
*
|
|
5830
5887
|
* const primaryName = await aptos.getPrimaryName({ address: sender.accountAddress });
|
|
5831
5888
|
* console.log("Primary Name:", primaryName); // Should log: "Primary Name: test.aptos"
|
|
@@ -5835,10 +5892,13 @@ declare class ANS {
|
|
|
5835
5892
|
* @group ANS
|
|
5836
5893
|
*/
|
|
5837
5894
|
setPrimaryName(args: {
|
|
5838
|
-
sender:
|
|
5895
|
+
sender: AccountAddressInput;
|
|
5839
5896
|
name?: string;
|
|
5840
5897
|
options?: InputGenerateTransactionOptions;
|
|
5841
|
-
}): Promise<
|
|
5898
|
+
}): Promise<{
|
|
5899
|
+
transaction: SimpleTransaction;
|
|
5900
|
+
data: InputEntryFunctionData;
|
|
5901
|
+
}>;
|
|
5842
5902
|
/**
|
|
5843
5903
|
* Registers a new name.
|
|
5844
5904
|
*
|
|
@@ -5860,7 +5920,7 @@ declare class ANS {
|
|
|
5860
5920
|
* @param args.toAddress optional - The address to send the domain name to. If not provided, the transaction will be sent to the
|
|
5861
5921
|
* router.
|
|
5862
5922
|
*
|
|
5863
|
-
* @returns
|
|
5923
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
5864
5924
|
*
|
|
5865
5925
|
* @example
|
|
5866
5926
|
* ```typescript
|
|
@@ -5871,7 +5931,7 @@ declare class ANS {
|
|
|
5871
5931
|
*
|
|
5872
5932
|
* async function runExample() {
|
|
5873
5933
|
* // Registering a subdomain name assuming def.apt is already registered and belongs to the sender alice.
|
|
5874
|
-
* const
|
|
5934
|
+
* const { transaction, data } = await aptos.registerName({
|
|
5875
5935
|
* sender: "0x1", // replace with a real sender account
|
|
5876
5936
|
* name: "test.aptos.apt",
|
|
5877
5937
|
* expiration: {
|
|
@@ -5880,13 +5940,16 @@ declare class ANS {
|
|
|
5880
5940
|
* },
|
|
5881
5941
|
* });
|
|
5882
5942
|
*
|
|
5883
|
-
* console.log("Transaction:",
|
|
5943
|
+
* console.log("Transaction:", transaction);
|
|
5884
5944
|
* }
|
|
5885
5945
|
* runExample().catch(console.error);
|
|
5886
5946
|
* ```
|
|
5887
5947
|
* @group ANS
|
|
5888
5948
|
*/
|
|
5889
|
-
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<
|
|
5949
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<{
|
|
5950
|
+
transaction: SimpleTransaction;
|
|
5951
|
+
data: InputEntryFunctionData;
|
|
5952
|
+
}>;
|
|
5890
5953
|
/**
|
|
5891
5954
|
* Renews a domain name for one year.
|
|
5892
5955
|
* If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.
|
|
@@ -5897,7 +5960,7 @@ declare class ANS {
|
|
|
5897
5960
|
* @param args.years - The number of years to renew the name. Currently, only one year is permitted.
|
|
5898
5961
|
* @param args.options - Optional transaction options.
|
|
5899
5962
|
*
|
|
5900
|
-
* @returns
|
|
5963
|
+
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
5901
5964
|
*
|
|
5902
5965
|
* @example
|
|
5903
5966
|
* ```typescript
|
|
@@ -5908,7 +5971,7 @@ declare class ANS {
|
|
|
5908
5971
|
*
|
|
5909
5972
|
* async function runExample() {
|
|
5910
5973
|
* // Renew the domain "test" for one year
|
|
5911
|
-
* const transaction = await aptos.renewDomain({
|
|
5974
|
+
* const { transaction, data } = await aptos.renewDomain({
|
|
5912
5975
|
* sender: Account.generate(), // replace with a real account
|
|
5913
5976
|
* name: "test"
|
|
5914
5977
|
* });
|
|
@@ -5920,11 +5983,14 @@ declare class ANS {
|
|
|
5920
5983
|
* @group ANS
|
|
5921
5984
|
*/
|
|
5922
5985
|
renewDomain(args: {
|
|
5923
|
-
sender:
|
|
5986
|
+
sender: AccountAddressInput;
|
|
5924
5987
|
name: string;
|
|
5925
5988
|
years?: 1;
|
|
5926
5989
|
options?: InputGenerateTransactionOptions;
|
|
5927
|
-
}): Promise<
|
|
5990
|
+
}): Promise<{
|
|
5991
|
+
transaction: SimpleTransaction;
|
|
5992
|
+
data: InputEntryFunctionData;
|
|
5993
|
+
}>;
|
|
5928
5994
|
/**
|
|
5929
5995
|
* Fetches a single name from the indexer based on the provided name argument.
|
|
5930
5996
|
*
|
|
@@ -5952,7 +6018,7 @@ declare class ANS {
|
|
|
5952
6018
|
*/
|
|
5953
6019
|
getName(args: {
|
|
5954
6020
|
name: string;
|
|
5955
|
-
}): Promise<
|
|
6021
|
+
}): Promise<AnsName | undefined>;
|
|
5956
6022
|
/**
|
|
5957
6023
|
* Fetches all names for an account, including both top-level domains and subdomains.
|
|
5958
6024
|
*
|
|
@@ -5989,7 +6055,10 @@ declare class ANS {
|
|
|
5989
6055
|
* ```
|
|
5990
6056
|
* @group ANS
|
|
5991
6057
|
*/
|
|
5992
|
-
getAccountNames(args: GetAccountNamesArgs): Promise<
|
|
6058
|
+
getAccountNames(args: GetAccountNamesArgs): Promise<{
|
|
6059
|
+
names: AnsName[];
|
|
6060
|
+
total: number;
|
|
6061
|
+
}>;
|
|
5993
6062
|
/**
|
|
5994
6063
|
* Fetches all top-level domain names for a specified account.
|
|
5995
6064
|
*
|
|
@@ -6029,7 +6098,10 @@ declare class ANS {
|
|
|
6029
6098
|
* ```
|
|
6030
6099
|
* @group ANS
|
|
6031
6100
|
*/
|
|
6032
|
-
getAccountDomains(args: GetAccountDomainsArgs): Promise<
|
|
6101
|
+
getAccountDomains(args: GetAccountDomainsArgs): Promise<{
|
|
6102
|
+
names: AnsName[];
|
|
6103
|
+
total: number;
|
|
6104
|
+
}>;
|
|
6033
6105
|
/**
|
|
6034
6106
|
* Fetches all subdomain names for a specified account.
|
|
6035
6107
|
*
|
|
@@ -6067,7 +6139,10 @@ declare class ANS {
|
|
|
6067
6139
|
* ```
|
|
6068
6140
|
* @group ANS
|
|
6069
6141
|
*/
|
|
6070
|
-
getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<
|
|
6142
|
+
getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<{
|
|
6143
|
+
names: AnsName[];
|
|
6144
|
+
total: number;
|
|
6145
|
+
}>;
|
|
6071
6146
|
/**
|
|
6072
6147
|
* Fetches all subdomain names for a given domain, excluding the domain itself.
|
|
6073
6148
|
*
|
|
@@ -6105,7 +6180,10 @@ declare class ANS {
|
|
|
6105
6180
|
* ```
|
|
6106
6181
|
* @group ANS
|
|
6107
6182
|
*/
|
|
6108
|
-
getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<
|
|
6183
|
+
getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<{
|
|
6184
|
+
names: AnsName[];
|
|
6185
|
+
total: number;
|
|
6186
|
+
}>;
|
|
6109
6187
|
}
|
|
6110
6188
|
|
|
6111
6189
|
/**
|
|
@@ -6958,17 +7036,25 @@ declare class TransactionWorker extends EventEmitter<TransactionWorkerEvents> {
|
|
|
6958
7036
|
*/
|
|
6959
7037
|
outstandingTransactions: AsyncQueue<[Promise<PendingTransactionResponse>, bigint]>;
|
|
6960
7038
|
/**
|
|
6961
|
-
* transactions that have been submitted to chain
|
|
7039
|
+
* transactions that have been submitted to chain.
|
|
7040
|
+
* Limited to MAX_TRANSACTION_HISTORY_SIZE entries to prevent unbounded memory growth.
|
|
6962
7041
|
* @group Implementation
|
|
6963
7042
|
* @category Transactions
|
|
6964
7043
|
*/
|
|
6965
7044
|
sentTransactions: Array<[string, bigint, any]>;
|
|
6966
7045
|
/**
|
|
6967
|
-
* transactions that have been committed to chain
|
|
7046
|
+
* transactions that have been committed to chain.
|
|
7047
|
+
* Limited to MAX_TRANSACTION_HISTORY_SIZE entries to prevent unbounded memory growth.
|
|
6968
7048
|
* @group Implementation
|
|
6969
7049
|
* @category Transactions
|
|
6970
7050
|
*/
|
|
6971
7051
|
executedTransactions: Array<[string, bigint, any]>;
|
|
7052
|
+
/**
|
|
7053
|
+
* Adds a transaction to the history array while enforcing the maximum size limit.
|
|
7054
|
+
* Removes the oldest entries when the limit is exceeded.
|
|
7055
|
+
* @private
|
|
7056
|
+
*/
|
|
7057
|
+
private addToTransactionHistory;
|
|
6972
7058
|
/**
|
|
6973
7059
|
* Initializes a new instance of the class, providing a framework for receiving payloads to be processed.
|
|
6974
7060
|
*
|
|
@@ -8083,6 +8169,11 @@ declare class EphemeralKeyPair extends Serializable {
|
|
|
8083
8169
|
* @category Account (On-Chain Model)
|
|
8084
8170
|
*/
|
|
8085
8171
|
private publicKey;
|
|
8172
|
+
/**
|
|
8173
|
+
* Whether the ephemeral key pair has been cleared from memory.
|
|
8174
|
+
* @private
|
|
8175
|
+
*/
|
|
8176
|
+
private cleared;
|
|
8086
8177
|
/**
|
|
8087
8178
|
* Creates an instance of the class with a specified private key, optional expiry date, and optional blinder.
|
|
8088
8179
|
* This constructor initializes the public key, sets the expiry date to a default value if not provided,
|
|
@@ -8114,6 +8205,25 @@ declare class EphemeralKeyPair extends Serializable {
|
|
|
8114
8205
|
* @category Account (On-Chain Model)
|
|
8115
8206
|
*/
|
|
8116
8207
|
isExpired(): boolean;
|
|
8208
|
+
/**
|
|
8209
|
+
* Clears the ephemeral private key from memory by overwriting it with random bytes.
|
|
8210
|
+
* After calling this method, the ephemeral key pair can no longer be used for signing.
|
|
8211
|
+
*
|
|
8212
|
+
* Note: Due to JavaScript's memory management, this cannot guarantee complete removal of
|
|
8213
|
+
* sensitive data from memory, but it significantly reduces the window of exposure.
|
|
8214
|
+
*
|
|
8215
|
+
* @group Implementation
|
|
8216
|
+
* @category Account (On-Chain Model)
|
|
8217
|
+
*/
|
|
8218
|
+
clear(): void;
|
|
8219
|
+
/**
|
|
8220
|
+
* Returns whether the ephemeral key pair has been cleared from memory.
|
|
8221
|
+
*
|
|
8222
|
+
* @returns true if the key pair has been cleared, false otherwise
|
|
8223
|
+
* @group Implementation
|
|
8224
|
+
* @category Account (On-Chain Model)
|
|
8225
|
+
*/
|
|
8226
|
+
isCleared(): boolean;
|
|
8117
8227
|
/**
|
|
8118
8228
|
* Serializes the object's properties into a format suitable for transmission or storage.
|
|
8119
8229
|
* This function is essential for preparing the object data for serialization processes.
|
|
@@ -8162,7 +8272,7 @@ declare class EphemeralKeyPair extends Serializable {
|
|
|
8162
8272
|
*
|
|
8163
8273
|
* @param data - The data to be signed, provided in HexInput format.
|
|
8164
8274
|
* @returns EphemeralSignature - The resulting ephemeral signature.
|
|
8165
|
-
* @throws Error - Throws an error if the EphemeralKeyPair has expired.
|
|
8275
|
+
* @throws Error - Throws an error if the EphemeralKeyPair has expired or been cleared from memory.
|
|
8166
8276
|
* @group Implementation
|
|
8167
8277
|
* @category Account (On-Chain Model)
|
|
8168
8278
|
*/
|
|
@@ -9346,6 +9456,110 @@ declare class Aptos {
|
|
|
9346
9456
|
interface Aptos extends Account$1, ANS, Coin, DigitalAsset, Faucet, FungibleAsset, General, Keyless, Staking, Table, AptosObject, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
9347
9457
|
}
|
|
9348
9458
|
|
|
9459
|
+
type RawANSName = GetANSNameResponse[0];
|
|
9460
|
+
/**
|
|
9461
|
+
* The token standard for the ANS name. v1 is the original token standard, v2 is
|
|
9462
|
+
* the new token standard. v1 has been deprecated.
|
|
9463
|
+
*/
|
|
9464
|
+
type AnsTokenStandard = "v1" | "v2";
|
|
9465
|
+
/**
|
|
9466
|
+
* Policy for determining how subdomains expire in relation to their parent domain.
|
|
9467
|
+
*/
|
|
9468
|
+
declare enum SubdomainExpirationPolicy {
|
|
9469
|
+
/**
|
|
9470
|
+
* The subdomain will expire independently of the domain. The owner of the
|
|
9471
|
+
* domain can manually set when the subdomain expires.
|
|
9472
|
+
*/
|
|
9473
|
+
Independent = 0,
|
|
9474
|
+
/**
|
|
9475
|
+
* The subdomain will expire at the same time as the domain.
|
|
9476
|
+
*/
|
|
9477
|
+
FollowsDomain = 1
|
|
9478
|
+
}
|
|
9479
|
+
/**
|
|
9480
|
+
* The status of the name.
|
|
9481
|
+
*/
|
|
9482
|
+
declare enum ExpirationStatus {
|
|
9483
|
+
/**
|
|
9484
|
+
* The name no longer functions as a primary or target name. It is open to
|
|
9485
|
+
* being claimed by the public.
|
|
9486
|
+
*/
|
|
9487
|
+
Expired = "expired",
|
|
9488
|
+
/**
|
|
9489
|
+
* The name is past it's expiration date, but only claimable by the current
|
|
9490
|
+
* owner of the name. It does not function as a primary or target name.
|
|
9491
|
+
*/
|
|
9492
|
+
InGracePeriod = "in_grace_period",
|
|
9493
|
+
/**
|
|
9494
|
+
* The name is in good standing.
|
|
9495
|
+
*/
|
|
9496
|
+
Active = "active"
|
|
9497
|
+
}
|
|
9498
|
+
interface AnsName extends RawANSName {
|
|
9499
|
+
/**
|
|
9500
|
+
* The domain name. ie "aptos.apt" would have a domain of "aptos"
|
|
9501
|
+
*/
|
|
9502
|
+
domain: string;
|
|
9503
|
+
/**
|
|
9504
|
+
* The subdomain name, if the name is a subdomain. ie "name.aptos.apt" would have a subdomain of "name"
|
|
9505
|
+
*/
|
|
9506
|
+
subdomain?: string;
|
|
9507
|
+
/**
|
|
9508
|
+
* The expiration timestamp of the name in milliseconds since epoch. Note, if
|
|
9509
|
+
* the name is not a subdomain, this will be the same as the domain expiration
|
|
9510
|
+
* timestamp.
|
|
9511
|
+
*/
|
|
9512
|
+
expiration_timestamp: string;
|
|
9513
|
+
/**
|
|
9514
|
+
* The expiration timestamp of the domain in milliseconds since epoch.
|
|
9515
|
+
*/
|
|
9516
|
+
domain_expiration_timestamp: string;
|
|
9517
|
+
/**
|
|
9518
|
+
* This is a derived date value. It takes into consideration if the name is a
|
|
9519
|
+
* subdomain and its expiration policy.
|
|
9520
|
+
*/
|
|
9521
|
+
expiration: Date;
|
|
9522
|
+
/**
|
|
9523
|
+
* The status of the name's expiration.
|
|
9524
|
+
*
|
|
9525
|
+
* 1. Expired: The name has expired and is no longer resolvable.
|
|
9526
|
+
* 2. InGracePeriod: The name is within the grace period and is still
|
|
9527
|
+
* resolvable if it is renewed.
|
|
9528
|
+
* 3. Active: The name is active and is resolvable.
|
|
9529
|
+
*
|
|
9530
|
+
* @see {@link ExpirationStatus}
|
|
9531
|
+
*/
|
|
9532
|
+
expiration_status: ExpirationStatus;
|
|
9533
|
+
/**
|
|
9534
|
+
* The address that the name points to. For example, if you send a transaction
|
|
9535
|
+
* to "aptos.apt" with a target address of "0x1", the registered_address will
|
|
9536
|
+
* be "0x1".
|
|
9537
|
+
*/
|
|
9538
|
+
registered_address?: string;
|
|
9539
|
+
/**
|
|
9540
|
+
* The token standard for the name. See {@link AnsTokenStandard} for more details.
|
|
9541
|
+
*/
|
|
9542
|
+
token_standard: AnsTokenStandard;
|
|
9543
|
+
/**
|
|
9544
|
+
* If the name is registered as a primary name for _any_ account. It is
|
|
9545
|
+
* possible to have multiple primary names returned in a single query.
|
|
9546
|
+
*/
|
|
9547
|
+
is_primary: boolean;
|
|
9548
|
+
/**
|
|
9549
|
+
* The address of the wallet that owns the name.
|
|
9550
|
+
*/
|
|
9551
|
+
owner_address?: string;
|
|
9552
|
+
/**
|
|
9553
|
+
* The expiration policy for the subdomain. See {@link SubdomainExpirationPolicy} for more details.
|
|
9554
|
+
*/
|
|
9555
|
+
subdomain_expiration_policy: SubdomainExpirationPolicy;
|
|
9556
|
+
/**
|
|
9557
|
+
* Whether the name is in the renewable period. This incorporates leading time
|
|
9558
|
+
* before the name expires and the grace period after the name expires.
|
|
9559
|
+
*/
|
|
9560
|
+
isInRenewablePeriod: boolean;
|
|
9561
|
+
}
|
|
9562
|
+
|
|
9349
9563
|
/**
|
|
9350
9564
|
* This class exists solely to represent a sequence of fixed bytes as a serialized entry function, because
|
|
9351
9565
|
* serializing an entry function appends a prefix that's *only* used for entry function arguments.
|
|
@@ -10085,6 +10299,25 @@ type DeserializableClass<T extends Serializable> = {
|
|
|
10085
10299
|
*/
|
|
10086
10300
|
declare function normalizeBundle<T extends Serializable>(cls: DeserializableClass<T>, value: T): T;
|
|
10087
10301
|
|
|
10302
|
+
/**
|
|
10303
|
+
* Checks if the current runtime environment is Bun.
|
|
10304
|
+
* This is useful for detecting Bun-specific compatibility issues.
|
|
10305
|
+
*
|
|
10306
|
+
* @returns true if running in Bun, false otherwise.
|
|
10307
|
+
* @group Implementation
|
|
10308
|
+
* @category Utils
|
|
10309
|
+
*/
|
|
10310
|
+
declare function isBun(): boolean;
|
|
10311
|
+
/**
|
|
10312
|
+
* Logs a warning message to the console only in development environments.
|
|
10313
|
+
* This function helps reduce information leakage in production while maintaining
|
|
10314
|
+
* helpful warnings during development.
|
|
10315
|
+
*
|
|
10316
|
+
* @param message - The warning message to log.
|
|
10317
|
+
* @group Implementation
|
|
10318
|
+
* @category Utils
|
|
10319
|
+
*/
|
|
10320
|
+
declare function warnIfDevelopment(message: string): void;
|
|
10088
10321
|
/**
|
|
10089
10322
|
* Sleep for the specified amount of time in milliseconds.
|
|
10090
10323
|
* This function can be used to introduce delays in asynchronous operations.
|
|
@@ -10674,4 +10907,4 @@ declare class AptosApiError extends Error {
|
|
|
10674
10907
|
constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
|
|
10675
10908
|
}
|
|
10676
10909
|
|
|
10677
|
-
export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, AbstractKeylessAccount, AbstractPublicKey, AbstractSignature, AbstractedAccount, Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorAbstraction, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorNoAccountAuthenticator, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AccountUtils, AnyNumber, AnyPublicKey, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AuthenticationKey, type BaseAccountPublicKey, Block, Bool, CKDPriv, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, CursorPaginationArgs, DerivableAbstractedAccount, type DerivedKeys, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FederatedKeylessAccount, FederatedKeylessPublicKey, FixedBytes, FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16ProofAndStatement, Groth16VerificationKey, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, I128, I16, I256, I32, I64, I8, InputEntryFunctionDataWithABI, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigDataWithABI, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputTransactionPluginData, InputViewFunctionData, InputViewFunctionDataWithABI, InputViewFunctionDataWithRemoteABI, InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessError, KeylessErrorCategory, KeylessErrorResolutionTip, KeylessErrorType, KeylessPublicKey, KeylessSignature, type KeylessSigner, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, MoveFunction, MoveFunctionId, MoveJWK, MoveModule, MoveModuleBytecode, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentTransaction, MultiEd25519Account, MultiEd25519PublicKey, MultiEd25519Signature, type MultiEd25519SignerConstructorArgs, MultiKey, MultiKeyAccount, MultiKeySignature, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, type PrivateKeyFromDerivationPathArgs, PrivateKeyInput, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RawTransaction, RotationProofChallenge, Secp256r1PrivateKey, Secp256r1PublicKey, Secp256r1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySigner, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type SingleKeySignerOrLegacyEd25519Account, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionInnerPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeArgument, TypeTag, TypeTagParserError, TypeTagParserErrorType, U128, U16, U256, U32, U64, U8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, VerifySignatureArgs, VerifySignatureAsyncArgs, type VerifySingleKeySignatureArgs, ViewFunctionABI, WaitForTransactionOptions, WebAuthnSignature, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosRequest, base64UrlDecode, base64UrlToBytes, bigIntToBytesLE, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertNumber, convertPayloadToInnerPayload, createObjectAddress, createResourceAddress, createTokenAddress, createUserDerivedObjectAddress, deriveKey, deriveTransactionType, deserializePublicKey, deserializeSignature, fetchEntryFunctionAbi, fetchFunctionAbi, fetchJWK, fetchModuleAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getErrorMessage, getFunctionParts, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, getPageWithObfuscatedCursor, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsI128, isBcsI16, isBcsI256, isBcsI32, isBcsI64, isBcsI8, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isKeylessSigner, isLargeNumber, isNumber, isScriptDataInput, isSingleKeySigner, isString, isValidBIP44Path, isValidFunctionInfo, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, padAndPackBytesWithLen, paginateWithCursor, paginateWithObfuscatedCursor, pairedFaMetadataAddress, parseEncodedStruct, parseJwtHeader, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, throwTypeMismatch, truncateAddress, verifyKeylessSignature, verifyKeylessSignatureWithJwkAndConfig };
|
|
10910
|
+
export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, AbstractKeylessAccount, AbstractPublicKey, AbstractSignature, AbstractedAccount, Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorAbstraction, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorNoAccountAuthenticator, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AccountUtils, type AnsName, type AnsTokenStandard, AnyNumber, AnyPublicKey, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AuthenticationKey, type BaseAccountPublicKey, Block, Bool, CKDPriv, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, CursorPaginationArgs, DerivableAbstractedAccount, type DerivedKeys, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, ExpirationStatus, type FailureEventData, FederatedKeylessAccount, FederatedKeylessPublicKey, FixedBytes, FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16ProofAndStatement, Groth16VerificationKey, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, I128, I16, I256, I32, I64, I8, InputEntryFunctionData, InputEntryFunctionDataWithABI, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigDataWithABI, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputTransactionPluginData, InputViewFunctionData, InputViewFunctionDataWithABI, InputViewFunctionDataWithRemoteABI, InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessError, KeylessErrorCategory, KeylessErrorResolutionTip, KeylessErrorType, KeylessPublicKey, KeylessSignature, type KeylessSigner, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, MoveFunction, MoveFunctionId, MoveJWK, MoveModule, MoveModuleBytecode, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentTransaction, MultiEd25519Account, MultiEd25519PublicKey, MultiEd25519Signature, type MultiEd25519SignerConstructorArgs, MultiKey, MultiKeyAccount, MultiKeySignature, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, type PrivateKeyFromDerivationPathArgs, PrivateKeyInput, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, type RawANSName, RawTransaction, RotationProofChallenge, Secp256r1PrivateKey, Secp256r1PublicKey, Secp256r1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySigner, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type SingleKeySignerOrLegacyEd25519Account, SubdomainExpirationPolicy, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionInnerPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeArgument, TypeTag, TypeTagParserError, TypeTagParserErrorType, U128, U16, U256, U32, U64, U8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, VerifySignatureArgs, VerifySignatureAsyncArgs, type VerifySingleKeySignatureArgs, ViewFunctionABI, WaitForTransactionOptions, WebAuthnSignature, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosRequest, base64UrlDecode, base64UrlToBytes, bigIntToBytesLE, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertNumber, convertPayloadToInnerPayload, createObjectAddress, createResourceAddress, createTokenAddress, createUserDerivedObjectAddress, deriveKey, deriveTransactionType, deserializePublicKey, deserializeSignature, fetchEntryFunctionAbi, fetchFunctionAbi, fetchJWK, fetchModuleAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getErrorMessage, getFunctionParts, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, getPageWithObfuscatedCursor, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsI128, isBcsI16, isBcsI256, isBcsI32, isBcsI64, isBcsI8, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isBun, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isKeylessSigner, isLargeNumber, isNumber, isScriptDataInput, isSingleKeySigner, isString, isValidBIP44Path, isValidFunctionInfo, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, padAndPackBytesWithLen, paginateWithCursor, paginateWithObfuscatedCursor, pairedFaMetadataAddress, parseEncodedStruct, parseJwtHeader, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, throwTypeMismatch, truncateAddress, verifyKeylessSignature, verifyKeylessSignatureWithJwkAndConfig, warnIfDevelopment };
|