@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{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-ICMELYCL.mjs";import"../../chunk-SK3LIS4Z.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-LPVGVTWT.mjs";import"../../chunk-46O23AOD.mjs";import"../../chunk-AOROYJ74.mjs";import"../../chunk-BAEIZAP7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-4OV2A6PJ.mjs";import"../../chunk-N62NUAHT.mjs";import"../../chunk-WFK3XRQX.mjs";import"../../chunk-2KSMV5KD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-4DI5SPSK.mjs";import"../../chunk-ELXJ5A4B.mjs";import"../../chunk-C2HCRGQU.mjs";import"../../chunk-L4SWQLAJ.mjs";import"../../chunk-P6KX7AS2.mjs";import"../../chunk-5PVZ4N42.mjs";import"../../chunk-DC2IESER.mjs";import"../../chunk-SNYYEVJA.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-G4KAHJXB.mjs";import"../../chunk-2C27NY4D.mjs";import"../../chunk-F2WY2DEY.mjs";import"../../chunk-7T26VA2W.mjs";import"../../chunk-XOLU6UP3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-333QBK32.mjs";import"../../chunk-T6ADNZE5.mjs";import"../../chunk-ACVIE7IE.mjs";import"../../chunk-IK2NYNKG.mjs";import"../../chunk-HMMNQFVM.mjs";import"../../chunk-OPO5EYF7.mjs";import"../../chunk-LGTOOAQI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-6ZOVTYLJ.mjs";import"../../chunk-4XB3BB5Z.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XZN344G4.mjs";import"../../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 Build};
|
|
2
2
|
//# sourceMappingURL=build.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-4DP3PEYK.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-RCA73RVB.mjs";import"../../chunk-4MTSP4S2.mjs";import"../../chunk-2CJC43CV.mjs";import"../../chunk-SK3LIS4Z.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-LPVGVTWT.mjs";import"../../chunk-46O23AOD.mjs";import"../../chunk-AOROYJ74.mjs";import"../../chunk-BAEIZAP7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-4OV2A6PJ.mjs";import"../../chunk-N62NUAHT.mjs";import"../../chunk-WFK3XRQX.mjs";import"../../chunk-2KSMV5KD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-4DI5SPSK.mjs";import"../../chunk-ELXJ5A4B.mjs";import"../../chunk-C2HCRGQU.mjs";import"../../chunk-L4SWQLAJ.mjs";import"../../chunk-P6KX7AS2.mjs";import"../../chunk-5PVZ4N42.mjs";import"../../chunk-DC2IESER.mjs";import"../../chunk-SNYYEVJA.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-G4KAHJXB.mjs";import"../../chunk-2C27NY4D.mjs";import"../../chunk-F2WY2DEY.mjs";import"../../chunk-7T26VA2W.mjs";import"../../chunk-XOLU6UP3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-333QBK32.mjs";import"../../chunk-T6ADNZE5.mjs";import"../../chunk-ACVIE7IE.mjs";import"../../chunk-IK2NYNKG.mjs";import"../../chunk-HMMNQFVM.mjs";import"../../chunk-OPO5EYF7.mjs";import"../../chunk-LGTOOAQI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-6ZOVTYLJ.mjs";import"../../chunk-4XB3BB5Z.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XZN344G4.mjs";import"../../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 TransactionManagement};
|
|
2
2
|
//# sourceMappingURL=management.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as o}from"../../chunk-
|
|
1
|
+
import{e as o}from"../../chunk-SK3LIS4Z.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-LPVGVTWT.mjs";import"../../chunk-46O23AOD.mjs";import"../../chunk-AOROYJ74.mjs";import"../../chunk-BAEIZAP7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-4OV2A6PJ.mjs";import"../../chunk-N62NUAHT.mjs";import"../../chunk-WFK3XRQX.mjs";import"../../chunk-2KSMV5KD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-4DI5SPSK.mjs";import"../../chunk-ELXJ5A4B.mjs";import"../../chunk-C2HCRGQU.mjs";import"../../chunk-L4SWQLAJ.mjs";import"../../chunk-P6KX7AS2.mjs";import"../../chunk-5PVZ4N42.mjs";import"../../chunk-DC2IESER.mjs";import"../../chunk-SNYYEVJA.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-G4KAHJXB.mjs";import"../../chunk-2C27NY4D.mjs";import"../../chunk-F2WY2DEY.mjs";import"../../chunk-7T26VA2W.mjs";import"../../chunk-XOLU6UP3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-333QBK32.mjs";import"../../chunk-T6ADNZE5.mjs";import"../../chunk-ACVIE7IE.mjs";import"../../chunk-IK2NYNKG.mjs";import"../../chunk-HMMNQFVM.mjs";import"../../chunk-OPO5EYF7.mjs";import"../../chunk-LGTOOAQI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-6ZOVTYLJ.mjs";import"../../chunk-4XB3BB5Z.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XZN344G4.mjs";import"../../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";var a=class{constructor(n){this.config=n}transaction(n){return o({...n})}transactionAsFeePayer(n){let{signer:r,transaction:t}=n;if(!t.feePayerAddress)throw new Error(`Transaction ${t} is not a Fee Payer transaction`);return t.feePayerAddress=r.accountAddress,o({signer:r,transaction:t})}};export{a as Sign};
|
|
2
2
|
//# sourceMappingURL=sign.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-UGIHQFID.mjs";import"../../chunk-IHGA5KAD.mjs";import"../../chunk-SK3LIS4Z.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-LPVGVTWT.mjs";import"../../chunk-46O23AOD.mjs";import"../../chunk-AOROYJ74.mjs";import"../../chunk-BAEIZAP7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-4OV2A6PJ.mjs";import"../../chunk-N62NUAHT.mjs";import"../../chunk-WFK3XRQX.mjs";import"../../chunk-2KSMV5KD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-4DI5SPSK.mjs";import"../../chunk-ELXJ5A4B.mjs";import"../../chunk-C2HCRGQU.mjs";import"../../chunk-L4SWQLAJ.mjs";import"../../chunk-P6KX7AS2.mjs";import"../../chunk-5PVZ4N42.mjs";import"../../chunk-DC2IESER.mjs";import"../../chunk-SNYYEVJA.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-G4KAHJXB.mjs";import"../../chunk-2C27NY4D.mjs";import"../../chunk-F2WY2DEY.mjs";import"../../chunk-7T26VA2W.mjs";import"../../chunk-XOLU6UP3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-333QBK32.mjs";import"../../chunk-T6ADNZE5.mjs";import"../../chunk-ACVIE7IE.mjs";import"../../chunk-IK2NYNKG.mjs";import"../../chunk-HMMNQFVM.mjs";import"../../chunk-OPO5EYF7.mjs";import"../../chunk-LGTOOAQI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-6ZOVTYLJ.mjs";import"../../chunk-4XB3BB5Z.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XZN344G4.mjs";import"../../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 Simulate};
|
|
2
2
|
//# sourceMappingURL=simulate.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-5LGKGWLX.mjs";import"../../chunk-IHGA5KAD.mjs";import"../../chunk-SK3LIS4Z.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-LPVGVTWT.mjs";import"../../chunk-46O23AOD.mjs";import"../../chunk-AOROYJ74.mjs";import"../../chunk-BAEIZAP7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-4OV2A6PJ.mjs";import"../../chunk-N62NUAHT.mjs";import"../../chunk-WFK3XRQX.mjs";import"../../chunk-2KSMV5KD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-4DI5SPSK.mjs";import"../../chunk-ELXJ5A4B.mjs";import"../../chunk-C2HCRGQU.mjs";import"../../chunk-L4SWQLAJ.mjs";import"../../chunk-P6KX7AS2.mjs";import"../../chunk-5PVZ4N42.mjs";import"../../chunk-DC2IESER.mjs";import"../../chunk-SNYYEVJA.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-G4KAHJXB.mjs";import"../../chunk-2C27NY4D.mjs";import"../../chunk-F2WY2DEY.mjs";import"../../chunk-7T26VA2W.mjs";import"../../chunk-XOLU6UP3.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-333QBK32.mjs";import"../../chunk-T6ADNZE5.mjs";import"../../chunk-ACVIE7IE.mjs";import"../../chunk-IK2NYNKG.mjs";import"../../chunk-HMMNQFVM.mjs";import"../../chunk-OPO5EYF7.mjs";import"../../chunk-LGTOOAQI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-6ZOVTYLJ.mjs";import"../../chunk-4XB3BB5Z.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XZN344G4.mjs";import"../../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 Submit};
|
|
2
2
|
//# sourceMappingURL=submit.mjs.map
|
package/dist/esm/api/utils.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-33CVOPIN.mjs";import"../chunk-WFK3XRQX.mjs";import"../chunk-2KSMV5KD.mjs";import"../chunk-VHNX2NUR.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 waitForIndexerOnVersion};
|
|
2
2
|
//# sourceMappingURL=utils.mjs.map
|
|
@@ -60,7 +60,6 @@ declare class Deserializer {
|
|
|
60
60
|
*/
|
|
61
61
|
remaining(): number;
|
|
62
62
|
/**
|
|
63
|
-
* @deprecated use `deserializeOption` instead.
|
|
64
63
|
* Deserializes a UTF-8 encoded string from a byte array. It first reads the length of the string in bytes,
|
|
65
64
|
* followed by the actual byte content, and decodes it into a string.
|
|
66
65
|
*
|
|
@@ -74,6 +73,20 @@ declare class Deserializer {
|
|
|
74
73
|
* ```
|
|
75
74
|
*/
|
|
76
75
|
deserializeStr(): string;
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated use `deserializeOption("string")` instead.
|
|
78
|
+
*
|
|
79
|
+
* The BCS layout for Optional<String> is 0 if none, else 1 followed by the string length and string content.
|
|
80
|
+
* @returns The deserialized string if it exists, otherwise undefined.
|
|
81
|
+
* @example
|
|
82
|
+
* ```typescript
|
|
83
|
+
* const deserializer = new Deserializer(new Uint8Array([0x00]));
|
|
84
|
+
* assert(deserializer.deserializeOptionStr() === undefined);
|
|
85
|
+
* const deserializer = new Deserializer(new Uint8Array([1, 8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
86
|
+
* assert(deserializer.deserializeOptionStr() === "1234abcd");
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
deserializeOptionStr(): string | undefined;
|
|
77
90
|
/**
|
|
78
91
|
* Deserializes an optional value from the buffer.
|
|
79
92
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-J3E4UMBB.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as Deserializer};
|
|
2
2
|
//# sourceMappingURL=deserializer.mjs.map
|
package/dist/esm/bcs/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-FZY4PMEE.mjs";import{a as h}from"../chunk-ZMBXHMVQ.mjs";import{a as g}from"../chunk-BRV3RLKW.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-
|
|
1
|
+
import"../chunk-FZY4PMEE.mjs";import{a as h}from"../chunk-ZMBXHMVQ.mjs";import{a as g}from"../chunk-BRV3RLKW.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-ZMMLM6ZJ.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o}from"../chunk-42H7WETG.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-U2PRGW4O.mjs";import{a}from"../chunk-J3E4UMBB.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-AJ5JHBAE.mjs";import"../chunk-SPRNSFUV.mjs";import"../chunk-6Q2O5G3J.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{i as Bool,a as Deserializer,h as EntryFunctionBytes,g as FixedBytes,s as MoveOption,r as MoveString,p as MoveVector,b as Serializable,q as Serialized,c as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,d as ensureBoolean,e as outOfRangeErrorMessage,f as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunk-
|
|
1
|
+
import{a,b,c,d}from"../../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{d as MoveOption,c as MoveString,a as MoveVector,b as Serialized};
|
|
2
2
|
//# sourceMappingURL=moveStructs.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as o}from"./chunk-JNO7KPMG.mjs";import{a as u,c as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as o}from"./chunk-JNO7KPMG.mjs";import{a as u,c as r}from"./chunk-ZMMLM6ZJ.mjs";import{e as t}from"./chunk-42H7WETG.mjs";import{a as i}from"./chunk-AJ5JHBAE.mjs";var c=class extends i{constructor(e){super();this.accountAddress=o.ONE;this.moduleName=new r("account");this.structName=new r("RotationProofChallenge");this.sequenceNumber=new t(e.sequenceNumber),this.originator=e.originator,this.currentAuthKey=e.currentAuthKey,this.newPublicKey=u.U8(e.newPublicKey.toUint8Array())}serialize(e){e.serialize(this.accountAddress),e.serialize(this.moduleName),e.serialize(this.structName),e.serialize(this.sequenceNumber),e.serialize(this.originator),e.serialize(this.currentAuthKey),e.serialize(this.newPublicKey)}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2C27NY4D.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-476F5NJ6.mjs";import{f as M}from"./chunk-WTWWJWKC.mjs";import{c as R}from"./chunk-AOROYJ74.mjs";import{c as k}from"./chunk-CK5NDXQT.mjs";import{A as V,m as O,y as q,z as G}from"./chunk-VHNX2NUR.mjs";import{b as w,f as h,i as x,l as A,m as f,n as i,q as p,s as y}from"./chunk-T6ADNZE5.mjs";import{b as c}from"./chunk-JNO7KPMG.mjs";import{a as _,c as d}from"./chunk-Q3CWUEXI.mjs";import{a as T,e as D}from"./chunk-42H7WETG.mjs";import{d as E}from"./chunk-56CNRT2K.mjs";var C={BOOLEAN:"bool",U8:"u8",U16:"u16",U32:"u32",U64:"u64",U128:"u128",U256:"u256",ADDRESS:"address",STRING:"0x1::string::String",ARRAY:"vector<u8>"},l="0x4::token::Token";async function It(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await k({aptosConfig:o,query:{query:V,variables:{where_condition:e}},originMethod:"getDigitalAssetData"})).current_token_datas_v2[0]}async function Pt(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()},amount:{_gt:0}};return(await k({aptosConfig:o,query:{query:G,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function bt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:c.from(n).toStringLong()},amount:{_gt:0}},s={query:G,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function St(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:c.from(n).toStringLong()}},s={query:q,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var F={typeParameters:[],parameters:[new i(p()),new h,new i(p()),new i(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new h,new h]};async function Dt(t){let{aptosConfig:o,options:n,creator:e}=t;return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new d(t.description),new D(t.maxSupply??E),new d(t.name),new d(t.uri),new T(t.mutableDescription??!0),new T(t.mutableRoyalty??!0),new T(t.mutableURI??!0),new T(t.mutableTokenDescription??!0),new T(t.mutableTokenName??!0),new T(t.mutableTokenProperties??!0),new T(t.mutableTokenURI??!0),new T(t.tokensBurnableByCreator??!0),new T(t.tokensFreezableByCreator??!0),new D(t.royaltyNumerator??0),new D(t.royaltyDenominator??1)],abi:F},options:n})}async function v(t){let{aptosConfig:o,options:n}=t,e=n?.where;n?.tokenStandard&&(e.token_standard={_eq:n?.tokenStandard??"v2"});let r={query:O,variables:{where_condition:e,offset:n?.offset,limit:n?.limit}};return(await k({aptosConfig:o,query:r,originMethod:"getCollectionData"})).current_collections_v2[0]}async function ht(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,s=c.from(n),a={collection_name:{_eq:e},creator_address:{_eq:s.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...r,where:a}})}async function vt(t){let{aptosConfig:o,creatorAddress:n,options:e}=t,s={creator_address:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function xt(t){let{aptosConfig:o,collectionId:n,options:e}=t,s={collection_id:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function Gt(t){let{creatorAddress:o,collectionName:n,options:e,aptosConfig:r}=t,s=c.from(o),a={collection_name:{_eq:n},creator_address:{_eq:s.toStringLong()}};return e?.tokenStandard&&(a.token_standard={_eq:e?.tokenStandard??"v2"}),(await v({aptosConfig:r,options:{where:a}})).collection_id}var N={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8())]};async function Bt(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:s,name:a,uri:m,propertyKeys:g,propertyTypes:P,propertyValues:I}=t,b=P?.map(S=>C[S]);return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new d(r),new d(s),new d(a),new d(m),_.MoveString(g??[]),_.MoveString(b??[]),K(I??[],b??[])],abi:N},options:n})}var Q={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new x]};async function Et(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[s??l],functionArguments:[c.from(e),c.from(r)],abi:Q},options:a})}var Y={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8()),new x]};async function Ot(t){let{aptosConfig:o,account:n,collection:e,description:r,name:s,uri:a,recipient:m,propertyKeys:g,propertyTypes:P,propertyValues:I,options:b}=t;if(g?.length!==I?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==I?.length)throw new Error("Property types and property values counts do not match");let S=P?.map(U=>C[U]);return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,s,a,_.MoveString(g??[]),_.MoveString(S??[]),K(I??[],S??[]),m],abi:Y},options:b})}var L={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function qt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??l],functionArguments:[c.from(e)],abi:L},options:s})}var z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Vt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:z},options:s})}var j={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Rt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:j},options:s})}var W={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Mt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:W},options:a})}var X={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Kt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Ut(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),_.U8(B(s,C[r]))],abi:J},options:g})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Nt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),B(s,C[r])],abi:$},options:g})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Yt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:tt},options:g})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Lt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:et},options:g})}function K(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=R(o);return M(t,n,0,[]).bcsToBytes()}export{It as a,Pt as b,bt as c,St as d,Dt as e,v as f,ht as g,vt as h,xt as i,Gt as j,Bt as k,Et as l,Ot as m,qt as n,Vt as o,Rt as p,Mt as q,Kt as r,Ut as s,Ft as t,Nt as u,Qt as v,Yt as w,Lt as x};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-SK3LIS4Z.mjs";import{f as M}from"./chunk-46O23AOD.mjs";import{c as R}from"./chunk-AOROYJ74.mjs";import{c as k}from"./chunk-2KSMV5KD.mjs";import{A as V,m as O,y as q,z as G}from"./chunk-VHNX2NUR.mjs";import{b as w,f as h,i as x,l as A,m as f,n as i,q as p,s as y}from"./chunk-T6ADNZE5.mjs";import{b as c}from"./chunk-JNO7KPMG.mjs";import{a as _,c as d}from"./chunk-ZMMLM6ZJ.mjs";import{a as T,e as D}from"./chunk-42H7WETG.mjs";import{d as E}from"./chunk-56CNRT2K.mjs";var C={BOOLEAN:"bool",U8:"u8",U16:"u16",U32:"u32",U64:"u64",U128:"u128",U256:"u256",ADDRESS:"address",STRING:"0x1::string::String",ARRAY:"vector<u8>"},l="0x4::token::Token";async function It(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await k({aptosConfig:o,query:{query:V,variables:{where_condition:e}},originMethod:"getDigitalAssetData"})).current_token_datas_v2[0]}async function Pt(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()},amount:{_gt:0}};return(await k({aptosConfig:o,query:{query:G,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function bt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:c.from(n).toStringLong()},amount:{_gt:0}},s={query:G,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function St(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:c.from(n).toStringLong()}},s={query:q,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var F={typeParameters:[],parameters:[new i(p()),new h,new i(p()),new i(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new h,new h]};async function Dt(t){let{aptosConfig:o,options:n,creator:e}=t;return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new d(t.description),new D(t.maxSupply??E),new d(t.name),new d(t.uri),new T(t.mutableDescription??!0),new T(t.mutableRoyalty??!0),new T(t.mutableURI??!0),new T(t.mutableTokenDescription??!0),new T(t.mutableTokenName??!0),new T(t.mutableTokenProperties??!0),new T(t.mutableTokenURI??!0),new T(t.tokensBurnableByCreator??!0),new T(t.tokensFreezableByCreator??!0),new D(t.royaltyNumerator??0),new D(t.royaltyDenominator??1)],abi:F},options:n})}async function v(t){let{aptosConfig:o,options:n}=t,e=n?.where;n?.tokenStandard&&(e.token_standard={_eq:n?.tokenStandard??"v2"});let r={query:O,variables:{where_condition:e,offset:n?.offset,limit:n?.limit}};return(await k({aptosConfig:o,query:r,originMethod:"getCollectionData"})).current_collections_v2[0]}async function ht(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,s=c.from(n),a={collection_name:{_eq:e},creator_address:{_eq:s.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...r,where:a}})}async function vt(t){let{aptosConfig:o,creatorAddress:n,options:e}=t,s={creator_address:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function xt(t){let{aptosConfig:o,collectionId:n,options:e}=t,s={collection_id:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function Gt(t){let{creatorAddress:o,collectionName:n,options:e,aptosConfig:r}=t,s=c.from(o),a={collection_name:{_eq:n},creator_address:{_eq:s.toStringLong()}};return e?.tokenStandard&&(a.token_standard={_eq:e?.tokenStandard??"v2"}),(await v({aptosConfig:r,options:{where:a}})).collection_id}var N={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8())]};async function Bt(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:s,name:a,uri:m,propertyKeys:g,propertyTypes:P,propertyValues:I}=t,b=P?.map(S=>C[S]);return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new d(r),new d(s),new d(a),new d(m),_.MoveString(g??[]),_.MoveString(b??[]),K(I??[],b??[])],abi:N},options:n})}var Q={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new x]};async function Et(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[s??l],functionArguments:[c.from(e),c.from(r)],abi:Q},options:a})}var Y={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8()),new x]};async function Ot(t){let{aptosConfig:o,account:n,collection:e,description:r,name:s,uri:a,recipient:m,propertyKeys:g,propertyTypes:P,propertyValues:I,options:b}=t;if(g?.length!==I?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==I?.length)throw new Error("Property types and property values counts do not match");let S=P?.map(U=>C[U]);return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,s,a,_.MoveString(g??[]),_.MoveString(S??[]),K(I??[],S??[]),m],abi:Y},options:b})}var L={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function qt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??l],functionArguments:[c.from(e)],abi:L},options:s})}var z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Vt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:z},options:s})}var j={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Rt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:j},options:s})}var W={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Mt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:W},options:a})}var X={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Kt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Ut(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),_.U8(B(s,C[r]))],abi:J},options:g})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Nt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),B(s,C[r])],abi:$},options:g})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Yt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:tt},options:g})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Lt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:et},options:g})}function K(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=R(o);return M(t,n,0,[]).bcsToBytes()}export{It as a,Pt as b,bt as c,St as d,Dt as e,v as f,ht as g,vt as h,xt as i,Gt as j,Bt as k,Et as l,Ot as m,qt as n,Vt as o,Rt as p,Mt as q,Kt as r,Ut as s,Ft as t,Nt as u,Qt as v,Yt as w,Lt as x};
|
|
2
|
+
//# sourceMappingURL=chunk-2ESU5N3V.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as c,v as n}from"./chunk-VHNX2NUR.mjs";import{b as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{l as c,v as n}from"./chunk-VHNX2NUR.mjs";import{b as i}from"./chunk-372SLYVR.mjs";import{c as p}from"./chunk-LKKI2KAP.mjs";async function d(o){let{aptosConfig:s}=o,{data:e}=await i({aptosConfig:s,originMethod:"getLedgerInfo",path:""});return e}async function C(o){let{aptosConfig:s,limit:e}=o;return(await a({aptosConfig:s,query:{query:c,variables:{limit:e}},originMethod:"getChainTopUserTransactions"})).user_transactions}async function a(o){let{aptosConfig:s,query:e,originMethod:t}=o,{data:r}=await p({aptosConfig:s,originMethod:t??"queryIndexer",path:"",body:e,overrides:{WITH_CREDENTIALS:!1}});return r}async function u(o){let{aptosConfig:s}=o;return(await a({aptosConfig:s,query:{query:n},originMethod:"getProcessorStatuses"})).processor_status}async function h(o){let s=await u({aptosConfig:o.aptosConfig});return BigInt(s[0].last_success_version)}async function T(o){let{aptosConfig:s,processorType:e}=o;return(await a({aptosConfig:s,query:{query:n,variables:{where_condition:{processor:{_eq:e}}}},originMethod:"getProcessorStatus"})).processor_status[0]}export{d as a,C as b,a as c,u as d,h as e,T as f};
|
|
2
|
+
//# sourceMappingURL=chunk-2KSMV5KD.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o,b as r,c as t,d as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o,b as r,c as t,d as s}from"./chunk-ZXVN3HXB.mjs";import{a as n}from"./chunk-33CVOPIN.mjs";var i=class{constructor(e){this.config=e}async getModuleEventsByEventType(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),o({aptosConfig:this.config,...e})}async getAccountEventsByCreationNumber(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),r({aptosConfig:this.config,...e})}async getAccountEventsByEventType(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"events_processor"}),t({aptosConfig:this.config,...e})}async getEvents(e){return await n({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"events_processor"}),s({aptosConfig:this.config,...e})}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2MN7DW2J.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-NK67FECB.mjs";import{a as u}from"./chunk-ALNQK276.mjs";import{a as A}from"./chunk-U6OCK6T4.mjs";import{a as h}from"./chunk-YEWZAR76.mjs";import{a as y}from"./chunk-IBZKCBN5.mjs";import{a as m}from"./chunk-QI7OREBM.mjs";import{a as p}from"./chunk-ZMS3AOEZ.mjs";import{a as d}from"./chunk-V5NDNR36.mjs";import{a as r}from"./chunk-YJVZFYBX.mjs";import{a}from"./chunk-UFPYCROT.mjs";import{a as c}from"./chunk-2MN7DW2J.mjs";import{a as l}from"./chunk-S5SQJRAV.mjs";import{a as f}from"./chunk-PMGK5IHB.mjs";import{a as s}from"./chunk-DBTKJMLV.mjs";var t=class{constructor(n){this.config=new d(n),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 l(this.config),this.fungibleAsset=new f(this.config),this.general=new g(this.config),this.staking=new h(this.config),this.transaction=new m(this.config),this.table=new y(this.config),this.keyless=new u(this.config),this.object=new A(this.config)}};function e(b,n,w){Object.getOwnPropertyNames(n.prototype).forEach(i=>{let o=Object.getOwnPropertyDescriptor(n.prototype,i);o&&(o.value=function(...j){return this[w][i](...j)},Object.defineProperty(b.prototype,i,o))})}e(t,s,"account");e(t,p,"ans");e(t,r,"coin");e(t,a,"digitalAsset");e(t,c,"event");e(t,l,"faucet");e(t,f,"fungibleAsset");e(t,g,"general");e(t,h,"staking");e(t,m,"transaction");e(t,y,"table");e(t,u,"keyless");e(t,A,"object");export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2QGJDHME.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-T6ADNZE5.mjs";import{a as g}from"./chunk-ACVIE7IE.mjs";import{a as p}from"./chunk-LGTOOAQI.mjs";import{b as y}from"./chunk-JNO7KPMG.mjs";import{a as S}from"./chunk-ZMBXHMVQ.mjs";import{a as v,b as M}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-T6ADNZE5.mjs";import{a as g}from"./chunk-ACVIE7IE.mjs";import{a as p}from"./chunk-LGTOOAQI.mjs";import{b as y}from"./chunk-JNO7KPMG.mjs";import{a as S}from"./chunk-ZMBXHMVQ.mjs";import{a as v,b as M}from"./chunk-ZMMLM6ZJ.mjs";import{a as F,b as d,c as T,d as x,e as E,f as _,g as w}from"./chunk-42H7WETG.mjs";import{a as u}from"./chunk-AJ5JHBAE.mjs";function I(t){let e=t.deserializeUleb128AsU32();switch(e){case 0:return d.deserialize(t);case 1:return E.deserialize(t);case 2:return _.deserialize(t);case 3:return y.deserialize(t);case 4:return v.deserialize(t,d);case 5:return F.deserialize(t);case 6:return T.deserialize(t);case 7:return x.deserialize(t);case 8:return w.deserialize(t);case 9:return M.deserialize(t);default:throw new Error(`Unknown variant index for ScriptTransactionArgument: ${e}`)}}var a=class extends u{static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return A.load(e);case 2:return z.load(e);case 3:return h.load(e);default:throw new Error(`Unknown variant index for TransactionPayload: ${r}`)}}},A=class t extends a{constructor(e){super(),this.script=e}serialize(e){e.serializeU32AsUleb128(0),this.script.serialize(e)}static load(e){let r=U.deserialize(e);return new t(r)}},z=class t extends a{constructor(e){super(),this.entryFunction=e}serialize(e){e.serializeU32AsUleb128(2),this.entryFunction.serialize(e)}static load(e){let r=l.deserialize(e);return new t(r)}},h=class t extends a{constructor(e){super(),this.multiSig=e}serialize(e){e.serializeU32AsUleb128(3),this.multiSig.serialize(e)}static load(e){let r=f.deserialize(e);return new t(r)}},l=class t{constructor(e,r,i,n){this.module_name=e,this.function_name=r,this.type_args=i,this.args=n}static build(e,r,i,n){return new t(g.fromStr(e),new p(r),i,n)}serialize(e){this.module_name.serialize(e),this.function_name.serialize(e),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(r=>{r.serializeForEntryFunction(e)})}static deserialize(e){let r=g.deserialize(e),i=p.deserialize(e),n=e.deserializeVector(m),o=e.deserializeUleb128AsU32(),s=new Array;for(let c=0;c<o;c+=1){let B=e.deserializeUleb128AsU32(),D=S.deserialize(e,B);s.push(D)}return new t(r,i,n,s)}},U=class t{constructor(e,r,i){this.bytecode=e,this.type_args=r,this.args=i}serialize(e){e.serializeBytes(this.bytecode),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(r=>{r.serializeForScriptFunction(e)})}static deserialize(e){let r=e.deserializeBytes(),i=e.deserializeVector(m),n=e.deserializeUleb128AsU32(),o=new Array;for(let s=0;s<n;s+=1){let c=I(e);o.push(c)}return new t(r,i,o)}},f=class t{constructor(e,r){this.multisig_address=e,this.transaction_payload=r}serialize(e){this.multisig_address.serialize(e),this.transaction_payload===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.transaction_payload.serialize(e))}static deserialize(e){let r=y.deserialize(e),i=e.deserializeBool(),n;return i&&(n=b.deserialize(e)),new t(r,n)}},b=class t extends u{constructor(e){super(),this.transaction_payload=e}serialize(e){e.serializeU32AsUleb128(0),this.transaction_payload.serialize(e)}static deserialize(e){return e.deserializeUleb128AsU32(),new t(l.deserialize(e))}};export{I as a,a as b,A as c,z as d,h as e,l as f,U as g,f as h,b as i};
|
|
2
|
+
//# sourceMappingURL=chunk-333QBK32.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{h as e}from"./chunk-WFK3XRQX.mjs";async function i(o){o.minimumLedgerVersion!==void 0&&await e({aptosConfig:o.config,minimumLedgerVersion:o.minimumLedgerVersion,processorType:o.processorType})}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-33CVOPIN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as p}from"./chunk-VWGB5BHW.mjs";async function r(e){let{aptosConfig:t,overrides:s,params:n,contentType:o,acceptType:i,path:a,originMethod:R,type:d}=e,u=t.getRequestUrl(d);return p({url:u,method:"GET",originMethod:R,path:a,contentType:o,acceptType:i,params:n,overrides:{...t.clientConfig,...s}},t,e.type)}async function y(e){let{aptosConfig:t}=e;return r({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function m(e){return r({...e,type:"Pepper"})}async function A(e){let t=[],s,n=e.params;do{let o=await r({type:"Fullnode",aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:n,overrides:e.overrides});s=o.headers["x-aptos-cursor"],delete o.headers,t.push(...o.data),n.start=s}while(s!=null);return t}export{r as a,y as b,m as c,A as d};
|
|
2
|
+
//# sourceMappingURL=chunk-372SLYVR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as l}from"./chunk-AOROYJ74.mjs";import{a as k,b as c,d as A,e as g,f as P,g as z,h as D,i as m,j as L,l as R,m as X,n as q,o as H,p as J,q as K,s as i,t as Q}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as l}from"./chunk-AOROYJ74.mjs";import{a as k,b as c,d as A,e as g,f as P,g as z,h as D,i as m,j as L,l as R,m as X,n as q,o as H,p as J,q as K,s as i,t as Q}from"./chunk-BAEIZAP7.mjs";import{c as j}from"./chunk-4OV2A6PJ.mjs";import{b as S,c as I,d as x,e as M,f as O,g as C,h as _,i as V,n as G}from"./chunk-T6ADNZE5.mjs";import{b as d}from"./chunk-JNO7KPMG.mjs";import{a as y,c as F,d as s}from"./chunk-ZMMLM6ZJ.mjs";import{a as w,b as h,c as B,d as E,e as v,f as $,g as b}from"./chunk-42H7WETG.mjs";var Y=new TextEncoder;function sn(n){return n?.map(e=>c(e)?l(e):e)??[]}async function W(n,e,t,u){let r=await j({aptosConfig:u,accountAddress:n,moduleName:e});if(r.abi)return r.abi.exposed_functions.find(o=>o.name===t)}async function fn(n,e,t,u){let r=await W(n,e,t,u);if(!r)throw new Error(`Could not find entry function ABI for '${n}::${e}::${t}'`);if(!r.is_entry)throw new Error(`'${n}::${e}::${t}' is not an entry function`);let o=Q(r),T=[];for(let f=o;f<r.params.length;f+=1)T.push(l(r.params[f],{allowGenerics:!0}));return{signers:o,typeParameters:r.generic_type_params,parameters:T}}async function on(n,e,t,u){let r=await W(n,e,t,u);if(!r)throw new Error(`Could not find view function ABI for '${n}::${e}::${t}'`);if(!r.is_view)throw new Error(`'${n}::${e}::${t}' is not an view function`);let o=[];for(let f=0;f<r.params.length;f+=1)o.push(l(r.params[f],{allowGenerics:!0}));let T=[];for(let f=0;f<r.return.length;f+=1)T.push(l(r.return[f],{allowGenerics:!0}));return{typeParameters:r.generic_type_params,parameters:o,returnTypes:T}}function cn(n,e,t,u,r){if(u>=e.parameters.length)throw new Error(`Too many arguments for '${n}', expected ${e.parameters.length}`);let o=e.parameters[u];return U(t,o,u,r)}function U(n,e,t,u){return z(n)?(p(e,n,t),n):Z(n,e,t,u)}function Z(n,e,t,u){if(e.isBool()){if(k(n))return new w(n);if(c(n)){if(n==="true")return new w(!0);if(n==="false")return new w(!1)}i("boolean",t)}if(e.isAddress()){if(c(n))return d.fromString(n);i("string | AccountAddress",t)}if(e.isU8()){let r=A(n);if(r!==void 0)return new h(r);i("number | string",t)}if(e.isU16()){let r=A(n);if(r!==void 0)return new B(r);i("number | string",t)}if(e.isU32()){let r=A(n);if(r!==void 0)return new E(r);i("number | string",t)}if(e.isU64()){if(g(n))return new v(BigInt(n));i("bigint | number | string",t)}if(e.isU128()){if(g(n))return new $(BigInt(n));i("bigint | number | string",t)}if(e.isU256()){if(g(n))return new b(BigInt(n));i("bigint | number | string",t)}if(e.isGeneric()){let r=e.value;if(r<0||r>=u.length)throw new Error(`Generic argument ${e.toString()} is invalid for argument ${t}`);return U(n,u[r],t,u)}if(e.isVector()){if(e.value.isU8()){if(c(n))return y.U8(Y.encode(n));if(n instanceof Uint8Array)return y.U8(n);if(n instanceof ArrayBuffer)return y.U8(new Uint8Array(n))}if(Array.isArray(n))return new y(n.map(r=>U(r,e.value,t,u)));throw new Error(`Type mismatch for argument ${t}, type '${e.toString()}'`)}if(e.isStruct()){if(e.isString()){if(c(n))return new F(n);i("string",t)}if(e.isObject()){if(c(n))return d.fromString(n);i("string | AccountAddress",t)}if(e.isOption()){if(P(n)){let r=e.value.typeArgs[0];return r instanceof S?new s(null):r instanceof V?new s(null):r instanceof I?new s(null):r instanceof x?new s(null):r instanceof M?new s(null):r instanceof O?new s(null):r instanceof C?new s(null):r instanceof _?new s(null):new s(null)}return new s(U(n,e.value.typeArgs[0],t,u))}throw new Error(`Unsupported struct input type for argument ${t}, type '${e.toString()}'`)}throw new Error(`Type mismatch for argument ${t}, type '${e.toString()}'`)}function p(n,e,t){if(n.isBool()){if(D(e))return;i("Bool",t)}if(n.isAddress()){if(m(e))return;i("AccountAddress",t)}if(n.isU8()){if(R(e))return;i("U8",t)}if(n.isU16()){if(X(e))return;i("U16",t)}if(n.isU32()){if(q(e))return;i("U32",t)}if(n.isU64()){if(H(e))return;i("U64",t)}if(n.isU128()){if(J(e))return;i("U128",t)}if(n.isU256()){if(K(e))return;i("U256",t)}if(n.isVector()){if(e instanceof y){e.values.length>0&&p(n.value,e.values[0],t);return}i("MoveVector",t)}if(n instanceof G){if(n.isString()){if(L(e))return;i("MoveString",t)}if(n.isObject()){if(m(e))return;i("AccountAddress",t)}if(n.isOption()){if(e instanceof s){e.value!==void 0&&p(n.value.typeArgs[0],e.value,t);return}i("MoveOption",t)}}throw new Error(`Type mismatch for argument ${t}, expected '${n.toString()}'`)}export{sn as a,W as b,fn as c,on as d,cn as e,U as f};
|
|
2
|
+
//# sourceMappingURL=chunk-46O23AOD.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as g}from"./chunk-DC2IESER.mjs";import{e as a}from"./chunk-HMMNQFVM.mjs";import{a as m,b as u}from"./chunk-TCXYTPUR.mjs";import{b as y}from"./chunk-JNO7KPMG.mjs";var p=class l{constructor(e){let{multiKey:s,signers:i,address:r}=e;this.publicKey=s,this.signingScheme=3,this.accountAddress=r?y.from(r):this.publicKey.authKey().derivedAddress();let t=[];for(let n of i)t.push(this.publicKey.getIndex(n.publicKey));let c=i.map((n,o)=>[n,t[o]]);c.sort((n,o)=>n[1]-o[1]),this.signers=c.map(n=>n[0]),this.signerIndicies=c.map(n=>n[1]),this.signaturesBitmap=this.publicKey.createBitmap({bits:t})}static fromPublicKeysAndSigners(e){let{publicKeys:s,signaturesRequired:i,signers:r}=e,t=new m({publicKeys:s,signaturesRequired:i});return new l({multiKey:t,signers:r})}static isMultiKeySigner(e){return e instanceof l}signWithAuthenticator(e){return new a(this.publicKey,this.sign(e))}signTransactionWithAuthenticator(e){return new a(this.publicKey,this.signTransaction(e))}async waitForProofFetch(){let s=this.signers.filter(i=>i instanceof g).map(async i=>i.waitForProofFetch());await Promise.all(s)}async checkKeylessAccountValidity(e){let i=this.signers.filter(r=>r instanceof g).map(r=>r.checkKeylessAccountValidity(e));await Promise.all(i)}sign(e){let s=[];for(let i of this.signers)s.push(i.sign(e));return new u({signatures:s,bitmap:this.signaturesBitmap})}signTransaction(e){let s=[];for(let i of this.signers)s.push(i.signTransaction(e));return new u({signatures:s,bitmap:this.signaturesBitmap})}verifySignature(e){let{message:s,signature:i}=e;if(!this.signerIndicies.every((t,c)=>c===0||t>=this.signerIndicies[c-1]))return!1;for(let t=0;t<i.signatures.length;t+=1){let c=i.signatures[t];if(!this.publicKey.publicKeys[this.signerIndicies[t]].verifySignature({message:s,signature:c}))return!1}return!0}};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4DI5SPSK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as a}from"./chunk-RCA73RVB.mjs";import e from"eventemitter3";var i=class extends e{constructor(t){super(),this.config=t}start(t){let{sender:n}=t;this.account=n,this.transactionWorker=new a(this.config,n),this.transactionWorker.start(),this.registerToEvents()}push(t){let{data:n,options:o}=t;for(let r of n)this.transactionWorker.push(r,o)}registerToEvents(){this.transactionWorker.on("transactionSent",async t=>{this.emit("transactionSent",t)}),this.transactionWorker.on("transactionSendFailed",async t=>{this.emit("transactionSendFailed",t)}),this.transactionWorker.on("transactionExecuted",async t=>{this.emit("transactionExecuted",t)}),this.transactionWorker.on("transactionExecutionFailed",async t=>{this.emit("transactionExecutionFailed",t)}),this.transactionWorker.on("executionFinish",async t=>{this.emit("executionFinish",t)})}forSingleAccount(t){try{let{sender:n,data:o,options:r}=t;this.start({sender:n}),this.push({data:o,options:r})}catch(n){throw new Error(`failed to submit transactions with error: ${n}`)}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4DP3PEYK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-4OV2A6PJ.mjs";import{a as e,c as n}from"./chunk-V4FKFCBL.mjs";var r=class{constructor(t,i,o,a,c){this.lastUncommintedNumber=null;this.currentNumber=null;this.lock=!1;this.aptosConfig=t,this.account=i,this.maxWaitTime=o,this.maximumInFlight=a,this.sleepTime=c}async nextSequenceNumber(){for(;this.lock;)await e(this.sleepTime);this.lock=!0;let t=BigInt(0);try{if((this.lastUncommintedNumber===null||this.currentNumber===null)&&await this.initialize(),this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight){await this.update();let i=n();for(;this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight;)await e(this.sleepTime),n()-i>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, re-syncing ${this.account.accountAddress.toString()}`),await this.initialize()):await this.update()}t=this.currentNumber,this.currentNumber+=BigInt(1)}catch(i){console.error("error in getting next sequence number for this account",i)}finally{this.lock=!1}return t}async initialize(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});this.currentNumber=BigInt(t),this.lastUncommintedNumber=BigInt(t)}async update(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});return this.lastUncommintedNumber=BigInt(t),this.lastUncommintedNumber}async synchronize(){if(this.lastUncommintedNumber!==this.currentNumber){for(;this.lock;)await e(this.sleepTime);this.lock=!0;try{await this.update();let t=n();for(;this.lastUncommintedNumber!==this.currentNumber;)n()-t>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, re-syncing ${this.account.accountAddress.toString()}`),await this.initialize()):(await e(this.sleepTime),await this.update())}catch(t){console.error("error in synchronizing this account sequence number with the one on chain",t)}finally{this.lock=!1}}}};export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4MTSP4S2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as K}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as K}from"./chunk-N62NUAHT.mjs";import{c as d}from"./chunk-2KSMV5KD.mjs";import{d as b,e as v,f as q,g as O,i as P,j as S,k as M,u as G}from"./chunk-VHNX2NUR.mjs";import{a as f}from"./chunk-ELXJ5A4B.mjs";import{a as k}from"./chunk-6ZOVTYLJ.mjs";import{a as T}from"./chunk-JMPHD4BP.mjs";import{b as C}from"./chunk-7N7FEBZA.mjs";import{c as _}from"./chunk-H3C3VTHS.mjs";import{a as g}from"./chunk-AKIO3OIT.mjs";import{b as i}from"./chunk-JNO7KPMG.mjs";import{a as w}from"./chunk-HBIDHQ2M.mjs";import{b as A,d as p}from"./chunk-372SLYVR.mjs";import{e as h}from"./chunk-F45G3GP3.mjs";import{e as y}from"./chunk-J7PJSK3J.mjs";async function R(e){let{aptosConfig:n,accountAddress:t}=e,{data:o}=await A({aptosConfig:n,originMethod:"getInfo",path:`accounts/${i.from(t).toString()}`});return o}async function Z(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getModules",path:`accounts/${i.from(t).toString()}/modules`,params:{ledger_version:o?.ledgerVersion,start:o?.offset,limit:o?.limit??1e3}})}async function oo(e){return e.options?.ledgerVersion!==void 0?Q(e):w(async()=>Q(e),`module-${e.accountAddress}-${e.moduleName}`,1e3*60*5)()}async function Q(e){let{aptosConfig:n,accountAddress:t,moduleName:o,options:r}=e,{data:s}=await A({aptosConfig:n,originMethod:"getModule",path:`accounts/${i.from(t).toString()}/module/${o}`,params:{ledger_version:r?.ledgerVersion}});return s}async function eo(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getTransactions",path:`accounts/${i.from(t).toString()}/transactions`,params:{start:o?.offset,limit:o?.limit}})}async function to(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getResources",path:`accounts/${i.from(t).toString()}/resources`,params:{ledger_version:o?.ledgerVersion,start:o?.offset,limit:o?.limit??999}})}async function x(e){let{aptosConfig:n,accountAddress:t,resourceType:o,options:r}=e,{data:s}=await A({aptosConfig:n,originMethod:"getResource",path:`accounts/${i.from(t).toString()}/resource/${o}`,params:{ledger_version:r?.ledgerVersion}});return s.data}async function L(e){let{aptosConfig:n,authenticationKey:t,options:o}=e,r=await x({aptosConfig:n,accountAddress:"0x1",resourceType:"0x1::account::OriginatingAddress",options:o}),{address_map:{handle:s}}=r,c=i.from(t);try{let a=await K({aptosConfig:n,handle:s,data:{key:c.toString(),key_type:"address",value_type:"address"},options:o});return i.from(a)}catch(a){if(a instanceof h&&a.data.error_code==="table_item_not_found")return c;throw a}}async function no(e){let{aptosConfig:n,accountAddress:t}=e,r={owner_address:{_eq:i.from(t).toStringLong()},amount:{_gt:0}},c=await d({aptosConfig:n,query:{query:S,variables:{where_condition:r}},originMethod:"getAccountTokensCount"});return c.current_token_ownerships_v2_aggregate.aggregate?c.current_token_ownerships_v2_aggregate.aggregate.count:0}async function ro(e){let{aptosConfig:n,accountAddress:t,options:o}=e,s={owner_address:{_eq:i.from(t).toStringLong()},amount:{_gt:0}};o?.tokenStandard&&(s.token_standard={_eq:o?.tokenStandard});let c={query:O,variables:{where_condition:s,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedTokens"})).current_token_ownerships_v2}async function so(e){let{aptosConfig:n,accountAddress:t,collectionAddress:o,options:r}=e,s=i.from(t).toStringLong(),c=i.from(o).toStringLong(),a={owner_address:{_eq:s},current_token_data:{collection_id:{_eq:c}},amount:{_gt:0}};r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard});let u={query:P,variables:{where_condition:a,offset:r?.offset,limit:r?.limit,order_by:r?.orderBy}};return(await d({aptosConfig:n,query:u,originMethod:"getAccountOwnedTokensFromCollectionAddress"})).current_token_ownerships_v2}async function co(e){let{aptosConfig:n,accountAddress:t,options:o}=e,s={owner_address:{_eq:i.from(t).toStringLong()}};o?.tokenStandard&&(s.current_collection={token_standard:{_eq:o?.tokenStandard}});let c={query:q,variables:{where_condition:s,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCollectionsWithOwnedTokens"})).current_collection_ownership_v2_view}async function io(e){let{aptosConfig:n,accountAddress:t}=e,o=i.from(t).toStringLong(),s=await d({aptosConfig:n,query:{query:M,variables:{address:o}},originMethod:"getAccountTransactionsCount"});return s.account_transactions_aggregate.aggregate?s.account_transactions_aggregate.aggregate.count:0}async function ao(e){let{aptosConfig:n,accountAddress:t,coinType:o,faMetadataAddress:r}=e,s=o,c;if(o!==void 0&&r!==void 0)c=i.from(r).toStringLong();else if(o!==void 0&&r===void 0)o===y?c=i.A.toStringLong():c=k(i.A,o).toStringLong();else if(o===void 0&&r!==void 0){let m=i.from(r);c=m.toStringLong(),m===i.A&&(s=y)}else throw new Error("Either coinType, fungibleAssetAddress, or both must be provided");let a=i.from(t).toStringLong(),u={asset_type:{_eq:c}};s!==void 0&&(u={asset_type:{_in:[s,c]}});let l=await B({aptosConfig:n,accountAddress:a,options:{where:u}});return l[0]?l[0].amount:0}async function B(e){let{aptosConfig:n,accountAddress:t,options:o}=e,r=i.from(t).toStringLong(),s={...o?.where,owner_address:{_eq:r}},c={query:v,variables:{where_condition:s,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCoinsData"})).current_fungible_asset_balances}async function uo(e){let{aptosConfig:n,accountAddress:t}=e,o=i.from(t).toStringLong(),s=await d({aptosConfig:n,query:{query:b,variables:{address:o}},originMethod:"getAccountCoinsCount"});if(!s.current_fungible_asset_balances_aggregate.aggregate)throw Error("Failed to get the count of account coins");return s.current_fungible_asset_balances_aggregate.aggregate.count}async function go(e){let{aptosConfig:n,accountAddress:t,options:o}=e,s={owner_address:{_eq:i.from(t).toStringLong()}},c={query:G,variables:{where_condition:s,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedObjects"})).current_objects}async function Ao(e){let{aptosConfig:n,privateKey:t}=e,o=new T(t.publicKey());if(t instanceof C){let s=g.fromPublicKey({publicKey:o}).derivedAddress();return f.fromPrivateKey({privateKey:t,address:s})}if(t instanceof _){let r=g.fromPublicKey({publicKey:o});if(await I({authKey:r,aptosConfig:n})){let u=r.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!1})}let c=g.fromPublicKey({publicKey:o.publicKey});if(await I({authKey:c,aptosConfig:n})){let u=c.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!0})}}throw new Error(`Can't derive account from private key ${t}`)}async function I(e){let{aptosConfig:n,authKey:t}=e,o=await L({aptosConfig:n,authenticationKey:t.derivedAddress()});try{return await R({aptosConfig:n,accountAddress:o}),!0}catch(r){if(r.status===404)return!1;throw new Error(`Error while looking for an account info ${o.toString()}`)}}export{R as a,Z as b,oo as c,eo as d,to as e,x as f,L as g,no as h,ro as i,so as j,co as k,io as l,ao as m,B as n,uo as o,go as p,Ao as q,I as r};
|
|
2
|
+
//# sourceMappingURL=chunk-4OV2A6PJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p,b as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p,b as u}from"./chunk-KCWRCWNT.mjs";import{b as h,c as d,e as m}from"./chunk-GMKKHGXK.mjs";import{c as s}from"./chunk-H3C3VTHS.mjs";import{c as b,d as K}from"./chunk-V4FKFCBL.mjs";import{a as l}from"./chunk-J3E4UMBB.mjs";import{a as c}from"./chunk-AJ5JHBAE.mjs";import{b as y}from"./chunk-SPRNSFUV.mjs";import{randomBytes as E}from"@noble/hashes/utils";var S=1209600,i=class i extends c{constructor(e){super();let{privateKey:r,expiryDateSecs:a,blinder:n}=e;this.privateKey=r,this.publicKey=new p(r.publicKey()),this.expiryDateSecs=a||K(b()+S),this.blinder=n!==void 0?y.fromHexInput(n).toUint8Array():v();let t=h(this.publicKey.bcsToBytes(),93);t.push(BigInt(this.expiryDateSecs)),t.push(d(this.blinder));let x=m(t);this.nonce=x.toString()}getPublicKey(){return this.publicKey}isExpired(){return Math.floor(Date.now()/1e3)>this.expiryDateSecs}serialize(e){e.serializeU32AsUleb128(this.publicKey.variant),e.serializeBytes(this.privateKey.toUint8Array()),e.serializeU64(this.expiryDateSecs),e.serializeFixedBytes(this.blinder)}static deserialize(e){let r=e.deserializeUleb128AsU32(),a;switch(r){case 0:a=s.deserialize(e);break;default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}let n=e.deserializeU64(),t=e.deserializeFixedBytes(31);return new i({privateKey:a,expiryDateSecs:Number(n),blinder:t})}static fromBytes(e){return i.deserialize(new l(e))}static generate(e){let r;switch(e?.scheme){case 0:default:r=s.generate()}return new i({privateKey:r,expiryDateSecs:e?.expiryDateSecs})}sign(e){if(this.isExpired())throw new Error("EphemeralKeyPair has expired");return new u(this.privateKey.sign(e))}};i.BLINDER_LENGTH=31;var o=i;function v(){return E(o.BLINDER_LENGTH)}export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4XB3BB5Z.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-IHGA5KAD.mjs";import{h as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-IHGA5KAD.mjs";import{h as a}from"./chunk-SK3LIS4Z.mjs";import{a as o}from"./chunk-KDMSOCZY.mjs";var n=class{constructor(t){this.config=t}async simple(t){return a({aptosConfig:this.config,...t})}async multiAgent(t){return a({aptosConfig:this.config,...t})}};o([i],n.prototype,"simple",1),o([i],n.prototype,"multiAgent",1);export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5LGKGWLX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as K}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as K}from"./chunk-DC2IESER.mjs";import{i as m,r as u}from"./chunk-PXMNAP2Q.mjs";import{a as y}from"./chunk-J3E4UMBB.mjs";import{b as f}from"./chunk-SPRNSFUV.mjs";var h=class c extends K{constructor(e){let r=m.create(e);super({publicKey:r,...e}),this.publicKey=r}serialize(e){super.serialize(e)}static deserialize(e){let{address:r,proof:l,ephemeralKeyPair:i,jwt:o,uidKey:t,pepper:s,verificationKeyHash:n}=K.partialDeserialize(e),{iss:a,aud:p,uidVal:d}=u({jwt:o,uidKey:t});return new c({address:r,proof:l,ephemeralKeyPair:i,iss:a,uidKey:t,uidVal:d,aud:p,pepper:s,jwt:o,verificationKeyHash:n})}static fromBytes(e){return c.deserialize(new y(f.hexInputToUint8Array(e)))}static create(e){let{address:r,proof:l,jwt:i,ephemeralKeyPair:o,pepper:t,uidKey:s="sub",proofFetchCallback:n,verificationKey:a}=e,{iss:p,aud:d,uidVal:g}=u({jwt:i,uidKey:s});return new c({address:r,proof:l,ephemeralKeyPair:o,iss:p,uidKey:s,uidVal:g,aud:d,pepper:t,jwt:i,proofFetchCallback:n,verificationKeyHash:a?a.hash():void 0})}};export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5PVZ4N42.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-BUAHUVAD.mjs";import{a as f}from"./chunk-MHN6XY4Z.mjs";import{a as S}from"./chunk-4O5XDQDO.mjs";import{a as m}from"./chunk-5B3SMBXQ.mjs";import{e as h,j as d}from"./chunk-OIOGOW6I.mjs";import{a as g}from"./chunk-AJ5JHBAE.mjs";import{b as s}from"./chunk-SPRNSFUV.mjs";import{sha3_256 as H}from"@noble/hashes/sha3";import{secp256k1 as y}from"@noble/curves/secp256k1";import{HDKey as A}from"@scure/bip32";var i=class i extends f{constructor(e){super();let t=s.fromHexInput(e),{length:r}=t.toUint8Array();if(r===i.LENGTH)this.key=t;else if(r===i.COMPRESSED_LENGTH){let o=y.ProjectivePoint.fromHex(t.toUint8Array());this.key=s.fromHexInput(o.toRawBytes(!1))}else throw new Error(`PublicKey length should be ${i.LENGTH} or ${i.COMPRESSED_LENGTH}, received ${r}`)}verifySignature(e){let{message:t,signature:r}=e,o=m(t),c=s.fromHexInput(o).toUint8Array(),x=H(c),P=r.toUint8Array();return y.verify(P,x,this.key.toUint8Array(),{lowS:!0})}toUint8Array(){return this.key.toUint8Array()}serialize(e){e.serializeBytes(this.key.toUint8Array())}deserialize(e){let t=e.deserializeBytes();return new l(t)}static deserialize(e){let t=e.deserializeBytes();return new i(t)}static isPublicKey(e){return e instanceof i}static isInstance(e){return"key"in e&&e.key?.data?.length===i.LENGTH}};i.LENGTH=65,i.COMPRESSED_LENGTH=33;var p=i,n=class n extends g{constructor(e,t){super();let r=u.parseHexInput(e,"secp256k1",t);if(r.toUint8Array().length!==n.LENGTH)throw new Error(`PrivateKey length should be ${n.LENGTH}`);this.key=r}static generate(){let e=y.utils.randomPrivateKey();return new n(e,!1)}static fromDerivationPath(e,t){if(!h(e))throw new Error(`Invalid derivation path ${e}`);return n.fromDerivationPathInner(e,d(t))}static fromDerivationPathInner(e,t){let{privateKey:r}=A.fromMasterSeed(t).derive(e);if(r===null)throw new Error("Invalid key");return new n(r,!1)}sign(e){let t=m(e),r=s.fromHexInput(t),o=H(r.toUint8Array()),c=y.sign(o,this.key.toUint8Array(),{lowS:!0});return new l(c.toCompactRawBytes())}publicKey(){let e=y.getPublicKey(this.key.toUint8Array(),!1);return new p(e)}toUint8Array(){return this.key.toUint8Array()}toString(){return this.toHexString()}toHexString(){return this.key.toString()}toAIP80String(){return u.formatPrivateKey(this.key.toString(),"secp256k1")}serialize(e){e.serializeBytes(this.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new n(t,!1)}static isPrivateKey(e){return e instanceof n}};n.LENGTH=32;var v=n,a=class a extends S{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}, received ${t.toUint8Array().length}`);this.data=t}toUint8Array(){return this.data.toUint8Array()}serialize(e){e.serializeBytes(this.data.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new a(t)}};a.LENGTH=64;var l=a;export{p as a,v as b,l as c};
|
|
2
|
+
//# sourceMappingURL=chunk-7N7FEBZA.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/crypto/secp256k1.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { sha3_256 } from \"@noble/hashes/sha3\";\nimport { secp256k1 } from \"@noble/curves/secp256k1\";\nimport { HDKey } from \"@scure/bip32\";\nimport { Serializable, Deserializer, Serializer } from \"../../bcs\";\nimport { Hex } from \"../hex\";\nimport { HexInput, PrivateKeyVariants } from \"../../types\";\nimport { isValidBIP44Path, mnemonicToSeed } from \"./hdKey\";\nimport { PrivateKey } from \"./privateKey\";\nimport { PublicKey, VerifySignatureArgs } from \"./publicKey\";\nimport { Signature } from \"./signature\";\nimport { convertSigningMessage } from \"./utils\";\n\n/**\n * Represents a Secp256k1 ECDSA public key.\n *\n * @extends PublicKey\n * @property LENGTH - The length of the Secp256k1 public key in bytes.\n */\nexport class Secp256k1PublicKey extends PublicKey {\n // Secp256k1 ecdsa public keys contain a prefix indicating compression and two 32-byte coordinates.\n static readonly LENGTH: number = 65;\n\n // If it's compressed, it is only 33 bytes\n static readonly COMPRESSED_LENGTH: number = 33;\n\n // Hex value of the public key\n private readonly key: Hex;\n\n /**\n * Create a new PublicKey instance from a HexInput, which can be a string or Uint8Array.\n * This constructor validates the length of the provided signature data.\n *\n * @param hexInput - A HexInput (string or Uint8Array) representing the signature data.\n * @throws Error if the length of the signature data is not equal to Secp256k1Signature.LENGTH.\n */\n constructor(hexInput: HexInput) {\n super();\n\n const hex = Hex.fromHexInput(hexInput);\n const { length } = hex.toUint8Array();\n if (length === Secp256k1PublicKey.LENGTH) {\n this.key = hex;\n } else if (length === Secp256k1PublicKey.COMPRESSED_LENGTH) {\n const point = secp256k1.ProjectivePoint.fromHex(hex.toUint8Array());\n this.key = Hex.fromHexInput(point.toRawBytes(false));\n } else {\n throw new Error(\n `PublicKey length should be ${Secp256k1PublicKey.LENGTH} or ${Secp256k1PublicKey.COMPRESSED_LENGTH}, received ${length}`,\n );\n }\n }\n\n // region PublicKey\n /**\n * Verifies a Secp256k1 signature against the public key.\n *\n * This function checks the validity of a signature for a given message, ensuring that the signature is canonical as a malleability check.\n *\n * @param args - The arguments for verifying the signature.\n * @param args.message - The message that was signed.\n * @param args.signature - The signature to verify against the public key.\n */\n verifySignature(args: VerifySignatureArgs): boolean {\n const { message, signature } = args;\n const messageToVerify = convertSigningMessage(message);\n const messageBytes = Hex.fromHexInput(messageToVerify).toUint8Array();\n const messageSha3Bytes = sha3_256(messageBytes);\n const signatureBytes = signature.toUint8Array();\n return secp256k1.verify(signatureBytes, messageSha3Bytes, this.key.toUint8Array(), { lowS: true });\n }\n\n /**\n * Get the data as a Uint8Array representation.\n *\n * @returns Uint8Array representation of the data.\n */\n toUint8Array(): Uint8Array {\n return this.key.toUint8Array();\n }\n\n // endregion\n\n // region Serializable\n\n /**\n * Serializes the data into a byte array using the provided serializer.\n * This function is essential for converting data into a format suitable for transmission or storage.\n *\n * @param serializer - The serializer instance used to convert the data.\n */\n serialize(serializer: Serializer): void {\n serializer.serializeBytes(this.key.toUint8Array());\n }\n\n /**\n * Deserializes a Secp256k1Signature from the provided deserializer.\n * This function allows you to reconstruct a Secp256k1Signature object from its serialized byte representation.\n *\n * @param deserializer - The deserializer instance used to read the serialized data.\n */\n // eslint-disable-next-line class-methods-use-this\n deserialize(deserializer: Deserializer) {\n const hex = deserializer.deserializeBytes();\n return new Secp256k1Signature(hex);\n }\n\n static deserialize(deserializer: Deserializer): Secp256k1PublicKey {\n const bytes = deserializer.deserializeBytes();\n return new Secp256k1PublicKey(bytes);\n }\n\n // endregion\n\n /**\n * Determine if the provided public key is an instance of Secp256k1PublicKey.\n *\n * @deprecated use `instanceof Secp256k1PublicKey` instead\n * @param publicKey - The public key to check.\n */\n static isPublicKey(publicKey: PublicKey): publicKey is Secp256k1PublicKey {\n return publicKey instanceof Secp256k1PublicKey;\n }\n\n /**\n * Determines if the provided public key is a valid instance of a Secp256k1 public key.\n * This function checks for the presence of a \"key\" property and validates the length of the key data.\n *\n * @param publicKey - The public key to validate.\n * @returns A boolean indicating whether the public key is a valid Secp256k1 public key.\n */\n static isInstance(publicKey: PublicKey): publicKey is Secp256k1PublicKey {\n return \"key\" in publicKey && (publicKey.key as any)?.data?.length === Secp256k1PublicKey.LENGTH;\n }\n}\n\n/**\n * Represents a Secp256k1 ECDSA private key, providing functionality to create, sign messages,\n * derive public keys, and serialize/deserialize the key.\n */\nexport class Secp256k1PrivateKey extends Serializable implements PrivateKey {\n /**\n * Length of Secp256k1 ecdsa private key\n */\n static readonly LENGTH: number = 32;\n\n /**\n * The private key bytes\n * @private\n */\n private readonly key: Hex;\n\n // region Constructors\n\n /**\n * Create a new PrivateKey instance from a Uint8Array or String.\n *\n * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)\n *\n * @param hexInput A HexInput (string or Uint8Array)\n * @param strict If true, private key must AIP-80 compliant.\n */\n constructor(hexInput: HexInput, strict?: boolean) {\n super();\n\n const privateKeyHex = PrivateKey.parseHexInput(hexInput, PrivateKeyVariants.Secp256k1, strict);\n if (privateKeyHex.toUint8Array().length !== Secp256k1PrivateKey.LENGTH) {\n throw new Error(`PrivateKey length should be ${Secp256k1PrivateKey.LENGTH}`);\n }\n\n this.key = privateKeyHex;\n }\n\n /**\n * Generate a new random private key.\n *\n * @returns Secp256k1PrivateKey - A newly generated Secp256k1 private key.\n */\n static generate(): Secp256k1PrivateKey {\n const hexInput = secp256k1.utils.randomPrivateKey();\n return new Secp256k1PrivateKey(hexInput, false);\n }\n\n /**\n * Derives a private key from a mnemonic seed phrase using a specified BIP44 path.\n *\n * @param path - The BIP44 path to derive the key from.\n * @param mnemonics - The mnemonic seed phrase used for key generation.\n *\n * @returns The generated private key.\n *\n * @throws Error if the provided path is not a valid BIP44 path.\n */\n static fromDerivationPath(path: string, mnemonics: string): Secp256k1PrivateKey {\n if (!isValidBIP44Path(path)) {\n throw new Error(`Invalid derivation path ${path}`);\n }\n return Secp256k1PrivateKey.fromDerivationPathInner(path, mnemonicToSeed(mnemonics));\n }\n\n /**\n * Derives a private key from a specified BIP44 path using a given seed.\n * This function is essential for generating keys that follow the hierarchical deterministic (HD) wallet structure.\n *\n * @param path - The BIP44 path used for key derivation.\n * @param seed - The seed phrase created by the mnemonics, represented as a Uint8Array.\n * @returns The generated private key as an instance of Secp256k1PrivateKey.\n * @throws Error if the derived private key is invalid.\n */\n private static fromDerivationPathInner(path: string, seed: Uint8Array): Secp256k1PrivateKey {\n const { privateKey } = HDKey.fromMasterSeed(seed).derive(path);\n // library returns privateKey as Uint8Array | null\n if (privateKey === null) {\n throw new Error(\"Invalid key\");\n }\n\n return new Secp256k1PrivateKey(privateKey, false);\n }\n\n // endregion\n\n // region PrivateKey\n\n /**\n * Sign the given message with the private key.\n * This function generates a cryptographic signature for the provided message, ensuring the signature is canonical and non-malleable.\n *\n * @param message - A message in HexInput format to be signed.\n * @returns Signature - The generated signature for the provided message.\n */\n sign(message: HexInput): Secp256k1Signature {\n const messageToSign = convertSigningMessage(message);\n const messageBytes = Hex.fromHexInput(messageToSign);\n const messageHashBytes = sha3_256(messageBytes.toUint8Array());\n const signature = secp256k1.sign(messageHashBytes, this.key.toUint8Array(), { lowS: true });\n return new Secp256k1Signature(signature.toCompactRawBytes());\n }\n\n /**\n * Derive the Secp256k1PublicKey from this private key.\n *\n * @returns Secp256k1PublicKey The derived public key.\n */\n publicKey(): Secp256k1PublicKey {\n const bytes = secp256k1.getPublicKey(this.key.toUint8Array(), false);\n return new Secp256k1PublicKey(bytes);\n }\n\n /**\n * Get the private key in bytes (Uint8Array).\n *\n * @returns\n */\n toUint8Array(): Uint8Array {\n return this.key.toUint8Array();\n }\n\n /**\n * Get the private key as a string representation.\n *\n * @returns string representation of the private key\n */\n toString(): string {\n return this.toHexString();\n }\n\n /**\n * Get the private key as a hex string with the 0x prefix.\n *\n * @returns string representation of the private key.\n */\n toHexString(): string {\n return this.key.toString();\n }\n\n /**\n * Get the private key as a AIP-80 compliant hex string.\n *\n * [Read about AIP-80](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md)\n *\n * @returns AIP-80 compliant string representation of the private key.\n */\n toAIP80String(): string {\n return PrivateKey.formatPrivateKey(this.key.toString(), PrivateKeyVariants.Secp256k1);\n }\n\n // endregion\n\n // region Serializable\n\n serialize(serializer: Serializer): void {\n serializer.serializeBytes(this.toUint8Array());\n }\n\n static deserialize(deserializer: Deserializer): Secp256k1PrivateKey {\n const bytes = deserializer.deserializeBytes();\n return new Secp256k1PrivateKey(bytes, false);\n }\n\n // endregion\n\n /**\n * Determines if the provided private key is an instance of Secp256k1PrivateKey.\n *\n * @param privateKey - The private key to be checked.\n *\n * @deprecated use `instanceof Secp256k1PrivateKey` instead\n */\n static isPrivateKey(privateKey: PrivateKey): privateKey is Secp256k1PrivateKey {\n return privateKey instanceof Secp256k1PrivateKey;\n }\n}\n\n/**\n * Represents a signature of a message signed using a Secp256k1 ECDSA private key.\n *\n */\nexport class Secp256k1Signature extends Signature {\n /**\n * Secp256k1 ecdsa signatures are 256-bit or 64 bytes\n * @readonly\n */\n static readonly LENGTH = 64;\n\n /**\n * The signature bytes\n * @private\n */\n private readonly data: Hex;\n\n // region Constructors\n\n /**\n * Create a new Signature instance from a Uint8Array or String.\n *\n * @param hexInput A HexInput (string or Uint8Array)\n */\n constructor(hexInput: HexInput) {\n super();\n const data = Hex.fromHexInput(hexInput);\n if (data.toUint8Array().length !== Secp256k1Signature.LENGTH) {\n throw new Error(\n `Signature length should be ${Secp256k1Signature.LENGTH}, received ${data.toUint8Array().length}`,\n );\n }\n this.data = data;\n }\n\n // endregion\n\n // region Signature\n\n toUint8Array(): Uint8Array {\n return this.data.toUint8Array();\n }\n\n // endregion\n\n // region Serializable\n\n serialize(serializer: Serializer): void {\n serializer.serializeBytes(this.data.toUint8Array());\n }\n\n static deserialize(deserializer: Deserializer): Secp256k1Signature {\n const hex = deserializer.deserializeBytes();\n return new Secp256k1Signature(hex);\n }\n\n // endregion\n}\n"],"mappings":"sSAGA,OAAS,YAAAA,MAAgB,qBACzB,OAAS,aAAAC,MAAiB,0BAC1B,OAAS,SAAAC,MAAa,eAgBf,IAAMC,EAAN,MAAMA,UAA2BC,CAAU,CAiBhD,YAAYC,EAAoB,CAC9B,MAAM,EAEN,IAAMC,EAAMC,EAAI,aAAaF,CAAQ,EAC/B,CAAE,OAAAG,CAAO,EAAIF,EAAI,aAAa,EACpC,GAAIE,IAAWL,EAAmB,OAChC,KAAK,IAAMG,UACFE,IAAWL,EAAmB,kBAAmB,CAC1D,IAAMM,EAAQC,EAAU,gBAAgB,QAAQJ,EAAI,aAAa,CAAC,EAClE,KAAK,IAAMC,EAAI,aAAaE,EAAM,WAAW,EAAK,CAAC,CACrD,KACE,OAAM,IAAI,MACR,8BAA8BN,EAAmB,MAAM,OAAOA,EAAmB,iBAAiB,cAAcK,CAAM,EACxH,CAEJ,CAYA,gBAAgBG,EAAoC,CAClD,GAAM,CAAE,QAAAC,EAAS,UAAAC,CAAU,EAAIF,EACzBG,EAAkBC,EAAsBH,CAAO,EAC/CI,EAAeT,EAAI,aAAaO,CAAe,EAAE,aAAa,EAC9DG,EAAmBC,EAASF,CAAY,EACxCG,EAAiBN,EAAU,aAAa,EAC9C,OAAOH,EAAU,OAAOS,EAAgBF,EAAkB,KAAK,IAAI,aAAa,EAAG,CAAE,KAAM,EAAK,CAAC,CACnG,CAOA,cAA2B,CACzB,OAAO,KAAK,IAAI,aAAa,CAC/B,CAYA,UAAUG,EAA8B,CACtCA,EAAW,eAAe,KAAK,IAAI,aAAa,CAAC,CACnD,CASA,YAAYC,EAA4B,CACtC,IAAMf,EAAMe,EAAa,iBAAiB,EAC1C,OAAO,IAAIC,EAAmBhB,CAAG,CACnC,CAEA,OAAO,YAAYe,EAAgD,CACjE,IAAME,EAAQF,EAAa,iBAAiB,EAC5C,OAAO,IAAIlB,EAAmBoB,CAAK,CACrC,CAUA,OAAO,YAAYC,EAAuD,CACxE,OAAOA,aAAqBrB,CAC9B,CASA,OAAO,WAAWqB,EAAuD,CACvE,MAAO,QAASA,GAAcA,EAAU,KAAa,MAAM,SAAWrB,EAAmB,MAC3F,CACF,EAnHaA,EAEK,OAAiB,GAFtBA,EAKK,kBAA4B,GALvC,IAAMsB,EAANtB,EAyHMuB,EAAN,MAAMA,UAA4BC,CAAmC,CAsB1E,YAAYtB,EAAoBuB,EAAkB,CAChD,MAAM,EAEN,IAAMC,EAAgBC,EAAW,cAAczB,cAAwCuB,CAAM,EAC7F,GAAIC,EAAc,aAAa,EAAE,SAAWH,EAAoB,OAC9D,MAAM,IAAI,MAAM,+BAA+BA,EAAoB,MAAM,EAAE,EAG7E,KAAK,IAAMG,CACb,CAOA,OAAO,UAAgC,CACrC,IAAMxB,EAAWK,EAAU,MAAM,iBAAiB,EAClD,OAAO,IAAIgB,EAAoBrB,EAAU,EAAK,CAChD,CAYA,OAAO,mBAAmB0B,EAAcC,EAAwC,CAC9E,GAAI,CAACC,EAAiBF,CAAI,EACxB,MAAM,IAAI,MAAM,2BAA2BA,CAAI,EAAE,EAEnD,OAAOL,EAAoB,wBAAwBK,EAAMG,EAAeF,CAAS,CAAC,CACpF,CAWA,OAAe,wBAAwBD,EAAcI,EAAuC,CAC1F,GAAM,CAAE,WAAAC,CAAW,EAAIC,EAAM,eAAeF,CAAI,EAAE,OAAOJ,CAAI,EAE7D,GAAIK,IAAe,KACjB,MAAM,IAAI,MAAM,aAAa,EAG/B,OAAO,IAAIV,EAAoBU,EAAY,EAAK,CAClD,CAaA,KAAKxB,EAAuC,CAC1C,IAAM0B,EAAgBvB,EAAsBH,CAAO,EAC7CI,EAAeT,EAAI,aAAa+B,CAAa,EAC7CC,EAAmBrB,EAASF,EAAa,aAAa,CAAC,EACvDH,EAAYH,EAAU,KAAK6B,EAAkB,KAAK,IAAI,aAAa,EAAG,CAAE,KAAM,EAAK,CAAC,EAC1F,OAAO,IAAIjB,EAAmBT,EAAU,kBAAkB,CAAC,CAC7D,CAOA,WAAgC,CAC9B,IAAMU,EAAQb,EAAU,aAAa,KAAK,IAAI,aAAa,EAAG,EAAK,EACnE,OAAO,IAAIe,EAAmBF,CAAK,CACrC,CAOA,cAA2B,CACzB,OAAO,KAAK,IAAI,aAAa,CAC/B,CAOA,UAAmB,CACjB,OAAO,KAAK,YAAY,CAC1B,CAOA,aAAsB,CACpB,OAAO,KAAK,IAAI,SAAS,CAC3B,CASA,eAAwB,CACtB,OAAOO,EAAW,iBAAiB,KAAK,IAAI,SAAS,aAA+B,CACtF,CAMA,UAAUV,EAA8B,CACtCA,EAAW,eAAe,KAAK,aAAa,CAAC,CAC/C,CAEA,OAAO,YAAYC,EAAiD,CAClE,IAAME,EAAQF,EAAa,iBAAiB,EAC5C,OAAO,IAAIK,EAAoBH,EAAO,EAAK,CAC7C,CAWA,OAAO,aAAaa,EAA2D,CAC7E,OAAOA,aAAsBV,CAC/B,CACF,EA3KaA,EAIK,OAAiB,GAJ5B,IAAMc,EAANd,EAiLMe,EAAN,MAAMA,UAA2BC,CAAU,CAoBhD,YAAYrC,EAAoB,CAC9B,MAAM,EACN,IAAMsC,EAAOpC,EAAI,aAAaF,CAAQ,EACtC,GAAIsC,EAAK,aAAa,EAAE,SAAWF,EAAmB,OACpD,MAAM,IAAI,MACR,8BAA8BA,EAAmB,MAAM,cAAcE,EAAK,aAAa,EAAE,MAAM,EACjG,EAEF,KAAK,KAAOA,CACd,CAMA,cAA2B,CACzB,OAAO,KAAK,KAAK,aAAa,CAChC,CAMA,UAAUvB,EAA8B,CACtCA,EAAW,eAAe,KAAK,KAAK,aAAa,CAAC,CACpD,CAEA,OAAO,YAAYC,EAAgD,CACjE,IAAMf,EAAMe,EAAa,iBAAiB,EAC1C,OAAO,IAAIoB,EAAmBnC,CAAG,CACnC,CAGF,EArDamC,EAKK,OAAS,GALpB,IAAMnB,EAANmB","names":["sha3_256","secp256k1","HDKey","_Secp256k1PublicKey","PublicKey","hexInput","hex","Hex","length","point","secp256k1","args","message","signature","messageToVerify","convertSigningMessage","messageBytes","messageSha3Bytes","sha3_256","signatureBytes","serializer","deserializer","Secp256k1Signature","bytes","publicKey","Secp256k1PublicKey","_Secp256k1PrivateKey","Serializable","strict","privateKeyHex","PrivateKey","path","mnemonics","isValidBIP44Path","mnemonicToSeed","seed","privateKey","HDKey","messageToSign","messageHashBytes","Secp256k1PrivateKey","_Secp256k1Signature","Signature","data"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-XOLU6UP3.mjs";import{b as a}from"./chunk-JNO7KPMG.mjs";import{a as i}from"./chunk-AJ5JHBAE.mjs";var o=class t extends i{constructor(e,r){super(),this.rawTransaction=e,this.feePayerAddress=r}serialize(e){this.rawTransaction.serialize(e),this.feePayerAddress===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.feePayerAddress.serialize(e))}static deserialize(e){let r=n.deserialize(e),d=e.deserializeBool(),s;return d&&(s=a.deserialize(e)),new t(r,s)}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7T26VA2W.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-SK3LIS4Z.mjs";import{c as p}from"./chunk-AOROYJ74.mjs";import{c as o}from"./chunk-2KSMV5KD.mjs";import{n as u,q as g,r as A}from"./chunk-VHNX2NUR.mjs";import{f as a,i as r}from"./chunk-T6ADNZE5.mjs";async function G(t){let{aptosConfig:s,options:e}=t,n={query:A,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetMetadata"})).fungible_asset_metadata}async function h(t){let{aptosConfig:s,options:e}=t,n={query:g,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetActivities"})).fungible_asset_activities}async function M(t){let{aptosConfig:s,options:e}=t,n={query:u,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getCurrentFungibleAssetBalances"})).current_fungible_asset_balances}var b={typeParameters:[{constraints:[]}],parameters:[p("0x1::object::Object"),new r,new a]};async function x(t){let{aptosConfig:s,sender:e,fungibleAssetMetadataAddress:n,recipient:i,amount:l,options:f}=t;return c({aptosConfig:s,sender:e.accountAddress,data:{function:"0x1::primary_fungible_store::transfer",typeArguments:["0x1::fungible_asset::Metadata"],functionArguments:[n,i,l],abi:b},options:f})}export{G as a,h as b,M as c,x as d};
|
|
2
|
+
//# sourceMappingURL=chunk-7V35JAAF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r,b as t,c as o,d as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r,b as t,c as o,d as s}from"./chunk-EGV3HFE3.mjs";var n=class{constructor(e){this.config=e}async getPepper(e){return r({aptosConfig:this.config,...e})}async getProof(e){return t({aptosConfig:this.config,...e})}async deriveKeylessAccount(e){return o({aptosConfig:this.config,...e})}async updateFederatedKeylessJwkSetTransaction(e){return s({aptosConfig:this.config,...e})}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ALNQK276.mjs.map
|