@aptos-labs/ts-sdk 0.0.7 → 1.0.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 +26 -10
- package/dist/browser/index.d.ts +818 -446
- package/dist/browser/index.global.js +30 -30
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +818 -446
- package/dist/common/index.js +29 -29
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/account.d.mts +72 -47
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +19 -17
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +1 -0
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +2 -2
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +4 -3
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +42 -19
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +12 -14
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +4 -4
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +71 -30
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +12 -5
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.d.mts +13 -9
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +36 -2
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/transactionSubmission.d.mts +23 -1
- package/dist/esm/api/transactionSubmission.mjs +1 -1
- package/dist/esm/api/utils.d.mts +21 -0
- package/dist/esm/api/utils.mjs +2 -0
- package/dist/esm/bcs/deserializer.d.mts +4 -4
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +4 -4
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/chunk-26GRNGPL.mjs +2 -0
- package/dist/esm/chunk-26GRNGPL.mjs.map +1 -0
- package/dist/esm/{chunk-72F5YXGC.mjs → chunk-2AMFCGJ3.mjs} +2 -2
- package/dist/esm/chunk-2AMFCGJ3.mjs.map +1 -0
- package/dist/esm/{chunk-ZUHN56GM.mjs → chunk-2X3FRUKX.mjs} +2 -2
- package/dist/esm/chunk-2X3FRUKX.mjs.map +1 -0
- package/dist/esm/chunk-32A35CPU.mjs +2 -0
- package/dist/esm/chunk-32A35CPU.mjs.map +1 -0
- package/dist/esm/{chunk-JZNLZMUC.mjs → chunk-3QS3MFWJ.mjs} +2 -2
- package/dist/esm/{chunk-ARVSIDVB.mjs → chunk-3RMXGSHK.mjs} +2 -2
- package/dist/esm/chunk-3RMXGSHK.mjs.map +1 -0
- package/dist/esm/chunk-4FDIPWVB.mjs +2 -0
- package/dist/esm/chunk-4FDIPWVB.mjs.map +1 -0
- package/dist/esm/{chunk-U25N2VWA.mjs → chunk-4K252UDE.mjs} +2 -2
- package/dist/esm/{chunk-3VZ3OZKC.mjs → chunk-4XQ5IV6C.mjs} +2 -2
- package/dist/esm/chunk-5HZKDT5C.mjs +2 -0
- package/dist/esm/chunk-5HZKDT5C.mjs.map +1 -0
- package/dist/esm/chunk-5IVRKK5V.mjs +2 -0
- package/dist/esm/chunk-5IVRKK5V.mjs.map +1 -0
- package/dist/esm/chunk-5SRMD5C6.mjs +2 -0
- package/dist/esm/chunk-5SRMD5C6.mjs.map +1 -0
- package/dist/esm/chunk-5X46HDCI.mjs +2 -0
- package/dist/esm/chunk-5X46HDCI.mjs.map +1 -0
- package/dist/esm/{chunk-HVADSXTB.mjs → chunk-6DYNAFAP.mjs} +2 -2
- package/dist/esm/chunk-6F4ACCCZ.mjs +2 -0
- package/dist/esm/chunk-6F4ACCCZ.mjs.map +1 -0
- package/dist/esm/{chunk-4ADA5BE7.mjs → chunk-7B3VSBCX.mjs} +2 -2
- package/dist/esm/chunk-7IY2Y73Q.mjs +2 -0
- package/dist/esm/chunk-7IY2Y73Q.mjs.map +1 -0
- package/dist/esm/chunk-7QJYTQSU.mjs +2 -0
- package/dist/esm/chunk-7QJYTQSU.mjs.map +1 -0
- package/dist/esm/chunk-ALFESCPU.mjs +2 -0
- package/dist/esm/chunk-ALFESCPU.mjs.map +1 -0
- package/dist/esm/chunk-BA4TDBYB.mjs +2 -0
- package/dist/esm/chunk-BA4TDBYB.mjs.map +1 -0
- package/dist/esm/chunk-BDTDWLGO.mjs +2 -0
- package/dist/esm/chunk-BDTDWLGO.mjs.map +1 -0
- package/dist/esm/{chunk-UDBH4CER.mjs → chunk-BQSE5HHW.mjs} +7 -7
- package/dist/esm/chunk-BQSE5HHW.mjs.map +1 -0
- package/dist/esm/chunk-C3Y52GHM.mjs +2 -0
- package/dist/esm/chunk-C3Y52GHM.mjs.map +1 -0
- package/dist/esm/chunk-CBAVJ5EN.mjs +2 -0
- package/dist/esm/chunk-CBAVJ5EN.mjs.map +1 -0
- package/dist/esm/chunk-DBJTMCAG.mjs +2 -0
- package/dist/esm/chunk-DBJTMCAG.mjs.map +1 -0
- package/dist/esm/chunk-DYJVDOBH.mjs +2 -0
- package/dist/esm/chunk-DYJVDOBH.mjs.map +1 -0
- package/dist/esm/chunk-EHJEK7FU.mjs +2 -0
- package/dist/esm/chunk-ELWWME6B.mjs +2 -0
- package/dist/esm/chunk-ELWWME6B.mjs.map +1 -0
- package/dist/esm/chunk-EOC4UI5B.mjs +2 -0
- package/dist/esm/{chunk-KC64ESLO.mjs.map → chunk-EOC4UI5B.mjs.map} +1 -1
- package/dist/esm/{chunk-BPYLPPEQ.mjs → chunk-F2GFSFPW.mjs} +2 -2
- package/dist/esm/{chunk-U6SZNNVL.mjs → chunk-F52GIFKT.mjs} +2 -2
- package/dist/esm/{chunk-U6SZNNVL.mjs.map → chunk-F52GIFKT.mjs.map} +1 -1
- package/dist/esm/{chunk-KQXRH5FK.mjs → chunk-FGTQT7Q5.mjs} +2 -2
- package/dist/esm/chunk-GMOHGD73.mjs +2 -0
- package/dist/esm/chunk-GMOHGD73.mjs.map +1 -0
- package/dist/esm/{chunk-HO7K2UAK.mjs → chunk-GQI3HWOB.mjs} +2 -2
- package/dist/esm/{chunk-UAAI3NCA.mjs → chunk-HQ4DGB7L.mjs} +2 -2
- package/dist/esm/chunk-IHYTP2EW.mjs +1 -0
- package/dist/esm/chunk-IHYTP2EW.mjs.map +1 -0
- package/dist/esm/{chunk-HA6JD5R6.mjs → chunk-IU5JZNH4.mjs} +2 -2
- package/dist/esm/{chunk-HA6JD5R6.mjs.map → chunk-IU5JZNH4.mjs.map} +1 -1
- package/dist/esm/{chunk-TPWSHFFI.mjs → chunk-KR5JAN32.mjs} +2 -2
- package/dist/esm/{chunk-QWVR4RCV.mjs → chunk-KVJ2KGMW.mjs} +2 -2
- package/dist/esm/chunk-LBNMY7EM.mjs +2 -0
- package/dist/esm/chunk-LBNMY7EM.mjs.map +1 -0
- package/dist/esm/chunk-MNFGMNYS.mjs +2 -0
- package/dist/esm/chunk-MNFGMNYS.mjs.map +1 -0
- package/dist/esm/{chunk-IBH7IOIM.mjs → chunk-N25GOEVL.mjs} +2 -2
- package/dist/esm/chunk-NBSXZKMQ.mjs +2 -0
- package/dist/esm/chunk-NBSXZKMQ.mjs.map +1 -0
- package/dist/esm/chunk-NFGAZSSK.mjs +2 -0
- package/dist/esm/{chunk-ND3ZQKTT.mjs.map → chunk-NFGAZSSK.mjs.map} +1 -1
- package/dist/esm/chunk-NL72WE3E.mjs +2 -0
- package/dist/esm/{chunk-TIH6ARYP.mjs.map → chunk-NL72WE3E.mjs.map} +1 -1
- package/dist/esm/{chunk-EWTHPMEE.mjs → chunk-NLONZHYT.mjs} +2 -2
- package/dist/esm/{chunk-44MGBJ73.mjs → chunk-NMFS5KAE.mjs} +2 -2
- package/dist/esm/{chunk-4KTQIWUP.mjs → chunk-NZ36UN4C.mjs} +2 -2
- package/dist/esm/{chunk-YYRDFZE6.mjs → chunk-OWP2MKTX.mjs} +2 -2
- package/dist/esm/{chunk-YYRDFZE6.mjs.map → chunk-OWP2MKTX.mjs.map} +1 -1
- package/dist/esm/{chunk-WL4OXZLN.mjs → chunk-OXO3Z2MF.mjs} +2 -2
- package/dist/esm/{chunk-S36IYY6K.mjs → chunk-PANYJULW.mjs} +2 -2
- package/dist/esm/{chunk-DRPMIJH7.mjs → chunk-PEBXSNMJ.mjs} +2 -2
- package/dist/esm/chunk-PLY7MQKE.mjs +2 -0
- package/dist/esm/chunk-PLY7MQKE.mjs.map +1 -0
- package/dist/esm/chunk-PRKZ2KJ4.mjs +2 -0
- package/dist/esm/{chunk-R3KWVOFG.mjs.map → chunk-PRKZ2KJ4.mjs.map} +1 -1
- package/dist/esm/{chunk-GAI75GOG.mjs → chunk-PZ5JKQSP.mjs} +2 -2
- package/dist/esm/chunk-Q3R3KKKP.mjs +2 -0
- package/dist/esm/chunk-Q3R3KKKP.mjs.map +1 -0
- package/dist/esm/chunk-RCYWJZR4.mjs +2 -0
- package/dist/esm/chunk-RCYWJZR4.mjs.map +1 -0
- package/dist/esm/chunk-TNUGIBLO.mjs +2 -0
- package/dist/esm/chunk-TNUGIBLO.mjs.map +1 -0
- package/dist/esm/{chunk-3732I6BR.mjs → chunk-TTICPGX6.mjs} +2 -2
- package/dist/esm/chunk-U6Z4FNB7.mjs +2 -0
- package/dist/esm/chunk-U6Z4FNB7.mjs.map +1 -0
- package/dist/esm/{chunk-GTC7WHMV.mjs → chunk-UDMADMVO.mjs} +1 -1
- package/dist/esm/{chunk-GTC7WHMV.mjs.map → chunk-UDMADMVO.mjs.map} +1 -1
- package/dist/esm/chunk-UES76WF2.mjs +2 -0
- package/dist/esm/chunk-UES76WF2.mjs.map +1 -0
- package/dist/esm/chunk-UIVJXLRM.mjs +1 -0
- package/dist/esm/chunk-UIVJXLRM.mjs.map +1 -0
- package/dist/esm/chunk-UR5E2UDO.mjs +2 -0
- package/dist/esm/chunk-UR5E2UDO.mjs.map +1 -0
- package/dist/esm/{chunk-X32O46IB.mjs → chunk-VMCFN5CT.mjs} +2 -2
- package/dist/esm/{chunk-5LO7FR2P.mjs → chunk-W44E6YAW.mjs} +2 -2
- package/dist/esm/chunk-W4JEP5GW.mjs +2 -0
- package/dist/esm/{chunk-FYIFBLHU.mjs.map → chunk-W4JEP5GW.mjs.map} +1 -1
- package/dist/esm/chunk-WXISFVRU.mjs +2 -0
- package/dist/esm/chunk-WXISFVRU.mjs.map +1 -0
- package/dist/esm/chunk-X7QBDRQR.mjs +2 -0
- package/dist/esm/chunk-X7QBDRQR.mjs.map +1 -0
- package/dist/esm/chunk-XKINEFAA.mjs +2 -0
- package/dist/esm/chunk-XKINEFAA.mjs.map +1 -0
- package/dist/esm/chunk-Y5RQOXZH.mjs +2 -0
- package/dist/esm/chunk-Y5RQOXZH.mjs.map +1 -0
- package/dist/esm/chunk-ZKFDLJ2F.mjs +2 -0
- package/dist/esm/chunk-ZKFDLJ2F.mjs.map +1 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +9 -9
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/anyPublicKey.d.mts +5 -0
- package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
- package/dist/esm/core/crypto/anySignature.mjs +1 -1
- package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +3 -0
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +2 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +2 -0
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +3 -0
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +2 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +11 -8
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +20 -33
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +7 -10
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +4 -3
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +19 -20
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +5 -12
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +5 -5
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +39 -14
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +9 -5
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +5 -7
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +12 -4
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +24 -5
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +5 -0
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +1 -0
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +1 -0
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +4 -3
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +1 -0
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -0
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +89 -0
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +2 -0
- package/dist/esm/transactions/management/accountSequenceNumber.mjs.map +1 -0
- package/dist/esm/transactions/management/asyncQueue.d.mts +58 -0
- package/dist/esm/transactions/management/asyncQueue.mjs +2 -0
- package/dist/esm/transactions/management/asyncQueue.mjs.map +1 -0
- package/dist/esm/transactions/management/index.d.mts +36 -0
- package/dist/esm/transactions/management/index.mjs +2 -0
- package/dist/esm/transactions/management/index.mjs.map +1 -0
- package/dist/esm/transactions/management/transactionWorker.d.mts +135 -0
- package/dist/esm/transactions/management/transactionWorker.mjs +2 -0
- package/dist/esm/transactions/management/transactionWorker.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +4 -3
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +3 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +3 -2
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +3 -2
- package/dist/esm/types/generated/operations.d.mts +3 -3
- package/dist/esm/types/generated/queries.d.mts +3 -3
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/index.d.mts +27 -9
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/utils/const.d.mts +18 -1
- 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 +1 -1
- package/src/api/account.ts +150 -53
- package/src/api/ans.ts +19 -22
- package/src/api/aptosConfig.ts +2 -2
- package/src/api/coin.ts +2 -6
- package/src/api/digitalAsset.ts +98 -23
- package/src/api/event.ts +28 -17
- package/src/api/faucet.ts +12 -9
- package/src/api/fungibleAsset.ts +76 -35
- package/src/api/general.ts +19 -3
- package/src/api/staking.ts +30 -11
- package/src/api/transaction.ts +16 -1
- package/src/api/transactionSubmission.ts +43 -1
- package/src/api/utils.ts +37 -0
- package/src/bcs/deserializer.ts +4 -4
- package/src/bcs/serializer.ts +4 -4
- package/src/client/core.ts +6 -4
- package/src/client/get.ts +7 -6
- package/src/core/accountAddress.ts +20 -22
- package/src/core/crypto/anyPublicKey.ts +12 -0
- package/src/core/crypto/ed25519.ts +13 -0
- package/src/core/crypto/index.ts +2 -0
- package/src/core/crypto/secp256k1.ts +12 -0
- package/src/core/hex.ts +5 -7
- package/src/index.ts +1 -0
- package/src/internal/account.ts +56 -50
- package/src/internal/ans.ts +52 -39
- package/src/internal/coin.ts +4 -6
- package/src/internal/digitalAsset.ts +36 -22
- package/src/internal/event.ts +7 -14
- package/src/internal/faucet.ts +10 -6
- package/src/internal/fungibleAsset.ts +36 -18
- package/src/internal/general.ts +30 -3
- package/src/internal/queries/getNumberOfDelegatorsQuery.graphql +5 -5
- package/src/internal/queries/getProcessorStatus.graphql +2 -2
- package/src/internal/staking.ts +12 -14
- package/src/internal/transaction.ts +23 -26
- package/src/internal/transactionSubmission.ts +35 -5
- package/src/transactions/authenticator/account.ts +16 -0
- package/src/transactions/instances/moduleId.ts +1 -1
- package/src/transactions/management/accountSequenceNumber.ts +186 -0
- package/src/transactions/management/asyncQueue.ts +107 -0
- package/src/transactions/management/index.ts +2 -0
- package/src/transactions/management/transactionWorker.ts +275 -0
- package/src/transactions/transactionBuilder/helpers.ts +28 -1
- package/src/transactions/transactionBuilder/remoteAbi.ts +47 -32
- package/src/transactions/transactionBuilder/transactionBuilder.ts +28 -26
- package/src/transactions/typeTag/index.ts +1 -0
- package/src/transactions/typeTag/parser.ts +1 -1
- package/src/transactions/types.ts +2 -2
- package/src/types/generated/operations.ts +4 -2
- package/src/types/generated/queries.ts +4 -4
- package/src/types/index.ts +67 -11
- package/src/utils/const.ts +18 -0
- package/src/version.ts +1 -1
- package/dist/esm/chunk-2OZRBXLM.mjs +0 -2
- package/dist/esm/chunk-2OZRBXLM.mjs.map +0 -1
- package/dist/esm/chunk-33T7WTB6.mjs +0 -2
- package/dist/esm/chunk-33T7WTB6.mjs.map +0 -1
- package/dist/esm/chunk-62SCW5NH.mjs +0 -2
- package/dist/esm/chunk-62SCW5NH.mjs.map +0 -1
- package/dist/esm/chunk-67OGU66P.mjs +0 -2
- package/dist/esm/chunk-67OGU66P.mjs.map +0 -1
- package/dist/esm/chunk-72F5YXGC.mjs.map +0 -1
- package/dist/esm/chunk-ARVSIDVB.mjs.map +0 -1
- package/dist/esm/chunk-BFQRMCY2.mjs +0 -2
- package/dist/esm/chunk-BFQRMCY2.mjs.map +0 -1
- package/dist/esm/chunk-BM4HBROC.mjs +0 -2
- package/dist/esm/chunk-BM4HBROC.mjs.map +0 -1
- package/dist/esm/chunk-BV4OOU5Y.mjs +0 -2
- package/dist/esm/chunk-BV4OOU5Y.mjs.map +0 -1
- package/dist/esm/chunk-EFIYW4WK.mjs +0 -2
- package/dist/esm/chunk-FYIFBLHU.mjs +0 -2
- package/dist/esm/chunk-GU4OUKAF.mjs +0 -2
- package/dist/esm/chunk-GU4OUKAF.mjs.map +0 -1
- package/dist/esm/chunk-J5BH7V37.mjs +0 -2
- package/dist/esm/chunk-J5BH7V37.mjs.map +0 -1
- package/dist/esm/chunk-KC64ESLO.mjs +0 -2
- package/dist/esm/chunk-L7AA75WZ.mjs +0 -2
- package/dist/esm/chunk-L7AA75WZ.mjs.map +0 -1
- package/dist/esm/chunk-LACQ537H.mjs +0 -2
- package/dist/esm/chunk-LACQ537H.mjs.map +0 -1
- package/dist/esm/chunk-LDAD54H5.mjs +0 -2
- package/dist/esm/chunk-LDAD54H5.mjs.map +0 -1
- package/dist/esm/chunk-LXW3A3MJ.mjs +0 -2
- package/dist/esm/chunk-LXW3A3MJ.mjs.map +0 -1
- package/dist/esm/chunk-M2V2POWK.mjs +0 -2
- package/dist/esm/chunk-M2V2POWK.mjs.map +0 -1
- package/dist/esm/chunk-ND3ZQKTT.mjs +0 -2
- package/dist/esm/chunk-NZIJV4O2.mjs +0 -2
- package/dist/esm/chunk-NZIJV4O2.mjs.map +0 -1
- package/dist/esm/chunk-O2B54NZT.mjs +0 -2
- package/dist/esm/chunk-O2B54NZT.mjs.map +0 -1
- package/dist/esm/chunk-OCW2L33Q.mjs +0 -2
- package/dist/esm/chunk-OCW2L33Q.mjs.map +0 -1
- package/dist/esm/chunk-OCYS4V2V.mjs +0 -2
- package/dist/esm/chunk-OCYS4V2V.mjs.map +0 -1
- package/dist/esm/chunk-OSTH5JRX.mjs +0 -2
- package/dist/esm/chunk-OSTH5JRX.mjs.map +0 -1
- package/dist/esm/chunk-OVHY6ZUJ.mjs +0 -2
- package/dist/esm/chunk-OVHY6ZUJ.mjs.map +0 -1
- package/dist/esm/chunk-PZCMSHY6.mjs +0 -2
- package/dist/esm/chunk-PZCMSHY6.mjs.map +0 -1
- package/dist/esm/chunk-R3KWVOFG.mjs +0 -2
- package/dist/esm/chunk-RHS5ROLP.mjs +0 -2
- package/dist/esm/chunk-RHS5ROLP.mjs.map +0 -1
- package/dist/esm/chunk-RKKU2SY5.mjs +0 -2
- package/dist/esm/chunk-RKKU2SY5.mjs.map +0 -1
- package/dist/esm/chunk-RYETO74W.mjs +0 -2
- package/dist/esm/chunk-RYETO74W.mjs.map +0 -1
- package/dist/esm/chunk-TCTZCPQ6.mjs +0 -1
- package/dist/esm/chunk-TGKB6ALT.mjs +0 -2
- package/dist/esm/chunk-TGKB6ALT.mjs.map +0 -1
- package/dist/esm/chunk-TIH6ARYP.mjs +0 -2
- package/dist/esm/chunk-UDBH4CER.mjs.map +0 -1
- package/dist/esm/chunk-VWVEDCBM.mjs +0 -2
- package/dist/esm/chunk-VWVEDCBM.mjs.map +0 -1
- package/dist/esm/chunk-WEJAI26R.mjs +0 -2
- package/dist/esm/chunk-WEJAI26R.mjs.map +0 -1
- package/dist/esm/chunk-Y2HRRUZ6.mjs +0 -2
- package/dist/esm/chunk-Y2HRRUZ6.mjs.map +0 -1
- package/dist/esm/chunk-Y7VR7X5W.mjs +0 -2
- package/dist/esm/chunk-Y7VR7X5W.mjs.map +0 -1
- package/dist/esm/chunk-ZLW65YCO.mjs +0 -2
- package/dist/esm/chunk-ZLW65YCO.mjs.map +0 -1
- package/dist/esm/chunk-ZUHN56GM.mjs.map +0 -1
- /package/dist/esm/{chunk-TCTZCPQ6.mjs.map → api/utils.mjs.map} +0 -0
- /package/dist/esm/{chunk-JZNLZMUC.mjs.map → chunk-3QS3MFWJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-U25N2VWA.mjs.map → chunk-4K252UDE.mjs.map} +0 -0
- /package/dist/esm/{chunk-3VZ3OZKC.mjs.map → chunk-4XQ5IV6C.mjs.map} +0 -0
- /package/dist/esm/{chunk-HVADSXTB.mjs.map → chunk-6DYNAFAP.mjs.map} +0 -0
- /package/dist/esm/{chunk-4ADA5BE7.mjs.map → chunk-7B3VSBCX.mjs.map} +0 -0
- /package/dist/esm/{chunk-EFIYW4WK.mjs.map → chunk-EHJEK7FU.mjs.map} +0 -0
- /package/dist/esm/{chunk-BPYLPPEQ.mjs.map → chunk-F2GFSFPW.mjs.map} +0 -0
- /package/dist/esm/{chunk-KQXRH5FK.mjs.map → chunk-FGTQT7Q5.mjs.map} +0 -0
- /package/dist/esm/{chunk-HO7K2UAK.mjs.map → chunk-GQI3HWOB.mjs.map} +0 -0
- /package/dist/esm/{chunk-UAAI3NCA.mjs.map → chunk-HQ4DGB7L.mjs.map} +0 -0
- /package/dist/esm/{chunk-TPWSHFFI.mjs.map → chunk-KR5JAN32.mjs.map} +0 -0
- /package/dist/esm/{chunk-QWVR4RCV.mjs.map → chunk-KVJ2KGMW.mjs.map} +0 -0
- /package/dist/esm/{chunk-IBH7IOIM.mjs.map → chunk-N25GOEVL.mjs.map} +0 -0
- /package/dist/esm/{chunk-EWTHPMEE.mjs.map → chunk-NLONZHYT.mjs.map} +0 -0
- /package/dist/esm/{chunk-44MGBJ73.mjs.map → chunk-NMFS5KAE.mjs.map} +0 -0
- /package/dist/esm/{chunk-4KTQIWUP.mjs.map → chunk-NZ36UN4C.mjs.map} +0 -0
- /package/dist/esm/{chunk-WL4OXZLN.mjs.map → chunk-OXO3Z2MF.mjs.map} +0 -0
- /package/dist/esm/{chunk-S36IYY6K.mjs.map → chunk-PANYJULW.mjs.map} +0 -0
- /package/dist/esm/{chunk-DRPMIJH7.mjs.map → chunk-PEBXSNMJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-GAI75GOG.mjs.map → chunk-PZ5JKQSP.mjs.map} +0 -0
- /package/dist/esm/{chunk-3732I6BR.mjs.map → chunk-TTICPGX6.mjs.map} +0 -0
- /package/dist/esm/{chunk-X32O46IB.mjs.map → chunk-VMCFN5CT.mjs.map} +0 -0
- /package/dist/esm/{chunk-5LO7FR2P.mjs.map → chunk-W44E6YAW.mjs.map} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
1
|
import { Account as Account$1 } from '../core/account.mjs';
|
|
3
2
|
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs';
|
|
4
3
|
import { PrivateKey } from '../core/crypto/asymmetricCrypto.mjs';
|
|
5
|
-
import { AccountData, PaginationArgs,
|
|
6
|
-
import {
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
4
|
+
import { AccountData, PaginationArgs, LedgerVersionArg, MoveModuleBytecode, TransactionResponse, MoveResource, MoveStructId, AnyNumber, TokenStandardArg, OrderByArg, WhereArg } from '../types/index.mjs';
|
|
5
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
6
|
+
import { CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.mjs';
|
|
7
|
+
import { GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetAccountOwnedObjectsResponse } from '../types/indexer.mjs';
|
|
9
8
|
import '../core/authenticationKey.mjs';
|
|
10
9
|
import '../core/hex.mjs';
|
|
11
10
|
import '../core/common.mjs';
|
|
12
11
|
import '../bcs/serializer.mjs';
|
|
13
12
|
import '../bcs/deserializer.mjs';
|
|
14
13
|
import '../transactions/instances/transactionArgument.mjs';
|
|
14
|
+
import '../utils/apiEndpoints.mjs';
|
|
15
|
+
import '../utils/const.mjs';
|
|
15
16
|
import '../types/generated/operations.mjs';
|
|
16
|
-
import '../types/generated/types.mjs';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* A class to query all `Account` related queries on Aptos.
|
|
@@ -54,7 +54,7 @@ declare class Account {
|
|
|
54
54
|
*/
|
|
55
55
|
getAccountModules(args: {
|
|
56
56
|
accountAddress: AccountAddressInput;
|
|
57
|
-
options?: PaginationArgs &
|
|
57
|
+
options?: PaginationArgs & LedgerVersionArg;
|
|
58
58
|
}): Promise<MoveModuleBytecode[]>;
|
|
59
59
|
/**
|
|
60
60
|
* Queries for a specific account module given account address and module name
|
|
@@ -76,7 +76,7 @@ declare class Account {
|
|
|
76
76
|
getAccountModule(args: {
|
|
77
77
|
accountAddress: AccountAddressInput;
|
|
78
78
|
moduleName: string;
|
|
79
|
-
options?:
|
|
79
|
+
options?: LedgerVersionArg;
|
|
80
80
|
}): Promise<MoveModuleBytecode>;
|
|
81
81
|
/**
|
|
82
82
|
* Queries account transactions given an account address
|
|
@@ -108,7 +108,7 @@ declare class Account {
|
|
|
108
108
|
*/
|
|
109
109
|
getAccountResources(args: {
|
|
110
110
|
accountAddress: AccountAddressInput;
|
|
111
|
-
options?: PaginationArgs &
|
|
111
|
+
options?: PaginationArgs & LedgerVersionArg;
|
|
112
112
|
}): Promise<MoveResource[]>;
|
|
113
113
|
/**
|
|
114
114
|
* Queries a specific account resource given account address and resource type. Note that the default is `any` in order
|
|
@@ -124,14 +124,14 @@ declare class Account {
|
|
|
124
124
|
* @example An example of an account resource
|
|
125
125
|
* ```
|
|
126
126
|
* {
|
|
127
|
-
*
|
|
127
|
+
* value: 6
|
|
128
128
|
* }
|
|
129
129
|
* ```
|
|
130
130
|
*/
|
|
131
131
|
getAccountResource<T extends {} = any>(args: {
|
|
132
132
|
accountAddress: AccountAddressInput;
|
|
133
133
|
resourceType: MoveStructId;
|
|
134
|
-
options?:
|
|
134
|
+
options?: LedgerVersionArg;
|
|
135
135
|
}): Promise<T>;
|
|
136
136
|
/**
|
|
137
137
|
* Looks up the account address for a given authentication key
|
|
@@ -139,21 +139,25 @@ declare class Account {
|
|
|
139
139
|
* This handles both if the account's authentication key has been rotated or not.
|
|
140
140
|
*
|
|
141
141
|
* @param args.authenticationKey The authentication key
|
|
142
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
142
143
|
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
143
144
|
* @returns Promise<AccountAddress> The accountAddress associated with the authentication key
|
|
144
145
|
*/
|
|
145
146
|
lookupOriginalAccountAddress(args: {
|
|
146
147
|
authenticationKey: AccountAddressInput;
|
|
147
|
-
|
|
148
|
+
minimumLedgerVersion?: AnyNumber;
|
|
149
|
+
options?: LedgerVersionArg;
|
|
148
150
|
}): Promise<AccountAddress>;
|
|
149
151
|
/**
|
|
150
152
|
* Queries the current count of tokens owned by an account
|
|
151
153
|
*
|
|
152
154
|
* @param args.accountAddress The account address
|
|
155
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
153
156
|
* @returns Current count of tokens owned by the account
|
|
154
157
|
*/
|
|
155
158
|
getAccountTokensCount(args: {
|
|
156
159
|
accountAddress: AccountAddressInput;
|
|
160
|
+
minimumLedgerVersion?: AnyNumber;
|
|
157
161
|
}): Promise<number>;
|
|
158
162
|
/**
|
|
159
163
|
* Queries the account's current owned tokens.
|
|
@@ -162,19 +166,17 @@ declare class Account {
|
|
|
162
166
|
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
163
167
|
*
|
|
164
168
|
* @param args.accountAddress The account address we want to get the tokens for
|
|
169
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
165
170
|
* @param args.options.tokenStandard The NFT standard to query for
|
|
166
|
-
* @param args.options.
|
|
167
|
-
* @param args.options.
|
|
171
|
+
* @param args.options.offset The number token to start returning results from
|
|
172
|
+
* @param args.options.limit The number of results to return
|
|
168
173
|
* @param args.options.orderBy The order to sort the tokens by
|
|
169
174
|
* @returns Tokens array with the token data
|
|
170
175
|
*/
|
|
171
176
|
getAccountOwnedTokens(args: {
|
|
172
177
|
accountAddress: AccountAddressInput;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
pagination?: PaginationArgs;
|
|
176
|
-
orderBy?: OrderBy<GetAccountOwnedTokensQueryResponse[0]>;
|
|
177
|
-
};
|
|
178
|
+
minimumLedgerVersion?: AnyNumber;
|
|
179
|
+
options?: TokenStandardArg & PaginationArgs & OrderByArg<GetAccountOwnedTokensQueryResponse[0]>;
|
|
178
180
|
}): Promise<GetAccountOwnedTokensQueryResponse>;
|
|
179
181
|
/**
|
|
180
182
|
* Queries all current tokens of a specific collection that an account owns by the collection address
|
|
@@ -184,20 +186,18 @@ declare class Account {
|
|
|
184
186
|
*
|
|
185
187
|
* @param args.accountAddress The account address we want to get the tokens for
|
|
186
188
|
* @param args.collectionAddress The address of the collection being queried
|
|
189
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
187
190
|
* @param args.options.tokenStandard The NFT standard to query for
|
|
188
|
-
* @param args.options.
|
|
189
|
-
* @param args.options.
|
|
191
|
+
* @param args.options.offset The number token to start returning results from
|
|
192
|
+
* @param args.options.limit The number of results to return
|
|
190
193
|
* @param args.options.orderBy The order to sort the tokens by
|
|
191
194
|
* @returns Tokens array with the token data
|
|
192
195
|
*/
|
|
193
196
|
getAccountOwnedTokensFromCollectionAddress(args: {
|
|
194
197
|
accountAddress: AccountAddressInput;
|
|
195
198
|
collectionAddress: AccountAddressInput;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
pagination?: PaginationArgs;
|
|
199
|
-
orderBy?: OrderBy<GetAccountOwnedTokensFromCollectionResponse[0]>;
|
|
200
|
-
};
|
|
199
|
+
minimumLedgerVersion?: AnyNumber;
|
|
200
|
+
options?: TokenStandardArg & PaginationArgs & OrderByArg<GetAccountOwnedTokensFromCollectionResponse[0]>;
|
|
201
201
|
}): Promise<GetAccountOwnedTokensFromCollectionResponse>;
|
|
202
202
|
/**
|
|
203
203
|
* Queries for all collections that an account currently has tokens for.
|
|
@@ -206,69 +206,94 @@ declare class Account {
|
|
|
206
206
|
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
207
207
|
*
|
|
208
208
|
* @param args.accountAddress The account address we want to get the collections for
|
|
209
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
209
210
|
* @param args.options.tokenStandard The NFT standard to query for
|
|
210
|
-
* @param args.options.
|
|
211
|
-
* @param args.options.
|
|
211
|
+
* @param args.options.offset The number collection to start returning results from
|
|
212
|
+
* @param args.options.limit The number of results to return
|
|
212
213
|
* @param args.options.orderBy The order to sort the tokens by
|
|
213
214
|
* @returns Collections array with the collections data
|
|
214
215
|
*/
|
|
215
216
|
getAccountCollectionsWithOwnedTokens(args: {
|
|
216
217
|
accountAddress: AccountAddressInput;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
pagination?: PaginationArgs;
|
|
220
|
-
orderBy?: OrderBy<GetAccountCollectionsWithOwnedTokenResponse[0]>;
|
|
221
|
-
};
|
|
218
|
+
minimumLedgerVersion?: AnyNumber;
|
|
219
|
+
options?: TokenStandardArg & PaginationArgs & OrderByArg<GetAccountCollectionsWithOwnedTokenResponse[0]>;
|
|
222
220
|
}): Promise<GetAccountCollectionsWithOwnedTokenResponse>;
|
|
223
221
|
/**
|
|
224
222
|
* Queries the current count of transactions submitted by an account
|
|
225
223
|
*
|
|
226
224
|
* @param args.accountAddress The account address we want to get the total count for
|
|
225
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
227
226
|
* @returns Current count of transactions made by an account
|
|
228
227
|
*/
|
|
229
228
|
getAccountTransactionsCount(args: {
|
|
230
229
|
accountAddress: AccountAddressInput;
|
|
230
|
+
minimumLedgerVersion?: AnyNumber;
|
|
231
231
|
}): Promise<number>;
|
|
232
232
|
/**
|
|
233
233
|
* Queries an account's coins data
|
|
234
234
|
*
|
|
235
235
|
* @param args.accountAddress The account address we want to get the coins data for
|
|
236
|
-
* @param args.
|
|
237
|
-
* @param args.options.
|
|
238
|
-
* @param args.options.
|
|
236
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
237
|
+
* @param args.options.offset optional. The number coin to start returning results from
|
|
238
|
+
* @param args.options.limit optional. The number of results to return
|
|
239
|
+
* @param args.options.orderBy optional. The order to sort the coins by
|
|
240
|
+
* @param args.options.where optional. Filter the results by
|
|
239
241
|
* @returns Array with the coins data
|
|
240
242
|
*/
|
|
241
243
|
getAccountCoinsData(args: {
|
|
242
244
|
accountAddress: AccountAddressInput;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
orderBy?: OrderBy<GetAccountCoinsDataResponse[0]>;
|
|
246
|
-
};
|
|
245
|
+
minimumLedgerVersion?: AnyNumber;
|
|
246
|
+
options?: PaginationArgs & OrderByArg<GetAccountCoinsDataResponse[0]> & WhereArg<CurrentFungibleAssetBalancesBoolExp>;
|
|
247
247
|
}): Promise<GetAccountCoinsDataResponse>;
|
|
248
248
|
/**
|
|
249
249
|
* Queries the current count of an account's coins aggregated
|
|
250
250
|
*
|
|
251
251
|
* @param args.accountAddress The account address we want to get the total count for
|
|
252
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
252
253
|
* @returns Current count of the aggregated count of all account's coins
|
|
253
254
|
*/
|
|
254
255
|
getAccountCoinsCount(args: {
|
|
255
256
|
accountAddress: AccountAddressInput;
|
|
257
|
+
minimumLedgerVersion?: AnyNumber;
|
|
258
|
+
}): Promise<number>;
|
|
259
|
+
/**
|
|
260
|
+
* Queries the account's APT amount
|
|
261
|
+
*
|
|
262
|
+
* @param args.accountAddress The account address we want to get the total count for
|
|
263
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
264
|
+
* @returns Current amount of account's APT
|
|
265
|
+
*/
|
|
266
|
+
getAccountAPTAmount(args: {
|
|
267
|
+
accountAddress: AccountAddressInput;
|
|
268
|
+
minimumLedgerVersion?: AnyNumber;
|
|
269
|
+
}): Promise<number>;
|
|
270
|
+
/**
|
|
271
|
+
* Queries the account's coin amount by the coin type
|
|
272
|
+
*
|
|
273
|
+
* @param args.accountAddress The account address we want to get the total count for
|
|
274
|
+
* @param args.coinType The coin type to query
|
|
275
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
276
|
+
* @returns Current amount of account's coin
|
|
277
|
+
*/
|
|
278
|
+
getAccountCoinAmount(args: {
|
|
279
|
+
accountAddress: AccountAddressInput;
|
|
280
|
+
coinType: MoveStructId;
|
|
281
|
+
minimumLedgerVersion?: AnyNumber;
|
|
256
282
|
}): Promise<number>;
|
|
257
283
|
/**
|
|
258
284
|
* Queries an account's owned objects
|
|
259
285
|
*
|
|
260
286
|
* @param args.accountAddress The account address we want to get the objects for
|
|
261
|
-
* @param args.
|
|
262
|
-
* @param args.options.
|
|
263
|
-
* @param args.options.
|
|
287
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
288
|
+
* @param args.options.offset The starting position to start returning results from
|
|
289
|
+
* @param args.options.limit The number of results to return
|
|
290
|
+
* @param args.options.orderBy The order to sort the objects by
|
|
264
291
|
* @returns Objects array with the object data
|
|
265
292
|
*/
|
|
266
293
|
getAccountOwnedObjects(args: {
|
|
267
294
|
accountAddress: AccountAddressInput;
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
orderBy?: OrderBy<GetAccountOwnedObjectsResponse[0]>;
|
|
271
|
-
};
|
|
295
|
+
minimumLedgerVersion?: AnyNumber;
|
|
296
|
+
options?: PaginationArgs & OrderByArg<GetAccountOwnedObjectsResponse[0]>;
|
|
272
297
|
}): Promise<GetAccountOwnedObjectsResponse>;
|
|
273
298
|
/**
|
|
274
299
|
* Derives an account by providing a private key.
|
package/dist/esm/api/account.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-Q3R3KKKP.mjs";import"../chunk-LBNMY7EM.mjs";import"../chunk-Y5RQOXZH.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Account};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
package/dist/esm/api/ans.d.mts
CHANGED
|
@@ -27,6 +27,7 @@ import '../transactions/authenticator/account.mjs';
|
|
|
27
27
|
import '../core/crypto/anyPublicKey.mjs';
|
|
28
28
|
import '../core/crypto/anySignature.mjs';
|
|
29
29
|
import '../core/crypto/ed25519.mjs';
|
|
30
|
+
import '../core/crypto/secp256k1.mjs';
|
|
30
31
|
import '../core/crypto/multiEd25519.mjs';
|
|
31
32
|
import '../core/crypto/multiKey.mjs';
|
|
32
33
|
import '../utils/const.mjs';
|
|
@@ -65,7 +66,7 @@ declare class ANS {
|
|
|
65
66
|
*
|
|
66
67
|
* @param args.name - A string of the name to retrieve
|
|
67
68
|
*
|
|
68
|
-
* @returns number as a unix timestamp in
|
|
69
|
+
* @returns number as a unix timestamp in milliseconds.
|
|
69
70
|
*/
|
|
70
71
|
getExpiration(args: {
|
|
71
72
|
name: string;
|
|
@@ -93,9 +94,9 @@ declare class ANS {
|
|
|
93
94
|
* point to addresses that are not the owner of the name
|
|
94
95
|
*
|
|
95
96
|
* ```ts
|
|
96
|
-
* await aptos.setTargetAddress({sender: alice, name: "test.aptos", address: bob.accountAddress
|
|
97
|
+
* await aptos.setTargetAddress({sender: alice, name: "test.aptos", address: bob.accountAddress})
|
|
97
98
|
* const address = await aptos.getTargetAddress({name: "test.aptos"})
|
|
98
|
-
* // address = bob.accountAddress
|
|
99
|
+
* // address = bob.accountAddress
|
|
99
100
|
* ```
|
|
100
101
|
*
|
|
101
102
|
* @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
|
|
@@ -115,7 +116,7 @@ declare class ANS {
|
|
|
115
116
|
* account also may not have a primary name.
|
|
116
117
|
*
|
|
117
118
|
* ```ts
|
|
118
|
-
* const name = await aptos.getPrimaryName({address: alice.accountAddress
|
|
119
|
+
* const name = await aptos.getPrimaryName({address: alice.accountAddress})
|
|
119
120
|
* // name = test.aptos
|
|
120
121
|
* ```
|
|
121
122
|
*
|
|
@@ -133,7 +134,7 @@ declare class ANS {
|
|
|
133
134
|
*
|
|
134
135
|
* ```ts
|
|
135
136
|
* await aptos.setPrimaryName({sender: alice, name: "test.aptos"})
|
|
136
|
-
* const primaryName = await aptos.getPrimaryName({address: alice.accountAddress
|
|
137
|
+
* const primaryName = await aptos.getPrimaryName({address: alice.accountAddress})
|
|
137
138
|
* // primaryName = test.aptos
|
|
138
139
|
* ```
|
|
139
140
|
*
|
|
@@ -144,7 +145,7 @@ declare class ANS {
|
|
|
144
145
|
*/
|
|
145
146
|
setPrimaryName(args: {
|
|
146
147
|
sender: Account;
|
|
147
|
-
name
|
|
148
|
+
name?: string;
|
|
148
149
|
options?: InputGenerateTransactionOptions;
|
|
149
150
|
}): Promise<SingleSignerTransaction>;
|
|
150
151
|
/**
|
|
@@ -158,7 +159,7 @@ declare class ANS {
|
|
|
158
159
|
* name: "test.aptos.apt",
|
|
159
160
|
* expiration: {
|
|
160
161
|
* policy: "subdomain:independent",
|
|
161
|
-
* expirationDate:
|
|
162
|
+
* expirationDate: Date.now() + 30 * 24 * 60 * 60 * 1000,
|
|
162
163
|
* },
|
|
163
164
|
* });
|
|
164
165
|
* ```
|
|
@@ -171,8 +172,9 @@ declare class ANS {
|
|
|
171
172
|
* - domain: Years is required and the name will expire after the given number of years.
|
|
172
173
|
* - subdomain:follow-domain: The name will expire at the same time as the domain name.
|
|
173
174
|
* - subdomain:independent: The name will expire at the given date.
|
|
174
|
-
* @param args.expiration.expirationDate -
|
|
175
|
-
* the
|
|
175
|
+
* @param args.expiration.expirationDate - An epoch number in milliseconds of
|
|
176
|
+
* the date when the subdomain will expire. Only applicable when the policy is
|
|
177
|
+
* set to 'subdomain:independent'.
|
|
176
178
|
* @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.
|
|
177
179
|
* @param args.targetAddress optional - The address the domain name will resolve to. If not provided,
|
|
178
180
|
* the sender's address will be used.
|
|
@@ -221,8 +223,8 @@ declare class ANS {
|
|
|
221
223
|
*
|
|
222
224
|
* @param args
|
|
223
225
|
* @param args.accountAddress - A AccountAddressInput of the address to retrieve names for.
|
|
224
|
-
* @param args.options.
|
|
225
|
-
* @param args.options.
|
|
226
|
+
* @param args.options.offset - Optional, the offset to start from when fetching names
|
|
227
|
+
* @param args.options.limit - Optional, A number of the names to fetch per request
|
|
226
228
|
* @param args.options.orderBy - The order to sort the names by
|
|
227
229
|
* @param args.options.where - Additional filters to apply to the query
|
|
228
230
|
*
|
|
@@ -234,8 +236,8 @@ declare class ANS {
|
|
|
234
236
|
*
|
|
235
237
|
* @param args
|
|
236
238
|
* @param args.accountAddress - A AccountAddressInput of the address to retrieve domain names for.
|
|
237
|
-
* @param args.options.
|
|
238
|
-
* @param args.options.
|
|
239
|
+
* @param args.options.offset - Optional, the offset to start from when fetching names
|
|
240
|
+
* @param args.options.limit - Optional, A number of the names to fetch per request
|
|
239
241
|
* @param args.options.orderBy - The order to sort the names by
|
|
240
242
|
* @param args.options.where - Additional filters to apply to the query
|
|
241
243
|
*
|
|
@@ -247,8 +249,8 @@ declare class ANS {
|
|
|
247
249
|
*
|
|
248
250
|
* @param args
|
|
249
251
|
* @param args.accountAddress - A AccountAddressInput of the address to retrieve subdomains names for.
|
|
250
|
-
* @param args.options.
|
|
251
|
-
* @param args.options.
|
|
252
|
+
* @param args.options.offset - Optional, the offset to start from when fetching names
|
|
253
|
+
* @param args.options.limit - Optional, A number of the names to fetch per request
|
|
252
254
|
* @param args.options.orderBy - The order to sort the names by
|
|
253
255
|
* @param args.options.where - Additional filters to apply to the query
|
|
254
256
|
*
|
|
@@ -260,8 +262,8 @@ declare class ANS {
|
|
|
260
262
|
*
|
|
261
263
|
* @param args
|
|
262
264
|
* @param args.domain - A string of the domain name: eg. "test.apt" or "test" (without the suffix of .apt)
|
|
263
|
-
* @param args.options.
|
|
264
|
-
* @param args.options.
|
|
265
|
+
* @param args.options.offset - Optional, the offset to start from when fetching names
|
|
266
|
+
* @param args.options.limit - Optional, A number of the names to fetch per request
|
|
265
267
|
* @param args.options.orderBy - The order to sort the names by
|
|
266
268
|
* @param args.options.where - Additional filters to apply to the query
|
|
267
269
|
*
|
package/dist/esm/api/ans.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-2X3FRUKX.mjs";import"../chunk-UES76WF2.mjs";import"../chunk-7IY2Y73Q.mjs";import"../chunk-MNFGMNYS.mjs";import"../chunk-4FDIPWVB.mjs";import"../chunk-F52GIFKT.mjs";import"../chunk-7QJYTQSU.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-HQ4DGB7L.mjs";import"../chunk-OXO3Z2MF.mjs";import"../chunk-3QS3MFWJ.mjs";import"../chunk-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-Y5RQOXZH.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as ANS};
|
|
2
2
|
//# sourceMappingURL=ans.mjs.map
|
package/dist/esm/api/aptos.d.mts
CHANGED
|
@@ -43,6 +43,7 @@ import '../transactions/authenticator/account.mjs';
|
|
|
43
43
|
import '../core/crypto/anyPublicKey.mjs';
|
|
44
44
|
import '../core/crypto/anySignature.mjs';
|
|
45
45
|
import '../core/crypto/ed25519.mjs';
|
|
46
|
+
import '../core/crypto/secp256k1.mjs';
|
|
46
47
|
import '../core/crypto/multiEd25519.mjs';
|
|
47
48
|
import '../core/crypto/multiKey.mjs';
|
|
48
49
|
import '../internal/digitalAsset.mjs';
|
package/dist/esm/api/aptos.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-TTICPGX6.mjs";import"../chunk-W44E6YAW.mjs";import"../chunk-4XQ5IV6C.mjs";import"../chunk-PEBXSNMJ.mjs";import"../chunk-NZ36UN4C.mjs";import"../chunk-NBSXZKMQ.mjs";import"../chunk-IHYTP2EW.mjs";import"../chunk-DYJVDOBH.mjs";import"../chunk-BDTDWLGO.mjs";import"../chunk-U6Z4FNB7.mjs";import"../chunk-TNUGIBLO.mjs";import"../chunk-26GRNGPL.mjs";import"../chunk-GMOHGD73.mjs";import"../chunk-CBAVJ5EN.mjs";import"../chunk-5SRMD5C6.mjs";import"../chunk-DBJTMCAG.mjs";import"../chunk-PLY7MQKE.mjs";import"../chunk-XKINEFAA.mjs";import"../chunk-32A35CPU.mjs";import"../chunk-BA4TDBYB.mjs";import"../chunk-ZKFDLJ2F.mjs";import"../chunk-WXISFVRU.mjs";import"../chunk-Q3R3KKKP.mjs";import"../chunk-LBNMY7EM.mjs";import"../chunk-2X3FRUKX.mjs";import"../chunk-UES76WF2.mjs";import"../chunk-3RMXGSHK.mjs";import"../chunk-2AMFCGJ3.mjs";import"../chunk-ELWWME6B.mjs";import"../chunk-7IY2Y73Q.mjs";import"../chunk-MNFGMNYS.mjs";import"../chunk-4FDIPWVB.mjs";import"../chunk-F52GIFKT.mjs";import"../chunk-7QJYTQSU.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-HQ4DGB7L.mjs";import"../chunk-OXO3Z2MF.mjs";import"../chunk-3QS3MFWJ.mjs";import"../chunk-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-Y5RQOXZH.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Aptos};
|
|
2
2
|
//# sourceMappingURL=aptos.mjs.map
|
|
@@ -9,10 +9,10 @@ import '../types/generated/types.mjs';
|
|
|
9
9
|
* This class holds the config information for the SDK client instance.
|
|
10
10
|
*/
|
|
11
11
|
declare class AptosConfig {
|
|
12
|
-
/** The Network that this SDK is associated with. */
|
|
12
|
+
/** The Network that this SDK is associated with. Defaults to DEVNET */
|
|
13
13
|
readonly network: Network;
|
|
14
14
|
/**
|
|
15
|
-
* The client instance the SDK uses
|
|
15
|
+
* The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
|
|
16
16
|
*/
|
|
17
17
|
readonly client: Client;
|
|
18
18
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-3RMXGSHK.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as AptosConfig};
|
|
2
2
|
//# sourceMappingURL=aptosConfig.mjs.map
|
package/dist/esm/api/coin.d.mts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
1
|
import { Account } from '../core/account.mjs';
|
|
3
2
|
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
3
|
import { AnyNumber, MoveStructId } from '../types/index.mjs';
|
|
5
4
|
import { InputGenerateTransactionOptions, SingleSignerTransaction } from '../transactions/types.mjs';
|
|
6
|
-
import '
|
|
7
|
-
import '../utils/const.mjs';
|
|
5
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
8
6
|
import '../core/authenticationKey.mjs';
|
|
9
7
|
import '../core/crypto/asymmetricCrypto.mjs';
|
|
10
8
|
import '../bcs/serializer.mjs';
|
|
@@ -12,6 +10,7 @@ import '../core/hex.mjs';
|
|
|
12
10
|
import '../core/common.mjs';
|
|
13
11
|
import '../bcs/deserializer.mjs';
|
|
14
12
|
import '../transactions/instances/transactionArgument.mjs';
|
|
13
|
+
import '../utils/apiEndpoints.mjs';
|
|
15
14
|
import '../types/indexer.mjs';
|
|
16
15
|
import '../types/generated/operations.mjs';
|
|
17
16
|
import '../types/generated/types.mjs';
|
|
@@ -28,8 +27,10 @@ import '../transactions/authenticator/account.mjs';
|
|
|
28
27
|
import '../core/crypto/anyPublicKey.mjs';
|
|
29
28
|
import '../core/crypto/anySignature.mjs';
|
|
30
29
|
import '../core/crypto/ed25519.mjs';
|
|
30
|
+
import '../core/crypto/secp256k1.mjs';
|
|
31
31
|
import '../core/crypto/multiEd25519.mjs';
|
|
32
32
|
import '../core/crypto/multiKey.mjs';
|
|
33
|
+
import '../utils/const.mjs';
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* A class to handle all `Coin` operations
|
package/dist/esm/api/coin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-2AMFCGJ3.mjs";import"../chunk-ELWWME6B.mjs";import"../chunk-7IY2Y73Q.mjs";import"../chunk-MNFGMNYS.mjs";import"../chunk-4FDIPWVB.mjs";import"../chunk-F52GIFKT.mjs";import"../chunk-7QJYTQSU.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-HQ4DGB7L.mjs";import"../chunk-OXO3Z2MF.mjs";import"../chunk-3QS3MFWJ.mjs";import"../chunk-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-Y5RQOXZH.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Coin};
|
|
2
2
|
//# sourceMappingURL=coin.mjs.map
|