@aptos-labs/ts-sdk 1.13.3-zeta.3 → 1.14.0-zeta.0
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/dist/common/accountAddress-NPQwRmxn.d.ts +2121 -0
- package/dist/common/cli/index.d.ts +94 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +243 -2236
- package/dist/common/index.js +25 -25
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-8gJF5t3F.d.mts → Ed25519Account-9zBaZEnp.d.mts} +76 -7
- package/dist/esm/account/Account.d.mts +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +5 -4
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +67 -32
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +4 -4
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.d.mts +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +3 -3
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +1 -1
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +3 -3
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +8 -8
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/{chunk-5U2HUO5I.mjs → chunk-25N7RLBW.mjs} +2 -2
- package/dist/esm/{chunk-5U2HUO5I.mjs.map → chunk-25N7RLBW.mjs.map} +1 -1
- package/dist/esm/chunk-32355KGV.mjs +2 -0
- package/dist/esm/chunk-32355KGV.mjs.map +1 -0
- package/dist/esm/{chunk-DBHUQJV6.mjs → chunk-3OELNIC6.mjs} +2 -2
- package/dist/esm/chunk-3U5VRZLS.mjs +2 -0
- package/dist/esm/{chunk-S5HG2QUD.mjs.map → chunk-3U5VRZLS.mjs.map} +1 -1
- package/dist/esm/chunk-43WARVT3.mjs +2 -0
- package/dist/esm/{chunk-PGN46FRK.mjs.map → chunk-43WARVT3.mjs.map} +1 -1
- package/dist/esm/chunk-56NB52W6.mjs +2 -0
- package/dist/esm/chunk-56NB52W6.mjs.map +1 -0
- package/dist/esm/{chunk-ZB4QCXPI.mjs → chunk-5DW2AJPI.mjs} +2 -2
- package/dist/esm/{chunk-ID5XEMNJ.mjs → chunk-5QWUIVAQ.mjs} +2 -2
- package/dist/esm/{chunk-WTVN3XGK.mjs → chunk-6456EI2E.mjs} +2 -2
- package/dist/esm/{chunk-DCALFAYP.mjs → chunk-65UZZNN2.mjs} +2 -2
- package/dist/esm/{chunk-EEZ7W4FY.mjs → chunk-6LOTZ4GY.mjs} +2 -2
- package/dist/esm/{chunk-DFWISQYQ.mjs → chunk-6SHLLRJA.mjs} +2 -2
- package/dist/esm/{chunk-NJAV2RSI.mjs → chunk-73Y4NTDU.mjs} +2 -2
- package/dist/esm/chunk-7PSX4LCV.mjs +2 -0
- package/dist/esm/{chunk-IY76OUEM.mjs.map → chunk-7PSX4LCV.mjs.map} +1 -1
- package/dist/esm/chunk-7Q2NVO5M.mjs +2 -0
- package/dist/esm/chunk-7Q2NVO5M.mjs.map +1 -0
- package/dist/esm/chunk-C5UVSNZW.mjs +2 -0
- package/dist/esm/chunk-C5UVSNZW.mjs.map +1 -0
- package/dist/esm/{chunk-JDYILQSI.mjs → chunk-CLVAGDXO.mjs} +2 -2
- package/dist/esm/{chunk-Q5YW4VKH.mjs → chunk-D22EMNIY.mjs} +2 -2
- package/dist/esm/{chunk-X5HARDBD.mjs → chunk-DLTC6PJP.mjs} +2 -2
- package/dist/esm/{chunk-UIHUFI4D.mjs → chunk-EKABTHUZ.mjs} +2 -2
- package/dist/esm/chunk-EOMDZYSJ.mjs +2 -0
- package/dist/esm/chunk-EOMDZYSJ.mjs.map +1 -0
- package/dist/esm/{chunk-OEGY3D5Z.mjs → chunk-FKSACFCB.mjs} +2 -2
- package/dist/esm/{chunk-7NX7LTJJ.mjs → chunk-G4XSNSOT.mjs} +2 -2
- package/dist/esm/{chunk-I5NLKA3M.mjs → chunk-H3TFQ7K4.mjs} +2 -2
- package/dist/esm/{chunk-6M6XXPQQ.mjs → chunk-H6LYW7HG.mjs} +2 -2
- package/dist/esm/{chunk-R7BAM2G6.mjs → chunk-HCGWCB5E.mjs} +2 -2
- package/dist/esm/{chunk-XHPLLMR5.mjs → chunk-HXSW6X7K.mjs} +2 -2
- package/dist/esm/{chunk-QW55WEXU.mjs → chunk-IXYXFDJZ.mjs} +2 -2
- package/dist/esm/{chunk-J7BN4K72.mjs → chunk-J7J7ZTBF.mjs} +2 -2
- package/dist/esm/chunk-JVKMQ64G.mjs +2 -0
- package/dist/esm/{chunk-ALPPGXXW.mjs.map → chunk-JVKMQ64G.mjs.map} +1 -1
- package/dist/esm/{chunk-TISS3UCO.mjs → chunk-KWNBC5MF.mjs} +2 -2
- package/dist/esm/chunk-LDQ6JFEF.mjs +2 -0
- package/dist/esm/chunk-LDQ6JFEF.mjs.map +1 -0
- package/dist/esm/chunk-NGNETNK2.mjs +2 -0
- package/dist/esm/chunk-NGNETNK2.mjs.map +1 -0
- package/dist/esm/{chunk-EJPL4WP3.mjs → chunk-NKCZ4KGO.mjs} +2 -2
- package/dist/esm/chunk-NMECYE3D.mjs +2 -0
- package/dist/esm/chunk-NMECYE3D.mjs.map +1 -0
- package/dist/esm/{chunk-IERPDC22.mjs → chunk-NNW6HWIO.mjs} +2 -2
- package/dist/esm/{chunk-ZGTJMNZG.mjs → chunk-O34EOOVF.mjs} +2 -2
- package/dist/esm/{chunk-7JNPSNL6.mjs → chunk-OBEVVLF7.mjs} +2 -2
- package/dist/esm/{chunk-Z2ZV7SJI.mjs → chunk-OLGSIKFB.mjs} +2 -2
- package/dist/esm/{chunk-3X7RN4TM.mjs → chunk-OZC3FCJP.mjs} +2 -2
- package/dist/esm/{chunk-XQ2CSNQG.mjs → chunk-PINF6ZWP.mjs} +2 -2
- package/dist/esm/{chunk-DMKFITUM.mjs → chunk-PJXRQBF6.mjs} +2 -2
- package/dist/esm/{chunk-VIJBWYHD.mjs → chunk-QHVZL3LZ.mjs} +2 -2
- package/dist/esm/{chunk-MHANMSFM.mjs → chunk-QNHDS64I.mjs} +2 -2
- package/dist/esm/{chunk-5UDWQC3F.mjs → chunk-RBPGL6YB.mjs} +2 -2
- package/dist/esm/{chunk-4Z22B5FW.mjs → chunk-RTSEMQCK.mjs} +2 -2
- package/dist/esm/{chunk-5CY6DMOC.mjs → chunk-SRPTQ4VV.mjs} +2 -2
- package/dist/esm/{chunk-FEXAWES4.mjs → chunk-TXMPXZBG.mjs} +2 -2
- package/dist/esm/{chunk-H7A56KXV.mjs → chunk-UGIJHLL3.mjs} +2 -2
- package/dist/esm/{chunk-PTIZKRON.mjs → chunk-UVOU6BW2.mjs} +2 -2
- package/dist/esm/{chunk-C7ZUHEPR.mjs → chunk-V7P6MLSY.mjs} +2 -2
- package/dist/esm/{chunk-XVHMGCDZ.mjs → chunk-VJJN3GFD.mjs} +2 -2
- package/dist/esm/{chunk-FJTNAGMR.mjs → chunk-WOLIXKOK.mjs} +2 -2
- package/dist/esm/{chunk-YXRZEUT6.mjs → chunk-WVIPPU2C.mjs} +2 -2
- package/dist/esm/chunk-XCR3YNHW.mjs +2 -0
- package/dist/esm/chunk-XCR3YNHW.mjs.map +1 -0
- package/dist/esm/{chunk-SWIHAMDH.mjs → chunk-XMFPKHB5.mjs} +2 -2
- package/dist/esm/{chunk-WPVBC4JS.mjs → chunk-XN4SQWI5.mjs} +2 -2
- package/dist/esm/chunk-XN4SQWI5.mjs.map +1 -0
- package/dist/esm/{chunk-PEUK5XJE.mjs → chunk-Z5KKUXYI.mjs} +2 -2
- package/dist/esm/chunk-ZM436N3W.mjs +2 -0
- package/dist/esm/chunk-ZM436N3W.mjs.map +1 -0
- package/dist/esm/cli/index.d.mts +12 -0
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/move.d.mts +105 -0
- package/dist/esm/cli/move.mjs +2 -0
- package/dist/esm/cli/move.mjs.map +1 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +9 -3
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +5 -5
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +1 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +2 -2
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +3 -3
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +26 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +3 -13
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/utils/apiEndpoints.d.mts +0 -1
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/src/account/Account.ts +19 -5
- package/src/account/Ed25519Account.ts +35 -5
- package/src/account/KeylessAccount.ts +11 -7
- package/src/account/MultiKeyAccount.ts +95 -32
- package/src/account/SingleKeyAccount.ts +35 -5
- package/src/account/index.ts +1 -1
- package/src/cli/index.ts +1 -0
- package/src/cli/move.ts +183 -0
- package/src/core/crypto/hdKey.ts +5 -5
- package/src/core/crypto/multiKey.ts +18 -17
- package/src/internal/ans.ts +0 -1
- package/src/internal/fungibleAsset.ts +1 -1
- package/src/internal/transactionSubmission.ts +1 -1
- package/src/transactions/authenticator/account.ts +4 -4
- package/src/transactions/transactionBuilder/signingMessage.ts +33 -10
- package/src/transactions/transactionBuilder/transactionBuilder.ts +7 -51
- package/src/utils/apiEndpoints.ts +0 -6
- package/src/version.ts +1 -1
- package/dist/esm/chunk-5RBI4QWR.mjs +0 -2
- package/dist/esm/chunk-5RBI4QWR.mjs.map +0 -1
- package/dist/esm/chunk-ALPPGXXW.mjs +0 -2
- package/dist/esm/chunk-CHBG3GY5.mjs +0 -2
- package/dist/esm/chunk-CHBG3GY5.mjs.map +0 -1
- package/dist/esm/chunk-HHYQZBJO.mjs +0 -2
- package/dist/esm/chunk-HHYQZBJO.mjs.map +0 -1
- package/dist/esm/chunk-IY76OUEM.mjs +0 -2
- package/dist/esm/chunk-KGJITNRZ.mjs +0 -2
- package/dist/esm/chunk-KGJITNRZ.mjs.map +0 -1
- package/dist/esm/chunk-LIPZPOQG.mjs +0 -2
- package/dist/esm/chunk-LIPZPOQG.mjs.map +0 -1
- package/dist/esm/chunk-PGN46FRK.mjs +0 -2
- package/dist/esm/chunk-PXIIS7JA.mjs +0 -2
- package/dist/esm/chunk-PXIIS7JA.mjs.map +0 -1
- package/dist/esm/chunk-S5HG2QUD.mjs +0 -2
- package/dist/esm/chunk-UQ65W433.mjs +0 -2
- package/dist/esm/chunk-UQ65W433.mjs.map +0 -1
- package/dist/esm/chunk-WPVBC4JS.mjs.map +0 -1
- package/dist/esm/chunk-XS4XZVGH.mjs +0 -2
- package/dist/esm/chunk-XS4XZVGH.mjs.map +0 -1
- package/dist/esm/chunk-ZADLGPN7.mjs +0 -2
- package/dist/esm/chunk-ZADLGPN7.mjs.map +0 -1
- /package/dist/esm/{chunk-DBHUQJV6.mjs.map → chunk-3OELNIC6.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZB4QCXPI.mjs.map → chunk-5DW2AJPI.mjs.map} +0 -0
- /package/dist/esm/{chunk-ID5XEMNJ.mjs.map → chunk-5QWUIVAQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-WTVN3XGK.mjs.map → chunk-6456EI2E.mjs.map} +0 -0
- /package/dist/esm/{chunk-DCALFAYP.mjs.map → chunk-65UZZNN2.mjs.map} +0 -0
- /package/dist/esm/{chunk-EEZ7W4FY.mjs.map → chunk-6LOTZ4GY.mjs.map} +0 -0
- /package/dist/esm/{chunk-DFWISQYQ.mjs.map → chunk-6SHLLRJA.mjs.map} +0 -0
- /package/dist/esm/{chunk-NJAV2RSI.mjs.map → chunk-73Y4NTDU.mjs.map} +0 -0
- /package/dist/esm/{chunk-JDYILQSI.mjs.map → chunk-CLVAGDXO.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q5YW4VKH.mjs.map → chunk-D22EMNIY.mjs.map} +0 -0
- /package/dist/esm/{chunk-X5HARDBD.mjs.map → chunk-DLTC6PJP.mjs.map} +0 -0
- /package/dist/esm/{chunk-UIHUFI4D.mjs.map → chunk-EKABTHUZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-OEGY3D5Z.mjs.map → chunk-FKSACFCB.mjs.map} +0 -0
- /package/dist/esm/{chunk-7NX7LTJJ.mjs.map → chunk-G4XSNSOT.mjs.map} +0 -0
- /package/dist/esm/{chunk-I5NLKA3M.mjs.map → chunk-H3TFQ7K4.mjs.map} +0 -0
- /package/dist/esm/{chunk-6M6XXPQQ.mjs.map → chunk-H6LYW7HG.mjs.map} +0 -0
- /package/dist/esm/{chunk-R7BAM2G6.mjs.map → chunk-HCGWCB5E.mjs.map} +0 -0
- /package/dist/esm/{chunk-XHPLLMR5.mjs.map → chunk-HXSW6X7K.mjs.map} +0 -0
- /package/dist/esm/{chunk-QW55WEXU.mjs.map → chunk-IXYXFDJZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-J7BN4K72.mjs.map → chunk-J7J7ZTBF.mjs.map} +0 -0
- /package/dist/esm/{chunk-TISS3UCO.mjs.map → chunk-KWNBC5MF.mjs.map} +0 -0
- /package/dist/esm/{chunk-EJPL4WP3.mjs.map → chunk-NKCZ4KGO.mjs.map} +0 -0
- /package/dist/esm/{chunk-IERPDC22.mjs.map → chunk-NNW6HWIO.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZGTJMNZG.mjs.map → chunk-O34EOOVF.mjs.map} +0 -0
- /package/dist/esm/{chunk-7JNPSNL6.mjs.map → chunk-OBEVVLF7.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z2ZV7SJI.mjs.map → chunk-OLGSIKFB.mjs.map} +0 -0
- /package/dist/esm/{chunk-3X7RN4TM.mjs.map → chunk-OZC3FCJP.mjs.map} +0 -0
- /package/dist/esm/{chunk-XQ2CSNQG.mjs.map → chunk-PINF6ZWP.mjs.map} +0 -0
- /package/dist/esm/{chunk-DMKFITUM.mjs.map → chunk-PJXRQBF6.mjs.map} +0 -0
- /package/dist/esm/{chunk-VIJBWYHD.mjs.map → chunk-QHVZL3LZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-MHANMSFM.mjs.map → chunk-QNHDS64I.mjs.map} +0 -0
- /package/dist/esm/{chunk-5UDWQC3F.mjs.map → chunk-RBPGL6YB.mjs.map} +0 -0
- /package/dist/esm/{chunk-4Z22B5FW.mjs.map → chunk-RTSEMQCK.mjs.map} +0 -0
- /package/dist/esm/{chunk-5CY6DMOC.mjs.map → chunk-SRPTQ4VV.mjs.map} +0 -0
- /package/dist/esm/{chunk-FEXAWES4.mjs.map → chunk-TXMPXZBG.mjs.map} +0 -0
- /package/dist/esm/{chunk-H7A56KXV.mjs.map → chunk-UGIJHLL3.mjs.map} +0 -0
- /package/dist/esm/{chunk-PTIZKRON.mjs.map → chunk-UVOU6BW2.mjs.map} +0 -0
- /package/dist/esm/{chunk-C7ZUHEPR.mjs.map → chunk-V7P6MLSY.mjs.map} +0 -0
- /package/dist/esm/{chunk-XVHMGCDZ.mjs.map → chunk-VJJN3GFD.mjs.map} +0 -0
- /package/dist/esm/{chunk-FJTNAGMR.mjs.map → chunk-WOLIXKOK.mjs.map} +0 -0
- /package/dist/esm/{chunk-YXRZEUT6.mjs.map → chunk-WVIPPU2C.mjs.map} +0 -0
- /package/dist/esm/{chunk-SWIHAMDH.mjs.map → chunk-XMFPKHB5.mjs.map} +0 -0
- /package/dist/esm/{chunk-PEUK5XJE.mjs.map → chunk-Z5KKUXYI.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-XMFPKHB5.mjs";import{a as g}from"./chunk-WVIPPU2C.mjs";import{a as l}from"./chunk-VJJN3GFD.mjs";import{a as h}from"./chunk-5QWUIVAQ.mjs";import{a as y}from"./chunk-RBPGL6YB.mjs";import{a as u}from"./chunk-5DW2AJPI.mjs";import{a as s}from"./chunk-RTSEMQCK.mjs";import{a as p}from"./chunk-KWNBC5MF.mjs";import{a as A}from"./chunk-NKCZ4KGO.mjs";import{a as r}from"./chunk-QNHDS64I.mjs";import{a}from"./chunk-DLTC6PJP.mjs";import{a as c}from"./chunk-FKSACFCB.mjs";var t=class{constructor(e){this.config=new A(e),this.account=new s(this.config),this.ans=new p(this.config),this.coin=new r(this.config),this.digitalAsset=new a(this.config),this.event=new c(this.config),this.faucet=new f(this.config),this.fungibleAsset=new g(this.config),this.general=new l(this.config),this.staking=new y(this.config),this.transaction=new u(this.config),this.keyless=new h(this.config)}};function n(m,e,d){Object.getOwnPropertyNames(e.prototype).forEach(i=>{let o=Object.getOwnPropertyDescriptor(e.prototype,i);o&&(o.value=function(...w){return this[d][i](...w)},Object.defineProperty(m.prototype,i,o))})}n(t,s,"account");n(t,p,"ans");n(t,r,"coin");n(t,a,"digitalAsset");n(t,c,"event");n(t,f,"faucet");n(t,g,"fungibleAsset");n(t,l,"general");n(t,y,"staking");n(t,u,"transaction");n(t,h,"keyless");export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-Z5KKUXYI.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as D,c as tn,d as en,e as R}from"./chunk-EKABTHUZ.mjs";import{q as nn,t as y}from"./chunk-TICM455H.mjs";import{a as Q}from"./chunk-6SHLLRJA.mjs";import{b as Y}from"./chunk-QHVZL3LZ.mjs";import{a as J}from"./chunk-AH44UPM4.mjs";import{a as j}from"./chunk-UGIJHLL3.mjs";import{a as Z}from"./chunk-ROXFCLDT.mjs";import{g as F}from"./chunk-32355KGV.mjs";import{a as L}from"./chunk-52ECIIIH.mjs";import{a as A}from"./chunk-IXYXFDJZ.mjs";import{a as z}from"./chunk-NNIHTVLA.mjs";import{a as K,c as H,d as X}from"./chunk-7WJTKYRG.mjs";import{c as _,d as k,e as O,f as S,g as V,h as q,i as v}from"./chunk-RJ4PSGZ4.mjs";import{b,d as x,e as B,f as E}from"./chunk-O34EOOVF.mjs";import{a as W,b as p,d as g}from"./chunk-XN4SQWI5.mjs";import{a as C}from"./chunk-MWUJCP27.mjs";import{b as U,c as G}from"./chunk-YE5B2S5L.mjs";import{a as N,b as P}from"./chunk-H6LYW7HG.mjs";import{a as $,c as M}from"./chunk-UVOU6BW2.mjs";import{a as w,c as I}from"./chunk-OBEVVLF7.mjs";import{b as u}from"./chunk-T23OVRNF.mjs";import{b as h}from"./chunk-AOCNYMMX.mjs";import{sha3_256 as un}from"@noble/hashes/sha3";async function kn(n){if(nn(n))return An(n);let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await rn({key:"entry-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:tn});return dn({...n,abi:a})}function dn(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=D(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n.functionArguments.map((s,d)=>R(n.function,t,s,d,r));if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);let c=S.build(`${e}::${i}`,a,r,o);if("multisigAddress"in n){let s=u.from(n.multisigAddress);return new O(new q(s,new v(c)))}return new k(c)}async function On(n){let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await rn({key:"view-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:en});return mn({abi:a,...n})}function mn(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=D(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n?.functionArguments?.map((c,s)=>R(n.function,t,c,s,r))??[];if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);return S.build(`${e}::${i}`,a,r,o)}function An(n){return new _(new V(h.fromHexInput(n.bytecode).toUint8Array(),n.typeArguments??[],n.functionArguments))}async function yn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=async()=>F[t.network]?{chainId:F[t.network]}:{chainId:(await j({aptosConfig:t})).chain_id},c=async()=>a?.gasUnitPrice?{gasEstimate:a.gasUnitPrice}:{gasEstimate:(await Y({aptosConfig:t})).gas_estimate},s=async()=>{let f=async()=>a?.accountSequenceNumber!==void 0?a.accountSequenceNumber:(await Q({aptosConfig:t,accountAddress:e})).sequence_number;if(r&&u.from(r).equals(u.ZERO))try{return await f()}catch{return 0}else return f()},[{chainId:d},{gasEstimate:m},T]=await Promise.all([o(),c(),s()]),{maxGasAmount:on,gasUnitPrice:sn,expireTimestamp:cn}={maxGasAmount:a?.maxGasAmount?BigInt(a.maxGasAmount):BigInt(2e5),gasUnitPrice:a?.gasUnitPrice??BigInt(m),expireTimestamp:a?.expireTimestamp??BigInt(Math.floor(Date.now()/1e3)+20)};return new K(u.from(e),BigInt(T),i,BigInt(on),BigInt(sn),BigInt(cn),new C(d))}async function Vn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=await yn({aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r});if("secondarySignerAddresses"in n){let c=n.secondarySignerAddresses?.map(s=>u.from(s))??[];return new L(o,c,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}return new z(o,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}function qn(n){let{signerPublicKey:t,transaction:e,secondarySignersPublicKeys:i,feePayerPublicKey:a}=n,r=l(t);if(e.feePayerAddress){let c=new X(e.rawTransaction,e.secondarySignerAddresses??[],e.feePayerAddress),s=[];i&&(s=i.map(T=>l(T)));let d=l(a),m=new B(r,e.secondarySignerAddresses??[],s,{address:e.feePayerAddress,authenticator:d});return new A(c.raw_txn,m).bcsToBytes()}if(e.secondarySignerAddresses){let c=new H(e.rawTransaction,e.secondarySignerAddresses),s=[];s=i.map(m=>l(m));let d=new x(r,e.secondarySignerAddresses,s);return new A(c.raw_txn,d).bcsToBytes()}let o;if(r instanceof p)o=new b(r.public_key,r.signature);else if(r instanceof g)o=new E(r);else throw new Error("Invalid public key");return new A(e.rawTransaction,o).bcsToBytes()}function l(n){if(n instanceof N){if(n.publicKey instanceof w)return new g(n,new P(new I(new Uint8Array(64))));if(n.publicKey instanceof $)return new g(n,new P(new M(new Uint8Array(64))))}return new p(new w(n.toUint8Array()),new I(new Uint8Array(64)))}function fn(n){let{transaction:t,feePayerAuthenticator:e,additionalSignersAuthenticators:i}=n,a=Z(W,n.senderAuthenticator),r;if(t.feePayerAddress){if(!e)throw new Error("Must provide a feePayerAuthenticator argument to generate a signed fee payer transaction");r=new B(a,t.secondarySignerAddresses??[],i??[],{address:t.feePayerAddress,authenticator:e})}else if(t.secondarySignerAddresses){if(!i)throw new Error("Must provide a additionalSignersAuthenticators argument to generate a signed multi agent transaction");r=new x(a,t.secondarySignerAddresses,i)}else a instanceof p?r=new b(a.public_key,a.signature):r=new E(a);return new A(t.rawTransaction,r).bcsToBytes()}function an(n){let t=un.create();for(let e of n)t.update(e);return t.digest()}var pn=an(["APTOS::Transaction"]);function vn(n){let t=fn(n);return new h(an([pn,new Uint8Array([0]),t])).toString()}async function rn({key:n,moduleAddress:t,moduleName:e,functionName:i,aptosConfig:a,abi:r,fetch:o}){return r!==void 0?r:J(async()=>o(t,e,i,a),`${n}-${a.network}-${t}-${e}-${i}`,1e3*60*5)()}export{kn as a,dn as b,On as c,mn as d,yn as e,Vn as f,qn as g,l as h,fn as i,an as j,vn as k};
|
|
2
|
+
//# sourceMappingURL=chunk-ZM436N3W.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/transactions/transactionBuilder/transactionBuilder.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * This file handles the transaction creation lifecycle.\n * It holds different operations to generate a transaction payload, a raw transaction,\n * and a signed transaction that can be simulated, signed and submitted to chain.\n */\nimport { sha3_256 as sha3Hash } from \"@noble/hashes/sha3\";\nimport { AptosConfig } from \"../../api/aptosConfig\";\nimport { AccountAddress, AccountAddressInput, Hex, PublicKey } from \"../../core\";\nimport { AnyPublicKey, AnySignature, Secp256k1PublicKey, Secp256k1Signature } from \"../../core/crypto\";\nimport { Ed25519PublicKey, Ed25519Signature } from \"../../core/crypto/ed25519\";\nimport { getInfo } from \"../../internal/account\";\nimport { getLedgerInfo } from \"../../internal/general\";\nimport { getGasPriceEstimation } from \"../../internal/transaction\";\nimport { NetworkToChainId } from \"../../utils/apiEndpoints\";\nimport { DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW } from \"../../utils/const\";\nimport { normalizeBundle } from \"../../utils/normalizeBundle\";\nimport {\n AccountAuthenticator,\n AccountAuthenticatorEd25519,\n AccountAuthenticatorSingleKey,\n} from \"../authenticator/account\";\nimport {\n TransactionAuthenticator,\n TransactionAuthenticatorEd25519,\n TransactionAuthenticatorFeePayer,\n TransactionAuthenticatorMultiAgent,\n TransactionAuthenticatorSingleSender,\n} from \"../authenticator/transaction\";\nimport {\n ChainId,\n EntryFunction,\n FeePayerRawTransaction,\n MultiAgentRawTransaction,\n MultiSig,\n MultiSigTransactionPayload,\n RawTransaction,\n Script,\n TransactionPayloadEntryFunction,\n TransactionPayloadMultiSig,\n TransactionPayloadScript,\n} from \"../instances\";\nimport { SignedTransaction } from \"../instances/signedTransaction\";\nimport {\n AnyRawTransaction,\n AnyTransactionPayloadInstance,\n EntryFunctionArgumentTypes,\n InputGenerateMultiAgentRawTransactionArgs,\n InputGenerateRawTransactionArgs,\n InputGenerateSingleSignerRawTransactionArgs,\n InputGenerateTransactionOptions,\n InputScriptData,\n InputSimulateTransactionData,\n InputMultiSigDataWithRemoteABI,\n InputEntryFunctionDataWithRemoteABI,\n InputGenerateTransactionPayloadDataWithRemoteABI,\n InputSubmitTransactionData,\n InputGenerateTransactionPayloadDataWithABI,\n InputEntryFunctionDataWithABI,\n InputMultiSigDataWithABI,\n InputViewFunctionDataWithRemoteABI,\n InputViewFunctionDataWithABI,\n FunctionABI,\n} from \"../types\";\nimport { convertArgument, fetchEntryFunctionAbi, fetchViewFunctionAbi, standardizeTypeTags } from \"./remoteAbi\";\nimport { memoizeAsync } from \"../../utils/memoize\";\nimport { getFunctionParts, isScriptDataInput } from \"./helpers\";\nimport { SimpleTransaction } from \"../instances/simpleTransaction\";\nimport { MultiAgentTransaction } from \"../instances/multiAgentTransaction\";\n\n/**\n * We are defining function signatures, each with its specific input and output.\n * These are the possible function signature for our `generateTransactionPayload` function.\n * When we call our `generateTransactionPayload` function with the relevant type properties,\n * Typescript can infer the return type based on the appropriate function overload.\n */\nexport async function generateTransactionPayload(args: InputScriptData): Promise<TransactionPayloadScript>;\nexport async function generateTransactionPayload(\n args: InputEntryFunctionDataWithRemoteABI,\n): Promise<TransactionPayloadEntryFunction>;\nexport async function generateTransactionPayload(\n args: InputMultiSigDataWithRemoteABI,\n): Promise<TransactionPayloadMultiSig>;\n\n/**\n * Builds a transaction payload based on the data argument and returns\n * a transaction payload - TransactionPayloadScript | TransactionPayloadMultiSig | TransactionPayloadEntryFunction\n *\n * This uses the RemoteABI by default, and the remote ABI can be skipped by using generateTransactionPayloadWithABI\n *\n * @param args.data GenerateTransactionPayloadData\n *\n * @return TransactionPayload\n */\nexport async function generateTransactionPayload(\n args: InputGenerateTransactionPayloadDataWithRemoteABI,\n): Promise<AnyTransactionPayloadInstance> {\n if (isScriptDataInput(args)) {\n return generateTransactionPayloadScript(args);\n }\n const { moduleAddress, moduleName, functionName } = getFunctionParts(args.function);\n\n const functionAbi = await fetchAbi({\n key: \"entry-function\",\n moduleAddress,\n moduleName,\n functionName,\n aptosConfig: args.aptosConfig,\n abi: args.abi,\n fetch: fetchEntryFunctionAbi,\n });\n\n // Fill in the ABI\n return generateTransactionPayloadWithABI({ ...args, abi: functionAbi });\n}\n\nexport function generateTransactionPayloadWithABI(args: InputEntryFunctionDataWithABI): TransactionPayloadEntryFunction;\nexport function generateTransactionPayloadWithABI(args: InputMultiSigDataWithABI): TransactionPayloadMultiSig;\nexport function generateTransactionPayloadWithABI(\n args: InputGenerateTransactionPayloadDataWithABI,\n): AnyTransactionPayloadInstance {\n const functionAbi = args.abi;\n const { moduleAddress, moduleName, functionName } = getFunctionParts(args.function);\n\n // Ensure that all type arguments are typed properly\n const typeArguments = standardizeTypeTags(args.typeArguments);\n\n // Check the type argument count against the ABI\n if (typeArguments.length !== functionAbi.typeParameters.length) {\n throw new Error(\n `Type argument count mismatch, expected ${functionAbi.typeParameters.length}, received ${typeArguments.length}`,\n );\n }\n\n // Check all BCS types, and convert any non-BCS types\n const functionArguments: Array<EntryFunctionArgumentTypes> = args.functionArguments.map((arg, i) =>\n convertArgument(args.function, functionAbi, arg, i, typeArguments),\n );\n\n // Check that all arguments are accounted for\n if (functionArguments.length !== functionAbi.parameters.length) {\n throw new Error(\n // eslint-disable-next-line max-len\n `Too few arguments for '${moduleAddress}::${moduleName}::${functionName}', expected ${functionAbi.parameters.length} but got ${functionArguments.length}`,\n );\n }\n\n // Generate entry function payload\n const entryFunctionPayload = EntryFunction.build(\n `${moduleAddress}::${moduleName}`,\n functionName,\n typeArguments,\n functionArguments,\n );\n\n // Send it as multi sig if it's a multisig payload\n if (\"multisigAddress\" in args) {\n const multisigAddress = AccountAddress.from(args.multisigAddress);\n return new TransactionPayloadMultiSig(\n new MultiSig(multisigAddress, new MultiSigTransactionPayload(entryFunctionPayload)),\n );\n }\n\n // Otherwise send as an entry function\n return new TransactionPayloadEntryFunction(entryFunctionPayload);\n}\n\nexport async function generateViewFunctionPayload(args: InputViewFunctionDataWithRemoteABI): Promise<EntryFunction> {\n const { moduleAddress, moduleName, functionName } = getFunctionParts(args.function);\n\n const functionAbi = await fetchAbi({\n key: \"view-function\",\n moduleAddress,\n moduleName,\n functionName,\n aptosConfig: args.aptosConfig,\n abi: args.abi,\n fetch: fetchViewFunctionAbi,\n });\n\n // Fill in the ABI\n return generateViewFunctionPayloadWithABI({ abi: functionAbi, ...args });\n}\n\nexport function generateViewFunctionPayloadWithABI(args: InputViewFunctionDataWithABI): EntryFunction {\n const functionAbi = args.abi;\n const { moduleAddress, moduleName, functionName } = getFunctionParts(args.function);\n\n // Ensure that all type arguments are typed properly\n const typeArguments = standardizeTypeTags(args.typeArguments);\n\n // Check the type argument count against the ABI\n if (typeArguments.length !== functionAbi.typeParameters.length) {\n throw new Error(\n `Type argument count mismatch, expected ${functionAbi.typeParameters.length}, received ${typeArguments.length}`,\n );\n }\n\n // Check all BCS types, and convert any non-BCS types\n const functionArguments: Array<EntryFunctionArgumentTypes> =\n args?.functionArguments?.map((arg, i) => convertArgument(args.function, functionAbi, arg, i, typeArguments)) ?? [];\n\n // Check that all arguments are accounted for\n if (functionArguments.length !== functionAbi.parameters.length) {\n throw new Error(\n // eslint-disable-next-line max-len\n `Too few arguments for '${moduleAddress}::${moduleName}::${functionName}', expected ${functionAbi.parameters.length} but got ${functionArguments.length}`,\n );\n }\n\n // Generate entry function payload\n return EntryFunction.build(`${moduleAddress}::${moduleName}`, functionName, typeArguments, functionArguments);\n}\n\nfunction generateTransactionPayloadScript(args: InputScriptData) {\n return new TransactionPayloadScript(\n new Script(Hex.fromHexInput(args.bytecode).toUint8Array(), args.typeArguments ?? [], args.functionArguments),\n );\n}\n\n/**\n * Generates a raw transaction\n *\n * @param args.aptosConfig AptosConfig\n * @param args.sender The transaction's sender account address as a hex input\n * @param args.payload The transaction payload - can create by using generateTransactionPayload()\n *\n * @returns RawTransaction\n */\nexport async function generateRawTransaction(args: {\n aptosConfig: AptosConfig;\n sender: AccountAddressInput;\n payload: AnyTransactionPayloadInstance;\n options?: InputGenerateTransactionOptions;\n feePayerAddress?: AccountAddressInput;\n}): Promise<RawTransaction> {\n const { aptosConfig, sender, payload, options, feePayerAddress } = args;\n\n const getChainId = async () => {\n if (NetworkToChainId[aptosConfig.network]) {\n return { chainId: NetworkToChainId[aptosConfig.network] };\n }\n const info = await getLedgerInfo({ aptosConfig });\n return { chainId: info.chain_id };\n };\n\n const getGasUnitPrice = async () => {\n if (options?.gasUnitPrice) {\n return { gasEstimate: options.gasUnitPrice };\n }\n const estimation = await getGasPriceEstimation({ aptosConfig });\n return { gasEstimate: estimation.gas_estimate };\n };\n\n const getSequenceNumberForAny = async () => {\n const getSequenceNumber = async () => {\n if (options?.accountSequenceNumber !== undefined) {\n return options.accountSequenceNumber;\n }\n\n return (await getInfo({ aptosConfig, accountAddress: sender })).sequence_number;\n };\n\n /**\n * Check if is sponsored transaction to honor AIP-52\n * {@link https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-52.md}\n */\n if (feePayerAddress && AccountAddress.from(feePayerAddress).equals(AccountAddress.ZERO)) {\n // Handle sponsored transaction generation with the option that\n // the main signer has not been created on chain\n try {\n // Check if main signer has been created on chain, if not assign sequence number 0\n return await getSequenceNumber();\n } catch (e: any) {\n return 0;\n }\n } else {\n return getSequenceNumber();\n }\n };\n const [{ chainId }, { gasEstimate }, sequenceNumber] = await Promise.all([\n getChainId(),\n getGasUnitPrice(),\n getSequenceNumberForAny(),\n ]);\n\n const { maxGasAmount, gasUnitPrice, expireTimestamp } = {\n maxGasAmount: options?.maxGasAmount ? BigInt(options.maxGasAmount) : BigInt(DEFAULT_MAX_GAS_AMOUNT),\n gasUnitPrice: options?.gasUnitPrice ?? BigInt(gasEstimate),\n expireTimestamp: options?.expireTimestamp ?? BigInt(Math.floor(Date.now() / 1000) + DEFAULT_TXN_EXP_SEC_FROM_NOW),\n };\n\n return new RawTransaction(\n AccountAddress.from(sender),\n BigInt(sequenceNumber),\n payload,\n BigInt(maxGasAmount),\n BigInt(gasUnitPrice),\n BigInt(expireTimestamp),\n new ChainId(chainId),\n );\n}\n\n/**\n * We are defining function signatures, each with its specific input and output.\n * These are the possible function signature for our `generateTransaction` function.\n * When we call our `generateTransaction` function with the relevant type properties,\n * Typescript can infer the return type based on the appropriate function overload.\n */\nexport async function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<SimpleTransaction>;\nexport async function buildTransaction(args: InputGenerateMultiAgentRawTransactionArgs): Promise<MultiAgentTransaction>;\n\n/**\n * Generates a transaction based on the provided arguments\n *\n * Note: we can start with one function to support all different payload/transaction types,\n * and if to complex to use, we could have function for each type\n *\n * @param args.aptosConfig AptosConfig\n * @param args.sender The transaction's sender account address as a hex input\n * @param args.payload The transaction payload - can create by using generateTransactionPayload()\n * @param args.options optional. Transaction options object\n * @param args.secondarySignerAddresses optional. For when want to create a multi signers transaction\n * @param args.feePayerAddress optional. For when want to create a fee payer (aka sponsored) transaction\n *\n * @return An instance of a RawTransaction, plus optional secondary/fee payer addresses\n * ```\n * {\n * rawTransaction: RawTransaction,\n * secondarySignerAddresses? : Array<AccountAddress>,\n * feePayerAddress?: AccountAddress\n * }\n * ```\n */\nexport async function buildTransaction(args: InputGenerateRawTransactionArgs): Promise<AnyRawTransaction> {\n const { aptosConfig, sender, payload, options, feePayerAddress } = args;\n // generate raw transaction\n const rawTxn = await generateRawTransaction({\n aptosConfig,\n sender,\n payload,\n options,\n feePayerAddress,\n });\n\n // if multi agent transaction\n if (\"secondarySignerAddresses\" in args) {\n const signers: Array<AccountAddress> =\n args.secondarySignerAddresses?.map((signer) => AccountAddress.from(signer)) ?? [];\n\n return new MultiAgentTransaction(\n rawTxn,\n signers,\n args.feePayerAddress ? AccountAddress.from(args.feePayerAddress) : undefined,\n );\n }\n // return the raw transaction\n return new SimpleTransaction(rawTxn, args.feePayerAddress ? AccountAddress.from(args.feePayerAddress) : undefined);\n}\n\n/**\n * Simulate a transaction before signing and submit to chain\n *\n * @param args.transaction A aptos transaction type to sign\n * @param args.signerPublicKey The signer public key\n * @param args.secondarySignersPublicKeys optional. The secondary signers public keys if multi signers transaction\n * @param args.feePayerPublicKey optional. The fee payer public key is a fee payer (aka sponsored) transaction\n * @param args.options optional. SimulateTransactionOptions\n *\n * @returns A signed serialized transaction that can be simulated\n */\nexport function generateSignedTransactionForSimulation(args: InputSimulateTransactionData): Uint8Array {\n const { signerPublicKey, transaction, secondarySignersPublicKeys, feePayerPublicKey } = args;\n\n const accountAuthenticator = getAuthenticatorForSimulation(signerPublicKey);\n\n // fee payer transaction\n if (transaction.feePayerAddress) {\n const transactionToSign = new FeePayerRawTransaction(\n transaction.rawTransaction,\n transaction.secondarySignerAddresses ?? [],\n transaction.feePayerAddress,\n );\n let secondaryAccountAuthenticators: Array<AccountAuthenticator> = [];\n if (secondarySignersPublicKeys) {\n secondaryAccountAuthenticators = secondarySignersPublicKeys.map((publicKey) =>\n getAuthenticatorForSimulation(publicKey),\n );\n }\n const feePayerAuthenticator = getAuthenticatorForSimulation(feePayerPublicKey!);\n\n const transactionAuthenticator = new TransactionAuthenticatorFeePayer(\n accountAuthenticator,\n transaction.secondarySignerAddresses ?? [],\n secondaryAccountAuthenticators,\n {\n address: transaction.feePayerAddress,\n authenticator: feePayerAuthenticator,\n },\n );\n return new SignedTransaction(transactionToSign.raw_txn, transactionAuthenticator).bcsToBytes();\n }\n\n // multi agent transaction\n if (transaction.secondarySignerAddresses) {\n const transactionToSign = new MultiAgentRawTransaction(\n transaction.rawTransaction,\n transaction.secondarySignerAddresses,\n );\n\n let secondaryAccountAuthenticators: Array<AccountAuthenticator> = [];\n\n secondaryAccountAuthenticators = secondarySignersPublicKeys!.map((publicKey) =>\n getAuthenticatorForSimulation(publicKey),\n );\n\n const transactionAuthenticator = new TransactionAuthenticatorMultiAgent(\n accountAuthenticator,\n transaction.secondarySignerAddresses,\n secondaryAccountAuthenticators,\n );\n\n return new SignedTransaction(transactionToSign.raw_txn, transactionAuthenticator).bcsToBytes();\n }\n\n // single signer raw transaction\n let transactionAuthenticator;\n if (accountAuthenticator instanceof AccountAuthenticatorEd25519) {\n transactionAuthenticator = new TransactionAuthenticatorEd25519(\n accountAuthenticator.public_key,\n accountAuthenticator.signature,\n );\n } else if (accountAuthenticator instanceof AccountAuthenticatorSingleKey) {\n transactionAuthenticator = new TransactionAuthenticatorSingleSender(accountAuthenticator);\n } else {\n throw new Error(\"Invalid public key\");\n }\n return new SignedTransaction(transaction.rawTransaction, transactionAuthenticator).bcsToBytes();\n}\n\nexport function getAuthenticatorForSimulation(publicKey: PublicKey) {\n // TODO add support for AnyMultiKey\n if (publicKey instanceof AnyPublicKey) {\n if (publicKey.publicKey instanceof Ed25519PublicKey) {\n return new AccountAuthenticatorSingleKey(publicKey, new AnySignature(new Ed25519Signature(new Uint8Array(64))));\n }\n if (publicKey.publicKey instanceof Secp256k1PublicKey) {\n return new AccountAuthenticatorSingleKey(publicKey, new AnySignature(new Secp256k1Signature(new Uint8Array(64))));\n }\n }\n\n // legacy code\n return new AccountAuthenticatorEd25519(\n new Ed25519PublicKey(publicKey.toUint8Array()),\n new Ed25519Signature(new Uint8Array(64)),\n );\n}\n\n/**\n * Prepare a transaction to be submitted to chain\n *\n * @param args.transaction A aptos transaction type\n * @param args.senderAuthenticator The account authenticator of the transaction sender\n * @param args.secondarySignerAuthenticators optional. For when the transaction is a multi signers transaction\n *\n * @returns A SignedTransaction\n */\nexport function generateSignedTransaction(args: InputSubmitTransactionData): Uint8Array {\n const { transaction, feePayerAuthenticator, additionalSignersAuthenticators } = args;\n const senderAuthenticator = normalizeBundle(AccountAuthenticator, args.senderAuthenticator);\n\n let txnAuthenticator: TransactionAuthenticator;\n if (transaction.feePayerAddress) {\n if (!feePayerAuthenticator) {\n throw new Error(\"Must provide a feePayerAuthenticator argument to generate a signed fee payer transaction\");\n }\n txnAuthenticator = new TransactionAuthenticatorFeePayer(\n senderAuthenticator,\n transaction.secondarySignerAddresses ?? [],\n additionalSignersAuthenticators ?? [],\n {\n address: transaction.feePayerAddress,\n authenticator: feePayerAuthenticator,\n },\n );\n } else if (transaction.secondarySignerAddresses) {\n if (!additionalSignersAuthenticators) {\n throw new Error(\n \"Must provide a additionalSignersAuthenticators argument to generate a signed multi agent transaction\",\n );\n }\n txnAuthenticator = new TransactionAuthenticatorMultiAgent(\n senderAuthenticator,\n transaction.secondarySignerAddresses,\n additionalSignersAuthenticators,\n );\n } else if (senderAuthenticator instanceof AccountAuthenticatorEd25519) {\n txnAuthenticator = new TransactionAuthenticatorEd25519(\n senderAuthenticator.public_key,\n senderAuthenticator.signature,\n );\n } else {\n txnAuthenticator = new TransactionAuthenticatorSingleSender(senderAuthenticator);\n }\n\n return new SignedTransaction(transaction.rawTransaction, txnAuthenticator).bcsToBytes();\n}\n\n/**\n * Hashes the set of values with a SHA-3 256 hash\n * @param input array of UTF-8 strings or Uint8array byte arrays\n */\nexport function hashValues(input: (Uint8Array | string)[]): Uint8Array {\n const hash = sha3Hash.create();\n for (const item of input) {\n hash.update(item);\n }\n return hash.digest();\n}\n\n/**\n * The domain separated prefix for hashing transacitons\n */\nconst TRANSACTION_PREFIX = hashValues([\"APTOS::Transaction\"]);\n\n/**\n * Generates a user transaction hash for the given transaction payload. It must already have an authenticator\n * @param args InputSubmitTransactionData\n */\nexport function generateUserTransactionHash(args: InputSubmitTransactionData): string {\n const signedTransaction = generateSignedTransaction(args);\n\n // Transaction signature is defined as, the domain separated prefix based on struct (Transaction)\n // Then followed by the type of the transaction for the enum, UserTransaction is 0\n // Then followed by BCS encoded bytes of the signed transaction\n return new Hex(hashValues([TRANSACTION_PREFIX, new Uint8Array([0]), signedTransaction])).toString();\n}\n\n/**\n * Fetches and caches ABIs with allowing for pass-through on provided ABIs\n * @param key\n * @param moduleAddress\n * @param moduleName\n * @param functionName\n * @param aptosConfig\n * @param abi\n * @param fetch\n */\nasync function fetchAbi<T extends FunctionABI>({\n key,\n moduleAddress,\n moduleName,\n functionName,\n aptosConfig,\n abi,\n fetch,\n}: {\n key: string;\n moduleAddress: string;\n moduleName: string;\n functionName: string;\n aptosConfig: AptosConfig;\n abi?: T;\n fetch: (moduleAddress: string, moduleName: string, functionName: string, aptosConfig: AptosConfig) => Promise<T>;\n}): Promise<T> {\n if (abi !== undefined) {\n return abi;\n }\n\n // We fetch the entry function ABI, and then pretend that we already had the ABI\n return memoizeAsync(\n async () => fetch(moduleAddress, moduleName, functionName, aptosConfig),\n `${key}-${aptosConfig.network}-${moduleAddress}-${moduleName}-${functionName}`,\n 1000 * 60 * 5, // 5 minutes\n )();\n}\n"],"mappings":"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","names":["sha3Hash","generateTransactionPayload","args","isScriptDataInput","generateTransactionPayloadScript","moduleAddress","moduleName","functionName","getFunctionParts","functionAbi","fetchAbi","fetchEntryFunctionAbi","generateTransactionPayloadWithABI","typeArguments","standardizeTypeTags","functionArguments","arg","i","convertArgument","entryFunctionPayload","EntryFunction","multisigAddress","AccountAddress","TransactionPayloadMultiSig","MultiSig","MultiSigTransactionPayload","TransactionPayloadEntryFunction","generateViewFunctionPayload","fetchViewFunctionAbi","generateViewFunctionPayloadWithABI","TransactionPayloadScript","Script","Hex","generateRawTransaction","aptosConfig","sender","payload","options","feePayerAddress","getChainId","NetworkToChainId","getLedgerInfo","getGasUnitPrice","getGasPriceEstimation","getSequenceNumberForAny","getSequenceNumber","getInfo","chainId","gasEstimate","sequenceNumber","maxGasAmount","gasUnitPrice","expireTimestamp","RawTransaction","ChainId","buildTransaction","rawTxn","signers","signer","MultiAgentTransaction","SimpleTransaction","generateSignedTransactionForSimulation","signerPublicKey","transaction","secondarySignersPublicKeys","feePayerPublicKey","accountAuthenticator","getAuthenticatorForSimulation","transactionToSign","FeePayerRawTransaction","secondaryAccountAuthenticators","publicKey","feePayerAuthenticator","transactionAuthenticator","TransactionAuthenticatorFeePayer","SignedTransaction","MultiAgentRawTransaction","TransactionAuthenticatorMultiAgent","AccountAuthenticatorEd25519","TransactionAuthenticatorEd25519","AccountAuthenticatorSingleKey","TransactionAuthenticatorSingleSender","AnyPublicKey","Ed25519PublicKey","AnySignature","Ed25519Signature","Secp256k1PublicKey","Secp256k1Signature","generateSignedTransaction","additionalSignersAuthenticators","senderAuthenticator","normalizeBundle","AccountAuthenticator","txnAuthenticator","hashValues","input","hash","sha3Hash","item","TRANSACTION_PREFIX","generateUserTransactionHash","signedTransaction","key","abi","fetch","memoizeAsync"]}
|
package/dist/esm/cli/index.d.mts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
export { LocalNode } from './localNode.mjs';
|
|
2
|
+
export { Move } from './move.mjs';
|
|
2
3
|
import 'child_process';
|
|
4
|
+
import '../core/accountAddress.mjs';
|
|
5
|
+
import '../bcs/serializer.mjs';
|
|
6
|
+
import '../core/hex.mjs';
|
|
7
|
+
import '../core/common.mjs';
|
|
8
|
+
import '../types/index.mjs';
|
|
9
|
+
import '../utils/apiEndpoints.mjs';
|
|
10
|
+
import '../types/indexer.mjs';
|
|
11
|
+
import '../types/generated/operations.mjs';
|
|
12
|
+
import '../types/generated/types.mjs';
|
|
13
|
+
import '../bcs/deserializer.mjs';
|
|
14
|
+
import '../transactions/instances/transactionArgument.mjs';
|
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"../chunk-L54P6EGN.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-FVA2OPG4.mjs";export{o as LocalNode};
|
|
1
|
+
import{a as o}from"../chunk-L54P6EGN.mjs";import{a as r}from"../chunk-LDQ6JFEF.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-FVA2OPG4.mjs";export{o as LocalNode,r as Move};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { AccountAddress } from '../core/accountAddress.mjs';
|
|
2
|
+
import { Network } from '../utils/apiEndpoints.mjs';
|
|
3
|
+
import '../bcs/serializer.mjs';
|
|
4
|
+
import '../core/hex.mjs';
|
|
5
|
+
import '../core/common.mjs';
|
|
6
|
+
import '../types/index.mjs';
|
|
7
|
+
import '../types/indexer.mjs';
|
|
8
|
+
import '../types/generated/operations.mjs';
|
|
9
|
+
import '../types/generated/types.mjs';
|
|
10
|
+
import '../bcs/deserializer.mjs';
|
|
11
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
12
|
+
|
|
13
|
+
declare class Move {
|
|
14
|
+
/**
|
|
15
|
+
* Function to initialize current directory for Aptos
|
|
16
|
+
*
|
|
17
|
+
* Configuration will be pushed into .aptos/config.yaml
|
|
18
|
+
* @param args.network optional Netowrk type argument to use for default settings, default is local
|
|
19
|
+
* @param args.profile optional Profile to use from the config file, default is 'default'
|
|
20
|
+
* This will be used to override associated settings such as the REST URL, the Faucet URL, and the private key arguments.
|
|
21
|
+
*
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
init(args: {
|
|
25
|
+
network?: Network;
|
|
26
|
+
profile?: string;
|
|
27
|
+
}): Promise<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Function to compile a package
|
|
30
|
+
*
|
|
31
|
+
* @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
|
|
32
|
+
* @param args.namedAddresses Named addresses for the move binary
|
|
33
|
+
* @example
|
|
34
|
+
* {
|
|
35
|
+
* alice:0x1234, bob:0x5678
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
compile(args: {
|
|
41
|
+
packageDirectoryPath: string;
|
|
42
|
+
namedAddresses: Record<string, AccountAddress>;
|
|
43
|
+
}): Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Function to run Move unit tests for a package
|
|
46
|
+
*
|
|
47
|
+
* @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
|
|
48
|
+
* @param args.namedAddresses Named addresses for the move binary
|
|
49
|
+
* @example
|
|
50
|
+
* {
|
|
51
|
+
* alice:0x1234, bob:0x5678
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
test(args: {
|
|
57
|
+
packageDirectoryPath: string;
|
|
58
|
+
namedAddresses: Record<string, AccountAddress>;
|
|
59
|
+
}): Promise<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Function to publishe the modules in a Move package to the Aptos blockchain
|
|
62
|
+
*
|
|
63
|
+
* @param args.packageDirectoryPath Path to a move package (the folder with a Move.toml file)
|
|
64
|
+
* @param args.namedAddresses Named addresses for the move binary
|
|
65
|
+
* @example
|
|
66
|
+
* {
|
|
67
|
+
* alice:0x1234, bob:0x5678
|
|
68
|
+
* }
|
|
69
|
+
* @param args.profile optional Profile to use from the config file.
|
|
70
|
+
*
|
|
71
|
+
* @returns
|
|
72
|
+
*/
|
|
73
|
+
publish(args: {
|
|
74
|
+
packageDirectoryPath: string;
|
|
75
|
+
namedAddresses: Record<string, AccountAddress>;
|
|
76
|
+
profile?: string;
|
|
77
|
+
}): Promise<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* Run a move command
|
|
80
|
+
*
|
|
81
|
+
* @param args
|
|
82
|
+
* @returns
|
|
83
|
+
*/
|
|
84
|
+
private runCommand;
|
|
85
|
+
/**
|
|
86
|
+
* Convert named addresses from a Map into an array seperated by a comma
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* input: {'alice' => '0x123', 'bob' => '0x456'}
|
|
90
|
+
* output: "alice=0x123,bob=0x456"
|
|
91
|
+
*
|
|
92
|
+
* @param namedAddresses
|
|
93
|
+
* @returns An array of names addresses seperated by a comma
|
|
94
|
+
*/
|
|
95
|
+
private prepareNamedAddresses;
|
|
96
|
+
/**
|
|
97
|
+
* Parse named addresses from a Record type into a Map
|
|
98
|
+
*
|
|
99
|
+
* @param namedAddresses
|
|
100
|
+
* @returns Map<name,address>
|
|
101
|
+
*/
|
|
102
|
+
private parseNamedAddresses;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { Move };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/esm/client/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-3OELNIC6.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-ROXFCLDT.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-32355KGV.mjs";import"../chunk-7PSX4LCV.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-OKRUEVF3.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{b as aptosRequest,a as request};
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
package/dist/esm/client/get.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-OZC3FCJP.mjs";import"../chunk-3OELNIC6.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-ROXFCLDT.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-32355KGV.mjs";import"../chunk-7PSX4LCV.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-OKRUEVF3.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as get,b as getAptosFullNode,c as getAptosPepperService,d as paginateWithCursor};
|
|
2
2
|
//# sourceMappingURL=get.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f,d as g}from"../chunk-
|
|
1
|
+
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f,d as g}from"../chunk-OZC3FCJP.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m}from"../chunk-D22EMNIY.mjs";import{a as b,b as c}from"../chunk-3OELNIC6.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-ROXFCLDT.mjs";import{a}from"../chunk-6FBKUTGF.mjs";import"../chunk-32355KGV.mjs";import"../chunk-7PSX4LCV.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-OKRUEVF3.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AptosApiError,c as aptosRequest,d as get,e as getAptosFullNode,f as getAptosPepperService,g as paginateWithCursor,h as post,k as postAptosFaucet,i as postAptosFullNode,j as postAptosIndexer,l as postAptosPepperService,m as postAptosProvingService,b as request};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/client/post.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-D22EMNIY.mjs";import"../chunk-3OELNIC6.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-ROXFCLDT.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-32355KGV.mjs";import"../chunk-7PSX4LCV.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-OKRUEVF3.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as post,d as postAptosFaucet,b as postAptosFullNode,c as postAptosIndexer,e as postAptosPepperService,f as postAptosProvingService};
|
|
2
2
|
//# sourceMappingURL=post.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-OBEVVLF7.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-COW5IGYC.mjs";import"../../chunk-STYDBDYL.mjs";import"../../chunk-3U5VRZLS.mjs";import"../../chunk-7STYQ5ZE.mjs";import"../../chunk-T23OVRNF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Ed25519PrivateKey,a as Ed25519PublicKey,c as Ed25519Signature};
|
|
2
2
|
//# sourceMappingURL=ed25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-HCGWCB5E.mjs";import"../../chunk-OBEVVLF7.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-COW5IGYC.mjs";import"../../chunk-STYDBDYL.mjs";import"../../chunk-3U5VRZLS.mjs";import"../../chunk-7STYQ5ZE.mjs";import"../../chunk-T23OVRNF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
|
|
2
2
|
//# sourceMappingURL=ephemeral.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-3U5VRZLS.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as APTOS_BIP44_DEFAULT_DERIVATION_PATH,b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,i as CKDPriv,e as HARDENED_OFFSET,d as KeyType,h as deriveKey,k as fromDerivationPath,f as isValidBIP44Path,g as isValidHardenedPath,l as mnemonicToSeed,j as splitPath};
|
|
2
2
|
//# sourceMappingURL=hdKey.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature } from './ed25519.mjs';
|
|
2
2
|
export { APTOS_BIP44_DEFAULT_DERIVATION_PATH, APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED_OFFSET, KeyType, deriveKey, fromDerivationPath, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, splitPath } from './hdKey.mjs';
|
|
3
3
|
export { MultiEd25519PublicKey, MultiEd25519Signature } from './multiEd25519.mjs';
|
|
4
|
-
export { MultiKey,
|
|
4
|
+
export { MultiKey, MultiKeySignature } from './multiKey.mjs';
|
|
5
5
|
export { EphemeralPublicKey, EphemeralSignature } from './ephemeral.mjs';
|
|
6
6
|
export { EPK_HORIZON_SECS, Groth16Zkp, KeylessPublicKey, KeylessSignature, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, OpenIdSignature, OpenIdSignatureOrZkProof, SignedGroth16Signature, computeAddressSeed } from './keyless.mjs';
|
|
7
7
|
export { PrivateKey } from './privateKey.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-AQ4I7VVB.mjs";import{a as
|
|
1
|
+
import"../../chunk-AQ4I7VVB.mjs";import{a as s,b as t}from"../../chunk-HXSW6X7K.mjs";import{a as Q,b as R}from"../../chunk-NGNETNK2.mjs";import{a as O,b as P}from"../../chunk-H6LYW7HG.mjs";import{a as z,b as A,c as B,d as C,e as D,f as E,g as F,h as G,i as H,j as I,k as J,l as K,m as L,n as M,o as N}from"../../chunk-6456EI2E.mjs";import"../../chunk-FLYEALDB.mjs";import"../../chunk-KUX6GQ2E.mjs";import{a as u,b as v,c as w}from"../../chunk-UVOU6BW2.mjs";import{a as x,b as y}from"../../chunk-HCGWCB5E.mjs";import{a as p,b as q,c as r}from"../../chunk-OBEVVLF7.mjs";import"../../chunk-TJDC5PWD.mjs";import{a as m,b as n}from"../../chunk-COW5IGYC.mjs";import{a as o}from"../../chunk-STYDBDYL.mjs";import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunk-3U5VRZLS.mjs";import"../../chunk-7STYQ5ZE.mjs";import"../../chunk-T23OVRNF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as APTOS_BIP44_DEFAULT_DERIVATION_PATH,b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,n as AccountPublicKey,O as AnyPublicKey,P as AnySignature,i as CKDPriv,z as EPK_HORIZON_SECS,q as Ed25519PrivateKey,p as Ed25519PublicKey,r as Ed25519Signature,x as EphemeralPublicKey,y as EphemeralSignature,K as Groth16Zkp,e as HARDENED_OFFSET,d as KeyType,H as KeylessPublicKey,N as KeylessSignature,A as MAX_AUD_VAL_BYTES,G as MAX_COMMITED_EPK_BYTES,E as MAX_EXTRA_FIELD_BYTES,D as MAX_ISS_VAL_BYTES,F as MAX_JWT_HEADER_B64_BYTES,B as MAX_UID_KEY_BYTES,C as MAX_UID_VAL_BYTES,s as MultiEd25519PublicKey,t as MultiEd25519Signature,Q as MultiKey,R as MultiKeySignature,M as OpenIdSignature,J as OpenIdSignatureOrZkProof,m as PublicKey,v as Secp256k1PrivateKey,u as Secp256k1PublicKey,w as Secp256k1Signature,o as Signature,L as SignedGroth16Signature,I as computeAddressSeed,h as deriveKey,k as fromDerivationPath,f as isValidBIP44Path,g as isValidHardenedPath,l as mnemonicToSeed,j as splitPath};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"../../chunk-6456EI2E.mjs";import"../../chunk-FLYEALDB.mjs";import"../../chunk-HCGWCB5E.mjs";import"../../chunk-OBEVVLF7.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-COW5IGYC.mjs";import"../../chunk-STYDBDYL.mjs";import"../../chunk-3U5VRZLS.mjs";import"../../chunk-7STYQ5ZE.mjs";import"../../chunk-T23OVRNF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EPK_HORIZON_SECS,l as Groth16Zkp,i as KeylessPublicKey,o as KeylessSignature,b as MAX_AUD_VAL_BYTES,h as MAX_COMMITED_EPK_BYTES,f as MAX_EXTRA_FIELD_BYTES,e as MAX_ISS_VAL_BYTES,g as MAX_JWT_HEADER_B64_BYTES,c as MAX_UID_KEY_BYTES,d as MAX_UID_VAL_BYTES,n as OpenIdSignature,k as OpenIdSignatureOrZkProof,m as SignedGroth16Signature,j as computeAddressSeed};
|
|
2
2
|
//# sourceMappingURL=keyless.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-HXSW6X7K.mjs";import"../../chunk-OBEVVLF7.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-COW5IGYC.mjs";import"../../chunk-STYDBDYL.mjs";import"../../chunk-3U5VRZLS.mjs";import"../../chunk-7STYQ5ZE.mjs";import"../../chunk-T23OVRNF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=multiEd25519.mjs.map
|
|
@@ -48,9 +48,15 @@ declare class MultiKey extends AccountPublicKey {
|
|
|
48
48
|
createBitmap(args: {
|
|
49
49
|
bits: number[];
|
|
50
50
|
}): Uint8Array;
|
|
51
|
+
/**
|
|
52
|
+
* Get the index of the provided public key.
|
|
53
|
+
*
|
|
54
|
+
* @param publicKey array of the index mapping to the matching public keys
|
|
55
|
+
* @returns the corresponding index of the publicKey, if it exists
|
|
56
|
+
*/
|
|
51
57
|
getIndex(publicKey: PublicKey): number;
|
|
52
58
|
}
|
|
53
|
-
declare class
|
|
59
|
+
declare class MultiKeySignature extends Signature {
|
|
54
60
|
/**
|
|
55
61
|
* Number of bytes in the bitmap representing who signed the transaction (32-bits)
|
|
56
62
|
*/
|
|
@@ -102,7 +108,7 @@ declare class MultiSignature extends Signature {
|
|
|
102
108
|
}): Uint8Array;
|
|
103
109
|
toUint8Array(): Uint8Array;
|
|
104
110
|
serialize(serializer: Serializer): void;
|
|
105
|
-
static deserialize(deserializer: Deserializer):
|
|
111
|
+
static deserialize(deserializer: Deserializer): MultiKeySignature;
|
|
106
112
|
}
|
|
107
113
|
|
|
108
|
-
export { MultiKey,
|
|
114
|
+
export { MultiKey, MultiKeySignature };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-NGNETNK2.mjs";import"../../chunk-H6LYW7HG.mjs";import"../../chunk-6456EI2E.mjs";import"../../chunk-FLYEALDB.mjs";import"../../chunk-UVOU6BW2.mjs";import"../../chunk-HCGWCB5E.mjs";import"../../chunk-OBEVVLF7.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-COW5IGYC.mjs";import"../../chunk-STYDBDYL.mjs";import"../../chunk-3U5VRZLS.mjs";import"../../chunk-7STYQ5ZE.mjs";import"../../chunk-T23OVRNF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiKey,b as MultiKeySignature};
|
|
2
2
|
//# sourceMappingURL=multiKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-UVOU6BW2.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-COW5IGYC.mjs";import"../../chunk-STYDBDYL.mjs";import"../../chunk-3U5VRZLS.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Secp256k1PrivateKey,a as Secp256k1PublicKey,c as Secp256k1Signature};
|
|
2
2
|
//# sourceMappingURL=secp256k1.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-H6LYW7HG.mjs";import"../../chunk-6456EI2E.mjs";import"../../chunk-FLYEALDB.mjs";import"../../chunk-UVOU6BW2.mjs";import"../../chunk-HCGWCB5E.mjs";import"../../chunk-OBEVVLF7.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-COW5IGYC.mjs";import"../../chunk-STYDBDYL.mjs";import"../../chunk-3U5VRZLS.mjs";import"../../chunk-7STYQ5ZE.mjs";import"../../chunk-T23OVRNF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-EB7AI4B4.mjs";import"../../chunk-6RBUXB5I.mjs";import"../../chunk-C3L4ETUF.mjs";import"../../chunk-3FVRXELT.mjs";import"../../chunk-OKRUEVF3.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-TVRJ3M7B.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as AnyPublicKey,b as AnySignature};
|
|
2
2
|
//# sourceMappingURL=singleKey.mjs.map
|
|
@@ -4,7 +4,7 @@ export { ParsingError, ParsingResult } from './common.mjs';
|
|
|
4
4
|
export { Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature } from './crypto/ed25519.mjs';
|
|
5
5
|
export { APTOS_BIP44_DEFAULT_DERIVATION_PATH, APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED_OFFSET, KeyType, deriveKey, fromDerivationPath, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, splitPath } from './crypto/hdKey.mjs';
|
|
6
6
|
export { MultiEd25519PublicKey, MultiEd25519Signature } from './crypto/multiEd25519.mjs';
|
|
7
|
-
export { MultiKey,
|
|
7
|
+
export { MultiKey, MultiKeySignature } from './crypto/multiKey.mjs';
|
|
8
8
|
export { EphemeralPublicKey, EphemeralSignature } from './crypto/ephemeral.mjs';
|
|
9
9
|
export { EPK_HORIZON_SECS, Groth16Zkp, KeylessPublicKey, KeylessSignature, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, OpenIdSignature, OpenIdSignatureOrZkProof, SignedGroth16Signature, computeAddressSeed } from './crypto/keyless.mjs';
|
|
10
10
|
export { PrivateKey } from './crypto/privateKey.mjs';
|
package/dist/esm/core/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-RFSO3JRG.mjs";import"../chunk-AQ4I7VVB.mjs";import{a as
|
|
1
|
+
import"../chunk-RFSO3JRG.mjs";import"../chunk-AQ4I7VVB.mjs";import{a as y,b as z}from"../chunk-HXSW6X7K.mjs";import{a as W,b as X}from"../chunk-NGNETNK2.mjs";import{a as U,b as V}from"../chunk-H6LYW7HG.mjs";import{a as F,b as G,c as H,d as I,e as J,f as K,g as L,h as M,i as N,j as O,k as P,l as Q,m as R,n as S,o as T}from"../chunk-6456EI2E.mjs";import"../chunk-FLYEALDB.mjs";import"../chunk-KUX6GQ2E.mjs";import{a as A,b as B,c as C}from"../chunk-UVOU6BW2.mjs";import{a as D,b as E}from"../chunk-HCGWCB5E.mjs";import{a as v,b as w,c as x}from"../chunk-OBEVVLF7.mjs";import"../chunk-TJDC5PWD.mjs";import{a as s,b as t}from"../chunk-COW5IGYC.mjs";import{a as u}from"../chunk-STYDBDYL.mjs";import{a as g,b as h,c as i,d as j,e as k,f as l,g as m,h as n,i as o,j as p,k as q,l as r}from"../chunk-3U5VRZLS.mjs";import{a as f}from"../chunk-7STYQ5ZE.mjs";import{a as d,b as e}from"../chunk-T23OVRNF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-OKRUEVF3.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-TVRJ3M7B.mjs";import{a as b,b as c}from"../chunk-AOCNYMMX.mjs";import{a}from"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{i as APTOS_BIP44_DEFAULT_DERIVATION_PATH,h as APTOS_BIP44_REGEX,g as APTOS_HARDENED_REGEX,e as AccountAddress,t as AccountPublicKey,d as AddressInvalidReason,U as AnyPublicKey,V as AnySignature,f as AuthenticationKey,o as CKDPriv,F as EPK_HORIZON_SECS,w as Ed25519PrivateKey,v as Ed25519PublicKey,x as Ed25519Signature,D as EphemeralPublicKey,E as EphemeralSignature,Q as Groth16Zkp,k as HARDENED_OFFSET,c as Hex,b as HexInvalidReason,j as KeyType,N as KeylessPublicKey,T as KeylessSignature,G as MAX_AUD_VAL_BYTES,M as MAX_COMMITED_EPK_BYTES,K as MAX_EXTRA_FIELD_BYTES,J as MAX_ISS_VAL_BYTES,L as MAX_JWT_HEADER_B64_BYTES,H as MAX_UID_KEY_BYTES,I as MAX_UID_VAL_BYTES,y as MultiEd25519PublicKey,z as MultiEd25519Signature,W as MultiKey,X as MultiKeySignature,S as OpenIdSignature,P as OpenIdSignatureOrZkProof,a as ParsingError,s as PublicKey,B as Secp256k1PrivateKey,A as Secp256k1PublicKey,C as Secp256k1Signature,u as Signature,R as SignedGroth16Signature,O as computeAddressSeed,n as deriveKey,q as fromDerivationPath,l as isValidBIP44Path,m as isValidHardenedPath,r as mnemonicToSeed,p as splitPath};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as Account, e as CreateAccountFromPrivateKeyArgs, C as CreateEd25519AccountFromPrivateKeyArgs, c as CreateEd25519SingleKeyAccountFromPrivateKeyArgs, d as CreateSingleKeyAccountFromPrivateKeyArgs, b as Ed25519Account, E as Ed25519SignerConstructorArgs, a as Ed25519SignerFromDerivationPathArgs, h as GenerateAccountArgs, G as GenerateEd25519AccountArgs, f as GenerateEd25519SingleKeyAccountArgs, g as GenerateSingleKeyAccountArgs, P as PrivateKeyFromDerivationPathArgs, l as SingleKeyAccount, S as SingleKeySignerConstructorArgs, j as SingleKeySignerFromDerivationPathArgs, i as SingleKeySignerGenerateArgs, V as VerifyEd25519SignatureArgs, k as VerifySingleKeySignatureArgs } from './Ed25519Account-
|
|
2
|
-
export { KeylessAccount, ProofFetchCallback, ProofFetchEvents, ProofFetchFailure, ProofFetchStatus, ProofFetchSuccess } from './account/KeylessAccount.mjs';
|
|
1
|
+
export { A as Account, e as CreateAccountFromPrivateKeyArgs, C as CreateEd25519AccountFromPrivateKeyArgs, c as CreateEd25519SingleKeyAccountFromPrivateKeyArgs, d as CreateSingleKeyAccountFromPrivateKeyArgs, b as Ed25519Account, E as Ed25519SignerConstructorArgs, a as Ed25519SignerFromDerivationPathArgs, h as GenerateAccountArgs, G as GenerateEd25519AccountArgs, f as GenerateEd25519SingleKeyAccountArgs, g as GenerateSingleKeyAccountArgs, P as PrivateKeyFromDerivationPathArgs, l as SingleKeyAccount, S as SingleKeySignerConstructorArgs, j as SingleKeySignerFromDerivationPathArgs, i as SingleKeySignerGenerateArgs, V as VerifyEd25519SignatureArgs, k as VerifySingleKeySignatureArgs } from './Ed25519Account-9zBaZEnp.mjs';
|
|
3
2
|
export { EphemeralKeyPair } from './account/EphemeralKeyPair.mjs';
|
|
4
|
-
export {
|
|
3
|
+
export { KeylessAccount, ProofFetchCallback, ProofFetchEvents, ProofFetchFailure, ProofFetchStatus, ProofFetchSuccess } from './account/KeylessAccount.mjs';
|
|
4
|
+
export { MultiKeyAccount, VerifyMultiKeySignatureArgs } from './account/MultiKeyAccount.mjs';
|
|
5
5
|
export { Aptos } from './api/aptos.mjs';
|
|
6
6
|
export { AptosConfig } from './api/aptosConfig.mjs';
|
|
7
7
|
export { Deserializable, Deserializer } from './bcs/deserializer.mjs';
|
|
@@ -20,7 +20,7 @@ export { ParsingError, ParsingResult } from './core/common.mjs';
|
|
|
20
20
|
export { Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature } from './core/crypto/ed25519.mjs';
|
|
21
21
|
export { APTOS_BIP44_DEFAULT_DERIVATION_PATH, APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED_OFFSET, KeyType, deriveKey, fromDerivationPath, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, splitPath } from './core/crypto/hdKey.mjs';
|
|
22
22
|
export { MultiEd25519PublicKey, MultiEd25519Signature } from './core/crypto/multiEd25519.mjs';
|
|
23
|
-
export { MultiKey,
|
|
23
|
+
export { MultiKey, MultiKeySignature } from './core/crypto/multiKey.mjs';
|
|
24
24
|
export { EphemeralPublicKey, EphemeralSignature } from './core/crypto/ephemeral.mjs';
|
|
25
25
|
export { EPK_HORIZON_SECS, Groth16Zkp, KeylessPublicKey, KeylessSignature, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, OpenIdSignature, OpenIdSignatureOrZkProof, SignedGroth16Signature, computeAddressSeed } from './core/crypto/keyless.mjs';
|
|
26
26
|
export { PrivateKey } from './core/crypto/privateKey.mjs';
|
|
@@ -41,7 +41,7 @@ export { EntryFunction, MultiSig, MultiSigTransactionPayload, Script, Transactio
|
|
|
41
41
|
export { SimpleTransaction } from './transactions/instances/simpleTransaction.mjs';
|
|
42
42
|
export { MultiAgentTransaction } from './transactions/instances/multiAgentTransaction.mjs';
|
|
43
43
|
export { findFirstNonSignerArg, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, throwTypeMismatch } from './transactions/transactionBuilder/helpers.mjs';
|
|
44
|
-
export { buildTransaction,
|
|
44
|
+
export { buildTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, getAuthenticatorForSimulation, hashValues } from './transactions/transactionBuilder/transactionBuilder.mjs';
|
|
45
45
|
export { checkOrConvertArgument, convertArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, standardizeTypeTags } from './transactions/transactionBuilder/remoteAbi.mjs';
|
|
46
46
|
export { deriveTransactionType, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction } from './transactions/transactionBuilder/signingMessage.mjs';
|
|
47
47
|
export { StructTag, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, aptosCoinStructTag, objectStructTag, optionStructTag, stringStructTag } from './transactions/typeTag/index.mjs';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-RMMOF53Q.mjs";import{a as sf}from"./chunk-PEUK5XJE.mjs";import"./chunk-OEGY3D5Z.mjs";import"./chunk-J7BN4K72.mjs";import"./chunk-SWIHAMDH.mjs";import"./chunk-IERPDC22.mjs";import"./chunk-YXRZEUT6.mjs";import"./chunk-PGN46FRK.mjs";import"./chunk-XVHMGCDZ.mjs";import"./chunk-ID5XEMNJ.mjs";import"./chunk-NJAV2RSI.mjs";import"./chunk-5UDWQC3F.mjs";import"./chunk-EEZ7W4FY.mjs";import"./chunk-ZB4QCXPI.mjs";import"./chunk-5CY6DMOC.mjs";import"./chunk-DCALFAYP.mjs";import"./chunk-IHYTP2EW.mjs";import{a as lf,b as nf,c as qf}from"./chunk-Z2ZV7SJI.mjs";import{a as kf}from"./chunk-7NX7LTJJ.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-JDYILQSI.mjs";import"./chunk-XQ2CSNQG.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-4Z22B5FW.mjs";import"./chunk-TISS3UCO.mjs";import"./chunk-UQ65W433.mjs";import"./chunk-FEXAWES4.mjs";import{a as Be}from"./chunk-EJPL4WP3.mjs";import"./chunk-MHANMSFM.mjs";import"./chunk-C7ZUHEPR.mjs";import"./chunk-X5HARDBD.mjs";import"./chunk-FJTNAGMR.mjs";import"./chunk-I5NLKA3M.mjs";import"./chunk-ZADLGPN7.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as ff,b as mf,c as pf,d as tf,e as xf,f as af,g as bf,h as cf,i as df,j as gf,k as hf,l as jf}from"./chunk-HHYQZBJO.mjs";import{a as Ze,b as _e,c as $e,d as of,e as rf,f as ef}from"./chunk-UIHUFI4D.mjs";import{a as Fe,b as Ge,c as He,d as Ie,e as Je,f as Ke,g as Le,h as Me,i as Ne,j as Oe,k as Pe,l as Qe,m as Re,n as Se,o as Te,p as Ue,q as Ve,r as We,s as Xe,t as Ye}from"./chunk-TICM455H.mjs";import{a as Ce,b as De,c as Ee}from"./chunk-PFFAQZHT.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-DFWISQYQ.mjs";import"./chunk-7Z6DYLCA.mjs";import{a as re}from"./chunk-5U2HUO5I.mjs";import{a as $r}from"./chunk-CHBG3GY5.mjs";import{a as me}from"./chunk-LIPZPOQG.mjs";import{a as fe}from"./chunk-XS4XZVGH.mjs";import{a as ee}from"./chunk-DMKFITUM.mjs";import{a as oe}from"./chunk-ALPPGXXW.mjs";import{a as Xr,b as Yr,c as Zr,d as _r}from"./chunk-PXIIS7JA.mjs";import"./chunk-4NMDYPUD.mjs";import{a as Nr}from"./chunk-NC5HHEEM.mjs";import{a as Ur}from"./chunk-QW55WEXU.mjs";import{a as Vr}from"./chunk-NNIHTVLA.mjs";import"./chunk-UYVPNUH3.mjs";import{a as Or,b as Pr,c as Qr,d as Rr,e as Sr,f as Tr}from"./chunk-ZGTJMNZG.mjs";import{a as To,b as Uo,c as Vo,d as Wo,e as Xo}from"./chunk-WPVBC4JS.mjs";import{a as Wr}from"./chunk-52ECIIIH.mjs";import{a as Jr,b as Kr,c as Lr,d as Mr}from"./chunk-7WJTKYRG.mjs";import{a as Ar,b as Br,c as Cr,d as Dr,e as Er,f as Fr,g as Gr,h as Hr,i as Ir}from"./chunk-RJ4PSGZ4.mjs";import{a as xr,b as ar,c as br,d as cr,e as dr,f as gr,g as hr,h as ir,i as jr,j as kr,k as lr,l as nr,m as qr,n as sr,o as ur,p as vr,q as wr,r as yr,s as zr}from"./chunk-3VGX3TXH.mjs";import{a as mr}from"./chunk-MWUJCP27.mjs";import{a as tr}from"./chunk-ZNEBMSNC.mjs";import{a as pr}from"./chunk-MGOHPDX4.mjs";import"./chunk-VIJBWYHD.mjs";import"./chunk-H7A56KXV.mjs";import"./chunk-S4SEFF4K.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-3JPVQHOR.mjs";import"./chunk-RFSO3JRG.mjs";import"./chunk-AQ4I7VVB.mjs";import{a as Ro,b as So}from"./chunk-KGJITNRZ.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as Po,b as Qo}from"./chunk-6M6XXPQQ.mjs";import{a as uo,b as vo,c as wo}from"./chunk-PTIZKRON.mjs";import{a as Ao,b as Bo,c as Co,d as Do,e as Eo,f as Fo,g as Go,h as Ho,i as Io,j as Jo,k as Ko,l as Lo,m as Mo,n as No,o as Oo}from"./chunk-WTVN3XGK.mjs";import"./chunk-FLYEALDB.mjs";import{a as yo,b as zo}from"./chunk-R7BAM2G6.mjs";import{a as qo,b as so}from"./chunk-XHPLLMR5.mjs";import{a as ko,b as lo,c as no}from"./chunk-7JNPSNL6.mjs";import{a as ho,b as io}from"./chunk-COW5IGYC.mjs";import{a as jo}from"./chunk-STYDBDYL.mjs";import"./chunk-TJDC5PWD.mjs";import{a as oo,b as ro,c as eo,d as fo,e as mo,f as po,g as to,h as xo,i as ao,j as bo,k as co,l as go}from"./chunk-S5HG2QUD.mjs";import{a as $}from"./chunk-7STYQ5ZE.mjs";import{a as Z,b as _}from"./chunk-T23OVRNF.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as le,b as ne,c as qe,d as se}from"./chunk-3X7RN4TM.mjs";import{a as ue,b as ve,c as we,d as ye,e as ze,f as Ae}from"./chunk-Q5YW4VKH.mjs";import{a as je,b as ke}from"./chunk-DBHUQJV6.mjs";import"./chunk-GED6IT3S.mjs";import{a as ie}from"./chunk-ROXFCLDT.mjs";import{a as pe}from"./chunk-6FBKUTGF.mjs";import"./chunk-FZY4PMEE.mjs";import{a as W,b as X,c as Y}from"./chunk-EB7AI4B4.mjs";import{a as P,b as Q,c as R,d as S,e as T,f as U,g as V}from"./chunk-6RBUXB5I.mjs";import{a as c}from"./chunk-C3L4ETUF.mjs";import{a as b}from"./chunk-3FVRXELT.mjs";import{A as L,B as M,C as N,D as O,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-OKRUEVF3.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-6IFMQ5AS.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-TVRJ3M7B.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import"./chunk-IY76OUEM.mjs";import{a as te,b as xe,c as ae,d as be,e as ce,f as de,g as ge,h as he}from"./chunk-5RBI4QWR.mjs";import{a as Yo,b as Zo,c as _o,d as $o,e as or,f as rr,g as er,h as fr}from"./chunk-YE5B2S5L.mjs";import"./chunk-FVA2OPG4.mjs";export{eo as APTOS_BIP44_DEFAULT_DERIVATION_PATH,ro as APTOS_BIP44_REGEX,or as APTOS_COIN,oo as APTOS_HARDENED_REGEX,re as Account,_ as AccountAddress,To as AccountAuthenticator,Uo as AccountAuthenticatorEd25519,Vo as AccountAuthenticatorMultiEd25519,Xo as AccountAuthenticatorMultiKey,Wo as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,io as AccountPublicKey,kf as AccountSequenceNumber,Z as AddressInvalidReason,Po as AnyPublicKey,n as AnyPublicKeyVariant,Qo as AnySignature,q as AnySignatureVariant,sf as Aptos,pe as AptosApiError,Yo as AptosApiType,Be as AptosConfig,$ as AuthenticationKey,P as Bool,ao as CKDPriv,mr as ChainId,Zo as DEFAULT_MAX_GAS_AMOUNT,_o as DEFAULT_TXN_EXP_SEC_FROM_NOW,$o as DEFAULT_TXN_TIMEOUT_SEC,O as DeriveScheme,o as Deserializer,Ao as EPK_HORIZON_SECS,$r as Ed25519Account,lo as Ed25519PrivateKey,ko as Ed25519PublicKey,no as Ed25519Signature,Fr as EntryFunction,c as EntryFunctionBytes,v as EphemeralCertificate,ee as EphemeralKeyPair,yo as EphemeralPublicKey,s as EphemeralPublicKeyVariant,zo as EphemeralSignature,u as EphemeralSignatureVariant,Mr as FeePayerRawTransaction,b as FixedBytes,Lo as Groth16Zkp,mo as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,pr as Identifier,fo as KeyType,fe as KeylessAccount,Io as KeylessPublicKey,Oo as KeylessSignature,Bo as MAX_AUD_VAL_BYTES,Ho as MAX_COMMITED_EPK_BYTES,Fo as MAX_EXTRA_FIELD_BYTES,Eo as MAX_ISS_VAL_BYTES,Go as MAX_JWT_HEADER_B64_BYTES,Co as MAX_UID_KEY_BYTES,Do as MAX_UID_VAL_BYTES,d as MimeType,tr as ModuleId,K as MoveAbility,J as MoveFunctionVisibility,Y as MoveOption,X as MoveString,W as MoveVector,Lr as MultiAgentRawTransaction,Wr as MultiAgentTransaction,qo as MultiEd25519PublicKey,so as MultiEd25519Signature,Ro as MultiKey,me as MultiKeyAccount,Hr as MultiSig,Ir as MultiSigTransactionPayload,So as MultiSignature,de as Network,ge as NetworkToChainId,ae as NetworkToFaucetAPI,te as NetworkToIndexerAPI,he as NetworkToNetworkName,xe as NetworkToNodeAPI,be as NetworkToPepperAPI,ce as NetworkToProverAPI,No as OpenIdSignature,Ko as OpenIdSignatureOrZkProof,r as ParsingError,fr as ProcessorType,ho as PublicKey,rr as RAW_TRANSACTION_SALT,er as RAW_TRANSACTION_WITH_DATA_SALT,Jr as RawTransaction,Kr as RawTransactionWithData,L as RoleType,Nr as RotationProofChallenge,Gr as Script,h as ScriptTransactionArgumentVariants,vo as Secp256k1PrivateKey,uo as Secp256k1PublicKey,wo as Secp256k1Signature,m as Serializable,p as Serializer,jo as Signature,Mo as SignedGroth16Signature,Ur as SignedTransaction,M as SigningScheme,N as SigningSchemeInput,Vr as SimpleTransaction,oe as SingleKeyAccount,ur as StructTag,Or as TransactionAuthenticator,Pr as TransactionAuthenticatorEd25519,Sr as TransactionAuthenticatorFeePayer,Rr as TransactionAuthenticatorMultiAgent,Qr as TransactionAuthenticatorMultiEd25519,Tr as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,Br as TransactionPayload,Dr as TransactionPayloadEntryFunction,Er as TransactionPayloadMultiSig,Cr as TransactionPayloadScript,i as TransactionPayloadVariants,w as TransactionResponseType,j as TransactionVariants,qf as TransactionWorker,nf as TransactionWorkerEventsEnum,xr as TypeTag,jr as TypeTagAddress,ar as TypeTagBool,nr as TypeTagGeneric,De as TypeTagParserError,Ce as TypeTagParserErrorType,lr as TypeTagReference,kr as TypeTagSigner,sr as TypeTagStruct,hr as TypeTagU128,cr as TypeTagU16,ir as TypeTagU256,dr as TypeTagU32,gr as TypeTagU64,br as TypeTagU8,g as TypeTagVariants,qr as TypeTagVector,U as U128,R as U16,V as U256,S as U32,T as U64,Q as U8,vr as aptosCoinStructTag,ke as aptosRequest,af as buildTransaction,ef as checkOrConvertArgument,Jo as computeAddressSeed,rf as convertArgument,xo as deriveKey,Xr as deriveTransactionType,Ar as deserializeFromScriptArgument,t as ensureBoolean,$e as fetchEntryFunctionAbi,_e as fetchFunctionAbi,of as fetchViewFunctionAbi,Xe as findFirstNonSignerArg,co as fromDerivationPath,jf as generateMultiSignersSignedTransaction,xf as generateRawTransaction,df as generateSignedTransaction,bf as generateSignedTransactionForSimulation,Yr as generateSigningMessage,Zr as generateSigningMessageForSerializable,_r as generateSigningMessageForTransaction,ff as generateTransactionPayload,mf as generateTransactionPayloadWithABI,hf as generateUserTransactionHash,pf as generateViewFunctionPayload,tf as generateViewFunctionPayloadWithABI,le as get,ne as getAptosFullNode,qe as getAptosPepperService,cf as getAuthenticatorForSimulation,Ye as getFunctionParts,gf as hashValues,Me as isBcsAddress,Le as isBcsBool,Oe as isBcsFixedBytes,Ne as isBcsString,Te as isBcsU128,Qe as isBcsU16,Ue as isBcsU256,Re as isBcsU32,Se as isBcsU64,Pe as isBcsU8,B as isBlockMetadataTransactionResponse,Fe as isBool,E as isEd25519Signature,Ke as isEncodedEntryFunctionArgument,H as isFeePayerSignature,A as isGenesisTransactionResponse,Ie as isLargeNumber,G as isMultiAgentSignature,I as isMultiEd25519Signature,Je as isNull,He as isNumber,y as isPendingTransactionResponse,Ve as isScriptDataInput,F as isSecp256k1Signature,C as isStateCheckpointTransactionResponse,Ge as isString,z as isUserTransactionResponse,po as isValidBIP44Path,to as isValidHardenedPath,D as isValidatorTransactionResponse,go as mnemonicToSeed,ie as normalizeBundle,zr as objectStructTag,yr as optionStructTag,x as outOfRangeErrorMessage,se as paginateWithCursor,Ee as parseTypeTag,ue as post,ye as postAptosFaucet,ve as postAptosFullNode,we as postAptosIndexer,ze as postAptosPepperService,Ae as postAptosProvingService,lf as promiseFulfilledStatus,je as request,bo as splitPath,Ze as standardizeTypeTags,wr as stringStructTag,We as throwTypeMismatch,a as validateNumberInRange};
|
|
1
|
+
import"./chunk-RMMOF53Q.mjs";import{a as qf}from"./chunk-Z5KKUXYI.mjs";import"./chunk-XMFPKHB5.mjs";import"./chunk-NNW6HWIO.mjs";import"./chunk-WVIPPU2C.mjs";import"./chunk-43WARVT3.mjs";import"./chunk-VJJN3GFD.mjs";import"./chunk-5QWUIVAQ.mjs";import"./chunk-73Y4NTDU.mjs";import"./chunk-RBPGL6YB.mjs";import"./chunk-6LOTZ4GY.mjs";import"./chunk-5DW2AJPI.mjs";import"./chunk-SRPTQ4VV.mjs";import"./chunk-65UZZNN2.mjs";import"./chunk-IHYTP2EW.mjs";import{a as kf,b as lf,c as nf}from"./chunk-OLGSIKFB.mjs";import{a as jf}from"./chunk-G4XSNSOT.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-CLVAGDXO.mjs";import"./chunk-PINF6ZWP.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-RTSEMQCK.mjs";import"./chunk-KWNBC5MF.mjs";import"./chunk-7Q2NVO5M.mjs";import"./chunk-TXMPXZBG.mjs";import{a as Be}from"./chunk-NKCZ4KGO.mjs";import"./chunk-QNHDS64I.mjs";import"./chunk-V7P6MLSY.mjs";import"./chunk-DLTC6PJP.mjs";import"./chunk-WOLIXKOK.mjs";import"./chunk-EOMDZYSJ.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as ff,b as mf,c as pf,d as tf,e as xf,f as af,g as bf,h as cf,i as df,j as gf,k as hf}from"./chunk-ZM436N3W.mjs";import{a as Ze,b as _e,c as $e,d as of,e as rf,f as ef}from"./chunk-EKABTHUZ.mjs";import{a as Ce,b as De,c as Ee}from"./chunk-PFFAQZHT.mjs";import{a as Fe,b as Ge,c as He,d as Ie,e as Je,f as Ke,g as Le,h as Me,i as Ne,j as Oe,k as Pe,l as Qe,m as Re,n as Se,o as Te,p as Ue,q as Ve,r as We,s as Xe,t as Ye}from"./chunk-TICM455H.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-6SHLLRJA.mjs";import"./chunk-7Z6DYLCA.mjs";import"./chunk-FKSACFCB.mjs";import"./chunk-J7J7ZTBF.mjs";import"./chunk-H3TFQ7K4.mjs";import"./chunk-QHVZL3LZ.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-UGIJHLL3.mjs";import"./chunk-S4SEFF4K.mjs";import"./chunk-3JPVQHOR.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as le,b as ne,c as qe,d as se}from"./chunk-OZC3FCJP.mjs";import{a as ue,b as ve,c as we,d as ye,e as ze,f as Ae}from"./chunk-D22EMNIY.mjs";import{a as je,b as ke}from"./chunk-3OELNIC6.mjs";import"./chunk-GED6IT3S.mjs";import{a as ie}from"./chunk-ROXFCLDT.mjs";import{a as pe}from"./chunk-6FBKUTGF.mjs";import{a as te,b as xe,c as ae,d as be,e as ce,f as de,g as ge,h as he}from"./chunk-32355KGV.mjs";import"./chunk-7PSX4LCV.mjs";import{a as re}from"./chunk-25N7RLBW.mjs";import{a as $r}from"./chunk-NMECYE3D.mjs";import{a as me}from"./chunk-C5UVSNZW.mjs";import{a as fe}from"./chunk-XCR3YNHW.mjs";import{a as ee}from"./chunk-PJXRQBF6.mjs";import{a as oe}from"./chunk-JVKMQ64G.mjs";import{a as Xr,b as Yr,c as Zr,d as _r}from"./chunk-56NB52W6.mjs";import"./chunk-4NMDYPUD.mjs";import{a as Wr}from"./chunk-52ECIIIH.mjs";import{a as Nr}from"./chunk-NC5HHEEM.mjs";import{a as Ur}from"./chunk-IXYXFDJZ.mjs";import{a as Vr}from"./chunk-NNIHTVLA.mjs";import{a as Jr,b as Kr,c as Lr,d as Mr}from"./chunk-7WJTKYRG.mjs";import"./chunk-UYVPNUH3.mjs";import{a as Ar,b as Br,c as Cr,d as Dr,e as Er,f as Fr,g as Gr,h as Hr,i as Ir}from"./chunk-RJ4PSGZ4.mjs";import{a as xr,b as ar,c as br,d as cr,e as dr,f as gr,g as hr,h as ir,i as jr,j as kr,k as lr,l as nr,m as qr,n as sr,o as ur,p as vr,q as wr,r as yr,s as zr}from"./chunk-3VGX3TXH.mjs";import{a as tr}from"./chunk-ZNEBMSNC.mjs";import{a as Or,b as Pr,c as Qr,d as Rr,e as Sr,f as Tr}from"./chunk-O34EOOVF.mjs";import{a as To,b as Uo,c as Vo,d as Wo,e as Xo}from"./chunk-XN4SQWI5.mjs";import{a as mr}from"./chunk-MWUJCP27.mjs";import{a as pr}from"./chunk-MGOHPDX4.mjs";import"./chunk-RFSO3JRG.mjs";import{a as Yo,b as Zo,c as _o,d as $o,e as or,f as rr,g as er,h as fr}from"./chunk-YE5B2S5L.mjs";import"./chunk-AQ4I7VVB.mjs";import{a as qo,b as so}from"./chunk-HXSW6X7K.mjs";import{a as Ro,b as So}from"./chunk-NGNETNK2.mjs";import{a as Po,b as Qo}from"./chunk-H6LYW7HG.mjs";import{a as Ao,b as Bo,c as Co,d as Do,e as Eo,f as Fo,g as Go,h as Ho,i as Io,j as Jo,k as Ko,l as Lo,m as Mo,n as No,o as Oo}from"./chunk-6456EI2E.mjs";import"./chunk-FLYEALDB.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as uo,b as vo,c as wo}from"./chunk-UVOU6BW2.mjs";import{a as yo,b as zo}from"./chunk-HCGWCB5E.mjs";import{a as ko,b as lo,c as no}from"./chunk-OBEVVLF7.mjs";import"./chunk-TJDC5PWD.mjs";import{a as ho,b as io}from"./chunk-COW5IGYC.mjs";import{a as jo}from"./chunk-STYDBDYL.mjs";import{a as oo,b as ro,c as eo,d as fo,e as mo,f as po,g as to,h as xo,i as ao,j as bo,k as co,l as go}from"./chunk-3U5VRZLS.mjs";import{a as $}from"./chunk-7STYQ5ZE.mjs";import{a as Z,b as _}from"./chunk-T23OVRNF.mjs";import"./chunk-FZY4PMEE.mjs";import{a as W,b as X,c as Y}from"./chunk-EB7AI4B4.mjs";import{a as P,b as Q,c as R,d as S,e as T,f as U,g as V}from"./chunk-6RBUXB5I.mjs";import{a as c}from"./chunk-C3L4ETUF.mjs";import{a as b}from"./chunk-3FVRXELT.mjs";import{A as L,B as M,C as N,D as O,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-OKRUEVF3.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-6IFMQ5AS.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-TVRJ3M7B.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import"./chunk-FVA2OPG4.mjs";export{eo as APTOS_BIP44_DEFAULT_DERIVATION_PATH,ro as APTOS_BIP44_REGEX,or as APTOS_COIN,oo as APTOS_HARDENED_REGEX,re as Account,_ as AccountAddress,To as AccountAuthenticator,Uo as AccountAuthenticatorEd25519,Vo as AccountAuthenticatorMultiEd25519,Xo as AccountAuthenticatorMultiKey,Wo as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,io as AccountPublicKey,jf as AccountSequenceNumber,Z as AddressInvalidReason,Po as AnyPublicKey,n as AnyPublicKeyVariant,Qo as AnySignature,q as AnySignatureVariant,qf as Aptos,pe as AptosApiError,Yo as AptosApiType,Be as AptosConfig,$ as AuthenticationKey,P as Bool,ao as CKDPriv,mr as ChainId,Zo as DEFAULT_MAX_GAS_AMOUNT,_o as DEFAULT_TXN_EXP_SEC_FROM_NOW,$o as DEFAULT_TXN_TIMEOUT_SEC,O as DeriveScheme,o as Deserializer,Ao as EPK_HORIZON_SECS,$r as Ed25519Account,lo as Ed25519PrivateKey,ko as Ed25519PublicKey,no as Ed25519Signature,Fr as EntryFunction,c as EntryFunctionBytes,v as EphemeralCertificate,ee as EphemeralKeyPair,yo as EphemeralPublicKey,s as EphemeralPublicKeyVariant,zo as EphemeralSignature,u as EphemeralSignatureVariant,Mr as FeePayerRawTransaction,b as FixedBytes,Lo as Groth16Zkp,mo as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,pr as Identifier,fo as KeyType,fe as KeylessAccount,Io as KeylessPublicKey,Oo as KeylessSignature,Bo as MAX_AUD_VAL_BYTES,Ho as MAX_COMMITED_EPK_BYTES,Fo as MAX_EXTRA_FIELD_BYTES,Eo as MAX_ISS_VAL_BYTES,Go as MAX_JWT_HEADER_B64_BYTES,Co as MAX_UID_KEY_BYTES,Do as MAX_UID_VAL_BYTES,d as MimeType,tr as ModuleId,K as MoveAbility,J as MoveFunctionVisibility,Y as MoveOption,X as MoveString,W as MoveVector,Lr as MultiAgentRawTransaction,Wr as MultiAgentTransaction,qo as MultiEd25519PublicKey,so as MultiEd25519Signature,Ro as MultiKey,me as MultiKeyAccount,So as MultiKeySignature,Hr as MultiSig,Ir as MultiSigTransactionPayload,de as Network,ge as NetworkToChainId,ae as NetworkToFaucetAPI,te as NetworkToIndexerAPI,he as NetworkToNetworkName,xe as NetworkToNodeAPI,be as NetworkToPepperAPI,ce as NetworkToProverAPI,No as OpenIdSignature,Ko as OpenIdSignatureOrZkProof,r as ParsingError,fr as ProcessorType,ho as PublicKey,rr as RAW_TRANSACTION_SALT,er as RAW_TRANSACTION_WITH_DATA_SALT,Jr as RawTransaction,Kr as RawTransactionWithData,L as RoleType,Nr as RotationProofChallenge,Gr as Script,h as ScriptTransactionArgumentVariants,vo as Secp256k1PrivateKey,uo as Secp256k1PublicKey,wo as Secp256k1Signature,m as Serializable,p as Serializer,jo as Signature,Mo as SignedGroth16Signature,Ur as SignedTransaction,M as SigningScheme,N as SigningSchemeInput,Vr as SimpleTransaction,oe as SingleKeyAccount,ur as StructTag,Or as TransactionAuthenticator,Pr as TransactionAuthenticatorEd25519,Sr as TransactionAuthenticatorFeePayer,Rr as TransactionAuthenticatorMultiAgent,Qr as TransactionAuthenticatorMultiEd25519,Tr as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,Br as TransactionPayload,Dr as TransactionPayloadEntryFunction,Er as TransactionPayloadMultiSig,Cr as TransactionPayloadScript,i as TransactionPayloadVariants,w as TransactionResponseType,j as TransactionVariants,nf as TransactionWorker,lf as TransactionWorkerEventsEnum,xr as TypeTag,jr as TypeTagAddress,ar as TypeTagBool,nr as TypeTagGeneric,De as TypeTagParserError,Ce as TypeTagParserErrorType,lr as TypeTagReference,kr as TypeTagSigner,sr as TypeTagStruct,hr as TypeTagU128,cr as TypeTagU16,ir as TypeTagU256,dr as TypeTagU32,gr as TypeTagU64,br as TypeTagU8,g as TypeTagVariants,qr as TypeTagVector,U as U128,R as U16,V as U256,S as U32,T as U64,Q as U8,vr as aptosCoinStructTag,ke as aptosRequest,af as buildTransaction,ef as checkOrConvertArgument,Jo as computeAddressSeed,rf as convertArgument,xo as deriveKey,Xr as deriveTransactionType,Ar as deserializeFromScriptArgument,t as ensureBoolean,$e as fetchEntryFunctionAbi,_e as fetchFunctionAbi,of as fetchViewFunctionAbi,Xe as findFirstNonSignerArg,co as fromDerivationPath,xf as generateRawTransaction,df as generateSignedTransaction,bf as generateSignedTransactionForSimulation,Yr as generateSigningMessage,Zr as generateSigningMessageForSerializable,_r as generateSigningMessageForTransaction,ff as generateTransactionPayload,mf as generateTransactionPayloadWithABI,hf as generateUserTransactionHash,pf as generateViewFunctionPayload,tf as generateViewFunctionPayloadWithABI,le as get,ne as getAptosFullNode,qe as getAptosPepperService,cf as getAuthenticatorForSimulation,Ye as getFunctionParts,gf as hashValues,Me as isBcsAddress,Le as isBcsBool,Oe as isBcsFixedBytes,Ne as isBcsString,Te as isBcsU128,Qe as isBcsU16,Ue as isBcsU256,Re as isBcsU32,Se as isBcsU64,Pe as isBcsU8,B as isBlockMetadataTransactionResponse,Fe as isBool,E as isEd25519Signature,Ke as isEncodedEntryFunctionArgument,H as isFeePayerSignature,A as isGenesisTransactionResponse,Ie as isLargeNumber,G as isMultiAgentSignature,I as isMultiEd25519Signature,Je as isNull,He as isNumber,y as isPendingTransactionResponse,Ve as isScriptDataInput,F as isSecp256k1Signature,C as isStateCheckpointTransactionResponse,Ge as isString,z as isUserTransactionResponse,po as isValidBIP44Path,to as isValidHardenedPath,D as isValidatorTransactionResponse,go as mnemonicToSeed,ie as normalizeBundle,zr as objectStructTag,yr as optionStructTag,x as outOfRangeErrorMessage,se as paginateWithCursor,Ee as parseTypeTag,ue as post,ye as postAptosFaucet,ve as postAptosFullNode,we as postAptosIndexer,ze as postAptosPepperService,Ae as postAptosProvingService,kf as promiseFulfilledStatus,je as request,bo as splitPath,Ze as standardizeTypeTags,wr as stringStructTag,We as throwTypeMismatch,a as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -3,7 +3,7 @@ import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs'
|
|
|
3
3
|
import { AccountData, PaginationArgs, LedgerVersionArg, MoveModuleBytecode, TransactionResponse, MoveResource, MoveStructId, TokenStandardArg, OrderByArg, WhereArg } from '../types/index.mjs';
|
|
4
4
|
import { A as AuthenticationKey } from '../publicKey-lq5djCIY.mjs';
|
|
5
5
|
import { PrivateKey } from '../core/crypto/privateKey.mjs';
|
|
6
|
-
import { A as Account } from '../Ed25519Account-
|
|
6
|
+
import { A as Account } from '../Ed25519Account-9zBaZEnp.mjs';
|
|
7
7
|
import { CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.mjs';
|
|
8
8
|
import { GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetAccountOwnedObjectsResponse } from '../types/indexer.mjs';
|
|
9
9
|
import '../utils/apiEndpoints.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-6SHLLRJA.mjs";import"../chunk-7Z6DYLCA.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-UGIJHLL3.mjs";import"../chunk-S4SEFF4K.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-OZC3FCJP.mjs";import"../chunk-D22EMNIY.mjs";import"../chunk-3OELNIC6.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-ROXFCLDT.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-32355KGV.mjs";import"../chunk-7PSX4LCV.mjs";import"../chunk-25N7RLBW.mjs";import"../chunk-NMECYE3D.mjs";import"../chunk-C5UVSNZW.mjs";import"../chunk-XCR3YNHW.mjs";import"../chunk-PJXRQBF6.mjs";import"../chunk-JVKMQ64G.mjs";import"../chunk-56NB52W6.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-52ECIIIH.mjs";import"../chunk-NC5HHEEM.mjs";import"../chunk-IXYXFDJZ.mjs";import"../chunk-NNIHTVLA.mjs";import"../chunk-7WJTKYRG.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-RJ4PSGZ4.mjs";import"../chunk-3VGX3TXH.mjs";import"../chunk-ZNEBMSNC.mjs";import"../chunk-O34EOOVF.mjs";import"../chunk-XN4SQWI5.mjs";import"../chunk-MWUJCP27.mjs";import"../chunk-MGOHPDX4.mjs";import"../chunk-RFSO3JRG.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-AQ4I7VVB.mjs";import"../chunk-HXSW6X7K.mjs";import"../chunk-NGNETNK2.mjs";import"../chunk-H6LYW7HG.mjs";import"../chunk-6456EI2E.mjs";import"../chunk-FLYEALDB.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-UVOU6BW2.mjs";import"../chunk-HCGWCB5E.mjs";import"../chunk-OBEVVLF7.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-COW5IGYC.mjs";import"../chunk-STYDBDYL.mjs";import"../chunk-3U5VRZLS.mjs";import"../chunk-7STYQ5ZE.mjs";import"../chunk-T23OVRNF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-OKRUEVF3.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{q as deriveAccountFromPrivateKey,m as getAccountCoinAmount,o as getAccountCoinsCount,n as getAccountCoinsData,k as getAccountCollectionsWithOwnedTokens,p as getAccountOwnedObjects,i as getAccountOwnedTokens,j as getAccountOwnedTokensFromCollectionAddress,h as getAccountTokensCount,l as getAccountTransactionsCount,a as getInfo,c as getModule,b as getModules,f as getResource,e as getResources,d as getTransactions,r as isAccountExist,g as lookupOriginalAccountAddress};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AptosConfig } from '../api/aptosConfig.mjs';
|
|
2
2
|
import { PaginationArgs, OrderByArg, WhereArg } from '../types/index.mjs';
|
|
3
3
|
import { AccountAddress, AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
|
-
import { A as Account } from '../Ed25519Account-
|
|
4
|
+
import { A as Account } from '../Ed25519Account-9zBaZEnp.mjs';
|
|
5
5
|
import { InputGenerateTransactionOptions } from '../transactions/types.mjs';
|
|
6
6
|
import { CurrentAptosNamesBoolExp } from '../types/generated/types.mjs';
|
|
7
7
|
import { SimpleTransaction } from '../transactions/instances/simpleTransaction.mjs';
|