@aptos-labs/ts-sdk 1.29.1 → 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 +5916 -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 +5 -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 +37 -3
- 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 +445 -160
- 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 +50 -13
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +708 -298
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +128 -25
- 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 +151 -48
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +169 -53
- 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 +81 -10
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +49 -5
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +84 -15
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +117 -37
- 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-WWZ3METZ.mjs → chunk-2I56E4T2.mjs} +2 -2
- package/dist/esm/chunk-2I56E4T2.mjs.map +1 -0
- package/dist/esm/{chunk-HSPBA2TZ.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-RNTXQYJQ.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-CPPBQDHB.mjs → chunk-5XXIIWG7.mjs} +2 -2
- package/dist/esm/chunk-5XXIIWG7.mjs.map +1 -0
- package/dist/esm/{chunk-K2O24YLZ.mjs → chunk-5ZBHIUWG.mjs} +2 -2
- 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-5655UVIK.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-E37YRKWK.mjs → chunk-AGBA3Y7A.mjs} +2 -2
- package/dist/esm/chunk-AGBA3Y7A.mjs.map +1 -0
- package/dist/esm/{chunk-ECWOLU5T.mjs → chunk-BQXVHY7J.mjs} +2 -2
- package/dist/esm/chunk-BQXVHY7J.mjs.map +1 -0
- package/dist/esm/{chunk-PUZ25PTD.mjs → chunk-CRL4WGOH.mjs} +2 -2
- package/dist/esm/chunk-CRL4WGOH.mjs.map +1 -0
- package/dist/esm/{chunk-SWHLSREF.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-MO4IZXLK.mjs → chunk-DCUVV3VY.mjs} +2 -2
- package/dist/esm/chunk-DCUVV3VY.mjs.map +1 -0
- package/dist/esm/{chunk-AFOPNDOJ.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-QCUFTD7K.mjs → chunk-EF2PUPUH.mjs} +2 -2
- package/dist/esm/chunk-EF2PUPUH.mjs.map +1 -0
- package/dist/esm/{chunk-XXHW3ZT3.mjs → chunk-EKZQ3EYX.mjs} +2 -2
- package/dist/esm/chunk-EKZQ3EYX.mjs.map +1 -0
- package/dist/esm/{chunk-XH7YKEYR.mjs → chunk-EN2HDNFE.mjs} +2 -2
- package/dist/esm/chunk-EN2HDNFE.mjs.map +1 -0
- package/dist/esm/{chunk-TL7DR54X.mjs → chunk-FO4F3OJJ.mjs} +2 -2
- package/dist/esm/chunk-FO4F3OJJ.mjs.map +1 -0
- package/dist/esm/{chunk-7ZLBJUVZ.mjs → chunk-FPF4KZ5M.mjs} +2 -2
- package/dist/esm/chunk-FPF4KZ5M.mjs.map +1 -0
- package/dist/esm/{chunk-Y7F2V3R6.mjs → chunk-FY7TSOUU.mjs} +2 -2
- package/dist/esm/chunk-FY7TSOUU.mjs.map +1 -0
- package/dist/esm/{chunk-XK3JFCP3.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-BRFHAO2Y.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-FRGXKOU5.mjs → chunk-HCV3NGLS.mjs} +2 -2
- package/dist/esm/chunk-HCV3NGLS.mjs.map +1 -0
- package/dist/esm/{chunk-GFGX3QDP.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-TMW2HIXC.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-2TQIU7CG.mjs → chunk-JDYASF3E.mjs} +2 -2
- package/dist/esm/chunk-JDYASF3E.mjs.map +1 -0
- package/dist/esm/{chunk-MS4MRLGA.mjs → chunk-JGNMNCQB.mjs} +2 -2
- package/dist/esm/chunk-JGNMNCQB.mjs.map +1 -0
- package/dist/esm/{chunk-TS3PYRAT.mjs → chunk-JNHFQTFC.mjs} +2 -2
- package/dist/esm/chunk-JNHFQTFC.mjs.map +1 -0
- package/dist/esm/{chunk-CVDR5SJR.mjs → chunk-JY3JJ55D.mjs} +2 -2
- package/dist/esm/chunk-JY3JJ55D.mjs.map +1 -0
- package/dist/esm/{chunk-KYSDF3CA.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-DF4WKSTK.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-QPP6BX53.mjs → chunk-KM6UXNC7.mjs} +2 -2
- package/dist/esm/chunk-KM6UXNC7.mjs.map +1 -0
- package/dist/esm/{chunk-PKXEB7XP.mjs → chunk-KRVLR3L4.mjs} +2 -2
- package/dist/esm/chunk-KRVLR3L4.mjs.map +1 -0
- package/dist/esm/{chunk-B6M7QBUO.mjs → chunk-KSKQVOBA.mjs} +2 -2
- package/dist/esm/chunk-KSKQVOBA.mjs.map +1 -0
- package/dist/esm/{chunk-G7MWTE2J.mjs → chunk-KSUZS6EL.mjs} +2 -2
- package/dist/esm/{chunk-YHAPZP5A.mjs → chunk-L5I7F3NZ.mjs} +2 -2
- package/dist/esm/chunk-L5I7F3NZ.mjs.map +1 -0
- package/dist/esm/{chunk-XONG5JZ4.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-6RZZIOGH.mjs → chunk-LZS7BQ2B.mjs} +2 -2
- package/dist/esm/chunk-LZS7BQ2B.mjs.map +1 -0
- package/dist/esm/{chunk-3YKAGVHZ.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-QIW56MUH.mjs → chunk-NODYW7DM.mjs} +2 -2
- package/dist/esm/chunk-NODYW7DM.mjs.map +1 -0
- package/dist/esm/{chunk-25TIHDS6.mjs → chunk-NV6DHDM3.mjs} +2 -2
- package/dist/esm/chunk-NV6DHDM3.mjs.map +1 -0
- package/dist/esm/{chunk-EV2USF7B.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-N5JNKD5F.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-25NSCK4Q.mjs → chunk-OV5UQ75K.mjs} +2 -2
- package/dist/esm/chunk-OV5UQ75K.mjs.map +1 -0
- package/dist/esm/{chunk-YJCZU6PR.mjs → chunk-OZN3OOJV.mjs} +2 -2
- package/dist/esm/chunk-OZN3OOJV.mjs.map +1 -0
- package/dist/esm/{chunk-WP7WF54Q.mjs → chunk-PCLU4KLY.mjs} +2 -2
- package/dist/esm/chunk-PCLU4KLY.mjs.map +1 -0
- package/dist/esm/{chunk-SR24OGHJ.mjs → chunk-PGZWRY7A.mjs} +2 -2
- package/dist/esm/chunk-PGZWRY7A.mjs.map +1 -0
- package/dist/esm/{chunk-SAPUZZEU.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-OY2IX7HW.mjs → chunk-QBP4XJT5.mjs} +2 -2
- package/dist/esm/chunk-QBP4XJT5.mjs.map +1 -0
- package/dist/esm/{chunk-ZGO2SK6F.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-IYQISVDX.mjs → chunk-QRTZYRH2.mjs} +2 -2
- package/dist/esm/chunk-QRTZYRH2.mjs.map +1 -0
- package/dist/esm/{chunk-NH2S6SB2.mjs → chunk-R3Y6WH2U.mjs} +2 -2
- package/dist/esm/chunk-R3Y6WH2U.mjs.map +1 -0
- package/dist/esm/{chunk-X4KEZTUQ.mjs → chunk-RAXP3STS.mjs} +2 -2
- package/dist/esm/chunk-RAXP3STS.mjs.map +1 -0
- package/dist/esm/{chunk-TVFIUUVY.mjs → chunk-RNAKZVRN.mjs} +2 -2
- package/dist/esm/chunk-RNAKZVRN.mjs.map +1 -0
- package/dist/esm/{chunk-NNRAQP36.mjs → chunk-RUDS7RSB.mjs} +2 -2
- package/dist/esm/chunk-RUDS7RSB.mjs.map +1 -0
- package/dist/esm/{chunk-U67PFBTL.mjs → chunk-S3FVA55H.mjs} +2 -2
- package/dist/esm/chunk-S3FVA55H.mjs.map +1 -0
- package/dist/esm/{chunk-LDFTE4MM.mjs → chunk-TIZL5YVP.mjs} +2 -2
- package/dist/esm/chunk-TIZL5YVP.mjs.map +1 -0
- package/dist/esm/{chunk-EWZ2M5BW.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-555I4YHP.mjs.map → chunk-UI3AKMZX.mjs.map} +1 -1
- package/dist/esm/{chunk-B2CXRZL5.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-KXBIA4KR.mjs → chunk-VQTEGTUQ.mjs} +2 -2
- package/dist/esm/chunk-VQTEGTUQ.mjs.map +1 -0
- package/dist/esm/{chunk-BD6BJETG.mjs → chunk-WIXNX7HY.mjs} +2 -2
- package/dist/esm/chunk-WIXNX7HY.mjs.map +1 -0
- package/dist/esm/{chunk-7V6DEA7G.mjs → chunk-WOOH5MMX.mjs} +2 -2
- package/dist/esm/chunk-WOOH5MMX.mjs.map +1 -0
- package/dist/esm/{chunk-DAJOX4PL.mjs → chunk-WSVOJSAC.mjs} +2 -2
- package/dist/esm/chunk-WSVOJSAC.mjs.map +1 -0
- package/dist/esm/{chunk-L5NY7TMI.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-DAXKRXRK.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-STGYDB5E.mjs → chunk-Z36WHOZV.mjs} +2 -2
- package/dist/esm/chunk-Z36WHOZV.mjs.map +1 -0
- package/dist/esm/{chunk-LXLISEQ4.mjs → chunk-ZINOJTLU.mjs} +2 -2
- package/dist/esm/chunk-ZINOJTLU.mjs.map +1 -0
- package/dist/esm/{chunk-46D5QX3G.mjs → chunk-ZS3EWM5A.mjs} +2 -2
- package/dist/esm/chunk-ZS3EWM5A.mjs.map +1 -0
- package/dist/esm/{chunk-QLN2URFX.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 +3 -2
- package/src/account/AbstractKeylessAccount.ts +4 -3
- 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 +1 -1
- package/src/account/KeylessAccount.ts +37 -1
- 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 +22 -7
- 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 +153 -40
- 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-25NSCK4Q.mjs.map +0 -1
- package/dist/esm/chunk-25TIHDS6.mjs.map +0 -1
- package/dist/esm/chunk-2TQIU7CG.mjs.map +0 -1
- package/dist/esm/chunk-3MCYLML2.mjs +0 -2
- package/dist/esm/chunk-3MCYLML2.mjs.map +0 -1
- package/dist/esm/chunk-3YKAGVHZ.mjs.map +0 -1
- package/dist/esm/chunk-44GYWUSH.mjs.map +0 -1
- package/dist/esm/chunk-46D5QX3G.mjs.map +0 -1
- package/dist/esm/chunk-555I4YHP.mjs +0 -2
- package/dist/esm/chunk-5655UVIK.mjs.map +0 -1
- package/dist/esm/chunk-6EMN3BOV.mjs.map +0 -1
- package/dist/esm/chunk-6QGVRNV6.mjs +0 -2
- package/dist/esm/chunk-6QGVRNV6.mjs.map +0 -1
- package/dist/esm/chunk-6RZZIOGH.mjs.map +0 -1
- package/dist/esm/chunk-7V6DEA7G.mjs.map +0 -1
- package/dist/esm/chunk-7ZLBJUVZ.mjs.map +0 -1
- package/dist/esm/chunk-AFOPNDOJ.mjs.map +0 -1
- package/dist/esm/chunk-AH44UPM4.mjs.map +0 -1
- package/dist/esm/chunk-B2CXRZL5.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-B6M7QBUO.mjs.map +0 -1
- package/dist/esm/chunk-BCUSI3N6.mjs.map +0 -1
- package/dist/esm/chunk-BD6BJETG.mjs.map +0 -1
- package/dist/esm/chunk-BF4ZE37Q.mjs +0 -2
- package/dist/esm/chunk-BF4ZE37Q.mjs.map +0 -1
- package/dist/esm/chunk-BKEJMQQ6.mjs +0 -2
- package/dist/esm/chunk-BKEJMQQ6.mjs.map +0 -1
- package/dist/esm/chunk-BRFHAO2Y.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-CCMHWJ3Q.mjs +0 -2
- package/dist/esm/chunk-CCMHWJ3Q.mjs.map +0 -1
- package/dist/esm/chunk-CPPBQDHB.mjs.map +0 -1
- package/dist/esm/chunk-CVDR5SJR.mjs.map +0 -1
- package/dist/esm/chunk-DAJOX4PL.mjs.map +0 -1
- package/dist/esm/chunk-DAXKRXRK.mjs.map +0 -1
- package/dist/esm/chunk-DF4WKSTK.mjs.map +0 -1
- package/dist/esm/chunk-E37YRKWK.mjs.map +0 -1
- package/dist/esm/chunk-ECWOLU5T.mjs.map +0 -1
- package/dist/esm/chunk-EV2USF7B.mjs.map +0 -1
- package/dist/esm/chunk-EWZ2M5BW.mjs.map +0 -1
- package/dist/esm/chunk-EXP5STXZ.mjs.map +0 -1
- package/dist/esm/chunk-FRGXKOU5.mjs.map +0 -1
- package/dist/esm/chunk-GFGX3QDP.mjs.map +0 -1
- package/dist/esm/chunk-GGR3P2TG.mjs +0 -2
- package/dist/esm/chunk-GGR3P2TG.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-HPZ2S4FE.mjs +0 -2
- package/dist/esm/chunk-HPZ2S4FE.mjs.map +0 -1
- package/dist/esm/chunk-HSPBA2TZ.mjs.map +0 -1
- package/dist/esm/chunk-IMGLHDIA.mjs +0 -2
- package/dist/esm/chunk-IMGLHDIA.mjs.map +0 -1
- package/dist/esm/chunk-IYQISVDX.mjs.map +0 -1
- package/dist/esm/chunk-K2O24YLZ.mjs.map +0 -1
- package/dist/esm/chunk-KA6FZNWP.mjs +0 -2
- package/dist/esm/chunk-KA6FZNWP.mjs.map +0 -1
- package/dist/esm/chunk-KEYAPEAX.mjs.map +0 -1
- package/dist/esm/chunk-KXBIA4KR.mjs.map +0 -1
- package/dist/esm/chunk-KYSDF3CA.mjs.map +0 -1
- package/dist/esm/chunk-L5NY7TMI.mjs.map +0 -1
- package/dist/esm/chunk-LDFTE4MM.mjs.map +0 -1
- package/dist/esm/chunk-LG3DAAPD.mjs +0 -2
- package/dist/esm/chunk-LG3DAAPD.mjs.map +0 -1
- package/dist/esm/chunk-LG7RJQ57.mjs.map +0 -1
- package/dist/esm/chunk-LGD5KU56.mjs +0 -2
- package/dist/esm/chunk-LGD5KU56.mjs.map +0 -1
- package/dist/esm/chunk-LR65XHSF.mjs.map +0 -1
- package/dist/esm/chunk-LXLISEQ4.mjs.map +0 -1
- package/dist/esm/chunk-M2QV232A.mjs +0 -2
- package/dist/esm/chunk-M2QV232A.mjs.map +0 -1
- package/dist/esm/chunk-MEWFJJJN.mjs +0 -2
- package/dist/esm/chunk-MEWFJJJN.mjs.map +0 -1
- package/dist/esm/chunk-MO4IZXLK.mjs.map +0 -1
- package/dist/esm/chunk-MS4MRLGA.mjs.map +0 -1
- package/dist/esm/chunk-N5JNKD5F.mjs.map +0 -1
- package/dist/esm/chunk-NH2S6SB2.mjs.map +0 -1
- package/dist/esm/chunk-NMD45OTM.mjs.map +0 -1
- package/dist/esm/chunk-NNRAQP36.mjs.map +0 -1
- package/dist/esm/chunk-OY2IX7HW.mjs.map +0 -1
- package/dist/esm/chunk-PKXEB7XP.mjs.map +0 -1
- package/dist/esm/chunk-PNXUYOYI.mjs +0 -2
- package/dist/esm/chunk-PNXUYOYI.mjs.map +0 -1
- package/dist/esm/chunk-PUZ25PTD.mjs.map +0 -1
- package/dist/esm/chunk-Q4XR6QOZ.mjs +0 -2
- package/dist/esm/chunk-QCUFTD7K.mjs.map +0 -1
- package/dist/esm/chunk-QDIKOQRK.mjs +0 -2
- package/dist/esm/chunk-QDIKOQRK.mjs.map +0 -1
- package/dist/esm/chunk-QIW56MUH.mjs.map +0 -1
- package/dist/esm/chunk-QLN2URFX.mjs.map +0 -1
- package/dist/esm/chunk-QPP6BX53.mjs.map +0 -1
- package/dist/esm/chunk-RNTXQYJQ.mjs.map +0 -1
- package/dist/esm/chunk-SAPUZZEU.mjs.map +0 -1
- package/dist/esm/chunk-SR24OGHJ.mjs.map +0 -1
- package/dist/esm/chunk-SRPI2FFA.mjs.map +0 -1
- package/dist/esm/chunk-STGYDB5E.mjs.map +0 -1
- package/dist/esm/chunk-SWHLSREF.mjs.map +0 -1
- package/dist/esm/chunk-TDGQGILY.mjs.map +0 -1
- package/dist/esm/chunk-TL7DR54X.mjs.map +0 -1
- package/dist/esm/chunk-TMW2HIXC.mjs.map +0 -1
- package/dist/esm/chunk-TS3PYRAT.mjs.map +0 -1
- package/dist/esm/chunk-TVFIUUVY.mjs.map +0 -1
- package/dist/esm/chunk-U67PFBTL.mjs.map +0 -1
- package/dist/esm/chunk-U6Z4FNB7.mjs.map +0 -1
- package/dist/esm/chunk-UAL27G6B.mjs.map +0 -1
- package/dist/esm/chunk-WP7WF54Q.mjs.map +0 -1
- package/dist/esm/chunk-WS4RPKL6.mjs +0 -2
- package/dist/esm/chunk-WS4RPKL6.mjs.map +0 -1
- package/dist/esm/chunk-WWZ3METZ.mjs.map +0 -1
- package/dist/esm/chunk-X4KEZTUQ.mjs.map +0 -1
- package/dist/esm/chunk-XH7YKEYR.mjs.map +0 -1
- package/dist/esm/chunk-XK3JFCP3.mjs.map +0 -1
- package/dist/esm/chunk-XONG5JZ4.mjs.map +0 -1
- package/dist/esm/chunk-XXHW3ZT3.mjs.map +0 -1
- package/dist/esm/chunk-Y7F2V3R6.mjs.map +0 -1
- package/dist/esm/chunk-YHAPZP5A.mjs.map +0 -1
- package/dist/esm/chunk-YJCZU6PR.mjs.map +0 -1
- package/dist/esm/chunk-ZGO2SK6F.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-G7MWTE2J.mjs.map → chunk-KSUZS6EL.mjs.map} +0 -0
|
@@ -1,35 +1,51 @@
|
|
|
1
1
|
import { ChildProcessWithoutNullStreams } from 'child_process';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Represents a local node for running a testnet environment.
|
|
5
|
+
* This class provides methods to start, stop, and check the status of the local testnet process.
|
|
6
|
+
* It manages the lifecycle of the node process and ensures that it is operational before executing tests.
|
|
7
|
+
*/
|
|
3
8
|
declare class LocalNode {
|
|
4
9
|
readonly MAXIMUM_WAIT_TIME_SEC = 75;
|
|
5
10
|
readonly READINESS_ENDPOINT = "http://127.0.0.1:8070/";
|
|
11
|
+
showStdout: boolean;
|
|
6
12
|
process: ChildProcessWithoutNullStreams | null;
|
|
13
|
+
constructor(args?: {
|
|
14
|
+
showStdout?: boolean;
|
|
15
|
+
});
|
|
7
16
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
17
|
+
* Kills the current process and all its descendant processes.
|
|
18
|
+
*
|
|
19
|
+
* @returns {Promise<void>} A promise that resolves to true if the process was successfully killed.
|
|
20
|
+
* @throws {Error} If there is an error while attempting to kill the process.
|
|
10
21
|
*/
|
|
11
22
|
stop(): Promise<void>;
|
|
12
23
|
/**
|
|
13
|
-
* Runs a local testnet and waits for process to be up.
|
|
24
|
+
* Runs a local testnet and waits for the process to be up.
|
|
25
|
+
* If the local node process is already running, it returns without starting the process.
|
|
14
26
|
*
|
|
15
|
-
*
|
|
16
|
-
* not start the process
|
|
27
|
+
* @returns {Promise<void>} A promise that resolves when the process is up.
|
|
17
28
|
*/
|
|
18
29
|
run(): Promise<void>;
|
|
19
30
|
/**
|
|
20
|
-
* Starts the local testnet by running the
|
|
31
|
+
* Starts the local testnet by running the Aptos node with the specified command-line arguments.
|
|
32
|
+
*
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*
|
|
35
|
+
* @throws {Error} If there is an issue starting the local testnet.
|
|
21
36
|
*/
|
|
22
37
|
start(): void;
|
|
23
38
|
/**
|
|
24
|
-
* Waits for the local testnet process to be
|
|
39
|
+
* Waits for the local testnet process to be operational within a specified maximum wait time.
|
|
40
|
+
* This function continuously checks if the process is up and will throw an error if it fails to start.
|
|
25
41
|
*
|
|
26
|
-
* @returns Promise<boolean>
|
|
42
|
+
* @returns Promise<boolean> - Resolves to true if the process is up, otherwise throws an error.
|
|
27
43
|
*/
|
|
28
44
|
waitUntilProcessIsUp(): Promise<boolean>;
|
|
29
45
|
/**
|
|
30
|
-
* Checks if the local testnet is up
|
|
46
|
+
* Checks if the local testnet is up by querying the readiness endpoint.
|
|
31
47
|
*
|
|
32
|
-
* @returns Promise<boolean>
|
|
48
|
+
* @returns Promise<boolean> - A promise that resolves to true if the testnet is up, otherwise false.
|
|
33
49
|
*/
|
|
34
50
|
checkIfProcessIsUp(): Promise<boolean>;
|
|
35
51
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-XOCRDV2V.mjs";import"../chunk-LEKBJ2EG.mjs";import"../chunk-KDMSOCZY.mjs";export{a as LocalNode};
|
|
2
2
|
//# sourceMappingURL=localNode.mjs.map
|
package/dist/esm/cli/move.d.mts
CHANGED
|
@@ -10,85 +10,78 @@ import '../types/generated/types.mjs';
|
|
|
10
10
|
import '../bcs/deserializer.mjs';
|
|
11
11
|
import '../transactions/instances/transactionArgument.mjs';
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Class representing a Move package management utility for the Aptos blockchain.
|
|
15
|
+
* This class provides methods to initialize directories, compile packages, run tests, publish modules, create objects, upgrade
|
|
16
|
+
* packages, build transaction payloads, and run scripts.
|
|
17
|
+
*/
|
|
13
18
|
declare class Move {
|
|
14
19
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @param args
|
|
19
|
-
* @param args.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @
|
|
23
|
-
* ["--assume-yes","--gas-unit-price=10"]
|
|
24
|
-
*
|
|
20
|
+
* Initialize the current directory for Aptos by configuring the necessary settings.
|
|
21
|
+
* Configuration will be pushed into .aptos/config.yaml.
|
|
22
|
+
*
|
|
23
|
+
* @param args - The arguments for initialization.
|
|
24
|
+
* @param args.network - Optional Network type argument to use for default settings; defaults to local.
|
|
25
|
+
* @param args.profile - Optional Profile to use from the config file; defaults to 'default'. This will override associated
|
|
26
|
+
* settings such as the REST URL, the Faucet URL, and the private key arguments.
|
|
27
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
28
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"]
|
|
25
29
|
* @returns stdout
|
|
26
30
|
*/
|
|
27
31
|
init(args: {
|
|
28
32
|
network?: Network;
|
|
29
33
|
profile?: string;
|
|
30
34
|
extraArguments?: Array<string>;
|
|
35
|
+
showStdout?: boolean;
|
|
31
36
|
}): Promise<{
|
|
32
37
|
output: string;
|
|
33
38
|
}>;
|
|
34
39
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* @param args
|
|
39
|
-
* @param args.
|
|
40
|
-
* @
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* {
|
|
44
|
-
* alice:0x1234, bob:0x5678
|
|
45
|
-
* }
|
|
46
|
-
*
|
|
40
|
+
* Compile a Move package located at the specified directory path.
|
|
41
|
+
* This function helps in preparing the Move package for deployment or further processing.
|
|
42
|
+
*
|
|
43
|
+
* @param args - The arguments for compiling the package.
|
|
44
|
+
* @param args.packageDirectoryPath - Path to a Move package (the folder with a Move.toml file).
|
|
45
|
+
* @param args.namedAddresses - Named addresses for the move binary. Ex. { alice: 0x1234, bob: 0x5678 }
|
|
46
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
47
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"]
|
|
47
48
|
* @returns stdout
|
|
48
49
|
*/
|
|
49
50
|
compile(args: {
|
|
50
51
|
packageDirectoryPath: string;
|
|
51
52
|
namedAddresses: Record<string, AccountAddress>;
|
|
52
53
|
extraArguments?: Array<string>;
|
|
54
|
+
showStdout?: boolean;
|
|
53
55
|
}): Promise<{
|
|
54
56
|
output: string;
|
|
55
57
|
}>;
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* @param args
|
|
60
|
-
* @param args.
|
|
61
|
-
* @
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
|
|
66
|
-
* @example
|
|
67
|
-
* ["--assume-yes","--gas-unit-price=10"]
|
|
68
|
-
*
|
|
69
|
-
* @returns stdout
|
|
59
|
+
* Run Move unit tests for a specified package.
|
|
60
|
+
*
|
|
61
|
+
* @param args - The arguments for running the tests.
|
|
62
|
+
* @param args.packageDirectoryPath - The path to a Move package (the folder containing a Move.toml file).
|
|
63
|
+
* @param args.namedAddresses - Named addresses for the move binary. Ex. { alice: 0x1234, bob: 0x5678 }
|
|
64
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
65
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"]
|
|
66
|
+
* @returns The stdout output from running the tests.
|
|
70
67
|
*/
|
|
71
68
|
test(args: {
|
|
72
69
|
packageDirectoryPath: string;
|
|
73
70
|
namedAddresses: Record<string, AccountAddress>;
|
|
74
71
|
extraArguments?: Array<string>;
|
|
72
|
+
showStdout?: boolean;
|
|
75
73
|
}): Promise<{
|
|
76
74
|
output: string;
|
|
77
75
|
}>;
|
|
78
76
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* @param args
|
|
82
|
-
* @param args.
|
|
83
|
-
* @
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* @param args.profile optional Profile to use from the config file.
|
|
88
|
-
* @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
|
|
89
|
-
* @example
|
|
90
|
-
* ["--assume-yes","--gas-unit-price=10"]
|
|
91
|
-
*
|
|
77
|
+
* Publishes the modules to the publisher account on the Aptos blockchain.
|
|
78
|
+
*
|
|
79
|
+
* @param args - The arguments for publishing the modules.
|
|
80
|
+
* @param args.packageDirectoryPath - The path to a move package (the folder with a Move.toml file).
|
|
81
|
+
* @param args.namedAddresses - Named addresses for the move binary. Ex. { alice: 0x1234, bob: 0x5678 }
|
|
82
|
+
* @param args.profile - Optional profile to use from the config file.
|
|
83
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
84
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"]
|
|
92
85
|
* @returns stdout
|
|
93
86
|
*/
|
|
94
87
|
publish(args: {
|
|
@@ -96,34 +89,29 @@ declare class Move {
|
|
|
96
89
|
namedAddresses: Record<string, AccountAddress>;
|
|
97
90
|
profile?: string;
|
|
98
91
|
extraArguments?: Array<string>;
|
|
92
|
+
showStdout?: boolean;
|
|
99
93
|
}): Promise<{
|
|
100
94
|
output: string;
|
|
101
95
|
}>;
|
|
102
96
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @param args
|
|
106
|
-
* @param args.
|
|
107
|
-
* @
|
|
108
|
-
*
|
|
109
|
-
* @param args.
|
|
110
|
-
* @
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
|
|
116
|
-
* @example
|
|
117
|
-
* ["--assume-yes","--gas-unit-price=10"]
|
|
118
|
-
*
|
|
119
|
-
* A complete example in cli
|
|
97
|
+
* Create a new object and publish the Move package to it on the Aptos blockchain.
|
|
98
|
+
*
|
|
99
|
+
* @param args - The arguments for creating the object and publishing the package.
|
|
100
|
+
* @param args.packageDirectoryPath - Path to a Move package (the folder with a Move.toml file).
|
|
101
|
+
* @param args.addressName - Address name for the Move package.
|
|
102
|
+
* @param args.namedAddresses - Named addresses for the Move binary.
|
|
103
|
+
* @param args.profile - Optional profile to use from the config file.
|
|
104
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
105
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"]
|
|
106
|
+
* @returns The object address.
|
|
107
|
+
*
|
|
108
|
+
* A complete example in CLI:
|
|
120
109
|
* aptos move create-object-and-publish-package \
|
|
121
110
|
* --package-dir path_to_directory_that_has_move.toml \
|
|
122
111
|
* --address-name launchpad_addr \
|
|
123
|
-
* --named-addresses "launchpad_addr=0x123,initial_creator_addr=0x456"\
|
|
112
|
+
* --named-addresses "launchpad_addr=0x123,initial_creator_addr=0x456" \
|
|
124
113
|
* --profile my_profile \
|
|
125
114
|
* --assume-yes
|
|
126
|
-
* @returns object address
|
|
127
115
|
*/
|
|
128
116
|
createObjectAndPublishPackage(args: {
|
|
129
117
|
packageDirectoryPath: string;
|
|
@@ -131,27 +119,21 @@ declare class Move {
|
|
|
131
119
|
namedAddresses: Record<string, AccountAddress>;
|
|
132
120
|
profile?: string;
|
|
133
121
|
extraArguments?: Array<string>;
|
|
122
|
+
showStdout?: boolean;
|
|
134
123
|
}): Promise<{
|
|
135
124
|
objectAddress: string;
|
|
136
125
|
}>;
|
|
137
126
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* @param args
|
|
142
|
-
* @param args.
|
|
143
|
-
* @
|
|
144
|
-
*
|
|
145
|
-
* @param args.
|
|
146
|
-
* @
|
|
147
|
-
*
|
|
148
|
-
* alice:0x1234, bob:0x5678
|
|
149
|
-
* }
|
|
150
|
-
* @param args.profile optional Profile to use from the config file.
|
|
151
|
-
* @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
|
|
152
|
-
* @example
|
|
153
|
-
* ["--assume-yes","--gas-unit-price=10"]
|
|
154
|
-
*
|
|
127
|
+
* Upgrade a Move package previously published to an object on the Aptos blockchain.
|
|
128
|
+
* The caller must be the object owner to execute this function.
|
|
129
|
+
*
|
|
130
|
+
* @param args - The arguments for upgrading the object package.
|
|
131
|
+
* @param args.packageDirectoryPath - Path to a Move package (the folder with a Move.toml file).
|
|
132
|
+
* @param args.objectAddress - Address of the object that the Move package published to. Ex. 0x1000
|
|
133
|
+
* @param args.namedAddresses - Named addresses for the move binary. Ex. { alice: 0x1234, bob: 0x5678 }
|
|
134
|
+
* @param args.profile - Optional profile to use from the config file.
|
|
135
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
136
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"]
|
|
155
137
|
* @returns stdout
|
|
156
138
|
*/
|
|
157
139
|
upgradeObjectPackage(args: {
|
|
@@ -160,23 +142,19 @@ declare class Move {
|
|
|
160
142
|
namedAddresses: Record<string, AccountAddress>;
|
|
161
143
|
profile?: string;
|
|
162
144
|
extraArguments?: Array<string>;
|
|
145
|
+
showStdout?: boolean;
|
|
163
146
|
}): Promise<{
|
|
164
147
|
output: string;
|
|
165
148
|
}>;
|
|
166
149
|
/**
|
|
167
|
-
* Build a publication transaction payload and store it in a JSON output file
|
|
168
|
-
*
|
|
169
|
-
* @param args
|
|
170
|
-
* @param args.
|
|
171
|
-
* @param args.
|
|
172
|
-
* @
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
* }
|
|
176
|
-
* @param args.extraArguments (optional) Any extra arguments to include in the form of an array of strings
|
|
177
|
-
* @example
|
|
178
|
-
* ["--assume-yes","--gas-unit-price=10"]
|
|
179
|
-
*
|
|
150
|
+
* Build a publication transaction payload and store it in a JSON output file.
|
|
151
|
+
*
|
|
152
|
+
* @param args - The arguments for building the publishing payload.
|
|
153
|
+
* @param args.packageDirectoryPath - Path to a move package (the folder with a Move.toml file).
|
|
154
|
+
* @param args.outputFile - Output file to write the publication transaction to.
|
|
155
|
+
* @param args.namedAddresses - Named addresses for the move binary. Ex. { alice: 0x1234, bob: 0x5678 }
|
|
156
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
157
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"] *
|
|
180
158
|
* @returns stdout
|
|
181
159
|
*/
|
|
182
160
|
buildPublishPayload(args: {
|
|
@@ -184,60 +162,63 @@ declare class Move {
|
|
|
184
162
|
outputFile: string;
|
|
185
163
|
namedAddresses: Record<string, AccountAddress>;
|
|
186
164
|
extraArguments?: Array<string>;
|
|
165
|
+
showStdout?: boolean;
|
|
187
166
|
}): Promise<{
|
|
188
167
|
output: string;
|
|
189
168
|
}>;
|
|
190
169
|
/**
|
|
191
|
-
*
|
|
170
|
+
* Runs a Move script using the provided compiled script path and optional parameters. Ensure that the script is compiled
|
|
171
|
+
* before executing this function.
|
|
192
172
|
*
|
|
193
|
-
* @param args
|
|
194
|
-
* @param args.
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* @param args.
|
|
198
|
-
*
|
|
199
|
-
* @example
|
|
200
|
-
* ["--assume-yes","--gas-unit-price=10"]
|
|
173
|
+
* @param args - The arguments for running the script.
|
|
174
|
+
* @param args.compiledScriptPath - Path to a compiled Move script bytecode file.
|
|
175
|
+
* Ex. "build/my_package/bytecode_scripts/my_move_script.mv"
|
|
176
|
+
* @param args.profile - Optional profile to use from the config file.
|
|
177
|
+
* @param args.extraArguments - Optional extra arguments to include in the form of an array of strings.
|
|
178
|
+
* Ex. ["--assume-yes","--gas-unit-price=10"]
|
|
201
179
|
*
|
|
202
|
-
* @returns
|
|
180
|
+
* @returns The standard output from running the script.
|
|
203
181
|
*/
|
|
204
182
|
runScript(args: {
|
|
205
183
|
compiledScriptPath: string;
|
|
206
184
|
profile?: string;
|
|
207
185
|
extraArguments?: Array<string>;
|
|
186
|
+
showStdout?: boolean;
|
|
208
187
|
}): Promise<{
|
|
209
188
|
output: string;
|
|
210
189
|
}>;
|
|
211
190
|
/**
|
|
212
|
-
* Run a
|
|
191
|
+
* Run a command with the specified arguments and return the output.
|
|
213
192
|
*
|
|
214
|
-
* @param args
|
|
215
|
-
* @
|
|
193
|
+
* @param args - An array of strings representing the command-line arguments to be passed to the command.
|
|
194
|
+
* @param showStdout - Show the standard output generated by the command.
|
|
195
|
+
* @returns The standard output generated by the command.
|
|
216
196
|
*/
|
|
217
197
|
private runCommand;
|
|
218
198
|
/**
|
|
219
|
-
* Convert named addresses from a Map into an array
|
|
199
|
+
* Convert named addresses from a Map into an array separated by a comma.
|
|
220
200
|
*
|
|
221
|
-
* @
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
* @param namedAddresses
|
|
226
|
-
* @returns An array of names addresses seperated by a comma
|
|
201
|
+
* @param namedAddresses - A Map where the key is a string representing the name and the value is an AccountAddress.
|
|
202
|
+
* Ex. {'alice' => '0x123', 'bob' => '0x456'}
|
|
203
|
+
* @returns An array of named addresses formatted as strings separated by a comma. Ex. "alice=0x123,bob=0x456"
|
|
227
204
|
*/
|
|
228
205
|
private prepareNamedAddresses;
|
|
229
206
|
/**
|
|
230
|
-
* Parse named addresses from a Record type into a Map
|
|
207
|
+
* Parse named addresses from a Record type into a Map.
|
|
208
|
+
*
|
|
209
|
+
* This function transforms a collection of named addresses into a more accessible format by mapping each name to its
|
|
210
|
+
* corresponding address.
|
|
231
211
|
*
|
|
232
|
-
* @param namedAddresses
|
|
233
|
-
* @returns Map
|
|
212
|
+
* @param namedAddresses - A record containing named addresses where the key is the name and the value is the AccountAddress.
|
|
213
|
+
* @returns A Map where each key is a name and each value is the corresponding address.
|
|
234
214
|
*/
|
|
235
215
|
private parseNamedAddresses;
|
|
236
216
|
/**
|
|
237
|
-
*
|
|
217
|
+
* Extracts the object address from the provided output string.
|
|
238
218
|
*
|
|
239
|
-
* @param output
|
|
240
|
-
* @returns object address
|
|
219
|
+
* @param output - The output string containing the object address.
|
|
220
|
+
* @returns The extracted object address.
|
|
221
|
+
* @throws Error if the object address cannot be extracted from the output.
|
|
241
222
|
*/
|
|
242
223
|
private extractAddressFromOutput;
|
|
243
224
|
}
|
package/dist/esm/cli/move.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GPZRGLU2.mjs";import"../chunk-KDMSOCZY.mjs";export{a as Move};
|
|
2
2
|
//# sourceMappingURL=move.mjs.map
|
|
@@ -8,16 +8,31 @@ import '../types/generated/operations.mjs';
|
|
|
8
8
|
import '../types/generated/types.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Sends a request using the specified options and returns the response.
|
|
12
|
+
*
|
|
13
|
+
* @param options - The options for the request.
|
|
14
|
+
* @param options.url - The URL to send the request to.
|
|
15
|
+
* @param options.method - The HTTP method to use for the request.
|
|
16
|
+
* @param options.body - The body of the request.
|
|
17
|
+
* @param options.contentType - The content type of the request.
|
|
18
|
+
* @param options.params - The query parameters to include in the request.
|
|
19
|
+
* @param options.overrides - Additional overrides for the request.
|
|
20
|
+
* @param options.overrides.HEADERS - Custom headers to include in the request.
|
|
21
|
+
* @param options.overrides.AUTH_TOKEN - The authorization token for the request.
|
|
22
|
+
* @param options.overrides.API_KEY - The API key for the request.
|
|
23
|
+
* @param options.originMethod - The origin method for the request.
|
|
24
|
+
* @param client - The client used to make the request.
|
|
25
|
+
*
|
|
26
|
+
* @returns The response from the request.
|
|
13
27
|
*/
|
|
14
28
|
declare function request<Req, Res>(options: ClientRequest<Req>, client: Client): Promise<ClientResponse<Res>>;
|
|
15
29
|
/**
|
|
16
|
-
* The main function to use when
|
|
30
|
+
* The main function to use when making an API request, returning the response or throwing an AptosApiError on failure.
|
|
17
31
|
*
|
|
18
|
-
* @param aptosRequestOpts
|
|
19
|
-
* @param aptosConfig The
|
|
20
|
-
* @
|
|
32
|
+
* @param aptosRequestOpts - Options for the Aptos request, including the URL and path.
|
|
33
|
+
* @param aptosConfig - The configuration information for the SDK client instance.
|
|
34
|
+
* @param apiType - The type of API being accessed, which determines how the response is handled.
|
|
35
|
+
* @returns The response from the API request or throws an AptosApiError if the request fails.
|
|
21
36
|
*/
|
|
22
37
|
declare function aptosRequest<Req extends {}, Res extends {}>(aptosRequestOpts: AptosRequest, aptosConfig: AptosConfig, apiType: AptosApiType): Promise<AptosResponse<Req, Res>>;
|
|
23
38
|
|
package/dist/esm/client/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../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{b as aptosRequest,a as request};
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
|
@@ -7,6 +7,9 @@ import '../types/indexer.mjs';
|
|
|
7
7
|
import '../types/generated/operations.mjs';
|
|
8
8
|
import '../types/generated/types.mjs';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Options for making a GET request, including configuration for the API client.
|
|
12
|
+
*/
|
|
10
13
|
type GetRequestOptions = {
|
|
11
14
|
/**
|
|
12
15
|
* The config for the API client
|
|
@@ -41,20 +44,45 @@ type GetRequestOptions = {
|
|
|
41
44
|
*/
|
|
42
45
|
overrides?: ClientConfig;
|
|
43
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Options for making a request to the Aptos API, excluding the "type" field.
|
|
49
|
+
*/
|
|
44
50
|
type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
|
|
45
51
|
/**
|
|
46
|
-
*
|
|
52
|
+
* Executes a GET request to retrieve data based on the provided options.
|
|
47
53
|
*
|
|
48
|
-
* @param options
|
|
49
|
-
* @
|
|
54
|
+
* @param options - The options for the GET request.
|
|
55
|
+
* @param options.aptosConfig - The configuration object for Aptos requests.
|
|
56
|
+
* @param options.overrides - Optional overrides for the request configuration.
|
|
57
|
+
* @param options.params - Query parameters to include in the request.
|
|
58
|
+
* @param options.contentType - The content type of the request.
|
|
59
|
+
* @param options.acceptType - The accepted response type.
|
|
60
|
+
* @param options.path - The specific path for the request.
|
|
61
|
+
* @param options.originMethod - The original method of the request.
|
|
62
|
+
* @param options.type - The type of request being made.
|
|
63
|
+
* @returns The response from the GET request.
|
|
50
64
|
*/
|
|
51
65
|
declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves data from the Aptos full node using the provided options.
|
|
68
|
+
*
|
|
69
|
+
* @param options - The options for the request to the Aptos full node.
|
|
70
|
+
* @param options.aptosConfig - Configuration settings specific to the Aptos client and full node.
|
|
71
|
+
* @param options.aptosConfig.clientConfig - The client configuration settings.
|
|
72
|
+
* @param options.aptosConfig.fullnodeConfig - The full node configuration settings.
|
|
73
|
+
* @param options.overrides - Additional overrides for the request.
|
|
74
|
+
* @param options.type - The type of API request being made.
|
|
75
|
+
*
|
|
76
|
+
* @returns A promise that resolves with the response from the Aptos full node.
|
|
77
|
+
*/
|
|
52
78
|
declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
53
79
|
/**
|
|
54
|
-
* Makes a
|
|
80
|
+
* Makes a GET request to the Aptos Pepper service to retrieve data.
|
|
55
81
|
*
|
|
56
|
-
* @param options
|
|
57
|
-
* @
|
|
82
|
+
* @param options - The options for the request.
|
|
83
|
+
* @param options.param1 - Description of param1.
|
|
84
|
+
* @param options.param2 - Description of param2.
|
|
85
|
+
* @returns AptosResponse - The response from the Aptos Pepper service.
|
|
58
86
|
*/
|
|
59
87
|
declare function getAptosPepperService<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
60
88
|
declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
|
package/dist/esm/client/get.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-OLPI7QAH.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 get,b as getAptosFullNode,c as getAptosPepperService,d as paginateWithCursor};
|
|
2
2
|
//# sourceMappingURL=get.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f,d as g}from"../chunk-
|
|
1
|
+
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f,d as g}from"../chunk-OLPI7QAH.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m}from"../chunk-WOOH5MMX.mjs";import{a as b,b as c}from"../chunk-CRL4WGOH.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-4CDDWSKZ.mjs";import"../chunk-LEKBJ2EG.mjs";import{a}from"../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 AptosApiError,c as aptosRequest,d as get,e as getAptosFullNode,f as getAptosPepperService,g as paginateWithCursor,h as post,k as postAptosFaucet,i as postAptosFullNode,j as postAptosIndexer,l as postAptosPepperService,m as postAptosProvingService,b as request};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -7,6 +7,9 @@ import '../types/indexer.mjs';
|
|
|
7
7
|
import '../types/generated/operations.mjs';
|
|
8
8
|
import '../types/generated/types.mjs';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Options for making a POST request, including the API client configuration.
|
|
12
|
+
*/
|
|
10
13
|
type PostRequestOptions = {
|
|
11
14
|
/**
|
|
12
15
|
* The config for the API client
|
|
@@ -45,24 +48,78 @@ type PostRequestOptions = {
|
|
|
45
48
|
*/
|
|
46
49
|
overrides?: ClientConfig;
|
|
47
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Options for posting a request to Aptos, excluding the type field.
|
|
53
|
+
*/
|
|
48
54
|
type PostAptosRequestOptions = Omit<PostRequestOptions, "type">;
|
|
49
55
|
/**
|
|
50
|
-
*
|
|
56
|
+
* Executes a POST request to the specified URL with the provided options.
|
|
51
57
|
*
|
|
52
|
-
* @param options
|
|
53
|
-
* @
|
|
58
|
+
* @param options - The options for the POST request.
|
|
59
|
+
* @param options.type - The type of the request.
|
|
60
|
+
* @param options.originMethod - The original method that initiated the request.
|
|
61
|
+
* @param options.path - The path for the request.
|
|
62
|
+
* @param options.body - The body content to be sent with the request.
|
|
63
|
+
* @param options.acceptType - The type of response expected from the server.
|
|
64
|
+
* @param options.contentType - The content type of the request body.
|
|
65
|
+
* @param options.params - Additional parameters to include in the request.
|
|
66
|
+
* @param options.aptosConfig - Configuration settings for the Aptos request.
|
|
67
|
+
* @param options.overrides - Any overrides for the default request behavior.
|
|
68
|
+
* @returns The response from the POST request.
|
|
54
69
|
*/
|
|
55
70
|
declare function post<Req extends {}, Res extends {}>(options: PostRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
71
|
+
/**
|
|
72
|
+
* Sends a request to the Aptos full node using the specified options.
|
|
73
|
+
* This function allows you to interact with the Aptos blockchain by sending requests to the full node.
|
|
74
|
+
*
|
|
75
|
+
* @param options - The options for the request.
|
|
76
|
+
* @param options.aptosConfig - Configuration settings for the Aptos client.
|
|
77
|
+
* @param options.aptosConfig.clientConfig - Client-specific configuration settings.
|
|
78
|
+
* @param options.aptosConfig.fullnodeConfig - Full node-specific configuration settings.
|
|
79
|
+
* @param options.overrides - Additional overrides for the request.
|
|
80
|
+
*/
|
|
56
81
|
declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
82
|
+
/**
|
|
83
|
+
* Sends a request to the Aptos indexer with the specified options.
|
|
84
|
+
* This function allows you to interact with the Aptos indexer and customize the request using various configurations.
|
|
85
|
+
*
|
|
86
|
+
* @param options - The options for the request to the Aptos indexer.
|
|
87
|
+
* @param options.aptosConfig - Configuration settings specific to the Aptos client and indexer.
|
|
88
|
+
* @param options.aptosConfig.clientConfig - The client configuration settings.
|
|
89
|
+
* @param options.aptosConfig.indexerConfig - The indexer configuration settings.
|
|
90
|
+
* @param options.overrides - Additional overrides for the request.
|
|
91
|
+
* @param options.overrides.HEADERS - Custom headers to include in the request.
|
|
92
|
+
*/
|
|
57
93
|
declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
94
|
+
/**
|
|
95
|
+
* Sends a request to the Aptos faucet to obtain test tokens.
|
|
96
|
+
* This function modifies the provided configuration to ensure that the API_KEY is not included in the request.
|
|
97
|
+
*
|
|
98
|
+
* @param options - The options for the request.
|
|
99
|
+
* @param options.aptosConfig - The configuration settings for the Aptos client.
|
|
100
|
+
* @param options.aptosConfig.clientConfig - The client-specific configuration settings.
|
|
101
|
+
* @param options.aptosConfig.clientConfig.HEADERS - Optional headers to include in the request.
|
|
102
|
+
* @param options.aptosConfig.faucetConfig - The configuration settings specific to the faucet.
|
|
103
|
+
* @param options.overrides - Additional overrides for the request configuration.
|
|
104
|
+
*/
|
|
58
105
|
declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
59
106
|
/**
|
|
60
|
-
* Makes a post request to the pepper service
|
|
107
|
+
* Makes a post request to the pepper service.
|
|
61
108
|
*
|
|
62
|
-
* @param options
|
|
63
|
-
* @
|
|
109
|
+
* @param options - The options for the request.
|
|
110
|
+
* @param options.url - The URL to which the request is sent.
|
|
111
|
+
* @param options.headers - The headers to include in the request.
|
|
112
|
+
* @param options.body - The body of the request.
|
|
113
|
+
* @returns A promise that resolves to the response from the pepper service.
|
|
64
114
|
*/
|
|
65
115
|
declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
116
|
+
/**
|
|
117
|
+
* Sends a request to the Aptos proving service with the specified options.
|
|
118
|
+
*
|
|
119
|
+
* @param options - The options for the request to the Aptos proving service.
|
|
120
|
+
* @param options.type - The type of the request, which should be set to AptosApiType.PROVER.
|
|
121
|
+
* @param options.data - The data to be included in the request.
|
|
122
|
+
*/
|
|
66
123
|
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
67
124
|
|
|
68
125
|
export { type PostAptosRequestOptions, type PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService };
|