@aptos-labs/ts-sdk 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{cjs → browser}/index.d.ts +431 -237
- package/dist/browser/index.global.js +44 -42
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +5831 -0
- package/dist/common/index.js +406 -0
- package/dist/common/index.js.map +1 -0
- package/dist/esm/api/account.d.ts +292 -0
- package/dist/esm/api/account.mjs +2 -0
- package/dist/esm/api/account.mjs.map +1 -0
- package/dist/esm/api/ans.d.ts +79 -0
- package/dist/esm/api/ans.mjs +2 -0
- package/dist/esm/api/ans.mjs.map +1 -0
- package/dist/esm/api/aptos.d.ts +72 -0
- package/dist/esm/api/aptos.mjs +2 -0
- package/dist/esm/api/aptos.mjs.map +1 -0
- package/dist/esm/api/aptosConfig.d.ts +51 -0
- package/dist/esm/api/aptosConfig.mjs +2 -0
- package/dist/esm/api/aptosConfig.mjs.map +1 -0
- package/dist/esm/api/coin.d.ts +59 -0
- package/dist/esm/api/coin.mjs +2 -0
- package/dist/esm/api/coin.mjs.map +1 -0
- package/dist/esm/api/digitalAsset.d.ts +174 -0
- package/dist/esm/api/digitalAsset.mjs +2 -0
- package/dist/esm/api/digitalAsset.mjs.map +1 -0
- package/dist/esm/api/event.d.ts +74 -0
- package/dist/esm/api/event.mjs +2 -0
- package/dist/esm/api/event.mjs.map +1 -0
- package/dist/esm/api/faucet.d.ts +37 -0
- package/dist/esm/api/faucet.mjs +2 -0
- package/dist/esm/api/faucet.mjs.map +1 -0
- package/dist/esm/api/fungibleAsset.d.ts +72 -0
- package/dist/esm/api/fungibleAsset.mjs +2 -0
- package/dist/esm/api/fungibleAsset.mjs.map +1 -0
- package/dist/esm/api/general.d.ts +150 -0
- package/dist/esm/api/general.mjs +2 -0
- package/dist/esm/api/general.mjs.map +1 -0
- package/dist/esm/api/index.d.ts +46 -0
- package/dist/esm/api/index.mjs +2 -0
- package/dist/esm/api/index.mjs.map +1 -0
- package/dist/esm/api/staking.d.ts +53 -0
- package/dist/esm/api/staking.mjs +2 -0
- package/dist/esm/api/staking.mjs.map +1 -0
- package/dist/esm/api/transaction.d.ts +101 -0
- package/dist/esm/api/transaction.mjs +2 -0
- package/dist/esm/api/transaction.mjs.map +1 -0
- package/dist/esm/api/transactionSubmission.d.ts +142 -0
- package/dist/esm/api/transactionSubmission.mjs +2 -0
- package/dist/esm/api/transactionSubmission.mjs.map +1 -0
- package/dist/esm/bcs/consts.d.ts +14 -0
- package/dist/esm/bcs/consts.mjs +2 -0
- package/dist/esm/bcs/consts.mjs.map +1 -0
- package/dist/esm/bcs/deserializer.d.ts +150 -0
- package/dist/esm/bcs/deserializer.mjs +2 -0
- package/dist/esm/bcs/deserializer.mjs.map +1 -0
- package/dist/esm/bcs/index.d.ts +14 -0
- package/dist/esm/bcs/index.mjs +2 -0
- package/dist/esm/bcs/index.mjs.map +1 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.ts +40 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +2 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs.map +1 -0
- package/dist/esm/bcs/serializable/fixedBytes.d.ts +52 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs +2 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs.map +1 -0
- package/dist/esm/bcs/serializable/movePrimitives.d.ts +69 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs +2 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs.map +1 -0
- package/dist/esm/bcs/serializable/moveStructs.d.ts +284 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs +2 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs.map +1 -0
- package/dist/esm/bcs/serializer.d.ts +192 -0
- package/dist/esm/bcs/serializer.mjs +2 -0
- package/dist/esm/bcs/serializer.mjs.map +1 -0
- package/dist/esm/chunk-2444YR3Y.mjs +2 -0
- package/dist/esm/chunk-2444YR3Y.mjs.map +1 -0
- package/dist/esm/chunk-27P7PELS.mjs +2 -0
- package/dist/esm/chunk-27P7PELS.mjs.map +1 -0
- package/dist/esm/chunk-2B5QXKPU.mjs +2 -0
- package/dist/esm/chunk-2B5QXKPU.mjs.map +1 -0
- package/dist/esm/chunk-2MQZUGO6.mjs +2 -0
- package/dist/esm/chunk-2MQZUGO6.mjs.map +1 -0
- package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
- package/dist/esm/chunk-3JPVQHOR.mjs.map +1 -0
- package/dist/esm/chunk-3OJN4I42.mjs +2 -0
- package/dist/esm/chunk-3OJN4I42.mjs.map +1 -0
- package/dist/esm/chunk-3YOV42H5.mjs +2 -0
- package/dist/esm/chunk-3YOV42H5.mjs.map +1 -0
- package/dist/esm/chunk-4WPQQPUF.mjs +1 -0
- package/dist/esm/chunk-4WPQQPUF.mjs.map +1 -0
- package/dist/esm/chunk-6FBKUTGF.mjs +2 -0
- package/dist/esm/chunk-6FBKUTGF.mjs.map +1 -0
- package/dist/esm/chunk-7AIV5FEN.mjs +2 -0
- package/dist/esm/chunk-7AIV5FEN.mjs.map +1 -0
- package/dist/esm/chunk-7AQXAH6Q.mjs +2 -0
- package/dist/esm/chunk-7AQXAH6Q.mjs.map +1 -0
- package/dist/esm/chunk-7TL2MY2B.mjs +2 -0
- package/dist/esm/chunk-7TL2MY2B.mjs.map +1 -0
- package/dist/esm/chunk-ADR4XQPR.mjs +2 -0
- package/dist/esm/chunk-ADR4XQPR.mjs.map +1 -0
- package/dist/esm/chunk-AH44UPM4.mjs +2 -0
- package/dist/esm/chunk-AH44UPM4.mjs.map +1 -0
- package/dist/esm/chunk-AY2HWVDO.mjs +2 -0
- package/dist/esm/chunk-AY2HWVDO.mjs.map +1 -0
- package/dist/esm/chunk-BC2NOUYT.mjs +2 -0
- package/dist/esm/chunk-BC2NOUYT.mjs.map +1 -0
- package/dist/esm/chunk-BIUGRAMO.mjs +2 -0
- package/dist/esm/chunk-BIUGRAMO.mjs.map +1 -0
- package/dist/esm/chunk-BREUBEPM.mjs +2 -0
- package/dist/esm/chunk-BREUBEPM.mjs.map +1 -0
- package/dist/esm/chunk-BSCOVLWS.mjs +1 -0
- package/dist/esm/chunk-BSCOVLWS.mjs.map +1 -0
- package/dist/esm/chunk-BTK34A5U.mjs +406 -0
- package/dist/esm/chunk-BTK34A5U.mjs.map +1 -0
- package/dist/esm/chunk-CZZJAR3B.mjs +2 -0
- package/dist/esm/chunk-CZZJAR3B.mjs.map +1 -0
- package/dist/esm/chunk-DNDWTM7A.mjs +2 -0
- package/dist/esm/chunk-DNDWTM7A.mjs.map +1 -0
- package/dist/esm/chunk-DNYVUM3K.mjs +2 -0
- package/dist/esm/chunk-DNYVUM3K.mjs.map +1 -0
- package/dist/esm/chunk-DXUIJ6KA.mjs +2 -0
- package/dist/esm/chunk-DXUIJ6KA.mjs.map +1 -0
- package/dist/esm/chunk-E72CFUU4.mjs +2 -0
- package/dist/esm/chunk-E72CFUU4.mjs.map +1 -0
- package/dist/esm/chunk-E7FWVXGX.mjs +1 -0
- package/dist/esm/chunk-E7FWVXGX.mjs.map +1 -0
- package/dist/esm/chunk-EKAOAGNQ.mjs +2 -0
- package/dist/esm/chunk-EKAOAGNQ.mjs.map +1 -0
- package/dist/esm/chunk-FBPNHF54.mjs +2 -0
- package/dist/esm/chunk-FBPNHF54.mjs.map +1 -0
- package/dist/esm/chunk-FHJ7F7Z6.mjs +2 -0
- package/dist/esm/chunk-FHJ7F7Z6.mjs.map +1 -0
- package/dist/esm/chunk-FNB6CFQR.mjs +2 -0
- package/dist/esm/chunk-FNB6CFQR.mjs.map +1 -0
- package/dist/esm/chunk-FYIFBLHU.mjs +2 -0
- package/dist/esm/chunk-FYIFBLHU.mjs.map +1 -0
- package/dist/esm/chunk-FZY4PMEE.mjs +1 -0
- package/dist/esm/chunk-FZY4PMEE.mjs.map +1 -0
- package/dist/esm/chunk-GUT3G5CG.mjs +2 -0
- package/dist/esm/chunk-GUT3G5CG.mjs.map +1 -0
- package/dist/esm/chunk-HH5RSP2H.mjs +2 -0
- package/dist/esm/chunk-HH5RSP2H.mjs.map +1 -0
- package/dist/esm/chunk-HTZTTZQJ.mjs +1 -0
- package/dist/esm/chunk-HTZTTZQJ.mjs.map +1 -0
- package/dist/esm/chunk-I5OYNCZS.mjs +1 -0
- package/dist/esm/chunk-I5OYNCZS.mjs.map +1 -0
- package/dist/esm/chunk-IPJKGHQY.mjs +2 -0
- package/dist/esm/chunk-IPJKGHQY.mjs.map +1 -0
- package/dist/esm/chunk-IXMH6AXJ.mjs +2 -0
- package/dist/esm/chunk-IXMH6AXJ.mjs.map +1 -0
- package/dist/esm/chunk-IZHPCZE3.mjs +2 -0
- package/dist/esm/chunk-IZHPCZE3.mjs.map +1 -0
- package/dist/esm/chunk-J3QOSJFP.mjs +2 -0
- package/dist/esm/chunk-J3QOSJFP.mjs.map +1 -0
- package/dist/esm/chunk-J5OKXARS.mjs +2 -0
- package/dist/esm/chunk-J5OKXARS.mjs.map +1 -0
- package/dist/esm/chunk-JTGGMXB7.mjs +2 -0
- package/dist/esm/chunk-JTGGMXB7.mjs.map +1 -0
- package/dist/esm/chunk-KC64ESLO.mjs +2 -0
- package/dist/esm/chunk-KC64ESLO.mjs.map +1 -0
- package/dist/esm/chunk-KFP7MDSD.mjs +2 -0
- package/dist/esm/chunk-KFP7MDSD.mjs.map +1 -0
- package/dist/esm/chunk-KJDY66XF.mjs +2 -0
- package/dist/esm/chunk-KJDY66XF.mjs.map +1 -0
- package/dist/esm/chunk-KNLMUSIO.mjs +2 -0
- package/dist/esm/chunk-KNLMUSIO.mjs.map +1 -0
- package/dist/esm/chunk-KPESAXVI.mjs +2 -0
- package/dist/esm/chunk-KPESAXVI.mjs.map +1 -0
- package/dist/esm/chunk-KWJ6XKNF.mjs +2 -0
- package/dist/esm/chunk-KWJ6XKNF.mjs.map +1 -0
- package/dist/esm/chunk-KYWYIK5P.mjs +2 -0
- package/dist/esm/chunk-KYWYIK5P.mjs.map +1 -0
- package/dist/esm/chunk-LAXIJRYU.mjs +2 -0
- package/dist/esm/chunk-LAXIJRYU.mjs.map +1 -0
- package/dist/esm/chunk-LR65XHSF.mjs +2 -0
- package/dist/esm/chunk-LR65XHSF.mjs.map +1 -0
- package/dist/esm/chunk-LU6VS7PJ.mjs +2 -0
- package/dist/esm/chunk-LU6VS7PJ.mjs.map +1 -0
- package/dist/esm/chunk-LV33NV4J.mjs +2 -0
- package/dist/esm/chunk-LV33NV4J.mjs.map +1 -0
- package/dist/esm/chunk-MIBLZSNS.mjs +2 -0
- package/dist/esm/chunk-MIBLZSNS.mjs.map +1 -0
- package/dist/esm/chunk-N2FKVZ4D.mjs +1 -0
- package/dist/esm/chunk-N2FKVZ4D.mjs.map +1 -0
- package/dist/esm/chunk-N6XWY4UT.mjs +2 -0
- package/dist/esm/chunk-N6XWY4UT.mjs.map +1 -0
- package/dist/esm/chunk-NKTKHC3Z.mjs +2 -0
- package/dist/esm/chunk-NKTKHC3Z.mjs.map +1 -0
- package/dist/esm/chunk-O243HOP3.mjs +2 -0
- package/dist/esm/chunk-O243HOP3.mjs.map +1 -0
- package/dist/esm/chunk-PDLUCVJB.mjs +2 -0
- package/dist/esm/chunk-PDLUCVJB.mjs.map +1 -0
- package/dist/esm/chunk-PJDVHU7X.mjs +2 -0
- package/dist/esm/chunk-PJDVHU7X.mjs.map +1 -0
- package/dist/esm/chunk-R7G3CLRI.mjs +1 -0
- package/dist/esm/chunk-R7G3CLRI.mjs.map +1 -0
- package/dist/esm/chunk-RMMOF53Q.mjs +1 -0
- package/dist/esm/chunk-RMMOF53Q.mjs.map +1 -0
- package/dist/esm/chunk-SJLO3JIH.mjs +2 -0
- package/dist/esm/chunk-SJLO3JIH.mjs.map +1 -0
- package/dist/esm/chunk-TCTZCPQ6.mjs +1 -0
- package/dist/esm/chunk-TCTZCPQ6.mjs.map +1 -0
- package/dist/esm/chunk-TXUMB5ZO.mjs +2 -0
- package/dist/esm/chunk-TXUMB5ZO.mjs.map +1 -0
- package/dist/esm/chunk-TYHBYRUA.mjs +2 -0
- package/dist/esm/chunk-TYHBYRUA.mjs.map +1 -0
- package/dist/esm/chunk-UQIOMAXE.mjs +2 -0
- package/dist/esm/chunk-UQIOMAXE.mjs.map +1 -0
- package/dist/esm/chunk-UVGCVCNG.mjs +2 -0
- package/dist/esm/chunk-UVGCVCNG.mjs.map +1 -0
- package/dist/esm/chunk-UYVPNUH3.mjs +1 -0
- package/dist/esm/chunk-UYVPNUH3.mjs.map +1 -0
- package/dist/esm/chunk-V3MBJJTL.mjs +1 -0
- package/dist/esm/chunk-V3MBJJTL.mjs.map +1 -0
- package/dist/esm/chunk-V6AAQLLJ.mjs +2 -0
- package/dist/esm/chunk-V6AAQLLJ.mjs.map +1 -0
- package/dist/esm/chunk-VAGYTPSI.mjs +2 -0
- package/dist/esm/chunk-VAGYTPSI.mjs.map +1 -0
- package/dist/esm/chunk-WGXAIQ7K.mjs +2 -0
- package/dist/esm/chunk-WGXAIQ7K.mjs.map +1 -0
- package/dist/esm/chunk-WNEZCERQ.mjs +2 -0
- package/dist/esm/chunk-WNEZCERQ.mjs.map +1 -0
- package/dist/esm/chunk-WVMDCC4V.mjs +2 -0
- package/dist/esm/chunk-WVMDCC4V.mjs.map +1 -0
- package/dist/esm/chunk-XFS5O5GJ.mjs +2 -0
- package/dist/esm/chunk-XFS5O5GJ.mjs.map +1 -0
- package/dist/esm/chunk-XFSL7O6Q.mjs +2 -0
- package/dist/esm/chunk-XFSL7O6Q.mjs.map +1 -0
- package/dist/esm/chunk-XNFEUXDS.mjs +2 -0
- package/dist/esm/chunk-XNFEUXDS.mjs.map +1 -0
- package/dist/esm/chunk-YS2OX7AB.mjs +2 -0
- package/dist/esm/chunk-YS2OX7AB.mjs.map +1 -0
- package/dist/esm/chunk-Z56AKXJ7.mjs +2 -0
- package/dist/esm/chunk-Z56AKXJ7.mjs.map +1 -0
- package/dist/esm/chunk-ZT2A5ABR.mjs +2 -0
- package/dist/esm/chunk-ZT2A5ABR.mjs.map +1 -0
- package/dist/esm/chunk-ZXJ5ZBTL.mjs +2 -0
- package/dist/esm/chunk-ZXJ5ZBTL.mjs.map +1 -0
- package/dist/esm/client/core.d.ts +24 -0
- package/dist/esm/client/core.mjs +2 -0
- package/dist/esm/client/core.mjs.map +1 -0
- package/dist/esm/client/get.d.ts +55 -0
- package/dist/esm/client/get.mjs +2 -0
- package/dist/esm/client/get.mjs.map +1 -0
- package/dist/esm/client/index.d.ts +11 -0
- package/dist/esm/client/index.mjs +2 -0
- package/dist/esm/client/index.mjs.map +1 -0
- package/dist/esm/client/post.d.ts +60 -0
- package/dist/esm/client/post.mjs +2 -0
- package/dist/esm/client/post.mjs.map +1 -0
- package/dist/esm/client/types.d.ts +46 -0
- package/dist/esm/client/types.mjs +2 -0
- package/dist/esm/client/types.mjs.map +1 -0
- package/dist/esm/core/account.d.ts +184 -0
- package/dist/esm/core/account.mjs +2 -0
- package/dist/esm/core/account.mjs.map +1 -0
- package/dist/esm/core/accountAddress.d.ts +244 -0
- package/dist/esm/core/accountAddress.mjs +2 -0
- package/dist/esm/core/accountAddress.mjs.map +1 -0
- package/dist/esm/core/authenticationKey.d.ts +74 -0
- package/dist/esm/core/authenticationKey.mjs +2 -0
- package/dist/esm/core/authenticationKey.mjs.map +1 -0
- package/dist/esm/core/common.d.ts +32 -0
- package/dist/esm/core/common.mjs +2 -0
- package/dist/esm/core/common.mjs.map +1 -0
- package/dist/esm/core/crypto/anyPublicKey.d.ts +54 -0
- package/dist/esm/core/crypto/anyPublicKey.mjs +2 -0
- package/dist/esm/core/crypto/anyPublicKey.mjs.map +1 -0
- package/dist/esm/core/crypto/anySignature.d.ts +31 -0
- package/dist/esm/core/crypto/anySignature.mjs +2 -0
- package/dist/esm/core/crypto/anySignature.mjs.map +1 -0
- package/dist/esm/core/crypto/asymmetricCrypto.d.ts +74 -0
- package/dist/esm/core/crypto/asymmetricCrypto.mjs +2 -0
- package/dist/esm/core/crypto/asymmetricCrypto.mjs.map +1 -0
- package/dist/esm/core/crypto/ed25519.d.ts +173 -0
- package/dist/esm/core/crypto/ed25519.mjs +2 -0
- package/dist/esm/core/crypto/ed25519.mjs.map +1 -0
- package/dist/esm/core/crypto/hdKey.d.ts +65 -0
- package/dist/esm/core/crypto/hdKey.mjs +2 -0
- package/dist/esm/core/crypto/hdKey.mjs.map +1 -0
- package/dist/esm/core/crypto/index.d.ts +17 -0
- package/dist/esm/core/crypto/index.mjs +2 -0
- package/dist/esm/core/crypto/index.mjs.map +1 -0
- package/dist/esm/core/crypto/multiEd25519.d.ts +126 -0
- package/dist/esm/core/crypto/multiEd25519.mjs +2 -0
- package/dist/esm/core/crypto/multiEd25519.mjs.map +1 -0
- package/dist/esm/core/crypto/multiKey.d.ts +52 -0
- package/dist/esm/core/crypto/multiKey.mjs +2 -0
- package/dist/esm/core/crypto/multiKey.mjs.map +1 -0
- package/dist/esm/core/crypto/secp256k1.d.ts +161 -0
- package/dist/esm/core/crypto/secp256k1.mjs +2 -0
- package/dist/esm/core/crypto/secp256k1.mjs.map +1 -0
- package/dist/esm/core/hex.d.ts +105 -0
- package/dist/esm/core/hex.mjs +2 -0
- package/dist/esm/core/hex.mjs.map +1 -0
- package/dist/esm/core/index.d.ts +21 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/core/index.mjs.map +1 -0
- package/dist/esm/index.d.ts +60 -5637
- package/dist/esm/index.mjs +1 -5444
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/internal/account.d.ts +143 -0
- package/dist/esm/internal/account.mjs +2 -0
- package/dist/esm/internal/account.mjs.map +1 -0
- package/dist/esm/internal/ans.d.ts +83 -0
- package/dist/esm/internal/ans.mjs +2 -0
- package/dist/esm/internal/ans.mjs.map +1 -0
- package/dist/esm/internal/coin.d.ts +43 -0
- package/dist/esm/internal/coin.mjs +2 -0
- package/dist/esm/internal/coin.mjs.map +1 -0
- package/dist/esm/internal/digitalAsset.d.ts +118 -0
- package/dist/esm/internal/digitalAsset.mjs +2 -0
- package/dist/esm/internal/digitalAsset.mjs.map +1 -0
- package/dist/esm/internal/event.d.ts +45 -0
- package/dist/esm/internal/event.mjs +2 -0
- package/dist/esm/internal/event.mjs.map +1 -0
- package/dist/esm/internal/faucet.d.ts +29 -0
- package/dist/esm/internal/faucet.mjs +2 -0
- package/dist/esm/internal/faucet.mjs.map +1 -0
- package/dist/esm/internal/fungibleAsset.d.ts +38 -0
- package/dist/esm/internal/fungibleAsset.mjs +2 -0
- package/dist/esm/internal/fungibleAsset.mjs.map +1 -0
- package/dist/esm/internal/general.d.ts +60 -0
- package/dist/esm/internal/general.mjs +2 -0
- package/dist/esm/internal/general.mjs.map +1 -0
- package/dist/esm/internal/staking.d.ts +38 -0
- package/dist/esm/internal/staking.mjs +2 -0
- package/dist/esm/internal/staking.mjs.map +1 -0
- package/dist/esm/internal/transaction.d.ts +57 -0
- package/dist/esm/internal/transaction.mjs +2 -0
- package/dist/esm/internal/transaction.mjs.map +1 -0
- package/dist/esm/internal/transactionSubmission.d.ts +148 -0
- package/dist/esm/internal/transactionSubmission.mjs +2 -0
- package/dist/esm/internal/transactionSubmission.mjs.map +1 -0
- package/dist/esm/transactions/authenticator/account.d.ts +79 -0
- package/dist/esm/transactions/authenticator/account.mjs +2 -0
- package/dist/esm/transactions/authenticator/account.mjs.map +1 -0
- package/dist/esm/transactions/authenticator/index.d.ts +19 -0
- package/dist/esm/transactions/authenticator/index.mjs +2 -0
- package/dist/esm/transactions/authenticator/index.mjs.map +1 -0
- package/dist/esm/transactions/authenticator/transaction.d.ts +105 -0
- package/dist/esm/transactions/authenticator/transaction.mjs +2 -0
- package/dist/esm/transactions/authenticator/transaction.mjs.map +1 -0
- package/dist/esm/transactions/index.d.ts +39 -0
- package/dist/esm/transactions/index.mjs +2 -0
- package/dist/esm/transactions/index.mjs.map +1 -0
- package/dist/esm/transactions/instances/chainId.d.ts +21 -0
- package/dist/esm/transactions/instances/chainId.mjs +2 -0
- package/dist/esm/transactions/instances/chainId.mjs.map +1 -0
- package/dist/esm/transactions/instances/identifier.d.ts +23 -0
- package/dist/esm/transactions/instances/identifier.mjs +2 -0
- package/dist/esm/transactions/instances/identifier.mjs.map +1 -0
- package/dist/esm/transactions/instances/index.d.ts +29 -0
- package/dist/esm/transactions/instances/index.mjs +2 -0
- package/dist/esm/transactions/instances/index.mjs.map +1 -0
- package/dist/esm/transactions/instances/moduleId.d.ts +37 -0
- package/dist/esm/transactions/instances/moduleId.mjs +2 -0
- package/dist/esm/transactions/instances/moduleId.mjs.map +1 -0
- package/dist/esm/transactions/instances/rawTransaction.d.ts +98 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs +2 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs.map +1 -0
- package/dist/esm/transactions/instances/rotationProofChallenge.d.ts +37 -0
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +2 -0
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs.map +1 -0
- package/dist/esm/transactions/instances/signedTransaction.d.ts +46 -0
- package/dist/esm/transactions/instances/signedTransaction.mjs +2 -0
- package/dist/esm/transactions/instances/signedTransaction.mjs.map +1 -0
- package/dist/esm/transactions/instances/transactionArgument.d.ts +40 -0
- package/dist/esm/transactions/instances/transactionArgument.mjs +2 -0
- package/dist/esm/transactions/instances/transactionArgument.mjs.map +1 -0
- package/dist/esm/transactions/instances/transactionPayload.d.ts +211 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs +2 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/helpers.d.ts +63 -0
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/helpers.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/index.d.ts +35 -0
- package/dist/esm/transactions/transactionBuilder/index.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/index.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.ts +54 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.ts +128 -0
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +2 -0
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs.map +1 -0
- package/dist/esm/transactions/typeTag/index.d.ts +127 -0
- package/dist/esm/transactions/typeTag/index.mjs +2 -0
- package/dist/esm/transactions/typeTag/index.mjs.map +1 -0
- package/dist/esm/transactions/typeTag/parser.d.ts +47 -0
- package/dist/esm/transactions/typeTag/parser.mjs +2 -0
- package/dist/esm/transactions/typeTag/parser.mjs.map +1 -0
- package/dist/esm/transactions/types.d.ts +253 -0
- package/dist/esm/transactions/types.mjs +2 -0
- package/dist/esm/transactions/types.mjs.map +1 -0
- package/dist/esm/types/generated/operations.d.ts +604 -0
- package/dist/esm/types/generated/operations.mjs +1 -0
- package/dist/esm/types/generated/operations.mjs.map +1 -0
- package/dist/esm/types/generated/queries.d.ts +55 -0
- package/dist/esm/types/generated/queries.mjs +2 -0
- package/dist/esm/types/generated/queries.mjs.map +1 -0
- package/dist/esm/types/generated/types.d.ts +9458 -0
- package/dist/esm/types/generated/types.mjs +2 -0
- package/dist/esm/types/generated/types.mjs.map +1 -0
- package/dist/{types → esm/types}/index.d.ts +19 -451
- package/dist/esm/types/index.mjs +2 -0
- package/dist/esm/types/index.mjs.map +1 -0
- package/dist/esm/types/indexer.d.ts +62 -0
- package/dist/esm/types/indexer.mjs +2 -0
- package/dist/esm/types/indexer.mjs.map +1 -0
- package/dist/esm/utils/apiEndpoints.d.ts +14 -0
- package/dist/esm/utils/apiEndpoints.mjs +2 -0
- package/dist/esm/utils/apiEndpoints.mjs.map +1 -0
- package/dist/esm/utils/const.d.ts +42 -0
- package/dist/esm/utils/const.mjs +2 -0
- package/dist/esm/utils/const.mjs.map +1 -0
- package/dist/esm/utils/helpers.d.ts +7 -0
- package/dist/esm/utils/helpers.mjs +2 -0
- package/dist/esm/utils/helpers.mjs.map +1 -0
- package/dist/esm/utils/memoize.d.ts +20 -0
- package/dist/esm/utils/memoize.mjs +2 -0
- package/dist/esm/utils/memoize.mjs.map +1 -0
- package/dist/esm/version.d.ts +8 -0
- package/dist/esm/version.mjs +2 -0
- package/dist/esm/version.mjs.map +1 -0
- package/package.json +17 -13
- package/src/api/account.ts +17 -18
- package/src/api/ans.ts +58 -0
- package/src/api/aptos.ts +7 -1
- package/src/api/coin.ts +3 -3
- package/src/api/digitalAsset.ts +9 -8
- package/src/api/event.ts +4 -3
- package/src/api/faucet.ts +3 -2
- package/src/api/general.ts +2 -2
- package/src/api/staking.ts +5 -4
- package/src/api/transactionSubmission.ts +41 -20
- package/src/bcs/deserializer.ts +4 -4
- package/src/bcs/serializable/moveStructs.ts +13 -13
- package/src/bcs/serializer.ts +4 -4
- package/src/client/core.ts +18 -8
- package/src/core/account.ts +90 -33
- package/src/core/accountAddress.ts +34 -30
- package/src/core/authenticationKey.ts +11 -9
- package/src/core/crypto/ed25519.ts +48 -1
- package/src/core/crypto/hdKey.ts +105 -0
- package/src/core/crypto/index.ts +1 -0
- package/src/core/crypto/secp256k1.ts +36 -0
- package/src/index.ts +0 -1
- package/src/internal/account.ts +80 -58
- package/src/internal/ans.ts +175 -0
- package/src/internal/coin.ts +5 -5
- package/src/internal/digitalAsset.ts +16 -17
- package/src/internal/event.ts +8 -8
- package/src/internal/faucet.ts +4 -4
- package/src/internal/general.ts +3 -3
- package/src/internal/queries/getEvents.graphql +1 -0
- package/src/internal/staking.ts +8 -8
- package/src/internal/transactionSubmission.ts +78 -19
- package/src/transactions/instances/index.ts +1 -0
- package/src/transactions/instances/moduleId.ts +1 -1
- package/src/transactions/instances/rotationProofChallenge.ts +58 -0
- package/src/transactions/transactionBuilder/helpers.ts +5 -1
- package/src/transactions/transactionBuilder/remoteAbi.ts +4 -4
- package/src/transactions/transactionBuilder/transactionBuilder.ts +31 -49
- package/src/transactions/typeTag/index.ts +10 -10
- package/src/transactions/typeTag/parser.ts +1 -1
- package/src/transactions/types.ts +31 -20
- package/src/types/generated/operations.ts +19 -18
- package/src/types/generated/queries.ts +20 -19
- package/src/types/generated/types.ts +6 -0
- package/src/types/index.ts +15 -18
- package/src/utils/apiEndpoints.ts +8 -0
- package/src/version.ts +1 -1
- package/dist/cjs/index.js +0 -5631
- package/dist/cjs/index.js.map +0 -1
- package/dist/types/index.js +0 -176
- package/dist/types/index.js.map +0 -1
- package/src/utils/hdKey.ts +0 -113
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { AptosConfig } from './aptosConfig.js';
|
|
2
|
+
import { Account as Account$1 } from '../core/account.js';
|
|
3
|
+
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.js';
|
|
4
|
+
import { PrivateKey } from '../core/crypto/asymmetricCrypto.js';
|
|
5
|
+
import { AccountData, PaginationArgs, LedgerVersion, MoveModuleBytecode, TransactionResponse, MoveResource, MoveStructType } from '../types/index.js';
|
|
6
|
+
import { TokenStandard, OrderBy, GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetAccountOwnedObjectsResponse } from '../types/indexer.js';
|
|
7
|
+
import '../utils/apiEndpoints.js';
|
|
8
|
+
import '../utils/const.js';
|
|
9
|
+
import '../types/generated/operations.js';
|
|
10
|
+
import '../types/generated/types.js';
|
|
11
|
+
import '../core/authenticationKey.js';
|
|
12
|
+
import '../core/hex.js';
|
|
13
|
+
import '../core/common.js';
|
|
14
|
+
import '../bcs/serializer.js';
|
|
15
|
+
import '../bcs/deserializer.js';
|
|
16
|
+
import '../transactions/instances/transactionArgument.js';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A class to query all `Account` related queries on Aptos.
|
|
20
|
+
*/
|
|
21
|
+
declare class Account {
|
|
22
|
+
readonly config: AptosConfig;
|
|
23
|
+
constructor(config: AptosConfig);
|
|
24
|
+
/**
|
|
25
|
+
* Queries the current state for an Aptos account given its account address
|
|
26
|
+
*
|
|
27
|
+
* @param args.accountAddress Aptos account address
|
|
28
|
+
*
|
|
29
|
+
* @returns The account data
|
|
30
|
+
*
|
|
31
|
+
* @example An example of the returned account
|
|
32
|
+
* ```
|
|
33
|
+
* {
|
|
34
|
+
* sequence_number: "1",
|
|
35
|
+
* authentication_key: "0x5307b5f4bc67829097a8ba9b43dba3b88261eeccd1f709d9bde240fc100fbb69"
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
getAccountInfo(args: {
|
|
40
|
+
accountAddress: AccountAddressInput;
|
|
41
|
+
}): Promise<AccountData>;
|
|
42
|
+
/**
|
|
43
|
+
* Queries for all modules in an account given an account address
|
|
44
|
+
*
|
|
45
|
+
* Note: In order to get all account modules, this function may call the API
|
|
46
|
+
* multiple times as it auto paginates.
|
|
47
|
+
*
|
|
48
|
+
* @param args.accountAddress Aptos account address
|
|
49
|
+
* @param args.options.offset The number module to start returning results from
|
|
50
|
+
* @param args.options.limit The number of results to return
|
|
51
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
52
|
+
*
|
|
53
|
+
* @returns Account modules
|
|
54
|
+
*/
|
|
55
|
+
getAccountModules(args: {
|
|
56
|
+
accountAddress: AccountAddressInput;
|
|
57
|
+
options?: PaginationArgs & LedgerVersion;
|
|
58
|
+
}): Promise<MoveModuleBytecode[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Queries for a specific account module given account address and module name
|
|
61
|
+
*
|
|
62
|
+
* @param args.accountAddress Aptos account address
|
|
63
|
+
* @param args.moduleName The name of the module
|
|
64
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
65
|
+
*
|
|
66
|
+
* @returns Account module
|
|
67
|
+
*
|
|
68
|
+
* @example An example of an account module
|
|
69
|
+
* ```
|
|
70
|
+
* {
|
|
71
|
+
* bytecode: "0xa11ceb0b0600000006010002030206050807070f0d081c200",
|
|
72
|
+
* abi: { address: "0x1" }
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
getAccountModule(args: {
|
|
77
|
+
accountAddress: AccountAddressInput;
|
|
78
|
+
moduleName: string;
|
|
79
|
+
options?: LedgerVersion;
|
|
80
|
+
}): Promise<MoveModuleBytecode>;
|
|
81
|
+
/**
|
|
82
|
+
* Queries account transactions given an account address
|
|
83
|
+
*
|
|
84
|
+
* Note: In order to get all account transactions, this function may call the API
|
|
85
|
+
* multiple times as it auto paginates.
|
|
86
|
+
*
|
|
87
|
+
* @param args.accountAddress Aptos account address
|
|
88
|
+
* @param args.options.offset The number transaction to start returning results from
|
|
89
|
+
* @param args.options.limit The number of results to return
|
|
90
|
+
*
|
|
91
|
+
* @returns The account transactions
|
|
92
|
+
*/
|
|
93
|
+
getAccountTransactions(args: {
|
|
94
|
+
accountAddress: AccountAddressInput;
|
|
95
|
+
options?: PaginationArgs;
|
|
96
|
+
}): Promise<TransactionResponse[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Queries all account resources given an account address
|
|
99
|
+
*
|
|
100
|
+
* Note: In order to get all account resources, this function may call the API
|
|
101
|
+
* multiple times as it auto paginates.
|
|
102
|
+
*
|
|
103
|
+
* @param args.accountAddress Aptos account address
|
|
104
|
+
* @param args.options.offset The number resource to start returning results from
|
|
105
|
+
* @param args.options.limit The number of results to return
|
|
106
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
107
|
+
* @returns Account resources
|
|
108
|
+
*/
|
|
109
|
+
getAccountResources(args: {
|
|
110
|
+
accountAddress: AccountAddressInput;
|
|
111
|
+
options?: PaginationArgs & LedgerVersion;
|
|
112
|
+
}): Promise<MoveResource[]>;
|
|
113
|
+
/**
|
|
114
|
+
* Queries a specific account resource given account address and resource type. Note that the default is `any` in order
|
|
115
|
+
* to allow for ease of accessing properties of the object.
|
|
116
|
+
*
|
|
117
|
+
* @type The typed output of the resource
|
|
118
|
+
* @param args.accountAddress Aptos account address
|
|
119
|
+
* @param args.resourceType String representation of an on-chain Move struct type, i.e "0x1::aptos_coin::AptosCoin"
|
|
120
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
121
|
+
*
|
|
122
|
+
* @returns Account resource
|
|
123
|
+
*
|
|
124
|
+
* @example An example of an account resource
|
|
125
|
+
* ```
|
|
126
|
+
* {
|
|
127
|
+
* data: { value: 6 }
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
getAccountResource<T extends {} = any>(args: {
|
|
132
|
+
accountAddress: AccountAddressInput;
|
|
133
|
+
resourceType: MoveStructType;
|
|
134
|
+
options?: LedgerVersion;
|
|
135
|
+
}): Promise<T>;
|
|
136
|
+
/**
|
|
137
|
+
* Looks up the account address for a given authentication key
|
|
138
|
+
*
|
|
139
|
+
* This handles both if the account's authentication key has been rotated or not.
|
|
140
|
+
*
|
|
141
|
+
* @param args.authenticationKey The authentication key
|
|
142
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
143
|
+
* @returns Promise<AccountAddress> The accountAddress associated with the authentication key
|
|
144
|
+
*/
|
|
145
|
+
lookupOriginalAccountAddress(args: {
|
|
146
|
+
authenticationKey: AccountAddressInput;
|
|
147
|
+
options?: LedgerVersion;
|
|
148
|
+
}): Promise<AccountAddress>;
|
|
149
|
+
/**
|
|
150
|
+
* Queries the current count of tokens owned by an account
|
|
151
|
+
*
|
|
152
|
+
* @param args.accountAddress The account address
|
|
153
|
+
* @returns Current count of tokens owned by the account
|
|
154
|
+
*/
|
|
155
|
+
getAccountTokensCount(args: {
|
|
156
|
+
accountAddress: AccountAddressInput;
|
|
157
|
+
}): Promise<number>;
|
|
158
|
+
/**
|
|
159
|
+
* Queries the account's current owned tokens.
|
|
160
|
+
*
|
|
161
|
+
* This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
|
|
162
|
+
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
163
|
+
*
|
|
164
|
+
* @param args.accountAddress The account address we want to get the tokens for
|
|
165
|
+
* @param args.options.tokenStandard The NFT standard to query for
|
|
166
|
+
* @param args.options.pagination.offset The number token to start returning results from
|
|
167
|
+
* @param args.options.pagination.limit The number of results to return
|
|
168
|
+
* @param args.options.orderBy The order to sort the tokens by
|
|
169
|
+
* @returns Tokens array with the token data
|
|
170
|
+
*/
|
|
171
|
+
getAccountOwnedTokens(args: {
|
|
172
|
+
accountAddress: AccountAddressInput;
|
|
173
|
+
options?: {
|
|
174
|
+
tokenStandard?: TokenStandard;
|
|
175
|
+
pagination?: PaginationArgs;
|
|
176
|
+
orderBy?: OrderBy<GetAccountOwnedTokensQueryResponse[0]>;
|
|
177
|
+
};
|
|
178
|
+
}): Promise<GetAccountOwnedTokensQueryResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Queries all current tokens of a specific collection that an account owns by the collection address
|
|
181
|
+
*
|
|
182
|
+
* This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
|
|
183
|
+
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
184
|
+
*
|
|
185
|
+
* @param args.accountAddress The account address we want to get the tokens for
|
|
186
|
+
* @param args.collectionAddress The address of the collection being queried
|
|
187
|
+
* @param args.options.tokenStandard The NFT standard to query for
|
|
188
|
+
* @param args.options.pagination.offset The number token to start returning results from
|
|
189
|
+
* @param args.options.pagination.limit The number of results to return
|
|
190
|
+
* @param args.options.orderBy The order to sort the tokens by
|
|
191
|
+
* @returns Tokens array with the token data
|
|
192
|
+
*/
|
|
193
|
+
getAccountOwnedTokensFromCollectionAddress(args: {
|
|
194
|
+
accountAddress: AccountAddressInput;
|
|
195
|
+
collectionAddress: AccountAddressInput;
|
|
196
|
+
options?: {
|
|
197
|
+
tokenStandard?: TokenStandard;
|
|
198
|
+
pagination?: PaginationArgs;
|
|
199
|
+
orderBy?: OrderBy<GetAccountOwnedTokensFromCollectionResponse[0]>;
|
|
200
|
+
};
|
|
201
|
+
}): Promise<GetAccountOwnedTokensFromCollectionResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* Queries for all collections that an account currently has tokens for.
|
|
204
|
+
*
|
|
205
|
+
* This query returns all tokens (v1 and v2 standards) an account owns, including NFTs, fungible, soulbound, etc.
|
|
206
|
+
* If you want to get only the token from a specific standard, you can pass an optional tokenStandard param
|
|
207
|
+
*
|
|
208
|
+
* @param args.accountAddress The account address we want to get the collections for
|
|
209
|
+
* @param args.options.tokenStandard The NFT standard to query for
|
|
210
|
+
* @param args.options.pagination.offset The number collection to start returning results from
|
|
211
|
+
* @param args.options.pagination.limit The number of results to return
|
|
212
|
+
* @param args.options.orderBy The order to sort the tokens by
|
|
213
|
+
* @returns Collections array with the collections data
|
|
214
|
+
*/
|
|
215
|
+
getAccountCollectionsWithOwnedTokens(args: {
|
|
216
|
+
accountAddress: AccountAddressInput;
|
|
217
|
+
options?: {
|
|
218
|
+
tokenStandard?: TokenStandard;
|
|
219
|
+
pagination?: PaginationArgs;
|
|
220
|
+
orderBy?: OrderBy<GetAccountCollectionsWithOwnedTokenResponse[0]>;
|
|
221
|
+
};
|
|
222
|
+
}): Promise<GetAccountCollectionsWithOwnedTokenResponse>;
|
|
223
|
+
/**
|
|
224
|
+
* Queries the current count of transactions submitted by an account
|
|
225
|
+
*
|
|
226
|
+
* @param args.accountAddress The account address we want to get the total count for
|
|
227
|
+
* @returns Current count of transactions made by an account
|
|
228
|
+
*/
|
|
229
|
+
getAccountTransactionsCount(args: {
|
|
230
|
+
accountAddress: AccountAddressInput;
|
|
231
|
+
}): Promise<number>;
|
|
232
|
+
/**
|
|
233
|
+
* Queries an account's coins data
|
|
234
|
+
*
|
|
235
|
+
* @param args.accountAddress The account address we want to get the coins data for
|
|
236
|
+
* @param args.options.pagination.offset The number coin to start returning results from
|
|
237
|
+
* @param args.options.pagination.limit The number of results to return
|
|
238
|
+
* @param args.options.orderBy The order to sort the coins by
|
|
239
|
+
* @returns Array with the coins data
|
|
240
|
+
*/
|
|
241
|
+
getAccountCoinsData(args: {
|
|
242
|
+
accountAddress: AccountAddressInput;
|
|
243
|
+
options?: {
|
|
244
|
+
pagination?: PaginationArgs;
|
|
245
|
+
orderBy?: OrderBy<GetAccountCoinsDataResponse[0]>;
|
|
246
|
+
};
|
|
247
|
+
}): Promise<GetAccountCoinsDataResponse>;
|
|
248
|
+
/**
|
|
249
|
+
* Queries the current count of an account's coins aggregated
|
|
250
|
+
*
|
|
251
|
+
* @param args.accountAddress The account address we want to get the total count for
|
|
252
|
+
* @returns Current count of the aggregated count of all account's coins
|
|
253
|
+
*/
|
|
254
|
+
getAccountCoinsCount(args: {
|
|
255
|
+
accountAddress: AccountAddressInput;
|
|
256
|
+
}): Promise<number>;
|
|
257
|
+
/**
|
|
258
|
+
* Queries an account's owned objects
|
|
259
|
+
*
|
|
260
|
+
* @param args.accountAddress The account address we want to get the objects for
|
|
261
|
+
* @param args.options.pagination.offset The number coin to start returning results from
|
|
262
|
+
* @param args.options.pagination.limit The number of results to return
|
|
263
|
+
* @param args.options.orderBy The order to sort the coins by
|
|
264
|
+
* @returns Objects array with the object data
|
|
265
|
+
*/
|
|
266
|
+
getAccountOwnedObjects(args: {
|
|
267
|
+
accountAddress: AccountAddressInput;
|
|
268
|
+
options?: {
|
|
269
|
+
pagination?: PaginationArgs;
|
|
270
|
+
orderBy?: OrderBy<GetAccountOwnedObjectsResponse[0]>;
|
|
271
|
+
};
|
|
272
|
+
}): Promise<GetAccountOwnedObjectsResponse>;
|
|
273
|
+
/**
|
|
274
|
+
* Derives an account by providing a private key.
|
|
275
|
+
* This functions resolves the provided private key type and derives the public key from it.
|
|
276
|
+
*
|
|
277
|
+
* If the privateKey is a Secp256k1 type, it derives the account using the derived public key and
|
|
278
|
+
* auth key using the SingleKey scheme locally.
|
|
279
|
+
*
|
|
280
|
+
* If the privateKey is a ED25519 type, it looks up the authentication key on chain, and uses it to resolve
|
|
281
|
+
* whether it is a Legacy ED25519 key or a Unified ED25519 key. It then derives the account based
|
|
282
|
+
* on that.
|
|
283
|
+
*
|
|
284
|
+
* @param args.privateKey An account private key
|
|
285
|
+
* @returns Account type
|
|
286
|
+
*/
|
|
287
|
+
deriveAccountFromPrivateKey(args: {
|
|
288
|
+
privateKey: PrivateKey;
|
|
289
|
+
}): Promise<Account$1>;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export { Account };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-TYHBYRUA.mjs";import"../chunk-O243HOP3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as Account};
|
|
2
|
+
//# sourceMappingURL=account.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { RegisterNameParameters } from '../internal/ans.js';
|
|
2
|
+
import { InputSingleSignerTransaction } from '../transactions/types.js';
|
|
3
|
+
import { MoveAddressType } from '../types/index.js';
|
|
4
|
+
import { AptosConfig } from './aptosConfig.js';
|
|
5
|
+
import '../core/account.js';
|
|
6
|
+
import '../core/accountAddress.js';
|
|
7
|
+
import '../bcs/serializer.js';
|
|
8
|
+
import '../core/hex.js';
|
|
9
|
+
import '../core/common.js';
|
|
10
|
+
import '../utils/apiEndpoints.js';
|
|
11
|
+
import '../types/indexer.js';
|
|
12
|
+
import '../types/generated/operations.js';
|
|
13
|
+
import '../types/generated/types.js';
|
|
14
|
+
import '../bcs/deserializer.js';
|
|
15
|
+
import '../transactions/instances/transactionArgument.js';
|
|
16
|
+
import '../core/authenticationKey.js';
|
|
17
|
+
import '../core/crypto/asymmetricCrypto.js';
|
|
18
|
+
import '../bcs/serializable/moveStructs.js';
|
|
19
|
+
import '../bcs/serializable/movePrimitives.js';
|
|
20
|
+
import '../bcs/serializable/fixedBytes.js';
|
|
21
|
+
import '../transactions/instances/rawTransaction.js';
|
|
22
|
+
import '../transactions/instances/chainId.js';
|
|
23
|
+
import '../transactions/instances/transactionPayload.js';
|
|
24
|
+
import '../transactions/instances/identifier.js';
|
|
25
|
+
import '../transactions/instances/moduleId.js';
|
|
26
|
+
import '../transactions/typeTag/index.js';
|
|
27
|
+
import '../transactions/authenticator/account.js';
|
|
28
|
+
import '../core/crypto/anyPublicKey.js';
|
|
29
|
+
import '../core/crypto/anySignature.js';
|
|
30
|
+
import '../core/crypto/ed25519.js';
|
|
31
|
+
import '../core/crypto/multiEd25519.js';
|
|
32
|
+
import '../core/crypto/multiKey.js';
|
|
33
|
+
import '../utils/const.js';
|
|
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.
|
|
43
|
+
*
|
|
44
|
+
* ```ts
|
|
45
|
+
* getOwnerAddress({name: "test.aptos"})
|
|
46
|
+
* // Will return the owner address of "test.aptos.apt" or undefined
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param args.name - A string of the name to retrieve
|
|
50
|
+
*
|
|
51
|
+
* @returns MoveAddressType if the name is owned, undefined otherwise
|
|
52
|
+
*/
|
|
53
|
+
getOwnerAddress(args: {
|
|
54
|
+
name: string;
|
|
55
|
+
}): Promise<MoveAddressType | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Registers a new domain or subdomain name
|
|
58
|
+
*
|
|
59
|
+
* @param args.sender - The sender account
|
|
60
|
+
* @param args.name - A string or {domainName: string, subdomainName?: string} of the name to register. This
|
|
61
|
+
* can be inclusive or exclusive of the .apt suffix.
|
|
62
|
+
* Examples include: "xyz", "xyz.apt", "xyz.kyc.apt", {domainName: "xyz"}, {domainName: "kyc", subdomainName: "xyz"}.
|
|
63
|
+
* @param args.expiration - An object with the expiration policy of the name.
|
|
64
|
+
* @param args.expiration.policy - 'domain' | 'subdomain:follow-domain' | 'subdomain:independent'
|
|
65
|
+
* - domain: Years is required and the name will expire after the given number of years.
|
|
66
|
+
* - subdomain:follow-domain: The name will expire at the same time as the domain name.
|
|
67
|
+
* - subdomain:independent: The name will expire at the given date.
|
|
68
|
+
* @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.
|
|
69
|
+
* @param args.targetAddress optional - The address the domain name will resolve to. If not provided,
|
|
70
|
+
* the sender's address will be used.
|
|
71
|
+
* @param args.toAddress optional - The address to send the domain name to. If not provided,
|
|
72
|
+
* the transaction will be sent to the router.
|
|
73
|
+
*
|
|
74
|
+
* @returns InputSingleSignerTransaction
|
|
75
|
+
*/
|
|
76
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<InputSingleSignerTransaction>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { ANS };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-Z56AKXJ7.mjs";import"../chunk-FHJ7F7Z6.mjs";import"../chunk-7TL2MY2B.mjs";import"../chunk-7AIV5FEN.mjs";import"../chunk-WVMDCC4V.mjs";import"../chunk-NKTKHC3Z.mjs";import"../chunk-3OJN4I42.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-KNLMUSIO.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-ADR4XQPR.mjs";import"../chunk-WGXAIQ7K.mjs";import"../chunk-DXUIJ6KA.mjs";import"../chunk-BREUBEPM.mjs";import"../chunk-UQIOMAXE.mjs";import"../chunk-KWJ6XKNF.mjs";import"../chunk-LAXIJRYU.mjs";import"../chunk-EKAOAGNQ.mjs";import"../chunk-JTGGMXB7.mjs";import"../chunk-IPJKGHQY.mjs";import"../chunk-ZT2A5ABR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-O243HOP3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as ANS};
|
|
2
|
+
//# sourceMappingURL=ans.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Account } from './account.js';
|
|
2
|
+
import { AptosConfig } from './aptosConfig.js';
|
|
3
|
+
import { Coin } from './coin.js';
|
|
4
|
+
import { DigitalAsset } from './digitalAsset.js';
|
|
5
|
+
import { Event } from './event.js';
|
|
6
|
+
import { Faucet } from './faucet.js';
|
|
7
|
+
import { FungibleAsset } from './fungibleAsset.js';
|
|
8
|
+
import { General } from './general.js';
|
|
9
|
+
import { ANS } from './ans.js';
|
|
10
|
+
import { Staking } from './staking.js';
|
|
11
|
+
import { Transaction } from './transaction.js';
|
|
12
|
+
import { TransactionSubmission } from './transactionSubmission.js';
|
|
13
|
+
import '../core/account.js';
|
|
14
|
+
import '../core/accountAddress.js';
|
|
15
|
+
import '../bcs/serializer.js';
|
|
16
|
+
import '../core/hex.js';
|
|
17
|
+
import '../core/common.js';
|
|
18
|
+
import '../types/index.js';
|
|
19
|
+
import '../utils/apiEndpoints.js';
|
|
20
|
+
import '../types/indexer.js';
|
|
21
|
+
import '../types/generated/operations.js';
|
|
22
|
+
import '../types/generated/types.js';
|
|
23
|
+
import '../bcs/deserializer.js';
|
|
24
|
+
import '../transactions/instances/transactionArgument.js';
|
|
25
|
+
import '../core/authenticationKey.js';
|
|
26
|
+
import '../core/crypto/asymmetricCrypto.js';
|
|
27
|
+
import '../utils/const.js';
|
|
28
|
+
import '../transactions/types.js';
|
|
29
|
+
import '../bcs/serializable/moveStructs.js';
|
|
30
|
+
import '../bcs/serializable/movePrimitives.js';
|
|
31
|
+
import '../bcs/serializable/fixedBytes.js';
|
|
32
|
+
import '../transactions/instances/rawTransaction.js';
|
|
33
|
+
import '../transactions/instances/chainId.js';
|
|
34
|
+
import '../transactions/instances/transactionPayload.js';
|
|
35
|
+
import '../transactions/instances/identifier.js';
|
|
36
|
+
import '../transactions/instances/moduleId.js';
|
|
37
|
+
import '../transactions/typeTag/index.js';
|
|
38
|
+
import '../transactions/authenticator/account.js';
|
|
39
|
+
import '../core/crypto/anyPublicKey.js';
|
|
40
|
+
import '../core/crypto/anySignature.js';
|
|
41
|
+
import '../core/crypto/ed25519.js';
|
|
42
|
+
import '../core/crypto/multiEd25519.js';
|
|
43
|
+
import '../core/crypto/multiKey.js';
|
|
44
|
+
import '../internal/digitalAsset.js';
|
|
45
|
+
import '../internal/ans.js';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* This class is the main entry point into Aptos's
|
|
49
|
+
* APIs and separates functionality into different namespaces.
|
|
50
|
+
*
|
|
51
|
+
* To use the SDK, create a new Aptos instance to get access
|
|
52
|
+
* to all the sdk functionality.
|
|
53
|
+
*/
|
|
54
|
+
declare class Aptos {
|
|
55
|
+
readonly config: AptosConfig;
|
|
56
|
+
readonly account: Account;
|
|
57
|
+
readonly ans: ANS;
|
|
58
|
+
readonly coin: Coin;
|
|
59
|
+
readonly digitalAsset: DigitalAsset;
|
|
60
|
+
readonly event: Event;
|
|
61
|
+
readonly faucet: Faucet;
|
|
62
|
+
readonly fungibleAsset: FungibleAsset;
|
|
63
|
+
readonly general: General;
|
|
64
|
+
readonly staking: Staking;
|
|
65
|
+
readonly transaction: Transaction;
|
|
66
|
+
readonly transactionSubmission: TransactionSubmission;
|
|
67
|
+
constructor(settings?: AptosConfig);
|
|
68
|
+
}
|
|
69
|
+
interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, ANS, TransactionSubmission {
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { Aptos };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-KJDY66XF.mjs";import"../chunk-SJLO3JIH.mjs";import"../chunk-XFS5O5GJ.mjs";import"../chunk-DNYVUM3K.mjs";import"../chunk-KFP7MDSD.mjs";import"../chunk-KYWYIK5P.mjs";import"../chunk-IXMH6AXJ.mjs";import"../chunk-PJDVHU7X.mjs";import"../chunk-KPESAXVI.mjs";import"../chunk-3YOV42H5.mjs";import"../chunk-TYHBYRUA.mjs";import"../chunk-Z56AKXJ7.mjs";import"../chunk-FHJ7F7Z6.mjs";import"../chunk-N6XWY4UT.mjs";import"../chunk-XFSL7O6Q.mjs";import"../chunk-J5OKXARS.mjs";import"../chunk-VAGYTPSI.mjs";import"../chunk-TXUMB5ZO.mjs";import"../chunk-7TL2MY2B.mjs";import"../chunk-7AIV5FEN.mjs";import"../chunk-WVMDCC4V.mjs";import"../chunk-NKTKHC3Z.mjs";import"../chunk-3OJN4I42.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-KNLMUSIO.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-ADR4XQPR.mjs";import"../chunk-WGXAIQ7K.mjs";import"../chunk-DXUIJ6KA.mjs";import"../chunk-BREUBEPM.mjs";import"../chunk-UQIOMAXE.mjs";import"../chunk-KWJ6XKNF.mjs";import"../chunk-LAXIJRYU.mjs";import"../chunk-EKAOAGNQ.mjs";import"../chunk-JTGGMXB7.mjs";import"../chunk-IPJKGHQY.mjs";import"../chunk-ZT2A5ABR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-O243HOP3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-WNEZCERQ.mjs";import"../chunk-2B5QXKPU.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as Aptos};
|
|
2
|
+
//# sourceMappingURL=aptos.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Client, ClientConfig, AptosSettings } from '../types/index.js';
|
|
2
|
+
import { Network } from '../utils/apiEndpoints.js';
|
|
3
|
+
import { AptosApiType } from '../utils/const.js';
|
|
4
|
+
import '../types/indexer.js';
|
|
5
|
+
import '../types/generated/operations.js';
|
|
6
|
+
import '../types/generated/types.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* This class holds the config information for the SDK client instance.
|
|
10
|
+
*/
|
|
11
|
+
declare class AptosConfig {
|
|
12
|
+
/** The Network that this SDK is associated with. */
|
|
13
|
+
readonly network: Network;
|
|
14
|
+
/**
|
|
15
|
+
* The client instance the SDK uses
|
|
16
|
+
*/
|
|
17
|
+
readonly client: Client;
|
|
18
|
+
/**
|
|
19
|
+
* The optional hardcoded fullnode URL to send requests to instead of using the network
|
|
20
|
+
*/
|
|
21
|
+
readonly fullnode?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The optional hardcoded faucet URL to send requests to instead of using the network
|
|
24
|
+
*/
|
|
25
|
+
readonly faucet?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The optional hardcoded indexer URL to send requests to instead of using the network
|
|
28
|
+
*/
|
|
29
|
+
readonly indexer?: string;
|
|
30
|
+
readonly clientConfig?: ClientConfig;
|
|
31
|
+
constructor(settings?: AptosSettings);
|
|
32
|
+
/**
|
|
33
|
+
* Returns the URL endpoint to send the request to.
|
|
34
|
+
* If a custom URL was provided in the config, that URL is returned.
|
|
35
|
+
* If a custom URL was provided but not URL endpoints, an error is thrown.
|
|
36
|
+
* Otherwise, the URL endpoint is derived from the network.
|
|
37
|
+
*
|
|
38
|
+
* @param apiType - The type of Aptos API to get the URL for.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
getRequestUrl(apiType: AptosApiType): string;
|
|
43
|
+
/**
|
|
44
|
+
* Checks if the URL is a known indexer endpoint
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
* */
|
|
48
|
+
isIndexerRequest(url: string): boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { AptosConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AptosConfig } from './aptosConfig.js';
|
|
2
|
+
import { Account } from '../core/account.js';
|
|
3
|
+
import { AccountAddressInput } from '../core/accountAddress.js';
|
|
4
|
+
import { AnyNumber, MoveStructType } from '../types/index.js';
|
|
5
|
+
import { InputGenerateTransactionOptions, InputSingleSignerTransaction } from '../transactions/types.js';
|
|
6
|
+
import '../utils/apiEndpoints.js';
|
|
7
|
+
import '../utils/const.js';
|
|
8
|
+
import '../types/indexer.js';
|
|
9
|
+
import '../types/generated/operations.js';
|
|
10
|
+
import '../types/generated/types.js';
|
|
11
|
+
import '../core/authenticationKey.js';
|
|
12
|
+
import '../core/crypto/asymmetricCrypto.js';
|
|
13
|
+
import '../bcs/serializer.js';
|
|
14
|
+
import '../core/hex.js';
|
|
15
|
+
import '../core/common.js';
|
|
16
|
+
import '../bcs/deserializer.js';
|
|
17
|
+
import '../transactions/instances/transactionArgument.js';
|
|
18
|
+
import '../bcs/serializable/moveStructs.js';
|
|
19
|
+
import '../bcs/serializable/movePrimitives.js';
|
|
20
|
+
import '../bcs/serializable/fixedBytes.js';
|
|
21
|
+
import '../transactions/instances/rawTransaction.js';
|
|
22
|
+
import '../transactions/instances/chainId.js';
|
|
23
|
+
import '../transactions/instances/transactionPayload.js';
|
|
24
|
+
import '../transactions/instances/identifier.js';
|
|
25
|
+
import '../transactions/instances/moduleId.js';
|
|
26
|
+
import '../transactions/typeTag/index.js';
|
|
27
|
+
import '../transactions/authenticator/account.js';
|
|
28
|
+
import '../core/crypto/anyPublicKey.js';
|
|
29
|
+
import '../core/crypto/anySignature.js';
|
|
30
|
+
import '../core/crypto/ed25519.js';
|
|
31
|
+
import '../core/crypto/multiEd25519.js';
|
|
32
|
+
import '../core/crypto/multiKey.js';
|
|
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?: MoveStructType;
|
|
55
|
+
options?: InputGenerateTransactionOptions;
|
|
56
|
+
}): Promise<InputSingleSignerTransaction>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { Coin };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-XFSL7O6Q.mjs";import"../chunk-J5OKXARS.mjs";import"../chunk-7TL2MY2B.mjs";import"../chunk-7AIV5FEN.mjs";import"../chunk-WVMDCC4V.mjs";import"../chunk-NKTKHC3Z.mjs";import"../chunk-3OJN4I42.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-KNLMUSIO.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-ADR4XQPR.mjs";import"../chunk-WGXAIQ7K.mjs";import"../chunk-DXUIJ6KA.mjs";import"../chunk-BREUBEPM.mjs";import"../chunk-UQIOMAXE.mjs";import"../chunk-KWJ6XKNF.mjs";import"../chunk-LAXIJRYU.mjs";import"../chunk-EKAOAGNQ.mjs";import"../chunk-JTGGMXB7.mjs";import"../chunk-IPJKGHQY.mjs";import"../chunk-ZT2A5ABR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-O243HOP3.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-MIBLZSNS.mjs";import"../chunk-BTK34A5U.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-AY2HWVDO.mjs";import"../chunk-J3QOSJFP.mjs";import"../chunk-ZXJ5ZBTL.mjs";import"../chunk-FNB6CFQR.mjs";import"../chunk-CZZJAR3B.mjs";import"../chunk-UVGCVCNG.mjs";import"../chunk-BIUGRAMO.mjs";import"../chunk-YS2OX7AB.mjs";import"../chunk-E72CFUU4.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-HH5RSP2H.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-LU6VS7PJ.mjs";import"../chunk-V6AAQLLJ.mjs";import"../chunk-7AQXAH6Q.mjs";import"../chunk-PDLUCVJB.mjs";import"../chunk-BC2NOUYT.mjs";import"../chunk-27P7PELS.mjs";import"../chunk-IZHPCZE3.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-2444YR3Y.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-2MQZUGO6.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-GUT3G5CG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-XNFEUXDS.mjs";export{a as Coin};
|
|
2
|
+
//# sourceMappingURL=coin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|