@aptos-labs/ts-sdk 0.0.5 → 0.0.7
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 +12 -7
- package/dist/browser/index.d.ts +874 -596
- package/dist/browser/index.global.js +75 -30
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +874 -596
- package/dist/common/index.js +45 -24
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/{account.d.ts → account.d.mts} +17 -17
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +273 -0
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +80 -0
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/{aptosConfig.d.ts → aptosConfig.d.mts} +6 -6
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +59 -0
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/{digitalAsset.d.ts → digitalAsset.d.mts} +35 -35
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/{event.d.ts → event.d.mts} +14 -14
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/{faucet.d.ts → faucet.d.mts} +13 -13
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/{fungibleAsset.d.ts → fungibleAsset.d.mts} +7 -7
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/{general.d.ts → general.d.mts} +11 -11
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +50 -0
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/{staking.d.ts → staking.d.mts} +13 -13
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/{transaction.d.ts → transaction.d.mts} +7 -7
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +53 -0
- package/dist/esm/api/transactionSubmission/build.mjs +2 -0
- package/dist/esm/api/transactionSubmission/sign.d.mts +50 -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 +53 -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 +51 -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 +91 -0
- package/dist/esm/api/transactionSubmission.mjs +1 -1
- package/dist/esm/bcs/{consts.d.ts → consts.d.mts} +5 -5
- package/dist/esm/bcs/consts.mjs +1 -1
- package/dist/esm/bcs/{deserializer.d.ts → deserializer.d.mts} +5 -5
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.d.mts +14 -0
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/{entryFunctionBytes.d.ts → entryFunctionBytes.d.mts} +11 -11
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/{fixedBytes.d.ts → fixedBytes.d.mts} +10 -10
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/{movePrimitives.d.ts → movePrimitives.d.mts} +10 -10
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/{moveStructs.d.ts → moveStructs.d.mts} +11 -11
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/{serializer.d.ts → serializer.d.mts} +7 -7
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-2B5QXKPU.mjs → chunk-2OZRBXLM.mjs} +2 -2
- package/dist/esm/chunk-2OZRBXLM.mjs.map +1 -0
- package/dist/esm/{chunk-O243HOP3.mjs → chunk-33T7WTB6.mjs} +2 -2
- package/dist/esm/chunk-33T7WTB6.mjs.map +1 -0
- package/dist/esm/chunk-3732I6BR.mjs +2 -0
- package/dist/esm/chunk-3732I6BR.mjs.map +1 -0
- package/dist/esm/chunk-3VZ3OZKC.mjs +2 -0
- package/dist/esm/chunk-3VZ3OZKC.mjs.map +1 -0
- package/dist/esm/chunk-44MGBJ73.mjs +2 -0
- package/dist/esm/{chunk-CZZJAR3B.mjs.map → chunk-44MGBJ73.mjs.map} +1 -1
- package/dist/esm/chunk-4ADA5BE7.mjs +2 -0
- package/dist/esm/{chunk-7AQXAH6Q.mjs.map → chunk-4ADA5BE7.mjs.map} +1 -1
- package/dist/esm/chunk-4KTQIWUP.mjs +2 -0
- package/dist/esm/chunk-4KTQIWUP.mjs.map +1 -0
- package/dist/esm/chunk-5LO7FR2P.mjs +2 -0
- package/dist/esm/chunk-5LO7FR2P.mjs.map +1 -0
- package/dist/esm/chunk-62SCW5NH.mjs +2 -0
- package/dist/esm/{chunk-YS2OX7AB.mjs.map → chunk-62SCW5NH.mjs.map} +1 -1
- package/dist/esm/{chunk-DNYVUM3K.mjs → chunk-67OGU66P.mjs} +2 -2
- package/dist/esm/{chunk-DNYVUM3K.mjs.map → chunk-67OGU66P.mjs.map} +1 -1
- package/dist/esm/{chunk-XFSL7O6Q.mjs → chunk-72F5YXGC.mjs} +2 -2
- package/dist/esm/chunk-72F5YXGC.mjs.map +1 -0
- package/dist/esm/{chunk-N6XWY4UT.mjs → chunk-ARVSIDVB.mjs} +1 -1
- package/dist/esm/{chunk-N6XWY4UT.mjs.map → chunk-ARVSIDVB.mjs.map} +1 -1
- package/dist/esm/{chunk-WVMDCC4V.mjs → chunk-BFQRMCY2.mjs} +2 -2
- package/dist/esm/{chunk-WVMDCC4V.mjs.map → chunk-BFQRMCY2.mjs.map} +1 -1
- package/dist/esm/{chunk-XFS5O5GJ.mjs → chunk-BM4HBROC.mjs} +2 -2
- package/dist/esm/{chunk-XFS5O5GJ.mjs.map → chunk-BM4HBROC.mjs.map} +1 -1
- package/dist/esm/chunk-BPYLPPEQ.mjs +2 -0
- package/dist/esm/{chunk-V6AAQLLJ.mjs.map → chunk-BPYLPPEQ.mjs.map} +1 -1
- package/dist/esm/{chunk-3OJN4I42.mjs → chunk-BV4OOU5Y.mjs} +2 -2
- package/dist/esm/{chunk-3OJN4I42.mjs.map → chunk-BV4OOU5Y.mjs.map} +1 -1
- package/dist/esm/chunk-CYDWEPFL.mjs +1 -0
- package/dist/esm/chunk-CYDWEPFL.mjs.map +1 -0
- package/dist/esm/chunk-DRPMIJH7.mjs +2 -0
- package/dist/esm/chunk-DRPMIJH7.mjs.map +1 -0
- package/dist/esm/chunk-EFIYW4WK.mjs +2 -0
- package/dist/esm/chunk-EWTHPMEE.mjs +2 -0
- package/dist/esm/{chunk-LAXIJRYU.mjs.map → chunk-EWTHPMEE.mjs.map} +1 -1
- package/dist/esm/chunk-GAI75GOG.mjs +2 -0
- package/dist/esm/{chunk-J3QOSJFP.mjs.map → chunk-GAI75GOG.mjs.map} +1 -1
- package/dist/esm/{chunk-BC2NOUYT.mjs → chunk-GTC7WHMV.mjs} +2 -2
- package/dist/esm/{chunk-BC2NOUYT.mjs.map → chunk-GTC7WHMV.mjs.map} +1 -1
- package/dist/esm/{chunk-MIBLZSNS.mjs → chunk-GU4OUKAF.mjs} +2 -2
- package/dist/esm/chunk-GU4OUKAF.mjs.map +1 -0
- package/dist/esm/{chunk-27P7PELS.mjs → chunk-HA6JD5R6.mjs} +2 -2
- package/dist/esm/{chunk-27P7PELS.mjs.map → chunk-HA6JD5R6.mjs.map} +1 -1
- package/dist/esm/chunk-HO7K2UAK.mjs +2 -0
- package/dist/esm/{chunk-ADR4XQPR.mjs.map → chunk-HO7K2UAK.mjs.map} +1 -1
- package/dist/esm/chunk-HVADSXTB.mjs +2 -0
- package/dist/esm/{chunk-LU6VS7PJ.mjs.map → chunk-HVADSXTB.mjs.map} +1 -1
- package/dist/esm/chunk-IBH7IOIM.mjs +2 -0
- package/dist/esm/{chunk-ZXJ5ZBTL.mjs.map → chunk-IBH7IOIM.mjs.map} +1 -1
- package/dist/esm/chunk-J5BH7V37.mjs +2 -0
- package/dist/esm/chunk-J5BH7V37.mjs.map +1 -0
- package/dist/esm/chunk-JZNLZMUC.mjs +2 -0
- package/dist/esm/{chunk-WGXAIQ7K.mjs.map → chunk-JZNLZMUC.mjs.map} +1 -1
- package/dist/esm/chunk-KQXRH5FK.mjs +2 -0
- package/dist/esm/{chunk-UQIOMAXE.mjs.map → chunk-KQXRH5FK.mjs.map} +1 -1
- package/dist/esm/chunk-L7AA75WZ.mjs +2 -0
- package/dist/esm/chunk-L7AA75WZ.mjs.map +1 -0
- package/dist/esm/chunk-LACQ537H.mjs +2 -0
- package/dist/esm/{chunk-KFP7MDSD.mjs.map → chunk-LACQ537H.mjs.map} +1 -1
- package/dist/esm/{chunk-2MQZUGO6.mjs → chunk-LDAD54H5.mjs} +1 -1
- package/dist/esm/chunk-LDAD54H5.mjs.map +1 -0
- package/dist/esm/chunk-LXW3A3MJ.mjs +2 -0
- package/dist/esm/chunk-LXW3A3MJ.mjs.map +1 -0
- package/dist/esm/{chunk-KYWYIK5P.mjs → chunk-M2V2POWK.mjs} +2 -2
- package/dist/esm/chunk-M2V2POWK.mjs.map +1 -0
- package/dist/esm/chunk-ND3ZQKTT.mjs +2 -0
- package/dist/esm/chunk-ND3ZQKTT.mjs.map +1 -0
- package/dist/esm/chunk-NZIJV4O2.mjs +2 -0
- package/dist/esm/{chunk-HH5RSP2H.mjs.map → chunk-NZIJV4O2.mjs.map} +1 -1
- package/dist/esm/chunk-O2B54NZT.mjs +2 -0
- package/dist/esm/chunk-O2B54NZT.mjs.map +1 -0
- package/dist/esm/chunk-OCW2L33Q.mjs +2 -0
- package/dist/esm/chunk-OCW2L33Q.mjs.map +1 -0
- package/dist/esm/{chunk-PJDVHU7X.mjs → chunk-OCYS4V2V.mjs} +2 -2
- package/dist/esm/{chunk-PJDVHU7X.mjs.map → chunk-OCYS4V2V.mjs.map} +1 -1
- package/dist/esm/{chunk-VAGYTPSI.mjs → chunk-OSTH5JRX.mjs} +2 -2
- package/dist/esm/chunk-OSTH5JRX.mjs.map +1 -0
- package/dist/esm/chunk-OVHY6ZUJ.mjs +2 -0
- package/dist/esm/{chunk-JTGGMXB7.mjs.map → chunk-OVHY6ZUJ.mjs.map} +1 -1
- package/dist/esm/chunk-PZCMSHY6.mjs +2 -0
- package/dist/esm/chunk-QWVR4RCV.mjs +2 -0
- package/dist/esm/{chunk-IPJKGHQY.mjs.map → chunk-QWVR4RCV.mjs.map} +1 -1
- package/dist/esm/chunk-R3KWVOFG.mjs +2 -0
- package/dist/esm/{chunk-KWJ6XKNF.mjs.map → chunk-R3KWVOFG.mjs.map} +1 -1
- package/dist/esm/{chunk-TXUMB5ZO.mjs → chunk-RHS5ROLP.mjs} +2 -2
- package/dist/esm/chunk-RHS5ROLP.mjs.map +1 -0
- package/dist/esm/{chunk-IXMH6AXJ.mjs → chunk-RKKU2SY5.mjs} +2 -2
- package/dist/esm/chunk-RYETO74W.mjs +2 -0
- package/dist/esm/{chunk-BIUGRAMO.mjs.map → chunk-RYETO74W.mjs.map} +1 -1
- package/dist/esm/chunk-S36IYY6K.mjs +2 -0
- package/dist/esm/{chunk-DXUIJ6KA.mjs.map → chunk-S36IYY6K.mjs.map} +1 -1
- package/dist/esm/chunk-TGKB6ALT.mjs +2 -0
- package/dist/esm/chunk-TGKB6ALT.mjs.map +1 -0
- package/dist/esm/chunk-TIH6ARYP.mjs +2 -0
- package/dist/esm/{chunk-IZHPCZE3.mjs.map → chunk-TIH6ARYP.mjs.map} +1 -1
- package/dist/esm/chunk-TPWSHFFI.mjs +2 -0
- package/dist/esm/chunk-TPWSHFFI.mjs.map +1 -0
- package/dist/esm/chunk-U25N2VWA.mjs +2 -0
- package/dist/esm/{chunk-FNB6CFQR.mjs.map → chunk-U25N2VWA.mjs.map} +1 -1
- package/dist/esm/chunk-U6SZNNVL.mjs +2 -0
- package/dist/esm/chunk-U6SZNNVL.mjs.map +1 -0
- package/dist/esm/{chunk-EKAOAGNQ.mjs → chunk-UAAI3NCA.mjs} +2 -2
- package/dist/esm/{chunk-BTK34A5U.mjs → chunk-UDBH4CER.mjs} +42 -21
- package/dist/esm/chunk-UDBH4CER.mjs.map +1 -0
- package/dist/esm/chunk-VWVEDCBM.mjs +2 -0
- package/dist/esm/{chunk-BREUBEPM.mjs.map → chunk-VWVEDCBM.mjs.map} +1 -1
- package/dist/esm/{chunk-ZT2A5ABR.mjs → chunk-WEJAI26R.mjs} +2 -2
- package/dist/esm/{chunk-ZT2A5ABR.mjs.map → chunk-WEJAI26R.mjs.map} +1 -1
- package/dist/esm/chunk-WL4OXZLN.mjs +2 -0
- package/dist/esm/{chunk-KNLMUSIO.mjs.map → chunk-WL4OXZLN.mjs.map} +1 -1
- package/dist/esm/chunk-X32O46IB.mjs +2 -0
- package/dist/esm/{chunk-PDLUCVJB.mjs.map → chunk-X32O46IB.mjs.map} +1 -1
- package/dist/esm/{chunk-KPESAXVI.mjs → chunk-Y2HRRUZ6.mjs} +2 -2
- package/dist/esm/{chunk-GUT3G5CG.mjs → chunk-Y7VR7X5W.mjs} +2 -2
- package/dist/esm/chunk-Y7VR7X5W.mjs.map +1 -0
- package/dist/esm/chunk-YYRDFZE6.mjs +2 -0
- package/dist/esm/{chunk-UVGCVCNG.mjs.map → chunk-YYRDFZE6.mjs.map} +1 -1
- package/dist/esm/{chunk-TYHBYRUA.mjs → chunk-ZLW65YCO.mjs} +2 -2
- package/dist/esm/chunk-ZLW65YCO.mjs.map +1 -0
- package/dist/esm/chunk-ZUHN56GM.mjs +2 -0
- package/dist/esm/chunk-ZUHN56GM.mjs.map +1 -0
- package/dist/esm/{chunk-XNFEUXDS.mjs → chunk-ZWH2ESXT.mjs} +1 -1
- package/dist/esm/chunk-ZWH2ESXT.mjs.map +1 -0
- package/dist/esm/client/{core.d.ts → core.d.mts} +9 -9
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/{get.d.ts → get.d.mts} +12 -12
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +11 -0
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/{post.d.ts → post.d.mts} +14 -14
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/client/{types.d.ts → types.d.mts} +5 -5
- package/dist/esm/client/types.mjs +1 -1
- package/dist/esm/core/{account.d.ts → account.d.mts} +13 -13
- package/dist/esm/core/account.mjs +1 -1
- package/dist/esm/core/{accountAddress.d.ts → accountAddress.d.mts} +11 -11
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/{authenticationKey.d.ts → authenticationKey.d.mts} +12 -12
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/{common.d.ts → common.d.mts} +1 -1
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/{anyPublicKey.d.ts → anyPublicKey.d.mts} +11 -11
- package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
- package/dist/esm/core/crypto/{anySignature.d.ts → anySignature.d.mts} +10 -10
- package/dist/esm/core/crypto/anySignature.mjs +1 -1
- package/dist/esm/core/crypto/{asymmetricCrypto.d.ts → asymmetricCrypto.d.mts} +8 -8
- package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
- package/dist/esm/core/crypto/{ed25519.d.ts → ed25519.d.mts} +10 -10
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/{hdKey.d.ts → hdKey.d.mts} +1 -1
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +17 -0
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/{multiEd25519.d.ts → multiEd25519.d.mts} +11 -11
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/{multiKey.d.ts → multiKey.d.mts} +12 -12
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/{secp256k1.d.ts → secp256k1.d.mts} +10 -10
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/{hex.d.ts → hex.d.mts} +6 -6
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +21 -0
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +64 -0
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/{account.d.ts → account.d.mts} +17 -17
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +150 -0
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +43 -0
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/{digitalAsset.d.ts → digitalAsset.d.mts} +34 -34
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/{event.d.ts → event.d.mts} +14 -14
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +29 -0
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/{fungibleAsset.d.ts → fungibleAsset.d.mts} +7 -7
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/{general.d.ts → general.d.mts} +11 -11
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/{staking.d.ts → staking.d.mts} +13 -13
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/{transaction.d.ts → transaction.d.mts} +7 -7
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/{transactionSubmission.d.ts → transactionSubmission.d.mts} +41 -72
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/transactions/authenticator/{account.d.ts → account.d.mts} +15 -15
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +19 -0
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/{transaction.d.ts → transaction.d.mts} +18 -18
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +39 -0
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +21 -0
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/{identifier.d.ts → identifier.d.mts} +9 -9
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +29 -0
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/{moduleId.d.ts → moduleId.d.mts} +12 -12
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/{rawTransaction.d.ts → rawTransaction.d.mts} +16 -16
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/{rotationProofChallenge.d.ts → rotationProofChallenge.d.mts} +14 -14
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/{signedTransaction.d.ts → signedTransaction.d.mts} +25 -25
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/{transactionArgument.d.ts → transactionArgument.d.mts} +8 -8
- package/dist/esm/transactions/instances/{transactionPayload.d.ts → transactionPayload.d.mts} +14 -14
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/{helpers.d.ts → helpers.d.mts} +31 -31
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +35 -0
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +54 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/{transactionBuilder.d.ts → transactionBuilder.d.mts} +35 -40
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/{index.d.ts → index.d.mts} +12 -12
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/{parser.d.ts → parser.d.mts} +14 -13
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/{types.d.ts → types.d.mts} +60 -97
- package/dist/esm/types/generated/{operations.d.ts → operations.d.mts} +105 -79
- package/dist/esm/types/generated/{queries.d.ts → queries.d.mts} +35 -32
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/{types.d.ts → types.d.mts} +3184 -3146
- package/dist/esm/types/generated/types.mjs +1 -1
- package/dist/esm/types/generated/types.mjs.map +1 -1
- package/dist/esm/types/{index.d.ts → index.d.mts} +94 -92
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +63 -0
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +2 -0
- package/dist/esm/utils/index.mjs +2 -0
- package/dist/esm/utils/index.mjs.map +1 -0
- package/dist/esm/utils/memoize.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +30 -30
- package/src/api/account.ts +2 -2
- package/src/api/ans.ts +250 -11
- package/src/api/aptos.ts +20 -0
- package/src/api/coin.ts +4 -4
- package/src/api/digitalAsset.ts +3 -3
- package/src/api/event.ts +2 -2
- package/src/api/general.ts +4 -4
- 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 +4 -138
- package/src/client/core.ts +1 -1
- package/src/client/get.ts +6 -2
- package/src/client/post.ts +12 -4
- package/src/index.ts +1 -1
- package/src/internal/account.ts +2 -2
- package/src/internal/ans.ts +408 -22
- package/src/internal/coin.ts +5 -5
- package/src/internal/digitalAsset.ts +5 -5
- package/src/internal/event.ts +2 -2
- package/src/internal/general.ts +7 -6
- package/src/internal/queries/ansTokenFragment.graphql +9 -0
- package/src/internal/queries/getNames.graphql +11 -0
- package/src/internal/transactionSubmission.ts +52 -12
- package/src/transactions/transactionBuilder/helpers.ts +2 -2
- package/src/transactions/transactionBuilder/transactionBuilder.ts +22 -46
- package/src/transactions/typeTag/parser.ts +10 -2
- package/src/transactions/types.ts +16 -56
- package/src/types/generated/operations.ts +62 -33
- package/src/types/generated/queries.ts +56 -22
- package/src/types/generated/types.ts +2253 -2251
- package/src/types/index.ts +16 -10
- package/src/types/indexer.ts +3 -0
- package/src/utils/index.ts +2 -0
- package/dist/esm/api/ans.d.ts +0 -79
- package/dist/esm/api/aptos.d.ts +0 -72
- package/dist/esm/api/coin.d.ts +0 -59
- package/dist/esm/api/index.d.ts +0 -46
- package/dist/esm/api/transactionSubmission.d.ts +0 -142
- package/dist/esm/bcs/index.d.ts +0 -14
- package/dist/esm/chunk-2444YR3Y.mjs +0 -2
- package/dist/esm/chunk-2444YR3Y.mjs.map +0 -1
- package/dist/esm/chunk-2B5QXKPU.mjs.map +0 -1
- package/dist/esm/chunk-2MQZUGO6.mjs.map +0 -1
- package/dist/esm/chunk-3YOV42H5.mjs +0 -2
- package/dist/esm/chunk-3YOV42H5.mjs.map +0 -1
- package/dist/esm/chunk-7AIV5FEN.mjs +0 -2
- package/dist/esm/chunk-7AIV5FEN.mjs.map +0 -1
- package/dist/esm/chunk-7AQXAH6Q.mjs +0 -2
- package/dist/esm/chunk-7TL2MY2B.mjs +0 -2
- package/dist/esm/chunk-7TL2MY2B.mjs.map +0 -1
- package/dist/esm/chunk-ADR4XQPR.mjs +0 -2
- package/dist/esm/chunk-AY2HWVDO.mjs +0 -2
- package/dist/esm/chunk-AY2HWVDO.mjs.map +0 -1
- package/dist/esm/chunk-BIUGRAMO.mjs +0 -2
- package/dist/esm/chunk-BREUBEPM.mjs +0 -2
- package/dist/esm/chunk-BTK34A5U.mjs.map +0 -1
- package/dist/esm/chunk-CZZJAR3B.mjs +0 -2
- package/dist/esm/chunk-DXUIJ6KA.mjs +0 -2
- package/dist/esm/chunk-E72CFUU4.mjs +0 -2
- package/dist/esm/chunk-FHJ7F7Z6.mjs +0 -2
- package/dist/esm/chunk-FHJ7F7Z6.mjs.map +0 -1
- package/dist/esm/chunk-FNB6CFQR.mjs +0 -2
- package/dist/esm/chunk-GUT3G5CG.mjs.map +0 -1
- package/dist/esm/chunk-HH5RSP2H.mjs +0 -2
- package/dist/esm/chunk-IPJKGHQY.mjs +0 -2
- package/dist/esm/chunk-IZHPCZE3.mjs +0 -2
- package/dist/esm/chunk-J3QOSJFP.mjs +0 -2
- package/dist/esm/chunk-J5OKXARS.mjs +0 -2
- package/dist/esm/chunk-J5OKXARS.mjs.map +0 -1
- package/dist/esm/chunk-JTGGMXB7.mjs +0 -2
- package/dist/esm/chunk-KFP7MDSD.mjs +0 -2
- package/dist/esm/chunk-KJDY66XF.mjs +0 -2
- package/dist/esm/chunk-KJDY66XF.mjs.map +0 -1
- package/dist/esm/chunk-KNLMUSIO.mjs +0 -2
- package/dist/esm/chunk-KWJ6XKNF.mjs +0 -2
- package/dist/esm/chunk-KYWYIK5P.mjs.map +0 -1
- package/dist/esm/chunk-LAXIJRYU.mjs +0 -2
- package/dist/esm/chunk-LU6VS7PJ.mjs +0 -2
- package/dist/esm/chunk-MIBLZSNS.mjs.map +0 -1
- package/dist/esm/chunk-NKTKHC3Z.mjs +0 -2
- package/dist/esm/chunk-NKTKHC3Z.mjs.map +0 -1
- package/dist/esm/chunk-O243HOP3.mjs.map +0 -1
- package/dist/esm/chunk-PDLUCVJB.mjs +0 -2
- package/dist/esm/chunk-SJLO3JIH.mjs +0 -2
- package/dist/esm/chunk-TXUMB5ZO.mjs.map +0 -1
- package/dist/esm/chunk-TYHBYRUA.mjs.map +0 -1
- package/dist/esm/chunk-UQIOMAXE.mjs +0 -2
- package/dist/esm/chunk-UVGCVCNG.mjs +0 -2
- package/dist/esm/chunk-V6AAQLLJ.mjs +0 -2
- package/dist/esm/chunk-VAGYTPSI.mjs.map +0 -1
- package/dist/esm/chunk-WGXAIQ7K.mjs +0 -2
- package/dist/esm/chunk-WNEZCERQ.mjs +0 -2
- package/dist/esm/chunk-WNEZCERQ.mjs.map +0 -1
- package/dist/esm/chunk-XFSL7O6Q.mjs.map +0 -1
- package/dist/esm/chunk-YS2OX7AB.mjs +0 -2
- package/dist/esm/chunk-Z56AKXJ7.mjs +0 -2
- package/dist/esm/chunk-Z56AKXJ7.mjs.map +0 -1
- package/dist/esm/chunk-ZXJ5ZBTL.mjs +0 -2
- package/dist/esm/client/index.d.ts +0 -11
- package/dist/esm/core/crypto/index.d.ts +0 -17
- package/dist/esm/core/index.d.ts +0 -21
- package/dist/esm/index.d.ts +0 -60
- package/dist/esm/internal/ans.d.ts +0 -83
- package/dist/esm/internal/coin.d.ts +0 -43
- package/dist/esm/internal/faucet.d.ts +0 -29
- package/dist/esm/transactions/authenticator/index.d.ts +0 -19
- package/dist/esm/transactions/index.d.ts +0 -39
- package/dist/esm/transactions/instances/chainId.d.ts +0 -21
- package/dist/esm/transactions/instances/index.d.ts +0 -29
- package/dist/esm/transactions/transactionBuilder/index.d.ts +0 -35
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.ts +0 -54
- package/dist/esm/types/indexer.d.ts +0 -62
- /package/dist/esm/{chunk-XNFEUXDS.mjs.map → api/transactionSubmission/build.mjs.map} +0 -0
- /package/dist/esm/{chunk-E72CFUU4.mjs.map → chunk-EFIYW4WK.mjs.map} +0 -0
- /package/dist/esm/{chunk-SJLO3JIH.mjs.map → chunk-PZCMSHY6.mjs.map} +0 -0
- /package/dist/esm/{chunk-IXMH6AXJ.mjs.map → chunk-RKKU2SY5.mjs.map} +0 -0
- /package/dist/esm/{chunk-EKAOAGNQ.mjs.map → chunk-UAAI3NCA.mjs.map} +0 -0
- /package/dist/esm/{chunk-KPESAXVI.mjs.map → chunk-Y2HRRUZ6.mjs.map} +0 -0
- /package/dist/esm/utils/{apiEndpoints.d.ts → apiEndpoints.d.mts} +0 -0
- /package/dist/esm/utils/{const.d.ts → const.d.mts} +0 -0
- /package/dist/esm/utils/{helpers.d.ts → helpers.d.mts} +0 -0
- /package/dist/esm/utils/{memoize.d.ts → memoize.d.mts} +0 -0
- /package/dist/esm/{version.d.ts → version.d.mts} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AptosConfig } from './aptosConfig.
|
|
2
|
-
import { Account as Account$1 } from '../core/account.
|
|
3
|
-
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.
|
|
4
|
-
import { PrivateKey } from '../core/crypto/asymmetricCrypto.
|
|
5
|
-
import { AccountData, PaginationArgs, LedgerVersion, MoveModuleBytecode, TransactionResponse, MoveResource,
|
|
6
|
-
import { TokenStandard, OrderBy, GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetAccountOwnedObjectsResponse } from '../types/indexer.
|
|
7
|
-
import '../utils/apiEndpoints.
|
|
8
|
-
import '../utils/const.
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../core/
|
|
12
|
-
import '../
|
|
13
|
-
import '../
|
|
14
|
-
import '../
|
|
15
|
-
import '../
|
|
16
|
-
import '../
|
|
1
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
|
+
import { Account as Account$1 } from '../core/account.mjs';
|
|
3
|
+
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs';
|
|
4
|
+
import { PrivateKey } from '../core/crypto/asymmetricCrypto.mjs';
|
|
5
|
+
import { AccountData, PaginationArgs, LedgerVersion, MoveModuleBytecode, TransactionResponse, MoveResource, MoveStructId } from '../types/index.mjs';
|
|
6
|
+
import { TokenStandard, OrderBy, GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetAccountOwnedObjectsResponse } from '../types/indexer.mjs';
|
|
7
|
+
import '../utils/apiEndpoints.mjs';
|
|
8
|
+
import '../utils/const.mjs';
|
|
9
|
+
import '../core/authenticationKey.mjs';
|
|
10
|
+
import '../core/hex.mjs';
|
|
11
|
+
import '../core/common.mjs';
|
|
12
|
+
import '../bcs/serializer.mjs';
|
|
13
|
+
import '../bcs/deserializer.mjs';
|
|
14
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
15
|
+
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.
|
|
@@ -130,7 +130,7 @@ declare class Account {
|
|
|
130
130
|
*/
|
|
131
131
|
getAccountResource<T extends {} = any>(args: {
|
|
132
132
|
accountAddress: AccountAddressInput;
|
|
133
|
-
resourceType:
|
|
133
|
+
resourceType: MoveStructId;
|
|
134
134
|
options?: LedgerVersion;
|
|
135
135
|
}): Promise<T>;
|
|
136
136
|
/**
|
package/dist/esm/api/account.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-ZLW65YCO.mjs";import"../chunk-33T7WTB6.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-GAI75GOG.mjs";import"../chunk-IBH7IOIM.mjs";import"../chunk-44MGBJ73.mjs";import"../chunk-YYRDFZE6.mjs";import"../chunk-62SCW5NH.mjs";import"../chunk-U25N2VWA.mjs";import"../chunk-RYETO74W.mjs";import"../chunk-EFIYW4WK.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-HVADSXTB.mjs";import"../chunk-BPYLPPEQ.mjs";import"../chunk-4ADA5BE7.mjs";import"../chunk-X32O46IB.mjs";import"../chunk-GTC7WHMV.mjs";import"../chunk-NZIJV4O2.mjs";import"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-GU4OUKAF.mjs";import"../chunk-UDBH4CER.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-ND3ZQKTT.mjs";import"../chunk-TPWSHFFI.mjs";import"../chunk-LDAD54H5.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Account};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { Account } from '../core/account.mjs';
|
|
2
|
+
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
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';
|
|
6
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
7
|
+
import { GetANSNameResponse } from '../types/indexer.mjs';
|
|
8
|
+
import '../core/authenticationKey.mjs';
|
|
9
|
+
import '../core/crypto/asymmetricCrypto.mjs';
|
|
10
|
+
import '../bcs/serializer.mjs';
|
|
11
|
+
import '../core/hex.mjs';
|
|
12
|
+
import '../core/common.mjs';
|
|
13
|
+
import '../bcs/deserializer.mjs';
|
|
14
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
15
|
+
import '../utils/apiEndpoints.mjs';
|
|
16
|
+
import '../types/generated/types.mjs';
|
|
17
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
18
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
19
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
20
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
21
|
+
import '../transactions/instances/chainId.mjs';
|
|
22
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
23
|
+
import '../transactions/instances/identifier.mjs';
|
|
24
|
+
import '../transactions/instances/moduleId.mjs';
|
|
25
|
+
import '../transactions/typeTag/index.mjs';
|
|
26
|
+
import '../transactions/authenticator/account.mjs';
|
|
27
|
+
import '../core/crypto/anyPublicKey.mjs';
|
|
28
|
+
import '../core/crypto/anySignature.mjs';
|
|
29
|
+
import '../core/crypto/ed25519.mjs';
|
|
30
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
31
|
+
import '../core/crypto/multiKey.mjs';
|
|
32
|
+
import '../utils/const.mjs';
|
|
33
|
+
import '../types/generated/operations.mjs';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A class to handle all `ANS` operations
|
|
37
|
+
*/
|
|
38
|
+
declare class ANS {
|
|
39
|
+
readonly config: AptosConfig;
|
|
40
|
+
constructor(config: AptosConfig);
|
|
41
|
+
/**
|
|
42
|
+
* Retrieve the owner address of a domain name or subdomain name from the contract.
|
|
43
|
+
*
|
|
44
|
+
* ```ts
|
|
45
|
+
* // Will return the owner address of "test.aptos.apt" or undefined
|
|
46
|
+
* const owner = await aptos.getOwnerAddress({name: "test.aptos"})
|
|
47
|
+
* // owner = 0x123...
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param args.name - A string of the name to retrieve
|
|
51
|
+
*
|
|
52
|
+
* @returns MoveAddressType if the name is owned, undefined otherwise
|
|
53
|
+
*/
|
|
54
|
+
getOwnerAddress(args: {
|
|
55
|
+
name: string;
|
|
56
|
+
}): Promise<MoveAddressType | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieve the expiration time of a domain name or subdomain name from the contract.
|
|
59
|
+
*
|
|
60
|
+
* ```ts
|
|
61
|
+
* // Will return the expiration of "test.aptos.apt" or undefined
|
|
62
|
+
* const exp = await aptos.getExpiration({name: "test.aptos"})
|
|
63
|
+
* // new Date(exp) would give you the date in question: 2021-01-01T00:00:00.000Z
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param args.name - A string of the name to retrieve
|
|
67
|
+
*
|
|
68
|
+
* @returns number as a unix timestamp in seconds.
|
|
69
|
+
*/
|
|
70
|
+
getExpiration(args: {
|
|
71
|
+
name: string;
|
|
72
|
+
}): Promise<number | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve the target address of a domain or subdomain name. This is the
|
|
75
|
+
* address the name points to for use on chain. Note, the target address can
|
|
76
|
+
* point to addresses that are not the owner of the name
|
|
77
|
+
*
|
|
78
|
+
* ```ts
|
|
79
|
+
* const targetAddr = await aptos.getTargetAddress({name: "test.aptos"})
|
|
80
|
+
* // targetAddr = 0x123...
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.
|
|
84
|
+
*
|
|
85
|
+
* @returns MoveAddressType if the name has a target, undefined otherwise
|
|
86
|
+
*/
|
|
87
|
+
getTargetAddress(args: {
|
|
88
|
+
name: string;
|
|
89
|
+
}): Promise<MoveAddressType | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the target address of a domain or subdomain name. This is the
|
|
92
|
+
* address the name points to for use on chain. Note, the target address can
|
|
93
|
+
* point to addresses that are not the owner of the name
|
|
94
|
+
*
|
|
95
|
+
* ```ts
|
|
96
|
+
* await aptos.setTargetAddress({sender: alice, name: "test.aptos", address: bob.accountAddress.toString})
|
|
97
|
+
* const address = await aptos.getTargetAddress({name: "test.aptos"})
|
|
98
|
+
* // address = bob.accountAddress.toString()
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
|
|
102
|
+
* @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
|
|
103
|
+
*
|
|
104
|
+
* @returns SingleSignerTransaction
|
|
105
|
+
*/
|
|
106
|
+
setTargetAddress(args: {
|
|
107
|
+
sender: Account;
|
|
108
|
+
name: string;
|
|
109
|
+
address: AccountAddressInput;
|
|
110
|
+
options?: InputGenerateTransactionOptions;
|
|
111
|
+
}): Promise<SingleSignerTransaction>;
|
|
112
|
+
/**
|
|
113
|
+
* Retrieve the primary name for an account. An account can have
|
|
114
|
+
* multiple names that target it, but only a single name that is primary. An
|
|
115
|
+
* account also may not have a primary name.
|
|
116
|
+
*
|
|
117
|
+
* ```ts
|
|
118
|
+
* const name = await aptos.getPrimaryName({address: alice.accountAddress.toString()})
|
|
119
|
+
* // name = test.aptos
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* @param args.address - A AccountAddressInput (address) of the account
|
|
123
|
+
*
|
|
124
|
+
* @returns a string if the account has a primary name, undefined otherwise
|
|
125
|
+
*/
|
|
126
|
+
getPrimaryName(args: {
|
|
127
|
+
address: AccountAddressInput;
|
|
128
|
+
}): Promise<string | undefined>;
|
|
129
|
+
/**
|
|
130
|
+
* Sets the primary name for the sender. An account can have
|
|
131
|
+
* multiple names that target it, but only a single name that is primary. An
|
|
132
|
+
* account also may not have a primary name.
|
|
133
|
+
*
|
|
134
|
+
* ```ts
|
|
135
|
+
* await aptos.setPrimaryName({sender: alice, name: "test.aptos"})
|
|
136
|
+
* const primaryName = await aptos.getPrimaryName({address: alice.accountAddress.toString()})
|
|
137
|
+
* // primaryName = test.aptos
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* @param args.sender - The sender account
|
|
141
|
+
* @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
|
|
142
|
+
*
|
|
143
|
+
* @returns SingleSignerTransaction
|
|
144
|
+
*/
|
|
145
|
+
setPrimaryName(args: {
|
|
146
|
+
sender: Account;
|
|
147
|
+
name: string | null;
|
|
148
|
+
options?: InputGenerateTransactionOptions;
|
|
149
|
+
}): Promise<SingleSignerTransaction>;
|
|
150
|
+
/**
|
|
151
|
+
* Registers a new name
|
|
152
|
+
*
|
|
153
|
+
* ```ts
|
|
154
|
+
* // An example of registering a subdomain name assuming def.apt is already registered
|
|
155
|
+
* // and belongs to the sender alice.
|
|
156
|
+
* const txn = aptos.registerName({
|
|
157
|
+
* sender: alice,
|
|
158
|
+
* name: "test.aptos.apt",
|
|
159
|
+
* expiration: {
|
|
160
|
+
* policy: "subdomain:independent",
|
|
161
|
+
* expirationDate: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000),
|
|
162
|
+
* },
|
|
163
|
+
* });
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
166
|
+
* @param args.sender - The sender account
|
|
167
|
+
* @param args.name - A string of the name to register. This can be inclusive or exclusive of the .apt suffix.
|
|
168
|
+
* Examples include: "test", "test.apt", "test.aptos.apt", etc.
|
|
169
|
+
* @param args.expiration - An object with the expiration policy of the name.
|
|
170
|
+
* @param args.expiration.policy - 'domain' | 'subdomain:follow-domain' | 'subdomain:independent'
|
|
171
|
+
* - domain: Years is required and the name will expire after the given number of years.
|
|
172
|
+
* - subdomain:follow-domain: The name will expire at the same time as the domain name.
|
|
173
|
+
* - subdomain:independent: The name will expire at the given date.
|
|
174
|
+
* @param args.expiration.expirationDate - A javascript date of when the subdomain will expire. Only applicable when
|
|
175
|
+
* the policy is set to 'subdomain:independent'.
|
|
176
|
+
* @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.
|
|
177
|
+
* @param args.targetAddress optional - The address the domain name will resolve to. If not provided,
|
|
178
|
+
* the sender's address will be used.
|
|
179
|
+
* @param args.toAddress optional - The address to send the domain name to. If not provided,
|
|
180
|
+
* the transaction will be sent to the router.
|
|
181
|
+
*
|
|
182
|
+
* @returns SingleSignerTransaction
|
|
183
|
+
*/
|
|
184
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SingleSignerTransaction>;
|
|
185
|
+
/**
|
|
186
|
+
* Renews a domain name
|
|
187
|
+
*
|
|
188
|
+
* Note: If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.
|
|
189
|
+
*
|
|
190
|
+
* ```ts
|
|
191
|
+
* await aptos.renewDomain({sender: alice, name: "test"})
|
|
192
|
+
* // test.apt will be renewed for one year
|
|
193
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* @param args.sender - The sender account
|
|
196
|
+
* @param args.name - A string of the domain the subdomain will be under. The signer must be the domain owner.
|
|
197
|
+
* Subdomains cannot be renewed.
|
|
198
|
+
* @param args.years - The number of years to renew the name. Currently only one year is permitted.
|
|
199
|
+
*
|
|
200
|
+
* @returns SingleSignerTransaction
|
|
201
|
+
*/
|
|
202
|
+
renewDomain(args: {
|
|
203
|
+
sender: Account;
|
|
204
|
+
name: string;
|
|
205
|
+
years?: 1;
|
|
206
|
+
options?: InputGenerateTransactionOptions;
|
|
207
|
+
}): Promise<SingleSignerTransaction>;
|
|
208
|
+
/**
|
|
209
|
+
* Fetches a single name from the indexer
|
|
210
|
+
* @param args.name - A string of the name to retrieve, e.g. "test.aptos.apt"
|
|
211
|
+
* or "test.apt" or "test". Can be inclusive or exclusive of the .apt suffix.
|
|
212
|
+
* Can be a subdomain.
|
|
213
|
+
*
|
|
214
|
+
* @returns A promise of an ANSName or undefined
|
|
215
|
+
*/
|
|
216
|
+
getName(args: {
|
|
217
|
+
name: string;
|
|
218
|
+
}): Promise<GetANSNameResponse[0] | undefined>;
|
|
219
|
+
/**
|
|
220
|
+
* Fetches all names for an account (both top level domains and subdomains)
|
|
221
|
+
*
|
|
222
|
+
* @param args
|
|
223
|
+
* @param args.accountAddress - A AccountAddressInput of the address to retrieve names for.
|
|
224
|
+
* @param args.options.pagination.offset - Optional, the offset to start from when fetching names
|
|
225
|
+
* @param args.options.pagination.limit - Optional, A number of the names to fetch per request
|
|
226
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
227
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
228
|
+
*
|
|
229
|
+
* @returns a promise of an array of ANSName
|
|
230
|
+
*/
|
|
231
|
+
getAccountNames(args: GetAccountNamesArgs): Promise<GetANSNameResponse>;
|
|
232
|
+
/**
|
|
233
|
+
* Fetches all top level domain names for an account
|
|
234
|
+
*
|
|
235
|
+
* @param args
|
|
236
|
+
* @param args.accountAddress - A AccountAddressInput of the address to retrieve domain names for.
|
|
237
|
+
* @param args.options.pagination.offset - Optional, the offset to start from when fetching names
|
|
238
|
+
* @param args.options.pagination.limit - Optional, A number of the names to fetch per request
|
|
239
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
240
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
241
|
+
*
|
|
242
|
+
* @returns a promise of an array of ANSName
|
|
243
|
+
*/
|
|
244
|
+
getAccountDomains(args: GetAccountDomainsArgs): Promise<GetANSNameResponse>;
|
|
245
|
+
/**
|
|
246
|
+
* Fetches all subdomains names for an account
|
|
247
|
+
*
|
|
248
|
+
* @param args
|
|
249
|
+
* @param args.accountAddress - A AccountAddressInput of the address to retrieve subdomains names for.
|
|
250
|
+
* @param args.options.pagination.offset - Optional, the offset to start from when fetching names
|
|
251
|
+
* @param args.options.pagination.limit - Optional, A number of the names to fetch per request
|
|
252
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
253
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
254
|
+
*
|
|
255
|
+
* @returns a promise of an array of ANSName
|
|
256
|
+
*/
|
|
257
|
+
getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<GetANSNameResponse>;
|
|
258
|
+
/**
|
|
259
|
+
* Fetches all subdomains names for a given domain. Note, this will not return the domain itself.
|
|
260
|
+
*
|
|
261
|
+
* @param args
|
|
262
|
+
* @param args.domain - A string of the domain name: eg. "test.apt" or "test" (without the suffix of .apt)
|
|
263
|
+
* @param args.options.pagination.offset - Optional, the offset to start from when fetching names
|
|
264
|
+
* @param args.options.pagination.limit - Optional, A number of the names to fetch per request
|
|
265
|
+
* @param args.options.orderBy - The order to sort the names by
|
|
266
|
+
* @param args.options.where - Additional filters to apply to the query
|
|
267
|
+
*
|
|
268
|
+
* @returns a promise of an array of ANSName
|
|
269
|
+
*/
|
|
270
|
+
getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<GetANSNameResponse>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export { ANS };
|
package/dist/esm/api/ans.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-ZUHN56GM.mjs";import"../chunk-TGKB6ALT.mjs";import"../chunk-O2B54NZT.mjs";import"../chunk-LXW3A3MJ.mjs";import"../chunk-BFQRMCY2.mjs";import"../chunk-U6SZNNVL.mjs";import"../chunk-BV4OOU5Y.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-WL4OXZLN.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-HO7K2UAK.mjs";import"../chunk-JZNLZMUC.mjs";import"../chunk-S36IYY6K.mjs";import"../chunk-VWVEDCBM.mjs";import"../chunk-KQXRH5FK.mjs";import"../chunk-R3KWVOFG.mjs";import"../chunk-EWTHPMEE.mjs";import"../chunk-UAAI3NCA.mjs";import"../chunk-OVHY6ZUJ.mjs";import"../chunk-QWVR4RCV.mjs";import"../chunk-WEJAI26R.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-33T7WTB6.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-GAI75GOG.mjs";import"../chunk-IBH7IOIM.mjs";import"../chunk-44MGBJ73.mjs";import"../chunk-YYRDFZE6.mjs";import"../chunk-62SCW5NH.mjs";import"../chunk-U25N2VWA.mjs";import"../chunk-RYETO74W.mjs";import"../chunk-EFIYW4WK.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-HVADSXTB.mjs";import"../chunk-BPYLPPEQ.mjs";import"../chunk-4ADA5BE7.mjs";import"../chunk-X32O46IB.mjs";import"../chunk-GTC7WHMV.mjs";import"../chunk-NZIJV4O2.mjs";import"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-GU4OUKAF.mjs";import"../chunk-UDBH4CER.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-ND3ZQKTT.mjs";import"../chunk-TPWSHFFI.mjs";import"../chunk-LDAD54H5.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as ANS};
|
|
2
2
|
//# sourceMappingURL=ans.mjs.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Account } from './account.mjs';
|
|
2
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
3
|
+
import { Coin } from './coin.mjs';
|
|
4
|
+
import { DigitalAsset } from './digitalAsset.mjs';
|
|
5
|
+
import { Event } from './event.mjs';
|
|
6
|
+
import { Faucet } from './faucet.mjs';
|
|
7
|
+
import { FungibleAsset } from './fungibleAsset.mjs';
|
|
8
|
+
import { General } from './general.mjs';
|
|
9
|
+
import { ANS } from './ans.mjs';
|
|
10
|
+
import { Staking } from './staking.mjs';
|
|
11
|
+
import { Transaction } from './transaction.mjs';
|
|
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';
|
|
17
|
+
import '../core/account.mjs';
|
|
18
|
+
import '../core/accountAddress.mjs';
|
|
19
|
+
import '../bcs/serializer.mjs';
|
|
20
|
+
import '../core/hex.mjs';
|
|
21
|
+
import '../core/common.mjs';
|
|
22
|
+
import '../types/index.mjs';
|
|
23
|
+
import '../utils/apiEndpoints.mjs';
|
|
24
|
+
import '../types/indexer.mjs';
|
|
25
|
+
import '../types/generated/operations.mjs';
|
|
26
|
+
import '../types/generated/types.mjs';
|
|
27
|
+
import '../bcs/deserializer.mjs';
|
|
28
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
29
|
+
import '../core/authenticationKey.mjs';
|
|
30
|
+
import '../core/crypto/asymmetricCrypto.mjs';
|
|
31
|
+
import '../utils/const.mjs';
|
|
32
|
+
import '../transactions/types.mjs';
|
|
33
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
34
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
35
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
36
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
37
|
+
import '../transactions/instances/chainId.mjs';
|
|
38
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
39
|
+
import '../transactions/instances/identifier.mjs';
|
|
40
|
+
import '../transactions/instances/moduleId.mjs';
|
|
41
|
+
import '../transactions/typeTag/index.mjs';
|
|
42
|
+
import '../transactions/authenticator/account.mjs';
|
|
43
|
+
import '../core/crypto/anyPublicKey.mjs';
|
|
44
|
+
import '../core/crypto/anySignature.mjs';
|
|
45
|
+
import '../core/crypto/ed25519.mjs';
|
|
46
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
47
|
+
import '../core/crypto/multiKey.mjs';
|
|
48
|
+
import '../internal/digitalAsset.mjs';
|
|
49
|
+
import '../internal/ans.mjs';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* This class is the main entry point into Aptos's
|
|
53
|
+
* APIs and separates functionality into different namespaces.
|
|
54
|
+
*
|
|
55
|
+
* To use the SDK, create a new Aptos instance to get access
|
|
56
|
+
* to all the sdk functionality.
|
|
57
|
+
*/
|
|
58
|
+
declare class Aptos {
|
|
59
|
+
readonly config: AptosConfig;
|
|
60
|
+
readonly account: Account;
|
|
61
|
+
readonly ans: ANS;
|
|
62
|
+
readonly coin: Coin;
|
|
63
|
+
readonly digitalAsset: DigitalAsset;
|
|
64
|
+
readonly event: Event;
|
|
65
|
+
readonly faucet: Faucet;
|
|
66
|
+
readonly fungibleAsset: FungibleAsset;
|
|
67
|
+
readonly general: General;
|
|
68
|
+
readonly staking: Staking;
|
|
69
|
+
readonly transaction: Transaction;
|
|
70
|
+
readonly transactionSubmission: TransactionSubmission;
|
|
71
|
+
readonly build: Build;
|
|
72
|
+
readonly sign: Sign;
|
|
73
|
+
readonly simulate: Simulate;
|
|
74
|
+
readonly submit: Submit;
|
|
75
|
+
constructor(settings?: AptosConfig);
|
|
76
|
+
}
|
|
77
|
+
interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, ANS, TransactionSubmission {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { Aptos };
|
package/dist/esm/api/aptos.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-3732I6BR.mjs";import"../chunk-5LO7FR2P.mjs";import"../chunk-3VZ3OZKC.mjs";import"../chunk-DRPMIJH7.mjs";import"../chunk-4KTQIWUP.mjs";import"../chunk-J5BH7V37.mjs";import"../chunk-2OZRBXLM.mjs";import"../chunk-PZCMSHY6.mjs";import"../chunk-BM4HBROC.mjs";import"../chunk-67OGU66P.mjs";import"../chunk-LACQ537H.mjs";import"../chunk-M2V2POWK.mjs";import"../chunk-RKKU2SY5.mjs";import"../chunk-OCYS4V2V.mjs";import"../chunk-Y2HRRUZ6.mjs";import"../chunk-OCW2L33Q.mjs";import"../chunk-ZLW65YCO.mjs";import"../chunk-ZUHN56GM.mjs";import"../chunk-TGKB6ALT.mjs";import"../chunk-ARVSIDVB.mjs";import"../chunk-72F5YXGC.mjs";import"../chunk-L7AA75WZ.mjs";import"../chunk-OSTH5JRX.mjs";import"../chunk-RHS5ROLP.mjs";import"../chunk-O2B54NZT.mjs";import"../chunk-LXW3A3MJ.mjs";import"../chunk-BFQRMCY2.mjs";import"../chunk-U6SZNNVL.mjs";import"../chunk-BV4OOU5Y.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-WL4OXZLN.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-HO7K2UAK.mjs";import"../chunk-JZNLZMUC.mjs";import"../chunk-S36IYY6K.mjs";import"../chunk-VWVEDCBM.mjs";import"../chunk-KQXRH5FK.mjs";import"../chunk-R3KWVOFG.mjs";import"../chunk-EWTHPMEE.mjs";import"../chunk-UAAI3NCA.mjs";import"../chunk-OVHY6ZUJ.mjs";import"../chunk-QWVR4RCV.mjs";import"../chunk-WEJAI26R.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-33T7WTB6.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-GAI75GOG.mjs";import"../chunk-IBH7IOIM.mjs";import"../chunk-44MGBJ73.mjs";import"../chunk-YYRDFZE6.mjs";import"../chunk-62SCW5NH.mjs";import"../chunk-U25N2VWA.mjs";import"../chunk-RYETO74W.mjs";import"../chunk-EFIYW4WK.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-HVADSXTB.mjs";import"../chunk-BPYLPPEQ.mjs";import"../chunk-4ADA5BE7.mjs";import"../chunk-X32O46IB.mjs";import"../chunk-GTC7WHMV.mjs";import"../chunk-NZIJV4O2.mjs";import"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-GU4OUKAF.mjs";import"../chunk-UDBH4CER.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-ND3ZQKTT.mjs";import"../chunk-TPWSHFFI.mjs";import"../chunk-LDAD54H5.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Aptos};
|
|
2
2
|
//# sourceMappingURL=aptos.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Client, ClientConfig, AptosSettings } from '../types/index.
|
|
2
|
-
import { Network } from '../utils/apiEndpoints.
|
|
3
|
-
import { AptosApiType } from '../utils/const.
|
|
4
|
-
import '../types/indexer.
|
|
5
|
-
import '../types/generated/operations.
|
|
6
|
-
import '../types/generated/types.
|
|
1
|
+
import { Client, ClientConfig, AptosSettings } from '../types/index.mjs';
|
|
2
|
+
import { Network } from '../utils/apiEndpoints.mjs';
|
|
3
|
+
import { AptosApiType } from '../utils/const.mjs';
|
|
4
|
+
import '../types/indexer.mjs';
|
|
5
|
+
import '../types/generated/operations.mjs';
|
|
6
|
+
import '../types/generated/types.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* This class holds the config information for the SDK client instance.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-ARVSIDVB.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as AptosConfig};
|
|
2
2
|
//# sourceMappingURL=aptosConfig.mjs.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
|
+
import { Account } from '../core/account.mjs';
|
|
3
|
+
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
|
+
import { AnyNumber, MoveStructId } from '../types/index.mjs';
|
|
5
|
+
import { InputGenerateTransactionOptions, SingleSignerTransaction } from '../transactions/types.mjs';
|
|
6
|
+
import '../utils/apiEndpoints.mjs';
|
|
7
|
+
import '../utils/const.mjs';
|
|
8
|
+
import '../core/authenticationKey.mjs';
|
|
9
|
+
import '../core/crypto/asymmetricCrypto.mjs';
|
|
10
|
+
import '../bcs/serializer.mjs';
|
|
11
|
+
import '../core/hex.mjs';
|
|
12
|
+
import '../core/common.mjs';
|
|
13
|
+
import '../bcs/deserializer.mjs';
|
|
14
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
15
|
+
import '../types/indexer.mjs';
|
|
16
|
+
import '../types/generated/operations.mjs';
|
|
17
|
+
import '../types/generated/types.mjs';
|
|
18
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
19
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
20
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
21
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
22
|
+
import '../transactions/instances/chainId.mjs';
|
|
23
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
24
|
+
import '../transactions/instances/identifier.mjs';
|
|
25
|
+
import '../transactions/instances/moduleId.mjs';
|
|
26
|
+
import '../transactions/typeTag/index.mjs';
|
|
27
|
+
import '../transactions/authenticator/account.mjs';
|
|
28
|
+
import '../core/crypto/anyPublicKey.mjs';
|
|
29
|
+
import '../core/crypto/anySignature.mjs';
|
|
30
|
+
import '../core/crypto/ed25519.mjs';
|
|
31
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
32
|
+
import '../core/crypto/multiKey.mjs';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A class to handle all `Coin` operations
|
|
36
|
+
*/
|
|
37
|
+
declare class Coin {
|
|
38
|
+
readonly config: AptosConfig;
|
|
39
|
+
constructor(config: AptosConfig);
|
|
40
|
+
/**
|
|
41
|
+
* Generate a transfer coin transaction that can be simulated and/or signed and submitted
|
|
42
|
+
*
|
|
43
|
+
* @param args.sender The sender account
|
|
44
|
+
* @param args.recipient The recipient address
|
|
45
|
+
* @param args.amount The amount to transfer
|
|
46
|
+
* @param args.coinType optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin
|
|
47
|
+
*
|
|
48
|
+
* @returns SingleSignerTransaction
|
|
49
|
+
*/
|
|
50
|
+
transferCoinTransaction(args: {
|
|
51
|
+
sender: Account;
|
|
52
|
+
recipient: AccountAddressInput;
|
|
53
|
+
amount: AnyNumber;
|
|
54
|
+
coinType?: MoveStructId;
|
|
55
|
+
options?: InputGenerateTransactionOptions;
|
|
56
|
+
}): Promise<SingleSignerTransaction>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { Coin };
|
package/dist/esm/api/coin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-72F5YXGC.mjs";import"../chunk-L7AA75WZ.mjs";import"../chunk-O2B54NZT.mjs";import"../chunk-LXW3A3MJ.mjs";import"../chunk-BFQRMCY2.mjs";import"../chunk-U6SZNNVL.mjs";import"../chunk-BV4OOU5Y.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-WL4OXZLN.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-HO7K2UAK.mjs";import"../chunk-JZNLZMUC.mjs";import"../chunk-S36IYY6K.mjs";import"../chunk-VWVEDCBM.mjs";import"../chunk-KQXRH5FK.mjs";import"../chunk-R3KWVOFG.mjs";import"../chunk-EWTHPMEE.mjs";import"../chunk-UAAI3NCA.mjs";import"../chunk-OVHY6ZUJ.mjs";import"../chunk-QWVR4RCV.mjs";import"../chunk-WEJAI26R.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-33T7WTB6.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-GAI75GOG.mjs";import"../chunk-IBH7IOIM.mjs";import"../chunk-44MGBJ73.mjs";import"../chunk-YYRDFZE6.mjs";import"../chunk-62SCW5NH.mjs";import"../chunk-U25N2VWA.mjs";import"../chunk-RYETO74W.mjs";import"../chunk-EFIYW4WK.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-HVADSXTB.mjs";import"../chunk-BPYLPPEQ.mjs";import"../chunk-4ADA5BE7.mjs";import"../chunk-X32O46IB.mjs";import"../chunk-GTC7WHMV.mjs";import"../chunk-NZIJV4O2.mjs";import"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-GU4OUKAF.mjs";import"../chunk-UDBH4CER.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-ND3ZQKTT.mjs";import"../chunk-TPWSHFFI.mjs";import"../chunk-LDAD54H5.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Coin};
|
|
2
2
|
//# sourceMappingURL=coin.mjs.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { PaginationArgs } from '../types/index.
|
|
2
|
-
import { AptosConfig } from './aptosConfig.
|
|
3
|
-
import { Account } from '../core/account.
|
|
4
|
-
import { AccountAddressInput } from '../core/accountAddress.
|
|
5
|
-
import { InputGenerateTransactionOptions,
|
|
6
|
-
import { CreateCollectionOptions } from '../internal/digitalAsset.
|
|
7
|
-
import { TokenStandard, GetCollectionDataResponse, GetTokenDataResponse, GetCurrentTokenOwnershipResponse, OrderBy, GetOwnedTokensResponse, GetTokenActivityResponse } from '../types/indexer.
|
|
8
|
-
import '../utils/apiEndpoints.
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
12
|
-
import '../
|
|
13
|
-
import '../core/
|
|
14
|
-
import '../
|
|
15
|
-
import '../
|
|
16
|
-
import '../
|
|
17
|
-
import '../bcs/
|
|
18
|
-
import '../
|
|
19
|
-
import '../bcs/serializable/
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
22
|
-
import '../transactions/instances/
|
|
23
|
-
import '../transactions/instances/
|
|
24
|
-
import '../transactions/instances/
|
|
25
|
-
import '../transactions/
|
|
26
|
-
import '../transactions/
|
|
27
|
-
import '../
|
|
28
|
-
import '../
|
|
29
|
-
import '../core/crypto/
|
|
30
|
-
import '../core/crypto/
|
|
31
|
-
import '../core/crypto/
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
1
|
+
import { PaginationArgs } from '../types/index.mjs';
|
|
2
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
3
|
+
import { Account } from '../core/account.mjs';
|
|
4
|
+
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
5
|
+
import { InputGenerateTransactionOptions, SingleSignerTransaction } from '../transactions/types.mjs';
|
|
6
|
+
import { CreateCollectionOptions } from '../internal/digitalAsset.mjs';
|
|
7
|
+
import { TokenStandard, GetCollectionDataResponse, GetTokenDataResponse, GetCurrentTokenOwnershipResponse, OrderBy, GetOwnedTokensResponse, GetTokenActivityResponse } from '../types/indexer.mjs';
|
|
8
|
+
import '../utils/apiEndpoints.mjs';
|
|
9
|
+
import '../utils/const.mjs';
|
|
10
|
+
import '../core/authenticationKey.mjs';
|
|
11
|
+
import '../core/crypto/asymmetricCrypto.mjs';
|
|
12
|
+
import '../bcs/serializer.mjs';
|
|
13
|
+
import '../core/hex.mjs';
|
|
14
|
+
import '../core/common.mjs';
|
|
15
|
+
import '../bcs/deserializer.mjs';
|
|
16
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
17
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
18
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
19
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
20
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
21
|
+
import '../transactions/instances/chainId.mjs';
|
|
22
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
23
|
+
import '../transactions/instances/identifier.mjs';
|
|
24
|
+
import '../transactions/instances/moduleId.mjs';
|
|
25
|
+
import '../transactions/typeTag/index.mjs';
|
|
26
|
+
import '../transactions/authenticator/account.mjs';
|
|
27
|
+
import '../core/crypto/anyPublicKey.mjs';
|
|
28
|
+
import '../core/crypto/anySignature.mjs';
|
|
29
|
+
import '../core/crypto/ed25519.mjs';
|
|
30
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
31
|
+
import '../core/crypto/multiKey.mjs';
|
|
32
|
+
import '../types/generated/operations.mjs';
|
|
33
|
+
import '../types/generated/types.mjs';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* A class to query all `DigitalAsset` related queries on Aptos.
|
|
@@ -69,7 +69,7 @@ declare class DigitalAsset {
|
|
|
69
69
|
name: string;
|
|
70
70
|
uri: string;
|
|
71
71
|
options?: InputGenerateTransactionOptions;
|
|
72
|
-
} & CreateCollectionOptions): Promise<
|
|
72
|
+
} & CreateCollectionOptions): Promise<SingleSignerTransaction>;
|
|
73
73
|
/**
|
|
74
74
|
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
75
75
|
*
|
|
@@ -124,7 +124,7 @@ declare class DigitalAsset {
|
|
|
124
124
|
name: string;
|
|
125
125
|
uri: string;
|
|
126
126
|
options?: InputGenerateTransactionOptions;
|
|
127
|
-
}): Promise<
|
|
127
|
+
}): Promise<SingleSignerTransaction>;
|
|
128
128
|
/**
|
|
129
129
|
* Gets token data given the address of a token.
|
|
130
130
|
*
|