@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
package/dist/esm/client/post.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-WOOH5MMX.mjs";import"../chunk-CRL4WGOH.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-4CDDWSKZ.mjs";import"../chunk-LEKBJ2EG.mjs";import"../chunk-GQABU3RQ.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-IECDO22V.mjs";import"../chunk-OZN3OOJV.mjs";import"../chunk-JGNMNCQB.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-UI3AKMZX.mjs";import"../chunk-D3OEQLUE.mjs";import"../chunk-J245N3XF.mjs";import"../chunk-KDMSOCZY.mjs";export{a as post,d as postAptosFaucet,b as postAptosFullNode,c as postAptosIndexer,e as postAptosPepperService,f as postAptosProvingService};
|
|
2
2
|
//# sourceMappingURL=post.mjs.map
|
|
@@ -25,20 +25,24 @@ interface AptosResponse<Req, Res> {
|
|
|
25
25
|
config?: any;
|
|
26
26
|
request?: Req;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Options for handling errors in the Aptos API.
|
|
30
|
+
*/
|
|
28
31
|
type AptosApiErrorOpts = {
|
|
29
32
|
apiType: AptosApiType;
|
|
30
33
|
aptosRequest: AptosRequest;
|
|
31
34
|
aptosResponse: AptosResponse<any, any>;
|
|
32
35
|
};
|
|
33
36
|
/**
|
|
34
|
-
*
|
|
37
|
+
* Represents an error returned from the Aptos API.
|
|
38
|
+
* This class encapsulates the details of the error, including the request URL, response status, and additional data.
|
|
35
39
|
*
|
|
36
|
-
* @param name - the error
|
|
37
|
-
* @param url
|
|
38
|
-
* @param status -
|
|
39
|
-
* @param statusText - the response
|
|
40
|
-
* @param data
|
|
41
|
-
* @param request - the
|
|
40
|
+
* @param name - The name of the error, which is always "AptosApiError".
|
|
41
|
+
* @param url - The URL to which the request was made.
|
|
42
|
+
* @param status - The HTTP response status code (e.g., 400).
|
|
43
|
+
* @param statusText - The message associated with the response status.
|
|
44
|
+
* @param data - The response data returned from the API.
|
|
45
|
+
* @param request - The original AptosRequest that triggered the error.
|
|
42
46
|
*/
|
|
43
47
|
declare class AptosApiError extends Error {
|
|
44
48
|
readonly url: string;
|
|
@@ -46,7 +50,16 @@ declare class AptosApiError extends Error {
|
|
|
46
50
|
readonly statusText: string;
|
|
47
51
|
readonly data: any;
|
|
48
52
|
readonly request: AptosRequest;
|
|
49
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Constructs an instance of AptosApiError with relevant error details.
|
|
55
|
+
*
|
|
56
|
+
* @param opts - The options for creating the AptosApiError.
|
|
57
|
+
* @param opts.apiType - The type of API that generated the error.
|
|
58
|
+
* @param opts.aptosRequest - The request object that caused the error.
|
|
59
|
+
* @param opts.aptosResponse - The response object containing error details.
|
|
60
|
+
*
|
|
61
|
+
* @internal This constructor is for SDK internal use - do not instantiate outside the SDK codebase.
|
|
62
|
+
*/
|
|
50
63
|
constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
|
|
51
64
|
}
|
|
52
65
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GQABU3RQ.mjs";import"../chunk-J245N3XF.mjs";import"../chunk-KDMSOCZY.mjs";export{a as AptosApiError};
|
|
2
2
|
//# sourceMappingURL=types.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../chunk-
|
|
1
|
+
import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../chunk-PCLU4KLY.mjs";import"../../chunk-KM6UXNC7.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 createObjectAddress,b as createResourceAddress,c as createTokenAddress};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -20,7 +20,7 @@ import '../../../transactions/instances/transactionArgument.mjs';
|
|
|
20
20
|
*/
|
|
21
21
|
declare const createObjectAddress: (creatorAddress: AccountAddress, seed: Uint8Array | string) => AccountAddress;
|
|
22
22
|
/**
|
|
23
|
-
* Creates
|
|
23
|
+
* Creates a resource address from creator address and seed
|
|
24
24
|
*
|
|
25
25
|
* @param creatorAddress The creator account address
|
|
26
26
|
* @param seed The seed in either Uint8Array | string type
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunk-
|
|
1
|
+
import{a,b,c}from"../../../chunk-PCLU4KLY.mjs";import"../../../chunk-KM6UXNC7.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 createObjectAddress,b as createResourceAddress,c as createTokenAddress};
|
|
2
2
|
//# sourceMappingURL=address.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../../chunk-
|
|
1
|
+
import"../../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../../chunk-PCLU4KLY.mjs";import"../../../chunk-KM6UXNC7.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 createObjectAddress,b as createResourceAddress,c as createTokenAddress};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -10,7 +10,7 @@ import '../types/generated/operations.mjs';
|
|
|
10
10
|
import '../types/generated/types.mjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Provides reasons for an address was invalid.
|
|
14
14
|
*/
|
|
15
15
|
declare enum AddressInvalidReason {
|
|
16
16
|
INCORRECT_NUMBER_OF_BYTES = "incorrect_number_of_bytes",
|
|
@@ -21,6 +21,9 @@ declare enum AddressInvalidReason {
|
|
|
21
21
|
LONG_FORM_REQUIRED_UNLESS_SPECIAL = "long_form_required_unless_special",
|
|
22
22
|
INVALID_PADDING_ZEROES = "INVALID_PADDING_ZEROES"
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* The input for an account address, which can be either a hexadecimal string or a standard account address.
|
|
26
|
+
*/
|
|
24
27
|
type AccountAddressInput = HexInput | AccountAddress;
|
|
25
28
|
/**
|
|
26
29
|
* NOTE: Only use this class for account addresses. For other hex data, e.g. transaction
|
|
@@ -60,68 +63,60 @@ declare class AccountAddress extends Serializable implements TransactionArgument
|
|
|
60
63
|
/**
|
|
61
64
|
* Creates an instance of AccountAddress from a Uint8Array.
|
|
62
65
|
*
|
|
63
|
-
*
|
|
66
|
+
* This function ensures that the input data is exactly 32 bytes long, which is required for a valid account address.
|
|
67
|
+
*
|
|
68
|
+
* @param input A Uint8Array representing an account address.
|
|
69
|
+
* @throws ParsingError if the input length is not equal to 32 bytes.
|
|
64
70
|
*/
|
|
65
71
|
constructor(input: Uint8Array);
|
|
66
72
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
73
|
+
* Determines if the address is classified as special, which is defined as 0x0 to 0xf inclusive.
|
|
74
|
+
* In other words, the last byte of the address must be < 0b10000 (16)
|
|
69
75
|
* and every other byte must be zero.
|
|
70
76
|
*
|
|
71
|
-
* For more information on how special addresses are defined see AIP-40:
|
|
77
|
+
* For more information on how special addresses are defined, see AIP-40:
|
|
72
78
|
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
73
79
|
*
|
|
74
|
-
* @returns true if the address is special, false
|
|
80
|
+
* @returns true if the address is special, false otherwise.
|
|
75
81
|
*/
|
|
76
82
|
isSpecial(): boolean;
|
|
77
83
|
/**
|
|
78
84
|
* Return the AccountAddress as a string as per AIP-40.
|
|
79
85
|
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* 0x0 through to 0xf inclusive, and every other address is represented in LONG form,
|
|
83
|
-
* meaning 0x + 64 hex characters.
|
|
86
|
+
* This representation returns special addresses in SHORT form (0xf)
|
|
87
|
+
* and other addresses in LONG form (0x + 64 characters).
|
|
84
88
|
*
|
|
85
89
|
* @returns AccountAddress as a string conforming to AIP-40.
|
|
86
90
|
*/
|
|
87
91
|
toString(): `0x${string}`;
|
|
88
92
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* Return the AccountAddress as a string as per AIP-40 but without the leading 0x.
|
|
93
|
+
* Return the AccountAddress as a string conforming to AIP-40 but without the leading 0x.
|
|
92
94
|
*
|
|
93
|
-
*
|
|
95
|
+
* NOTE: Prefer to use `toString` where possible.
|
|
94
96
|
*
|
|
95
|
-
* @returns AccountAddress as a string
|
|
97
|
+
* @returns AccountAddress as a string without the leading 0x.
|
|
96
98
|
*/
|
|
97
99
|
toStringWithoutPrefix(): string;
|
|
98
100
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* Whereas toString will format special addresses (as defined by isSpecial) using the
|
|
102
|
-
* SHORT form (no leading 0s), this format the address in the LONG format
|
|
103
|
-
* unconditionally.
|
|
101
|
+
* Convert the account address to a string in LONG format, which is always 0x followed by 64 hex characters.
|
|
104
102
|
*
|
|
105
|
-
*
|
|
103
|
+
* NOTE: Prefer to use `toString` where possible, as it formats special addresses using the SHORT form (no leading 0s).
|
|
106
104
|
*
|
|
107
105
|
* @returns AccountAddress as a string in LONG form.
|
|
108
106
|
*/
|
|
109
107
|
toStringLong(): `0x${string}`;
|
|
110
108
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* Whereas toString will format special addresses (as defined by isSpecial) using the
|
|
114
|
-
* SHORT form (no leading 0s), this function will include leading zeroes. The string
|
|
115
|
-
* will not have a leading zero.
|
|
109
|
+
* Returns the account address as a string in LONG form without a leading 0x.
|
|
110
|
+
* This function will include leading zeroes and will produce a string of 64 hex characters.
|
|
116
111
|
*
|
|
117
|
-
*
|
|
112
|
+
* NOTE: Prefer to use `toString` where possible, as it formats special addresses using the SHORT form (no leading 0s).
|
|
118
113
|
*
|
|
119
|
-
* @returns
|
|
114
|
+
* @returns {string} The account address in LONG form.
|
|
120
115
|
*/
|
|
121
116
|
toStringLongWithoutPrefix(): string;
|
|
122
117
|
/**
|
|
123
|
-
* Get the inner
|
|
124
|
-
* is
|
|
118
|
+
* Get the inner data as a Uint8Array.
|
|
119
|
+
* The inner data is already a Uint8Array, so no conversion takes place.
|
|
125
120
|
*
|
|
126
121
|
* @returns Hex data as Uint8Array
|
|
127
122
|
*/
|
|
@@ -138,10 +133,23 @@ declare class AccountAddress extends Serializable implements TransactionArgument
|
|
|
138
133
|
* // `bytes` is now the BCS-serialized address.
|
|
139
134
|
*/
|
|
140
135
|
serialize(serializer: Serializer): void;
|
|
136
|
+
/**
|
|
137
|
+
* Serializes the current instance into a byte sequence suitable for entry functions.
|
|
138
|
+
* This allows for the proper encoding of data when interacting with entry functions in the blockchain.
|
|
139
|
+
*
|
|
140
|
+
* @param serializer - The serializer instance used to convert the data into bytes.
|
|
141
|
+
*/
|
|
141
142
|
serializeForEntryFunction(serializer: Serializer): void;
|
|
143
|
+
/**
|
|
144
|
+
* Serializes the current instance for use in a script function by encoding it into a byte sequence.
|
|
145
|
+
* This process involves serializing the variant index and the instance data, making it suitable for transmission.
|
|
146
|
+
*
|
|
147
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
148
|
+
*/
|
|
142
149
|
serializeForScriptFunction(serializer: Serializer): void;
|
|
143
150
|
/**
|
|
144
151
|
* Deserialize an AccountAddress from the byte buffer in a Deserializer instance.
|
|
152
|
+
* This function allows you to convert a byte representation of an AccountAddress into an instance of AccountAddress.
|
|
145
153
|
* @param deserializer The deserializer to deserialize the AccountAddress from.
|
|
146
154
|
* @returns An instance of AccountAddress.
|
|
147
155
|
* @example
|
|
@@ -171,10 +179,14 @@ declare class AccountAddress extends Serializable implements TransactionArgument
|
|
|
171
179
|
* - SHORT for non-special addresses.
|
|
172
180
|
* - Any address without a leading 0x.
|
|
173
181
|
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
182
|
+
* @param input - A hex string representing an account address.
|
|
183
|
+
*
|
|
184
|
+
* @throws {ParsingError} If the hex string does not start with 0x or is not in a valid format.
|
|
176
185
|
*
|
|
177
|
-
* @
|
|
186
|
+
* @note This function has strict parsing behavior. For relaxed behavior, please use the `fromString` function.
|
|
187
|
+
*
|
|
188
|
+
* @see AIP-40 documentation for more details on address formats:
|
|
189
|
+
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
178
190
|
*
|
|
179
191
|
* @returns An instance of AccountAddress.
|
|
180
192
|
*/
|
|
@@ -200,43 +212,46 @@ declare class AccountAddress extends Serializable implements TransactionArgument
|
|
|
200
212
|
* Learn more about the different address formats by reading AIP-40:
|
|
201
213
|
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
202
214
|
*
|
|
203
|
-
* @param input A hex string representing an account address.
|
|
215
|
+
* @param input - A hex string representing an account address.
|
|
204
216
|
*
|
|
205
217
|
* @returns An instance of AccountAddress.
|
|
218
|
+
*
|
|
219
|
+
* @throws ParsingError if the hex string is too short, too long, or contains invalid characters.
|
|
206
220
|
*/
|
|
207
221
|
static fromString(input: string): AccountAddress;
|
|
208
222
|
/**
|
|
209
|
-
* Convenience method for creating an AccountAddress from
|
|
223
|
+
* Convenience method for creating an AccountAddress from various input types.
|
|
224
|
+
* This function accepts a string, Uint8Array, or an existing AccountAddress instance and returns the corresponding
|
|
225
|
+
* AccountAddress.
|
|
210
226
|
*
|
|
211
|
-
* This
|
|
212
|
-
*
|
|
227
|
+
* @param input - The input to convert into an AccountAddress. This can be a string representation of an address, a Uint8Array,
|
|
228
|
+
* or an existing AccountAddress.
|
|
213
229
|
*/
|
|
214
230
|
static from(input: AccountAddressInput): AccountAddress;
|
|
215
231
|
/**
|
|
216
|
-
*
|
|
232
|
+
* Create an AccountAddress from various input types, including strings, Uint8Array, and AccountAddress instances.
|
|
217
233
|
*
|
|
218
|
-
*
|
|
219
|
-
* @param input
|
|
234
|
+
* @param input - The input to convert into an AccountAddress, which can be a string, a Uint8Array, or an AccountAddress.
|
|
220
235
|
*/
|
|
221
236
|
static fromStrict(input: AccountAddressInput): AccountAddress;
|
|
222
237
|
/**
|
|
223
|
-
* Check if the
|
|
238
|
+
* Check if the provided input is a valid AccountAddress.
|
|
224
239
|
*
|
|
225
|
-
* @param args
|
|
226
|
-
* @param args.
|
|
240
|
+
* @param args - The arguments for validation.
|
|
241
|
+
* @param args.input - A hex string representing an account address.
|
|
242
|
+
* @param args.strict - If true, use strict parsing behavior; if false, use relaxed parsing behavior.
|
|
227
243
|
*
|
|
228
|
-
* @returns
|
|
229
|
-
* is
|
|
244
|
+
* @returns An object indicating whether the address is valid. If valid, valid = true; if not, valid = false with additional details.
|
|
245
|
+
* If the address is invalid, invalidReason will explain why it is invalid, and invalidReasonMessage will provide the error message.
|
|
230
246
|
*/
|
|
231
247
|
static isValid(args: {
|
|
232
248
|
input: AccountAddressInput;
|
|
233
249
|
strict?: boolean;
|
|
234
250
|
}): ParsingResult<AddressInvalidReason>;
|
|
235
251
|
/**
|
|
236
|
-
*
|
|
237
|
-
* if their underlying byte data is identical.
|
|
252
|
+
* Determine if two AccountAddresses are equal based on their underlying byte data.
|
|
238
253
|
*
|
|
239
|
-
* @param other The AccountAddress to compare to.
|
|
254
|
+
* @param other - The AccountAddress to compare to.
|
|
240
255
|
* @returns true if the AccountAddresses are equal, false if not.
|
|
241
256
|
*/
|
|
242
257
|
equals(other: AccountAddress): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-KM6UXNC7.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{b as AccountAddress,a as AddressInvalidReason};
|
|
2
2
|
//# sourceMappingURL=accountAddress.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './accountAddress.mjs';
|
|
2
2
|
import '../bcs/deserializer.mjs';
|
|
3
3
|
import '../bcs/serializer.mjs';
|
|
4
|
-
export { A as AuthenticationKey } from '../publicKey-
|
|
4
|
+
export { A as AuthenticationKey } from '../publicKey-_tPa99ea.mjs';
|
|
5
5
|
import '../types/index.mjs';
|
|
6
6
|
import './hex.mjs';
|
|
7
7
|
import './common.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-PRZ7AIGA.mjs";import"../chunk-KM6UXNC7.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 AuthenticationKey};
|
|
2
2
|
//# sourceMappingURL=authenticationKey.mjs.map
|
|
@@ -8,6 +8,12 @@ declare class ParsingError<T> extends Error {
|
|
|
8
8
|
* messages are not suitable for their use case. This should be an enum.
|
|
9
9
|
*/
|
|
10
10
|
invalidReason: T;
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of the error with a specified message and invalid reason.
|
|
13
|
+
*
|
|
14
|
+
* @param message The error message that describes the issue.
|
|
15
|
+
* @param invalidReason The reason why the input is considered invalid.
|
|
16
|
+
*/
|
|
11
17
|
constructor(message: string, invalidReason: T);
|
|
12
18
|
}
|
|
13
19
|
/**
|
package/dist/esm/core/common.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-6Q2O5G3J.mjs";import"../chunk-KDMSOCZY.mjs";export{a as ParsingError};
|
|
2
2
|
//# sourceMappingURL=common.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Deserializer } from '../../bcs/deserializer.mjs';
|
|
2
2
|
import { Serializer, Serializable } from '../../bcs/serializer.mjs';
|
|
3
|
-
import { a as AccountPublicKey, V as VerifySignatureArgs, A as AuthenticationKey, P as PublicKey } from '../../publicKey-
|
|
3
|
+
import { a as AccountPublicKey, V as VerifySignatureArgs, A as AuthenticationKey, P as PublicKey } from '../../publicKey-_tPa99ea.mjs';
|
|
4
4
|
import { HexInput } from '../../types/index.mjs';
|
|
5
5
|
import { PrivateKey } from './privateKey.mjs';
|
|
6
6
|
import { Signature } from './signature.mjs';
|
|
@@ -15,6 +15,10 @@ import '../../transactions/instances/transactionArgument.mjs';
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Checks if an ED25519 signature is non-canonical.
|
|
18
|
+
* This function helps determine the validity of a signature by verifying its canonical form.
|
|
19
|
+
*
|
|
20
|
+
* @param signature - The signature to be checked for canonicality.
|
|
21
|
+
* @returns A boolean indicating whether the signature is non-canonical.
|
|
18
22
|
*
|
|
19
23
|
* Comes from Aptos Core
|
|
20
24
|
* https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos-crypto/src/ed25519/ed25519_sigs.rs#L47-L85
|
|
@@ -27,7 +31,7 @@ declare function isCanonicalEd25519Signature(signature: Signature): boolean;
|
|
|
27
31
|
* `Legacy` and `Unified` authentication keys.
|
|
28
32
|
*
|
|
29
33
|
* Ed25519 scheme is represented in the SDK as `Legacy authentication key` and also
|
|
30
|
-
* as `AnyPublicKey` that represents any `Unified authentication key
|
|
34
|
+
* as `AnyPublicKey` that represents any `Unified authentication key`.
|
|
31
35
|
*/
|
|
32
36
|
declare class Ed25519PublicKey extends AccountPublicKey {
|
|
33
37
|
/**
|
|
@@ -40,34 +44,73 @@ declare class Ed25519PublicKey extends AccountPublicKey {
|
|
|
40
44
|
*/
|
|
41
45
|
private readonly key;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Creates an instance of the Ed25519Signature class from a hex input.
|
|
48
|
+
* This constructor validates the length of the signature to ensure it meets the required specifications.
|
|
44
49
|
*
|
|
45
|
-
* @param hexInput
|
|
50
|
+
* @param hexInput - The hex input representing the Ed25519 signature.
|
|
51
|
+
* @throws Error if the signature length is not equal to Ed25519Signature.LENGTH.
|
|
46
52
|
*/
|
|
47
53
|
constructor(hexInput: HexInput);
|
|
48
54
|
/**
|
|
49
|
-
* Verifies a signed
|
|
50
|
-
*
|
|
51
|
-
* @param args
|
|
55
|
+
* Verifies a signed message using a public key.
|
|
56
|
+
*
|
|
57
|
+
* @param args - The arguments for verification.
|
|
58
|
+
* @param args.message - A signed message as a Hex string or Uint8Array.
|
|
59
|
+
* @param args.signature - The signature of the message.
|
|
52
60
|
*/
|
|
53
61
|
verifySignature(args: VerifySignatureArgs): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Generates an authentication key from the public key using the Ed25519 scheme.
|
|
64
|
+
* This function is essential for creating a secure authentication key that can be used for further cryptographic operations.
|
|
65
|
+
*
|
|
66
|
+
* @returns {AuthenticationKey} The generated authentication key.
|
|
67
|
+
*/
|
|
54
68
|
authKey(): AuthenticationKey;
|
|
55
69
|
/**
|
|
56
|
-
*
|
|
70
|
+
* Convert the internal data representation to a Uint8Array.
|
|
57
71
|
*
|
|
58
|
-
* @returns Uint8Array representation of the
|
|
72
|
+
* @returns Uint8Array representation of the data.
|
|
59
73
|
*/
|
|
60
74
|
toUint8Array(): Uint8Array;
|
|
75
|
+
/**
|
|
76
|
+
* Serializes the data into a byte array using the provided serializer.
|
|
77
|
+
* This allows for the conversion of data into a format suitable for transmission or storage.
|
|
78
|
+
*
|
|
79
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
80
|
+
*/
|
|
61
81
|
serialize(serializer: Serializer): void;
|
|
82
|
+
/**
|
|
83
|
+
* Deserialize bytes into an Ed25519Signature object.
|
|
84
|
+
* This function is used to convert serialized byte data into a usable Ed25519Signature instance.
|
|
85
|
+
*
|
|
86
|
+
* @param deserializer - The deserializer instance used to read the byte data.
|
|
87
|
+
*/
|
|
62
88
|
static deserialize(deserializer: Deserializer): Ed25519PublicKey;
|
|
63
89
|
/**
|
|
90
|
+
* Determine if the provided public key is an instance of Ed25519PublicKey.
|
|
91
|
+
*
|
|
92
|
+
* @param publicKey - The public key to check.
|
|
93
|
+
* @returns True if the public key is an instance of Ed25519PublicKey, otherwise false.
|
|
64
94
|
* @deprecated use `instanceof Ed25519PublicKey` instead.
|
|
65
95
|
*/
|
|
66
96
|
static isPublicKey(publicKey: AccountPublicKey): publicKey is Ed25519PublicKey;
|
|
97
|
+
/**
|
|
98
|
+
* Determines if the provided public key is a valid Ed25519 public key.
|
|
99
|
+
* This function checks for the presence of the "key" property and verifies that its data length matches the expected length
|
|
100
|
+
* for Ed25519 public keys.
|
|
101
|
+
*
|
|
102
|
+
* @param publicKey - The public key to validate.
|
|
103
|
+
* @returns A boolean indicating whether the public key is a valid Ed25519 public key.
|
|
104
|
+
*/
|
|
67
105
|
static isInstance(publicKey: PublicKey): publicKey is Ed25519PublicKey;
|
|
68
106
|
}
|
|
69
107
|
/**
|
|
70
108
|
* Represents the private key of an Ed25519 key pair.
|
|
109
|
+
*
|
|
110
|
+
* @static
|
|
111
|
+
* @readonly LENGTH - Length of an Ed25519 private key.
|
|
112
|
+
* @static
|
|
113
|
+
* @readonly SLIP_0010_SEED - The Ed25519 key seed to use for BIP-32 compatibility.
|
|
71
114
|
*/
|
|
72
115
|
declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
73
116
|
/**
|
|
@@ -93,42 +136,43 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
93
136
|
/**
|
|
94
137
|
* Generate a new random private key.
|
|
95
138
|
*
|
|
96
|
-
* @returns Ed25519PrivateKey
|
|
139
|
+
* @returns Ed25519PrivateKey A newly generated Ed25519 private key.
|
|
97
140
|
*/
|
|
98
141
|
static generate(): Ed25519PrivateKey;
|
|
99
142
|
/**
|
|
100
|
-
* Derives a private key from a mnemonic seed phrase.
|
|
101
|
-
*
|
|
143
|
+
* Derives a private key from a mnemonic seed phrase using a specified BIP44 path.
|
|
102
144
|
* To derive multiple keys from the same phrase, change the path
|
|
103
145
|
*
|
|
104
|
-
* IMPORTANT: Ed25519 supports hardened derivation only
|
|
105
|
-
* so non-hardened derivation cannot work)
|
|
146
|
+
* IMPORTANT: Ed25519 supports hardened derivation only, as it lacks a key homomorphism, making non-hardened derivation impossible.
|
|
106
147
|
*
|
|
107
|
-
* @param path
|
|
108
|
-
* @param mnemonics
|
|
148
|
+
* @param path - The BIP44 path used for key derivation.
|
|
149
|
+
* @param mnemonics - The mnemonic seed phrase from which the key will be derived.
|
|
150
|
+
* @throws Error if the provided path is not a valid hardened path.
|
|
109
151
|
*/
|
|
110
152
|
static fromDerivationPath(path: string, mnemonics: string): Ed25519PrivateKey;
|
|
111
153
|
/**
|
|
154
|
+
* Derives a child private key from a given BIP44 path and seed.
|
|
112
155
|
* A private inner function so we can separate from the main fromDerivationPath() method
|
|
113
156
|
* to add tests to verify we create the keys correctly.
|
|
114
157
|
*
|
|
115
|
-
* @param path
|
|
116
|
-
* @param seed
|
|
117
|
-
* @param offset
|
|
118
|
-
* @returns
|
|
158
|
+
* @param path - The BIP44 path used for key derivation.
|
|
159
|
+
* @param seed - The seed phrase created by the mnemonics, represented as a Uint8Array.
|
|
160
|
+
* @param offset - The offset used for key derivation, defaults to HARDENED_OFFSET.
|
|
161
|
+
* @returns An instance of Ed25519PrivateKey derived from the specified path and seed.
|
|
119
162
|
*/
|
|
120
163
|
private static fromDerivationPathInner;
|
|
121
164
|
/**
|
|
122
165
|
* Derive the Ed25519PublicKey for this private key.
|
|
123
166
|
*
|
|
124
|
-
* @returns Ed25519PublicKey
|
|
167
|
+
* @returns Ed25519PublicKey - The derived public key corresponding to the private key.
|
|
125
168
|
*/
|
|
126
169
|
publicKey(): Ed25519PublicKey;
|
|
127
170
|
/**
|
|
128
171
|
* Sign the given message with the private key.
|
|
172
|
+
* This function generates a digital signature for the specified message, ensuring its authenticity and integrity.
|
|
129
173
|
*
|
|
130
|
-
* @param message
|
|
131
|
-
* @returns
|
|
174
|
+
* @param message - A message as a string or Uint8Array in HexInput format.
|
|
175
|
+
* @returns A digital signature for the provided message.
|
|
132
176
|
*/
|
|
133
177
|
sign(message: HexInput): Ed25519Signature;
|
|
134
178
|
/**
|
|
@@ -140,18 +184,25 @@ declare class Ed25519PrivateKey extends Serializable implements PrivateKey {
|
|
|
140
184
|
/**
|
|
141
185
|
* Get the private key as a hex string with the 0x prefix.
|
|
142
186
|
*
|
|
143
|
-
* @returns string representation of the private key
|
|
187
|
+
* @returns string representation of the private key.
|
|
144
188
|
*/
|
|
145
189
|
toString(): string;
|
|
146
190
|
serialize(serializer: Serializer): void;
|
|
147
191
|
static deserialize(deserializer: Deserializer): Ed25519PrivateKey;
|
|
148
192
|
/**
|
|
149
|
-
*
|
|
193
|
+
* Determines if the provided private key is an instance of Ed25519PrivateKey.
|
|
194
|
+
*
|
|
195
|
+
* @param privateKey - The private key to check.
|
|
196
|
+
* @returns A boolean indicating whether the private key is an Ed25519PrivateKey.
|
|
197
|
+
*
|
|
198
|
+
* @deprecated Use `instanceof Ed25519PrivateKey` instead.
|
|
150
199
|
*/
|
|
151
200
|
static isPrivateKey(privateKey: PrivateKey): privateKey is Ed25519PrivateKey;
|
|
152
201
|
}
|
|
153
202
|
/**
|
|
154
|
-
*
|
|
203
|
+
* Represents a signature of a message signed using an Ed25519 private key.
|
|
204
|
+
*
|
|
205
|
+
* @static LENGTH - Length of an Ed25519 signature, which is 64 bytes.
|
|
155
206
|
*/
|
|
156
207
|
declare class Ed25519Signature extends Signature {
|
|
157
208
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunk-
|
|
1
|
+
import{a,b,c,d}from"../../chunk-WSVOJSAC.mjs";import"../../chunk-4OV7QU2U.mjs";import"../../chunk-IBLZ6MZU.mjs";import"../../chunk-KIW54KWR.mjs";import"../../chunk-PHP47DI4.mjs";import"../../chunk-PRZ7AIGA.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-IECDO22V.mjs";import"../../chunk-OZN3OOJV.mjs";import"../../chunk-JGNMNCQB.mjs";import"../../chunk-6FLHGOKP.mjs";import"../../chunk-N47FTRYO.mjs";import"../../chunk-KM6UXNC7.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{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=ed25519.mjs.map
|