@aptos-labs/ts-sdk 0.0.5 → 0.0.6
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 +3 -3
- package/dist/browser/index.d.ts +340 -288
- package/dist/browser/index.global.js +54 -30
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +340 -288
- package/dist/common/index.js +24 -24
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/{account.d.ts → account.d.mts} +17 -17
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/{ans.d.ts → ans.d.mts} +33 -33
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +72 -0
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/{aptosConfig.d.ts → aptosConfig.d.mts} +6 -6
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +59 -0
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/{digitalAsset.d.ts → digitalAsset.d.mts} +33 -33
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/{event.d.ts → event.d.mts} +14 -14
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/{faucet.d.ts → faucet.d.mts} +13 -13
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/{fungibleAsset.d.ts → fungibleAsset.d.mts} +7 -7
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/{general.d.ts → general.d.mts} +11 -11
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +46 -0
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/{staking.d.ts → staking.d.mts} +13 -13
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/{transaction.d.ts → transaction.d.mts} +7 -7
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/{transactionSubmission.d.ts → transactionSubmission.d.mts} +33 -33
- package/dist/esm/api/transactionSubmission.mjs +1 -1
- package/dist/esm/bcs/{consts.d.ts → consts.d.mts} +5 -5
- package/dist/esm/bcs/consts.mjs +1 -1
- package/dist/esm/bcs/{deserializer.d.ts → deserializer.d.mts} +5 -5
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.d.mts +14 -0
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/{entryFunctionBytes.d.ts → entryFunctionBytes.d.mts} +11 -11
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/{fixedBytes.d.ts → fixedBytes.d.mts} +10 -10
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/{movePrimitives.d.ts → movePrimitives.d.mts} +10 -10
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/{moveStructs.d.ts → moveStructs.d.mts} +11 -11
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/{serializer.d.ts → serializer.d.mts} +7 -7
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-WVMDCC4V.mjs → chunk-2W744GUN.mjs} +2 -2
- package/dist/esm/{chunk-WVMDCC4V.mjs.map → chunk-2W744GUN.mjs.map} +1 -1
- package/dist/esm/chunk-3JVGSFHP.mjs +2 -0
- package/dist/esm/chunk-3JVGSFHP.mjs.map +1 -0
- package/dist/esm/chunk-44MGBJ73.mjs +2 -0
- package/dist/esm/{chunk-CZZJAR3B.mjs.map → chunk-44MGBJ73.mjs.map} +1 -1
- package/dist/esm/chunk-4ADA5BE7.mjs +2 -0
- package/dist/esm/{chunk-7AQXAH6Q.mjs.map → chunk-4ADA5BE7.mjs.map} +1 -1
- package/dist/esm/{chunk-KYWYIK5P.mjs → chunk-4RVIA63I.mjs} +2 -2
- package/dist/esm/chunk-4RVIA63I.mjs.map +1 -0
- package/dist/esm/chunk-62SCW5NH.mjs +2 -0
- package/dist/esm/{chunk-YS2OX7AB.mjs.map → chunk-62SCW5NH.mjs.map} +1 -1
- package/dist/esm/{chunk-MIBLZSNS.mjs → chunk-7MNEEVXY.mjs} +2 -2
- package/dist/esm/chunk-7MNEEVXY.mjs.map +1 -0
- package/dist/esm/{chunk-KPESAXVI.mjs → chunk-AAIBCWZY.mjs} +2 -2
- package/dist/esm/{chunk-N6XWY4UT.mjs → chunk-ARVSIDVB.mjs} +1 -1
- package/dist/esm/{chunk-N6XWY4UT.mjs.map → chunk-ARVSIDVB.mjs.map} +1 -1
- package/dist/esm/{chunk-IXMH6AXJ.mjs → chunk-BFSEVKNA.mjs} +2 -2
- package/dist/esm/chunk-BP5ZO7NK.mjs +2 -0
- package/dist/esm/{chunk-FHJ7F7Z6.mjs.map → chunk-BP5ZO7NK.mjs.map} +1 -1
- package/dist/esm/chunk-BPYLPPEQ.mjs +2 -0
- package/dist/esm/{chunk-V6AAQLLJ.mjs.map → chunk-BPYLPPEQ.mjs.map} +1 -1
- package/dist/esm/{chunk-3OJN4I42.mjs → chunk-BV4OOU5Y.mjs} +2 -2
- package/dist/esm/{chunk-3OJN4I42.mjs.map → chunk-BV4OOU5Y.mjs.map} +1 -1
- package/dist/esm/{chunk-VAGYTPSI.mjs → chunk-BWMNPUTK.mjs} +2 -2
- package/dist/esm/chunk-CYDWEPFL.mjs +1 -0
- package/dist/esm/chunk-EFIYW4WK.mjs +2 -0
- package/dist/esm/{chunk-2MQZUGO6.mjs → chunk-EGOYLZBU.mjs} +2 -2
- package/dist/esm/chunk-EGOYLZBU.mjs.map +1 -0
- package/dist/esm/chunk-EQ5BEDJ7.mjs +2 -0
- package/dist/esm/{chunk-ADR4XQPR.mjs.map → chunk-EQ5BEDJ7.mjs.map} +1 -1
- package/dist/esm/chunk-EWTHPMEE.mjs +2 -0
- package/dist/esm/{chunk-LAXIJRYU.mjs.map → chunk-EWTHPMEE.mjs.map} +1 -1
- package/dist/esm/chunk-EYXHVA6W.mjs +2 -0
- package/dist/esm/chunk-EYXHVA6W.mjs.map +1 -0
- package/dist/esm/chunk-GEFQFRL3.mjs +2 -0
- package/dist/esm/chunk-GEFQFRL3.mjs.map +1 -0
- package/dist/esm/{chunk-BC2NOUYT.mjs → chunk-GTC7WHMV.mjs} +2 -2
- package/dist/esm/{chunk-BC2NOUYT.mjs.map → chunk-GTC7WHMV.mjs.map} +1 -1
- package/dist/esm/{chunk-27P7PELS.mjs → chunk-HA6JD5R6.mjs} +2 -2
- package/dist/esm/{chunk-27P7PELS.mjs.map → chunk-HA6JD5R6.mjs.map} +1 -1
- package/dist/esm/chunk-HVADSXTB.mjs +2 -0
- package/dist/esm/{chunk-LU6VS7PJ.mjs.map → chunk-HVADSXTB.mjs.map} +1 -1
- package/dist/esm/{chunk-Z56AKXJ7.mjs → chunk-IG5CHHSI.mjs} +2 -2
- package/dist/esm/chunk-IXMB2GOK.mjs +2 -0
- package/dist/esm/chunk-IXMB2GOK.mjs.map +1 -0
- package/dist/esm/{chunk-TYHBYRUA.mjs → chunk-J5ZFOJN2.mjs} +2 -2
- package/dist/esm/chunk-J5ZFOJN2.mjs.map +1 -0
- package/dist/esm/chunk-JDS7K2WI.mjs +2 -0
- package/dist/esm/{chunk-KNLMUSIO.mjs.map → chunk-JDS7K2WI.mjs.map} +1 -1
- package/dist/esm/chunk-JZNLZMUC.mjs +2 -0
- package/dist/esm/{chunk-WGXAIQ7K.mjs.map → chunk-JZNLZMUC.mjs.map} +1 -1
- package/dist/esm/chunk-KQXRH5FK.mjs +2 -0
- package/dist/esm/{chunk-UQIOMAXE.mjs.map → chunk-KQXRH5FK.mjs.map} +1 -1
- package/dist/esm/{chunk-2B5QXKPU.mjs → chunk-NGCFPQ22.mjs} +2 -2
- package/dist/esm/chunk-NGCFPQ22.mjs.map +1 -0
- package/dist/esm/chunk-NTD3H2S4.mjs +2 -0
- package/dist/esm/chunk-NTD3H2S4.mjs.map +1 -0
- package/dist/esm/{chunk-KFP7MDSD.mjs → chunk-NYFVEKF6.mjs} +2 -2
- package/dist/esm/chunk-NZIJV4O2.mjs +2 -0
- package/dist/esm/{chunk-HH5RSP2H.mjs.map → chunk-NZIJV4O2.mjs.map} +1 -1
- package/dist/esm/{chunk-TXUMB5ZO.mjs → chunk-P32MY5YF.mjs} +2 -2
- package/dist/esm/{chunk-TXUMB5ZO.mjs.map → chunk-P32MY5YF.mjs.map} +1 -1
- package/dist/esm/{chunk-DNYVUM3K.mjs → chunk-Q6N6QACD.mjs} +2 -2
- package/dist/esm/{chunk-DNYVUM3K.mjs.map → chunk-Q6N6QACD.mjs.map} +1 -1
- package/dist/esm/chunk-QWVR4RCV.mjs +2 -0
- package/dist/esm/{chunk-IPJKGHQY.mjs.map → chunk-QWVR4RCV.mjs.map} +1 -1
- package/dist/esm/chunk-R26XML3D.mjs +2 -0
- package/dist/esm/chunk-R26XML3D.mjs.map +1 -0
- package/dist/esm/chunk-R3KWVOFG.mjs +2 -0
- package/dist/esm/{chunk-KWJ6XKNF.mjs.map → chunk-R3KWVOFG.mjs.map} +1 -1
- package/dist/esm/chunk-RYETO74W.mjs +2 -0
- package/dist/esm/{chunk-BIUGRAMO.mjs.map → chunk-RYETO74W.mjs.map} +1 -1
- package/dist/esm/chunk-S36IYY6K.mjs +2 -0
- package/dist/esm/{chunk-DXUIJ6KA.mjs.map → chunk-S36IYY6K.mjs.map} +1 -1
- package/dist/esm/chunk-TIH6ARYP.mjs +2 -0
- package/dist/esm/{chunk-IZHPCZE3.mjs.map → chunk-TIH6ARYP.mjs.map} +1 -1
- package/dist/esm/{chunk-O243HOP3.mjs → chunk-TQD4IGUM.mjs} +2 -2
- package/dist/esm/chunk-TQD4IGUM.mjs.map +1 -0
- package/dist/esm/chunk-U25N2VWA.mjs +2 -0
- package/dist/esm/{chunk-FNB6CFQR.mjs.map → chunk-U25N2VWA.mjs.map} +1 -1
- package/dist/esm/chunk-U3LO2FSJ.mjs +2 -0
- package/dist/esm/{chunk-ZXJ5ZBTL.mjs.map → chunk-U3LO2FSJ.mjs.map} +1 -1
- package/dist/esm/chunk-U6SZNNVL.mjs +2 -0
- package/dist/esm/chunk-U6SZNNVL.mjs.map +1 -0
- package/dist/esm/{chunk-EKAOAGNQ.mjs → chunk-UAAI3NCA.mjs} +2 -2
- package/dist/esm/chunk-UNQNACJT.mjs +2 -0
- package/dist/esm/chunk-UPLWWSB4.mjs +2 -0
- package/dist/esm/{chunk-J3QOSJFP.mjs.map → chunk-UPLWWSB4.mjs.map} +1 -1
- package/dist/esm/{chunk-XFSL7O6Q.mjs → chunk-V45RFKH7.mjs} +2 -2
- package/dist/esm/chunk-V45RFKH7.mjs.map +1 -0
- package/dist/esm/{chunk-PJDVHU7X.mjs → chunk-VMQWW5UT.mjs} +2 -2
- package/dist/esm/{chunk-PJDVHU7X.mjs.map → chunk-VMQWW5UT.mjs.map} +1 -1
- package/dist/esm/chunk-VOYW2TZW.mjs +2 -0
- package/dist/esm/{chunk-KJDY66XF.mjs.map → chunk-VOYW2TZW.mjs.map} +1 -1
- package/dist/esm/chunk-VWVEDCBM.mjs +2 -0
- package/dist/esm/{chunk-BREUBEPM.mjs.map → chunk-VWVEDCBM.mjs.map} +1 -1
- package/dist/esm/{chunk-ZT2A5ABR.mjs → chunk-VYAVLUPJ.mjs} +2 -2
- package/dist/esm/{chunk-ZT2A5ABR.mjs.map → chunk-VYAVLUPJ.mjs.map} +1 -1
- package/dist/esm/{chunk-XFS5O5GJ.mjs → chunk-WKY5ENCK.mjs} +2 -2
- package/dist/esm/{chunk-XFS5O5GJ.mjs.map → chunk-WKY5ENCK.mjs.map} +1 -1
- package/dist/esm/{chunk-BTK34A5U.mjs → chunk-WX43AJTD.mjs} +10 -10
- package/dist/esm/chunk-WX43AJTD.mjs.map +1 -0
- package/dist/esm/chunk-X32O46IB.mjs +2 -0
- package/dist/esm/{chunk-PDLUCVJB.mjs.map → chunk-X32O46IB.mjs.map} +1 -1
- package/dist/esm/chunk-Y5DJPHJT.mjs +2 -0
- package/dist/esm/chunk-Y5DJPHJT.mjs.map +1 -0
- package/dist/esm/{chunk-GUT3G5CG.mjs → chunk-Y7VR7X5W.mjs} +2 -2
- package/dist/esm/chunk-Y7VR7X5W.mjs.map +1 -0
- package/dist/esm/chunk-YYRDFZE6.mjs +2 -0
- package/dist/esm/{chunk-UVGCVCNG.mjs.map → chunk-YYRDFZE6.mjs.map} +1 -1
- package/dist/esm/chunk-Z2UDRTHA.mjs +2 -0
- package/dist/esm/{chunk-JTGGMXB7.mjs.map → chunk-Z2UDRTHA.mjs.map} +1 -1
- package/dist/esm/{chunk-XNFEUXDS.mjs → chunk-ZWH2ESXT.mjs} +1 -1
- package/dist/esm/chunk-ZWH2ESXT.mjs.map +1 -0
- package/dist/esm/client/{core.d.ts → core.d.mts} +9 -9
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/{get.d.ts → get.d.mts} +12 -12
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +11 -0
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/{post.d.ts → post.d.mts} +14 -14
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/client/{types.d.ts → types.d.mts} +5 -5
- package/dist/esm/client/types.mjs +1 -1
- package/dist/esm/core/{account.d.ts → account.d.mts} +13 -13
- package/dist/esm/core/account.mjs +1 -1
- package/dist/esm/core/{accountAddress.d.ts → accountAddress.d.mts} +11 -11
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/{authenticationKey.d.ts → authenticationKey.d.mts} +12 -12
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/{common.d.ts → common.d.mts} +1 -1
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/{anyPublicKey.d.ts → anyPublicKey.d.mts} +11 -11
- package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
- package/dist/esm/core/crypto/{anySignature.d.ts → anySignature.d.mts} +10 -10
- package/dist/esm/core/crypto/anySignature.mjs +1 -1
- package/dist/esm/core/crypto/{asymmetricCrypto.d.ts → asymmetricCrypto.d.mts} +8 -8
- package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
- package/dist/esm/core/crypto/{ed25519.d.ts → ed25519.d.mts} +10 -10
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/{hdKey.d.ts → hdKey.d.mts} +1 -1
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +17 -0
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/{multiEd25519.d.ts → multiEd25519.d.mts} +11 -11
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/{multiKey.d.ts → multiKey.d.mts} +12 -12
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/{secp256k1.d.ts → secp256k1.d.mts} +10 -10
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/{hex.d.ts → hex.d.mts} +6 -6
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +21 -0
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/{index.d.ts → index.d.mts} +60 -60
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/{account.d.ts → account.d.mts} +17 -17
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/{ans.d.ts → ans.d.mts} +32 -32
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +43 -0
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/{digitalAsset.d.ts → digitalAsset.d.mts} +32 -32
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/{event.d.ts → event.d.mts} +14 -14
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +29 -0
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/{fungibleAsset.d.ts → fungibleAsset.d.mts} +7 -7
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/{general.d.ts → general.d.mts} +11 -11
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/{staking.d.ts → staking.d.mts} +13 -13
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/{transaction.d.ts → transaction.d.mts} +7 -7
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/{transactionSubmission.d.ts → transactionSubmission.d.mts} +32 -32
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/transactions/authenticator/{account.d.ts → account.d.mts} +15 -15
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +19 -0
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/{transaction.d.ts → transaction.d.mts} +18 -18
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/{index.d.ts → index.d.mts} +39 -39
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +21 -0
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/{identifier.d.ts → identifier.d.mts} +9 -9
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +29 -0
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/{moduleId.d.ts → moduleId.d.mts} +12 -12
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/{rawTransaction.d.ts → rawTransaction.d.mts} +16 -16
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/{rotationProofChallenge.d.ts → rotationProofChallenge.d.mts} +14 -14
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/{signedTransaction.d.ts → signedTransaction.d.mts} +25 -25
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/{transactionArgument.d.ts → transactionArgument.d.mts} +8 -8
- package/dist/esm/transactions/instances/{transactionPayload.d.ts → transactionPayload.d.mts} +14 -14
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/{helpers.d.ts → helpers.d.mts} +31 -31
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +35 -0
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +54 -0
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/{transactionBuilder.d.ts → transactionBuilder.d.mts} +33 -35
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/{index.d.ts → index.d.mts} +12 -12
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/{parser.d.ts → parser.d.mts} +14 -13
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/{types.d.ts → types.d.mts} +49 -60
- package/dist/esm/types/generated/{operations.d.ts → operations.d.mts} +78 -78
- package/dist/esm/types/generated/{queries.d.ts → queries.d.mts} +31 -31
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/{types.d.ts → types.d.mts} +3184 -3146
- package/dist/esm/types/generated/types.mjs +1 -1
- package/dist/esm/types/generated/types.mjs.map +1 -1
- package/dist/esm/types/{index.d.ts → index.d.mts} +94 -92
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +62 -0
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +2 -0
- package/dist/esm/utils/index.mjs +2 -0
- package/dist/esm/utils/index.mjs.map +1 -0
- package/dist/esm/utils/memoize.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +30 -30
- package/src/api/account.ts +2 -2
- package/src/api/coin.ts +2 -2
- package/src/api/event.ts +2 -2
- package/src/api/general.ts +4 -4
- package/src/api/transactionSubmission.ts +7 -2
- package/src/client/core.ts +1 -1
- package/src/client/get.ts +6 -2
- package/src/client/post.ts +12 -4
- package/src/index.ts +1 -1
- package/src/internal/account.ts +2 -2
- package/src/internal/ans.ts +2 -2
- package/src/internal/coin.ts +2 -2
- package/src/internal/event.ts +2 -2
- package/src/internal/general.ts +7 -6
- package/src/internal/transactionSubmission.ts +41 -9
- package/src/transactions/transactionBuilder/helpers.ts +2 -2
- package/src/transactions/transactionBuilder/transactionBuilder.ts +15 -16
- package/src/transactions/typeTag/parser.ts +10 -2
- package/src/transactions/types.ts +3 -12
- package/src/types/generated/operations.ts +33 -33
- package/src/types/generated/queries.ts +22 -22
- package/src/types/generated/types.ts +2253 -2251
- package/src/types/index.ts +16 -10
- package/src/utils/index.ts +2 -0
- package/dist/esm/api/aptos.d.ts +0 -72
- package/dist/esm/api/coin.d.ts +0 -59
- package/dist/esm/api/index.d.ts +0 -46
- package/dist/esm/bcs/index.d.ts +0 -14
- package/dist/esm/chunk-2444YR3Y.mjs +0 -2
- package/dist/esm/chunk-2444YR3Y.mjs.map +0 -1
- package/dist/esm/chunk-2B5QXKPU.mjs.map +0 -1
- package/dist/esm/chunk-2MQZUGO6.mjs.map +0 -1
- package/dist/esm/chunk-3YOV42H5.mjs +0 -2
- package/dist/esm/chunk-3YOV42H5.mjs.map +0 -1
- package/dist/esm/chunk-7AIV5FEN.mjs +0 -2
- package/dist/esm/chunk-7AIV5FEN.mjs.map +0 -1
- package/dist/esm/chunk-7AQXAH6Q.mjs +0 -2
- package/dist/esm/chunk-7TL2MY2B.mjs +0 -2
- package/dist/esm/chunk-7TL2MY2B.mjs.map +0 -1
- package/dist/esm/chunk-ADR4XQPR.mjs +0 -2
- package/dist/esm/chunk-AY2HWVDO.mjs +0 -2
- package/dist/esm/chunk-AY2HWVDO.mjs.map +0 -1
- package/dist/esm/chunk-BIUGRAMO.mjs +0 -2
- package/dist/esm/chunk-BREUBEPM.mjs +0 -2
- package/dist/esm/chunk-BTK34A5U.mjs.map +0 -1
- package/dist/esm/chunk-CZZJAR3B.mjs +0 -2
- package/dist/esm/chunk-DXUIJ6KA.mjs +0 -2
- package/dist/esm/chunk-E72CFUU4.mjs +0 -2
- package/dist/esm/chunk-FHJ7F7Z6.mjs +0 -2
- package/dist/esm/chunk-FNB6CFQR.mjs +0 -2
- package/dist/esm/chunk-GUT3G5CG.mjs.map +0 -1
- package/dist/esm/chunk-HH5RSP2H.mjs +0 -2
- package/dist/esm/chunk-IPJKGHQY.mjs +0 -2
- package/dist/esm/chunk-IZHPCZE3.mjs +0 -2
- package/dist/esm/chunk-J3QOSJFP.mjs +0 -2
- package/dist/esm/chunk-J5OKXARS.mjs +0 -2
- package/dist/esm/chunk-J5OKXARS.mjs.map +0 -1
- package/dist/esm/chunk-JTGGMXB7.mjs +0 -2
- package/dist/esm/chunk-KJDY66XF.mjs +0 -2
- package/dist/esm/chunk-KNLMUSIO.mjs +0 -2
- package/dist/esm/chunk-KWJ6XKNF.mjs +0 -2
- package/dist/esm/chunk-KYWYIK5P.mjs.map +0 -1
- package/dist/esm/chunk-LAXIJRYU.mjs +0 -2
- package/dist/esm/chunk-LU6VS7PJ.mjs +0 -2
- package/dist/esm/chunk-MIBLZSNS.mjs.map +0 -1
- package/dist/esm/chunk-NKTKHC3Z.mjs +0 -2
- package/dist/esm/chunk-NKTKHC3Z.mjs.map +0 -1
- package/dist/esm/chunk-O243HOP3.mjs.map +0 -1
- package/dist/esm/chunk-PDLUCVJB.mjs +0 -2
- package/dist/esm/chunk-SJLO3JIH.mjs +0 -2
- package/dist/esm/chunk-TYHBYRUA.mjs.map +0 -1
- package/dist/esm/chunk-UQIOMAXE.mjs +0 -2
- package/dist/esm/chunk-UVGCVCNG.mjs +0 -2
- package/dist/esm/chunk-V6AAQLLJ.mjs +0 -2
- package/dist/esm/chunk-WGXAIQ7K.mjs +0 -2
- package/dist/esm/chunk-WNEZCERQ.mjs +0 -2
- package/dist/esm/chunk-WNEZCERQ.mjs.map +0 -1
- package/dist/esm/chunk-XFSL7O6Q.mjs.map +0 -1
- package/dist/esm/chunk-YS2OX7AB.mjs +0 -2
- package/dist/esm/chunk-ZXJ5ZBTL.mjs +0 -2
- package/dist/esm/client/index.d.ts +0 -11
- package/dist/esm/core/crypto/index.d.ts +0 -17
- package/dist/esm/core/index.d.ts +0 -21
- package/dist/esm/internal/coin.d.ts +0 -43
- package/dist/esm/internal/faucet.d.ts +0 -29
- package/dist/esm/transactions/authenticator/index.d.ts +0 -19
- package/dist/esm/transactions/instances/chainId.d.ts +0 -21
- package/dist/esm/transactions/instances/index.d.ts +0 -29
- package/dist/esm/transactions/transactionBuilder/index.d.ts +0 -35
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.ts +0 -54
- package/dist/esm/types/indexer.d.ts +0 -62
- /package/dist/esm/{chunk-KPESAXVI.mjs.map → chunk-AAIBCWZY.mjs.map} +0 -0
- /package/dist/esm/{chunk-IXMH6AXJ.mjs.map → chunk-BFSEVKNA.mjs.map} +0 -0
- /package/dist/esm/{chunk-VAGYTPSI.mjs.map → chunk-BWMNPUTK.mjs.map} +0 -0
- /package/dist/esm/{chunk-XNFEUXDS.mjs.map → chunk-CYDWEPFL.mjs.map} +0 -0
- /package/dist/esm/{chunk-E72CFUU4.mjs.map → chunk-EFIYW4WK.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z56AKXJ7.mjs.map → chunk-IG5CHHSI.mjs.map} +0 -0
- /package/dist/esm/{chunk-KFP7MDSD.mjs.map → chunk-NYFVEKF6.mjs.map} +0 -0
- /package/dist/esm/{chunk-EKAOAGNQ.mjs.map → chunk-UAAI3NCA.mjs.map} +0 -0
- /package/dist/esm/{chunk-SJLO3JIH.mjs.map → chunk-UNQNACJT.mjs.map} +0 -0
- /package/dist/esm/utils/{apiEndpoints.d.ts → apiEndpoints.d.mts} +0 -0
- /package/dist/esm/utils/{const.d.ts → const.d.mts} +0 -0
- /package/dist/esm/utils/{helpers.d.ts → helpers.d.mts} +0 -0
- /package/dist/esm/utils/{memoize.d.ts → memoize.d.mts} +0 -0
- /package/dist/esm/{version.d.ts → version.d.mts} +0 -0
package/dist/esm/api/general.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-4RVIA63I.mjs";import"../chunk-7MNEEVXY.mjs";import"../chunk-WX43AJTD.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-3JVGSFHP.mjs";import"../chunk-GEFQFRL3.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-EGOYLZBU.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as General};
|
|
2
2
|
//# sourceMappingURL=general.mjs.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export { Aptos } from './aptos.mjs';
|
|
2
|
+
export { AptosConfig } from './aptosConfig.mjs';
|
|
3
|
+
import './account.mjs';
|
|
4
|
+
import '../core/account.mjs';
|
|
5
|
+
import '../core/accountAddress.mjs';
|
|
6
|
+
import '../bcs/serializer.mjs';
|
|
7
|
+
import '../core/hex.mjs';
|
|
8
|
+
import '../core/common.mjs';
|
|
9
|
+
import '../types/index.mjs';
|
|
10
|
+
import '../utils/apiEndpoints.mjs';
|
|
11
|
+
import '../types/indexer.mjs';
|
|
12
|
+
import '../types/generated/operations.mjs';
|
|
13
|
+
import '../types/generated/types.mjs';
|
|
14
|
+
import '../bcs/deserializer.mjs';
|
|
15
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
16
|
+
import '../core/authenticationKey.mjs';
|
|
17
|
+
import '../core/crypto/asymmetricCrypto.mjs';
|
|
18
|
+
import '../utils/const.mjs';
|
|
19
|
+
import './coin.mjs';
|
|
20
|
+
import '../transactions/types.mjs';
|
|
21
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
22
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
23
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
24
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
25
|
+
import '../transactions/instances/chainId.mjs';
|
|
26
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
27
|
+
import '../transactions/instances/identifier.mjs';
|
|
28
|
+
import '../transactions/instances/moduleId.mjs';
|
|
29
|
+
import '../transactions/typeTag/index.mjs';
|
|
30
|
+
import '../transactions/authenticator/account.mjs';
|
|
31
|
+
import '../core/crypto/anyPublicKey.mjs';
|
|
32
|
+
import '../core/crypto/anySignature.mjs';
|
|
33
|
+
import '../core/crypto/ed25519.mjs';
|
|
34
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
35
|
+
import '../core/crypto/multiKey.mjs';
|
|
36
|
+
import './digitalAsset.mjs';
|
|
37
|
+
import '../internal/digitalAsset.mjs';
|
|
38
|
+
import './event.mjs';
|
|
39
|
+
import './faucet.mjs';
|
|
40
|
+
import './fungibleAsset.mjs';
|
|
41
|
+
import './general.mjs';
|
|
42
|
+
import './ans.mjs';
|
|
43
|
+
import '../internal/ans.mjs';
|
|
44
|
+
import './staking.mjs';
|
|
45
|
+
import './transaction.mjs';
|
|
46
|
+
import './transactionSubmission.mjs';
|
package/dist/esm/api/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-RMMOF53Q.mjs";import{a as b}from"../chunk-
|
|
1
|
+
import"../chunk-RMMOF53Q.mjs";import{a as b}from"../chunk-VOYW2TZW.mjs";import"../chunk-BFSEVKNA.mjs";import"../chunk-VMQWW5UT.mjs";import"../chunk-AAIBCWZY.mjs";import"../chunk-EYXHVA6W.mjs";import{a}from"../chunk-ARVSIDVB.mjs";import"../chunk-V45RFKH7.mjs";import"../chunk-IXMB2GOK.mjs";import"../chunk-BWMNPUTK.mjs";import"../chunk-P32MY5YF.mjs";import"../chunk-R26XML3D.mjs";import"../chunk-NGCFPQ22.mjs";import"../chunk-UNQNACJT.mjs";import"../chunk-WKY5ENCK.mjs";import"../chunk-Q6N6QACD.mjs";import"../chunk-NYFVEKF6.mjs";import"../chunk-4RVIA63I.mjs";import"../chunk-J5ZFOJN2.mjs";import"../chunk-IG5CHHSI.mjs";import"../chunk-BP5ZO7NK.mjs";import"../chunk-Y5DJPHJT.mjs";import"../chunk-NTD3H2S4.mjs";import"../chunk-2W744GUN.mjs";import"../chunk-U6SZNNVL.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-UAAI3NCA.mjs";import"../chunk-JDS7K2WI.mjs";import"../chunk-JZNLZMUC.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-S36IYY6K.mjs";import"../chunk-VWVEDCBM.mjs";import"../chunk-R3KWVOFG.mjs";import"../chunk-BV4OOU5Y.mjs";import"../chunk-EQ5BEDJ7.mjs";import"../chunk-Z2UDRTHA.mjs";import"../chunk-KQXRH5FK.mjs";import"../chunk-EWTHPMEE.mjs";import"../chunk-QWVR4RCV.mjs";import"../chunk-VYAVLUPJ.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-TQD4IGUM.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-7MNEEVXY.mjs";import"../chunk-WX43AJTD.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-3JVGSFHP.mjs";import"../chunk-GEFQFRL3.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-EGOYLZBU.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-UPLWWSB4.mjs";import"../chunk-U3LO2FSJ.mjs";import"../chunk-U25N2VWA.mjs";import"../chunk-44MGBJ73.mjs";import"../chunk-YYRDFZE6.mjs";import"../chunk-62SCW5NH.mjs";import"../chunk-RYETO74W.mjs";import"../chunk-EFIYW4WK.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-HVADSXTB.mjs";import"../chunk-BPYLPPEQ.mjs";import"../chunk-4ADA5BE7.mjs";import"../chunk-X32O46IB.mjs";import"../chunk-GTC7WHMV.mjs";import"../chunk-NZIJV4O2.mjs";import"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-ZWH2ESXT.mjs";export{b as Aptos,a as AptosConfig};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AptosConfig } from './aptosConfig.
|
|
2
|
-
import { OrderBy, GetNumberOfDelegatorsResponse, GetDelegatedStakingActivitiesResponse } from '../types/indexer.
|
|
3
|
-
import { AccountAddressInput } from '../core/accountAddress.
|
|
4
|
-
import '../types/index.
|
|
5
|
-
import '../utils/apiEndpoints.
|
|
6
|
-
import '../
|
|
7
|
-
import '../types/generated/
|
|
8
|
-
import '../
|
|
9
|
-
import '../bcs/serializer.
|
|
10
|
-
import '../core/hex.
|
|
11
|
-
import '../core/common.
|
|
12
|
-
import '../bcs/deserializer.
|
|
13
|
-
import '../transactions/instances/transactionArgument.
|
|
1
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
|
+
import { OrderBy, GetNumberOfDelegatorsResponse, GetDelegatedStakingActivitiesResponse } from '../types/indexer.mjs';
|
|
3
|
+
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
|
+
import '../types/index.mjs';
|
|
5
|
+
import '../utils/apiEndpoints.mjs';
|
|
6
|
+
import '../utils/const.mjs';
|
|
7
|
+
import '../types/generated/operations.mjs';
|
|
8
|
+
import '../types/generated/types.mjs';
|
|
9
|
+
import '../bcs/serializer.mjs';
|
|
10
|
+
import '../core/hex.mjs';
|
|
11
|
+
import '../core/common.mjs';
|
|
12
|
+
import '../bcs/deserializer.mjs';
|
|
13
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A class to query all `Staking` related queries on Aptos.
|
package/dist/esm/api/staking.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-BFSEVKNA.mjs";import"../chunk-VMQWW5UT.mjs";import"../chunk-7MNEEVXY.mjs";import"../chunk-WX43AJTD.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-3JVGSFHP.mjs";import"../chunk-GEFQFRL3.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-EGOYLZBU.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-UPLWWSB4.mjs";import"../chunk-U3LO2FSJ.mjs";import"../chunk-U25N2VWA.mjs";import"../chunk-44MGBJ73.mjs";import"../chunk-YYRDFZE6.mjs";import"../chunk-62SCW5NH.mjs";import"../chunk-RYETO74W.mjs";import"../chunk-EFIYW4WK.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-HVADSXTB.mjs";import"../chunk-BPYLPPEQ.mjs";import"../chunk-4ADA5BE7.mjs";import"../chunk-X32O46IB.mjs";import"../chunk-GTC7WHMV.mjs";import"../chunk-NZIJV4O2.mjs";import"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Staking};
|
|
2
2
|
//# sourceMappingURL=staking.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AptosConfig } from './aptosConfig.
|
|
2
|
-
import { PaginationArgs, TransactionResponse, AnyNumber, HexInput, WaitForTransactionOptions, GasEstimation } from '../types/index.
|
|
3
|
-
import '../utils/apiEndpoints.
|
|
4
|
-
import '../utils/const.
|
|
5
|
-
import '../types/indexer.
|
|
6
|
-
import '../types/generated/operations.
|
|
7
|
-
import '../types/generated/types.
|
|
1
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
|
+
import { PaginationArgs, TransactionResponse, AnyNumber, HexInput, WaitForTransactionOptions, GasEstimation } from '../types/index.mjs';
|
|
3
|
+
import '../utils/apiEndpoints.mjs';
|
|
4
|
+
import '../utils/const.mjs';
|
|
5
|
+
import '../types/indexer.mjs';
|
|
6
|
+
import '../types/generated/operations.mjs';
|
|
7
|
+
import '../types/generated/types.mjs';
|
|
8
8
|
|
|
9
9
|
declare class Transaction {
|
|
10
10
|
readonly config: AptosConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-AAIBCWZY.mjs";import"../chunk-VYAVLUPJ.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-7MNEEVXY.mjs";import"../chunk-WX43AJTD.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-3JVGSFHP.mjs";import"../chunk-GEFQFRL3.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-EGOYLZBU.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Transaction};
|
|
2
2
|
//# sourceMappingURL=transaction.mjs.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { AptosConfig } from './aptosConfig.
|
|
2
|
-
import { Account } from '../core/account.
|
|
3
|
-
import { AccountAddressInput } from '../core/accountAddress.
|
|
4
|
-
import { PrivateKey } from '../core/crypto/asymmetricCrypto.
|
|
5
|
-
import { UserTransactionResponse, PendingTransactionResponse, HexInput, TransactionResponse } from '../types/index.
|
|
6
|
-
import { AccountAuthenticator } from '../transactions/authenticator/account.
|
|
7
|
-
import { InputGenerateSingleSignerRawTransactionData, InputSingleSignerTransaction, InputGenerateFeePayerRawTransactionData, InputFeePayerTransaction, InputGenerateMultiAgentRawTransactionData, InputMultiAgentTransaction, InputGenerateTransactionData, AnyRawTransaction, InputSimulateTransactionData, InputSubmitTransactionData, InputGenerateTransactionOptions } from '../transactions/types.
|
|
8
|
-
import '../utils/apiEndpoints.
|
|
9
|
-
import '../utils/const.
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
12
|
-
import '../
|
|
13
|
-
import '../
|
|
14
|
-
import '../
|
|
15
|
-
import '../
|
|
16
|
-
import '../
|
|
17
|
-
import '../
|
|
18
|
-
import '../
|
|
19
|
-
import '../core/crypto/anyPublicKey.
|
|
20
|
-
import '../core/crypto/anySignature.
|
|
21
|
-
import '../core/crypto/ed25519.
|
|
22
|
-
import '../core/crypto/multiEd25519.
|
|
23
|
-
import '../core/crypto/multiKey.
|
|
24
|
-
import '../bcs/serializable/moveStructs.
|
|
25
|
-
import '../bcs/serializable/movePrimitives.
|
|
26
|
-
import '../bcs/serializable/fixedBytes.
|
|
27
|
-
import '../transactions/instances/rawTransaction.
|
|
28
|
-
import '../transactions/instances/chainId.
|
|
29
|
-
import '../transactions/instances/transactionPayload.
|
|
30
|
-
import '../transactions/instances/identifier.
|
|
31
|
-
import '../transactions/instances/moduleId.
|
|
32
|
-
import '../transactions/typeTag/index.
|
|
1
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
|
+
import { Account } from '../core/account.mjs';
|
|
3
|
+
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
|
+
import { PrivateKey } from '../core/crypto/asymmetricCrypto.mjs';
|
|
5
|
+
import { UserTransactionResponse, PendingTransactionResponse, HexInput, TransactionResponse } from '../types/index.mjs';
|
|
6
|
+
import { AccountAuthenticator } from '../transactions/authenticator/account.mjs';
|
|
7
|
+
import { InputGenerateSingleSignerRawTransactionData, InputSingleSignerTransaction, InputGenerateFeePayerRawTransactionData, InputFeePayerTransaction, InputGenerateMultiAgentRawTransactionData, InputMultiAgentTransaction, InputGenerateTransactionData, AnyRawTransaction, InputSimulateTransactionData, InputSubmitTransactionData, InputGenerateTransactionOptions } from '../transactions/types.mjs';
|
|
8
|
+
import '../utils/apiEndpoints.mjs';
|
|
9
|
+
import '../utils/const.mjs';
|
|
10
|
+
import '../core/authenticationKey.mjs';
|
|
11
|
+
import '../core/hex.mjs';
|
|
12
|
+
import '../core/common.mjs';
|
|
13
|
+
import '../bcs/serializer.mjs';
|
|
14
|
+
import '../bcs/deserializer.mjs';
|
|
15
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
16
|
+
import '../types/indexer.mjs';
|
|
17
|
+
import '../types/generated/operations.mjs';
|
|
18
|
+
import '../types/generated/types.mjs';
|
|
19
|
+
import '../core/crypto/anyPublicKey.mjs';
|
|
20
|
+
import '../core/crypto/anySignature.mjs';
|
|
21
|
+
import '../core/crypto/ed25519.mjs';
|
|
22
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
23
|
+
import '../core/crypto/multiKey.mjs';
|
|
24
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
25
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
26
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
27
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
28
|
+
import '../transactions/instances/chainId.mjs';
|
|
29
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
30
|
+
import '../transactions/instances/identifier.mjs';
|
|
31
|
+
import '../transactions/instances/moduleId.mjs';
|
|
32
|
+
import '../transactions/typeTag/index.mjs';
|
|
33
33
|
|
|
34
34
|
declare class TransactionSubmission {
|
|
35
35
|
readonly config: AptosConfig;
|
|
@@ -53,7 +53,7 @@ declare class TransactionSubmission {
|
|
|
53
53
|
* ```
|
|
54
54
|
* {
|
|
55
55
|
* rawTransaction: RawTransaction,
|
|
56
|
-
* secondarySignerAddresses
|
|
56
|
+
* secondarySignerAddresses?: Array<AccountAddress>,
|
|
57
57
|
* feePayerAddress?: AccountAddress
|
|
58
58
|
* }
|
|
59
59
|
* ```
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-EYXHVA6W.mjs";import"../chunk-Y5DJPHJT.mjs";import"../chunk-NTD3H2S4.mjs";import"../chunk-2W744GUN.mjs";import"../chunk-U6SZNNVL.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-UAAI3NCA.mjs";import"../chunk-JDS7K2WI.mjs";import"../chunk-JZNLZMUC.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-S36IYY6K.mjs";import"../chunk-VWVEDCBM.mjs";import"../chunk-R3KWVOFG.mjs";import"../chunk-BV4OOU5Y.mjs";import"../chunk-EQ5BEDJ7.mjs";import"../chunk-Z2UDRTHA.mjs";import"../chunk-KQXRH5FK.mjs";import"../chunk-EWTHPMEE.mjs";import"../chunk-QWVR4RCV.mjs";import"../chunk-VYAVLUPJ.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-TQD4IGUM.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-7MNEEVXY.mjs";import"../chunk-WX43AJTD.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-TCTZCPQ6.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-3JVGSFHP.mjs";import"../chunk-GEFQFRL3.mjs";import"../chunk-KC64ESLO.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-EGOYLZBU.mjs";import"../chunk-FYIFBLHU.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-UPLWWSB4.mjs";import"../chunk-U3LO2FSJ.mjs";import"../chunk-U25N2VWA.mjs";import"../chunk-44MGBJ73.mjs";import"../chunk-YYRDFZE6.mjs";import"../chunk-62SCW5NH.mjs";import"../chunk-RYETO74W.mjs";import"../chunk-EFIYW4WK.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-HVADSXTB.mjs";import"../chunk-BPYLPPEQ.mjs";import"../chunk-4ADA5BE7.mjs";import"../chunk-X32O46IB.mjs";import"../chunk-GTC7WHMV.mjs";import"../chunk-NZIJV4O2.mjs";import"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as TransactionSubmission};
|
|
2
2
|
//# sourceMappingURL=transactionSubmission.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Uint8, Uint16, Uint32, Uint64, Uint128, Uint256 } from '../types/index.
|
|
2
|
-
import '../utils/apiEndpoints.
|
|
3
|
-
import '../types/indexer.
|
|
4
|
-
import '../types/generated/operations.
|
|
5
|
-
import '../types/generated/types.
|
|
1
|
+
import { Uint8, Uint16, Uint32, Uint64, Uint128, Uint256 } from '../types/index.mjs';
|
|
2
|
+
import '../utils/apiEndpoints.mjs';
|
|
3
|
+
import '../types/indexer.mjs';
|
|
4
|
+
import '../types/generated/operations.mjs';
|
|
5
|
+
import '../types/generated/types.mjs';
|
|
6
6
|
|
|
7
7
|
declare const MAX_U8_NUMBER: Uint8;
|
|
8
8
|
declare const MAX_U16_NUMBER: Uint16;
|
package/dist/esm/bcs/consts.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-DNDWTM7A.mjs";import"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{e as MAX_U128_BIG_INT,b as MAX_U16_NUMBER,f as MAX_U256_BIG_INT,c as MAX_U32_NUMBER,d as MAX_U64_BIG_INT,a as MAX_U8_NUMBER};
|
|
2
2
|
//# sourceMappingURL=consts.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Uint8, Uint16, Uint32, Uint64, Uint128, Uint256 } from '../types/index.
|
|
2
|
-
import '../utils/apiEndpoints.
|
|
3
|
-
import '../types/indexer.
|
|
4
|
-
import '../types/generated/operations.
|
|
5
|
-
import '../types/generated/types.
|
|
1
|
+
import { Uint8, Uint16, Uint32, Uint64, Uint128, Uint256 } from '../types/index.mjs';
|
|
2
|
+
import '../utils/apiEndpoints.mjs';
|
|
3
|
+
import '../types/indexer.mjs';
|
|
4
|
+
import '../types/generated/operations.mjs';
|
|
5
|
+
import '../types/generated/types.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* This interface exists to define Deserializable<T> inputs for functions that
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GTC7WHMV.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Deserializer};
|
|
2
2
|
//# sourceMappingURL=deserializer.mjs.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Deserializable, Deserializer } from './deserializer.mjs';
|
|
2
|
+
export { Serializable, Serializer, ensureBoolean, outOfRangeErrorMessage, validateNumberInRange } from './serializer.mjs';
|
|
3
|
+
export { EntryFunctionBytes } from './serializable/entryFunctionBytes.mjs';
|
|
4
|
+
export { FixedBytes } from './serializable/fixedBytes.mjs';
|
|
5
|
+
export { Bool, U128, U16, U256, U32, U64, U8 } from './serializable/movePrimitives.mjs';
|
|
6
|
+
export { MoveOption, MoveString, MoveVector } from './serializable/moveStructs.mjs';
|
|
7
|
+
import '../types/index.mjs';
|
|
8
|
+
import '../utils/apiEndpoints.mjs';
|
|
9
|
+
import '../types/indexer.mjs';
|
|
10
|
+
import '../types/generated/operations.mjs';
|
|
11
|
+
import '../types/generated/types.mjs';
|
|
12
|
+
import '../core/hex.mjs';
|
|
13
|
+
import '../core/common.mjs';
|
|
14
|
+
import '../transactions/instances/transactionArgument.mjs';
|
package/dist/esm/bcs/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-FZY4PMEE.mjs";import{a as h}from"../chunk-
|
|
1
|
+
import"../chunk-FZY4PMEE.mjs";import{a as h}from"../chunk-HVADSXTB.mjs";import{a as g}from"../chunk-BPYLPPEQ.mjs";import{a as p,b as q,c as r}from"../chunk-4ADA5BE7.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o}from"../chunk-X32O46IB.mjs";import{a as f}from"../chunk-GTC7WHMV.mjs";import{a,b,c,d,e}from"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-Y7VR7X5W.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-ZWH2ESXT.mjs";export{i as Bool,f as Deserializer,h as EntryFunctionBytes,g as FixedBytes,r as MoveOption,q as MoveString,p as MoveVector,a as Serializable,b as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,c as ensureBoolean,d as outOfRangeErrorMessage,e as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Serializable, Serializer } from '../serializer.
|
|
2
|
-
import { Deserializer } from '../deserializer.
|
|
3
|
-
import { FixedBytes } from './fixedBytes.
|
|
4
|
-
import { EntryFunctionArgument } from '../../transactions/instances/transactionArgument.
|
|
5
|
-
import '../../core/hex.
|
|
6
|
-
import '../../core/common.
|
|
7
|
-
import '../../types/index.
|
|
8
|
-
import '../../utils/apiEndpoints.
|
|
9
|
-
import '../../types/indexer.
|
|
10
|
-
import '../../types/generated/operations.
|
|
11
|
-
import '../../types/generated/types.
|
|
1
|
+
import { Serializable, Serializer } from '../serializer.mjs';
|
|
2
|
+
import { Deserializer } from '../deserializer.mjs';
|
|
3
|
+
import { FixedBytes } from './fixedBytes.mjs';
|
|
4
|
+
import { EntryFunctionArgument } from '../../transactions/instances/transactionArgument.mjs';
|
|
5
|
+
import '../../core/hex.mjs';
|
|
6
|
+
import '../../core/common.mjs';
|
|
7
|
+
import '../../types/index.mjs';
|
|
8
|
+
import '../../utils/apiEndpoints.mjs';
|
|
9
|
+
import '../../types/indexer.mjs';
|
|
10
|
+
import '../../types/generated/operations.mjs';
|
|
11
|
+
import '../../types/generated/types.mjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* This class exists solely to represent a sequence of fixed bytes as a serialized entry function, because
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HVADSXTB.mjs";import"../../chunk-BPYLPPEQ.mjs";import"../../chunk-HA6JD5R6.mjs";import"../../chunk-DNDWTM7A.mjs";import"../../chunk-TIH6ARYP.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-ZWH2ESXT.mjs";export{a as EntryFunctionBytes};
|
|
2
2
|
//# sourceMappingURL=entryFunctionBytes.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Serializable, Serializer } from '../serializer.
|
|
2
|
-
import { Deserializer } from '../deserializer.
|
|
3
|
-
import { HexInput } from '../../types/index.
|
|
4
|
-
import { TransactionArgument } from '../../transactions/instances/transactionArgument.
|
|
5
|
-
import '../../core/hex.
|
|
6
|
-
import '../../core/common.
|
|
7
|
-
import '../../utils/apiEndpoints.
|
|
8
|
-
import '../../types/indexer.
|
|
9
|
-
import '../../types/generated/operations.
|
|
10
|
-
import '../../types/generated/types.
|
|
1
|
+
import { Serializable, Serializer } from '../serializer.mjs';
|
|
2
|
+
import { Deserializer } from '../deserializer.mjs';
|
|
3
|
+
import { HexInput } from '../../types/index.mjs';
|
|
4
|
+
import { TransactionArgument } from '../../transactions/instances/transactionArgument.mjs';
|
|
5
|
+
import '../../core/hex.mjs';
|
|
6
|
+
import '../../core/common.mjs';
|
|
7
|
+
import '../../utils/apiEndpoints.mjs';
|
|
8
|
+
import '../../types/indexer.mjs';
|
|
9
|
+
import '../../types/generated/operations.mjs';
|
|
10
|
+
import '../../types/generated/types.mjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* This class exists to represent a contiguous sequence of already serialized BCS-bytes.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BPYLPPEQ.mjs";import"../../chunk-HA6JD5R6.mjs";import"../../chunk-DNDWTM7A.mjs";import"../../chunk-TIH6ARYP.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-ZWH2ESXT.mjs";export{a as FixedBytes};
|
|
2
2
|
//# sourceMappingURL=fixedBytes.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Deserializer } from '../deserializer.
|
|
2
|
-
import { Serializable, Serializer } from '../serializer.
|
|
3
|
-
import { TransactionArgument } from '../../transactions/instances/transactionArgument.
|
|
4
|
-
import { Uint8, Uint16, Uint32, AnyNumber } from '../../types/index.
|
|
5
|
-
import '../../utils/apiEndpoints.
|
|
6
|
-
import '../../types/indexer.
|
|
7
|
-
import '../../types/generated/operations.
|
|
8
|
-
import '../../types/generated/types.
|
|
9
|
-
import '../../core/hex.
|
|
10
|
-
import '../../core/common.
|
|
1
|
+
import { Deserializer } from '../deserializer.mjs';
|
|
2
|
+
import { Serializable, Serializer } from '../serializer.mjs';
|
|
3
|
+
import { TransactionArgument } from '../../transactions/instances/transactionArgument.mjs';
|
|
4
|
+
import { Uint8, Uint16, Uint32, AnyNumber } from '../../types/index.mjs';
|
|
5
|
+
import '../../utils/apiEndpoints.mjs';
|
|
6
|
+
import '../../types/indexer.mjs';
|
|
7
|
+
import '../../types/generated/operations.mjs';
|
|
8
|
+
import '../../types/generated/types.mjs';
|
|
9
|
+
import '../../core/hex.mjs';
|
|
10
|
+
import '../../core/common.mjs';
|
|
11
11
|
|
|
12
12
|
declare class Bool extends Serializable implements TransactionArgument {
|
|
13
13
|
readonly value: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../../chunk-X32O46IB.mjs";import"../../chunk-HA6JD5R6.mjs";import"../../chunk-DNDWTM7A.mjs";import"../../chunk-TIH6ARYP.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-Y7VR7X5W.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-ZWH2ESXT.mjs";export{a as Bool,f as U128,c as U16,g as U256,d as U32,e as U64,b as U8};
|
|
2
2
|
//# sourceMappingURL=movePrimitives.mjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { U8, U16, U32, U64, U128, U256, Bool } from './movePrimitives.
|
|
2
|
-
import { Serializable, Serializer } from '../serializer.
|
|
3
|
-
import { Deserializer, Deserializable } from '../deserializer.
|
|
4
|
-
import { HexInput, AnyNumber } from '../../types/index.
|
|
5
|
-
import { EntryFunctionArgument, TransactionArgument } from '../../transactions/instances/transactionArgument.
|
|
6
|
-
import '../../utils/apiEndpoints.
|
|
7
|
-
import '../../types/indexer.
|
|
8
|
-
import '../../types/generated/operations.
|
|
9
|
-
import '../../types/generated/types.
|
|
10
|
-
import '../../core/hex.
|
|
11
|
-
import '../../core/common.
|
|
1
|
+
import { U8, U16, U32, U64, U128, U256, Bool } from './movePrimitives.mjs';
|
|
2
|
+
import { Serializable, Serializer } from '../serializer.mjs';
|
|
3
|
+
import { Deserializer, Deserializable } from '../deserializer.mjs';
|
|
4
|
+
import { HexInput, AnyNumber } from '../../types/index.mjs';
|
|
5
|
+
import { EntryFunctionArgument, TransactionArgument } from '../../transactions/instances/transactionArgument.mjs';
|
|
6
|
+
import '../../utils/apiEndpoints.mjs';
|
|
7
|
+
import '../../types/indexer.mjs';
|
|
8
|
+
import '../../types/generated/operations.mjs';
|
|
9
|
+
import '../../types/generated/types.mjs';
|
|
10
|
+
import '../../core/hex.mjs';
|
|
11
|
+
import '../../core/common.mjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* This class is the Aptos Typescript SDK representation of a Move `vector<T>`,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-4ADA5BE7.mjs";import"../../chunk-X32O46IB.mjs";import"../../chunk-HA6JD5R6.mjs";import"../../chunk-DNDWTM7A.mjs";import"../../chunk-TIH6ARYP.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-Y7VR7X5W.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-ZWH2ESXT.mjs";export{c as MoveOption,b as MoveString,a as MoveVector};
|
|
2
2
|
//# sourceMappingURL=moveStructs.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Hex } from '../core/hex.
|
|
2
|
-
import { Uint8, Uint16, Uint32, AnyNumber } from '../types/index.
|
|
3
|
-
import '../core/common.
|
|
4
|
-
import '../utils/apiEndpoints.
|
|
5
|
-
import '../types/indexer.
|
|
6
|
-
import '../types/generated/operations.
|
|
7
|
-
import '../types/generated/types.
|
|
1
|
+
import { Hex } from '../core/hex.mjs';
|
|
2
|
+
import { Uint8, Uint16, Uint32, AnyNumber } from '../types/index.mjs';
|
|
3
|
+
import '../core/common.mjs';
|
|
4
|
+
import '../utils/apiEndpoints.mjs';
|
|
5
|
+
import '../types/indexer.mjs';
|
|
6
|
+
import '../types/generated/operations.mjs';
|
|
7
|
+
import '../types/generated/types.mjs';
|
|
8
8
|
|
|
9
9
|
declare abstract class Serializable {
|
|
10
10
|
abstract serialize(serializer: Serializer): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-HA6JD5R6.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-TIH6ARYP.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Serializable,b as Serializer,c as ensureBoolean,d as outOfRangeErrorMessage,e as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=serializer.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as l}from"./chunk-U6SZNNVL.mjs";import{n as j}from"./chunk-VWVEDCBM.mjs";import{a as H,b as u,c as m,d as U,e as R,f as B,g as T,h as d,i as k,j as h,k as E,l as S,m as $,n as b,o as g,q as i,r as z}from"./chunk-BV4OOU5Y.mjs";import{c as G}from"./chunk-TQD4IGUM.mjs";import{a as o,b as C,c as y}from"./chunk-4ADA5BE7.mjs";import{a as v,b as x,c as I,d as M,e as O,f as V,g as _}from"./chunk-X32O46IB.mjs";import{b as A}from"./chunk-NZIJV4O2.mjs";import{b as F}from"./chunk-TIH6ARYP.mjs";function Y(r){return r?.map(n=>u(n)?l(n):n)??[]}async function Z(r,n,e,t){let s=(await G({aptosConfig:t,accountAddress:r,moduleName:n})).abi?.exposed_functions.find(c=>c.name===e);if(!s)throw new Error(`Could not find entry function ABI for '${r}::${n}::${e}'`);if(!s.is_entry)throw new Error(`'${r}::${n}::${e}' is not an entry function`);let L=z(s),p=[];for(let c=L;c<s.params.length;c+=1)p.push(l(s.params[c],{allowGenerics:!0}));return{typeParameters:s.generic_type_params,parameters:p}}function P(r,n,e,t,f){if(t>=n.parameters.length)throw new Error(`Too many arguments for '${r}', expected ${n.parameters.length}`);return B(e)||h(e)||E(e)||S(e)||$(e)||b(e)||g(e)||T(e)||d(e)||k(e)||e instanceof o||e instanceof y?(q(n,e,t),e):w(e,n.parameters[t],t,f)}function w(r,n,e,t){if(n.isBool()){if(H(r))return new v(r);i("boolean",e)}if(n.isAddress()){if(u(r))return A.fromStringRelaxed(r);i("string",e)}if(n.isU8()){if(m(r))return new x(r);i("number",e)}if(n.isU16()){if(m(r))return new I(r);i("number",e)}if(n.isU32()){if(m(r))return new M(r);i("number",e)}if(n.isU64()){if(U(r))return new O(BigInt(r));i("bigint | number | string",e)}if(n.isU128()){if(U(r))return new V(BigInt(r));i("bigint | number | string",e)}if(n.isU256()){if(U(r))return new _(BigInt(r));i("bigint | number | string",e)}if(n.isGeneric()){let f=n.value;if(f<0||f>=t.length)throw new Error(`Generic argument ${n.toString()} is invalid for argument ${e}`);w(r,t[f],e,t)}if(n.isVector()){if(n.value.isU8()&&u(r))return o.U8(F.fromHexInput(r).toUint8Array());if(Array.isArray(r))return new o(r.map(f=>w(f,n.value,e,t)));throw new Error(`Type mismatch for argument ${e}, type '${n.toString()}'`)}if(n.isStruct()){if(n.isString()){if(u(r))return new C(r);i("string",e)}if(n.isObject()){if(u(r))return A.fromStringRelaxed(r);i("string",e)}if(n.isOption())return R(r)?new y(null):new y(w(r,n.value.typeArgs[0],e,t));throw new Error(`Unsupported struct input type for argument ${e}, type '${n.toString()}'`)}throw new Error(`Type mismatch for argument ${e}, type '${n.toString()}'`)}function q(r,n,e){let t=r.parameters[e];if(t.isBool()){if(B(n))return;i("Bool",e)}if(t.isAddress()){if(T(n))return;i("AccountAddress",e)}if(t.isU8()){if(h(n))return;i("U8",e)}if(t.isU16()){if(E(n))return;i("U16",e)}if(t.isU32()){if(S(n))return;i("U32",e)}if(t.isU64()){if($(n))return;i("U64",e)}if(t.isU128()){if(b(n))return;i("U128",e)}if(t.isU256()){if(g(n))return;i("U256",e)}if(t.isVector()){if(n instanceof o)return;i("MoveVector",e)}if(t instanceof j){if(t.isString()){if(d(n))return;i("MoveString",e)}if(t.isObject()){if(T(n))return;i("AccountAddress",e)}if(t.isOption()){if(n instanceof y)return;i("MoveOption",e)}}throw new Error(`Type mismatch for argument ${e}, expected '${t.toString()}'`)}export{Y as a,Z as b,P as c};
|
|
2
|
+
//# sourceMappingURL=chunk-2W744GUN.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/transactions/transactionBuilder/remoteAbi.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { parseTypeTag } from \"../typeTag/parser\";\nimport { TypeTag, TypeTagStruct } from \"../typeTag\";\nimport { AptosConfig } from \"../../api/aptosConfig\";\nimport { EntryFunctionArgumentTypes, SimpleEntryFunctionArgumentTypes, EntryFunctionABI } from \"../types\";\nimport { Bool, MoveOption, MoveString, MoveVector, U128, U16, U256, U32, U64, U8 } from \"../../bcs\";\nimport { AccountAddress, Hex } from \"../../core\";\nimport { getModule } from \"../../internal/account\";\nimport {\n findFirstNonSignerArg,\n isBcsAddress,\n isBcsBool,\n isBcsFixedBytes,\n isBcsString,\n isBcsU128,\n isBcsU16,\n isBcsU256,\n isBcsU32,\n isBcsU64,\n isBcsU8,\n isBool,\n isLargeNumber,\n isNull,\n isNumber,\n isString,\n throwTypeMismatch,\n} from \"./helpers\";\n\n/**\n * Convert type arguments to only type tags, allowing for string representations of type tags\n */\nexport function standardizeTypeTags(typeArguments?: Array<TypeTag | string>): Array<TypeTag> {\n return (\n typeArguments?.map((typeArg: string | TypeTag): TypeTag => {\n // Convert to TypeTag if it's a string representation\n if (isString(typeArg)) {\n return parseTypeTag(typeArg);\n }\n return typeArg;\n }) ?? []\n );\n}\n\n/**\n * Fetches the ABI for an entry function from the module\n *\n * @param moduleAddress\n * @param moduleName\n * @param functionName\n * @param aptosConfig\n */\nexport async function fetchEntryFunctionAbi(\n moduleAddress: string,\n moduleName: string,\n functionName: string,\n aptosConfig: AptosConfig,\n): Promise<EntryFunctionABI> {\n // This fetch from the API is currently cached\n const module = await getModule({ aptosConfig, accountAddress: moduleAddress, moduleName });\n\n const functionAbi = module.abi?.exposed_functions.find((func) => func.name === functionName);\n\n // If there's no ABI, then the function is invalid\n if (!functionAbi) {\n throw new Error(`Could not find entry function ABI for '${moduleAddress}::${moduleName}::${functionName}'`);\n }\n\n // Non-entry functions also can't be used\n if (!functionAbi.is_entry) {\n throw new Error(`'${moduleAddress}::${moduleName}::${functionName}' is not an entry function`);\n }\n\n // Remove the signer arguments\n const first = findFirstNonSignerArg(functionAbi);\n const params: TypeTag[] = [];\n for (let i = first; i < functionAbi.params.length; i += 1) {\n params.push(parseTypeTag(functionAbi.params[i], { allowGenerics: true }));\n }\n\n return {\n typeParameters: functionAbi.generic_type_params,\n parameters: params,\n };\n}\n\n/**\n * Converts a non-BCS encoded argument into BCS encoded, if necessary\n * @param functionName\n * @param functionAbi\n * @param arg\n * @param position\n */\nexport function convertArgument(\n functionName: string,\n functionAbi: EntryFunctionABI,\n arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n position: number,\n genericTypeParams: Array<TypeTag>,\n) {\n // Ensure not too many arguments\n if (position >= functionAbi.parameters.length) {\n throw new Error(`Too many arguments for '${functionName}', expected ${functionAbi.parameters.length}`);\n }\n\n // If the argument is bcs encoded, we can just use it directly\n if (\n isBcsBool(arg) ||\n isBcsU8(arg) ||\n isBcsU16(arg) ||\n isBcsU32(arg) ||\n isBcsU64(arg) ||\n isBcsU128(arg) ||\n isBcsU256(arg) ||\n isBcsAddress(arg) ||\n isBcsString(arg) ||\n isBcsFixedBytes(arg) ||\n arg instanceof MoveVector ||\n arg instanceof MoveOption\n ) {\n // Ensure the type matches the ABI\n checkType(functionAbi, arg, position);\n return arg;\n }\n\n // If it is not BCS encoded, we will need to convert it with the ABI\n return parseArg(arg, functionAbi.parameters[position], position, genericTypeParams);\n}\n\n/**\n * Parses a non-BCS encoded argument into a BCS encoded argument recursively\n * @param arg\n * @param param\n * @param position\n * @param genericTypeParams\n */\nfunction parseArg(\n arg: SimpleEntryFunctionArgumentTypes,\n param: TypeTag,\n position: number,\n genericTypeParams: Array<TypeTag>,\n): EntryFunctionArgumentTypes {\n if (param.isBool()) {\n if (isBool(arg)) {\n return new Bool(arg);\n }\n throwTypeMismatch(\"boolean\", position);\n }\n // TODO: support uint8array?\n if (param.isAddress()) {\n if (isString(arg)) {\n return AccountAddress.fromStringRelaxed(arg);\n }\n throwTypeMismatch(\"string\", position);\n }\n if (param.isU8()) {\n if (isNumber(arg)) {\n return new U8(arg);\n }\n throwTypeMismatch(\"number\", position);\n }\n if (param.isU16()) {\n if (isNumber(arg)) {\n return new U16(arg);\n }\n throwTypeMismatch(\"number\", position);\n }\n if (param.isU32()) {\n if (isNumber(arg)) {\n return new U32(arg);\n }\n throwTypeMismatch(\"number\", position);\n }\n if (param.isU64()) {\n if (isLargeNumber(arg)) {\n return new U64(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n if (param.isU128()) {\n if (isLargeNumber(arg)) {\n return new U128(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n if (param.isU256()) {\n if (isLargeNumber(arg)) {\n return new U256(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n\n // Generic needs to use the sub-type\n if (param.isGeneric()) {\n const genericIndex = param.value;\n if (genericIndex < 0 || genericIndex >= genericTypeParams.length) {\n throw new Error(`Generic argument ${param.toString()} is invalid for argument ${position}`);\n }\n\n parseArg(arg, genericTypeParams[genericIndex], position, genericTypeParams);\n }\n\n // We have to special case some vectors for Vector<u8>\n if (param.isVector()) {\n // Check special case for Vector<u8>\n if (param.value.isU8() && isString(arg)) {\n // TODO: Improve message when hex is invalid\n return MoveVector.U8(Hex.fromHexInput(arg).toUint8Array());\n }\n\n if (Array.isArray(arg)) {\n return new MoveVector(arg.map((item) => parseArg(item, param.value, position, genericTypeParams)));\n }\n\n throw new Error(`Type mismatch for argument ${position}, type '${param.toString()}'`);\n }\n\n // Handle structs as they're more complex\n if (param.isStruct()) {\n if (param.isString()) {\n if (isString(arg)) {\n return new MoveString(arg);\n }\n throwTypeMismatch(\"string\", position);\n }\n if (param.isObject()) {\n // The inner type of Object doesn't matter, since it's just syntactic sugar\n if (isString(arg)) {\n return AccountAddress.fromStringRelaxed(arg);\n }\n throwTypeMismatch(\"string\", position);\n }\n\n if (param.isOption()) {\n // Empty option must be handled specially\n if (isNull(arg)) {\n // Note: This is a placeholder U8 type, and does not match the actual type, as that can't be dynamically grabbed\n return new MoveOption<U8>(null);\n }\n\n return new MoveOption(parseArg(arg, param.value.typeArgs[0], position, genericTypeParams));\n }\n\n throw new Error(`Unsupported struct input type for argument ${position}, type '${param.toString()}'`);\n }\n\n throw new Error(`Type mismatch for argument ${position}, type '${param.toString()}'`);\n}\n\n/**\n * Checks that the type of an already BCS encoded argument matches the ABI\n * @param functionAbi\n * @param arg\n * @param position\n */\nfunction checkType(functionAbi: EntryFunctionABI, arg: EntryFunctionArgumentTypes, position: number) {\n const param = functionAbi.parameters[position];\n if (param.isBool()) {\n if (isBcsBool(arg)) {\n return;\n }\n throwTypeMismatch(\"Bool\", position);\n }\n if (param.isAddress()) {\n if (isBcsAddress(arg)) {\n return;\n }\n throwTypeMismatch(\"AccountAddress\", position);\n }\n if (param.isU8()) {\n if (isBcsU8(arg)) {\n return;\n }\n throwTypeMismatch(\"U8\", position);\n }\n if (param.isU16()) {\n if (isBcsU16(arg)) {\n return;\n }\n throwTypeMismatch(\"U16\", position);\n }\n if (param.isU32()) {\n if (isBcsU32(arg)) {\n return;\n }\n throwTypeMismatch(\"U32\", position);\n }\n if (param.isU64()) {\n if (isBcsU64(arg)) {\n return;\n }\n throwTypeMismatch(\"U64\", position);\n }\n if (param.isU128()) {\n if (isBcsU128(arg)) {\n return;\n }\n throwTypeMismatch(\"U128\", position);\n }\n if (param.isU256()) {\n if (isBcsU256(arg)) {\n return;\n }\n throwTypeMismatch(\"U256\", position);\n }\n if (param.isVector()) {\n if (arg instanceof MoveVector) {\n // TODO: More introspection to verify the type\n return;\n }\n throwTypeMismatch(\"MoveVector\", position);\n }\n\n // Handle structs as they're more complex\n if (param instanceof TypeTagStruct) {\n if (param.isString()) {\n if (isBcsString(arg)) {\n return;\n }\n throwTypeMismatch(\"MoveString\", position);\n }\n if (param.isObject()) {\n if (isBcsAddress(arg)) {\n return;\n }\n throwTypeMismatch(\"AccountAddress\", position);\n }\n if (param.isOption()) {\n if (arg instanceof MoveOption) {\n // TODO: more introspection for the type\n return;\n }\n throwTypeMismatch(\"MoveOption\", position);\n }\n }\n\n throw new Error(`Type mismatch for argument ${position}, expected '${param.toString()}'`);\n}\n"],"mappings":"gfAiCO,SAASA,EAAoBC,EAAyD,CAC3F,OACEA,GAAe,IAAKC,GAEdC,EAASD,CAAO,EACXE,EAAaF,CAAO,EAEtBA,CACR,GAAK,CAAC,CAEX,CAUA,eAAsBG,EACpBC,EACAC,EACAC,EACAC,EAC2B,CAI3B,IAAMC,GAFS,MAAMC,EAAU,CAAE,YAAAF,EAAa,eAAgBH,EAAe,WAAAC,CAAW,CAAC,GAE9D,KAAK,kBAAkB,KAAMK,GAASA,EAAK,OAASJ,CAAY,EAG3F,GAAI,CAACE,EACH,MAAM,IAAI,MAAM,0CAA0CJ,MAAkBC,MAAeC,IAAe,EAI5G,GAAI,CAACE,EAAY,SACf,MAAM,IAAI,MAAM,IAAIJ,MAAkBC,MAAeC,6BAAwC,EAI/F,IAAMK,EAAQC,EAAsBJ,CAAW,EACzCK,EAAoB,CAAC,EAC3B,QAASC,EAAIH,EAAOG,EAAIN,EAAY,OAAO,OAAQM,GAAK,EACtDD,EAAO,KAAKX,EAAaM,EAAY,OAAOM,GAAI,CAAE,cAAe,EAAK,CAAC,CAAC,EAG1E,MAAO,CACL,eAAgBN,EAAY,oBAC5B,WAAYK,CACd,CACF,CASO,SAASE,EACdT,EACAE,EACAQ,EACAC,EACAC,EACA,CAEA,GA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O,EAAkB,aAAcnB,CAAQ,CAC1C,CAGA,GAAIgB,aAAiBkB,EAAe,CAClC,GAAIlB,EAAM,SAAS,EAAG,CACpB,GAAIN,EAAYX,CAAG,EACjB,OAEFoB,EAAkB,aAAcnB,CAAQ,CAC1C,CACA,GAAIgB,EAAM,SAAS,EAAG,CACpB,GAAIP,EAAaV,CAAG,EAClB,OAEFoB,EAAkB,iBAAkBnB,CAAQ,CAC9C,CACA,GAAIgB,EAAM,SAAS,EAAG,CACpB,GAAIjB,aAAec,EAEjB,OAEFM,EAAkB,aAAcnB,CAAQ,CAC1C,CACF,CAEA,MAAM,IAAI,MAAM,8BAA8BA,gBAAuBgB,EAAM,SAAS,IAAI,CAC1F","names":["standardizeTypeTags","typeArguments","typeArg","isString","parseTypeTag","fetchEntryFunctionAbi","moduleAddress","moduleName","functionName","aptosConfig","functionAbi","getModule","func","first","findFirstNonSignerArg","params","i","convertArgument","arg","position","genericTypeParams","isBcsBool","isBcsU8","isBcsU16","isBcsU32","isBcsU64","isBcsU128","isBcsU256","isBcsAddress","isBcsString","isBcsFixedBytes","MoveVector","MoveOption","checkType","parseArg","param","isBool","Bool","throwTypeMismatch","AccountAddress","isNumber","U8","U16","U32","isLargeNumber","U64","U128","U256","genericIndex","Hex","item","MoveString","isNull","TypeTagStruct"]}
|
|
1
|
+
{"version":3,"sources":["../../src/transactions/transactionBuilder/remoteAbi.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { parseTypeTag } from \"../typeTag/parser\";\nimport { TypeTag, TypeTagStruct } from \"../typeTag\";\nimport { AptosConfig } from \"../../api/aptosConfig\";\nimport { EntryFunctionArgumentTypes, SimpleEntryFunctionArgumentTypes, EntryFunctionABI } from \"../types\";\nimport { Bool, MoveOption, MoveString, MoveVector, U128, U16, U256, U32, U64, U8 } from \"../../bcs\";\nimport { AccountAddress, Hex } from \"../../core\";\nimport { getModule } from \"../../internal/account\";\nimport {\n findFirstNonSignerArg,\n isBcsAddress,\n isBcsBool,\n isBcsFixedBytes,\n isBcsString,\n isBcsU128,\n isBcsU16,\n isBcsU256,\n isBcsU32,\n isBcsU64,\n isBcsU8,\n isBool,\n isLargeNumber,\n isNull,\n isNumber,\n isString,\n throwTypeMismatch,\n} from \"./helpers\";\n\n/**\n * Convert type arguments to only type tags, allowing for string representations of type tags\n */\nexport function standardizeTypeTags(typeArguments?: Array<TypeTag | string>): Array<TypeTag> {\n return (\n typeArguments?.map((typeArg: string | TypeTag): TypeTag => {\n // Convert to TypeTag if it's a string representation\n if (isString(typeArg)) {\n return parseTypeTag(typeArg);\n }\n return typeArg;\n }) ?? []\n );\n}\n\n/**\n * Fetches the ABI for an entry function from the module\n *\n * @param moduleAddress\n * @param moduleName\n * @param functionName\n * @param aptosConfig\n */\nexport async function fetchEntryFunctionAbi(\n moduleAddress: string,\n moduleName: string,\n functionName: string,\n aptosConfig: AptosConfig,\n): Promise<EntryFunctionABI> {\n // This fetch from the API is currently cached\n const module = await getModule({ aptosConfig, accountAddress: moduleAddress, moduleName });\n\n const functionAbi = module.abi?.exposed_functions.find((func) => func.name === functionName);\n\n // If there's no ABI, then the function is invalid\n if (!functionAbi) {\n throw new Error(`Could not find entry function ABI for '${moduleAddress}::${moduleName}::${functionName}'`);\n }\n\n // Non-entry functions also can't be used\n if (!functionAbi.is_entry) {\n throw new Error(`'${moduleAddress}::${moduleName}::${functionName}' is not an entry function`);\n }\n\n // Remove the signer arguments\n const first = findFirstNonSignerArg(functionAbi);\n const params: TypeTag[] = [];\n for (let i = first; i < functionAbi.params.length; i += 1) {\n params.push(parseTypeTag(functionAbi.params[i], { allowGenerics: true }));\n }\n\n return {\n typeParameters: functionAbi.generic_type_params,\n parameters: params,\n };\n}\n\n/**\n * Converts a non-BCS encoded argument into BCS encoded, if necessary\n * @param functionName\n * @param functionAbi\n * @param arg\n * @param position\n */\nexport function convertArgument(\n functionName: string,\n functionAbi: EntryFunctionABI,\n arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n position: number,\n genericTypeParams: Array<TypeTag>,\n) {\n // Ensure not too many arguments\n if (position >= functionAbi.parameters.length) {\n throw new Error(`Too many arguments for '${functionName}', expected ${functionAbi.parameters.length}`);\n }\n\n // If the argument is bcs encoded, we can just use it directly\n if (\n isBcsBool(arg) ||\n isBcsU8(arg) ||\n isBcsU16(arg) ||\n isBcsU32(arg) ||\n isBcsU64(arg) ||\n isBcsU128(arg) ||\n isBcsU256(arg) ||\n isBcsAddress(arg) ||\n isBcsString(arg) ||\n isBcsFixedBytes(arg) ||\n arg instanceof MoveVector ||\n arg instanceof MoveOption\n ) {\n // Ensure the type matches the ABI\n checkType(functionAbi, arg, position);\n return arg;\n }\n\n // If it is not BCS encoded, we will need to convert it with the ABI\n return parseArg(arg, functionAbi.parameters[position], position, genericTypeParams);\n}\n\n/**\n * Parses a non-BCS encoded argument into a BCS encoded argument recursively\n * @param arg\n * @param param\n * @param position\n * @param genericTypeParams\n */\nfunction parseArg(\n arg: SimpleEntryFunctionArgumentTypes,\n param: TypeTag,\n position: number,\n genericTypeParams: Array<TypeTag>,\n): EntryFunctionArgumentTypes {\n if (param.isBool()) {\n if (isBool(arg)) {\n return new Bool(arg);\n }\n throwTypeMismatch(\"boolean\", position);\n }\n // TODO: support uint8array?\n if (param.isAddress()) {\n if (isString(arg)) {\n return AccountAddress.fromStringRelaxed(arg);\n }\n throwTypeMismatch(\"string\", position);\n }\n if (param.isU8()) {\n if (isNumber(arg)) {\n return new U8(arg);\n }\n throwTypeMismatch(\"number\", position);\n }\n if (param.isU16()) {\n if (isNumber(arg)) {\n return new U16(arg);\n }\n throwTypeMismatch(\"number\", position);\n }\n if (param.isU32()) {\n if (isNumber(arg)) {\n return new U32(arg);\n }\n throwTypeMismatch(\"number\", position);\n }\n if (param.isU64()) {\n if (isLargeNumber(arg)) {\n return new U64(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n if (param.isU128()) {\n if (isLargeNumber(arg)) {\n return new U128(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n if (param.isU256()) {\n if (isLargeNumber(arg)) {\n return new U256(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n\n // Generic needs to use the sub-type\n if (param.isGeneric()) {\n const genericIndex = param.value;\n if (genericIndex < 0 || genericIndex >= genericTypeParams.length) {\n throw new Error(`Generic argument ${param.toString()} is invalid for argument ${position}`);\n }\n\n parseArg(arg, genericTypeParams[genericIndex], position, genericTypeParams);\n }\n\n // We have to special case some vectors for Vector<u8>\n if (param.isVector()) {\n // Check special case for Vector<u8>\n if (param.value.isU8() && isString(arg)) {\n // TODO: Improve message when hex is invalid\n return MoveVector.U8(Hex.fromHexInput(arg).toUint8Array());\n }\n\n if (Array.isArray(arg)) {\n return new MoveVector(arg.map((item) => parseArg(item, param.value, position, genericTypeParams)));\n }\n\n throw new Error(`Type mismatch for argument ${position}, type '${param.toString()}'`);\n }\n\n // Handle structs as they're more complex\n if (param.isStruct()) {\n if (param.isString()) {\n if (isString(arg)) {\n return new MoveString(arg);\n }\n throwTypeMismatch(\"string\", position);\n }\n if (param.isObject()) {\n // The inner type of Object doesn't matter, since it's just syntactic sugar\n if (isString(arg)) {\n return AccountAddress.fromStringRelaxed(arg);\n }\n throwTypeMismatch(\"string\", position);\n }\n\n if (param.isOption()) {\n // Empty option must be handled specially\n if (isNull(arg)) {\n // Note: This is a placeholder U8 type, and does not match the actual type, as that can't be dynamically grabbed\n return new MoveOption<U8>(null);\n }\n\n return new MoveOption(parseArg(arg, param.value.typeArgs[0], position, genericTypeParams));\n }\n\n throw new Error(`Unsupported struct input type for argument ${position}, type '${param.toString()}'`);\n }\n\n throw new Error(`Type mismatch for argument ${position}, type '${param.toString()}'`);\n}\n\n/**\n * Checks that the type of an already BCS encoded argument matches the ABI\n * @param functionAbi\n * @param arg\n * @param position\n */\nfunction checkType(functionAbi: EntryFunctionABI, arg: EntryFunctionArgumentTypes, position: number) {\n const param = functionAbi.parameters[position];\n if (param.isBool()) {\n if (isBcsBool(arg)) {\n return;\n }\n throwTypeMismatch(\"Bool\", position);\n }\n if (param.isAddress()) {\n if (isBcsAddress(arg)) {\n return;\n }\n throwTypeMismatch(\"AccountAddress\", position);\n }\n if (param.isU8()) {\n if (isBcsU8(arg)) {\n return;\n }\n throwTypeMismatch(\"U8\", position);\n }\n if (param.isU16()) {\n if (isBcsU16(arg)) {\n return;\n }\n throwTypeMismatch(\"U16\", position);\n }\n if (param.isU32()) {\n if (isBcsU32(arg)) {\n return;\n }\n throwTypeMismatch(\"U32\", position);\n }\n if (param.isU64()) {\n if (isBcsU64(arg)) {\n return;\n }\n throwTypeMismatch(\"U64\", position);\n }\n if (param.isU128()) {\n if (isBcsU128(arg)) {\n return;\n }\n throwTypeMismatch(\"U128\", position);\n }\n if (param.isU256()) {\n if (isBcsU256(arg)) {\n return;\n }\n throwTypeMismatch(\"U256\", position);\n }\n if (param.isVector()) {\n if (arg instanceof MoveVector) {\n // TODO: More introspection to verify the type\n return;\n }\n throwTypeMismatch(\"MoveVector\", position);\n }\n\n // Handle structs as they're more complex\n if (param instanceof TypeTagStruct) {\n if (param.isString()) {\n if (isBcsString(arg)) {\n return;\n }\n throwTypeMismatch(\"MoveString\", position);\n }\n if (param.isObject()) {\n if (isBcsAddress(arg)) {\n return;\n }\n throwTypeMismatch(\"AccountAddress\", position);\n }\n if (param.isOption()) {\n if (arg instanceof MoveOption) {\n // TODO: more introspection for the type\n return;\n }\n throwTypeMismatch(\"MoveOption\", position);\n }\n }\n\n throw new Error(`Type mismatch for argument ${position}, expected '${param.toString()}'`);\n}\n"],"mappings":"gfAiCO,SAASA,EAAoBC,EAAyD,CAC3F,OACEA,GAAe,IAAKC,GAEdC,EAASD,CAAO,EACXE,EAAaF,CAAO,EAEtBA,CACR,GAAK,CAAC,CAEX,CAUA,eAAsBG,EACpBC,EACAC,EACAC,EACAC,EAC2B,CAI3B,IAAMC,GAFS,MAAMC,EA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FoB,EAAkB,iBAAkBnB,CAAQ,CAC9C,CACA,GAAIgB,EAAM,KAAK,EAAG,CAChB,GAAIb,EAAQJ,CAAG,EACb,OAEFoB,EAAkB,KAAMnB,CAAQ,CAClC,CACA,GAAIgB,EAAM,MAAM,EAAG,CACjB,GAAIZ,EAASL,CAAG,EACd,OAEFoB,EAAkB,MAAOnB,CAAQ,CACnC,CACA,GAAIgB,EAAM,MAAM,EAAG,CACjB,GAAIX,EAASN,CAAG,EACd,OAEFoB,EAAkB,MAAOnB,CAAQ,CACnC,CACA,GAAIgB,EAAM,MAAM,EAAG,CACjB,GAAIV,EAASP,CAAG,EACd,OAEFoB,EAAkB,MAAOnB,CAAQ,CACnC,CACA,GAAIgB,EAAM,OAAO,EAAG,CAClB,GAAIT,EAAUR,CAAG,EACf,OAEFoB,EAAkB,OAAQnB,CAAQ,CACpC,CACA,GAAIgB,EAAM,OAAO,EAAG,CAClB,GAAIR,EAAUT,CAAG,EACf,OAEFoB,EAAkB,OAAQnB,CAAQ,CACpC,CACA,GAAIgB,EAAM,SAAS,EAAG,CACpB,GAAIjB,aAAea,EAEjB,OAEFO,EAAkB,aAAcnB,CAAQ,CAC1C,CAGA,GAAIgB,aAAiBkB,EAAe,CAClC,GAAIlB,EAAM,SAAS,EAAG,CACpB,GAAIN,EAAYX,CAAG,EACjB,OAEFoB,EAAkB,aAAcnB,CAAQ,CAC1C,CACA,GAAIgB,EAAM,SAAS,EAAG,CACpB,GAAIP,EAAaV,CAAG,EAClB,OAEFoB,EAAkB,iBAAkBnB,CAAQ,CAC9C,CACA,GAAIgB,EAAM,SAAS,EAAG,CACpB,GAAIjB,aAAec,EAEjB,OAEFM,EAAkB,aAAcnB,CAAQ,CAC1C,CACF,CAEA,MAAM,IAAI,MAAM,8BAA8BA,CAAQ,eAAegB,EAAM,SAAS,CAAC,GAAG,CAC1F","names":["standardizeTypeTags","typeArguments","typeArg","isString","parseTypeTag","fetchEntryFunctionAbi","moduleAddress","moduleName","functionName","aptosConfig","functionAbi","getModule","func","first","findFirstNonSignerArg","params","i","convertArgument","arg","position","genericTypeParams","isBcsBool","isBcsU8","isBcsU16","isBcsU32","isBcsU64","isBcsU128","isBcsU256","isBcsAddress","isBcsString","isBcsFixedBytes","MoveVector","MoveOption","checkType","parseArg","param","isBool","Bool","throwTypeMismatch","AccountAddress","isNumber","U8","U16","U32","isLargeNumber","U64","U128","U256","genericIndex","Hex","item","MoveString","isNull","TypeTagStruct"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as r}from"./chunk-EGOYLZBU.mjs";async function d(e){let{aptosConfig:t,overrides:s,params:n,contentType:o,acceptType:p,path:i,originMethod:a,type:u}=e,R=t.getRequestUrl(u);return r({url:R,method:"GET",originMethod:a,path:i,contentType:o?.valueOf(),acceptType:p?.valueOf(),params:n,overrides:{...t.clientConfig,...s}},t)}async function m(e){return d({...e,type:0})}async function f(e){let t=[],s,n=e.params;for(;;){n.start=s;let o=await m({aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:n,overrides:e.overrides});if(s=o.headers["x-aptos-cursor"],delete o.headers,t.push(...o.data),s==null)break}return t}export{d as a,m as b,f as c};
|
|
2
|
+
//# sourceMappingURL=chunk-3JVGSFHP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/client/get.ts"],"sourcesContent":["import { AptosConfig } from \"../api/aptosConfig\";\nimport { aptosRequest } from \"./core\";\nimport { AptosResponse } from \"./types\";\nimport { AnyNumber, ClientConfig, MimeType } from \"../types\";\nimport { AptosApiType } from \"../utils/const\";\n\nexport type GetRequestOptions = {\n /**\n * The config for the API client\n */\n aptosConfig: AptosConfig;\n /**\n * The type of API endpoint to call e.g. fullnode, indexer, etc\n */\n type: AptosApiType;\n /**\n * The name of the API method\n */\n originMethod: string;\n /**\n * The URL path to the API method\n */\n path: string;\n /**\n * The content type of the request body\n */\n contentType?: MimeType;\n /**\n * The accepted content type of the response of the API\n */\n acceptType?: MimeType;\n /**\n * The query parameters for the request\n */\n params?: Record<string, string | AnyNumber | boolean | undefined>;\n /**\n * Specific client overrides for this request to override aptosConfig\n */\n overrides?: ClientConfig;\n};\n\nexport type GetAptosRequestOptions = Omit<GetRequestOptions, \"type\">;\n\n/**\n * Main function to do a Get request\n *\n * @param options GetRequestOptions\n * @returns\n */\nexport async function get<Req extends {}, Res extends {}>(\n options: GetRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n const { aptosConfig, overrides, params, contentType, acceptType, path, originMethod, type } = options;\n const url = aptosConfig.getRequestUrl(type);\n\n return aptosRequest<Req, Res>(\n {\n url,\n method: \"GET\",\n originMethod,\n path,\n contentType: contentType?.valueOf(),\n acceptType: acceptType?.valueOf(),\n params,\n overrides: {\n ...aptosConfig.clientConfig,\n ...overrides,\n },\n },\n aptosConfig,\n );\n}\n\nexport async function getAptosFullNode<Req extends {}, Res extends {}>(\n options: GetAptosRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n return get<Req, Res>({ ...options, type: AptosApiType.FULLNODE });\n}\n\n/// This function is a helper for paginating using a function wrapping an API\nexport async function paginateWithCursor<Req extends Record<string, any>, Res extends any[]>(\n options: GetAptosRequestOptions,\n): Promise<Res> {\n const out = [];\n let cursor: string | undefined;\n const requestParams = options.params as Req & { start?: string; limit?: number };\n // eslint-disable-next-line no-constant-condition\n while (true) {\n requestParams.start = cursor;\n // eslint-disable-next-line no-await-in-loop\n const response = await getAptosFullNode<Req, Res>({\n aptosConfig: options.aptosConfig,\n originMethod: options.originMethod,\n path: options.path,\n params: requestParams,\n overrides: options.overrides,\n });\n /**\n * the cursor is a \"state key\" from the API perspective. Client\n * should not need to \"care\" what it represents but just use it\n * to query the next chunk of data.\n */\n cursor = response.headers[\"x-aptos-cursor\"];\n // Now that we have the cursor (if any), we remove the headers before\n // adding these to the output of this function.\n delete (response as any).headers;\n out.push(...response.data);\n if (cursor === null || cursor === undefined) {\n break;\n }\n }\n return out as any;\n}\n"],"mappings":"yCAiDA,eAAsBA,EACpBC,EACkC,CAClC,GAAM,CAAE,YAAAC,EAAa,UAAAC,EAAW,OAAAC,EAAQ,YAAAC,EAAa,WAAAC,EAAY,KAAAC,EAAM,aAAAC,EAAc,KAAAC,CAAK,EAAIR,EACxFS,EAAMR,EAAY,cAAcO,CAAI,EAE1C,OAAOE,EACL,CACE,IAAAD,EACA,OAAQ,MACR,aAAAF,EACA,KAAAD,EACA,YAAaF,GAAa,QAAQ,EAClC,WAAYC,GAAY,QAAQ,EAChC,OAAAF,EACA,UAAW,CACT,GAAGF,EAAY,aACf,GAAGC,CACL,CACF,EACAD,CACF,CACF,CAEA,eAAsBU,EACpBX,EACkC,CAClC,OAAOD,EAAc,CAAE,GAAGC,EAAS,MAA4B,CAAC,CAClE,CAGA,eAAsBY,EACpBZ,EACc,CACd,IAAMa,EAAM,CAAC,EACTC,EACEC,EAAgBf,EAAQ,OAE9B,OAAa,CACXe,EAAc,MAAQD,EAEtB,IAAME,EAAW,MAAML,EAA2B,CAChD,YAAaX,EAAQ,YACrB,aAAcA,EAAQ,aACtB,KAAMA,EAAQ,KACd,OAAQe,EACR,UAAWf,EAAQ,SACrB,CAAC,EAWD,GALAc,EAASE,EAAS,QAAQ,gBAAgB,EAG1C,OAAQA,EAAiB,QACzBH,EAAI,KAAK,GAAGG,EAAS,IAAI,EACrBF,GAAW,KACb,KAEJ,CACA,OAAOD,CACT","names":["get","options","aptosConfig","overrides","params","contentType","acceptType","path","originMethod","type","url","aptosRequest","getAptosFullNode","paginateWithCursor","out","cursor","requestParams","response"]}
|