@aptos-labs/ts-sdk 1.33.0 → 1.33.1
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-fJZJVSBc.d.ts → accountAddress-BHsGaOsa.d.ts} +14 -1
- package/dist/common/chunk-F43XVDYJ.js.map +1 -1
- package/dist/common/cli/index.d.ts +10 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +3 -2
- package/dist/common/index.js +9 -9
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/coin.d.mts +2 -2
- package/dist/esm/api/coin.mjs +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.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +1 -1
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.mjs +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.mjs +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/bcs/deserializer.d.mts +14 -1
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/{chunk-2E3BT4YW.mjs → chunk-2C27NY4D.mjs} +2 -2
- package/dist/esm/{chunk-6AEXQEO2.mjs → chunk-2ESU5N3V.mjs} +2 -2
- package/dist/esm/{chunk-CK5NDXQT.mjs → chunk-2KSMV5KD.mjs} +2 -2
- package/dist/esm/{chunk-4ULPBQ3M.mjs → chunk-2MN7DW2J.mjs} +2 -2
- package/dist/esm/{chunk-LK67PZX3.mjs → chunk-2QGJDHME.mjs} +2 -2
- package/dist/esm/{chunk-A3USS2NC.mjs → chunk-333QBK32.mjs} +2 -2
- package/dist/esm/{chunk-ALOYOMRE.mjs → chunk-33CVOPIN.mjs} +2 -2
- package/dist/esm/{chunk-LRN4ALMT.mjs → chunk-372SLYVR.mjs} +2 -2
- package/dist/esm/{chunk-WTWWJWKC.mjs → chunk-46O23AOD.mjs} +2 -2
- package/dist/esm/{chunk-MV5PGWJQ.mjs → chunk-4DI5SPSK.mjs} +2 -2
- package/dist/esm/{chunk-XVPWTWPY.mjs → chunk-4DP3PEYK.mjs} +2 -2
- package/dist/esm/{chunk-JKA22FG5.mjs → chunk-4MTSP4S2.mjs} +2 -2
- package/dist/esm/{chunk-7ZA434Z3.mjs → chunk-4OV2A6PJ.mjs} +2 -2
- package/dist/esm/{chunk-LZ5PSDOS.mjs → chunk-4XB3BB5Z.mjs} +2 -2
- package/dist/esm/{chunk-Y5HLXDYG.mjs → chunk-5LGKGWLX.mjs} +2 -2
- package/dist/esm/{chunk-P74XXLE4.mjs → chunk-5PVZ4N42.mjs} +2 -2
- package/dist/esm/chunk-7N7FEBZA.mjs +2 -0
- package/dist/esm/chunk-7N7FEBZA.mjs.map +1 -0
- package/dist/esm/{chunk-O4MRRWRI.mjs → chunk-7T26VA2W.mjs} +2 -2
- package/dist/esm/{chunk-FH27D7S3.mjs → chunk-7V35JAAF.mjs} +2 -2
- package/dist/esm/{chunk-S3YVCCYI.mjs → chunk-ALNQK276.mjs} +2 -2
- package/dist/esm/{chunk-5O3RHPER.mjs → chunk-BAEIZAP7.mjs} +2 -2
- package/dist/esm/chunk-BUAHUVAD.mjs +2 -0
- package/dist/esm/chunk-BUAHUVAD.mjs.map +1 -0
- package/dist/esm/{chunk-QLC7SSLJ.mjs → chunk-C2HCRGQU.mjs} +2 -2
- package/dist/esm/chunk-CDEYH77E.mjs +2 -0
- package/dist/esm/{chunk-FSBEKFEF.mjs → chunk-CX6KECGV.mjs} +2 -2
- package/dist/esm/{chunk-MWNYODWU.mjs → chunk-DBTKJMLV.mjs} +2 -2
- package/dist/esm/{chunk-H7PDLUNP.mjs → chunk-DC2IESER.mjs} +2 -2
- package/dist/esm/{chunk-KPPM2BSC.mjs → chunk-EGV3HFE3.mjs} +2 -2
- package/dist/esm/{chunk-JYGAG754.mjs → chunk-ELXJ5A4B.mjs} +2 -2
- package/dist/esm/{chunk-BWV6OYLG.mjs → chunk-F2WY2DEY.mjs} +2 -2
- package/dist/esm/chunk-FZDEGDUY.mjs +2 -0
- package/dist/esm/{chunk-AITN3DO4.mjs.map → chunk-FZDEGDUY.mjs.map} +1 -1
- package/dist/esm/{chunk-4IQZOAN7.mjs → chunk-G4KAHJXB.mjs} +2 -2
- package/dist/esm/{chunk-4ZNSNWQL.mjs → chunk-GVNK3UMT.mjs} +2 -2
- package/dist/esm/{chunk-TTERI67T.mjs → chunk-H3C3VTHS.mjs} +2 -2
- package/dist/esm/{chunk-OEM75TVE.mjs → chunk-HMMNQFVM.mjs} +2 -2
- package/dist/esm/{chunk-64IZ5PQR.mjs → chunk-IBZKCBN5.mjs} +2 -2
- package/dist/esm/{chunk-MCWOKFVH.mjs → chunk-ICMELYCL.mjs} +2 -2
- package/dist/esm/{chunk-WXLSHECY.mjs → chunk-IK2NYNKG.mjs} +2 -2
- package/dist/esm/chunk-J3E4UMBB.mjs +2 -0
- package/dist/esm/chunk-J3E4UMBB.mjs.map +1 -0
- package/dist/esm/{chunk-KKLF7DQV.mjs → chunk-JMPHD4BP.mjs} +2 -2
- package/dist/esm/{chunk-QZT2M7UA.mjs → chunk-KCWRCWNT.mjs} +2 -2
- package/dist/esm/{chunk-L3J2QVIY.mjs → chunk-L4SWQLAJ.mjs} +2 -2
- package/dist/esm/{chunk-5XLZACVT.mjs → chunk-LA5HJILW.mjs} +2 -2
- package/dist/esm/{chunk-YT3IP57B.mjs → chunk-LKKI2KAP.mjs} +2 -2
- package/dist/esm/{chunk-QN7AK5PU.mjs → chunk-LPVGVTWT.mjs} +2 -2
- package/dist/esm/{chunk-S22QVNK7.mjs → chunk-N62NUAHT.mjs} +2 -2
- package/dist/esm/{chunk-737YW3CY.mjs → chunk-NK67FECB.mjs} +2 -2
- package/dist/esm/{chunk-2D7OMWVL.mjs → chunk-NZ7M6NG2.mjs} +2 -2
- package/dist/esm/{chunk-VELQA2Y3.mjs → chunk-P6KX7AS2.mjs} +2 -2
- package/dist/esm/{chunk-XOOYRVFK.mjs → chunk-PMGK5IHB.mjs} +2 -2
- package/dist/esm/{chunk-B5BXB2BB.mjs → chunk-PXMNAP2Q.mjs} +2 -2
- package/dist/esm/{chunk-GT7QFXER.mjs → chunk-QI7OREBM.mjs} +2 -2
- package/dist/esm/{chunk-OGBU52BQ.mjs → chunk-RCA73RVB.mjs} +2 -2
- package/dist/esm/{chunk-VAKNMHOA.mjs → chunk-S5SQJRAV.mjs} +2 -2
- package/dist/esm/{chunk-476F5NJ6.mjs → chunk-SK3LIS4Z.mjs} +2 -2
- package/dist/esm/{chunk-TQA6HY6A.mjs → chunk-SNYYEVJA.mjs} +2 -2
- package/dist/esm/{chunk-LWXBEIFO.mjs → chunk-TCXYTPUR.mjs} +2 -2
- package/dist/esm/{chunk-FUC7SLH7.mjs → chunk-U3T4ZT7B.mjs} +2 -2
- package/dist/esm/{chunk-RV7PNWDY.mjs → chunk-U6OCK6T4.mjs} +2 -2
- package/dist/esm/{chunk-JUQBFGUD.mjs → chunk-UFPYCROT.mjs} +2 -2
- package/dist/esm/{chunk-HULCIESG.mjs → chunk-UGIHQFID.mjs} +2 -2
- package/dist/esm/{chunk-R2YT2IM5.mjs → chunk-UJSTWN32.mjs} +2 -2
- package/dist/esm/{chunk-YITOC4Z6.mjs → chunk-VIZHWYI5.mjs} +2 -2
- package/dist/esm/{chunk-P6RNNESB.mjs → chunk-VWGB5BHW.mjs} +2 -2
- package/dist/esm/{chunk-QK32EQSF.mjs → chunk-WFK3XRQX.mjs} +2 -2
- package/dist/esm/{chunk-D54FD6XE.mjs → chunk-XOLU6UP3.mjs} +2 -2
- package/dist/esm/{chunk-I3452DF5.mjs → chunk-XZN344G4.mjs} +2 -2
- package/dist/esm/chunk-YD2BMHH7.mjs +2 -0
- package/dist/esm/{chunk-YQHOQJRQ.mjs.map → chunk-YD2BMHH7.mjs.map} +1 -1
- package/dist/esm/{chunk-HKVZ7CAG.mjs → chunk-YEWZAR76.mjs} +2 -2
- package/dist/esm/{chunk-A7TJF3BX.mjs → chunk-YJVZFYBX.mjs} +2 -2
- package/dist/esm/{chunk-Q3CWUEXI.mjs → chunk-ZMMLM6ZJ.mjs} +2 -2
- package/dist/esm/{chunk-7ZVXQAG4.mjs → chunk-ZMS3AOEZ.mjs} +2 -2
- package/dist/esm/{chunk-U7UTBXJD.mjs → chunk-ZXVN3HXB.mjs} +2 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/move.d.mts +9 -0
- package/dist/esm/cli/move.mjs +1 -1
- 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/federatedKeyless.mjs +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.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +1 -0
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +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.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- 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.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/rotationProofChallenge.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.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +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.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- 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/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.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/bcs/deserializer.ts +17 -1
- package/src/cli/move.ts +16 -0
- package/src/core/crypto/privateKey.ts +9 -8
- package/src/core/crypto/secp256k1.ts +13 -3
- package/src/version.ts +1 -1
- package/dist/esm/chunk-AITN3DO4.mjs +0 -2
- package/dist/esm/chunk-AVZYJAXR.mjs +0 -2
- package/dist/esm/chunk-AVZYJAXR.mjs.map +0 -1
- package/dist/esm/chunk-D52UKPQF.mjs +0 -2
- package/dist/esm/chunk-D52UKPQF.mjs.map +0 -1
- package/dist/esm/chunk-SMFTISPN.mjs +0 -2
- package/dist/esm/chunk-SMFTISPN.mjs.map +0 -1
- package/dist/esm/chunk-UZTJWOLS.mjs +0 -2
- package/dist/esm/chunk-YQHOQJRQ.mjs +0 -2
- /package/dist/esm/{chunk-2E3BT4YW.mjs.map → chunk-2C27NY4D.mjs.map} +0 -0
- /package/dist/esm/{chunk-6AEXQEO2.mjs.map → chunk-2ESU5N3V.mjs.map} +0 -0
- /package/dist/esm/{chunk-CK5NDXQT.mjs.map → chunk-2KSMV5KD.mjs.map} +0 -0
- /package/dist/esm/{chunk-4ULPBQ3M.mjs.map → chunk-2MN7DW2J.mjs.map} +0 -0
- /package/dist/esm/{chunk-LK67PZX3.mjs.map → chunk-2QGJDHME.mjs.map} +0 -0
- /package/dist/esm/{chunk-A3USS2NC.mjs.map → chunk-333QBK32.mjs.map} +0 -0
- /package/dist/esm/{chunk-ALOYOMRE.mjs.map → chunk-33CVOPIN.mjs.map} +0 -0
- /package/dist/esm/{chunk-LRN4ALMT.mjs.map → chunk-372SLYVR.mjs.map} +0 -0
- /package/dist/esm/{chunk-WTWWJWKC.mjs.map → chunk-46O23AOD.mjs.map} +0 -0
- /package/dist/esm/{chunk-MV5PGWJQ.mjs.map → chunk-4DI5SPSK.mjs.map} +0 -0
- /package/dist/esm/{chunk-XVPWTWPY.mjs.map → chunk-4DP3PEYK.mjs.map} +0 -0
- /package/dist/esm/{chunk-JKA22FG5.mjs.map → chunk-4MTSP4S2.mjs.map} +0 -0
- /package/dist/esm/{chunk-7ZA434Z3.mjs.map → chunk-4OV2A6PJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-LZ5PSDOS.mjs.map → chunk-4XB3BB5Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y5HLXDYG.mjs.map → chunk-5LGKGWLX.mjs.map} +0 -0
- /package/dist/esm/{chunk-P74XXLE4.mjs.map → chunk-5PVZ4N42.mjs.map} +0 -0
- /package/dist/esm/{chunk-O4MRRWRI.mjs.map → chunk-7T26VA2W.mjs.map} +0 -0
- /package/dist/esm/{chunk-FH27D7S3.mjs.map → chunk-7V35JAAF.mjs.map} +0 -0
- /package/dist/esm/{chunk-S3YVCCYI.mjs.map → chunk-ALNQK276.mjs.map} +0 -0
- /package/dist/esm/{chunk-5O3RHPER.mjs.map → chunk-BAEIZAP7.mjs.map} +0 -0
- /package/dist/esm/{chunk-QLC7SSLJ.mjs.map → chunk-C2HCRGQU.mjs.map} +0 -0
- /package/dist/esm/{chunk-UZTJWOLS.mjs.map → chunk-CDEYH77E.mjs.map} +0 -0
- /package/dist/esm/{chunk-FSBEKFEF.mjs.map → chunk-CX6KECGV.mjs.map} +0 -0
- /package/dist/esm/{chunk-MWNYODWU.mjs.map → chunk-DBTKJMLV.mjs.map} +0 -0
- /package/dist/esm/{chunk-H7PDLUNP.mjs.map → chunk-DC2IESER.mjs.map} +0 -0
- /package/dist/esm/{chunk-KPPM2BSC.mjs.map → chunk-EGV3HFE3.mjs.map} +0 -0
- /package/dist/esm/{chunk-JYGAG754.mjs.map → chunk-ELXJ5A4B.mjs.map} +0 -0
- /package/dist/esm/{chunk-BWV6OYLG.mjs.map → chunk-F2WY2DEY.mjs.map} +0 -0
- /package/dist/esm/{chunk-4IQZOAN7.mjs.map → chunk-G4KAHJXB.mjs.map} +0 -0
- /package/dist/esm/{chunk-4ZNSNWQL.mjs.map → chunk-GVNK3UMT.mjs.map} +0 -0
- /package/dist/esm/{chunk-TTERI67T.mjs.map → chunk-H3C3VTHS.mjs.map} +0 -0
- /package/dist/esm/{chunk-OEM75TVE.mjs.map → chunk-HMMNQFVM.mjs.map} +0 -0
- /package/dist/esm/{chunk-64IZ5PQR.mjs.map → chunk-IBZKCBN5.mjs.map} +0 -0
- /package/dist/esm/{chunk-MCWOKFVH.mjs.map → chunk-ICMELYCL.mjs.map} +0 -0
- /package/dist/esm/{chunk-WXLSHECY.mjs.map → chunk-IK2NYNKG.mjs.map} +0 -0
- /package/dist/esm/{chunk-KKLF7DQV.mjs.map → chunk-JMPHD4BP.mjs.map} +0 -0
- /package/dist/esm/{chunk-QZT2M7UA.mjs.map → chunk-KCWRCWNT.mjs.map} +0 -0
- /package/dist/esm/{chunk-L3J2QVIY.mjs.map → chunk-L4SWQLAJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-5XLZACVT.mjs.map → chunk-LA5HJILW.mjs.map} +0 -0
- /package/dist/esm/{chunk-YT3IP57B.mjs.map → chunk-LKKI2KAP.mjs.map} +0 -0
- /package/dist/esm/{chunk-QN7AK5PU.mjs.map → chunk-LPVGVTWT.mjs.map} +0 -0
- /package/dist/esm/{chunk-S22QVNK7.mjs.map → chunk-N62NUAHT.mjs.map} +0 -0
- /package/dist/esm/{chunk-737YW3CY.mjs.map → chunk-NK67FECB.mjs.map} +0 -0
- /package/dist/esm/{chunk-2D7OMWVL.mjs.map → chunk-NZ7M6NG2.mjs.map} +0 -0
- /package/dist/esm/{chunk-VELQA2Y3.mjs.map → chunk-P6KX7AS2.mjs.map} +0 -0
- /package/dist/esm/{chunk-XOOYRVFK.mjs.map → chunk-PMGK5IHB.mjs.map} +0 -0
- /package/dist/esm/{chunk-B5BXB2BB.mjs.map → chunk-PXMNAP2Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-GT7QFXER.mjs.map → chunk-QI7OREBM.mjs.map} +0 -0
- /package/dist/esm/{chunk-OGBU52BQ.mjs.map → chunk-RCA73RVB.mjs.map} +0 -0
- /package/dist/esm/{chunk-VAKNMHOA.mjs.map → chunk-S5SQJRAV.mjs.map} +0 -0
- /package/dist/esm/{chunk-476F5NJ6.mjs.map → chunk-SK3LIS4Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-TQA6HY6A.mjs.map → chunk-SNYYEVJA.mjs.map} +0 -0
- /package/dist/esm/{chunk-LWXBEIFO.mjs.map → chunk-TCXYTPUR.mjs.map} +0 -0
- /package/dist/esm/{chunk-FUC7SLH7.mjs.map → chunk-U3T4ZT7B.mjs.map} +0 -0
- /package/dist/esm/{chunk-RV7PNWDY.mjs.map → chunk-U6OCK6T4.mjs.map} +0 -0
- /package/dist/esm/{chunk-JUQBFGUD.mjs.map → chunk-UFPYCROT.mjs.map} +0 -0
- /package/dist/esm/{chunk-HULCIESG.mjs.map → chunk-UGIHQFID.mjs.map} +0 -0
- /package/dist/esm/{chunk-R2YT2IM5.mjs.map → chunk-UJSTWN32.mjs.map} +0 -0
- /package/dist/esm/{chunk-YITOC4Z6.mjs.map → chunk-VIZHWYI5.mjs.map} +0 -0
- /package/dist/esm/{chunk-P6RNNESB.mjs.map → chunk-VWGB5BHW.mjs.map} +0 -0
- /package/dist/esm/{chunk-QK32EQSF.mjs.map → chunk-WFK3XRQX.mjs.map} +0 -0
- /package/dist/esm/{chunk-D54FD6XE.mjs.map → chunk-XOLU6UP3.mjs.map} +0 -0
- /package/dist/esm/{chunk-I3452DF5.mjs.map → chunk-XZN344G4.mjs.map} +0 -0
- /package/dist/esm/{chunk-HKVZ7CAG.mjs.map → chunk-YEWZAR76.mjs.map} +0 -0
- /package/dist/esm/{chunk-A7TJF3BX.mjs.map → chunk-YJVZFYBX.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q3CWUEXI.mjs.map → chunk-ZMMLM6ZJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-7ZVXQAG4.mjs.map → chunk-ZMS3AOEZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-U7UTBXJD.mjs.map → chunk-ZXVN3HXB.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as p}from"./chunk-LPVGVTWT.mjs";import{b as a}from"./chunk-LKKI2KAP.mjs";import{b as s}from"./chunk-AJ5JHBAE.mjs";async function F(n){let{aptosConfig:e,payload:o,options:t}=n,i=await p({...o,aptosConfig:e}),r=new s;i.serialize(r);let u=r.toUint8Array(),{data:d}=await a({aptosConfig:e,path:"view",originMethod:"view",contentType:"application/x.aptos.view_function+bcs",params:{ledger_version:t?.ledgerVersion},body:u});return d}async function M(n){let{aptosConfig:e,payload:o,options:t}=n,{data:i}=await a({aptosConfig:e,originMethod:"viewJson",path:"view",params:{ledger_version:t?.ledgerVersion},body:{function:o.function,type_arguments:o.typeArguments??[],arguments:o.functionArguments??[]}});return i}export{F as a,M as b};
|
|
2
|
+
//# sourceMappingURL=chunk-NZ7M6NG2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-DC2IESER.mjs";import{a as h}from"./chunk-U3T4ZT7B.mjs";import{r as y}from"./chunk-PXMNAP2Q.mjs";import{b as K}from"./chunk-JNO7KPMG.mjs";import{a as m}from"./chunk-J3E4UMBB.mjs";import{b as A}from"./chunk-SPRNSFUV.mjs";var w=class d extends f{constructor(e){let r=h.create(e);super({publicKey:r,...e}),this.publicKey=r}serialize(e){super.serialize(e),this.publicKey.jwkAddress.serialize(e)}static deserialize(e){let{address:r,proof:c,ephemeralKeyPair:i,jwt:s,uidKey:t,pepper:n,verificationKeyHash:o}=f.partialDeserialize(e),l=K.deserialize(e),{iss:a,aud:p,uidVal:u}=y({jwt:s,uidKey:t});return new d({address:r,proof:c,ephemeralKeyPair:i,iss:a,uidKey:t,uidVal:u,aud:p,pepper:n,jwt:s,verificationKeyHash:o,jwkAddress:l})}static fromBytes(e){return d.deserialize(new m(A.hexInputToUint8Array(e)))}static create(e){let{address:r,proof:c,jwt:i,ephemeralKeyPair:s,pepper:t,jwkAddress:n,uidKey:o="sub",proofFetchCallback:l,verificationKey:a}=e,{iss:p,aud:u,uidVal:g}=y({jwt:i,uidKey:o});return new d({address:r,proof:c,ephemeralKeyPair:s,iss:p,uidKey:o,uidVal:g,aud:u,pepper:t,jwkAddress:K.from(n),jwt:i,proofFetchCallback:l,verificationKeyHash:a?a.hash():void 0})}};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-P6KX7AS2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t,b as n,c as o,d as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t,b as n,c as o,d as r}from"./chunk-7V35JAAF.mjs";import{a as s}from"./chunk-33CVOPIN.mjs";import{b as i}from"./chunk-JNO7KPMG.mjs";var a=class{constructor(e){this.config=e}async getFungibleAssetMetadata(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),t({aptosConfig:this.config,...e})}async getFungibleAssetMetadataByAssetType(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),(await t({aptosConfig:this.config,options:{where:{asset_type:{_eq:e.assetType}}}}))[0]}async getFungibleAssetMetadataByCreatorAddress(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),await t({aptosConfig:this.config,options:{where:{creator_address:{_eq:i.from(e.creatorAddress).toStringLong()}}}})}async getFungibleAssetActivities(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),n({aptosConfig:this.config,...e})}async getCurrentFungibleAssetBalances(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),o({aptosConfig:this.config,...e})}async transferFungibleAsset(e){return r({aptosConfig:this.config,...e})}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-PMGK5IHB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as M}from"./chunk-UGTIALNW.mjs";import{a as E,b as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as M}from"./chunk-UGTIALNW.mjs";import{a as E,b as w}from"./chunk-KCWRCWNT.mjs";import{a as S,c as k,d as R,e as V}from"./chunk-GMKKHGXK.mjs";import{b as _,d as U}from"./chunk-H3C3VTHS.mjs";import{b as C}from"./chunk-MHN6XY4Z.mjs";import{a as f}from"./chunk-4O5XDQDO.mjs";import{a as P}from"./chunk-AKIO3OIT.mjs";import{b as m}from"./chunk-JNO7KPMG.mjs";import{a as D}from"./chunk-HBIDHQ2M.mjs";import{b as g}from"./chunk-372SLYVR.mjs";import{d as l}from"./chunk-F45G3GP3.mjs";import{b as B}from"./chunk-V4FKFCBL.mjs";import{a as h}from"./chunk-J3E4UMBB.mjs";import{a as y,b as K}from"./chunk-AJ5JHBAE.mjs";import{b as p,c as T}from"./chunk-SPRNSFUV.mjs";import{jwtDecode as W}from"jwt-decode";import{sha3_256 as $}from"@noble/hashes/sha3";var He=1e7,Z=120,Y=30,X=330,Te=120,Pe=350,Ce=300,_e=93,o=class o extends C{constructor(e,t){super();let r=p.fromHexInput(t).toUint8Array();if(r.length!==o.ID_COMMITMENT_LENGTH)throw new Error(`Id Commitment length in bytes should be ${o.ID_COMMITMENT_LENGTH}`);this.iss=e,this.idCommitment=r}authKey(){let e=new K;return e.serializeU32AsUleb128(3),e.serializeFixedBytes(this.bcsToBytes()),P.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){e.serializeStr(this.iss),e.serializeBytes(this.idCommitment)}static deserialize(e){let t=e.deserializeStr(),r=e.deserializeBytes();return new o(t,r)}static load(e){let t=e.deserializeStr(),r=e.deserializeBytes();return new o(t,r)}static isPublicKey(e){return e instanceof o}static create(e){return J(e),new o(e.iss,J(e))}static fromJwtAndPepper(e){let{jwt:t,pepper:r,uidKey:s="sub"}=e,a=W(t);if(typeof a.iss!="string")throw new Error("iss was not found");if(typeof a.aud!="string")throw new Error("aud was not found or an array of values");let n=a[s];return o.create({iss:a.iss,uidKey:s,uidVal:n,aud:a.aud,pepper:r})}static isInstance(e){return"iss"in e&&typeof e.iss=="string"&&"idCommitment"in e&&e.idCommitment instanceof Uint8Array}};o.ID_COMMITMENT_LENGTH=32;var G=o;function J(i){let{uidKey:e,uidVal:t,aud:r,pepper:s}=i,a=[k(p.fromHexInput(s).toUint8Array()),S(r,Z),S(t,X),S(e,Y)];return R(V(a),G.ID_COMMITMENT_LENGTH)}var O=class i extends f{constructor(e){super();let{jwtHeader:t,ephemeralCertificate:r,expiryDateSecs:s,ephemeralPublicKey:a,ephemeralSignature:n}=e;this.jwtHeader=t,this.ephemeralCertificate=r,this.expiryDateSecs=s,this.ephemeralPublicKey=a,this.ephemeralSignature=n}getJwkKid(){return ee(this.jwtHeader).kid}serialize(e){this.ephemeralCertificate.serialize(e),e.serializeStr(this.jwtHeader),e.serializeU64(this.expiryDateSecs),this.ephemeralPublicKey.serialize(e),this.ephemeralSignature.serialize(e)}static deserialize(e){let t=x.deserialize(e),r=e.deserializeStr(),s=e.deserializeU64(),a=E.deserialize(e),n=w.deserialize(e);return new i({jwtHeader:r,expiryDateSecs:Number(s),ephemeralCertificate:t,ephemeralPublicKey:a,ephemeralSignature:n})}static getSimulationSignature(){return new i({jwtHeader:"{}",ephemeralCertificate:new x(new z({proof:new b(new A({a:new Uint8Array(32),b:new Uint8Array(64),c:new Uint8Array(32)}),0),expHorizonSecs:0}),0),expiryDateSecs:0,ephemeralPublicKey:new E(new _(new Uint8Array(32))),ephemeralSignature:new w(new U(new Uint8Array(64)))})}static isSignature(e){return e instanceof i}},x=class i extends f{constructor(e,t){super(),this.signature=e,this.variant=t}toUint8Array(){return this.signature.toUint8Array()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(z.deserialize(e),t);default:throw new Error(`Unknown variant index for EphemeralCertificate: ${t}`)}}},c=class i extends y{constructor(e){if(super(),this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==32)throw new Error("Input needs to be 32 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(32);return new i(t)}},d=class i extends y{constructor(e){if(super(),this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==64)throw new Error("Input needs to be 64 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(64);return new i(t)}},A=class i extends M{constructor(e){super();let{a:t,b:r,c:s}=e;this.a=new c(t),this.b=new d(r),this.c=new c(s)}serialize(e){this.a.serialize(e),this.b.serialize(e),this.c.serialize(e)}static deserialize(e){let t=c.deserialize(e).bcsToBytes(),r=d.deserialize(e).bcsToBytes(),s=c.deserialize(e).bcsToBytes();return new i({a:t,b:r,c:s})}},b=class i extends y{constructor(e,t){super(),this.proof=e,this.variant=t}serialize(e){e.serializeU32AsUleb128(this.variant),this.proof.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(A.deserialize(e),t);default:throw new Error(`Unknown variant index for ZkProof: ${t}`)}}},z=class i extends f{constructor(e){super();let{proof:t,expHorizonSecs:r,trainingWheelsSignature:s,extraField:a,overrideAudVal:n}=e;this.proof=t,this.expHorizonSecs=r,this.trainingWheelsSignature=s,this.extraField=a,this.overrideAudVal=n}static fromBytes(e){return i.deserialize(new h(e))}serialize(e){this.proof.serialize(e),e.serializeU64(this.expHorizonSecs),e.serializeOption(this.extraField),e.serializeOption(this.overrideAudVal),e.serializeOption(this.trainingWheelsSignature)}static deserialize(e){let t=b.deserialize(e),r=Number(e.deserializeU64()),s=e.deserializeOption("string"),a=e.deserializeOption("string"),n=e.deserializeOption(w);return new i({proof:t,expHorizonSecs:r,trainingWheelsSignature:n,extraField:s,overrideAudVal:a})}},v=class i{constructor(e,t){this.verificationKey=e,this.maxExpHorizonSecs=t}static create(e,t){return new i(new I({alphaG1:e.alpha_g1,betaG2:e.beta_g2,deltaG2:e.delta_g2,gammaAbcG1:e.gamma_abc_g1,gammaG2:e.gamma_g2}),t)}},I=class i{constructor(e){let{alphaG1:t,betaG2:r,deltaG2:s,gammaAbcG1:a,gammaG2:n}=e;this.alphaG1=new c(t),this.betaG2=new d(r),this.deltaG2=new d(s),this.gammaAbcG1=[new c(a[0]),new c(a[1])],this.gammaG2=new d(n)}hash(){let e=new K;return this.serialize(e),$.create().update(e.toUint8Array()).digest()}serialize(e){this.alphaG1.serialize(e),this.betaG2.serialize(e),this.deltaG2.serialize(e),this.gammaAbcG1[0].serialize(e),this.gammaAbcG1[1].serialize(e),this.gammaG2.serialize(e)}static fromGroth16VerificationKeyResponse(e){return new i({alphaG1:e.alpha_g1,betaG2:e.beta_g2,deltaG2:e.delta_g2,gammaAbcG1:e.gamma_abc_g1,gammaG2:e.gamma_g2})}};async function Ue(i){let{aptosConfig:e}=i;try{return await D(async()=>{let t=await q(i),r=await Q(i);return v.create(r,Number(t.max_exp_horizon_secs))},`keyless-configuration-${e.network}`,1e3*60*5)()}catch(t){throw t instanceof l?t:l.fromErrorType({type:25,error:t})}}function ke(i){let{jwt:e,uidKey:t="sub"}=i,r;try{r=W(e)}catch(a){throw l.fromErrorType({type:12,details:`Failed to parse JWT - ${B(a)}`})}if(typeof r.iss!="string")throw l.fromErrorType({type:12,details:"JWT is missing 'iss' in the payload. This should never happen."});if(typeof r.aud!="string")throw l.fromErrorType({type:12,details:"JWT is missing 'aud' in the payload or 'aud' is an array of values."});let s=r[t];return{iss:r.iss,aud:r.aud,uidVal:s}}async function q(i){let{aptosConfig:e,options:t}=i,r="0x1::keyless_account::Configuration";try{let{data:s}=await g({aptosConfig:e,originMethod:"getKeylessConfigurationResource",path:`accounts/${m.from("0x1").toString()}/resource/${r}`,params:{ledger_version:t?.ledgerVersion}});return s.data}catch(s){throw l.fromErrorType({type:22,error:s})}}async function Q(i){let{aptosConfig:e,options:t}=i,r="0x1::keyless_account::Groth16VerificationKey";try{let{data:s}=await g({aptosConfig:e,originMethod:"getGroth16VerificationKeyResource",path:`accounts/${m.from("0x1").toString()}/resource/${r}`,params:{ledger_version:t?.ledgerVersion}});return s.data}catch(s){throw l.fromErrorType({type:23,error:s})}}async function Re(i){let{aptosConfig:e,jwkAddr:t,options:r}=i,s;if(t){let n="0x1::jwks::FederatedJWKs",{data:u}=await g({aptosConfig:e,originMethod:"getKeylessJWKs",path:`accounts/${m.from(t).toString()}/resource/${n}`,params:{ledger_version:r?.ledgerVersion}});s=u}else{let n="0x1::jwks::PatchedJWKs",{data:u}=await g({aptosConfig:e,originMethod:"getKeylessJWKs",path:`accounts/0x1/resource/${n}`,params:{ledger_version:r?.ledgerVersion}});s=u}let a=new Map;for(let n of s.data.jwks.entries){let u=[];for(let j of n.jwks){let{data:L}=j.variant,N=new h(p.fromHexInput(L).toUint8Array()),F=H.deserialize(N);u.push(F)}a.set(T(n.issuer),u)}return a}var H=class i extends y{constructor(e){super();let{kid:t,kty:r,alg:s,e:a,n}=e;this.kid=t,this.kty=r,this.alg=s,this.e=a,this.n=n}serialize(e){e.serializeStr(this.kid),e.serializeStr(this.kty),e.serializeStr(this.alg),e.serializeStr(this.e),e.serializeStr(this.n)}static fromMoveStruct(e){let{data:t}=e.variant,r=new h(p.fromHexInput(t).toUint8Array());return i.deserialize(r)}static deserialize(e){let t=e.deserializeStr(),r=e.deserializeStr(),s=e.deserializeStr(),a=e.deserializeStr(),n=e.deserializeStr();return new i({kid:t,kty:r,alg:s,n:a,e:n})}};function ee(i){try{let e=JSON.parse(i);if(e.kid===void 0)throw new Error("JWT header missing kid");return e}catch{throw new Error("Failed to parse JWT header.")}}export{He as a,Z as b,Y as c,X as d,Te as e,Pe as f,Ce as g,_e as h,G as i,O as j,x as k,A as l,b as m,z as n,v as o,I as p,Ue as q,ke as r,Re as s,H as t,ee as u};
|
|
2
|
+
//# sourceMappingURL=chunk-PXMNAP2Q.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-UGIHQFID.mjs";import{a as T}from"./chunk-5LGKGWLX.mjs";import{a as f}from"./chunk-ICMELYCL.mjs";import{a as d}from"./chunk-4DP3PEYK.mjs";import{d as c,e as u,f as g,i as m,j as p,k as y,l as A}from"./chunk-SK3LIS4Z.mjs";import{a,b as o,c as i,d as s,e,g as r}from"./chunk-WFK3XRQX.mjs";var P=class{constructor(n){this.config=n,this.build=new f(this.config),this.simulate=new h(this.config),this.submit=new T(this.config),this.batch=new d(this.config)}async getTransactions(n){return a({aptosConfig:this.config,...n})}async getTransactionByVersion(n){return i({aptosConfig:this.config,...n})}async getTransactionByHash(n){return s({aptosConfig:this.config,...n})}async isPendingTransaction(n){return e({aptosConfig:this.config,...n})}async waitForTransaction(n){return r({aptosConfig:this.config,...n})}async getGasPriceEstimation(){return o({aptosConfig:this.config})}getSigningMessage(n){return c(n)}async publishPackageTransaction(n){return y({aptosConfig:this.config,...n})}async rotateAuthKey(n){return A({aptosConfig:this.config,...n})}sign(n){return u({...n})}signAsFeePayer(n){return g({...n})}async batchTransactionsForSingleAccount(n){try{let{sender:t,data:l,options:b}=n;this.batch.forSingleAccount({sender:t,data:l,options:b})}catch(t){throw new Error(`failed to submit transactions with error: ${t}`)}}async signAndSubmitTransaction(n){return m({aptosConfig:this.config,...n})}async signAndSubmitAsFeePayer(n){return p({aptosConfig:this.config,...n})}};export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QI7OREBM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-4MTSP4S2.mjs";import{a as o,b as c}from"./chunk-2CJC43CV.mjs";import{a as h,i as d}from"./chunk-SK3LIS4Z.mjs";import{g as u}from"./chunk-WFK3XRQX.mjs";import g from"eventemitter3";var m="fulfilled",f=(n=>(n.TransactionSent="transactionSent",n.TransactionSendFailed="transactionSendFailed",n.TransactionExecuted="transactionExecuted",n.TransactionExecutionFailed="transactionExecutionFailed",n.ExecutionFinish="executionFinish",n))(f||{}),p=class extends g{constructor(t,e,a=30,n=100,i=10){super();this.taskQueue=new o;this.transactionsQueue=new o;this.outstandingTransactions=new o;this.sentTransactions=[];this.executedTransactions=[];this.aptosConfig=t,this.account=e,this.started=!1,this.accountSequnceNumber=new l(t,e,a,n,i)}async submitNextTransaction(){try{for(;;){let t=await this.accountSequnceNumber.nextSequenceNumber();if(t===null)return;let e=await this.generateNextTransaction(this.account,t);if(!e)return;let a=d({aptosConfig:this.aptosConfig,transaction:e,signer:this.account});await this.outstandingTransactions.enqueue([a,t])}}catch(t){if(t instanceof c)return;throw new Error(`Submit transaction failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async processTransactions(){try{for(;;){let t=[],e=[],[a,n]=await this.outstandingTransactions.dequeue();for(t.push(a),e.push(n);!this.outstandingTransactions.isEmpty();)[a,n]=await this.outstandingTransactions.dequeue(),t.push(a),e.push(n);let i=await Promise.allSettled(t);for(let s=0;s<i.length&&s<e.length;s+=1){let r=i[s];n=e[s],r.status===m?(this.sentTransactions.push([r.value.hash,n,null]),this.emit("transactionSent",{message:`transaction hash ${r.value.hash} has been committed to chain`,transactionHash:r.value.hash}),await this.checkTransaction(r,n)):(this.sentTransactions.push([r.status,n,r.reason]),this.emit("transactionSendFailed",{message:`failed to commit transaction ${this.sentTransactions.length} with error ${r.reason}`,error:r.reason}))}this.emit("executionFinish",{message:`execute ${i.length} transactions finished`})}}catch(t){if(t instanceof c)return;throw new Error(`Process execution failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async checkTransaction(t,e){try{let a=[];a.push(u({aptosConfig:this.aptosConfig,transactionHash:t.value.hash}));let n=await Promise.allSettled(a);for(let i=0;i<n.length;i+=1){let s=n[i];s.status===m?(this.executedTransactions.push([s.value.hash,e,null]),this.emit("transactionExecuted",{message:`transaction hash ${s.value.hash} has been executed on chain`,transactionHash:t.value.hash})):(this.executedTransactions.push([s.status,e,s.reason]),this.emit("transactionExecutionFailed",{message:`failed to execute transaction ${this.executedTransactions.length} with error ${s.reason}`,error:s.reason}))}}catch(a){throw new Error(`Check transaction failed for ${this.account.accountAddress.toString()} with error ${a}`)}}async push(t,e){this.transactionsQueue.enqueue([t,e])}async generateNextTransaction(t,e){if(this.transactionsQueue.isEmpty())return;let[a,n]=await this.transactionsQueue.dequeue();return h({aptosConfig:this.aptosConfig,sender:t.accountAddress,data:a,options:{...n,accountSequenceNumber:e}})}async run(){try{for(;!this.taskQueue.isCancelled();)await(await this.taskQueue.dequeue())()}catch(t){throw new Error(`Unable to start transaction batching: ${t}`)}}start(){if(this.started)throw new Error("worker has already started");this.started=!0,this.taskQueue.enqueue(()=>this.submitNextTransaction()),this.taskQueue.enqueue(()=>this.processTransactions()),this.run()}stop(){if(this.taskQueue.isCancelled())throw new Error("worker has already stopped");this.started=!1,this.taskQueue.cancel()}};export{m as a,f as b,p as c};
|
|
2
|
+
//# sourceMappingURL=chunk-RCA73RVB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-VIZHWYI5.mjs";import{h as r}from"./chunk-WFK3XRQX.mjs";var i=class{constructor(o){this.config=o}async fundAccount(o){let n=await t({aptosConfig:this.config,...o});return(o.options?.waitForIndexer===void 0||o.options?.waitForIndexer)&&await r({aptosConfig:this.config,minimumLedgerVersion:BigInt(n.version),processorType:"fungible_asset_processor"}),n}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-S5SQJRAV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g,f as l,g as R,i as x}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g,f as l,g as R,i as x}from"./chunk-LPVGVTWT.mjs";import{a as K}from"./chunk-4OV2A6PJ.mjs";import{a as S}from"./chunk-ELXJ5A4B.mjs";import{a as y,b as C}from"./chunk-DC2IESER.mjs";import{d as I}from"./chunk-SNYYEVJA.mjs";import{a as w}from"./chunk-2C27NY4D.mjs";import{a as b}from"./chunk-F2WY2DEY.mjs";import{c as m,m as c}from"./chunk-T6ADNZE5.mjs";import{a as h}from"./chunk-U3T4ZT7B.mjs";import{i as P}from"./chunk-PXMNAP2Q.mjs";import{b as p}from"./chunk-JNO7KPMG.mjs";import{b as d}from"./chunk-LKKI2KAP.mjs";import{a as s}from"./chunk-ZMMLM6ZJ.mjs";import{b as f}from"./chunk-42H7WETG.mjs";import{a as T}from"./chunk-J3E4UMBB.mjs";async function _(t){let e=await k(t);return v(t,e)}async function k(t){let{aptosConfig:e,data:n}=t,o,a;return"bytecode"in n?a=await g(n):"multisigAddress"in n?(o={aptosConfig:e,multisigAddress:n.multisigAddress,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},a=await g(o)):(o={aptosConfig:e,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},a=await g(o)),a}async function v(t,e){let{aptosConfig:n,sender:o,options:a}=t,i;if(M(t)&&(i=p.ZERO.toString()),N(t)){let{secondarySignerAddresses:r}=t;return l({aptosConfig:n,sender:o,payload:e,options:a,secondarySignerAddresses:r,feePayerAddress:i})}return l({aptosConfig:n,sender:o,payload:e,options:a,feePayerAddress:i})}function M(t){return t.withFeePayer===!0}function N(t){return"secondarySignerAddresses"in t}function sn(t){let{transaction:e}=t;return I(e)}function D(t){let{signer:e,transaction:n}=t;return e.signTransactionWithAuthenticator(n)}function G(t){let{signer:e,transaction:n}=t;if(!n.feePayerAddress)throw new Error(`Transaction ${n} is not a Fee Payer transaction`);return n.feePayerAddress=e.accountAddress,D({signer:e,transaction:n})}async function cn(t){let{aptosConfig:e,transaction:n,signerPublicKey:o,secondarySignersPublicKeys:a,feePayerPublicKey:i,options:r}=t,u=R({transaction:n,signerPublicKey:o,secondarySignersPublicKeys:a,feePayerPublicKey:i,options:r}),{data:A}=await d({aptosConfig:e,body:u,path:"transactions/simulate",params:{estimate_gas_unit_price:t.options?.estimateGasUnitPrice??!1,estimate_max_gas_amount:t.options?.estimateMaxGasAmount??!1,estimate_prioritized_gas_unit_price:t.options?.estimatePrioritizedGasUnitPrice??!1},originMethod:"simulateTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return A}async function U(t){let{aptosConfig:e}=t,n=x({...t});try{let{data:o}=await d({aptosConfig:e,body:n,path:"transactions",originMethod:"submitTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return o}catch(o){let a=b.deserialize(new T(n));throw a.authenticator.isSingleSender()&&a.authenticator.sender.isSingleKey()&&(a.authenticator.sender.public_key.publicKey instanceof P||a.authenticator.sender.public_key.publicKey instanceof h)&&await C.fetchJWK({aptosConfig:e,publicKey:a.authenticator.sender.public_key.publicKey,kid:a.authenticator.sender.signature.signature.getJwkKid()}),o}}async function O(t){let{aptosConfig:e,signer:n,feePayer:o,transaction:a}=t;y(n)&&await n.checkKeylessAccountValidity(e),y(o)&&await o.checkKeylessAccountValidity(e);let i=t.feePayerAuthenticator||o&&G({signer:o,transaction:a}),r=D({signer:n,transaction:a});return U({aptosConfig:e,transaction:a,senderAuthenticator:r,feePayerAuthenticator:i})}async function un(t){let{aptosConfig:e,senderAuthenticator:n,feePayer:o,transaction:a}=t;y(o)&&await o.checkKeylessAccountValidity(e);let i=G({signer:o,transaction:a});return U({aptosConfig:e,transaction:a,senderAuthenticator:n,feePayerAuthenticator:i})}var E={typeParameters:[],parameters:[c.u8(),new c(c.u8())]};async function pn(t){let{aptosConfig:e,account:n,metadataBytes:o,moduleBytecode:a,options:i}=t,r=a.map(u=>s.U8(u));return _({aptosConfig:e,sender:p.from(n),data:{function:"0x1::code::publish_package_txn",functionArguments:[s.U8(o),new s(r)],abi:E},options:i})}var V={typeParameters:[],parameters:[new m,c.u8(),new m,c.u8(),c.u8(),c.u8()]};async function yn(t){let{aptosConfig:e,fromAccount:n,toNewPrivateKey:o}=t,a=await K({aptosConfig:e,accountAddress:n.accountAddress}),i=S.fromPrivateKey({privateKey:o,legacy:!0}),u=new w({sequenceNumber:BigInt(a.sequence_number),originator:n.accountAddress,currentAuthKey:p.from(a.authentication_key),newPublicKey:i.publicKey}).bcsToBytes(),A=n.sign(u),B=i.sign(u),F=await _({aptosConfig:e,sender:n.accountAddress,data:{function:"0x1::account::rotate_authentication_key",functionArguments:[new f(n.signingScheme),s.U8(n.publicKey.toUint8Array()),new f(i.signingScheme),s.U8(i.publicKey.toUint8Array()),s.U8(A.toUint8Array()),s.U8(B.toUint8Array())],abi:V}});return O({aptosConfig:e,signer:n,transaction:F})}export{_ as a,k as b,v as c,sn as d,D as e,G as f,cn as g,U as h,O as i,un as j,pn as k,yn as l};
|
|
2
|
+
//# sourceMappingURL=chunk-SK3LIS4Z.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as T,d as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as T,d as c}from"./chunk-XOLU6UP3.mjs";import{g as A,h as a}from"./chunk-J7PJSK3J.mjs";import{sha3_256 as y}from"@noble/hashes/sha3";function d(e){return e.feePayerAddress?new c(e.rawTransaction,e.secondarySignerAddresses??[],e.feePayerAddress):e.secondarySignerAddresses?new T(e.rawTransaction,e.secondarySignerAddresses):e.rawTransaction}function n(e,r){let i=y.create();if(!r.startsWith("APTOS::"))throw new Error(`Domain separator needs to start with 'APTOS::'. Provided - ${r}`);i.update(r);let s=i.digest(),o=e,t=new Uint8Array(s.length+o.length);return t.set(s),t.set(o,s.length),t}function u(e){return n(e.bcsToBytes(),`APTOS::${e.constructor.name}`)}function S(e){let r=d(e);return e.feePayerAddress?n(r.bcsToBytes(),a):e.secondarySignerAddresses?n(r.bcsToBytes(),a):n(r.bcsToBytes(),A)}export{d as a,n as b,u as c,S as d};
|
|
2
|
+
//# sourceMappingURL=chunk-SNYYEVJA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o,b as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o,b as l}from"./chunk-JMPHD4BP.mjs";import{b as m}from"./chunk-MHN6XY4Z.mjs";import{a as g}from"./chunk-4O5XDQDO.mjs";import{a as y}from"./chunk-AKIO3OIT.mjs";function d(h){let e=h;return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}var p=class h extends m{constructor(e){super();let{publicKeys:r,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(r.length<t)throw new Error(`Provided ${r.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=r.map(i=>i instanceof o?i:new o(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return y.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let r=e.deserializeVector(o),t=e.deserializeU8();return new h({publicKeys:r,signaturesRequired:t})}createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach((n,u)=>{if(u+1>this.publicKeys.length)throw new Error(`Signature index ${u+1} is out of public keys range, ${this.publicKeys.length}.`);if(a.has(n))throw new Error(`Duplicate bit ${n} detected.`);a.add(n);let c=Math.floor(n/8),b=i[c];b|=t>>n%8,i[c]=b}),i}getIndex(e){let r=e instanceof o?e:new o(e),t=this.publicKeys.findIndex(i=>i.toString()===r.toString());if(t!==-1)return t;throw new Error("Public key not found in MultiKey")}static isInstance(e){return"publicKeys"in e&&"signaturesRequired"in e}},s=class s extends g{constructor(e){super();let{signatures:r,bitmap:t}=e;if(r.length>s.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${s.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=r.map(a=>a instanceof l?a:new l(a)),!(t instanceof Uint8Array))this.bitmap=s.createBitmap({bits:t});else{if(t.length!==s.BITMAP_LEN)throw new Error(`"bitmap" length should be ${s.BITMAP_LEN}`);this.bitmap=t}let i=this.bitmap.reduce((a,n)=>a+d(n),0);if(i!==this.signatures.length)throw new Error(`Expecting ${i} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach(n=>{if(n>=s.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${s.MAX_SIGNATURES_SUPPORTED-1}.`);if(a.has(n))throw new Error("Duplicate bits detected.");a.add(n);let u=Math.floor(n/8),c=i[u];c|=t>>n%8,i[u]=c}),i}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(l),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var f=s;export{p as a,f as b};
|
|
2
|
+
//# sourceMappingURL=chunk-TCXYTPUR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{i as s}from"./chunk-PXMNAP2Q.mjs";import{b as c}from"./chunk-MHN6XY4Z.mjs";import{a as d}from"./chunk-AKIO3OIT.mjs";import{b as i}from"./chunk-JNO7KPMG.mjs";import{b as n}from"./chunk-AJ5JHBAE.mjs";var u=class r extends c{constructor(e,t){super(),this.jwkAddress=i.from(e),this.keylessPublicKey=t}authKey(){let e=new n;return e.serializeU32AsUleb128(4),e.serializeFixedBytes(this.bcsToBytes()),d.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){this.jwkAddress.serialize(e),this.keylessPublicKey.serialize(e)}static deserialize(e){let t=i.deserialize(e),l=s.deserialize(e);return new r(t,l)}static isPublicKey(e){return e instanceof r}static create(e){return new r(e.jwkAddress,s.create(e))}static fromJwtAndPepper(e){return new r(e.jwkAddress,s.fromJwtAndPepper(e))}static isInstance(e){return"jwkAddress"in e&&e.jwkAddress instanceof i&&"keylessPublicKey"in e&&e.keylessPublicKey instanceof s}};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-U3T4ZT7B.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as o}from"./chunk-GVNK3UMT.mjs";import{a as r}from"./chunk-33CVOPIN.mjs";var t=class{constructor(e){this.config=e}async getObjectDataByObjectAddress(e){return await r({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"objects_processor"}),o({aptosConfig:this.config,...e})}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-U6OCK6T4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-2ESU5N3V.mjs";import{a as e}from"./chunk-33CVOPIN.mjs";import{b as s}from"./chunk-JNO7KPMG.mjs";var L=class{constructor(t){this.config=t}async getCollectionData(t){await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"});let{creatorAddress:N,collectionName:_,options:n}=t,w=s.from(N),r={collection_name:{_eq:_},creator_address:{_eq:w.toStringLong()}};return n?.tokenStandard&&(r.token_standard={_eq:n?.tokenStandard??"v2"}),d({aptosConfig:this.config,options:{where:r}})}async getCollectionDataByCreatorAddressAndCollectionName(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),g({aptosConfig:this.config,...t})}async getCollectionDataByCreatorAddress(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),u({aptosConfig:this.config,...t})}async getCollectionDataByCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),A({aptosConfig:this.config,...t})}async getCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),y({aptosConfig:this.config,...t})}async getDigitalAssetData(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),i({aptosConfig:this.config,...t})}async getCurrentDigitalAssetOwnership(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),o({aptosConfig:this.config,...t})}async getOwnedDigitalAssets(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),a({aptosConfig:this.config,...t})}async getDigitalAssetActivity(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),c({aptosConfig:this.config,...t})}async createCollectionTransaction(t){return p({aptosConfig:this.config,...t})}async mintDigitalAssetTransaction(t){return m({aptosConfig:this.config,...t})}async transferDigitalAssetTransaction(t){return l({aptosConfig:this.config,...t})}async mintSoulBoundTransaction(t){return T({aptosConfig:this.config,...t})}async burnDigitalAssetTransaction(t){return f({aptosConfig:this.config,...t})}async freezeDigitalAssetTransaferTransaction(t){return C({aptosConfig:this.config,...t})}async unfreezeDigitalAssetTransaferTransaction(t){return I({aptosConfig:this.config,...t})}async setDigitalAssetDescriptionTransaction(t){return O({aptosConfig:this.config,...t})}async setDigitalAssetNameTransaction(t){return P({aptosConfig:this.config,...t})}async setDigitalAssetURITransaction(t){return D({aptosConfig:this.config,...t})}async addDigitalAssetPropertyTransaction(t){return V({aptosConfig:this.config,...t})}async removeDigitalAssetPropertyTransaction(t){return S({aptosConfig:this.config,...t})}async updateDigitalAssetPropertyTransaction(t){return h({aptosConfig:this.config,...t})}async addDigitalAssetTypedPropertyTransaction(t){return R({aptosConfig:this.config,...t})}async updateDigitalAssetTypedPropertyTransaction(t){return G({aptosConfig:this.config,...t})}};export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UFPYCROT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-IHGA5KAD.mjs";import{g as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-IHGA5KAD.mjs";import{g as r}from"./chunk-SK3LIS4Z.mjs";import{a as o}from"./chunk-KDMSOCZY.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UGIHQFID.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-SK3LIS4Z.mjs";import{f as t,i as o}from"./chunk-T6ADNZE5.mjs";import{e as n}from"./chunk-J7PJSK3J.mjs";var u={typeParameters:[{constraints:[]}],parameters:[new o,new t]};async function y(e){let{aptosConfig:i,sender:s,recipient:c,amount:p,coinType:a,options:m}=e;return r({aptosConfig:i,sender:s,data:{function:"0x1::aptos_account::transfer_coins",typeArguments:[a??n],functionArguments:[c,p],abi:u},options:m})}export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UJSTWN32.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{g as e}from"./chunk-WFK3XRQX.mjs";import{b as s}from"./chunk-JNO7KPMG.mjs";import{d as c}from"./chunk-LKKI2KAP.mjs";import{d as r}from"./chunk-J7PJSK3J.mjs";async function x(a){let{aptosConfig:t,accountAddress:i,amount:p,options:n}=a,u=n?.timeoutSecs||20,{data:d}=await c({aptosConfig:t,path:"fund",body:{address:s.from(i).toString(),amount:p},originMethod:"fundAccount"}),m=d.txn_hashes[0],o=await e({aptosConfig:t,transactionHash:m,options:{timeoutSecs:u,checkSuccess:n?.checkSuccess}});if(o.type==="user_transaction")return o;throw new Error(`Unexpected transaction received for fund account: ${o.type}`)}export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VIZHWYI5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as r}from"./chunk-F45G3GP3.mjs";import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as r}from"./chunk-F45G3GP3.mjs";import{a as d}from"./chunk-YD2BMHH7.mjs";async function A(s,u){let{url:t,method:n,body:i,contentType:a,params:o,overrides:e,originMethod:R}=s,p={...e?.HEADERS,"x-aptos-client":`aptos-typescript-sdk/${d}`,"content-type":a??"application/json","x-aptos-typescript-sdk-origin-method":R};return e?.AUTH_TOKEN&&(p.Authorization=`Bearer ${e?.AUTH_TOKEN}`),e?.API_KEY&&(p.Authorization=`Bearer ${e?.API_KEY}`),u.provider({url:t,method:n,body:i,params:o,headers:p,overrides:e})}async function P(s,u,t){let{url:n,path:i}=s,a=i?`${n}/${i}`:n,o=await A({...s,url:a},u.client),e={status:o.status,statusText:o.statusText??"No status text provided",data:o.data,headers:o.headers,config:o.config,request:o.request,url:a};if(e.status===401)throw new r({apiType:t,aptosRequest:s,aptosResponse:e});if(t==="Indexer"){let R=e.data;if(R.errors)throw new r({apiType:t,aptosRequest:s,aptosResponse:e});e.data=R.data}else if((t==="Pepper"||t==="Prover")&&e.status>=400)throw new r({apiType:t,aptosRequest:s,aptosResponse:e});if(e.status>=200&&e.status<300)return e;throw new r({apiType:t,aptosRequest:s,aptosResponse:e})}export{A as a,P as b};
|
|
2
|
+
//# sourceMappingURL=chunk-VWGB5BHW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as x,f as B}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as x,f as B}from"./chunk-2KSMV5KD.mjs";import{a as k}from"./chunk-HBIDHQ2M.mjs";import{b as f,d as A}from"./chunk-372SLYVR.mjs";import{e as b}from"./chunk-F45G3GP3.mjs";import{a as d}from"./chunk-V4FKFCBL.mjs";import{d as C}from"./chunk-J7PJSK3J.mjs";async function H(o){let{aptosConfig:n,options:t}=o;return A({aptosConfig:n,originMethod:"getTransactions",path:"transactions",params:{start:t?.offset,limit:t?.limit}})}async function W(o){let{aptosConfig:n}=o;return k(async()=>{let{data:t}=await f({aptosConfig:n,originMethod:"getGasPriceEstimation",path:"estimate_gas_price"});return t},`gas-price-${n.network}`,1e3*60*5)()}async function O(o){let{aptosConfig:n,ledgerVersion:t}=o,{data:s}=await f({aptosConfig:n,originMethod:"getTransactionByVersion",path:`transactions/by_version/${t}`});return s}async function y(o){let{aptosConfig:n,transactionHash:t}=o,{data:s}=await f({aptosConfig:n,path:`transactions/by_hash/${t}`,originMethod:"getTransactionByHash"});return s}async function q(o){let{aptosConfig:n,transactionHash:t}=o;try{return(await y({aptosConfig:n,transactionHash:t})).type==="pending_transaction"}catch(s){if(s?.status===404)return!0;throw s}}async function R(o){let{aptosConfig:n,transactionHash:t}=o,{data:s}=await f({aptosConfig:n,path:`transactions/wait_by_hash/${t}`,originMethod:"longWaitForTransaction"});return s}async function z(o){let{aptosConfig:n,transactionHash:t,options:s}=o,r=s?.timeoutSecs??20,u=s?.checkSuccess??!0,e=!0,p=0,i,g,l=200,h=1.5;function c(a){if(!(a instanceof b)||(g=a,a.status!==404&&a.status>=400&&a.status<500))throw a}try{i=await y({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction"}catch(a){c(a)}if(e){let a=Date.now();try{i=await R({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction"}catch(w){c(w)}p=(Date.now()-a)/1e3}for(;e&&!(p>=r);){try{if(i=await y({aptosConfig:n,transactionHash:t}),e=i.type==="pending_transaction",!e)break}catch(a){c(a)}await d(l),p+=l/1e3,l*=h}if(i===void 0)throw g||new m(`Fetching transaction ${t} failed and timed out after ${r} seconds`,i);if(i.type==="pending_transaction")throw new m(`Transaction ${t} timed out in pending state after ${r} seconds`,i);if(!u)return i;if(!i.success)throw new T(`Transaction ${t} failed with an error: ${i.vm_status}`,i);return i}async function U(o){let{aptosConfig:n,processorType:t}=o,s=BigInt(o.minimumLedgerVersion),r=3e3,u=new Date().getTime(),e=BigInt(-1);for(;e<s;){if(new Date().getTime()-u>r)throw new Error("waitForLastSuccessIndexerVersionSync timeout");if(t===void 0?e=await x({aptosConfig:n}):e=(await B({aptosConfig:n,processorType:t})).last_success_version,e>=s)break;await d(200)}}var m=class extends Error{constructor(n,t){super(n),this.lastSubmittedTransaction=t}},T=class extends Error{constructor(n,t){super(n),this.transaction=t}};async function X(o){let{aptosConfig:n,ledgerVersion:t,options:s}=o,{data:r}=await f({aptosConfig:n,originMethod:"getBlockByVersion",path:`blocks/by_version/${t}`,params:{with_transactions:s?.withTransactions}});return P({block:r,...o})}async function j(o){let{aptosConfig:n,blockHeight:t,options:s}=o,{data:r}=await f({aptosConfig:n,originMethod:"getBlockByHeight",path:`blocks/by_height/${t}`,params:{with_transactions:s?.withTransactions}});return P({block:r,...o})}async function P(o){let{aptosConfig:n,block:t,options:s}=o;if(s?.withTransactions){t.transactions=t.transactions??[];let r=t.transactions[t.transactions.length-1],u=BigInt(t.first_version),e=BigInt(t.last_version),p=r?.version,i;if(p===void 0?i=u-1n:i=BigInt(p),i===e)return t;let g=[],l=100n;for(let c=i+1n;c<e;c+=BigInt(100))g.push(H({aptosConfig:n,options:{offset:c,limit:Math.min(Number(l),Number(e-c+1n))}}));let h=await Promise.all(g);for(let c of h)t.transactions.push(...c)}return t}export{H as a,W as b,O as c,y as d,q as e,R as f,z as g,U as h,m as i,T as j,X as k,j as l};
|
|
2
|
+
//# sourceMappingURL=chunk-WFK3XRQX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as h}from"./chunk-333QBK32.mjs";import{a as y}from"./chunk-OPO5EYF7.mjs";import{b as n}from"./chunk-JNO7KPMG.mjs";import{a as _}from"./chunk-AJ5JHBAE.mjs";var t=class i extends _{constructor(e,s,a,r,c,d,l){super(),this.sender=e,this.sequence_number=s,this.payload=a,this.max_gas_amount=r,this.gas_unit_price=c,this.expiration_timestamp_secs=d,this.chain_id=l}serialize(e){this.sender.serialize(e),e.serializeU64(this.sequence_number),this.payload.serialize(e),e.serializeU64(this.max_gas_amount),e.serializeU64(this.gas_unit_price),e.serializeU64(this.expiration_timestamp_secs),this.chain_id.serialize(e)}static deserialize(e){let s=n.deserialize(e),a=e.deserializeU64(),r=h.deserialize(e),c=e.deserializeU64(),d=e.deserializeU64(),l=e.deserializeU64(),m=y.deserialize(e);return new i(s,a,r,c,d,l,m)}},o=class extends _{static deserialize(e){let s=e.deserializeUleb128AsU32();switch(s){case 0:return u.load(e);case 1:return p.load(e);default:throw new Error(`Unknown variant index for RawTransactionWithData: ${s}`)}}},u=class i extends o{constructor(e,s){super(),this.raw_txn=e,this.secondary_signer_addresses=s}serialize(e){e.serializeU32AsUleb128(0),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n);return new i(s,a)}},p=class i extends o{constructor(e,s,a){super(),this.raw_txn=e,this.secondary_signer_addresses=s,this.fee_payer_address=a}serialize(e){e.serializeU32AsUleb128(1),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses),this.fee_payer_address.serialize(e)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n),r=n.deserialize(e);return new i(s,a,r)}};export{t as a,o as b,u as c,p as d};
|
|
2
|
+
//# sourceMappingURL=chunk-XOLU6UP3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as h,d as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as h,d as l}from"./chunk-H3C3VTHS.mjs";import{b as E}from"./chunk-MHN6XY4Z.mjs";import{a as p}from"./chunk-4O5XDQDO.mjs";import{a as g}from"./chunk-AKIO3OIT.mjs";var o=class o extends E{constructor(r){super();let{publicKeys:e,threshold:t}=r;if(e.length>o.MAX_KEYS||e.length<o.MIN_KEYS)throw new Error(`Must have between ${o.MIN_KEYS} and ${o.MAX_KEYS} public keys, inclusive`);if(t<o.MIN_THRESHOLD||t>e.length)throw new Error(`Threshold must be between ${o.MIN_THRESHOLD} and ${e.length}, inclusive`);this.publicKeys=e,this.threshold=t}verifySignature(r){let{message:e,signature:t}=r;if(!(t instanceof y))return!1;let s=[];for(let i=0;i<4;i+=1)for(let n=0;n<8;n+=1)if((t.bitmap[i]&1<<7-n)!==0){let u=i*8+n;s.push(u)}if(s.length!==t.signatures.length)throw new Error("Bitmap and signatures length mismatch");if(s.length<this.threshold)throw new Error("Not enough signatures");for(let i=0;i<s.length;i+=1)if(!this.publicKeys[s[i]].verifySignature({message:e,signature:t.signatures[i]}))return!1;return!0}authKey(){return g.fromSchemeAndBytes({scheme:1,input:this.toUint8Array()})}toUint8Array(){let r=new Uint8Array(this.publicKeys.length*h.LENGTH+1);return this.publicKeys.forEach((e,t)=>{r.set(e.toUint8Array(),t*h.LENGTH)}),r[this.publicKeys.length*h.LENGTH]=this.threshold,r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e[e.length-1],s=[];for(let i=0;i<e.length-1;i+=h.LENGTH){let n=i;s.push(new h(e.subarray(n,n+h.LENGTH)))}return new o({publicKeys:s,threshold:t})}};o.MAX_KEYS=32,o.MIN_KEYS=2,o.MIN_THRESHOLD=1;var d=o,a=class a extends p{constructor(r){super();let{signatures:e,bitmap:t}=r;if(e.length>a.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${a.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=e,!(t instanceof Uint8Array))this.bitmap=a.createBitmap({bits:t});else{if(t.length!==a.BITMAP_LEN)throw new Error(`"bitmap" length should be ${a.BITMAP_LEN}`);this.bitmap=t}}toUint8Array(){let r=new Uint8Array(this.signatures.length*l.LENGTH+a.BITMAP_LEN);return this.signatures.forEach((e,t)=>{r.set(e.toUint8Array(),t*l.LENGTH)}),r.set(this.bitmap,this.signatures.length*l.LENGTH),r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e.subarray(e.length-4),s=[];for(let i=0;i<e.length-t.length;i+=l.LENGTH){let n=i;s.push(new l(e.subarray(n,n+l.LENGTH)))}return new a({signatures:s,bitmap:t})}static createBitmap(r){let{bits:e}=r,t=128,s=new Uint8Array([0,0,0,0]),i=new Set;return e.forEach((n,c)=>{if(n>=a.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${a.MAX_SIGNATURES_SUPPORTED-1}.`);if(i.has(n))throw new Error("Duplicate bits detected.");if(c>0&&n<=e[c-1])throw new Error("The bits need to be sorted in ascending order.");i.add(n);let u=Math.floor(n/8),b=s[u];b|=t>>n%8,s[u]=b}),s}};a.MAX_SIGNATURES_SUPPORTED=32,a.BITMAP_LEN=4;var y=a;export{d as a,y as b};
|
|
2
|
+
//# sourceMappingURL=chunk-XZN344G4.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"1.33.
|
|
1
|
+
{"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"1.33.1\";\n"],"mappings":"AAQO,IAAMA,EAAU","names":["VERSION"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r,b as i,c as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r,b as i,c as s}from"./chunk-LA5HJILW.mjs";import{a as o}from"./chunk-33CVOPIN.mjs";var t=class{constructor(e){this.config=e}async getNumberOfDelegators(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),r({aptosConfig:this.config,...e})}async getNumberOfDelegatorsForAllPools(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),i({aptosConfig:this.config,...e})}async getDelegatedStakingActivities(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),s({aptosConfig:this.config,...e})}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YEWZAR76.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-UJSTWN32.mjs";var t=class{constructor(n){this.config=n}async transferCoinTransaction(n){return o({aptosConfig:this.config,...n})}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YJVZFYBX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c,b as o,c as d,d as z,e as m,f as U,g as y}from"./chunk-42H7WETG.mjs";import{a as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c,b as o,c as d,d as z,e as m,f as U,g as y}from"./chunk-42H7WETG.mjs";import{a as b}from"./chunk-J3E4UMBB.mjs";import{a as s}from"./chunk-AJ5JHBAE.mjs";import{b as u}from"./chunk-SPRNSFUV.mjs";var t=class i extends s{constructor(e){super(),this.values=e}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){if(this.values[0]!==void 0&&!(this.values[0]instanceof o)){new p(this.bcsToBytes()).serializeForScriptFunction(e);return}e.serializeU32AsUleb128(4),e.serialize(this)}static U8(e){let r;if(Array.isArray(e)&&e.length===0)r=[];else if(Array.isArray(e)&&typeof e[0]=="number")r=e;else if(typeof e=="string"){let n=u.fromHexInput(e);r=Array.from(n.toUint8Array())}else if(e instanceof Uint8Array)r=Array.from(e);else throw new Error("Invalid input type, must be an number[], Uint8Array, or hex string");return new i(r.map(n=>new o(n)))}static U16(e){return new i(e.map(r=>new d(r)))}static U32(e){return new i(e.map(r=>new z(r)))}static U64(e){return new i(e.map(r=>new m(r)))}static U128(e){return new i(e.map(r=>new U(r)))}static U256(e){return new i(e.map(r=>new y(r)))}static Bool(e){return new i(e.map(r=>new c(r)))}static MoveString(e){return new i(e.map(r=>new a(r)))}serialize(e){e.serializeVector(this.values)}static deserialize(e,r){let n=e.deserializeUleb128AsU32(),l=new Array;for(let w=0;w<n;w+=1)l.push(r.deserialize(e));return new i(l)}},p=class i extends s{constructor(e){super(),this.value=u.fromHexInput(e).toUint8Array()}serialize(e){e.serializeBytes(this.value)}serializeForEntryFunction(e){this.serialize(e)}serializeForScriptFunction(e){e.serializeU32AsUleb128(9),this.serialize(e)}static deserialize(e){return new i(e.deserializeBytes())}toMoveVector(e){let r=new b(this.bcsToBytes());r.deserializeUleb128AsU32();let n=r.deserializeVector(e);return new t(n)}},a=class i extends s{constructor(e){super(),this.value=e}serialize(e){e.serializeStr(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){let n=new TextEncoder().encode(this.value);t.U8(n).serializeForScriptFunction(e)}static deserialize(e){return new i(e.deserializeStr())}},A=class i extends s{constructor(e){super(),typeof e<"u"&&e!==null?this.vec=new t([e]):this.vec=new t([]),[this.value]=this.vec.values}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}unwrap(){if(this.isSome())return this.vec.values[0];throw new Error("Called unwrap on a MoveOption with no value")}isSome(){return this.vec.values.length===1}serialize(e){this.vec.serialize(e)}static U8(e){return new i(e!=null?new o(e):void 0)}static U16(e){return new i(e!=null?new d(e):void 0)}static U32(e){return new i(e!=null?new z(e):void 0)}static U64(e){return new i(e!=null?new m(e):void 0)}static U128(e){return new i(e!=null?new U(e):void 0)}static U256(e){return new i(e!=null?new y(e):void 0)}static Bool(e){return new i(e!=null?new c(e):void 0)}static MoveString(e){return new i(e!=null?new a(e):void 0)}static deserialize(e,r){let n=t.deserialize(e,r);return new i(n.values[0])}};export{t as a,p as b,a as c,A as d};
|
|
2
|
+
//# sourceMappingURL=chunk-ZMMLM6ZJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as e,i as s,j as t,k as o,l as r,m as i,n as a,o as m,p as c,q as g,r as u,s as p,t as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{h as e,i as s,j as t,k as o,l as r,m as i,n as a,o as m,p as c,q as g,r as u,s as p,t as d}from"./chunk-CX6KECGV.mjs";var A=class{constructor(n){this.config=n}async getOwnerAddress(n){return e({aptosConfig:this.config,...n})}async getExpiration(n){return t({aptosConfig:this.config,...n})}async getTargetAddress(n){return i({aptosConfig:this.config,...n})}async setTargetAddress(n){return a({aptosConfig:this.config,...n})}async getPrimaryName(n){return o({aptosConfig:this.config,...n})}async setPrimaryName(n){return r({aptosConfig:this.config,...n})}async registerName(n){return s({aptosConfig:this.config,...n})}async renewDomain(n){return d({aptosConfig:this.config,...n})}async getName(n){return m({aptosConfig:this.config,...n})}async getAccountNames(n){return c({aptosConfig:this.config,...n})}async getAccountDomains(n){return g({aptosConfig:this.config,...n})}async getAccountSubdomains(n){return u({aptosConfig:this.config,...n})}async getDomainSubdomains(n){return p({aptosConfig:this.config,...n})}};export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZMS3AOEZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as d}from"./chunk-2KSMV5KD.mjs";import{p as c}from"./chunk-VHNX2NUR.mjs";import{b as i}from"./chunk-JNO7KPMG.mjs";var a=300,g=t=>{if(t&&t.length>a)throw new Error(`Event type length exceeds the maximum length of ${a}`)};async function m(t){let{aptosConfig:o,eventType:e,options:n}=t,s={_or:[{account_address:{_eq:e.split("::")[0]}},{account_address:{_eq:"0x0000000000000000000000000000000000000000000000000000000000000000"},sequence_number:{_eq:0},creation_number:{_eq:0}}],indexed_type:{_eq:e}};return p({aptosConfig:o,options:{...n,where:s}})}async function f(t){let{accountAddress:o,aptosConfig:e,creationNumber:n,options:s}=t,r={account_address:{_eq:i.from(o).toStringLong()},creation_number:{_eq:n}};return p({aptosConfig:e,options:{...s,where:r}})}async function _(t){let{accountAddress:o,aptosConfig:e,eventType:n,options:s}=t,r={account_address:{_eq:i.from(o).toStringLong()},indexed_type:{_eq:n}};return p({aptosConfig:e,options:{...s,where:r}})}async function p(t){let{aptosConfig:o,options:e}=t;g(e?.where?.indexed_type?._eq);let n={query:c,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:o,query:n,originMethod:"getEvents"})).events}export{m as a,f as b,_ as c,p as d};
|
|
2
|
+
//# sourceMappingURL=chunk-ZXVN3HXB.mjs.map
|
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"../chunk-VQZMI3EZ.mjs";import{a as r}from"../chunk-
|
|
1
|
+
import{a as o}from"../chunk-VQZMI3EZ.mjs";import{a as r}from"../chunk-FZDEGDUY.mjs";import"../chunk-V4FKFCBL.mjs";import"../chunk-KDMSOCZY.mjs";export{o as LocalNode,r as Move};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/cli/move.d.mts
CHANGED
|
@@ -187,6 +187,15 @@ declare class Move {
|
|
|
187
187
|
}): Promise<{
|
|
188
188
|
output: string;
|
|
189
189
|
}>;
|
|
190
|
+
gasProfile(args: {
|
|
191
|
+
network: string;
|
|
192
|
+
transactionId: string;
|
|
193
|
+
extraArguments?: Array<string>;
|
|
194
|
+
showStdout?: boolean;
|
|
195
|
+
}): Promise<{
|
|
196
|
+
output: string;
|
|
197
|
+
result?: any;
|
|
198
|
+
}>;
|
|
190
199
|
/**
|
|
191
200
|
* Run a command with the specified arguments and return the output.
|
|
192
201
|
*
|
package/dist/esm/cli/move.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-FZDEGDUY.mjs";import"../chunk-KDMSOCZY.mjs";export{a as Move};
|
|
2
2
|
//# sourceMappingURL=move.mjs.map
|
package/dist/esm/client/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-VWGB5BHW.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-CDEYH77E.mjs";import"../chunk-F45G3GP3.mjs";import"../chunk-V4FKFCBL.mjs";import"../chunk-D3OEQLUE.mjs";import"../chunk-J7PJSK3J.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ZMBXHMVQ.mjs";import"../chunk-BRV3RLKW.mjs";import"../chunk-ZMMLM6ZJ.mjs";import"../chunk-42H7WETG.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-U2PRGW4O.mjs";import"../chunk-J3E4UMBB.mjs";import"../chunk-AJ5JHBAE.mjs";import"../chunk-SPRNSFUV.mjs";import"../chunk-6Q2O5G3J.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-YD2BMHH7.mjs";import"../chunk-KDMSOCZY.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-372SLYVR.mjs";import"../chunk-VWGB5BHW.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-CDEYH77E.mjs";import"../chunk-F45G3GP3.mjs";import"../chunk-V4FKFCBL.mjs";import"../chunk-D3OEQLUE.mjs";import"../chunk-J7PJSK3J.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ZMBXHMVQ.mjs";import"../chunk-BRV3RLKW.mjs";import"../chunk-ZMMLM6ZJ.mjs";import"../chunk-42H7WETG.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-U2PRGW4O.mjs";import"../chunk-J3E4UMBB.mjs";import"../chunk-AJ5JHBAE.mjs";import"../chunk-SPRNSFUV.mjs";import"../chunk-6Q2O5G3J.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-YD2BMHH7.mjs";import"../chunk-KDMSOCZY.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-7ECCT6PK.mjs";import{a as c,b as d,c as e,d as f}from"../chunk-
|
|
1
|
+
import"../chunk-7ECCT6PK.mjs";import{a as c,b as d,c as e,d as f}from"../chunk-372SLYVR.mjs";import{a as g,b as h,c as i,d as j,e as k,f as l}from"../chunk-LKKI2KAP.mjs";import{a,b}from"../chunk-VWGB5BHW.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-CDEYH77E.mjs";import"../chunk-F45G3GP3.mjs";import"../chunk-V4FKFCBL.mjs";import"../chunk-D3OEQLUE.mjs";import"../chunk-J7PJSK3J.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ZMBXHMVQ.mjs";import"../chunk-BRV3RLKW.mjs";import"../chunk-ZMMLM6ZJ.mjs";import"../chunk-42H7WETG.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-U2PRGW4O.mjs";import"../chunk-J3E4UMBB.mjs";import"../chunk-AJ5JHBAE.mjs";import"../chunk-SPRNSFUV.mjs";import"../chunk-6Q2O5G3J.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-YD2BMHH7.mjs";import"../chunk-KDMSOCZY.mjs";export{b as aptosRequest,c as get,d as getAptosFullNode,e as getAptosPepperService,f as paginateWithCursor,g as post,j as postAptosFaucet,h as postAptosFullNode,i as postAptosIndexer,k as postAptosPepperService,l as postAptosProvingService,a 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-LKKI2KAP.mjs";import"../chunk-VWGB5BHW.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-CDEYH77E.mjs";import"../chunk-F45G3GP3.mjs";import"../chunk-V4FKFCBL.mjs";import"../chunk-D3OEQLUE.mjs";import"../chunk-J7PJSK3J.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ZMBXHMVQ.mjs";import"../chunk-BRV3RLKW.mjs";import"../chunk-ZMMLM6ZJ.mjs";import"../chunk-42H7WETG.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-U2PRGW4O.mjs";import"../chunk-J3E4UMBB.mjs";import"../chunk-AJ5JHBAE.mjs";import"../chunk-SPRNSFUV.mjs";import"../chunk-6Q2O5G3J.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-YD2BMHH7.mjs";import"../chunk-KDMSOCZY.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,d}from"../../chunk-
|
|
1
|
+
import{a,b,c,d}from"../../chunk-H3C3VTHS.mjs";import"../../chunk-BUAHUVAD.mjs";import"../../chunk-MHN6XY4Z.mjs";import"../../chunk-4O5XDQDO.mjs";import"../../chunk-5B3SMBXQ.mjs";import"../../chunk-OIOGOW6I.mjs";import"../../chunk-AKIO3OIT.mjs";import"../../chunk-JNO7KPMG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZMBXHMVQ.mjs";import"../../chunk-BRV3RLKW.mjs";import"../../chunk-ZMMLM6ZJ.mjs";import"../../chunk-42H7WETG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-J3E4UMBB.mjs";import"../../chunk-AJ5JHBAE.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=ed25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-KCWRCWNT.mjs";import"../../chunk-H3C3VTHS.mjs";import"../../chunk-BUAHUVAD.mjs";import"../../chunk-MHN6XY4Z.mjs";import"../../chunk-4O5XDQDO.mjs";import"../../chunk-5B3SMBXQ.mjs";import"../../chunk-OIOGOW6I.mjs";import"../../chunk-AKIO3OIT.mjs";import"../../chunk-JNO7KPMG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZMBXHMVQ.mjs";import"../../chunk-BRV3RLKW.mjs";import"../../chunk-ZMMLM6ZJ.mjs";import"../../chunk-42H7WETG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-J3E4UMBB.mjs";import"../../chunk-AJ5JHBAE.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
|
|
2
2
|
//# sourceMappingURL=ephemeral.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-U3T4ZT7B.mjs";import"../../chunk-PXMNAP2Q.mjs";import"../../chunk-UGTIALNW.mjs";import"../../chunk-KCWRCWNT.mjs";import"../../chunk-GMKKHGXK.mjs";import"../../chunk-H3C3VTHS.mjs";import"../../chunk-BUAHUVAD.mjs";import"../../chunk-MHN6XY4Z.mjs";import"../../chunk-4O5XDQDO.mjs";import"../../chunk-5B3SMBXQ.mjs";import"../../chunk-OIOGOW6I.mjs";import"../../chunk-AKIO3OIT.mjs";import"../../chunk-JNO7KPMG.mjs";import"../../chunk-HBIDHQ2M.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-372SLYVR.mjs";import"../../chunk-LKKI2KAP.mjs";import"../../chunk-VWGB5BHW.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CDEYH77E.mjs";import"../../chunk-F45G3GP3.mjs";import"../../chunk-V4FKFCBL.mjs";import"../../chunk-D3OEQLUE.mjs";import"../../chunk-J7PJSK3J.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZMBXHMVQ.mjs";import"../../chunk-BRV3RLKW.mjs";import"../../chunk-ZMMLM6ZJ.mjs";import"../../chunk-42H7WETG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-J3E4UMBB.mjs";import"../../chunk-AJ5JHBAE.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-YD2BMHH7.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as FederatedKeylessPublicKey};
|
|
2
2
|
//# sourceMappingURL=federatedKeyless.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-HEZ2ZYZA.mjs";import{a as s,b as t}from"../../chunk-
|
|
1
|
+
import"../../chunk-HEZ2ZYZA.mjs";import{a as s,b as t}from"../../chunk-XZN344G4.mjs";import{a as aa,b as ba}from"../../chunk-TCXYTPUR.mjs";import{a as _,b as $}from"../../chunk-JMPHD4BP.mjs";import{a as u,b as v,c as w}from"../../chunk-7N7FEBZA.mjs";import{a as Z}from"../../chunk-U3T4ZT7B.mjs";import{a as E,b as F,c as G,d as H,e as I,f as J,g as K,h as L,i as M,j as N,k as O,l as P,m as Q,n as R,o as S,p as T,q as U,r as V,s as W,t as X,u as Y}from"../../chunk-PXMNAP2Q.mjs";import"../../chunk-UGTIALNW.mjs";import{a as x,b as y}from"../../chunk-KCWRCWNT.mjs";import{a as z,b as A,c as B,d as C,e as D}from"../../chunk-GMKKHGXK.mjs";import{a as o,b as p,c as q,d as r}from"../../chunk-H3C3VTHS.mjs";import{a as k}from"../../chunk-BUAHUVAD.mjs";import{a as l,b as m}from"../../chunk-MHN6XY4Z.mjs";import{a as n}from"../../chunk-4O5XDQDO.mjs";import"../../chunk-5B3SMBXQ.mjs";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-OIOGOW6I.mjs";import"../../chunk-AKIO3OIT.mjs";import"../../chunk-JNO7KPMG.mjs";import"../../chunk-HBIDHQ2M.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-372SLYVR.mjs";import"../../chunk-LKKI2KAP.mjs";import"../../chunk-VWGB5BHW.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CDEYH77E.mjs";import"../../chunk-F45G3GP3.mjs";import"../../chunk-V4FKFCBL.mjs";import"../../chunk-D3OEQLUE.mjs";import"../../chunk-J7PJSK3J.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZMBXHMVQ.mjs";import"../../chunk-BRV3RLKW.mjs";import"../../chunk-ZMMLM6ZJ.mjs";import"../../chunk-42H7WETG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-J3E4UMBB.mjs";import"../../chunk-AJ5JHBAE.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-YD2BMHH7.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,m as AccountPublicKey,_ as AnyPublicKey,$ as AnySignature,h as CKDPriv,E as EPK_HORIZON_SECS,q as Ed25519PrivateKey,p as Ed25519PublicKey,r as Ed25519Signature,O as EphemeralCertificate,x as EphemeralPublicKey,y as EphemeralSignature,Z as FederatedKeylessPublicKey,T as Groth16VerificationKey,P as Groth16Zkp,d as HARDENED_OFFSET,c as KeyType,S as KeylessConfiguration,M as KeylessPublicKey,N as KeylessSignature,F as MAX_AUD_VAL_BYTES,L as MAX_COMMITED_EPK_BYTES,J as MAX_EXTRA_FIELD_BYTES,I as MAX_ISS_VAL_BYTES,K as MAX_JWT_HEADER_B64_BYTES,G as MAX_UID_KEY_BYTES,H as MAX_UID_VAL_BYTES,X as MoveJWK,s as MultiEd25519PublicKey,t as MultiEd25519Signature,aa as MultiKey,ba as MultiKeySignature,k as PrivateKey,l as PublicKey,v as Secp256k1PrivateKey,u as Secp256k1PublicKey,w as Secp256k1Signature,n as Signature,R as ZeroKnowledgeSig,Q as ZkProof,C as bigIntToBytesLE,B as bytesToBigIntLE,g as deriveKey,V as getIssAudAndUidVal,U as getKeylessConfig,W as getKeylessJWKs,z as hashStrToField,o as isCanonicalEd25519Signature,e as isValidBIP44Path,f as isValidHardenedPath,j as mnemonicToSeed,A as padAndPackBytesWithLen,Y as parseJwtHeader,D as poseidonHash,i 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,p,q,r,s,t,u}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"../../chunk-PXMNAP2Q.mjs";import"../../chunk-UGTIALNW.mjs";import"../../chunk-KCWRCWNT.mjs";import"../../chunk-GMKKHGXK.mjs";import"../../chunk-H3C3VTHS.mjs";import"../../chunk-BUAHUVAD.mjs";import"../../chunk-MHN6XY4Z.mjs";import"../../chunk-4O5XDQDO.mjs";import"../../chunk-5B3SMBXQ.mjs";import"../../chunk-OIOGOW6I.mjs";import"../../chunk-AKIO3OIT.mjs";import"../../chunk-JNO7KPMG.mjs";import"../../chunk-HBIDHQ2M.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-372SLYVR.mjs";import"../../chunk-LKKI2KAP.mjs";import"../../chunk-VWGB5BHW.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CDEYH77E.mjs";import"../../chunk-F45G3GP3.mjs";import"../../chunk-V4FKFCBL.mjs";import"../../chunk-D3OEQLUE.mjs";import"../../chunk-J7PJSK3J.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZMBXHMVQ.mjs";import"../../chunk-BRV3RLKW.mjs";import"../../chunk-ZMMLM6ZJ.mjs";import"../../chunk-42H7WETG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-J3E4UMBB.mjs";import"../../chunk-AJ5JHBAE.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-YD2BMHH7.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EPK_HORIZON_SECS,k as EphemeralCertificate,p as Groth16VerificationKey,l as Groth16Zkp,o as KeylessConfiguration,i as KeylessPublicKey,j 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,t as MoveJWK,n as ZeroKnowledgeSig,m as ZkProof,r as getIssAudAndUidVal,q as getKeylessConfig,s as getKeylessJWKs,u as parseJwtHeader};
|
|
2
2
|
//# sourceMappingURL=keyless.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-XZN344G4.mjs";import"../../chunk-H3C3VTHS.mjs";import"../../chunk-BUAHUVAD.mjs";import"../../chunk-MHN6XY4Z.mjs";import"../../chunk-4O5XDQDO.mjs";import"../../chunk-5B3SMBXQ.mjs";import"../../chunk-OIOGOW6I.mjs";import"../../chunk-AKIO3OIT.mjs";import"../../chunk-JNO7KPMG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZMBXHMVQ.mjs";import"../../chunk-BRV3RLKW.mjs";import"../../chunk-ZMMLM6ZJ.mjs";import"../../chunk-42H7WETG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-J3E4UMBB.mjs";import"../../chunk-AJ5JHBAE.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=multiEd25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-TCXYTPUR.mjs";import"../../chunk-JMPHD4BP.mjs";import"../../chunk-7N7FEBZA.mjs";import"../../chunk-U3T4ZT7B.mjs";import"../../chunk-PXMNAP2Q.mjs";import"../../chunk-UGTIALNW.mjs";import"../../chunk-KCWRCWNT.mjs";import"../../chunk-GMKKHGXK.mjs";import"../../chunk-H3C3VTHS.mjs";import"../../chunk-BUAHUVAD.mjs";import"../../chunk-MHN6XY4Z.mjs";import"../../chunk-4O5XDQDO.mjs";import"../../chunk-5B3SMBXQ.mjs";import"../../chunk-OIOGOW6I.mjs";import"../../chunk-AKIO3OIT.mjs";import"../../chunk-JNO7KPMG.mjs";import"../../chunk-HBIDHQ2M.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-372SLYVR.mjs";import"../../chunk-LKKI2KAP.mjs";import"../../chunk-VWGB5BHW.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-CDEYH77E.mjs";import"../../chunk-F45G3GP3.mjs";import"../../chunk-V4FKFCBL.mjs";import"../../chunk-D3OEQLUE.mjs";import"../../chunk-J7PJSK3J.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ZMBXHMVQ.mjs";import"../../chunk-BRV3RLKW.mjs";import"../../chunk-ZMMLM6ZJ.mjs";import"../../chunk-42H7WETG.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-J3E4UMBB.mjs";import"../../chunk-AJ5JHBAE.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-YD2BMHH7.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as MultiKey,b as MultiKeySignature};
|
|
2
2
|
//# sourceMappingURL=multiKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BUAHUVAD.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-SPRNSFUV.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as PrivateKey};
|
|
2
2
|
//# sourceMappingURL=privateKey.mjs.map
|