@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
|
@@ -50,85 +50,148 @@ import '../../core/common.mjs';
|
|
|
50
50
|
*/
|
|
51
51
|
declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends Serializable implements TransactionArgument {
|
|
52
52
|
values: Array<T>;
|
|
53
|
+
/**
|
|
54
|
+
* Initializes a new instance of the class with an optional value.
|
|
55
|
+
* This constructor sets up the internal vector based on the provided value.
|
|
56
|
+
*
|
|
57
|
+
* @param values - The initial value to be stored in the vector, or null to initialize an empty vector.
|
|
58
|
+
*/
|
|
53
59
|
constructor(values: Array<T>);
|
|
60
|
+
/**
|
|
61
|
+
* Serializes the current instance into a byte sequence suitable for entry functions.
|
|
62
|
+
* This allows the data to be properly formatted for transmission or storage.
|
|
63
|
+
*
|
|
64
|
+
* @param serializer - The serializer instance used to serialize the byte sequence.
|
|
65
|
+
*/
|
|
54
66
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
55
67
|
/**
|
|
56
68
|
* NOTE: This function will only work when the inner values in the `MoveVector` are `U8`s.
|
|
57
69
|
* @param serializer
|
|
58
70
|
*/
|
|
71
|
+
/**
|
|
72
|
+
* Serialize the string as a fixed byte string without the length prefix for use in a script function.
|
|
73
|
+
* @param serializer - The serializer used to convert the byte vector into a format suitable for a script function.
|
|
74
|
+
*/
|
|
59
75
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
60
76
|
/**
|
|
61
|
-
* Factory method to generate a MoveVector
|
|
77
|
+
* Factory method to generate a MoveVector<U8> from a `number` or `undefined`.
|
|
78
|
+
*
|
|
79
|
+
* This method allows you to create a MoveVector that encapsulates a U8 value, enabling you to handle optional U8 values
|
|
80
|
+
* effectively.
|
|
81
|
+
*
|
|
82
|
+
* @param values - The values used to fill the MoveVector. If `values` is undefined or null, the resulting MoveVector's
|
|
83
|
+
* `.isSome()` method will return false.
|
|
84
|
+
* @returns A MoveVector<U8> with an inner value `value`.
|
|
62
85
|
*
|
|
63
86
|
* @example
|
|
87
|
+
* ```typescript
|
|
64
88
|
* const v = MoveVector.U8([1, 2, 3, 4]);
|
|
65
|
-
*
|
|
66
|
-
* @returns a `MoveVector<U8>`
|
|
89
|
+
* ```
|
|
67
90
|
*/
|
|
68
91
|
static U8(values: Array<number> | HexInput): MoveVector<U8>;
|
|
69
92
|
/**
|
|
70
|
-
* Factory method to generate a
|
|
93
|
+
* Factory method to generate a MoveOption<U16> from a `number` or `null`.
|
|
94
|
+
*
|
|
95
|
+
* This method allows you to create a MoveVector that can either hold a U16 value or be empty.
|
|
71
96
|
*
|
|
97
|
+
* @param values - The value used to fill the MoveVector. If `value` is null or undefined, the resulting MoveVector's
|
|
98
|
+
* `.isSome()` method will return false.
|
|
99
|
+
* @returns A MoveVector<U16> with an inner value `value`.
|
|
72
100
|
* @example
|
|
101
|
+
* ```typescript
|
|
73
102
|
* const v = MoveVector.U16([1, 2, 3, 4]);
|
|
74
|
-
*
|
|
75
|
-
|
|
103
|
+
* ```
|
|
104
|
+
|
|
76
105
|
*/
|
|
77
106
|
static U16(values: Array<number>): MoveVector<U16>;
|
|
78
107
|
/**
|
|
79
|
-
* Factory method to generate a MoveVector
|
|
108
|
+
* Factory method to generate a MoveVector<U32> from a `number` or `null`.
|
|
109
|
+
*
|
|
110
|
+
* This method allows you to create a MoveVector that can either hold a U32 value or be empty.
|
|
111
|
+
*
|
|
112
|
+
* @param values - The value used to fill the MoveVector. If `value` is null or undefined,
|
|
113
|
+
* the resulting MoveVector's .isSome() method will return false.
|
|
114
|
+
* @returns A MoveVector<U32> with an inner value `value`.
|
|
80
115
|
*
|
|
81
116
|
* @example
|
|
117
|
+
* ```
|
|
82
118
|
* const v = MoveVector.U32([1, 2, 3, 4]);
|
|
83
|
-
*
|
|
84
|
-
|
|
119
|
+
* ```
|
|
120
|
+
|
|
85
121
|
*/
|
|
86
122
|
static U32(values: Array<number>): MoveVector<U32>;
|
|
87
123
|
/**
|
|
88
|
-
* Factory method to generate a MoveVector
|
|
124
|
+
* Factory method to generate a MoveVector<U64> from a number, bigint, or null/undefined.
|
|
125
|
+
* This allows for the creation of an optional U64 value that can be checked for presence.
|
|
126
|
+
*
|
|
127
|
+
* @param values - The value used to fill the MoveVector. If `value` is undefined or null, the resulting MoveVector's
|
|
128
|
+
* `.isSome()` method will return false.
|
|
129
|
+
* @returns A MoveVector<U64> with an inner value `value`.
|
|
89
130
|
*
|
|
90
131
|
* @example
|
|
132
|
+
* ```typescript
|
|
91
133
|
* const v = MoveVector.U64([1, 2, 3, 4]);
|
|
92
|
-
*
|
|
93
|
-
* @returns a `MoveVector<U64>`
|
|
134
|
+
* ```
|
|
94
135
|
*/
|
|
95
136
|
static U64(values: Array<AnyNumber>): MoveVector<U64>;
|
|
96
137
|
/**
|
|
97
|
-
* Factory method to generate a MoveVector
|
|
138
|
+
* Factory method to generate a MoveVector<U128> from a number, bigint, or undefined.
|
|
139
|
+
*
|
|
140
|
+
* @param values - The value used to fill the MoveVector. If `value` is undefined, the resulting MoveVector's `.isSome()`
|
|
141
|
+
* method will return false.
|
|
142
|
+
* @returns A MoveVector<U128> with an inner value `value`.
|
|
98
143
|
*
|
|
99
144
|
* @example
|
|
145
|
+
* ```typescript
|
|
100
146
|
* const v = MoveVector.U128([1, 2, 3, 4]);
|
|
101
|
-
*
|
|
102
|
-
* @returns a `MoveVector<U128>`
|
|
147
|
+
* ```
|
|
103
148
|
*/
|
|
104
149
|
static U128(values: Array<AnyNumber>): MoveVector<U128>;
|
|
105
150
|
/**
|
|
106
|
-
* Factory method to generate a MoveVector
|
|
151
|
+
* Factory method to generate a MoveVector<U256> from a number, bigint, or null/undefined.
|
|
152
|
+
* This allows for the creation of an optional U256 value, enabling checks for presence or absence of a value.
|
|
153
|
+
*
|
|
154
|
+
* @param values - The value used to fill the MoveVector. If `value` is undefined or null,
|
|
155
|
+
* the resulting MoveVector's .isSome() method will return false.
|
|
156
|
+
* @returns A MoveVector<U256> with an inner value `value`.
|
|
107
157
|
*
|
|
108
158
|
* @example
|
|
159
|
+
* ```typescript
|
|
109
160
|
* const v = MoveVector.U256([1, 2, 3, 4]);
|
|
110
|
-
*
|
|
111
|
-
* @returns a `MoveVector<U256>`
|
|
161
|
+
* ```
|
|
112
162
|
*/
|
|
113
163
|
static U256(values: Array<AnyNumber>): MoveVector<U256>;
|
|
114
164
|
/**
|
|
115
|
-
* Factory method to generate a MoveVector
|
|
165
|
+
* Factory method to generate a MoveVector<Bool> from a `boolean` or `undefined`.
|
|
166
|
+
* This method allows you to create an optional boolean value that can be used in various contexts where a boolean may or may
|
|
167
|
+
* not be present.
|
|
168
|
+
*
|
|
169
|
+
* @param values - The value used to fill the MoveVector. If `value` is undefined, the resulting MoveVector's .isSome() method
|
|
170
|
+
* will return false.
|
|
171
|
+
* @returns A MoveVector<Bool> with an inner value `value`.
|
|
116
172
|
*
|
|
117
173
|
* @example
|
|
118
|
-
* const v = MoveVector.Bool([true, false, true, false]);
|
|
119
|
-
* @params values: an array of `bools` to convert to Bools
|
|
120
|
-
* @returns a `MoveVector<Bool>`
|
|
174
|
+
* * const v = MoveVector.Bool([true, false, true, false]);
|
|
121
175
|
*/
|
|
122
176
|
static Bool(values: Array<boolean>): MoveVector<Bool>;
|
|
123
177
|
/**
|
|
124
|
-
* Factory method to generate a MoveVector
|
|
178
|
+
* Factory method to generate a MoveVector<MoveString> from a `string` or `undefined`.
|
|
179
|
+
* This function creates a MoveVector that encapsulates a MoveString if the provided value is not null or undefined.
|
|
180
|
+
*
|
|
181
|
+
* @param values - The value used to fill the MoveVector. If `value` is undefined, the resulting MoveVector's .isSome() method
|
|
182
|
+
* will return false.
|
|
183
|
+
* @returns A MoveVector<MoveString> with an inner value `value`.
|
|
125
184
|
*
|
|
126
185
|
* @example
|
|
127
186
|
* const v = MoveVector.MoveString(["hello", "world"]);
|
|
128
|
-
* @params values: an array of `strings` to convert to MoveStrings
|
|
129
|
-
* @returns a `MoveVector<MoveString>`
|
|
130
187
|
*/
|
|
131
188
|
static MoveString(values: Array<string>): MoveVector<MoveString>;
|
|
189
|
+
/**
|
|
190
|
+
* Serializes the current object using the provided serializer.
|
|
191
|
+
* This function will serialize the value if it is present.
|
|
192
|
+
*
|
|
193
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
194
|
+
*/
|
|
132
195
|
serialize(serializer: Serializer): void;
|
|
133
196
|
/**
|
|
134
197
|
* Deserialize a MoveVector of type T, specifically where T is a Serializable and Deserializable type.
|
|
@@ -142,13 +205,20 @@ declare class MoveVector<T extends Serializable & EntryFunctionArgument> extends
|
|
|
142
205
|
*
|
|
143
206
|
* @example
|
|
144
207
|
* const vec = MoveVector.deserialize(deserializer, U64);
|
|
145
|
-
* @
|
|
146
|
-
* cls
|
|
208
|
+
* @param deserializer the Deserializer instance to use, with bytes loaded into it already.
|
|
209
|
+
* @param cls the class to typecast the input values to, must be a Serializable and Deserializable type.
|
|
147
210
|
* @returns a MoveVector of the corresponding class T
|
|
148
|
-
*
|
|
211
|
+
*
|
|
149
212
|
*/
|
|
150
213
|
static deserialize<T extends Serializable & EntryFunctionArgument>(deserializer: Deserializer, cls: Deserializable<T>): MoveVector<T>;
|
|
151
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Represents a serialized data structure that encapsulates a byte array.
|
|
217
|
+
* This class extends the Serializable class and provides methods for serialization
|
|
218
|
+
* and deserialization of byte data, as well as converting to a MoveVector.
|
|
219
|
+
*
|
|
220
|
+
* @extends Serializable
|
|
221
|
+
*/
|
|
152
222
|
declare class Serialized extends Serializable implements TransactionArgument {
|
|
153
223
|
readonly value: Uint8Array;
|
|
154
224
|
constructor(value: HexInput);
|
|
@@ -156,8 +226,22 @@ declare class Serialized extends Serializable implements TransactionArgument {
|
|
|
156
226
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
157
227
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
158
228
|
static deserialize(deserializer: Deserializer): Serialized;
|
|
229
|
+
/**
|
|
230
|
+
* Deserialize the bytecode into a MoveVector of the specified type.
|
|
231
|
+
* This function allows you to convert serialized data into a usable MoveVector format.
|
|
232
|
+
*
|
|
233
|
+
* @param cls - The class type of the elements in the MoveVector.
|
|
234
|
+
*/
|
|
159
235
|
toMoveVector<T extends Serializable & EntryFunctionArgument>(cls: Deserializable<T>): MoveVector<T>;
|
|
160
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* Represents a string value that can be serialized and deserialized.
|
|
239
|
+
* This class extends the Serializable base class and provides methods
|
|
240
|
+
* for serializing the string in different contexts, such as for entry
|
|
241
|
+
* functions and script functions.
|
|
242
|
+
*
|
|
243
|
+
* @extends Serializable
|
|
244
|
+
*/
|
|
161
245
|
declare class MoveString extends Serializable implements TransactionArgument {
|
|
162
246
|
value: string;
|
|
163
247
|
constructor(value: string);
|
|
@@ -174,10 +258,8 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
174
258
|
/**
|
|
175
259
|
* Retrieves the inner value of the MoveOption.
|
|
176
260
|
*
|
|
177
|
-
* This method is inspired by Rust's `Option<T>.unwrap()
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* Similarly, this method will throw an error if the value is not present.
|
|
261
|
+
* This method is inspired by Rust's `Option<T>.unwrap()`, where attempting to unwrap a `None` value results in a panic.
|
|
262
|
+
* This method will throw an error if the value is not present.
|
|
181
263
|
*
|
|
182
264
|
* @example
|
|
183
265
|
* const option = new MoveOption<Bool>(new Bool(true));
|
|
@@ -188,6 +270,11 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
188
270
|
* @returns {T} The contained value if present.
|
|
189
271
|
*/
|
|
190
272
|
unwrap(): T;
|
|
273
|
+
/**
|
|
274
|
+
* Check if the MoveOption has a value.
|
|
275
|
+
*
|
|
276
|
+
* @returns {boolean} Returns true if there is exactly one value in the MoveOption.
|
|
277
|
+
*/
|
|
191
278
|
isSome(): boolean;
|
|
192
279
|
serialize(serializer: Serializer): void;
|
|
193
280
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunk-
|
|
1
|
+
import{a,b,c,d}from"../../chunk-IECDO22V.mjs";import"../../chunk-6FLHGOKP.mjs";import"../../chunk-N47FTRYO.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{d as MoveOption,c as MoveString,a as MoveVector,b as Serialized};
|
|
2
2
|
//# sourceMappingURL=moveStructs.mjs.map
|
|
@@ -6,38 +6,86 @@ import '../types/indexer.mjs';
|
|
|
6
6
|
import '../types/generated/operations.mjs';
|
|
7
7
|
import '../types/generated/types.mjs';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* This class serves as a base class for all serializable types. It facilitates
|
|
11
|
+
* composable serialization of complex types and enables the serialization of
|
|
12
|
+
* instances to their BCS (Binary Canonical Serialization) representation.
|
|
13
|
+
*/
|
|
9
14
|
declare abstract class Serializable {
|
|
10
15
|
abstract serialize(serializer: Serializer): void;
|
|
11
16
|
/**
|
|
12
17
|
* Serializes a `Serializable` value to its BCS representation.
|
|
13
|
-
* This function is the
|
|
14
|
-
* @returns the BCS representation of the Serializable instance as a byte buffer
|
|
18
|
+
* This function is the TypeScript SDK equivalent of `bcs::to_bytes` in Move.
|
|
19
|
+
* @returns the BCS representation of the Serializable instance as a byte buffer.
|
|
15
20
|
*/
|
|
16
21
|
bcsToBytes(): Uint8Array;
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
23
|
+
* Converts the BCS-serialized bytes of a value into a Hex instance.
|
|
24
|
+
* This function provides a Hex representation of the BCS-serialized data for easier handling and manipulation.
|
|
25
|
+
* @returns A Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array.
|
|
20
26
|
*/
|
|
21
27
|
bcsToHex(): Hex;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the hex string representation of the `Serializable` value without the 0x prefix.
|
|
30
|
+
* @returns the hex format as a string without `0x` prefix.
|
|
31
|
+
*/
|
|
32
|
+
toStringWithoutPrefix(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the hex string representation of the `Serializable` value with the 0x prefix.
|
|
35
|
+
* @returns the hex formatas a string prefixed by `0x`.
|
|
36
|
+
*/
|
|
37
|
+
toString(): string;
|
|
22
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* A class for serializing various data types into a binary format.
|
|
41
|
+
* It provides methods to serialize strings, bytes, numbers, and other serializable objects
|
|
42
|
+
* using the Binary Coded Serialization (BCS) layout. The serialized data can be retrieved as a
|
|
43
|
+
* Uint8Array.
|
|
44
|
+
*/
|
|
23
45
|
declare class Serializer {
|
|
24
46
|
private buffer;
|
|
25
47
|
private offset;
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a serializer with a buffer of size `length` bytes, 64 bytes by default.
|
|
50
|
+
* The `length` must be greater than 0.
|
|
51
|
+
*
|
|
52
|
+
* @param length - The size of the buffer in bytes.
|
|
53
|
+
*/
|
|
26
54
|
constructor(length?: number);
|
|
55
|
+
/**
|
|
56
|
+
* Ensures that the internal buffer can accommodate the specified number of bytes.
|
|
57
|
+
* This function dynamically resizes the buffer if the current size is insufficient.
|
|
58
|
+
*
|
|
59
|
+
* @param bytes - The number of bytes to ensure the buffer can handle.
|
|
60
|
+
*/
|
|
27
61
|
private ensureBufferWillHandleSize;
|
|
62
|
+
/**
|
|
63
|
+
* Appends the specified values to the buffer, ensuring that the buffer can accommodate the new data.
|
|
64
|
+
*
|
|
65
|
+
* @param {Uint8Array} values - The values to be appended to the buffer.
|
|
66
|
+
*/
|
|
28
67
|
protected appendToBuffer(values: Uint8Array): void;
|
|
68
|
+
/**
|
|
69
|
+
* Serializes a value into the buffer using the provided function, ensuring the buffer can accommodate the size.
|
|
70
|
+
*
|
|
71
|
+
* @param fn - The function to serialize the value, which takes a byte offset, the value to serialize, and an optional little-endian flag.
|
|
72
|
+
* @param fn.byteOffset - The byte offset at which to write the value.
|
|
73
|
+
* @param fn.value - The numeric value to serialize into the buffer.
|
|
74
|
+
* @param fn.littleEndian - Optional flag indicating whether to use little-endian byte order (defaults to true).
|
|
75
|
+
*/
|
|
29
76
|
private serializeWithFunction;
|
|
30
77
|
/**
|
|
31
78
|
* Serializes a string. UTF8 string is supported.
|
|
32
|
-
*
|
|
33
79
|
* The number of bytes in the string content is serialized first, as a uleb128-encoded u32 integer.
|
|
34
80
|
* Then the string content is serialized as UTF8 encoded bytes.
|
|
35
81
|
*
|
|
36
82
|
* BCS layout for "string": string_length | string_content
|
|
37
83
|
* where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
|
|
38
84
|
*
|
|
85
|
+
* @param value - The string to serialize.
|
|
86
|
+
*
|
|
39
87
|
* @example
|
|
40
|
-
* ```
|
|
88
|
+
* ```typescript
|
|
41
89
|
* const serializer = new Serializer();
|
|
42
90
|
* serializer.serializeStr("1234abcd");
|
|
43
91
|
* assert(serializer.toUint8Array() === new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
@@ -47,35 +95,47 @@ declare class Serializer {
|
|
|
47
95
|
/**
|
|
48
96
|
* Serializes an array of bytes.
|
|
49
97
|
*
|
|
98
|
+
* This function encodes the length of the byte array as a u32 integer in uleb128 format, followed by the byte array itself.
|
|
50
99
|
* BCS layout for "bytes": bytes_length | bytes
|
|
51
100
|
* where bytes_length is a u32 integer encoded as a uleb128 integer, equal to the length of the bytes array.
|
|
101
|
+
* @param value - The byte array to serialize.
|
|
52
102
|
*/
|
|
53
103
|
serializeBytes(value: Uint8Array): void;
|
|
54
104
|
/**
|
|
55
|
-
* Serializes an array of bytes with known length
|
|
56
|
-
*
|
|
57
|
-
*
|
|
105
|
+
* Serializes an array of bytes with a known length, allowing for efficient deserialization without needing to serialize the
|
|
106
|
+
* length itself.
|
|
58
107
|
* When deserializing, the number of bytes to deserialize needs to be passed in.
|
|
108
|
+
|
|
109
|
+
* @param value - The Uint8Array to be serialized.
|
|
59
110
|
*/
|
|
60
111
|
serializeFixedBytes(value: Uint8Array): void;
|
|
61
112
|
/**
|
|
62
|
-
* Serializes a boolean value.
|
|
113
|
+
* Serializes a boolean value into a byte representation.
|
|
114
|
+
*
|
|
115
|
+
* The BCS layout for a boolean uses one byte, where "0x01" represents true and "0x00" represents false.
|
|
63
116
|
*
|
|
64
|
-
*
|
|
117
|
+
* @param value - The boolean value to serialize.
|
|
65
118
|
*/
|
|
66
119
|
serializeBool(value: boolean): void;
|
|
67
120
|
/**
|
|
68
|
-
* Serializes a
|
|
69
|
-
*
|
|
121
|
+
* Serializes a Uint8 value and appends it to the buffer.
|
|
70
122
|
* BCS layout for "uint8": One byte. Binary format in little-endian representation.
|
|
123
|
+
*
|
|
124
|
+
* @param value - The Uint8 value to serialize.
|
|
71
125
|
*/
|
|
72
126
|
serializeU8(value: Uint8): void;
|
|
73
127
|
/**
|
|
74
128
|
* Serializes a uint16 number.
|
|
75
129
|
*
|
|
130
|
+
|
|
131
|
+
*/
|
|
132
|
+
/**
|
|
133
|
+
* Serializes a 16-bit unsigned integer value into a binary format.
|
|
76
134
|
* BCS layout for "uint16": Two bytes. Binary format in little-endian representation.
|
|
135
|
+
*
|
|
136
|
+
* @param value - The 16-bit unsigned integer value to serialize.
|
|
77
137
|
* @example
|
|
78
|
-
* ```
|
|
138
|
+
* ```typescript
|
|
79
139
|
* const serializer = new Serializer();
|
|
80
140
|
* serializer.serializeU16(4660);
|
|
81
141
|
* assert(serializer.toUint8Array() === new Uint8Array([0x34, 0x12]));
|
|
@@ -83,21 +143,22 @@ declare class Serializer {
|
|
|
83
143
|
*/
|
|
84
144
|
serializeU16(value: Uint16): void;
|
|
85
145
|
/**
|
|
86
|
-
* Serializes a
|
|
87
|
-
*
|
|
88
|
-
* BCS layout for "uint32": Four bytes. Binary format in little-endian representation.
|
|
146
|
+
* Serializes a 32-bit unsigned integer value into a binary format.
|
|
147
|
+
* This function is useful for encoding data that needs to be stored or transmitted in a compact form.
|
|
89
148
|
* @example
|
|
90
|
-
* ```
|
|
149
|
+
* ```typescript
|
|
91
150
|
* const serializer = new Serializer();
|
|
92
151
|
* serializer.serializeU32(305419896);
|
|
93
152
|
* assert(serializer.toUint8Array() === new Uint8Array([0x78, 0x56, 0x34, 0x12]));
|
|
94
153
|
* ```
|
|
154
|
+
* @param value - The 32-bit unsigned integer value to serialize.
|
|
95
155
|
*/
|
|
96
156
|
serializeU32(value: Uint32): void;
|
|
97
157
|
/**
|
|
98
|
-
* Serializes a
|
|
158
|
+
* Serializes a 64-bit unsigned integer into a format suitable for storage or transmission.
|
|
159
|
+
* This function breaks down the value into two 32-bit components and writes them in little-endian order.
|
|
99
160
|
*
|
|
100
|
-
*
|
|
161
|
+
* @param value - The 64-bit unsigned integer to serialize, represented as a number.
|
|
101
162
|
* @example
|
|
102
163
|
* ```ts
|
|
103
164
|
* const serializer = new Serializer();
|
|
@@ -107,66 +168,44 @@ declare class Serializer {
|
|
|
107
168
|
*/
|
|
108
169
|
serializeU64(value: AnyNumber): void;
|
|
109
170
|
/**
|
|
110
|
-
* Serializes a
|
|
171
|
+
* Serializes a U128 value into a format suitable for storage or transmission.
|
|
111
172
|
*
|
|
112
|
-
*
|
|
173
|
+
* @param value - The U128 value to serialize, represented as a number.
|
|
113
174
|
*/
|
|
114
175
|
serializeU128(value: AnyNumber): void;
|
|
115
176
|
/**
|
|
116
|
-
* Serializes a
|
|
177
|
+
* Serializes a U256 value into a byte representation.
|
|
178
|
+
* This function is essential for encoding large numbers in a compact format suitable for transmission or storage.
|
|
117
179
|
*
|
|
118
|
-
*
|
|
180
|
+
* @param value - The U256 value to serialize, represented as an AnyNumber.
|
|
119
181
|
*/
|
|
120
182
|
serializeU256(value: AnyNumber): void;
|
|
121
183
|
/**
|
|
122
|
-
* Serializes a
|
|
123
|
-
*
|
|
184
|
+
* Serializes a 32-bit unsigned integer as a variable-length ULEB128 encoded byte array.
|
|
124
185
|
* BCS uses uleb128 encoding in two cases: (1) lengths of variable-length sequences and (2) tags of enum values
|
|
186
|
+
*
|
|
187
|
+
* @param val - The 32-bit unsigned integer value to be serialized.
|
|
125
188
|
*/
|
|
126
189
|
serializeU32AsUleb128(val: Uint32): void;
|
|
127
190
|
/**
|
|
128
|
-
* Returns the buffered bytes
|
|
191
|
+
* Returns the buffered bytes as a Uint8Array.
|
|
192
|
+
*
|
|
193
|
+
* This function allows you to retrieve the byte representation of the buffer up to the current offset.
|
|
194
|
+
*
|
|
195
|
+
* @returns Uint8Array - The byte array representation of the buffer.
|
|
129
196
|
*/
|
|
130
197
|
toUint8Array(): Uint8Array;
|
|
131
198
|
/**
|
|
132
199
|
* Serializes a `Serializable` value, facilitating composable serialization.
|
|
133
200
|
*
|
|
134
|
-
* @param value The Serializable value to serialize
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* // Define the MoveStruct class that implements the Serializable interface
|
|
138
|
-
* class MoveStruct extends Serializable {
|
|
139
|
-
* constructor(
|
|
140
|
-
* public creatorAddress: AccountAddress, // where AccountAddress extends Serializable
|
|
141
|
-
* public collectionName: string,
|
|
142
|
-
* public tokenName: string
|
|
143
|
-
* ) {}
|
|
144
|
-
*
|
|
145
|
-
* serialize(serializer: Serializer): void {
|
|
146
|
-
* serializer.serialize(this.creatorAddress); // Composable serialization of another Serializable object
|
|
147
|
-
* serializer.serializeStr(this.collectionName);
|
|
148
|
-
* serializer.serializeStr(this.tokenName);
|
|
149
|
-
* }
|
|
150
|
-
* }
|
|
151
|
-
*
|
|
152
|
-
* // Construct a MoveStruct
|
|
153
|
-
* const moveStruct = new MoveStruct(new AccountAddress(...), "MyCollection", "TokenA");
|
|
154
|
-
*
|
|
155
|
-
* // Serialize a string, a u64 number, and a MoveStruct instance.
|
|
156
|
-
* const serializer = new Serializer();
|
|
157
|
-
* serializer.serializeStr("ExampleString");
|
|
158
|
-
* serializer.serializeU64(12345678);
|
|
159
|
-
* serializer.serialize(moveStruct);
|
|
160
|
-
*
|
|
161
|
-
* // Get the bytes from the Serializer instance
|
|
162
|
-
* const serializedBytes = serializer.toUint8Array();
|
|
201
|
+
* @param value The Serializable value to serialize.
|
|
163
202
|
*
|
|
164
203
|
* @returns the serializer instance
|
|
165
204
|
*/
|
|
166
205
|
serialize<T extends Serializable>(value: T): void;
|
|
167
206
|
/**
|
|
168
207
|
* Serializes an array of BCS Serializable values to a serializer instance.
|
|
169
|
-
*
|
|
208
|
+
* The bytes are added to the serializer instance's byte buffer.
|
|
170
209
|
*
|
|
171
210
|
* @param values The array of BCS Serializable values
|
|
172
211
|
* @example
|
|
@@ -185,13 +224,13 @@ declare class Serializer {
|
|
|
185
224
|
*/
|
|
186
225
|
serializeVector<T extends Serializable>(values: Array<T>): void;
|
|
187
226
|
/**
|
|
188
|
-
* Serializes a BCS Serializable
|
|
189
|
-
*
|
|
227
|
+
* Serializes a BCS Serializable value into a serializer instance or handles the case when the value is undefined.
|
|
228
|
+
* This function allows you to efficiently add serialized data to the serializer's byte buffer.
|
|
190
229
|
*
|
|
191
|
-
* @param
|
|
230
|
+
* @param value The BCS Serializable value to serialize, or undefined if there is no value.
|
|
192
231
|
*
|
|
193
232
|
* @example
|
|
194
|
-
* ```
|
|
233
|
+
* ```typescript
|
|
195
234
|
* const serializer = new Serializer();
|
|
196
235
|
* serializer.serializeOption(new AccountAddress(...));
|
|
197
236
|
* const serializedBytes = serializer.toUint8Array();
|
|
@@ -204,31 +243,27 @@ declare class Serializer {
|
|
|
204
243
|
*/
|
|
205
244
|
serializeOption<T extends Serializable>(value?: T): void;
|
|
206
245
|
/**
|
|
207
|
-
* Serializes an optional string
|
|
208
|
-
*
|
|
209
|
-
* The existence of the string is encoded first, 0 if undefined and 1 if it exists.
|
|
210
|
-
* Them the number of bytes in the string content is serialized, as a uleb128-encoded u32 integer.
|
|
211
|
-
* Then the string content is serialized as UTF8 encoded bytes.
|
|
246
|
+
* Serializes an optional string, supporting UTF8 encoding.
|
|
247
|
+
* The function encodes the existence of the string first, followed by the length and content if it exists.
|
|
212
248
|
*
|
|
213
249
|
* BCS layout for optional "string": 1 | string_length | string_content
|
|
214
250
|
* where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
|
|
215
|
-
*
|
|
216
251
|
* BCS layout for undefined: 0
|
|
217
|
-
* @example
|
|
218
|
-
* ```ts
|
|
219
|
-
* const serializer = new Serializer();
|
|
220
|
-
* serializer.serializeOptionStr("1234abcd");
|
|
221
|
-
* assert(serializer.toUint8Array() === new Uint8Array([1, 8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
222
252
|
*
|
|
223
|
-
*
|
|
224
|
-
* serializer.serializeOptionStr(undefined);
|
|
225
|
-
* assert(serializer.toUint8Array() === new Uint8Array([0]));
|
|
226
|
-
* ```
|
|
253
|
+
* @param value - The optional string to serialize. If undefined, it will serialize as 0.
|
|
227
254
|
*/
|
|
228
255
|
serializeOptionStr(value?: string): void;
|
|
229
256
|
}
|
|
230
257
|
declare function ensureBoolean(value: unknown): asserts value is boolean;
|
|
231
258
|
declare const outOfRangeErrorMessage: (value: AnyNumber, min: AnyNumber, max: AnyNumber) => string;
|
|
259
|
+
/**
|
|
260
|
+
* Validates that a given number is within a specified range.
|
|
261
|
+
* This function throws an error if the value is outside the defined minimum and maximum bounds.
|
|
262
|
+
*
|
|
263
|
+
* @param value - The number to validate.
|
|
264
|
+
* @param minValue - The minimum allowable value (inclusive).
|
|
265
|
+
* @param maxValue - The maximum allowable value (inclusive).
|
|
266
|
+
*/
|
|
232
267
|
declare function validateNumberInRange<T extends AnyNumber>(value: T, minValue: T, maxValue: T): void;
|
|
233
268
|
|
|
234
269
|
export { Serializable, Serializer, ensureBoolean, outOfRangeErrorMessage, validateNumberInRange };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../chunk-QQIVWB6G.mjs";import"../chunk-KFNDDPOW.mjs";import"../chunk-6Q2O5G3J.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
1
|
var i=class{constructor(){this.queue=[];this.pendingDequeue=[];this.cancelled=!1}enqueue(e){if(this.cancelled=!1,this.pendingDequeue.length>0){this.pendingDequeue.shift()?.resolve(e);return}this.queue.push(e)}async dequeue(){return this.queue.length>0?Promise.resolve(this.queue.shift()):new Promise((e,u)=>{this.pendingDequeue.push({resolve:e,reject:u})})}isEmpty(){return this.queue.length===0}cancel(){this.cancelled=!0,this.pendingDequeue.forEach(async({reject:e})=>{e(new n("Task cancelled"))}),this.pendingDequeue=[],this.queue.length=0}isCancelled(){return this.cancelled}pendingDequeueLength(){return this.pendingDequeue.length}},n=class extends Error{};export{i as a,n as b};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-2CJC43CV.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/transactions/management/asyncQueue.ts"],"sourcesContent":["/**\n * The AsyncQueue class is an async-aware data structure that provides a queue-like\n * behavior for managing asynchronous tasks or operations.\n * It allows to enqueue items and dequeue them asynchronously.\n * This is not thread-safe, but it is async concurrency safe, and\n * it does not guarantee ordering for those that call into and await on enqueue.\n */\n\ninterface PendingDequeue<T> {\n resolve: (value: T) => void;\n reject: (reason?: AsyncQueueCancelledError) => void;\n}\n\nexport class AsyncQueue<T> {\n readonly queue: T[] = [];\n\n // The pendingDequeue is used to handle the resolution of promises when items are enqueued and dequeued.\n private pendingDequeue: PendingDequeue<T>[] = [];\n\n private cancelled: boolean = false;\n\n /**\n * Adds an item to the queue. If there are pending dequeued promises, it resolves the oldest promise with the enqueued item\n * immediately; otherwise, it adds the item to the queue.\n *\n * @param item - The item to be added to the queue.\n */\n enqueue(item: T): void {\n this.cancelled = false;\n\n if (this.pendingDequeue.length > 0) {\n const promise = this.pendingDequeue.shift();\n\n promise?.resolve(item);\n\n return;\n }\n\n this.queue.push(item);\n }\n\n /**\n * Dequeues the next item from the queue and returns a promise that resolves to it.\n * If the queue is empty, it creates a new promise that will be resolved when an item is enqueued.\n *\n * @returns Promise<T>\n */\n async dequeue(): Promise<T> {\n if (this.queue.length > 0) {\n return Promise.resolve(this.queue.shift()!);\n }\n\n return new Promise<T>((resolve, reject) => {\n this.pendingDequeue.push({ resolve, reject });\n });\n }\n\n /**\n * Determine whether the queue is empty.\n *\n * @returns boolean - Returns true if the queue has no elements, otherwise false.\n */\n isEmpty(): boolean {\n return this.queue.length === 0;\n }\n\n /**\n * Cancels all pending promises in the queue and rejects them with an AsyncQueueCancelledError.\n * This ensures that any awaiting code can handle the cancellation appropriately.\n *\n * @returns {void}\n */\n cancel(): void {\n this.cancelled = true;\n\n this.pendingDequeue.forEach(async ({ reject }) => {\n reject(new AsyncQueueCancelledError(\"Task cancelled\"));\n });\n\n this.pendingDequeue = [];\n\n this.queue.length = 0;\n }\n\n /**\n * Determine whether the queue has been cancelled.\n *\n * @returns boolean - Returns true if the queue is cancelled, otherwise false.\n */\n isCancelled(): boolean {\n return this.cancelled;\n }\n\n /**\n * Retrieve the length of the pending dequeue.\n *\n * @returns number - The number of items currently in the pending dequeue.\n */\n pendingDequeueLength(): number {\n return this.pendingDequeue.length;\n }\n}\n\n/**\n * Represents an error that occurs when an asynchronous queue operation is cancelled.\n * This error extends the built-in Error class to provide additional context for cancellation events.\n *\n * @extends Error\n */\nexport class AsyncQueueCancelledError extends Error {}\n"],"mappings":"AAaO,IAAMA,EAAN,KAAoB,CAApB,cACL,KAAS,MAAa,CAAC,EAGvB,KAAQ,eAAsC,CAAC,EAE/C,KAAQ,UAAqB,GAQ7B,QAAQC,EAAe,CAGrB,GAFA,KAAK,UAAY,GAEb,KAAK,eAAe,OAAS,EAAG,CAClB,KAAK,eAAe,MAAM,GAEjC,QAAQA,CAAI,EAErB,MACF,CAEA,KAAK,MAAM,KAAKA,CAAI,CACtB,CAQA,MAAM,SAAsB,CAC1B,OAAI,KAAK,MAAM,OAAS,EACf,QAAQ,QAAQ,KAAK,MAAM,MAAM,CAAE,EAGrC,IAAI,QAAW,CAACC,EAASC,IAAW,CACzC,KAAK,eAAe,KAAK,CAAE,QAAAD,EAAS,OAAAC,CAAO,CAAC,CAC9C,CAAC,CACH,CAOA,SAAmB,CACjB,OAAO,KAAK,MAAM,SAAW,CAC/B,CAQA,QAAe,CACb,KAAK,UAAY,GAEjB,KAAK,eAAe,QAAQ,MAAO,CAAE,OAAAA,CAAO,IAAM,CAChDA,EAAO,IAAIC,EAAyB,gBAAgB,CAAC,CACvD,CAAC,EAED,KAAK,eAAiB,CAAC,EAEvB,KAAK,MAAM,OAAS,CACtB,CAOA,aAAuB,CACrB,OAAO,KAAK,SACd,CAOA,sBAA+B,CAC7B,OAAO,KAAK,eAAe,MAC7B,CACF,EAQaA,EAAN,cAAuC,KAAM,CAAC","names":["AsyncQueue","item","resolve","reject","AsyncQueueCancelledError"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y,f as P,g as C,i as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as y,f as P,g as C,i as b}from"./chunk-HGVZ7ULA.mjs";import{a as I}from"./chunk-7D3RY73L.mjs";import{a as f}from"./chunk-ZS3EWM5A.mjs";import{a as w}from"./chunk-HCV3NGLS.mjs";import{a as A}from"./chunk-5ZBHIUWG.mjs";import{d as h}from"./chunk-VQTEGTUQ.mjs";import{a as l}from"./chunk-5AAFF2PV.mjs";import{c as T,m as c}from"./chunk-OTY3NO7Q.mjs";import{b as d}from"./chunk-WOOH5MMX.mjs";import{a as s}from"./chunk-IECDO22V.mjs";import{b as m}from"./chunk-6FLHGOKP.mjs";import{b as p}from"./chunk-KM6UXNC7.mjs";async function S(t){let e=await K(t);return U(t,e)}async function K(t){let{aptosConfig:e,data:n}=t,a,o;return"bytecode"in n?o=await y(n):"multisigAddress"in n?(a={aptosConfig:e,multisigAddress:n.multisigAddress,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await y(a)):(a={aptosConfig:e,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await y(a)),o}async function U(t,e){let{aptosConfig:n,sender:a,options:o}=t,i;if(_(t)&&(i=p.ZERO.toString()),B(t)){let{secondarySignerAddresses:r}=t;return P({aptosConfig:n,sender:a,payload:e,options:o,secondarySignerAddresses:r,feePayerAddress:i})}return P({aptosConfig:n,sender:a,payload:e,options:o,feePayerAddress:i})}function _(t){return t.withFeePayer===!0}function B(t){return"secondarySignerAddresses"in t}function Y(t){let{transaction:e}=t;return h(e)}function R(t){let{signer:e,transaction:n}=t;return e.signTransactionWithAuthenticator(n)}function x(t){let{signer:e,transaction:n}=t;if(!n.feePayerAddress)throw new Error(`Transaction ${n} is not a Fee Payer transaction`);return n.feePayerAddress=e.accountAddress,R({signer:e,transaction:n})}async function nn(t){let{aptosConfig:e,transaction:n,signerPublicKey:a,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:r}=t,u=C({transaction:n,signerPublicKey:a,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:r}),{data:g}=await d({aptosConfig:e,body:u,path:"transactions/simulate",params:{estimate_gas_unit_price:t.options?.estimateGasUnitPrice??!1,estimate_max_gas_amount:t.options?.estimateMaxGasAmount??!1,estimate_prioritized_gas_unit_price:t.options?.estimatePrioritizedGasUnitPrice??!1},originMethod:"simulateTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return g}async function F(t){let{aptosConfig:e}=t,n=b({...t}),{data:a}=await d({aptosConfig:e,body:n,path:"transactions",originMethod:"submitTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return a}async function M(t){let{aptosConfig:e,signer:n,feePayer:a,transaction:o}=t;(n instanceof A||n instanceof f)&&await n.waitForProofFetch(),(a instanceof A||a instanceof f)&&await a.waitForProofFetch();let i=t.feePayerAuthenticator||a&&x({signer:a,transaction:o}),r=R({signer:n,transaction:o});return F({aptosConfig:e,transaction:o,senderAuthenticator:r,feePayerAuthenticator:i})}async function tn(t){let{aptosConfig:e,senderAuthenticator:n,feePayer:a,transaction:o}=t;(a instanceof A||a instanceof f)&&await a.waitForProofFetch();let i=x({signer:a,transaction:o});return F({aptosConfig:e,transaction:o,senderAuthenticator:n,feePayerAuthenticator:i})}var v={typeParameters:[],parameters:[c.u8(),new c(c.u8())]};async function en(t){let{aptosConfig:e,account:n,metadataBytes:a,moduleBytecode:o,options:i}=t,r=o.map(u=>s.U8(u));return S({aptosConfig:e,sender:p.from(n),data:{function:"0x1::code::publish_package_txn",functionArguments:[s.U8(a),new s(r)],abi:v},options:i})}var N={typeParameters:[],parameters:[new T,c.u8(),new T,c.u8(),c.u8(),c.u8()]};async function an(t){let{aptosConfig:e,fromAccount:n,toNewPrivateKey:a}=t,o=await I({aptosConfig:e,accountAddress:n.accountAddress}),i=w.fromPrivateKey({privateKey:a,legacy:!0}),u=new l({sequenceNumber:BigInt(o.sequence_number),originator:n.accountAddress,currentAuthKey:p.from(o.authentication_key),newPublicKey:i.publicKey}).bcsToBytes(),g=n.sign(u),D=i.sign(u),G=await S({aptosConfig:e,sender:n.accountAddress,data:{function:"0x1::account::rotate_authentication_key",functionArguments:[new m(n.signingScheme),s.U8(n.publicKey.toUint8Array()),new m(i.signingScheme),s.U8(i.publicKey.toUint8Array()),s.U8(g.toUint8Array()),s.U8(D.toUint8Array())],abi:N}});return M({aptosConfig:e,signer:n,transaction:G})}export{S as a,K as b,U as c,Y as d,R as e,x as f,nn as g,F as h,M as i,tn as j,en as k,an as l};
|
|
2
|
+
//# sourceMappingURL=chunk-2I56E4T2.mjs.map
|