@aptos-labs/ts-sdk 1.17.0-zeta.1 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/{accountAddress-jP2Ua0t9.d.ts → accountAddress-ccLvlUQe.d.ts} +5 -97
- package/dist/common/chunk-KSEUZTKY.js +2 -0
- package/dist/common/chunk-KSEUZTKY.js.map +1 -0
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/index.d.ts +117 -832
- package/dist/common/index.js +28 -28
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-9zBaZEnp.d.mts → Ed25519Account-B1VMJOY2.d.mts} +1 -1
- package/dist/esm/account/Account.d.mts +2 -2
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +2 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +7 -13
- 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 +2 -9
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.d.mts +3 -3
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +4 -4
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +3 -12
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +0 -20
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +3 -3
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +4 -4
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +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 +2 -10
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.mjs +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 +3 -3
- package/dist/esm/api/transactionSubmission/build.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 +4 -4
- 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 +3 -3
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +3 -3
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/deserializer.d.mts +0 -32
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +0 -42
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-7M6OCGHL.mjs → chunk-2HF2XEHO.mjs} +2 -2
- package/dist/esm/{chunk-BO44HPGU.mjs → chunk-2X7A4HUS.mjs} +2 -2
- package/dist/esm/{chunk-EQF5MW2W.mjs → chunk-337U6Q6K.mjs} +2 -2
- package/dist/esm/{chunk-TUCCV62K.mjs → chunk-35EWRSDK.mjs} +2 -2
- package/dist/esm/{chunk-UMLUOYFK.mjs → chunk-36QXVFR5.mjs} +2 -2
- package/dist/esm/{chunk-UMLUOYFK.mjs.map → chunk-36QXVFR5.mjs.map} +1 -1
- package/dist/esm/{chunk-TCK35M7E.mjs → chunk-3BNA74V5.mjs} +2 -2
- package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
- package/dist/esm/chunk-3JPVQHOR.mjs.map +1 -0
- package/dist/esm/chunk-3N6N3KOS.mjs +2 -0
- package/dist/esm/{chunk-HP6YVTTT.mjs.map → chunk-3N6N3KOS.mjs.map} +1 -1
- package/dist/esm/{chunk-IFAWCHUG.mjs → chunk-3SPIFLBZ.mjs} +2 -2
- package/dist/esm/{chunk-HJAB473N.mjs → chunk-3XFID2N4.mjs} +2 -2
- package/dist/esm/{chunk-OHZHYL3E.mjs → chunk-47IIBESV.mjs} +2 -2
- package/dist/esm/{chunk-T5YEMU53.mjs → chunk-4GWNWSZP.mjs} +2 -2
- package/dist/esm/chunk-4NHWV5AI.mjs +2 -0
- package/dist/esm/chunk-53INTTOI.mjs +2 -0
- package/dist/esm/{chunk-EFMAZTIM.mjs → chunk-5EN52MUT.mjs} +2 -2
- package/dist/esm/{chunk-QFVQSFBZ.mjs → chunk-5UKBTF7N.mjs} +2 -2
- package/dist/esm/chunk-6IFMQ5AS.mjs +2 -0
- package/dist/esm/chunk-6IFMQ5AS.mjs.map +1 -0
- package/dist/esm/{chunk-P67NJHS5.mjs → chunk-6YV3366Z.mjs} +2 -2
- package/dist/esm/{chunk-DJPYZIJY.mjs → chunk-73QJNN7O.mjs} +2 -2
- package/dist/esm/chunk-746MU2AB.mjs +2 -0
- package/dist/esm/chunk-746MU2AB.mjs.map +1 -0
- package/dist/esm/chunk-AF5WNJOP.mjs +2 -0
- package/dist/esm/{chunk-YRUF6N3U.mjs → chunk-AHW3SKT7.mjs} +2 -2
- package/dist/esm/chunk-AQAH67IV.mjs +2 -0
- package/dist/esm/chunk-B7X6PSE7.mjs +2 -0
- package/dist/esm/{chunk-5UXARGTJ.mjs → chunk-BBVIJO6X.mjs} +2 -2
- package/dist/esm/{chunk-AOCNYMMX.mjs → chunk-BCUSI3N6.mjs} +2 -2
- package/dist/esm/{chunk-WIYDJE6F.mjs → chunk-BEVXJJJF.mjs} +2 -2
- package/dist/esm/chunk-BRVWHCP3.mjs +2 -0
- package/dist/esm/{chunk-2G4IGSGM.mjs.map → chunk-BRVWHCP3.mjs.map} +1 -1
- package/dist/esm/chunk-BSVNV6SJ.mjs +2 -0
- package/dist/esm/{chunk-PBMSO6WI.mjs → chunk-CE65OKFI.mjs} +2 -2
- package/dist/esm/chunk-CEHCDA3G.mjs +2 -0
- package/dist/esm/{chunk-5C5GZJ57.mjs → chunk-CT2BQQTZ.mjs} +2 -2
- package/dist/esm/chunk-CYNQRMO5.mjs +2 -0
- package/dist/esm/chunk-CYNQRMO5.mjs.map +1 -0
- package/dist/esm/{chunk-YA4XTZNZ.mjs → chunk-CZOD4SCZ.mjs} +2 -2
- package/dist/esm/chunk-D2LNQMKD.mjs +2 -0
- package/dist/esm/chunk-D2LNQMKD.mjs.map +1 -0
- package/dist/esm/chunk-DLAIJ2UM.mjs +2 -0
- package/dist/esm/chunk-DLAIJ2UM.mjs.map +1 -0
- package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
- package/dist/esm/{chunk-2H24BEJI.mjs → chunk-FAFJKSVZ.mjs} +2 -2
- package/dist/esm/{chunk-ET4WC6TJ.mjs → chunk-G2UPF44Z.mjs} +2 -2
- package/dist/esm/{chunk-ZIDLP5MI.mjs → chunk-G2XVNF2T.mjs} +2 -2
- package/dist/esm/{chunk-FGGRPEQ3.mjs → chunk-G56GPLTB.mjs} +2 -2
- package/dist/esm/{chunk-6FBKUTGF.mjs → chunk-GHYE26Q5.mjs} +2 -2
- package/dist/esm/{chunk-IXFYYWAC.mjs → chunk-GM56MMNJ.mjs} +2 -2
- package/dist/esm/{chunk-Y4E6NTAS.mjs → chunk-HLC4HAYY.mjs} +2 -2
- package/dist/esm/chunk-HYCGMFC2.mjs +2 -0
- package/dist/esm/chunk-HYCGMFC2.mjs.map +1 -0
- package/dist/esm/chunk-IENCDVPF.mjs +2 -0
- package/dist/esm/chunk-IENCDVPF.mjs.map +1 -0
- package/dist/esm/{chunk-FNFQA7NS.mjs → chunk-ISIUQQMV.mjs} +2 -2
- package/dist/esm/{chunk-KGKEU2WI.mjs → chunk-J4VNDDKJ.mjs} +2 -2
- package/dist/esm/{chunk-MNTLX37G.mjs → chunk-J4Z6XR5D.mjs} +2 -2
- package/dist/esm/{chunk-U2R36WTE.mjs → chunk-J5I4OZAS.mjs} +2 -2
- package/dist/esm/{chunk-5X5GQF3E.mjs → chunk-J6HKAEKY.mjs} +2 -2
- package/dist/esm/{chunk-YDNOKWV3.mjs → chunk-JX75UKJX.mjs} +2 -2
- package/dist/esm/{chunk-DPWEHSHH.mjs → chunk-KAGLWBIJ.mjs} +2 -2
- package/dist/esm/{chunk-ZMHGGT4E.mjs → chunk-KZZWY4YI.mjs} +2 -2
- package/dist/esm/chunk-LG7RJQ57.mjs +2 -0
- package/dist/esm/{chunk-JLXE5JF6.mjs → chunk-LGNSPATO.mjs} +2 -2
- package/dist/esm/{chunk-SNDFJWYM.mjs → chunk-MCRRHBFQ.mjs} +2 -2
- package/dist/esm/chunk-MM5VMKFE.mjs +2 -0
- package/dist/esm/chunk-MM5VMKFE.mjs.map +1 -0
- package/dist/esm/chunk-N3U47Y6Y.mjs +2 -0
- package/dist/esm/{chunk-J7HG6SQO.mjs → chunk-ND6OMSQU.mjs} +2 -2
- package/dist/esm/{chunk-TAT3K5M7.mjs → chunk-NUK6JT5I.mjs} +2 -2
- package/dist/esm/chunk-OWW6SIDP.mjs +2 -0
- package/dist/esm/chunk-OWW6SIDP.mjs.map +1 -0
- package/dist/esm/chunk-PF57EOJY.mjs +2 -0
- package/dist/esm/{chunk-ZV5MKFV7.mjs → chunk-PIVZMT5D.mjs} +2 -2
- package/dist/esm/{chunk-FR6UGCOX.mjs → chunk-PZ4SAXY7.mjs} +2 -2
- package/dist/esm/chunk-PZ4SAXY7.mjs.map +1 -0
- package/dist/esm/{chunk-F3ZVWLDH.mjs → chunk-QRS4DGP3.mjs} +2 -2
- package/dist/esm/{chunk-F3ZVWLDH.mjs.map → chunk-QRS4DGP3.mjs.map} +1 -1
- package/dist/esm/{chunk-MRUDDEJ3.mjs → chunk-R5VVKRJ2.mjs} +2 -2
- package/dist/esm/{chunk-KDLQ2V3L.mjs → chunk-RNL5TAQT.mjs} +2 -2
- package/dist/esm/chunk-ROXFCLDT.mjs +2 -0
- package/dist/esm/{chunk-R5THMTSP.mjs → chunk-RPND23OR.mjs} +2 -2
- package/dist/esm/chunk-RTSWVT2Q.mjs +2 -0
- package/dist/esm/chunk-RTSWVT2Q.mjs.map +1 -0
- package/dist/esm/{chunk-XH33BXEY.mjs → chunk-RWXHA4QZ.mjs} +2 -2
- package/dist/esm/chunk-SRDIYE3M.mjs +2 -0
- package/dist/esm/{chunk-IBN7ETCB.mjs.map → chunk-SRDIYE3M.mjs.map} +1 -1
- package/dist/esm/chunk-SUAMDMAA.mjs +2 -0
- package/dist/esm/{chunk-3SACE4I2.mjs.map → chunk-SUAMDMAA.mjs.map} +1 -1
- package/dist/esm/{chunk-XVZBWW46.mjs → chunk-T2AGN5YT.mjs} +2 -2
- package/dist/esm/{chunk-ASK3DESW.mjs → chunk-TQLED4KC.mjs} +2 -2
- package/dist/esm/{chunk-MLX6DFMR.mjs → chunk-U3YYSIIT.mjs} +2 -2
- package/dist/esm/chunk-UGPALAPN.mjs +2 -0
- package/dist/esm/chunk-UO3NZ5AH.mjs +1 -0
- package/dist/esm/chunk-UTKM2WYS.mjs +2 -0
- package/dist/esm/chunk-UTKM2WYS.mjs.map +1 -0
- package/dist/esm/chunk-UVSRX4SV.mjs +1 -0
- package/dist/esm/chunk-W33BZ6IQ.mjs +2 -0
- package/dist/esm/chunk-W33BZ6IQ.mjs.map +1 -0
- package/dist/esm/{chunk-O6QLAP7N.mjs → chunk-YR7JRJ25.mjs} +2 -2
- package/dist/esm/{chunk-3AIEYUPP.mjs → chunk-ZHCSSCC5.mjs} +2 -2
- package/dist/esm/{chunk-L5ZHZWHI.mjs → chunk-ZRKXS7XG.mjs} +2 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +1 -8
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +1 -9
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/client/types.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.mjs +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/common.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/index.d.mts +1 -7
- package/dist/esm/core/crypto/index.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/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/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/utils.mjs +1 -1
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +1 -7
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +6 -14
- package/dist/esm/index.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 +2 -2
- 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/event.mjs +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.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.mjs +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/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.mjs +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.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +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.mjs +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 +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 +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -4
- 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.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +1 -1
- package/dist/esm/types/index.d.mts +5 -21
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/utils/apiEndpoints.d.mts +1 -3
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +1 -3
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +1 -4
- 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.mjs +1 -1
- package/package.json +4 -11
- package/src/account/MultiKeyAccount.ts +0 -11
- package/src/account/index.ts +0 -2
- package/src/api/aptos.ts +0 -6
- package/src/api/aptosConfig.ts +1 -46
- package/src/bcs/deserializer.ts +0 -46
- package/src/bcs/serializer.ts +0 -58
- package/src/client/core.ts +0 -4
- package/src/client/get.ts +0 -12
- package/src/client/post.ts +0 -18
- package/src/core/crypto/index.ts +0 -2
- package/src/core/crypto/singleKey.ts +0 -11
- package/src/internal/transactionSubmission.ts +1 -6
- package/src/transactions/management/accountSequenceNumber.ts +8 -5
- package/src/transactions/transactionBuilder/signingMessage.ts +1 -4
- package/src/transactions/transactionBuilder/transactionBuilder.ts +1 -17
- package/src/types/index.ts +2 -24
- package/src/utils/apiEndpoints.ts +0 -16
- package/src/utils/const.ts +0 -2
- package/src/utils/helpers.ts +0 -22
- package/dist/common/chunk-BHKSQXUZ.js +0 -2
- package/dist/common/chunk-BHKSQXUZ.js.map +0 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +0 -90
- package/dist/esm/account/EphemeralKeyPair.mjs +0 -2
- package/dist/esm/account/KeylessAccount.d.mts +0 -206
- package/dist/esm/account/KeylessAccount.mjs +0 -2
- package/dist/esm/api/keyless.d.mts +0 -85
- package/dist/esm/api/keyless.mjs +0 -2
- package/dist/esm/api/keyless.mjs.map +0 -1
- package/dist/esm/chunk-2G4IGSGM.mjs +0 -2
- package/dist/esm/chunk-37FFZSIM.mjs +0 -2
- package/dist/esm/chunk-37FFZSIM.mjs.map +0 -1
- package/dist/esm/chunk-3IFR6T3V.mjs +0 -2
- package/dist/esm/chunk-3IFR6T3V.mjs.map +0 -1
- package/dist/esm/chunk-3RJZNUCQ.mjs +0 -2
- package/dist/esm/chunk-3SACE4I2.mjs +0 -2
- package/dist/esm/chunk-472OGHMG.mjs +0 -2
- package/dist/esm/chunk-474YDCFP.mjs +0 -2
- package/dist/esm/chunk-474YDCFP.mjs.map +0 -1
- package/dist/esm/chunk-4CUDBBTC.mjs +0 -2
- package/dist/esm/chunk-4CUDBBTC.mjs.map +0 -1
- package/dist/esm/chunk-4VPCPASN.mjs +0 -2
- package/dist/esm/chunk-4W7T4HRZ.mjs +0 -2
- package/dist/esm/chunk-4W7T4HRZ.mjs.map +0 -1
- package/dist/esm/chunk-54LCK6EN.mjs +0 -2
- package/dist/esm/chunk-54LCK6EN.mjs.map +0 -1
- package/dist/esm/chunk-5SEAQESO.mjs +0 -2
- package/dist/esm/chunk-5SEAQESO.mjs.map +0 -1
- package/dist/esm/chunk-7BW2N4IE.mjs +0 -2
- package/dist/esm/chunk-7Z6DYLCA.mjs +0 -1
- package/dist/esm/chunk-7Z6DYLCA.mjs.map +0 -1
- package/dist/esm/chunk-AQ4I7VVB.mjs +0 -1
- package/dist/esm/chunk-AQ4I7VVB.mjs.map +0 -1
- package/dist/esm/chunk-CKQ74DYE.mjs +0 -2
- package/dist/esm/chunk-CKQ74DYE.mjs.map +0 -1
- package/dist/esm/chunk-FBPNHF54.mjs +0 -2
- package/dist/esm/chunk-FIG65OJD.mjs +0 -2
- package/dist/esm/chunk-FR6UGCOX.mjs.map +0 -1
- package/dist/esm/chunk-GRHLQDHF.mjs +0 -2
- package/dist/esm/chunk-GSCM444Z.mjs +0 -2
- package/dist/esm/chunk-HP6YVTTT.mjs +0 -2
- package/dist/esm/chunk-IBDBKQMF.mjs +0 -2
- package/dist/esm/chunk-IBDBKQMF.mjs.map +0 -1
- package/dist/esm/chunk-IBN7ETCB.mjs +0 -2
- package/dist/esm/chunk-IEVABWIO.mjs +0 -2
- package/dist/esm/chunk-IEVABWIO.mjs.map +0 -1
- package/dist/esm/chunk-IT7YNITU.mjs +0 -2
- package/dist/esm/chunk-IVVWQKCF.mjs +0 -2
- package/dist/esm/chunk-IVVWQKCF.mjs.map +0 -1
- package/dist/esm/chunk-L5CPAOUM.mjs +0 -2
- package/dist/esm/chunk-L5CPAOUM.mjs.map +0 -1
- package/dist/esm/chunk-M3KFXIQ6.mjs +0 -2
- package/dist/esm/chunk-M3KFXIQ6.mjs.map +0 -1
- package/dist/esm/chunk-NMD45OTM.mjs +0 -2
- package/dist/esm/chunk-NMD45OTM.mjs.map +0 -1
- package/dist/esm/chunk-NW3WUTTD.mjs +0 -2
- package/dist/esm/chunk-Q6LFIZ3L.mjs +0 -2
- package/dist/esm/chunk-Q6LFIZ3L.mjs.map +0 -1
- package/dist/esm/chunk-SCHZ67F3.mjs +0 -2
- package/dist/esm/chunk-SCHZ67F3.mjs.map +0 -1
- package/dist/esm/chunk-TJDC5PWD.mjs +0 -2
- package/dist/esm/chunk-U5F4NL24.mjs +0 -2
- package/dist/esm/chunk-VAKWRPVP.mjs +0 -2
- package/dist/esm/chunk-VAKWRPVP.mjs.map +0 -1
- package/dist/esm/chunk-VJFCEX7W.mjs +0 -2
- package/dist/esm/chunk-VJFCEX7W.mjs.map +0 -1
- package/dist/esm/chunk-WA2NTBYY.mjs +0 -2
- package/dist/esm/chunk-XBVVP7O2.mjs +0 -2
- package/dist/esm/chunk-XBVVP7O2.mjs.map +0 -1
- package/dist/esm/chunk-YD5IB4TH.mjs +0 -2
- package/dist/esm/chunk-YD5IB4TH.mjs.map +0 -1
- package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
- package/dist/esm/chunk-YE5B2S5L.mjs.map +0 -1
- package/dist/esm/chunk-YTQVMLFD.mjs +0 -2
- package/dist/esm/chunk-YTQVMLFD.mjs.map +0 -1
- package/dist/esm/core/crypto/cryptoHashable.d.mts +0 -21
- package/dist/esm/core/crypto/cryptoHashable.mjs +0 -2
- package/dist/esm/core/crypto/cryptoHashable.mjs.map +0 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +0 -73
- package/dist/esm/core/crypto/ephemeral.mjs +0 -2
- package/dist/esm/core/crypto/ephemeral.mjs.map +0 -1
- package/dist/esm/core/crypto/keyless.d.mts +0 -321
- package/dist/esm/core/crypto/keyless.mjs +0 -2
- package/dist/esm/core/crypto/keyless.mjs.map +0 -1
- package/dist/esm/core/crypto/poseidon.d.mts +0 -19
- package/dist/esm/core/crypto/poseidon.mjs +0 -2
- package/dist/esm/core/crypto/poseidon.mjs.map +0 -1
- package/dist/esm/core/crypto/proof.d.mts +0 -21
- package/dist/esm/core/crypto/proof.mjs +0 -2
- package/dist/esm/core/crypto/proof.mjs.map +0 -1
- package/dist/esm/internal/keyless.d.mts +0 -73
- package/dist/esm/internal/keyless.mjs +0 -2
- package/dist/esm/internal/keyless.mjs.map +0 -1
- package/dist/esm/types/keyless.d.mts +0 -52
- package/dist/esm/types/keyless.mjs +0 -1
- package/dist/esm/types/keyless.mjs.map +0 -1
- package/src/account/EphemeralKeyPair.ts +0 -158
- package/src/account/KeylessAccount.ts +0 -360
- package/src/api/keyless.ts +0 -51
- package/src/core/crypto/cryptoHashable.ts +0 -16
- package/src/core/crypto/ephemeral.ts +0 -138
- package/src/core/crypto/keyless.ts +0 -679
- package/src/core/crypto/poseidon.ts +0 -144
- package/src/core/crypto/proof.ts +0 -16
- package/src/internal/keyless.ts +0 -121
- package/src/types/keyless.ts +0 -42
- /package/dist/esm/{chunk-7M6OCGHL.mjs.map → chunk-2HF2XEHO.mjs.map} +0 -0
- /package/dist/esm/{chunk-BO44HPGU.mjs.map → chunk-2X7A4HUS.mjs.map} +0 -0
- /package/dist/esm/{chunk-EQF5MW2W.mjs.map → chunk-337U6Q6K.mjs.map} +0 -0
- /package/dist/esm/{chunk-TUCCV62K.mjs.map → chunk-35EWRSDK.mjs.map} +0 -0
- /package/dist/esm/{chunk-TCK35M7E.mjs.map → chunk-3BNA74V5.mjs.map} +0 -0
- /package/dist/esm/{chunk-IFAWCHUG.mjs.map → chunk-3SPIFLBZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-HJAB473N.mjs.map → chunk-3XFID2N4.mjs.map} +0 -0
- /package/dist/esm/{chunk-OHZHYL3E.mjs.map → chunk-47IIBESV.mjs.map} +0 -0
- /package/dist/esm/{chunk-T5YEMU53.mjs.map → chunk-4GWNWSZP.mjs.map} +0 -0
- /package/dist/esm/{chunk-WA2NTBYY.mjs.map → chunk-4NHWV5AI.mjs.map} +0 -0
- /package/dist/esm/{chunk-472OGHMG.mjs.map → chunk-53INTTOI.mjs.map} +0 -0
- /package/dist/esm/{chunk-EFMAZTIM.mjs.map → chunk-5EN52MUT.mjs.map} +0 -0
- /package/dist/esm/{chunk-QFVQSFBZ.mjs.map → chunk-5UKBTF7N.mjs.map} +0 -0
- /package/dist/esm/{chunk-P67NJHS5.mjs.map → chunk-6YV3366Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-DJPYZIJY.mjs.map → chunk-73QJNN7O.mjs.map} +0 -0
- /package/dist/esm/{chunk-FIG65OJD.mjs.map → chunk-AF5WNJOP.mjs.map} +0 -0
- /package/dist/esm/{chunk-YRUF6N3U.mjs.map → chunk-AHW3SKT7.mjs.map} +0 -0
- /package/dist/esm/{chunk-U5F4NL24.mjs.map → chunk-AQAH67IV.mjs.map} +0 -0
- /package/dist/esm/{chunk-GSCM444Z.mjs.map → chunk-B7X6PSE7.mjs.map} +0 -0
- /package/dist/esm/{chunk-5UXARGTJ.mjs.map → chunk-BBVIJO6X.mjs.map} +0 -0
- /package/dist/esm/{chunk-AOCNYMMX.mjs.map → chunk-BCUSI3N6.mjs.map} +0 -0
- /package/dist/esm/{chunk-WIYDJE6F.mjs.map → chunk-BEVXJJJF.mjs.map} +0 -0
- /package/dist/esm/{chunk-IT7YNITU.mjs.map → chunk-BSVNV6SJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-PBMSO6WI.mjs.map → chunk-CE65OKFI.mjs.map} +0 -0
- /package/dist/esm/{chunk-7BW2N4IE.mjs.map → chunk-CEHCDA3G.mjs.map} +0 -0
- /package/dist/esm/{chunk-5C5GZJ57.mjs.map → chunk-CT2BQQTZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-YA4XTZNZ.mjs.map → chunk-CZOD4SCZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-TJDC5PWD.mjs.map → chunk-F7EMGK4M.mjs.map} +0 -0
- /package/dist/esm/{chunk-2H24BEJI.mjs.map → chunk-FAFJKSVZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-ET4WC6TJ.mjs.map → chunk-G2UPF44Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZIDLP5MI.mjs.map → chunk-G2XVNF2T.mjs.map} +0 -0
- /package/dist/esm/{chunk-FGGRPEQ3.mjs.map → chunk-G56GPLTB.mjs.map} +0 -0
- /package/dist/esm/{chunk-6FBKUTGF.mjs.map → chunk-GHYE26Q5.mjs.map} +0 -0
- /package/dist/esm/{chunk-IXFYYWAC.mjs.map → chunk-GM56MMNJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y4E6NTAS.mjs.map → chunk-HLC4HAYY.mjs.map} +0 -0
- /package/dist/esm/{chunk-FNFQA7NS.mjs.map → chunk-ISIUQQMV.mjs.map} +0 -0
- /package/dist/esm/{chunk-KGKEU2WI.mjs.map → chunk-J4VNDDKJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-MNTLX37G.mjs.map → chunk-J4Z6XR5D.mjs.map} +0 -0
- /package/dist/esm/{chunk-U2R36WTE.mjs.map → chunk-J5I4OZAS.mjs.map} +0 -0
- /package/dist/esm/{chunk-5X5GQF3E.mjs.map → chunk-J6HKAEKY.mjs.map} +0 -0
- /package/dist/esm/{chunk-YDNOKWV3.mjs.map → chunk-JX75UKJX.mjs.map} +0 -0
- /package/dist/esm/{chunk-DPWEHSHH.mjs.map → chunk-KAGLWBIJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZMHGGT4E.mjs.map → chunk-KZZWY4YI.mjs.map} +0 -0
- /package/dist/esm/{chunk-FBPNHF54.mjs.map → chunk-LG7RJQ57.mjs.map} +0 -0
- /package/dist/esm/{chunk-JLXE5JF6.mjs.map → chunk-LGNSPATO.mjs.map} +0 -0
- /package/dist/esm/{chunk-SNDFJWYM.mjs.map → chunk-MCRRHBFQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-GRHLQDHF.mjs.map → chunk-N3U47Y6Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-J7HG6SQO.mjs.map → chunk-ND6OMSQU.mjs.map} +0 -0
- /package/dist/esm/{chunk-TAT3K5M7.mjs.map → chunk-NUK6JT5I.mjs.map} +0 -0
- /package/dist/esm/{chunk-NW3WUTTD.mjs.map → chunk-PF57EOJY.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZV5MKFV7.mjs.map → chunk-PIVZMT5D.mjs.map} +0 -0
- /package/dist/esm/{chunk-MRUDDEJ3.mjs.map → chunk-R5VVKRJ2.mjs.map} +0 -0
- /package/dist/esm/{chunk-KDLQ2V3L.mjs.map → chunk-RNL5TAQT.mjs.map} +0 -0
- /package/dist/esm/{chunk-3RJZNUCQ.mjs.map → chunk-ROXFCLDT.mjs.map} +0 -0
- /package/dist/esm/{chunk-R5THMTSP.mjs.map → chunk-RPND23OR.mjs.map} +0 -0
- /package/dist/esm/{chunk-XH33BXEY.mjs.map → chunk-RWXHA4QZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-XVZBWW46.mjs.map → chunk-T2AGN5YT.mjs.map} +0 -0
- /package/dist/esm/{chunk-ASK3DESW.mjs.map → chunk-TQLED4KC.mjs.map} +0 -0
- /package/dist/esm/{chunk-MLX6DFMR.mjs.map → chunk-U3YYSIIT.mjs.map} +0 -0
- /package/dist/esm/{chunk-4VPCPASN.mjs.map → chunk-UGPALAPN.mjs.map} +0 -0
- /package/dist/esm/{account/EphemeralKeyPair.mjs.map → chunk-UO3NZ5AH.mjs.map} +0 -0
- /package/dist/esm/{account/KeylessAccount.mjs.map → chunk-UVSRX4SV.mjs.map} +0 -0
- /package/dist/esm/{chunk-O6QLAP7N.mjs.map → chunk-YR7JRJ25.mjs.map} +0 -0
- /package/dist/esm/{chunk-3AIEYUPP.mjs.map → chunk-ZHCSSCC5.mjs.map} +0 -0
- /package/dist/esm/{chunk-L5ZHZWHI.mjs.map → chunk-ZRKXS7XG.mjs.map} +0 -0
- /package/dist/esm/{publicKey-lq5djCIY.d.mts → publicKey-B3XRNhHO.d.mts} +0 -0
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant,
|
|
2
|
-
export {
|
|
1
|
+
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, N as Network, C as Client, i as ClientConfig, F as FullNodeConfig, I as IndexerConfig, j as FaucetConfig, k as AptosSettings, M as MoveModuleId, l as ScriptFunctionArgument, m as MoveFunctionId, n as AccountAddressInput, o as MoveFunctionGenericTypeParam, p as SigningSchemeInput, q as SigningScheme, r as AccountData, P as PaginationArgs, L as LedgerVersionArg, s as MoveModuleBytecode, t as TransactionResponse, u as MoveResource, v as MoveStructId, w as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, x as GetAccountOwnedTokensFromCollectionResponse, y as GetAccountCollectionsWithOwnedTokenResponse, z as GetAccountCoinsDataResponse, W as WhereArg, B as GetAccountOwnedObjectsResponse, J as GetCollectionDataResponse, K as GetTokenDataResponse, Q as GetCurrentTokenOwnershipResponse, R as GetOwnedTokensResponse, V as GetTokenActivityResponse, X as GetEventsResponse, Y as WaitForTransactionOptions, Z as UserTransactionResponse, _ as MoveFunction, $ as GetFungibleAssetMetadataResponse, a0 as GetFungibleAssetActivitiesResponse, a1 as GetCurrentFungibleAssetBalancesResponse, a2 as LedgerInfo, a3 as Block, a4 as MoveValue, a5 as GetChainTopUserTransactionsResponse, a6 as GraphqlQuery, a7 as GetProcessorStatusResponse, a8 as GetANSNameResponse, a9 as GetNumberOfDelegatorsResponse, aa as GetDelegatedStakingActivitiesResponse, ab as PendingTransactionResponse, ac as CommittedTransactionResponse, ad as GasEstimation, ae as TableItemRequest, af as GetTableItemsDataResponse, ag as GetTableItemsMetadataResponse, ah as AptosRequest, ai as ClientRequest, aj as ClientResponse, ak as MimeType } from './accountAddress-ccLvlUQe.js';
|
|
2
|
+
export { ax as AccountAuthenticatorVariant, bc as AccountSignature, ao as AddressInvalidReason, ay as AnySignatureVariant, aL as BlockMetadataTransactionResponse, aC as ClientHeadersType, aV as DecodedTableData, aW as DeletedTableData, bz as DeriveScheme, bf as DirectWriteSet, aY as EntryFunctionPayloadResponse, bh as Event, bg as EventGuid, bC as GenerateAccount, bA as GenerateAccountWithEd25519, bB as GenerateAccountWithSingleSignerSecp256k1Key, a$ as GenesisPayload, aK as GenesisTransactionResponse, ar as HexInvalidReason, bu as MoveAbility, bo as MoveAddressType, bt as MoveFunctionVisibility, bw as MoveModule, bp as MoveObjectType, bq as MoveOptionType, b0 as MoveScriptBytecode, bx as MoveStruct, bv as MoveStructField, br as MoveStructType, bs as MoveType, bm as MoveUint128Type, bj as MoveUint16Type, bn as MoveUint256Type, bk as MoveUint32Type, bl as MoveUint64Type, bi as MoveUint8Type, a_ as MultisigPayloadResponse, bJ as NetworkToChainId, bI as NetworkToFaucetAPI, bG as NetworkToIndexerAPI, bK as NetworkToNetworkName, bH as NetworkToNodeAPI, bD as OrderBy, bE as OrderByValue, ap as ParsingError, aq as ParsingResult, by as RoleType, aZ as ScriptPayloadResponse, at as ScriptTransactionArgumentVariants, be as ScriptWriteSet, aM as StateCheckpointTransactionResponse, bF as TokenStandard, aw as TransactionAuthenticatorVariant, b7 as TransactionEd25519Signature, bb as TransactionFeePayerSignature, ba as TransactionMultiAgentSignature, b9 as TransactionMultiEd25519Signature, aX as TransactionPayloadResponse, au as TransactionPayloadVariants, aD as TransactionResponseType, b8 as TransactionSecp256k1Signature, b1 as TransactionSignature, av as TransactionVariants, as as TypeTagVariants, aA as Uint128, aB as Uint256, az as Uint64, aN as ValidatorTransactionResponse, bd as WriteSet, aO as WriteSetChange, aP as WriteSetChangeDeleteModule, aQ as WriteSetChangeDeleteResource, aR as WriteSetChangeDeleteTableItem, aS as WriteSetChangeWriteModule, aT as WriteSetChangeWriteResource, aU as WriteSetChangeWriteTableItem, al as ensureBoolean, aH as isBlockMetadataTransactionResponse, b2 as isEd25519Signature, b5 as isFeePayerSignature, aG as isGenesisTransactionResponse, b4 as isMultiAgentSignature, b6 as isMultiEd25519Signature, aE as isPendingTransactionResponse, b3 as isSecp256k1Signature, aI as isStateCheckpointTransactionResponse, aF as isUserTransactionResponse, aJ as isValidatorTransactionResponse, am as outOfRangeErrorMessage, an as validateNumberInRange } from './accountAddress-ccLvlUQe.js';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
type Maybe<T> = T | null;
|
|
@@ -1367,519 +1367,6 @@ declare class MultiKeySignature extends Signature {
|
|
|
1367
1367
|
static deserialize(deserializer: Deserializer): MultiKeySignature;
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
|
-
/**
|
|
1371
|
-
* Represents ephemeral public keys for Aptos Keyless accounts.
|
|
1372
|
-
*
|
|
1373
|
-
* These are not public keys used as a public key on an account. They are only used ephemerally on Keyless accounts.
|
|
1374
|
-
*/
|
|
1375
|
-
declare class EphemeralPublicKey extends PublicKey {
|
|
1376
|
-
/**
|
|
1377
|
-
* The public key itself
|
|
1378
|
-
*/
|
|
1379
|
-
readonly publicKey: PublicKey;
|
|
1380
|
-
/**
|
|
1381
|
-
* An enum indicating the scheme of the ephemeral public key
|
|
1382
|
-
*/
|
|
1383
|
-
readonly variant: EphemeralPublicKeyVariant;
|
|
1384
|
-
constructor(publicKey: PublicKey);
|
|
1385
|
-
/**
|
|
1386
|
-
* Get the public key in bytes (Uint8Array).
|
|
1387
|
-
*
|
|
1388
|
-
* @returns Uint8Array representation of the public key
|
|
1389
|
-
*/
|
|
1390
|
-
toUint8Array(): Uint8Array;
|
|
1391
|
-
/**
|
|
1392
|
-
* Verifies a signed data with a the ephemeral public key
|
|
1393
|
-
*
|
|
1394
|
-
* @param args.message message
|
|
1395
|
-
* @param args.signature The signature that was signed by the private key of the ephemeral public key
|
|
1396
|
-
* @returns true if the signature is valid
|
|
1397
|
-
*/
|
|
1398
|
-
verifySignature(args: {
|
|
1399
|
-
message: HexInput;
|
|
1400
|
-
signature: EphemeralSignature;
|
|
1401
|
-
}): boolean;
|
|
1402
|
-
serialize(serializer: Serializer): void;
|
|
1403
|
-
static deserialize(deserializer: Deserializer): EphemeralPublicKey;
|
|
1404
|
-
static isPublicKey(publicKey: PublicKey): publicKey is EphemeralPublicKey;
|
|
1405
|
-
}
|
|
1406
|
-
/**
|
|
1407
|
-
* Represents ephemeral signatures used in Aptos Keyless accounts.
|
|
1408
|
-
*
|
|
1409
|
-
* These signatures are used inside of KeylessSignature
|
|
1410
|
-
*/
|
|
1411
|
-
declare class EphemeralSignature extends Signature {
|
|
1412
|
-
/**
|
|
1413
|
-
* The signature signed by the private key of an EphemeralKeyPair
|
|
1414
|
-
*/
|
|
1415
|
-
readonly signature: Signature;
|
|
1416
|
-
constructor(signature: Signature);
|
|
1417
|
-
/**
|
|
1418
|
-
* Get the public key in bytes (Uint8Array).
|
|
1419
|
-
*
|
|
1420
|
-
* @returns Uint8Array representation of the public key
|
|
1421
|
-
*/
|
|
1422
|
-
toUint8Array(): Uint8Array;
|
|
1423
|
-
static fromHex(hexInput: HexInput): EphemeralSignature;
|
|
1424
|
-
serialize(serializer: Serializer): void;
|
|
1425
|
-
static deserialize(deserializer: Deserializer): EphemeralSignature;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
/**
|
|
1429
|
-
* An abstract representation of a crypto proof.
|
|
1430
|
-
* associated to a specific zero knowledge proof schemes e.g. Groth16, PLONK
|
|
1431
|
-
*/
|
|
1432
|
-
declare abstract class Proof extends Serializable {
|
|
1433
|
-
/**
|
|
1434
|
-
* Get the proof as a hex string with a 0x prefix e.g. 0x123456...
|
|
1435
|
-
*/
|
|
1436
|
-
toString(): string;
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
type Groth16VerificationKeyResponse = {
|
|
1440
|
-
alpha_g1: string;
|
|
1441
|
-
beta_g2: string;
|
|
1442
|
-
delta_g2: string;
|
|
1443
|
-
gamma_abc_g1: [string, string];
|
|
1444
|
-
gamma_g2: string;
|
|
1445
|
-
};
|
|
1446
|
-
|
|
1447
|
-
/**
|
|
1448
|
-
* Type of API endpoint for request routing
|
|
1449
|
-
*/
|
|
1450
|
-
declare enum AptosApiType {
|
|
1451
|
-
FULLNODE = "Fullnode",
|
|
1452
|
-
INDEXER = "Indexer",
|
|
1453
|
-
FAUCET = "Faucet",
|
|
1454
|
-
PEPPER = "Pepper",
|
|
1455
|
-
PROVER = "Prover"
|
|
1456
|
-
}
|
|
1457
|
-
/**
|
|
1458
|
-
* The default max gas amount when none is given.
|
|
1459
|
-
*
|
|
1460
|
-
* This is the maximum number of gas units that will be used by a transaction before being rejected.
|
|
1461
|
-
*
|
|
1462
|
-
* Note that max gas amount varies based on the transaction. A larger transaction will go over this
|
|
1463
|
-
* default gas amount, and the value will need to be changed for the specific transaction.
|
|
1464
|
-
*/
|
|
1465
|
-
declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
|
|
1466
|
-
/**
|
|
1467
|
-
* The default transaction expiration seconds from now.
|
|
1468
|
-
*
|
|
1469
|
-
* This time is how long until the blockchain nodes will reject the transaction.
|
|
1470
|
-
*
|
|
1471
|
-
* Note that the transaction expiration time varies based on network connection and network load. It may need to be
|
|
1472
|
-
* increased for the transaction to be processed.
|
|
1473
|
-
*/
|
|
1474
|
-
declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
|
|
1475
|
-
/**
|
|
1476
|
-
* The default number of seconds to wait for a transaction to be processed.
|
|
1477
|
-
*
|
|
1478
|
-
* This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
|
|
1479
|
-
* the results of the transaction. It may take longer based on network connection and network load.
|
|
1480
|
-
*/
|
|
1481
|
-
declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
|
|
1482
|
-
/**
|
|
1483
|
-
* The default gas currency for the network.
|
|
1484
|
-
*/
|
|
1485
|
-
declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
|
|
1486
|
-
declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
|
|
1487
|
-
declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
|
|
1488
|
-
/**
|
|
1489
|
-
* The list of supported Processor types for our indexer api.
|
|
1490
|
-
*
|
|
1491
|
-
* These can be found from the processor_status table in the indexer database.
|
|
1492
|
-
* {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
|
|
1493
|
-
*/
|
|
1494
|
-
declare enum ProcessorType {
|
|
1495
|
-
ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
|
|
1496
|
-
DEFAULT = "default_processor",
|
|
1497
|
-
EVENTS_PROCESSOR = "events_processor",
|
|
1498
|
-
FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
|
|
1499
|
-
STAKE_PROCESSOR = "stake_processor",
|
|
1500
|
-
TOKEN_V2_PROCESSOR = "token_v2_processor",
|
|
1501
|
-
USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
/**
|
|
1505
|
-
* This class holds the config information for the SDK client instance.
|
|
1506
|
-
*
|
|
1507
|
-
* @example
|
|
1508
|
-
*
|
|
1509
|
-
* const aptosConfig = new AptosConfig({network:Network.TESTNET})
|
|
1510
|
-
*/
|
|
1511
|
-
declare class AptosConfig {
|
|
1512
|
-
/**
|
|
1513
|
-
* The Network that this SDK is associated with. Defaults to DEVNET
|
|
1514
|
-
*/
|
|
1515
|
-
readonly network: Network;
|
|
1516
|
-
/**
|
|
1517
|
-
* The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
|
|
1518
|
-
*/
|
|
1519
|
-
readonly client: Client;
|
|
1520
|
-
/**
|
|
1521
|
-
* The optional hardcoded fullnode URL to send requests to instead of using the network
|
|
1522
|
-
*/
|
|
1523
|
-
readonly fullnode?: string;
|
|
1524
|
-
/**
|
|
1525
|
-
* The optional hardcoded faucet URL to send requests to instead of using the network
|
|
1526
|
-
*/
|
|
1527
|
-
readonly faucet?: string;
|
|
1528
|
-
/**
|
|
1529
|
-
* The optional hardcoded pepper service URL to send requests to instead of using the network
|
|
1530
|
-
*/
|
|
1531
|
-
readonly pepper?: string;
|
|
1532
|
-
/**
|
|
1533
|
-
* The optional hardcoded prover service URL to send requests to instead of using the network
|
|
1534
|
-
*/
|
|
1535
|
-
readonly prover?: string;
|
|
1536
|
-
/**
|
|
1537
|
-
* The optional hardcoded indexer URL to send requests to instead of using the network
|
|
1538
|
-
*/
|
|
1539
|
-
readonly indexer?: string;
|
|
1540
|
-
/**
|
|
1541
|
-
* Optional client configurations
|
|
1542
|
-
*/
|
|
1543
|
-
readonly clientConfig?: ClientConfig;
|
|
1544
|
-
/**
|
|
1545
|
-
* Optional specific Fullnode configurations
|
|
1546
|
-
*/
|
|
1547
|
-
readonly fullnodeConfig?: FullNodeConfig;
|
|
1548
|
-
/**
|
|
1549
|
-
* Optional specific Indexer configurations
|
|
1550
|
-
*/
|
|
1551
|
-
readonly indexerConfig?: IndexerConfig;
|
|
1552
|
-
/**
|
|
1553
|
-
* Optional specific Faucet configurations
|
|
1554
|
-
*/
|
|
1555
|
-
readonly faucetConfig?: FaucetConfig;
|
|
1556
|
-
constructor(settings?: AptosSettings);
|
|
1557
|
-
/**
|
|
1558
|
-
* Returns the URL endpoint to send the request to.
|
|
1559
|
-
* If a custom URL was provided in the config, that URL is returned.
|
|
1560
|
-
* If a custom URL was provided but not URL endpoints, an error is thrown.
|
|
1561
|
-
* Otherwise, the URL endpoint is derived from the network.
|
|
1562
|
-
*
|
|
1563
|
-
* @param apiType - The type of Aptos API to get the URL for.
|
|
1564
|
-
*
|
|
1565
|
-
* @internal
|
|
1566
|
-
*/
|
|
1567
|
-
getRequestUrl(apiType: AptosApiType): string;
|
|
1568
|
-
/**
|
|
1569
|
-
* Checks if the URL is a known pepper service endpoint
|
|
1570
|
-
*
|
|
1571
|
-
* @internal
|
|
1572
|
-
* */
|
|
1573
|
-
isPepperServiceRequest(url: string): boolean;
|
|
1574
|
-
/**
|
|
1575
|
-
* Checks if the URL is a known prover service endpoint
|
|
1576
|
-
*
|
|
1577
|
-
* @internal
|
|
1578
|
-
* */
|
|
1579
|
-
isProverServiceRequest(url: string): boolean;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
declare const EPK_HORIZON_SECS = 10000000;
|
|
1583
|
-
declare const MAX_AUD_VAL_BYTES = 120;
|
|
1584
|
-
declare const MAX_UID_KEY_BYTES = 30;
|
|
1585
|
-
declare const MAX_UID_VAL_BYTES = 330;
|
|
1586
|
-
declare const MAX_ISS_VAL_BYTES = 120;
|
|
1587
|
-
declare const MAX_EXTRA_FIELD_BYTES = 350;
|
|
1588
|
-
declare const MAX_JWT_HEADER_B64_BYTES = 300;
|
|
1589
|
-
declare const MAX_COMMITED_EPK_BYTES = 93;
|
|
1590
|
-
/**
|
|
1591
|
-
* Represents the KeylessPublicKey public key
|
|
1592
|
-
*
|
|
1593
|
-
* KeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
|
|
1594
|
-
*/
|
|
1595
|
-
declare class KeylessPublicKey extends AccountPublicKey {
|
|
1596
|
-
/**
|
|
1597
|
-
* The number of bytes that `idCommitment` should be
|
|
1598
|
-
*/
|
|
1599
|
-
static readonly ID_COMMITMENT_LENGTH: number;
|
|
1600
|
-
/**
|
|
1601
|
-
* The value of the 'iss' claim on the JWT which identifies the OIDC provider.
|
|
1602
|
-
*/
|
|
1603
|
-
readonly iss: string;
|
|
1604
|
-
/**
|
|
1605
|
-
* A value representing a cryptographic commitment to a user identity.
|
|
1606
|
-
*
|
|
1607
|
-
* It is calculated from the aud, uidKey, uidVal, pepper.
|
|
1608
|
-
*/
|
|
1609
|
-
readonly idCommitment: Uint8Array;
|
|
1610
|
-
constructor(iss: string, idCommitment: HexInput);
|
|
1611
|
-
/**
|
|
1612
|
-
* Get the authentication key for the keyless public key
|
|
1613
|
-
*
|
|
1614
|
-
* @returns AuthenticationKey
|
|
1615
|
-
*/
|
|
1616
|
-
authKey(): AuthenticationKey;
|
|
1617
|
-
/**
|
|
1618
|
-
* Get the public key in bytes (Uint8Array).
|
|
1619
|
-
*
|
|
1620
|
-
* @returns Uint8Array representation of the public key
|
|
1621
|
-
*/
|
|
1622
|
-
toUint8Array(): Uint8Array;
|
|
1623
|
-
/**
|
|
1624
|
-
* Get the public key as a hex string with the 0x prefix.
|
|
1625
|
-
*
|
|
1626
|
-
* @returns string representation of the public key
|
|
1627
|
-
*/
|
|
1628
|
-
toString(): string;
|
|
1629
|
-
/**
|
|
1630
|
-
* Verifies a signed data with a public key
|
|
1631
|
-
*
|
|
1632
|
-
* @param args.message message
|
|
1633
|
-
* @param args.signature The signature
|
|
1634
|
-
* @returns true if the signature is valid
|
|
1635
|
-
*/
|
|
1636
|
-
verifySignature(args: {
|
|
1637
|
-
message: HexInput;
|
|
1638
|
-
signature: KeylessSignature;
|
|
1639
|
-
}): boolean;
|
|
1640
|
-
serialize(serializer: Serializer): void;
|
|
1641
|
-
static deserialize(deserializer: Deserializer): KeylessPublicKey;
|
|
1642
|
-
static load(deserializer: Deserializer): KeylessPublicKey;
|
|
1643
|
-
static isPublicKey(publicKey: PublicKey): publicKey is KeylessPublicKey;
|
|
1644
|
-
/**
|
|
1645
|
-
* Creates a KeylessPublicKey from the JWT components plus pepper
|
|
1646
|
-
*
|
|
1647
|
-
* @param args.iss the iss of the identity
|
|
1648
|
-
* @param args.uidKey the key to use to get the uidVal in the JWT token
|
|
1649
|
-
* @param args.uidVal the value of the uidKey in the JWT token
|
|
1650
|
-
* @param args.aud the client ID of the application
|
|
1651
|
-
* @param args.pepper The pepper used to maintain privacy of the account
|
|
1652
|
-
* @returns KeylessPublicKey
|
|
1653
|
-
*/
|
|
1654
|
-
static create(args: {
|
|
1655
|
-
iss: string;
|
|
1656
|
-
uidKey: string;
|
|
1657
|
-
uidVal: string;
|
|
1658
|
-
aud: string;
|
|
1659
|
-
pepper: HexInput;
|
|
1660
|
-
}): KeylessPublicKey;
|
|
1661
|
-
static fromJWTAndPepper(args: {
|
|
1662
|
-
jwt: string;
|
|
1663
|
-
pepper: HexInput;
|
|
1664
|
-
uidKey?: string;
|
|
1665
|
-
}): KeylessPublicKey;
|
|
1666
|
-
}
|
|
1667
|
-
/**
|
|
1668
|
-
* A signature of a message signed via Keyless Accounnt that uses proofs or the jwt token to authenticate.
|
|
1669
|
-
*/
|
|
1670
|
-
declare class KeylessSignature extends Signature {
|
|
1671
|
-
/**
|
|
1672
|
-
* The inner signature ZeroKnowledgeSigniature or OpenIdSignature
|
|
1673
|
-
*/
|
|
1674
|
-
readonly ephemeralCertificate: EphemeralCertificate;
|
|
1675
|
-
/**
|
|
1676
|
-
* The jwt header in the token used to create the proof/signature. In json string representation.
|
|
1677
|
-
*/
|
|
1678
|
-
readonly jwtHeader: string;
|
|
1679
|
-
/**
|
|
1680
|
-
* The expiry timestamp in seconds of the EphemeralKeyPair used to sign
|
|
1681
|
-
*/
|
|
1682
|
-
readonly expiryDateSecs: number;
|
|
1683
|
-
/**
|
|
1684
|
-
* The ephemeral public key used to verify the signature
|
|
1685
|
-
*/
|
|
1686
|
-
readonly ephemeralPublicKey: EphemeralPublicKey;
|
|
1687
|
-
/**
|
|
1688
|
-
* The signature resulting from signing with the private key of the EphemeralKeyPair
|
|
1689
|
-
*/
|
|
1690
|
-
readonly ephemeralSignature: EphemeralSignature;
|
|
1691
|
-
constructor(args: {
|
|
1692
|
-
jwtHeader: string;
|
|
1693
|
-
ephemeralCertificate: EphemeralCertificate;
|
|
1694
|
-
expiryDateSecs: number;
|
|
1695
|
-
ephemeralPublicKey: EphemeralPublicKey;
|
|
1696
|
-
ephemeralSignature: EphemeralSignature;
|
|
1697
|
-
});
|
|
1698
|
-
/**
|
|
1699
|
-
* Get the signature in bytes (Uint8Array).
|
|
1700
|
-
*
|
|
1701
|
-
* @returns Uint8Array representation of the signature
|
|
1702
|
-
*/
|
|
1703
|
-
toUint8Array(): Uint8Array;
|
|
1704
|
-
serialize(serializer: Serializer): void;
|
|
1705
|
-
static deserialize(deserializer: Deserializer): KeylessSignature;
|
|
1706
|
-
static getSimulationSignature(): KeylessSignature;
|
|
1707
|
-
static isSignature(signature: Signature): signature is KeylessSignature;
|
|
1708
|
-
}
|
|
1709
|
-
/**
|
|
1710
|
-
* A container for a signature that is a ZeroKnowledgeSig. Can be expanded to support OpenIdSignature.
|
|
1711
|
-
*/
|
|
1712
|
-
declare class EphemeralCertificate extends Signature {
|
|
1713
|
-
readonly signature: Signature;
|
|
1714
|
-
/**
|
|
1715
|
-
* Index of the underlying enum variant
|
|
1716
|
-
*/
|
|
1717
|
-
private readonly variant;
|
|
1718
|
-
constructor(signature: Signature, variant: EphemeralCertificateVariant);
|
|
1719
|
-
/**
|
|
1720
|
-
* Get the public key in bytes (Uint8Array).
|
|
1721
|
-
*
|
|
1722
|
-
* @returns Uint8Array representation of the public key
|
|
1723
|
-
*/
|
|
1724
|
-
toUint8Array(): Uint8Array;
|
|
1725
|
-
serialize(serializer: Serializer): void;
|
|
1726
|
-
static deserialize(deserializer: Deserializer): EphemeralCertificate;
|
|
1727
|
-
}
|
|
1728
|
-
declare class G1Bytes extends Serializable {
|
|
1729
|
-
data: Uint8Array;
|
|
1730
|
-
constructor(data: HexInput);
|
|
1731
|
-
serialize(serializer: Serializer): void;
|
|
1732
|
-
static deserialize(deserializer: Deserializer): G1Bytes;
|
|
1733
|
-
}
|
|
1734
|
-
declare class G2Bytes extends Serializable {
|
|
1735
|
-
data: Uint8Array;
|
|
1736
|
-
constructor(data: HexInput);
|
|
1737
|
-
serialize(serializer: Serializer): void;
|
|
1738
|
-
static deserialize(deserializer: Deserializer): G2Bytes;
|
|
1739
|
-
}
|
|
1740
|
-
/**
|
|
1741
|
-
* A representation of a Groth16 proof. The points are the compressed serialization of affine reprentation of the proof.
|
|
1742
|
-
*/
|
|
1743
|
-
declare class Groth16Zkp extends Proof {
|
|
1744
|
-
/**
|
|
1745
|
-
* The bytes of G1 proof point a
|
|
1746
|
-
*/
|
|
1747
|
-
a: G1Bytes;
|
|
1748
|
-
/**
|
|
1749
|
-
* The bytes of G2 proof point b
|
|
1750
|
-
*/
|
|
1751
|
-
b: G2Bytes;
|
|
1752
|
-
/**
|
|
1753
|
-
* The bytes of G1 proof point c
|
|
1754
|
-
*/
|
|
1755
|
-
c: G1Bytes;
|
|
1756
|
-
constructor(args: {
|
|
1757
|
-
a: HexInput;
|
|
1758
|
-
b: HexInput;
|
|
1759
|
-
c: HexInput;
|
|
1760
|
-
});
|
|
1761
|
-
serialize(serializer: Serializer): void;
|
|
1762
|
-
static deserialize(deserializer: Deserializer): Groth16Zkp;
|
|
1763
|
-
}
|
|
1764
|
-
/**
|
|
1765
|
-
* A container for a different zero knowledge proof types
|
|
1766
|
-
*/
|
|
1767
|
-
declare class ZkProof extends Serializable {
|
|
1768
|
-
readonly proof: Proof;
|
|
1769
|
-
/**
|
|
1770
|
-
* Index of the underlying enum variant
|
|
1771
|
-
*/
|
|
1772
|
-
private readonly variant;
|
|
1773
|
-
constructor(proof: Proof, variant: ZkpVariant);
|
|
1774
|
-
serialize(serializer: Serializer): void;
|
|
1775
|
-
static deserialize(deserializer: Deserializer): ZkProof;
|
|
1776
|
-
}
|
|
1777
|
-
/**
|
|
1778
|
-
* The signature representation of a proof
|
|
1779
|
-
*/
|
|
1780
|
-
declare class ZeroKnowledgeSig extends Signature {
|
|
1781
|
-
/**
|
|
1782
|
-
* The proof
|
|
1783
|
-
*/
|
|
1784
|
-
readonly proof: ZkProof;
|
|
1785
|
-
/**
|
|
1786
|
-
* The max lifespan of the proof
|
|
1787
|
-
*/
|
|
1788
|
-
readonly expHorizonSecs: number;
|
|
1789
|
-
/**
|
|
1790
|
-
* A key value pair on the JWT token that can be specified on the signature which would reveal the value on chain.
|
|
1791
|
-
* Can be used to assert identity or other attributes.
|
|
1792
|
-
*/
|
|
1793
|
-
readonly extraField?: string;
|
|
1794
|
-
/**
|
|
1795
|
-
* The 'aud' value of the recovery service which is set when recovering an account.
|
|
1796
|
-
*/
|
|
1797
|
-
readonly overrideAudVal?: string;
|
|
1798
|
-
/**
|
|
1799
|
-
* The training wheels signature
|
|
1800
|
-
*/
|
|
1801
|
-
readonly trainingWheelsSignature?: EphemeralSignature;
|
|
1802
|
-
constructor(args: {
|
|
1803
|
-
proof: ZkProof;
|
|
1804
|
-
expHorizonSecs: number;
|
|
1805
|
-
extraField?: string;
|
|
1806
|
-
overrideAudVal?: string;
|
|
1807
|
-
trainingWheelsSignature?: EphemeralSignature;
|
|
1808
|
-
});
|
|
1809
|
-
/**
|
|
1810
|
-
* Get the signature in bytes (Uint8Array).
|
|
1811
|
-
*
|
|
1812
|
-
* @returns Uint8Array representation of the signature
|
|
1813
|
-
*/
|
|
1814
|
-
toUint8Array(): Uint8Array;
|
|
1815
|
-
/**
|
|
1816
|
-
* Return a ZeroKnowledgeSig object from its bcs serialization in bytes.
|
|
1817
|
-
*
|
|
1818
|
-
* @returns ZeroKnowledgeSig
|
|
1819
|
-
*/
|
|
1820
|
-
static fromBytes(bytes: Uint8Array): ZeroKnowledgeSig;
|
|
1821
|
-
serialize(serializer: Serializer): void;
|
|
1822
|
-
static deserialize(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
1823
|
-
}
|
|
1824
|
-
/**
|
|
1825
|
-
* A class which represents the on-chain configuration for how Keyless accounts work
|
|
1826
|
-
*/
|
|
1827
|
-
declare class KeylessConfiguration {
|
|
1828
|
-
/**
|
|
1829
|
-
* The verification key used to verify Groth16 proofs on chain
|
|
1830
|
-
*/
|
|
1831
|
-
readonly verficationKey: Groth16VerificationKey;
|
|
1832
|
-
/**
|
|
1833
|
-
* The maximum lifespan of an ephemeral key pair. This is configured on chain.
|
|
1834
|
-
*/
|
|
1835
|
-
readonly maxExpHorizonSecs: number;
|
|
1836
|
-
constructor(verficationKey: Groth16VerificationKey, maxExpHorizonSecs: number);
|
|
1837
|
-
static create(res: Groth16VerificationKeyResponse, maxExpHorizonSecs: number): KeylessConfiguration;
|
|
1838
|
-
}
|
|
1839
|
-
/**
|
|
1840
|
-
* A representation of the verification key stored on chain used to verify Groth16 proofs
|
|
1841
|
-
*/
|
|
1842
|
-
declare class Groth16VerificationKey {
|
|
1843
|
-
/**
|
|
1844
|
-
* The `alpha * G`, where `G` is the generator of G1
|
|
1845
|
-
*/
|
|
1846
|
-
readonly alphaG1: G1Bytes;
|
|
1847
|
-
/**
|
|
1848
|
-
* The `alpha * H`, where `H` is the generator of G2
|
|
1849
|
-
*/
|
|
1850
|
-
readonly betaG2: G2Bytes;
|
|
1851
|
-
/**
|
|
1852
|
-
* The `delta * H`, where `H` is the generator of G2
|
|
1853
|
-
*/
|
|
1854
|
-
readonly deltaG2: G2Bytes;
|
|
1855
|
-
/**
|
|
1856
|
-
* The `gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H`, where H is the generator of G1
|
|
1857
|
-
*/
|
|
1858
|
-
readonly gammaAbcG1: G1Bytes[];
|
|
1859
|
-
/**
|
|
1860
|
-
* The `gamma * H`, where `H` is the generator of G2
|
|
1861
|
-
*/
|
|
1862
|
-
readonly gammaG2: G2Bytes;
|
|
1863
|
-
constructor(args: {
|
|
1864
|
-
alphaG1: HexInput;
|
|
1865
|
-
betaG2: HexInput;
|
|
1866
|
-
deltaG2: HexInput;
|
|
1867
|
-
gammaAbcG1: [HexInput, HexInput];
|
|
1868
|
-
gammaG2: HexInput;
|
|
1869
|
-
});
|
|
1870
|
-
static fromGroth16VerificationKeyResponse(res: Groth16VerificationKeyResponse): Groth16VerificationKey;
|
|
1871
|
-
}
|
|
1872
|
-
/**
|
|
1873
|
-
* Gets the parameters of how Keyless Accounts are configured on chain including the verifying key and the max expiry horizon
|
|
1874
|
-
*
|
|
1875
|
-
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
1876
|
-
* @returns KeylessConfiguration
|
|
1877
|
-
*/
|
|
1878
|
-
declare function getKeylessConfig(args: {
|
|
1879
|
-
aptosConfig: AptosConfig;
|
|
1880
|
-
options?: LedgerVersionArg;
|
|
1881
|
-
}): Promise<KeylessConfiguration>;
|
|
1882
|
-
|
|
1883
1370
|
/**
|
|
1884
1371
|
* Represents the Secp256k1 ecdsa public key
|
|
1885
1372
|
*
|
|
@@ -2076,6 +1563,119 @@ declare class AccountAuthenticatorMultiKey extends AccountAuthenticator {
|
|
|
2076
1563
|
static load(deserializer: Deserializer): AccountAuthenticatorMultiKey;
|
|
2077
1564
|
}
|
|
2078
1565
|
|
|
1566
|
+
/**
|
|
1567
|
+
* Type of API endpoint for request routing
|
|
1568
|
+
*/
|
|
1569
|
+
declare enum AptosApiType {
|
|
1570
|
+
FULLNODE = "Fullnode",
|
|
1571
|
+
INDEXER = "Indexer",
|
|
1572
|
+
FAUCET = "Faucet"
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* The default max gas amount when none is given.
|
|
1576
|
+
*
|
|
1577
|
+
* This is the maximum number of gas units that will be used by a transaction before being rejected.
|
|
1578
|
+
*
|
|
1579
|
+
* Note that max gas amount varies based on the transaction. A larger transaction will go over this
|
|
1580
|
+
* default gas amount, and the value will need to be changed for the specific transaction.
|
|
1581
|
+
*/
|
|
1582
|
+
declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
|
|
1583
|
+
/**
|
|
1584
|
+
* The default transaction expiration seconds from now.
|
|
1585
|
+
*
|
|
1586
|
+
* This time is how long until the blockchain nodes will reject the transaction.
|
|
1587
|
+
*
|
|
1588
|
+
* Note that the transaction expiration time varies based on network connection and network load. It may need to be
|
|
1589
|
+
* increased for the transaction to be processed.
|
|
1590
|
+
*/
|
|
1591
|
+
declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
|
|
1592
|
+
/**
|
|
1593
|
+
* The default number of seconds to wait for a transaction to be processed.
|
|
1594
|
+
*
|
|
1595
|
+
* This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
|
|
1596
|
+
* the results of the transaction. It may take longer based on network connection and network load.
|
|
1597
|
+
*/
|
|
1598
|
+
declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
|
|
1599
|
+
/**
|
|
1600
|
+
* The default gas currency for the network.
|
|
1601
|
+
*/
|
|
1602
|
+
declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
|
|
1603
|
+
declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
|
|
1604
|
+
declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
|
|
1605
|
+
/**
|
|
1606
|
+
* The list of supported Processor types for our indexer api.
|
|
1607
|
+
*
|
|
1608
|
+
* These can be found from the processor_status table in the indexer database.
|
|
1609
|
+
* {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
|
|
1610
|
+
*/
|
|
1611
|
+
declare enum ProcessorType {
|
|
1612
|
+
ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
|
|
1613
|
+
DEFAULT = "default_processor",
|
|
1614
|
+
EVENTS_PROCESSOR = "events_processor",
|
|
1615
|
+
FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
|
|
1616
|
+
STAKE_PROCESSOR = "stake_processor",
|
|
1617
|
+
TOKEN_V2_PROCESSOR = "token_v2_processor",
|
|
1618
|
+
USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* This class holds the config information for the SDK client instance.
|
|
1623
|
+
*
|
|
1624
|
+
* @example
|
|
1625
|
+
*
|
|
1626
|
+
* const aptosConfig = new AptosConfig({network:Network.TESTNET})
|
|
1627
|
+
*/
|
|
1628
|
+
declare class AptosConfig {
|
|
1629
|
+
/**
|
|
1630
|
+
* The Network that this SDK is associated with. Defaults to DEVNET
|
|
1631
|
+
*/
|
|
1632
|
+
readonly network: Network;
|
|
1633
|
+
/**
|
|
1634
|
+
* The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
|
|
1635
|
+
*/
|
|
1636
|
+
readonly client: Client;
|
|
1637
|
+
/**
|
|
1638
|
+
* The optional hardcoded fullnode URL to send requests to instead of using the network
|
|
1639
|
+
*/
|
|
1640
|
+
readonly fullnode?: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* The optional hardcoded faucet URL to send requests to instead of using the network
|
|
1643
|
+
*/
|
|
1644
|
+
readonly faucet?: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* The optional hardcoded indexer URL to send requests to instead of using the network
|
|
1647
|
+
*/
|
|
1648
|
+
readonly indexer?: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* Optional client configurations
|
|
1651
|
+
*/
|
|
1652
|
+
readonly clientConfig?: ClientConfig;
|
|
1653
|
+
/**
|
|
1654
|
+
* Optional specific Fullnode configurations
|
|
1655
|
+
*/
|
|
1656
|
+
readonly fullnodeConfig?: FullNodeConfig;
|
|
1657
|
+
/**
|
|
1658
|
+
* Optional specific Indexer configurations
|
|
1659
|
+
*/
|
|
1660
|
+
readonly indexerConfig?: IndexerConfig;
|
|
1661
|
+
/**
|
|
1662
|
+
* Optional specific Faucet configurations
|
|
1663
|
+
*/
|
|
1664
|
+
readonly faucetConfig?: FaucetConfig;
|
|
1665
|
+
constructor(settings?: AptosSettings);
|
|
1666
|
+
/**
|
|
1667
|
+
* Returns the URL endpoint to send the request to.
|
|
1668
|
+
* If a custom URL was provided in the config, that URL is returned.
|
|
1669
|
+
* If a custom URL was provided but not URL endpoints, an error is thrown.
|
|
1670
|
+
* Otherwise, the URL endpoint is derived from the network.
|
|
1671
|
+
*
|
|
1672
|
+
* @param apiType - The type of Aptos API to get the URL for.
|
|
1673
|
+
*
|
|
1674
|
+
* @internal
|
|
1675
|
+
*/
|
|
1676
|
+
getRequestUrl(apiType: AptosApiType): string;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
2079
1679
|
/**
|
|
2080
1680
|
* Representation of a ChainId that can serialized and deserialized
|
|
2081
1681
|
*/
|
|
@@ -3254,254 +2854,6 @@ declare class Ed25519Account implements Account$1 {
|
|
|
3254
2854
|
signTransaction(transaction: AnyRawTransaction): Ed25519Signature;
|
|
3255
2855
|
}
|
|
3256
2856
|
|
|
3257
|
-
/**
|
|
3258
|
-
* A class which contains a key pair that is used in signing transactions via the Keyless authentication scheme. This key pair
|
|
3259
|
-
* is ephemeral and has an expiration time. For more details on how this class is used -
|
|
3260
|
-
* https://aptos.dev/guides/keyless-accounts/#1-present-the-user-with-a-sign-in-with-idp-button-on-the-ui
|
|
3261
|
-
*/
|
|
3262
|
-
declare class EphemeralKeyPair extends Serializable {
|
|
3263
|
-
static readonly BLINDER_LENGTH: number;
|
|
3264
|
-
/**
|
|
3265
|
-
* A byte array of length BLINDER_LENGTH used to obfuscate the public key from the IdP.
|
|
3266
|
-
* Used in calculating the nonce passed to the IdP and as a secret witness in proof generation.
|
|
3267
|
-
*/
|
|
3268
|
-
readonly blinder: Uint8Array;
|
|
3269
|
-
/**
|
|
3270
|
-
* A timestamp in seconds indicating when the ephemeral key pair is expired. After expiry, a new
|
|
3271
|
-
* EphemeralKeyPair must be generated and a new JWT needs to be created.
|
|
3272
|
-
*/
|
|
3273
|
-
readonly expiryDateSecs: number;
|
|
3274
|
-
/**
|
|
3275
|
-
* The value passed to the IdP when the user authenticates. It comprises of a hash of the
|
|
3276
|
-
* ephermeral public key, expiry date, and blinder.
|
|
3277
|
-
*/
|
|
3278
|
-
readonly nonce: string;
|
|
3279
|
-
/**
|
|
3280
|
-
* A private key used to sign transactions. This private key is not tied to any account on the chain as it
|
|
3281
|
-
* is ephemeral (not permanent) in nature.
|
|
3282
|
-
*/
|
|
3283
|
-
private privateKey;
|
|
3284
|
-
/**
|
|
3285
|
-
* A public key used to verify transactions. This public key is not tied to any account on the chain as it
|
|
3286
|
-
* is ephemeral (not permanent) in nature.
|
|
3287
|
-
*/
|
|
3288
|
-
private publicKey;
|
|
3289
|
-
constructor(args: {
|
|
3290
|
-
privateKey: PrivateKey;
|
|
3291
|
-
expiryDateSecs?: number;
|
|
3292
|
-
blinder?: HexInput;
|
|
3293
|
-
});
|
|
3294
|
-
/**
|
|
3295
|
-
* Returns the public key of the key pair.
|
|
3296
|
-
* @return EphemeralPublicKey
|
|
3297
|
-
*/
|
|
3298
|
-
getPublicKey(): EphemeralPublicKey;
|
|
3299
|
-
/**
|
|
3300
|
-
* Returns the public key of the key pair.
|
|
3301
|
-
* @return boolean
|
|
3302
|
-
*/
|
|
3303
|
-
isExpired(): boolean;
|
|
3304
|
-
serialize(serializer: Serializer): void;
|
|
3305
|
-
static deserialize(deserializer: Deserializer): EphemeralKeyPair;
|
|
3306
|
-
static fromBytes(bytes: Uint8Array): EphemeralKeyPair;
|
|
3307
|
-
/**
|
|
3308
|
-
* Returns the public key of the key pair.
|
|
3309
|
-
* @param scheme the type of keypair to use for the EphemeralKeyPair. Only Ed25519 supported for now.
|
|
3310
|
-
* @param expiryDateSecs the date of expiry.
|
|
3311
|
-
* @return boolean
|
|
3312
|
-
*/
|
|
3313
|
-
static generate(args?: {
|
|
3314
|
-
scheme?: EphemeralPublicKeyVariant;
|
|
3315
|
-
expiryDateSecs?: number;
|
|
3316
|
-
}): EphemeralKeyPair;
|
|
3317
|
-
/**
|
|
3318
|
-
* From the ephemeral public key, expiry timestamp, and blinder, calculate the nonce to be used at authentication via OIDC.
|
|
3319
|
-
* @returns string
|
|
3320
|
-
*/
|
|
3321
|
-
private generateNonce;
|
|
3322
|
-
/**
|
|
3323
|
-
* Sign the given message with the private key.
|
|
3324
|
-
* @param data in HexInput format
|
|
3325
|
-
* @returns EphemeralSignature
|
|
3326
|
-
*/
|
|
3327
|
-
sign(data: HexInput): EphemeralSignature;
|
|
3328
|
-
}
|
|
3329
|
-
|
|
3330
|
-
type AptsoDomainSeparator = `APTOS::${string}`;
|
|
3331
|
-
declare abstract class CryptoHashable extends Serializable {
|
|
3332
|
-
abstract readonly domainSeparator: AptsoDomainSeparator;
|
|
3333
|
-
/**
|
|
3334
|
-
* Hashes the bcs serialized from of the class. This is the typescript corollary to the BCSCryptoHash macro in aptos-core.
|
|
3335
|
-
*
|
|
3336
|
-
* @returns Uint8Array
|
|
3337
|
-
*/
|
|
3338
|
-
hash(): Uint8Array;
|
|
3339
|
-
}
|
|
3340
|
-
|
|
3341
|
-
/**
|
|
3342
|
-
* Account implementation for the Keyless authentication scheme.
|
|
3343
|
-
*
|
|
3344
|
-
* Used to represent a Keyless based account and sign transactions with it.
|
|
3345
|
-
*
|
|
3346
|
-
* Use KeylessAccount.fromJWTAndProof to instantiate a KeylessAccount with a JWT, proof and EphemeralKeyPair.
|
|
3347
|
-
*
|
|
3348
|
-
* When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
|
|
3349
|
-
* EphemeralKeyPair, and corresponding proof.
|
|
3350
|
-
*/
|
|
3351
|
-
declare class KeylessAccount extends Serializable implements Account$1 {
|
|
3352
|
-
static readonly PEPPER_LENGTH: number;
|
|
3353
|
-
/**
|
|
3354
|
-
* The KeylessPublicKey associated with the account
|
|
3355
|
-
*/
|
|
3356
|
-
readonly publicKey: KeylessPublicKey;
|
|
3357
|
-
/**
|
|
3358
|
-
* The EphemeralKeyPair used to generate sign.
|
|
3359
|
-
*/
|
|
3360
|
-
readonly ephemeralKeyPair: EphemeralKeyPair;
|
|
3361
|
-
/**
|
|
3362
|
-
* The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
|
|
3363
|
-
*/
|
|
3364
|
-
readonly uidKey: string;
|
|
3365
|
-
/**
|
|
3366
|
-
* The value of the uidKey claim on the JWT. This intended to be a stable user identifier.
|
|
3367
|
-
*/
|
|
3368
|
-
readonly uidVal: string;
|
|
3369
|
-
/**
|
|
3370
|
-
* The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's
|
|
3371
|
-
* OIDC registration with the identity provider.
|
|
3372
|
-
*/
|
|
3373
|
-
readonly aud: string;
|
|
3374
|
-
/**
|
|
3375
|
-
* A value contains 31 bytes of entropy that preserves privacy of the account. Typically fetched from a pepper provider.
|
|
3376
|
-
*/
|
|
3377
|
-
readonly pepper: Uint8Array;
|
|
3378
|
-
/**
|
|
3379
|
-
* Account address associated with the account
|
|
3380
|
-
*/
|
|
3381
|
-
readonly accountAddress: AccountAddress;
|
|
3382
|
-
/**
|
|
3383
|
-
* The zero knowledge signature (if ready) which contains the proof used to validate the EphemeralKeyPair.
|
|
3384
|
-
*/
|
|
3385
|
-
proof: ZeroKnowledgeSig | undefined;
|
|
3386
|
-
/**
|
|
3387
|
-
* The proof of the EphemeralKeyPair or a promise that provides the proof. This is used to allow for awaiting on
|
|
3388
|
-
* fetching the proof.
|
|
3389
|
-
*/
|
|
3390
|
-
readonly proofOrPromise: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3391
|
-
/**
|
|
3392
|
-
* Signing scheme used to sign transactions
|
|
3393
|
-
*/
|
|
3394
|
-
readonly signingScheme: SigningScheme;
|
|
3395
|
-
/**
|
|
3396
|
-
* The JWT token used to derive the account
|
|
3397
|
-
*/
|
|
3398
|
-
readonly jwt: string;
|
|
3399
|
-
/**
|
|
3400
|
-
* An event emitter used to assist in handling asycronous proof fetching.
|
|
3401
|
-
*/
|
|
3402
|
-
private readonly emitter;
|
|
3403
|
-
constructor(args: {
|
|
3404
|
-
address?: AccountAddress;
|
|
3405
|
-
ephemeralKeyPair: EphemeralKeyPair;
|
|
3406
|
-
iss: string;
|
|
3407
|
-
uidKey: string;
|
|
3408
|
-
uidVal: string;
|
|
3409
|
-
aud: string;
|
|
3410
|
-
pepper: HexInput;
|
|
3411
|
-
proofOrFetcher: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3412
|
-
proofFetchCallback?: ProofFetchCallback;
|
|
3413
|
-
jwt: string;
|
|
3414
|
-
});
|
|
3415
|
-
/**
|
|
3416
|
-
* This initializes the asyncronous proof fetch
|
|
3417
|
-
* @return
|
|
3418
|
-
*/
|
|
3419
|
-
init(promise: Promise<ZeroKnowledgeSig>): Promise<void>;
|
|
3420
|
-
serialize(serializer: Serializer): void;
|
|
3421
|
-
static deserialize(deserializer: Deserializer): KeylessAccount;
|
|
3422
|
-
/**
|
|
3423
|
-
* Checks if the proof is expired. If so the account must be rederived with a new EphemeralKeyPair
|
|
3424
|
-
* and JWT token.
|
|
3425
|
-
* @return boolean
|
|
3426
|
-
*/
|
|
3427
|
-
isExpired(): boolean;
|
|
3428
|
-
/**
|
|
3429
|
-
* Sign a message using Keyless.
|
|
3430
|
-
* @param message the message to sign, as binary input
|
|
3431
|
-
* @return the AccountAuthenticator containing the signature, together with the account's public key
|
|
3432
|
-
*/
|
|
3433
|
-
signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey;
|
|
3434
|
-
/**
|
|
3435
|
-
* Sign a transaction using Keyless.
|
|
3436
|
-
* @param transaction the raw transaction
|
|
3437
|
-
* @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
|
|
3438
|
-
*/
|
|
3439
|
-
signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
|
|
3440
|
-
/**
|
|
3441
|
-
* Waits for asyncronous proof fetching to finish.
|
|
3442
|
-
* @return
|
|
3443
|
-
*/
|
|
3444
|
-
waitForProofFetch(): Promise<void>;
|
|
3445
|
-
/**
|
|
3446
|
-
* Sign the given message using Keyless.
|
|
3447
|
-
* @param message in HexInput format
|
|
3448
|
-
* @returns Signature
|
|
3449
|
-
*/
|
|
3450
|
-
sign(data: HexInput): KeylessSignature;
|
|
3451
|
-
/**
|
|
3452
|
-
* Sign the given transaction with Keyless.
|
|
3453
|
-
* Signs the transaction and proof to guard against proof malleability.
|
|
3454
|
-
* @param transaction the transaction to be signed
|
|
3455
|
-
* @returns KeylessSignature
|
|
3456
|
-
*/
|
|
3457
|
-
signTransaction(transaction: AnyRawTransaction): KeylessSignature;
|
|
3458
|
-
verifySignature(args: {
|
|
3459
|
-
message: HexInput;
|
|
3460
|
-
signature: Signature;
|
|
3461
|
-
}): boolean;
|
|
3462
|
-
static fromBytes(bytes: Uint8Array): KeylessAccount;
|
|
3463
|
-
static create(args: {
|
|
3464
|
-
proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3465
|
-
jwt: string;
|
|
3466
|
-
ephemeralKeyPair: EphemeralKeyPair;
|
|
3467
|
-
pepper: HexInput;
|
|
3468
|
-
uidKey?: string;
|
|
3469
|
-
proofFetchCallback?: ProofFetchCallback;
|
|
3470
|
-
}): KeylessAccount;
|
|
3471
|
-
}
|
|
3472
|
-
/**
|
|
3473
|
-
* A container class to hold a transaction and a proof. It implements CryptoHashable which is used to create
|
|
3474
|
-
* the signing message for Keyless transactions. We sign over the proof to ensure non-malleability.
|
|
3475
|
-
*/
|
|
3476
|
-
declare class TransactionAndProof extends CryptoHashable {
|
|
3477
|
-
/**
|
|
3478
|
-
* The transaction to sign.
|
|
3479
|
-
*/
|
|
3480
|
-
transaction: AnyRawTransactionInstance;
|
|
3481
|
-
/**
|
|
3482
|
-
* The zero knowledge proof used in signing the transaction.
|
|
3483
|
-
*/
|
|
3484
|
-
proof?: ZkProof;
|
|
3485
|
-
/**
|
|
3486
|
-
* The domain separator prefix used when hashing.
|
|
3487
|
-
*/
|
|
3488
|
-
domainSeparator: AptsoDomainSeparator;
|
|
3489
|
-
constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof);
|
|
3490
|
-
serialize(serializer: Serializer): void;
|
|
3491
|
-
}
|
|
3492
|
-
type ProofFetchSuccess = {
|
|
3493
|
-
status: "Success";
|
|
3494
|
-
};
|
|
3495
|
-
type ProofFetchFailure = {
|
|
3496
|
-
status: "Failed";
|
|
3497
|
-
error: string;
|
|
3498
|
-
};
|
|
3499
|
-
type ProofFetchStatus = ProofFetchSuccess | ProofFetchFailure;
|
|
3500
|
-
type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;
|
|
3501
|
-
interface ProofFetchEvents {
|
|
3502
|
-
proofFetchFinish: (status: ProofFetchStatus) => void;
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3505
2857
|
interface VerifyMultiKeySignatureArgs {
|
|
3506
2858
|
message: HexInput;
|
|
3507
2859
|
signature: MultiKeySignature;
|
|
@@ -3577,12 +2929,6 @@ declare class MultiKeyAccount implements Account$1 {
|
|
|
3577
2929
|
* @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
|
|
3578
2930
|
*/
|
|
3579
2931
|
signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorMultiKey;
|
|
3580
|
-
/**
|
|
3581
|
-
* Waits for any proofs on any KeylessAccount signers to be fetched. If the proof is fetched a syncronously, call this
|
|
3582
|
-
* to ensure signing with the KeylessAccount does not fail as the proof must be ready.
|
|
3583
|
-
* @return
|
|
3584
|
-
*/
|
|
3585
|
-
waitForProofFetch(): Promise<void>;
|
|
3586
2932
|
/**
|
|
3587
2933
|
* Sign the given message using the MultiKeyAccount's signers
|
|
3588
2934
|
* @param message in HexInput format
|
|
@@ -4809,9 +4155,6 @@ declare function deriveTransactionType(transaction: AnyRawTransaction): AnyRawTr
|
|
|
4809
4155
|
*/
|
|
4810
4156
|
declare function generateSigningMessage(bytes: Uint8Array, domainSeparator: string): Uint8Array;
|
|
4811
4157
|
/**
|
|
4812
|
-
* @deprected
|
|
4813
|
-
* Use CryptoHashable instead by having your class implement it and call hash() to get the signing message.
|
|
4814
|
-
*
|
|
4815
4158
|
* Generates the 'signing message' form of a serilizable value. It bcs serializes the value and uses the name of
|
|
4816
4159
|
* its constructor as the domain separator.
|
|
4817
4160
|
*
|
|
@@ -6186,48 +5529,6 @@ declare class Table {
|
|
|
6186
5529
|
}): Promise<GetTableItemsMetadataResponse>;
|
|
6187
5530
|
}
|
|
6188
5531
|
|
|
6189
|
-
/**
|
|
6190
|
-
* A class to query all `Keyless` related queries on Aptos.
|
|
6191
|
-
*
|
|
6192
|
-
* More documentation on how to integrate Keyless Accounts see the below
|
|
6193
|
-
* https://aptos.dev/guides/keyless-accounts/#aptos-keyless-integration-guide
|
|
6194
|
-
*/
|
|
6195
|
-
declare class Keyless {
|
|
6196
|
-
readonly config: AptosConfig;
|
|
6197
|
-
constructor(config: AptosConfig);
|
|
6198
|
-
/**
|
|
6199
|
-
* Fetches the pepper from the Aptos pepper service API.
|
|
6200
|
-
*
|
|
6201
|
-
* @param args.jwt JWT token
|
|
6202
|
-
* @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
|
|
6203
|
-
* @returns The pepper which is a Uint8Array of length 31.
|
|
6204
|
-
*/
|
|
6205
|
-
getPepper(args: {
|
|
6206
|
-
jwt: string;
|
|
6207
|
-
ephemeralKeyPair: EphemeralKeyPair;
|
|
6208
|
-
}): Promise<Uint8Array>;
|
|
6209
|
-
/**
|
|
6210
|
-
* Fetches the pepper from the Aptos pepper service API.
|
|
6211
|
-
*
|
|
6212
|
-
* @param args.jwt JWT token
|
|
6213
|
-
* @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
|
|
6214
|
-
* @param args.uidKey a key in the JWT token to use to set the uidVal in the IdCommitment
|
|
6215
|
-
* @param args.pepper the pepper
|
|
6216
|
-
* @param args.proofFetchCallback a callback function that if set, the fetch of the proof will be done in the background. Once
|
|
6217
|
-
* fetching finishes the callback function will be called. This should be used to provide a more responsive user experience as now
|
|
6218
|
-
* they are not blocked on fetching the proof. Thus the function will return much more quickly.
|
|
6219
|
-
*
|
|
6220
|
-
* @returns A KeylessAccount that can be used to sign transactions
|
|
6221
|
-
*/
|
|
6222
|
-
deriveKeylessAccount(args: {
|
|
6223
|
-
jwt: string;
|
|
6224
|
-
ephemeralKeyPair: EphemeralKeyPair;
|
|
6225
|
-
uidKey?: string;
|
|
6226
|
-
pepper?: HexInput;
|
|
6227
|
-
proofFetchCallback?: ProofFetchCallback;
|
|
6228
|
-
}): Promise<KeylessAccount>;
|
|
6229
|
-
}
|
|
6230
|
-
|
|
6231
5532
|
/**
|
|
6232
5533
|
* This class is the main entry point into Aptos's
|
|
6233
5534
|
* APIs and separates functionality into different namespaces.
|
|
@@ -6252,10 +5553,9 @@ declare class Aptos {
|
|
|
6252
5553
|
readonly staking: Staking;
|
|
6253
5554
|
readonly transaction: Transaction;
|
|
6254
5555
|
readonly table: Table;
|
|
6255
|
-
readonly keyless: Keyless;
|
|
6256
5556
|
constructor(settings?: AptosConfig);
|
|
6257
5557
|
}
|
|
6258
|
-
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General,
|
|
5558
|
+
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Table, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
6259
5559
|
}
|
|
6260
5560
|
|
|
6261
5561
|
/**
|
|
@@ -6366,13 +5666,6 @@ type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
|
|
|
6366
5666
|
*/
|
|
6367
5667
|
declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6368
5668
|
declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6369
|
-
/**
|
|
6370
|
-
* Makes a get request to the pepper service
|
|
6371
|
-
*
|
|
6372
|
-
* @param options GetAptosRequestOptions
|
|
6373
|
-
* @returns AptosResponse
|
|
6374
|
-
*/
|
|
6375
|
-
declare function getAptosPepperService<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6376
5669
|
declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
|
|
6377
5670
|
|
|
6378
5671
|
type PostRequestOptions = {
|
|
@@ -6424,13 +5717,5 @@ declare function post<Req extends {}, Res extends {}>(options: PostRequestOption
|
|
|
6424
5717
|
declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6425
5718
|
declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6426
5719
|
declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6427
|
-
/**
|
|
6428
|
-
* Makes a post request to the pepper service
|
|
6429
|
-
*
|
|
6430
|
-
* @param options GetAptosRequestOptions
|
|
6431
|
-
* @returns AptosResponse
|
|
6432
|
-
*/
|
|
6433
|
-
declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6434
|
-
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6435
5720
|
|
|
6436
|
-
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer,
|
|
5721
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
|