@aptos-labs/ts-sdk 1.33.0-sc.1 → 1.33.0-sc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/dist/common/{accountAddress-fJZJVSBc.d.ts → accountAddress-Cf1amU98.d.ts} +293 -1
- package/dist/common/{chunk-F43XVDYJ.js → chunk-IHUCZKG2.js} +1 -1
- package/dist/common/chunk-IHUCZKG2.js.map +1 -0
- package/dist/common/cli/index.d.ts +47 -9
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +1945 -226
- package/dist/common/index.js +33 -33
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-B3xHXAQe.d.mts → Ed25519Account-D4j3_WIS.d.mts} +122 -12
- package/dist/esm/account/AbstractKeylessAccount.d.mts +81 -7
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +5 -4
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +65 -0
- package/dist/esm/account/AccountUtils.mjs +2 -0
- package/dist/esm/account/Ed25519Account.d.mts +3 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +29 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +25 -5
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +30 -5
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +40 -5
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +4 -3
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +4 -2
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +19 -0
- package/dist/esm/account/utils.mjs +2 -0
- package/dist/esm/account/utils.mjs.map +1 -0
- package/dist/esm/api/account.d.mts +25 -4
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +18 -2
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +5 -2
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +16 -0
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +5 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +29 -2
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +6 -0
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +11 -2
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +11 -2
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +14 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +3 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +8 -2
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +3 -0
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +5 -0
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +5 -0
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +23 -6
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +7 -2
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/helpers.d.mts +2 -0
- package/dist/esm/api/transactionSubmission/helpers.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +8 -2
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +7 -2
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +6 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +6 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +1 -0
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/deserializer.d.mts +56 -2
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +10 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +12 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +24 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +56 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +60 -0
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-UTOO6IVJ.mjs → chunk-22HNYCN4.mjs} +2 -2
- package/dist/esm/chunk-22HNYCN4.mjs.map +1 -0
- package/dist/esm/{chunk-U7UTBXJD.mjs → chunk-255RZ5AM.mjs} +2 -2
- package/dist/esm/chunk-255RZ5AM.mjs.map +1 -0
- package/dist/esm/{chunk-WJSZAGHP.mjs → chunk-2I2HOJHV.mjs} +2 -2
- package/dist/esm/chunk-2I2HOJHV.mjs.map +1 -0
- package/dist/esm/{chunk-CW6P2DDJ.mjs → chunk-2NWLRUD6.mjs} +2 -2
- package/dist/esm/{chunk-CW6P2DDJ.mjs.map → chunk-2NWLRUD6.mjs.map} +1 -1
- package/dist/esm/chunk-2YQZYHWO.mjs +2 -0
- package/dist/esm/chunk-2YQZYHWO.mjs.map +1 -0
- package/dist/esm/{chunk-FZDEGDUY.mjs → chunk-35DKMW7Q.mjs} +1 -1
- package/dist/esm/chunk-35DKMW7Q.mjs.map +1 -0
- package/dist/esm/{chunk-EVASO3UR.mjs → chunk-424ZTUPT.mjs} +2 -2
- package/dist/esm/chunk-424ZTUPT.mjs.map +1 -0
- package/dist/esm/chunk-4RXKALLC.mjs +2 -0
- package/dist/esm/chunk-4RXKALLC.mjs.map +1 -0
- package/dist/esm/chunk-4YLUM62M.mjs +2 -0
- package/dist/esm/chunk-4YLUM62M.mjs.map +1 -0
- package/dist/esm/{chunk-B2OF42B3.mjs → chunk-4ZYPDCSP.mjs} +2 -2
- package/dist/esm/chunk-4ZYPDCSP.mjs.map +1 -0
- package/dist/esm/{chunk-AOQJI6IC.mjs → chunk-5L2745QA.mjs} +2 -2
- package/dist/esm/chunk-5L2745QA.mjs.map +1 -0
- package/dist/esm/{chunk-7R44XXPU.mjs → chunk-5TZXG626.mjs} +2 -2
- package/dist/esm/chunk-5TZXG626.mjs.map +1 -0
- package/dist/esm/chunk-5VILVOYP.mjs +2 -0
- package/dist/esm/chunk-5VILVOYP.mjs.map +1 -0
- package/dist/esm/{chunk-2G7SAWM3.mjs → chunk-63JTAZEH.mjs} +2 -2
- package/dist/esm/chunk-63JTAZEH.mjs.map +1 -0
- package/dist/esm/{chunk-UQIMOQZ7.mjs → chunk-6XUFRKGR.mjs} +2 -2
- package/dist/esm/chunk-6XUFRKGR.mjs.map +1 -0
- package/dist/esm/{chunk-2WLKSKL7.mjs → chunk-75IC2LNI.mjs} +2 -2
- package/dist/esm/chunk-75IC2LNI.mjs.map +1 -0
- package/dist/esm/{chunk-SOLRIYPW.mjs → chunk-7FCSZ5LT.mjs} +2 -2
- package/dist/esm/{chunk-3BWKODVZ.mjs → chunk-7FJ7RHY4.mjs} +2 -2
- package/dist/esm/chunk-7FJ7RHY4.mjs.map +1 -0
- package/dist/esm/{chunk-WIDWY7A2.mjs → chunk-7IY3DTEF.mjs} +2 -2
- package/dist/esm/chunk-7IY3DTEF.mjs.map +1 -0
- package/dist/esm/{chunk-2CJC43CV.mjs → chunk-A5L76YP7.mjs} +1 -1
- package/dist/esm/chunk-A5L76YP7.mjs.map +1 -0
- package/dist/esm/{chunk-CK5NDXQT.mjs → chunk-AKLUTUMD.mjs} +2 -2
- package/dist/esm/chunk-AKLUTUMD.mjs.map +1 -0
- package/dist/esm/{chunk-IKJAX5KQ.mjs → chunk-AN75UUF7.mjs} +2 -2
- package/dist/esm/chunk-AN75UUF7.mjs.map +1 -0
- package/dist/esm/chunk-AV6G4ACP.mjs +2 -0
- package/dist/esm/chunk-AV6G4ACP.mjs.map +1 -0
- package/dist/esm/{chunk-AOROYJ74.mjs → chunk-AZWVCBK2.mjs} +2 -2
- package/dist/esm/chunk-AZWVCBK2.mjs.map +1 -0
- package/dist/esm/{chunk-6ZOVTYLJ.mjs → chunk-BI3BTSUB.mjs} +2 -2
- package/dist/esm/chunk-BI3BTSUB.mjs.map +1 -0
- package/dist/esm/chunk-BPNW35GW.mjs +2 -0
- package/dist/esm/chunk-BPNW35GW.mjs.map +1 -0
- package/dist/esm/{chunk-2CKUTG67.mjs → chunk-BWDNXTV6.mjs} +2 -2
- package/dist/esm/chunk-BWDNXTV6.mjs.map +1 -0
- package/dist/esm/{chunk-OIOGOW6I.mjs → chunk-C3Q23D22.mjs} +1 -1
- package/dist/esm/chunk-C3Q23D22.mjs.map +1 -0
- package/dist/esm/chunk-CKKCL3LM.mjs +2 -0
- package/dist/esm/chunk-CKKCL3LM.mjs.map +1 -0
- package/dist/esm/{chunk-PMA7XAFK.mjs → chunk-CMA7755V.mjs} +2 -2
- package/dist/esm/chunk-CMA7755V.mjs.map +1 -0
- package/dist/esm/{chunk-MKM5MDD5.mjs → chunk-CSEQXUJM.mjs} +2 -2
- package/dist/esm/{chunk-MKM5MDD5.mjs.map → chunk-CSEQXUJM.mjs.map} +1 -1
- package/dist/esm/{chunk-VQZMI3EZ.mjs → chunk-CWKNJZB6.mjs} +2 -2
- package/dist/esm/chunk-CWKNJZB6.mjs.map +1 -0
- package/dist/esm/{chunk-V4FKFCBL.mjs → chunk-DAFSKSZ5.mjs} +1 -1
- package/dist/esm/chunk-DAFSKSZ5.mjs.map +1 -0
- package/dist/esm/chunk-DGJHSYF5.mjs +2 -0
- package/dist/esm/chunk-DGJHSYF5.mjs.map +1 -0
- package/dist/esm/chunk-DPP3ROKC.mjs +2 -0
- package/dist/esm/chunk-DPP3ROKC.mjs.map +1 -0
- package/dist/esm/chunk-DPW6ELCQ.mjs +2 -0
- package/dist/esm/chunk-DPW6ELCQ.mjs.map +1 -0
- package/dist/esm/{chunk-BKSQPS2O.mjs → chunk-DTICBERU.mjs} +2 -2
- package/dist/esm/chunk-DTICBERU.mjs.map +1 -0
- package/dist/esm/{chunk-AJ5JHBAE.mjs → chunk-EBMEXURY.mjs} +2 -2
- package/dist/esm/chunk-EBMEXURY.mjs.map +1 -0
- package/dist/esm/chunk-EMURYYVO.mjs +2 -0
- package/dist/esm/chunk-EMURYYVO.mjs.map +1 -0
- package/dist/esm/{chunk-S22QVNK7.mjs → chunk-ESLJXR3M.mjs} +2 -2
- package/dist/esm/chunk-ESLJXR3M.mjs.map +1 -0
- package/dist/esm/{chunk-3QUZFCNW.mjs → chunk-EVG6EXWX.mjs} +2 -2
- package/dist/esm/chunk-EVG6EXWX.mjs.map +1 -0
- package/dist/esm/{chunk-P6RNNESB.mjs → chunk-EYE4UEWZ.mjs} +2 -2
- package/dist/esm/chunk-EYE4UEWZ.mjs.map +1 -0
- package/dist/esm/chunk-F2ZTBAJJ.mjs +2 -0
- package/dist/esm/chunk-F2ZTBAJJ.mjs.map +1 -0
- package/dist/esm/{chunk-AKIO3OIT.mjs → chunk-FN4C3CKC.mjs} +2 -2
- package/dist/esm/chunk-FN4C3CKC.mjs.map +1 -0
- package/dist/esm/{chunk-T6ADNZE5.mjs → chunk-G4O6FXCF.mjs} +2 -2
- package/dist/esm/chunk-G4O6FXCF.mjs.map +1 -0
- package/dist/esm/chunk-G5ZWH5T3.mjs +2 -0
- package/dist/esm/chunk-G5ZWH5T3.mjs.map +1 -0
- package/dist/esm/{chunk-TE3SBS7J.mjs → chunk-GCGMMS3E.mjs} +2 -2
- package/dist/esm/chunk-GCGMMS3E.mjs.map +1 -0
- package/dist/esm/{chunk-GMKKHGXK.mjs → chunk-GOXRBEIJ.mjs} +1 -1
- package/dist/esm/chunk-GOXRBEIJ.mjs.map +1 -0
- package/dist/esm/chunk-GP4TLDVZ.mjs +1 -0
- package/dist/esm/chunk-GP4TLDVZ.mjs.map +1 -0
- package/dist/esm/{chunk-FFBC7GFN.mjs → chunk-HBH2NQKU.mjs} +2 -2
- package/dist/esm/chunk-HBH2NQKU.mjs.map +1 -0
- package/dist/esm/{chunk-NNWPYX3K.mjs → chunk-I6XLN4DI.mjs} +2 -2
- package/dist/esm/chunk-I6XLN4DI.mjs.map +1 -0
- package/dist/esm/{chunk-2E3EAJPC.mjs → chunk-IDQUPGUG.mjs} +2 -2
- package/dist/esm/chunk-IDQUPGUG.mjs.map +1 -0
- package/dist/esm/{chunk-Q3CWUEXI.mjs → chunk-IDTLNF4M.mjs} +2 -2
- package/dist/esm/chunk-IDTLNF4M.mjs.map +1 -0
- package/dist/esm/{chunk-6Q2O5G3J.mjs → chunk-IF4UU2MT.mjs} +1 -1
- package/dist/esm/chunk-IF4UU2MT.mjs.map +1 -0
- package/dist/esm/chunk-IOZSAIGP.mjs +2 -0
- package/dist/esm/{chunk-YQHOQJRQ.mjs.map → chunk-IOZSAIGP.mjs.map} +1 -1
- package/dist/esm/{chunk-6YFM6NEC.mjs → chunk-IVH53P2F.mjs} +2 -2
- package/dist/esm/chunk-IVH53P2F.mjs.map +1 -0
- package/dist/esm/chunk-JJM6ELMS.mjs +2 -0
- package/dist/esm/chunk-JJM6ELMS.mjs.map +1 -0
- package/dist/esm/{chunk-5XLZACVT.mjs → chunk-JW5CCOAL.mjs} +2 -2
- package/dist/esm/chunk-JW5CCOAL.mjs.map +1 -0
- package/dist/esm/{chunk-DBAISV4K.mjs → chunk-JZ5DVZIM.mjs} +2 -2
- package/dist/esm/chunk-JZ5DVZIM.mjs.map +1 -0
- package/dist/esm/{chunk-BVUMR7DQ.mjs → chunk-KCFBPJUP.mjs} +2 -2
- package/dist/esm/chunk-KCFBPJUP.mjs.map +1 -0
- package/dist/esm/{chunk-XEW2YQE2.mjs → chunk-LA7EWU7P.mjs} +2 -2
- package/dist/esm/chunk-LA7EWU7P.mjs.map +1 -0
- package/dist/esm/{chunk-J2NQJ34O.mjs → chunk-LP4EJK2O.mjs} +2 -2
- package/dist/esm/chunk-LP4EJK2O.mjs.map +1 -0
- package/dist/esm/{chunk-7CDITZUS.mjs → chunk-M2G2BM4Z.mjs} +2 -2
- package/dist/esm/chunk-M2G2BM4Z.mjs.map +1 -0
- package/dist/esm/{chunk-7BKLEHKL.mjs → chunk-MCLYDS3O.mjs} +2 -2
- package/dist/esm/chunk-MCLYDS3O.mjs.map +1 -0
- package/dist/esm/{chunk-4JX6OQEE.mjs → chunk-MGAGOKNQ.mjs} +2 -2
- package/dist/esm/chunk-MGAGOKNQ.mjs.map +1 -0
- package/dist/esm/chunk-MNWN4IT6.mjs +2 -0
- package/dist/esm/chunk-MNWN4IT6.mjs.map +1 -0
- package/dist/esm/{chunk-AR6BOLET.mjs → chunk-MSE2YEDF.mjs} +2 -2
- package/dist/esm/chunk-MSE2YEDF.mjs.map +1 -0
- package/dist/esm/{chunk-BRV3RLKW.mjs → chunk-MT2RJ7H3.mjs} +2 -2
- package/dist/esm/chunk-MT2RJ7H3.mjs.map +1 -0
- package/dist/esm/{chunk-ACVIE7IE.mjs → chunk-N4DM5FYH.mjs} +2 -2
- package/dist/esm/chunk-N4DM5FYH.mjs.map +1 -0
- package/dist/esm/{chunk-LGTOOAQI.mjs → chunk-N6YTF76Q.mjs} +2 -2
- package/dist/esm/chunk-N6YTF76Q.mjs.map +1 -0
- package/dist/esm/chunk-NS5YFLZQ.mjs +2 -0
- package/dist/esm/chunk-NS5YFLZQ.mjs.map +1 -0
- package/dist/esm/{chunk-QCIRC2SG.mjs → chunk-OBEMAKRF.mjs} +2 -2
- package/dist/esm/chunk-OBEMAKRF.mjs.map +1 -0
- package/dist/esm/{chunk-2YTHKFJZ.mjs → chunk-ODEDSSQL.mjs} +2 -2
- package/dist/esm/chunk-ODEDSSQL.mjs.map +1 -0
- package/dist/esm/{chunk-2E3BT4YW.mjs → chunk-OHZURQPY.mjs} +2 -2
- package/dist/esm/chunk-OHZURQPY.mjs.map +1 -0
- package/dist/esm/{chunk-OZK26LTY.mjs → chunk-ONTWK5FU.mjs} +2 -2
- package/dist/esm/chunk-ONTWK5FU.mjs.map +1 -0
- package/dist/esm/{chunk-T7BTSSX7.mjs → chunk-OOJGI2IR.mjs} +2 -2
- package/dist/esm/chunk-OOJGI2IR.mjs.map +1 -0
- package/dist/esm/{chunk-42H7WETG.mjs → chunk-ORMOQWWH.mjs} +2 -2
- package/dist/esm/chunk-ORMOQWWH.mjs.map +1 -0
- package/dist/esm/{chunk-JNO7KPMG.mjs → chunk-Q4C4U6I4.mjs} +2 -2
- package/dist/esm/chunk-Q4C4U6I4.mjs.map +1 -0
- package/dist/esm/{chunk-YT3IP57B.mjs → chunk-QD55JBJB.mjs} +2 -2
- package/dist/esm/chunk-QD55JBJB.mjs.map +1 -0
- package/dist/esm/{chunk-F45G3GP3.mjs → chunk-QHEKBHNU.mjs} +2 -2
- package/dist/esm/{chunk-D6WMUQB5.mjs → chunk-R3VMJE5K.mjs} +2 -2
- package/dist/esm/chunk-R3VMJE5K.mjs.map +1 -0
- package/dist/esm/{chunk-J7PJSK3J.mjs → chunk-RJ7F4JDV.mjs} +1 -1
- package/dist/esm/chunk-RJ7F4JDV.mjs.map +1 -0
- package/dist/esm/{chunk-J45GIVXE.mjs → chunk-RKY36HTP.mjs} +2 -2
- package/dist/esm/chunk-RKY36HTP.mjs.map +1 -0
- package/dist/esm/chunk-ROT6S6BM.mjs +2 -0
- package/dist/esm/chunk-ROT6S6BM.mjs.map +1 -0
- package/dist/esm/{chunk-554TWPPO.mjs → chunk-SCXTC4PW.mjs} +2 -2
- package/dist/esm/chunk-SCXTC4PW.mjs.map +1 -0
- package/dist/esm/{chunk-SPRNSFUV.mjs → chunk-STY74NUA.mjs} +2 -2
- package/dist/esm/chunk-STY74NUA.mjs.map +1 -0
- package/dist/esm/{chunk-GX4CYRK4.mjs → chunk-T6NQDM7D.mjs} +2 -2
- package/dist/esm/chunk-T6NQDM7D.mjs.map +1 -0
- package/dist/esm/{chunk-SHAKBL2R.mjs → chunk-TMI4XNRL.mjs} +2 -2
- package/dist/esm/chunk-TMI4XNRL.mjs.map +1 -0
- package/dist/esm/{chunk-ZMBXHMVQ.mjs → chunk-TOBQ5UE6.mjs} +2 -2
- package/dist/esm/chunk-TOBQ5UE6.mjs.map +1 -0
- package/dist/esm/chunk-TWYIOTWN.mjs +2 -0
- package/dist/esm/chunk-TWYIOTWN.mjs.map +1 -0
- package/dist/esm/{chunk-362NFXZR.mjs → chunk-UC23V7PU.mjs} +2 -2
- package/dist/esm/chunk-UC23V7PU.mjs.map +1 -0
- package/dist/esm/{chunk-3TOPGQJA.mjs → chunk-UFDIPJRD.mjs} +2 -2
- package/dist/esm/chunk-UFDIPJRD.mjs.map +1 -0
- package/dist/esm/{chunk-3QIOEU3Z.mjs → chunk-V7PGIXTT.mjs} +2 -2
- package/dist/esm/chunk-V7PGIXTT.mjs.map +1 -0
- package/dist/esm/chunk-VFLH3KLJ.mjs +2 -0
- package/dist/esm/chunk-VFLH3KLJ.mjs.map +1 -0
- package/dist/esm/{chunk-IHGA5KAD.mjs → chunk-W4BSN6SK.mjs} +1 -1
- package/dist/esm/chunk-W4BSN6SK.mjs.map +1 -0
- package/dist/esm/chunk-WCMW2L3P.mjs +2 -0
- package/dist/esm/chunk-WCMW2L3P.mjs.map +1 -0
- package/dist/esm/{chunk-JJXLJY37.mjs → chunk-WG3SZFSJ.mjs} +2 -2
- package/dist/esm/chunk-WG3SZFSJ.mjs.map +1 -0
- package/dist/esm/{chunk-VGJIATTB.mjs → chunk-XGF7UNEW.mjs} +2 -2
- package/dist/esm/chunk-XGF7UNEW.mjs.map +1 -0
- package/dist/esm/chunk-XJJVJOX5.mjs +2 -0
- package/dist/esm/{chunk-UGTIALNW.mjs.map → chunk-XJJVJOX5.mjs.map} +1 -1
- package/dist/esm/{chunk-OPO5EYF7.mjs → chunk-XKUIMGKU.mjs} +2 -2
- package/dist/esm/chunk-XKUIMGKU.mjs.map +1 -0
- package/dist/esm/chunk-XTOIL6MB.mjs +2 -0
- package/dist/esm/chunk-XTOIL6MB.mjs.map +1 -0
- package/dist/esm/{chunk-4ZNSNWQL.mjs → chunk-YNU343QC.mjs} +2 -2
- package/dist/esm/chunk-YNU343QC.mjs.map +1 -0
- package/dist/esm/{chunk-HBIDHQ2M.mjs → chunk-YOZBVVKL.mjs} +1 -1
- package/dist/esm/chunk-YOZBVVKL.mjs.map +1 -0
- package/dist/esm/{chunk-B6ERS4UX.mjs → chunk-YZAUA2GG.mjs} +2 -2
- package/dist/esm/chunk-YZAUA2GG.mjs.map +1 -0
- package/dist/esm/{chunk-EPBNJZ4A.mjs → chunk-ZMSWKJDU.mjs} +2 -2
- package/dist/esm/chunk-ZMSWKJDU.mjs.map +1 -0
- package/dist/esm/{chunk-EVA2SMAU.mjs → chunk-ZTXK5FPC.mjs} +2 -2
- package/dist/esm/chunk-ZTXK5FPC.mjs.map +1 -0
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.d.mts +20 -8
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +26 -0
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.d.mts +4 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +33 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +37 -0
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +6 -0
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +46 -0
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/common.d.mts +14 -0
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +57 -5
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +23 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +13 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/hdKey.d.mts +28 -0
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +2 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +131 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +41 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +38 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/poseidon.d.mts +10 -0
- package/dist/esm/core/crypto/poseidon.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +9 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +2 -0
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +51 -3
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +6 -0
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +36 -2
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.d.mts +2 -0
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.d.mts +20 -0
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +2 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +5 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +24 -4
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +27 -2
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +3 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +31 -2
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +5 -0
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +5 -0
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +8 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +7 -0
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +6 -2
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +2 -0
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +5 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +3 -0
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +14 -0
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +16 -5
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +2 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/{publicKey-BVXX1nVl.d.mts → publicKey-BMtGNNLg.d.mts} +36 -0
- package/dist/esm/transactions/authenticator/account.d.mts +28 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +2 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +23 -2
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +2 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +8 -0
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +8 -0
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +2 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +10 -0
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +8 -0
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +30 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +7 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +10 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +8 -0
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +16 -0
- package/dist/esm/transactions/instances/transactionPayload.d.mts +48 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +19 -2
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/asyncQueue.d.mts +16 -0
- package/dist/esm/transactions/management/asyncQueue.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +3 -2
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +45 -7
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/script-composer/index.d.mts +5 -2
- package/dist/esm/transactions/script-composer/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +64 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +14 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +10 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +42 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +82 -0
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +8 -0
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +80 -1
- package/dist/esm/types/indexer.d.mts +52 -0
- package/dist/esm/types/keyless.d.mts +12 -0
- package/dist/esm/utils/apiEndpoints.d.mts +30 -0
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +24 -0
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +20 -0
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/memoize.d.mts +4 -0
- package/dist/esm/utils/memoize.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +8 -0
- 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 +20 -21
- package/src/account/AbstractKeylessAccount.ts +80 -9
- package/src/account/Account.ts +51 -6
- package/src/account/AccountUtils.ts +216 -0
- package/src/account/Ed25519Account.ts +26 -0
- package/src/account/EphemeralKeyPair.ts +30 -0
- package/src/account/FederatedKeylessAccount.ts +10 -3
- package/src/account/KeylessAccount.ts +13 -1
- package/src/account/MultiKeyAccount.ts +75 -12
- package/src/account/SingleKeyAccount.ts +63 -6
- package/src/account/index.ts +1 -0
- package/src/account/utils.ts +16 -0
- package/src/api/account.ts +22 -2
- package/src/api/ans.ts +15 -0
- package/src/api/aptos.ts +3 -0
- package/src/api/aptosConfig.ts +24 -0
- package/src/api/coin.ts +3 -0
- package/src/api/digitalAsset.ts +26 -0
- package/src/api/event.ts +6 -0
- package/src/api/faucet.ts +11 -2
- package/src/api/fungibleAsset.ts +8 -0
- package/src/api/general.ts +12 -0
- package/src/api/keyless.ts +6 -0
- package/src/api/object.ts +3 -0
- package/src/api/staking.ts +5 -0
- package/src/api/table.ts +5 -0
- package/src/api/transaction.ts +19 -3
- package/src/api/transactionSubmission/build.ts +10 -4
- package/src/api/transactionSubmission/helpers.ts +2 -0
- package/src/api/transactionSubmission/management.ts +5 -0
- package/src/api/transactionSubmission/sign.ts +4 -0
- package/src/api/transactionSubmission/simulate.ts +4 -0
- package/src/api/transactionSubmission/submit.ts +4 -0
- package/src/api/utils.ts +1 -0
- package/src/bcs/deserializer.ts +64 -2
- package/src/bcs/serializable/entryFunctionBytes.ts +10 -0
- package/src/bcs/serializable/fixedBytes.ts +12 -0
- package/src/bcs/serializable/movePrimitives.ts +26 -0
- package/src/bcs/serializable/moveStructs.ts +56 -0
- package/src/bcs/serializer.ts +64 -1
- package/src/cli/localNode.ts +22 -8
- package/src/cli/move.ts +26 -0
- package/src/client/core.ts +4 -0
- package/src/client/get.ts +75 -1
- package/src/client/post.ts +37 -0
- package/src/core/account/utils/address.ts +6 -0
- package/src/core/accountAddress.ts +46 -0
- package/src/core/authenticationKey.ts +22 -0
- package/src/core/common.ts +14 -0
- package/src/core/crypto/ed25519.ts +58 -4
- package/src/core/crypto/ephemeral.ts +22 -0
- package/src/core/crypto/federatedKeyless.ts +12 -0
- package/src/core/crypto/hdKey.ts +29 -0
- package/src/core/crypto/keyless.ts +134 -0
- package/src/core/crypto/multiEd25519.ts +40 -0
- package/src/core/crypto/multiKey.ts +37 -1
- package/src/core/crypto/poseidon.ts +20 -0
- package/src/core/crypto/privateKey.ts +17 -8
- package/src/core/crypto/proof.ts +2 -0
- package/src/core/crypto/publicKey.ts +14 -0
- package/src/core/crypto/secp256k1.ts +62 -5
- package/src/core/crypto/signature.ts +8 -0
- package/src/core/crypto/singleKey.ts +34 -2
- package/src/core/crypto/utils.ts +2 -0
- package/src/core/hex.ts +20 -0
- package/src/internal/account.ts +27 -7
- package/src/internal/ans.ts +27 -0
- package/src/internal/coin.ts +1 -0
- package/src/internal/digitalAsset.ts +30 -0
- package/src/internal/event.ts +6 -0
- package/src/internal/faucet.ts +5 -0
- package/src/internal/fungibleAsset.ts +5 -0
- package/src/internal/general.ts +7 -0
- package/src/internal/keyless.ts +4 -0
- package/src/internal/object.ts +2 -0
- package/src/internal/staking.ts +5 -1
- package/src/internal/table.ts +3 -0
- package/src/internal/transaction.ts +16 -0
- package/src/internal/transactionSubmission.ts +15 -2
- package/src/transactions/authenticator/account.ts +26 -0
- package/src/transactions/authenticator/transaction.ts +20 -0
- package/src/transactions/instances/chainId.ts +8 -0
- package/src/transactions/instances/identifier.ts +8 -0
- package/src/transactions/instances/moduleId.ts +10 -0
- package/src/transactions/instances/multiAgentTransaction.ts +8 -0
- package/src/transactions/instances/rawTransaction.ts +30 -0
- package/src/transactions/instances/rotationProofChallenge.ts +6 -0
- package/src/transactions/instances/signedTransaction.ts +8 -0
- package/src/transactions/instances/simpleTransaction.ts +8 -0
- package/src/transactions/instances/transactionArgument.ts +16 -0
- package/src/transactions/instances/transactionPayload.ts +50 -0
- package/src/transactions/management/accountSequenceNumber.ts +16 -0
- package/src/transactions/management/asyncQueue.ts +16 -0
- package/src/transactions/management/transactionWorker.ts +42 -5
- package/src/transactions/script-composer/index.ts +17 -8
- package/src/transactions/transactionBuilder/helpers.ts +82 -10
- package/src/transactions/transactionBuilder/remoteAbi.ts +20 -0
- package/src/transactions/transactionBuilder/signingMessage.ts +10 -0
- package/src/transactions/transactionBuilder/transactionBuilder.ts +58 -0
- package/src/transactions/typeTag/index.ts +82 -0
- package/src/transactions/typeTag/parser.ts +24 -0
- package/src/transactions/types.ts +78 -0
- package/src/types/indexer.ts +52 -0
- package/src/types/keyless.ts +12 -0
- package/src/utils/apiEndpoints.ts +30 -2
- package/src/utils/const.ts +24 -1
- package/src/utils/helpers.ts +22 -0
- package/src/utils/memoize.ts +6 -0
- package/src/utils/normalizeBundle.ts +8 -1
- package/src/version.ts +1 -1
- package/dist/common/chunk-F43XVDYJ.js.map +0 -1
- package/dist/esm/chunk-2CJC43CV.mjs.map +0 -1
- package/dist/esm/chunk-2CKUTG67.mjs.map +0 -1
- package/dist/esm/chunk-2E3BT4YW.mjs.map +0 -1
- package/dist/esm/chunk-2E3EAJPC.mjs.map +0 -1
- package/dist/esm/chunk-2G7SAWM3.mjs.map +0 -1
- package/dist/esm/chunk-2WLKSKL7.mjs.map +0 -1
- package/dist/esm/chunk-2YTHKFJZ.mjs.map +0 -1
- package/dist/esm/chunk-362NFXZR.mjs.map +0 -1
- package/dist/esm/chunk-3BWKODVZ.mjs.map +0 -1
- package/dist/esm/chunk-3QIOEU3Z.mjs.map +0 -1
- package/dist/esm/chunk-3QUZFCNW.mjs.map +0 -1
- package/dist/esm/chunk-3TOPGQJA.mjs.map +0 -1
- package/dist/esm/chunk-42H7WETG.mjs.map +0 -1
- package/dist/esm/chunk-4JX6OQEE.mjs.map +0 -1
- package/dist/esm/chunk-4O5XDQDO.mjs +0 -2
- package/dist/esm/chunk-4O5XDQDO.mjs.map +0 -1
- package/dist/esm/chunk-4ZNSNWQL.mjs.map +0 -1
- package/dist/esm/chunk-554TWPPO.mjs.map +0 -1
- package/dist/esm/chunk-5B3SMBXQ.mjs +0 -2
- package/dist/esm/chunk-5B3SMBXQ.mjs.map +0 -1
- package/dist/esm/chunk-5XLZACVT.mjs.map +0 -1
- package/dist/esm/chunk-6EVBSHT2.mjs +0 -2
- package/dist/esm/chunk-6EVBSHT2.mjs.map +0 -1
- package/dist/esm/chunk-6Q2O5G3J.mjs.map +0 -1
- package/dist/esm/chunk-6YFM6NEC.mjs.map +0 -1
- package/dist/esm/chunk-6ZOVTYLJ.mjs.map +0 -1
- package/dist/esm/chunk-77ILVREP.mjs +0 -2
- package/dist/esm/chunk-77ILVREP.mjs.map +0 -1
- package/dist/esm/chunk-7BKLEHKL.mjs.map +0 -1
- package/dist/esm/chunk-7CDITZUS.mjs.map +0 -1
- package/dist/esm/chunk-7R44XXPU.mjs.map +0 -1
- package/dist/esm/chunk-A7KFSQSE.mjs +0 -2
- package/dist/esm/chunk-A7KFSQSE.mjs.map +0 -1
- package/dist/esm/chunk-ACVIE7IE.mjs.map +0 -1
- package/dist/esm/chunk-AJ5JHBAE.mjs.map +0 -1
- package/dist/esm/chunk-AKIO3OIT.mjs.map +0 -1
- package/dist/esm/chunk-AOQJI6IC.mjs.map +0 -1
- package/dist/esm/chunk-AOROYJ74.mjs.map +0 -1
- package/dist/esm/chunk-AR6BOLET.mjs.map +0 -1
- package/dist/esm/chunk-AVZYJAXR.mjs +0 -2
- package/dist/esm/chunk-AVZYJAXR.mjs.map +0 -1
- package/dist/esm/chunk-B2OF42B3.mjs.map +0 -1
- package/dist/esm/chunk-B6ERS4UX.mjs.map +0 -1
- package/dist/esm/chunk-BKSQPS2O.mjs.map +0 -1
- package/dist/esm/chunk-BRV3RLKW.mjs.map +0 -1
- package/dist/esm/chunk-BVUMR7DQ.mjs.map +0 -1
- package/dist/esm/chunk-BZ7OCXLM.mjs +0 -2
- package/dist/esm/chunk-BZ7OCXLM.mjs.map +0 -1
- package/dist/esm/chunk-CK5NDXQT.mjs.map +0 -1
- package/dist/esm/chunk-D3OEQLUE.mjs +0 -2
- package/dist/esm/chunk-D3OEQLUE.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-D6WMUQB5.mjs.map +0 -1
- package/dist/esm/chunk-DBAISV4K.mjs.map +0 -1
- package/dist/esm/chunk-EPBNJZ4A.mjs.map +0 -1
- package/dist/esm/chunk-EVA2SMAU.mjs.map +0 -1
- package/dist/esm/chunk-EVASO3UR.mjs.map +0 -1
- package/dist/esm/chunk-FFBC7GFN.mjs.map +0 -1
- package/dist/esm/chunk-FZDEGDUY.mjs.map +0 -1
- package/dist/esm/chunk-GAEAYY44.mjs +0 -1
- package/dist/esm/chunk-GMKKHGXK.mjs.map +0 -1
- package/dist/esm/chunk-GX4CYRK4.mjs.map +0 -1
- package/dist/esm/chunk-H6RW3TML.mjs +0 -2
- package/dist/esm/chunk-H6RW3TML.mjs.map +0 -1
- package/dist/esm/chunk-HBIDHQ2M.mjs.map +0 -1
- package/dist/esm/chunk-HXCL6KBW.mjs +0 -2
- package/dist/esm/chunk-HXCL6KBW.mjs.map +0 -1
- package/dist/esm/chunk-IHGA5KAD.mjs.map +0 -1
- package/dist/esm/chunk-IIV42FZR.mjs +0 -2
- package/dist/esm/chunk-IIV42FZR.mjs.map +0 -1
- package/dist/esm/chunk-IKJAX5KQ.mjs.map +0 -1
- package/dist/esm/chunk-IZ3I5XZU.mjs +0 -2
- package/dist/esm/chunk-IZ3I5XZU.mjs.map +0 -1
- package/dist/esm/chunk-J2NQJ34O.mjs.map +0 -1
- package/dist/esm/chunk-J45GIVXE.mjs.map +0 -1
- package/dist/esm/chunk-J7PJSK3J.mjs.map +0 -1
- package/dist/esm/chunk-JJXLJY37.mjs.map +0 -1
- package/dist/esm/chunk-JNO7KPMG.mjs.map +0 -1
- package/dist/esm/chunk-LGTOOAQI.mjs.map +0 -1
- package/dist/esm/chunk-LRN4ALMT.mjs +0 -2
- package/dist/esm/chunk-LRN4ALMT.mjs.map +0 -1
- package/dist/esm/chunk-MHN6XY4Z.mjs +0 -2
- package/dist/esm/chunk-MHN6XY4Z.mjs.map +0 -1
- package/dist/esm/chunk-NNWPYX3K.mjs.map +0 -1
- package/dist/esm/chunk-OIOGOW6I.mjs.map +0 -1
- package/dist/esm/chunk-OPO5EYF7.mjs.map +0 -1
- package/dist/esm/chunk-OZK26LTY.mjs.map +0 -1
- package/dist/esm/chunk-P6RNNESB.mjs.map +0 -1
- package/dist/esm/chunk-PC4HNMCP.mjs +0 -2
- package/dist/esm/chunk-PC4HNMCP.mjs.map +0 -1
- package/dist/esm/chunk-PMA7XAFK.mjs.map +0 -1
- package/dist/esm/chunk-Q3CWUEXI.mjs.map +0 -1
- package/dist/esm/chunk-QCIRC2SG.mjs.map +0 -1
- package/dist/esm/chunk-S22QVNK7.mjs.map +0 -1
- package/dist/esm/chunk-SHAKBL2R.mjs.map +0 -1
- package/dist/esm/chunk-SPRNSFUV.mjs.map +0 -1
- package/dist/esm/chunk-T6ADNZE5.mjs.map +0 -1
- package/dist/esm/chunk-T7BTSSX7.mjs.map +0 -1
- package/dist/esm/chunk-TE3SBS7J.mjs.map +0 -1
- package/dist/esm/chunk-U7UTBXJD.mjs.map +0 -1
- package/dist/esm/chunk-UGTIALNW.mjs +0 -2
- package/dist/esm/chunk-UQIMOQZ7.mjs.map +0 -1
- package/dist/esm/chunk-UTOO6IVJ.mjs.map +0 -1
- package/dist/esm/chunk-UZTJWOLS.mjs +0 -2
- package/dist/esm/chunk-UZTJWOLS.mjs.map +0 -1
- package/dist/esm/chunk-V4FKFCBL.mjs.map +0 -1
- package/dist/esm/chunk-V5NDNR36.mjs +0 -2
- package/dist/esm/chunk-V5NDNR36.mjs.map +0 -1
- package/dist/esm/chunk-VGJIATTB.mjs.map +0 -1
- package/dist/esm/chunk-VQZMI3EZ.mjs.map +0 -1
- package/dist/esm/chunk-WIDWY7A2.mjs.map +0 -1
- package/dist/esm/chunk-WJSZAGHP.mjs.map +0 -1
- package/dist/esm/chunk-XEW2YQE2.mjs.map +0 -1
- package/dist/esm/chunk-YIQ3JFHW.mjs +0 -2
- package/dist/esm/chunk-YIQ3JFHW.mjs.map +0 -1
- package/dist/esm/chunk-YQHOQJRQ.mjs +0 -2
- package/dist/esm/chunk-YT3IP57B.mjs.map +0 -1
- package/dist/esm/chunk-ZMBXHMVQ.mjs.map +0 -1
- /package/dist/esm/{chunk-GAEAYY44.mjs.map → account/AccountUtils.mjs.map} +0 -0
- /package/dist/esm/{chunk-SOLRIYPW.mjs.map → chunk-7FCSZ5LT.mjs.map} +0 -0
- /package/dist/esm/{chunk-F45G3GP3.mjs.map → chunk-QHEKBHNU.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-63JTAZEH.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-BWDNXTV6.mjs";import"../../chunk-YZAUA2GG.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-EVG6EXWX.mjs";import"../../chunk-UIRAXHDH.mjs";import"../../chunk-VFLH3KLJ.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-RKY36HTP.mjs";import"../../chunk-ZMSWKJDU.mjs";import"../../chunk-AZWVCBK2.mjs";import"../../chunk-HBH2NQKU.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-CKKCL3LM.mjs";import"../../chunk-ESLJXR3M.mjs";import"../../chunk-22HNYCN4.mjs";import"../../chunk-AKLUTUMD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GP4TLDVZ.mjs";import"../../chunk-BPNW35GW.mjs";import"../../chunk-DGJHSYF5.mjs";import"../../chunk-DTICBERU.mjs";import"../../chunk-2YQZYHWO.mjs";import"../../chunk-JJM6ELMS.mjs";import"../../chunk-AV6G4ACP.mjs";import"../../chunk-6XUFRKGR.mjs";import"../../chunk-DPP3ROKC.mjs";import"../../chunk-MNWN4IT6.mjs";import"../../chunk-4ZYPDCSP.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-MCLYDS3O.mjs";import"../../chunk-OHZURQPY.mjs";import"../../chunk-WG3SZFSJ.mjs";import"../../chunk-UC23V7PU.mjs";import"../../chunk-7IY3DTEF.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-ONTWK5FU.mjs";import"../../chunk-G4O6FXCF.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N4DM5FYH.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-R3VMJE5K.mjs";import"../../chunk-75IC2LNI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-BI3BTSUB.mjs";import"../../chunk-SCXTC4PW.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-ODEDSSQL.mjs";import"../../chunk-NS5YFLZQ.mjs";import"../../chunk-424ZTUPT.mjs";import"../../chunk-G5ZWH5T3.mjs";import"../../chunk-OOJGI2IR.mjs";import"../../chunk-TMI4XNRL.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-T6NQDM7D.mjs";import"../../chunk-XGF7UNEW.mjs";import"../../chunk-EMURYYVO.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-FN4C3CKC.mjs";import"../../chunk-Q4C4U6I4.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-QD55JBJB.mjs";import"../../chunk-5VILVOYP.mjs";import"../../chunk-EYE4UEWZ.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-4YLUM62M.mjs";import"../../chunk-QHEKBHNU.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-IDTLNF4M.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-DAFSKSZ5.mjs";import"../../chunk-XTOIL6MB.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-IOZSAIGP.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as TransactionManagement};
|
|
2
2
|
//# sourceMappingURL=management.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountAuthenticator } from '../../transactions/authenticator/account.mjs';
|
|
2
2
|
import { AptosConfig } from '../aptosConfig.mjs';
|
|
3
|
-
import { A as Account } from '../../Ed25519Account-
|
|
3
|
+
import { A as Account } from '../../Ed25519Account-D4j3_WIS.mjs';
|
|
4
4
|
import { AnyRawTransaction } from '../../transactions/types.mjs';
|
|
5
5
|
import '../../bcs/deserializer.mjs';
|
|
6
6
|
import '../../types/types.mjs';
|
|
@@ -13,7 +13,7 @@ import '../../bcs/serializer.mjs';
|
|
|
13
13
|
import '../../core/hex.mjs';
|
|
14
14
|
import '../../core/common.mjs';
|
|
15
15
|
import '../../core/crypto/ed25519.mjs';
|
|
16
|
-
import '../../publicKey-
|
|
16
|
+
import '../../publicKey-BMtGNNLg.mjs';
|
|
17
17
|
import '../../core/accountAddress.mjs';
|
|
18
18
|
import '../../transactions/instances/transactionArgument.mjs';
|
|
19
19
|
import '../../core/crypto/signature.mjs';
|
|
@@ -21,6 +21,7 @@ import '../../core/crypto/privateKey.mjs';
|
|
|
21
21
|
import '../../core/crypto/multiEd25519.mjs';
|
|
22
22
|
import '../../core/crypto/multiKey.mjs';
|
|
23
23
|
import '../../core/crypto/singleKey.mjs';
|
|
24
|
+
import '../../core/crypto/secp256k1.mjs';
|
|
24
25
|
import '../../utils/const.mjs';
|
|
25
26
|
import '../../bcs/serializable/moveStructs.mjs';
|
|
26
27
|
import '../../bcs/serializable/movePrimitives.mjs';
|
|
@@ -38,6 +39,7 @@ import '../../transactions/instances/multiAgentTransaction.mjs';
|
|
|
38
39
|
* A class to handle all `Sign` transaction operations.
|
|
39
40
|
*
|
|
40
41
|
* @param config - The configuration object for Aptos.
|
|
42
|
+
* @group Implementation
|
|
41
43
|
*/
|
|
42
44
|
declare class Sign {
|
|
43
45
|
readonly config: AptosConfig;
|
|
@@ -59,6 +61,7 @@ declare class Sign {
|
|
|
59
61
|
* }
|
|
60
62
|
* runExample().catch(console.error);
|
|
61
63
|
* ```
|
|
64
|
+
* @group Implementation
|
|
62
65
|
*/
|
|
63
66
|
constructor(config: AptosConfig);
|
|
64
67
|
/**
|
|
@@ -96,6 +99,7 @@ declare class Sign {
|
|
|
96
99
|
* }
|
|
97
100
|
* runExample().catch(console.error);
|
|
98
101
|
* ```
|
|
102
|
+
* @group Implementation
|
|
99
103
|
*/
|
|
100
104
|
transaction(args: {
|
|
101
105
|
signer: Account;
|
|
@@ -137,6 +141,7 @@ declare class Sign {
|
|
|
137
141
|
* }
|
|
138
142
|
* runExample().catch(console.error);
|
|
139
143
|
* ```
|
|
144
|
+
* @group Implementation
|
|
140
145
|
*/
|
|
141
146
|
transactionAsFeePayer(args: {
|
|
142
147
|
signer: Account;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as o}from"../../chunk-
|
|
1
|
+
import{e as o}from"../../chunk-EVG6EXWX.mjs";import"../../chunk-UIRAXHDH.mjs";import"../../chunk-VFLH3KLJ.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-RKY36HTP.mjs";import"../../chunk-ZMSWKJDU.mjs";import"../../chunk-AZWVCBK2.mjs";import"../../chunk-HBH2NQKU.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-CKKCL3LM.mjs";import"../../chunk-ESLJXR3M.mjs";import"../../chunk-22HNYCN4.mjs";import"../../chunk-AKLUTUMD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GP4TLDVZ.mjs";import"../../chunk-BPNW35GW.mjs";import"../../chunk-DGJHSYF5.mjs";import"../../chunk-DTICBERU.mjs";import"../../chunk-2YQZYHWO.mjs";import"../../chunk-JJM6ELMS.mjs";import"../../chunk-AV6G4ACP.mjs";import"../../chunk-6XUFRKGR.mjs";import"../../chunk-DPP3ROKC.mjs";import"../../chunk-MNWN4IT6.mjs";import"../../chunk-4ZYPDCSP.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-MCLYDS3O.mjs";import"../../chunk-OHZURQPY.mjs";import"../../chunk-WG3SZFSJ.mjs";import"../../chunk-UC23V7PU.mjs";import"../../chunk-7IY3DTEF.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-ONTWK5FU.mjs";import"../../chunk-G4O6FXCF.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N4DM5FYH.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-R3VMJE5K.mjs";import"../../chunk-75IC2LNI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-BI3BTSUB.mjs";import"../../chunk-SCXTC4PW.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-ODEDSSQL.mjs";import"../../chunk-NS5YFLZQ.mjs";import"../../chunk-424ZTUPT.mjs";import"../../chunk-G5ZWH5T3.mjs";import"../../chunk-OOJGI2IR.mjs";import"../../chunk-TMI4XNRL.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-T6NQDM7D.mjs";import"../../chunk-XGF7UNEW.mjs";import"../../chunk-EMURYYVO.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-FN4C3CKC.mjs";import"../../chunk-Q4C4U6I4.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-QD55JBJB.mjs";import"../../chunk-5VILVOYP.mjs";import"../../chunk-EYE4UEWZ.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-4YLUM62M.mjs";import"../../chunk-QHEKBHNU.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-IDTLNF4M.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-DAFSKSZ5.mjs";import"../../chunk-XTOIL6MB.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-IOZSAIGP.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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/api/transactionSubmission/sign.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Account } from \"../../account\";\nimport { signTransaction } from \"../../internal/transactionSubmission\";\nimport { AccountAuthenticator, AnyRawTransaction } from \"../../transactions\";\nimport { AptosConfig } from \"../aptosConfig\";\n\n/**\n * A class to handle all `Sign` transaction operations.\n *\n * @param config - The configuration object for Aptos.\n */\nexport class Sign {\n readonly config: AptosConfig;\n\n /**\n * Creates an instance of the Aptos client with the specified configuration.\n *\n * @param config - The configuration settings for the Aptos client.\n *\n * @example\n * ```typescript\n * import { Aptos, AptosConfig, Network } from \"@aptos-labs/ts-sdk\";\n *\n * async function runExample() {\n * // Create a new Aptos client with testnet configuration\n * const config = new AptosConfig({ network: Network.TESTNET });\n * const aptos = new Aptos(config);\n *\n * console.log(\"Aptos client created with config:\", config);\n * }\n * runExample().catch(console.error);\n * ```\n */\n constructor(config: AptosConfig) {\n this.config = config;\n }\n\n /**\n * Signs a transaction using the provided account signer. This function is essential for ensuring that transactions are properly\n * authenticated before being sent to the network.\n *\n * @param args - The arguments for signing the transaction.\n * @param args.signer - The account that will sign the transaction.\n * @param args.transaction - The raw transaction data to be signed.\n *\n * @example\n * ```typescript\n * import { Aptos, AptosConfig, Network, Account } from \"@aptos-labs/ts-sdk\";\n *\n * const config = new AptosConfig({ network: Network.TESTNET });\n * const aptos = new Aptos(config);\n *\n * async function runExample() {\n * const sender = Account.generate(); // Generate a new account for signing\n * const transaction = await aptos.transaction.build.simple({\n * sender: sender.accountAddress,\n * data: {\n * function: \"0x1::aptos_account::transfer\",\n * functionArguments: [ \"0x1\", 100 ], // replace with a real account address and amount\n * },\n * });\n *\n * // Sign the transaction\n * const signedTransaction = await aptos.transaction.sign({\n * signer: sender,\n * transaction: transaction,\n * });\n *\n * console.log(\"Signed Transaction:\", signedTransaction);\n * }\n * runExample().catch(console.error);\n * ```\n */\n // eslint-disable-next-line class-methods-use-this\n transaction(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n return signTransaction({\n ...args,\n });\n }\n\n /**\n * Sets the fee payer address for a transaction and signs it with the provided account.\n * This function is essential for transactions that require a designated fee payer.\n *\n * @param args - The arguments for the function.\n * @param args.signer - The account that will sign the transaction.\n * @param args.transaction - The transaction object that requires a fee payer address.\n *\n * @throws Error if the transaction does not have a feePayerAddress property.\n *\n * @example\n * ```typescript\n * import { Aptos, AptosConfig, Network, Account } from \"@aptos-labs/ts-sdk\";\n *\n * const config = new AptosConfig({ network: Network.TESTNET });\n * const aptos = new Aptos(config);\n *\n * async function runExample() {\n * const sender = Account.generate(); // Generate a new account for signing\n * const transaction = await aptos.transaction.build.simple({\n * sender: sender.accountAddress,\n * data: {\n * function: \"0x1::aptos_account::transfer\",\n * functionArguments: [\"0x1\", 100], // replace with a real recipient address\n * },\n * });\n *\n * // Set the fee payer for the transaction\n * transaction.feePayerAddress = \"0x1\"; // replace with a real fee payer address\n *\n * const signedTransaction = await aptos.transactionAsFeePayer({ signer: sender, transaction });\n *\n * console.log(\"Signed Transaction:\", signedTransaction);\n * }\n * runExample().catch(console.error);\n * ```\n */\n // eslint-disable-next-line class-methods-use-this\n transactionAsFeePayer(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n const { signer, transaction } = args;\n\n // if transaction doesn't hold a \"feePayerAddress\" prop it means\n // this is not a fee payer transaction\n if (!transaction.feePayerAddress) {\n throw new Error(`Transaction ${transaction} is not a Fee Payer transaction`);\n }\n\n // Set the feePayerAddress to the signer account address\n transaction.feePayerAddress = signer.accountAddress;\n\n return signTransaction({\n signer,\n transaction,\n });\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/api/transactionSubmission/sign.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Account } from \"../../account\";\nimport { signTransaction } from \"../../internal/transactionSubmission\";\nimport { AccountAuthenticator, AnyRawTransaction } from \"../../transactions\";\nimport { AptosConfig } from \"../aptosConfig\";\n\n/**\n * A class to handle all `Sign` transaction operations.\n *\n * @param config - The configuration object for Aptos.\n * @group Implementation\n */\nexport class Sign {\n readonly config: AptosConfig;\n\n /**\n * Creates an instance of the Aptos client with the specified configuration.\n *\n * @param config - The configuration settings for the Aptos client.\n *\n * @example\n * ```typescript\n * import { Aptos, AptosConfig, Network } from \"@aptos-labs/ts-sdk\";\n *\n * async function runExample() {\n * // Create a new Aptos client with testnet configuration\n * const config = new AptosConfig({ network: Network.TESTNET });\n * const aptos = new Aptos(config);\n *\n * console.log(\"Aptos client created with config:\", config);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Implementation\n */\n constructor(config: AptosConfig) {\n this.config = config;\n }\n\n /**\n * Signs a transaction using the provided account signer. This function is essential for ensuring that transactions are properly\n * authenticated before being sent to the network.\n *\n * @param args - The arguments for signing the transaction.\n * @param args.signer - The account that will sign the transaction.\n * @param args.transaction - The raw transaction data to be signed.\n *\n * @example\n * ```typescript\n * import { Aptos, AptosConfig, Network, Account } from \"@aptos-labs/ts-sdk\";\n *\n * const config = new AptosConfig({ network: Network.TESTNET });\n * const aptos = new Aptos(config);\n *\n * async function runExample() {\n * const sender = Account.generate(); // Generate a new account for signing\n * const transaction = await aptos.transaction.build.simple({\n * sender: sender.accountAddress,\n * data: {\n * function: \"0x1::aptos_account::transfer\",\n * functionArguments: [ \"0x1\", 100 ], // replace with a real account address and amount\n * },\n * });\n *\n * // Sign the transaction\n * const signedTransaction = await aptos.transaction.sign({\n * signer: sender,\n * transaction: transaction,\n * });\n *\n * console.log(\"Signed Transaction:\", signedTransaction);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Implementation\n */\n // eslint-disable-next-line class-methods-use-this\n transaction(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n return signTransaction({\n ...args,\n });\n }\n\n /**\n * Sets the fee payer address for a transaction and signs it with the provided account.\n * This function is essential for transactions that require a designated fee payer.\n *\n * @param args - The arguments for the function.\n * @param args.signer - The account that will sign the transaction.\n * @param args.transaction - The transaction object that requires a fee payer address.\n *\n * @throws Error if the transaction does not have a feePayerAddress property.\n *\n * @example\n * ```typescript\n * import { Aptos, AptosConfig, Network, Account } from \"@aptos-labs/ts-sdk\";\n *\n * const config = new AptosConfig({ network: Network.TESTNET });\n * const aptos = new Aptos(config);\n *\n * async function runExample() {\n * const sender = Account.generate(); // Generate a new account for signing\n * const transaction = await aptos.transaction.build.simple({\n * sender: sender.accountAddress,\n * data: {\n * function: \"0x1::aptos_account::transfer\",\n * functionArguments: [\"0x1\", 100], // replace with a real recipient address\n * },\n * });\n *\n * // Set the fee payer for the transaction\n * transaction.feePayerAddress = \"0x1\"; // replace with a real fee payer address\n *\n * const signedTransaction = await aptos.transactionAsFeePayer({ signer: sender, transaction });\n *\n * console.log(\"Signed Transaction:\", signedTransaction);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Implementation\n */\n // eslint-disable-next-line class-methods-use-this\n transactionAsFeePayer(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n const { signer, transaction } = args;\n\n // if transaction doesn't hold a \"feePayerAddress\" prop it means\n // this is not a fee payer transaction\n if (!transaction.feePayerAddress) {\n throw new Error(`Transaction ${transaction} is not a Fee Payer transaction`);\n }\n\n // Set the feePayerAddress to the signer account address\n transaction.feePayerAddress = signer.accountAddress;\n\n return signTransaction({\n signer,\n transaction,\n });\n }\n}\n"],"mappings":"q4FAcO,IAAMA,EAAN,KAAW,CAuBhB,YAAYC,EAAqB,CAC/B,KAAK,OAASA,CAChB,CAwCA,YAAYC,EAAiF,CAC3F,OAAOC,EAAgB,CACrB,GAAGD,CACL,CAAC,CACH,CAyCA,sBAAsBA,EAAiF,CACrG,GAAM,CAAE,OAAAE,EAAQ,YAAAC,CAAY,EAAIH,EAIhC,GAAI,CAACG,EAAY,gBACf,MAAM,IAAI,MAAM,eAAeA,CAAW,iCAAiC,EAI7E,OAAAA,EAAY,gBAAkBD,EAAO,eAE9BD,EAAgB,CACrB,OAAAC,EACA,YAAAC,CACF,CAAC,CACH,CACF","names":["Sign","config","args","signTransaction","signer","transaction"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UserTransactionResponse } from '../../types/types.mjs';
|
|
2
|
-
import { P as PublicKey } from '../../publicKey-
|
|
2
|
+
import { P as PublicKey } from '../../publicKey-BMtGNNLg.mjs';
|
|
3
3
|
import { AptosConfig } from '../aptosConfig.mjs';
|
|
4
4
|
import { AnyRawTransaction, InputSimulateTransactionOptions } from '../../transactions/types.mjs';
|
|
5
5
|
import '../../types/indexer.mjs';
|
|
@@ -30,11 +30,13 @@ import '../../core/crypto/privateKey.mjs';
|
|
|
30
30
|
import '../../core/crypto/multiEd25519.mjs';
|
|
31
31
|
import '../../core/crypto/multiKey.mjs';
|
|
32
32
|
import '../../core/crypto/singleKey.mjs';
|
|
33
|
+
import '../../core/crypto/secp256k1.mjs';
|
|
33
34
|
import '../../transactions/instances/simpleTransaction.mjs';
|
|
34
35
|
import '../../transactions/instances/multiAgentTransaction.mjs';
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* A class to handle all `Simulate` transaction operations.
|
|
39
|
+
* @group Implementation
|
|
38
40
|
*/
|
|
39
41
|
declare class Simulate {
|
|
40
42
|
readonly config: AptosConfig;
|
|
@@ -61,6 +63,7 @@ declare class Simulate {
|
|
|
61
63
|
* }
|
|
62
64
|
* runExample().catch(console.error);
|
|
63
65
|
* ```
|
|
66
|
+
* @group Implementation
|
|
64
67
|
*/
|
|
65
68
|
constructor(config: AptosConfig);
|
|
66
69
|
/**
|
|
@@ -118,6 +121,7 @@ declare class Simulate {
|
|
|
118
121
|
*
|
|
119
122
|
* example();
|
|
120
123
|
* ```
|
|
124
|
+
* @group Implementation
|
|
121
125
|
*/
|
|
122
126
|
simple(args: {
|
|
123
127
|
signerPublicKey?: PublicKey;
|
|
@@ -191,6 +195,7 @@ declare class Simulate {
|
|
|
191
195
|
*
|
|
192
196
|
* example();
|
|
193
197
|
* ```
|
|
198
|
+
* @group Implementation
|
|
194
199
|
*/
|
|
195
200
|
multiAgent(args: {
|
|
196
201
|
signerPublicKey?: PublicKey;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-LA7EWU7P.mjs";import"../../chunk-W4BSN6SK.mjs";import"../../chunk-EVG6EXWX.mjs";import"../../chunk-UIRAXHDH.mjs";import"../../chunk-VFLH3KLJ.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-RKY36HTP.mjs";import"../../chunk-ZMSWKJDU.mjs";import"../../chunk-AZWVCBK2.mjs";import"../../chunk-HBH2NQKU.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-CKKCL3LM.mjs";import"../../chunk-ESLJXR3M.mjs";import"../../chunk-22HNYCN4.mjs";import"../../chunk-AKLUTUMD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GP4TLDVZ.mjs";import"../../chunk-BPNW35GW.mjs";import"../../chunk-DGJHSYF5.mjs";import"../../chunk-DTICBERU.mjs";import"../../chunk-2YQZYHWO.mjs";import"../../chunk-JJM6ELMS.mjs";import"../../chunk-AV6G4ACP.mjs";import"../../chunk-6XUFRKGR.mjs";import"../../chunk-DPP3ROKC.mjs";import"../../chunk-MNWN4IT6.mjs";import"../../chunk-4ZYPDCSP.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-MCLYDS3O.mjs";import"../../chunk-OHZURQPY.mjs";import"../../chunk-WG3SZFSJ.mjs";import"../../chunk-UC23V7PU.mjs";import"../../chunk-7IY3DTEF.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-ONTWK5FU.mjs";import"../../chunk-G4O6FXCF.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N4DM5FYH.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-R3VMJE5K.mjs";import"../../chunk-75IC2LNI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-BI3BTSUB.mjs";import"../../chunk-SCXTC4PW.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-ODEDSSQL.mjs";import"../../chunk-NS5YFLZQ.mjs";import"../../chunk-424ZTUPT.mjs";import"../../chunk-G5ZWH5T3.mjs";import"../../chunk-OOJGI2IR.mjs";import"../../chunk-TMI4XNRL.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-T6NQDM7D.mjs";import"../../chunk-XGF7UNEW.mjs";import"../../chunk-EMURYYVO.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-FN4C3CKC.mjs";import"../../chunk-Q4C4U6I4.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-QD55JBJB.mjs";import"../../chunk-5VILVOYP.mjs";import"../../chunk-EYE4UEWZ.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-4YLUM62M.mjs";import"../../chunk-QHEKBHNU.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-IDTLNF4M.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-DAFSKSZ5.mjs";import"../../chunk-XTOIL6MB.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-IOZSAIGP.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Simulate};
|
|
2
2
|
//# sourceMappingURL=simulate.mjs.map
|
|
@@ -12,7 +12,7 @@ import '../../bcs/serializer.mjs';
|
|
|
12
12
|
import '../../core/hex.mjs';
|
|
13
13
|
import '../../core/common.mjs';
|
|
14
14
|
import '../../core/crypto/ed25519.mjs';
|
|
15
|
-
import '../../publicKey-
|
|
15
|
+
import '../../publicKey-BMtGNNLg.mjs';
|
|
16
16
|
import '../../core/accountAddress.mjs';
|
|
17
17
|
import '../../transactions/instances/transactionArgument.mjs';
|
|
18
18
|
import '../../core/crypto/signature.mjs';
|
|
@@ -20,6 +20,7 @@ import '../../core/crypto/privateKey.mjs';
|
|
|
20
20
|
import '../../core/crypto/multiEd25519.mjs';
|
|
21
21
|
import '../../core/crypto/multiKey.mjs';
|
|
22
22
|
import '../../core/crypto/singleKey.mjs';
|
|
23
|
+
import '../../core/crypto/secp256k1.mjs';
|
|
23
24
|
import '../../utils/const.mjs';
|
|
24
25
|
import '../../bcs/serializable/moveStructs.mjs';
|
|
25
26
|
import '../../bcs/serializable/movePrimitives.mjs';
|
|
@@ -35,6 +36,7 @@ import '../../transactions/instances/multiAgentTransaction.mjs';
|
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* A class to handle all `Submit` transaction operations.
|
|
39
|
+
* @group Implementation
|
|
38
40
|
*/
|
|
39
41
|
declare class Submit {
|
|
40
42
|
readonly config: AptosConfig;
|
|
@@ -66,6 +68,7 @@ declare class Submit {
|
|
|
66
68
|
* }
|
|
67
69
|
* runExample().catch(console.error);
|
|
68
70
|
* ```
|
|
71
|
+
* @group Implementation
|
|
69
72
|
*/
|
|
70
73
|
constructor(config: AptosConfig);
|
|
71
74
|
/**
|
|
@@ -104,6 +107,7 @@ declare class Submit {
|
|
|
104
107
|
* }
|
|
105
108
|
* runExample().catch(console.error);
|
|
106
109
|
* ```
|
|
110
|
+
* @group Implementation
|
|
107
111
|
*/
|
|
108
112
|
simple(args: {
|
|
109
113
|
transaction: AnyRawTransaction;
|
|
@@ -153,6 +157,7 @@ declare class Submit {
|
|
|
153
157
|
* }
|
|
154
158
|
* runExample().catch(console.error);
|
|
155
159
|
* ```
|
|
160
|
+
* @group Implementation
|
|
156
161
|
*/
|
|
157
162
|
multiAgent(args: {
|
|
158
163
|
transaction: AnyRawTransaction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-MSE2YEDF.mjs";import"../../chunk-W4BSN6SK.mjs";import"../../chunk-EVG6EXWX.mjs";import"../../chunk-UIRAXHDH.mjs";import"../../chunk-VFLH3KLJ.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-RKY36HTP.mjs";import"../../chunk-ZMSWKJDU.mjs";import"../../chunk-AZWVCBK2.mjs";import"../../chunk-HBH2NQKU.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-CKKCL3LM.mjs";import"../../chunk-ESLJXR3M.mjs";import"../../chunk-22HNYCN4.mjs";import"../../chunk-AKLUTUMD.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GP4TLDVZ.mjs";import"../../chunk-BPNW35GW.mjs";import"../../chunk-DGJHSYF5.mjs";import"../../chunk-DTICBERU.mjs";import"../../chunk-2YQZYHWO.mjs";import"../../chunk-JJM6ELMS.mjs";import"../../chunk-AV6G4ACP.mjs";import"../../chunk-6XUFRKGR.mjs";import"../../chunk-DPP3ROKC.mjs";import"../../chunk-MNWN4IT6.mjs";import"../../chunk-4ZYPDCSP.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-MCLYDS3O.mjs";import"../../chunk-OHZURQPY.mjs";import"../../chunk-WG3SZFSJ.mjs";import"../../chunk-UC23V7PU.mjs";import"../../chunk-7IY3DTEF.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-ONTWK5FU.mjs";import"../../chunk-G4O6FXCF.mjs";import"../../chunk-XKUIMGKU.mjs";import"../../chunk-N4DM5FYH.mjs";import"../../chunk-N6YTF76Q.mjs";import"../../chunk-R3VMJE5K.mjs";import"../../chunk-75IC2LNI.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-BI3BTSUB.mjs";import"../../chunk-SCXTC4PW.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-ODEDSSQL.mjs";import"../../chunk-NS5YFLZQ.mjs";import"../../chunk-424ZTUPT.mjs";import"../../chunk-G5ZWH5T3.mjs";import"../../chunk-OOJGI2IR.mjs";import"../../chunk-TMI4XNRL.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-XJJVJOX5.mjs";import"../../chunk-T6NQDM7D.mjs";import"../../chunk-XGF7UNEW.mjs";import"../../chunk-EMURYYVO.mjs";import"../../chunk-WCMW2L3P.mjs";import"../../chunk-DPW6ELCQ.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-ROT6S6BM.mjs";import"../../chunk-FN4C3CKC.mjs";import"../../chunk-Q4C4U6I4.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-QD55JBJB.mjs";import"../../chunk-5VILVOYP.mjs";import"../../chunk-EYE4UEWZ.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-4YLUM62M.mjs";import"../../chunk-QHEKBHNU.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-IDTLNF4M.mjs";import"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-DAFSKSZ5.mjs";import"../../chunk-XTOIL6MB.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-IOZSAIGP.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Submit};
|
|
2
2
|
//# sourceMappingURL=submit.mjs.map
|
package/dist/esm/api/utils.d.mts
CHANGED
package/dist/esm/api/utils.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-2NWLRUD6.mjs";import"../chunk-22HNYCN4.mjs";import"../chunk-AKLUTUMD.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-YOZBVVKL.mjs";import"../chunk-7ECCT6PK.mjs";import"../chunk-QD55JBJB.mjs";import"../chunk-5VILVOYP.mjs";import"../chunk-EYE4UEWZ.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-4YLUM62M.mjs";import"../chunk-QHEKBHNU.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-IDTLNF4M.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-U2PRGW4O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-DAFSKSZ5.mjs";import"../chunk-XTOIL6MB.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-IOZSAIGP.mjs";import"../chunk-KDMSOCZY.mjs";export{a as waitForIndexerOnVersion};
|
|
2
2
|
//# sourceMappingURL=utils.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Uint8, Uint16, Uint32, Uint64, Uint128, Uint256 } from '../types/types.mjs';
|
|
1
|
+
import { HexInput, Uint8, Uint16, Uint32, Uint64, Uint128, Uint256 } from '../types/types.mjs';
|
|
2
2
|
import '../types/indexer.mjs';
|
|
3
3
|
import '../types/generated/operations.mjs';
|
|
4
4
|
import '../types/generated/types.mjs';
|
|
@@ -12,6 +12,8 @@ import '@aptos-labs/script-composer-pack';
|
|
|
12
12
|
* for static methods in interfaces.
|
|
13
13
|
*
|
|
14
14
|
* @template T - The type that this will deserialize into.
|
|
15
|
+
* @group Implementation
|
|
16
|
+
* @category BCS
|
|
15
17
|
*/
|
|
16
18
|
interface Deserializable<T> {
|
|
17
19
|
/**
|
|
@@ -28,12 +30,16 @@ interface Deserializable<T> {
|
|
|
28
30
|
* // value is now an instance of MyClass
|
|
29
31
|
* // equivalent to `const value = MyClass.deserialize(deserializer)`
|
|
30
32
|
* ```
|
|
33
|
+
* @group Implementation
|
|
34
|
+
* @category BCS
|
|
31
35
|
*/
|
|
32
36
|
deserialize(deserializer: Deserializer): T;
|
|
33
37
|
}
|
|
34
38
|
/**
|
|
35
39
|
* A class that provides methods for deserializing various data types from a byte buffer.
|
|
36
40
|
* It supports deserialization of primitive types, strings, and complex objects using a BCS (Binary Common Serialization) layout.
|
|
41
|
+
* @group Implementation
|
|
42
|
+
* @category BCS
|
|
37
43
|
*/
|
|
38
44
|
declare class Deserializer {
|
|
39
45
|
private buffer;
|
|
@@ -43,13 +49,18 @@ declare class Deserializer {
|
|
|
43
49
|
* This prevents outside mutation of the buffer.
|
|
44
50
|
*
|
|
45
51
|
* @param data - The data to be copied into the internal buffer as a Uint8Array.
|
|
52
|
+
* @group Implementation
|
|
53
|
+
* @category BCS
|
|
46
54
|
*/
|
|
47
55
|
constructor(data: Uint8Array);
|
|
56
|
+
static fromHex(hex: HexInput): Deserializer;
|
|
48
57
|
/**
|
|
49
58
|
* Reads a specified number of bytes from the buffer and advances the offset.
|
|
50
59
|
*
|
|
51
60
|
* @param length - The number of bytes to read from the buffer.
|
|
52
61
|
* @throws Throws an error if the read operation exceeds the buffer's length.
|
|
62
|
+
* @group Implementation
|
|
63
|
+
* @category BCS
|
|
53
64
|
*/
|
|
54
65
|
private read;
|
|
55
66
|
/**
|
|
@@ -58,10 +69,11 @@ declare class Deserializer {
|
|
|
58
69
|
* This information is useful to determine if there's more data to be read.
|
|
59
70
|
*
|
|
60
71
|
* @returns The number of bytes remaining in the buffer.
|
|
72
|
+
* @group Implementation
|
|
73
|
+
* @category BCS
|
|
61
74
|
*/
|
|
62
75
|
remaining(): number;
|
|
63
76
|
/**
|
|
64
|
-
* @deprecated use `deserializeOption` instead.
|
|
65
77
|
* Deserializes a UTF-8 encoded string from a byte array. It first reads the length of the string in bytes,
|
|
66
78
|
* followed by the actual byte content, and decodes it into a string.
|
|
67
79
|
*
|
|
@@ -73,8 +85,24 @@ declare class Deserializer {
|
|
|
73
85
|
* const deserializer = new Deserializer(new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
74
86
|
* assert(deserializer.deserializeStr() === "1234abcd");
|
|
75
87
|
* ```
|
|
88
|
+
* @group Implementation
|
|
89
|
+
* @category BCS
|
|
76
90
|
*/
|
|
77
91
|
deserializeStr(): string;
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated use `deserializeOption("string")` instead.
|
|
94
|
+
*
|
|
95
|
+
* The BCS layout for Optional<String> is 0 if none, else 1 followed by the string length and string content.
|
|
96
|
+
* @returns The deserialized string if it exists, otherwise undefined.
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* const deserializer = new Deserializer(new Uint8Array([0x00]));
|
|
100
|
+
* assert(deserializer.deserializeOptionStr() === undefined);
|
|
101
|
+
* const deserializer = new Deserializer(new Uint8Array([1, 8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
102
|
+
* assert(deserializer.deserializeOptionStr() === "1234abcd");
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
deserializeOptionStr(): string | undefined;
|
|
78
106
|
/**
|
|
79
107
|
* Deserializes an optional value from the buffer.
|
|
80
108
|
*
|
|
@@ -110,6 +138,8 @@ declare class Deserializer {
|
|
|
110
138
|
* const optBytes = deserializer.deserializeOption("fixedBytes", 4);
|
|
111
139
|
* // optBytes === Uint8Array[1, 2, 3, 4]
|
|
112
140
|
* ```
|
|
141
|
+
* @group Implementation
|
|
142
|
+
* @category BCS
|
|
113
143
|
*/
|
|
114
144
|
deserializeOption(type: "string"): string | undefined;
|
|
115
145
|
deserializeOption(type: "bytes"): Uint8Array | undefined;
|
|
@@ -122,12 +152,16 @@ declare class Deserializer {
|
|
|
122
152
|
* encoded as a uleb128 integer, indicating the length of the bytes array.
|
|
123
153
|
*
|
|
124
154
|
* @returns {Uint8Array} The deserialized array of bytes.
|
|
155
|
+
* @group Implementation
|
|
156
|
+
* @category BCS
|
|
125
157
|
*/
|
|
126
158
|
deserializeBytes(): Uint8Array;
|
|
127
159
|
/**
|
|
128
160
|
* Deserializes an array of bytes of a specified length.
|
|
129
161
|
*
|
|
130
162
|
* @param len - The number of bytes to read from the source.
|
|
163
|
+
* @group Implementation
|
|
164
|
+
* @category BCS
|
|
131
165
|
*/
|
|
132
166
|
deserializeFixedBytes(len: number): Uint8Array;
|
|
133
167
|
/**
|
|
@@ -138,6 +172,8 @@ declare class Deserializer {
|
|
|
138
172
|
*
|
|
139
173
|
* @returns The deserialized boolean value.
|
|
140
174
|
* @throws Throws an error if the boolean value is invalid.
|
|
175
|
+
* @group Implementation
|
|
176
|
+
* @category BCS
|
|
141
177
|
*/
|
|
142
178
|
deserializeBool(): boolean;
|
|
143
179
|
/**
|
|
@@ -146,6 +182,8 @@ declare class Deserializer {
|
|
|
146
182
|
* BCS layout for "uint8": One byte. Binary format in little-endian representation.
|
|
147
183
|
*
|
|
148
184
|
* @returns {number} The deserialized uint8 number.
|
|
185
|
+
* @group Implementation
|
|
186
|
+
* @category BCS
|
|
149
187
|
*/
|
|
150
188
|
deserializeU8(): Uint8;
|
|
151
189
|
/**
|
|
@@ -157,6 +195,8 @@ declare class Deserializer {
|
|
|
157
195
|
* const deserializer = new Deserializer(new Uint8Array([0x34, 0x12]));
|
|
158
196
|
* assert(deserializer.deserializeU16() === 4660);
|
|
159
197
|
* ```
|
|
198
|
+
* @group Implementation
|
|
199
|
+
* @category BCS
|
|
160
200
|
*/
|
|
161
201
|
deserializeU16(): Uint16;
|
|
162
202
|
/**
|
|
@@ -168,6 +208,8 @@ declare class Deserializer {
|
|
|
168
208
|
* const deserializer = new Deserializer(new Uint8Array([0x78, 0x56, 0x34, 0x12]));
|
|
169
209
|
* assert(deserializer.deserializeU32() === 305419896);
|
|
170
210
|
* ```
|
|
211
|
+
* @group Implementation
|
|
212
|
+
* @category BCS
|
|
171
213
|
*/
|
|
172
214
|
deserializeU32(): Uint32;
|
|
173
215
|
/**
|
|
@@ -179,6 +221,8 @@ declare class Deserializer {
|
|
|
179
221
|
* const deserializer = new Deserializer(new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
|
|
180
222
|
* assert(deserializer.deserializeU64() === 1311768467750121216);
|
|
181
223
|
* ```
|
|
224
|
+
* @group Implementation
|
|
225
|
+
* @category BCS
|
|
182
226
|
*/
|
|
183
227
|
deserializeU64(): Uint64;
|
|
184
228
|
/**
|
|
@@ -186,6 +230,8 @@ declare class Deserializer {
|
|
|
186
230
|
* This function combines two 64-bit values to return a single uint128 value in little-endian format.
|
|
187
231
|
*
|
|
188
232
|
* @returns {BigInt} The deserialized uint128 number.
|
|
233
|
+
* @group Implementation
|
|
234
|
+
* @category BCS
|
|
189
235
|
*/
|
|
190
236
|
deserializeU128(): Uint128;
|
|
191
237
|
/**
|
|
@@ -194,6 +240,8 @@ declare class Deserializer {
|
|
|
194
240
|
* The BCS layout for "uint256" consists of thirty-two bytes in little-endian format.
|
|
195
241
|
*
|
|
196
242
|
* @returns {BigInt} The deserialized uint256 number.
|
|
243
|
+
* @group Implementation
|
|
244
|
+
* @category BCS
|
|
197
245
|
*/
|
|
198
246
|
deserializeU256(): Uint256;
|
|
199
247
|
/**
|
|
@@ -203,6 +251,8 @@ declare class Deserializer {
|
|
|
203
251
|
*
|
|
204
252
|
* @throws {Error} Throws an error if the parsed value exceeds the maximum uint32 number.
|
|
205
253
|
* @returns {number} The deserialized uint32 value.
|
|
254
|
+
* @group Implementation
|
|
255
|
+
* @category BCS
|
|
206
256
|
*/
|
|
207
257
|
deserializeUleb128AsU32(): Uint32;
|
|
208
258
|
/**
|
|
@@ -217,6 +267,8 @@ declare class Deserializer {
|
|
|
217
267
|
* @param cls The BCS-deserializable class to deserialize the buffered bytes into.
|
|
218
268
|
*
|
|
219
269
|
* @returns the deserialized value of class type T
|
|
270
|
+
* @group Implementation
|
|
271
|
+
* @category BCS
|
|
220
272
|
*/
|
|
221
273
|
deserialize<T>(cls: Deserializable<T>): T;
|
|
222
274
|
/**
|
|
@@ -240,6 +292,8 @@ declare class Deserializer {
|
|
|
240
292
|
* const deserializer = new Deserializer(serializedBytes);
|
|
241
293
|
* const deserializedAddresses = deserializer.deserializeVector(AccountAddress);
|
|
242
294
|
* // deserializedAddresses is now an array of AccountAddress instances
|
|
295
|
+
* @group Implementation
|
|
296
|
+
* @category BCS
|
|
243
297
|
*/
|
|
244
298
|
deserializeVector<T>(cls: Deserializable<T>): Array<T>;
|
|
245
299
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-XTOIL6MB.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.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 p,b as q,c as r,d as s}from"../chunk-
|
|
1
|
+
import"../chunk-FZY4PMEE.mjs";import{a as h}from"../chunk-TOBQ5UE6.mjs";import{a as g}from"../chunk-MT2RJ7H3.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-IDTLNF4M.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-ORMOQWWH.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-U2PRGW4O.mjs";import"../chunk-4WPQQPUF.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-EBMEXURY.mjs";import{a}from"../chunk-XTOIL6MB.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.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
|
|
@@ -20,6 +20,8 @@ import '@aptos-labs/script-composer-pack';
|
|
|
20
20
|
* If you wish to convert this class back to a TransactionArgument, you must know the type
|
|
21
21
|
* of the argument beforehand, and use the appropriate class to deserialize the bytes within
|
|
22
22
|
* an instance of this class.
|
|
23
|
+
* @group Implementation
|
|
24
|
+
* @category BCS
|
|
23
25
|
*/
|
|
24
26
|
declare class EntryFunctionBytes extends Serializable implements EntryFunctionArgument {
|
|
25
27
|
readonly value: FixedBytes;
|
|
@@ -27,6 +29,8 @@ declare class EntryFunctionBytes extends Serializable implements EntryFunctionAr
|
|
|
27
29
|
* Creates an instance of the class with a specified hexadecimal input value.
|
|
28
30
|
*
|
|
29
31
|
* @param value - The hexadecimal input to be converted into FixedBytes.
|
|
32
|
+
* @group Implementation
|
|
33
|
+
* @category BCS
|
|
30
34
|
*/
|
|
31
35
|
private constructor();
|
|
32
36
|
/**
|
|
@@ -37,6 +41,8 @@ declare class EntryFunctionBytes extends Serializable implements EntryFunctionAr
|
|
|
37
41
|
* we must not serialize the length prefix.
|
|
38
42
|
*
|
|
39
43
|
* @param serializer - The serializer instance used to perform the serialization.
|
|
44
|
+
* @group Implementation
|
|
45
|
+
* @category BCS
|
|
40
46
|
*/
|
|
41
47
|
serialize(serializer: Serializer): void;
|
|
42
48
|
/**
|
|
@@ -45,6 +51,8 @@ declare class EntryFunctionBytes extends Serializable implements EntryFunctionAr
|
|
|
45
51
|
* This process includes serializing the length prefix of the byte vector.
|
|
46
52
|
*
|
|
47
53
|
* @param serializer - The serializer instance used to perform the serialization.
|
|
54
|
+
* @group Implementation
|
|
55
|
+
* @category BCS
|
|
48
56
|
*/
|
|
49
57
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
50
58
|
/**
|
|
@@ -53,6 +61,8 @@ declare class EntryFunctionBytes extends Serializable implements EntryFunctionAr
|
|
|
53
61
|
* @param deserializer - The deserializer instance with the buffered bytes.
|
|
54
62
|
* @param length - The length of the bytes to deserialize.
|
|
55
63
|
* @returns An instance of this class, which will now only be usable as an EntryFunctionArgument.
|
|
64
|
+
* @group Implementation
|
|
65
|
+
* @category BCS
|
|
56
66
|
*/
|
|
57
67
|
static deserialize(deserializer: Deserializer, length: number): EntryFunctionBytes;
|
|
58
68
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-TOBQ5UE6.mjs";import"../../chunk-MT2RJ7H3.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EntryFunctionBytes};
|
|
2
2
|
//# sourceMappingURL=entryFunctionBytes.mjs.map
|
|
@@ -39,6 +39,8 @@ import '@aptos-labs/script-composer-pack';
|
|
|
39
39
|
* @param value - HexInput representing a sequence of Uint8 bytes.
|
|
40
40
|
* @returns A Serializable FixedBytes instance, which when serialized, does not prepend the length of the bytes.
|
|
41
41
|
* @see EntryFunctionBytes
|
|
42
|
+
* @group Implementation
|
|
43
|
+
* @category BCS
|
|
42
44
|
*/
|
|
43
45
|
declare class FixedBytes extends Serializable implements TransactionArgument {
|
|
44
46
|
value: Uint8Array;
|
|
@@ -47,6 +49,8 @@ declare class FixedBytes extends Serializable implements TransactionArgument {
|
|
|
47
49
|
* The value is converted from hexadecimal format to a Uint8Array.
|
|
48
50
|
*
|
|
49
51
|
* @param value - The hexadecimal input to be converted.
|
|
52
|
+
* @group Implementation
|
|
53
|
+
* @category BCS
|
|
50
54
|
*/
|
|
51
55
|
constructor(value: HexInput);
|
|
52
56
|
/**
|
|
@@ -54,6 +58,8 @@ declare class FixedBytes extends Serializable implements TransactionArgument {
|
|
|
54
58
|
* This function is essential for converting the fixed bytes into a format suitable for storage or transmission.
|
|
55
59
|
*
|
|
56
60
|
* @param serializer - The serializer instance used for serialization.
|
|
61
|
+
* @group Implementation
|
|
62
|
+
* @category BCS
|
|
57
63
|
*/
|
|
58
64
|
serialize(serializer: Serializer): void;
|
|
59
65
|
/**
|
|
@@ -61,6 +67,8 @@ declare class FixedBytes extends Serializable implements TransactionArgument {
|
|
|
61
67
|
* This allows the instance to be converted into a format suitable for transmission or storage.
|
|
62
68
|
*
|
|
63
69
|
* @param serializer - The serializer used to perform the serialization.
|
|
70
|
+
* @group Implementation
|
|
71
|
+
* @category BCS
|
|
64
72
|
*/
|
|
65
73
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
66
74
|
/**
|
|
@@ -68,6 +76,8 @@ declare class FixedBytes extends Serializable implements TransactionArgument {
|
|
|
68
76
|
* This function is essential for preparing data to be passed as arguments in script functions.
|
|
69
77
|
*
|
|
70
78
|
* @param serializer - The serializer instance used to perform the serialization.
|
|
79
|
+
* @group Implementation
|
|
80
|
+
* @category BCS
|
|
71
81
|
*/
|
|
72
82
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
73
83
|
/**
|
|
@@ -76,6 +86,8 @@ declare class FixedBytes extends Serializable implements TransactionArgument {
|
|
|
76
86
|
*
|
|
77
87
|
* @param deserializer - The deserializer instance used to read the byte data.
|
|
78
88
|
* @param length - The length of the byte array to be deserialized.
|
|
89
|
+
* @group Implementation
|
|
90
|
+
* @category BCS
|
|
79
91
|
*/
|
|
80
92
|
static deserialize(deserializer: Deserializer, length: number): FixedBytes;
|
|
81
93
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-MT2RJ7H3.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as FixedBytes};
|
|
2
2
|
//# sourceMappingURL=fixedBytes.mjs.map
|