@aptos-labs/ts-sdk 1.33.0-sc.1 → 1.33.0-sc.2
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-4JX6OQEE.mjs → chunk-2E7ZURV4.mjs} +2 -2
- package/dist/esm/chunk-2E7ZURV4.mjs.map +1 -0
- package/dist/esm/{chunk-3TOPGQJA.mjs → chunk-2N7W6DEV.mjs} +2 -2
- package/dist/esm/chunk-2N7W6DEV.mjs.map +1 -0
- package/dist/esm/{chunk-U7UTBXJD.mjs → chunk-2TKNO5VP.mjs} +2 -2
- package/dist/esm/chunk-2TKNO5VP.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-P6RNNESB.mjs → chunk-3MZNK25Y.mjs} +2 -2
- package/dist/esm/chunk-3MZNK25Y.mjs.map +1 -0
- package/dist/esm/{chunk-YT3IP57B.mjs → chunk-463TSKJJ.mjs} +2 -2
- package/dist/esm/chunk-463TSKJJ.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-2E3EAJPC.mjs → chunk-5CBYEU5M.mjs} +2 -2
- package/dist/esm/chunk-5CBYEU5M.mjs.map +1 -0
- package/dist/esm/{chunk-MKM5MDD5.mjs → chunk-5J3ENG7I.mjs} +2 -2
- package/dist/esm/{chunk-MKM5MDD5.mjs.map → chunk-5J3ENG7I.mjs.map} +1 -1
- package/dist/esm/{chunk-D6WMUQB5.mjs → chunk-6CUW6UK5.mjs} +2 -2
- package/dist/esm/chunk-6CUW6UK5.mjs.map +1 -0
- package/dist/esm/{chunk-B6ERS4UX.mjs → chunk-6FW3RGYH.mjs} +2 -2
- package/dist/esm/chunk-6FW3RGYH.mjs.map +1 -0
- package/dist/esm/{chunk-EPBNJZ4A.mjs → chunk-6HFKPYDO.mjs} +2 -2
- package/dist/esm/chunk-6HFKPYDO.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-EVA2SMAU.mjs → chunk-7M36JLME.mjs} +2 -2
- package/dist/esm/chunk-7M36JLME.mjs.map +1 -0
- package/dist/esm/{chunk-TE3SBS7J.mjs → chunk-7TVQGK2Z.mjs} +2 -2
- package/dist/esm/chunk-7TVQGK2Z.mjs.map +1 -0
- package/dist/esm/{chunk-IKJAX5KQ.mjs → chunk-7YHXJ2VZ.mjs} +2 -2
- package/dist/esm/chunk-7YHXJ2VZ.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-A6JOTYKI.mjs +2 -0
- package/dist/esm/chunk-A6JOTYKI.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-OIOGOW6I.mjs → chunk-C3Q23D22.mjs} +1 -1
- package/dist/esm/chunk-C3Q23D22.mjs.map +1 -0
- package/dist/esm/{chunk-UQIMOQZ7.mjs → chunk-C7EPP6YK.mjs} +2 -2
- package/dist/esm/chunk-C7EPP6YK.mjs.map +1 -0
- package/dist/esm/{chunk-554TWPPO.mjs → chunk-CBISVLO4.mjs} +2 -2
- package/dist/esm/chunk-CBISVLO4.mjs.map +1 -0
- package/dist/esm/chunk-CNGG6O55.mjs +2 -0
- package/dist/esm/chunk-CNGG6O55.mjs.map +1 -0
- package/dist/esm/{chunk-VQZMI3EZ.mjs → chunk-CWKNJZB6.mjs} +2 -2
- package/dist/esm/chunk-CWKNJZB6.mjs.map +1 -0
- package/dist/esm/chunk-CX3MN3BM.mjs +2 -0
- package/dist/esm/chunk-CX3MN3BM.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-DPW6ELCQ.mjs +2 -0
- package/dist/esm/chunk-DPW6ELCQ.mjs.map +1 -0
- package/dist/esm/{chunk-2CKUTG67.mjs → chunk-EBFY5RGU.mjs} +2 -2
- package/dist/esm/chunk-EBFY5RGU.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-3QIOEU3Z.mjs → chunk-EQI5C3T7.mjs} +2 -2
- package/dist/esm/chunk-EQI5C3T7.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-FAPRBYNZ.mjs +2 -0
- package/dist/esm/chunk-FAPRBYNZ.mjs.map +1 -0
- package/dist/esm/{chunk-CW6P2DDJ.mjs → chunk-FI4HBHWL.mjs} +2 -2
- package/dist/esm/{chunk-CW6P2DDJ.mjs.map → chunk-FI4HBHWL.mjs.map} +1 -1
- package/dist/esm/chunk-FJGHHXPV.mjs +2 -0
- package/dist/esm/chunk-FJGHHXPV.mjs.map +1 -0
- package/dist/esm/{chunk-SHAKBL2R.mjs → chunk-FJMZQTTO.mjs} +2 -2
- package/dist/esm/chunk-FJMZQTTO.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-EVASO3UR.mjs → chunk-GJALBHGP.mjs} +2 -2
- package/dist/esm/chunk-GJALBHGP.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-PMA7XAFK.mjs → chunk-GXFJ4HTV.mjs} +2 -2
- package/dist/esm/chunk-GXFJ4HTV.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-AR6BOLET.mjs → chunk-HGF6GLTW.mjs} +2 -2
- package/dist/esm/chunk-HGF6GLTW.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-6YFM6NEC.mjs → chunk-IZGNT64R.mjs} +2 -2
- package/dist/esm/chunk-IZGNT64R.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-J45GIVXE.mjs → chunk-KRBBSE7F.mjs} +2 -2
- package/dist/esm/chunk-KRBBSE7F.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-BVUMR7DQ.mjs → chunk-MKGDMRM6.mjs} +2 -2
- package/dist/esm/chunk-MKGDMRM6.mjs.map +1 -0
- package/dist/esm/{chunk-5XLZACVT.mjs → chunk-MQZWLAZH.mjs} +2 -2
- package/dist/esm/chunk-MQZWLAZH.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-DBAISV4K.mjs → chunk-NXQJWO3F.mjs} +2 -2
- package/dist/esm/chunk-NXQJWO3F.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-3QUZFCNW.mjs → chunk-OPOIWSNQ.mjs} +2 -2
- package/dist/esm/chunk-OPOIWSNQ.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-PCEQYYQN.mjs +2 -0
- package/dist/esm/{chunk-YQHOQJRQ.mjs.map → chunk-PCEQYYQN.mjs.map} +1 -1
- package/dist/esm/{chunk-JNO7KPMG.mjs → chunk-Q4C4U6I4.mjs} +2 -2
- package/dist/esm/chunk-Q4C4U6I4.mjs.map +1 -0
- package/dist/esm/{chunk-F45G3GP3.mjs → chunk-QHEKBHNU.mjs} +2 -2
- package/dist/esm/{chunk-SOLRIYPW.mjs → chunk-QR7MBETX.mjs} +2 -2
- package/dist/esm/{chunk-CK5NDXQT.mjs → chunk-QY46YWI4.mjs} +2 -2
- package/dist/esm/chunk-QY46YWI4.mjs.map +1 -0
- package/dist/esm/{chunk-WJSZAGHP.mjs → chunk-REH6COWO.mjs} +2 -2
- package/dist/esm/chunk-REH6COWO.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-ROT6S6BM.mjs +2 -0
- package/dist/esm/chunk-ROT6S6BM.mjs.map +1 -0
- package/dist/esm/chunk-RUJGUBO6.mjs +2 -0
- package/dist/esm/chunk-RUJGUBO6.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-T7BTSSX7.mjs → chunk-THLQVL5U.mjs} +2 -2
- package/dist/esm/chunk-THLQVL5U.mjs.map +1 -0
- package/dist/esm/chunk-TKNOP7T6.mjs +2 -0
- package/dist/esm/chunk-TKNOP7T6.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-4ZNSNWQL.mjs → chunk-UBAFRK6R.mjs} +2 -2
- package/dist/esm/chunk-UBAFRK6R.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-UKIQD7F3.mjs +2 -0
- package/dist/esm/chunk-UKIQD7F3.mjs.map +1 -0
- package/dist/esm/{chunk-BKSQPS2O.mjs → chunk-URLNFC5B.mjs} +2 -2
- package/dist/esm/chunk-URLNFC5B.mjs.map +1 -0
- package/dist/esm/chunk-UXX6DVWF.mjs +2 -0
- package/dist/esm/chunk-UXX6DVWF.mjs.map +1 -0
- package/dist/esm/{chunk-JJXLJY37.mjs → chunk-UY3DN5PG.mjs} +2 -2
- package/dist/esm/chunk-UY3DN5PG.mjs.map +1 -0
- package/dist/esm/{chunk-UTOO6IVJ.mjs → chunk-VDHHKO7S.mjs} +2 -2
- package/dist/esm/chunk-VDHHKO7S.mjs.map +1 -0
- package/dist/esm/{chunk-3BWKODVZ.mjs → chunk-VJBBLDN3.mjs} +2 -2
- package/dist/esm/chunk-VJBBLDN3.mjs.map +1 -0
- package/dist/esm/{chunk-AOQJI6IC.mjs → chunk-VQJTY7C6.mjs} +2 -2
- package/dist/esm/chunk-VQJTY7C6.mjs.map +1 -0
- package/dist/esm/chunk-VRQNGGQX.mjs +2 -0
- package/dist/esm/chunk-VRQNGGQX.mjs.map +1 -0
- package/dist/esm/chunk-VYDITG4M.mjs +2 -0
- package/dist/esm/chunk-VYDITG4M.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-J2NQJ34O.mjs → chunk-W62GQRCS.mjs} +2 -2
- package/dist/esm/chunk-W62GQRCS.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-7CDITZUS.mjs → chunk-WM4DXMLN.mjs} +2 -2
- package/dist/esm/chunk-WM4DXMLN.mjs.map +1 -0
- package/dist/esm/{chunk-7R44XXPU.mjs → chunk-XAUI2DUN.mjs} +2 -2
- package/dist/esm/chunk-XAUI2DUN.mjs.map +1 -0
- package/dist/esm/{chunk-NNWPYX3K.mjs → chunk-XCRBVUJ7.mjs} +2 -2
- package/dist/esm/chunk-XCRBVUJ7.mjs.map +1 -0
- package/dist/esm/{chunk-2WLKSKL7.mjs → chunk-XEWJESJJ.mjs} +2 -2
- package/dist/esm/chunk-XEWJESJJ.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-XEW2YQE2.mjs → chunk-XHLPZMWO.mjs} +2 -2
- package/dist/esm/chunk-XHLPZMWO.mjs.map +1 -0
- package/dist/esm/{chunk-S22QVNK7.mjs → chunk-XIAC52YK.mjs} +2 -2
- package/dist/esm/chunk-XIAC52YK.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-2G7SAWM3.mjs → chunk-YJPYSM2B.mjs} +2 -2
- package/dist/esm/chunk-YJPYSM2B.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-QCIRC2SG.mjs → chunk-Z3J7ZDPN.mjs} +2 -2
- package/dist/esm/chunk-Z3J7ZDPN.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-F45G3GP3.mjs.map → chunk-QHEKBHNU.mjs.map} +0 -0
- /package/dist/esm/{chunk-SOLRIYPW.mjs.map → chunk-QR7MBETX.mjs.map} +0 -0
|
@@ -16,6 +16,8 @@ import '../../core/common.mjs';
|
|
|
16
16
|
* the boolean value for different contexts, such as entry functions and script functions.
|
|
17
17
|
*
|
|
18
18
|
* @extends Serializable
|
|
19
|
+
* @group Implementation
|
|
20
|
+
* @category BCS
|
|
19
21
|
*/
|
|
20
22
|
declare class Bool extends Serializable implements TransactionArgument {
|
|
21
23
|
readonly value: boolean;
|
|
@@ -24,6 +26,8 @@ declare class Bool extends Serializable implements TransactionArgument {
|
|
|
24
26
|
* This ensures that the value is validated to be within the acceptable range.
|
|
25
27
|
*
|
|
26
28
|
* @param value - The number to be validated and assigned, which must be between 0 and MAX_U256_BIG_INT.
|
|
29
|
+
* @group Implementation
|
|
30
|
+
* @category BCS
|
|
27
31
|
*/
|
|
28
32
|
constructor(value: boolean);
|
|
29
33
|
/**
|
|
@@ -31,6 +35,8 @@ declare class Bool extends Serializable implements TransactionArgument {
|
|
|
31
35
|
* This function is essential for converting the value into a format suitable for transmission or storage.
|
|
32
36
|
*
|
|
33
37
|
* @param serializer - The serializer instance used to perform the serialization.
|
|
38
|
+
* @group Implementation
|
|
39
|
+
* @category BCS
|
|
34
40
|
*/
|
|
35
41
|
serialize(serializer: Serializer): void;
|
|
36
42
|
/**
|
|
@@ -38,6 +44,8 @@ declare class Bool extends Serializable implements TransactionArgument {
|
|
|
38
44
|
* This allows the instance to be properly formatted for serialization in transactions.
|
|
39
45
|
*
|
|
40
46
|
* @param serializer - The serializer instance used to serialize the byte sequence.
|
|
47
|
+
* @group Implementation
|
|
48
|
+
* @category BCS
|
|
41
49
|
*/
|
|
42
50
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
43
51
|
/**
|
|
@@ -45,12 +53,16 @@ declare class Bool extends Serializable implements TransactionArgument {
|
|
|
45
53
|
* This allows for the conversion of the instance into a format suitable for transmission or storage.
|
|
46
54
|
*
|
|
47
55
|
* @param serializer - The serializer used to perform the serialization.
|
|
56
|
+
* @group Implementation
|
|
57
|
+
* @category BCS
|
|
48
58
|
*/
|
|
49
59
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
50
60
|
/**
|
|
51
61
|
* Deserializes a U256 value from the provided deserializer.
|
|
52
62
|
*
|
|
53
63
|
* @param deserializer - The deserializer instance used to read the U256 data.
|
|
64
|
+
* @group Implementation
|
|
65
|
+
* @category BCS
|
|
54
66
|
*/
|
|
55
67
|
deserialize(deserializer: Deserializer): U256;
|
|
56
68
|
static deserialize(deserializer: Deserializer): Bool;
|
|
@@ -60,6 +72,8 @@ declare class Bool extends Serializable implements TransactionArgument {
|
|
|
60
72
|
* This class extends the Serializable class and provides methods for serialization and deserialization of U8 values.
|
|
61
73
|
*
|
|
62
74
|
* @extends Serializable
|
|
75
|
+
* @group Implementation
|
|
76
|
+
* @category BCS
|
|
63
77
|
*/
|
|
64
78
|
declare class U8 extends Serializable implements TransactionArgument {
|
|
65
79
|
readonly value: Uint8;
|
|
@@ -75,6 +89,8 @@ declare class U8 extends Serializable implements TransactionArgument {
|
|
|
75
89
|
* and deserialization of the U16 value.
|
|
76
90
|
*
|
|
77
91
|
* @extends Serializable
|
|
92
|
+
* @group Implementation
|
|
93
|
+
* @category BCS
|
|
78
94
|
*/
|
|
79
95
|
declare class U16 extends Serializable implements TransactionArgument {
|
|
80
96
|
readonly value: Uint16;
|
|
@@ -89,6 +105,8 @@ declare class U16 extends Serializable implements TransactionArgument {
|
|
|
89
105
|
* This class ensures that the value is within the valid range for a U32.
|
|
90
106
|
*
|
|
91
107
|
* @extends Serializable
|
|
108
|
+
* @group Implementation
|
|
109
|
+
* @category BCS
|
|
92
110
|
*/
|
|
93
111
|
declare class U32 extends Serializable implements TransactionArgument {
|
|
94
112
|
readonly value: Uint32;
|
|
@@ -106,6 +124,8 @@ declare class U32 extends Serializable implements TransactionArgument {
|
|
|
106
124
|
* and script functions.
|
|
107
125
|
*
|
|
108
126
|
* @extends Serializable
|
|
127
|
+
* @group Implementation
|
|
128
|
+
* @category BCS
|
|
109
129
|
*/
|
|
110
130
|
declare class U64 extends Serializable implements TransactionArgument {
|
|
111
131
|
readonly value: bigint;
|
|
@@ -121,6 +141,8 @@ declare class U64 extends Serializable implements TransactionArgument {
|
|
|
121
141
|
* of U128 values, ensuring that the values are within the valid range.
|
|
122
142
|
*
|
|
123
143
|
* @extends Serializable
|
|
144
|
+
* @group Implementation
|
|
145
|
+
* @category BCS
|
|
124
146
|
*/
|
|
125
147
|
declare class U128 extends Serializable implements TransactionArgument {
|
|
126
148
|
readonly value: bigint;
|
|
@@ -136,6 +158,8 @@ declare class U128 extends Serializable implements TransactionArgument {
|
|
|
136
158
|
* ensuring that the values are within the valid range.
|
|
137
159
|
*
|
|
138
160
|
* @extends Serializable
|
|
161
|
+
* @group Implementation
|
|
162
|
+
* @category BCS
|
|
139
163
|
*/
|
|
140
164
|
declare class U256 extends Serializable implements TransactionArgument {
|
|
141
165
|
readonly value: bigint;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../../chunk-ORMOQWWH.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-U2PRGW4O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-EBMEXURY.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Bool,f as U128,c as U16,g as U256,d as U32,e as U64,b as U8};
|
|
2
2
|
//# sourceMappingURL=movePrimitives.mjs.map
|
|
@@ -47,6 +47,8 @@ import '../../core/common.mjs';
|
|
|
47
47
|
*
|
|
48
48
|
* @param values an Array<T> of values where T is a class that implements Serializable
|
|
49
49
|
* @returns a `MoveVector<T>` with the values `values`
|
|
50
|
+
* @group Implementation
|
|
51
|
+
* @category BCS
|
|
50
52
|
*/
|
|
51
53
|
declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends Serializable implements TransactionArgument {
|
|
52
54
|
values: Array<T>;
|
|
@@ -55,6 +57,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
55
57
|
* This constructor sets up the internal vector based on the provided value.
|
|
56
58
|
*
|
|
57
59
|
* @param values - The initial value to be stored in the vector, or null to initialize an empty vector.
|
|
60
|
+
* @group Implementation
|
|
61
|
+
* @category BCS
|
|
58
62
|
*/
|
|
59
63
|
constructor(values: Array<T>);
|
|
60
64
|
/**
|
|
@@ -62,15 +66,21 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
62
66
|
* This allows the data to be properly formatted for transmission or storage.
|
|
63
67
|
*
|
|
64
68
|
* @param serializer - The serializer instance used to serialize the byte sequence.
|
|
69
|
+
* @group Implementation
|
|
70
|
+
* @category BCS
|
|
65
71
|
*/
|
|
66
72
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
67
73
|
/**
|
|
68
74
|
* NOTE: This function will only work when the inner values in the `MoveVector` are `U8`s.
|
|
69
75
|
* @param serializer
|
|
76
|
+
* @group Implementation
|
|
77
|
+
* @category BCS
|
|
70
78
|
*/
|
|
71
79
|
/**
|
|
72
80
|
* Serialize the string as a fixed byte string without the length prefix for use in a script function.
|
|
73
81
|
* @param serializer - The serializer used to convert the byte vector into a format suitable for a script function.
|
|
82
|
+
* @group Implementation
|
|
83
|
+
* @category BCS
|
|
74
84
|
*/
|
|
75
85
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
76
86
|
/**
|
|
@@ -87,6 +97,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
87
97
|
* ```typescript
|
|
88
98
|
* const v = MoveVector.U8([1, 2, 3, 4]);
|
|
89
99
|
* ```
|
|
100
|
+
* @group Implementation
|
|
101
|
+
* @category BCS
|
|
90
102
|
*/
|
|
91
103
|
static U8(values: Array<number> | HexInput): MoveVector<U8>;
|
|
92
104
|
/**
|
|
@@ -101,6 +113,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
101
113
|
* ```typescript
|
|
102
114
|
* const v = MoveVector.U16([1, 2, 3, 4]);
|
|
103
115
|
* ```
|
|
116
|
+
* @group Implementation
|
|
117
|
+
* @category BCS
|
|
104
118
|
|
|
105
119
|
*/
|
|
106
120
|
static U16(values: Array<number>): MoveVector<U16>;
|
|
@@ -117,6 +131,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
117
131
|
* ```
|
|
118
132
|
* const v = MoveVector.U32([1, 2, 3, 4]);
|
|
119
133
|
* ```
|
|
134
|
+
* @group Implementation
|
|
135
|
+
* @category BCS
|
|
120
136
|
|
|
121
137
|
*/
|
|
122
138
|
static U32(values: Array<number>): MoveVector<U32>;
|
|
@@ -132,6 +148,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
132
148
|
* ```typescript
|
|
133
149
|
* const v = MoveVector.U64([1, 2, 3, 4]);
|
|
134
150
|
* ```
|
|
151
|
+
* @group Implementation
|
|
152
|
+
* @category BCS
|
|
135
153
|
*/
|
|
136
154
|
static U64(values: Array<AnyNumber>): MoveVector<U64>;
|
|
137
155
|
/**
|
|
@@ -145,6 +163,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
145
163
|
* ```typescript
|
|
146
164
|
* const v = MoveVector.U128([1, 2, 3, 4]);
|
|
147
165
|
* ```
|
|
166
|
+
* @group Implementation
|
|
167
|
+
* @category BCS
|
|
148
168
|
*/
|
|
149
169
|
static U128(values: Array<AnyNumber>): MoveVector<U128>;
|
|
150
170
|
/**
|
|
@@ -159,6 +179,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
159
179
|
* ```typescript
|
|
160
180
|
* const v = MoveVector.U256([1, 2, 3, 4]);
|
|
161
181
|
* ```
|
|
182
|
+
* @group Implementation
|
|
183
|
+
* @category BCS
|
|
162
184
|
*/
|
|
163
185
|
static U256(values: Array<AnyNumber>): MoveVector<U256>;
|
|
164
186
|
/**
|
|
@@ -172,6 +194,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
172
194
|
*
|
|
173
195
|
* @example
|
|
174
196
|
* * const v = MoveVector.Bool([true, false, true, false]);
|
|
197
|
+
* @group Implementation
|
|
198
|
+
* @category BCS
|
|
175
199
|
*/
|
|
176
200
|
static Bool(values: Array<boolean>): MoveVector<Bool>;
|
|
177
201
|
/**
|
|
@@ -184,6 +208,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
184
208
|
*
|
|
185
209
|
* @example
|
|
186
210
|
* const v = MoveVector.MoveString(["hello", "world"]);
|
|
211
|
+
* @group Implementation
|
|
212
|
+
* @category BCS
|
|
187
213
|
*/
|
|
188
214
|
static MoveString(values: Array<string>): MoveVector<MoveString>;
|
|
189
215
|
/**
|
|
@@ -191,6 +217,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
191
217
|
* This function will serialize the value if it is present.
|
|
192
218
|
*
|
|
193
219
|
* @param serializer - The serializer instance used to perform the serialization.
|
|
220
|
+
* @group Implementation
|
|
221
|
+
* @category BCS
|
|
194
222
|
*/
|
|
195
223
|
serialize(serializer: Serializer): void;
|
|
196
224
|
/**
|
|
@@ -209,6 +237,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
209
237
|
* @param cls the class to typecast the input values to, must be a Serializable and Deserializable type.
|
|
210
238
|
* @returns a MoveVector of the corresponding class T
|
|
211
239
|
*
|
|
240
|
+
* @group Implementation
|
|
241
|
+
* @category BCS
|
|
212
242
|
*/
|
|
213
243
|
static deserialize<T extends Serializable & EntryFunctionArgument>(deserializer: Deserializer, cls: Deserializable<T>): MoveVector<T>;
|
|
214
244
|
}
|
|
@@ -218,6 +248,8 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
218
248
|
* and deserialization of byte data, as well as converting to a MoveVector.
|
|
219
249
|
*
|
|
220
250
|
* @extends Serializable
|
|
251
|
+
* @group Implementation
|
|
252
|
+
* @category BCS
|
|
221
253
|
*/
|
|
222
254
|
declare class Serialized extends Serializable implements TransactionArgument {
|
|
223
255
|
readonly value: Uint8Array;
|
|
@@ -231,6 +263,8 @@ declare class Serialized extends Serializable implements TransactionArgument {
|
|
|
231
263
|
* This function allows you to convert serialized data into a usable MoveVector format.
|
|
232
264
|
*
|
|
233
265
|
* @param cls - The class type of the elements in the MoveVector.
|
|
266
|
+
* @group Implementation
|
|
267
|
+
* @category BCS
|
|
234
268
|
*/
|
|
235
269
|
toMoveVector<T extends Serializable & EntryFunctionArgument>(cls: Deserializable<T>): MoveVector<T>;
|
|
236
270
|
}
|
|
@@ -241,6 +275,8 @@ declare class Serialized extends Serializable implements TransactionArgument {
|
|
|
241
275
|
* functions and script functions.
|
|
242
276
|
*
|
|
243
277
|
* @extends Serializable
|
|
278
|
+
* @group Implementation
|
|
279
|
+
* @category BCS
|
|
244
280
|
*/
|
|
245
281
|
declare class MoveString extends Serializable implements TransactionArgument {
|
|
246
282
|
value: string;
|
|
@@ -268,12 +304,16 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
268
304
|
* @throws {Error} Throws an error if the MoveOption does not contain a value.
|
|
269
305
|
*
|
|
270
306
|
* @returns {T} The contained value if present.
|
|
307
|
+
* @group Implementation
|
|
308
|
+
* @category BCS
|
|
271
309
|
*/
|
|
272
310
|
unwrap(): T;
|
|
273
311
|
/**
|
|
274
312
|
* Check if the MoveOption has a value.
|
|
275
313
|
*
|
|
276
314
|
* @returns {boolean} Returns true if there is exactly one value in the MoveOption.
|
|
315
|
+
* @group Implementation
|
|
316
|
+
* @category BCS
|
|
277
317
|
*/
|
|
278
318
|
isSome(): boolean;
|
|
279
319
|
serialize(serializer: Serializer): void;
|
|
@@ -287,6 +327,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
287
327
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
288
328
|
* the resulting MoveOption's .isSome() method will return false.
|
|
289
329
|
* @returns a MoveOption<U8> with an inner value `value`
|
|
330
|
+
* @group Implementation
|
|
331
|
+
* @category BCS
|
|
290
332
|
*/
|
|
291
333
|
static U8(value?: number | null): MoveOption<U8>;
|
|
292
334
|
/**
|
|
@@ -299,6 +341,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
299
341
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
300
342
|
* the resulting MoveOption's .isSome() method will return false.
|
|
301
343
|
* @returns a MoveOption<U16> with an inner value `value`
|
|
344
|
+
* @group Implementation
|
|
345
|
+
* @category BCS
|
|
302
346
|
*/
|
|
303
347
|
static U16(value?: number | null): MoveOption<U16>;
|
|
304
348
|
/**
|
|
@@ -311,6 +355,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
311
355
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
312
356
|
* the resulting MoveOption's .isSome() method will return false.
|
|
313
357
|
* @returns a MoveOption<U32> with an inner value `value`
|
|
358
|
+
* @group Implementation
|
|
359
|
+
* @category BCS
|
|
314
360
|
*/
|
|
315
361
|
static U32(value?: number | null): MoveOption<U32>;
|
|
316
362
|
/**
|
|
@@ -323,6 +369,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
323
369
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
324
370
|
* the resulting MoveOption's .isSome() method will return false.
|
|
325
371
|
* @returns a MoveOption<U64> with an inner value `value`
|
|
372
|
+
* @group Implementation
|
|
373
|
+
* @category BCS
|
|
326
374
|
*/
|
|
327
375
|
static U64(value?: AnyNumber | null): MoveOption<U64>;
|
|
328
376
|
/**
|
|
@@ -335,6 +383,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
335
383
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
336
384
|
* the resulting MoveOption's .isSome() method will return false.
|
|
337
385
|
* @returns a MoveOption<U128> with an inner value `value`
|
|
386
|
+
* @group Implementation
|
|
387
|
+
* @category BCS
|
|
338
388
|
*/
|
|
339
389
|
static U128(value?: AnyNumber | null): MoveOption<U128>;
|
|
340
390
|
/**
|
|
@@ -347,6 +397,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
347
397
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
348
398
|
* the resulting MoveOption's .isSome() method will return false.
|
|
349
399
|
* @returns a MoveOption<U256> with an inner value `value`
|
|
400
|
+
* @group Implementation
|
|
401
|
+
* @category BCS
|
|
350
402
|
*/
|
|
351
403
|
static U256(value?: AnyNumber | null): MoveOption<U256>;
|
|
352
404
|
/**
|
|
@@ -359,6 +411,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
359
411
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
360
412
|
* the resulting MoveOption's .isSome() method will return false.
|
|
361
413
|
* @returns a MoveOption<Bool> with an inner value `value`
|
|
414
|
+
* @group Implementation
|
|
415
|
+
* @category BCS
|
|
362
416
|
*/
|
|
363
417
|
static Bool(value?: boolean | null): MoveOption<Bool>;
|
|
364
418
|
/**
|
|
@@ -372,6 +426,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
372
426
|
* @param value the value used to fill the MoveOption. If `value` is undefined
|
|
373
427
|
* the resulting MoveOption's .isSome() method will return false.
|
|
374
428
|
* @returns a MoveOption<MoveString> with an inner value `value`
|
|
429
|
+
* @group Implementation
|
|
430
|
+
* @category BCS
|
|
375
431
|
*/
|
|
376
432
|
static MoveString(value?: string | null): MoveOption<MoveString>;
|
|
377
433
|
static deserialize<U extends Serializable & EntryFunctionArgument>(deserializer: Deserializer, cls: Deserializable<U>): MoveOption<U>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunk-
|
|
1
|
+
import{a,b,c,d}from"../../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-XTOIL6MB.mjs";import"../../chunk-STY74NUA.mjs";import"../../chunk-IF4UU2MT.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
|
|
@@ -11,6 +11,8 @@ import '@aptos-labs/script-composer-pack';
|
|
|
11
11
|
* This class serves as a base class for all serializable types. It facilitates
|
|
12
12
|
* composable serialization of complex types and enables the serialization of
|
|
13
13
|
* instances to their BCS (Binary Canonical Serialization) representation.
|
|
14
|
+
* @group Implementation
|
|
15
|
+
* @category BCS
|
|
14
16
|
*/
|
|
15
17
|
declare abstract class Serializable {
|
|
16
18
|
abstract serialize(serializer: Serializer): void;
|
|
@@ -18,12 +20,16 @@ declare abstract class Serializable {
|
|
|
18
20
|
* Serializes a `Serializable` value to its BCS representation.
|
|
19
21
|
* This function is the TypeScript SDK equivalent of `bcs::to_bytes` in Move.
|
|
20
22
|
* @returns the BCS representation of the Serializable instance as a byte buffer.
|
|
23
|
+
* @group Implementation
|
|
24
|
+
* @category BCS
|
|
21
25
|
*/
|
|
22
26
|
bcsToBytes(): Uint8Array;
|
|
23
27
|
/**
|
|
24
28
|
* Converts the BCS-serialized bytes of a value into a Hex instance.
|
|
25
29
|
* This function provides a Hex representation of the BCS-serialized data for easier handling and manipulation.
|
|
26
30
|
* @returns A Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array.
|
|
31
|
+
* @group Implementation
|
|
32
|
+
* @category BCS
|
|
27
33
|
*/
|
|
28
34
|
bcsToHex(): Hex;
|
|
29
35
|
/**
|
|
@@ -42,6 +48,8 @@ declare abstract class Serializable {
|
|
|
42
48
|
* It provides methods to serialize strings, bytes, numbers, and other serializable objects
|
|
43
49
|
* using the Binary Coded Serialization (BCS) layout. The serialized data can be retrieved as a
|
|
44
50
|
* Uint8Array.
|
|
51
|
+
* @group Implementation
|
|
52
|
+
* @category BCS
|
|
45
53
|
*/
|
|
46
54
|
declare class Serializer {
|
|
47
55
|
private buffer;
|
|
@@ -51,6 +59,8 @@ declare class Serializer {
|
|
|
51
59
|
* The `length` must be greater than 0.
|
|
52
60
|
*
|
|
53
61
|
* @param length - The size of the buffer in bytes.
|
|
62
|
+
* @group Implementation
|
|
63
|
+
* @category BCS
|
|
54
64
|
*/
|
|
55
65
|
constructor(length?: number);
|
|
56
66
|
/**
|
|
@@ -58,12 +68,16 @@ declare class Serializer {
|
|
|
58
68
|
* This function dynamically resizes the buffer if the current size is insufficient.
|
|
59
69
|
*
|
|
60
70
|
* @param bytes - The number of bytes to ensure the buffer can handle.
|
|
71
|
+
* @group Implementation
|
|
72
|
+
* @category BCS
|
|
61
73
|
*/
|
|
62
74
|
private ensureBufferWillHandleSize;
|
|
63
75
|
/**
|
|
64
76
|
* Appends the specified values to the buffer, ensuring that the buffer can accommodate the new data.
|
|
65
77
|
*
|
|
66
78
|
* @param {Uint8Array} values - The values to be appended to the buffer.
|
|
79
|
+
* @group Implementation
|
|
80
|
+
* @category BCS
|
|
67
81
|
*/
|
|
68
82
|
protected appendToBuffer(values: Uint8Array): void;
|
|
69
83
|
/**
|
|
@@ -73,6 +87,8 @@ declare class Serializer {
|
|
|
73
87
|
* @param fn.byteOffset - The byte offset at which to write the value.
|
|
74
88
|
* @param fn.value - The numeric value to serialize into the buffer.
|
|
75
89
|
* @param fn.littleEndian - Optional flag indicating whether to use little-endian byte order (defaults to true).
|
|
90
|
+
* @group Implementation
|
|
91
|
+
* @category BCS
|
|
76
92
|
*/
|
|
77
93
|
private serializeWithFunction;
|
|
78
94
|
/**
|
|
@@ -91,6 +107,8 @@ declare class Serializer {
|
|
|
91
107
|
* serializer.serializeStr("1234abcd");
|
|
92
108
|
* assert(serializer.toUint8Array() === new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
93
109
|
* ```
|
|
110
|
+
* @group Implementation
|
|
111
|
+
* @category BCS
|
|
94
112
|
*/
|
|
95
113
|
serializeStr(value: string): void;
|
|
96
114
|
/**
|
|
@@ -100,6 +118,8 @@ declare class Serializer {
|
|
|
100
118
|
* BCS layout for "bytes": bytes_length | bytes
|
|
101
119
|
* where bytes_length is a u32 integer encoded as a uleb128 integer, equal to the length of the bytes array.
|
|
102
120
|
* @param value - The byte array to serialize.
|
|
121
|
+
* @group Implementation
|
|
122
|
+
* @category BCS
|
|
103
123
|
*/
|
|
104
124
|
serializeBytes(value: Uint8Array): void;
|
|
105
125
|
/**
|
|
@@ -108,6 +128,8 @@ declare class Serializer {
|
|
|
108
128
|
* When deserializing, the number of bytes to deserialize needs to be passed in.
|
|
109
129
|
|
|
110
130
|
* @param value - The Uint8Array to be serialized.
|
|
131
|
+
* @group Implementation
|
|
132
|
+
* @category BCS
|
|
111
133
|
*/
|
|
112
134
|
serializeFixedBytes(value: Uint8Array): void;
|
|
113
135
|
/**
|
|
@@ -116,6 +138,8 @@ declare class Serializer {
|
|
|
116
138
|
* The BCS layout for a boolean uses one byte, where "0x01" represents true and "0x00" represents false.
|
|
117
139
|
*
|
|
118
140
|
* @param value - The boolean value to serialize.
|
|
141
|
+
* @group Implementation
|
|
142
|
+
* @category BCS
|
|
119
143
|
*/
|
|
120
144
|
serializeBool(value: boolean): void;
|
|
121
145
|
/**
|
|
@@ -123,11 +147,15 @@ declare class Serializer {
|
|
|
123
147
|
* BCS layout for "uint8": One byte. Binary format in little-endian representation.
|
|
124
148
|
*
|
|
125
149
|
* @param value - The Uint8 value to serialize.
|
|
150
|
+
* @group Implementation
|
|
151
|
+
* @category BCS
|
|
126
152
|
*/
|
|
127
153
|
serializeU8(value: Uint8): void;
|
|
128
154
|
/**
|
|
129
155
|
* Serializes a uint16 number.
|
|
130
156
|
*
|
|
157
|
+
* @group Implementation
|
|
158
|
+
* @category BCS
|
|
131
159
|
|
|
132
160
|
*/
|
|
133
161
|
/**
|
|
@@ -141,6 +169,8 @@ declare class Serializer {
|
|
|
141
169
|
* serializer.serializeU16(4660);
|
|
142
170
|
* assert(serializer.toUint8Array() === new Uint8Array([0x34, 0x12]));
|
|
143
171
|
* ```
|
|
172
|
+
* @group Implementation
|
|
173
|
+
* @category BCS
|
|
144
174
|
*/
|
|
145
175
|
serializeU16(value: Uint16): void;
|
|
146
176
|
/**
|
|
@@ -153,6 +183,8 @@ declare class Serializer {
|
|
|
153
183
|
* assert(serializer.toUint8Array() === new Uint8Array([0x78, 0x56, 0x34, 0x12]));
|
|
154
184
|
* ```
|
|
155
185
|
* @param value - The 32-bit unsigned integer value to serialize.
|
|
186
|
+
* @group Implementation
|
|
187
|
+
* @category BCS
|
|
156
188
|
*/
|
|
157
189
|
serializeU32(value: Uint32): void;
|
|
158
190
|
/**
|
|
@@ -166,12 +198,16 @@ declare class Serializer {
|
|
|
166
198
|
* serializer.serializeU64(1311768467750121216);
|
|
167
199
|
* assert(serializer.toUint8Array() === new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
|
|
168
200
|
* ```
|
|
201
|
+
* @group Implementation
|
|
202
|
+
* @category BCS
|
|
169
203
|
*/
|
|
170
204
|
serializeU64(value: AnyNumber): void;
|
|
171
205
|
/**
|
|
172
206
|
* Serializes a U128 value into a format suitable for storage or transmission.
|
|
173
207
|
*
|
|
174
208
|
* @param value - The U128 value to serialize, represented as a number.
|
|
209
|
+
* @group Implementation
|
|
210
|
+
* @category BCS
|
|
175
211
|
*/
|
|
176
212
|
serializeU128(value: AnyNumber): void;
|
|
177
213
|
/**
|
|
@@ -179,6 +215,8 @@ declare class Serializer {
|
|
|
179
215
|
* This function is essential for encoding large numbers in a compact format suitable for transmission or storage.
|
|
180
216
|
*
|
|
181
217
|
* @param value - The U256 value to serialize, represented as an AnyNumber.
|
|
218
|
+
* @group Implementation
|
|
219
|
+
* @category BCS
|
|
182
220
|
*/
|
|
183
221
|
serializeU256(value: AnyNumber): void;
|
|
184
222
|
/**
|
|
@@ -186,6 +224,8 @@ declare class Serializer {
|
|
|
186
224
|
* BCS uses uleb128 encoding in two cases: (1) lengths of variable-length sequences and (2) tags of enum values
|
|
187
225
|
*
|
|
188
226
|
* @param val - The 32-bit unsigned integer value to be serialized.
|
|
227
|
+
* @group Implementation
|
|
228
|
+
* @category BCS
|
|
189
229
|
*/
|
|
190
230
|
serializeU32AsUleb128(val: Uint32): void;
|
|
191
231
|
/**
|
|
@@ -194,6 +234,8 @@ declare class Serializer {
|
|
|
194
234
|
* This function allows you to retrieve the byte representation of the buffer up to the current offset.
|
|
195
235
|
*
|
|
196
236
|
* @returns Uint8Array - The byte array representation of the buffer.
|
|
237
|
+
* @group Implementation
|
|
238
|
+
* @category BCS
|
|
197
239
|
*/
|
|
198
240
|
toUint8Array(): Uint8Array;
|
|
199
241
|
/**
|
|
@@ -202,6 +244,8 @@ declare class Serializer {
|
|
|
202
244
|
* @param value The Serializable value to serialize.
|
|
203
245
|
*
|
|
204
246
|
* @returns the serializer instance
|
|
247
|
+
* @group Implementation
|
|
248
|
+
* @category BCS
|
|
205
249
|
*/
|
|
206
250
|
serialize<T extends Serializable>(value: T): void;
|
|
207
251
|
/**
|
|
@@ -222,6 +266,8 @@ declare class Serializer {
|
|
|
222
266
|
* // serializedBytes is now the BCS-serialized bytes
|
|
223
267
|
* // The equivalent value in Move would be:
|
|
224
268
|
* // `bcs::to_bytes(&vector<address> [@0x1, @0x2, @0xa, @0xb])`;
|
|
269
|
+
* @group Implementation
|
|
270
|
+
* @category BCS
|
|
225
271
|
*/
|
|
226
272
|
serializeVector<T extends Serializable>(values: Array<T>): void;
|
|
227
273
|
/**
|
|
@@ -240,6 +286,8 @@ declare class Serializer {
|
|
|
240
286
|
* serializer.serializeOption(new AccountAddress(...)); // Serializes optional Serializable
|
|
241
287
|
* serializer.serializeOption(undefined); // Serializes none case
|
|
242
288
|
* ```
|
|
289
|
+
* @group Implementation
|
|
290
|
+
* @category BCS
|
|
243
291
|
*/
|
|
244
292
|
serializeOption<T extends Serializable | string | Uint8Array>(value?: T, len?: number): void;
|
|
245
293
|
/**
|
|
@@ -252,10 +300,20 @@ declare class Serializer {
|
|
|
252
300
|
* BCS layout for undefined: 0
|
|
253
301
|
*
|
|
254
302
|
* @param value - The optional string to serialize. If undefined, it will serialize as 0.
|
|
303
|
+
* @group Implementation
|
|
304
|
+
* @category BCS
|
|
255
305
|
*/
|
|
256
306
|
serializeOptionStr(value?: string): void;
|
|
257
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* @group Implementation
|
|
310
|
+
* @category BCS
|
|
311
|
+
*/
|
|
258
312
|
declare function ensureBoolean(value: unknown): asserts value is boolean;
|
|
313
|
+
/**
|
|
314
|
+
* @group Implementation
|
|
315
|
+
* @category BCS
|
|
316
|
+
*/
|
|
259
317
|
declare const outOfRangeErrorMessage: (value: AnyNumber, min: AnyNumber, max: AnyNumber) => string;
|
|
260
318
|
/**
|
|
261
319
|
* Validates that a given number is within a specified range.
|
|
@@ -264,6 +322,8 @@ declare const outOfRangeErrorMessage: (value: AnyNumber, min: AnyNumber, max: An
|
|
|
264
322
|
* @param value - The number to validate.
|
|
265
323
|
* @param minValue - The minimum allowable value (inclusive).
|
|
266
324
|
* @param maxValue - The maximum allowable value (inclusive).
|
|
325
|
+
* @group Implementation
|
|
326
|
+
* @category BCS
|
|
267
327
|
*/
|
|
268
328
|
declare function validateNumberInRange<T extends AnyNumber>(value: T, minValue: T, maxValue: T): void;
|
|
269
329
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as Serializable,b as Serializer,c as ensureBoolean,d as outOfRangeErrorMessage,e as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=serializer.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-3QUZFCNW.mjs";import{h as M}from"./chunk-EPBNJZ4A.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-OPOIWSNQ.mjs";import{h as M}from"./chunk-6HFKPYDO.mjs";import{c as R}from"./chunk-AZWVCBK2.mjs";import{c as k}from"./chunk-QY46YWI4.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-G4O6FXCF.mjs";import{b as c}from"./chunk-Q4C4U6I4.mjs";import{a as _,c as d}from"./chunk-IDTLNF4M.mjs";import{a as T,e as D}from"./chunk-ORMOQWWH.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-2E7ZURV4.mjs.map
|