@aptos-labs/ts-sdk 1.29.1 → 1.31.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 +5919 -1627
- package/dist/common/index.js +11 -9
- 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 +448 -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 +86 -14
- 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-22ZSW5EN.mjs +2 -0
- package/dist/esm/chunk-22ZSW5EN.mjs.map +1 -0
- package/dist/esm/{chunk-7V6DEA7G.mjs → chunk-2652SPOM.mjs} +2 -2
- package/dist/esm/chunk-2652SPOM.mjs.map +1 -0
- package/dist/esm/chunk-2CGJLPHP.mjs +2 -0
- package/dist/esm/{chunk-555I4YHP.mjs.map → chunk-2CGJLPHP.mjs.map} +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-PUZ25PTD.mjs → chunk-2GEIHUHT.mjs} +2 -2
- package/dist/esm/chunk-2GEIHUHT.mjs.map +1 -0
- package/dist/esm/{chunk-FRGXKOU5.mjs → chunk-3H5DGQKX.mjs} +2 -2
- package/dist/esm/chunk-3H5DGQKX.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-L5NY7TMI.mjs → chunk-4JXB6V5O.mjs} +2 -2
- package/dist/esm/chunk-4JXB6V5O.mjs.map +1 -0
- package/dist/esm/{chunk-5655UVIK.mjs → chunk-4LKLOUMG.mjs} +2 -2
- package/dist/esm/chunk-4LKLOUMG.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-4VU2ABLU.mjs +2 -0
- package/dist/esm/chunk-4VU2ABLU.mjs.map +1 -0
- package/dist/esm/{chunk-25NSCK4Q.mjs → chunk-4ZK3JNQT.mjs} +2 -2
- package/dist/esm/chunk-4ZK3JNQT.mjs.map +1 -0
- package/dist/esm/{chunk-SWHLSREF.mjs → chunk-5N6KJ7KS.mjs} +2 -2
- package/dist/esm/chunk-5N6KJ7KS.mjs.map +1 -0
- package/dist/esm/{chunk-WWZ3METZ.mjs → chunk-5S3Z7MT4.mjs} +2 -2
- package/dist/esm/chunk-5S3Z7MT4.mjs.map +1 -0
- package/dist/esm/{chunk-46D5QX3G.mjs → chunk-5SGSPCOY.mjs} +2 -2
- package/dist/esm/chunk-5SGSPCOY.mjs.map +1 -0
- package/dist/esm/chunk-6DMDYBV6.mjs +2 -0
- package/dist/esm/chunk-6DMDYBV6.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-BRFHAO2Y.mjs → chunk-73GCGRFW.mjs} +2 -2
- package/dist/esm/chunk-73GCGRFW.mjs.map +1 -0
- package/dist/esm/{chunk-XK3JFCP3.mjs → chunk-7JK7UG4E.mjs} +2 -2
- package/dist/esm/chunk-7JK7UG4E.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-RNTXQYJQ.mjs → chunk-A2AEFKXS.mjs} +2 -2
- package/dist/esm/chunk-A2AEFKXS.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-AITN3DO4.mjs +2 -0
- package/dist/esm/chunk-AITN3DO4.mjs.map +1 -0
- package/dist/esm/{chunk-OY2IX7HW.mjs → chunk-AT2ZGTXQ.mjs} +2 -2
- package/dist/esm/chunk-AT2ZGTXQ.mjs.map +1 -0
- package/dist/esm/{chunk-TVFIUUVY.mjs → chunk-AZ6LVQEG.mjs} +2 -2
- package/dist/esm/chunk-AZ6LVQEG.mjs.map +1 -0
- package/dist/esm/chunk-BAGUHYFD.mjs +2 -0
- package/dist/esm/chunk-BAGUHYFD.mjs.map +1 -0
- package/dist/esm/{chunk-EWZ2M5BW.mjs → chunk-BG2TZI3H.mjs} +2 -2
- package/dist/esm/chunk-BG2TZI3H.mjs.map +1 -0
- package/dist/esm/chunk-BOWPP6YG.mjs +2 -0
- package/dist/esm/chunk-BOWPP6YG.mjs.map +1 -0
- package/dist/esm/{chunk-GFGX3QDP.mjs → chunk-BVVHGSWC.mjs} +2 -2
- package/dist/esm/chunk-BVVHGSWC.mjs.map +1 -0
- package/dist/esm/{chunk-BD6BJETG.mjs → chunk-CC7VOPYH.mjs} +2 -2
- package/dist/esm/chunk-CC7VOPYH.mjs.map +1 -0
- package/dist/esm/{chunk-K2O24YLZ.mjs → chunk-CDQGPCHU.mjs} +2 -2
- package/dist/esm/chunk-CDQGPCHU.mjs.map +1 -0
- package/dist/esm/{chunk-HSPBA2TZ.mjs → chunk-CL6EEMSL.mjs} +2 -2
- package/dist/esm/chunk-CL6EEMSL.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-NNRAQP36.mjs → chunk-DMSHPWA5.mjs} +2 -2
- package/dist/esm/chunk-DMSHPWA5.mjs.map +1 -0
- package/dist/esm/{chunk-STGYDB5E.mjs → chunk-EE7GDBA5.mjs} +2 -2
- package/dist/esm/chunk-EE7GDBA5.mjs.map +1 -0
- package/dist/esm/{chunk-CPPBQDHB.mjs → chunk-EUGLLGYW.mjs} +2 -2
- package/dist/esm/chunk-EUGLLGYW.mjs.map +1 -0
- package/dist/esm/{chunk-CVDR5SJR.mjs → chunk-F2RY4YQ7.mjs} +2 -2
- package/dist/esm/chunk-F2RY4YQ7.mjs.map +1 -0
- package/dist/esm/chunk-FTZGP6XW.mjs +2 -0
- package/dist/esm/chunk-FTZGP6XW.mjs.map +1 -0
- package/dist/esm/{chunk-6RZZIOGH.mjs → chunk-GLATLXF6.mjs} +2 -2
- package/dist/esm/chunk-GLATLXF6.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-TDGQGILY.mjs → chunk-GQABU3RQ.mjs} +1 -1
- package/dist/esm/chunk-GQABU3RQ.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-HM5HITUC.mjs +4 -0
- package/dist/esm/chunk-HM5HITUC.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-NH2S6SB2.mjs → chunk-IAVI3H4V.mjs} +2 -2
- package/dist/esm/chunk-IAVI3H4V.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-3YKAGVHZ.mjs → chunk-IFXUWUP2.mjs} +2 -2
- package/dist/esm/chunk-IFXUWUP2.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-MS4MRLGA.mjs → chunk-JGNMNCQB.mjs} +2 -2
- package/dist/esm/chunk-JGNMNCQB.mjs.map +1 -0
- package/dist/esm/{chunk-SR24OGHJ.mjs → chunk-JN36BNWA.mjs} +2 -2
- package/dist/esm/chunk-JN36BNWA.mjs.map +1 -0
- package/dist/esm/{chunk-DAXKRXRK.mjs → chunk-JNRMHDRA.mjs} +2 -2
- package/dist/esm/chunk-JNRMHDRA.mjs.map +1 -0
- package/dist/esm/{chunk-SAPUZZEU.mjs → chunk-JVTDP4KV.mjs} +2 -2
- package/dist/esm/chunk-JVTDP4KV.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-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-XH7YKEYR.mjs → chunk-KW4FVBDD.mjs} +2 -2
- package/dist/esm/chunk-KW4FVBDD.mjs.map +1 -0
- package/dist/esm/{chunk-AFOPNDOJ.mjs → chunk-KYJU5PWF.mjs} +2 -2
- package/dist/esm/chunk-KYJU5PWF.mjs.map +1 -0
- package/dist/esm/{chunk-X4KEZTUQ.mjs → chunk-L5J3V3HW.mjs} +2 -2
- package/dist/esm/chunk-L5J3V3HW.mjs.map +1 -0
- package/dist/esm/{chunk-LDFTE4MM.mjs → chunk-LDZPO76C.mjs} +2 -2
- package/dist/esm/chunk-LDZPO76C.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-YHAPZP5A.mjs → chunk-M22UGFQ5.mjs} +2 -2
- package/dist/esm/chunk-M22UGFQ5.mjs.map +1 -0
- package/dist/esm/{chunk-TMW2HIXC.mjs → chunk-MK2QAHXC.mjs} +2 -2
- package/dist/esm/chunk-MK2QAHXC.mjs.map +1 -0
- package/dist/esm/{chunk-QCUFTD7K.mjs → chunk-MSHZ4FWB.mjs} +2 -2
- package/dist/esm/chunk-MSHZ4FWB.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-OAEDFM7T.mjs +2 -0
- package/dist/esm/chunk-OAEDFM7T.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-OTY3NO7Q.mjs +2 -0
- package/dist/esm/chunk-OTY3NO7Q.mjs.map +1 -0
- package/dist/esm/{chunk-ZGO2SK6F.mjs → chunk-OXM4BVAY.mjs} +2 -2
- package/dist/esm/chunk-OXM4BVAY.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-DAJOX4PL.mjs → chunk-P3J54CQG.mjs} +2 -2
- package/dist/esm/chunk-P3J54CQG.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-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-QQIVWB6G.mjs +2 -0
- package/dist/esm/chunk-QQIVWB6G.mjs.map +1 -0
- package/dist/esm/{chunk-TS3PYRAT.mjs → chunk-RAJTNQNL.mjs} +2 -2
- package/dist/esm/chunk-RAJTNQNL.mjs.map +1 -0
- package/dist/esm/{chunk-XONG5JZ4.mjs → chunk-RBJNSUSU.mjs} +2 -2
- package/dist/esm/chunk-RBJNSUSU.mjs.map +1 -0
- package/dist/esm/{chunk-EV2USF7B.mjs → chunk-RNJHULIT.mjs} +2 -2
- package/dist/esm/chunk-RNJHULIT.mjs.map +1 -0
- package/dist/esm/{chunk-IYQISVDX.mjs → chunk-RNRNGJDA.mjs} +2 -2
- package/dist/esm/chunk-RNRNGJDA.mjs.map +1 -0
- package/dist/esm/{chunk-N5JNKD5F.mjs → chunk-SGQFWWLQ.mjs} +2 -2
- package/dist/esm/chunk-SGQFWWLQ.mjs.map +1 -0
- package/dist/esm/{chunk-7ZLBJUVZ.mjs → chunk-SOLWFAUY.mjs} +2 -2
- package/dist/esm/chunk-SOLWFAUY.mjs.map +1 -0
- package/dist/esm/{chunk-MO4IZXLK.mjs → chunk-T5BCTWGK.mjs} +2 -2
- package/dist/esm/chunk-T5BCTWGK.mjs.map +1 -0
- package/dist/esm/{chunk-U67PFBTL.mjs → chunk-TPJLAYW6.mjs} +2 -2
- package/dist/esm/chunk-TPJLAYW6.mjs.map +1 -0
- package/dist/esm/{chunk-XXHW3ZT3.mjs → chunk-UCRROMZN.mjs} +2 -2
- package/dist/esm/chunk-UCRROMZN.mjs.map +1 -0
- package/dist/esm/{chunk-QLN2URFX.mjs → chunk-UGL2GPGK.mjs} +2 -2
- package/dist/esm/chunk-UGL2GPGK.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-KYSDF3CA.mjs → chunk-VYMRIKUV.mjs} +2 -2
- package/dist/esm/chunk-VYMRIKUV.mjs.map +1 -0
- package/dist/esm/{chunk-KXBIA4KR.mjs → chunk-WSZCPSV4.mjs} +2 -2
- package/dist/esm/chunk-WSZCPSV4.mjs.map +1 -0
- package/dist/esm/{chunk-B2CXRZL5.mjs → chunk-WV2VJQDS.mjs} +2 -2
- package/dist/esm/chunk-WV2VJQDS.mjs.map +1 -0
- package/dist/esm/{chunk-B6M7QBUO.mjs → chunk-WZCKSN2U.mjs} +2 -2
- package/dist/esm/chunk-WZCKSN2U.mjs.map +1 -0
- package/dist/esm/{chunk-25TIHDS6.mjs → chunk-XFJD6QIP.mjs} +2 -2
- package/dist/esm/chunk-XFJD6QIP.mjs.map +1 -0
- package/dist/esm/{chunk-ECWOLU5T.mjs → chunk-XFY4O2S3.mjs} +2 -2
- package/dist/esm/chunk-XFY4O2S3.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-TL7DR54X.mjs → chunk-XQ7ONNII.mjs} +2 -2
- package/dist/esm/chunk-XQ7ONNII.mjs.map +1 -0
- package/dist/esm/chunk-Y267I7DC.mjs +2 -0
- package/dist/esm/chunk-Y267I7DC.mjs.map +1 -0
- package/dist/esm/{chunk-G7MWTE2J.mjs → chunk-YZ5BCOGI.mjs} +2 -2
- package/dist/esm/{chunk-LXLISEQ4.mjs → chunk-ZINOJTLU.mjs} +2 -2
- package/dist/esm/chunk-ZINOJTLU.mjs.map +1 -0
- package/dist/esm/{chunk-2TQIU7CG.mjs → chunk-ZPIMARUG.mjs} +2 -2
- package/dist/esm/chunk-ZPIMARUG.mjs.map +1 -0
- package/dist/esm/chunk-ZPQUCT22.mjs +2 -0
- package/dist/esm/chunk-ZPQUCT22.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 +41 -4
- 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 +454 -160
- 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 +119 -22
- 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 +135 -137
- 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 +41 -3
- 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 +0 -2
- 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 +0 -2
- 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-YZ5BCOGI.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AptosConfig } from '../api/aptosConfig.mjs';
|
|
2
2
|
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs';
|
|
3
3
|
import { AccountData, PaginationArgs, LedgerVersionArg, MoveModuleBytecode, TransactionResponse, MoveResource, MoveStructId, TokenStandardArg, OrderByArg, WhereArg } from '../types/index.mjs';
|
|
4
|
-
import { A as AuthenticationKey } from '../publicKey-
|
|
4
|
+
import { A as AuthenticationKey } from '../publicKey-_tPa99ea.mjs';
|
|
5
5
|
import { PrivateKey } from '../core/crypto/privateKey.mjs';
|
|
6
|
-
import { A as Account } from '../Ed25519Account-
|
|
6
|
+
import { A as Account } from '../Ed25519Account-DpH9qAcg.mjs';
|
|
7
7
|
import { CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.mjs';
|
|
8
8
|
import { GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetObjectDataQueryResponse } from '../types/indexer.mjs';
|
|
9
9
|
import '../utils/apiEndpoints.mjs';
|
|
@@ -40,21 +40,43 @@ import '../transactions/instances/multiAgentTransaction.mjs';
|
|
|
40
40
|
* account namespace and without having a dependency cycle error.
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves account information for a specified account address.
|
|
45
|
+
*
|
|
46
|
+
* @param args - The arguments for retrieving account information.
|
|
47
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
48
|
+
* @param args.accountAddress - The address of the account to retrieve information for.
|
|
49
|
+
*/
|
|
43
50
|
declare function getInfo(args: {
|
|
44
51
|
aptosConfig: AptosConfig;
|
|
45
52
|
accountAddress: AccountAddressInput;
|
|
46
53
|
}): Promise<AccountData>;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves the modules associated with a specified account address.
|
|
56
|
+
*
|
|
57
|
+
* @param args - The arguments for retrieving modules.
|
|
58
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos blockchain.
|
|
59
|
+
* @param args.accountAddress - The address of the account whose modules are to be retrieved.
|
|
60
|
+
* @param args.options - Optional parameters for pagination and ledger version.
|
|
61
|
+
* @param args.options.limit - The maximum number of modules to retrieve (default is 1000).
|
|
62
|
+
* @param args.options.offset - The starting point for pagination.
|
|
63
|
+
* @param args.options.ledgerVersion - The specific ledger version to query.
|
|
64
|
+
*/
|
|
47
65
|
declare function getModules(args: {
|
|
48
66
|
aptosConfig: AptosConfig;
|
|
49
67
|
accountAddress: AccountAddressInput;
|
|
50
68
|
options?: PaginationArgs & LedgerVersionArg;
|
|
51
69
|
}): Promise<MoveModuleBytecode[]>;
|
|
52
70
|
/**
|
|
53
|
-
* Queries for a move module given account address and module name
|
|
71
|
+
* Queries for a move module given an account address and module name.
|
|
72
|
+
* This function can help you retrieve the module's ABI and other relevant information.
|
|
54
73
|
*
|
|
55
|
-
* @param args
|
|
56
|
-
* @param args.
|
|
57
|
-
* @param args.
|
|
74
|
+
* @param args - The arguments for retrieving the module.
|
|
75
|
+
* @param args.aptosConfig - The configuration for the Aptos client.
|
|
76
|
+
* @param args.accountAddress - The account address in hex-encoded 32 byte format.
|
|
77
|
+
* @param args.moduleName - The name of the module to retrieve.
|
|
78
|
+
* @param args.options - Optional parameters for the request.
|
|
79
|
+
* @param args.options.ledgerVersion - Specifies the ledger version of transactions. By default, the latest version will be used.
|
|
58
80
|
* @returns The move module.
|
|
59
81
|
*/
|
|
60
82
|
declare function getModule(args: {
|
|
@@ -63,81 +85,238 @@ declare function getModule(args: {
|
|
|
63
85
|
moduleName: string;
|
|
64
86
|
options?: LedgerVersionArg;
|
|
65
87
|
}): Promise<MoveModuleBytecode>;
|
|
88
|
+
/**
|
|
89
|
+
* Retrieves a list of transactions associated with a specific account address.
|
|
90
|
+
* This function allows you to paginate through the transactions for better performance and usability.
|
|
91
|
+
*
|
|
92
|
+
* @param args - The arguments for retrieving transactions.
|
|
93
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
94
|
+
* @param args.accountAddress - The account address for which to retrieve transactions.
|
|
95
|
+
* @param args.options - Optional pagination parameters.
|
|
96
|
+
* @param args.options.offset - The starting point for pagination.
|
|
97
|
+
* @param args.options.limit - The maximum number of transactions to retrieve.
|
|
98
|
+
*/
|
|
66
99
|
declare function getTransactions(args: {
|
|
67
100
|
aptosConfig: AptosConfig;
|
|
68
101
|
accountAddress: AccountAddressInput;
|
|
69
102
|
options?: PaginationArgs;
|
|
70
103
|
}): Promise<TransactionResponse[]>;
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves a list of resources associated with a specific account address.
|
|
106
|
+
*
|
|
107
|
+
* @param args - The arguments for retrieving resources.
|
|
108
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
109
|
+
* @param args.accountAddress - The address of the account to fetch resources for.
|
|
110
|
+
* @param args.options - Optional pagination and ledger version parameters.
|
|
111
|
+
* @param args.options.offset - The starting point for pagination.
|
|
112
|
+
* @param args.options.limit - The maximum number of resources to retrieve (default is 999).
|
|
113
|
+
* @param args.options.ledgerVersion - The specific ledger version to query.
|
|
114
|
+
*/
|
|
71
115
|
declare function getResources(args: {
|
|
72
116
|
aptosConfig: AptosConfig;
|
|
73
117
|
accountAddress: AccountAddressInput;
|
|
74
118
|
options?: PaginationArgs & LedgerVersionArg;
|
|
75
119
|
}): Promise<MoveResource[]>;
|
|
120
|
+
/**
|
|
121
|
+
* Retrieves a specific resource of a given type for the specified account address.
|
|
122
|
+
*
|
|
123
|
+
* @param args - The arguments for retrieving the resource.
|
|
124
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
125
|
+
* @param args.accountAddress - The address of the account from which to retrieve the resource.
|
|
126
|
+
* @param args.resourceType - The type of the resource to retrieve, specified as a MoveStructId.
|
|
127
|
+
* @param args.options - Optional parameters for specifying the ledger version.
|
|
128
|
+
*/
|
|
76
129
|
declare function getResource<T extends {}>(args: {
|
|
77
130
|
aptosConfig: AptosConfig;
|
|
78
131
|
accountAddress: AccountAddressInput;
|
|
79
132
|
resourceType: MoveStructId;
|
|
80
133
|
options?: LedgerVersionArg;
|
|
81
134
|
}): Promise<T>;
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves the original account address associated with a given authentication key, which is useful for handling key rotations.
|
|
137
|
+
*
|
|
138
|
+
* @param args - The arguments for the lookup.
|
|
139
|
+
* @param args.aptosConfig - The configuration for the Aptos client.
|
|
140
|
+
* @param args.authenticationKey - The authentication key for which to look up the original address.
|
|
141
|
+
* @param args.options - Optional parameters for specifying the ledger version.
|
|
142
|
+
* @returns The original account address or the provided authentication key address if not found.
|
|
143
|
+
* @throws Throws an error if the lookup fails for reasons other than the address not being found.
|
|
144
|
+
*/
|
|
82
145
|
declare function lookupOriginalAccountAddress(args: {
|
|
83
146
|
aptosConfig: AptosConfig;
|
|
84
147
|
authenticationKey: AccountAddressInput;
|
|
85
148
|
options?: LedgerVersionArg;
|
|
86
149
|
}): Promise<AccountAddress>;
|
|
150
|
+
/**
|
|
151
|
+
* Retrieves the count of tokens owned by a specific account address.
|
|
152
|
+
*
|
|
153
|
+
* @param args - The arguments for retrieving the account tokens count.
|
|
154
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
155
|
+
* @param args.accountAddress - The address of the account for which to count the tokens.
|
|
156
|
+
* @returns The count of tokens owned by the specified account.
|
|
157
|
+
*/
|
|
87
158
|
declare function getAccountTokensCount(args: {
|
|
88
159
|
aptosConfig: AptosConfig;
|
|
89
160
|
accountAddress: AccountAddressInput;
|
|
90
161
|
}): Promise<number>;
|
|
162
|
+
/**
|
|
163
|
+
* Retrieves the tokens owned by a specified account address.
|
|
164
|
+
*
|
|
165
|
+
* @param args - The arguments for retrieving the account's tokens.
|
|
166
|
+
* @param args.aptosConfig - The configuration for the Aptos client.
|
|
167
|
+
* @param args.accountAddress - The address of the account whose tokens are being queried.
|
|
168
|
+
* @param args.options - Optional parameters for filtering and pagination.
|
|
169
|
+
* @param args.options.tokenStandard - The specific token standard to filter the results.
|
|
170
|
+
* @param args.options.offset - The number of records to skip before starting to collect the result set.
|
|
171
|
+
* @param args.options.limit - The maximum number of records to return.
|
|
172
|
+
* @param args.options.orderBy - The criteria for ordering the results.
|
|
173
|
+
* @returns A promise that resolves to the current token ownerships of the specified account.
|
|
174
|
+
*/
|
|
91
175
|
declare function getAccountOwnedTokens(args: {
|
|
92
176
|
aptosConfig: AptosConfig;
|
|
93
177
|
accountAddress: AccountAddressInput;
|
|
94
178
|
options?: TokenStandardArg & PaginationArgs & OrderByArg<GetAccountOwnedTokensQueryResponse[0]>;
|
|
95
179
|
}): Promise<GetAccountOwnedTokensQueryResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Retrieves the tokens owned by a specific account from a particular collection address.
|
|
182
|
+
*
|
|
183
|
+
* @param args - The parameters required to fetch the owned tokens.
|
|
184
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
185
|
+
* @param args.accountAddress - The address of the account whose tokens are being queried.
|
|
186
|
+
* @param args.collectionAddress - The address of the collection from which tokens are being retrieved.
|
|
187
|
+
* @param args.options - Optional parameters for filtering and pagination, including token standard, pagination arguments, and
|
|
188
|
+
* order by options.
|
|
189
|
+
*/
|
|
96
190
|
declare function getAccountOwnedTokensFromCollectionAddress(args: {
|
|
97
191
|
aptosConfig: AptosConfig;
|
|
98
192
|
accountAddress: AccountAddressInput;
|
|
99
193
|
collectionAddress: AccountAddressInput;
|
|
100
194
|
options?: TokenStandardArg & PaginationArgs & OrderByArg<GetAccountOwnedTokensFromCollectionResponse[0]>;
|
|
101
195
|
}): Promise<GetAccountOwnedTokensFromCollectionResponse>;
|
|
196
|
+
/**
|
|
197
|
+
* Retrieves the collections owned by a specified account along with the tokens in those collections.
|
|
198
|
+
*
|
|
199
|
+
* @param args - The arguments for the function.
|
|
200
|
+
* @param args.aptosConfig - The configuration for the Aptos client.
|
|
201
|
+
* @param args.accountAddress - The address of the account whose collections are being queried.
|
|
202
|
+
* @param args.options - Optional parameters for filtering and pagination.
|
|
203
|
+
* @param args.options.tokenStandard - An optional token standard to filter the collections.
|
|
204
|
+
* @param args.options.offset - An optional offset for pagination.
|
|
205
|
+
* @param args.options.limit - An optional limit for the number of results returned.
|
|
206
|
+
* @param args.options.orderBy - An optional parameter to specify the order of the results.
|
|
207
|
+
*/
|
|
102
208
|
declare function getAccountCollectionsWithOwnedTokens(args: {
|
|
103
209
|
aptosConfig: AptosConfig;
|
|
104
210
|
accountAddress: AccountAddressInput;
|
|
105
211
|
options?: TokenStandardArg & PaginationArgs & OrderByArg<GetAccountCollectionsWithOwnedTokenResponse[0]>;
|
|
106
212
|
}): Promise<GetAccountCollectionsWithOwnedTokenResponse>;
|
|
213
|
+
/**
|
|
214
|
+
* Retrieves the count of transactions associated with a specified account.
|
|
215
|
+
*
|
|
216
|
+
* @param args - The arguments for the function.
|
|
217
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
218
|
+
* @param args.accountAddress - The address of the account for which to retrieve the transaction count.
|
|
219
|
+
* @returns The number of transactions associated with the specified account.
|
|
220
|
+
*/
|
|
107
221
|
declare function getAccountTransactionsCount(args: {
|
|
108
222
|
aptosConfig: AptosConfig;
|
|
109
223
|
accountAddress: AccountAddressInput;
|
|
110
224
|
}): Promise<number>;
|
|
225
|
+
/**
|
|
226
|
+
* Retrieves the amount of a specific coin held by an account.
|
|
227
|
+
*
|
|
228
|
+
* @param args - The parameters for the request.
|
|
229
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
230
|
+
* @param args.accountAddress - The address of the account to query.
|
|
231
|
+
* @param args.coinType - Optional; the type of coin to check the amount for.
|
|
232
|
+
* @param args.faMetadataAddress - Optional; the address of the fungible asset metadata.
|
|
233
|
+
* @returns The amount of the specified coin held by the account, or 0 if none is found.
|
|
234
|
+
* @throws Error if neither coinType nor faMetadataAddress is provided.
|
|
235
|
+
*/
|
|
236
|
+
declare function getAccountCoinAmount(args: {
|
|
237
|
+
aptosConfig: AptosConfig;
|
|
238
|
+
accountAddress: AccountAddressInput;
|
|
239
|
+
coinType?: MoveStructId;
|
|
240
|
+
faMetadataAddress?: AccountAddressInput;
|
|
241
|
+
}): Promise<number>;
|
|
242
|
+
/**
|
|
243
|
+
* Retrieves the current fungible asset balances for a specified account.
|
|
244
|
+
*
|
|
245
|
+
* @param args - The arguments for retrieving account coins data.
|
|
246
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos network.
|
|
247
|
+
* @param args.accountAddress - The address of the account for which to retrieve coin data.
|
|
248
|
+
* @param args.options - Optional parameters for pagination and filtering the results.
|
|
249
|
+
* @param args.options.offset - The number of items to skip before starting to collect the result set.
|
|
250
|
+
* @param args.options.limit - The maximum number of items to return.
|
|
251
|
+
* @param args.options.orderBy - The criteria for ordering the results.
|
|
252
|
+
* @param args.options.where - Conditions to filter the results based on the current fungible asset balances.
|
|
253
|
+
*/
|
|
111
254
|
declare function getAccountCoinsData(args: {
|
|
112
255
|
aptosConfig: AptosConfig;
|
|
113
256
|
accountAddress: AccountAddressInput;
|
|
114
257
|
options?: PaginationArgs & OrderByArg<GetAccountCoinsDataResponse[0]> & WhereArg<CurrentFungibleAssetBalancesBoolExp>;
|
|
115
258
|
}): Promise<GetAccountCoinsDataResponse>;
|
|
259
|
+
/**
|
|
260
|
+
* Retrieves the count of fungible asset coins held by a specified account.
|
|
261
|
+
*
|
|
262
|
+
* @param args - The arguments for the function.
|
|
263
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
264
|
+
* @param args.accountAddress - The address of the account for which to retrieve the coin count.
|
|
265
|
+
* @throws Error if the count of account coins cannot be retrieved.
|
|
266
|
+
*/
|
|
116
267
|
declare function getAccountCoinsCount(args: {
|
|
117
268
|
aptosConfig: AptosConfig;
|
|
118
269
|
accountAddress: AccountAddressInput;
|
|
119
270
|
}): Promise<number>;
|
|
271
|
+
/**
|
|
272
|
+
* Retrieves the objects owned by a specified account.
|
|
273
|
+
*
|
|
274
|
+
* @param args - The parameters for the request.
|
|
275
|
+
* @param args.aptosConfig - The configuration for the Aptos client.
|
|
276
|
+
* @param args.accountAddress - The address of the account whose owned objects are to be retrieved.
|
|
277
|
+
* @param args.options - Optional parameters for pagination and ordering of the results.
|
|
278
|
+
* @param args.options.offset - The number of items to skip before starting to collect the result set.
|
|
279
|
+
* @param args.options.limit - The maximum number of items to return.
|
|
280
|
+
* @param args.options.orderBy - The criteria to order the results by.
|
|
281
|
+
* @returns A promise that resolves to the current objects owned by the specified account.
|
|
282
|
+
*/
|
|
120
283
|
declare function getAccountOwnedObjects(args: {
|
|
121
284
|
aptosConfig: AptosConfig;
|
|
122
285
|
accountAddress: AccountAddressInput;
|
|
123
286
|
options?: PaginationArgs & OrderByArg<GetObjectDataQueryResponse[0]>;
|
|
124
287
|
}): Promise<GetObjectDataQueryResponse>;
|
|
125
288
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
289
|
+
* Derives an account from the provided private key and Aptos configuration.
|
|
290
|
+
* This function helps in obtaining the account details associated with a given private key,
|
|
291
|
+
* considering both unified and legacy authentication schemes.
|
|
128
292
|
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
293
|
+
* NOTE: There is a potential issue once the unified single signer scheme is adopted by the community.
|
|
294
|
+
* Because one could create two accounts with the same private key with this new authenticator type,
|
|
295
|
+
* we’ll need to determine the order in which we look up the accounts: first unified scheme and then legacy scheme,
|
|
296
|
+
* or first legacy scheme and then unified scheme.
|
|
132
297
|
*
|
|
298
|
+
* @param args - The arguments for deriving the account.
|
|
299
|
+
* @param args.aptosConfig - The Aptos configuration used for account lookup.
|
|
300
|
+
* @param args.privateKey - The private key used to derive the account.
|
|
301
|
+
* @throws Error if the account cannot be derived from the private key.
|
|
133
302
|
*/
|
|
134
303
|
declare function deriveAccountFromPrivateKey(args: {
|
|
135
304
|
aptosConfig: AptosConfig;
|
|
136
305
|
privateKey: PrivateKey;
|
|
137
306
|
}): Promise<Account>;
|
|
307
|
+
/**
|
|
308
|
+
* Checks if an account exists by verifying its information against the Aptos blockchain.
|
|
309
|
+
*
|
|
310
|
+
* @param args - The arguments for the function.
|
|
311
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos blockchain.
|
|
312
|
+
* @param args.authKey - The authentication key used to derive the account address.
|
|
313
|
+
* @returns A promise that resolves to a boolean indicating whether the account exists.
|
|
314
|
+
*
|
|
315
|
+
* @throws Throws an Error if there is an issue while looking for account information.
|
|
316
|
+
*/
|
|
138
317
|
declare function isAccountExist(args: {
|
|
139
318
|
aptosConfig: AptosConfig;
|
|
140
319
|
authKey: AuthenticationKey;
|
|
141
320
|
}): Promise<boolean>;
|
|
142
321
|
|
|
143
|
-
export { deriveAccountFromPrivateKey, getAccountCoinsCount, getAccountCoinsData, getAccountCollectionsWithOwnedTokens, getAccountOwnedObjects, getAccountOwnedTokens, getAccountOwnedTokensFromCollectionAddress, getAccountTokensCount, getAccountTransactionsCount, getInfo, getModule, getModules, getResource, getResources, getTransactions, isAccountExist, lookupOriginalAccountAddress };
|
|
322
|
+
export { deriveAccountFromPrivateKey, getAccountCoinAmount, getAccountCoinsCount, getAccountCoinsData, getAccountCollectionsWithOwnedTokens, getAccountOwnedObjects, getAccountOwnedTokens, getAccountOwnedTokensFromCollectionAddress, getAccountTokensCount, getAccountTransactionsCount, getInfo, getModule, getModules, getResource, getResources, getTransactions, isAccountExist, lookupOriginalAccountAddress };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-Y267I7DC.mjs";import"../chunk-EE7GDBA5.mjs";import"../chunk-BVVHGSWC.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-5SGSPCOY.mjs";import"../chunk-3H5DGQKX.mjs";import"../chunk-WZCKSN2U.mjs";import"../chunk-VYMRIKUV.mjs";import"../chunk-GLATLXF6.mjs";import"../chunk-M22UGFQ5.mjs";import"../chunk-CDQGPCHU.mjs";import"../chunk-WSZCPSV4.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-F2RY4YQ7.mjs";import"../chunk-XQ7ONNII.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-RBJNSUSU.mjs";import"../chunk-4LKLOUMG.mjs";import"../chunk-ZPIMARUG.mjs";import"../chunk-OTY3NO7Q.mjs";import"../chunk-ZINOJTLU.mjs";import"../chunk-NODYW7DM.mjs";import"../chunk-AGBA3Y7A.mjs";import"../chunk-A2AEFKXS.mjs";import"../chunk-SGQFWWLQ.mjs";import"../chunk-MK2QAHXC.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-PCLU4KLY.mjs";import"../chunk-WV2VJQDS.mjs";import"../chunk-HEZ2ZYZA.mjs";import"../chunk-CC7VOPYH.mjs";import"../chunk-6DMDYBV6.mjs";import"../chunk-TPJLAYW6.mjs";import"../chunk-4VU2ABLU.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-BOWPP6YG.mjs";import"../chunk-FTZGP6XW.mjs";import"../chunk-GMKKHGXK.mjs";import"../chunk-ONBFUPEC.mjs";import"../chunk-OAEDFM7T.mjs";import"../chunk-P3J54CQG.mjs";import"../chunk-IBLZ6MZU.mjs";import"../chunk-KIW54KWR.mjs";import"../chunk-4OV7QU2U.mjs";import"../chunk-PHP47DI4.mjs";import"../chunk-HBIDHQ2M.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-RNJHULIT.mjs";import"../chunk-2652SPOM.mjs";import"../chunk-2GEIHUHT.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-4CDDWSKZ.mjs";import"../chunk-GQABU3RQ.mjs";import"../chunk-D3OEQLUE.mjs";import"../chunk-J245N3XF.mjs";import"../chunk-PRZ7AIGA.mjs";import"../chunk-KM6UXNC7.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-IECDO22V.mjs";import"../chunk-6FLHGOKP.mjs";import"../chunk-OZN3OOJV.mjs";import"../chunk-JGNMNCQB.mjs";import"../chunk-7XS45O6M.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-N47FTRYO.mjs";import"../chunk-QQIVWB6G.mjs";import"../chunk-KFNDDPOW.mjs";import"../chunk-6Q2O5G3J.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-LEKBJ2EG.mjs";import"../chunk-2CGJLPHP.mjs";import"../chunk-KDMSOCZY.mjs";export{q as deriveAccountFromPrivateKey,m as getAccountCoinAmount,o as getAccountCoinsCount,n as getAccountCoinsData,k as getAccountCollectionsWithOwnedTokens,p as getAccountOwnedObjects,i as getAccountOwnedTokens,j as getAccountOwnedTokensFromCollectionAddress,h as getAccountTokensCount,l as getAccountTransactionsCount,a as getInfo,c as getModule,b as getModules,f as getResource,e as getResources,d as getTransactions,r as isAccountExist,g as lookupOriginalAccountAddress};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AptosConfig } from '../api/aptosConfig.mjs';
|
|
2
2
|
import { PaginationArgs, OrderByArg, WhereArg } from '../types/index.mjs';
|
|
3
3
|
import { AccountAddress, AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
|
-
import { A as Account } from '../Ed25519Account-
|
|
4
|
+
import { A as Account } from '../Ed25519Account-DpH9qAcg.mjs';
|
|
5
5
|
import { InputGenerateTransactionOptions } from '../transactions/types.mjs';
|
|
6
6
|
import { CurrentAptosNamesBoolExp } from '../types/generated/types.mjs';
|
|
7
7
|
import { SimpleTransaction } from '../transactions/instances/simpleTransaction.mjs';
|
|
@@ -16,7 +16,7 @@ import '../bcs/deserializer.mjs';
|
|
|
16
16
|
import '../transactions/instances/transactionArgument.mjs';
|
|
17
17
|
import '../transactions/authenticator/account.mjs';
|
|
18
18
|
import '../core/crypto/ed25519.mjs';
|
|
19
|
-
import '../publicKey-
|
|
19
|
+
import '../publicKey-_tPa99ea.mjs';
|
|
20
20
|
import '../core/crypto/signature.mjs';
|
|
21
21
|
import '../core/crypto/privateKey.mjs';
|
|
22
22
|
import '../core/crypto/multiEd25519.mjs';
|
|
@@ -42,42 +42,61 @@ import '../transactions/instances/multiAgentTransaction.mjs';
|
|
|
42
42
|
|
|
43
43
|
declare const VALIDATION_RULES_DESCRIPTION: string;
|
|
44
44
|
/**
|
|
45
|
+
* Validate if a given fragment is a valid ANS segment.
|
|
46
|
+
* This function checks the length and character constraints of the fragment to ensure it meets the ANS standards.
|
|
45
47
|
*
|
|
46
|
-
* @param fragment A fragment of a name, either the domain or subdomain
|
|
47
|
-
* @returns boolean indicating if the fragment is a valid fragment
|
|
48
|
+
* @param fragment - A fragment of a name, either the domain or subdomain.
|
|
49
|
+
* @returns A boolean indicating if the fragment is a valid fragment.
|
|
48
50
|
*/
|
|
49
51
|
declare function isValidANSSegment(fragment: string): boolean;
|
|
50
52
|
/**
|
|
51
|
-
* Checks if an ANS name is valid or not
|
|
53
|
+
* Checks if an ANS name is valid or not.
|
|
52
54
|
*
|
|
53
|
-
* @param name A string of the domain name, can include or exclude the .apt suffix
|
|
55
|
+
* @param name - A string of the domain name, which can include or exclude the .apt suffix.
|
|
54
56
|
*/
|
|
55
57
|
declare function isValidANSName(name: string): {
|
|
56
58
|
domainName: string;
|
|
57
59
|
subdomainName?: string;
|
|
58
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Policy for determining how subdomains expire in relation to their parent domain.
|
|
63
|
+
*/
|
|
59
64
|
declare enum SubdomainExpirationPolicy {
|
|
60
65
|
Independent = 0,
|
|
61
66
|
FollowsDomain = 1
|
|
62
67
|
}
|
|
63
68
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* expiration timestamp or they can expire independently (0) in which they can
|
|
69
|
-
* expire before their parent but not afterwards.
|
|
69
|
+
* Determine if a given ANS name is considered active based on its expiration dates.
|
|
70
|
+
* Domains are active if their expiration date is in the future, while subdomains may
|
|
71
|
+
* follow their parent's expiration policy (1) or expire independently (0).
|
|
72
|
+
* If the subdomain is expiring independently, it can expire before their parent, but not after.
|
|
70
73
|
*
|
|
71
|
-
* @param name - An ANS name returned from one of the functions of the SDK
|
|
72
|
-
* @returns A boolean
|
|
74
|
+
* @param name - An ANS name returned from one of the functions of the SDK.
|
|
75
|
+
* @returns A boolean indicating whether the contract considers the name active or not.
|
|
73
76
|
*/
|
|
74
77
|
declare function isActiveANSName(name: GetANSNameResponse[0]): boolean;
|
|
75
78
|
declare const LOCAL_ANS_ACCOUNT_PK: string;
|
|
76
79
|
declare const LOCAL_ANS_ACCOUNT_ADDRESS: string;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieve the owner address of a specified domain or subdomain.
|
|
82
|
+
*
|
|
83
|
+
* @param args - The arguments for retrieving the owner address.
|
|
84
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
85
|
+
* @param args.name - The name of the domain or subdomain to query.
|
|
86
|
+
* @returns The account address of the owner, or undefined if not found.
|
|
87
|
+
*/
|
|
77
88
|
declare function getOwnerAddress(args: {
|
|
78
89
|
aptosConfig: AptosConfig;
|
|
79
90
|
name: string;
|
|
80
91
|
}): Promise<AccountAddress | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Parameters for registering a name in the Aptos network.
|
|
94
|
+
*
|
|
95
|
+
* @param aptosConfig - Configuration settings for the Aptos network.
|
|
96
|
+
* @param sender - The account initiating the name registration.
|
|
97
|
+
* @param name - The name to be registered.
|
|
98
|
+
* @param expiration - The expiration policy for the name registration.
|
|
99
|
+
*/
|
|
81
100
|
interface RegisterNameParameters {
|
|
82
101
|
aptosConfig: AptosConfig;
|
|
83
102
|
sender: Account;
|
|
@@ -96,25 +115,94 @@ interface RegisterNameParameters {
|
|
|
96
115
|
targetAddress?: AccountAddressInput;
|
|
97
116
|
options?: InputGenerateTransactionOptions;
|
|
98
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Registers a domain or subdomain with the specified parameters. This function ensures that the provided names and expiration
|
|
120
|
+
* policies are valid before proceeding with the registration process.
|
|
121
|
+
*
|
|
122
|
+
* @param args - The parameters required for registering a name.
|
|
123
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
124
|
+
* @param args.expiration - The expiration details for the registration.
|
|
125
|
+
* @param args.name - The name to be registered, which can be a domain or subdomain.
|
|
126
|
+
* @param args.sender - The account details of the sender initiating the registration.
|
|
127
|
+
* @param args.targetAddress - The target address for the registration.
|
|
128
|
+
* @param args.toAddress - The address to which the registration is associated.
|
|
129
|
+
* @param args.options - Additional options for the registration process.
|
|
130
|
+
* @param args.transferable - Indicates whether the registered name is transferable.
|
|
131
|
+
*
|
|
132
|
+
* @throws Error if the provided expiration policy is invalid for subdomains.
|
|
133
|
+
* @throws Error if the domain does not exist.
|
|
134
|
+
* @throws Error if the subdomain expiration time exceeds the domain expiration time.
|
|
135
|
+
*
|
|
136
|
+
* @returns A transaction object representing the registration process.
|
|
137
|
+
*/
|
|
99
138
|
declare function registerName(args: RegisterNameParameters): Promise<SimpleTransaction>;
|
|
139
|
+
/**
|
|
140
|
+
* Retrieves the expiration time of a specified domain or subdomain in epoch milliseconds.
|
|
141
|
+
*
|
|
142
|
+
* @param args - The arguments for the function.
|
|
143
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
144
|
+
* @param args.name - The name of the domain or subdomain to check.
|
|
145
|
+
* @returns The expiration time in epoch milliseconds, or undefined if an error occurs.
|
|
146
|
+
*/
|
|
100
147
|
declare function getExpiration(args: {
|
|
101
148
|
aptosConfig: AptosConfig;
|
|
102
149
|
name: string;
|
|
103
150
|
}): Promise<number | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* Retrieves the primary name associated with a given account address.
|
|
153
|
+
* This function helps in obtaining the complete domain name by combining the subdomain and domain names.
|
|
154
|
+
*
|
|
155
|
+
* @param args - The arguments for retrieving the primary name.
|
|
156
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
157
|
+
* @param args.address - The account address for which to retrieve the primary name.
|
|
158
|
+
* @returns The primary name as a string, or undefined if no domain name exists.
|
|
159
|
+
*/
|
|
104
160
|
declare function getPrimaryName(args: {
|
|
105
161
|
aptosConfig: AptosConfig;
|
|
106
162
|
address: AccountAddressInput;
|
|
107
163
|
}): Promise<string | undefined>;
|
|
164
|
+
/**
|
|
165
|
+
* Sets the primary name for the specified account, allowing for the association of a domain or subdomain with the account.
|
|
166
|
+
* If no name is provided, it clears the existing primary name.
|
|
167
|
+
*
|
|
168
|
+
* @param args - The arguments for setting the primary name.
|
|
169
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
170
|
+
* @param args.sender - The account that is sending the transaction.
|
|
171
|
+
* @param args.name - The name to set as the primary name. If omitted, the function will clear the primary name.
|
|
172
|
+
* @param args.options - Optional transaction generation options.
|
|
173
|
+
* @returns A transaction object representing the operation.
|
|
174
|
+
*/
|
|
108
175
|
declare function setPrimaryName(args: {
|
|
109
176
|
aptosConfig: AptosConfig;
|
|
110
177
|
sender: Account;
|
|
111
178
|
name?: string;
|
|
112
179
|
options?: InputGenerateTransactionOptions;
|
|
113
180
|
}): Promise<SimpleTransaction>;
|
|
181
|
+
/**
|
|
182
|
+
* Retrieves the target address associated with a given domain name and subdomain name.
|
|
183
|
+
*
|
|
184
|
+
* @param args - The arguments for retrieving the target address.
|
|
185
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
186
|
+
* @param args.name - The name of the domain, which may include a subdomain.
|
|
187
|
+
* @returns The target address as an AccountAddress, or undefined if not found.
|
|
188
|
+
*/
|
|
114
189
|
declare function getTargetAddress(args: {
|
|
115
190
|
aptosConfig: AptosConfig;
|
|
116
191
|
name: string;
|
|
117
192
|
}): Promise<AccountAddress | undefined>;
|
|
193
|
+
/**
|
|
194
|
+
* Sets the target address for a specified domain and subdomain in the Aptos network.
|
|
195
|
+
* This function helps to associate a given address with a domain name, allowing for easier access and management of resources.
|
|
196
|
+
*
|
|
197
|
+
* @param args - The arguments for setting the target address.
|
|
198
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
199
|
+
* @param args.sender - The account that is sending the transaction.
|
|
200
|
+
* @param args.name - The name of the domain or subdomain to be set.
|
|
201
|
+
* @param args.address - The address to be associated with the domain or subdomain.
|
|
202
|
+
* @param args.options - Optional parameters for generating the transaction.
|
|
203
|
+
*
|
|
204
|
+
* @returns A transaction object representing the set target address operation.
|
|
205
|
+
*/
|
|
118
206
|
declare function setTargetAddress(args: {
|
|
119
207
|
aptosConfig: AptosConfig;
|
|
120
208
|
sender: Account;
|
|
@@ -122,37 +210,141 @@ declare function setTargetAddress(args: {
|
|
|
122
210
|
address: AccountAddressInput;
|
|
123
211
|
options?: InputGenerateTransactionOptions;
|
|
124
212
|
}): Promise<SimpleTransaction>;
|
|
213
|
+
/**
|
|
214
|
+
* Retrieves the active Aptos name associated with the specified domain and subdomain.
|
|
215
|
+
*
|
|
216
|
+
* @param args - The parameters for the function.
|
|
217
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
218
|
+
* @param args.name - The name to look up, which includes the domain and optional subdomain.
|
|
219
|
+
* @returns The active Aptos name if it exists; otherwise, returns undefined.
|
|
220
|
+
*/
|
|
125
221
|
declare function getName(args: {
|
|
126
222
|
aptosConfig: AptosConfig;
|
|
127
223
|
name: string;
|
|
128
224
|
}): Promise<GetANSNameResponse[0] | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* Options for querying names, including pagination, ordering, and filtering criteria.
|
|
227
|
+
*
|
|
228
|
+
* @param options - Pagination and filtering options for the query.
|
|
229
|
+
*/
|
|
129
230
|
interface QueryNamesOptions {
|
|
130
231
|
options?: PaginationArgs & OrderByArg<GetANSNameResponse[0]> & WhereArg<CurrentAptosNamesBoolExp>;
|
|
131
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Arguments for retrieving account names based on the specified account address.
|
|
235
|
+
*
|
|
236
|
+
* @param accountAddress - The address of the account for which names are to be retrieved.
|
|
237
|
+
*/
|
|
132
238
|
interface GetAccountNamesArgs extends QueryNamesOptions {
|
|
133
239
|
accountAddress: AccountAddressInput;
|
|
134
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* Retrieves the current Aptos names associated with a specific account address.
|
|
243
|
+
*
|
|
244
|
+
* @param args - The arguments for retrieving account names.
|
|
245
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
246
|
+
* @param args.options - Optional parameters for querying account names.
|
|
247
|
+
* @param args.options.limit - The maximum number of names to retrieve.
|
|
248
|
+
* @param args.options.offset - The number of names to skip before starting to collect the result set.
|
|
249
|
+
* @param args.options.orderBy - The field by which to order the results.
|
|
250
|
+
* @param args.options.where - Additional conditions to filter the results.
|
|
251
|
+
* @param args.accountAddress - The address of the account for which to retrieve names.
|
|
252
|
+
*
|
|
253
|
+
* @returns An array of sanitized Aptos names associated with the specified account address.
|
|
254
|
+
*/
|
|
135
255
|
declare function getAccountNames(args: {
|
|
136
256
|
aptosConfig: AptosConfig;
|
|
137
257
|
} & GetAccountNamesArgs): Promise<GetANSNameResponse>;
|
|
258
|
+
/**
|
|
259
|
+
* Arguments for retrieving the domains associated with a specific account.
|
|
260
|
+
*
|
|
261
|
+
* @param accountAddress - The address of the account for which to fetch domains.
|
|
262
|
+
*/
|
|
138
263
|
interface GetAccountDomainsArgs extends QueryNamesOptions {
|
|
139
264
|
accountAddress: AccountAddressInput;
|
|
140
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Retrieves the list of top-level domains owned by a specified account.
|
|
268
|
+
*
|
|
269
|
+
* @param args - The arguments for retrieving account domains.
|
|
270
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
271
|
+
* @param args.options - Optional parameters for the query.
|
|
272
|
+
* @param args.options.limit - The maximum number of results to return.
|
|
273
|
+
* @param args.options.offset - The number of results to skip before starting to collect the result set.
|
|
274
|
+
* @param args.options.orderBy - The field by which to order the results.
|
|
275
|
+
* @param args.options.where - Additional conditions to filter the results.
|
|
276
|
+
* @param args.options.where.owner_address - The address of the account whose domains are being queried.
|
|
277
|
+
* @param args.options.where.expiration_timestamp - The minimum expiration timestamp for the domains.
|
|
278
|
+
* @param args.options.where.subdomain - The specific subdomain to filter by.
|
|
279
|
+
*
|
|
280
|
+
* @returns An array of sanitized domain names owned by the specified account.
|
|
281
|
+
*/
|
|
141
282
|
declare function getAccountDomains(args: {
|
|
142
283
|
aptosConfig: AptosConfig;
|
|
143
284
|
} & GetAccountDomainsArgs): Promise<GetANSNameResponse>;
|
|
285
|
+
/**
|
|
286
|
+
* Arguments for retrieving subdomains associated with a specific account.
|
|
287
|
+
*
|
|
288
|
+
* @param accountAddress - The address of the account for which to fetch subdomains.
|
|
289
|
+
*/
|
|
144
290
|
interface GetAccountSubdomainsArgs extends QueryNamesOptions {
|
|
145
291
|
accountAddress: AccountAddressInput;
|
|
146
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Retrieves a list of subdomains owned by a specified account address.
|
|
295
|
+
* This function helps you identify all subdomains associated with a given account.
|
|
296
|
+
*
|
|
297
|
+
* @param args - The arguments for retrieving account subdomains.
|
|
298
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
299
|
+
* @param args.options - Optional parameters for the query.
|
|
300
|
+
* @param args.options.limit - The maximum number of results to return.
|
|
301
|
+
* @param args.options.offset - The number of results to skip before starting to collect the result set.
|
|
302
|
+
* @param args.options.orderBy - The field by which to order the results.
|
|
303
|
+
* @param args.options.where - Additional conditions to filter the results.
|
|
304
|
+
* @param args.options.where.owner_address - The address of the account to filter by.
|
|
305
|
+
* @param args.options.where.expiration_timestamp - The expiration timestamp to filter by.
|
|
306
|
+
* @param args.options.where.subdomain - The subdomain condition to filter by.
|
|
307
|
+
* @param args.accountAddress - The address of the account whose subdomains are being queried.
|
|
308
|
+
*/
|
|
147
309
|
declare function getAccountSubdomains(args: {
|
|
148
310
|
aptosConfig: AptosConfig;
|
|
149
311
|
} & GetAccountSubdomainsArgs): Promise<GetANSNameResponse>;
|
|
312
|
+
/**
|
|
313
|
+
* Arguments for retrieving subdomains associated with a specific domain.
|
|
314
|
+
*
|
|
315
|
+
* @param domain - The domain for which to fetch subdomains.
|
|
316
|
+
*/
|
|
150
317
|
interface GetDomainSubdomainsArgs extends QueryNamesOptions {
|
|
151
318
|
domain: string;
|
|
152
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* Retrieve the active subdomains associated with a specified domain.
|
|
322
|
+
*
|
|
323
|
+
* @param args - The arguments for retrieving subdomains.
|
|
324
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
325
|
+
* @param args.options - Optional parameters for the query.
|
|
326
|
+
* @param args.options.limit - The maximum number of results to return.
|
|
327
|
+
* @param args.options.offset - The number of results to skip before starting to collect the results.
|
|
328
|
+
* @param args.options.orderBy - The field by which to order the results.
|
|
329
|
+
* @param args.options.where - Additional conditions to filter the results.
|
|
330
|
+
* @param args.domain - The domain for which to retrieve subdomains.
|
|
331
|
+
*
|
|
332
|
+
* @returns An array of active subdomain names.
|
|
333
|
+
*/
|
|
153
334
|
declare function getDomainSubdomains(args: {
|
|
154
335
|
aptosConfig: AptosConfig;
|
|
155
336
|
} & GetDomainSubdomainsArgs): Promise<GetANSNameResponse>;
|
|
337
|
+
/**
|
|
338
|
+
* Renews a domain for a specified duration. This function allows you to extend the registration of a domain for one year.
|
|
339
|
+
*
|
|
340
|
+
* @param args - The parameters required to renew the domain.
|
|
341
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
342
|
+
* @param args.sender - The account that is sending the renewal transaction.
|
|
343
|
+
* @param args.name - The name of the domain to renew.
|
|
344
|
+
* @param args.years - The number of years to renew the domain for. Currently, only 1 year renewals are supported. (optional, default is 1)
|
|
345
|
+
* @param args.options - Additional options for generating the transaction. (optional)
|
|
346
|
+
* @throws Error if the name contains a subdomain or if the years parameter is not equal to 1.
|
|
347
|
+
*/
|
|
156
348
|
declare function renewDomain(args: {
|
|
157
349
|
aptosConfig: AptosConfig;
|
|
158
350
|
sender: Account;
|