@aptos-labs/ts-sdk 1.12.2 → 1.13.0-zeta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/chunk-KSEUZTKY.js +2 -0
- package/dist/common/chunk-KSEUZTKY.js.map +1 -0
- package/dist/common/cli/index.d.ts +37 -0
- package/dist/common/cli/index.js +2 -0
- package/dist/common/cli/index.js.map +1 -0
- package/dist/common/index.d.ts +2133 -1399
- package/dist/common/index.js +26 -26
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-DHqzsb8B.d.mts → Ed25519Account-hkKk3b4Z.d.mts} +12 -14
- package/dist/esm/account/Account.d.mts +34 -0
- package/dist/esm/account/Account.mjs +2 -0
- package/dist/esm/account/Ed25519Account.d.mts +34 -0
- package/dist/esm/account/Ed25519Account.mjs +2 -0
- package/dist/esm/account/EphemeralKeyPair.d.mts +42 -0
- package/dist/esm/account/EphemeralKeyPair.mjs +2 -0
- package/dist/esm/account/KeylessAccount.d.mts +85 -0
- package/dist/esm/account/KeylessAccount.mjs +2 -0
- package/dist/esm/account/MultiKeyAccount.d.mts +99 -0
- package/dist/esm/account/MultiKeyAccount.mjs +2 -0
- package/dist/esm/account/SingleKeyAccount.d.mts +34 -0
- package/dist/esm/account/SingleKeyAccount.mjs +2 -0
- package/dist/esm/account/index.d.mts +39 -0
- package/dist/esm/account/index.mjs +2 -0
- package/dist/esm/api/account.d.mts +62 -9
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +20 -28
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +20 -9
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +24 -0
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +14 -7
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +149 -10
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +13 -8
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +3 -0
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +36 -13
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +55 -32
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +15 -9
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +75 -0
- package/dist/esm/api/keyless.mjs +2 -0
- package/dist/esm/api/staking.d.mts +9 -0
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +59 -16
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +9 -9
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +7 -7
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +2 -0
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/chunk-2FKQJL3H.mjs +2 -0
- package/dist/esm/chunk-2FKQJL3H.mjs.map +1 -0
- package/dist/esm/chunk-2HXKDHMA.mjs +2 -0
- package/dist/esm/chunk-2HXKDHMA.mjs.map +1 -0
- package/dist/esm/{chunk-IYSHHN5A.mjs → chunk-2I2XAOH7.mjs} +2 -2
- package/dist/esm/chunk-2MPLQPZT.mjs +2 -0
- package/dist/esm/chunk-2MPLQPZT.mjs.map +1 -0
- package/dist/esm/{chunk-XDXI3TRT.mjs → chunk-2QGT5DK3.mjs} +2 -2
- package/dist/esm/{chunk-6ILDDGAX.mjs → chunk-2VCKY2ZJ.mjs} +2 -2
- package/dist/esm/chunk-2Z4N3GLA.mjs +2 -0
- package/dist/esm/chunk-2Z4N3GLA.mjs.map +1 -0
- package/dist/esm/{chunk-G56GPLTB.mjs → chunk-35ZI4WOQ.mjs} +2 -2
- package/dist/esm/{chunk-V6FZ7WZH.mjs → chunk-3FL3NLZ6.mjs} +2 -2
- package/dist/esm/chunk-3J2Q7O57.mjs +2 -0
- package/dist/esm/chunk-3J2Q7O57.mjs.map +1 -0
- package/dist/esm/chunk-4AOGG725.mjs +2 -0
- package/dist/esm/chunk-4AOGG725.mjs.map +1 -0
- package/dist/esm/{chunk-36QXVFR5.mjs → chunk-52DBSOFA.mjs} +2 -2
- package/dist/esm/{chunk-36QXVFR5.mjs.map → chunk-52DBSOFA.mjs.map} +1 -1
- package/dist/esm/{chunk-6APZ5TPE.mjs → chunk-5D65Z2SG.mjs} +2 -2
- package/dist/esm/chunk-5D65Z2SG.mjs.map +1 -0
- package/dist/esm/chunk-5GIWRESN.mjs +2 -0
- package/dist/esm/{chunk-KXR3IUJ7.mjs → chunk-5TNUDFLP.mjs} +2 -2
- package/dist/esm/{chunk-GHYE26Q5.mjs → chunk-6FBKUTGF.mjs} +2 -2
- package/dist/esm/chunk-6OKRMOWR.mjs +2 -0
- package/dist/esm/chunk-6OKRMOWR.mjs.map +1 -0
- package/dist/esm/chunk-7EQOLMEJ.mjs +2 -0
- package/dist/esm/{chunk-2EZJOBD2.mjs → chunk-7M3U2I23.mjs} +2 -2
- package/dist/esm/chunk-7M3U2I23.mjs.map +1 -0
- package/dist/esm/chunk-7Z6DYLCA.mjs +1 -0
- package/dist/esm/chunk-ACOL3VVP.mjs +2 -0
- package/dist/esm/chunk-ACOL3VVP.mjs.map +1 -0
- package/dist/esm/{chunk-BCUSI3N6.mjs → chunk-AOCNYMMX.mjs} +2 -2
- package/dist/esm/chunk-AQ4I7VVB.mjs +1 -0
- package/dist/esm/chunk-AQ4I7VVB.mjs.map +1 -0
- package/dist/esm/chunk-ATXQWKVH.mjs +2 -0
- package/dist/esm/chunk-ATXQWKVH.mjs.map +1 -0
- package/dist/esm/chunk-B645DPPF.mjs +2 -0
- package/dist/esm/chunk-B645DPPF.mjs.map +1 -0
- package/dist/esm/{chunk-3AYBWD76.mjs → chunk-BQCIUNLZ.mjs} +2 -2
- package/dist/esm/chunk-BQCIUNLZ.mjs.map +1 -0
- package/dist/esm/{chunk-LPB7SZHL.mjs → chunk-CHL5NDZD.mjs} +2 -2
- package/dist/esm/{chunk-TTUXAKCV.mjs → chunk-CYWA4AJF.mjs} +2 -2
- package/dist/esm/chunk-ED6PYTNG.mjs +2 -0
- package/dist/esm/chunk-EMFDNUP2.mjs +2 -0
- package/dist/esm/chunk-EMFDNUP2.mjs.map +1 -0
- package/dist/esm/chunk-EY3FIYMV.mjs +2 -0
- package/dist/esm/chunk-EY3FIYMV.mjs.map +1 -0
- package/dist/esm/chunk-FBPNHF54.mjs +2 -0
- package/dist/esm/chunk-FLYEALDB.mjs +2 -0
- package/dist/esm/chunk-FLYEALDB.mjs.map +1 -0
- package/dist/esm/chunk-HTO4EQNT.mjs +2 -0
- package/dist/esm/chunk-HTO4EQNT.mjs.map +1 -0
- package/dist/esm/chunk-HZC6A3QL.mjs +2 -0
- package/dist/esm/{chunk-MJPUASSD.mjs → chunk-IVBYTTN7.mjs} +2 -2
- package/dist/esm/chunk-J5SQQQPI.mjs +2 -0
- package/dist/esm/chunk-JXCZTOYC.mjs +1 -0
- package/dist/esm/chunk-JXCZTOYC.mjs.map +1 -0
- package/dist/esm/{chunk-5EN52MUT.mjs → chunk-JYFKKB34.mjs} +2 -2
- package/dist/esm/{chunk-KS7UY4W5.mjs → chunk-KBSAS57Q.mjs} +2 -2
- package/dist/esm/{chunk-Q73VKL3A.mjs → chunk-KMHJNUXU.mjs} +2 -2
- package/dist/esm/chunk-KWDJ4YOP.mjs +2 -0
- package/dist/esm/chunk-KWDJ4YOP.mjs.map +1 -0
- package/dist/esm/chunk-KX5ESZO7.mjs +2 -0
- package/dist/esm/chunk-LVYKZS54.mjs +2 -0
- package/dist/esm/{chunk-CXR7MOBW.mjs.map → chunk-LVYKZS54.mjs.map} +1 -1
- package/dist/esm/chunk-MAFSWKAF.mjs +2 -0
- package/dist/esm/chunk-MAFSWKAF.mjs.map +1 -0
- package/dist/esm/{chunk-Y2MYVQVT.mjs → chunk-MKHPGY3O.mjs} +2 -2
- package/dist/esm/chunk-MRCVSUJQ.mjs +2 -0
- package/dist/esm/chunk-MX3YIOU5.mjs +2 -0
- package/dist/esm/chunk-MX3YIOU5.mjs.map +1 -0
- package/dist/esm/chunk-NJWTXEHT.mjs +2 -0
- package/dist/esm/chunk-NJWTXEHT.mjs.map +1 -0
- package/dist/esm/{chunk-WHA7RISE.mjs → chunk-NU6UF6RM.mjs} +2 -2
- package/dist/esm/{chunk-GKGTODGE.mjs → chunk-OAOJVE5X.mjs} +2 -2
- package/dist/esm/chunk-ODA4KV4Q.mjs +2 -0
- package/dist/esm/chunk-OVXWFD2N.mjs +2 -0
- package/dist/esm/{chunk-CAGDOGXS.mjs.map → chunk-OVXWFD2N.mjs.map} +1 -1
- package/dist/esm/{chunk-5RUPEEIG.mjs → chunk-P4UY6YKM.mjs} +2 -2
- package/dist/esm/chunk-P4UY6YKM.mjs.map +1 -0
- package/dist/esm/{chunk-U3YYSIIT.mjs → chunk-Q225PZMV.mjs} +2 -2
- package/dist/esm/chunk-Q6CZDSLM.mjs +2 -0
- package/dist/esm/{chunk-GQR35QW3.mjs → chunk-R25D6NBC.mjs} +2 -2
- package/dist/esm/chunk-R25D6NBC.mjs.map +1 -0
- package/dist/esm/chunk-RBDX3YWC.mjs +2 -0
- package/dist/esm/chunk-RFSO3JRG.mjs +1 -0
- package/dist/esm/chunk-RFSO3JRG.mjs.map +1 -0
- package/dist/esm/chunk-RM7D2ITN.mjs +2 -0
- package/dist/esm/{chunk-C7YANDB2.mjs → chunk-RXMGJBCP.mjs} +2 -2
- package/dist/esm/chunk-RXMGJBCP.mjs.map +1 -0
- package/dist/esm/chunk-S5HG2QUD.mjs +2 -0
- package/dist/esm/chunk-S5HG2QUD.mjs.map +1 -0
- package/dist/esm/chunk-SCPXFKEK.mjs +2 -0
- package/dist/esm/chunk-SCPXFKEK.mjs.map +1 -0
- package/dist/esm/{chunk-TVHLZDCO.mjs → chunk-T3QZ5HSE.mjs} +2 -2
- package/dist/esm/chunk-T3QZ5HSE.mjs.map +1 -0
- package/dist/esm/chunk-T7TIIAWK.mjs +2 -0
- package/dist/esm/{chunk-MXO53VAI.mjs.map → chunk-T7TIIAWK.mjs.map} +1 -1
- package/dist/esm/chunk-TJDC5PWD.mjs +2 -0
- package/dist/esm/chunk-TR6Q7RSZ.mjs +2 -0
- package/dist/esm/chunk-TR6Q7RSZ.mjs.map +1 -0
- package/dist/esm/chunk-TT2VLL52.mjs +2 -0
- package/dist/esm/chunk-TT2VLL52.mjs.map +1 -0
- package/dist/esm/{chunk-UEKKYJGA.mjs → chunk-U426PZNM.mjs} +2 -2
- package/dist/esm/chunk-U426PZNM.mjs.map +1 -0
- package/dist/esm/{chunk-QRS4DGP3.mjs → chunk-U7EZI5D5.mjs} +2 -2
- package/dist/esm/{chunk-QRS4DGP3.mjs.map → chunk-U7EZI5D5.mjs.map} +1 -1
- package/dist/esm/chunk-ULUMROUJ.mjs +2 -0
- package/dist/esm/chunk-ULUMROUJ.mjs.map +1 -0
- package/dist/esm/chunk-UZHVGPGH.mjs +2 -0
- package/dist/esm/{chunk-IHPWATYH.mjs → chunk-V7VV5QW4.mjs} +2 -2
- package/dist/esm/chunk-V7VV5QW4.mjs.map +1 -0
- package/dist/esm/chunk-VAZQVN5V.mjs +2 -0
- package/dist/esm/chunk-VAZQVN5V.mjs.map +1 -0
- package/dist/esm/{chunk-OWXKKVWD.mjs → chunk-VJCQBX6V.mjs} +2 -2
- package/dist/esm/chunk-VJCQBX6V.mjs.map +1 -0
- package/dist/esm/chunk-VVJEWB26.mjs +2 -0
- package/dist/esm/{chunk-SRDIYE3M.mjs.map → chunk-VVJEWB26.mjs.map} +1 -1
- package/dist/esm/chunk-WF737YNO.mjs +2 -0
- package/dist/esm/chunk-WF737YNO.mjs.map +1 -0
- package/dist/esm/{chunk-35EWRSDK.mjs → chunk-WZCUABDL.mjs} +2 -2
- package/dist/esm/{chunk-EKR6HLSN.mjs → chunk-XESYWLDD.mjs} +2 -2
- package/dist/esm/chunk-XESYWLDD.mjs.map +1 -0
- package/dist/esm/{chunk-KAGLWBIJ.mjs → chunk-XI4LX4EC.mjs} +2 -2
- package/dist/esm/chunk-XJ3HRNOP.mjs +2 -0
- package/dist/esm/chunk-XJ3HRNOP.mjs.map +1 -0
- package/dist/esm/{chunk-KLAYDUFD.mjs → chunk-XJFGX3E4.mjs} +2 -2
- package/dist/esm/chunk-XJFGX3E4.mjs.map +1 -0
- package/dist/esm/chunk-YIG37BG2.mjs +2 -0
- package/dist/esm/chunk-YIG37BG2.mjs.map +1 -0
- package/dist/esm/chunk-YNBWXDRS.mjs +2 -0
- package/dist/esm/chunk-YP3RMVL3.mjs +2 -0
- package/dist/esm/chunk-YP3RMVL3.mjs.map +1 -0
- package/dist/esm/chunk-YPBHGSXY.mjs +2 -0
- package/dist/esm/chunk-YPBHGSXY.mjs.map +1 -0
- package/dist/esm/chunk-YU7DNMEA.mjs +2 -0
- package/dist/esm/chunk-YU7DNMEA.mjs.map +1 -0
- package/dist/esm/chunk-ZG6HOK6A.mjs +2 -0
- package/dist/esm/chunk-ZG6HOK6A.mjs.map +1 -0
- package/dist/esm/{chunk-U43KR4TW.mjs → chunk-ZGWWPB3D.mjs} +2 -2
- package/dist/esm/chunk-ZGWWPB3D.mjs.map +1 -0
- package/dist/esm/chunk-ZUDMSBVZ.mjs +2 -0
- package/dist/esm/chunk-ZUDMSBVZ.mjs.map +1 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +2 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +3 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/client/types.mjs +1 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +9 -12
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +76 -0
- package/dist/esm/core/crypto/ephemeral.mjs +2 -0
- package/dist/esm/core/crypto/ephemeral.mjs.map +1 -0
- package/dist/esm/core/crypto/hdKey.d.mts +15 -1
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +8 -6
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +217 -0
- package/dist/esm/core/crypto/keyless.mjs +2 -0
- package/dist/esm/core/crypto/keyless.mjs.map +1 -0
- package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +5 -4
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/poseidon.d.mts +7 -0
- package/dist/esm/core/crypto/poseidon.mjs +2 -0
- package/dist/esm/core/crypto/poseidon.mjs.map +1 -0
- package/dist/esm/core/crypto/privateKey.d.mts +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +8 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +7 -8
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +16 -10
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +14 -2
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +4 -4
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +8 -8
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +11 -11
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +12 -12
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +68 -0
- package/dist/esm/internal/keyless.mjs +2 -0
- package/dist/esm/internal/keyless.mjs.map +1 -0
- package/dist/esm/internal/staking.d.mts +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +5 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +2 -2
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +7 -7
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +4 -5
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +3 -3
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.d.mts +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +14 -2
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +3 -3
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +9 -9
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +9 -9
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +6 -6
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +47 -0
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +7 -29
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +7 -7
- package/dist/esm/types/index.d.mts +18 -3
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/keyless.d.mts +14 -0
- package/dist/esm/types/keyless.mjs +1 -0
- package/dist/esm/types/keyless.mjs.map +1 -0
- package/dist/esm/utils/apiEndpoints.d.mts +3 -1
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +5 -3
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/index.d.mts +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +13 -7
- package/src/{core/account → account}/Account.ts +12 -16
- package/src/{core/account → account}/Ed25519Account.ts +13 -7
- package/src/account/EphemeralKeyPair.ts +78 -0
- package/src/account/KeylessAccount.ts +230 -0
- package/src/account/MultiKeyAccount.ts +121 -0
- package/src/{core/account → account}/SingleKeyAccount.ts +13 -7
- package/src/account/index.ts +6 -0
- package/src/api/account.ts +50 -8
- package/src/api/ans.ts +10 -17
- package/src/api/aptos.ts +10 -0
- package/src/api/aptosConfig.ts +50 -1
- package/src/api/coin.ts +7 -0
- package/src/api/digitalAsset.ts +142 -2
- package/src/api/event.ts +13 -8
- package/src/api/faucet.ts +3 -0
- package/src/api/fungibleAsset.ts +28 -4
- package/src/api/general.ts +48 -25
- package/src/api/keyless.ts +55 -0
- package/src/api/staking.ts +9 -0
- package/src/api/transaction.ts +59 -15
- package/src/api/transactionSubmission/management.ts +1 -1
- package/src/api/transactionSubmission/sign.ts +1 -1
- package/src/bcs/serializer.ts +18 -0
- package/src/client/core.ts +10 -1
- package/src/client/get.ts +6 -0
- package/src/client/post.ts +13 -0
- package/src/core/crypto/ed25519.ts +50 -34
- package/src/core/crypto/ephemeral.ts +147 -0
- package/src/core/crypto/hdKey.ts +31 -0
- package/src/core/crypto/index.ts +2 -0
- package/src/core/crypto/keyless.ts +502 -0
- package/src/core/crypto/multiKey.ts +23 -11
- package/src/core/crypto/poseidon.ts +134 -0
- package/src/core/crypto/secp256k1.ts +9 -3
- package/src/core/crypto/singleKey.ts +11 -0
- package/src/core/index.ts +0 -1
- package/src/index.ts +1 -0
- package/src/internal/account.ts +7 -10
- package/src/internal/ans.ts +2 -1
- package/src/internal/digitalAsset.ts +3 -2
- package/src/internal/fungibleAsset.ts +4 -3
- package/src/internal/keyless.ts +205 -0
- package/src/internal/transaction.ts +48 -10
- package/src/internal/transactionSubmission.ts +8 -7
- package/src/transactions/authenticator/account.ts +6 -11
- package/src/transactions/management/accountSequenceNumber.ts +1 -1
- package/src/transactions/management/transactionWorker.ts +8 -2
- package/src/transactions/transactionBuilder/index.ts +2 -0
- package/src/transactions/transactionBuilder/signingMessage.ts +75 -0
- package/src/transactions/transactionBuilder/transactionBuilder.ts +3 -80
- package/src/types/index.ts +21 -0
- package/src/types/keyless.ts +6 -0
- package/src/utils/apiEndpoints.ts +14 -0
- package/src/utils/const.ts +4 -2
- package/src/version.ts +1 -1
- package/dist/esm/chunk-2EZJOBD2.mjs.map +0 -1
- package/dist/esm/chunk-3AYBWD76.mjs.map +0 -1
- package/dist/esm/chunk-45ZZWQ7X.mjs +0 -2
- package/dist/esm/chunk-45ZZWQ7X.mjs.map +0 -1
- package/dist/esm/chunk-4ILXLBGX.mjs +0 -2
- package/dist/esm/chunk-4NHWV5AI.mjs +0 -2
- package/dist/esm/chunk-4QMXOWHP.mjs +0 -1
- package/dist/esm/chunk-5GKROFZ4.mjs +0 -2
- package/dist/esm/chunk-5GKROFZ4.mjs.map +0 -1
- package/dist/esm/chunk-5RUPEEIG.mjs.map +0 -1
- package/dist/esm/chunk-6APZ5TPE.mjs.map +0 -1
- package/dist/esm/chunk-6BR5UJDT.mjs +0 -2
- package/dist/esm/chunk-AEVRPB4E.mjs +0 -2
- package/dist/esm/chunk-AEVRPB4E.mjs.map +0 -1
- package/dist/esm/chunk-ARGODLTZ.mjs +0 -2
- package/dist/esm/chunk-ARGODLTZ.mjs.map +0 -1
- package/dist/esm/chunk-ASXXZH2D.mjs +0 -2
- package/dist/esm/chunk-ASXXZH2D.mjs.map +0 -1
- package/dist/esm/chunk-B7X6PSE7.mjs +0 -2
- package/dist/esm/chunk-C67BKZND.mjs +0 -2
- package/dist/esm/chunk-C67BKZND.mjs.map +0 -1
- package/dist/esm/chunk-C7YANDB2.mjs.map +0 -1
- package/dist/esm/chunk-CAGDOGXS.mjs +0 -2
- package/dist/esm/chunk-CEHCDA3G.mjs +0 -2
- package/dist/esm/chunk-CQS6ZCJ7.mjs +0 -2
- package/dist/esm/chunk-CQS6ZCJ7.mjs.map +0 -1
- package/dist/esm/chunk-CXR7MOBW.mjs +0 -2
- package/dist/esm/chunk-CYNQRMO5.mjs +0 -2
- package/dist/esm/chunk-CYNQRMO5.mjs.map +0 -1
- package/dist/esm/chunk-DUP7XY5P.mjs +0 -2
- package/dist/esm/chunk-DUP7XY5P.mjs.map +0 -1
- package/dist/esm/chunk-E7FWVXGX.mjs +0 -1
- package/dist/esm/chunk-EKR6HLSN.mjs.map +0 -1
- package/dist/esm/chunk-EV75CYGN.mjs +0 -2
- package/dist/esm/chunk-EV75CYGN.mjs.map +0 -1
- package/dist/esm/chunk-F7EMGK4M.mjs +0 -2
- package/dist/esm/chunk-FKTXWOKR.mjs +0 -2
- package/dist/esm/chunk-FKTXWOKR.mjs.map +0 -1
- package/dist/esm/chunk-GQR35QW3.mjs.map +0 -1
- package/dist/esm/chunk-IHPWATYH.mjs.map +0 -1
- package/dist/esm/chunk-IZF6DFAL.mjs +0 -2
- package/dist/esm/chunk-JOLLCFQL.mjs +0 -2
- package/dist/esm/chunk-JOLLCFQL.mjs.map +0 -1
- package/dist/esm/chunk-KLAYDUFD.mjs.map +0 -1
- package/dist/esm/chunk-LG7RJQ57.mjs +0 -2
- package/dist/esm/chunk-LR65XHSF.mjs +0 -2
- package/dist/esm/chunk-LR65XHSF.mjs.map +0 -1
- package/dist/esm/chunk-MLWIHWNH.mjs +0 -1
- package/dist/esm/chunk-MXO53VAI.mjs +0 -2
- package/dist/esm/chunk-N3U47Y6Y.mjs +0 -2
- package/dist/esm/chunk-NJRNZEHX.mjs +0 -2
- package/dist/esm/chunk-NJRNZEHX.mjs.map +0 -1
- package/dist/esm/chunk-OWXKKVWD.mjs.map +0 -1
- package/dist/esm/chunk-PF57EOJY.mjs +0 -2
- package/dist/esm/chunk-QJAI7DNA.mjs +0 -2
- package/dist/esm/chunk-QJAI7DNA.mjs.map +0 -1
- package/dist/esm/chunk-R7G3CLRI.mjs +0 -1
- package/dist/esm/chunk-RIUFW2OG.mjs +0 -2
- package/dist/esm/chunk-RIUFW2OG.mjs.map +0 -1
- package/dist/esm/chunk-SK5TPUAN.mjs +0 -2
- package/dist/esm/chunk-SOBCWGBM.mjs +0 -2
- package/dist/esm/chunk-SOBCWGBM.mjs.map +0 -1
- package/dist/esm/chunk-SRDIYE3M.mjs +0 -2
- package/dist/esm/chunk-SWZOGZJ6.mjs +0 -2
- package/dist/esm/chunk-SWZOGZJ6.mjs.map +0 -1
- package/dist/esm/chunk-T6J2LHHS.mjs +0 -2
- package/dist/esm/chunk-T6J2LHHS.mjs.map +0 -1
- package/dist/esm/chunk-TVHLZDCO.mjs.map +0 -1
- package/dist/esm/chunk-U43KR4TW.mjs.map +0 -1
- package/dist/esm/chunk-UEKKYJGA.mjs.map +0 -1
- package/dist/esm/chunk-UGPALAPN.mjs +0 -2
- package/dist/esm/chunk-URTTOOEM.mjs +0 -2
- package/dist/esm/chunk-URTTOOEM.mjs.map +0 -1
- package/dist/esm/chunk-UVSRX4SV.mjs +0 -1
- package/dist/esm/chunk-W3V4IGGB.mjs +0 -2
- package/dist/esm/chunk-WMJXRWVE.mjs +0 -2
- package/dist/esm/chunk-XX5J7KKC.mjs +0 -2
- package/dist/esm/chunk-XX5J7KKC.mjs.map +0 -1
- package/dist/esm/chunk-YZGEWPDE.mjs +0 -2
- package/dist/esm/chunk-YZGEWPDE.mjs.map +0 -1
- package/dist/esm/chunk-ZBT4HP6E.mjs +0 -2
- package/dist/esm/chunk-ZBT4HP6E.mjs.map +0 -1
- package/dist/esm/chunk-ZTIRBBNS.mjs +0 -2
- package/dist/esm/core/account/Account.d.mts +0 -20
- package/dist/esm/core/account/Account.mjs +0 -2
- package/dist/esm/core/account/Ed25519Account.d.mts +0 -20
- package/dist/esm/core/account/Ed25519Account.mjs +0 -2
- package/dist/esm/core/account/SingleKeyAccount.d.mts +0 -20
- package/dist/esm/core/account/SingleKeyAccount.mjs +0 -2
- package/dist/esm/core/account/index.d.mts +0 -21
- package/dist/esm/core/account/index.mjs +0 -2
- package/src/core/account/index.ts +0 -4
- /package/dist/esm/{core/account → account}/Account.mjs.map +0 -0
- /package/dist/esm/{core/account → account}/Ed25519Account.mjs.map +0 -0
- /package/dist/esm/{chunk-4QMXOWHP.mjs.map → account/EphemeralKeyPair.mjs.map} +0 -0
- /package/dist/esm/{chunk-E7FWVXGX.mjs.map → account/KeylessAccount.mjs.map} +0 -0
- /package/dist/esm/{chunk-MLWIHWNH.mjs.map → account/MultiKeyAccount.mjs.map} +0 -0
- /package/dist/esm/{core/account → account}/SingleKeyAccount.mjs.map +0 -0
- /package/dist/esm/{core/account → account}/index.mjs.map +0 -0
- /package/dist/esm/{chunk-R7G3CLRI.mjs.map → api/keyless.mjs.map} +0 -0
- /package/dist/esm/{chunk-IYSHHN5A.mjs.map → chunk-2I2XAOH7.mjs.map} +0 -0
- /package/dist/esm/{chunk-XDXI3TRT.mjs.map → chunk-2QGT5DK3.mjs.map} +0 -0
- /package/dist/esm/{chunk-6ILDDGAX.mjs.map → chunk-2VCKY2ZJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-G56GPLTB.mjs.map → chunk-35ZI4WOQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-V6FZ7WZH.mjs.map → chunk-3FL3NLZ6.mjs.map} +0 -0
- /package/dist/esm/{chunk-WMJXRWVE.mjs.map → chunk-5GIWRESN.mjs.map} +0 -0
- /package/dist/esm/{chunk-KXR3IUJ7.mjs.map → chunk-5TNUDFLP.mjs.map} +0 -0
- /package/dist/esm/{chunk-GHYE26Q5.mjs.map → chunk-6FBKUTGF.mjs.map} +0 -0
- /package/dist/esm/{chunk-CEHCDA3G.mjs.map → chunk-7EQOLMEJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-UVSRX4SV.mjs.map → chunk-7Z6DYLCA.mjs.map} +0 -0
- /package/dist/esm/{chunk-BCUSI3N6.mjs.map → chunk-AOCNYMMX.mjs.map} +0 -0
- /package/dist/esm/{chunk-LPB7SZHL.mjs.map → chunk-CHL5NDZD.mjs.map} +0 -0
- /package/dist/esm/{chunk-TTUXAKCV.mjs.map → chunk-CYWA4AJF.mjs.map} +0 -0
- /package/dist/esm/{chunk-W3V4IGGB.mjs.map → chunk-ED6PYTNG.mjs.map} +0 -0
- /package/dist/esm/{chunk-LG7RJQ57.mjs.map → chunk-FBPNHF54.mjs.map} +0 -0
- /package/dist/esm/{chunk-4NHWV5AI.mjs.map → chunk-HZC6A3QL.mjs.map} +0 -0
- /package/dist/esm/{chunk-MJPUASSD.mjs.map → chunk-IVBYTTN7.mjs.map} +0 -0
- /package/dist/esm/{chunk-4ILXLBGX.mjs.map → chunk-J5SQQQPI.mjs.map} +0 -0
- /package/dist/esm/{chunk-5EN52MUT.mjs.map → chunk-JYFKKB34.mjs.map} +0 -0
- /package/dist/esm/{chunk-KS7UY4W5.mjs.map → chunk-KBSAS57Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q73VKL3A.mjs.map → chunk-KMHJNUXU.mjs.map} +0 -0
- /package/dist/esm/{chunk-UGPALAPN.mjs.map → chunk-KX5ESZO7.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y2MYVQVT.mjs.map → chunk-MKHPGY3O.mjs.map} +0 -0
- /package/dist/esm/{chunk-PF57EOJY.mjs.map → chunk-MRCVSUJQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-WHA7RISE.mjs.map → chunk-NU6UF6RM.mjs.map} +0 -0
- /package/dist/esm/{chunk-GKGTODGE.mjs.map → chunk-OAOJVE5X.mjs.map} +0 -0
- /package/dist/esm/{chunk-6BR5UJDT.mjs.map → chunk-ODA4KV4Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-U3YYSIIT.mjs.map → chunk-Q225PZMV.mjs.map} +0 -0
- /package/dist/esm/{chunk-SK5TPUAN.mjs.map → chunk-Q6CZDSLM.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZTIRBBNS.mjs.map → chunk-RBDX3YWC.mjs.map} +0 -0
- /package/dist/esm/{chunk-B7X6PSE7.mjs.map → chunk-RM7D2ITN.mjs.map} +0 -0
- /package/dist/esm/{chunk-F7EMGK4M.mjs.map → chunk-TJDC5PWD.mjs.map} +0 -0
- /package/dist/esm/{chunk-N3U47Y6Y.mjs.map → chunk-UZHVGPGH.mjs.map} +0 -0
- /package/dist/esm/{chunk-35EWRSDK.mjs.map → chunk-WZCUABDL.mjs.map} +0 -0
- /package/dist/esm/{chunk-KAGLWBIJ.mjs.map → chunk-XI4LX4EC.mjs.map} +0 -0
- /package/dist/esm/{chunk-IZF6DFAL.mjs.map → chunk-YNBWXDRS.mjs.map} +0 -0
- /package/dist/esm/{publicKey-B3XRNhHO.d.mts → publicKey-lq5djCIY.d.mts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccountData, PaginationArgs, LedgerVersionArg, MoveModuleBytecode, TransactionResponse, MoveResource, MoveStructId, AnyNumber, TokenStandardArg, OrderByArg, WhereArg } from '../types/index.mjs';
|
|
2
2
|
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs';
|
|
3
3
|
import { PrivateKey } from '../core/crypto/privateKey.mjs';
|
|
4
|
-
import { A as Account$1 } from '../Ed25519Account-
|
|
4
|
+
import { A as Account$1 } from '../Ed25519Account-hkKk3b4Z.mjs';
|
|
5
5
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
6
6
|
import { CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.mjs';
|
|
7
7
|
import { GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetAccountOwnedObjectsResponse } from '../types/indexer.mjs';
|
|
@@ -11,13 +11,25 @@ import '../core/hex.mjs';
|
|
|
11
11
|
import '../core/common.mjs';
|
|
12
12
|
import '../bcs/deserializer.mjs';
|
|
13
13
|
import '../transactions/instances/transactionArgument.mjs';
|
|
14
|
-
import '../publicKey-
|
|
14
|
+
import '../publicKey-lq5djCIY.mjs';
|
|
15
15
|
import '../core/crypto/signature.mjs';
|
|
16
16
|
import '../transactions/authenticator/account.mjs';
|
|
17
17
|
import '../core/crypto/ed25519.mjs';
|
|
18
18
|
import '../core/crypto/multiEd25519.mjs';
|
|
19
19
|
import '../core/crypto/multiKey.mjs';
|
|
20
20
|
import '../core/crypto/singleKey.mjs';
|
|
21
|
+
import '../transactions/types.mjs';
|
|
22
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
23
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
24
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
25
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
26
|
+
import '../transactions/instances/chainId.mjs';
|
|
27
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
28
|
+
import '../transactions/instances/identifier.mjs';
|
|
29
|
+
import '../transactions/instances/moduleId.mjs';
|
|
30
|
+
import '../transactions/typeTag/index.mjs';
|
|
31
|
+
import '../transactions/instances/simpleTransaction.mjs';
|
|
32
|
+
import '../transactions/instances/multiAgentTransaction.mjs';
|
|
21
33
|
import '../utils/const.mjs';
|
|
22
34
|
import '../types/generated/operations.mjs';
|
|
23
35
|
|
|
@@ -71,7 +83,9 @@ declare class Account {
|
|
|
71
83
|
*
|
|
72
84
|
* @returns Account module
|
|
73
85
|
*
|
|
74
|
-
* @example
|
|
86
|
+
* @example
|
|
87
|
+
* const module = await aptos.getAccountModule({accountAddress:"0x456"})
|
|
88
|
+
* // An example of an account module response
|
|
75
89
|
* ```
|
|
76
90
|
* {
|
|
77
91
|
* bytecode: "0xa11ceb0b0600000006010002030206050807070f0d081c200",
|
|
@@ -90,6 +104,9 @@ declare class Account {
|
|
|
90
104
|
* Note: In order to get all account transactions, this function may call the API
|
|
91
105
|
* multiple times as it auto paginates.
|
|
92
106
|
*
|
|
107
|
+
* @example
|
|
108
|
+
* const transactions = await aptos.getAccountTransactions({accountAddress:"0x456"})
|
|
109
|
+
*
|
|
93
110
|
* @param args.accountAddress Aptos account address
|
|
94
111
|
* @param args.options.offset The number transaction to start returning results from
|
|
95
112
|
* @param args.options.limit The number of results to return
|
|
@@ -106,6 +123,9 @@ declare class Account {
|
|
|
106
123
|
* Note: In order to get all account resources, this function may call the API
|
|
107
124
|
* multiple times as it auto paginates.
|
|
108
125
|
*
|
|
126
|
+
* @example
|
|
127
|
+
* const resources = await aptos.getAccountResources({accountAddress:"0x456"})
|
|
128
|
+
*
|
|
109
129
|
* @param args.accountAddress Aptos account address
|
|
110
130
|
* @param args.options.offset The number resource to start returning results from
|
|
111
131
|
* @param args.options.limit The number of results to return
|
|
@@ -127,12 +147,9 @@ declare class Account {
|
|
|
127
147
|
*
|
|
128
148
|
* @returns Account resource
|
|
129
149
|
*
|
|
130
|
-
* @example
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* value: 6
|
|
134
|
-
* }
|
|
135
|
-
* ```
|
|
150
|
+
* @example
|
|
151
|
+
* const resource = await aptos.getAccountResource({accountAddress:"0x456"})
|
|
152
|
+
*
|
|
136
153
|
*/
|
|
137
154
|
getAccountResource<T extends {} = any>(args: {
|
|
138
155
|
accountAddress: AccountAddressInput;
|
|
@@ -144,6 +161,9 @@ declare class Account {
|
|
|
144
161
|
*
|
|
145
162
|
* This handles both if the account's authentication key has been rotated or not.
|
|
146
163
|
*
|
|
164
|
+
* @example
|
|
165
|
+
* const accountAddress = await aptos.lookupOriginalAccountAddress({authenticationKey:account.accountAddress})
|
|
166
|
+
*
|
|
147
167
|
* @param args.authenticationKey The authentication key
|
|
148
168
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
149
169
|
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
@@ -157,6 +177,9 @@ declare class Account {
|
|
|
157
177
|
/**
|
|
158
178
|
* Queries the current count of tokens owned by an account
|
|
159
179
|
*
|
|
180
|
+
* @example
|
|
181
|
+
* const tokensCount = await aptos.getAccountTokensCount({accountAddress:"0x456"})
|
|
182
|
+
*
|
|
160
183
|
* @param args.accountAddress The account address
|
|
161
184
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
162
185
|
* @returns Current count of tokens owned by the account
|
|
@@ -171,6 +194,9 @@ declare class Account {
|
|
|
171
194
|
* This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
|
|
172
195
|
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
173
196
|
*
|
|
197
|
+
* @example
|
|
198
|
+
* const accountOwnedTokens = await aptos.getAccountOwnedTokens({accountAddress:"0x456"})
|
|
199
|
+
*
|
|
174
200
|
* @param args.accountAddress The account address we want to get the tokens for
|
|
175
201
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
176
202
|
* @param args.options.tokenStandard The NFT standard to query for
|
|
@@ -190,6 +216,9 @@ declare class Account {
|
|
|
190
216
|
* This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
|
|
191
217
|
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
192
218
|
*
|
|
219
|
+
* @example
|
|
220
|
+
* const accountOwnedTokens = await aptos.getAccountOwnedTokensFromCollectionAddress({accountAddress:"0x123", collectionAddress:"0x456"})
|
|
221
|
+
*
|
|
193
222
|
* @param args.accountAddress The account address we want to get the tokens for
|
|
194
223
|
* @param args.collectionAddress The address of the collection being queried
|
|
195
224
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
@@ -211,6 +240,9 @@ declare class Account {
|
|
|
211
240
|
* This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
|
|
212
241
|
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
213
242
|
*
|
|
243
|
+
* @example
|
|
244
|
+
* const accountCollectionsWithOwnedTokens = await aptos.getAccountCollectionsWithOwnedTokens({accountAddress:"0x123"})
|
|
245
|
+
*
|
|
214
246
|
* @param args.accountAddress The account address we want to get the collections for
|
|
215
247
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
216
248
|
* @param args.options.tokenStandard The NFT standard to query for
|
|
@@ -227,6 +259,9 @@ declare class Account {
|
|
|
227
259
|
/**
|
|
228
260
|
* Queries the current count of transactions submitted by an account
|
|
229
261
|
*
|
|
262
|
+
* @example
|
|
263
|
+
* const accountTransactionsCount = await aptos.getAccountTransactionsCount({accountAddress:"0x123"})
|
|
264
|
+
*
|
|
230
265
|
* @param args.accountAddress The account address we want to get the total count for
|
|
231
266
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
232
267
|
* @returns Current count of transactions made by an account
|
|
@@ -238,6 +273,9 @@ declare class Account {
|
|
|
238
273
|
/**
|
|
239
274
|
* Queries an account's coins data
|
|
240
275
|
*
|
|
276
|
+
* @example
|
|
277
|
+
* const accountCoinsData = await aptos.getAccountCoinsData({accountAddress:"0x123"})
|
|
278
|
+
*
|
|
241
279
|
* @param args.accountAddress The account address we want to get the coins data for
|
|
242
280
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
243
281
|
* @param args.options.offset optional. The number coin to start returning results from
|
|
@@ -254,6 +292,9 @@ declare class Account {
|
|
|
254
292
|
/**
|
|
255
293
|
* Queries the current count of an account's coins aggregated
|
|
256
294
|
*
|
|
295
|
+
* @example
|
|
296
|
+
* const accountCoinsCount = await aptos.getAccountCoinsCount({accountAddress:"0x123"})
|
|
297
|
+
*
|
|
257
298
|
* @param args.accountAddress The account address we want to get the total count for
|
|
258
299
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
259
300
|
* @returns Current count of the aggregated count of all account's coins
|
|
@@ -265,6 +306,9 @@ declare class Account {
|
|
|
265
306
|
/**
|
|
266
307
|
* Queries the account's APT amount
|
|
267
308
|
*
|
|
309
|
+
* @example
|
|
310
|
+
* const accountAPTAmount = await aptos.getAccountAPTAmount({accountAddress:"0x123"})
|
|
311
|
+
*
|
|
268
312
|
* @param args.accountAddress The account address we want to get the total count for
|
|
269
313
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
270
314
|
* @returns Current amount of account's APT
|
|
@@ -276,6 +320,9 @@ declare class Account {
|
|
|
276
320
|
/**
|
|
277
321
|
* Queries the account's coin amount by the coin type
|
|
278
322
|
*
|
|
323
|
+
* @example
|
|
324
|
+
* const accountCoinAmount = await aptos.getAccountCoinAmount({accountAddress:"0x123", coinType:"0x1::aptos_coin::AptosCoin"})
|
|
325
|
+
*
|
|
279
326
|
* @param args.accountAddress The account address we want to get the total count for
|
|
280
327
|
* @param args.coinType The coin type to query
|
|
281
328
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
@@ -289,6 +336,9 @@ declare class Account {
|
|
|
289
336
|
/**
|
|
290
337
|
* Queries an account's owned objects
|
|
291
338
|
*
|
|
339
|
+
* @example
|
|
340
|
+
* const accountOwnedObjects = await aptos.getAccountOwnedObjects({accountAddress:"0x123"})
|
|
341
|
+
*
|
|
292
342
|
* @param args.accountAddress The account address we want to get the objects for
|
|
293
343
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
294
344
|
* @param args.options.offset The starting position to start returning results from
|
|
@@ -312,6 +362,9 @@ declare class Account {
|
|
|
312
362
|
* whether it is a Legacy ED25519 key or a Unified ED25519 key. It then derives the account based
|
|
313
363
|
* on that.
|
|
314
364
|
*
|
|
365
|
+
* @example
|
|
366
|
+
* const account = await aptos.deriveAccountFromPrivateKey({privateKey:new Ed25519PrivateKey("0x123")})
|
|
367
|
+
*
|
|
315
368
|
* @param args.privateKey An account private key
|
|
316
369
|
* @returns Account type
|
|
317
370
|
*/
|
package/dist/esm/api/account.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-XJFGX3E4.mjs";import"../chunk-YIG37BG2.mjs";import"../chunk-7Z6DYLCA.mjs";import"../chunk-2I2XAOH7.mjs";import"../chunk-YP3RMVL3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-CYWA4AJF.mjs";import"../chunk-S4SEFF4K.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-EMFDNUP2.mjs";import"../chunk-OVXWFD2N.mjs";import"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-U426PZNM.mjs";import"../chunk-KWDJ4YOP.mjs";import"../chunk-ATXQWKVH.mjs";import"../chunk-2Z4N3GLA.mjs";import"../chunk-MX3YIOU5.mjs";import"../chunk-WF737YNO.mjs";import"../chunk-YU7DNMEA.mjs";import"../chunk-ICXA3DZH.mjs";import"../chunk-5GIWRESN.mjs";import"../chunk-J5SQQQPI.mjs";import"../chunk-3FL3NLZ6.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-YNBWXDRS.mjs";import"../chunk-ED6PYTNG.mjs";import"../chunk-RBDX3YWC.mjs";import"../chunk-Q225PZMV.mjs";import"../chunk-MRCVSUJQ.mjs";import"../chunk-WZCUABDL.mjs";import"../chunk-RM7D2ITN.mjs";import"../chunk-4AOGG725.mjs";import"../chunk-RFSO3JRG.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-AQ4I7VVB.mjs";import"../chunk-2QGT5DK3.mjs";import"../chunk-XJ3HRNOP.mjs";import"../chunk-ULUMROUJ.mjs";import"../chunk-ZUDMSBVZ.mjs";import"../chunk-FLYEALDB.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-B645DPPF.mjs";import"../chunk-3J2Q7O57.mjs";import"../chunk-VAZQVN5V.mjs";import"../chunk-KX5ESZO7.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-HZC6A3QL.mjs";import"../chunk-S5HG2QUD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-UZHVGPGH.mjs";import"../chunk-7EQOLMEJ.mjs";import"../chunk-35ZI4WOQ.mjs";import"../chunk-VVJEWB26.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-JYFKKB34.mjs";import"../chunk-U7EZI5D5.mjs";import"../chunk-52DBSOFA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as Account};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
package/dist/esm/api/ans.d.mts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { GetANSNameResponse } from '../types/indexer.mjs';
|
|
2
1
|
import { AccountAddress, AccountAddressInput } from '../core/accountAddress.mjs';
|
|
3
|
-
import {
|
|
2
|
+
import { GetANSNameResponse } from '../types/indexer.mjs';
|
|
4
3
|
import { RegisterNameParameters, GetAccountNamesArgs, GetAccountDomainsArgs, GetAccountSubdomainsArgs, GetDomainSubdomainsArgs } from '../internal/ans.mjs';
|
|
5
4
|
import { InputGenerateTransactionOptions } from '../transactions/types.mjs';
|
|
6
5
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
7
6
|
import { SimpleTransaction } from '../transactions/instances/simpleTransaction.mjs';
|
|
8
|
-
import '../
|
|
9
|
-
import '../types/generated/types.mjs';
|
|
7
|
+
import { A as Account } from '../Ed25519Account-hkKk3b4Z.mjs';
|
|
10
8
|
import '../bcs/serializer.mjs';
|
|
11
9
|
import '../core/hex.mjs';
|
|
12
10
|
import '../core/common.mjs';
|
|
@@ -14,23 +12,25 @@ import '../types/index.mjs';
|
|
|
14
12
|
import '../utils/apiEndpoints.mjs';
|
|
15
13
|
import '../bcs/deserializer.mjs';
|
|
16
14
|
import '../transactions/instances/transactionArgument.mjs';
|
|
17
|
-
import '../
|
|
18
|
-
import '../
|
|
19
|
-
import '../publicKey-B3XRNhHO.mjs';
|
|
20
|
-
import '../core/crypto/signature.mjs';
|
|
21
|
-
import '../core/crypto/privateKey.mjs';
|
|
22
|
-
import '../core/crypto/multiEd25519.mjs';
|
|
23
|
-
import '../core/crypto/multiKey.mjs';
|
|
24
|
-
import '../core/crypto/singleKey.mjs';
|
|
15
|
+
import '../types/generated/operations.mjs';
|
|
16
|
+
import '../types/generated/types.mjs';
|
|
25
17
|
import '../bcs/serializable/moveStructs.mjs';
|
|
26
18
|
import '../bcs/serializable/movePrimitives.mjs';
|
|
27
19
|
import '../bcs/serializable/fixedBytes.mjs';
|
|
20
|
+
import '../publicKey-lq5djCIY.mjs';
|
|
21
|
+
import '../core/crypto/signature.mjs';
|
|
28
22
|
import '../transactions/instances/rawTransaction.mjs';
|
|
29
23
|
import '../transactions/instances/chainId.mjs';
|
|
30
24
|
import '../transactions/instances/transactionPayload.mjs';
|
|
31
25
|
import '../transactions/instances/identifier.mjs';
|
|
32
26
|
import '../transactions/instances/moduleId.mjs';
|
|
33
27
|
import '../transactions/typeTag/index.mjs';
|
|
28
|
+
import '../transactions/authenticator/account.mjs';
|
|
29
|
+
import '../core/crypto/ed25519.mjs';
|
|
30
|
+
import '../core/crypto/privateKey.mjs';
|
|
31
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
32
|
+
import '../core/crypto/multiKey.mjs';
|
|
33
|
+
import '../core/crypto/singleKey.mjs';
|
|
34
34
|
import '../transactions/instances/multiAgentTransaction.mjs';
|
|
35
35
|
import '../utils/const.mjs';
|
|
36
36
|
|
|
@@ -43,11 +43,10 @@ declare class ANS {
|
|
|
43
43
|
/**
|
|
44
44
|
* Retrieve the owner address of a domain name or subdomain name from the contract.
|
|
45
45
|
*
|
|
46
|
-
*
|
|
46
|
+
* @example
|
|
47
47
|
* // Will return the owner address of "test.aptos.apt" or undefined
|
|
48
48
|
* const owner = await aptos.getOwnerAddress({name: "test.aptos"})
|
|
49
49
|
* // owner = 0x123...
|
|
50
|
-
* ```
|
|
51
50
|
*
|
|
52
51
|
* @param args.name - A string of the name to retrieve
|
|
53
52
|
*
|
|
@@ -59,11 +58,10 @@ declare class ANS {
|
|
|
59
58
|
/**
|
|
60
59
|
* Retrieve the expiration time of a domain name or subdomain name from the contract.
|
|
61
60
|
*
|
|
62
|
-
*
|
|
61
|
+
* @example
|
|
63
62
|
* // Will return the expiration of "test.aptos.apt" or undefined
|
|
64
63
|
* const exp = await aptos.getExpiration({name: "test.aptos"})
|
|
65
64
|
* // new Date(exp) would give you the date in question: 2021-01-01T00:00:00.000Z
|
|
66
|
-
* ```
|
|
67
65
|
*
|
|
68
66
|
* @param args.name - A string of the name to retrieve
|
|
69
67
|
*
|
|
@@ -77,10 +75,9 @@ declare class ANS {
|
|
|
77
75
|
* address the name points to for use on chain. Note, the target address can
|
|
78
76
|
* point to addresses that are not the owner of the name
|
|
79
77
|
*
|
|
80
|
-
*
|
|
78
|
+
* @example
|
|
81
79
|
* const targetAddr = await aptos.getTargetAddress({name: "test.aptos"})
|
|
82
80
|
* // targetAddr = 0x123...
|
|
83
|
-
* ```
|
|
84
81
|
*
|
|
85
82
|
* @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.
|
|
86
83
|
*
|
|
@@ -94,11 +91,10 @@ declare class ANS {
|
|
|
94
91
|
* address the name points to for use on chain. Note, the target address can
|
|
95
92
|
* point to addresses that are not the owner of the name
|
|
96
93
|
*
|
|
97
|
-
*
|
|
94
|
+
* @example
|
|
98
95
|
* await aptos.setTargetAddress({sender: alice, name: "test.aptos", address: bob.accountAddress})
|
|
99
96
|
* const address = await aptos.getTargetAddress({name: "test.aptos"})
|
|
100
97
|
* // address = bob.accountAddress
|
|
101
|
-
* ```
|
|
102
98
|
*
|
|
103
99
|
* @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
|
|
104
100
|
* @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
|
|
@@ -116,10 +112,9 @@ declare class ANS {
|
|
|
116
112
|
* multiple names that target it, but only a single name that is primary. An
|
|
117
113
|
* account also may not have a primary name.
|
|
118
114
|
*
|
|
119
|
-
*
|
|
115
|
+
* @example
|
|
120
116
|
* const name = await aptos.getPrimaryName({address: alice.accountAddress})
|
|
121
117
|
* // name = test.aptos
|
|
122
|
-
* ```
|
|
123
118
|
*
|
|
124
119
|
* @param args.address - A AccountAddressInput (address) of the account
|
|
125
120
|
*
|
|
@@ -133,11 +128,10 @@ declare class ANS {
|
|
|
133
128
|
* multiple names that target it, but only a single name that is primary. An
|
|
134
129
|
* account also may not have a primary name.
|
|
135
130
|
*
|
|
136
|
-
*
|
|
131
|
+
* @example
|
|
137
132
|
* await aptos.setPrimaryName({sender: alice, name: "test.aptos"})
|
|
138
133
|
* const primaryName = await aptos.getPrimaryName({address: alice.accountAddress})
|
|
139
134
|
* // primaryName = test.aptos
|
|
140
|
-
* ```
|
|
141
135
|
*
|
|
142
136
|
* @param args.sender - The sender account
|
|
143
137
|
* @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
|
|
@@ -152,7 +146,7 @@ declare class ANS {
|
|
|
152
146
|
/**
|
|
153
147
|
* Registers a new name
|
|
154
148
|
*
|
|
155
|
-
*
|
|
149
|
+
* @example
|
|
156
150
|
* // An example of registering a subdomain name assuming def.apt is already registered
|
|
157
151
|
* // and belongs to the sender alice.
|
|
158
152
|
* const txn = aptos.registerName({
|
|
@@ -163,7 +157,6 @@ declare class ANS {
|
|
|
163
157
|
* expirationDate: Date.now() + 30 * 24 * 60 * 60 * 1000,
|
|
164
158
|
* },
|
|
165
159
|
* });
|
|
166
|
-
* ```
|
|
167
160
|
*
|
|
168
161
|
* @param args.sender - The sender account
|
|
169
162
|
* @param args.name - A string of the name to register. This can be inclusive or exclusive of the .apt suffix.
|
|
@@ -190,10 +183,9 @@ declare class ANS {
|
|
|
190
183
|
*
|
|
191
184
|
* Note: If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.
|
|
192
185
|
*
|
|
193
|
-
*
|
|
186
|
+
* @example
|
|
194
187
|
* await aptos.renewDomain({sender: alice, name: "test"})
|
|
195
188
|
* // test.apt will be renewed for one year
|
|
196
|
-
* ```
|
|
197
189
|
*
|
|
198
190
|
* @param args.sender - The sender account
|
|
199
191
|
* @param args.name - A string of the domain the subdomain will be under. The signer must be the domain owner.
|
package/dist/esm/api/ans.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-NJWTXEHT.mjs";import"../chunk-XESYWLDD.mjs";import"../chunk-Q6CZDSLM.mjs";import"../chunk-6OKRMOWR.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-MAFSWKAF.mjs";import"../chunk-2VCKY2ZJ.mjs";import"../chunk-IVBYTTN7.mjs";import"../chunk-T7TIIAWK.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-5TNUDFLP.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-YIG37BG2.mjs";import"../chunk-7Z6DYLCA.mjs";import"../chunk-YP3RMVL3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-CYWA4AJF.mjs";import"../chunk-S4SEFF4K.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-EMFDNUP2.mjs";import"../chunk-OVXWFD2N.mjs";import"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-U426PZNM.mjs";import"../chunk-KWDJ4YOP.mjs";import"../chunk-ATXQWKVH.mjs";import"../chunk-2Z4N3GLA.mjs";import"../chunk-MX3YIOU5.mjs";import"../chunk-WF737YNO.mjs";import"../chunk-YU7DNMEA.mjs";import"../chunk-ICXA3DZH.mjs";import"../chunk-5GIWRESN.mjs";import"../chunk-J5SQQQPI.mjs";import"../chunk-3FL3NLZ6.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-YNBWXDRS.mjs";import"../chunk-ED6PYTNG.mjs";import"../chunk-RBDX3YWC.mjs";import"../chunk-Q225PZMV.mjs";import"../chunk-MRCVSUJQ.mjs";import"../chunk-WZCUABDL.mjs";import"../chunk-RM7D2ITN.mjs";import"../chunk-4AOGG725.mjs";import"../chunk-RFSO3JRG.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-AQ4I7VVB.mjs";import"../chunk-2QGT5DK3.mjs";import"../chunk-XJ3HRNOP.mjs";import"../chunk-ULUMROUJ.mjs";import"../chunk-ZUDMSBVZ.mjs";import"../chunk-FLYEALDB.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-B645DPPF.mjs";import"../chunk-3J2Q7O57.mjs";import"../chunk-VAZQVN5V.mjs";import"../chunk-KX5ESZO7.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-HZC6A3QL.mjs";import"../chunk-S5HG2QUD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-UZHVGPGH.mjs";import"../chunk-7EQOLMEJ.mjs";import"../chunk-35ZI4WOQ.mjs";import"../chunk-VVJEWB26.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-JYFKKB34.mjs";import"../chunk-U7EZI5D5.mjs";import"../chunk-52DBSOFA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as ANS};
|
|
2
2
|
//# sourceMappingURL=ans.mjs.map
|
package/dist/esm/api/aptos.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ import { General } from './general.mjs';
|
|
|
9
9
|
import { ANS } from './ans.mjs';
|
|
10
10
|
import { Staking } from './staking.mjs';
|
|
11
11
|
import { Transaction } from './transaction.mjs';
|
|
12
|
+
import { Keyless } from './keyless.mjs';
|
|
12
13
|
import '../types/index.mjs';
|
|
13
14
|
import '../utils/apiEndpoints.mjs';
|
|
14
15
|
import '../types/indexer.mjs';
|
|
@@ -21,27 +22,27 @@ import '../core/common.mjs';
|
|
|
21
22
|
import '../bcs/deserializer.mjs';
|
|
22
23
|
import '../transactions/instances/transactionArgument.mjs';
|
|
23
24
|
import '../core/crypto/privateKey.mjs';
|
|
24
|
-
import '../publicKey-
|
|
25
|
+
import '../publicKey-lq5djCIY.mjs';
|
|
25
26
|
import '../core/crypto/signature.mjs';
|
|
26
|
-
import '../Ed25519Account-
|
|
27
|
+
import '../Ed25519Account-hkKk3b4Z.mjs';
|
|
27
28
|
import '../transactions/authenticator/account.mjs';
|
|
28
29
|
import '../core/crypto/ed25519.mjs';
|
|
29
30
|
import '../core/crypto/multiEd25519.mjs';
|
|
30
31
|
import '../core/crypto/multiKey.mjs';
|
|
31
32
|
import '../core/crypto/singleKey.mjs';
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
33
|
+
import '../transactions/types.mjs';
|
|
34
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
35
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
36
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
34
37
|
import '../transactions/instances/rawTransaction.mjs';
|
|
35
38
|
import '../transactions/instances/chainId.mjs';
|
|
36
39
|
import '../transactions/instances/transactionPayload.mjs';
|
|
37
40
|
import '../transactions/instances/identifier.mjs';
|
|
38
41
|
import '../transactions/instances/moduleId.mjs';
|
|
39
42
|
import '../transactions/typeTag/index.mjs';
|
|
40
|
-
import '../transactions/
|
|
41
|
-
import '../bcs/serializable/moveStructs.mjs';
|
|
42
|
-
import '../bcs/serializable/movePrimitives.mjs';
|
|
43
|
-
import '../bcs/serializable/fixedBytes.mjs';
|
|
43
|
+
import '../transactions/instances/simpleTransaction.mjs';
|
|
44
44
|
import '../transactions/instances/multiAgentTransaction.mjs';
|
|
45
|
+
import '../utils/const.mjs';
|
|
45
46
|
import '../internal/digitalAsset.mjs';
|
|
46
47
|
import '../internal/ans.mjs';
|
|
47
48
|
import './transactionSubmission/build.mjs';
|
|
@@ -52,6 +53,11 @@ import 'eventemitter3';
|
|
|
52
53
|
import '../transactions/management/transactionWorker.mjs';
|
|
53
54
|
import '../transactions/management/accountSequenceNumber.mjs';
|
|
54
55
|
import '../transactions/management/asyncQueue.mjs';
|
|
56
|
+
import '../account/KeylessAccount.mjs';
|
|
57
|
+
import '../core/crypto/keyless.mjs';
|
|
58
|
+
import '../core/crypto/ephemeral.mjs';
|
|
59
|
+
import '../account/EphemeralKeyPair.mjs';
|
|
60
|
+
import '../account/MultiKeyAccount.mjs';
|
|
55
61
|
|
|
56
62
|
/**
|
|
57
63
|
* This class is the main entry point into Aptos's
|
|
@@ -59,6 +65,10 @@ import '../transactions/management/asyncQueue.mjs';
|
|
|
59
65
|
*
|
|
60
66
|
* To use the SDK, create a new Aptos instance to get access
|
|
61
67
|
* to all the sdk functionality.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
*
|
|
71
|
+
* const aptos = new Aptos();
|
|
62
72
|
*/
|
|
63
73
|
declare class Aptos {
|
|
64
74
|
readonly config: AptosConfig;
|
|
@@ -72,9 +82,10 @@ declare class Aptos {
|
|
|
72
82
|
readonly general: General;
|
|
73
83
|
readonly staking: Staking;
|
|
74
84
|
readonly transaction: Transaction;
|
|
85
|
+
readonly keyless: Keyless;
|
|
75
86
|
constructor(settings?: AptosConfig);
|
|
76
87
|
}
|
|
77
|
-
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
88
|
+
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
78
89
|
}
|
|
79
90
|
|
|
80
91
|
export { Aptos };
|
package/dist/esm/api/aptos.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-EY3FIYMV.mjs";import"../chunk-P4UY6YKM.mjs";import"../chunk-ODA4KV4Q.mjs";import"../chunk-R25D6NBC.mjs";import"../chunk-2FKQJL3H.mjs";import"../chunk-7M3U2I23.mjs";import"../chunk-2MPLQPZT.mjs";import"../chunk-YPBHGSXY.mjs";import"../chunk-VJCQBX6V.mjs";import"../chunk-OAOJVE5X.mjs";import"../chunk-TT2VLL52.mjs";import"../chunk-5D65Z2SG.mjs";import"../chunk-IHYTP2EW.mjs";import"../chunk-ZGWWPB3D.mjs";import"../chunk-RXMGJBCP.mjs";import"../chunk-U6Z4FNB7.mjs";import"../chunk-MKHPGY3O.mjs";import"../chunk-NU6UF6RM.mjs";import"../chunk-6EMN3BOV.mjs";import"../chunk-KBSAS57Q.mjs";import"../chunk-XJFGX3E4.mjs";import"../chunk-NJWTXEHT.mjs";import"../chunk-XESYWLDD.mjs";import"../chunk-Q6CZDSLM.mjs";import"../chunk-HTO4EQNT.mjs";import"../chunk-V7VV5QW4.mjs";import"../chunk-CHL5NDZD.mjs";import"../chunk-T3QZ5HSE.mjs";import"../chunk-ZG6HOK6A.mjs";import"../chunk-6OKRMOWR.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-MAFSWKAF.mjs";import"../chunk-2VCKY2ZJ.mjs";import"../chunk-IVBYTTN7.mjs";import"../chunk-T7TIIAWK.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-5TNUDFLP.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-YIG37BG2.mjs";import"../chunk-7Z6DYLCA.mjs";import"../chunk-BQCIUNLZ.mjs";import"../chunk-KMHJNUXU.mjs";import"../chunk-2I2XAOH7.mjs";import"../chunk-YP3RMVL3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-CYWA4AJF.mjs";import"../chunk-S4SEFF4K.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-EMFDNUP2.mjs";import"../chunk-OVXWFD2N.mjs";import"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-U426PZNM.mjs";import"../chunk-KWDJ4YOP.mjs";import"../chunk-ATXQWKVH.mjs";import"../chunk-2Z4N3GLA.mjs";import"../chunk-MX3YIOU5.mjs";import"../chunk-WF737YNO.mjs";import"../chunk-YU7DNMEA.mjs";import"../chunk-ICXA3DZH.mjs";import"../chunk-5GIWRESN.mjs";import"../chunk-J5SQQQPI.mjs";import"../chunk-3FL3NLZ6.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-YNBWXDRS.mjs";import"../chunk-ED6PYTNG.mjs";import"../chunk-RBDX3YWC.mjs";import"../chunk-Q225PZMV.mjs";import"../chunk-MRCVSUJQ.mjs";import"../chunk-WZCUABDL.mjs";import"../chunk-RM7D2ITN.mjs";import"../chunk-4AOGG725.mjs";import"../chunk-RFSO3JRG.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-AQ4I7VVB.mjs";import"../chunk-2QGT5DK3.mjs";import"../chunk-XJ3HRNOP.mjs";import"../chunk-ULUMROUJ.mjs";import"../chunk-ZUDMSBVZ.mjs";import"../chunk-FLYEALDB.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-B645DPPF.mjs";import"../chunk-3J2Q7O57.mjs";import"../chunk-VAZQVN5V.mjs";import"../chunk-KX5ESZO7.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-HZC6A3QL.mjs";import"../chunk-S5HG2QUD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-UZHVGPGH.mjs";import"../chunk-7EQOLMEJ.mjs";import"../chunk-35ZI4WOQ.mjs";import"../chunk-VVJEWB26.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-JYFKKB34.mjs";import"../chunk-U7EZI5D5.mjs";import"../chunk-52DBSOFA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as Aptos};
|
|
2
2
|
//# sourceMappingURL=aptos.mjs.map
|
|
@@ -7,6 +7,10 @@ import '../types/generated/types.mjs';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* This class holds the config information for the SDK client instance.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
*
|
|
13
|
+
* const aptosConfig = new AptosConfig({network:Network.TESTNET})
|
|
10
14
|
*/
|
|
11
15
|
declare class AptosConfig {
|
|
12
16
|
/**
|
|
@@ -25,6 +29,14 @@ declare class AptosConfig {
|
|
|
25
29
|
* The optional hardcoded faucet URL to send requests to instead of using the network
|
|
26
30
|
*/
|
|
27
31
|
readonly faucet?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The optional hardcoded pepper service URL to send requests to instead of using the network
|
|
34
|
+
*/
|
|
35
|
+
readonly pepper?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The optional hardcoded prover service URL to send requests to instead of using the network
|
|
38
|
+
*/
|
|
39
|
+
readonly prover?: string;
|
|
28
40
|
/**
|
|
29
41
|
* The optional hardcoded indexer URL to send requests to instead of using the network
|
|
30
42
|
*/
|
|
@@ -57,6 +69,18 @@ declare class AptosConfig {
|
|
|
57
69
|
* @internal
|
|
58
70
|
*/
|
|
59
71
|
getRequestUrl(apiType: AptosApiType): string;
|
|
72
|
+
/**
|
|
73
|
+
* Checks if the URL is a known pepper service endpoint
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
* */
|
|
77
|
+
isPepperServiceRequest(url: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Checks if the URL is a known prover service endpoint
|
|
80
|
+
*
|
|
81
|
+
* @internal
|
|
82
|
+
* */
|
|
83
|
+
isProverServiceRequest(url: string): boolean;
|
|
60
84
|
}
|
|
61
85
|
|
|
62
86
|
export { AptosConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-HTO4EQNT.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AptosConfig};
|
|
2
2
|
//# sourceMappingURL=aptosConfig.mjs.map
|
package/dist/esm/api/coin.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AnyNumber, MoveStructId } from '../types/index.mjs';
|
|
2
1
|
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
2
|
+
import { AnyNumber, MoveStructId } from '../types/index.mjs';
|
|
3
3
|
import { SimpleTransaction } from '../transactions/instances/simpleTransaction.mjs';
|
|
4
4
|
import { InputGenerateTransactionOptions } from '../transactions/types.mjs';
|
|
5
5
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
6
|
-
import '../utils/apiEndpoints.mjs';
|
|
7
|
-
import '../types/indexer.mjs';
|
|
8
|
-
import '../types/generated/operations.mjs';
|
|
9
|
-
import '../types/generated/types.mjs';
|
|
10
6
|
import '../bcs/serializer.mjs';
|
|
11
7
|
import '../core/hex.mjs';
|
|
12
8
|
import '../core/common.mjs';
|
|
13
9
|
import '../bcs/deserializer.mjs';
|
|
14
10
|
import '../transactions/instances/transactionArgument.mjs';
|
|
11
|
+
import '../utils/apiEndpoints.mjs';
|
|
12
|
+
import '../types/indexer.mjs';
|
|
13
|
+
import '../types/generated/operations.mjs';
|
|
14
|
+
import '../types/generated/types.mjs';
|
|
15
15
|
import '../transactions/instances/rawTransaction.mjs';
|
|
16
16
|
import '../transactions/instances/chainId.mjs';
|
|
17
17
|
import '../transactions/instances/transactionPayload.mjs';
|
|
@@ -21,10 +21,10 @@ import '../transactions/typeTag/index.mjs';
|
|
|
21
21
|
import '../bcs/serializable/moveStructs.mjs';
|
|
22
22
|
import '../bcs/serializable/movePrimitives.mjs';
|
|
23
23
|
import '../bcs/serializable/fixedBytes.mjs';
|
|
24
|
+
import '../publicKey-lq5djCIY.mjs';
|
|
25
|
+
import '../core/crypto/signature.mjs';
|
|
24
26
|
import '../transactions/authenticator/account.mjs';
|
|
25
27
|
import '../core/crypto/ed25519.mjs';
|
|
26
|
-
import '../publicKey-B3XRNhHO.mjs';
|
|
27
|
-
import '../core/crypto/signature.mjs';
|
|
28
28
|
import '../core/crypto/privateKey.mjs';
|
|
29
29
|
import '../core/crypto/multiEd25519.mjs';
|
|
30
30
|
import '../core/crypto/multiKey.mjs';
|
|
@@ -41,6 +41,13 @@ declare class Coin {
|
|
|
41
41
|
/**
|
|
42
42
|
* Generate a transfer coin transaction that can be simulated and/or signed and submitted
|
|
43
43
|
*
|
|
44
|
+
* @example
|
|
45
|
+
* const transferCoinTransaction = await aptos.transferCoinTransaction({
|
|
46
|
+
* sender: "0x123",
|
|
47
|
+
* recipient:"0x456",
|
|
48
|
+
* amount: 10,
|
|
49
|
+
* })
|
|
50
|
+
*
|
|
44
51
|
* @param args.sender The sender account
|
|
45
52
|
* @param args.recipient The recipient address
|
|
46
53
|
* @param args.amount The amount to transfer
|
package/dist/esm/api/coin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-V7VV5QW4.mjs";import"../chunk-CHL5NDZD.mjs";import"../chunk-6OKRMOWR.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-MAFSWKAF.mjs";import"../chunk-2VCKY2ZJ.mjs";import"../chunk-IVBYTTN7.mjs";import"../chunk-T7TIIAWK.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-5TNUDFLP.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-YIG37BG2.mjs";import"../chunk-7Z6DYLCA.mjs";import"../chunk-YP3RMVL3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-CYWA4AJF.mjs";import"../chunk-S4SEFF4K.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-EMFDNUP2.mjs";import"../chunk-OVXWFD2N.mjs";import"../chunk-TR6Q7RSZ.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-SCPXFKEK.mjs";import"../chunk-LVYKZS54.mjs";import"../chunk-U426PZNM.mjs";import"../chunk-KWDJ4YOP.mjs";import"../chunk-ATXQWKVH.mjs";import"../chunk-2Z4N3GLA.mjs";import"../chunk-MX3YIOU5.mjs";import"../chunk-WF737YNO.mjs";import"../chunk-YU7DNMEA.mjs";import"../chunk-ICXA3DZH.mjs";import"../chunk-5GIWRESN.mjs";import"../chunk-J5SQQQPI.mjs";import"../chunk-3FL3NLZ6.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-YNBWXDRS.mjs";import"../chunk-ED6PYTNG.mjs";import"../chunk-RBDX3YWC.mjs";import"../chunk-Q225PZMV.mjs";import"../chunk-MRCVSUJQ.mjs";import"../chunk-WZCUABDL.mjs";import"../chunk-RM7D2ITN.mjs";import"../chunk-4AOGG725.mjs";import"../chunk-RFSO3JRG.mjs";import"../chunk-2HXKDHMA.mjs";import"../chunk-AQ4I7VVB.mjs";import"../chunk-2QGT5DK3.mjs";import"../chunk-XJ3HRNOP.mjs";import"../chunk-ULUMROUJ.mjs";import"../chunk-ZUDMSBVZ.mjs";import"../chunk-FLYEALDB.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-B645DPPF.mjs";import"../chunk-3J2Q7O57.mjs";import"../chunk-VAZQVN5V.mjs";import"../chunk-KX5ESZO7.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-HZC6A3QL.mjs";import"../chunk-S5HG2QUD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-UZHVGPGH.mjs";import"../chunk-7EQOLMEJ.mjs";import"../chunk-35ZI4WOQ.mjs";import"../chunk-VVJEWB26.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-JYFKKB34.mjs";import"../chunk-U7EZI5D5.mjs";import"../chunk-52DBSOFA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-ACOL3VVP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as Coin};
|
|
2
2
|
//# sourceMappingURL=coin.mjs.map
|