@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
|
@@ -75,11 +75,16 @@ const PropertyTypeMap = {
|
|
|
75
75
|
ARRAY: "vector<u8>",
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
/**
|
|
79
|
+
* The keys of the PropertyTypeMap, representing different property types.
|
|
80
|
+
*/
|
|
78
81
|
export type PropertyType = keyof typeof PropertyTypeMap;
|
|
79
82
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Accepted property value types for user input, including boolean, number, bigint, string, AccountAddress, and Uint8Array.
|
|
85
|
+
* To pass in an Array, use Uint8Array type
|
|
86
|
+
* for example `new MoveVector([new MoveString("hello"), new MoveString("world")]).bcsToBytes()`
|
|
87
|
+
*/
|
|
83
88
|
export type PropertyValue = boolean | number | bigint | string | AccountAddress | Uint8Array;
|
|
84
89
|
|
|
85
90
|
// The default digital asset type to use if non provided
|
|
@@ -87,6 +92,14 @@ const defaultDigitalAssetType = "0x4::token::Token";
|
|
|
87
92
|
|
|
88
93
|
// FETCH QUERIES
|
|
89
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves data for a specific digital asset using its address.
|
|
97
|
+
*
|
|
98
|
+
* @param args - The arguments for fetching digital asset data.
|
|
99
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
100
|
+
* @param args.digitalAssetAddress - The address of the digital asset to retrieve data for.
|
|
101
|
+
* @returns The data of the specified digital asset.
|
|
102
|
+
*/
|
|
90
103
|
export async function getDigitalAssetData(args: {
|
|
91
104
|
aptosConfig: AptosConfig;
|
|
92
105
|
digitalAssetAddress: AccountAddressInput;
|
|
@@ -113,6 +126,14 @@ export async function getDigitalAssetData(args: {
|
|
|
113
126
|
return data.current_token_datas_v2[0];
|
|
114
127
|
}
|
|
115
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves the current ownership details of a specified digital asset.
|
|
131
|
+
*
|
|
132
|
+
* @param args - The arguments for the function.
|
|
133
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
134
|
+
* @param args.digitalAssetAddress - The address of the digital asset to query ownership for.
|
|
135
|
+
* @returns The current ownership details of the specified digital asset.
|
|
136
|
+
*/
|
|
116
137
|
export async function getCurrentDigitalAssetOwnership(args: {
|
|
117
138
|
aptosConfig: AptosConfig;
|
|
118
139
|
digitalAssetAddress: AccountAddressInput;
|
|
@@ -140,6 +161,19 @@ export async function getCurrentDigitalAssetOwnership(args: {
|
|
|
140
161
|
return data.current_token_ownerships_v2[0];
|
|
141
162
|
}
|
|
142
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Retrieves the digital assets owned by a specified account address.
|
|
166
|
+
*
|
|
167
|
+
* @param args - The arguments for retrieving owned digital assets.
|
|
168
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos network.
|
|
169
|
+
* @param args.ownerAddress - The address of the account whose owned digital assets are being queried.
|
|
170
|
+
* @param args.options - Optional pagination and ordering parameters for the query.
|
|
171
|
+
* @param args.options.offset - The number of records to skip for pagination.
|
|
172
|
+
* @param args.options.limit - The maximum number of records to return.
|
|
173
|
+
* @param args.options.orderBy - The criteria for ordering the results.
|
|
174
|
+
*
|
|
175
|
+
* @returns An array of digital assets currently owned by the specified account.
|
|
176
|
+
*/
|
|
143
177
|
export async function getOwnedDigitalAssets(args: {
|
|
144
178
|
aptosConfig: AptosConfig;
|
|
145
179
|
ownerAddress: AccountAddressInput;
|
|
@@ -171,6 +205,19 @@ export async function getOwnedDigitalAssets(args: {
|
|
|
171
205
|
return data.current_token_ownerships_v2;
|
|
172
206
|
}
|
|
173
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Retrieves the activity associated with a specific digital asset.
|
|
210
|
+
* This function allows you to track the token activities for a given digital asset address.
|
|
211
|
+
*
|
|
212
|
+
* @param args - The arguments for retrieving digital asset activity.
|
|
213
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
214
|
+
* @param args.digitalAssetAddress - The address of the digital asset to query.
|
|
215
|
+
* @param args.options - Optional parameters for pagination and ordering.
|
|
216
|
+
* @param args.options.offset - The number of records to skip before starting to collect the result set.
|
|
217
|
+
* @param args.options.limit - The maximum number of records to return.
|
|
218
|
+
* @param args.options.orderBy - The criteria to order the results by.
|
|
219
|
+
* @returns A promise that resolves to an array of token activities for the specified digital asset.
|
|
220
|
+
*/
|
|
174
221
|
export async function getDigitalAssetActivity(args: {
|
|
175
222
|
aptosConfig: AptosConfig;
|
|
176
223
|
digitalAssetAddress: AccountAddressInput;
|
|
@@ -201,6 +248,23 @@ export async function getDigitalAssetActivity(args: {
|
|
|
201
248
|
return data.token_activities_v2;
|
|
202
249
|
}
|
|
203
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Options for creating a collection, allowing customization of various attributes such as supply limits, mutability of metadata,
|
|
253
|
+
* and royalty settings.
|
|
254
|
+
*
|
|
255
|
+
* @param maxSupply - Maximum number of tokens that can be minted in the collection.
|
|
256
|
+
* @param mutableDescription - Indicates if the collection description can be changed after creation.
|
|
257
|
+
* @param mutableRoyalty - Indicates if the royalty settings can be modified after creation.
|
|
258
|
+
* @param mutableURI - Indicates if the collection URI can be updated.
|
|
259
|
+
* @param mutableTokenDescription - Indicates if individual token descriptions can be modified.
|
|
260
|
+
* @param mutableTokenName - Indicates if individual token names can be changed.
|
|
261
|
+
* @param mutableTokenProperties - Indicates if individual token properties can be altered.
|
|
262
|
+
* @param mutableTokenURI - Indicates if individual token URIs can be updated.
|
|
263
|
+
* @param tokensBurnableByCreator - Indicates if the creator can burn tokens from the collection.
|
|
264
|
+
* @param tokensFreezableByCreator - Indicates if the creator can freeze tokens in the collection.
|
|
265
|
+
* @param royaltyNumerator - The numerator for calculating royalties.
|
|
266
|
+
* @param royaltyDenominator - The denominator for calculating royalties.
|
|
267
|
+
*/
|
|
204
268
|
export interface CreateCollectionOptions {
|
|
205
269
|
maxSupply?: AnyNumber;
|
|
206
270
|
mutableDescription?: boolean;
|
|
@@ -237,6 +301,30 @@ const createCollectionAbi: EntryFunctionABI = {
|
|
|
237
301
|
],
|
|
238
302
|
};
|
|
239
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Creates a new collection transaction on the Aptos blockchain.
|
|
306
|
+
* This function allows you to define the properties of the collection, including its name, description, and URI.
|
|
307
|
+
*
|
|
308
|
+
* @param args - The parameters for creating the collection transaction.
|
|
309
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
310
|
+
* @param args.creator - The account that will create the collection.
|
|
311
|
+
* @param args.description - A description of the collection.
|
|
312
|
+
* @param args.name - The name of the collection.
|
|
313
|
+
* @param args.uri - The URI associated with the collection.
|
|
314
|
+
* @param args.options - Optional parameters for generating the transaction.
|
|
315
|
+
* @param args.maxSupply - The maximum supply of tokens in the collection (optional).
|
|
316
|
+
* @param args.mutableDescription - Indicates if the collection description can be changed (optional, defaults to true).
|
|
317
|
+
* @param args.mutableRoyalty - Indicates if the royalty settings can be changed (optional, defaults to true).
|
|
318
|
+
* @param args.mutableURI - Indicates if the URI can be changed (optional, defaults to true).
|
|
319
|
+
* @param args.mutableTokenDescription - Indicates if the token description can be changed (optional, defaults to true).
|
|
320
|
+
* @param args.mutableTokenName - Indicates if the token name can be changed (optional, defaults to true).
|
|
321
|
+
* @param args.mutableTokenProperties - Indicates if the token properties can be changed (optional, defaults to true).
|
|
322
|
+
* @param args.mutableTokenURI - Indicates if the token URI can be changed (optional, defaults to true).
|
|
323
|
+
* @param args.tokensBurnableByCreator - Indicates if tokens can be burned by the creator (optional, defaults to true).
|
|
324
|
+
* @param args.tokensFreezableByCreator - Indicates if tokens can be frozen by the creator (optional, defaults to true).
|
|
325
|
+
* @param args.royaltyNumerator - The numerator for calculating royalties (optional, defaults to 0).
|
|
326
|
+
* @param args.royaltyDenominator - The denominator for calculating royalties (optional, defaults to 1).
|
|
327
|
+
*/
|
|
240
328
|
export async function createCollectionTransaction(
|
|
241
329
|
args: {
|
|
242
330
|
aptosConfig: AptosConfig;
|
|
@@ -277,6 +365,18 @@ export async function createCollectionTransaction(
|
|
|
277
365
|
});
|
|
278
366
|
}
|
|
279
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Retrieves data for the current collections based on specified options.
|
|
370
|
+
*
|
|
371
|
+
* @param args - The arguments for the function.
|
|
372
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
373
|
+
* @param args.options - Optional parameters for filtering and pagination.
|
|
374
|
+
* @param args.options.tokenStandard - The token standard to filter the collections (default is "v2").
|
|
375
|
+
* @param args.options.offset - The offset for pagination.
|
|
376
|
+
* @param args.options.limit - The limit for pagination.
|
|
377
|
+
* @param args.options.where - The conditions to filter the collections.
|
|
378
|
+
* @returns The data of the current collections.
|
|
379
|
+
*/
|
|
280
380
|
export async function getCollectionData(args: {
|
|
281
381
|
aptosConfig: AptosConfig;
|
|
282
382
|
options?: TokenStandardArg & PaginationArgs & WhereArg<CurrentCollectionsV2BoolExp>;
|
|
@@ -306,6 +406,17 @@ export async function getCollectionData(args: {
|
|
|
306
406
|
return data.current_collections_v2[0];
|
|
307
407
|
}
|
|
308
408
|
|
|
409
|
+
/**
|
|
410
|
+
* Retrieves collection data based on the creator's address and the collection name.
|
|
411
|
+
*
|
|
412
|
+
* @param args - The arguments for retrieving the collection data.
|
|
413
|
+
* @param args.aptosConfig - The Aptos configuration object.
|
|
414
|
+
* @param args.creatorAddress - The address of the creator whose collection data is being retrieved.
|
|
415
|
+
* @param args.collectionName - The name of the collection to fetch data for.
|
|
416
|
+
* @param args.options - Optional parameters for filtering the results, including token standard and pagination options.
|
|
417
|
+
* @param args.options.tokenStandard - The token standard to filter the results by (optional).
|
|
418
|
+
* @param args.options.pagination - Pagination options for the results (optional).
|
|
419
|
+
*/
|
|
309
420
|
export async function getCollectionDataByCreatorAddressAndCollectionName(args: {
|
|
310
421
|
aptosConfig: AptosConfig;
|
|
311
422
|
creatorAddress: AccountAddressInput;
|
|
@@ -326,6 +437,17 @@ export async function getCollectionDataByCreatorAddressAndCollectionName(args: {
|
|
|
326
437
|
return getCollectionData({ aptosConfig, options: { ...options, where: whereCondition } });
|
|
327
438
|
}
|
|
328
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Retrieves collection data associated with a specific creator's address.
|
|
442
|
+
* This function allows you to filter the collections based on the creator's address and optional token standards.
|
|
443
|
+
*
|
|
444
|
+
* @param args - The arguments for retrieving collection data.
|
|
445
|
+
* @param args.aptosConfig - The configuration for the Aptos network.
|
|
446
|
+
* @param args.creatorAddress - The address of the creator whose collection data is being retrieved.
|
|
447
|
+
* @param args.options - Optional parameters for filtering the results.
|
|
448
|
+
* @param args.options.tokenStandard - The token standard to filter the collections by.
|
|
449
|
+
* @param args.options.pagination - Pagination options for the results.
|
|
450
|
+
*/
|
|
329
451
|
export async function getCollectionDataByCreatorAddress(args: {
|
|
330
452
|
aptosConfig: AptosConfig;
|
|
331
453
|
creatorAddress: AccountAddressInput;
|
|
@@ -344,6 +466,18 @@ export async function getCollectionDataByCreatorAddress(args: {
|
|
|
344
466
|
return getCollectionData({ aptosConfig, options: { ...options, where: whereCondition } });
|
|
345
467
|
}
|
|
346
468
|
|
|
469
|
+
/**
|
|
470
|
+
* Retrieves data for a specific collection using its unique identifier.
|
|
471
|
+
* This function allows you to filter the collection data based on the token standard and pagination options.
|
|
472
|
+
*
|
|
473
|
+
* @param args - The arguments for retrieving collection data.
|
|
474
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
475
|
+
* @param args.collectionId - The unique identifier for the collection.
|
|
476
|
+
* @param args.options - Optional parameters for filtering by token standard and pagination.
|
|
477
|
+
* @param args.options.tokenStandard - The standard of the token to filter the collection data.
|
|
478
|
+
* @param args.options.page - The page number for pagination.
|
|
479
|
+
* @param args.options.limit - The number of items per page for pagination.
|
|
480
|
+
*/
|
|
347
481
|
export async function getCollectionDataByCollectionId(args: {
|
|
348
482
|
aptosConfig: AptosConfig;
|
|
349
483
|
collectionId: AccountAddressInput;
|
|
@@ -363,6 +497,18 @@ export async function getCollectionDataByCollectionId(args: {
|
|
|
363
497
|
return getCollectionData({ aptosConfig, options: { ...options, where: whereCondition } });
|
|
364
498
|
}
|
|
365
499
|
|
|
500
|
+
/**
|
|
501
|
+
* Retrieves the collection ID based on the creator's address and the collection name.
|
|
502
|
+
* This function helps in identifying a specific collection within the Aptos ecosystem.
|
|
503
|
+
*
|
|
504
|
+
* @param args - The parameters for retrieving the collection ID.
|
|
505
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
506
|
+
* @param args.creatorAddress - The address of the creator of the collection.
|
|
507
|
+
* @param args.collectionName - The name of the collection to look up.
|
|
508
|
+
* @param args.options - Optional parameters for additional filtering.
|
|
509
|
+
* @param args.options.tokenStandard - The token standard to filter the collection (default is "v2").
|
|
510
|
+
* @returns The ID of the specified collection.
|
|
511
|
+
*/
|
|
366
512
|
export async function getCollectionId(args: {
|
|
367
513
|
aptosConfig: AptosConfig;
|
|
368
514
|
creatorAddress: AccountAddressInput;
|
|
@@ -398,6 +544,22 @@ const mintDigitalAssetAbi: EntryFunctionABI = {
|
|
|
398
544
|
],
|
|
399
545
|
};
|
|
400
546
|
|
|
547
|
+
/**
|
|
548
|
+
* Creates a transaction to mint a digital asset on the Aptos blockchain.
|
|
549
|
+
* This function allows you to specify various attributes of the asset, including its collection, description, name, and URI.
|
|
550
|
+
*
|
|
551
|
+
* @param args - The arguments for minting the digital asset.
|
|
552
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
553
|
+
* @param args.creator - The account that will create the digital asset.
|
|
554
|
+
* @param args.collection - The name of the collection to which the asset belongs.
|
|
555
|
+
* @param args.description - A brief description of the digital asset.
|
|
556
|
+
* @param args.name - The name of the digital asset.
|
|
557
|
+
* @param args.uri - The URI pointing to the asset's metadata.
|
|
558
|
+
* @param [args.propertyKeys] - Optional array of property keys associated with the asset.
|
|
559
|
+
* @param [args.propertyTypes] - Optional array of property types corresponding to the asset's properties.
|
|
560
|
+
* @param [args.propertyValues] - Optional array of property values for the asset's properties.
|
|
561
|
+
* @param [args.options] - Optional transaction generation options.
|
|
562
|
+
*/
|
|
401
563
|
export async function mintDigitalAssetTransaction(args: {
|
|
402
564
|
aptosConfig: AptosConfig;
|
|
403
565
|
creator: Account;
|
|
@@ -435,6 +597,14 @@ export async function mintDigitalAssetTransaction(args: {
|
|
|
435
597
|
new MoveString(uri),
|
|
436
598
|
MoveVector.MoveString(propertyKeys ?? []),
|
|
437
599
|
MoveVector.MoveString(convertedPropertyType ?? []),
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Retrieves the raw values of specified properties from an array of property values based on their types.
|
|
603
|
+
*
|
|
604
|
+
* @param propertyValues - An array of property values from which to extract the raw data.
|
|
605
|
+
* @param propertyTypes - An array of strings representing the types of properties to retrieve.
|
|
606
|
+
* @returns An array of Uint8Array containing the raw values for the specified property types.
|
|
607
|
+
*/
|
|
438
608
|
getPropertyValueRaw(propertyValues ?? [], convertedPropertyType ?? []),
|
|
439
609
|
],
|
|
440
610
|
abi: mintDigitalAssetAbi,
|
|
@@ -448,6 +618,18 @@ const transferDigitalAssetAbi: EntryFunctionABI = {
|
|
|
448
618
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagAddress()],
|
|
449
619
|
};
|
|
450
620
|
|
|
621
|
+
/**
|
|
622
|
+
* Initiates a transaction to transfer a digital asset from one account to another.
|
|
623
|
+
* This function helps in executing the transfer of digital assets securely and efficiently.
|
|
624
|
+
*
|
|
625
|
+
* @param args - The arguments required to perform the transfer.
|
|
626
|
+
* @param args.aptosConfig - Configuration settings for the Aptos client.
|
|
627
|
+
* @param args.sender - The account initiating the transfer.
|
|
628
|
+
* @param args.digitalAssetAddress - The address of the digital asset being transferred.
|
|
629
|
+
* @param args.recipient - The address of the account receiving the digital asset.
|
|
630
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset being transferred.
|
|
631
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
632
|
+
*/
|
|
451
633
|
export async function transferDigitalAssetTransaction(args: {
|
|
452
634
|
aptosConfig: AptosConfig;
|
|
453
635
|
sender: Account;
|
|
@@ -484,6 +666,24 @@ const mintSoulBoundAbi: EntryFunctionABI = {
|
|
|
484
666
|
],
|
|
485
667
|
};
|
|
486
668
|
|
|
669
|
+
/**
|
|
670
|
+
* Creates a transaction to mint a soul-bound token.
|
|
671
|
+
* This function allows you to specify the token's attributes and recipient, facilitating the creation of unique digital assets.
|
|
672
|
+
*
|
|
673
|
+
* @param args - The parameters required to mint the soul-bound token.
|
|
674
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
675
|
+
* @param args.account - The account initiating the minting transaction.
|
|
676
|
+
* @param args.collection - The name of the collection to which the token belongs.
|
|
677
|
+
* @param args.description - A description of the token being minted.
|
|
678
|
+
* @param args.name - The name of the token.
|
|
679
|
+
* @param args.uri - The URI pointing to the token's metadata.
|
|
680
|
+
* @param args.recipient - The address of the account that will receive the minted token.
|
|
681
|
+
* @param [args.propertyKeys] - Optional array of property keys associated with the token.
|
|
682
|
+
* @param [args.propertyTypes] - Optional array of property types corresponding to the property keys.
|
|
683
|
+
* @param [args.propertyValues] - Optional array of property values that match the property keys and types.
|
|
684
|
+
* @param [args.options] - Optional transaction generation options.
|
|
685
|
+
* @throws Error if the counts of property keys, property types, and property values do not match.
|
|
686
|
+
*/
|
|
487
687
|
export async function mintSoulBoundTransaction(args: {
|
|
488
688
|
aptosConfig: AptosConfig;
|
|
489
689
|
account: Account;
|
|
@@ -543,6 +743,17 @@ const burnDigitalAssetAbi: EntryFunctionABI = {
|
|
|
543
743
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0)))],
|
|
544
744
|
};
|
|
545
745
|
|
|
746
|
+
/**
|
|
747
|
+
* Creates a transaction to burn a specified digital asset.
|
|
748
|
+
* This function allows users to permanently remove a digital asset from their account.
|
|
749
|
+
*
|
|
750
|
+
* @param args - The arguments for the transaction.
|
|
751
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
752
|
+
* @param args.creator - The account that is initiating the burn transaction.
|
|
753
|
+
* @param args.digitalAssetAddress - The address of the digital asset to be burned.
|
|
754
|
+
* @param args.digitalAssetType - Optional; the type of the digital asset being burned.
|
|
755
|
+
* @param args.options - Optional; additional options for generating the transaction.
|
|
756
|
+
*/
|
|
546
757
|
export async function burnDigitalAssetTransaction(args: {
|
|
547
758
|
aptosConfig: AptosConfig;
|
|
548
759
|
creator: Account;
|
|
@@ -569,6 +780,17 @@ const freezeDigitalAssetAbi: EntryFunctionABI = {
|
|
|
569
780
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0)))],
|
|
570
781
|
};
|
|
571
782
|
|
|
783
|
+
/**
|
|
784
|
+
* Creates a transaction to freeze the transfer of a digital asset.
|
|
785
|
+
* This function helps you prevent the transfer of a specified digital asset by generating the appropriate transaction.
|
|
786
|
+
*
|
|
787
|
+
* @param args - The parameters for the transaction.
|
|
788
|
+
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
789
|
+
* @param args.creator - The account that is creating the transaction.
|
|
790
|
+
* @param args.digitalAssetAddress - The address of the digital asset to be frozen.
|
|
791
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset as a Move struct ID.
|
|
792
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
793
|
+
*/
|
|
572
794
|
export async function freezeDigitalAssetTransferTransaction(args: {
|
|
573
795
|
aptosConfig: AptosConfig;
|
|
574
796
|
creator: Account;
|
|
@@ -595,6 +817,16 @@ const unfreezeDigitalAssetAbi: EntryFunctionABI = {
|
|
|
595
817
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0)))],
|
|
596
818
|
};
|
|
597
819
|
|
|
820
|
+
/**
|
|
821
|
+
* Unfreezes a digital asset transfer transaction, allowing the transfer of the specified digital asset.
|
|
822
|
+
*
|
|
823
|
+
* @param args - The arguments for unfreezing the digital asset transfer transaction.
|
|
824
|
+
* @param args.aptosConfig - The Aptos configuration settings.
|
|
825
|
+
* @param args.creator - The account that is initiating the unfreeze transaction.
|
|
826
|
+
* @param args.digitalAssetAddress - The address of the digital asset to be unfrozen.
|
|
827
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset being unfrozen.
|
|
828
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
829
|
+
*/
|
|
598
830
|
export async function unfreezeDigitalAssetTransferTransaction(args: {
|
|
599
831
|
aptosConfig: AptosConfig;
|
|
600
832
|
creator: Account;
|
|
@@ -621,6 +853,17 @@ const setDigitalAssetDescriptionAbi: EntryFunctionABI = {
|
|
|
621
853
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())],
|
|
622
854
|
};
|
|
623
855
|
|
|
856
|
+
/**
|
|
857
|
+
* Sets the description for a digital asset, allowing users to provide additional context or information about the asset.
|
|
858
|
+
*
|
|
859
|
+
* @param args - The arguments for setting the digital asset description.
|
|
860
|
+
* @param args.aptosConfig - The Aptos configuration to use for the transaction.
|
|
861
|
+
* @param args.creator - The account that is creating the transaction.
|
|
862
|
+
* @param args.description - The new description for the digital asset.
|
|
863
|
+
* @param args.digitalAssetAddress - The address of the digital asset whose description is being set.
|
|
864
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
865
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
866
|
+
*/
|
|
624
867
|
export async function setDigitalAssetDescriptionTransaction(args: {
|
|
625
868
|
aptosConfig: AptosConfig;
|
|
626
869
|
creator: Account;
|
|
@@ -648,6 +891,18 @@ const setDigitalAssetNameAbi: EntryFunctionABI = {
|
|
|
648
891
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())],
|
|
649
892
|
};
|
|
650
893
|
|
|
894
|
+
/**
|
|
895
|
+
* Sets the name of a digital asset on the Aptos blockchain.
|
|
896
|
+
* This function allows you to update the name of a specified digital asset, enabling better identification and categorization.
|
|
897
|
+
*
|
|
898
|
+
* @param args - The parameters for setting the digital asset name.
|
|
899
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
900
|
+
* @param args.creator - The account that is creating the transaction.
|
|
901
|
+
* @param args.name - The new name to assign to the digital asset.
|
|
902
|
+
* @param args.digitalAssetAddress - The address of the digital asset to update.
|
|
903
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset, represented as a Move struct ID.
|
|
904
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
905
|
+
*/
|
|
651
906
|
export async function setDigitalAssetNameTransaction(args: {
|
|
652
907
|
aptosConfig: AptosConfig;
|
|
653
908
|
creator: Account;
|
|
@@ -675,6 +930,17 @@ const setDigitalAssetURIAbi: EntryFunctionABI = {
|
|
|
675
930
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())],
|
|
676
931
|
};
|
|
677
932
|
|
|
933
|
+
/**
|
|
934
|
+
* Sets the URI for a digital asset, allowing you to update the metadata associated with it.
|
|
935
|
+
*
|
|
936
|
+
* @param args - The arguments for setting the digital asset URI.
|
|
937
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
938
|
+
* @param args.creator - The account that is creating the transaction.
|
|
939
|
+
* @param args.uri - The new URI to be set for the digital asset.
|
|
940
|
+
* @param args.digitalAssetAddress - The address of the digital asset whose URI is being set.
|
|
941
|
+
* @param args.digitalAssetType - The optional type of the digital asset; defaults to a predefined type if not provided.
|
|
942
|
+
* @param args.options - Optional settings for generating the transaction.
|
|
943
|
+
*/
|
|
678
944
|
export async function setDigitalAssetURITransaction(args: {
|
|
679
945
|
aptosConfig: AptosConfig;
|
|
680
946
|
creator: Account;
|
|
@@ -707,6 +973,20 @@ const addDigitalAssetPropertyAbi: EntryFunctionABI = {
|
|
|
707
973
|
],
|
|
708
974
|
};
|
|
709
975
|
|
|
976
|
+
/**
|
|
977
|
+
* Creates a transaction to add a property to a digital asset.
|
|
978
|
+
* This function helps in enhancing the metadata associated with a digital asset by allowing the addition of custom properties.
|
|
979
|
+
*
|
|
980
|
+
* @param args - The arguments for the transaction.
|
|
981
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
982
|
+
* @param args.creator - The account that is creating the transaction.
|
|
983
|
+
* @param args.propertyKey - The key for the property being added.
|
|
984
|
+
* @param args.propertyType - The type of the property being added.
|
|
985
|
+
* @param args.propertyValue - The value of the property being added.
|
|
986
|
+
* @param args.digitalAssetAddress - The address of the digital asset to which the property is being added.
|
|
987
|
+
* @param args.digitalAssetType - The optional type of the digital asset.
|
|
988
|
+
* @param args.options - Optional transaction generation options.
|
|
989
|
+
*/
|
|
710
990
|
export async function addDigitalAssetPropertyTransaction(args: {
|
|
711
991
|
aptosConfig: AptosConfig;
|
|
712
992
|
creator: Account;
|
|
@@ -750,6 +1030,18 @@ const removeDigitalAssetPropertyAbi: EntryFunctionABI = {
|
|
|
750
1030
|
parameters: [new TypeTagStruct(objectStructTag(new TypeTagGeneric(0))), new TypeTagStruct(stringStructTag())],
|
|
751
1031
|
};
|
|
752
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* Removes a property from a digital asset on the Aptos blockchain.
|
|
1035
|
+
* This function helps in managing the attributes of digital assets by allowing the removal of specific properties.
|
|
1036
|
+
*
|
|
1037
|
+
* @param args - The arguments for the transaction.
|
|
1038
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
1039
|
+
* @param args.creator - The account that is creating the transaction.
|
|
1040
|
+
* @param args.propertyKey - The key of the property to be removed.
|
|
1041
|
+
* @param args.digitalAssetAddress - The address of the digital asset from which the property will be removed.
|
|
1042
|
+
* @param args.digitalAssetType - The type of the digital asset (optional).
|
|
1043
|
+
* @param args.options - Additional options for generating the transaction (optional).
|
|
1044
|
+
*/
|
|
753
1045
|
export async function removeDigitalAssetPropertyTransaction(args: {
|
|
754
1046
|
aptosConfig: AptosConfig;
|
|
755
1047
|
creator: Account;
|
|
@@ -782,6 +1074,20 @@ const updateDigitalAssetPropertyAbi: EntryFunctionABI = {
|
|
|
782
1074
|
],
|
|
783
1075
|
};
|
|
784
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* Updates a property of a digital asset by generating a transaction for the Aptos blockchain.
|
|
1079
|
+
* This function allows you to modify attributes of a digital asset, facilitating dynamic changes to its properties.
|
|
1080
|
+
*
|
|
1081
|
+
* @param args - The arguments for updating the digital asset property.
|
|
1082
|
+
* @param args.aptosConfig - The configuration settings for the Aptos blockchain.
|
|
1083
|
+
* @param args.creator - The account that is creating the transaction.
|
|
1084
|
+
* @param args.propertyKey - The key of the property to be updated.
|
|
1085
|
+
* @param args.propertyType - The type of the property being updated.
|
|
1086
|
+
* @param args.propertyValue - The new value for the property.
|
|
1087
|
+
* @param args.digitalAssetAddress - The address of the digital asset to update.
|
|
1088
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
1089
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
1090
|
+
*/
|
|
785
1091
|
export async function updateDigitalAssetPropertyTransaction(args: {
|
|
786
1092
|
aptosConfig: AptosConfig;
|
|
787
1093
|
creator: Account;
|
|
@@ -812,6 +1118,14 @@ export async function updateDigitalAssetPropertyTransaction(args: {
|
|
|
812
1118
|
AccountAddress.from(digitalAssetAddress),
|
|
813
1119
|
new MoveString(propertyKey),
|
|
814
1120
|
new MoveString(PropertyTypeMap[propertyType]),
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Retrieves the raw byte representation of a single property value based on its type.
|
|
1124
|
+
*
|
|
1125
|
+
* @param propertyValue - The value of the property to convert.
|
|
1126
|
+
* @param propertyType - The type of the property, which determines how the value is processed.
|
|
1127
|
+
* @returns The raw byte representation of the property value.
|
|
1128
|
+
*/
|
|
815
1129
|
getSinglePropertyValueRaw(propertyValue, PropertyTypeMap[propertyType]),
|
|
816
1130
|
],
|
|
817
1131
|
abi: updateDigitalAssetPropertyAbi,
|
|
@@ -829,6 +1143,20 @@ const addDigitalAssetTypedPropertyAbi: EntryFunctionABI = {
|
|
|
829
1143
|
],
|
|
830
1144
|
};
|
|
831
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* Creates a transaction to add a typed property to a digital asset.
|
|
1148
|
+
* This function helps in customizing digital assets by associating them with specific properties.
|
|
1149
|
+
*
|
|
1150
|
+
* @param args - The arguments required to create the transaction.
|
|
1151
|
+
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
1152
|
+
* @param args.creator - The account that is creating the transaction.
|
|
1153
|
+
* @param args.propertyKey - The key for the property being added.
|
|
1154
|
+
* @param args.propertyType - The type of the property being added.
|
|
1155
|
+
* @param args.propertyValue - The value of the property being added.
|
|
1156
|
+
* @param args.digitalAssetAddress - The address of the digital asset to which the property is being added.
|
|
1157
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
1158
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
1159
|
+
*/
|
|
832
1160
|
export async function addDigitalAssetTypedPropertyTransaction(args: {
|
|
833
1161
|
aptosConfig: AptosConfig;
|
|
834
1162
|
creator: Account;
|
|
@@ -871,6 +1199,19 @@ const updateDigitalAssetTypedPropertyAbi: EntryFunctionABI = {
|
|
|
871
1199
|
],
|
|
872
1200
|
};
|
|
873
1201
|
|
|
1202
|
+
/**
|
|
1203
|
+
* Updates the typed property of a digital asset by generating a transaction for the Aptos blockchain.
|
|
1204
|
+
*
|
|
1205
|
+
* @param args - The arguments for updating the digital asset typed property.
|
|
1206
|
+
* @param args.aptosConfig - The configuration settings for the Aptos network.
|
|
1207
|
+
* @param args.creator - The account that is creating the transaction.
|
|
1208
|
+
* @param args.propertyKey - The key of the property to be updated.
|
|
1209
|
+
* @param args.propertyType - The type of the property being updated.
|
|
1210
|
+
* @param args.propertyValue - The new value for the property.
|
|
1211
|
+
* @param args.digitalAssetAddress - The address of the digital asset to be updated.
|
|
1212
|
+
* @param args.digitalAssetType - Optional. The type of the digital asset, if not provided, defaults to the standard type.
|
|
1213
|
+
* @param args.options - Optional. Additional options for generating the transaction.
|
|
1214
|
+
*/
|
|
874
1215
|
export async function updateDigitalAssetTypedPropertyTransaction(args: {
|
|
875
1216
|
aptosConfig: AptosConfig;
|
|
876
1217
|
creator: Account;
|
package/src/internal/event.ts
CHANGED
|
@@ -23,6 +23,15 @@ const checkEventTypeLength = (eventType?: InputMaybe<string>) => {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves events associated with a specific module event type.
|
|
28
|
+
* This function allows you to filter events based on the event type and pagination options.
|
|
29
|
+
*
|
|
30
|
+
* @param args - The arguments for retrieving module events.
|
|
31
|
+
* @param args.aptosConfig - The configuration object for Aptos.
|
|
32
|
+
* @param args.eventType - The MoveStructId representing the type of event to retrieve.
|
|
33
|
+
* @param [args.options] - Optional pagination and ordering parameters for the event retrieval.
|
|
34
|
+
*/
|
|
26
35
|
export async function getModuleEventsByEventType(args: {
|
|
27
36
|
aptosConfig: AptosConfig;
|
|
28
37
|
eventType: MoveStructId;
|
|
@@ -47,6 +56,15 @@ export async function getModuleEventsByEventType(args: {
|
|
|
47
56
|
return getEvents({ aptosConfig, options: { ...options, where: whereCondition } });
|
|
48
57
|
}
|
|
49
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Retrieve events associated with a specific account and creation number.
|
|
61
|
+
*
|
|
62
|
+
* @param args - The parameters for retrieving account events.
|
|
63
|
+
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
64
|
+
* @param args.accountAddress - The address of the account for which events are being retrieved.
|
|
65
|
+
* @param args.creationNumber - The creation number to filter events.
|
|
66
|
+
* @param args.options - Optional pagination and ordering parameters for the event retrieval.
|
|
67
|
+
*/
|
|
50
68
|
export async function getAccountEventsByCreationNumber(args: {
|
|
51
69
|
aptosConfig: AptosConfig;
|
|
52
70
|
accountAddress: AccountAddressInput;
|
|
@@ -64,6 +82,15 @@ export async function getAccountEventsByCreationNumber(args: {
|
|
|
64
82
|
return getEvents({ aptosConfig, options: { ...options, where: whereCondition } });
|
|
65
83
|
}
|
|
66
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves events associated with a specific account and event type.
|
|
87
|
+
*
|
|
88
|
+
* @param args - The parameters for retrieving account events.
|
|
89
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos blockchain.
|
|
90
|
+
* @param args.accountAddress - The address of the account for which to retrieve events.
|
|
91
|
+
* @param args.eventType - The type of event to filter by.
|
|
92
|
+
* @param args.options - Optional pagination and ordering parameters for the event retrieval.
|
|
93
|
+
*/
|
|
67
94
|
export async function getAccountEventsByEventType(args: {
|
|
68
95
|
aptosConfig: AptosConfig;
|
|
69
96
|
accountAddress: AccountAddressInput;
|
|
@@ -81,11 +108,35 @@ export async function getAccountEventsByEventType(args: {
|
|
|
81
108
|
return getEvents({ aptosConfig, options: { ...options, where: whereCondition } });
|
|
82
109
|
}
|
|
83
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Retrieves a list of events based on specified filtering and pagination options.
|
|
113
|
+
*
|
|
114
|
+
* @param args - The arguments for retrieving events.
|
|
115
|
+
* @param args.aptosConfig - The configuration for connecting to the Aptos network.
|
|
116
|
+
* @param [args.options] - Optional parameters for pagination and filtering.
|
|
117
|
+
* @param [args.options.offset] - The number of records to skip before starting to collect the result set.
|
|
118
|
+
* @param [args.options.limit] - The maximum number of records to return.
|
|
119
|
+
* @param [args.options.orderBy] - Defines the order in which to return the events.
|
|
120
|
+
* @param [args.options.where] - Conditions to filter the events.
|
|
121
|
+
* @param [args.options.where.indexed_type] - Filters events by the indexed type.
|
|
122
|
+
*/
|
|
84
123
|
export async function getEvents(args: {
|
|
85
124
|
aptosConfig: AptosConfig;
|
|
86
125
|
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]> & WhereArg<EventsBoolExp>;
|
|
87
126
|
}): Promise<GetEventsResponse> {
|
|
88
127
|
const { aptosConfig, options } = args;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Checks the length of event types based on the provided filtering options.
|
|
131
|
+
*
|
|
132
|
+
* @param options - The options for querying event types.
|
|
133
|
+
* @param options.where - The conditions to filter the event types.
|
|
134
|
+
* @param options.where.indexed_type - The indexed type to filter by.
|
|
135
|
+
* @param options.where.indexed_type._eq - The specific value to match for the indexed type.
|
|
136
|
+
* @param options.offset - The number of items to skip before starting to collect the result set.
|
|
137
|
+
* @param options.limit - The maximum number of items to return.
|
|
138
|
+
* @param options.orderBy - The criteria to sort the results.
|
|
139
|
+
*/
|
|
89
140
|
// eslint-disable-next-line no-underscore-dangle
|
|
90
141
|
checkEventTypeLength(options?.where?.indexed_type?._eq);
|
|
91
142
|
|
package/src/internal/faucet.ts
CHANGED
|
@@ -15,6 +15,20 @@ import { TransactionResponseType, UserTransactionResponse, WaitForTransactionOpt
|
|
|
15
15
|
import { DEFAULT_TXN_TIMEOUT_SEC } from "../utils/const";
|
|
16
16
|
import { waitForTransaction } from "./transaction";
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Funds an account with a specified amount of tokens from the Aptos faucet.
|
|
20
|
+
* This function is useful for quickly providing a new or existing account with tokens to facilitate transactions.
|
|
21
|
+
*
|
|
22
|
+
* @param args - The arguments for funding the account.
|
|
23
|
+
* @param args.aptosConfig - The configuration settings for connecting to the Aptos network.
|
|
24
|
+
* @param args.accountAddress - The address of the account to be funded.
|
|
25
|
+
* @param args.amount - The amount of tokens to fund the account with.
|
|
26
|
+
* @param args.options - Optional parameters for the transaction.
|
|
27
|
+
* @param args.options.timeoutSecs - The maximum time to wait for the transaction to complete, in seconds.
|
|
28
|
+
* @param args.options.checkSuccess - A flag indicating whether to check if the transaction was successful.
|
|
29
|
+
*
|
|
30
|
+
* @throws Error if the transaction does not return a user transaction type.
|
|
31
|
+
*/
|
|
18
32
|
export async function fundAccount(args: {
|
|
19
33
|
aptosConfig: AptosConfig;
|
|
20
34
|
accountAddress: AccountAddressInput;
|