@aptos-labs/ts-sdk 1.15.0 → 1.16.0-zeta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/{accountAddress-ccLvlUQe.d.ts → accountAddress-BtD_TE5q.d.ts} +49 -3
- package/dist/common/chunk-VLEH6QBR.js +2 -0
- package/dist/common/chunk-VLEH6QBR.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 +627 -52
- package/dist/common/index.js +28 -28
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-B1VMJOY2.d.mts → Ed25519Account-9zBaZEnp.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/EphemeralKeyPair.d.mts +85 -0
- package/dist/esm/account/EphemeralKeyPair.mjs +2 -0
- package/dist/esm/account/KeylessAccount.d.mts +166 -0
- package/dist/esm/account/KeylessAccount.mjs +2 -0
- package/dist/esm/account/MultiKeyAccount.d.mts +13 -7
- 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 +10 -2
- package/dist/esm/account/index.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 +2 -2
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +12 -3
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +20 -0
- 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/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 +10 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +83 -0
- package/dist/esm/api/keyless.mjs +2 -0
- package/dist/esm/api/keyless.mjs.map +1 -0
- 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 +1 -1
- 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 +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.mjs +1 -1
- package/dist/esm/bcs/cryptoHasher.d.mts +15 -0
- package/dist/esm/bcs/cryptoHasher.mjs +2 -0
- package/dist/esm/bcs/cryptoHasher.mjs.map +1 -0
- package/dist/esm/bcs/deserializer.d.mts +26 -0
- 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 +2 -0
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/chunk-3FVRXELT.mjs +2 -0
- package/dist/esm/{chunk-U3YYSIIT.mjs → chunk-3VGX3TXH.mjs} +2 -2
- package/dist/esm/{chunk-GP6Z47HM.mjs → chunk-3Y6JNFPD.mjs} +2 -2
- package/dist/esm/chunk-4KEEUDZA.mjs +2 -0
- package/dist/esm/chunk-4KEEUDZA.mjs.map +1 -0
- package/dist/esm/chunk-4USAUOCE.mjs +2 -0
- package/dist/esm/{chunk-P5TZBE3L.mjs.map → chunk-4USAUOCE.mjs.map} +1 -1
- package/dist/esm/chunk-5ADNWXP2.mjs +2 -0
- package/dist/esm/chunk-5ADNWXP2.mjs.map +1 -0
- package/dist/esm/{chunk-GUALXVFI.mjs → chunk-5RRZMXND.mjs} +2 -2
- package/dist/esm/chunk-5V2RGYYK.mjs +2 -0
- package/dist/esm/chunk-5V2RGYYK.mjs.map +1 -0
- package/dist/esm/chunk-5YI2GEG5.mjs +2 -0
- package/dist/esm/chunk-5YI2GEG5.mjs.map +1 -0
- package/dist/esm/chunk-6KNAIXZ3.mjs +2 -0
- package/dist/esm/chunk-6KNAIXZ3.mjs.map +1 -0
- package/dist/esm/{chunk-I5T6PHDV.mjs → chunk-6M53MDWB.mjs} +2 -2
- package/dist/esm/chunk-6RBUXB5I.mjs +2 -0
- package/dist/esm/{chunk-SRDIYE3M.mjs.map → chunk-6RBUXB5I.mjs.map} +1 -1
- package/dist/esm/{chunk-4GWNWSZP.mjs → chunk-7H3HRFVM.mjs} +2 -2
- package/dist/esm/chunk-7QGIAVW4.mjs +2 -0
- package/dist/esm/chunk-7QGIAVW4.mjs.map +1 -0
- package/dist/esm/{chunk-5EN52MUT.mjs → chunk-7STYQ5ZE.mjs} +2 -2
- package/dist/esm/chunk-7UBKXR37.mjs +2 -0
- package/dist/esm/chunk-7UBKXR37.mjs.map +1 -0
- package/dist/esm/chunk-7Z6DYLCA.mjs +1 -0
- package/dist/esm/chunk-7Z6DYLCA.mjs.map +1 -0
- package/dist/esm/{chunk-WN3JL7ZT.mjs → chunk-A3UVZHDJ.mjs} +2 -2
- package/dist/esm/{chunk-BCUSI3N6.mjs → chunk-AOCNYMMX.mjs} +2 -2
- package/dist/esm/chunk-AQ4I7VVB.mjs +1 -0
- package/dist/esm/chunk-AQ4I7VVB.mjs.map +1 -0
- package/dist/esm/{chunk-MCRRHBFQ.mjs → chunk-C34M4T77.mjs} +2 -2
- package/dist/esm/chunk-C3L4ETUF.mjs +2 -0
- package/dist/esm/chunk-CNH2RAJQ.mjs +2 -0
- package/dist/esm/chunk-CNH2RAJQ.mjs.map +1 -0
- package/dist/esm/chunk-COW5IGYC.mjs +2 -0
- package/dist/esm/{chunk-CYTRYBWN.mjs → chunk-EADBYPUD.mjs} +2 -2
- package/dist/esm/{chunk-G56GPLTB.mjs → chunk-EB7AI4B4.mjs} +2 -2
- package/dist/esm/{chunk-EZPUVLME.mjs → chunk-EIRSA5UU.mjs} +2 -2
- package/dist/esm/{chunk-YK63A5T6.mjs → chunk-EPTCPBVW.mjs} +2 -2
- package/dist/esm/chunk-EU6CX56Q.mjs +2 -0
- package/dist/esm/chunk-EU6CX56Q.mjs.map +1 -0
- package/dist/esm/{chunk-UW2FPXYA.mjs → chunk-F5C4SZZ7.mjs} +2 -2
- package/dist/esm/{chunk-BN22EYXR.mjs → chunk-FBLSW5TB.mjs} +2 -2
- package/dist/esm/chunk-FBPNHF54.mjs +2 -0
- package/dist/esm/{chunk-KAGLWBIJ.mjs → chunk-HGZGTBA4.mjs} +2 -2
- package/dist/esm/chunk-I5JWDZIP.mjs +2 -0
- package/dist/esm/chunk-I5JWDZIP.mjs.map +1 -0
- package/dist/esm/chunk-IEZO4PIG.mjs +2 -0
- package/dist/esm/{chunk-FFGY7Z4B.mjs → chunk-IJE5YSXW.mjs} +2 -2
- package/dist/esm/chunk-JCDZ2WXX.mjs +2 -0
- package/dist/esm/chunk-JCDZ2WXX.mjs.map +1 -0
- package/dist/esm/chunk-JKZHPY24.mjs +2 -0
- package/dist/esm/{chunk-CJDEPZ4J.mjs.map → chunk-JKZHPY24.mjs.map} +1 -1
- package/dist/esm/chunk-JM2B5E2I.mjs +2 -0
- package/dist/esm/chunk-JM2B5E2I.mjs.map +1 -0
- package/dist/esm/{chunk-WNPL4SEJ.mjs → chunk-KFUOOBMJ.mjs} +2 -2
- package/dist/esm/{chunk-CHWE77CR.mjs → chunk-KKP4FBWZ.mjs} +2 -2
- package/dist/esm/chunk-KPZDC5ZE.mjs +2 -0
- package/dist/esm/chunk-KPZDC5ZE.mjs.map +1 -0
- package/dist/esm/{chunk-ZCG6WBLE.mjs → chunk-LEBJNW6Y.mjs} +2 -2
- package/dist/esm/chunk-LECNIPW7.mjs +2 -0
- package/dist/esm/chunk-LECNIPW7.mjs.map +1 -0
- package/dist/esm/{chunk-3Y46WJUR.mjs → chunk-LO7B3CWN.mjs} +2 -2
- package/dist/esm/{chunk-PIVZMT5D.mjs → chunk-LQH7T3TE.mjs} +2 -2
- package/dist/esm/{chunk-F7NLNWHN.mjs → chunk-M7HZOQ6A.mjs} +2 -2
- package/dist/esm/chunk-MGOHPDX4.mjs +2 -0
- package/dist/esm/{chunk-JX75UKJX.mjs → chunk-MKUAW7KW.mjs} +2 -2
- package/dist/esm/{chunk-2X7A4HUS.mjs → chunk-MTLETLKV.mjs} +2 -2
- package/dist/esm/{chunk-RT6LEYHZ.mjs → chunk-MWN63XBE.mjs} +2 -2
- package/dist/esm/chunk-MWUJCP27.mjs +2 -0
- package/dist/esm/chunk-N466X3S6.mjs +2 -0
- package/dist/esm/chunk-N466X3S6.mjs.map +1 -0
- package/dist/esm/chunk-N7CE244N.mjs +2 -0
- package/dist/esm/{chunk-2XK53QFA.mjs.map → chunk-N7CE244N.mjs.map} +1 -1
- package/dist/esm/{chunk-GM56MMNJ.mjs → chunk-NC5HHEEM.mjs} +2 -2
- package/dist/esm/chunk-NCDP26DV.mjs +2 -0
- package/dist/esm/chunk-NCDP26DV.mjs.map +1 -0
- package/dist/esm/{chunk-TM7NDDT3.mjs → chunk-NQMF46E5.mjs} +2 -2
- package/dist/esm/chunk-NWWXZ7EW.mjs +2 -0
- package/dist/esm/chunk-NWWXZ7EW.mjs.map +1 -0
- package/dist/esm/{chunk-UR3JTLIT.mjs → chunk-ONIYM7IU.mjs} +2 -2
- package/dist/esm/{chunk-R5ST36VJ.mjs → chunk-OT37OTT7.mjs} +2 -2
- package/dist/esm/{chunk-P46OPJB4.mjs → chunk-OX5GWFHX.mjs} +2 -2
- package/dist/esm/{chunk-T2AGN5YT.mjs → chunk-PYUU4OEL.mjs} +2 -2
- package/dist/esm/{chunk-JGSOTNJ5.mjs → chunk-Q3AUNZDW.mjs} +2 -2
- package/dist/esm/chunk-QZRWRX6P.mjs +2 -0
- package/dist/esm/{chunk-YMB2XW2O.mjs.map → chunk-QZRWRX6P.mjs.map} +1 -1
- package/dist/esm/chunk-R2P2XANA.mjs +2 -0
- package/dist/esm/chunk-R2P2XANA.mjs.map +1 -0
- package/dist/esm/{chunk-EA2DKJPX.mjs → chunk-REBMGDZ5.mjs} +2 -2
- package/dist/esm/{chunk-GHYE26Q5.mjs → chunk-RKHPXZM6.mjs} +2 -2
- package/dist/esm/{chunk-GHYE26Q5.mjs.map → chunk-RKHPXZM6.mjs.map} +1 -1
- package/dist/esm/chunk-RUSWW265.mjs +2 -0
- package/dist/esm/{chunk-A4JUQZXI.mjs → chunk-SBQRBBRS.mjs} +2 -2
- package/dist/esm/chunk-STYDBDYL.mjs +2 -0
- package/dist/esm/{chunk-QRS4DGP3.mjs → chunk-T23OVRNF.mjs} +2 -2
- package/dist/esm/{chunk-QRS4DGP3.mjs.map → chunk-T23OVRNF.mjs.map} +1 -1
- package/dist/esm/{chunk-H6FEXRTK.mjs → chunk-T6OEZ4KP.mjs} +2 -2
- package/dist/esm/{chunk-XFSDV3ND.mjs → chunk-TEJ7BXJK.mjs} +2 -2
- package/dist/esm/chunk-TJDC5PWD.mjs +2 -0
- package/dist/esm/{chunk-36QXVFR5.mjs → chunk-TVRJ3M7B.mjs} +2 -2
- package/dist/esm/{chunk-36QXVFR5.mjs.map → chunk-TVRJ3M7B.mjs.map} +1 -1
- package/dist/esm/{chunk-DZSDCUP2.mjs → chunk-UDU5L4XH.mjs} +2 -2
- package/dist/esm/{chunk-F4GDEXZ6.mjs → chunk-UFJGYMEB.mjs} +2 -2
- package/dist/esm/chunk-UO5LUYGO.mjs +2 -0
- package/dist/esm/chunk-UO5LUYGO.mjs.map +1 -0
- package/dist/esm/chunk-UTXJOB3O.mjs +2 -0
- package/dist/esm/{chunk-ZM33M6QO.mjs → chunk-UWI5D7FD.mjs} +2 -2
- package/dist/esm/chunk-VT6XJSRO.mjs +2 -0
- package/dist/esm/chunk-VT6XJSRO.mjs.map +1 -0
- package/dist/esm/{chunk-NGQR5UQ3.mjs → chunk-W36IQO5K.mjs} +2 -2
- package/dist/esm/chunk-W4IWORPF.mjs +2 -0
- package/dist/esm/chunk-W4IWORPF.mjs.map +1 -0
- package/dist/esm/{chunk-AHW3SKT7.mjs → chunk-W637YAND.mjs} +2 -2
- package/dist/esm/{chunk-HSJTQLI2.mjs → chunk-WAXCU6D6.mjs} +2 -2
- package/dist/esm/chunk-WDE54GRQ.mjs +2 -0
- package/dist/esm/chunk-WDE54GRQ.mjs.map +1 -0
- package/dist/esm/{chunk-JQIGQMNZ.mjs → chunk-Y33VGXNI.mjs} +2 -2
- package/dist/esm/chunk-Y5BON557.mjs +2 -0
- package/dist/esm/chunk-YE5B2S5L.mjs +2 -0
- package/dist/esm/chunk-YE5B2S5L.mjs.map +1 -0
- package/dist/esm/{chunk-E56MTU2U.mjs → chunk-YHO2EBXH.mjs} +2 -2
- package/dist/esm/chunk-YZPQVZ7S.mjs +2 -0
- package/dist/esm/chunk-YZPQVZ7S.mjs.map +1 -0
- package/dist/esm/chunk-Z2ZR4PTF.mjs +2 -0
- package/dist/esm/{chunk-ERIPXWXJ.mjs → chunk-Z6JERVLX.mjs} +2 -2
- package/dist/esm/chunk-ZCCYHFPK.mjs +2 -0
- package/dist/esm/chunk-ZCCYHFPK.mjs.map +1 -0
- package/dist/esm/{chunk-35EWRSDK.mjs → chunk-ZNEBMSNC.mjs} +2 -2
- package/dist/esm/chunk-ZUQJLFR2.mjs +2 -0
- package/dist/esm/chunk-ZUQJLFR2.mjs.map +1 -0
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +2 -1
- 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 +3 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/client/types.d.mts +5 -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/ephemeral.d.mts +73 -0
- package/dist/esm/core/crypto/ephemeral.mjs +2 -0
- package/dist/esm/core/crypto/ephemeral.mjs.map +1 -0
- package/dist/esm/core/crypto/index.d.mts +4 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +232 -0
- package/dist/esm/core/crypto/keyless.mjs +2 -0
- package/dist/esm/core/crypto/keyless.mjs.map +1 -0
- package/dist/esm/core/crypto/multiEd25519.d.mts +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.d.mts +7 -0
- package/dist/esm/core/crypto/poseidon.mjs +2 -0
- package/dist/esm/core/crypto/poseidon.mjs.map +1 -0
- package/dist/esm/core/crypto/privateKey.d.mts +1 -1
- package/dist/esm/core/crypto/proof.d.mts +21 -0
- package/dist/esm/core/crypto/proof.mjs +2 -0
- package/dist/esm/core/crypto/proof.mjs.map +1 -0
- package/dist/esm/core/crypto/publicKey.d.mts +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 +4 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +16 -9
- 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/keyless.d.mts +76 -0
- package/dist/esm/internal/keyless.mjs +2 -0
- package/dist/esm/internal/keyless.mjs.map +1 -0
- 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 +4 -3
- 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 +3 -2
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +3 -3
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +7 -6
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +3 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +23 -5
- package/dist/esm/types/index.d.mts +19 -3
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/keyless.d.mts +16 -0
- package/dist/esm/types/keyless.mjs +1 -0
- package/dist/esm/types/keyless.mjs.map +1 -0
- package/dist/esm/utils/apiEndpoints.d.mts +3 -1
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +3 -1
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +4 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +11 -3
- package/src/account/EphemeralKeyPair.ts +157 -0
- package/src/account/KeylessAccount.ts +366 -0
- package/src/account/MultiKeyAccount.ts +11 -0
- package/src/account/index.ts +2 -0
- package/src/api/aptos.ts +6 -0
- package/src/api/aptosConfig.ts +46 -1
- package/src/api/keyless.ts +48 -0
- package/src/bcs/cryptoHasher.ts +6 -0
- package/src/bcs/deserializer.ts +40 -0
- package/src/bcs/serializer.ts +18 -0
- package/src/cli/localNode.ts +11 -1
- package/src/cli/move.ts +11 -1
- package/src/client/core.ts +8 -0
- package/src/client/get.ts +6 -0
- package/src/client/post.ts +12 -0
- package/src/client/types.ts +1 -1
- package/src/core/crypto/ephemeral.ts +138 -0
- package/src/core/crypto/index.ts +2 -0
- package/src/core/crypto/keyless.ts +453 -0
- package/src/core/crypto/poseidon.ts +133 -0
- package/src/core/crypto/proof.ts +16 -0
- package/src/core/crypto/singleKey.ts +11 -0
- package/src/internal/keyless.ts +109 -0
- package/src/internal/transactionSubmission.ts +7 -2
- package/src/transactions/transactionBuilder/remoteAbi.ts +16 -2
- package/src/transactions/transactionBuilder/signingMessage.ts +4 -4
- package/src/transactions/transactionBuilder/transactionBuilder.ts +21 -3
- package/src/transactions/typeTag/parser.ts +98 -52
- package/src/transactions/types.ts +22 -3
- package/src/types/index.ts +22 -0
- package/src/types/keyless.ts +6 -0
- package/src/utils/apiEndpoints.ts +14 -0
- package/src/utils/const.ts +2 -0
- package/src/utils/helpers.ts +25 -0
- package/src/version.ts +1 -1
- package/dist/common/chunk-KSEUZTKY.js +0 -2
- package/dist/common/chunk-KSEUZTKY.js.map +0 -1
- package/dist/esm/chunk-2XK53QFA.mjs +0 -2
- package/dist/esm/chunk-3JPVQHOR.mjs +0 -2
- package/dist/esm/chunk-3JPVQHOR.mjs.map +0 -1
- package/dist/esm/chunk-4NHWV5AI.mjs +0 -2
- package/dist/esm/chunk-53INTTOI.mjs +0 -2
- package/dist/esm/chunk-6IFMQ5AS.mjs +0 -2
- package/dist/esm/chunk-6IFMQ5AS.mjs.map +0 -1
- package/dist/esm/chunk-AF5WNJOP.mjs +0 -2
- package/dist/esm/chunk-B7X6PSE7.mjs +0 -2
- package/dist/esm/chunk-BBKE2QJU.mjs +0 -2
- package/dist/esm/chunk-BBKE2QJU.mjs.map +0 -1
- package/dist/esm/chunk-CEHCDA3G.mjs +0 -2
- package/dist/esm/chunk-CJDEPZ4J.mjs +0 -2
- package/dist/esm/chunk-CYNQRMO5.mjs +0 -2
- package/dist/esm/chunk-CYNQRMO5.mjs.map +0 -1
- package/dist/esm/chunk-F7EMGK4M.mjs +0 -2
- package/dist/esm/chunk-GPEM3JVU.mjs +0 -2
- package/dist/esm/chunk-HYCGMFC2.mjs +0 -2
- package/dist/esm/chunk-HYCGMFC2.mjs.map +0 -1
- package/dist/esm/chunk-IENCDVPF.mjs +0 -2
- package/dist/esm/chunk-IENCDVPF.mjs.map +0 -1
- package/dist/esm/chunk-L54P6EGN.mjs +0 -2
- package/dist/esm/chunk-L54P6EGN.mjs.map +0 -1
- package/dist/esm/chunk-LDQ6JFEF.mjs +0 -2
- package/dist/esm/chunk-LDQ6JFEF.mjs.map +0 -1
- package/dist/esm/chunk-LG7RJQ57.mjs +0 -2
- package/dist/esm/chunk-LQNPI3IR.mjs +0 -2
- package/dist/esm/chunk-LQNPI3IR.mjs.map +0 -1
- package/dist/esm/chunk-MJPUASSD.mjs +0 -2
- package/dist/esm/chunk-MJPUASSD.mjs.map +0 -1
- package/dist/esm/chunk-N3U47Y6Y.mjs +0 -2
- package/dist/esm/chunk-O2K7RZWM.mjs +0 -2
- package/dist/esm/chunk-O2K7RZWM.mjs.map +0 -1
- package/dist/esm/chunk-O4WVPLUX.mjs +0 -2
- package/dist/esm/chunk-OWW6SIDP.mjs +0 -2
- package/dist/esm/chunk-OWW6SIDP.mjs.map +0 -1
- package/dist/esm/chunk-P5TZBE3L.mjs +0 -2
- package/dist/esm/chunk-PF57EOJY.mjs +0 -2
- package/dist/esm/chunk-PZ4SAXY7.mjs +0 -2
- package/dist/esm/chunk-PZ4SAXY7.mjs.map +0 -1
- package/dist/esm/chunk-RFZ5LTGP.mjs +0 -2
- package/dist/esm/chunk-RFZ5LTGP.mjs.map +0 -1
- package/dist/esm/chunk-ROXFCLDT.mjs +0 -2
- package/dist/esm/chunk-RTSWVT2Q.mjs +0 -2
- package/dist/esm/chunk-RTSWVT2Q.mjs.map +0 -1
- package/dist/esm/chunk-S2VSJJRJ.mjs +0 -2
- package/dist/esm/chunk-S2VSJJRJ.mjs.map +0 -1
- package/dist/esm/chunk-SRDIYE3M.mjs +0 -2
- package/dist/esm/chunk-UGPALAPN.mjs +0 -2
- package/dist/esm/chunk-UO3NZ5AH.mjs +0 -1
- package/dist/esm/chunk-UVSRX4SV.mjs +0 -1
- package/dist/esm/chunk-YCC6HN74.mjs +0 -2
- package/dist/esm/chunk-YCC6HN74.mjs.map +0 -1
- package/dist/esm/chunk-YMB2XW2O.mjs +0 -2
- /package/dist/esm/{chunk-UO3NZ5AH.mjs.map → account/EphemeralKeyPair.mjs.map} +0 -0
- /package/dist/esm/{chunk-UVSRX4SV.mjs.map → account/KeylessAccount.mjs.map} +0 -0
- /package/dist/esm/{chunk-CEHCDA3G.mjs.map → chunk-3FVRXELT.mjs.map} +0 -0
- /package/dist/esm/{chunk-U3YYSIIT.mjs.map → chunk-3VGX3TXH.mjs.map} +0 -0
- /package/dist/esm/{chunk-GP6Z47HM.mjs.map → chunk-3Y6JNFPD.mjs.map} +0 -0
- /package/dist/esm/{chunk-GUALXVFI.mjs.map → chunk-5RRZMXND.mjs.map} +0 -0
- /package/dist/esm/{chunk-I5T6PHDV.mjs.map → chunk-6M53MDWB.mjs.map} +0 -0
- /package/dist/esm/{chunk-4GWNWSZP.mjs.map → chunk-7H3HRFVM.mjs.map} +0 -0
- /package/dist/esm/{chunk-5EN52MUT.mjs.map → chunk-7STYQ5ZE.mjs.map} +0 -0
- /package/dist/esm/{chunk-WN3JL7ZT.mjs.map → chunk-A3UVZHDJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-BCUSI3N6.mjs.map → chunk-AOCNYMMX.mjs.map} +0 -0
- /package/dist/esm/{chunk-MCRRHBFQ.mjs.map → chunk-C34M4T77.mjs.map} +0 -0
- /package/dist/esm/{chunk-N3U47Y6Y.mjs.map → chunk-C3L4ETUF.mjs.map} +0 -0
- /package/dist/esm/{chunk-4NHWV5AI.mjs.map → chunk-COW5IGYC.mjs.map} +0 -0
- /package/dist/esm/{chunk-CYTRYBWN.mjs.map → chunk-EADBYPUD.mjs.map} +0 -0
- /package/dist/esm/{chunk-G56GPLTB.mjs.map → chunk-EB7AI4B4.mjs.map} +0 -0
- /package/dist/esm/{chunk-EZPUVLME.mjs.map → chunk-EIRSA5UU.mjs.map} +0 -0
- /package/dist/esm/{chunk-YK63A5T6.mjs.map → chunk-EPTCPBVW.mjs.map} +0 -0
- /package/dist/esm/{chunk-UW2FPXYA.mjs.map → chunk-F5C4SZZ7.mjs.map} +0 -0
- /package/dist/esm/{chunk-BN22EYXR.mjs.map → chunk-FBLSW5TB.mjs.map} +0 -0
- /package/dist/esm/{chunk-LG7RJQ57.mjs.map → chunk-FBPNHF54.mjs.map} +0 -0
- /package/dist/esm/{chunk-KAGLWBIJ.mjs.map → chunk-HGZGTBA4.mjs.map} +0 -0
- /package/dist/esm/{chunk-AF5WNJOP.mjs.map → chunk-IEZO4PIG.mjs.map} +0 -0
- /package/dist/esm/{chunk-FFGY7Z4B.mjs.map → chunk-IJE5YSXW.mjs.map} +0 -0
- /package/dist/esm/{chunk-WNPL4SEJ.mjs.map → chunk-KFUOOBMJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-CHWE77CR.mjs.map → chunk-KKP4FBWZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZCG6WBLE.mjs.map → chunk-LEBJNW6Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-3Y46WJUR.mjs.map → chunk-LO7B3CWN.mjs.map} +0 -0
- /package/dist/esm/{chunk-PIVZMT5D.mjs.map → chunk-LQH7T3TE.mjs.map} +0 -0
- /package/dist/esm/{chunk-F7NLNWHN.mjs.map → chunk-M7HZOQ6A.mjs.map} +0 -0
- /package/dist/esm/{chunk-B7X6PSE7.mjs.map → chunk-MGOHPDX4.mjs.map} +0 -0
- /package/dist/esm/{chunk-JX75UKJX.mjs.map → chunk-MKUAW7KW.mjs.map} +0 -0
- /package/dist/esm/{chunk-2X7A4HUS.mjs.map → chunk-MTLETLKV.mjs.map} +0 -0
- /package/dist/esm/{chunk-RT6LEYHZ.mjs.map → chunk-MWN63XBE.mjs.map} +0 -0
- /package/dist/esm/{chunk-PF57EOJY.mjs.map → chunk-MWUJCP27.mjs.map} +0 -0
- /package/dist/esm/{chunk-GM56MMNJ.mjs.map → chunk-NC5HHEEM.mjs.map} +0 -0
- /package/dist/esm/{chunk-TM7NDDT3.mjs.map → chunk-NQMF46E5.mjs.map} +0 -0
- /package/dist/esm/{chunk-UR3JTLIT.mjs.map → chunk-ONIYM7IU.mjs.map} +0 -0
- /package/dist/esm/{chunk-R5ST36VJ.mjs.map → chunk-OT37OTT7.mjs.map} +0 -0
- /package/dist/esm/{chunk-P46OPJB4.mjs.map → chunk-OX5GWFHX.mjs.map} +0 -0
- /package/dist/esm/{chunk-T2AGN5YT.mjs.map → chunk-PYUU4OEL.mjs.map} +0 -0
- /package/dist/esm/{chunk-JGSOTNJ5.mjs.map → chunk-Q3AUNZDW.mjs.map} +0 -0
- /package/dist/esm/{chunk-EA2DKJPX.mjs.map → chunk-REBMGDZ5.mjs.map} +0 -0
- /package/dist/esm/{chunk-O4WVPLUX.mjs.map → chunk-RUSWW265.mjs.map} +0 -0
- /package/dist/esm/{chunk-A4JUQZXI.mjs.map → chunk-SBQRBBRS.mjs.map} +0 -0
- /package/dist/esm/{chunk-UGPALAPN.mjs.map → chunk-STYDBDYL.mjs.map} +0 -0
- /package/dist/esm/{chunk-H6FEXRTK.mjs.map → chunk-T6OEZ4KP.mjs.map} +0 -0
- /package/dist/esm/{chunk-XFSDV3ND.mjs.map → chunk-TEJ7BXJK.mjs.map} +0 -0
- /package/dist/esm/{chunk-F7EMGK4M.mjs.map → chunk-TJDC5PWD.mjs.map} +0 -0
- /package/dist/esm/{chunk-DZSDCUP2.mjs.map → chunk-UDU5L4XH.mjs.map} +0 -0
- /package/dist/esm/{chunk-F4GDEXZ6.mjs.map → chunk-UFJGYMEB.mjs.map} +0 -0
- /package/dist/esm/{chunk-ROXFCLDT.mjs.map → chunk-UTXJOB3O.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZM33M6QO.mjs.map → chunk-UWI5D7FD.mjs.map} +0 -0
- /package/dist/esm/{chunk-NGQR5UQ3.mjs.map → chunk-W36IQO5K.mjs.map} +0 -0
- /package/dist/esm/{chunk-AHW3SKT7.mjs.map → chunk-W637YAND.mjs.map} +0 -0
- /package/dist/esm/{chunk-HSJTQLI2.mjs.map → chunk-WAXCU6D6.mjs.map} +0 -0
- /package/dist/esm/{chunk-JQIGQMNZ.mjs.map → chunk-Y33VGXNI.mjs.map} +0 -0
- /package/dist/esm/{chunk-GPEM3JVU.mjs.map → chunk-Y5BON557.mjs.map} +0 -0
- /package/dist/esm/{chunk-E56MTU2U.mjs.map → chunk-YHO2EBXH.mjs.map} +0 -0
- /package/dist/esm/{chunk-53INTTOI.mjs.map → chunk-Z2ZR4PTF.mjs.map} +0 -0
- /package/dist/esm/{chunk-ERIPXWXJ.mjs.map → chunk-Z6JERVLX.mjs.map} +0 -0
- /package/dist/esm/{chunk-35EWRSDK.mjs.map → chunk-ZNEBMSNC.mjs.map} +0 -0
- /package/dist/esm/{publicKey-B3XRNhHO.d.mts → publicKey-lq5djCIY.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, N as Network, C as Client,
|
|
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, i as EphemeralPublicKeyVariant, j as EphemeralCertificateVariant, Z as ZkpVariant, N as Network, C as Client, k as ClientConfig, F as FullNodeConfig, I as IndexerConfig, l as FaucetConfig, m as AptosSettings, M as MoveModuleId, n as ScriptFunctionArgument, o as MoveFunctionId, p as AccountAddressInput, q as MoveFunctionGenericTypeParam, r as SigningSchemeInput, s as SigningScheme, t as AptosRequest, u as AccountData, P as PaginationArgs, L as LedgerVersionArg, v as MoveModuleBytecode, w as TransactionResponse, x as MoveResource, y as MoveStructId, z as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, B as GetAccountOwnedTokensFromCollectionResponse, J as GetAccountCollectionsWithOwnedTokenResponse, K as GetAccountCoinsDataResponse, W as WhereArg, Q as GetAccountOwnedObjectsResponse, R as GetCollectionDataResponse, V as GetTokenDataResponse, X as GetCurrentTokenOwnershipResponse, Y as GetOwnedTokensResponse, _ as GetTokenActivityResponse, $ as GetEventsResponse, a0 as WaitForTransactionOptions, a1 as UserTransactionResponse, a2 as MoveFunction, a3 as GetFungibleAssetMetadataResponse, a4 as GetFungibleAssetActivitiesResponse, a5 as GetCurrentFungibleAssetBalancesResponse, a6 as LedgerInfo, a7 as Block, a8 as MoveValue, a9 as GetChainTopUserTransactionsResponse, aa as GraphqlQuery, ab as GetProcessorStatusResponse, ac as GetANSNameResponse, ad as GetNumberOfDelegatorsResponse, ae as GetDelegatedStakingActivitiesResponse, af as PendingTransactionResponse, ag as CommittedTransactionResponse, ah as GasEstimation, ai as TableItemRequest, aj as GetTableItemsDataResponse, ak as GetTableItemsMetadataResponse, al as ClientRequest, am as ClientResponse, an as MimeType } from './accountAddress-BtD_TE5q.js';
|
|
2
|
+
export { aA as AccountAuthenticatorVariant, bg as AccountSignature, ar as AddressInvalidReason, aB as AnySignatureVariant, aP as BlockMetadataTransactionResponse, aG as ClientHeadersType, aZ as DecodedTableData, a_ as DeletedTableData, bD as DeriveScheme, bj as DirectWriteSet, b0 as EntryFunctionPayloadResponse, aC as EphemeralSignatureVariant, bl as Event, bk as EventGuid, bG as GenerateAccount, bE as GenerateAccountWithEd25519, bF as GenerateAccountWithSingleSignerSecp256k1Key, b3 as GenesisPayload, aO as GenesisTransactionResponse, au as HexInvalidReason, by as MoveAbility, bs as MoveAddressType, bx as MoveFunctionVisibility, bA as MoveModule, bt as MoveObjectType, bu as MoveOptionType, b4 as MoveScriptBytecode, bB as MoveStruct, bz as MoveStructField, bv as MoveStructType, bw as MoveType, bq as MoveUint128Type, bn as MoveUint16Type, br as MoveUint256Type, bo as MoveUint32Type, bp as MoveUint64Type, bm as MoveUint8Type, b2 as MultisigPayloadResponse, bP as NetworkToChainId, bM as NetworkToFaucetAPI, bK as NetworkToIndexerAPI, bQ as NetworkToNetworkName, bL as NetworkToNodeAPI, bN as NetworkToPepperAPI, bO as NetworkToProverAPI, bH as OrderBy, bI as OrderByValue, as as ParsingError, at as ParsingResult, bC as RoleType, b1 as ScriptPayloadResponse, aw as ScriptTransactionArgumentVariants, bi as ScriptWriteSet, aQ as StateCheckpointTransactionResponse, bJ as TokenStandard, az as TransactionAuthenticatorVariant, bb as TransactionEd25519Signature, bf as TransactionFeePayerSignature, be as TransactionMultiAgentSignature, bd as TransactionMultiEd25519Signature, a$ as TransactionPayloadResponse, ax as TransactionPayloadVariants, aH as TransactionResponseType, bc as TransactionSecp256k1Signature, b5 as TransactionSignature, ay as TransactionVariants, av as TypeTagVariants, aE as Uint128, aF as Uint256, aD as Uint64, aR as ValidatorTransactionResponse, bh as WriteSet, aS as WriteSetChange, aT as WriteSetChangeDeleteModule, aU as WriteSetChangeDeleteResource, aV as WriteSetChangeDeleteTableItem, aW as WriteSetChangeWriteModule, aX as WriteSetChangeWriteResource, aY as WriteSetChangeWriteTableItem, ao as ensureBoolean, aL as isBlockMetadataTransactionResponse, b6 as isEd25519Signature, b9 as isFeePayerSignature, aK as isGenesisTransactionResponse, b8 as isMultiAgentSignature, ba as isMultiEd25519Signature, aI as isPendingTransactionResponse, b7 as isSecp256k1Signature, aM as isStateCheckpointTransactionResponse, aJ as isUserTransactionResponse, aN as isValidatorTransactionResponse, ap as outOfRangeErrorMessage, aq as validateNumberInRange } from './accountAddress-BtD_TE5q.js';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
type Maybe<T> = T | null;
|
|
@@ -1367,6 +1367,290 @@ 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
|
+
declare const EPK_HORIZON_SECS = 10000000;
|
|
1440
|
+
declare const MAX_AUD_VAL_BYTES = 120;
|
|
1441
|
+
declare const MAX_UID_KEY_BYTES = 30;
|
|
1442
|
+
declare const MAX_UID_VAL_BYTES = 330;
|
|
1443
|
+
declare const MAX_ISS_VAL_BYTES = 120;
|
|
1444
|
+
declare const MAX_EXTRA_FIELD_BYTES = 350;
|
|
1445
|
+
declare const MAX_JWT_HEADER_B64_BYTES = 300;
|
|
1446
|
+
declare const MAX_COMMITED_EPK_BYTES = 93;
|
|
1447
|
+
/**
|
|
1448
|
+
* Represents the KeylessPublicKey public key
|
|
1449
|
+
*
|
|
1450
|
+
* KeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
|
|
1451
|
+
*/
|
|
1452
|
+
declare class KeylessPublicKey extends AccountPublicKey {
|
|
1453
|
+
static readonly ID_COMMITMENT_LENGTH: number;
|
|
1454
|
+
readonly iss: string;
|
|
1455
|
+
readonly idCommitment: Uint8Array;
|
|
1456
|
+
constructor(iss: string, idCommitment: HexInput);
|
|
1457
|
+
/**
|
|
1458
|
+
* Get the authentication key for the keyless public key
|
|
1459
|
+
*
|
|
1460
|
+
* @returns AuthenticationKey
|
|
1461
|
+
*/
|
|
1462
|
+
authKey(): AuthenticationKey;
|
|
1463
|
+
/**
|
|
1464
|
+
* Get the public key in bytes (Uint8Array).
|
|
1465
|
+
*
|
|
1466
|
+
* @returns Uint8Array representation of the public key
|
|
1467
|
+
*/
|
|
1468
|
+
toUint8Array(): Uint8Array;
|
|
1469
|
+
/**
|
|
1470
|
+
* Get the public key as a hex string with the 0x prefix.
|
|
1471
|
+
*
|
|
1472
|
+
* @returns string representation of the public key
|
|
1473
|
+
*/
|
|
1474
|
+
toString(): string;
|
|
1475
|
+
/**
|
|
1476
|
+
* Verifies a signed data with a public key
|
|
1477
|
+
*
|
|
1478
|
+
* @param args.message message
|
|
1479
|
+
* @param args.signature The signature
|
|
1480
|
+
* @returns true if the signature is valid
|
|
1481
|
+
*/
|
|
1482
|
+
verifySignature(args: {
|
|
1483
|
+
message: HexInput;
|
|
1484
|
+
signature: KeylessSignature;
|
|
1485
|
+
}): boolean;
|
|
1486
|
+
serialize(serializer: Serializer): void;
|
|
1487
|
+
static deserialize(deserializer: Deserializer): KeylessPublicKey;
|
|
1488
|
+
static load(deserializer: Deserializer): KeylessPublicKey;
|
|
1489
|
+
static isPublicKey(publicKey: PublicKey): publicKey is KeylessPublicKey;
|
|
1490
|
+
/**
|
|
1491
|
+
* Creates a KeylessPublicKey from the JWT components plus pepper
|
|
1492
|
+
*
|
|
1493
|
+
* @param args.iss the iss of the identity
|
|
1494
|
+
* @param args.uidKey the key to use to get the uidVal in the JWT token
|
|
1495
|
+
* @param args.uidVal the value of the uidKey in the JWT token
|
|
1496
|
+
* @param args.aud the client ID of the application
|
|
1497
|
+
* @param args.pepper The pepper used to maintain privacy of the account
|
|
1498
|
+
* @returns KeylessPublicKey
|
|
1499
|
+
*/
|
|
1500
|
+
static create(args: {
|
|
1501
|
+
iss: string;
|
|
1502
|
+
uidKey: string;
|
|
1503
|
+
uidVal: string;
|
|
1504
|
+
aud: string;
|
|
1505
|
+
pepper: HexInput;
|
|
1506
|
+
}): KeylessPublicKey;
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* A signature of a message signed via Keyless Accounnt that uses proofs or the jwt token to authenticate.
|
|
1510
|
+
*/
|
|
1511
|
+
declare class KeylessSignature extends Signature {
|
|
1512
|
+
/**
|
|
1513
|
+
* The inner signature ZeroKnowledgeSigniature or OpenIdSignature
|
|
1514
|
+
*/
|
|
1515
|
+
readonly ephemeralCertificate: EphemeralCertificate;
|
|
1516
|
+
/**
|
|
1517
|
+
* The jwt header in the token used to create the proof/signature. In json string representation.
|
|
1518
|
+
*/
|
|
1519
|
+
readonly jwtHeader: string;
|
|
1520
|
+
/**
|
|
1521
|
+
* The expiry timestamp in seconds of the EphemeralKeyPair used to sign
|
|
1522
|
+
*/
|
|
1523
|
+
readonly expiryDateSecs: bigint | number;
|
|
1524
|
+
/**
|
|
1525
|
+
* The ephemeral public key used to verify the signature
|
|
1526
|
+
*/
|
|
1527
|
+
readonly ephemeralPublicKey: EphemeralPublicKey;
|
|
1528
|
+
/**
|
|
1529
|
+
* The signature resulting from signing with the private key of the EphemeralKeyPair
|
|
1530
|
+
*/
|
|
1531
|
+
readonly ephemeralSignature: EphemeralSignature;
|
|
1532
|
+
constructor(args: {
|
|
1533
|
+
jwtHeader: string;
|
|
1534
|
+
ephemeralCertificate: EphemeralCertificate;
|
|
1535
|
+
expiryDateSecs: bigint | number;
|
|
1536
|
+
ephemeralPublicKey: EphemeralPublicKey;
|
|
1537
|
+
ephemeralSignature: EphemeralSignature;
|
|
1538
|
+
});
|
|
1539
|
+
/**
|
|
1540
|
+
* Get the signature in bytes (Uint8Array).
|
|
1541
|
+
*
|
|
1542
|
+
* @returns Uint8Array representation of the signature
|
|
1543
|
+
*/
|
|
1544
|
+
toUint8Array(): Uint8Array;
|
|
1545
|
+
serialize(serializer: Serializer): void;
|
|
1546
|
+
static deserialize(deserializer: Deserializer): KeylessSignature;
|
|
1547
|
+
static load(deserializer: Deserializer): KeylessSignature;
|
|
1548
|
+
static isSignature(signature: Signature): signature is KeylessSignature;
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* A container for a signature that is a ZeroKnowledgeSig. Can be expanded to support OpenIdSignature.
|
|
1552
|
+
*/
|
|
1553
|
+
declare class EphemeralCertificate extends Signature {
|
|
1554
|
+
readonly signature: Signature;
|
|
1555
|
+
/**
|
|
1556
|
+
* Index of the underlying enum variant
|
|
1557
|
+
*/
|
|
1558
|
+
private readonly variant;
|
|
1559
|
+
constructor(signature: Signature, variant: EphemeralCertificateVariant);
|
|
1560
|
+
/**
|
|
1561
|
+
* Get the public key in bytes (Uint8Array).
|
|
1562
|
+
*
|
|
1563
|
+
* @returns Uint8Array representation of the public key
|
|
1564
|
+
*/
|
|
1565
|
+
toUint8Array(): Uint8Array;
|
|
1566
|
+
serialize(serializer: Serializer): void;
|
|
1567
|
+
static deserialize(deserializer: Deserializer): EphemeralCertificate;
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* A representation of a Groth16 proof. The points are the compressed serialization of affine reprentation of the proof.
|
|
1571
|
+
*/
|
|
1572
|
+
declare class Groth16Zkp extends Proof {
|
|
1573
|
+
/**
|
|
1574
|
+
* The bytes of G1 proof point a
|
|
1575
|
+
*/
|
|
1576
|
+
a: Uint8Array;
|
|
1577
|
+
/**
|
|
1578
|
+
* The bytes of G2 proof point b
|
|
1579
|
+
*/
|
|
1580
|
+
b: Uint8Array;
|
|
1581
|
+
/**
|
|
1582
|
+
* The bytes of G1 proof point c
|
|
1583
|
+
*/
|
|
1584
|
+
c: Uint8Array;
|
|
1585
|
+
constructor(args: {
|
|
1586
|
+
a: HexInput;
|
|
1587
|
+
b: HexInput;
|
|
1588
|
+
c: HexInput;
|
|
1589
|
+
});
|
|
1590
|
+
serialize(serializer: Serializer): void;
|
|
1591
|
+
static deserialize(deserializer: Deserializer): Groth16Zkp;
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* A container for a different zero knowledge proof types
|
|
1595
|
+
*/
|
|
1596
|
+
declare class ZkProof extends Serializable {
|
|
1597
|
+
readonly proof: Proof;
|
|
1598
|
+
/**
|
|
1599
|
+
* Index of the underlying enum variant
|
|
1600
|
+
*/
|
|
1601
|
+
private readonly variant;
|
|
1602
|
+
constructor(proof: Proof, variant: ZkpVariant);
|
|
1603
|
+
serialize(serializer: Serializer): void;
|
|
1604
|
+
static deserialize(deserializer: Deserializer): ZkProof;
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* The signature representation of a proof
|
|
1608
|
+
*/
|
|
1609
|
+
declare class ZeroKnowledgeSig extends Signature {
|
|
1610
|
+
/**
|
|
1611
|
+
* The proof
|
|
1612
|
+
*/
|
|
1613
|
+
readonly proof: ZkProof;
|
|
1614
|
+
/**
|
|
1615
|
+
* The max lifespan of the proof
|
|
1616
|
+
*/
|
|
1617
|
+
readonly expHorizonSecs: bigint;
|
|
1618
|
+
/**
|
|
1619
|
+
* A key value pair on the JWT token that can be made public
|
|
1620
|
+
*/
|
|
1621
|
+
readonly extraField?: string;
|
|
1622
|
+
/**
|
|
1623
|
+
* Set in the case of signing by recovery services
|
|
1624
|
+
*/
|
|
1625
|
+
readonly overrideAudVal?: string;
|
|
1626
|
+
/**
|
|
1627
|
+
* The training wheels signature
|
|
1628
|
+
*/
|
|
1629
|
+
readonly trainingWheelsSignature?: EphemeralSignature;
|
|
1630
|
+
constructor(args: {
|
|
1631
|
+
proof: ZkProof;
|
|
1632
|
+
expHorizonSecs?: bigint;
|
|
1633
|
+
extraField?: string;
|
|
1634
|
+
overrideAudVal?: string;
|
|
1635
|
+
trainingWheelsSignature?: EphemeralSignature;
|
|
1636
|
+
});
|
|
1637
|
+
/**
|
|
1638
|
+
* Get the signature in bytes (Uint8Array).
|
|
1639
|
+
*
|
|
1640
|
+
* @returns Uint8Array representation of the signature
|
|
1641
|
+
*/
|
|
1642
|
+
toUint8Array(): Uint8Array;
|
|
1643
|
+
/**
|
|
1644
|
+
* Return a ZeroKnowledgeSig object from its bcs serialization in bytes.
|
|
1645
|
+
*
|
|
1646
|
+
* @returns ZeroKnowledgeSig
|
|
1647
|
+
*/
|
|
1648
|
+
static fromBytes(bytes: Uint8Array): ZeroKnowledgeSig;
|
|
1649
|
+
serialize(serializer: Serializer): void;
|
|
1650
|
+
static deserialize(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
1651
|
+
static load(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1370
1654
|
/**
|
|
1371
1655
|
* Represents the Secp256k1 ecdsa public key
|
|
1372
1656
|
*
|
|
@@ -1569,7 +1853,9 @@ declare class AccountAuthenticatorMultiKey extends AccountAuthenticator {
|
|
|
1569
1853
|
declare enum AptosApiType {
|
|
1570
1854
|
FULLNODE = "Fullnode",
|
|
1571
1855
|
INDEXER = "Indexer",
|
|
1572
|
-
FAUCET = "Faucet"
|
|
1856
|
+
FAUCET = "Faucet",
|
|
1857
|
+
PEPPER = "Pepper",
|
|
1858
|
+
PROVER = "Prover"
|
|
1573
1859
|
}
|
|
1574
1860
|
/**
|
|
1575
1861
|
* The default max gas amount when none is given.
|
|
@@ -1642,6 +1928,14 @@ declare class AptosConfig {
|
|
|
1642
1928
|
* The optional hardcoded faucet URL to send requests to instead of using the network
|
|
1643
1929
|
*/
|
|
1644
1930
|
readonly faucet?: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* The optional hardcoded pepper service URL to send requests to instead of using the network
|
|
1933
|
+
*/
|
|
1934
|
+
readonly pepper?: string;
|
|
1935
|
+
/**
|
|
1936
|
+
* The optional hardcoded prover service URL to send requests to instead of using the network
|
|
1937
|
+
*/
|
|
1938
|
+
readonly prover?: string;
|
|
1645
1939
|
/**
|
|
1646
1940
|
* The optional hardcoded indexer URL to send requests to instead of using the network
|
|
1647
1941
|
*/
|
|
@@ -1674,6 +1968,18 @@ declare class AptosConfig {
|
|
|
1674
1968
|
* @internal
|
|
1675
1969
|
*/
|
|
1676
1970
|
getRequestUrl(apiType: AptosApiType): string;
|
|
1971
|
+
/**
|
|
1972
|
+
* Checks if the URL is a known pepper service endpoint
|
|
1973
|
+
*
|
|
1974
|
+
* @internal
|
|
1975
|
+
* */
|
|
1976
|
+
isPepperServiceRequest(url: string): boolean;
|
|
1977
|
+
/**
|
|
1978
|
+
* Checks if the URL is a known prover service endpoint
|
|
1979
|
+
*
|
|
1980
|
+
* @internal
|
|
1981
|
+
* */
|
|
1982
|
+
isProverServiceRequest(url: string): boolean;
|
|
1677
1983
|
}
|
|
1678
1984
|
|
|
1679
1985
|
/**
|
|
@@ -2291,6 +2597,24 @@ type EntryFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | Ac
|
|
|
2291
2597
|
* Script function arguments to be used when building a raw transaction using BCS serialized arguments
|
|
2292
2598
|
*/
|
|
2293
2599
|
type ScriptFunctionArgumentTypes = Bool | U8 | U16 | U32 | U64 | U128 | U256 | AccountAddress | MoveVector<U8> | MoveString | FixedBytes;
|
|
2600
|
+
/**
|
|
2601
|
+
* TypeArgument inputs for Entry functions, view functions, and scripts
|
|
2602
|
+
*
|
|
2603
|
+
* This can be a string version of the type argument such as:
|
|
2604
|
+
* - u8
|
|
2605
|
+
* - u16
|
|
2606
|
+
* - u32
|
|
2607
|
+
* - u64
|
|
2608
|
+
* - u128
|
|
2609
|
+
* - u256
|
|
2610
|
+
* - bool
|
|
2611
|
+
* - address
|
|
2612
|
+
* - signer
|
|
2613
|
+
* - vector<Type>
|
|
2614
|
+
* - address::module::struct
|
|
2615
|
+
* - address::module::struct<Type1, Type2>
|
|
2616
|
+
*/
|
|
2617
|
+
type TypeArgument = TypeTag | string;
|
|
2294
2618
|
/**
|
|
2295
2619
|
* Type that holds all raw transaction instances Aptos SDK supports
|
|
2296
2620
|
*/
|
|
@@ -2319,7 +2643,7 @@ type InputGenerateTransactionPayloadDataWithRemoteABI = InputScriptData | InputE
|
|
|
2319
2643
|
*/
|
|
2320
2644
|
type InputEntryFunctionData = {
|
|
2321
2645
|
function: MoveFunctionId;
|
|
2322
|
-
typeArguments?: Array<
|
|
2646
|
+
typeArguments?: Array<TypeArgument>;
|
|
2323
2647
|
functionArguments: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
|
|
2324
2648
|
abi?: EntryFunctionABI;
|
|
2325
2649
|
};
|
|
@@ -2350,7 +2674,7 @@ type InputMultiSigDataWithRemoteABI = {
|
|
|
2350
2674
|
*/
|
|
2351
2675
|
type InputScriptData = {
|
|
2352
2676
|
bytecode: HexInput;
|
|
2353
|
-
typeArguments?: Array<
|
|
2677
|
+
typeArguments?: Array<TypeArgument>;
|
|
2354
2678
|
functionArguments: Array<ScriptFunctionArgumentTypes>;
|
|
2355
2679
|
};
|
|
2356
2680
|
/**
|
|
@@ -2358,7 +2682,7 @@ type InputScriptData = {
|
|
|
2358
2682
|
*/
|
|
2359
2683
|
type InputViewFunctionData = {
|
|
2360
2684
|
function: MoveFunctionId;
|
|
2361
|
-
typeArguments?: Array<
|
|
2685
|
+
typeArguments?: Array<TypeArgument>;
|
|
2362
2686
|
functionArguments?: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
|
|
2363
2687
|
abi?: ViewFunctionABI;
|
|
2364
2688
|
};
|
|
@@ -2836,6 +3160,245 @@ declare class Ed25519Account implements Account$1 {
|
|
|
2836
3160
|
signTransaction(transaction: AnyRawTransaction): Ed25519Signature;
|
|
2837
3161
|
}
|
|
2838
3162
|
|
|
3163
|
+
declare class EphemeralKeyPair extends Serializable {
|
|
3164
|
+
static readonly BLINDER_LENGTH: number;
|
|
3165
|
+
/**
|
|
3166
|
+
* A byte array of length BLINDER_LENGTH used to obfuscate the public key from the IdP.
|
|
3167
|
+
* Used in calculating the nonce passed to the IdP and as a secret witness in proof generation.
|
|
3168
|
+
*/
|
|
3169
|
+
readonly blinder: Uint8Array;
|
|
3170
|
+
/**
|
|
3171
|
+
* A timestamp in seconds indicating when the ephemeral key pair is expired. After expiry, a new
|
|
3172
|
+
* EphemeralKeyPair must be generated and a new JWT needs to be created.
|
|
3173
|
+
*/
|
|
3174
|
+
readonly expiryDateSecs: bigint | number;
|
|
3175
|
+
/**
|
|
3176
|
+
* The value passed to the IdP when the user authenticates. It comprises of a hash of the
|
|
3177
|
+
* ephermeral public key, expiry date, and blinder.
|
|
3178
|
+
*/
|
|
3179
|
+
readonly nonce: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* A private key used to sign transactions. This private key is not tied to any account on the chain as it
|
|
3182
|
+
* is ephemeral (not permanent) in nature.
|
|
3183
|
+
*/
|
|
3184
|
+
private privateKey;
|
|
3185
|
+
/**
|
|
3186
|
+
* A public key used to verify transactions. This public key is not tied to any account on the chain as it
|
|
3187
|
+
* is ephemeral (not permanent) in nature.
|
|
3188
|
+
*/
|
|
3189
|
+
private publicKey;
|
|
3190
|
+
constructor(args: {
|
|
3191
|
+
privateKey: PrivateKey;
|
|
3192
|
+
expiryDateSecs?: AnyNumber;
|
|
3193
|
+
blinder?: HexInput;
|
|
3194
|
+
});
|
|
3195
|
+
/**
|
|
3196
|
+
* Returns the public key of the key pair.
|
|
3197
|
+
* @return EphemeralPublicKey
|
|
3198
|
+
*/
|
|
3199
|
+
getPublicKey(): EphemeralPublicKey;
|
|
3200
|
+
/**
|
|
3201
|
+
* Returns the public key of the key pair.
|
|
3202
|
+
* @return boolean
|
|
3203
|
+
*/
|
|
3204
|
+
isExpired(): boolean;
|
|
3205
|
+
serialize(serializer: Serializer): void;
|
|
3206
|
+
static deserialize(deserializer: Deserializer): EphemeralKeyPair;
|
|
3207
|
+
static fromBytes(bytes: Uint8Array): EphemeralKeyPair;
|
|
3208
|
+
/**
|
|
3209
|
+
* Returns the public key of the key pair.
|
|
3210
|
+
* @param scheme the type of keypair to use for the EphemeralKeyPair. Only Ed25519 supported for now.
|
|
3211
|
+
* @param expiryDateSecs the date of expiry.
|
|
3212
|
+
* @return boolean
|
|
3213
|
+
*/
|
|
3214
|
+
static generate(args?: {
|
|
3215
|
+
scheme: EphemeralPublicKeyVariant;
|
|
3216
|
+
expiryDateSecs?: bigint | number;
|
|
3217
|
+
}): EphemeralKeyPair;
|
|
3218
|
+
/**
|
|
3219
|
+
* From the ephemeral public key, expiry timestamp, and blinder, calculate the nonce to be used at authentication via OIDC.
|
|
3220
|
+
* @returns string
|
|
3221
|
+
*/
|
|
3222
|
+
private generateNonce;
|
|
3223
|
+
/**
|
|
3224
|
+
* Sign the given message with the private key.
|
|
3225
|
+
* @param data in HexInput format
|
|
3226
|
+
* @returns EphemeralSignature
|
|
3227
|
+
*/
|
|
3228
|
+
sign(data: HexInput): EphemeralSignature;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
/**
|
|
3232
|
+
* The API response type
|
|
3233
|
+
*
|
|
3234
|
+
* @param status - the response status. i.e. 200
|
|
3235
|
+
* @param statusText - the response message
|
|
3236
|
+
* @param data the response data
|
|
3237
|
+
* @param url the url the request was made to
|
|
3238
|
+
* @param headers the response headers
|
|
3239
|
+
* @param config (optional) - the request object
|
|
3240
|
+
* @param request (optional) - the request object
|
|
3241
|
+
*/
|
|
3242
|
+
interface AptosResponse<Req, Res> {
|
|
3243
|
+
status: number;
|
|
3244
|
+
statusText: string;
|
|
3245
|
+
data: Res;
|
|
3246
|
+
url: string;
|
|
3247
|
+
headers: any;
|
|
3248
|
+
config?: any;
|
|
3249
|
+
request?: Req;
|
|
3250
|
+
}
|
|
3251
|
+
/**
|
|
3252
|
+
* The type returned from an API error
|
|
3253
|
+
*
|
|
3254
|
+
* @param name - the error name "AptosApiError"
|
|
3255
|
+
* @param url the url the request was made to
|
|
3256
|
+
* @param status - the response status. i.e. 400
|
|
3257
|
+
* @param statusText - the response message
|
|
3258
|
+
* @param data the response data
|
|
3259
|
+
* @param request - the AptosRequest
|
|
3260
|
+
*/
|
|
3261
|
+
declare class AptosApiError extends Error {
|
|
3262
|
+
readonly url: string;
|
|
3263
|
+
readonly status: number;
|
|
3264
|
+
readonly statusText: string;
|
|
3265
|
+
readonly data: {
|
|
3266
|
+
message: string;
|
|
3267
|
+
error_code?: string;
|
|
3268
|
+
vm_error_code?: number;
|
|
3269
|
+
};
|
|
3270
|
+
readonly request: AptosRequest;
|
|
3271
|
+
constructor(request: AptosRequest, response: AptosResponse<any, any>, message: string);
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
type AptsoDomainSeparator = `APTOS::${string}`;
|
|
3275
|
+
declare abstract class CryptoHashable extends Serializable {
|
|
3276
|
+
abstract readonly domainSeparator: AptsoDomainSeparator;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
declare const IssuerToJwkEndpoint: Record<string, string>;
|
|
3280
|
+
declare enum KeylessErrorType {
|
|
3281
|
+
JWK_EXPIRED = 0,
|
|
3282
|
+
EPK_EXPIRED = 1,
|
|
3283
|
+
PROOF_NOT_FOUND = 2,
|
|
3284
|
+
UNKNOWN_INVALID_SIGNATURE = 3,
|
|
3285
|
+
UNKNOWN = 4
|
|
3286
|
+
}
|
|
3287
|
+
declare class KeylessError extends Error {
|
|
3288
|
+
readonly type: KeylessErrorType;
|
|
3289
|
+
constructor(type: KeylessErrorType);
|
|
3290
|
+
static fromAptosApiError(error: AptosApiError, signer: KeylessAccount): Promise<KeylessError>;
|
|
3291
|
+
}
|
|
3292
|
+
declare class KeylessAccount extends Serializable implements Account$1 {
|
|
3293
|
+
static readonly PEPPER_LENGTH: number;
|
|
3294
|
+
readonly publicKey: KeylessPublicKey;
|
|
3295
|
+
readonly ephemeralKeyPair: EphemeralKeyPair;
|
|
3296
|
+
readonly uidKey: string;
|
|
3297
|
+
readonly uidVal: string;
|
|
3298
|
+
readonly aud: string;
|
|
3299
|
+
readonly pepper: Uint8Array;
|
|
3300
|
+
readonly accountAddress: AccountAddress;
|
|
3301
|
+
proof: ZeroKnowledgeSig | undefined;
|
|
3302
|
+
readonly proofOrPromise: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3303
|
+
readonly signingScheme: SigningScheme;
|
|
3304
|
+
private jwt;
|
|
3305
|
+
private isJwtValid;
|
|
3306
|
+
readonly emitter: EventEmitter<ProofFetchEvents>;
|
|
3307
|
+
constructor(args: {
|
|
3308
|
+
address?: AccountAddress;
|
|
3309
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
3310
|
+
iss: string;
|
|
3311
|
+
uidKey: string;
|
|
3312
|
+
uidVal: string;
|
|
3313
|
+
aud: string;
|
|
3314
|
+
pepper: HexInput;
|
|
3315
|
+
proofOrFetcher: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3316
|
+
proofFetchCallback?: ProofFetchCallback;
|
|
3317
|
+
jwt: string;
|
|
3318
|
+
});
|
|
3319
|
+
/**
|
|
3320
|
+
* This initializes the asyncronous proof fetch
|
|
3321
|
+
* @return
|
|
3322
|
+
*/
|
|
3323
|
+
init(promise: Promise<ZeroKnowledgeSig>): Promise<void>;
|
|
3324
|
+
serialize(serializer: Serializer): void;
|
|
3325
|
+
static deserialize(deserializer: Deserializer): KeylessAccount;
|
|
3326
|
+
/**
|
|
3327
|
+
* Checks if the proof is expired. If so the account must be rederived with a new EphemeralKeyPair
|
|
3328
|
+
* and JWT token.
|
|
3329
|
+
* @return boolean
|
|
3330
|
+
*/
|
|
3331
|
+
isExpired(): boolean;
|
|
3332
|
+
/**
|
|
3333
|
+
* Checks if the the JWK used to verify the token still exists on the issuer's JWK uri.
|
|
3334
|
+
* Caches the result.
|
|
3335
|
+
* @return boolean
|
|
3336
|
+
*/
|
|
3337
|
+
checkJwkValidity(): Promise<boolean>;
|
|
3338
|
+
/**
|
|
3339
|
+
* Sign a message using Keyless.
|
|
3340
|
+
* @param message the message to sign, as binary input
|
|
3341
|
+
* @return the AccountAuthenticator containing the signature, together with the account's public key
|
|
3342
|
+
*/
|
|
3343
|
+
signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey;
|
|
3344
|
+
/**
|
|
3345
|
+
* Sign a transaction using Keyless.
|
|
3346
|
+
* @param transaction the raw transaction
|
|
3347
|
+
* @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
|
|
3348
|
+
*/
|
|
3349
|
+
signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey;
|
|
3350
|
+
/**
|
|
3351
|
+
* Waits for asyncronous proof fetching to finish.
|
|
3352
|
+
* @return
|
|
3353
|
+
*/
|
|
3354
|
+
waitForProofFetch(): Promise<void>;
|
|
3355
|
+
/**
|
|
3356
|
+
* Sign the given message using Keyless.
|
|
3357
|
+
* @param message in HexInput format
|
|
3358
|
+
* @returns Signature
|
|
3359
|
+
*/
|
|
3360
|
+
sign(data: HexInput): KeylessSignature;
|
|
3361
|
+
/**
|
|
3362
|
+
* Sign the given transaction with Keyless.
|
|
3363
|
+
* Signs the transaction and proof to guard against proof malleability.
|
|
3364
|
+
* @param transaction the transaction to be signed
|
|
3365
|
+
* @returns KeylessSignature
|
|
3366
|
+
*/
|
|
3367
|
+
signTransaction(transaction: AnyRawTransaction): KeylessSignature;
|
|
3368
|
+
verifySignature(args: {
|
|
3369
|
+
message: HexInput;
|
|
3370
|
+
signature: Signature;
|
|
3371
|
+
}): boolean;
|
|
3372
|
+
static fromBytes(bytes: Uint8Array): KeylessAccount;
|
|
3373
|
+
static fromJWTAndProof(args: {
|
|
3374
|
+
proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
3375
|
+
jwt: string;
|
|
3376
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
3377
|
+
pepper: HexInput;
|
|
3378
|
+
uidKey?: string;
|
|
3379
|
+
proofFetchCallback?: ProofFetchCallback;
|
|
3380
|
+
}): KeylessAccount;
|
|
3381
|
+
}
|
|
3382
|
+
declare class TransactionAndProof extends CryptoHashable {
|
|
3383
|
+
transaction: AnyRawTransactionInstance;
|
|
3384
|
+
proof?: ZkProof;
|
|
3385
|
+
domainSeparator: AptsoDomainSeparator;
|
|
3386
|
+
constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof);
|
|
3387
|
+
serialize(serializer: Serializer): void;
|
|
3388
|
+
}
|
|
3389
|
+
type ProofFetchSuccess = {
|
|
3390
|
+
status: "Success";
|
|
3391
|
+
};
|
|
3392
|
+
type ProofFetchFailure = {
|
|
3393
|
+
status: "Failed";
|
|
3394
|
+
error: string;
|
|
3395
|
+
};
|
|
3396
|
+
type ProofFetchStatus = ProofFetchSuccess | ProofFetchFailure;
|
|
3397
|
+
type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;
|
|
3398
|
+
interface ProofFetchEvents {
|
|
3399
|
+
proofFetchFinish: (status: ProofFetchStatus) => void;
|
|
3400
|
+
}
|
|
3401
|
+
|
|
2839
3402
|
interface VerifyMultiKeySignatureArgs {
|
|
2840
3403
|
message: HexInput;
|
|
2841
3404
|
signature: MultiKeySignature;
|
|
@@ -2911,6 +3474,12 @@ declare class MultiKeyAccount implements Account$1 {
|
|
|
2911
3474
|
* @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
|
|
2912
3475
|
*/
|
|
2913
3476
|
signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorMultiKey;
|
|
3477
|
+
/**
|
|
3478
|
+
* Waits for any proofs on any KeylessAccount signers to be fetched. If the proof is fetched a syncronously, call this
|
|
3479
|
+
* to ensure signing with the KeylessAccount does not fail as the proof must be ready.
|
|
3480
|
+
* @return
|
|
3481
|
+
*/
|
|
3482
|
+
waitForProofFetch(): Promise<void>;
|
|
2914
3483
|
/**
|
|
2915
3484
|
* Sign the given message using the MultiKeyAccount's signers
|
|
2916
3485
|
* @param message in HexInput format
|
|
@@ -4057,7 +4626,7 @@ declare function buildTransaction(args: InputGenerateMultiAgentRawTransactionArg
|
|
|
4057
4626
|
* @returns A signed serialized transaction that can be simulated
|
|
4058
4627
|
*/
|
|
4059
4628
|
declare function generateSignedTransactionForSimulation(args: InputSimulateTransactionData): Uint8Array;
|
|
4060
|
-
declare function getAuthenticatorForSimulation(
|
|
4629
|
+
declare function getAuthenticatorForSimulation(pk: PublicKey): AccountAuthenticatorEd25519 | AccountAuthenticatorSingleKey;
|
|
4061
4630
|
/**
|
|
4062
4631
|
* Prepare a transaction to be submitted to chain
|
|
4063
4632
|
*
|
|
@@ -4082,7 +4651,7 @@ declare function generateUserTransactionHash(args: InputSubmitTransactionData):
|
|
|
4082
4651
|
/**
|
|
4083
4652
|
* Convert type arguments to only type tags, allowing for string representations of type tags
|
|
4084
4653
|
*/
|
|
4085
|
-
declare function standardizeTypeTags(typeArguments?: Array<
|
|
4654
|
+
declare function standardizeTypeTags(typeArguments?: Array<TypeArgument>): Array<TypeTag>;
|
|
4086
4655
|
/**
|
|
4087
4656
|
* Fetches a function ABI from the on-chain module ABI. It doesn't validate whether it's a view or entry function.
|
|
4088
4657
|
* @param moduleAddress
|
|
@@ -4140,11 +4709,11 @@ declare function generateSigningMessage(bytes: Uint8Array, domainSeparator: stri
|
|
|
4140
4709
|
* Generates the 'signing message' form of a serilizable value. It bcs serializes the value and uses the name of
|
|
4141
4710
|
* its constructor as the domain separator.
|
|
4142
4711
|
*
|
|
4143
|
-
* @param
|
|
4712
|
+
* @param hashable An object that has a bcs serialized form
|
|
4144
4713
|
*
|
|
4145
4714
|
* @returns The Uint8Array of the signing message
|
|
4146
4715
|
*/
|
|
4147
|
-
declare function
|
|
4716
|
+
declare function generateSigningMessageForBcsCryptoHashable(hashable: CryptoHashable): Uint8Array;
|
|
4148
4717
|
/**
|
|
4149
4718
|
* Generates the 'signing message' form of a transaction. It derives the type of transaction and
|
|
4150
4719
|
* applies the appropriate domain separator based on if there is extra data such as a fee payer or
|
|
@@ -4164,11 +4733,13 @@ declare enum TypeTagParserErrorType {
|
|
|
4164
4733
|
UnexpectedComma = "unexpected ','",
|
|
4165
4734
|
TypeArgumentCountMismatch = "type argument count doesn't match expected amount",
|
|
4166
4735
|
MissingTypeArgumentClose = "no matching '>' for '<'",
|
|
4736
|
+
MissingTypeArgument = "no type argument before ','",
|
|
4167
4737
|
UnexpectedPrimitiveTypeArguments = "primitive types not expected to have type arguments",
|
|
4168
4738
|
UnexpectedVectorTypeArgumentCount = "vector type expected to have exactly one type argument",
|
|
4169
4739
|
UnexpectedStructFormat = "unexpected struct format, must be of the form 0xaddress::module_name::struct_name",
|
|
4170
4740
|
InvalidModuleNameCharacter = "module name must only contain alphanumeric or '_' characters",
|
|
4171
|
-
InvalidStructNameCharacter = "struct name must only contain alphanumeric or '_' characters"
|
|
4741
|
+
InvalidStructNameCharacter = "struct name must only contain alphanumeric or '_' characters",
|
|
4742
|
+
InvalidAddress = "struct address must be valid"
|
|
4172
4743
|
}
|
|
4173
4744
|
declare class TypeTagParserError extends Error {
|
|
4174
4745
|
constructor(typeTagStr: string, invalidReason: TypeTagParserErrorType);
|
|
@@ -5509,6 +6080,45 @@ declare class Table {
|
|
|
5509
6080
|
}): Promise<GetTableItemsMetadataResponse>;
|
|
5510
6081
|
}
|
|
5511
6082
|
|
|
6083
|
+
/**
|
|
6084
|
+
* A class to query all `Keyless` related queries on Aptos.
|
|
6085
|
+
*/
|
|
6086
|
+
declare class Keyless {
|
|
6087
|
+
readonly config: AptosConfig;
|
|
6088
|
+
constructor(config: AptosConfig);
|
|
6089
|
+
/**
|
|
6090
|
+
* Fetches the pepper from the Aptos pepper service API.
|
|
6091
|
+
*
|
|
6092
|
+
* @param args.jwt JWT token
|
|
6093
|
+
* @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
|
|
6094
|
+
* @returns The pepper which is a Uint8Array of length 31.
|
|
6095
|
+
*/
|
|
6096
|
+
getPepper(args: {
|
|
6097
|
+
jwt: string;
|
|
6098
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
6099
|
+
}): Promise<Uint8Array>;
|
|
6100
|
+
/**
|
|
6101
|
+
* Fetches the pepper from the Aptos pepper service API.
|
|
6102
|
+
*
|
|
6103
|
+
* @param args.jwt JWT token
|
|
6104
|
+
* @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
|
|
6105
|
+
* @param args.uidKey a key in the JWT token to use to set the uidVal in the IdCommitment
|
|
6106
|
+
* @param args.pepper the pepper
|
|
6107
|
+
* @param args.extraFieldKey a key in the JWT token used to reveal a value on chain
|
|
6108
|
+
* @param args.proofFetchCallback a callback function that if set, the fetch of the proof will be done asyncronously. Once
|
|
6109
|
+
* if finishes the callback function will be called.
|
|
6110
|
+
* @returns A KeylessAccount that can be used to sign transactions
|
|
6111
|
+
*/
|
|
6112
|
+
deriveKeylessAccount(args: {
|
|
6113
|
+
jwt: string;
|
|
6114
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
6115
|
+
uidKey?: string;
|
|
6116
|
+
pepper?: HexInput;
|
|
6117
|
+
extraFieldKey?: string;
|
|
6118
|
+
proofFetchCallback?: ProofFetchCallback;
|
|
6119
|
+
}): Promise<KeylessAccount>;
|
|
6120
|
+
}
|
|
6121
|
+
|
|
5512
6122
|
/**
|
|
5513
6123
|
* This class is the main entry point into Aptos's
|
|
5514
6124
|
* APIs and separates functionality into different namespaces.
|
|
@@ -5533,48 +6143,10 @@ declare class Aptos {
|
|
|
5533
6143
|
readonly staking: Staking;
|
|
5534
6144
|
readonly transaction: Transaction;
|
|
5535
6145
|
readonly table: Table;
|
|
6146
|
+
readonly keyless: Keyless;
|
|
5536
6147
|
constructor(settings?: AptosConfig);
|
|
5537
6148
|
}
|
|
5538
|
-
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Table, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
5539
|
-
}
|
|
5540
|
-
|
|
5541
|
-
/**
|
|
5542
|
-
* The API response type
|
|
5543
|
-
*
|
|
5544
|
-
* @param status - the response status. i.e. 200
|
|
5545
|
-
* @param statusText - the response message
|
|
5546
|
-
* @param data the response data
|
|
5547
|
-
* @param url the url the request was made to
|
|
5548
|
-
* @param headers the response headers
|
|
5549
|
-
* @param config (optional) - the request object
|
|
5550
|
-
* @param request (optional) - the request object
|
|
5551
|
-
*/
|
|
5552
|
-
interface AptosResponse<Req, Res> {
|
|
5553
|
-
status: number;
|
|
5554
|
-
statusText: string;
|
|
5555
|
-
data: Res;
|
|
5556
|
-
url: string;
|
|
5557
|
-
headers: any;
|
|
5558
|
-
config?: any;
|
|
5559
|
-
request?: Req;
|
|
5560
|
-
}
|
|
5561
|
-
/**
|
|
5562
|
-
* The type returned from an API error
|
|
5563
|
-
*
|
|
5564
|
-
* @param name - the error name "AptosApiError"
|
|
5565
|
-
* @param url the url the request was made to
|
|
5566
|
-
* @param status - the response status. i.e. 400
|
|
5567
|
-
* @param statusText - the response message
|
|
5568
|
-
* @param data the response data
|
|
5569
|
-
* @param request - the AptosRequest
|
|
5570
|
-
*/
|
|
5571
|
-
declare class AptosApiError extends Error {
|
|
5572
|
-
readonly url: string;
|
|
5573
|
-
readonly status: number;
|
|
5574
|
-
readonly statusText: string;
|
|
5575
|
-
readonly data: any;
|
|
5576
|
-
readonly request: AptosRequest;
|
|
5577
|
-
constructor(request: AptosRequest, response: AptosResponse<any, any>, message: string);
|
|
6149
|
+
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
5578
6150
|
}
|
|
5579
6151
|
|
|
5580
6152
|
type DeserializableClass<T extends Serializable> = {
|
|
@@ -5646,6 +6218,7 @@ type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
|
|
|
5646
6218
|
*/
|
|
5647
6219
|
declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5648
6220
|
declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6221
|
+
declare function getAptosPepperService<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5649
6222
|
declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
|
|
5650
6223
|
|
|
5651
6224
|
type PostRequestOptions = {
|
|
@@ -5697,5 +6270,7 @@ declare function post<Req extends {}, Res extends {}>(options: PostRequestOption
|
|
|
5697
6270
|
declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5698
6271
|
declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5699
6272
|
declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6273
|
+
declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6274
|
+
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
5700
6275
|
|
|
5701
|
-
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, 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,
|
|
6276
|
+
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, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, 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, Groth16Zkp, 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, IssuerToJwkEndpoint, KeyType, KeylessAccount, KeylessError, KeylessErrorType, KeylessPublicKey, KeylessSignature, 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, 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, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, 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, TransactionAndProof, 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, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForBcsCryptoHashable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, 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, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
|