@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,12 +1,14 @@
|
|
|
1
1
|
import { AnyNumber, TokenStandardArg, PaginationArgs, OrderByArg, MoveStructId } from '../types/index.mjs';
|
|
2
2
|
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs';
|
|
3
3
|
import { AptosConfig } from './aptosConfig.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 { CreateCollectionOptions, PropertyType, PropertyValue } from '../internal/digitalAsset.mjs';
|
|
7
7
|
import { SimpleTransaction } from '../transactions/instances/simpleTransaction.mjs';
|
|
8
8
|
import { GetCollectionDataResponse, GetTokenDataResponse, GetCurrentTokenOwnershipResponse, GetOwnedTokensResponse, GetTokenActivityResponse } from '../types/indexer.mjs';
|
|
9
9
|
import '../utils/apiEndpoints.mjs';
|
|
10
|
+
import '../types/generated/operations.mjs';
|
|
11
|
+
import '../types/generated/types.mjs';
|
|
10
12
|
import '../bcs/serializer.mjs';
|
|
11
13
|
import '../core/hex.mjs';
|
|
12
14
|
import '../core/common.mjs';
|
|
@@ -15,7 +17,7 @@ import '../transactions/instances/transactionArgument.mjs';
|
|
|
15
17
|
import '../utils/const.mjs';
|
|
16
18
|
import '../transactions/authenticator/account.mjs';
|
|
17
19
|
import '../core/crypto/ed25519.mjs';
|
|
18
|
-
import '../publicKey-
|
|
20
|
+
import '../publicKey-_tPa99ea.mjs';
|
|
19
21
|
import '../core/crypto/signature.mjs';
|
|
20
22
|
import '../core/crypto/privateKey.mjs';
|
|
21
23
|
import '../core/crypto/multiEd25519.mjs';
|
|
@@ -31,32 +33,68 @@ import '../transactions/instances/identifier.mjs';
|
|
|
31
33
|
import '../transactions/instances/moduleId.mjs';
|
|
32
34
|
import '../transactions/typeTag/index.mjs';
|
|
33
35
|
import '../transactions/instances/multiAgentTransaction.mjs';
|
|
34
|
-
import '../types/generated/types.mjs';
|
|
35
|
-
import '../types/generated/operations.mjs';
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* A class to query all `DigitalAsset` related queries on Aptos.
|
|
39
39
|
*/
|
|
40
40
|
declare class DigitalAsset {
|
|
41
41
|
readonly config: AptosConfig;
|
|
42
|
-
constructor(config: AptosConfig);
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* Initializes a new instance of the Aptos client with the specified configuration.
|
|
44
|
+
* This allows you to interact with the Aptos blockchain using the provided settings.
|
|
45
|
+
*
|
|
46
|
+
* @param config - The configuration settings for the Aptos client.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
46
51
|
*
|
|
52
|
+
* async function runExample() {
|
|
53
|
+
* // Create a configuration for the Aptos client
|
|
54
|
+
* const config = new AptosConfig({ network: Network.TESTNET }); // Specify your desired network
|
|
55
|
+
*
|
|
56
|
+
* // Initialize the Aptos client with the configuration
|
|
57
|
+
* const aptos = new Aptos(config);
|
|
58
|
+
*
|
|
59
|
+
* console.log("Aptos client initialized:", aptos);
|
|
60
|
+
* }
|
|
61
|
+
* runExample().catch(console.error);
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
constructor(config: AptosConfig);
|
|
65
|
+
/**
|
|
47
66
|
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
67
|
+
* This function is deprecated; use `getCollectionDataByCreatorAddressAndCollectionName` instead.
|
|
48
68
|
*
|
|
49
|
-
* If
|
|
50
|
-
*
|
|
69
|
+
* If a creator account has two collections with the same name in v1 and v2, you can pass an optional `tokenStandard` parameter
|
|
70
|
+
* to query a specific standard.
|
|
51
71
|
*
|
|
52
|
-
* @
|
|
53
|
-
*
|
|
72
|
+
* @param args - The arguments for querying the collection data.
|
|
73
|
+
* @param args.creatorAddress - The address of the collection's creator.
|
|
74
|
+
* @param args.collectionName - The name of the collection.
|
|
75
|
+
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
76
|
+
* @param args.options - Optional parameters for the query.
|
|
77
|
+
* @param args.options.tokenStandard - The token standard to query.
|
|
78
|
+
* @returns GetCollectionDataResponse - The response type containing the collection data.
|
|
54
79
|
*
|
|
55
|
-
* @
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
83
|
+
*
|
|
84
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
85
|
+
* const aptos = new Aptos(config);
|
|
86
|
+
*
|
|
87
|
+
* async function runExample() {
|
|
88
|
+
* // Querying collection data by creator address and collection name
|
|
89
|
+
* const collection = await aptos.getCollectionData({
|
|
90
|
+
* creatorAddress: "0x1", // replace with a real creator address
|
|
91
|
+
* collectionName: "myCollection", // specify your collection name
|
|
92
|
+
* });
|
|
93
|
+
*
|
|
94
|
+
* console.log(collection);
|
|
95
|
+
* }
|
|
96
|
+
* runExample().catch(console.error);
|
|
97
|
+
* ```
|
|
60
98
|
*/
|
|
61
99
|
getCollectionData(args: {
|
|
62
100
|
creatorAddress: AccountAddressInput;
|
|
@@ -66,21 +104,35 @@ declare class DigitalAsset {
|
|
|
66
104
|
}): Promise<GetCollectionDataResponse>;
|
|
67
105
|
/**
|
|
68
106
|
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
107
|
+
* If a creator account has multiple collections with the same name across different versions,
|
|
108
|
+
* specify the `tokenStandard` parameter to query a specific standard.
|
|
69
109
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
110
|
+
* @param args.creatorAddress - The address of the collection's creator.
|
|
111
|
+
* @param args.collectionName - The name of the collection.
|
|
112
|
+
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
113
|
+
* @param args.options.tokenStandard - Optional token standard to query.
|
|
114
|
+
* @returns GetCollectionDataResponse - The response type containing collection data.
|
|
72
115
|
*
|
|
73
116
|
* @example
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* })
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
117
|
+
* ```typescript
|
|
118
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
119
|
+
*
|
|
120
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
121
|
+
* const aptos = new Aptos(config);
|
|
122
|
+
*
|
|
123
|
+
* async function runExample() {
|
|
124
|
+
* // Fetching collection data by creator address and collection name
|
|
125
|
+
* const collection = await aptos.getCollectionDataByCreatorAddressAndCollectionName({
|
|
126
|
+
* creatorAddress: "0x1", // replace with a real creator address
|
|
127
|
+
* collectionName: "myCollection",
|
|
128
|
+
* minimumLedgerVersion: 1, // optional, specify if needed
|
|
129
|
+
* options: { tokenStandard: "v2" } // optional, specify if needed
|
|
130
|
+
* });
|
|
131
|
+
*
|
|
132
|
+
* console.log(collection);
|
|
133
|
+
* }
|
|
134
|
+
* runExample().catch(console.error);
|
|
135
|
+
* ```
|
|
84
136
|
*/
|
|
85
137
|
getCollectionDataByCreatorAddressAndCollectionName(args: {
|
|
86
138
|
creatorAddress: AccountAddressInput;
|
|
@@ -89,19 +141,37 @@ declare class DigitalAsset {
|
|
|
89
141
|
options?: TokenStandardArg & PaginationArgs;
|
|
90
142
|
}): Promise<GetCollectionDataResponse>;
|
|
91
143
|
/**
|
|
92
|
-
*
|
|
144
|
+
* Retrieves data for a specific collection created by a given creator address.
|
|
145
|
+
* This function allows you to query collection data while optionally specifying a minimum ledger version and pagination options.
|
|
93
146
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
147
|
+
* @param args.creatorAddress - The address of the collection's creator.
|
|
148
|
+
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
149
|
+
* @param args.options.tokenStandard - Optional token standard to query.
|
|
150
|
+
* @param args.options.pagination - Optional pagination arguments.
|
|
151
|
+
* @returns GetCollectionDataResponse - The response type containing collection data.
|
|
96
152
|
*
|
|
97
153
|
* @example
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
154
|
+
* ```typescript
|
|
155
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
156
|
+
*
|
|
157
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
158
|
+
* const aptos = new Aptos(config);
|
|
159
|
+
*
|
|
160
|
+
* async function runExample() {
|
|
161
|
+
* // Retrieve collection data by creator address
|
|
162
|
+
* const collectionData = await aptos.getCollectionDataByCreatorAddress({
|
|
163
|
+
* creatorAddress: "0x1", // replace with a real creator address
|
|
164
|
+
* minimumLedgerVersion: 1, // specify the minimum ledger version if needed
|
|
165
|
+
* options: {
|
|
166
|
+
* tokenStandard: "v2", // specify the token standard if needed
|
|
167
|
+
* pagination: { limit: 10, offset: 0 } // specify pagination options if needed
|
|
168
|
+
* }
|
|
169
|
+
* });
|
|
170
|
+
*
|
|
171
|
+
* console.log(collectionData);
|
|
172
|
+
* }
|
|
173
|
+
* runExample().catch(console.error);
|
|
174
|
+
* ```
|
|
105
175
|
*/
|
|
106
176
|
getCollectionDataByCreatorAddress(args: {
|
|
107
177
|
creatorAddress: AccountAddressInput;
|
|
@@ -111,12 +181,28 @@ declare class DigitalAsset {
|
|
|
111
181
|
/**
|
|
112
182
|
* Queries data of a specific collection by the collection ID.
|
|
113
183
|
*
|
|
114
|
-
* @
|
|
115
|
-
*
|
|
184
|
+
* @param args.collectionId - The ID of the collection, which is the same as the address of the collection object.
|
|
185
|
+
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
186
|
+
* @param args.options - Optional parameters for token standard and pagination.
|
|
187
|
+
* @returns GetCollectionDataResponse - The response type containing the collection data.
|
|
116
188
|
*
|
|
117
|
-
* @
|
|
118
|
-
*
|
|
119
|
-
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```typescript
|
|
191
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
192
|
+
*
|
|
193
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
194
|
+
* const aptos = new Aptos(config);
|
|
195
|
+
*
|
|
196
|
+
* async function runExample() {
|
|
197
|
+
* // Fetching collection data by collection ID
|
|
198
|
+
* const collection = await aptos.getCollectionDataByCollectionId({
|
|
199
|
+
* collectionId: "0x123", // replace with a real collection ID
|
|
200
|
+
* });
|
|
201
|
+
*
|
|
202
|
+
* console.log(collection);
|
|
203
|
+
* }
|
|
204
|
+
* runExample().catch(console.error);
|
|
205
|
+
* ```
|
|
120
206
|
*/
|
|
121
207
|
getCollectionDataByCollectionId(args: {
|
|
122
208
|
collectionId: AccountAddressInput;
|
|
@@ -124,19 +210,33 @@ declare class DigitalAsset {
|
|
|
124
210
|
options?: TokenStandardArg & PaginationArgs;
|
|
125
211
|
}): Promise<GetCollectionDataResponse>;
|
|
126
212
|
/**
|
|
127
|
-
* Queries a collection
|
|
213
|
+
* Queries the ID of a specified collection.
|
|
214
|
+
* This ID corresponds to the collection's object address in V2, while V1 does not utilize objects and lacks an address.
|
|
128
215
|
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
216
|
+
* @param args.creatorAddress - The address of the collection's creator.
|
|
217
|
+
* @param args.collectionName - The name of the collection.
|
|
218
|
+
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
219
|
+
* @param args.options.tokenStandard - The token standard to query.
|
|
220
|
+
* @returns The collection ID.
|
|
131
221
|
*
|
|
132
222
|
* @example
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
223
|
+
* ```typescript
|
|
224
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
225
|
+
*
|
|
226
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
227
|
+
* const aptos = new Aptos(config);
|
|
228
|
+
*
|
|
229
|
+
* async function runExample() {
|
|
230
|
+
* // Fetching the collection ID for a specific creator and collection name
|
|
231
|
+
* const collectionId = await aptos.getCollectionId({
|
|
232
|
+
* creatorAddress: "0x1", // replace with a real creator address
|
|
233
|
+
* collectionName: "myCollection"
|
|
234
|
+
* });
|
|
235
|
+
*
|
|
236
|
+
* console.log("Collection ID:", collectionId);
|
|
237
|
+
* }
|
|
238
|
+
* runExample().catch(console.error);
|
|
239
|
+
* ```
|
|
140
240
|
*/
|
|
141
241
|
getCollectionId(args: {
|
|
142
242
|
creatorAddress: AccountAddressInput;
|
|
@@ -145,44 +245,92 @@ declare class DigitalAsset {
|
|
|
145
245
|
options?: TokenStandardArg;
|
|
146
246
|
}): Promise<string>;
|
|
147
247
|
/**
|
|
148
|
-
*
|
|
248
|
+
* Retrieves digital asset data using the address of a digital asset.
|
|
149
249
|
*
|
|
150
|
-
* @
|
|
151
|
-
*
|
|
250
|
+
* @param args - The parameters for the request.
|
|
251
|
+
* @param args.digitalAssetAddress - The address of the digital asset.
|
|
252
|
+
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
253
|
+
* @returns GetTokenDataResponse containing relevant data for the digital asset.
|
|
152
254
|
*
|
|
153
|
-
* @
|
|
154
|
-
*
|
|
155
|
-
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
258
|
+
*
|
|
259
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
260
|
+
* const aptos = new Aptos(config);
|
|
261
|
+
*
|
|
262
|
+
* async function runExample() {
|
|
263
|
+
* // Fetching digital asset data for a specific address
|
|
264
|
+
* const digitalAsset = await aptos.getDigitalAssetData({
|
|
265
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
266
|
+
* });
|
|
267
|
+
*
|
|
268
|
+
* console.log(digitalAsset);
|
|
269
|
+
* }
|
|
270
|
+
* runExample().catch(console.error);
|
|
271
|
+
* ```
|
|
156
272
|
*/
|
|
157
273
|
getDigitalAssetData(args: {
|
|
158
274
|
digitalAssetAddress: AccountAddressInput;
|
|
159
275
|
minimumLedgerVersion?: AnyNumber;
|
|
160
276
|
}): Promise<GetTokenDataResponse>;
|
|
161
277
|
/**
|
|
162
|
-
*
|
|
278
|
+
* Retrieves the current ownership data of a specified digital asset using its address.
|
|
163
279
|
*
|
|
164
|
-
* @
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* @param args.tokenAddress The address of the digital asset
|
|
168
|
-
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
280
|
+
* @param args The parameters for the request.
|
|
281
|
+
* @param args.digitalAssetAddress The address of the digital asset.
|
|
282
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
|
|
169
283
|
*
|
|
170
284
|
* @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* ```typescript
|
|
288
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
289
|
+
*
|
|
290
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
291
|
+
* const aptos = new Aptos(config);
|
|
292
|
+
*
|
|
293
|
+
* async function runExample() {
|
|
294
|
+
* // Getting the current ownership of a digital asset
|
|
295
|
+
* const digitalAssetOwner = await aptos.getCurrentDigitalAssetOwnership({
|
|
296
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
297
|
+
* });
|
|
298
|
+
*
|
|
299
|
+
* console.log(digitalAssetOwner);
|
|
300
|
+
* }
|
|
301
|
+
* runExample().catch(console.error);
|
|
302
|
+
* ```
|
|
171
303
|
*/
|
|
172
304
|
getCurrentDigitalAssetOwnership(args: {
|
|
173
305
|
digitalAssetAddress: AccountAddressInput;
|
|
174
306
|
minimumLedgerVersion?: AnyNumber;
|
|
175
307
|
}): Promise<GetCurrentTokenOwnershipResponse>;
|
|
176
308
|
/**
|
|
177
|
-
*
|
|
309
|
+
* Retrieves the digital assets owned by a specified address.
|
|
178
310
|
*
|
|
179
|
-
* @
|
|
180
|
-
*
|
|
311
|
+
* @param args.ownerAddress The address of the owner.
|
|
312
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
|
|
313
|
+
* @param args.options Optional pagination and ordering parameters for the response.
|
|
181
314
|
*
|
|
182
|
-
* @
|
|
183
|
-
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
315
|
+
* @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddress.
|
|
184
316
|
*
|
|
185
|
-
* @
|
|
317
|
+
* @example
|
|
318
|
+
* ```typescript
|
|
319
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
320
|
+
*
|
|
321
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
322
|
+
* const aptos = new Aptos(config);
|
|
323
|
+
*
|
|
324
|
+
* async function runExample() {
|
|
325
|
+
* // Fetching the digital assets owned by the specified address
|
|
326
|
+
* const digitalAssets = await aptos.getOwnedDigitalAssets({
|
|
327
|
+
* ownerAddress: "0x1", // replace with a real account address
|
|
328
|
+
* });
|
|
329
|
+
*
|
|
330
|
+
* console.log(digitalAssets);
|
|
331
|
+
* }
|
|
332
|
+
* runExample().catch(console.error);
|
|
333
|
+
* ```
|
|
186
334
|
*/
|
|
187
335
|
getOwnedDigitalAssets(args: {
|
|
188
336
|
ownerAddress: AccountAddressInput;
|
|
@@ -190,15 +338,32 @@ declare class DigitalAsset {
|
|
|
190
338
|
options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
|
|
191
339
|
}): Promise<GetOwnedTokensResponse>;
|
|
192
340
|
/**
|
|
193
|
-
*
|
|
341
|
+
* Retrieves the activity data for a specified digital asset using its address.
|
|
194
342
|
*
|
|
195
|
-
* @
|
|
196
|
-
*
|
|
343
|
+
* @param args - The parameters for the request.
|
|
344
|
+
* @param args.digitalAssetAddress - The address of the digital asset.
|
|
345
|
+
* @param args.minimumLedgerVersion - Optional minimum ledger version to sync up to before querying.
|
|
346
|
+
* @param args.options - Optional pagination and ordering parameters.
|
|
197
347
|
*
|
|
198
|
-
* @
|
|
199
|
-
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
348
|
+
* @returns A promise that resolves to the activity data related to the digital asset.
|
|
200
349
|
*
|
|
201
|
-
* @
|
|
350
|
+
* @example
|
|
351
|
+
* ```typescript
|
|
352
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
353
|
+
*
|
|
354
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
355
|
+
* const aptos = new Aptos(config);
|
|
356
|
+
*
|
|
357
|
+
* async function runExample() {
|
|
358
|
+
* // Get the activity data for a digital asset
|
|
359
|
+
* const digitalAssetActivity = await aptos.getDigitalAssetActivity({
|
|
360
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
361
|
+
* });
|
|
362
|
+
*
|
|
363
|
+
* console.log(digitalAssetActivity);
|
|
364
|
+
* }
|
|
365
|
+
* runExample().catch(console.error);
|
|
366
|
+
* ```
|
|
202
367
|
*/
|
|
203
368
|
getDigitalAssetActivity(args: {
|
|
204
369
|
digitalAssetAddress: AccountAddressInput;
|
|
@@ -206,38 +371,52 @@ declare class DigitalAsset {
|
|
|
206
371
|
options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
|
|
207
372
|
}): Promise<GetTokenActivityResponse>;
|
|
208
373
|
/**
|
|
209
|
-
* Creates a new collection within the specified account
|
|
210
|
-
*
|
|
211
|
-
* @
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* @param args.
|
|
220
|
-
* @param args.
|
|
221
|
-
* @param args.
|
|
222
|
-
* @param args.
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
* @param args.
|
|
226
|
-
* @param args.
|
|
227
|
-
* @param args.
|
|
228
|
-
* @param args.
|
|
229
|
-
*
|
|
230
|
-
* @param args.
|
|
231
|
-
*
|
|
232
|
-
* @param args.mutableTokenUri controls mutability of the digital asset's URI - defaults true
|
|
233
|
-
* @param args.tokensBurnableByCreator controls whether digital assets can be burnable by the creator - defaults true
|
|
234
|
-
* @param args.tokensFreezableByCreator controls whether digital assets can be frozen by the creator - defaults true
|
|
235
|
-
* @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when
|
|
236
|
-
* a digital asset is transferred - defaults 0
|
|
237
|
-
* @param args.royaltyDenominator the denominator of the royalty to be paid to the creator
|
|
238
|
-
* when a digital asset is transferred - defaults 1
|
|
374
|
+
* Creates a new collection within the specified account.
|
|
375
|
+
*
|
|
376
|
+
* @param args.creator - The account of the collection's creator.
|
|
377
|
+
* @param args.description - The description of the collection.
|
|
378
|
+
* @param args.name - The name of the collection.
|
|
379
|
+
* @param args.uri - The URI to additional info about the collection.
|
|
380
|
+
* @param args.options - Optional parameters for generating the transaction.
|
|
381
|
+
*
|
|
382
|
+
* The parameters below are optional:
|
|
383
|
+
* @param args.maxSupply - Controls the max supply of the digital assets. Defaults to MAX_U64_BIG_INT.
|
|
384
|
+
* @param args.mutableDescription - Controls mutability of the collection's description. Defaults to true.
|
|
385
|
+
* @param args.mutableRoyalty - Controls mutability of the collection's royalty. Defaults to true.
|
|
386
|
+
* @param args.mutableUri - Controls mutability of the collection's URI. Defaults to true.
|
|
387
|
+
* @param args.mutableTokenDescription - Controls mutability of the digital asset's description. Defaults to true.
|
|
388
|
+
* @param args.mutableTokenName - Controls mutability of the digital asset's name. Defaults to true.
|
|
389
|
+
* @param args.mutableTokenProperties - Controls mutability of digital asset's properties. Defaults to true.
|
|
390
|
+
* @param args.mutableTokenUri - Controls mutability of the digital asset's URI. Defaults to true.
|
|
391
|
+
* @param args.tokensBurnableByCreator - Controls whether digital assets can be burnable by the creator. Defaults to true.
|
|
392
|
+
* @param args.tokensFreezableByCreator - Controls whether digital assets can be frozen by the creator. Defaults to true.
|
|
393
|
+
* @param args.royaltyNumerator - The numerator of the royalty to be paid to the creator when a digital asset is transferred.
|
|
394
|
+
* Defaults to 0.
|
|
395
|
+
* @param args.royaltyDenominator - The denominator of the royalty to be paid to the creator when a digital asset is
|
|
396
|
+
* transferred. Defaults to 1.
|
|
239
397
|
*
|
|
240
398
|
* @returns A SimpleTransaction that when submitted will create the collection.
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* ```typescript
|
|
402
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
403
|
+
*
|
|
404
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
405
|
+
* const aptos = new Aptos(config);
|
|
406
|
+
*
|
|
407
|
+
* async function runExample() {
|
|
408
|
+
* // Creating a new collection transaction
|
|
409
|
+
* const transaction = await aptos.createCollectionTransaction({
|
|
410
|
+
* creator: Account.generate(), // Replace with a real account
|
|
411
|
+
* description: "A unique collection of digital assets.",
|
|
412
|
+
* name: "My Digital Collection",
|
|
413
|
+
* uri: "https://mycollection.com",
|
|
414
|
+
* });
|
|
415
|
+
*
|
|
416
|
+
* console.log("Transaction created:", transaction);
|
|
417
|
+
* }
|
|
418
|
+
* runExample().catch(console.error);
|
|
419
|
+
* ```
|
|
241
420
|
*/
|
|
242
421
|
createCollectionTransaction(args: {
|
|
243
422
|
creator: Account;
|
|
@@ -247,24 +426,42 @@ declare class DigitalAsset {
|
|
|
247
426
|
options?: InputGenerateTransactionOptions;
|
|
248
427
|
} & CreateCollectionOptions): Promise<SimpleTransaction>;
|
|
249
428
|
/**
|
|
250
|
-
* Create a transaction to mint a digital asset into the
|
|
429
|
+
* Create a transaction to mint a digital asset into the creator's account within an existing collection.
|
|
430
|
+
* This function helps you generate a transaction that can be simulated or submitted to the blockchain for minting a digital asset.
|
|
431
|
+
*
|
|
432
|
+
* @param args.creator - The creator of the collection.
|
|
433
|
+
* @param args.collection - The name of the collection the digital asset belongs to.
|
|
434
|
+
* @param args.description - The description of the digital asset.
|
|
435
|
+
* @param args.name - The name of the digital asset.
|
|
436
|
+
* @param args.uri - The URI to additional info about the digital asset.
|
|
437
|
+
* @param args.propertyKeys - Optional array of property keys for the digital asset.
|
|
438
|
+
* @param args.propertyTypes - Optional array of property types for the digital asset.
|
|
439
|
+
* @param args.propertyValues - Optional array of property values for the digital asset.
|
|
440
|
+
* @param args.options - Optional transaction generation options.
|
|
441
|
+
*
|
|
442
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
251
443
|
*
|
|
252
444
|
* @example
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
445
|
+
* ```typescript
|
|
446
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
447
|
+
*
|
|
448
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
449
|
+
* const aptos = new Aptos(config);
|
|
450
|
+
*
|
|
451
|
+
* async function runExample() {
|
|
452
|
+
* // Creating a transaction to mint a digital asset
|
|
453
|
+
* const transaction = await aptos.mintDigitalAssetTransaction({
|
|
454
|
+
* creator: Account.generate(), // replace with a real account
|
|
455
|
+
* collection: "MyCollection",
|
|
456
|
+
* description: "This is a digital asset.",
|
|
457
|
+
* name: "MyDigitalAsset",
|
|
458
|
+
* uri: "https://example.com/my-digital-asset",
|
|
459
|
+
* });
|
|
460
|
+
*
|
|
461
|
+
* console.log(transaction);
|
|
462
|
+
* }
|
|
463
|
+
* runExample().catch(console.error);
|
|
464
|
+
* ```
|
|
268
465
|
*/
|
|
269
466
|
mintDigitalAssetTransaction(args: {
|
|
270
467
|
creator: Account;
|
|
@@ -278,24 +475,37 @@ declare class DigitalAsset {
|
|
|
278
475
|
options?: InputGenerateTransactionOptions;
|
|
279
476
|
}): Promise<SimpleTransaction>;
|
|
280
477
|
/**
|
|
281
|
-
* Transfer
|
|
478
|
+
* Transfer ownership of a non-fungible digital asset.
|
|
479
|
+
* This function allows you to transfer a digital asset only if it is not frozen, meaning the ownership transfer is not disabled.
|
|
480
|
+
*
|
|
481
|
+
* @param args The arguments for transferring the digital asset.
|
|
482
|
+
* @param args.sender The sender account of the current digital asset owner.
|
|
483
|
+
* @param args.digitalAssetAddress The address of the digital asset being transferred.
|
|
484
|
+
* @param args.recipient The account address of the recipient.
|
|
485
|
+
* @param args.digitalAssetType Optional. The type of the digital asset, defaults to "0x4::token::Token".
|
|
486
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
282
487
|
*
|
|
283
|
-
*
|
|
284
|
-
* (i.e. owner transfer is not disabled such as for soul bound digital assets)
|
|
488
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
285
489
|
*
|
|
286
490
|
* @example
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
491
|
+
* ```typescript
|
|
492
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
493
|
+
*
|
|
494
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
495
|
+
* const aptos = new Aptos(config);
|
|
496
|
+
*
|
|
497
|
+
* async function runExample() {
|
|
498
|
+
* // Transfer a digital asset
|
|
499
|
+
* const transaction = await aptos.transferDigitalAssetTransaction({
|
|
500
|
+
* sender: Account.generate(), // replace with a real sender account
|
|
501
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
502
|
+
* recipient: "0x456", // replace with a real recipient account address
|
|
503
|
+
* });
|
|
504
|
+
*
|
|
505
|
+
* console.log(transaction);
|
|
506
|
+
* }
|
|
507
|
+
* runExample().catch(console.error);
|
|
508
|
+
* ```
|
|
299
509
|
*/
|
|
300
510
|
transferDigitalAssetTransaction(args: {
|
|
301
511
|
sender: Account;
|
|
@@ -305,29 +515,45 @@ declare class DigitalAsset {
|
|
|
305
515
|
options?: InputGenerateTransactionOptions;
|
|
306
516
|
}): Promise<SimpleTransaction>;
|
|
307
517
|
/**
|
|
308
|
-
* Mint a soul bound digital asset into a recipient's account
|
|
518
|
+
* Mint a soul bound digital asset into a recipient's account.
|
|
519
|
+
* This function allows you to create a unique digital asset that is bound to a specific account.
|
|
520
|
+
*
|
|
521
|
+
* @param args - The arguments for minting the soul bound transaction.
|
|
522
|
+
* @param args.account - The account that mints the digital asset.
|
|
523
|
+
* @param args.collection - The collection name that the digital asset belongs to.
|
|
524
|
+
* @param args.description - The digital asset description.
|
|
525
|
+
* @param args.name - The digital asset name.
|
|
526
|
+
* @param args.uri - The digital asset URL.
|
|
527
|
+
* @param args.recipient - The account address where the digital asset will be created.
|
|
528
|
+
* @param args.propertyKeys - The property keys for storing on-chain properties.
|
|
529
|
+
* @param args.propertyTypes - The type of property values.
|
|
530
|
+
* @param args.propertyValues - The property values to be stored on-chain.
|
|
531
|
+
* @param args.options - Additional options for generating the transaction.
|
|
532
|
+
*
|
|
533
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
309
534
|
*
|
|
310
535
|
* @example
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
536
|
+
* ```typescript
|
|
537
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
538
|
+
*
|
|
539
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
540
|
+
* const aptos = new Aptos(config);
|
|
541
|
+
*
|
|
542
|
+
* async function runExample() {
|
|
543
|
+
* // Mint a soul bound digital asset
|
|
544
|
+
* const transaction = await aptos.mintSoulBoundTransaction({
|
|
545
|
+
* account: Account.generate(), // Replace with a real account
|
|
546
|
+
* collection: "collectionName",
|
|
547
|
+
* description: "collectionDescription",
|
|
548
|
+
* name: "digitalAssetName",
|
|
549
|
+
* uri: "digital-asset-uri.com",
|
|
550
|
+
* recipient: "0x123" // Replace with a real recipient account address
|
|
551
|
+
* });
|
|
552
|
+
*
|
|
553
|
+
* console.log(transaction);
|
|
554
|
+
* }
|
|
555
|
+
* runExample().catch(console.error);
|
|
556
|
+
* ```
|
|
331
557
|
*/
|
|
332
558
|
mintSoulBoundTransaction(args: {
|
|
333
559
|
account: Account;
|
|
@@ -342,18 +568,34 @@ declare class DigitalAsset {
|
|
|
342
568
|
options?: InputGenerateTransactionOptions;
|
|
343
569
|
}): Promise<SimpleTransaction>;
|
|
344
570
|
/**
|
|
345
|
-
* Burn a digital asset by its creator
|
|
571
|
+
* Burn a digital asset by its creator, allowing for the removal of a specified digital asset from the blockchain.
|
|
346
572
|
*
|
|
347
|
-
* @
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
573
|
+
* @param args The arguments for burning the digital asset.
|
|
574
|
+
* @param args.creator The creator account that is burning the digital asset.
|
|
575
|
+
* @param args.digitalAssetAddress The address of the digital asset to be burned.
|
|
576
|
+
* @param args.digitalAssetType Optional. The type of the digital asset being burned.
|
|
577
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
352
578
|
*
|
|
353
|
-
* @
|
|
354
|
-
* @param args.digitalAssetAddress The digital asset address
|
|
579
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
355
580
|
*
|
|
356
|
-
* @
|
|
581
|
+
* @example
|
|
582
|
+
* ```typescript
|
|
583
|
+
* import { Aptos, AptosConfig, Network, Account } from "@aptos-labs/ts-sdk";
|
|
584
|
+
*
|
|
585
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
586
|
+
* const aptos = new Aptos(config);
|
|
587
|
+
*
|
|
588
|
+
* async function runExample() {
|
|
589
|
+
* const creator = Account.generate(); // Replace with a real creator account
|
|
590
|
+
* const transaction = await aptos.burnDigitalAssetTransaction({
|
|
591
|
+
* creator: creator,
|
|
592
|
+
* digitalAssetAddress: "0x123", // Replace with a real digital asset address
|
|
593
|
+
* });
|
|
594
|
+
*
|
|
595
|
+
* console.log(transaction);
|
|
596
|
+
* }
|
|
597
|
+
* runExample().catch(console.error);
|
|
598
|
+
* ```
|
|
357
599
|
*/
|
|
358
600
|
burnDigitalAssetTransaction(args: {
|
|
359
601
|
creator: Account;
|
|
@@ -362,18 +604,35 @@ declare class DigitalAsset {
|
|
|
362
604
|
options?: InputGenerateTransactionOptions;
|
|
363
605
|
}): Promise<SimpleTransaction>;
|
|
364
606
|
/**
|
|
365
|
-
* Freeze
|
|
607
|
+
* Freeze the ability to transfer a specified digital asset.
|
|
608
|
+
* This function allows the creator to restrict the transfer capability of a digital asset.
|
|
366
609
|
*
|
|
367
|
-
* @
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
610
|
+
* @param args The arguments for freezing the digital asset transfer.
|
|
611
|
+
* @param args.creator The creator account initiating the freeze.
|
|
612
|
+
* @param args.digitalAssetAddress The address of the digital asset to be frozen.
|
|
613
|
+
* @param args.digitalAssetType Optional. The type of the digital asset being frozen.
|
|
614
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
372
615
|
*
|
|
373
|
-
* @
|
|
374
|
-
* @param args.digitalAssetAddress The digital asset address
|
|
616
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
375
617
|
*
|
|
376
|
-
* @
|
|
618
|
+
* @example
|
|
619
|
+
* ```typescript
|
|
620
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
621
|
+
*
|
|
622
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
623
|
+
* const aptos = new Aptos(config);
|
|
624
|
+
*
|
|
625
|
+
* async function runExample() {
|
|
626
|
+
* // Freeze the digital asset transfer
|
|
627
|
+
* const transaction = await aptos.freezeDigitalAssetTransaferTransaction({
|
|
628
|
+
* creator: Account.generate(), // Replace with a real account if needed
|
|
629
|
+
* digitalAssetAddress: "0x123", // Replace with a real digital asset address
|
|
630
|
+
* });
|
|
631
|
+
*
|
|
632
|
+
* console.log(transaction);
|
|
633
|
+
* }
|
|
634
|
+
* runExample().catch(console.error);
|
|
635
|
+
* ```
|
|
377
636
|
*/
|
|
378
637
|
freezeDigitalAssetTransaferTransaction(args: {
|
|
379
638
|
creator: Account;
|
|
@@ -382,18 +641,35 @@ declare class DigitalAsset {
|
|
|
382
641
|
options?: InputGenerateTransactionOptions;
|
|
383
642
|
}): Promise<SimpleTransaction>;
|
|
384
643
|
/**
|
|
385
|
-
* Unfreeze
|
|
644
|
+
* Unfreeze the ability to transfer a digital asset.
|
|
645
|
+
* This function allows the specified creator account to unfreeze the transfer of a digital asset identified by its address.
|
|
386
646
|
*
|
|
387
|
-
* @
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
*
|
|
647
|
+
* @param args The parameters for unfreezing the digital asset transfer.
|
|
648
|
+
* @param args.creator The creator account that is unfreezing the digital asset transfer.
|
|
649
|
+
* @param args.digitalAssetAddress The address of the digital asset to unfreeze.
|
|
650
|
+
* @param args.digitalAssetType Optional. The type of the digital asset being unfrozen.
|
|
651
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
392
652
|
*
|
|
393
|
-
* @
|
|
394
|
-
* @param args.digitalAssetAddress The digital asset address
|
|
653
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
395
654
|
*
|
|
396
|
-
* @
|
|
655
|
+
* @example
|
|
656
|
+
* ```typescript
|
|
657
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
658
|
+
*
|
|
659
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
660
|
+
* const aptos = new Aptos(config);
|
|
661
|
+
*
|
|
662
|
+
* async function runExample() {
|
|
663
|
+
* // Unfreeze the ability to transfer a digital asset
|
|
664
|
+
* const transaction = await aptos.unfreezeDigitalAssetTransaferTransaction({
|
|
665
|
+
* creator: Account.generate(), // replace with a real creator account
|
|
666
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
667
|
+
* });
|
|
668
|
+
*
|
|
669
|
+
* console.log(transaction);
|
|
670
|
+
* }
|
|
671
|
+
* runExample().catch(console.error);
|
|
672
|
+
* ```
|
|
397
673
|
*/
|
|
398
674
|
unfreezeDigitalAssetTransaferTransaction(args: {
|
|
399
675
|
creator: Account;
|
|
@@ -402,20 +678,36 @@ declare class DigitalAsset {
|
|
|
402
678
|
options?: InputGenerateTransactionOptions;
|
|
403
679
|
}): Promise<SimpleTransaction>;
|
|
404
680
|
/**
|
|
405
|
-
* Set the digital asset description
|
|
681
|
+
* Set the digital asset description to provide additional context or information about the asset.
|
|
406
682
|
*
|
|
407
|
-
* @
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
683
|
+
* @param args The parameters for setting the digital asset description.
|
|
684
|
+
* @param args.creator The creator account responsible for the digital asset.
|
|
685
|
+
* @param args.description The digital asset description to be set.
|
|
686
|
+
* @param args.digitalAssetAddress The address of the digital asset.
|
|
687
|
+
* @param args.digitalAssetType Optional. The type of the digital asset.
|
|
688
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
413
689
|
*
|
|
414
|
-
* @
|
|
415
|
-
* @param args.description The digital asset description
|
|
416
|
-
* @param args.digitalAssetAddress The digital asset address
|
|
690
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
417
691
|
*
|
|
418
|
-
* @
|
|
692
|
+
* @example
|
|
693
|
+
* ```typescript
|
|
694
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
695
|
+
*
|
|
696
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
697
|
+
* const aptos = new Aptos(config);
|
|
698
|
+
*
|
|
699
|
+
* async function runExample() {
|
|
700
|
+
* // Set the digital asset description
|
|
701
|
+
* const transaction = await aptos.setDigitalAssetDescriptionTransaction({
|
|
702
|
+
* creator: Account.generate(), // replace with a real account
|
|
703
|
+
* description: "This is a digital asset description.",
|
|
704
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
705
|
+
* });
|
|
706
|
+
*
|
|
707
|
+
* console.log(transaction);
|
|
708
|
+
* }
|
|
709
|
+
* runExample().catch(console.error);
|
|
710
|
+
* ```
|
|
419
711
|
*/
|
|
420
712
|
setDigitalAssetDescriptionTransaction(args: {
|
|
421
713
|
creator: Account;
|
|
@@ -425,20 +717,39 @@ declare class DigitalAsset {
|
|
|
425
717
|
options?: InputGenerateTransactionOptions;
|
|
426
718
|
}): Promise<SimpleTransaction>;
|
|
427
719
|
/**
|
|
428
|
-
* Set the digital asset name
|
|
720
|
+
* Set the digital asset name, allowing you to define a name for a specific digital asset on the blockchain.
|
|
429
721
|
*
|
|
430
|
-
* @
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
722
|
+
* @param args The parameters for setting the digital asset name.
|
|
723
|
+
* @param args.creator The creator account responsible for the transaction.
|
|
724
|
+
* @param args.name The desired name for the digital asset.
|
|
725
|
+
* @param args.digitalAssetAddress The address of the digital asset.
|
|
726
|
+
* @param args.digitalAssetType Optional. The type of the digital asset, represented as a Move struct ID.
|
|
727
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
436
728
|
*
|
|
437
|
-
* @
|
|
438
|
-
* @param args.name The digital asset name
|
|
439
|
-
* @param args.digitalAssetAddress The digital asset address
|
|
729
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the blockchain.
|
|
440
730
|
*
|
|
441
|
-
* @
|
|
731
|
+
* @example
|
|
732
|
+
* ```typescript
|
|
733
|
+
* import { Aptos, AptosConfig, Network, Account } from "@aptos-labs/ts-sdk";
|
|
734
|
+
*
|
|
735
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
736
|
+
* const aptos = new Aptos(config);
|
|
737
|
+
*
|
|
738
|
+
* async function runExample() {
|
|
739
|
+
* const creator = Account.generate(); // Generate a new account for the creator
|
|
740
|
+
* const digitalAssetAddress = "0x123"; // replace with a real digital asset address
|
|
741
|
+
*
|
|
742
|
+
* // Set the digital asset name
|
|
743
|
+
* const transaction = await aptos.setDigitalAssetNameTransaction({
|
|
744
|
+
* creator: creator,
|
|
745
|
+
* name: "digitalAssetName",
|
|
746
|
+
* digitalAssetAddress: digitalAssetAddress,
|
|
747
|
+
* });
|
|
748
|
+
*
|
|
749
|
+
* console.log(transaction);
|
|
750
|
+
* }
|
|
751
|
+
* runExample().catch(console.error);
|
|
752
|
+
* ```
|
|
442
753
|
*/
|
|
443
754
|
setDigitalAssetNameTransaction(args: {
|
|
444
755
|
creator: Account;
|
|
@@ -448,20 +759,35 @@ declare class DigitalAsset {
|
|
|
448
759
|
options?: InputGenerateTransactionOptions;
|
|
449
760
|
}): Promise<SimpleTransaction>;
|
|
450
761
|
/**
|
|
451
|
-
* Set the digital asset
|
|
762
|
+
* Set the URI for a digital asset, allowing you to associate a unique identifier with the asset.
|
|
452
763
|
*
|
|
453
|
-
* @
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
764
|
+
* @param args The parameters for the transaction.
|
|
765
|
+
* @param args.creator The creator account initiating the transaction.
|
|
766
|
+
* @param args.uri The digital asset URI to be set.
|
|
767
|
+
* @param args.digitalAssetAddress The address of the digital asset.
|
|
768
|
+
* @param args.digitalAssetType Optional. The type of the digital asset.
|
|
769
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
770
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
459
771
|
*
|
|
460
|
-
* @
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
772
|
+
* @example
|
|
773
|
+
* ```typescript
|
|
774
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
775
|
+
*
|
|
776
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
777
|
+
* const aptos = new Aptos(config);
|
|
778
|
+
*
|
|
779
|
+
* async function runExample() {
|
|
780
|
+
* // Set the URI for a digital asset
|
|
781
|
+
* const transaction = await aptos.setDigitalAssetURITransaction({
|
|
782
|
+
* creator: Account.generate(), // Replace with a real creator account
|
|
783
|
+
* uri: "digital-asset-uri.com",
|
|
784
|
+
* digitalAssetAddress: "0x123", // Replace with a real digital asset address
|
|
785
|
+
* });
|
|
786
|
+
*
|
|
787
|
+
* console.log(transaction);
|
|
788
|
+
* }
|
|
789
|
+
* runExample().catch(console.error);
|
|
790
|
+
* ```
|
|
465
791
|
*/
|
|
466
792
|
setDigitalAssetURITransaction(args: {
|
|
467
793
|
creator: Account;
|
|
@@ -471,24 +797,40 @@ declare class DigitalAsset {
|
|
|
471
797
|
options?: InputGenerateTransactionOptions;
|
|
472
798
|
}): Promise<SimpleTransaction>;
|
|
473
799
|
/**
|
|
474
|
-
* Add a digital asset property
|
|
800
|
+
* Add a digital asset property to the blockchain.
|
|
801
|
+
* This function allows you to specify a new property for a digital asset, including its key, type, and value.
|
|
802
|
+
*
|
|
803
|
+
* @param args - The arguments for adding a digital asset property.
|
|
804
|
+
* @param args.creator - The account that mints the digital asset.
|
|
805
|
+
* @param args.propertyKey - The property key for storing on-chain properties.
|
|
806
|
+
* @param args.propertyType - The type of property value.
|
|
807
|
+
* @param args.propertyValue - The property value to be stored on-chain.
|
|
808
|
+
* @param args.digitalAssetAddress - The digital asset address.
|
|
809
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
810
|
+
* @param args.options - (Optional) Options for generating the transaction.
|
|
811
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
475
812
|
*
|
|
476
813
|
* @example
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
814
|
+
* ```typescript
|
|
815
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
816
|
+
*
|
|
817
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
818
|
+
* const aptos = new Aptos(config);
|
|
819
|
+
*
|
|
820
|
+
* async function runExample() {
|
|
821
|
+
* // Add a digital asset property
|
|
822
|
+
* const transaction = await aptos.addDigitalAssetPropertyTransaction({
|
|
823
|
+
* creator: Account.generate(), // Replace with a real account
|
|
824
|
+
* propertyKey: "newKey",
|
|
825
|
+
* propertyType: "BOOLEAN",
|
|
826
|
+
* propertyValue: true,
|
|
827
|
+
* digitalAssetAddress: "0x123", // Replace with a real digital asset address
|
|
828
|
+
* });
|
|
829
|
+
*
|
|
830
|
+
* console.log(transaction);
|
|
831
|
+
* }
|
|
832
|
+
* runExample().catch(console.error);
|
|
833
|
+
* ```
|
|
492
834
|
*/
|
|
493
835
|
addDigitalAssetPropertyTransaction(args: {
|
|
494
836
|
creator: Account;
|
|
@@ -500,24 +842,41 @@ declare class DigitalAsset {
|
|
|
500
842
|
options?: InputGenerateTransactionOptions;
|
|
501
843
|
}): Promise<SimpleTransaction>;
|
|
502
844
|
/**
|
|
503
|
-
* Remove a digital asset property
|
|
845
|
+
* Remove a digital asset property from the blockchain.
|
|
846
|
+
* This function allows you to delete an existing property associated with a digital asset.
|
|
847
|
+
*
|
|
848
|
+
* @param args The parameters required to remove the digital asset property.
|
|
849
|
+
* @param args.creator The account that mints the digital asset.
|
|
850
|
+
* @param args.propertyKey The property key for storing on-chain properties.
|
|
851
|
+
* @param args.propertyType The type of property value.
|
|
852
|
+
* @param args.propertyValue The property value to be stored on-chain.
|
|
853
|
+
* @param args.digitalAssetAddress The digital asset address.
|
|
854
|
+
* @param args.digitalAssetType Optional. The type of the digital asset.
|
|
855
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
856
|
+
*
|
|
857
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
504
858
|
*
|
|
505
859
|
* @example
|
|
506
|
-
*
|
|
507
|
-
*
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
860
|
+
* ```typescript
|
|
861
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
862
|
+
*
|
|
863
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
864
|
+
* const aptos = new Aptos(config);
|
|
865
|
+
*
|
|
866
|
+
* async function runExample() {
|
|
867
|
+
* // Remove a digital asset property
|
|
868
|
+
* const transaction = await aptos.removeDigitalAssetPropertyTransaction({
|
|
869
|
+
* creator: Account.generate(), // replace with a real account
|
|
870
|
+
* propertyKey: "newKey",
|
|
871
|
+
* propertyType: "BOOLEAN",
|
|
872
|
+
* propertyValue: true,
|
|
873
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
874
|
+
* });
|
|
875
|
+
*
|
|
876
|
+
* console.log(transaction);
|
|
877
|
+
* }
|
|
878
|
+
* runExample().catch(console.error);
|
|
879
|
+
* ```
|
|
521
880
|
*/
|
|
522
881
|
removeDigitalAssetPropertyTransaction(args: {
|
|
523
882
|
creator: Account;
|
|
@@ -529,24 +888,40 @@ declare class DigitalAsset {
|
|
|
529
888
|
options?: InputGenerateTransactionOptions;
|
|
530
889
|
}): Promise<SimpleTransaction>;
|
|
531
890
|
/**
|
|
532
|
-
* Update a digital asset property
|
|
891
|
+
* Update a digital asset property on-chain.
|
|
892
|
+
*
|
|
893
|
+
* @param args The parameters for updating the digital asset property.
|
|
894
|
+
* @param args.creator The account that mints the digital asset.
|
|
895
|
+
* @param args.digitalAssetAddress The address of the digital asset.
|
|
896
|
+
* @param args.propertyKey The property key for storing on-chain properties.
|
|
897
|
+
* @param args.propertyType The type of property value.
|
|
898
|
+
* @param args.propertyValue The property value to be stored on-chain.
|
|
899
|
+
* @param args.digitalAssetType Optional. The type of the digital asset.
|
|
900
|
+
* @param args.options Optional. Additional options for generating the transaction.
|
|
901
|
+
*
|
|
902
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
533
903
|
*
|
|
534
904
|
* @example
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
905
|
+
* ```typescript
|
|
906
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
907
|
+
*
|
|
908
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
909
|
+
* const aptos = new Aptos(config);
|
|
910
|
+
*
|
|
911
|
+
* async function runExample() {
|
|
912
|
+
* // Update a digital asset property
|
|
913
|
+
* const transaction = await aptos.updateDigitalAssetPropertyTransaction({
|
|
914
|
+
* creator: Account.generate(), // replace with a real account
|
|
915
|
+
* propertyKey: "newKey",
|
|
916
|
+
* propertyType: "BOOLEAN",
|
|
917
|
+
* propertyValue: false,
|
|
918
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
919
|
+
* });
|
|
920
|
+
*
|
|
921
|
+
* console.log(transaction);
|
|
922
|
+
* }
|
|
923
|
+
* runExample().catch(console.error);
|
|
924
|
+
* ```
|
|
550
925
|
*/
|
|
551
926
|
updateDigitalAssetPropertyTransaction(args: {
|
|
552
927
|
creator: Account;
|
|
@@ -558,24 +933,42 @@ declare class DigitalAsset {
|
|
|
558
933
|
options?: InputGenerateTransactionOptions;
|
|
559
934
|
}): Promise<SimpleTransaction>;
|
|
560
935
|
/**
|
|
561
|
-
* Add a typed digital asset property
|
|
936
|
+
* Add a typed digital asset property to the blockchain.
|
|
937
|
+
* This function allows you to define and store a specific property for a digital asset, enabling better categorization and
|
|
938
|
+
* management of digital assets.
|
|
939
|
+
*
|
|
940
|
+
* @param args - The parameters for adding the typed property.
|
|
941
|
+
* @param args.creator - The account that mints the digital asset.
|
|
942
|
+
* @param args.propertyKey - The property key for storing on-chain properties.
|
|
943
|
+
* @param args.propertyType - The type of property value.
|
|
944
|
+
* @param args.propertyValue - The property value to be stored on-chain.
|
|
945
|
+
* @param args.digitalAssetAddress - The digital asset address.
|
|
946
|
+
* @param args.digitalAssetType - The optional type of the digital asset.
|
|
947
|
+
* @param args.options - Optional transaction generation options.
|
|
948
|
+
*
|
|
949
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
562
950
|
*
|
|
563
951
|
* @example
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
*
|
|
577
|
-
*
|
|
578
|
-
*
|
|
952
|
+
* ```typescript
|
|
953
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
954
|
+
*
|
|
955
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
956
|
+
* const aptos = new Aptos(config);
|
|
957
|
+
*
|
|
958
|
+
* async function runExample() {
|
|
959
|
+
* // Adding a typed digital asset property
|
|
960
|
+
* const transaction = await aptos.addDigitalAssetTypedPropertyTransaction({
|
|
961
|
+
* creator: Account.generate(), // replace with a real account
|
|
962
|
+
* propertyKey: "typedKey",
|
|
963
|
+
* propertyType: "STRING",
|
|
964
|
+
* propertyValue: "hello",
|
|
965
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
966
|
+
* });
|
|
967
|
+
*
|
|
968
|
+
* console.log(transaction);
|
|
969
|
+
* }
|
|
970
|
+
* runExample().catch(console.error);
|
|
971
|
+
* ```
|
|
579
972
|
*/
|
|
580
973
|
addDigitalAssetTypedPropertyTransaction(args: {
|
|
581
974
|
creator: Account;
|
|
@@ -587,24 +980,41 @@ declare class DigitalAsset {
|
|
|
587
980
|
options?: InputGenerateTransactionOptions;
|
|
588
981
|
}): Promise<SimpleTransaction>;
|
|
589
982
|
/**
|
|
590
|
-
* Update a typed digital asset property
|
|
983
|
+
* Update a typed digital asset property on-chain.
|
|
984
|
+
* This function allows you to modify the properties of a digital asset, enabling dynamic updates to its attributes.
|
|
985
|
+
*
|
|
986
|
+
* @param args - The arguments for updating the digital asset property.
|
|
987
|
+
* @param args.creator - The account that mints the digital asset.
|
|
988
|
+
* @param args.propertyKey - The property key for storing on-chain properties.
|
|
989
|
+
* @param args.propertyType - The type of property value.
|
|
990
|
+
* @param args.propertyValue - The property value to be stored on-chain.
|
|
991
|
+
* @param args.digitalAssetAddress - The digital asset address.
|
|
992
|
+
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
993
|
+
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
994
|
+
*
|
|
995
|
+
* @returns A SimpleTransaction that can be simulated or submitted to the chain.
|
|
591
996
|
*
|
|
592
997
|
* @example
|
|
593
|
-
*
|
|
594
|
-
*
|
|
595
|
-
*
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
*
|
|
998
|
+
* ```typescript
|
|
999
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
1000
|
+
*
|
|
1001
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
1002
|
+
* const aptos = new Aptos(config);
|
|
1003
|
+
*
|
|
1004
|
+
* async function runExample() {
|
|
1005
|
+
* // Update a typed digital asset property
|
|
1006
|
+
* const transaction = await aptos.updateDigitalAssetTypedPropertyTransaction({
|
|
1007
|
+
* creator: Account.generate(), // replace with a real account
|
|
1008
|
+
* propertyKey: "typedKey",
|
|
1009
|
+
* propertyType: "U8",
|
|
1010
|
+
* propertyValue: 2,
|
|
1011
|
+
* digitalAssetAddress: "0x123", // replace with a real digital asset address
|
|
1012
|
+
* });
|
|
1013
|
+
*
|
|
1014
|
+
* console.log(transaction);
|
|
1015
|
+
* }
|
|
1016
|
+
* runExample().catch(console.error);
|
|
1017
|
+
* ```
|
|
608
1018
|
*/
|
|
609
1019
|
updateDigitalAssetTypedPropertyTransaction(args: {
|
|
610
1020
|
creator: Account;
|