@aptos-labs/ts-sdk 0.0.6 → 0.0.8
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 -5
- package/dist/browser/index.d.ts +1097 -519
- package/dist/browser/index.global.js +49 -28
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +1097 -519
- package/dist/common/index.js +48 -27
- 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 +214 -18
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +9 -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 +6 -5
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +24 -21
- 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 +5 -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 +54 -0
- package/dist/esm/api/transactionSubmission/build.mjs +2 -0
- package/dist/esm/api/transactionSubmission/sign.d.mts +51 -0
- package/dist/esm/api/transactionSubmission/sign.mjs +2 -0
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -0
- package/dist/esm/api/transactionSubmission/simulate.d.mts +54 -0
- package/dist/esm/api/transactionSubmission/simulate.mjs +2 -0
- package/dist/esm/api/transactionSubmission/simulate.mjs.map +1 -0
- package/dist/esm/api/transactionSubmission/submit.d.mts +52 -0
- package/dist/esm/api/transactionSubmission/submit.mjs +2 -0
- package/dist/esm/api/transactionSubmission/submit.mjs.map +1 -0
- package/dist/esm/api/transactionSubmission.d.mts +25 -54
- 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/api/utils.mjs.map +1 -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-UAAI3NCA.mjs → chunk-2SAKPC5Q.mjs} +2 -2
- package/dist/esm/chunk-2YQXX64E.mjs +2 -0
- package/dist/esm/chunk-2YQXX64E.mjs.map +1 -0
- package/dist/esm/chunk-3F5WV6US.mjs +2 -0
- package/dist/esm/chunk-3F5WV6US.mjs.map +1 -0
- package/dist/esm/{chunk-ARVSIDVB.mjs → chunk-3RMXGSHK.mjs} +2 -2
- package/dist/esm/chunk-3RMXGSHK.mjs.map +1 -0
- package/dist/esm/{chunk-4ADA5BE7.mjs → chunk-53DS6NBQ.mjs} +2 -2
- package/dist/esm/chunk-5CUNY7X2.mjs +2 -0
- package/dist/esm/chunk-5CUNY7X2.mjs.map +1 -0
- package/dist/esm/{chunk-QWVR4RCV.mjs → chunk-5OPOJ43H.mjs} +2 -2
- package/dist/esm/{chunk-V45RFKH7.mjs → chunk-5UY5OKXR.mjs} +2 -2
- package/dist/esm/chunk-5UY5OKXR.mjs.map +1 -0
- package/dist/esm/chunk-5ZVCSKFX.mjs +2 -0
- package/dist/esm/chunk-5ZVCSKFX.mjs.map +1 -0
- package/dist/esm/{chunk-HVADSXTB.mjs → chunk-73VWOS4Z.mjs} +2 -2
- package/dist/esm/chunk-ALFESCPU.mjs +2 -0
- package/dist/esm/chunk-ALFESCPU.mjs.map +1 -0
- package/dist/esm/chunk-APSQ4M23.mjs +2 -0
- package/dist/esm/chunk-APSQ4M23.mjs.map +1 -0
- package/dist/esm/{chunk-U25N2VWA.mjs → chunk-AZUWHKN5.mjs} +2 -2
- package/dist/esm/{chunk-WX43AJTD.mjs → chunk-BQSE5HHW.mjs} +45 -24
- package/dist/esm/chunk-BQSE5HHW.mjs.map +1 -0
- package/dist/esm/chunk-CCXMVVXD.mjs +2 -0
- package/dist/esm/chunk-CCXMVVXD.mjs.map +1 -0
- package/dist/esm/{chunk-JZNLZMUC.mjs → chunk-CJPCOS4R.mjs} +2 -2
- package/dist/esm/{chunk-S36IYY6K.mjs → chunk-CL5B2QNS.mjs} +2 -2
- package/dist/esm/chunk-CLJLQXFQ.mjs +2 -0
- package/dist/esm/chunk-CLJLQXFQ.mjs.map +1 -0
- package/dist/esm/{chunk-EWTHPMEE.mjs → chunk-CU2DINU4.mjs} +2 -2
- package/dist/esm/chunk-EFRFDFS4.mjs +2 -0
- package/dist/esm/chunk-EFRFDFS4.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-HA6JD5R6.mjs → chunk-F6K26WV5.mjs} +2 -2
- package/dist/esm/{chunk-HA6JD5R6.mjs.map → chunk-F6K26WV5.mjs.map} +1 -1
- package/dist/esm/chunk-F7EWDYTE.mjs +2 -0
- package/dist/esm/chunk-F7EWDYTE.mjs.map +1 -0
- package/dist/esm/{chunk-44MGBJ73.mjs → chunk-FZ56IS3E.mjs} +2 -2
- package/dist/esm/chunk-G36AY4R7.mjs +2 -0
- package/dist/esm/chunk-G36AY4R7.mjs.map +1 -0
- package/dist/esm/chunk-GEZSEAL5.mjs +2 -0
- package/dist/esm/chunk-GEZSEAL5.mjs.map +1 -0
- package/dist/esm/chunk-GIZLK7M7.mjs +2 -0
- package/dist/esm/chunk-GIZLK7M7.mjs.map +1 -0
- package/dist/esm/chunk-GMG4VR3K.mjs +2 -0
- package/dist/esm/chunk-GMG4VR3K.mjs.map +1 -0
- package/dist/esm/{chunk-U6SZNNVL.mjs → chunk-GXPGRCSW.mjs} +2 -2
- package/dist/esm/{chunk-U6SZNNVL.mjs.map → chunk-GXPGRCSW.mjs.map} +1 -1
- package/dist/esm/{chunk-GEFQFRL3.mjs → chunk-HC5VMNXA.mjs} +2 -2
- package/dist/esm/chunk-HTI5LEST.mjs +2 -0
- package/dist/esm/chunk-HTI5LEST.mjs.map +1 -0
- package/dist/esm/chunk-IELTCGLP.mjs +2 -0
- package/dist/esm/chunk-IELTCGLP.mjs.map +1 -0
- package/dist/esm/chunk-IHYTP2EW.mjs +1 -0
- package/dist/esm/chunk-IHYTP2EW.mjs.map +1 -0
- package/dist/esm/chunk-JI2BBZ2W.mjs +2 -0
- package/dist/esm/{chunk-3JVGSFHP.mjs.map → chunk-JI2BBZ2W.mjs.map} +1 -1
- package/dist/esm/chunk-KKER5KL4.mjs +2 -0
- package/dist/esm/chunk-KKER5KL4.mjs.map +1 -0
- package/dist/esm/chunk-KNMWDGP4.mjs +2 -0
- package/dist/esm/chunk-KNMWDGP4.mjs.map +1 -0
- package/dist/esm/{chunk-YYRDFZE6.mjs → chunk-KZSJ5MFF.mjs} +2 -2
- package/dist/esm/{chunk-YYRDFZE6.mjs.map → chunk-KZSJ5MFF.mjs.map} +1 -1
- package/dist/esm/chunk-MWAMLQ25.mjs +2 -0
- package/dist/esm/chunk-MWAMLQ25.mjs.map +1 -0
- 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-NZSGGL25.mjs +2 -0
- package/dist/esm/chunk-NZSGGL25.mjs.map +1 -0
- package/dist/esm/chunk-OBOOY2QD.mjs +2 -0
- package/dist/esm/chunk-OBOOY2QD.mjs.map +1 -0
- package/dist/esm/chunk-OT2UDMUU.mjs +2 -0
- package/dist/esm/chunk-OT2UDMUU.mjs.map +1 -0
- package/dist/esm/chunk-OZZDXS26.mjs +2 -0
- package/dist/esm/chunk-OZZDXS26.mjs.map +1 -0
- package/dist/esm/chunk-P5747ZYC.mjs +2 -0
- package/dist/esm/chunk-P5747ZYC.mjs.map +1 -0
- package/dist/esm/{chunk-BPYLPPEQ.mjs → chunk-PL2VA73L.mjs} +2 -2
- package/dist/esm/chunk-PXTMLJKO.mjs +2 -0
- package/dist/esm/{chunk-JDS7K2WI.mjs → chunk-QCBIJCU4.mjs} +2 -2
- package/dist/esm/chunk-QEXAMHPU.mjs +2 -0
- package/dist/esm/chunk-QEXAMHPU.mjs.map +1 -0
- package/dist/esm/{chunk-KQXRH5FK.mjs → chunk-QNTV5NMH.mjs} +2 -2
- package/dist/esm/{chunk-EQ5BEDJ7.mjs → chunk-RCM3K5JL.mjs} +2 -2
- package/dist/esm/chunk-RLG3WOTH.mjs +2 -0
- package/dist/esm/chunk-RLG3WOTH.mjs.map +1 -0
- package/dist/esm/chunk-SDPICQ5B.mjs +2 -0
- package/dist/esm/{chunk-FYIFBLHU.mjs.map → chunk-SDPICQ5B.mjs.map} +1 -1
- package/dist/esm/chunk-SGTFMSOG.mjs +2 -0
- package/dist/esm/chunk-SGTFMSOG.mjs.map +1 -0
- package/dist/esm/chunk-SO6EE5DX.mjs +2 -0
- package/dist/esm/chunk-SO6EE5DX.mjs.map +1 -0
- package/dist/esm/chunk-SRGPSANH.mjs +2 -0
- package/dist/esm/chunk-SRGPSANH.mjs.map +1 -0
- package/dist/esm/{chunk-UPLWWSB4.mjs → chunk-SSJQOXEP.mjs} +2 -2
- package/dist/esm/chunk-TZ623H2V.mjs +2 -0
- package/dist/esm/chunk-TZ623H2V.mjs.map +1 -0
- 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-UIVJXLRM.mjs +1 -0
- package/dist/esm/chunk-UIVJXLRM.mjs.map +1 -0
- package/dist/esm/chunk-UKSA4H2O.mjs +2 -0
- package/dist/esm/chunk-UKSA4H2O.mjs.map +1 -0
- package/dist/esm/chunk-UW6HQ643.mjs +2 -0
- package/dist/esm/chunk-UW6HQ643.mjs.map +1 -0
- package/dist/esm/chunk-UWXDXOFK.mjs +2 -0
- package/dist/esm/chunk-UWXDXOFK.mjs.map +1 -0
- package/dist/esm/chunk-VQ7LYNMD.mjs +2 -0
- package/dist/esm/chunk-VQ7LYNMD.mjs.map +1 -0
- package/dist/esm/{chunk-U3LO2FSJ.mjs → chunk-WTGGCH34.mjs} +2 -2
- package/dist/esm/{chunk-X32O46IB.mjs → chunk-XITLXPBK.mjs} +2 -2
- package/dist/esm/chunk-XMUUI6HG.mjs +2 -0
- package/dist/esm/{chunk-R3KWVOFG.mjs.map → chunk-XMUUI6HG.mjs.map} +1 -1
- package/dist/esm/chunk-XX2Z26FH.mjs +2 -0
- package/dist/esm/chunk-XX2Z26FH.mjs.map +1 -0
- package/dist/esm/chunk-Y6PVFMBS.mjs +2 -0
- package/dist/esm/chunk-Y6PVFMBS.mjs.map +1 -0
- package/dist/esm/{chunk-VWVEDCBM.mjs → chunk-YN6UIVFB.mjs} +2 -2
- package/dist/esm/chunk-ZFK7QD3B.mjs +2 -0
- package/dist/esm/chunk-ZFK7QD3B.mjs.map +1 -0
- package/dist/esm/chunk-ZJUDDSWN.mjs +2 -0
- package/dist/esm/chunk-ZJUDDSWN.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 +17 -10
- 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 +78 -14
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +6 -5
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +12 -21
- 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 +2 -2
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +40 -22
- 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 +4 -6
- 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 +29 -41
- 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 +5 -4
- 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 +6 -8
- 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 +18 -43
- package/dist/esm/types/generated/operations.d.mts +30 -4
- package/dist/esm/types/generated/queries.d.mts +8 -5
- 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/types/indexer.d.mts +3 -2
- 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 +252 -16
- package/src/api/aptos.ts +20 -0
- package/src/api/aptosConfig.ts +2 -2
- package/src/api/coin.ts +4 -8
- package/src/api/digitalAsset.ts +75 -25
- 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/build.ts +42 -0
- package/src/api/transactionSubmission/sign.ts +44 -0
- package/src/api/transactionSubmission/simulate.ts +56 -0
- package/src/api/transactionSubmission/submit.ts +53 -0
- package/src/api/transactionSubmission.ts +31 -128
- 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 +423 -24
- package/src/internal/coin.ts +6 -8
- package/src/internal/digitalAsset.ts +15 -25
- 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/ansTokenFragment.graphql +9 -0
- package/src/internal/queries/getNames.graphql +11 -0
- 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 +63 -25
- 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 +35 -28
- package/src/transactions/transactionBuilder/transactionBuilder.ts +46 -67
- package/src/transactions/typeTag/parser.ts +1 -1
- package/src/transactions/types.ts +16 -47
- package/src/types/generated/operations.ts +33 -2
- package/src/types/generated/queries.ts +38 -4
- package/src/types/index.ts +67 -11
- package/src/types/indexer.ts +3 -0
- package/src/utils/const.ts +18 -0
- package/src/version.ts +1 -1
- package/dist/esm/chunk-2W744GUN.mjs +0 -2
- package/dist/esm/chunk-2W744GUN.mjs.map +0 -1
- package/dist/esm/chunk-3JVGSFHP.mjs +0 -2
- package/dist/esm/chunk-4RVIA63I.mjs +0 -2
- package/dist/esm/chunk-4RVIA63I.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-7MNEEVXY.mjs +0 -2
- package/dist/esm/chunk-7MNEEVXY.mjs.map +0 -1
- package/dist/esm/chunk-AAIBCWZY.mjs +0 -2
- package/dist/esm/chunk-AAIBCWZY.mjs.map +0 -1
- package/dist/esm/chunk-ARVSIDVB.mjs.map +0 -1
- package/dist/esm/chunk-BFSEVKNA.mjs +0 -2
- package/dist/esm/chunk-BFSEVKNA.mjs.map +0 -1
- package/dist/esm/chunk-BP5ZO7NK.mjs +0 -2
- package/dist/esm/chunk-BP5ZO7NK.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-BWMNPUTK.mjs +0 -2
- package/dist/esm/chunk-BWMNPUTK.mjs.map +0 -1
- package/dist/esm/chunk-EFIYW4WK.mjs +0 -2
- package/dist/esm/chunk-EGOYLZBU.mjs +0 -2
- package/dist/esm/chunk-EGOYLZBU.mjs.map +0 -1
- package/dist/esm/chunk-EYXHVA6W.mjs +0 -2
- package/dist/esm/chunk-EYXHVA6W.mjs.map +0 -1
- package/dist/esm/chunk-FYIFBLHU.mjs +0 -2
- package/dist/esm/chunk-IG5CHHSI.mjs +0 -2
- package/dist/esm/chunk-IG5CHHSI.mjs.map +0 -1
- package/dist/esm/chunk-IXMB2GOK.mjs +0 -2
- package/dist/esm/chunk-IXMB2GOK.mjs.map +0 -1
- package/dist/esm/chunk-J5ZFOJN2.mjs +0 -2
- package/dist/esm/chunk-J5ZFOJN2.mjs.map +0 -1
- package/dist/esm/chunk-KC64ESLO.mjs +0 -2
- package/dist/esm/chunk-NGCFPQ22.mjs +0 -2
- package/dist/esm/chunk-NGCFPQ22.mjs.map +0 -1
- package/dist/esm/chunk-NTD3H2S4.mjs +0 -2
- package/dist/esm/chunk-NTD3H2S4.mjs.map +0 -1
- package/dist/esm/chunk-NYFVEKF6.mjs +0 -2
- package/dist/esm/chunk-NYFVEKF6.mjs.map +0 -1
- package/dist/esm/chunk-NZIJV4O2.mjs +0 -2
- package/dist/esm/chunk-NZIJV4O2.mjs.map +0 -1
- package/dist/esm/chunk-P32MY5YF.mjs +0 -2
- package/dist/esm/chunk-P32MY5YF.mjs.map +0 -1
- package/dist/esm/chunk-Q6N6QACD.mjs +0 -2
- package/dist/esm/chunk-Q6N6QACD.mjs.map +0 -1
- package/dist/esm/chunk-R26XML3D.mjs +0 -2
- package/dist/esm/chunk-R26XML3D.mjs.map +0 -1
- package/dist/esm/chunk-R3KWVOFG.mjs +0 -2
- 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-TIH6ARYP.mjs +0 -2
- package/dist/esm/chunk-TQD4IGUM.mjs +0 -2
- package/dist/esm/chunk-TQD4IGUM.mjs.map +0 -1
- package/dist/esm/chunk-UNQNACJT.mjs +0 -2
- package/dist/esm/chunk-UNQNACJT.mjs.map +0 -1
- package/dist/esm/chunk-V45RFKH7.mjs.map +0 -1
- package/dist/esm/chunk-VMQWW5UT.mjs +0 -2
- package/dist/esm/chunk-VMQWW5UT.mjs.map +0 -1
- package/dist/esm/chunk-VOYW2TZW.mjs +0 -2
- package/dist/esm/chunk-VOYW2TZW.mjs.map +0 -1
- package/dist/esm/chunk-VYAVLUPJ.mjs +0 -2
- package/dist/esm/chunk-VYAVLUPJ.mjs.map +0 -1
- package/dist/esm/chunk-WKY5ENCK.mjs +0 -2
- package/dist/esm/chunk-WKY5ENCK.mjs.map +0 -1
- package/dist/esm/chunk-WX43AJTD.mjs.map +0 -1
- package/dist/esm/chunk-Y5DJPHJT.mjs +0 -2
- package/dist/esm/chunk-Y5DJPHJT.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-Z2UDRTHA.mjs +0 -2
- package/dist/esm/chunk-Z2UDRTHA.mjs.map +0 -1
- /package/dist/esm/{chunk-TCTZCPQ6.mjs.map → api/transactionSubmission/build.mjs.map} +0 -0
- /package/dist/esm/{chunk-UAAI3NCA.mjs.map → chunk-2SAKPC5Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-4ADA5BE7.mjs.map → chunk-53DS6NBQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-QWVR4RCV.mjs.map → chunk-5OPOJ43H.mjs.map} +0 -0
- /package/dist/esm/{chunk-HVADSXTB.mjs.map → chunk-73VWOS4Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-U25N2VWA.mjs.map → chunk-AZUWHKN5.mjs.map} +0 -0
- /package/dist/esm/{chunk-JZNLZMUC.mjs.map → chunk-CJPCOS4R.mjs.map} +0 -0
- /package/dist/esm/{chunk-S36IYY6K.mjs.map → chunk-CL5B2QNS.mjs.map} +0 -0
- /package/dist/esm/{chunk-EWTHPMEE.mjs.map → chunk-CU2DINU4.mjs.map} +0 -0
- /package/dist/esm/{chunk-44MGBJ73.mjs.map → chunk-FZ56IS3E.mjs.map} +0 -0
- /package/dist/esm/{chunk-GEFQFRL3.mjs.map → chunk-HC5VMNXA.mjs.map} +0 -0
- /package/dist/esm/{chunk-BPYLPPEQ.mjs.map → chunk-PL2VA73L.mjs.map} +0 -0
- /package/dist/esm/{chunk-EFIYW4WK.mjs.map → chunk-PXTMLJKO.mjs.map} +0 -0
- /package/dist/esm/{chunk-JDS7K2WI.mjs.map → chunk-QCBIJCU4.mjs.map} +0 -0
- /package/dist/esm/{chunk-KQXRH5FK.mjs.map → chunk-QNTV5NMH.mjs.map} +0 -0
- /package/dist/esm/{chunk-EQ5BEDJ7.mjs.map → chunk-RCM3K5JL.mjs.map} +0 -0
- /package/dist/esm/{chunk-UPLWWSB4.mjs.map → chunk-SSJQOXEP.mjs.map} +0 -0
- /package/dist/esm/{chunk-U3LO2FSJ.mjs.map → chunk-WTGGCH34.mjs.map} +0 -0
- /package/dist/esm/{chunk-X32O46IB.mjs.map → chunk-XITLXPBK.mjs.map} +0 -0
- /package/dist/esm/{chunk-VWVEDCBM.mjs.map → chunk-YN6UIVFB.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-NZSGGL25.mjs";import"../chunk-APSQ4M23.mjs";import"../chunk-SGTFMSOG.mjs";import"../chunk-GEZSEAL5.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-5OPOJ43H.mjs";import"../chunk-SSJQOXEP.mjs";import"../chunk-WTGGCH34.mjs";import"../chunk-AZUWHKN5.mjs";import"../chunk-FZ56IS3E.mjs";import"../chunk-KZSJ5MFF.mjs";import"../chunk-3F5WV6US.mjs";import"../chunk-UW6HQ643.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-PXTMLJKO.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-53DS6NBQ.mjs";import"../chunk-73VWOS4Z.mjs";import"../chunk-PL2VA73L.mjs";import"../chunk-XITLXPBK.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-G36AY4R7.mjs";import"../chunk-F6K26WV5.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-OT2UDMUU.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-JI2BBZ2W.mjs";import"../chunk-HC5VMNXA.mjs";import"../chunk-SO6EE5DX.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-SDPICQ5B.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Account};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
package/dist/esm/api/ans.d.mts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Account } from '../core/account.mjs';
|
|
2
|
+
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
3
3
|
import { MoveAddressType } from '../types/index.mjs';
|
|
4
|
+
import { RegisterNameParameters, GetAccountNamesArgs, GetAccountDomainsArgs, GetAccountSubdomainsArgs, GetDomainSubdomainsArgs } from '../internal/ans.mjs';
|
|
5
|
+
import { InputGenerateTransactionOptions, SingleSignerTransaction } from '../transactions/types.mjs';
|
|
4
6
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
5
|
-
import '../
|
|
6
|
-
import '../core/
|
|
7
|
+
import { GetANSNameResponse } from '../types/indexer.mjs';
|
|
8
|
+
import '../core/authenticationKey.mjs';
|
|
9
|
+
import '../core/crypto/asymmetricCrypto.mjs';
|
|
7
10
|
import '../bcs/serializer.mjs';
|
|
8
11
|
import '../core/hex.mjs';
|
|
9
12
|
import '../core/common.mjs';
|
|
10
13
|
import '../bcs/deserializer.mjs';
|
|
11
14
|
import '../transactions/instances/transactionArgument.mjs';
|
|
12
|
-
import '../
|
|
13
|
-
import '../
|
|
15
|
+
import '../utils/apiEndpoints.mjs';
|
|
16
|
+
import '../types/generated/types.mjs';
|
|
14
17
|
import '../bcs/serializable/moveStructs.mjs';
|
|
15
18
|
import '../bcs/serializable/movePrimitives.mjs';
|
|
16
19
|
import '../bcs/serializable/fixedBytes.mjs';
|
|
@@ -24,13 +27,11 @@ import '../transactions/authenticator/account.mjs';
|
|
|
24
27
|
import '../core/crypto/anyPublicKey.mjs';
|
|
25
28
|
import '../core/crypto/anySignature.mjs';
|
|
26
29
|
import '../core/crypto/ed25519.mjs';
|
|
30
|
+
import '../core/crypto/secp256k1.mjs';
|
|
27
31
|
import '../core/crypto/multiEd25519.mjs';
|
|
28
32
|
import '../core/crypto/multiKey.mjs';
|
|
29
|
-
import '../utils/apiEndpoints.mjs';
|
|
30
|
-
import '../types/indexer.mjs';
|
|
31
|
-
import '../types/generated/operations.mjs';
|
|
32
|
-
import '../types/generated/types.mjs';
|
|
33
33
|
import '../utils/const.mjs';
|
|
34
|
+
import '../types/generated/operations.mjs';
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
37
|
* A class to handle all `ANS` operations
|
|
@@ -39,11 +40,12 @@ declare class ANS {
|
|
|
39
40
|
readonly config: AptosConfig;
|
|
40
41
|
constructor(config: AptosConfig);
|
|
41
42
|
/**
|
|
42
|
-
* Retrieve the owner address of a domain name or subdomain name.
|
|
43
|
+
* Retrieve the owner address of a domain name or subdomain name from the contract.
|
|
43
44
|
*
|
|
44
45
|
* ```ts
|
|
45
|
-
* getOwnerAddress({name: "test.aptos"})
|
|
46
46
|
* // Will return the owner address of "test.aptos.apt" or undefined
|
|
47
|
+
* const owner = await aptos.getOwnerAddress({name: "test.aptos"})
|
|
48
|
+
* // owner = 0x123...
|
|
47
49
|
* ```
|
|
48
50
|
*
|
|
49
51
|
* @param args.name - A string of the name to retrieve
|
|
@@ -54,26 +56,220 @@ declare class ANS {
|
|
|
54
56
|
name: string;
|
|
55
57
|
}): Promise<MoveAddressType | undefined>;
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
59
|
+
* Retrieve the expiration time of a domain name or subdomain name from the contract.
|
|
60
|
+
*
|
|
61
|
+
* ```ts
|
|
62
|
+
* // Will return the expiration of "test.aptos.apt" or undefined
|
|
63
|
+
* const exp = await aptos.getExpiration({name: "test.aptos"})
|
|
64
|
+
* // new Date(exp) would give you the date in question: 2021-01-01T00:00:00.000Z
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param args.name - A string of the name to retrieve
|
|
68
|
+
*
|
|
69
|
+
* @returns number as a unix timestamp in milliseconds.
|
|
70
|
+
*/
|
|
71
|
+
getExpiration(args: {
|
|
72
|
+
name: string;
|
|
73
|
+
}): Promise<number | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Retrieve the target address of a domain or subdomain name. This is the
|
|
76
|
+
* address the name points to for use on chain. Note, the target address can
|
|
77
|
+
* point to addresses that are not the owner of the name
|
|
78
|
+
*
|
|
79
|
+
* ```ts
|
|
80
|
+
* const targetAddr = await aptos.getTargetAddress({name: "test.aptos"})
|
|
81
|
+
* // targetAddr = 0x123...
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.
|
|
85
|
+
*
|
|
86
|
+
* @returns MoveAddressType if the name has a target, undefined otherwise
|
|
87
|
+
*/
|
|
88
|
+
getTargetAddress(args: {
|
|
89
|
+
name: string;
|
|
90
|
+
}): Promise<MoveAddressType | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the target address of a domain or subdomain name. This is the
|
|
93
|
+
* address the name points to for use on chain. Note, the target address can
|
|
94
|
+
* point to addresses that are not the owner of the name
|
|
95
|
+
*
|
|
96
|
+
* ```ts
|
|
97
|
+
* await aptos.setTargetAddress({sender: alice, name: "test.aptos", address: bob.accountAddress})
|
|
98
|
+
* const address = await aptos.getTargetAddress({name: "test.aptos"})
|
|
99
|
+
* // address = bob.accountAddress
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
|
|
103
|
+
* @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
|
|
104
|
+
*
|
|
105
|
+
* @returns SingleSignerTransaction
|
|
106
|
+
*/
|
|
107
|
+
setTargetAddress(args: {
|
|
108
|
+
sender: Account;
|
|
109
|
+
name: string;
|
|
110
|
+
address: AccountAddressInput;
|
|
111
|
+
options?: InputGenerateTransactionOptions;
|
|
112
|
+
}): Promise<SingleSignerTransaction>;
|
|
113
|
+
/**
|
|
114
|
+
* Retrieve the primary name for an account. An account can have
|
|
115
|
+
* multiple names that target it, but only a single name that is primary. An
|
|
116
|
+
* account also may not have a primary name.
|
|
117
|
+
*
|
|
118
|
+
* ```ts
|
|
119
|
+
* const name = await aptos.getPrimaryName({address: alice.accountAddress})
|
|
120
|
+
* // name = test.aptos
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @param args.address - A AccountAddressInput (address) of the account
|
|
124
|
+
*
|
|
125
|
+
* @returns a string if the account has a primary name, undefined otherwise
|
|
126
|
+
*/
|
|
127
|
+
getPrimaryName(args: {
|
|
128
|
+
address: AccountAddressInput;
|
|
129
|
+
}): Promise<string | undefined>;
|
|
130
|
+
/**
|
|
131
|
+
* Sets the primary name for the sender. An account can have
|
|
132
|
+
* multiple names that target it, but only a single name that is primary. An
|
|
133
|
+
* account also may not have a primary name.
|
|
134
|
+
*
|
|
135
|
+
* ```ts
|
|
136
|
+
* await aptos.setPrimaryName({sender: alice, name: "test.aptos"})
|
|
137
|
+
* const primaryName = await aptos.getPrimaryName({address: alice.accountAddress})
|
|
138
|
+
* // primaryName = test.aptos
|
|
139
|
+
* ```
|
|
58
140
|
*
|
|
59
141
|
* @param args.sender - The sender account
|
|
60
|
-
* @param args.name - A string
|
|
61
|
-
*
|
|
62
|
-
*
|
|
142
|
+
* @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
|
|
143
|
+
*
|
|
144
|
+
* @returns SingleSignerTransaction
|
|
145
|
+
*/
|
|
146
|
+
setPrimaryName(args: {
|
|
147
|
+
sender: Account;
|
|
148
|
+
name?: string;
|
|
149
|
+
options?: InputGenerateTransactionOptions;
|
|
150
|
+
}): Promise<SingleSignerTransaction>;
|
|
151
|
+
/**
|
|
152
|
+
* Registers a new name
|
|
153
|
+
*
|
|
154
|
+
* ```ts
|
|
155
|
+
* // An example of registering a subdomain name assuming def.apt is already registered
|
|
156
|
+
* // and belongs to the sender alice.
|
|
157
|
+
* const txn = aptos.registerName({
|
|
158
|
+
* sender: alice,
|
|
159
|
+
* name: "test.aptos.apt",
|
|
160
|
+
* expiration: {
|
|
161
|
+
* policy: "subdomain:independent",
|
|
162
|
+
* expirationDate: Date.now() + 30 * 24 * 60 * 60 * 1000,
|
|
163
|
+
* },
|
|
164
|
+
* });
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* @param args.sender - The sender account
|
|
168
|
+
* @param args.name - A string of the name to register. This can be inclusive or exclusive of the .apt suffix.
|
|
169
|
+
* Examples include: "test", "test.apt", "test.aptos.apt", etc.
|
|
63
170
|
* @param args.expiration - An object with the expiration policy of the name.
|
|
64
171
|
* @param args.expiration.policy - 'domain' | 'subdomain:follow-domain' | 'subdomain:independent'
|
|
65
172
|
* - domain: Years is required and the name will expire after the given number of years.
|
|
66
173
|
* - subdomain:follow-domain: The name will expire at the same time as the domain name.
|
|
67
174
|
* - subdomain:independent: The name will expire at the given date.
|
|
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'.
|
|
68
178
|
* @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.
|
|
69
179
|
* @param args.targetAddress optional - The address the domain name will resolve to. If not provided,
|
|
70
180
|
* the sender's address will be used.
|
|
71
181
|
* @param args.toAddress optional - The address to send the domain name to. If not provided,
|
|
72
182
|
* the transaction will be sent to the router.
|
|
73
183
|
*
|
|
74
|
-
* @returns
|
|
184
|
+
* @returns SingleSignerTransaction
|
|
185
|
+
*/
|
|
186
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SingleSignerTransaction>;
|
|
187
|
+
/**
|
|
188
|
+
* Renews a domain name
|
|
189
|
+
*
|
|
190
|
+
* Note: If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.
|
|
191
|
+
*
|
|
192
|
+
* ```ts
|
|
193
|
+
* await aptos.renewDomain({sender: alice, name: "test"})
|
|
194
|
+
* // test.apt will be renewed for one year
|
|
195
|
+
* ```
|
|
196
|
+
*
|
|
197
|
+
* @param args.sender - The sender account
|
|
198
|
+
* @param args.name - A string of the domain the subdomain will be under. The signer must be the domain owner.
|
|
199
|
+
* Subdomains cannot be renewed.
|
|
200
|
+
* @param args.years - The number of years to renew the name. Currently only one year is permitted.
|
|
201
|
+
*
|
|
202
|
+
* @returns SingleSignerTransaction
|
|
203
|
+
*/
|
|
204
|
+
renewDomain(args: {
|
|
205
|
+
sender: Account;
|
|
206
|
+
name: string;
|
|
207
|
+
years?: 1;
|
|
208
|
+
options?: InputGenerateTransactionOptions;
|
|
209
|
+
}): Promise<SingleSignerTransaction>;
|
|
210
|
+
/**
|
|
211
|
+
* Fetches a single name from the indexer
|
|
212
|
+
* @param args.name - A string of the name to retrieve, e.g. "test.aptos.apt"
|
|
213
|
+
* or "test.apt" or "test". Can be inclusive or exclusive of the .apt suffix.
|
|
214
|
+
* Can be a subdomain.
|
|
215
|
+
*
|
|
216
|
+
* @returns A promise of an ANSName or undefined
|
|
217
|
+
*/
|
|
218
|
+
getName(args: {
|
|
219
|
+
name: string;
|
|
220
|
+
}): Promise<GetANSNameResponse[0] | undefined>;
|
|
221
|
+
/**
|
|
222
|
+
* Fetches all names for an account (both top level domains and subdomains)
|
|
223
|
+
*
|
|
224
|
+
* @param args
|
|
225
|
+
* @param args.accountAddress - A AccountAddressInput of the address to retrieve names for.
|
|
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
|
|
228
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
229
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
230
|
+
*
|
|
231
|
+
* @returns a promise of an array of ANSName
|
|
232
|
+
*/
|
|
233
|
+
getAccountNames(args: GetAccountNamesArgs): Promise<GetANSNameResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* Fetches all top level domain names for an account
|
|
236
|
+
*
|
|
237
|
+
* @param args
|
|
238
|
+
* @param args.accountAddress - A AccountAddressInput of the address to retrieve domain names for.
|
|
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
|
|
241
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
242
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
243
|
+
*
|
|
244
|
+
* @returns a promise of an array of ANSName
|
|
245
|
+
*/
|
|
246
|
+
getAccountDomains(args: GetAccountDomainsArgs): Promise<GetANSNameResponse>;
|
|
247
|
+
/**
|
|
248
|
+
* Fetches all subdomains names for an account
|
|
249
|
+
*
|
|
250
|
+
* @param args
|
|
251
|
+
* @param args.accountAddress - A AccountAddressInput of the address to retrieve subdomains names for.
|
|
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
|
|
254
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
255
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
256
|
+
*
|
|
257
|
+
* @returns a promise of an array of ANSName
|
|
258
|
+
*/
|
|
259
|
+
getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<GetANSNameResponse>;
|
|
260
|
+
/**
|
|
261
|
+
* Fetches all subdomains names for a given domain. Note, this will not return the domain itself.
|
|
262
|
+
*
|
|
263
|
+
* @param args
|
|
264
|
+
* @param args.domain - A string of the domain name: eg. "test.apt" or "test" (without the suffix of .apt)
|
|
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
|
|
267
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
268
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
269
|
+
*
|
|
270
|
+
* @returns a promise of an array of ANSName
|
|
75
271
|
*/
|
|
76
|
-
|
|
272
|
+
getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<GetANSNameResponse>;
|
|
77
273
|
}
|
|
78
274
|
|
|
79
275
|
export { ANS };
|
package/dist/esm/api/ans.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-UWXDXOFK.mjs";import"../chunk-KKER5KL4.mjs";import"../chunk-CLJLQXFQ.mjs";import"../chunk-GIZLK7M7.mjs";import"../chunk-5CUNY7X2.mjs";import"../chunk-F7EWDYTE.mjs";import"../chunk-GXPGRCSW.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-2SAKPC5Q.mjs";import"../chunk-QCBIJCU4.mjs";import"../chunk-RCM3K5JL.mjs";import"../chunk-HTI5LEST.mjs";import"../chunk-CJPCOS4R.mjs";import"../chunk-CL5B2QNS.mjs";import"../chunk-YN6UIVFB.mjs";import"../chunk-QNTV5NMH.mjs";import"../chunk-XMUUI6HG.mjs";import"../chunk-CU2DINU4.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SGTFMSOG.mjs";import"../chunk-GEZSEAL5.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-5OPOJ43H.mjs";import"../chunk-SSJQOXEP.mjs";import"../chunk-WTGGCH34.mjs";import"../chunk-AZUWHKN5.mjs";import"../chunk-FZ56IS3E.mjs";import"../chunk-KZSJ5MFF.mjs";import"../chunk-3F5WV6US.mjs";import"../chunk-UW6HQ643.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-PXTMLJKO.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-53DS6NBQ.mjs";import"../chunk-73VWOS4Z.mjs";import"../chunk-PL2VA73L.mjs";import"../chunk-XITLXPBK.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-G36AY4R7.mjs";import"../chunk-F6K26WV5.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-OT2UDMUU.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-JI2BBZ2W.mjs";import"../chunk-HC5VMNXA.mjs";import"../chunk-SO6EE5DX.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-SDPICQ5B.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as ANS};
|
|
2
2
|
//# sourceMappingURL=ans.mjs.map
|
package/dist/esm/api/aptos.d.mts
CHANGED
|
@@ -10,6 +10,10 @@ import { ANS } from './ans.mjs';
|
|
|
10
10
|
import { Staking } from './staking.mjs';
|
|
11
11
|
import { Transaction } from './transaction.mjs';
|
|
12
12
|
import { TransactionSubmission } from './transactionSubmission.mjs';
|
|
13
|
+
import { Build } from './transactionSubmission/build.mjs';
|
|
14
|
+
import { Sign } from './transactionSubmission/sign.mjs';
|
|
15
|
+
import { Simulate } from './transactionSubmission/simulate.mjs';
|
|
16
|
+
import { Submit } from './transactionSubmission/submit.mjs';
|
|
13
17
|
import '../core/account.mjs';
|
|
14
18
|
import '../core/accountAddress.mjs';
|
|
15
19
|
import '../bcs/serializer.mjs';
|
|
@@ -39,6 +43,7 @@ import '../transactions/authenticator/account.mjs';
|
|
|
39
43
|
import '../core/crypto/anyPublicKey.mjs';
|
|
40
44
|
import '../core/crypto/anySignature.mjs';
|
|
41
45
|
import '../core/crypto/ed25519.mjs';
|
|
46
|
+
import '../core/crypto/secp256k1.mjs';
|
|
42
47
|
import '../core/crypto/multiEd25519.mjs';
|
|
43
48
|
import '../core/crypto/multiKey.mjs';
|
|
44
49
|
import '../internal/digitalAsset.mjs';
|
|
@@ -64,6 +69,10 @@ declare class Aptos {
|
|
|
64
69
|
readonly staking: Staking;
|
|
65
70
|
readonly transaction: Transaction;
|
|
66
71
|
readonly transactionSubmission: TransactionSubmission;
|
|
72
|
+
readonly build: Build;
|
|
73
|
+
readonly sign: Sign;
|
|
74
|
+
readonly simulate: Simulate;
|
|
75
|
+
readonly submit: Submit;
|
|
67
76
|
constructor(settings?: AptosConfig);
|
|
68
77
|
}
|
|
69
78
|
interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, ANS, TransactionSubmission {
|
package/dist/esm/api/aptos.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-2YQXX64E.mjs";import"../chunk-EFRFDFS4.mjs";import"../chunk-RLG3WOTH.mjs";import"../chunk-P5747ZYC.mjs";import"../chunk-ZFK7QD3B.mjs";import"../chunk-MWAMLQ25.mjs";import"../chunk-OBOOY2QD.mjs";import"../chunk-SRGPSANH.mjs";import"../chunk-GMG4VR3K.mjs";import"../chunk-QEXAMHPU.mjs";import"../chunk-CCXMVVXD.mjs";import"../chunk-VQ7LYNMD.mjs";import"../chunk-KNMWDGP4.mjs";import"../chunk-ZJUDDSWN.mjs";import"../chunk-5ZVCSKFX.mjs";import"../chunk-XX2Z26FH.mjs";import"../chunk-IHYTP2EW.mjs";import"../chunk-OZZDXS26.mjs";import"../chunk-Y6PVFMBS.mjs";import"../chunk-U6Z4FNB7.mjs";import"../chunk-NZSGGL25.mjs";import"../chunk-UWXDXOFK.mjs";import"../chunk-KKER5KL4.mjs";import"../chunk-3RMXGSHK.mjs";import"../chunk-5UY5OKXR.mjs";import"../chunk-TZ623H2V.mjs";import"../chunk-IELTCGLP.mjs";import"../chunk-UKSA4H2O.mjs";import"../chunk-APSQ4M23.mjs";import"../chunk-CLJLQXFQ.mjs";import"../chunk-GIZLK7M7.mjs";import"../chunk-5CUNY7X2.mjs";import"../chunk-F7EWDYTE.mjs";import"../chunk-GXPGRCSW.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-2SAKPC5Q.mjs";import"../chunk-QCBIJCU4.mjs";import"../chunk-RCM3K5JL.mjs";import"../chunk-HTI5LEST.mjs";import"../chunk-CJPCOS4R.mjs";import"../chunk-CL5B2QNS.mjs";import"../chunk-YN6UIVFB.mjs";import"../chunk-QNTV5NMH.mjs";import"../chunk-XMUUI6HG.mjs";import"../chunk-CU2DINU4.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SGTFMSOG.mjs";import"../chunk-GEZSEAL5.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-5OPOJ43H.mjs";import"../chunk-SSJQOXEP.mjs";import"../chunk-WTGGCH34.mjs";import"../chunk-AZUWHKN5.mjs";import"../chunk-FZ56IS3E.mjs";import"../chunk-KZSJ5MFF.mjs";import"../chunk-3F5WV6US.mjs";import"../chunk-UW6HQ643.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-PXTMLJKO.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-53DS6NBQ.mjs";import"../chunk-73VWOS4Z.mjs";import"../chunk-PL2VA73L.mjs";import"../chunk-XITLXPBK.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-G36AY4R7.mjs";import"../chunk-F6K26WV5.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-OT2UDMUU.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-JI2BBZ2W.mjs";import"../chunk-HC5VMNXA.mjs";import"../chunk-SO6EE5DX.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-SDPICQ5B.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.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
|