@aptos-labs/ts-sdk 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/common/{accountAddress-DUCC2ffJ.d.ts → accountAddress-DnSqjhSl.d.ts} +700 -245
- package/dist/common/{chunk-HBPH2AD3.js → chunk-7IYTZDXV.js} +1 -1
- package/dist/common/chunk-7IYTZDXV.js.map +1 -0
- package/dist/common/cli/index.d.ts +123 -126
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +5921 -1627
- package/dist/common/index.js +8 -8
- package/dist/common/index.js.map +1 -1
- package/dist/esm/Ed25519Account-DpH9qAcg.d.mts +470 -0
- package/dist/esm/account/AbstractKeylessAccount.d.mts +6 -5
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +2 -2
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +2 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +49 -14
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +3 -3
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +42 -4
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +54 -34
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +2 -2
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.d.mts +446 -161
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +369 -122
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +40 -7
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +102 -14
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +52 -15
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +710 -300
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +129 -26
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +44 -7
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +152 -49
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +171 -55
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +2 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +82 -11
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +51 -7
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +86 -17
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +118 -38
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +440 -109
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +99 -13
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/helpers.d.mts +79 -0
- package/dist/esm/api/transactionSubmission/helpers.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +111 -12
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +97 -3
- 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 +140 -15
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +104 -13
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +26 -3
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/consts.mjs +1 -1
- package/dist/esm/bcs/deserializer.d.mts +82 -32
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +25 -6
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +51 -21
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +79 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +119 -32
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +111 -76
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-U6Z4FNB7.mjs → chunk-2CJC43CV.mjs} +1 -1
- package/dist/esm/chunk-2CJC43CV.mjs.map +1 -0
- package/dist/esm/{chunk-P2EIZ7WL.mjs → chunk-2I56E4T2.mjs} +2 -2
- package/dist/esm/chunk-2I56E4T2.mjs.map +1 -0
- package/dist/esm/{chunk-P3TAY5PP.mjs → chunk-2QRWGJJA.mjs} +2 -2
- package/dist/esm/chunk-2QRWGJJA.mjs.map +1 -0
- package/dist/esm/chunk-37UZKMJI.mjs +2 -0
- package/dist/esm/chunk-37UZKMJI.mjs.map +1 -0
- package/dist/esm/chunk-4CDDWSKZ.mjs +2 -0
- package/dist/esm/chunk-4CDDWSKZ.mjs.map +1 -0
- package/dist/esm/chunk-4OV7QU2U.mjs +2 -0
- package/dist/esm/chunk-4OV7QU2U.mjs.map +1 -0
- package/dist/esm/{chunk-SWNFKKRE.mjs → chunk-5AAFF2PV.mjs} +2 -2
- package/dist/esm/chunk-5AAFF2PV.mjs.map +1 -0
- package/dist/esm/chunk-5CCHECTE.mjs +2 -0
- package/dist/esm/chunk-5CCHECTE.mjs.map +1 -0
- package/dist/esm/{chunk-KUOB4DDE.mjs → chunk-5XXIIWG7.mjs} +2 -2
- package/dist/esm/chunk-5XXIIWG7.mjs.map +1 -0
- package/dist/esm/chunk-5ZBHIUWG.mjs +2 -0
- package/dist/esm/chunk-5ZBHIUWG.mjs.map +1 -0
- package/dist/esm/chunk-6AGTDRNM.mjs +2 -0
- package/dist/esm/chunk-6AGTDRNM.mjs.map +1 -0
- package/dist/esm/chunk-6FLHGOKP.mjs +2 -0
- package/dist/esm/chunk-6FLHGOKP.mjs.map +1 -0
- package/dist/esm/{chunk-LG7RJQ57.mjs → chunk-6Q2O5G3J.mjs} +1 -1
- package/dist/esm/chunk-6Q2O5G3J.mjs.map +1 -0
- package/dist/esm/chunk-7D3RY73L.mjs +2 -0
- package/dist/esm/chunk-7D3RY73L.mjs.map +1 -0
- package/dist/esm/{chunk-QBSU3L5Q.mjs → chunk-7PVIWKGT.mjs} +2 -2
- package/dist/esm/chunk-7PVIWKGT.mjs.map +1 -0
- package/dist/esm/chunk-7V6RL27I.mjs +2 -0
- package/dist/esm/chunk-7V6RL27I.mjs.map +1 -0
- package/dist/esm/{chunk-44GYWUSH.mjs → chunk-7XS45O6M.mjs} +1 -1
- package/dist/esm/chunk-7XS45O6M.mjs.map +1 -0
- package/dist/esm/{chunk-YUNDX5I7.mjs → chunk-AGBA3Y7A.mjs} +2 -2
- package/dist/esm/chunk-AGBA3Y7A.mjs.map +1 -0
- package/dist/esm/{chunk-OKAQO57B.mjs → chunk-BQXVHY7J.mjs} +2 -2
- package/dist/esm/chunk-BQXVHY7J.mjs.map +1 -0
- package/dist/esm/chunk-CRL4WGOH.mjs +2 -0
- package/dist/esm/chunk-CRL4WGOH.mjs.map +1 -0
- package/dist/esm/{chunk-APN6AV5Q.mjs → chunk-D3KBNFZR.mjs} +2 -2
- package/dist/esm/chunk-D3KBNFZR.mjs.map +1 -0
- package/dist/esm/{chunk-SCHZ67F3.mjs → chunk-D3OEQLUE.mjs} +1 -1
- package/dist/esm/{chunk-SCHZ67F3.mjs.map → chunk-D3OEQLUE.mjs.map} +1 -1
- package/dist/esm/{chunk-FZ5EYP3D.mjs → chunk-DCUVV3VY.mjs} +2 -2
- package/dist/esm/chunk-DCUVV3VY.mjs.map +1 -0
- package/dist/esm/{chunk-S2KDCIZN.mjs → chunk-DXQT55L3.mjs} +2 -2
- package/dist/esm/chunk-DXQT55L3.mjs.map +1 -0
- package/dist/esm/chunk-DZJXOL64.mjs +2 -0
- package/dist/esm/chunk-DZJXOL64.mjs.map +1 -0
- package/dist/esm/{chunk-Y2GWUE7C.mjs → chunk-EF2PUPUH.mjs} +2 -2
- package/dist/esm/chunk-EF2PUPUH.mjs.map +1 -0
- package/dist/esm/{chunk-J64ARI4E.mjs → chunk-EKZQ3EYX.mjs} +2 -2
- package/dist/esm/chunk-EKZQ3EYX.mjs.map +1 -0
- package/dist/esm/{chunk-F76N4MQO.mjs → chunk-EN2HDNFE.mjs} +2 -2
- package/dist/esm/chunk-EN2HDNFE.mjs.map +1 -0
- package/dist/esm/{chunk-L2QXU6F4.mjs → chunk-FO4F3OJJ.mjs} +2 -2
- package/dist/esm/chunk-FO4F3OJJ.mjs.map +1 -0
- package/dist/esm/{chunk-HKBBA653.mjs → chunk-FPF4KZ5M.mjs} +2 -2
- package/dist/esm/chunk-FPF4KZ5M.mjs.map +1 -0
- package/dist/esm/{chunk-OMV7445F.mjs → chunk-FY7TSOUU.mjs} +2 -2
- package/dist/esm/chunk-FY7TSOUU.mjs.map +1 -0
- package/dist/esm/{chunk-ELYS7CWV.mjs → chunk-GIQQF2PD.mjs} +2 -2
- package/dist/esm/chunk-GIQQF2PD.mjs.map +1 -0
- package/dist/esm/{chunk-SRPI2FFA.mjs → chunk-GMKKHGXK.mjs} +1 -1
- package/dist/esm/chunk-GMKKHGXK.mjs.map +1 -0
- package/dist/esm/chunk-GPZRGLU2.mjs +2 -0
- package/dist/esm/chunk-GPZRGLU2.mjs.map +1 -0
- package/dist/esm/{chunk-TDGQGILY.mjs → chunk-GQABU3RQ.mjs} +1 -1
- package/dist/esm/chunk-GQABU3RQ.mjs.map +1 -0
- package/dist/esm/{chunk-JH6VLTMS.mjs → chunk-HAMXSLWF.mjs} +2 -2
- package/dist/esm/chunk-HAMXSLWF.mjs.map +1 -0
- package/dist/esm/{chunk-AH44UPM4.mjs → chunk-HBIDHQ2M.mjs} +1 -1
- package/dist/esm/chunk-HBIDHQ2M.mjs.map +1 -0
- package/dist/esm/{chunk-QPB6EJVM.mjs → chunk-HCV3NGLS.mjs} +2 -2
- package/dist/esm/chunk-HCV3NGLS.mjs.map +1 -0
- package/dist/esm/{chunk-2BTTX2KO.mjs → chunk-HDTKBFRX.mjs} +2 -2
- package/dist/esm/chunk-HDTKBFRX.mjs.map +1 -0
- package/dist/esm/chunk-HGVZ7ULA.mjs +2 -0
- package/dist/esm/chunk-HGVZ7ULA.mjs.map +1 -0
- package/dist/esm/{chunk-6EMN3BOV.mjs → chunk-I2NMCLNW.mjs} +1 -1
- package/dist/esm/chunk-I2NMCLNW.mjs.map +1 -0
- package/dist/esm/chunk-IBLZ6MZU.mjs +2 -0
- package/dist/esm/chunk-IBLZ6MZU.mjs.map +1 -0
- package/dist/esm/chunk-IECDO22V.mjs +2 -0
- package/dist/esm/chunk-IECDO22V.mjs.map +1 -0
- package/dist/esm/{chunk-KUZ2YTJH.mjs → chunk-IFHQSZLK.mjs} +2 -2
- package/dist/esm/chunk-IFHQSZLK.mjs.map +1 -0
- package/dist/esm/{chunk-EXP5STXZ.mjs → chunk-J245N3XF.mjs} +1 -1
- package/dist/esm/chunk-J245N3XF.mjs.map +1 -0
- package/dist/esm/{chunk-7VKFXX5Q.mjs → chunk-JDYASF3E.mjs} +2 -2
- package/dist/esm/chunk-JDYASF3E.mjs.map +1 -0
- package/dist/esm/{chunk-H6YNXJNF.mjs → chunk-JGNMNCQB.mjs} +2 -2
- package/dist/esm/chunk-JGNMNCQB.mjs.map +1 -0
- package/dist/esm/{chunk-R76DHMGR.mjs → chunk-JNHFQTFC.mjs} +2 -2
- package/dist/esm/chunk-JNHFQTFC.mjs.map +1 -0
- package/dist/esm/{chunk-5PCNWXRN.mjs → chunk-JY3JJ55D.mjs} +2 -2
- package/dist/esm/chunk-JY3JJ55D.mjs.map +1 -0
- package/dist/esm/{chunk-3W2DHZXK.mjs → chunk-K6MZXKVV.mjs} +2 -2
- package/dist/esm/chunk-K6MZXKVV.mjs.map +1 -0
- package/dist/esm/{chunk-FVA2OPG4.mjs → chunk-KDMSOCZY.mjs} +1 -1
- package/dist/esm/{chunk-BCUSI3N6.mjs → chunk-KFNDDPOW.mjs} +2 -2
- package/dist/esm/chunk-KFNDDPOW.mjs.map +1 -0
- package/dist/esm/{chunk-4TB3AWQE.mjs → chunk-KFSVKIFO.mjs} +2 -2
- package/dist/esm/chunk-KFSVKIFO.mjs.map +1 -0
- package/dist/esm/chunk-KIW54KWR.mjs +2 -0
- package/dist/esm/{chunk-OHRL766V.mjs → chunk-KM6UXNC7.mjs} +2 -2
- package/dist/esm/chunk-KM6UXNC7.mjs.map +1 -0
- package/dist/esm/{chunk-NWOMSL6K.mjs → chunk-KRVLR3L4.mjs} +2 -2
- package/dist/esm/chunk-KRVLR3L4.mjs.map +1 -0
- package/dist/esm/{chunk-4HR32TSY.mjs → chunk-KSKQVOBA.mjs} +2 -2
- package/dist/esm/chunk-KSKQVOBA.mjs.map +1 -0
- package/dist/esm/{chunk-ZROQH5YL.mjs → chunk-KSUZS6EL.mjs} +2 -2
- package/dist/esm/chunk-L5I7F3NZ.mjs +2 -0
- package/dist/esm/chunk-L5I7F3NZ.mjs.map +1 -0
- package/dist/esm/{chunk-MAMPMCO7.mjs → chunk-LD5MUWGW.mjs} +2 -2
- package/dist/esm/chunk-LD5MUWGW.mjs.map +1 -0
- package/dist/esm/{chunk-UAL27G6B.mjs → chunk-LEKBJ2EG.mjs} +1 -1
- package/dist/esm/chunk-LEKBJ2EG.mjs.map +1 -0
- package/dist/esm/chunk-LZS7BQ2B.mjs +2 -0
- package/dist/esm/chunk-LZS7BQ2B.mjs.map +1 -0
- package/dist/esm/{chunk-53RB2PRH.mjs → chunk-N3OYD6VZ.mjs} +2 -2
- package/dist/esm/chunk-N3OYD6VZ.mjs.map +1 -0
- package/dist/esm/{chunk-KEYAPEAX.mjs → chunk-N47FTRYO.mjs} +1 -1
- package/dist/esm/chunk-N47FTRYO.mjs.map +1 -0
- package/dist/esm/{chunk-YDZBU2DJ.mjs → chunk-NODYW7DM.mjs} +2 -2
- package/dist/esm/chunk-NODYW7DM.mjs.map +1 -0
- package/dist/esm/{chunk-HVMFZF6P.mjs → chunk-NV6DHDM3.mjs} +2 -2
- package/dist/esm/chunk-NV6DHDM3.mjs.map +1 -0
- package/dist/esm/{chunk-YU3IYJRL.mjs → chunk-OLPI7QAH.mjs} +2 -2
- package/dist/esm/chunk-OLPI7QAH.mjs.map +1 -0
- package/dist/esm/chunk-ONBFUPEC.mjs +2 -0
- package/dist/esm/chunk-ONBFUPEC.mjs.map +1 -0
- package/dist/esm/{chunk-A42BPAD4.mjs → chunk-OS2EG6AE.mjs} +2 -2
- package/dist/esm/chunk-OS2EG6AE.mjs.map +1 -0
- package/dist/esm/chunk-OTY3NO7Q.mjs +2 -0
- package/dist/esm/chunk-OTY3NO7Q.mjs.map +1 -0
- package/dist/esm/{chunk-MNVUSJEK.mjs → chunk-OV5UQ75K.mjs} +2 -2
- package/dist/esm/chunk-OV5UQ75K.mjs.map +1 -0
- package/dist/esm/{chunk-P5V7OZNN.mjs → chunk-OZN3OOJV.mjs} +2 -2
- package/dist/esm/chunk-OZN3OOJV.mjs.map +1 -0
- package/dist/esm/{chunk-WRRQ7L5K.mjs → chunk-PCLU4KLY.mjs} +2 -2
- package/dist/esm/chunk-PCLU4KLY.mjs.map +1 -0
- package/dist/esm/{chunk-Q3TAEOH5.mjs → chunk-PGZWRY7A.mjs} +2 -2
- package/dist/esm/chunk-PGZWRY7A.mjs.map +1 -0
- package/dist/esm/{chunk-X34JJPW5.mjs → chunk-PHG2IWZW.mjs} +2 -2
- package/dist/esm/chunk-PHG2IWZW.mjs.map +1 -0
- package/dist/esm/{chunk-LR65XHSF.mjs → chunk-PHP47DI4.mjs} +2 -2
- package/dist/esm/chunk-PHP47DI4.mjs.map +1 -0
- package/dist/esm/chunk-PRZ7AIGA.mjs +2 -0
- package/dist/esm/chunk-PRZ7AIGA.mjs.map +1 -0
- package/dist/esm/{chunk-6UZ3VI5Y.mjs → chunk-QBP4XJT5.mjs} +2 -2
- package/dist/esm/chunk-QBP4XJT5.mjs.map +1 -0
- package/dist/esm/{chunk-5VD4MHB3.mjs → chunk-QBWGWHJK.mjs} +2 -2
- package/dist/esm/chunk-QBWGWHJK.mjs.map +1 -0
- package/dist/esm/chunk-QQIVWB6G.mjs +2 -0
- package/dist/esm/chunk-QQIVWB6G.mjs.map +1 -0
- package/dist/esm/{chunk-367OG3DB.mjs → chunk-QRTZYRH2.mjs} +2 -2
- package/dist/esm/chunk-QRTZYRH2.mjs.map +1 -0
- package/dist/esm/{chunk-2F7Z7RMW.mjs → chunk-R3Y6WH2U.mjs} +2 -2
- package/dist/esm/chunk-R3Y6WH2U.mjs.map +1 -0
- package/dist/esm/{chunk-S2W4D6NZ.mjs → chunk-RAXP3STS.mjs} +2 -2
- package/dist/esm/chunk-RAXP3STS.mjs.map +1 -0
- package/dist/esm/{chunk-F3M2UQA4.mjs → chunk-RNAKZVRN.mjs} +2 -2
- package/dist/esm/chunk-RNAKZVRN.mjs.map +1 -0
- package/dist/esm/{chunk-TQWGQLM6.mjs → chunk-RUDS7RSB.mjs} +2 -2
- package/dist/esm/chunk-RUDS7RSB.mjs.map +1 -0
- package/dist/esm/{chunk-GMBSQDPO.mjs → chunk-S3FVA55H.mjs} +2 -2
- package/dist/esm/chunk-S3FVA55H.mjs.map +1 -0
- package/dist/esm/{chunk-BSAHPS6E.mjs → chunk-TIZL5YVP.mjs} +2 -2
- package/dist/esm/chunk-TIZL5YVP.mjs.map +1 -0
- package/dist/esm/{chunk-SDWE6WMM.mjs → chunk-TRU3EK64.mjs} +2 -2
- package/dist/esm/chunk-TRU3EK64.mjs.map +1 -0
- package/dist/esm/chunk-UI3AKMZX.mjs +2 -0
- package/dist/esm/{chunk-UAEODDZS.mjs.map → chunk-UI3AKMZX.mjs.map} +1 -1
- package/dist/esm/{chunk-ADE6MVXC.mjs → chunk-UKAXCARD.mjs} +2 -2
- package/dist/esm/chunk-UKAXCARD.mjs.map +1 -0
- package/dist/esm/{chunk-NMD45OTM.mjs → chunk-V5NDNR36.mjs} +2 -2
- package/dist/esm/chunk-V5NDNR36.mjs.map +1 -0
- package/dist/esm/{chunk-O2BPA6TS.mjs → chunk-VQTEGTUQ.mjs} +2 -2
- package/dist/esm/chunk-VQTEGTUQ.mjs.map +1 -0
- package/dist/esm/{chunk-45IUUCAV.mjs → chunk-WIXNX7HY.mjs} +2 -2
- package/dist/esm/chunk-WIXNX7HY.mjs.map +1 -0
- package/dist/esm/{chunk-CRA2MFJC.mjs → chunk-WOOH5MMX.mjs} +2 -2
- package/dist/esm/chunk-WOOH5MMX.mjs.map +1 -0
- package/dist/esm/{chunk-GWSDIX6C.mjs → chunk-WSVOJSAC.mjs} +2 -2
- package/dist/esm/chunk-WSVOJSAC.mjs.map +1 -0
- package/dist/esm/{chunk-IR4SLC2M.mjs → chunk-WUCPTRXU.mjs} +2 -2
- package/dist/esm/chunk-WUCPTRXU.mjs.map +1 -0
- package/dist/esm/chunk-XHCALZ7X.mjs +2 -0
- package/dist/esm/chunk-XHCALZ7X.mjs.map +1 -0
- package/dist/esm/{chunk-WJRZWAIS.mjs → chunk-XIY2VORC.mjs} +2 -2
- package/dist/esm/chunk-XIY2VORC.mjs.map +1 -0
- package/dist/esm/chunk-XOCRDV2V.mjs +2 -0
- package/dist/esm/chunk-XOCRDV2V.mjs.map +1 -0
- package/dist/esm/{chunk-D3Q4BC3I.mjs → chunk-Z36WHOZV.mjs} +2 -2
- package/dist/esm/chunk-Z36WHOZV.mjs.map +1 -0
- package/dist/esm/{chunk-BOYYQAB4.mjs → chunk-ZINOJTLU.mjs} +2 -2
- package/dist/esm/chunk-ZINOJTLU.mjs.map +1 -0
- package/dist/esm/{chunk-RXE6NNOL.mjs → chunk-ZS3EWM5A.mjs} +2 -2
- package/dist/esm/chunk-ZS3EWM5A.mjs.map +1 -0
- package/dist/esm/{chunk-GDUAFXIQ.mjs → chunk-ZUTOMGB7.mjs} +2 -2
- package/dist/esm/chunk-ZUTOMGB7.mjs.map +1 -0
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.d.mts +26 -10
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +104 -123
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.d.mts +21 -6
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +34 -6
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +63 -6
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/client/types.d.mts +21 -8
- package/dist/esm/client/types.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +1 -1
- 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 +63 -48
- 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 +6 -0
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +77 -26
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +36 -14
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +2 -14
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/hdKey.d.mts +9 -6
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +126 -45
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +45 -6
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +58 -7
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/poseidon.d.mts +35 -5
- package/dist/esm/core/crypto/poseidon.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +10 -6
- package/dist/esm/core/crypto/proof.d.mts +2 -6
- 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 +72 -27
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +5 -4
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +63 -5
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.d.mts +27 -28
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +191 -12
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +206 -14
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +13 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +330 -2
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +39 -0
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +14 -0
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +48 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +46 -0
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +38 -2
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +21 -0
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +26 -0
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +33 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +107 -5
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +72 -29
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/publicKey-_tPa99ea.d.mts +151 -0
- package/dist/esm/transactions/authenticator/account.d.mts +66 -17
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +53 -20
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +20 -1
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +21 -3
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +22 -8
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +24 -8
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +31 -4
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +25 -3
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +29 -7
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +23 -8
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +23 -0
- package/dist/esm/transactions/instances/transactionPayload.d.mts +72 -26
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +37 -11
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/asyncQueue.d.mts +22 -19
- package/dist/esm/transactions/management/asyncQueue.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +2 -2
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +67 -36
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +74 -4
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +45 -23
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +20 -15
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +101 -30
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +244 -3
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +31 -2
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +82 -34
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/types.mjs +1 -1
- package/dist/esm/types/index.d.mts +320 -59
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +65 -2
- package/dist/esm/types/keyless.d.mts +18 -0
- package/dist/esm/utils/apiEndpoints.d.mts +3 -0
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +2 -4
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +25 -10
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/memoize.d.mts +12 -10
- package/dist/esm/utils/memoize.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +11 -5
- 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 +23 -22
- package/src/account/AbstractKeylessAccount.ts +7 -5
- package/src/account/Account.ts +88 -54
- package/src/account/Ed25519Account.ts +56 -21
- package/src/account/EphemeralKeyPair.ts +50 -15
- package/src/account/FederatedKeylessAccount.ts +4 -3
- package/src/account/KeylessAccount.ts +46 -3
- package/src/account/MultiKeyAccount.ts +56 -35
- package/src/account/SingleKeyAccount.ts +60 -28
- package/src/api/account.ts +443 -159
- package/src/api/ans.ts +367 -120
- package/src/api/aptos.ts +38 -5
- package/src/api/aptosConfig.ts +102 -14
- package/src/api/coin.ts +49 -12
- package/src/api/digitalAsset.ts +707 -296
- package/src/api/event.ts +128 -25
- package/src/api/faucet.ts +44 -7
- package/src/api/fungibleAsset.ts +149 -46
- package/src/api/general.ts +168 -52
- package/src/api/keyless.ts +117 -21
- package/src/api/object.ts +49 -5
- package/src/api/staking.ts +84 -15
- package/src/api/table.ts +117 -37
- package/src/api/transaction.ts +438 -107
- package/src/api/transactionSubmission/build.ts +98 -12
- package/src/api/transactionSubmission/helpers.ts +79 -0
- package/src/api/transactionSubmission/management.ts +110 -10
- package/src/api/transactionSubmission/sign.ts +96 -2
- package/src/api/transactionSubmission/simulate.ts +139 -14
- package/src/api/transactionSubmission/submit.ts +103 -12
- package/src/api/utils.ts +26 -3
- package/src/bcs/deserializer.ts +82 -32
- package/src/bcs/serializable/entryFunctionBytes.ts +27 -6
- package/src/bcs/serializable/fixedBytes.ts +55 -25
- package/src/bcs/serializable/movePrimitives.ts +91 -0
- package/src/bcs/serializable/moveStructs.ts +123 -35
- package/src/bcs/serializer.ts +131 -84
- package/src/cli/localNode.ts +46 -17
- package/src/cli/move.ts +119 -136
- package/src/client/core.ts +23 -8
- package/src/client/get.ts +34 -6
- package/src/client/post.ts +63 -6
- package/src/client/types.ts +40 -13
- package/src/core/account/utils/address.ts +1 -1
- package/src/core/accountAddress.ts +63 -50
- package/src/core/authenticationKey.ts +47 -20
- package/src/core/common.ts +6 -0
- package/src/core/crypto/ed25519.ts +76 -25
- package/src/core/crypto/ephemeral.ts +37 -21
- package/src/core/crypto/federatedKeyless.ts +1 -20
- package/src/core/crypto/hdKey.ts +10 -7
- package/src/core/crypto/keyless.ts +140 -63
- package/src/core/crypto/multiEd25519.ts +44 -5
- package/src/core/crypto/multiKey.ts +66 -19
- package/src/core/crypto/poseidon.ts +72 -5
- package/src/core/crypto/privateKey.ts +9 -5
- package/src/core/crypto/proof.ts +3 -12
- package/src/core/crypto/publicKey.ts +15 -5
- package/src/core/crypto/secp256k1.ts +76 -26
- package/src/core/crypto/signature.ts +7 -4
- package/src/core/crypto/singleKey.ts +62 -5
- package/src/core/hex.ts +27 -28
- package/src/internal/account.ts +248 -12
- package/src/internal/ans.ts +219 -15
- package/src/internal/coin.ts +12 -0
- package/src/internal/digitalAsset.ts +344 -3
- package/src/internal/event.ts +51 -0
- package/src/internal/faucet.ts +14 -0
- package/src/internal/fungibleAsset.ts +46 -0
- package/src/internal/general.ts +46 -0
- package/src/internal/keyless.ts +37 -1
- package/src/internal/object.ts +21 -0
- package/src/internal/queries/getTableItemsData.graphql +1 -1
- package/src/internal/queries/getTableItemsMetadata.graphql +1 -1
- package/src/internal/staking.ts +27 -1
- package/src/internal/table.ts +32 -0
- package/src/internal/transaction.ts +120 -7
- package/src/internal/transactionSubmission.ts +86 -30
- package/src/transactions/authenticator/account.ts +65 -16
- package/src/transactions/authenticator/transaction.ts +52 -19
- package/src/transactions/instances/chainId.ts +20 -1
- package/src/transactions/instances/identifier.ts +21 -3
- package/src/transactions/instances/moduleId.ts +22 -8
- package/src/transactions/instances/multiAgentTransaction.ts +26 -10
- package/src/transactions/instances/rawTransaction.ts +31 -4
- package/src/transactions/instances/rotationProofChallenge.ts +24 -2
- package/src/transactions/instances/signedTransaction.ts +28 -6
- package/src/transactions/instances/simpleTransaction.ts +26 -11
- package/src/transactions/instances/transactionArgument.ts +26 -0
- package/src/transactions/instances/transactionPayload.ts +73 -26
- package/src/transactions/management/accountSequenceNumber.ts +38 -11
- package/src/transactions/management/asyncQueue.ts +22 -19
- package/src/transactions/management/transactionWorker.ts +66 -40
- package/src/transactions/transactionBuilder/helpers.ts +130 -3
- package/src/transactions/transactionBuilder/remoteAbi.ts +71 -30
- package/src/transactions/transactionBuilder/signingMessage.ts +19 -14
- package/src/transactions/transactionBuilder/transactionBuilder.ts +166 -42
- package/src/transactions/typeTag/index.ts +264 -3
- package/src/transactions/typeTag/parser.ts +54 -20
- package/src/transactions/types.ts +81 -33
- package/src/types/index.ts +338 -61
- package/src/types/indexer.ts +82 -2
- package/src/types/keyless.ts +21 -0
- package/src/utils/apiEndpoints.ts +3 -0
- package/src/utils/const.ts +2 -4
- package/src/utils/helpers.ts +25 -10
- package/src/utils/memoize.ts +12 -10
- package/src/utils/normalizeBundle.ts +11 -5
- package/src/version.ts +1 -1
- package/dist/common/chunk-HBPH2AD3.js.map +0 -1
- package/dist/esm/Ed25519Account-B1VMJOY2.d.mts +0 -361
- package/dist/esm/chunk-2BTTX2KO.mjs.map +0 -1
- package/dist/esm/chunk-2F7Z7RMW.mjs.map +0 -1
- package/dist/esm/chunk-367OG3DB.mjs.map +0 -1
- package/dist/esm/chunk-3W2DHZXK.mjs.map +0 -1
- package/dist/esm/chunk-44GYWUSH.mjs.map +0 -1
- package/dist/esm/chunk-45IUUCAV.mjs.map +0 -1
- package/dist/esm/chunk-4HR32TSY.mjs.map +0 -1
- package/dist/esm/chunk-4TB3AWQE.mjs.map +0 -1
- package/dist/esm/chunk-53RB2PRH.mjs.map +0 -1
- package/dist/esm/chunk-5PCNWXRN.mjs.map +0 -1
- package/dist/esm/chunk-5VD4MHB3.mjs.map +0 -1
- package/dist/esm/chunk-6EMN3BOV.mjs.map +0 -1
- package/dist/esm/chunk-6UZ3VI5Y.mjs.map +0 -1
- package/dist/esm/chunk-76OH2Z4Q.mjs +0 -2
- package/dist/esm/chunk-76OH2Z4Q.mjs.map +0 -1
- package/dist/esm/chunk-7VKFXX5Q.mjs.map +0 -1
- package/dist/esm/chunk-A42BPAD4.mjs.map +0 -1
- package/dist/esm/chunk-A63SMUOU.mjs +0 -2
- package/dist/esm/chunk-A63SMUOU.mjs.map +0 -1
- package/dist/esm/chunk-ADE6MVXC.mjs.map +0 -1
- package/dist/esm/chunk-AH44UPM4.mjs.map +0 -1
- package/dist/esm/chunk-APN6AV5Q.mjs.map +0 -1
- package/dist/esm/chunk-B5NYEWNM.mjs +0 -2
- package/dist/esm/chunk-B5NYEWNM.mjs.map +0 -1
- package/dist/esm/chunk-BA4RBST6.mjs +0 -2
- package/dist/esm/chunk-BA4RBST6.mjs.map +0 -1
- package/dist/esm/chunk-BCUSI3N6.mjs.map +0 -1
- package/dist/esm/chunk-BOYYQAB4.mjs.map +0 -1
- package/dist/esm/chunk-BSAHPS6E.mjs.map +0 -1
- package/dist/esm/chunk-BSUYPXRD.mjs +0 -2
- package/dist/esm/chunk-BSUYPXRD.mjs.map +0 -1
- package/dist/esm/chunk-BWNTSJOC.mjs +0 -2
- package/dist/esm/chunk-BWNTSJOC.mjs.map +0 -1
- package/dist/esm/chunk-CB6H4VMZ.mjs +0 -2
- package/dist/esm/chunk-CB6H4VMZ.mjs.map +0 -1
- package/dist/esm/chunk-CRA2MFJC.mjs.map +0 -1
- package/dist/esm/chunk-D3Q4BC3I.mjs.map +0 -1
- package/dist/esm/chunk-E4O26ZJB.mjs +0 -2
- package/dist/esm/chunk-E4O26ZJB.mjs.map +0 -1
- package/dist/esm/chunk-ELYS7CWV.mjs.map +0 -1
- package/dist/esm/chunk-EXP5STXZ.mjs.map +0 -1
- package/dist/esm/chunk-F3M2UQA4.mjs.map +0 -1
- package/dist/esm/chunk-F63E4CR7.mjs +0 -2
- package/dist/esm/chunk-F63E4CR7.mjs.map +0 -1
- package/dist/esm/chunk-F76N4MQO.mjs.map +0 -1
- package/dist/esm/chunk-FZ5EYP3D.mjs.map +0 -1
- package/dist/esm/chunk-G5MGSV7Y.mjs +0 -2
- package/dist/esm/chunk-G5MGSV7Y.mjs.map +0 -1
- package/dist/esm/chunk-G5XLMQ5E.mjs +0 -2
- package/dist/esm/chunk-G5XLMQ5E.mjs.map +0 -1
- package/dist/esm/chunk-GDO6Q2FI.mjs +0 -2
- package/dist/esm/chunk-GDO6Q2FI.mjs.map +0 -1
- package/dist/esm/chunk-GDUAFXIQ.mjs.map +0 -1
- package/dist/esm/chunk-GMBSQDPO.mjs.map +0 -1
- package/dist/esm/chunk-GWSDIX6C.mjs.map +0 -1
- package/dist/esm/chunk-H6YNXJNF.mjs.map +0 -1
- package/dist/esm/chunk-HAT5S2XX.mjs +0 -2
- package/dist/esm/chunk-HAT5S2XX.mjs.map +0 -1
- package/dist/esm/chunk-HHGJXVAE.mjs +0 -2
- package/dist/esm/chunk-HHGJXVAE.mjs.map +0 -1
- package/dist/esm/chunk-HKBBA653.mjs.map +0 -1
- package/dist/esm/chunk-HVMFZF6P.mjs.map +0 -1
- package/dist/esm/chunk-IR4SLC2M.mjs.map +0 -1
- package/dist/esm/chunk-J64ARI4E.mjs.map +0 -1
- package/dist/esm/chunk-JH6VLTMS.mjs.map +0 -1
- package/dist/esm/chunk-KEYAPEAX.mjs.map +0 -1
- package/dist/esm/chunk-KUOB4DDE.mjs.map +0 -1
- package/dist/esm/chunk-KUZ2YTJH.mjs.map +0 -1
- package/dist/esm/chunk-L2QXU6F4.mjs.map +0 -1
- package/dist/esm/chunk-LG7RJQ57.mjs.map +0 -1
- package/dist/esm/chunk-LNEZEYYE.mjs +0 -2
- package/dist/esm/chunk-LNEZEYYE.mjs.map +0 -1
- package/dist/esm/chunk-LR65XHSF.mjs.map +0 -1
- package/dist/esm/chunk-MAMPMCO7.mjs.map +0 -1
- package/dist/esm/chunk-MDJ66AA3.mjs +0 -2
- package/dist/esm/chunk-MDJ66AA3.mjs.map +0 -1
- package/dist/esm/chunk-MLDQ2TY2.mjs +0 -2
- package/dist/esm/chunk-MLDQ2TY2.mjs.map +0 -1
- package/dist/esm/chunk-MNVUSJEK.mjs.map +0 -1
- package/dist/esm/chunk-MQGW234H.mjs +0 -2
- package/dist/esm/chunk-MQGW234H.mjs.map +0 -1
- package/dist/esm/chunk-NMD45OTM.mjs.map +0 -1
- package/dist/esm/chunk-NWOMSL6K.mjs.map +0 -1
- package/dist/esm/chunk-O2BPA6TS.mjs.map +0 -1
- package/dist/esm/chunk-OHRL766V.mjs.map +0 -1
- package/dist/esm/chunk-OKAQO57B.mjs.map +0 -1
- package/dist/esm/chunk-OMV7445F.mjs.map +0 -1
- package/dist/esm/chunk-P2EIZ7WL.mjs.map +0 -1
- package/dist/esm/chunk-P3TAY5PP.mjs.map +0 -1
- package/dist/esm/chunk-P5V7OZNN.mjs.map +0 -1
- package/dist/esm/chunk-Q3TAEOH5.mjs.map +0 -1
- package/dist/esm/chunk-Q4XR6QOZ.mjs +0 -2
- package/dist/esm/chunk-QBSU3L5Q.mjs.map +0 -1
- package/dist/esm/chunk-QPB6EJVM.mjs.map +0 -1
- package/dist/esm/chunk-R76DHMGR.mjs.map +0 -1
- package/dist/esm/chunk-RXE6NNOL.mjs.map +0 -1
- package/dist/esm/chunk-S2KDCIZN.mjs.map +0 -1
- package/dist/esm/chunk-S2W4D6NZ.mjs.map +0 -1
- package/dist/esm/chunk-SDWE6WMM.mjs.map +0 -1
- package/dist/esm/chunk-SRPI2FFA.mjs.map +0 -1
- package/dist/esm/chunk-STUXKQVZ.mjs +0 -2
- package/dist/esm/chunk-STUXKQVZ.mjs.map +0 -1
- package/dist/esm/chunk-SUJLWCRN.mjs +0 -2
- package/dist/esm/chunk-SUJLWCRN.mjs.map +0 -1
- package/dist/esm/chunk-SWNFKKRE.mjs.map +0 -1
- package/dist/esm/chunk-TDGQGILY.mjs.map +0 -1
- package/dist/esm/chunk-TQWGQLM6.mjs.map +0 -1
- package/dist/esm/chunk-U6Z4FNB7.mjs.map +0 -1
- package/dist/esm/chunk-UAEODDZS.mjs +0 -2
- package/dist/esm/chunk-UAL27G6B.mjs.map +0 -1
- package/dist/esm/chunk-WJRZWAIS.mjs.map +0 -1
- package/dist/esm/chunk-WRRQ7L5K.mjs.map +0 -1
- package/dist/esm/chunk-X34JJPW5.mjs.map +0 -1
- package/dist/esm/chunk-XMW65WCQ.mjs +0 -2
- package/dist/esm/chunk-XMW65WCQ.mjs.map +0 -1
- package/dist/esm/chunk-Y2GWUE7C.mjs.map +0 -1
- package/dist/esm/chunk-Y3BATGHX.mjs +0 -2
- package/dist/esm/chunk-Y3BATGHX.mjs.map +0 -1
- package/dist/esm/chunk-YDZBU2DJ.mjs.map +0 -1
- package/dist/esm/chunk-YPHH6CAO.mjs +0 -2
- package/dist/esm/chunk-YPHH6CAO.mjs.map +0 -1
- package/dist/esm/chunk-YU3IYJRL.mjs.map +0 -1
- package/dist/esm/chunk-YUNDX5I7.mjs.map +0 -1
- package/dist/esm/publicKey-B3XRNhHO.d.mts +0 -113
- /package/dist/esm/{chunk-FVA2OPG4.mjs.map → chunk-KDMSOCZY.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q4XR6QOZ.mjs.map → chunk-KIW54KWR.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZROQH5YL.mjs.map → chunk-KSUZS6EL.mjs.map} +0 -0
|
@@ -9,41 +9,77 @@ import '../types/generated/types.mjs';
|
|
|
9
9
|
* deserialize a byte buffer into a type T.
|
|
10
10
|
* It is not intended to be implemented or extended, because Typescript has no support
|
|
11
11
|
* for static methods in interfaces.
|
|
12
|
+
*
|
|
13
|
+
* @template T - The type that this will deserialize into.
|
|
12
14
|
*/
|
|
13
15
|
interface Deserializable<T> {
|
|
16
|
+
/**
|
|
17
|
+
* Deserializes the buffered bytes into an instance of the specified class type.
|
|
18
|
+
* This function provides an alternative syntax for deserialization, allowing users to call
|
|
19
|
+
* `deserializer.deserialize(MyClass)` instead of `MyClass.deserialize(deserializer)`.
|
|
20
|
+
*
|
|
21
|
+
* @param deserializer - The deserializer instance with the buffered bytes.
|
|
22
|
+
* @returns The deserialized value of class type T.
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const deserializer = new Deserializer(new Uint8Array([1, 2, 3]));
|
|
26
|
+
* const value = deserializer.deserialize(MyClass); // where MyClass has a `deserialize` function
|
|
27
|
+
* // value is now an instance of MyClass
|
|
28
|
+
* // equivalent to `const value = MyClass.deserialize(deserializer)`
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
14
31
|
deserialize(deserializer: Deserializer): T;
|
|
15
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* A class that provides methods for deserializing various data types from a byte buffer.
|
|
35
|
+
* It supports deserialization of primitive types, strings, and complex objects using a BCS (Binary Common Serialization) layout.
|
|
36
|
+
*/
|
|
16
37
|
declare class Deserializer {
|
|
17
38
|
private buffer;
|
|
18
39
|
private offset;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new instance of the class with a copy of the provided data buffer.
|
|
42
|
+
* This prevents outside mutation of the buffer.
|
|
43
|
+
*
|
|
44
|
+
* @param data - The data to be copied into the internal buffer as a Uint8Array.
|
|
45
|
+
*/
|
|
19
46
|
constructor(data: Uint8Array);
|
|
47
|
+
/**
|
|
48
|
+
* Reads a specified number of bytes from the buffer and advances the offset.
|
|
49
|
+
*
|
|
50
|
+
* @param length - The number of bytes to read from the buffer.
|
|
51
|
+
* @throws Throws an error if the read operation exceeds the buffer's length.
|
|
52
|
+
*/
|
|
20
53
|
private read;
|
|
21
54
|
/**
|
|
22
55
|
* Returns the number of bytes remaining in the buffer.
|
|
23
56
|
*
|
|
24
|
-
*
|
|
57
|
+
* This information is useful to determine if there's more data to be read.
|
|
58
|
+
*
|
|
59
|
+
* @returns The number of bytes remaining in the buffer.
|
|
25
60
|
*/
|
|
26
61
|
remaining(): number;
|
|
27
62
|
/**
|
|
28
|
-
* Deserializes a
|
|
29
|
-
*
|
|
63
|
+
* Deserializes a UTF-8 encoded string from a byte array. It first reads the length of the string in bytes,
|
|
64
|
+
* followed by the actual byte content, and decodes it into a string.
|
|
30
65
|
*
|
|
31
66
|
* BCS layout for "string": string_length | string_content
|
|
32
67
|
* where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
|
|
33
68
|
*
|
|
34
69
|
* @example
|
|
35
|
-
* ```
|
|
70
|
+
* ```typescript
|
|
36
71
|
* const deserializer = new Deserializer(new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
37
72
|
* assert(deserializer.deserializeStr() === "1234abcd");
|
|
38
73
|
* ```
|
|
39
74
|
*/
|
|
40
75
|
deserializeStr(): string;
|
|
41
76
|
/**
|
|
42
|
-
* Deserializes
|
|
77
|
+
* Deserializes an optional string.
|
|
43
78
|
*
|
|
44
|
-
* BCS layout for Optional<String
|
|
79
|
+
* The BCS layout for Optional<String> is 0 if none, else 1 followed by the string length and string content.
|
|
80
|
+
* @returns The deserialized string if it exists, otherwise undefined.
|
|
45
81
|
* @example
|
|
46
|
-
* ```
|
|
82
|
+
* ```typescript
|
|
47
83
|
* const deserializer = new Deserializer(new Uint8Array([0x00]));
|
|
48
84
|
* assert(deserializer.deserializeOptionStr() === undefined);
|
|
49
85
|
* const deserializer = new Deserializer(new Uint8Array([1, 8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
@@ -52,9 +88,9 @@ declare class Deserializer {
|
|
|
52
88
|
*/
|
|
53
89
|
deserializeOptionStr(): string | undefined;
|
|
54
90
|
/**
|
|
55
|
-
* Deserializes
|
|
91
|
+
* Deserializes an optional deserializable class.
|
|
56
92
|
*
|
|
57
|
-
* BCS layout for Optional<T>: 0 if none, else 1 |
|
|
93
|
+
* BCS layout for Optional<T>: 0 if none, else 1 | BCS representation of class.
|
|
58
94
|
*
|
|
59
95
|
* @example
|
|
60
96
|
* const deserializer = new Deserializer(new Uint8Array([1, 2, 3]));
|
|
@@ -67,50 +103,59 @@ declare class Deserializer {
|
|
|
67
103
|
*
|
|
68
104
|
* @param cls The BCS-deserializable class to deserialize the buffered bytes into.
|
|
69
105
|
*
|
|
70
|
-
* @returns
|
|
106
|
+
* @returns The deserialized value of class type T or undefined if no value exists.
|
|
71
107
|
*/
|
|
72
108
|
deserializeOption<T>(cls: Deserializable<T>): T | undefined;
|
|
73
109
|
/**
|
|
74
110
|
* Deserializes an array of bytes.
|
|
75
111
|
*
|
|
76
|
-
* BCS layout for "bytes"
|
|
77
|
-
*
|
|
112
|
+
* The BCS layout for "bytes" consists of a bytes_length followed by the bytes themselves, where bytes_length is a u32 integer
|
|
113
|
+
* encoded as a uleb128 integer, indicating the length of the bytes array.
|
|
114
|
+
*
|
|
115
|
+
* @returns {Uint8Array} The deserialized array of bytes.
|
|
78
116
|
*/
|
|
79
117
|
deserializeBytes(): Uint8Array;
|
|
80
118
|
/**
|
|
81
|
-
* Deserializes an array of bytes
|
|
119
|
+
* Deserializes an array of bytes of a specified length.
|
|
82
120
|
*
|
|
121
|
+
* @param len - The number of bytes to read from the source.
|
|
83
122
|
*/
|
|
84
123
|
deserializeFixedBytes(len: number): Uint8Array;
|
|
85
124
|
/**
|
|
86
|
-
* Deserializes a boolean value.
|
|
125
|
+
* Deserializes a boolean value from a byte stream.
|
|
126
|
+
*
|
|
127
|
+
* The BCS layout for a boolean uses one byte, where "0x01" represents true and "0x00" represents false.
|
|
128
|
+
* An error is thrown if the byte value is not valid.
|
|
87
129
|
*
|
|
88
|
-
*
|
|
130
|
+
* @returns The deserialized boolean value.
|
|
131
|
+
* @throws Throws an error if the boolean value is invalid.
|
|
89
132
|
*/
|
|
90
133
|
deserializeBool(): boolean;
|
|
91
134
|
/**
|
|
92
|
-
* Deserializes a uint8 number.
|
|
135
|
+
* Deserializes a uint8 number from the binary data.
|
|
93
136
|
*
|
|
94
137
|
* BCS layout for "uint8": One byte. Binary format in little-endian representation.
|
|
138
|
+
*
|
|
139
|
+
* @returns {number} The deserialized uint8 number.
|
|
95
140
|
*/
|
|
96
141
|
deserializeU8(): Uint8;
|
|
97
142
|
/**
|
|
98
|
-
* Deserializes a uint16 number.
|
|
143
|
+
* Deserializes a uint16 number from a binary format in little-endian representation.
|
|
99
144
|
*
|
|
100
|
-
* BCS layout for "uint16": Two bytes.
|
|
145
|
+
* BCS layout for "uint16": Two bytes.
|
|
101
146
|
* @example
|
|
102
|
-
* ```
|
|
147
|
+
* ```typescript
|
|
103
148
|
* const deserializer = new Deserializer(new Uint8Array([0x34, 0x12]));
|
|
104
149
|
* assert(deserializer.deserializeU16() === 4660);
|
|
105
150
|
* ```
|
|
106
151
|
*/
|
|
107
152
|
deserializeU16(): Uint16;
|
|
108
153
|
/**
|
|
109
|
-
* Deserializes a uint32 number.
|
|
154
|
+
* Deserializes a uint32 number from a binary format in little-endian representation.
|
|
110
155
|
*
|
|
111
|
-
* BCS layout for "uint32": Four bytes.
|
|
156
|
+
* BCS layout for "uint32": Four bytes.
|
|
112
157
|
* @example
|
|
113
|
-
* ```
|
|
158
|
+
* ```typescript
|
|
114
159
|
* const deserializer = new Deserializer(new Uint8Array([0x78, 0x56, 0x34, 0x12]));
|
|
115
160
|
* assert(deserializer.deserializeU32() === 305419896);
|
|
116
161
|
* ```
|
|
@@ -119,30 +164,36 @@ declare class Deserializer {
|
|
|
119
164
|
/**
|
|
120
165
|
* Deserializes a uint64 number.
|
|
121
166
|
*
|
|
122
|
-
*
|
|
167
|
+
* This function combines two 32-bit values to return a 64-bit unsigned integer in little-endian representation.
|
|
123
168
|
* @example
|
|
124
|
-
* ```
|
|
169
|
+
* ```typescript
|
|
125
170
|
* const deserializer = new Deserializer(new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
|
|
126
171
|
* assert(deserializer.deserializeU64() === 1311768467750121216);
|
|
127
172
|
* ```
|
|
128
173
|
*/
|
|
129
174
|
deserializeU64(): Uint64;
|
|
130
175
|
/**
|
|
131
|
-
* Deserializes a uint128 number.
|
|
176
|
+
* Deserializes a uint128 number from its binary representation.
|
|
177
|
+
* This function combines two 64-bit values to return a single uint128 value in little-endian format.
|
|
132
178
|
*
|
|
133
|
-
*
|
|
179
|
+
* @returns {BigInt} The deserialized uint128 number.
|
|
134
180
|
*/
|
|
135
181
|
deserializeU128(): Uint128;
|
|
136
182
|
/**
|
|
137
|
-
* Deserializes a uint256 number.
|
|
183
|
+
* Deserializes a uint256 number from its binary representation.
|
|
184
|
+
*
|
|
185
|
+
* The BCS layout for "uint256" consists of thirty-two bytes in little-endian format.
|
|
138
186
|
*
|
|
139
|
-
*
|
|
187
|
+
* @returns {BigInt} The deserialized uint256 number.
|
|
140
188
|
*/
|
|
141
189
|
deserializeU256(): Uint256;
|
|
142
190
|
/**
|
|
143
191
|
* Deserializes a uleb128 encoded uint32 number.
|
|
144
192
|
*
|
|
145
|
-
*
|
|
193
|
+
* This function is used for interpreting lengths of variable-length sequences and tags of enum values in BCS encoding.
|
|
194
|
+
*
|
|
195
|
+
* @throws {Error} Throws an error if the parsed value exceeds the maximum uint32 number.
|
|
196
|
+
* @returns {number} The deserialized uint32 value.
|
|
146
197
|
*/
|
|
147
198
|
deserializeUleb128AsU32(): Uint32;
|
|
148
199
|
/**
|
|
@@ -160,10 +211,10 @@ declare class Deserializer {
|
|
|
160
211
|
*/
|
|
161
212
|
deserialize<T>(cls: Deserializable<T>): T;
|
|
162
213
|
/**
|
|
163
|
-
* Deserializes an array of BCS Deserializable values given an existing Deserializer
|
|
164
|
-
* instance with a loaded byte buffer.
|
|
214
|
+
* Deserializes an array of BCS Deserializable values given an existing Deserializer instance with a loaded byte buffer.
|
|
165
215
|
*
|
|
166
216
|
* @param cls The BCS-deserializable class to deserialize the buffered bytes into.
|
|
217
|
+
* @returns An array of deserialized values of type T.
|
|
167
218
|
* @example
|
|
168
219
|
* // serialize a vector of addresses
|
|
169
220
|
* const addresses = new Array<AccountAddress>(
|
|
@@ -180,7 +231,6 @@ declare class Deserializer {
|
|
|
180
231
|
* const deserializer = new Deserializer(serializedBytes);
|
|
181
232
|
* const deserializedAddresses = deserializer.deserializeVector(AccountAddress);
|
|
182
233
|
* // deserializedAddresses is now an array of AccountAddress instances
|
|
183
|
-
* @returns an array of deserialized values of type T
|
|
184
234
|
*/
|
|
185
235
|
deserializeVector<T>(cls: Deserializable<T>): Array<T>;
|
|
186
236
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-N47FTRYO.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 p,b as q,c as r,d as s}from"../chunk-IECDO22V.mjs";import{a as h}from"../chunk-OZN3OOJV.mjs";import{a as g}from"../chunk-JGNMNCQB.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-6FLHGOKP.mjs";import{a}from"../chunk-N47FTRYO.mjs";import"../chunk-7XS45O6M.mjs";import"../chunk-4WPQQPUF.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-QQIVWB6G.mjs";import"../chunk-KFNDDPOW.mjs";import"../chunk-6Q2O5G3J.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{i as Bool,a as Deserializer,h as EntryFunctionBytes,g as FixedBytes,s as MoveOption,r as MoveString,p as MoveVector,b as Serializable,q as Serialized,c as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,d as ensureBoolean,e as outOfRangeErrorMessage,f as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -14,8 +14,7 @@ import '../../types/generated/types.mjs';
|
|
|
14
14
|
* This class exists solely to represent a sequence of fixed bytes as a serialized entry function, because
|
|
15
15
|
* serializing an entry function appends a prefix that's *only* used for entry function arguments.
|
|
16
16
|
*
|
|
17
|
-
* NOTE:
|
|
18
|
-
* and unexpected behavior.
|
|
17
|
+
* NOTE: Using this class for serialized script functions will lead to erroneous and unexpected behavior.
|
|
19
18
|
*
|
|
20
19
|
* If you wish to convert this class back to a TransactionArgument, you must know the type
|
|
21
20
|
* of the argument beforehand, and use the appropriate class to deserialize the bytes within
|
|
@@ -23,16 +22,36 @@ import '../../types/generated/types.mjs';
|
|
|
23
22
|
*/
|
|
24
23
|
declare class EntryFunctionBytes extends Serializable implements EntryFunctionArgument {
|
|
25
24
|
readonly value: FixedBytes;
|
|
25
|
+
/**
|
|
26
|
+
* Creates an instance of the class with a specified hexadecimal input value.
|
|
27
|
+
*
|
|
28
|
+
* @param value - The hexadecimal input to be converted into FixedBytes.
|
|
29
|
+
*/
|
|
26
30
|
private constructor();
|
|
31
|
+
/**
|
|
32
|
+
* Serializes the value using the provided serializer.
|
|
33
|
+
* This function is essential for accurately representing a sequence of bytes that are already BCS-serialized as a type.
|
|
34
|
+
*
|
|
35
|
+
* Note that to see the Move, BCS-serialized representation of the underlying fixed byte vector,
|
|
36
|
+
* we must not serialize the length prefix.
|
|
37
|
+
*
|
|
38
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
39
|
+
*/
|
|
27
40
|
serialize(serializer: Serializer): void;
|
|
41
|
+
/**
|
|
42
|
+
* Serializes the current instance for use as an entry function argument by converting the underlying fixed byte vector to a
|
|
43
|
+
* type-agnostic byte vector.
|
|
44
|
+
* This process includes serializing the length prefix of the byte vector.
|
|
45
|
+
*
|
|
46
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
47
|
+
*/
|
|
28
48
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
29
49
|
/**
|
|
30
50
|
* The only way to create an instance of this class is to use this static method.
|
|
31
|
-
*
|
|
32
51
|
* This function should only be used when deserializing a sequence of EntryFunctionPayload arguments.
|
|
33
|
-
* @param deserializer
|
|
34
|
-
* @param length
|
|
35
|
-
* @returns
|
|
52
|
+
* @param deserializer - The deserializer instance with the buffered bytes.
|
|
53
|
+
* @param length - The length of the bytes to deserialize.
|
|
54
|
+
* @returns An instance of this class, which will now only be usable as an EntryFunctionArgument.
|
|
36
55
|
*/
|
|
37
56
|
static deserialize(deserializer: Deserializer, length: number): EntryFunctionBytes;
|
|
38
57
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-OZN3OOJV.mjs";import"../../chunk-JGNMNCQB.mjs";import"../../chunk-QQIVWB6G.mjs";import"../../chunk-KFNDDPOW.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EntryFunctionBytes};
|
|
2
2
|
//# sourceMappingURL=entryFunctionBytes.mjs.map
|
|
@@ -10,42 +10,72 @@ import '../../types/generated/operations.mjs';
|
|
|
10
10
|
import '../../types/generated/types.mjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Represents a contiguous sequence of already serialized BCS bytes.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* This class differs from most other Serializable classes in that its internal byte buffer is serialized to BCS
|
|
16
|
+
* bytes exactly as-is, without prepending the length of the bytes. It is ideal for scenarios where custom serialization
|
|
17
|
+
* is required, such as passing serialized bytes as transaction arguments. Additionally, it serves as a representation
|
|
18
|
+
* of type-agnostic BCS bytes, akin to a vector<u8>.
|
|
17
19
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
+
* An example use case includes handling bytes resulting from entry function arguments that have been serialized
|
|
21
|
+
* for an entry function.
|
|
20
22
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* const fixedBytes = new FixedBytes(yourCustomSerializedBytes);
|
|
29
|
-
* const payload = await generateTransactionPayload({
|
|
30
|
-
* function: "0xbeefcafe::your_module::your_function_that_requires_custom_serialization",
|
|
31
|
-
* functionArguments: [yourCustomBytes],
|
|
32
|
-
* });
|
|
23
|
+
* @example
|
|
24
|
+
* const yourCustomSerializedBytes = new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]);
|
|
25
|
+
* const fixedBytes = new FixedBytes(yourCustomSerializedBytes);
|
|
26
|
+
* const payload = await generateTransactionPayload({
|
|
27
|
+
* function: "0xbeefcafe::your_module::your_function_that_requires_custom_serialization",
|
|
28
|
+
* functionArguments: [yourCustomBytes],
|
|
29
|
+
* });
|
|
33
30
|
*
|
|
31
|
+
* This class is particularly useful when you want to handle a fixed-size byte array without the overhead of
|
|
32
|
+
* length prepending, such as when dealing with 32-byte addresses stored as U8 in a MoveVector<U8>.
|
|
33
|
+
|
|
34
34
|
* For example, if you store each of the 32 bytes for an address as a U8 in a MoveVector<U8>, when you
|
|
35
35
|
* serialize that MoveVector<U8>, it will be serialized to 33 bytes. If you solely want to pass around
|
|
36
36
|
* the 32 bytes as a Serializable class that *does not* prepend the length to the BCS-serialized representation,
|
|
37
|
-
* use this class
|
|
38
|
-
*
|
|
39
|
-
* @
|
|
40
|
-
* @returns a Serializable FixedBytes instance, which when serialized, does not prepend the length of the bytes
|
|
37
|
+
* use this class.*
|
|
38
|
+
* @param value - HexInput representing a sequence of Uint8 bytes.
|
|
39
|
+
* @returns A Serializable FixedBytes instance, which when serialized, does not prepend the length of the bytes.
|
|
41
40
|
* @see EntryFunctionBytes
|
|
42
41
|
*/
|
|
43
42
|
declare class FixedBytes extends Serializable implements TransactionArgument {
|
|
44
43
|
value: Uint8Array;
|
|
44
|
+
/**
|
|
45
|
+
* Creates an instance of the class with a specified hexadecimal input.
|
|
46
|
+
* The value is converted from hexadecimal format to a Uint8Array.
|
|
47
|
+
*
|
|
48
|
+
* @param value - The hexadecimal input to be converted.
|
|
49
|
+
*/
|
|
45
50
|
constructor(value: HexInput);
|
|
51
|
+
/**
|
|
52
|
+
* Serializes the fixed bytes value using the provided serializer.
|
|
53
|
+
* This function is essential for converting the fixed bytes into a format suitable for storage or transmission.
|
|
54
|
+
*
|
|
55
|
+
* @param serializer - The serializer instance used for serialization.
|
|
56
|
+
*/
|
|
46
57
|
serialize(serializer: Serializer): void;
|
|
58
|
+
/**
|
|
59
|
+
* Serializes the current instance for an entry function using the provided serializer.
|
|
60
|
+
* This allows the instance to be converted into a format suitable for transmission or storage.
|
|
61
|
+
*
|
|
62
|
+
* @param serializer - The serializer used to perform the serialization.
|
|
63
|
+
*/
|
|
47
64
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
65
|
+
/**
|
|
66
|
+
* Serializes the current instance using the provided serializer.
|
|
67
|
+
* This function is essential for preparing data to be passed as arguments in script functions.
|
|
68
|
+
*
|
|
69
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
70
|
+
*/
|
|
48
71
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
72
|
+
/**
|
|
73
|
+
* Deserializes a fixed-length byte array from the provided deserializer.
|
|
74
|
+
* This function helps in reconstructing a FixedBytes object from the serialized data.
|
|
75
|
+
*
|
|
76
|
+
* @param deserializer - The deserializer instance used to read the byte data.
|
|
77
|
+
* @param length - The length of the byte array to be deserialized.
|
|
78
|
+
*/
|
|
49
79
|
static deserialize(deserializer: Deserializer, length: number): FixedBytes;
|
|
50
80
|
}
|
|
51
81
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-JGNMNCQB.mjs";import"../../chunk-QQIVWB6G.mjs";import"../../chunk-KFNDDPOW.mjs";import"../../chunk-6Q2O5G3J.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as FixedBytes};
|
|
2
2
|
//# sourceMappingURL=fixedBytes.mjs.map
|
|
@@ -9,14 +9,57 @@ import '../../types/generated/types.mjs';
|
|
|
9
9
|
import '../../core/hex.mjs';
|
|
10
10
|
import '../../core/common.mjs';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Represents a boolean value that can be serialized and deserialized.
|
|
14
|
+
* This class extends the Serializable class and provides methods to serialize
|
|
15
|
+
* the boolean value for different contexts, such as entry functions and script functions.
|
|
16
|
+
*
|
|
17
|
+
* @extends Serializable
|
|
18
|
+
*/
|
|
12
19
|
declare class Bool extends Serializable implements TransactionArgument {
|
|
13
20
|
readonly value: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new instance with a specified value.
|
|
23
|
+
* This ensures that the value is validated to be within the acceptable range.
|
|
24
|
+
*
|
|
25
|
+
* @param value - The number to be validated and assigned, which must be between 0 and MAX_U256_BIG_INT.
|
|
26
|
+
*/
|
|
14
27
|
constructor(value: boolean);
|
|
28
|
+
/**
|
|
29
|
+
* Serializes the value using the provided serializer.
|
|
30
|
+
* This function is essential for converting the value into a format suitable for transmission or storage.
|
|
31
|
+
*
|
|
32
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
33
|
+
*/
|
|
15
34
|
serialize(serializer: Serializer): void;
|
|
35
|
+
/**
|
|
36
|
+
* Serializes the current instance for use in an entry function by converting it to a byte sequence.
|
|
37
|
+
* This allows the instance to be properly formatted for serialization in transactions.
|
|
38
|
+
*
|
|
39
|
+
* @param serializer - The serializer instance used to serialize the byte sequence.
|
|
40
|
+
*/
|
|
16
41
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
42
|
+
/**
|
|
43
|
+
* Serializes the current instance for use in a script function.
|
|
44
|
+
* This allows for the conversion of the instance into a format suitable for transmission or storage.
|
|
45
|
+
*
|
|
46
|
+
* @param serializer - The serializer used to perform the serialization.
|
|
47
|
+
*/
|
|
17
48
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
49
|
+
/**
|
|
50
|
+
* Deserializes a U256 value from the provided deserializer.
|
|
51
|
+
*
|
|
52
|
+
* @param deserializer - The deserializer instance used to read the U256 data.
|
|
53
|
+
*/
|
|
54
|
+
deserialize(deserializer: Deserializer): U256;
|
|
18
55
|
static deserialize(deserializer: Deserializer): Bool;
|
|
19
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Represents an unsigned 8-bit integer (U8) value.
|
|
59
|
+
* This class extends the Serializable class and provides methods for serialization and deserialization of U8 values.
|
|
60
|
+
*
|
|
61
|
+
* @extends Serializable
|
|
62
|
+
*/
|
|
20
63
|
declare class U8 extends Serializable implements TransactionArgument {
|
|
21
64
|
readonly value: Uint8;
|
|
22
65
|
constructor(value: Uint8);
|
|
@@ -25,6 +68,13 @@ declare class U8 extends Serializable implements TransactionArgument {
|
|
|
25
68
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
26
69
|
static deserialize(deserializer: Deserializer): U8;
|
|
27
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Represents a 16-bit unsigned integer (U16) value.
|
|
73
|
+
* This class extends the Serializable class and provides methods for serialization
|
|
74
|
+
* and deserialization of the U16 value.
|
|
75
|
+
*
|
|
76
|
+
* @extends Serializable
|
|
77
|
+
*/
|
|
28
78
|
declare class U16 extends Serializable implements TransactionArgument {
|
|
29
79
|
readonly value: Uint16;
|
|
30
80
|
constructor(value: Uint16);
|
|
@@ -33,6 +83,12 @@ declare class U16 extends Serializable implements TransactionArgument {
|
|
|
33
83
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
34
84
|
static deserialize(deserializer: Deserializer): U16;
|
|
35
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Represents a 32-bit unsigned integer (U32) that can be serialized and deserialized.
|
|
88
|
+
* This class ensures that the value is within the valid range for a U32.
|
|
89
|
+
*
|
|
90
|
+
* @extends Serializable
|
|
91
|
+
*/
|
|
36
92
|
declare class U32 extends Serializable implements TransactionArgument {
|
|
37
93
|
readonly value: Uint32;
|
|
38
94
|
constructor(value: Uint32);
|
|
@@ -41,6 +97,15 @@ declare class U32 extends Serializable implements TransactionArgument {
|
|
|
41
97
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
42
98
|
static deserialize(deserializer: Deserializer): U32;
|
|
43
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Represents a 64-bit unsigned integer (U64) and provides methods for serialization.
|
|
102
|
+
*
|
|
103
|
+
* This class ensures that the value is within the valid range for a U64 and provides
|
|
104
|
+
* functionality to serialize the value for various use cases, including entry functions
|
|
105
|
+
* and script functions.
|
|
106
|
+
*
|
|
107
|
+
* @extends Serializable
|
|
108
|
+
*/
|
|
44
109
|
declare class U64 extends Serializable implements TransactionArgument {
|
|
45
110
|
readonly value: bigint;
|
|
46
111
|
constructor(value: AnyNumber);
|
|
@@ -49,6 +114,13 @@ declare class U64 extends Serializable implements TransactionArgument {
|
|
|
49
114
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
50
115
|
static deserialize(deserializer: Deserializer): U64;
|
|
51
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Represents a 128-bit unsigned integer value.
|
|
119
|
+
* This class provides methods for serialization and deserialization
|
|
120
|
+
* of U128 values, ensuring that the values are within the valid range.
|
|
121
|
+
*
|
|
122
|
+
* @extends Serializable
|
|
123
|
+
*/
|
|
52
124
|
declare class U128 extends Serializable implements TransactionArgument {
|
|
53
125
|
readonly value: bigint;
|
|
54
126
|
constructor(value: AnyNumber);
|
|
@@ -57,6 +129,13 @@ declare class U128 extends Serializable implements TransactionArgument {
|
|
|
57
129
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
58
130
|
static deserialize(deserializer: Deserializer): U128;
|
|
59
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Represents a 256-bit unsigned integer (U256) that extends the Serializable class.
|
|
134
|
+
* This class provides methods for serialization and deserialization of U256 values,
|
|
135
|
+
* ensuring that the values are within the valid range.
|
|
136
|
+
*
|
|
137
|
+
* @extends Serializable
|
|
138
|
+
*/
|
|
60
139
|
declare class U256 extends Serializable implements TransactionArgument {
|
|
61
140
|
readonly value: bigint;
|
|
62
141
|
constructor(value: AnyNumber);
|
|
@@ -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-6FLHGOKP.mjs";import"../../chunk-7XS45O6M.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-QQIVWB6G.mjs";import"../../chunk-KFNDDPOW.mjs";import"../../chunk-6Q2O5G3J.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
|