@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,29 @@
|
|
|
1
|
+
export { ChainId } from './chainId.js';
|
|
2
|
+
export { Identifier } from './identifier.js';
|
|
3
|
+
export { ModuleId } from './moduleId.js';
|
|
4
|
+
export { FeePayerRawTransaction, MultiAgentRawTransaction, RawTransaction, RawTransactionWithData } from './rawTransaction.js';
|
|
5
|
+
export { RotationProofChallenge } from './rotationProofChallenge.js';
|
|
6
|
+
export { SignedTransaction } from './signedTransaction.js';
|
|
7
|
+
export { EntryFunctionArgument, ScriptFunctionArgument, TransactionArgument } from './transactionArgument.js';
|
|
8
|
+
export { EntryFunction, MultiSig, MultisigTransactionPayload, Script, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadScript, deserializeFromScriptArgument } from './transactionPayload.js';
|
|
9
|
+
import '../../bcs/serializer.js';
|
|
10
|
+
import '../../core/hex.js';
|
|
11
|
+
import '../../core/common.js';
|
|
12
|
+
import '../../types/index.js';
|
|
13
|
+
import '../../utils/apiEndpoints.js';
|
|
14
|
+
import '../../types/indexer.js';
|
|
15
|
+
import '../../types/generated/operations.js';
|
|
16
|
+
import '../../types/generated/types.js';
|
|
17
|
+
import '../../bcs/deserializer.js';
|
|
18
|
+
import '../../core/accountAddress.js';
|
|
19
|
+
import '../typeTag/index.js';
|
|
20
|
+
import '../../core/crypto/asymmetricCrypto.js';
|
|
21
|
+
import '../../bcs/serializable/movePrimitives.js';
|
|
22
|
+
import '../../bcs/serializable/moveStructs.js';
|
|
23
|
+
import '../authenticator/transaction.js';
|
|
24
|
+
import '../authenticator/account.js';
|
|
25
|
+
import '../../core/crypto/anyPublicKey.js';
|
|
26
|
+
import '../../core/crypto/anySignature.js';
|
|
27
|
+
import '../../core/crypto/ed25519.js';
|
|
28
|
+
import '../../core/crypto/multiEd25519.js';
|
|
29
|
+
import '../../core/crypto/multiKey.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../../chunk-HTZTTZQJ.mjs";import{a as r}from"../../chunk-KNLMUSIO.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-ADR4XQPR.mjs";import{a as n,b as o,c as p,d as q}from"../../chunk-WGXAIQ7K.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j,g as k,h as l,i as m}from"../../chunk-DXUIJ6KA.mjs";import"../../chunk-BREUBEPM.mjs";import{a as b}from"../../chunk-UQIOMAXE.mjs";import{a as d}from"../../chunk-KWJ6XKNF.mjs";import{a as c}from"../../chunk-LAXIJRYU.mjs";import{a}from"../../chunk-EKAOAGNQ.mjs";import"../../chunk-JTGGMXB7.mjs";import"../../chunk-IPJKGHQY.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-TCTZCPQ6.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-GUT3G5CG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XNFEUXDS.mjs";export{b as ChainId,j as EntryFunction,q as FeePayerRawTransaction,c as Identifier,d as ModuleId,p as MultiAgentRawTransaction,l as MultiSig,m as MultisigTransactionPayload,n as RawTransaction,o as RawTransactionWithData,a as RotationProofChallenge,k as Script,r as SignedTransaction,f as TransactionPayload,h as TransactionPayloadEntryFunction,i as TransactionPayloadMultisig,g as TransactionPayloadScript,e as deserializeFromScriptArgument};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Serializable, Serializer } from '../../bcs/serializer.js';
|
|
2
|
+
import { Deserializer } from '../../bcs/deserializer.js';
|
|
3
|
+
import { AccountAddress } from '../../core/accountAddress.js';
|
|
4
|
+
import { MoveModuleId } from '../../types/index.js';
|
|
5
|
+
import { Identifier } from './identifier.js';
|
|
6
|
+
import '../../core/hex.js';
|
|
7
|
+
import '../../core/common.js';
|
|
8
|
+
import '../../utils/apiEndpoints.js';
|
|
9
|
+
import '../../types/indexer.js';
|
|
10
|
+
import '../../types/generated/operations.js';
|
|
11
|
+
import '../../types/generated/types.js';
|
|
12
|
+
import './transactionArgument.js';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Representation of a ModuleId that can serialized and deserialized
|
|
16
|
+
* ModuleId means the module address (e.g "0x1") and the module name (e.g "coin")
|
|
17
|
+
*/
|
|
18
|
+
declare class ModuleId extends Serializable {
|
|
19
|
+
readonly address: AccountAddress;
|
|
20
|
+
readonly name: Identifier;
|
|
21
|
+
/**
|
|
22
|
+
* Full name of a module.
|
|
23
|
+
* @param address The account address. e.g "0x1"
|
|
24
|
+
* @param name The module name under the "address". e.g "coin"
|
|
25
|
+
*/
|
|
26
|
+
constructor(address: AccountAddress, name: Identifier);
|
|
27
|
+
/**
|
|
28
|
+
* Converts a string literal to a ModuleId
|
|
29
|
+
* @param moduleId String literal in format "account_address::module_name", e.g. "0x1::coin"
|
|
30
|
+
* @returns ModuleId
|
|
31
|
+
*/
|
|
32
|
+
static fromStr(moduleId: MoveModuleId): ModuleId;
|
|
33
|
+
serialize(serializer: Serializer): void;
|
|
34
|
+
static deserialize(deserializer: Deserializer): ModuleId;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { ModuleId };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../../chunk-KWJ6XKNF.mjs";import"../../chunk-LAXIJRYU.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-TCTZCPQ6.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-GUT3G5CG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XNFEUXDS.mjs";export{a as ModuleId};
|
|
2
|
+
//# sourceMappingURL=moduleId.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Deserializer } from '../../bcs/deserializer.js';
|
|
2
|
+
import { Serializable, Serializer } from '../../bcs/serializer.js';
|
|
3
|
+
import { ChainId } from './chainId.js';
|
|
4
|
+
import { AccountAddress } from '../../core/accountAddress.js';
|
|
5
|
+
import { TransactionPayload } from './transactionPayload.js';
|
|
6
|
+
import '../../types/index.js';
|
|
7
|
+
import '../../utils/apiEndpoints.js';
|
|
8
|
+
import '../../types/indexer.js';
|
|
9
|
+
import '../../types/generated/operations.js';
|
|
10
|
+
import '../../types/generated/types.js';
|
|
11
|
+
import '../../core/hex.js';
|
|
12
|
+
import '../../core/common.js';
|
|
13
|
+
import './transactionArgument.js';
|
|
14
|
+
import './identifier.js';
|
|
15
|
+
import './moduleId.js';
|
|
16
|
+
import '../typeTag/index.js';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Representation of a Raw Transaction that can serialized and deserialized
|
|
20
|
+
*/
|
|
21
|
+
declare class RawTransaction extends Serializable {
|
|
22
|
+
readonly sender: AccountAddress;
|
|
23
|
+
readonly sequence_number: bigint;
|
|
24
|
+
readonly payload: TransactionPayload;
|
|
25
|
+
readonly max_gas_amount: bigint;
|
|
26
|
+
readonly gas_unit_price: bigint;
|
|
27
|
+
readonly expiration_timestamp_secs: bigint;
|
|
28
|
+
readonly chain_id: ChainId;
|
|
29
|
+
/**
|
|
30
|
+
* RawTransactions contain the metadata and payloads that can be submitted to Aptos chain for execution.
|
|
31
|
+
* RawTransactions must be signed before Aptos chain can execute them.
|
|
32
|
+
*
|
|
33
|
+
* @param sender The sender Account Address
|
|
34
|
+
* @param sequence_number Sequence number of this transaction. This must match the sequence number stored in
|
|
35
|
+
* the sender's account at the time the transaction executes.
|
|
36
|
+
* @param payload Instructions for the Aptos Blockchain, including publishing a module,
|
|
37
|
+
* execute an entry function or execute a script payload.
|
|
38
|
+
* @param max_gas_amount Maximum total gas to spend for this transaction. The account must have more
|
|
39
|
+
* than this gas or the transaction will be discarded during validation.
|
|
40
|
+
* @param gas_unit_price Price to be paid per gas unit.
|
|
41
|
+
* @param expiration_timestamp_secs The blockchain timestamp at which the blockchain would discard this transaction.
|
|
42
|
+
* @param chain_id The chain ID of the blockchain that this transaction is intended to be run on.
|
|
43
|
+
*/
|
|
44
|
+
constructor(sender: AccountAddress, sequence_number: bigint, payload: TransactionPayload, max_gas_amount: bigint, gas_unit_price: bigint, expiration_timestamp_secs: bigint, chain_id: ChainId);
|
|
45
|
+
serialize(serializer: Serializer): void;
|
|
46
|
+
static deserialize(deserializer: Deserializer): RawTransaction;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Representation of a Raw Transaction With Data that can serialized and deserialized
|
|
50
|
+
*/
|
|
51
|
+
declare abstract class RawTransactionWithData extends Serializable {
|
|
52
|
+
/**
|
|
53
|
+
* Serialize a Raw Transaction With Data
|
|
54
|
+
*/
|
|
55
|
+
abstract serialize(serializer: Serializer): void;
|
|
56
|
+
/**
|
|
57
|
+
* Deserialize a Raw Transaction With Data
|
|
58
|
+
*/
|
|
59
|
+
static deserialize(deserializer: Deserializer): RawTransactionWithData;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Representation of a Multi Agent Transaction that can serialized and deserialized
|
|
63
|
+
*/
|
|
64
|
+
declare class MultiAgentRawTransaction extends RawTransactionWithData {
|
|
65
|
+
/**
|
|
66
|
+
* The raw transaction
|
|
67
|
+
*/
|
|
68
|
+
readonly raw_txn: RawTransaction;
|
|
69
|
+
/**
|
|
70
|
+
* The secondary signers on this transaction
|
|
71
|
+
*/
|
|
72
|
+
readonly secondary_signer_addresses: Array<AccountAddress>;
|
|
73
|
+
constructor(raw_txn: RawTransaction, secondary_signer_addresses: Array<AccountAddress>);
|
|
74
|
+
serialize(serializer: Serializer): void;
|
|
75
|
+
static load(deserializer: Deserializer): MultiAgentRawTransaction;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Representation of a Fee Payer Transaction that can serialized and deserialized
|
|
79
|
+
*/
|
|
80
|
+
declare class FeePayerRawTransaction extends RawTransactionWithData {
|
|
81
|
+
/**
|
|
82
|
+
* The raw transaction
|
|
83
|
+
*/
|
|
84
|
+
readonly raw_txn: RawTransaction;
|
|
85
|
+
/**
|
|
86
|
+
* The secondary signers on this transaction - optional and can be empty
|
|
87
|
+
*/
|
|
88
|
+
readonly secondary_signer_addresses: Array<AccountAddress>;
|
|
89
|
+
/**
|
|
90
|
+
* The fee payer account address
|
|
91
|
+
*/
|
|
92
|
+
readonly fee_payer_address: AccountAddress;
|
|
93
|
+
constructor(raw_txn: RawTransaction, secondary_signer_addresses: Array<AccountAddress>, fee_payer_address: AccountAddress);
|
|
94
|
+
serialize(serializer: Serializer): void;
|
|
95
|
+
static load(deserializer: Deserializer): FeePayerRawTransaction;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export { FeePayerRawTransaction, MultiAgentRawTransaction, RawTransaction, RawTransactionWithData };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d}from"../../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-E7FWVXGX.mjs";import"../../chunk-TCTZCPQ6.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-GUT3G5CG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XNFEUXDS.mjs";export{d as FeePayerRawTransaction,c as MultiAgentRawTransaction,a as RawTransaction,b as RawTransactionWithData};
|
|
2
|
+
//# sourceMappingURL=rawTransaction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Serializable, Serializer } from '../../bcs/serializer.js';
|
|
2
|
+
import { AccountAddress } from '../../core/accountAddress.js';
|
|
3
|
+
import { AnyNumber } from '../../types/index.js';
|
|
4
|
+
import { PublicKey } from '../../core/crypto/asymmetricCrypto.js';
|
|
5
|
+
import { U8, U64 } from '../../bcs/serializable/movePrimitives.js';
|
|
6
|
+
import { MoveString, MoveVector } from '../../bcs/serializable/moveStructs.js';
|
|
7
|
+
import '../../core/hex.js';
|
|
8
|
+
import '../../core/common.js';
|
|
9
|
+
import '../../utils/apiEndpoints.js';
|
|
10
|
+
import '../../types/indexer.js';
|
|
11
|
+
import '../../types/generated/operations.js';
|
|
12
|
+
import '../../types/generated/types.js';
|
|
13
|
+
import '../../bcs/deserializer.js';
|
|
14
|
+
import './transactionArgument.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Representation of the challenge which is needed to sign by owner of the account
|
|
18
|
+
* to rotate the authentication key.
|
|
19
|
+
*/
|
|
20
|
+
declare class RotationProofChallenge extends Serializable {
|
|
21
|
+
readonly accountAddress: AccountAddress;
|
|
22
|
+
readonly moduleName: MoveString;
|
|
23
|
+
readonly structName: MoveString;
|
|
24
|
+
readonly originator: AccountAddress;
|
|
25
|
+
readonly currentAuthKey: AccountAddress;
|
|
26
|
+
readonly newPublicKey: MoveVector<U8>;
|
|
27
|
+
readonly sequenceNumber: U64;
|
|
28
|
+
constructor(args: {
|
|
29
|
+
sequenceNumber: AnyNumber;
|
|
30
|
+
originator: AccountAddress;
|
|
31
|
+
currentAuthKey: AccountAddress;
|
|
32
|
+
newPublicKey: PublicKey;
|
|
33
|
+
});
|
|
34
|
+
serialize(serializer: Serializer): void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { RotationProofChallenge };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../../chunk-EKAOAGNQ.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-GUT3G5CG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XNFEUXDS.mjs";export{a as RotationProofChallenge};
|
|
2
|
+
//# sourceMappingURL=rotationProofChallenge.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { TransactionAuthenticator } from '../authenticator/transaction.js';
|
|
2
|
+
import { Deserializer } from '../../bcs/deserializer.js';
|
|
3
|
+
import { Serializable, Serializer } from '../../bcs/serializer.js';
|
|
4
|
+
import { RawTransaction } from './rawTransaction.js';
|
|
5
|
+
import '../authenticator/account.js';
|
|
6
|
+
import '../../core/crypto/anyPublicKey.js';
|
|
7
|
+
import '../../types/index.js';
|
|
8
|
+
import '../../utils/apiEndpoints.js';
|
|
9
|
+
import '../../types/indexer.js';
|
|
10
|
+
import '../../types/generated/operations.js';
|
|
11
|
+
import '../../types/generated/types.js';
|
|
12
|
+
import '../../core/crypto/anySignature.js';
|
|
13
|
+
import '../../core/crypto/asymmetricCrypto.js';
|
|
14
|
+
import '../../core/hex.js';
|
|
15
|
+
import '../../core/common.js';
|
|
16
|
+
import '../../core/crypto/ed25519.js';
|
|
17
|
+
import '../../core/crypto/multiEd25519.js';
|
|
18
|
+
import '../../core/crypto/multiKey.js';
|
|
19
|
+
import '../../core/accountAddress.js';
|
|
20
|
+
import './transactionArgument.js';
|
|
21
|
+
import './chainId.js';
|
|
22
|
+
import './transactionPayload.js';
|
|
23
|
+
import './identifier.js';
|
|
24
|
+
import './moduleId.js';
|
|
25
|
+
import '../typeTag/index.js';
|
|
26
|
+
|
|
27
|
+
declare class SignedTransaction extends Serializable {
|
|
28
|
+
readonly raw_txn: RawTransaction;
|
|
29
|
+
readonly authenticator: TransactionAuthenticator;
|
|
30
|
+
/**
|
|
31
|
+
* A SignedTransaction consists of a raw transaction and an authenticator. The authenticator
|
|
32
|
+
* contains a client's public key and the signature of the raw transaction.
|
|
33
|
+
*
|
|
34
|
+
* @see {@link https://aptos.dev/integration/creating-a-signed-transaction | Creating a Signed Transaction}
|
|
35
|
+
*
|
|
36
|
+
* @param raw_txn
|
|
37
|
+
* @param authenticator Contains a client's public key and the signature of the raw transaction.
|
|
38
|
+
* Authenticator has 3 flavors: single signature, multi-signature and multi-agent.
|
|
39
|
+
* @see {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs} for details.
|
|
40
|
+
*/
|
|
41
|
+
constructor(raw_txn: RawTransaction, authenticator: TransactionAuthenticator);
|
|
42
|
+
serialize(serializer: Serializer): void;
|
|
43
|
+
static deserialize(deserializer: Deserializer): SignedTransaction;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { SignedTransaction };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../../chunk-KNLMUSIO.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-JTGGMXB7.mjs";import"../../chunk-IPJKGHQY.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-TCTZCPQ6.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-GUT3G5CG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XNFEUXDS.mjs";export{a as SignedTransaction};
|
|
2
|
+
//# sourceMappingURL=signedTransaction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Serializer } from '../../bcs/serializer.js';
|
|
2
|
+
import { Hex } from '../../core/hex.js';
|
|
3
|
+
import '../../types/index.js';
|
|
4
|
+
import '../../utils/apiEndpoints.js';
|
|
5
|
+
import '../../types/indexer.js';
|
|
6
|
+
import '../../types/generated/operations.js';
|
|
7
|
+
import '../../types/generated/types.js';
|
|
8
|
+
import '../../core/common.js';
|
|
9
|
+
|
|
10
|
+
interface TransactionArgument extends EntryFunctionArgument, ScriptFunctionArgument {
|
|
11
|
+
}
|
|
12
|
+
interface EntryFunctionArgument {
|
|
13
|
+
/**
|
|
14
|
+
* Serialize an argument to BCS-serialized bytes.
|
|
15
|
+
*/
|
|
16
|
+
serialize(serializer: Serializer): void;
|
|
17
|
+
/**
|
|
18
|
+
* Serialize an argument as a type-agnostic, fixed byte sequence. The byte sequence contains
|
|
19
|
+
* the number of the following bytes followed by the BCS-serialized bytes for a typed argument.
|
|
20
|
+
*/
|
|
21
|
+
serializeForEntryFunction(serializer: Serializer): void;
|
|
22
|
+
bcsToBytes(): Uint8Array;
|
|
23
|
+
bcsToHex(): Hex;
|
|
24
|
+
}
|
|
25
|
+
interface ScriptFunctionArgument {
|
|
26
|
+
/**
|
|
27
|
+
* Serialize an argument to BCS-serialized bytes.
|
|
28
|
+
*/
|
|
29
|
+
serialize(serializer: Serializer): void;
|
|
30
|
+
/**
|
|
31
|
+
* Serialize an argument to BCS-serialized bytes as a type aware byte sequence.
|
|
32
|
+
* The byte sequence contains an enum variant index followed by the BCS-serialized
|
|
33
|
+
* bytes for a typed argument.
|
|
34
|
+
*/
|
|
35
|
+
serializeForScriptFunction(serializer: Serializer): void;
|
|
36
|
+
bcsToBytes(): Uint8Array;
|
|
37
|
+
bcsToHex(): Hex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { EntryFunctionArgument, ScriptFunctionArgument, TransactionArgument };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { Deserializer } from '../../bcs/deserializer.js';
|
|
2
|
+
import { Serializable, Serializer } from '../../bcs/serializer.js';
|
|
3
|
+
import { AccountAddress } from '../../core/accountAddress.js';
|
|
4
|
+
import { MoveModuleId } from '../../types/index.js';
|
|
5
|
+
import { TransactionArgument, EntryFunctionArgument, ScriptFunctionArgument } from './transactionArgument.js';
|
|
6
|
+
import { Identifier } from './identifier.js';
|
|
7
|
+
import { ModuleId } from './moduleId.js';
|
|
8
|
+
import { TypeTag } from '../typeTag/index.js';
|
|
9
|
+
import '../../utils/apiEndpoints.js';
|
|
10
|
+
import '../../types/indexer.js';
|
|
11
|
+
import '../../types/generated/operations.js';
|
|
12
|
+
import '../../types/generated/types.js';
|
|
13
|
+
import '../../core/hex.js';
|
|
14
|
+
import '../../core/common.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Deserialize a Script Transaction Argument
|
|
18
|
+
*/
|
|
19
|
+
declare function deserializeFromScriptArgument(deserializer: Deserializer): TransactionArgument;
|
|
20
|
+
/**
|
|
21
|
+
* Representation of the supported Transaction Payload
|
|
22
|
+
* that can serialized and deserialized
|
|
23
|
+
*/
|
|
24
|
+
declare abstract class TransactionPayload extends Serializable {
|
|
25
|
+
/**
|
|
26
|
+
* Serialize a Transaction Payload
|
|
27
|
+
*/
|
|
28
|
+
abstract serialize(serializer: Serializer): void;
|
|
29
|
+
/**
|
|
30
|
+
* Deserialize a Transaction Payload
|
|
31
|
+
*/
|
|
32
|
+
static deserialize(deserializer: Deserializer): TransactionPayload;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Representation of a Transaction Payload Script that can serialized and deserialized
|
|
36
|
+
*/
|
|
37
|
+
declare class TransactionPayloadScript extends TransactionPayload {
|
|
38
|
+
readonly script: Script;
|
|
39
|
+
constructor(script: Script);
|
|
40
|
+
serialize(serializer: Serializer): void;
|
|
41
|
+
static load(deserializer: Deserializer): TransactionPayloadScript;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Representation of a Transaction Payload Entry Function that can serialized and deserialized
|
|
45
|
+
*/
|
|
46
|
+
declare class TransactionPayloadEntryFunction extends TransactionPayload {
|
|
47
|
+
readonly entryFunction: EntryFunction;
|
|
48
|
+
constructor(entryFunction: EntryFunction);
|
|
49
|
+
serialize(serializer: Serializer): void;
|
|
50
|
+
static load(deserializer: Deserializer): TransactionPayloadEntryFunction;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Representation of a Transaction Payload Multi-sig that can serialized and deserialized
|
|
54
|
+
*/
|
|
55
|
+
declare class TransactionPayloadMultisig extends TransactionPayload {
|
|
56
|
+
readonly multiSig: MultiSig;
|
|
57
|
+
constructor(multiSig: MultiSig);
|
|
58
|
+
serialize(serializer: Serializer): void;
|
|
59
|
+
static load(deserializer: Deserializer): TransactionPayloadMultisig;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Representation of a EntryFunction that can serialized and deserialized
|
|
63
|
+
*/
|
|
64
|
+
declare class EntryFunction {
|
|
65
|
+
readonly module_name: ModuleId;
|
|
66
|
+
readonly function_name: Identifier;
|
|
67
|
+
readonly type_args: Array<TypeTag>;
|
|
68
|
+
readonly args: Array<EntryFunctionArgument>;
|
|
69
|
+
/**
|
|
70
|
+
* Contains the payload to run a function within a module.
|
|
71
|
+
* @param module_name Fully qualified module name in format "account_address::module_name" e.g. "0x1::coin"
|
|
72
|
+
* @param function_name The function name. e.g "transfer"
|
|
73
|
+
* @param type_args Type arguments that move function requires.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* A coin transfer function has one type argument "CoinType".
|
|
77
|
+
* ```
|
|
78
|
+
* public entry fun transfer<CoinType>(from: &signer, to: address, amount: u64)
|
|
79
|
+
* ```
|
|
80
|
+
* @param args arguments to the move function.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* A coin transfer function has three arguments "from", "to" and "amount".
|
|
84
|
+
* ```
|
|
85
|
+
* public entry fun transfer<CoinType>(from: &signer, to: address, amount: u64)
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
constructor(module_name: ModuleId, function_name: Identifier, type_args: Array<TypeTag>, args: Array<EntryFunctionArgument>);
|
|
89
|
+
/**
|
|
90
|
+
* A helper function to build a EntryFunction payload from raw primitive values
|
|
91
|
+
*
|
|
92
|
+
* @param module_id Fully qualified module name in format "AccountAddress::module_id" e.g. "0x1::coin"
|
|
93
|
+
* @param function_name Function name
|
|
94
|
+
* @param type_args Type arguments that move function requires.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* A coin transfer function has one type argument "CoinType".
|
|
98
|
+
* ```
|
|
99
|
+
* public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
|
|
100
|
+
* ```
|
|
101
|
+
* @param args Arguments to the move function.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* A coin transfer function has three arguments "from", "to" and "amount".
|
|
105
|
+
* ```
|
|
106
|
+
* public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
|
|
107
|
+
* ```
|
|
108
|
+
* @returns EntryFunction
|
|
109
|
+
*/
|
|
110
|
+
static build(module_id: MoveModuleId, function_name: string, type_args: Array<TypeTag>, args: Array<EntryFunctionArgument>): EntryFunction;
|
|
111
|
+
serialize(serializer: Serializer): void;
|
|
112
|
+
/**
|
|
113
|
+
* Deserializes an entry function payload with the arguments represented as EntryFunctionBytes instances.
|
|
114
|
+
* @see EntryFunctionBytes
|
|
115
|
+
*
|
|
116
|
+
* NOTE: When you deserialize an EntryFunction payload with this method, the entry function
|
|
117
|
+
* arguments are populated into the deserialized instance as type-agnostic, raw fixed bytes
|
|
118
|
+
* in the form of the EntryFunctionBytes class.
|
|
119
|
+
*
|
|
120
|
+
* In order to correctly deserialize these arguments as their actual type representations, you
|
|
121
|
+
* must know the types of the arguments beforehand and deserialize them yourself individually.
|
|
122
|
+
*
|
|
123
|
+
* One way you could achieve this is by using the ABIs for an entry function and deserializing each
|
|
124
|
+
* argument as its given, corresponding type.
|
|
125
|
+
*
|
|
126
|
+
* @param deserializer
|
|
127
|
+
* @returns A deserialized EntryFunction payload for a transaction.
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
static deserialize(deserializer: Deserializer): EntryFunction;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Representation of a Script that can serialized and deserialized
|
|
134
|
+
*/
|
|
135
|
+
declare class Script {
|
|
136
|
+
/**
|
|
137
|
+
* The move module bytecode
|
|
138
|
+
*/
|
|
139
|
+
readonly bytecode: Uint8Array;
|
|
140
|
+
/**
|
|
141
|
+
* The type arguments that the bytecode function requires.
|
|
142
|
+
*/
|
|
143
|
+
readonly type_args: Array<TypeTag>;
|
|
144
|
+
/**
|
|
145
|
+
* The arguments that the bytecode function requires.
|
|
146
|
+
*/
|
|
147
|
+
readonly args: Array<ScriptFunctionArgument>;
|
|
148
|
+
/**
|
|
149
|
+
* Scripts contain the Move bytecodes payload that can be submitted to Aptos chain for execution.
|
|
150
|
+
*
|
|
151
|
+
* @param bytecode The move module bytecode
|
|
152
|
+
* @param type_args The type arguments that the bytecode function requires.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* A coin transfer function has one type argument "CoinType".
|
|
156
|
+
* ```
|
|
157
|
+
* public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
|
|
158
|
+
* ```
|
|
159
|
+
* @param args The arguments that the bytecode function requires.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* A coin transfer function has three arguments "from", "to" and "amount".
|
|
163
|
+
* ```
|
|
164
|
+
* public(script) fun transfer<CoinType>(from: &signer, to: address, amount: u64,)
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
constructor(bytecode: Uint8Array, type_args: Array<TypeTag>, args: Array<ScriptFunctionArgument>);
|
|
168
|
+
serialize(serializer: Serializer): void;
|
|
169
|
+
static deserialize(deserializer: Deserializer): Script;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Representation of a MultiSig that can serialized and deserialized
|
|
173
|
+
*/
|
|
174
|
+
declare class MultiSig {
|
|
175
|
+
readonly multisig_address: AccountAddress;
|
|
176
|
+
readonly transaction_payload?: MultisigTransactionPayload;
|
|
177
|
+
/**
|
|
178
|
+
* Contains the payload to run a multi-sig account transaction.
|
|
179
|
+
*
|
|
180
|
+
* @param multisig_address The multi-sig account address the transaction will be executed as.
|
|
181
|
+
*
|
|
182
|
+
* @param transaction_payload The payload of the multi-sig transaction. This is optional when executing a multi-sig
|
|
183
|
+
* transaction whose payload is already stored on chain.
|
|
184
|
+
*/
|
|
185
|
+
constructor(multisig_address: AccountAddress, transaction_payload?: MultisigTransactionPayload);
|
|
186
|
+
serialize(serializer: Serializer): void;
|
|
187
|
+
static deserialize(deserializer: Deserializer): MultiSig;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Representation of a MultiSig Transaction Payload from `multisig_account.move`
|
|
191
|
+
* that can be serialized and deserialized
|
|
192
|
+
|
|
193
|
+
* This class exists right now to represent an extensible transaction payload class for
|
|
194
|
+
* transactions used in `multisig_account.move`. Eventually, this class will be able to
|
|
195
|
+
* support script payloads when the `multisig_account.move` module supports them.
|
|
196
|
+
*/
|
|
197
|
+
declare class MultisigTransactionPayload {
|
|
198
|
+
readonly transaction_payload: EntryFunction;
|
|
199
|
+
/**
|
|
200
|
+
* Contains the payload to run a multi-sig account transaction.
|
|
201
|
+
*
|
|
202
|
+
* @param transaction_payload The payload of the multi-sig transaction.
|
|
203
|
+
* This can only be EntryFunction for now but,
|
|
204
|
+
* Script might be supported in the future.
|
|
205
|
+
*/
|
|
206
|
+
constructor(transaction_payload: EntryFunction);
|
|
207
|
+
serialize(serializer: Serializer): void;
|
|
208
|
+
static deserialize(deserializer: Deserializer): MultisigTransactionPayload;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export { EntryFunction, MultiSig, MultisigTransactionPayload, Script, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadScript, deserializeFromScriptArgument };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i}from"../../chunk-DXUIJ6KA.mjs";import"../../chunk-BREUBEPM.mjs";import"../../chunk-KWJ6XKNF.mjs";import"../../chunk-LAXIJRYU.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-TCTZCPQ6.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-GUT3G5CG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XNFEUXDS.mjs";export{f as EntryFunction,h as MultiSig,i as MultisigTransactionPayload,g as Script,b as TransactionPayload,d as TransactionPayloadEntryFunction,e as TransactionPayloadMultisig,c as TransactionPayloadScript,a as deserializeFromScriptArgument};
|
|
2
|
+
//# sourceMappingURL=transactionPayload.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { SimpleEntryFunctionArgumentTypes, EntryFunctionArgumentTypes, InputGenerateTransactionPayloadDataWithRemoteABI, InputGenerateTransactionPayloadData, InputScriptData } from '../types.js';
|
|
2
|
+
import { MoveFunction, MoveStructType } from '../../types/index.js';
|
|
3
|
+
import { FixedBytes } from '../../bcs/serializable/fixedBytes.js';
|
|
4
|
+
import { Bool, U8, U16, U32, U64, U128, U256 } from '../../bcs/serializable/movePrimitives.js';
|
|
5
|
+
import { MoveString } from '../../bcs/serializable/moveStructs.js';
|
|
6
|
+
import { AccountAddress } from '../../core/accountAddress.js';
|
|
7
|
+
import '../../api/aptosConfig.js';
|
|
8
|
+
import '../../utils/apiEndpoints.js';
|
|
9
|
+
import '../../utils/const.js';
|
|
10
|
+
import '../../types/indexer.js';
|
|
11
|
+
import '../../types/generated/operations.js';
|
|
12
|
+
import '../../types/generated/types.js';
|
|
13
|
+
import '../../core/crypto/asymmetricCrypto.js';
|
|
14
|
+
import '../../bcs/serializer.js';
|
|
15
|
+
import '../../core/hex.js';
|
|
16
|
+
import '../../core/common.js';
|
|
17
|
+
import '../instances/rawTransaction.js';
|
|
18
|
+
import '../../bcs/deserializer.js';
|
|
19
|
+
import '../instances/chainId.js';
|
|
20
|
+
import '../instances/transactionPayload.js';
|
|
21
|
+
import '../instances/transactionArgument.js';
|
|
22
|
+
import '../instances/identifier.js';
|
|
23
|
+
import '../instances/moduleId.js';
|
|
24
|
+
import '../typeTag/index.js';
|
|
25
|
+
import '../authenticator/account.js';
|
|
26
|
+
import '../../core/crypto/anyPublicKey.js';
|
|
27
|
+
import '../../core/crypto/anySignature.js';
|
|
28
|
+
import '../../core/crypto/ed25519.js';
|
|
29
|
+
import '../../core/crypto/multiEd25519.js';
|
|
30
|
+
import '../../core/crypto/multiKey.js';
|
|
31
|
+
|
|
32
|
+
declare function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean;
|
|
33
|
+
declare function isString(arg: any): arg is string;
|
|
34
|
+
declare function isNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number;
|
|
35
|
+
declare function isLargeNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number | bigint | string;
|
|
36
|
+
declare function isNull(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined;
|
|
37
|
+
declare function isBcsBool(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is Bool;
|
|
38
|
+
declare function isBcsAddress(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is AccountAddress;
|
|
39
|
+
declare function isBcsString(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is MoveString;
|
|
40
|
+
declare function isBcsFixedBytes(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is FixedBytes;
|
|
41
|
+
declare function isBcsU8(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U8;
|
|
42
|
+
declare function isBcsU16(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U16;
|
|
43
|
+
declare function isBcsU32(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U32;
|
|
44
|
+
declare function isBcsU64(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U64;
|
|
45
|
+
declare function isBcsU128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U128;
|
|
46
|
+
declare function isBcsU256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U256;
|
|
47
|
+
declare function isScriptDataInput(arg: InputGenerateTransactionPayloadDataWithRemoteABI | InputGenerateTransactionPayloadData): arg is InputScriptData;
|
|
48
|
+
declare function throwTypeMismatch(expectedType: string, position: number): void;
|
|
49
|
+
/**
|
|
50
|
+
* Finds first non-signer arg.
|
|
51
|
+
*
|
|
52
|
+
* A function is often defined with a `signer` or `&signer` arguments at the start, which are filled in
|
|
53
|
+
* by signatures, and not by the caller.
|
|
54
|
+
* @param functionAbi
|
|
55
|
+
*/
|
|
56
|
+
declare function findFirstNonSignerArg(functionAbi: MoveFunction): number;
|
|
57
|
+
declare function getFunctionParts(functionArg: MoveStructType): {
|
|
58
|
+
moduleAddress: string;
|
|
59
|
+
moduleName: string;
|
|
60
|
+
functionName: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { findFirstNonSignerArg, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, throwTypeMismatch };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s}from"../../chunk-3OJN4I42.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-TCTZCPQ6.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-GUT3G5CG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-XNFEUXDS.mjs";export{r as findFirstNonSignerArg,s as getFunctionParts,g as isBcsAddress,f as isBcsBool,i as isBcsFixedBytes,h as isBcsString,n as isBcsU128,k as isBcsU16,o as isBcsU256,l as isBcsU32,m as isBcsU64,j as isBcsU8,a as isBool,d as isLargeNumber,e as isNull,c as isNumber,p as isScriptDataInput,b as isString,q as throwTypeMismatch};
|
|
2
|
+
//# sourceMappingURL=helpers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|