@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
|
@@ -45,6 +45,17 @@ import {
|
|
|
45
45
|
import { generateTransaction } from "./transactionSubmission";
|
|
46
46
|
import { SimpleTransaction } from "../transactions/instances/simpleTransaction";
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves metadata for fungible assets based on specified criteria.
|
|
50
|
+
* This function allows you to filter and paginate through fungible asset metadata.
|
|
51
|
+
*
|
|
52
|
+
* @param args - The arguments for the function.
|
|
53
|
+
* @param args.aptosConfig - The configuration for Aptos.
|
|
54
|
+
* @param [args.options] - Optional parameters for pagination and filtering.
|
|
55
|
+
* @param [args.options.limit] - The maximum number of results to return.
|
|
56
|
+
* @param [args.options.offset] - The number of results to skip before starting to collect the result set.
|
|
57
|
+
* @param [args.options.where] - Conditions to filter the results.
|
|
58
|
+
*/
|
|
48
59
|
export async function getFungibleAssetMetadata(args: {
|
|
49
60
|
aptosConfig: AptosConfig;
|
|
50
61
|
options?: PaginationArgs & WhereArg<FungibleAssetMetadataBoolExp>;
|
|
@@ -69,6 +80,18 @@ export async function getFungibleAssetMetadata(args: {
|
|
|
69
80
|
return data.fungible_asset_metadata;
|
|
70
81
|
}
|
|
71
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Retrieves the activities associated with fungible assets.
|
|
85
|
+
* This function allows you to filter and paginate through the activities based on specified conditions.
|
|
86
|
+
*
|
|
87
|
+
* @param args - The arguments for retrieving fungible asset activities.
|
|
88
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
89
|
+
* @param [args.options] - Optional parameters for pagination and filtering.
|
|
90
|
+
* @param [args.options.limit] - The maximum number of activities to retrieve.
|
|
91
|
+
* @param [args.options.offset] - The number of activities to skip before starting to collect the result set.
|
|
92
|
+
* @param [args.options.where] - Conditions to filter the activities.
|
|
93
|
+
* @returns A promise that resolves to an array of fungible asset activities.
|
|
94
|
+
*/
|
|
72
95
|
export async function getFungibleAssetActivities(args: {
|
|
73
96
|
aptosConfig: AptosConfig;
|
|
74
97
|
options?: PaginationArgs & WhereArg<FungibleAssetActivitiesBoolExp>;
|
|
@@ -93,6 +116,17 @@ export async function getFungibleAssetActivities(args: {
|
|
|
93
116
|
return data.fungible_asset_activities;
|
|
94
117
|
}
|
|
95
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Retrieves the current balances of fungible assets for a specified configuration.
|
|
121
|
+
*
|
|
122
|
+
* @param args - The arguments for retrieving fungible asset balances.
|
|
123
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
124
|
+
* @param args.options - Optional parameters for pagination and filtering.
|
|
125
|
+
* @param args.options.limit - The maximum number of results to return.
|
|
126
|
+
* @param args.options.offset - The number of results to skip before starting to collect the results.
|
|
127
|
+
* @param args.options.where - Conditions to filter the results based on specific criteria.
|
|
128
|
+
* @returns The current balances of fungible assets.
|
|
129
|
+
*/
|
|
96
130
|
export async function getCurrentFungibleAssetBalances(args: {
|
|
97
131
|
aptosConfig: AptosConfig;
|
|
98
132
|
options?: PaginationArgs & WhereArg<CurrentFungibleAssetBalancesBoolExp>;
|
|
@@ -122,6 +156,18 @@ const faTransferAbi: EntryFunctionABI = {
|
|
|
122
156
|
parameters: [parseTypeTag("0x1::object::Object"), new TypeTagAddress(), new TypeTagU64()],
|
|
123
157
|
};
|
|
124
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Transfers a specified amount of a fungible asset from the sender to the recipient.
|
|
161
|
+
* This function helps facilitate the transfer of digital assets between accounts on the Aptos blockchain.
|
|
162
|
+
*
|
|
163
|
+
* @param args - The parameters for the transfer operation.
|
|
164
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
165
|
+
* @param args.sender - The account initiating the transfer.
|
|
166
|
+
* @param args.fungibleAssetMetadataAddress - The address of the fungible asset's metadata.
|
|
167
|
+
* @param args.recipient - The address of the account receiving the asset.
|
|
168
|
+
* @param args.amount - The amount of the fungible asset to transfer.
|
|
169
|
+
* @param args.options - Optional settings for generating the transaction.
|
|
170
|
+
*/
|
|
125
171
|
export async function transferFungibleAsset(args: {
|
|
126
172
|
aptosConfig: AptosConfig;
|
|
127
173
|
sender: Account;
|
package/src/internal/general.ts
CHANGED
|
@@ -15,6 +15,12 @@ import { GetChainTopUserTransactionsQuery, GetProcessorStatusQuery } from "../ty
|
|
|
15
15
|
import { GetChainTopUserTransactions, GetProcessorStatus } from "../types/generated/queries";
|
|
16
16
|
import { ProcessorType } from "../utils/const";
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves information about the current ledger.
|
|
20
|
+
*
|
|
21
|
+
* @param args - The arguments for retrieving ledger information.
|
|
22
|
+
* @param args.aptosConfig - The configuration object for connecting to the Aptos network.
|
|
23
|
+
*/
|
|
18
24
|
export async function getLedgerInfo(args: { aptosConfig: AptosConfig }): Promise<LedgerInfo> {
|
|
19
25
|
const { aptosConfig } = args;
|
|
20
26
|
const { data } = await getAptosFullNode<{}, LedgerInfo>({
|
|
@@ -25,6 +31,14 @@ export async function getLedgerInfo(args: { aptosConfig: AptosConfig }): Promise
|
|
|
25
31
|
return data;
|
|
26
32
|
}
|
|
27
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the top user transactions for a specific blockchain chain.
|
|
36
|
+
*
|
|
37
|
+
* @param args - The arguments for the function.
|
|
38
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
39
|
+
* @param args.limit - The maximum number of transactions to retrieve.
|
|
40
|
+
* @returns An array of user transactions.
|
|
41
|
+
*/
|
|
28
42
|
export async function getChainTopUserTransactions(args: {
|
|
29
43
|
aptosConfig: AptosConfig;
|
|
30
44
|
limit: number;
|
|
@@ -44,6 +58,15 @@ export async function getChainTopUserTransactions(args: {
|
|
|
44
58
|
return data.user_transactions;
|
|
45
59
|
}
|
|
46
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Executes a GraphQL query against the Aptos indexer and retrieves the resulting data.
|
|
63
|
+
*
|
|
64
|
+
* @param args - The arguments for the query.
|
|
65
|
+
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
66
|
+
* @param args.query - The GraphQL query to be executed.
|
|
67
|
+
* @param args.originMethod - An optional string to specify the origin method for tracking purposes.
|
|
68
|
+
* @returns The data returned from the query execution.
|
|
69
|
+
*/
|
|
47
70
|
export async function queryIndexer<T extends {}>(args: {
|
|
48
71
|
aptosConfig: AptosConfig;
|
|
49
72
|
query: GraphqlQuery;
|
|
@@ -60,6 +83,13 @@ export async function queryIndexer<T extends {}>(args: {
|
|
|
60
83
|
return data;
|
|
61
84
|
}
|
|
62
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves the current statuses of processors.
|
|
88
|
+
*
|
|
89
|
+
* @param args - The arguments for the function.
|
|
90
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
91
|
+
* @returns The statuses of the processors.
|
|
92
|
+
*/
|
|
63
93
|
export async function getProcessorStatuses(args: { aptosConfig: AptosConfig }): Promise<GetProcessorStatusResponse> {
|
|
64
94
|
const { aptosConfig } = args;
|
|
65
95
|
|
|
@@ -76,11 +106,27 @@ export async function getProcessorStatuses(args: { aptosConfig: AptosConfig }):
|
|
|
76
106
|
return data.processor_status;
|
|
77
107
|
}
|
|
78
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves the last success version from the indexer.
|
|
111
|
+
*
|
|
112
|
+
* @param args - The arguments for the function.
|
|
113
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
114
|
+
* @returns The last success version as a BigInt.
|
|
115
|
+
*/
|
|
79
116
|
export async function getIndexerLastSuccessVersion(args: { aptosConfig: AptosConfig }): Promise<bigint> {
|
|
80
117
|
const response = await getProcessorStatuses({ aptosConfig: args.aptosConfig });
|
|
81
118
|
return BigInt(response[0].last_success_version);
|
|
82
119
|
}
|
|
83
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves the status of a specified processor in the Aptos network.
|
|
123
|
+
* This function allows you to check the current operational status of a processor, which can be useful for monitoring and troubleshooting.
|
|
124
|
+
*
|
|
125
|
+
* @param args - The arguments for the function.
|
|
126
|
+
* @param args.aptosConfig - The configuration object for connecting to the Aptos network.
|
|
127
|
+
* @param args.processorType - The type of processor whose status you want to retrieve.
|
|
128
|
+
* @returns The status of the specified processor.
|
|
129
|
+
*/
|
|
84
130
|
export async function getProcessorStatus(args: {
|
|
85
131
|
aptosConfig: AptosConfig;
|
|
86
132
|
processorType: ProcessorType;
|
package/src/internal/keyless.ts
CHANGED
|
@@ -30,6 +30,17 @@ import { MoveVector } from "../bcs";
|
|
|
30
30
|
import { generateTransaction } from "./transactionSubmission";
|
|
31
31
|
import { SimpleTransaction } from "../transactions";
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a pepper value based on the provided configuration and authentication details.
|
|
35
|
+
*
|
|
36
|
+
* @param args - The arguments required to fetch the pepper.
|
|
37
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
38
|
+
* @param args.jwt - The JSON Web Token used for authentication.
|
|
39
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used for the operation.
|
|
40
|
+
* @param args.uidKey - An optional unique identifier key (defaults to "sub").
|
|
41
|
+
* @param args.derivationPath - An optional derivation path for the key.
|
|
42
|
+
* @returns A Uint8Array containing the fetched pepper value.
|
|
43
|
+
*/
|
|
33
44
|
export async function getPepper(args: {
|
|
34
45
|
aptosConfig: AptosConfig;
|
|
35
46
|
jwt: string;
|
|
@@ -57,6 +68,18 @@ export async function getPepper(args: {
|
|
|
57
68
|
return Hex.fromHexInput(data.pepper).toUint8Array();
|
|
58
69
|
}
|
|
59
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Generates a zero-knowledge proof based on the provided parameters.
|
|
73
|
+
* This function is essential for creating a signed proof that can be used in various cryptographic operations.
|
|
74
|
+
*
|
|
75
|
+
* @param args - The parameters required to generate the proof.
|
|
76
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
77
|
+
* @param args.jwt - The JSON Web Token used for authentication.
|
|
78
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used for generating the proof.
|
|
79
|
+
* @param args.pepper - An optional hex input used to enhance security (default is generated if not provided).
|
|
80
|
+
* @param args.uidKey - An optional string that specifies the unique identifier key (defaults to "sub").
|
|
81
|
+
* @throws Error if the pepper length is not valid or if the ephemeral key pair's lifespan exceeds the maximum allowed.
|
|
82
|
+
*/
|
|
60
83
|
export async function getProof(args: {
|
|
61
84
|
aptosConfig: AptosConfig;
|
|
62
85
|
jwt: string;
|
|
@@ -109,6 +132,19 @@ export async function getProof(args: {
|
|
|
109
132
|
return signedProof;
|
|
110
133
|
}
|
|
111
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Derives a keyless account by fetching the necessary proof and looking up the original account address.
|
|
137
|
+
* This function helps in creating a keyless account that can be used without managing private keys directly.
|
|
138
|
+
*
|
|
139
|
+
* @param args - The arguments required to derive the keyless account.
|
|
140
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
141
|
+
* @param args.jwt - The JSON Web Token used for authentication.
|
|
142
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used for cryptographic operations.
|
|
143
|
+
* @param args.uidKey - An optional unique identifier key for the user.
|
|
144
|
+
* @param args.pepper - An optional hexadecimal input used for additional security.
|
|
145
|
+
* @param args.proofFetchCallback - An optional callback function to handle the proof fetch outcome.
|
|
146
|
+
* @returns A keyless account object.
|
|
147
|
+
*/
|
|
112
148
|
export async function deriveKeylessAccount(args: {
|
|
113
149
|
aptosConfig: AptosConfig;
|
|
114
150
|
jwt: string;
|
|
@@ -143,7 +179,7 @@ export async function deriveKeylessAccount(args: {
|
|
|
143
179
|
// background and the callback will handle the outcome of the fetch. This allows the developer to not have to block on the proof fetch
|
|
144
180
|
// allowing for faster rendering of UX.
|
|
145
181
|
//
|
|
146
|
-
// If no callback is provided, the just await the proof fetch and continue
|
|
182
|
+
// If no callback is provided, the just await the proof fetch and continue synchronously.
|
|
147
183
|
const proof = proofFetchCallback ? proofPromise : await proofPromise;
|
|
148
184
|
|
|
149
185
|
// Look up the original address to handle key rotations and then instantiate the account.
|
package/src/internal/object.ts
CHANGED
|
@@ -6,6 +6,18 @@ import { GetObjectData } from "../types/generated/queries";
|
|
|
6
6
|
import { CurrentObjectsBoolExp } from "../types/generated/types";
|
|
7
7
|
import { queryIndexer } from "./general";
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the current objects based on specified filtering and pagination options.
|
|
11
|
+
*
|
|
12
|
+
* @param args - The arguments for retrieving object data.
|
|
13
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
14
|
+
* @param [args.options] - Optional parameters for pagination and filtering.
|
|
15
|
+
* @param [args.options.offset] - The number of items to skip before starting to collect the result set.
|
|
16
|
+
* @param [args.options.limit] - The maximum number of items to return.
|
|
17
|
+
* @param [args.options.orderBy] - The criteria for ordering the results.
|
|
18
|
+
* @param [args.options.where] - The conditions to filter the results.
|
|
19
|
+
* @returns The current objects that match the specified criteria.
|
|
20
|
+
*/
|
|
9
21
|
export async function getObjectData(args: {
|
|
10
22
|
aptosConfig: AptosConfig;
|
|
11
23
|
options?: PaginationArgs & OrderByArg<GetObjectDataQueryResponse[0]> & WhereArg<CurrentObjectsBoolExp>;
|
|
@@ -30,6 +42,15 @@ export async function getObjectData(args: {
|
|
|
30
42
|
return data.current_objects;
|
|
31
43
|
}
|
|
32
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves the object data associated with a specific object address.
|
|
47
|
+
* This function allows you to access detailed information about an object in the Aptos blockchain.
|
|
48
|
+
*
|
|
49
|
+
* @param args - The arguments for retrieving object data.
|
|
50
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos blockchain.
|
|
51
|
+
* @param args.objectAddress - The address of the object whose data is being retrieved.
|
|
52
|
+
* @param args.options - Optional parameters for pagination and ordering of the results.
|
|
53
|
+
*/
|
|
33
54
|
export async function getObjectDataByObjectAddress(args: {
|
|
34
55
|
aptosConfig: AptosConfig;
|
|
35
56
|
objectAddress: AccountAddressInput;
|
package/src/internal/staking.ts
CHANGED
|
@@ -15,6 +15,14 @@ import { GetDelegatedStakingActivitiesQuery, GetNumberOfDelegatorsQuery } from "
|
|
|
15
15
|
import { GetDelegatedStakingActivities, GetNumberOfDelegators } from "../types/generated/queries";
|
|
16
16
|
import { queryIndexer } from "./general";
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves the number of active delegators for a specified pool address.
|
|
20
|
+
*
|
|
21
|
+
* @param args - The arguments for the function.
|
|
22
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
23
|
+
* @param args.poolAddress - The address of the pool for which to retrieve the number of delegators.
|
|
24
|
+
* @returns The number of active delegators for the specified pool address.
|
|
25
|
+
*/
|
|
18
26
|
export async function getNumberOfDelegators(args: {
|
|
19
27
|
aptosConfig: AptosConfig;
|
|
20
28
|
poolAddress: AccountAddressInput;
|
|
@@ -27,11 +35,20 @@ export async function getNumberOfDelegators(args: {
|
|
|
27
35
|
};
|
|
28
36
|
const data = await queryIndexer<GetNumberOfDelegatorsQuery>({ aptosConfig, query });
|
|
29
37
|
|
|
30
|
-
// commonjs (aka cjs)
|
|
38
|
+
// commonjs (aka cjs) doesn't handle Nullish Coalescing for some reason
|
|
31
39
|
// might be because of how ts infer the graphql generated scheme type
|
|
32
40
|
return data.num_active_delegator_per_pool[0] ? data.num_active_delegator_per_pool[0].num_active_delegator : 0;
|
|
33
41
|
}
|
|
34
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves the number of active delegators for all pools.
|
|
45
|
+
*
|
|
46
|
+
* @param args - The arguments for the function.
|
|
47
|
+
* @param args.aptosConfig - The configuration for the Aptos client.
|
|
48
|
+
* @param [args.options] - Optional parameters for ordering the results.
|
|
49
|
+
* @param args.options.orderBy - Specifies the order in which to return the results.
|
|
50
|
+
* @returns The number of active delegators per pool.
|
|
51
|
+
*/
|
|
35
52
|
export async function getNumberOfDelegatorsForAllPools(args: {
|
|
36
53
|
aptosConfig: AptosConfig;
|
|
37
54
|
options?: OrderByArg<GetNumberOfDelegatorsResponse[0]>;
|
|
@@ -48,6 +65,15 @@ export async function getNumberOfDelegatorsForAllPools(args: {
|
|
|
48
65
|
return data.num_active_delegator_per_pool;
|
|
49
66
|
}
|
|
50
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves the delegated staking activities for a specified delegator and pool.
|
|
70
|
+
*
|
|
71
|
+
* @param args - The parameters for the query.
|
|
72
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
73
|
+
* @param args.delegatorAddress - The address of the delegator whose activities are being queried.
|
|
74
|
+
* @param args.poolAddress - The address of the pool associated with the delegated staking activities.
|
|
75
|
+
* @returns The delegated staking activities for the specified delegator and pool.
|
|
76
|
+
*/
|
|
51
77
|
export async function getDelegatedStakingActivities(args: {
|
|
52
78
|
aptosConfig: AptosConfig;
|
|
53
79
|
delegatorAddress: AccountAddressInput;
|
package/src/internal/table.ts
CHANGED
|
@@ -14,6 +14,15 @@ import { GetTableItemsData, GetTableItemsMetadata } from "../types/generated/que
|
|
|
14
14
|
import { TableItemsBoolExp, TableMetadatasBoolExp } from "../types/generated/types";
|
|
15
15
|
import { queryIndexer } from "./general";
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a specific item from a table in the Aptos blockchain.
|
|
19
|
+
*
|
|
20
|
+
* @param args - The arguments for retrieving the table item.
|
|
21
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos blockchain.
|
|
22
|
+
* @param args.handle - The identifier for the table from which to retrieve the item.
|
|
23
|
+
* @param args.data - The request data for the table item.
|
|
24
|
+
* @param args.options - Optional parameters for the request, including ledger version.
|
|
25
|
+
*/
|
|
17
26
|
export async function getTableItem<T>(args: {
|
|
18
27
|
aptosConfig: AptosConfig;
|
|
19
28
|
handle: string;
|
|
@@ -31,6 +40,17 @@ export async function getTableItem<T>(args: {
|
|
|
31
40
|
return response.data as T;
|
|
32
41
|
}
|
|
33
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves table items data based on specified conditions and pagination options.
|
|
45
|
+
*
|
|
46
|
+
* @param args - The arguments for retrieving table items data.
|
|
47
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
48
|
+
* @param args.options - Optional parameters for pagination and filtering.
|
|
49
|
+
* @param args.options.offset - The number of items to skip before starting to collect the result set.
|
|
50
|
+
* @param args.options.limit - The maximum number of items to return.
|
|
51
|
+
* @param args.options.where - Conditions to filter the table items.
|
|
52
|
+
* @param args.options.orderBy - The criteria to sort the results.
|
|
53
|
+
*/
|
|
34
54
|
export async function getTableItemsData(args: {
|
|
35
55
|
aptosConfig: AptosConfig;
|
|
36
56
|
options?: PaginationArgs & WhereArg<TableItemsBoolExp> & OrderByArg<GetTableItemsDataResponse[0]>;
|
|
@@ -56,6 +76,18 @@ export async function getTableItemsData(args: {
|
|
|
56
76
|
return data.table_items;
|
|
57
77
|
}
|
|
58
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves metadata for table items based on specified options.
|
|
81
|
+
*
|
|
82
|
+
* @param args - The arguments for retrieving table items metadata.
|
|
83
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
84
|
+
* @param args.options - Optional parameters for pagination and filtering.
|
|
85
|
+
* @param args.options.offset - The number of items to skip before starting to collect the result set.
|
|
86
|
+
* @param args.options.limit - The maximum number of items to return.
|
|
87
|
+
* @param args.options.where - Conditions to filter the results.
|
|
88
|
+
* @param args.options.orderBy - The order in which to return the results.
|
|
89
|
+
* @returns A promise that resolves to an array of table metadata.
|
|
90
|
+
*/
|
|
59
91
|
export async function getTableItemsMetadata(args: {
|
|
60
92
|
aptosConfig: AptosConfig;
|
|
61
93
|
options?: PaginationArgs & WhereArg<TableMetadatasBoolExp> & OrderByArg<GetTableItemsMetadataResponse[0]>;
|
|
@@ -26,6 +26,15 @@ import { sleep } from "../utils/helpers";
|
|
|
26
26
|
import { memoizeAsync } from "../utils/memoize";
|
|
27
27
|
import { getIndexerLastSuccessVersion, getProcessorStatus } from "./general";
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve a list of transactions based on the specified options.
|
|
31
|
+
*
|
|
32
|
+
* @param {Object} args - The parameters for retrieving transactions.
|
|
33
|
+
* @param {Object} args.aptosConfig - The configuration object for Aptos.
|
|
34
|
+
* @param {Object} args.options - The options for pagination.
|
|
35
|
+
* @param {number} args.options.offset - The number of transactions to skip before starting to collect the result set.
|
|
36
|
+
* @param {number} args.options.limit - The maximum number of transactions to return.
|
|
37
|
+
*/
|
|
29
38
|
export async function getTransactions(args: {
|
|
30
39
|
aptosConfig: AptosConfig;
|
|
31
40
|
options?: PaginationArgs;
|
|
@@ -39,6 +48,13 @@ export async function getTransactions(args: {
|
|
|
39
48
|
});
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves the estimated gas price for transactions on the Aptos network.
|
|
53
|
+
* This function helps users understand the current gas price, which is essential for transaction planning and cost estimation.
|
|
54
|
+
*
|
|
55
|
+
* @param args - The configuration parameters for the Aptos network.
|
|
56
|
+
* @param args.aptosConfig - The configuration object containing network details.
|
|
57
|
+
*/
|
|
42
58
|
export async function getGasPriceEstimation(args: { aptosConfig: AptosConfig }) {
|
|
43
59
|
const { aptosConfig } = args;
|
|
44
60
|
|
|
@@ -56,6 +72,14 @@ export async function getGasPriceEstimation(args: { aptosConfig: AptosConfig })
|
|
|
56
72
|
)();
|
|
57
73
|
}
|
|
58
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves the transaction details associated with a specific ledger version.
|
|
77
|
+
*
|
|
78
|
+
* @param args - The arguments for the transaction retrieval.
|
|
79
|
+
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
80
|
+
* @param args.ledgerVersion - The ledger version for which to retrieve the transaction.
|
|
81
|
+
* @returns The transaction details for the specified ledger version.
|
|
82
|
+
*/
|
|
59
83
|
export async function getTransactionByVersion(args: {
|
|
60
84
|
aptosConfig: AptosConfig;
|
|
61
85
|
ledgerVersion: AnyNumber;
|
|
@@ -69,6 +93,14 @@ export async function getTransactionByVersion(args: {
|
|
|
69
93
|
return data;
|
|
70
94
|
}
|
|
71
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Retrieves transaction details using the specified transaction hash.
|
|
98
|
+
*
|
|
99
|
+
* @param args - The arguments for retrieving the transaction.
|
|
100
|
+
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
101
|
+
* @param args.transactionHash - The hash of the transaction to retrieve.
|
|
102
|
+
* @returns A promise that resolves to the transaction details.
|
|
103
|
+
*/
|
|
72
104
|
export async function getTransactionByHash(args: {
|
|
73
105
|
aptosConfig: AptosConfig;
|
|
74
106
|
transactionHash: HexInput;
|
|
@@ -82,6 +114,16 @@ export async function getTransactionByHash(args: {
|
|
|
82
114
|
return data;
|
|
83
115
|
}
|
|
84
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Checks if a transaction is currently pending based on its hash.
|
|
119
|
+
* This function helps determine the status of a transaction in the Aptos network.
|
|
120
|
+
*
|
|
121
|
+
* @param args - The arguments for checking the transaction status.
|
|
122
|
+
* @param args.aptosConfig - The configuration settings for connecting to the Aptos network.
|
|
123
|
+
* @param args.transactionHash - The hash of the transaction to check.
|
|
124
|
+
* @returns A boolean indicating whether the transaction is pending.
|
|
125
|
+
* @throws An error if the transaction cannot be retrieved due to reasons other than a 404 status.
|
|
126
|
+
*/
|
|
85
127
|
export async function isTransactionPending(args: {
|
|
86
128
|
aptosConfig: AptosConfig;
|
|
87
129
|
transactionHash: HexInput;
|
|
@@ -98,6 +140,14 @@ export async function isTransactionPending(args: {
|
|
|
98
140
|
}
|
|
99
141
|
}
|
|
100
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Waits for a transaction to be confirmed by its hash.
|
|
145
|
+
* This function allows you to monitor the status of a transaction until it is finalized.
|
|
146
|
+
*
|
|
147
|
+
* @param args - The arguments for the function.
|
|
148
|
+
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
149
|
+
* @param args.transactionHash - The hash of the transaction to wait for.
|
|
150
|
+
*/
|
|
101
151
|
export async function longWaitForTransaction(args: {
|
|
102
152
|
aptosConfig: AptosConfig;
|
|
103
153
|
transactionHash: HexInput;
|
|
@@ -111,6 +161,20 @@ export async function longWaitForTransaction(args: {
|
|
|
111
161
|
return data;
|
|
112
162
|
}
|
|
113
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Waits for a transaction to be confirmed on the blockchain and handles potential errors during the process.
|
|
166
|
+
* This function allows you to monitor the status of a transaction until it is either confirmed or fails.
|
|
167
|
+
*
|
|
168
|
+
* @param args - The arguments for waiting for a transaction.
|
|
169
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
170
|
+
* @param args.transactionHash - The hash of the transaction to wait for.
|
|
171
|
+
* @param args.options - Optional settings for waiting, including timeout and success check.
|
|
172
|
+
* @param args.options.timeoutSecs - The maximum time to wait for the transaction in seconds. Defaults to a predefined value.
|
|
173
|
+
* @param args.options.checkSuccess - A flag indicating whether to check the success status of the transaction. Defaults to true.
|
|
174
|
+
* @returns A promise that resolves to the transaction response once the transaction is confirmed.
|
|
175
|
+
* @throws WaitForTransactionError if the transaction times out or remains pending.
|
|
176
|
+
* @throws FailedTransactionError if the transaction fails.
|
|
177
|
+
*/
|
|
114
178
|
export async function waitForTransaction(args: {
|
|
115
179
|
aptosConfig: AptosConfig;
|
|
116
180
|
transactionHash: HexInput;
|
|
@@ -127,6 +191,12 @@ export async function waitForTransaction(args: {
|
|
|
127
191
|
let backoffIntervalMs = 200;
|
|
128
192
|
const backoffMultiplier = 1.5;
|
|
129
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Handles API errors by throwing the last error or a timeout error for a failed transaction.
|
|
196
|
+
*
|
|
197
|
+
* @param e - The error object that occurred during the API call.
|
|
198
|
+
* @throws {Error} Throws the last error if it exists; otherwise, throws a WaitForTransactionError indicating a timeout.
|
|
199
|
+
*/
|
|
130
200
|
function handleAPIError(e: any) {
|
|
131
201
|
// In short, this means we will retry if it was an AptosApiError and the code was 404 or 5xx.
|
|
132
202
|
const isAptosApiError = e instanceof AptosApiError;
|
|
@@ -215,7 +285,12 @@ export async function waitForTransaction(args: {
|
|
|
215
285
|
}
|
|
216
286
|
|
|
217
287
|
/**
|
|
218
|
-
* Waits for the indexer to sync up to the
|
|
288
|
+
* Waits for the indexer to sync up to the specified ledger version. The timeout is 3 seconds.
|
|
289
|
+
*
|
|
290
|
+
* @param args - The arguments for the function.
|
|
291
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
292
|
+
* @param args.minimumLedgerVersion - The minimum ledger version that the indexer should sync to.
|
|
293
|
+
* @param args.processorType - (Optional) The type of processor to check the last success version from.
|
|
219
294
|
*/
|
|
220
295
|
export async function waitForIndexer(args: {
|
|
221
296
|
aptosConfig: AptosConfig;
|
|
@@ -256,12 +331,22 @@ export async function waitForIndexer(args: {
|
|
|
256
331
|
}
|
|
257
332
|
|
|
258
333
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
334
|
+
* Represents an error that occurs when waiting for a transaction to complete.
|
|
335
|
+
* This error is thrown by the `waitForTransaction` function when a transaction
|
|
336
|
+
* times out or when the transaction response is undefined.
|
|
337
|
+
*
|
|
338
|
+
* @param message - A descriptive message for the error.
|
|
339
|
+
* @param lastSubmittedTransaction - The last submitted transaction response, if available.
|
|
261
340
|
*/
|
|
262
341
|
export class WaitForTransactionError extends Error {
|
|
263
342
|
public readonly lastSubmittedTransaction: TransactionResponse | undefined;
|
|
264
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Constructs an instance of the class with a specified message and transaction response.
|
|
346
|
+
*
|
|
347
|
+
* @param message - The message associated with the transaction.
|
|
348
|
+
* @param lastSubmittedTransaction - The transaction response object containing details about the transaction.
|
|
349
|
+
*/
|
|
265
350
|
constructor(message: string, lastSubmittedTransaction: TransactionResponse | undefined) {
|
|
266
351
|
super(message);
|
|
267
352
|
this.lastSubmittedTransaction = lastSubmittedTransaction;
|
|
@@ -269,8 +354,11 @@ export class WaitForTransactionError extends Error {
|
|
|
269
354
|
}
|
|
270
355
|
|
|
271
356
|
/**
|
|
272
|
-
*
|
|
273
|
-
*
|
|
357
|
+
* Represents an error that occurs when a transaction fails.
|
|
358
|
+
* This error is thrown by the `waitForTransaction` function when the `checkSuccess` parameter is set to true.
|
|
359
|
+
*
|
|
360
|
+
* @param message - A description of the error.
|
|
361
|
+
* @param transaction - The transaction response associated with the failure.
|
|
274
362
|
*/
|
|
275
363
|
export class FailedTransactionError extends Error {
|
|
276
364
|
public readonly transaction: TransactionResponse;
|
|
@@ -281,6 +369,16 @@ export class FailedTransactionError extends Error {
|
|
|
281
369
|
}
|
|
282
370
|
}
|
|
283
371
|
|
|
372
|
+
/**
|
|
373
|
+
* Retrieves a block from the Aptos blockchain by its ledger version.
|
|
374
|
+
* This function allows you to obtain detailed information about a specific block, including its transactions if requested.
|
|
375
|
+
*
|
|
376
|
+
* @param args - The arguments for retrieving the block.
|
|
377
|
+
* @param args.aptosConfig - The configuration object for connecting to the Aptos node.
|
|
378
|
+
* @param args.ledgerVersion - The ledger version of the block to retrieve.
|
|
379
|
+
* @param args.options - Optional parameters for the request.
|
|
380
|
+
* @param args.options.withTransactions - Indicates whether to include transactions in the block data.
|
|
381
|
+
*/
|
|
284
382
|
export async function getBlockByVersion(args: {
|
|
285
383
|
aptosConfig: AptosConfig;
|
|
286
384
|
ledgerVersion: AnyNumber;
|
|
@@ -297,6 +395,16 @@ export async function getBlockByVersion(args: {
|
|
|
297
395
|
return fillBlockTransactions({ block, ...args });
|
|
298
396
|
}
|
|
299
397
|
|
|
398
|
+
/**
|
|
399
|
+
* Retrieves a block from the Aptos blockchain by its height.
|
|
400
|
+
*
|
|
401
|
+
* @param args - The parameters for retrieving the block.
|
|
402
|
+
* @param args.aptosConfig - The configuration object for connecting to the Aptos network.
|
|
403
|
+
* @param args.blockHeight - The height of the block to retrieve.
|
|
404
|
+
* @param args.options - Optional parameters for the request.
|
|
405
|
+
* @param args.options.withTransactions - Indicates whether to include transactions in the block data.
|
|
406
|
+
* @returns A promise that resolves to the block data, potentially including its transactions.
|
|
407
|
+
*/
|
|
300
408
|
export async function getBlockByHeight(args: {
|
|
301
409
|
aptosConfig: AptosConfig;
|
|
302
410
|
blockHeight: AnyNumber;
|
|
@@ -313,8 +421,13 @@ export async function getBlockByHeight(args: {
|
|
|
313
421
|
}
|
|
314
422
|
|
|
315
423
|
/**
|
|
316
|
-
* Fills in the block with transactions if not enough were returned
|
|
317
|
-
*
|
|
424
|
+
* Fills in the block with transactions if not enough were returned. This function ensures that the block contains all relevant
|
|
425
|
+
* transactions by fetching any missing ones based on the specified options.
|
|
426
|
+
* @param args - The arguments for filling the block transactions.
|
|
427
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
428
|
+
* @param args.block - The block object that will be filled with transactions.
|
|
429
|
+
* @param args.options - Optional settings for fetching transactions.
|
|
430
|
+
* @param args.options.withTransactions - Indicates whether to include transactions in the block.
|
|
318
431
|
*/
|
|
319
432
|
async function fillBlockTransactions(args: {
|
|
320
433
|
aptosConfig: AptosConfig;
|