@aptos-labs/ts-sdk 1.30.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/common/{accountAddress-DnSqjhSl.d.ts → accountAddress-6RqI8Aam.d.ts} +144 -63
- package/dist/common/chunk-F43XVDYJ.js +2 -0
- package/dist/common/chunk-F43XVDYJ.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 +546 -112
- package/dist/common/index.js +37 -28
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-DpH9qAcg.d.mts → Ed25519Account-B3xHXAQe.d.mts} +2 -2
- package/dist/esm/account/AbstractKeylessAccount.d.mts +86 -14
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +5 -4
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +5 -4
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +4 -3
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +57 -8
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +29 -11
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +23 -10
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +5 -4
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +6 -5
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.d.mts +9 -6
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +4 -3
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +6 -4
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +2 -1
- package/dist/esm/api/coin.d.mts +6 -5
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +7 -6
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +4 -3
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +3 -2
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +6 -5
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +6 -5
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +6 -4
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +11 -9
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +5 -4
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +5 -4
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +4 -3
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +5 -3
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +69 -3
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +5 -4
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +5 -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 +4 -3
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +4 -3
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +3 -2
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/consts.d.mts +3 -2
- package/dist/esm/bcs/deserializer.d.mts +36 -27
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.d.mts +3 -2
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +3 -2
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +3 -2
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +3 -2
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +12 -12
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +14 -13
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-OV5UQ75K.mjs → chunk-2NHQQQZK.mjs} +2 -2
- package/dist/esm/{chunk-EF2PUPUH.mjs → chunk-2QBCTW67.mjs} +2 -2
- package/dist/esm/chunk-2QBCTW67.mjs.map +1 -0
- package/dist/esm/{chunk-JY3JJ55D.mjs → chunk-37Y54PJ5.mjs} +2 -2
- package/dist/esm/chunk-3DQVGPFE.mjs +2 -0
- package/dist/esm/chunk-3DQVGPFE.mjs.map +1 -0
- package/dist/esm/{chunk-XHCALZ7X.mjs → chunk-3XCYCFYI.mjs} +2 -2
- package/dist/esm/{chunk-6FLHGOKP.mjs → chunk-42H7WETG.mjs} +2 -2
- package/dist/esm/{chunk-RNAKZVRN.mjs → chunk-46L6BAJG.mjs} +2 -2
- package/dist/esm/{chunk-EN2HDNFE.mjs → chunk-4DNCQM3S.mjs} +2 -2
- package/dist/esm/chunk-4O5XDQDO.mjs +2 -0
- package/dist/esm/chunk-4PBXTMN3.mjs +2 -0
- package/dist/esm/chunk-4PBXTMN3.mjs.map +1 -0
- package/dist/esm/chunk-4YEOOZ2N.mjs +4 -0
- package/dist/esm/{chunk-KFSVKIFO.mjs.map → chunk-4YEOOZ2N.mjs.map} +1 -1
- package/dist/esm/{chunk-D3KBNFZR.mjs → chunk-5AKSORBJ.mjs} +2 -2
- package/dist/esm/chunk-5B3SMBXQ.mjs +2 -0
- package/dist/esm/{chunk-EKZQ3EYX.mjs → chunk-5NJWJXSS.mjs} +2 -2
- package/dist/esm/{chunk-2QRWGJJA.mjs → chunk-6K4TOFCO.mjs} +2 -2
- package/dist/esm/{chunk-OLPI7QAH.mjs → chunk-6LLGRGCN.mjs} +2 -2
- package/dist/esm/chunk-6LLGRGCN.mjs.map +1 -0
- package/dist/esm/{chunk-R3Y6WH2U.mjs → chunk-6PJH53CK.mjs} +2 -2
- package/dist/esm/{chunk-PCLU4KLY.mjs → chunk-6ZOVTYLJ.mjs} +2 -2
- package/dist/esm/chunk-7ECCT6PK.mjs +1 -0
- package/dist/esm/chunk-7WXDXBXK.mjs +2 -0
- package/dist/esm/{chunk-UKAXCARD.mjs.map → chunk-7WXDXBXK.mjs.map} +1 -1
- package/dist/esm/{chunk-JNHFQTFC.mjs → chunk-AAATWCJT.mjs} +2 -2
- package/dist/esm/{chunk-NODYW7DM.mjs → chunk-ACVIE7IE.mjs} +2 -2
- package/dist/esm/chunk-AHWZA3GD.mjs +2 -0
- package/dist/esm/chunk-AHWZA3GD.mjs.map +1 -0
- package/dist/esm/chunk-AITN3DO4.mjs +2 -0
- package/dist/esm/chunk-AITN3DO4.mjs.map +1 -0
- package/dist/esm/{chunk-QQIVWB6G.mjs → chunk-AJ5JHBAE.mjs} +2 -2
- package/dist/esm/{chunk-QQIVWB6G.mjs.map → chunk-AJ5JHBAE.mjs.map} +1 -1
- package/dist/esm/{chunk-PRZ7AIGA.mjs → chunk-AKIO3OIT.mjs} +2 -2
- package/dist/esm/chunk-AMCJQIOT.mjs +2 -0
- package/dist/esm/{chunk-UI3AKMZX.mjs.map → chunk-AMCJQIOT.mjs.map} +1 -1
- package/dist/esm/{chunk-KRVLR3L4.mjs → chunk-AOROYJ74.mjs} +2 -2
- package/dist/esm/chunk-AVPQOD67.mjs +2 -0
- package/dist/esm/chunk-AVPQOD67.mjs.map +1 -0
- package/dist/esm/chunk-AVZYJAXR.mjs +2 -0
- package/dist/esm/chunk-AVZYJAXR.mjs.map +1 -0
- package/dist/esm/{chunk-6AGTDRNM.mjs → chunk-BLLHTGAP.mjs} +2 -2
- package/dist/esm/{chunk-JGNMNCQB.mjs → chunk-BRV3RLKW.mjs} +2 -2
- package/dist/esm/{chunk-GIQQF2PD.mjs → chunk-CA3Q2X6B.mjs} +2 -2
- package/dist/esm/chunk-D52UKPQF.mjs +2 -0
- package/dist/esm/chunk-D52UKPQF.mjs.map +1 -0
- package/dist/esm/{chunk-FPF4KZ5M.mjs → chunk-DDVOBEJA.mjs} +2 -2
- package/dist/esm/chunk-DDVOBEJA.mjs.map +1 -0
- package/dist/esm/{chunk-QRTZYRH2.mjs → chunk-DP3YPGIK.mjs} +2 -2
- package/dist/esm/{chunk-DXQT55L3.mjs → chunk-DSKAMBBL.mjs} +2 -2
- package/dist/esm/{chunk-RAXP3STS.mjs → chunk-E2NYQVP3.mjs} +2 -2
- package/dist/esm/chunk-EEB7EZFO.mjs +2 -0
- package/dist/esm/chunk-EEB7EZFO.mjs.map +1 -0
- package/dist/esm/{chunk-WUCPTRXU.mjs → chunk-F2AIWA7L.mjs} +2 -2
- package/dist/esm/chunk-F45G3GP3.mjs +7 -0
- package/dist/esm/chunk-F45G3GP3.mjs.map +1 -0
- package/dist/esm/{chunk-VQTEGTUQ.mjs → chunk-FXUI3SSD.mjs} +2 -2
- package/dist/esm/chunk-G2GN4LH5.mjs +2 -0
- package/dist/esm/chunk-G2GN4LH5.mjs.map +1 -0
- package/dist/esm/chunk-GBVRCWCD.mjs +2 -0
- package/dist/esm/chunk-GBVRCWCD.mjs.map +1 -0
- package/dist/esm/chunk-H457BI3I.mjs +2 -0
- package/dist/esm/chunk-H457BI3I.mjs.map +1 -0
- package/dist/esm/{chunk-5AAFF2PV.mjs → chunk-HEHVWRMO.mjs} +2 -2
- package/dist/esm/{chunk-ZUTOMGB7.mjs → chunk-HFWFDS6Y.mjs} +2 -2
- package/dist/esm/{chunk-QBWGWHJK.mjs → chunk-HXXELLHN.mjs} +2 -2
- package/dist/esm/{chunk-LD5MUWGW.mjs → chunk-IBMZYDAR.mjs} +2 -2
- package/dist/esm/{chunk-QBP4XJT5.mjs → chunk-IDNDUJOK.mjs} +2 -2
- package/dist/esm/{chunk-HCV3NGLS.mjs → chunk-II654QZU.mjs} +2 -2
- package/dist/esm/{chunk-XIY2VORC.mjs → chunk-JDNI5VIJ.mjs} +2 -2
- package/dist/esm/{chunk-HAMXSLWF.mjs → chunk-JJUINAQE.mjs} +2 -2
- package/dist/esm/{chunk-K6MZXKVV.mjs → chunk-JLD7DLKM.mjs} +2 -2
- package/dist/esm/chunk-JNO7KPMG.mjs +4 -0
- package/dist/esm/chunk-JNO7KPMG.mjs.map +1 -0
- package/dist/esm/chunk-K4TJRYGQ.mjs +2 -0
- package/dist/esm/chunk-K4TJRYGQ.mjs.map +1 -0
- package/dist/esm/{chunk-NV6DHDM3.mjs → chunk-KA5FX53Q.mjs} +2 -2
- package/dist/esm/{chunk-CRL4WGOH.mjs → chunk-KT3DT5GV.mjs} +2 -2
- package/dist/esm/chunk-KT3DT5GV.mjs.map +1 -0
- package/dist/esm/chunk-KUL55M2H.mjs +2 -0
- package/dist/esm/chunk-KUL55M2H.mjs.map +1 -0
- package/dist/esm/{chunk-JDYASF3E.mjs → chunk-L2QVUMBV.mjs} +2 -2
- package/dist/esm/chunk-L2SDI7PI.mjs +2 -0
- package/dist/esm/chunk-L2SDI7PI.mjs.map +1 -0
- package/dist/esm/chunk-L56DQ4N3.mjs +2 -0
- package/dist/esm/chunk-L56DQ4N3.mjs.map +1 -0
- package/dist/esm/{chunk-S3FVA55H.mjs → chunk-LAAFLCDM.mjs} +2 -2
- package/dist/esm/{chunk-AGBA3Y7A.mjs → chunk-LGTOOAQI.mjs} +2 -2
- package/dist/esm/chunk-MHN6XY4Z.mjs +2 -0
- package/dist/esm/{chunk-PHG2IWZW.mjs → chunk-MOGPSSTD.mjs} +2 -2
- package/dist/esm/{chunk-KSKQVOBA.mjs → chunk-NARS3JDH.mjs} +2 -2
- package/dist/esm/{chunk-KSUZS6EL.mjs → chunk-NHKAQRJB.mjs} +2 -2
- package/dist/esm/{chunk-PHP47DI4.mjs → chunk-OIOGOW6I.mjs} +1 -1
- package/dist/esm/{chunk-PHP47DI4.mjs.map → chunk-OIOGOW6I.mjs.map} +1 -1
- package/dist/esm/{chunk-DCUVV3VY.mjs → chunk-OJBMR5CT.mjs} +2 -2
- package/dist/esm/chunk-OJBMR5CT.mjs.map +1 -0
- package/dist/esm/{chunk-TIZL5YVP.mjs → chunk-OKE3FXIP.mjs} +2 -2
- package/dist/esm/chunk-ONFKJ57C.mjs +2 -0
- package/dist/esm/chunk-ONFKJ57C.mjs.map +1 -0
- package/dist/esm/{chunk-ZINOJTLU.mjs → chunk-OPO5EYF7.mjs} +2 -2
- package/dist/esm/{chunk-HDTKBFRX.mjs → chunk-PW3ISXPN.mjs} +2 -2
- package/dist/esm/{chunk-WIXNX7HY.mjs → chunk-QQM47PHZ.mjs} +2 -2
- package/dist/esm/{chunk-5XXIIWG7.mjs → chunk-SBCLBDCP.mjs} +2 -2
- package/dist/esm/chunk-SPRNSFUV.mjs +2 -0
- package/dist/esm/chunk-SPRNSFUV.mjs.map +1 -0
- package/dist/esm/{chunk-Z36WHOZV.mjs → chunk-SU2WB34N.mjs} +2 -2
- package/dist/esm/{chunk-OTY3NO7Q.mjs → chunk-T6ADNZE5.mjs} +2 -2
- package/dist/esm/{chunk-IECDO22V.mjs → chunk-TM7OZT3W.mjs} +2 -2
- package/dist/esm/chunk-TM7OZT3W.mjs.map +1 -0
- package/dist/esm/chunk-UGTIALNW.mjs +2 -0
- package/dist/esm/chunk-UIRAXHDH.mjs +1 -0
- package/dist/esm/chunk-UZTJWOLS.mjs +2 -0
- package/dist/esm/chunk-V4FKFCBL.mjs +2 -0
- package/dist/esm/chunk-V4FKFCBL.mjs.map +1 -0
- package/dist/esm/{chunk-7V6RL27I.mjs → chunk-VCY3JGZM.mjs} +2 -2
- package/dist/esm/{chunk-XOCRDV2V.mjs → chunk-VQZMI3EZ.mjs} +2 -2
- package/dist/esm/chunk-WGIYSLH6.mjs +2 -0
- package/dist/esm/chunk-WGIYSLH6.mjs.map +1 -0
- package/dist/esm/{chunk-WOOH5MMX.mjs → chunk-WKNX43KN.mjs} +2 -2
- package/dist/esm/chunk-WKNX43KN.mjs.map +1 -0
- package/dist/esm/chunk-WQF3IOXC.mjs +2 -0
- package/dist/esm/chunk-WQF3IOXC.mjs.map +1 -0
- package/dist/esm/{chunk-N3OYD6VZ.mjs → chunk-WSFHH3BK.mjs} +2 -2
- package/dist/esm/{chunk-7PVIWKGT.mjs → chunk-X3JPX7T6.mjs} +2 -2
- package/dist/esm/{chunk-HGVZ7ULA.mjs → chunk-XKOSS5KC.mjs} +2 -2
- package/dist/esm/{chunk-TRU3EK64.mjs → chunk-XT5T5LAP.mjs} +2 -2
- package/dist/esm/chunk-XUP6VABV.mjs +2 -0
- package/dist/esm/chunk-XUP6VABV.mjs.map +1 -0
- package/dist/esm/{chunk-FO4F3OJJ.mjs → chunk-YNT7JHMS.mjs} +2 -2
- package/dist/esm/{chunk-37UZKMJI.mjs → chunk-YPBNYKOD.mjs} +2 -2
- package/dist/esm/{chunk-IFHQSZLK.mjs → chunk-YZ3YPLEU.mjs} +2 -2
- package/dist/esm/{chunk-OZN3OOJV.mjs → chunk-ZMBXHMVQ.mjs} +2 -2
- package/dist/esm/{chunk-BQXVHY7J.mjs → chunk-ZRWZIAF5.mjs} +2 -2
- package/dist/esm/cli/index.d.mts +3 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +2 -1
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.d.mts +2 -2
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +2 -2
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +3 -3
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +2 -2
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.d.mts +3 -2
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +3 -2
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.d.mts +3 -2
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +20 -10
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +4 -3
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +27 -12
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +4 -3
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +5 -4
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/hdKey.d.mts +0 -1
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +5 -4
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +73 -11
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +4 -3
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +4 -3
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +38 -10
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +3 -2
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +4 -3
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +24 -9
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +3 -2
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +4 -3
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.d.mts +3 -2
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.d.mts +40 -3
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +6 -5
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.d.mts +123 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/index.d.mts +13 -11
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +5 -4
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +5 -4
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +3 -2
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +5 -4
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +3 -2
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +2 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +5 -4
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +3 -2
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +13 -7
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +3 -2
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +2 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +3 -2
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +2 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +4 -3
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +4 -3
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/{publicKey-_tPa99ea.d.mts → publicKey-BVXX1nVl.d.mts} +2 -2
- package/dist/esm/transactions/authenticator/account.d.mts +4 -3
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +4 -3
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +10 -4
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +7 -5
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +3 -2
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +3 -2
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +4 -3
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +3 -2
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +3 -2
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +3 -2
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +4 -3
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +4 -3
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +3 -2
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +3 -2
- package/dist/esm/transactions/instances/transactionPayload.d.mts +3 -2
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +5 -4
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +5 -4
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +5 -4
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/script-composer/index.d.mts +44 -0
- package/dist/esm/transactions/script-composer/index.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -2
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +5 -4
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +26 -5
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +4 -3
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +4 -3
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +3 -2
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +3 -2
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +12 -3
- package/dist/esm/types/index.d.mts +4 -1260
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/keyless.d.mts +22 -1
- package/dist/esm/types/types.d.mts +1290 -0
- package/dist/esm/types/types.mjs +2 -0
- package/dist/esm/types/types.mjs.map +1 -0
- package/dist/esm/utils/helpers.d.mts +11 -3
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +3 -2
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +3 -2
- 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 +3 -2
- package/src/account/AbstractKeylessAccount.ts +203 -10
- package/src/account/FederatedKeylessAccount.ts +83 -35
- package/src/account/KeylessAccount.ts +44 -37
- package/src/account/MultiKeyAccount.ts +18 -5
- package/src/api/account.ts +12 -2
- package/src/api/keyless.ts +4 -3
- package/src/api/transactionSubmission/build.ts +82 -1
- package/src/bcs/deserializer.ts +53 -30
- package/src/bcs/serializable/moveStructs.ts +16 -17
- package/src/bcs/serializer.ts +22 -12
- package/src/cli/move.ts +20 -5
- package/src/client/core.ts +2 -2
- package/src/client/get.ts +1 -2
- package/src/client/index.ts +0 -1
- package/src/client/post.ts +1 -2
- package/src/core/accountAddress.ts +36 -9
- package/src/core/crypto/ed25519.ts +34 -14
- package/src/core/crypto/hdKey.ts +0 -1
- package/src/core/crypto/keyless.ts +245 -38
- package/src/core/crypto/privateKey.ts +81 -5
- package/src/core/crypto/secp256k1.ts +31 -11
- package/src/core/hex.ts +47 -0
- package/src/errors/index.ts +406 -0
- package/src/index.ts +1 -0
- package/src/internal/account.ts +6 -6
- package/src/internal/ans.ts +2 -1
- package/src/internal/keyless.ts +50 -20
- package/src/internal/transaction.ts +2 -1
- package/src/internal/transactionSubmission.ts +36 -18
- package/src/transactions/authenticator/transaction.ts +20 -0
- package/src/transactions/index.ts +1 -0
- package/src/transactions/script-composer/index.ts +76 -0
- package/src/transactions/transactionBuilder/remoteAbi.ts +55 -1
- package/src/transactions/types.ts +11 -0
- package/src/types/index.ts +2 -1483
- package/src/types/keyless.ts +19 -0
- package/src/types/types.ts +1512 -0
- package/src/utils/helpers.ts +10 -0
- package/src/version.ts +1 -1
- package/dist/common/chunk-7IYTZDXV.js +0 -2
- package/dist/common/chunk-7IYTZDXV.js.map +0 -1
- package/dist/esm/chunk-2I56E4T2.mjs +0 -2
- package/dist/esm/chunk-2I56E4T2.mjs.map +0 -1
- package/dist/esm/chunk-4CDDWSKZ.mjs +0 -2
- package/dist/esm/chunk-4OV7QU2U.mjs +0 -2
- package/dist/esm/chunk-5CCHECTE.mjs +0 -2
- package/dist/esm/chunk-5CCHECTE.mjs.map +0 -1
- package/dist/esm/chunk-5ZBHIUWG.mjs +0 -2
- package/dist/esm/chunk-5ZBHIUWG.mjs.map +0 -1
- package/dist/esm/chunk-7D3RY73L.mjs +0 -2
- package/dist/esm/chunk-7D3RY73L.mjs.map +0 -1
- package/dist/esm/chunk-7XS45O6M.mjs +0 -2
- package/dist/esm/chunk-7XS45O6M.mjs.map +0 -1
- package/dist/esm/chunk-CRL4WGOH.mjs.map +0 -1
- package/dist/esm/chunk-DCUVV3VY.mjs.map +0 -1
- package/dist/esm/chunk-DZJXOL64.mjs +0 -2
- package/dist/esm/chunk-DZJXOL64.mjs.map +0 -1
- package/dist/esm/chunk-EF2PUPUH.mjs.map +0 -1
- package/dist/esm/chunk-FPF4KZ5M.mjs.map +0 -1
- package/dist/esm/chunk-FY7TSOUU.mjs +0 -2
- package/dist/esm/chunk-FY7TSOUU.mjs.map +0 -1
- package/dist/esm/chunk-GPZRGLU2.mjs +0 -2
- package/dist/esm/chunk-GPZRGLU2.mjs.map +0 -1
- package/dist/esm/chunk-GQABU3RQ.mjs +0 -2
- package/dist/esm/chunk-GQABU3RQ.mjs.map +0 -1
- package/dist/esm/chunk-I5OYNCZS.mjs +0 -1
- package/dist/esm/chunk-IBLZ6MZU.mjs +0 -2
- package/dist/esm/chunk-IECDO22V.mjs.map +0 -1
- package/dist/esm/chunk-KFNDDPOW.mjs +0 -2
- package/dist/esm/chunk-KFNDDPOW.mjs.map +0 -1
- package/dist/esm/chunk-KFSVKIFO.mjs +0 -2
- package/dist/esm/chunk-KIW54KWR.mjs +0 -2
- package/dist/esm/chunk-KM6UXNC7.mjs +0 -2
- package/dist/esm/chunk-KM6UXNC7.mjs.map +0 -1
- package/dist/esm/chunk-KUX6GQ2E.mjs +0 -1
- package/dist/esm/chunk-L5I7F3NZ.mjs +0 -2
- package/dist/esm/chunk-L5I7F3NZ.mjs.map +0 -1
- package/dist/esm/chunk-LEKBJ2EG.mjs +0 -2
- package/dist/esm/chunk-LEKBJ2EG.mjs.map +0 -1
- package/dist/esm/chunk-LZS7BQ2B.mjs +0 -2
- package/dist/esm/chunk-LZS7BQ2B.mjs.map +0 -1
- package/dist/esm/chunk-N2FKVZ4D.mjs +0 -1
- package/dist/esm/chunk-N47FTRYO.mjs +0 -2
- package/dist/esm/chunk-N47FTRYO.mjs.map +0 -1
- package/dist/esm/chunk-OLPI7QAH.mjs.map +0 -1
- package/dist/esm/chunk-ONBFUPEC.mjs +0 -2
- package/dist/esm/chunk-OS2EG6AE.mjs +0 -2
- package/dist/esm/chunk-OS2EG6AE.mjs.map +0 -1
- package/dist/esm/chunk-PGZWRY7A.mjs +0 -2
- package/dist/esm/chunk-PGZWRY7A.mjs.map +0 -1
- package/dist/esm/chunk-RUDS7RSB.mjs +0 -2
- package/dist/esm/chunk-RUDS7RSB.mjs.map +0 -1
- package/dist/esm/chunk-UI3AKMZX.mjs +0 -2
- package/dist/esm/chunk-UKAXCARD.mjs +0 -2
- package/dist/esm/chunk-WOOH5MMX.mjs.map +0 -1
- package/dist/esm/chunk-WSVOJSAC.mjs +0 -2
- package/dist/esm/chunk-WSVOJSAC.mjs.map +0 -1
- package/dist/esm/chunk-ZS3EWM5A.mjs +0 -2
- package/dist/esm/chunk-ZS3EWM5A.mjs.map +0 -1
- package/dist/esm/client/types.d.mts +0 -66
- package/dist/esm/client/types.mjs +0 -2
- package/src/client/types.ts +0 -138
- /package/dist/esm/{chunk-OV5UQ75K.mjs.map → chunk-2NHQQQZK.mjs.map} +0 -0
- /package/dist/esm/{chunk-JY3JJ55D.mjs.map → chunk-37Y54PJ5.mjs.map} +0 -0
- /package/dist/esm/{chunk-XHCALZ7X.mjs.map → chunk-3XCYCFYI.mjs.map} +0 -0
- /package/dist/esm/{chunk-6FLHGOKP.mjs.map → chunk-42H7WETG.mjs.map} +0 -0
- /package/dist/esm/{chunk-RNAKZVRN.mjs.map → chunk-46L6BAJG.mjs.map} +0 -0
- /package/dist/esm/{chunk-EN2HDNFE.mjs.map → chunk-4DNCQM3S.mjs.map} +0 -0
- /package/dist/esm/{chunk-IBLZ6MZU.mjs.map → chunk-4O5XDQDO.mjs.map} +0 -0
- /package/dist/esm/{chunk-D3KBNFZR.mjs.map → chunk-5AKSORBJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-KIW54KWR.mjs.map → chunk-5B3SMBXQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-EKZQ3EYX.mjs.map → chunk-5NJWJXSS.mjs.map} +0 -0
- /package/dist/esm/{chunk-2QRWGJJA.mjs.map → chunk-6K4TOFCO.mjs.map} +0 -0
- /package/dist/esm/{chunk-R3Y6WH2U.mjs.map → chunk-6PJH53CK.mjs.map} +0 -0
- /package/dist/esm/{chunk-PCLU4KLY.mjs.map → chunk-6ZOVTYLJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-I5OYNCZS.mjs.map → chunk-7ECCT6PK.mjs.map} +0 -0
- /package/dist/esm/{chunk-JNHFQTFC.mjs.map → chunk-AAATWCJT.mjs.map} +0 -0
- /package/dist/esm/{chunk-NODYW7DM.mjs.map → chunk-ACVIE7IE.mjs.map} +0 -0
- /package/dist/esm/{chunk-PRZ7AIGA.mjs.map → chunk-AKIO3OIT.mjs.map} +0 -0
- /package/dist/esm/{chunk-KRVLR3L4.mjs.map → chunk-AOROYJ74.mjs.map} +0 -0
- /package/dist/esm/{chunk-6AGTDRNM.mjs.map → chunk-BLLHTGAP.mjs.map} +0 -0
- /package/dist/esm/{chunk-JGNMNCQB.mjs.map → chunk-BRV3RLKW.mjs.map} +0 -0
- /package/dist/esm/{chunk-GIQQF2PD.mjs.map → chunk-CA3Q2X6B.mjs.map} +0 -0
- /package/dist/esm/{chunk-QRTZYRH2.mjs.map → chunk-DP3YPGIK.mjs.map} +0 -0
- /package/dist/esm/{chunk-DXQT55L3.mjs.map → chunk-DSKAMBBL.mjs.map} +0 -0
- /package/dist/esm/{chunk-RAXP3STS.mjs.map → chunk-E2NYQVP3.mjs.map} +0 -0
- /package/dist/esm/{chunk-WUCPTRXU.mjs.map → chunk-F2AIWA7L.mjs.map} +0 -0
- /package/dist/esm/{chunk-VQTEGTUQ.mjs.map → chunk-FXUI3SSD.mjs.map} +0 -0
- /package/dist/esm/{chunk-5AAFF2PV.mjs.map → chunk-HEHVWRMO.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZUTOMGB7.mjs.map → chunk-HFWFDS6Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-QBWGWHJK.mjs.map → chunk-HXXELLHN.mjs.map} +0 -0
- /package/dist/esm/{chunk-LD5MUWGW.mjs.map → chunk-IBMZYDAR.mjs.map} +0 -0
- /package/dist/esm/{chunk-QBP4XJT5.mjs.map → chunk-IDNDUJOK.mjs.map} +0 -0
- /package/dist/esm/{chunk-HCV3NGLS.mjs.map → chunk-II654QZU.mjs.map} +0 -0
- /package/dist/esm/{chunk-XIY2VORC.mjs.map → chunk-JDNI5VIJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-HAMXSLWF.mjs.map → chunk-JJUINAQE.mjs.map} +0 -0
- /package/dist/esm/{chunk-K6MZXKVV.mjs.map → chunk-JLD7DLKM.mjs.map} +0 -0
- /package/dist/esm/{chunk-NV6DHDM3.mjs.map → chunk-KA5FX53Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-JDYASF3E.mjs.map → chunk-L2QVUMBV.mjs.map} +0 -0
- /package/dist/esm/{chunk-S3FVA55H.mjs.map → chunk-LAAFLCDM.mjs.map} +0 -0
- /package/dist/esm/{chunk-AGBA3Y7A.mjs.map → chunk-LGTOOAQI.mjs.map} +0 -0
- /package/dist/esm/{chunk-4OV7QU2U.mjs.map → chunk-MHN6XY4Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-PHG2IWZW.mjs.map → chunk-MOGPSSTD.mjs.map} +0 -0
- /package/dist/esm/{chunk-KSKQVOBA.mjs.map → chunk-NARS3JDH.mjs.map} +0 -0
- /package/dist/esm/{chunk-KSUZS6EL.mjs.map → chunk-NHKAQRJB.mjs.map} +0 -0
- /package/dist/esm/{chunk-TIZL5YVP.mjs.map → chunk-OKE3FXIP.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZINOJTLU.mjs.map → chunk-OPO5EYF7.mjs.map} +0 -0
- /package/dist/esm/{chunk-HDTKBFRX.mjs.map → chunk-PW3ISXPN.mjs.map} +0 -0
- /package/dist/esm/{chunk-WIXNX7HY.mjs.map → chunk-QQM47PHZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-5XXIIWG7.mjs.map → chunk-SBCLBDCP.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z36WHOZV.mjs.map → chunk-SU2WB34N.mjs.map} +0 -0
- /package/dist/esm/{chunk-OTY3NO7Q.mjs.map → chunk-T6ADNZE5.mjs.map} +0 -0
- /package/dist/esm/{chunk-ONBFUPEC.mjs.map → chunk-UGTIALNW.mjs.map} +0 -0
- /package/dist/esm/{chunk-KUX6GQ2E.mjs.map → chunk-UIRAXHDH.mjs.map} +0 -0
- /package/dist/esm/{chunk-4CDDWSKZ.mjs.map → chunk-UZTJWOLS.mjs.map} +0 -0
- /package/dist/esm/{chunk-7V6RL27I.mjs.map → chunk-VCY3JGZM.mjs.map} +0 -0
- /package/dist/esm/{chunk-XOCRDV2V.mjs.map → chunk-VQZMI3EZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-N3OYD6VZ.mjs.map → chunk-WSFHH3BK.mjs.map} +0 -0
- /package/dist/esm/{chunk-7PVIWKGT.mjs.map → chunk-X3JPX7T6.mjs.map} +0 -0
- /package/dist/esm/{chunk-HGVZ7ULA.mjs.map → chunk-XKOSS5KC.mjs.map} +0 -0
- /package/dist/esm/{chunk-TRU3EK64.mjs.map → chunk-XT5T5LAP.mjs.map} +0 -0
- /package/dist/esm/{chunk-FO4F3OJJ.mjs.map → chunk-YNT7JHMS.mjs.map} +0 -0
- /package/dist/esm/{chunk-37UZKMJI.mjs.map → chunk-YPBNYKOD.mjs.map} +0 -0
- /package/dist/esm/{chunk-IFHQSZLK.mjs.map → chunk-YZ3YPLEU.mjs.map} +0 -0
- /package/dist/esm/{chunk-OZN3OOJV.mjs.map → chunk-ZMBXHMVQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-BQXVHY7J.mjs.map → chunk-ZRWZIAF5.mjs.map} +0 -0
- /package/dist/esm/{chunk-N2FKVZ4D.mjs.map → errors/index.mjs.map} +0 -0
- /package/dist/esm/{client/types.mjs.map → transactions/script-composer/index.mjs.map} +0 -0
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
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, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, n as AccountAddressInput, M as MoveModuleId, o as ScriptFunctionArgument, p as MoveFunctionId, q as MoveStructId, r as MoveValue, s as MoveFunctionGenericTypeParam, t as SigningSchemeInput, u as SigningScheme, v as AccountData,
|
|
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, P as PrivateKeyVariants, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, n as AccountAddressInput, M as MoveModuleId, o as ScriptFunctionArgument, p as MoveFunctionId, q as MoveStructId, r as MoveValue, s as MoveFunctionGenericTypeParam, t as SigningSchemeInput, u as SigningScheme, v as AccountData, w as PaginationArgs, x as MoveModuleBytecode, y as TransactionResponse, z as MoveResource, B as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, J as GetAccountOwnedTokensFromCollectionResponse, K as GetAccountCollectionsWithOwnedTokenResponse, Q as GetAccountCoinsDataResponse, W as WhereArg, R as GetObjectDataQueryResponse, V as GetCollectionDataResponse, X as GetTokenDataResponse, Y as GetCurrentTokenOwnershipResponse, _ as GetOwnedTokensResponse, $ as GetTokenActivityResponse, a0 as GetEventsResponse, a1 as WaitForTransactionOptions, a2 as UserTransactionResponse, a3 as MoveFunction, a4 as GetFungibleAssetMetadataResponse, a5 as GetFungibleAssetActivitiesResponse, a6 as GetCurrentFungibleAssetBalancesResponse, a7 as LedgerInfo, a8 as Block, 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 AptosRequest, ao as AptosResponse, ap as MimeType } from './accountAddress-6RqI8Aam.js';
|
|
2
|
+
export { aG as AccountAuthenticatorVariant, bp as AccountSignature, at as AddressInvalidReason, aH as AnySignatureVariant, aZ as BlockEndInfo, a_ as BlockEpilogueTransactionResponse, aW as BlockMetadataTransactionResponse, aM as ClientHeadersType, b6 as DecodedTableData, b7 as DeletedTableData, bM as DeriveScheme, bs as DirectWriteSet, b9 as EntryFunctionPayloadResponse, aI as EphemeralSignatureVariant, bu as Event, bt as EventGuid, bP as GenerateAccount, bN as GenerateAccountWithEd25519, bO as GenerateAccountWithSingleSignerSecp256k1Key, bc as GenesisPayload, aV as GenesisTransactionResponse, aw as HexInvalidReason, bH as MoveAbility, bB as MoveAddressType, bG as MoveFunctionVisibility, bJ as MoveModule, bC as MoveObjectType, bD as MoveOptionType, bd as MoveScriptBytecode, bK as MoveStruct, bI as MoveStructField, bE as MoveStructType, bF as MoveType, bz as MoveUint128Type, bw as MoveUint16Type, bA as MoveUint256Type, bx as MoveUint32Type, by as MoveUint64Type, bv as MoveUint8Type, bb as MultisigPayloadResponse, bV as NetworkToChainId, bS as NetworkToFaucetAPI, bQ as NetworkToIndexerAPI, bW as NetworkToNetworkName, bR as NetworkToNodeAPI, bT as NetworkToPepperAPI, bU as NetworkToProverAPI, ay as OrderBy, az as OrderByValue, au as ParsingError, av as ParsingResult, bL as RoleType, ba as ScriptPayloadResponse, aC as ScriptTransactionArgumentVariants, br as ScriptWriteSet, aX as StateCheckpointTransactionResponse, aA as TokenStandard, aF as TransactionAuthenticatorVariant, bk as TransactionEd25519Signature, bo as TransactionFeePayerSignature, bn as TransactionMultiAgentSignature, bm as TransactionMultiEd25519Signature, b8 as TransactionPayloadResponse, aD as TransactionPayloadVariants, aN as TransactionResponseType, bl as TransactionSecp256k1Signature, be as TransactionSignature, aE as TransactionVariants, aB as TypeTagVariants, aK as Uint128, aL as Uint256, aJ as Uint64, aY as ValidatorTransactionResponse, bq as WriteSet, a$ as WriteSetChange, b0 as WriteSetChangeDeleteModule, b1 as WriteSetChangeDeleteResource, b2 as WriteSetChangeDeleteTableItem, b3 as WriteSetChangeWriteModule, b4 as WriteSetChangeWriteResource, b5 as WriteSetChangeWriteTableItem, aq as ensureBoolean, ax as hexToAsciiString, aU as isBlockEpilogueTransactionResponse, aR as isBlockMetadataTransactionResponse, bf as isEd25519Signature, bi as isFeePayerSignature, aQ as isGenesisTransactionResponse, bh as isMultiAgentSignature, bj as isMultiEd25519Signature, aO as isPendingTransactionResponse, bg as isSecp256k1Signature, aS as isStateCheckpointTransactionResponse, aP as isUserTransactionResponse, aT as isValidatorTransactionResponse, ar as outOfRangeErrorMessage, as as validateNumberInRange } from './accountAddress-6RqI8Aam.js';
|
|
3
|
+
import { CallArgument } from '@wgb5445/aptos-intent-npm';
|
|
4
|
+
export { CallArgument } from '@wgb5445/aptos-intent-npm';
|
|
3
5
|
import EventEmitter from 'eventemitter3';
|
|
4
6
|
|
|
5
7
|
type Maybe<T> = T | null;
|
|
@@ -635,8 +637,7 @@ declare class U256 extends Serializable implements TransactionArgument {
|
|
|
635
637
|
* const vecOfStrings = new MoveVector([new MoveString("hello"), new MoveString("world")]);
|
|
636
638
|
* const vecOfStrings2 = MoveVector.MoveString(["hello", "world"]);
|
|
637
639
|
*
|
|
638
|
-
* @
|
|
639
|
-
* values: an Array<T> of values where T is a class that implements Serializable
|
|
640
|
+
* @param values an Array<T> of values where T is a class that implements Serializable
|
|
640
641
|
* @returns a `MoveVector<T>` with the values `values`
|
|
641
642
|
*/
|
|
642
643
|
declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends Serializable implements TransactionArgument {
|
|
@@ -875,7 +876,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
875
876
|
* MoveOption.U8(1).isSome() === true;
|
|
876
877
|
* MoveOption.U8().isSome() === false;
|
|
877
878
|
* MoveOption.U8(undefined).isSome() === false;
|
|
878
|
-
* @
|
|
879
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
879
880
|
* the resulting MoveOption's .isSome() method will return false.
|
|
880
881
|
* @returns a MoveOption<U8> with an inner value `value`
|
|
881
882
|
*/
|
|
@@ -887,7 +888,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
887
888
|
* MoveOption.U16(1).isSome() === true;
|
|
888
889
|
* MoveOption.U16().isSome() === false;
|
|
889
890
|
* MoveOption.U16(undefined).isSome() === false;
|
|
890
|
-
* @
|
|
891
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
891
892
|
* the resulting MoveOption's .isSome() method will return false.
|
|
892
893
|
* @returns a MoveOption<U16> with an inner value `value`
|
|
893
894
|
*/
|
|
@@ -899,7 +900,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
899
900
|
* MoveOption.U32(1).isSome() === true;
|
|
900
901
|
* MoveOption.U32().isSome() === false;
|
|
901
902
|
* MoveOption.U32(undefined).isSome() === false;
|
|
902
|
-
* @
|
|
903
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
903
904
|
* the resulting MoveOption's .isSome() method will return false.
|
|
904
905
|
* @returns a MoveOption<U32> with an inner value `value`
|
|
905
906
|
*/
|
|
@@ -911,7 +912,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
911
912
|
* MoveOption.U64(1).isSome() === true;
|
|
912
913
|
* MoveOption.U64().isSome() === false;
|
|
913
914
|
* MoveOption.U64(undefined).isSome() === false;
|
|
914
|
-
* @
|
|
915
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
915
916
|
* the resulting MoveOption's .isSome() method will return false.
|
|
916
917
|
* @returns a MoveOption<U64> with an inner value `value`
|
|
917
918
|
*/
|
|
@@ -923,7 +924,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
923
924
|
* MoveOption.U128(1).isSome() === true;
|
|
924
925
|
* MoveOption.U128().isSome() === false;
|
|
925
926
|
* MoveOption.U128(undefined).isSome() === false;
|
|
926
|
-
* @
|
|
927
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
927
928
|
* the resulting MoveOption's .isSome() method will return false.
|
|
928
929
|
* @returns a MoveOption<U128> with an inner value `value`
|
|
929
930
|
*/
|
|
@@ -935,7 +936,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
935
936
|
* MoveOption.U256(1).isSome() === true;
|
|
936
937
|
* MoveOption.U256().isSome() === false;
|
|
937
938
|
* MoveOption.U256(undefined).isSome() === false;
|
|
938
|
-
* @
|
|
939
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
939
940
|
* the resulting MoveOption's .isSome() method will return false.
|
|
940
941
|
* @returns a MoveOption<U256> with an inner value `value`
|
|
941
942
|
*/
|
|
@@ -947,7 +948,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
947
948
|
* MoveOption.Bool(true).isSome() === true;
|
|
948
949
|
* MoveOption.Bool().isSome() === false;
|
|
949
950
|
* MoveOption.Bool(undefined).isSome() === false;
|
|
950
|
-
* @
|
|
951
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
951
952
|
* the resulting MoveOption's .isSome() method will return false.
|
|
952
953
|
* @returns a MoveOption<Bool> with an inner value `value`
|
|
953
954
|
*/
|
|
@@ -960,7 +961,7 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
960
961
|
* MoveOption.MoveString("").isSome() === true;
|
|
961
962
|
* MoveOption.MoveString().isSome() === false;
|
|
962
963
|
* MoveOption.MoveString(undefined).isSome() === false;
|
|
963
|
-
* @
|
|
964
|
+
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
964
965
|
* the resulting MoveOption's .isSome() method will return false.
|
|
965
966
|
* @returns a MoveOption<MoveString> with an inner value `value`
|
|
966
967
|
*/
|
|
@@ -1132,10 +1133,6 @@ declare abstract class AccountPublicKey extends PublicKey {
|
|
|
1132
1133
|
|
|
1133
1134
|
/**
|
|
1134
1135
|
* Represents a private key used for signing messages and deriving the associated public key.
|
|
1135
|
-
*
|
|
1136
|
-
* @method sign - Signs the given message with the private key.
|
|
1137
|
-
* @method publicKey - Derives the public key associated with the private key.
|
|
1138
|
-
* @method toUint8Array - Retrieves the private key in bytes.
|
|
1139
1136
|
*/
|
|
1140
1137
|
interface PrivateKey {
|
|
1141
1138
|
/**
|
|
@@ -1153,6 +1150,37 @@ interface PrivateKey {
|
|
|
1153
1150
|
*/
|
|
1154
1151
|
toUint8Array(): Uint8Array;
|
|
1155
1152
|
}
|
|
1153
|
+
declare class PrivateKey {
|
|
1154
|
+
/**
|
|
1155
|
+
* The AIP-80 compliant prefixes for each private key type. Append this to a private key's hex representation
|
|
1156
|
+
* to get an AIP-80 compliant string.
|
|
1157
|
+
*
|
|
1158
|
+
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
1159
|
+
*/
|
|
1160
|
+
static readonly AIP80_PREFIXES: {
|
|
1161
|
+
ed25519: string;
|
|
1162
|
+
secp256k1: string;
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* Format a HexInput to an AIP-80 compliant string.
|
|
1166
|
+
*
|
|
1167
|
+
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
1168
|
+
*
|
|
1169
|
+
* @param privateKey - The HexString or Uint8Array format of the private key.
|
|
1170
|
+
* @param privateKeyType - The private key type
|
|
1171
|
+
*/
|
|
1172
|
+
static formatPrivateKey(privateKey: HexInput, type: PrivateKeyVariants): string;
|
|
1173
|
+
/**
|
|
1174
|
+
* Parse a HexInput that may be a HexString, Uint8Array, or a AIP-80 compliant string to a Hex instance.
|
|
1175
|
+
*
|
|
1176
|
+
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
1177
|
+
*
|
|
1178
|
+
* @param value - A HexString, Uint8Array, or a AIP-80 compliant string.
|
|
1179
|
+
* @param privateKeyType - The private key type
|
|
1180
|
+
* @param strict - If true, the value MUST be compliant with AIP-80.
|
|
1181
|
+
*/
|
|
1182
|
+
static parseHexInput(value: HexInput, type: PrivateKeyVariants, strict?: boolean): Hex;
|
|
1183
|
+
}
|
|
1156
1184
|
|
|
1157
1185
|
/**
|
|
1158
1186
|
* Checks if an ED25519 signature is non-canonical.
|
|
@@ -1247,20 +1275,17 @@ declare class Ed25519PublicKey extends AccountPublicKey {
|
|
|
1247
1275
|
}
|
|
1248
1276
|
/**
|
|
1249
1277
|
* Represents the private key of an Ed25519 key pair.
|
|
1250
|
-
*
|
|
1251
|
-
* @static
|
|
1252
|
-
* @readonly LENGTH - Length of an Ed25519 private key.
|
|
1253
|
-
* @static
|
|
1254
|
-
* @readonly SLIP_0010_SEED - The Ed25519 key seed to use for BIP-32 compatibility.
|
|
1255
1278
|
*/
|
|
1256
1279
|
declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
1257
1280
|
/**
|
|
1258
1281
|
* Length of an Ed25519 private key
|
|
1282
|
+
* @readonly
|
|
1259
1283
|
*/
|
|
1260
1284
|
static readonly LENGTH: number;
|
|
1261
1285
|
/**
|
|
1262
1286
|
* The Ed25519 key seed to use for BIP-32 compatibility
|
|
1263
1287
|
* See more {@link https://github.com/satoshilabs/slips/blob/master/slip-0010.md}
|
|
1288
|
+
* @readonly
|
|
1264
1289
|
*/
|
|
1265
1290
|
static readonly SLIP_0010_SEED = "ed25519 seed";
|
|
1266
1291
|
/**
|
|
@@ -1271,9 +1296,12 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
1271
1296
|
/**
|
|
1272
1297
|
* Create a new PrivateKey instance from a Uint8Array or String.
|
|
1273
1298
|
*
|
|
1299
|
+
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
1300
|
+
*
|
|
1274
1301
|
* @param hexInput HexInput (string or Uint8Array)
|
|
1302
|
+
* @param strict If true, private key must AIP-80 compliant.
|
|
1275
1303
|
*/
|
|
1276
|
-
constructor(hexInput: HexInput);
|
|
1304
|
+
constructor(hexInput: HexInput, strict?: boolean);
|
|
1277
1305
|
/**
|
|
1278
1306
|
* Generate a new random private key.
|
|
1279
1307
|
*
|
|
@@ -1328,6 +1356,20 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
1328
1356
|
* @returns string representation of the private key.
|
|
1329
1357
|
*/
|
|
1330
1358
|
toString(): string;
|
|
1359
|
+
/**
|
|
1360
|
+
* Get the private key as a hex string with the 0x prefix.
|
|
1361
|
+
*
|
|
1362
|
+
* @returns string representation of the private key.
|
|
1363
|
+
*/
|
|
1364
|
+
toHexString(): string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Get the private key as a AIP-80 compliant hex string.
|
|
1367
|
+
*
|
|
1368
|
+
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
1369
|
+
*
|
|
1370
|
+
* @returns AIP-80 compliant string representation of the private key.
|
|
1371
|
+
*/
|
|
1372
|
+
toAIP80String(): string;
|
|
1331
1373
|
serialize(serializer: Serializer): void;
|
|
1332
1374
|
static deserialize(deserializer: Deserializer): Ed25519PrivateKey;
|
|
1333
1375
|
/**
|
|
@@ -1342,12 +1384,12 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
1342
1384
|
}
|
|
1343
1385
|
/**
|
|
1344
1386
|
* Represents a signature of a message signed using an Ed25519 private key.
|
|
1345
|
-
*
|
|
1346
|
-
* @static LENGTH - Length of an Ed25519 signature, which is 64 bytes.
|
|
1347
1387
|
*/
|
|
1348
1388
|
declare class Ed25519Signature extends Signature {
|
|
1349
1389
|
/**
|
|
1350
|
-
* Length of an Ed25519 signature
|
|
1390
|
+
* Length of an Ed25519 signature, which is 64 bytes.
|
|
1391
|
+
*
|
|
1392
|
+
* @readonly
|
|
1351
1393
|
*/
|
|
1352
1394
|
static readonly LENGTH = 64;
|
|
1353
1395
|
/**
|
|
@@ -1414,7 +1456,6 @@ declare const deriveKey: (hashSeed: Uint8Array | string, data: Uint8Array | stri
|
|
|
1414
1456
|
* @param key
|
|
1415
1457
|
* @param chainCode
|
|
1416
1458
|
* @param index
|
|
1417
|
-
* @constructor
|
|
1418
1459
|
*/
|
|
1419
1460
|
declare const CKDPriv: ({ key, chainCode }: DerivedKeys, index: number) => DerivedKeys;
|
|
1420
1461
|
/**
|
|
@@ -1938,6 +1979,12 @@ type Groth16VerificationKeyResponse = {
|
|
|
1938
1979
|
gamma_abc_g1: [string, string];
|
|
1939
1980
|
gamma_g2: string;
|
|
1940
1981
|
};
|
|
1982
|
+
type MoveAnyStruct = {
|
|
1983
|
+
variant: {
|
|
1984
|
+
data: string;
|
|
1985
|
+
type_name: string;
|
|
1986
|
+
};
|
|
1987
|
+
};
|
|
1941
1988
|
|
|
1942
1989
|
/**
|
|
1943
1990
|
* Types of API endpoints used for routing requests in the Aptos network.
|
|
@@ -2330,6 +2377,12 @@ declare class KeylessSignature extends Signature {
|
|
|
2330
2377
|
ephemeralPublicKey: EphemeralPublicKey;
|
|
2331
2378
|
ephemeralSignature: EphemeralSignature;
|
|
2332
2379
|
});
|
|
2380
|
+
/**
|
|
2381
|
+
* Get the kid of the JWT used to derive the Keyless Account used to sign.
|
|
2382
|
+
*
|
|
2383
|
+
* @returns the kid as a string
|
|
2384
|
+
*/
|
|
2385
|
+
getJwkKid(): string;
|
|
2333
2386
|
serialize(serializer: Serializer): void;
|
|
2334
2387
|
static deserialize(deserializer: Deserializer): KeylessSignature;
|
|
2335
2388
|
static getSimulationSignature(): KeylessSignature;
|
|
@@ -2478,12 +2531,12 @@ declare class KeylessConfiguration {
|
|
|
2478
2531
|
/**
|
|
2479
2532
|
* The verification key used to verify Groth16 proofs on chain
|
|
2480
2533
|
*/
|
|
2481
|
-
readonly
|
|
2534
|
+
readonly verificationKey: Groth16VerificationKey;
|
|
2482
2535
|
/**
|
|
2483
2536
|
* The maximum lifespan of an ephemeral key pair. This is configured on chain.
|
|
2484
2537
|
*/
|
|
2485
2538
|
readonly maxExpHorizonSecs: number;
|
|
2486
|
-
constructor(
|
|
2539
|
+
constructor(verificationKey: Groth16VerificationKey, maxExpHorizonSecs: number);
|
|
2487
2540
|
static create(res: Groth16VerificationKeyResponse, maxExpHorizonSecs: number): KeylessConfiguration;
|
|
2488
2541
|
}
|
|
2489
2542
|
/**
|
|
@@ -2505,7 +2558,7 @@ declare class Groth16VerificationKey {
|
|
|
2505
2558
|
/**
|
|
2506
2559
|
* The `gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H`, where H is the generator of G1
|
|
2507
2560
|
*/
|
|
2508
|
-
readonly gammaAbcG1: G1Bytes
|
|
2561
|
+
readonly gammaAbcG1: [G1Bytes, G1Bytes];
|
|
2509
2562
|
/**
|
|
2510
2563
|
* The `gamma * H`, where `H` is the generator of G2
|
|
2511
2564
|
*/
|
|
@@ -2517,6 +2570,14 @@ declare class Groth16VerificationKey {
|
|
|
2517
2570
|
gammaAbcG1: [HexInput, HexInput];
|
|
2518
2571
|
gammaG2: HexInput;
|
|
2519
2572
|
});
|
|
2573
|
+
/**
|
|
2574
|
+
* Calculates the hash of the serialized form of the verification key.
|
|
2575
|
+
* This is useful for comparing verification keys or using them as unique identifiers.
|
|
2576
|
+
*
|
|
2577
|
+
* @returns The SHA3-256 hash of the serialized verification key as a Uint8Array
|
|
2578
|
+
*/
|
|
2579
|
+
hash(): Uint8Array;
|
|
2580
|
+
serialize(serializer: Serializer): void;
|
|
2520
2581
|
/**
|
|
2521
2582
|
* Converts a Groth16VerificationKeyResponse object into a Groth16VerificationKey instance.
|
|
2522
2583
|
*
|
|
@@ -2544,6 +2605,53 @@ declare function getKeylessConfig(args: {
|
|
|
2544
2605
|
aptosConfig: AptosConfig;
|
|
2545
2606
|
options?: LedgerVersionArg;
|
|
2546
2607
|
}): Promise<KeylessConfiguration>;
|
|
2608
|
+
/**
|
|
2609
|
+
* Parses a JWT and returns the 'iss', 'aud', and 'uid' values.
|
|
2610
|
+
*
|
|
2611
|
+
* @param args - The arguments for parsing the JWT.
|
|
2612
|
+
* @param args.jwt - The JWT to parse.
|
|
2613
|
+
* @param args.uidKey - The key to use for the 'uid' value; defaults to 'sub'.
|
|
2614
|
+
* @returns The 'iss', 'aud', and 'uid' values from the JWT.
|
|
2615
|
+
*/
|
|
2616
|
+
declare function getIssAudAndUidVal(args: {
|
|
2617
|
+
jwt: string;
|
|
2618
|
+
uidKey?: string;
|
|
2619
|
+
}): {
|
|
2620
|
+
iss: string;
|
|
2621
|
+
aud: string;
|
|
2622
|
+
uidVal: string;
|
|
2623
|
+
};
|
|
2624
|
+
declare function getKeylessJWKs(args: {
|
|
2625
|
+
aptosConfig: AptosConfig;
|
|
2626
|
+
jwkAddr?: AccountAddressInput;
|
|
2627
|
+
options?: LedgerVersionArg;
|
|
2628
|
+
}): Promise<Map<string, MoveJWK[]>>;
|
|
2629
|
+
declare class MoveJWK extends Serializable {
|
|
2630
|
+
kid: string;
|
|
2631
|
+
kty: string;
|
|
2632
|
+
alg: string;
|
|
2633
|
+
e: string;
|
|
2634
|
+
n: string;
|
|
2635
|
+
constructor(args: {
|
|
2636
|
+
kid: string;
|
|
2637
|
+
kty: string;
|
|
2638
|
+
alg: string;
|
|
2639
|
+
e: string;
|
|
2640
|
+
n: string;
|
|
2641
|
+
});
|
|
2642
|
+
serialize(serializer: Serializer): void;
|
|
2643
|
+
static fromMoveStruct(struct: MoveAnyStruct): MoveJWK;
|
|
2644
|
+
static deserialize(deserializer: Deserializer): MoveJWK;
|
|
2645
|
+
}
|
|
2646
|
+
interface JwtHeader {
|
|
2647
|
+
kid: string;
|
|
2648
|
+
}
|
|
2649
|
+
/**
|
|
2650
|
+
* Safely parses the JWT header.
|
|
2651
|
+
* @param jwtHeader The JWT header string
|
|
2652
|
+
* @returns Parsed JWT header as an object.
|
|
2653
|
+
*/
|
|
2654
|
+
declare function parseJwtHeader(jwtHeader: string): JwtHeader;
|
|
2547
2655
|
|
|
2548
2656
|
/**
|
|
2549
2657
|
* Represents the FederatedKeylessPublicKey public key
|
|
@@ -2661,7 +2769,6 @@ declare function poseidonHash(inputs: (number | bigint | string)[]): bigint;
|
|
|
2661
2769
|
* Represents a Secp256k1 ECDSA public key.
|
|
2662
2770
|
*
|
|
2663
2771
|
* @extends PublicKey
|
|
2664
|
-
* @static
|
|
2665
2772
|
* @property LENGTH - The length of the Secp256k1 public key in bytes.
|
|
2666
2773
|
*/
|
|
2667
2774
|
declare class Secp256k1PublicKey extends PublicKey {
|
|
@@ -2739,9 +2846,12 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
2739
2846
|
/**
|
|
2740
2847
|
* Create a new PrivateKey instance from a Uint8Array or String.
|
|
2741
2848
|
*
|
|
2849
|
+
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
2850
|
+
*
|
|
2742
2851
|
* @param hexInput A HexInput (string or Uint8Array)
|
|
2852
|
+
* @param strict If true, private key must AIP-80 compliant.
|
|
2743
2853
|
*/
|
|
2744
|
-
constructor(hexInput: HexInput);
|
|
2854
|
+
constructor(hexInput: HexInput, strict?: boolean);
|
|
2745
2855
|
/**
|
|
2746
2856
|
* Generate a new random private key.
|
|
2747
2857
|
*
|
|
@@ -2795,6 +2905,20 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
2795
2905
|
* @returns string representation of the private key
|
|
2796
2906
|
*/
|
|
2797
2907
|
toString(): string;
|
|
2908
|
+
/**
|
|
2909
|
+
* Get the private key as a hex string with the 0x prefix.
|
|
2910
|
+
*
|
|
2911
|
+
* @returns string representation of the private key.
|
|
2912
|
+
*/
|
|
2913
|
+
toHexString(): string;
|
|
2914
|
+
/**
|
|
2915
|
+
* Get the private key as a AIP-80 compliant hex string.
|
|
2916
|
+
*
|
|
2917
|
+
* [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)
|
|
2918
|
+
*
|
|
2919
|
+
* @returns AIP-80 compliant string representation of the private key.
|
|
2920
|
+
*/
|
|
2921
|
+
toAIP80String(): string;
|
|
2798
2922
|
serialize(serializer: Serializer): void;
|
|
2799
2923
|
static deserialize(deserializer: Deserializer): Secp256k1PrivateKey;
|
|
2800
2924
|
/**
|
|
@@ -2809,13 +2933,11 @@ declare class Secp256k1PrivateKey extends Serializable implements PrivateKey {
|
|
|
2809
2933
|
/**
|
|
2810
2934
|
* Represents a signature of a message signed using a Secp256k1 ECDSA private key.
|
|
2811
2935
|
*
|
|
2812
|
-
* @static
|
|
2813
|
-
* @readonly
|
|
2814
|
-
* @length The length of Secp256k1 ECDSA signatures, which is 64 bytes.
|
|
2815
2936
|
*/
|
|
2816
2937
|
declare class Secp256k1Signature extends Signature {
|
|
2817
2938
|
/**
|
|
2818
|
-
* Secp256k1 ecdsa signatures are 256-bit
|
|
2939
|
+
* Secp256k1 ecdsa signatures are 256-bit or 64 bytes
|
|
2940
|
+
* @readonly
|
|
2819
2941
|
*/
|
|
2820
2942
|
static readonly LENGTH = 64;
|
|
2821
2943
|
/**
|
|
@@ -3834,6 +3956,11 @@ declare abstract class TransactionAuthenticator extends Serializable {
|
|
|
3834
3956
|
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
3835
3957
|
*/
|
|
3836
3958
|
static deserialize(deserializer: Deserializer): TransactionAuthenticator;
|
|
3959
|
+
isEd25519(): this is TransactionAuthenticatorEd25519;
|
|
3960
|
+
isMultiEd25519(): this is TransactionAuthenticatorMultiEd25519;
|
|
3961
|
+
isMultiAgent(): this is TransactionAuthenticatorMultiAgent;
|
|
3962
|
+
isFeePayer(): this is TransactionAuthenticatorFeePayer;
|
|
3963
|
+
isSingleSender(): this is TransactionAuthenticatorSingleSender;
|
|
3837
3964
|
}
|
|
3838
3965
|
/**
|
|
3839
3966
|
* Represents a transaction authenticator using Ed25519 for a single signer transaction.
|
|
@@ -4143,6 +4270,14 @@ type InputMultiSigDataWithABI = {
|
|
|
4143
4270
|
type InputEntryFunctionDataWithRemoteABI = InputEntryFunctionData & {
|
|
4144
4271
|
aptosConfig: AptosConfig;
|
|
4145
4272
|
};
|
|
4273
|
+
/**
|
|
4274
|
+
* The data needed to generate a batched function payload
|
|
4275
|
+
*/
|
|
4276
|
+
type InputBatchedFunctionData = {
|
|
4277
|
+
function: MoveFunctionId;
|
|
4278
|
+
typeArguments?: Array<TypeArgument>;
|
|
4279
|
+
functionArguments: Array<EntryFunctionArgumentTypes | CallArgument | SimpleEntryFunctionArgumentTypes>;
|
|
4280
|
+
};
|
|
4146
4281
|
/**
|
|
4147
4282
|
* The data needed to generate a Multi Sig payload
|
|
4148
4283
|
*/
|
|
@@ -4904,11 +5039,18 @@ declare class EphemeralKeyPair extends Serializable {
|
|
|
4904
5039
|
sign(data: HexInput): EphemeralSignature;
|
|
4905
5040
|
}
|
|
4906
5041
|
|
|
5042
|
+
/**
|
|
5043
|
+
* An interface which defines if an Account utilizes Keyless signing.
|
|
5044
|
+
*/
|
|
5045
|
+
interface KeylessSigner extends Account$1 {
|
|
5046
|
+
checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
|
|
5047
|
+
}
|
|
5048
|
+
declare function isKeylessSigner(obj: any): obj is KeylessSigner;
|
|
4907
5049
|
/**
|
|
4908
5050
|
* Account implementation for the Keyless authentication scheme. This abstract class is used for standard Keyless Accounts
|
|
4909
5051
|
* and Federated Keyless Accounts.
|
|
4910
5052
|
*/
|
|
4911
|
-
declare abstract class AbstractKeylessAccount extends Serializable implements
|
|
5053
|
+
declare abstract class AbstractKeylessAccount extends Serializable implements KeylessSigner {
|
|
4912
5054
|
static readonly PEPPER_LENGTH: number;
|
|
4913
5055
|
/**
|
|
4914
5056
|
* The KeylessPublicKey associated with the account
|
|
@@ -4956,10 +5098,34 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
|
|
|
4956
5098
|
* The JWT token used to derive the account
|
|
4957
5099
|
*/
|
|
4958
5100
|
readonly jwt: string;
|
|
5101
|
+
/**
|
|
5102
|
+
* The hash of the verification key used to verify the proof. This is optional and can be used to check verifying key
|
|
5103
|
+
* rotations which may invalidate the proof.
|
|
5104
|
+
*/
|
|
5105
|
+
readonly verificationKeyHash?: Uint8Array;
|
|
4959
5106
|
/**
|
|
4960
5107
|
* An event emitter used to assist in handling asynchronous proof fetching.
|
|
4961
5108
|
*/
|
|
4962
5109
|
private readonly emitter;
|
|
5110
|
+
/**
|
|
5111
|
+
* Use the static generator `create(...)` instead.
|
|
5112
|
+
* Creates an instance of the KeylessAccount with an optional proof.
|
|
5113
|
+
*
|
|
5114
|
+
* @param args - The parameters for creating a KeylessAccount.
|
|
5115
|
+
* @param args.address - Optional account address associated with the KeylessAccount.
|
|
5116
|
+
* @param args.publicKey - A KeylessPublicKey or FederatedKeylessPublicKey.
|
|
5117
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
|
|
5118
|
+
* @param args.iss - A JWT issuer.
|
|
5119
|
+
* @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
|
|
5120
|
+
* @param args.uidVal - The unique id for this user, intended to be a stable user identifier.
|
|
5121
|
+
* @param args.aud - The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's
|
|
5122
|
+
* OIDC registration with the identity provider.
|
|
5123
|
+
* @param args.pepper - A hexadecimal input used for additional security.
|
|
5124
|
+
* @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
|
|
5125
|
+
* @param args.proofFetchCallback - Optional callback function for fetching proof.
|
|
5126
|
+
* @param args.jwt - A JSON Web Token used for authentication.
|
|
5127
|
+
* @param args.verificationKeyHash Optional 32-byte verification key hash as hex input used to check proof validity.
|
|
5128
|
+
*/
|
|
4963
5129
|
protected constructor(args: {
|
|
4964
5130
|
address?: AccountAddress;
|
|
4965
5131
|
publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
|
|
@@ -4972,13 +5138,29 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
|
|
|
4972
5138
|
proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
4973
5139
|
proofFetchCallback?: ProofFetchCallback;
|
|
4974
5140
|
jwt: string;
|
|
5141
|
+
verificationKeyHash?: HexInput;
|
|
4975
5142
|
});
|
|
4976
5143
|
/**
|
|
4977
|
-
* This initializes the asynchronous proof fetch
|
|
4978
|
-
* @return
|
|
5144
|
+
* This initializes the asynchronous proof fetch.
|
|
5145
|
+
* @return Emits whether the proof succeeds or fails, but has no return.
|
|
4979
5146
|
*/
|
|
4980
5147
|
init(promise: Promise<ZeroKnowledgeSig>): Promise<void>;
|
|
5148
|
+
/**
|
|
5149
|
+
* Serializes the jwt data into a format suitable for transmission or storage.
|
|
5150
|
+
* This function ensures that both the jwt data and the proof are properly serialized.
|
|
5151
|
+
*
|
|
5152
|
+
* @param serializer - The serializer instance used to convert the jwt data into bytes.
|
|
5153
|
+
*/
|
|
4981
5154
|
serialize(serializer: Serializer): void;
|
|
5155
|
+
static partialDeserialize(deserializer: Deserializer): {
|
|
5156
|
+
address: AccountAddress;
|
|
5157
|
+
jwt: string;
|
|
5158
|
+
uidKey: string;
|
|
5159
|
+
pepper: Uint8Array;
|
|
5160
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
5161
|
+
proof: ZeroKnowledgeSig;
|
|
5162
|
+
verificationKeyHash?: Uint8Array;
|
|
5163
|
+
};
|
|
4982
5164
|
/**
|
|
4983
5165
|
* Checks if the proof is expired. If so the account must be re-derived with a new EphemeralKeyPair
|
|
4984
5166
|
* and JWT token.
|
|
@@ -5002,6 +5184,11 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
|
|
|
5002
5184
|
* @return
|
|
5003
5185
|
*/
|
|
5004
5186
|
waitForProofFetch(): Promise<void>;
|
|
5187
|
+
/**
|
|
5188
|
+
* Validates that the Keyless Account can be used to sign transactions.
|
|
5189
|
+
* @return
|
|
5190
|
+
*/
|
|
5191
|
+
checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
|
|
5005
5192
|
/**
|
|
5006
5193
|
* Sign the given message using Keyless.
|
|
5007
5194
|
* @param message in HexInput format
|
|
@@ -5030,6 +5217,19 @@ declare abstract class AbstractKeylessAccount extends Serializable implements Ac
|
|
|
5030
5217
|
message: HexInput;
|
|
5031
5218
|
signature: KeylessSignature;
|
|
5032
5219
|
}): boolean;
|
|
5220
|
+
/**
|
|
5221
|
+
* Fetches the JWK from the issuer's well-known JWKS endpoint.
|
|
5222
|
+
*
|
|
5223
|
+
* @param args.publicKey The keyless public key to query
|
|
5224
|
+
* @param args.kid The kid of the JWK to fetch
|
|
5225
|
+
* @returns A JWK matching the `kid` in the JWT header.
|
|
5226
|
+
* @throws {KeylessError} If the JWK cannot be fetched
|
|
5227
|
+
*/
|
|
5228
|
+
static fetchJWK(args: {
|
|
5229
|
+
aptosConfig: AptosConfig;
|
|
5230
|
+
publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
|
|
5231
|
+
kid: string;
|
|
5232
|
+
}): Promise<MoveJWK>;
|
|
5033
5233
|
}
|
|
5034
5234
|
/**
|
|
5035
5235
|
* A container class to hold a transaction and a proof. It implements CryptoHashable which is used to create
|
|
@@ -5049,6 +5249,12 @@ declare class TransactionAndProof extends Serializable {
|
|
|
5049
5249
|
*/
|
|
5050
5250
|
readonly domainSeparator = "APTOS::TransactionAndProof";
|
|
5051
5251
|
constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof);
|
|
5252
|
+
/**
|
|
5253
|
+
* Serializes the transaction data into a format suitable for transmission or storage.
|
|
5254
|
+
* This function ensures that both the transaction bytes and the proof are properly serialized.
|
|
5255
|
+
*
|
|
5256
|
+
* @param serializer - The serializer instance used to convert the transaction data into bytes.
|
|
5257
|
+
*/
|
|
5052
5258
|
serialize(serializer: Serializer): void;
|
|
5053
5259
|
/**
|
|
5054
5260
|
* Hashes the bcs serialized from of the class. This is the typescript corollary to the BCSCryptoHash macro in aptos-core.
|
|
@@ -5079,9 +5285,6 @@ interface ProofFetchEvents {
|
|
|
5079
5285
|
*
|
|
5080
5286
|
* When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
|
|
5081
5287
|
* EphemeralKeyPair, and corresponding proof.
|
|
5082
|
-
*
|
|
5083
|
-
* @static
|
|
5084
|
-
* @readonly PEPPER_LENGTH - The length of the pepper used for privacy preservation.
|
|
5085
5288
|
*/
|
|
5086
5289
|
declare class KeylessAccount extends AbstractKeylessAccount {
|
|
5087
5290
|
/**
|
|
@@ -5089,9 +5292,21 @@ declare class KeylessAccount extends AbstractKeylessAccount {
|
|
|
5089
5292
|
*/
|
|
5090
5293
|
readonly publicKey: KeylessPublicKey;
|
|
5091
5294
|
/**
|
|
5092
|
-
*
|
|
5295
|
+
* Use the static generator `create(...)` instead.
|
|
5296
|
+
* Creates an instance of the KeylessAccount with an optional proof.
|
|
5093
5297
|
*
|
|
5094
|
-
* @param args
|
|
5298
|
+
* @param args - The parameters for creating a KeylessAccount.
|
|
5299
|
+
* @param args.address - Optional account address associated with the KeylessAccount.
|
|
5300
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
|
|
5301
|
+
* @param args.iss - A JWT issuer.
|
|
5302
|
+
* @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
|
|
5303
|
+
* @param args.uidVal - The unique id for this user, intended to be a stable user identifier.
|
|
5304
|
+
* @param args.aud - The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's
|
|
5305
|
+
* OIDC registration with the identity provider.
|
|
5306
|
+
* @param args.pepper - A hexadecimal input used for additional security.
|
|
5307
|
+
* @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
|
|
5308
|
+
* @param args.proofFetchCallback - Optional callback function for fetching proof.
|
|
5309
|
+
* @param args.jwt - A JSON Web Token used for authentication.
|
|
5095
5310
|
*/
|
|
5096
5311
|
private constructor();
|
|
5097
5312
|
/**
|
|
@@ -5109,10 +5324,17 @@ declare class KeylessAccount extends AbstractKeylessAccount {
|
|
|
5109
5324
|
* @returns A KeylessAccount instance created from the deserialized data.
|
|
5110
5325
|
*/
|
|
5111
5326
|
static deserialize(deserializer: Deserializer): KeylessAccount;
|
|
5112
|
-
|
|
5327
|
+
/**
|
|
5328
|
+
* Deserialize bytes using this account's information.
|
|
5329
|
+
*
|
|
5330
|
+
* @param bytes The bytes being interpreted.
|
|
5331
|
+
* @returns
|
|
5332
|
+
*/
|
|
5333
|
+
static fromBytes(bytes: HexInput): KeylessAccount;
|
|
5113
5334
|
/**
|
|
5114
5335
|
* Creates a KeylessAccount instance using the provided parameters.
|
|
5115
5336
|
* This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
|
|
5337
|
+
* This is used instead of the KeylessAccount constructor.
|
|
5116
5338
|
*
|
|
5117
5339
|
* @param args - The parameters for creating a KeylessAccount.
|
|
5118
5340
|
* @param args.address - Optional account address associated with the KeylessAccount.
|
|
@@ -5131,6 +5353,7 @@ declare class KeylessAccount extends AbstractKeylessAccount {
|
|
|
5131
5353
|
pepper: HexInput;
|
|
5132
5354
|
uidKey?: string;
|
|
5133
5355
|
proofFetchCallback?: ProofFetchCallback;
|
|
5356
|
+
verificationKey?: Groth16VerificationKey;
|
|
5134
5357
|
}): KeylessAccount;
|
|
5135
5358
|
}
|
|
5136
5359
|
|
|
@@ -5139,8 +5362,8 @@ declare class KeylessAccount extends AbstractKeylessAccount {
|
|
|
5139
5362
|
*
|
|
5140
5363
|
* Used to represent a FederatedKeyless based account and sign transactions with it.
|
|
5141
5364
|
*
|
|
5142
|
-
* Use `FederatedKeylessAccount.create()` to instantiate a KeylessAccount with a JWT, proof, EphemeralKeyPair and the
|
|
5143
|
-
* address the
|
|
5365
|
+
* Use `FederatedKeylessAccount.create()` to instantiate a KeylessAccount with a JSON Web Token (JWT), proof, EphemeralKeyPair and the
|
|
5366
|
+
* address the JSON Web Key Set (JWKS) are installed that will be used to verify the JWT.
|
|
5144
5367
|
*
|
|
5145
5368
|
* When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,
|
|
5146
5369
|
* EphemeralKeyPair, and corresponding proof.
|
|
@@ -5150,10 +5373,57 @@ declare class FederatedKeylessAccount extends AbstractKeylessAccount {
|
|
|
5150
5373
|
* The FederatedKeylessPublicKey associated with the account
|
|
5151
5374
|
*/
|
|
5152
5375
|
readonly publicKey: FederatedKeylessPublicKey;
|
|
5376
|
+
/**
|
|
5377
|
+
* Use the static generator `FederatedKeylessAccount.create(...)` instead.
|
|
5378
|
+
* Creates a KeylessAccount instance using the provided parameters.
|
|
5379
|
+
* This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
|
|
5380
|
+
*
|
|
5381
|
+
* @param args - The parameters for creating a KeylessAccount.
|
|
5382
|
+
* @param args.address - Optional account address associated with the KeylessAccount.
|
|
5383
|
+
* @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
|
|
5384
|
+
* @param args.jwt - A JSON Web Token used for authentication.
|
|
5385
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
|
|
5386
|
+
* @param args.jwkAddress - The address which stores the JSON Web Key Set (JWKS) used to verify the JWT.
|
|
5387
|
+
* @param args.uidKey - Optional key for user identification, defaults to "sub".
|
|
5388
|
+
* @param args.proofFetchCallback - Optional callback function for fetching proof.
|
|
5389
|
+
*/
|
|
5153
5390
|
private constructor();
|
|
5391
|
+
/**
|
|
5392
|
+
* Serializes the transaction data into a format suitable for transmission or storage.
|
|
5393
|
+
* This function ensures that both the transaction bytes and the proof are properly serialized.
|
|
5394
|
+
*
|
|
5395
|
+
* @param serializer - The serializer instance used to convert the transaction data into bytes.
|
|
5396
|
+
*/
|
|
5154
5397
|
serialize(serializer: Serializer): void;
|
|
5398
|
+
/**
|
|
5399
|
+
* Deserializes the provided deserializer to create a KeylessAccount instance.
|
|
5400
|
+
* This function extracts necessary components such as the JWT, UID key, pepper, ephemeral key pair, and proof from the deserializer.
|
|
5401
|
+
*
|
|
5402
|
+
* @param deserializer - The deserializer instance used to retrieve the serialized data.
|
|
5403
|
+
* @returns A KeylessAccount instance created from the deserialized data.
|
|
5404
|
+
*/
|
|
5155
5405
|
static deserialize(deserializer: Deserializer): FederatedKeylessAccount;
|
|
5156
|
-
|
|
5406
|
+
/**
|
|
5407
|
+
* Deserialize bytes using this account's information.
|
|
5408
|
+
*
|
|
5409
|
+
* @param bytes The bytes being interpreted.
|
|
5410
|
+
* @returns
|
|
5411
|
+
*/
|
|
5412
|
+
static fromBytes(bytes: HexInput): FederatedKeylessAccount;
|
|
5413
|
+
/**
|
|
5414
|
+
* Creates a KeylessAccount instance using the provided parameters.
|
|
5415
|
+
* This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
|
|
5416
|
+
* This is used instead of the KeylessAccount constructor.
|
|
5417
|
+
*
|
|
5418
|
+
* @param args - The parameters for creating a KeylessAccount.
|
|
5419
|
+
* @param args.address - Optional account address associated with the KeylessAccount.
|
|
5420
|
+
* @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
|
|
5421
|
+
* @param args.jwt - A JSON Web Token used for authentication.
|
|
5422
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
|
|
5423
|
+
* @param args.jwkAddress - The address which stores the JSON Web Key Set (JWKS) used to verify the JWT.
|
|
5424
|
+
* @param args.uidKey - Optional key for user identification, defaults to "sub".
|
|
5425
|
+
* @param args.proofFetchCallback - Optional callback function for fetching proof.
|
|
5426
|
+
*/
|
|
5157
5427
|
static create(args: {
|
|
5158
5428
|
address?: AccountAddress;
|
|
5159
5429
|
proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;
|
|
@@ -5163,6 +5433,7 @@ declare class FederatedKeylessAccount extends AbstractKeylessAccount {
|
|
|
5163
5433
|
jwkAddress: AccountAddressInput;
|
|
5164
5434
|
uidKey?: string;
|
|
5165
5435
|
proofFetchCallback?: ProofFetchCallback;
|
|
5436
|
+
verificationKey?: Groth16VerificationKey;
|
|
5166
5437
|
}): FederatedKeylessAccount;
|
|
5167
5438
|
}
|
|
5168
5439
|
|
|
@@ -5184,7 +5455,7 @@ interface VerifyMultiKeySignatureArgs {
|
|
|
5184
5455
|
*
|
|
5185
5456
|
* Note: Generating a signer instance does not create the account on-chain.
|
|
5186
5457
|
*/
|
|
5187
|
-
declare class MultiKeyAccount implements Account$1 {
|
|
5458
|
+
declare class MultiKeyAccount implements Account$1, KeylessSigner {
|
|
5188
5459
|
/**
|
|
5189
5460
|
* Public key associated with the account
|
|
5190
5461
|
*/
|
|
@@ -5264,9 +5535,14 @@ declare class MultiKeyAccount implements Account$1 {
|
|
|
5264
5535
|
*/
|
|
5265
5536
|
waitForProofFetch(): Promise<void>;
|
|
5266
5537
|
/**
|
|
5267
|
-
*
|
|
5268
|
-
* @
|
|
5269
|
-
|
|
5538
|
+
* Validates that the Keyless Account can be used to sign transactions.
|
|
5539
|
+
* @return
|
|
5540
|
+
*/
|
|
5541
|
+
checkKeylessAccountValidity(aptosConfig: AptosConfig): Promise<void>;
|
|
5542
|
+
/**
|
|
5543
|
+
* Sign the given message using the MultiKeyAccount's signers
|
|
5544
|
+
* @param message in HexInput format
|
|
5545
|
+
* @returns MultiKeySignature
|
|
5270
5546
|
*/
|
|
5271
5547
|
sign(data: HexInput): MultiKeySignature;
|
|
5272
5548
|
/**
|
|
@@ -5816,7 +6092,9 @@ declare class Account {
|
|
|
5816
6092
|
* is specified.
|
|
5817
6093
|
* @param args.faMetadataAddress The fungible asset metadata address to query. Note: If not provided, it may be automatically
|
|
5818
6094
|
* populated if `coinType` is specified.
|
|
5819
|
-
* @param args.minimumLedgerVersion
|
|
6095
|
+
* @param args.minimumLedgerVersion Not used anymore, here for backward compatibility
|
|
6096
|
+
* see https://github.com/aptos-labs/aptos-ts-sdk/pull/519, will be removed in the near future.
|
|
6097
|
+
* Optional ledger version to sync up to before querying.
|
|
5820
6098
|
* @returns The current amount of the specified coin held by the account.
|
|
5821
6099
|
*
|
|
5822
6100
|
* @example
|
|
@@ -7544,6 +7822,14 @@ declare function standardizeTypeTags(typeArguments?: Array<TypeArgument>): Array
|
|
|
7544
7822
|
* @param aptosConfig - The configuration settings for Aptos.
|
|
7545
7823
|
*/
|
|
7546
7824
|
declare function fetchFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<MoveFunction | undefined>;
|
|
7825
|
+
/**
|
|
7826
|
+
* Fetches a function ABI from the on-chain module ABI. It doesn't validate whether it's a view or entry function.
|
|
7827
|
+
* @param moduleAddress
|
|
7828
|
+
* @param moduleName
|
|
7829
|
+
* @param functionName
|
|
7830
|
+
* @param aptosConfig
|
|
7831
|
+
*/
|
|
7832
|
+
declare function fetchMoveFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<FunctionABI>;
|
|
7547
7833
|
/**
|
|
7548
7834
|
* Fetches the ABI for an entry function from the specified module address.
|
|
7549
7835
|
* This function validates if the ABI corresponds to an entry function and retrieves its parameters.
|
|
@@ -7568,6 +7854,18 @@ declare function fetchEntryFunctionAbi(moduleAddress: string, moduleName: string
|
|
|
7568
7854
|
* @throws Error if the ABI cannot be found or if the function is not a view function.
|
|
7569
7855
|
*/
|
|
7570
7856
|
declare function fetchViewFunctionAbi(moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig): Promise<ViewFunctionABI>;
|
|
7857
|
+
/**
|
|
7858
|
+
* Converts a entry function argument into CallArgument, if necessary.
|
|
7859
|
+
* This function checks the provided argument against the expected parameter type and converts it accordingly.
|
|
7860
|
+
*
|
|
7861
|
+
* @param functionName - The name of the function for which the argument is being converted.
|
|
7862
|
+
* @param functionAbi - The ABI (Application Binary Interface) of the function, which defines its parameters.
|
|
7863
|
+
* @param argument - The argument to be converted, which can be of various types. If the argument is already
|
|
7864
|
+
* CallArgument returned from TransactionComposer it would be returned immediately.
|
|
7865
|
+
* @param position - The index of the argument in the function's parameter list.
|
|
7866
|
+
* @param genericTypeParams - An array of type tags for any generic type parameters.
|
|
7867
|
+
*/
|
|
7868
|
+
declare function convertCallArgument(argument: CallArgument | EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes, functionName: string, functionAbi: FunctionABI, position: number, genericTypeParams: Array<TypeTag>): CallArgument;
|
|
7571
7869
|
/**
|
|
7572
7870
|
* Converts a non-BCS encoded argument into BCS encoded, if necessary.
|
|
7573
7871
|
* This function checks the provided argument against the expected parameter type and converts it accordingly.
|
|
@@ -7699,6 +7997,14 @@ declare function parseTypeTag(typeStr: string, options?: {
|
|
|
7699
7997
|
allowGenerics?: boolean;
|
|
7700
7998
|
}): TypeTag;
|
|
7701
7999
|
|
|
8000
|
+
declare class AptosScriptComposer {
|
|
8001
|
+
private builder;
|
|
8002
|
+
private config;
|
|
8003
|
+
constructor(aptosConfig: AptosConfig);
|
|
8004
|
+
addBatchedCalls(input: InputBatchedFunctionData): Promise<CallArgument[]>;
|
|
8005
|
+
build(): Uint8Array;
|
|
8006
|
+
}
|
|
8007
|
+
|
|
7702
8008
|
/**
|
|
7703
8009
|
* A class for querying and managing fungible asset-related operations on the Aptos blockchain.
|
|
7704
8010
|
*/
|
|
@@ -8970,6 +9276,70 @@ declare class Build {
|
|
|
8970
9276
|
options?: InputGenerateTransactionOptions;
|
|
8971
9277
|
withFeePayer?: boolean;
|
|
8972
9278
|
}): Promise<SimpleTransaction>;
|
|
9279
|
+
/**
|
|
9280
|
+
* Build a transaction from a series of Move calls.
|
|
9281
|
+
*
|
|
9282
|
+
* This function allows you to create a transaction with a list of Move calls.
|
|
9283
|
+
*
|
|
9284
|
+
* Right now we only tested this logic with single signer and we will add support
|
|
9285
|
+
* for mutli agent transactions if needed.
|
|
9286
|
+
*
|
|
9287
|
+
* @param args.sender - The sender account address.
|
|
9288
|
+
* @param args.builder - The closure to construct the list of calls.
|
|
9289
|
+
* @param args.options - Optional transaction configurations.
|
|
9290
|
+
* @param args.withFeePayer - Whether there is a fee payer for the transaction.
|
|
9291
|
+
*
|
|
9292
|
+
* @returns SimpleTransaction
|
|
9293
|
+
*
|
|
9294
|
+
* @example
|
|
9295
|
+
* ```typescript
|
|
9296
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
9297
|
+
*
|
|
9298
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
9299
|
+
* const aptos = new Aptos(config);
|
|
9300
|
+
*
|
|
9301
|
+
* async function runExample() {
|
|
9302
|
+
* // Build a transaction from a chained series of Move calls.
|
|
9303
|
+
* const transaction = await aptos.transaction.script_composer({
|
|
9304
|
+
* sender: "0x1", // replace with a real sender account address
|
|
9305
|
+
* builder: builder: async (builder) => {
|
|
9306
|
+
* const coin = await builder.addBatchedCalls({
|
|
9307
|
+
* function: "0x1::coin::withdraw",
|
|
9308
|
+
* functionArguments: [CallArgument.new_signer(0), 1],
|
|
9309
|
+
* typeArguments: ["0x1::aptos_coin::AptosCoin"],
|
|
9310
|
+
* });
|
|
9311
|
+
*
|
|
9312
|
+
* // Pass the returned value from the first function call to the second call
|
|
9313
|
+
* const fungibleAsset = await builder.addBatchedCalls({
|
|
9314
|
+
* function: "0x1::coin::coin_to_fungible_asset",
|
|
9315
|
+
* functionArguments: [coin[0]],
|
|
9316
|
+
* typeArguments: ["0x1::aptos_coin::AptosCoin"],
|
|
9317
|
+
* });
|
|
9318
|
+
*
|
|
9319
|
+
* await builder.addBatchedCalls({
|
|
9320
|
+
* function: "0x1::primary_fungible_store::deposit",
|
|
9321
|
+
* functionArguments: [singleSignerED25519SenderAccount.accountAddress, fungibleAsset[0]],
|
|
9322
|
+
* typeArguments: [],
|
|
9323
|
+
* });
|
|
9324
|
+
* return builder;
|
|
9325
|
+
* },
|
|
9326
|
+
* options: {
|
|
9327
|
+
* gasUnitPrice: 100, // specify your own gas unit price if needed
|
|
9328
|
+
* maxGasAmount: 1000, // specify your own max gas amount if needed
|
|
9329
|
+
* },
|
|
9330
|
+
* });
|
|
9331
|
+
*
|
|
9332
|
+
* console.log(transaction);
|
|
9333
|
+
* }
|
|
9334
|
+
* runExample().catch(console.error);
|
|
9335
|
+
* ```
|
|
9336
|
+
*/
|
|
9337
|
+
scriptComposer(args: {
|
|
9338
|
+
sender: AccountAddressInput;
|
|
9339
|
+
builder: (builder: AptosScriptComposer) => Promise<AptosScriptComposer>;
|
|
9340
|
+
options?: InputGenerateTransactionOptions;
|
|
9341
|
+
withFeePayer?: boolean;
|
|
9342
|
+
}): Promise<SimpleTransaction>;
|
|
8973
9343
|
/**
|
|
8974
9344
|
* Build a multi-agent transaction that allows multiple signers to authorize a transaction.
|
|
8975
9345
|
*
|
|
@@ -10659,7 +11029,7 @@ declare class Keyless {
|
|
|
10659
11029
|
/**
|
|
10660
11030
|
* This installs a set of FederatedJWKs at an address for a given iss.
|
|
10661
11031
|
*
|
|
10662
|
-
* It will fetch the JWK set from the well-known endpoint and update the FederatedJWKs at the sender's address
|
|
11032
|
+
* It will fetch the JSON Web Keyset (JWK) set from the well-known endpoint and update the FederatedJWKs at the sender's address
|
|
10663
11033
|
* to reflect it.
|
|
10664
11034
|
*
|
|
10665
11035
|
* @param args.sender The account that will install the JWKs
|
|
@@ -10672,6 +11042,7 @@ declare class Keyless {
|
|
|
10672
11042
|
sender: Account$1;
|
|
10673
11043
|
iss: string;
|
|
10674
11044
|
jwksUrl?: string;
|
|
11045
|
+
options?: InputGenerateTransactionOptions;
|
|
10675
11046
|
}): Promise<SimpleTransaction>;
|
|
10676
11047
|
}
|
|
10677
11048
|
|
|
@@ -10807,64 +11178,6 @@ declare class Aptos {
|
|
|
10807
11178
|
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, AptosObject, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
10808
11179
|
}
|
|
10809
11180
|
|
|
10810
|
-
/**
|
|
10811
|
-
* The API response type
|
|
10812
|
-
*
|
|
10813
|
-
* @param status - the response status. i.e. 200
|
|
10814
|
-
* @param statusText - the response message
|
|
10815
|
-
* @param data the response data
|
|
10816
|
-
* @param url the url the request was made to
|
|
10817
|
-
* @param headers the response headers
|
|
10818
|
-
* @param config (optional) - the request object
|
|
10819
|
-
* @param request (optional) - the request object
|
|
10820
|
-
*/
|
|
10821
|
-
interface AptosResponse<Req, Res> {
|
|
10822
|
-
status: number;
|
|
10823
|
-
statusText: string;
|
|
10824
|
-
data: Res;
|
|
10825
|
-
url: string;
|
|
10826
|
-
headers: any;
|
|
10827
|
-
config?: any;
|
|
10828
|
-
request?: Req;
|
|
10829
|
-
}
|
|
10830
|
-
/**
|
|
10831
|
-
* Options for handling errors in the Aptos API.
|
|
10832
|
-
*/
|
|
10833
|
-
type AptosApiErrorOpts = {
|
|
10834
|
-
apiType: AptosApiType;
|
|
10835
|
-
aptosRequest: AptosRequest;
|
|
10836
|
-
aptosResponse: AptosResponse<any, any>;
|
|
10837
|
-
};
|
|
10838
|
-
/**
|
|
10839
|
-
* Represents an error returned from the Aptos API.
|
|
10840
|
-
* This class encapsulates the details of the error, including the request URL, response status, and additional data.
|
|
10841
|
-
*
|
|
10842
|
-
* @param name - The name of the error, which is always "AptosApiError".
|
|
10843
|
-
* @param url - The URL to which the request was made.
|
|
10844
|
-
* @param status - The HTTP response status code (e.g., 400).
|
|
10845
|
-
* @param statusText - The message associated with the response status.
|
|
10846
|
-
* @param data - The response data returned from the API.
|
|
10847
|
-
* @param request - The original AptosRequest that triggered the error.
|
|
10848
|
-
*/
|
|
10849
|
-
declare class AptosApiError extends Error {
|
|
10850
|
-
readonly url: string;
|
|
10851
|
-
readonly status: number;
|
|
10852
|
-
readonly statusText: string;
|
|
10853
|
-
readonly data: any;
|
|
10854
|
-
readonly request: AptosRequest;
|
|
10855
|
-
/**
|
|
10856
|
-
* Constructs an instance of AptosApiError with relevant error details.
|
|
10857
|
-
*
|
|
10858
|
-
* @param opts - The options for creating the AptosApiError.
|
|
10859
|
-
* @param opts.apiType - The type of API that generated the error.
|
|
10860
|
-
* @param opts.aptosRequest - The request object that caused the error.
|
|
10861
|
-
* @param opts.aptosResponse - The response object containing error details.
|
|
10862
|
-
*
|
|
10863
|
-
* @internal This constructor is for SDK internal use - do not instantiate outside the SDK codebase.
|
|
10864
|
-
*/
|
|
10865
|
-
constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
|
|
10866
|
-
}
|
|
10867
|
-
|
|
10868
11181
|
type DeserializableClass<T extends Serializable> = {
|
|
10869
11182
|
/**
|
|
10870
11183
|
* Deserializes a serialized object using the provided deserializer.
|
|
@@ -10890,6 +11203,13 @@ declare function normalizeBundle<T extends Serializable>(cls: DeserializableClas
|
|
|
10890
11203
|
* @param timeMs - The time in milliseconds to sleep.
|
|
10891
11204
|
*/
|
|
10892
11205
|
declare function sleep(timeMs: number): Promise<null>;
|
|
11206
|
+
/**
|
|
11207
|
+
* Get the error message from an unknown error.
|
|
11208
|
+
*
|
|
11209
|
+
* @param error The error to get the message from
|
|
11210
|
+
* @returns The error message
|
|
11211
|
+
*/
|
|
11212
|
+
declare function getErrorMessage(error: unknown): string;
|
|
10893
11213
|
declare const nowInSeconds: () => number;
|
|
10894
11214
|
/**
|
|
10895
11215
|
* Floors the given timestamp to the nearest whole hour.
|
|
@@ -11189,4 +11509,118 @@ declare function postAptosPepperService<Req extends {}, Res extends {}>(options:
|
|
|
11189
11509
|
*/
|
|
11190
11510
|
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
11191
11511
|
|
|
11192
|
-
|
|
11512
|
+
declare enum KeylessErrorCategory {
|
|
11513
|
+
API_ERROR = 0,
|
|
11514
|
+
EXTERNAL_API_ERROR = 1,
|
|
11515
|
+
SESSION_EXPIRED = 2,
|
|
11516
|
+
INVALID_STATE = 3,
|
|
11517
|
+
UNKNOWN = 4
|
|
11518
|
+
}
|
|
11519
|
+
declare enum KeylessErrorResolutionTip {
|
|
11520
|
+
REAUTHENTICATE = "Re-authentiate to continue using your keyless account",
|
|
11521
|
+
REAUTHENTICATE_UNSURE = "Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support",
|
|
11522
|
+
UPDATE_REQUEST_PARAMS = "Update the invalid request parameters and reauthenticate.",
|
|
11523
|
+
RATE_LIMIT_EXCEEDED = "Cache the keyless account and reuse it to avoid making too many requests. Keyless accounts are valid until either the EphemeralKeyPair expires, when the JWK is rotated, or when the proof verifying key is changed, whichever comes soonest.",
|
|
11524
|
+
SERVER_ERROR = "Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",
|
|
11525
|
+
CALL_PRECHECK = "Call `await account.checkKeylessAccountValidity()` to wait for asyncronous changes and check for account validity before signing or serializing.",
|
|
11526
|
+
REINSTANTIATE = "Try instantiating the account again. Avoid manipulating the account object directly",
|
|
11527
|
+
JOIN_SUPPORT_GROUP = "For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",
|
|
11528
|
+
UNKNOWN = "Error unknown. For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"
|
|
11529
|
+
}
|
|
11530
|
+
declare enum KeylessErrorType {
|
|
11531
|
+
EPHEMERAL_KEY_PAIR_EXPIRED = 0,
|
|
11532
|
+
PROOF_NOT_FOUND = 1,
|
|
11533
|
+
ASYNC_PROOF_FETCH_FAILED = 2,
|
|
11534
|
+
INVALID_PROOF_VERIFICATION_FAILED = 3,
|
|
11535
|
+
INVALID_PROOF_VERIFICATION_KEY_NOT_FOUND = 4,
|
|
11536
|
+
INVALID_JWT_SIG = 5,
|
|
11537
|
+
INVALID_JWT_JWK_NOT_FOUND = 6,
|
|
11538
|
+
INVALID_JWT_ISS_NOT_RECOGNIZED = 7,
|
|
11539
|
+
INVALID_JWT_FEDERATED_ISS_NOT_SUPPORTED = 8,
|
|
11540
|
+
INVALID_TW_SIG_VERIFICATION_FAILED = 9,
|
|
11541
|
+
INVALID_TW_SIG_PUBLIC_KEY_NOT_FOUND = 10,
|
|
11542
|
+
INVALID_EXPIRY_HORIZON = 11,
|
|
11543
|
+
JWT_PARSING_ERROR = 12,
|
|
11544
|
+
JWK_FETCH_FAILED = 13,
|
|
11545
|
+
JWK_FETCH_FAILED_FEDERATED = 14,
|
|
11546
|
+
RATE_LIMIT_EXCEEDED = 15,
|
|
11547
|
+
PEPPER_SERVICE_INTERNAL_ERROR = 16,
|
|
11548
|
+
PEPPER_SERVICE_BAD_REQUEST = 17,
|
|
11549
|
+
PEPPER_SERVICE_OTHER = 18,
|
|
11550
|
+
PROVER_SERVICE_INTERNAL_ERROR = 19,
|
|
11551
|
+
PROVER_SERVICE_BAD_REQUEST = 20,
|
|
11552
|
+
PROVER_SERVICE_OTHER = 21,
|
|
11553
|
+
FULL_NODE_CONFIG_LOOKUP_ERROR = 22,
|
|
11554
|
+
FULL_NODE_VERIFICATION_KEY_LOOKUP_ERROR = 23,
|
|
11555
|
+
FULL_NODE_JWKS_LOOKUP_ERROR = 24,
|
|
11556
|
+
FULL_NODE_OTHER = 25,
|
|
11557
|
+
UNKNOWN = 26
|
|
11558
|
+
}
|
|
11559
|
+
declare class KeylessError extends Error {
|
|
11560
|
+
readonly innerError?: unknown;
|
|
11561
|
+
readonly category: KeylessErrorCategory;
|
|
11562
|
+
readonly resolutionTip: KeylessErrorResolutionTip;
|
|
11563
|
+
readonly type: KeylessErrorType;
|
|
11564
|
+
readonly details?: string;
|
|
11565
|
+
/** @internal this constructor is for sdk internal use - do not instantiate outside of the SDK codebase */
|
|
11566
|
+
constructor(args: {
|
|
11567
|
+
innerError?: unknown;
|
|
11568
|
+
category: KeylessErrorCategory;
|
|
11569
|
+
resolutionTip: KeylessErrorResolutionTip;
|
|
11570
|
+
type: KeylessErrorType;
|
|
11571
|
+
message?: string;
|
|
11572
|
+
details?: string;
|
|
11573
|
+
});
|
|
11574
|
+
static constructMessage(message: string, tip: KeylessErrorResolutionTip, innerError?: unknown, details?: string): string;
|
|
11575
|
+
/**
|
|
11576
|
+
* Static constructor that creates a KeylessError instance using the KeylessErrors constant
|
|
11577
|
+
* @param args.type The type of KeylessError
|
|
11578
|
+
* @param args.aptosApiError optional AptosApiError supplied for api errors
|
|
11579
|
+
* @param args.details optional details to include in the error message
|
|
11580
|
+
* @returns A new KeylessError instance
|
|
11581
|
+
*/
|
|
11582
|
+
static fromErrorType(args: {
|
|
11583
|
+
type: KeylessErrorType;
|
|
11584
|
+
error?: unknown;
|
|
11585
|
+
details?: string;
|
|
11586
|
+
}): KeylessError;
|
|
11587
|
+
}
|
|
11588
|
+
/**
|
|
11589
|
+
* Options for handling errors in the Aptos API.
|
|
11590
|
+
*/
|
|
11591
|
+
type AptosApiErrorOpts = {
|
|
11592
|
+
apiType: AptosApiType;
|
|
11593
|
+
aptosRequest: AptosRequest;
|
|
11594
|
+
aptosResponse: AptosResponse<any, any>;
|
|
11595
|
+
};
|
|
11596
|
+
/**
|
|
11597
|
+
* Represents an error returned from the Aptos API.
|
|
11598
|
+
* This class encapsulates the details of the error, including the request URL, response status, and additional data.
|
|
11599
|
+
*
|
|
11600
|
+
* @param name - The name of the error, which is always "AptosApiError".
|
|
11601
|
+
* @param url - The URL to which the request was made.
|
|
11602
|
+
* @param status - The HTTP response status code (e.g., 400).
|
|
11603
|
+
* @param statusText - The message associated with the response status.
|
|
11604
|
+
* @param data - The response data returned from the API.
|
|
11605
|
+
* @param request - The original AptosRequest that triggered the error.
|
|
11606
|
+
*/
|
|
11607
|
+
declare class AptosApiError extends Error {
|
|
11608
|
+
readonly url: string;
|
|
11609
|
+
readonly status: number;
|
|
11610
|
+
readonly statusText: string;
|
|
11611
|
+
readonly data: any;
|
|
11612
|
+
readonly request: AptosRequest;
|
|
11613
|
+
/**
|
|
11614
|
+
* Constructs an instance of AptosApiError with relevant error details.
|
|
11615
|
+
*
|
|
11616
|
+
* @param opts - The options for creating the AptosApiError.
|
|
11617
|
+
* @param opts.apiType - The type of API that generated the error.
|
|
11618
|
+
* @param opts.aptosRequest - The request object that caused the error.
|
|
11619
|
+
* @param opts.aptosResponse - The response object containing error details.
|
|
11620
|
+
*
|
|
11621
|
+
* @internal This constructor is for SDK internal use - do not instantiate outside the SDK codebase.
|
|
11622
|
+
*/
|
|
11623
|
+
constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
|
|
11624
|
+
}
|
|
11625
|
+
|
|
11626
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_FA, APTOS_HARDENED_REGEX, AbstractKeylessAccount, 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, AptosResponse, AptosScriptComposer, 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, FederatedKeylessAccount, FederatedKeylessPublicKey, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16VerificationKey, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputBatchedFunctionData, 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, type InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessError, KeylessErrorCategory, KeylessErrorResolutionTip, KeylessErrorType, KeylessPublicKey, KeylessSignature, type KeylessSigner, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveJWK, 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, PrivateKey, type PrivateKeyFromDerivationPathArgs, PrivateKeyVariants, 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, Serialized, 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, type ViewFunctionJsonPayload, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, base64UrlDecode, bigIntToBytesLE, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertCallArgument, convertNumber, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getErrorMessage, getFunctionParts, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isCanonicalEd25519Signature, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isKeylessSigner, isLargeNumber, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, objectStructTag, optionStructTag, padAndPackBytesWithLen, paginateWithCursor, parseEncodedStruct, parseJwtHeader, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
|