@aptos-labs/ts-sdk 1.33.1 → 1.33.2
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 +4 -6
- package/dist/common/{accountAddress-BHsGaOsa.d.ts → accountAddress-Cf1amU98.d.ts} +279 -0
- package/dist/common/{chunk-F43XVDYJ.js → chunk-IHUCZKG2.js} +1 -1
- package/dist/common/chunk-IHUCZKG2.js.map +1 -0
- package/dist/common/cli/index.d.ts +47 -9
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +1941 -225
- package/dist/common/index.js +33 -33
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-B3xHXAQe.d.mts → Ed25519Account-D4j3_WIS.d.mts} +122 -12
- package/dist/esm/account/AbstractKeylessAccount.d.mts +81 -7
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +5 -4
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +64 -0
- package/dist/esm/account/AccountUtils.mjs +2 -0
- package/dist/esm/account/Ed25519Account.d.mts +3 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +29 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +25 -5
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +30 -5
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +40 -5
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +4 -3
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +4 -2
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +18 -0
- package/dist/esm/account/utils.mjs +2 -0
- package/dist/esm/account/utils.mjs.map +1 -0
- package/dist/esm/api/account.d.mts +25 -4
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +18 -2
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +5 -2
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +16 -0
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +5 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +29 -2
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +6 -0
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +11 -2
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +11 -2
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +14 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +3 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +8 -2
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +3 -0
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +5 -0
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +5 -0
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +23 -6
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +6 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/helpers.d.mts +2 -0
- package/dist/esm/api/transactionSubmission/helpers.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +8 -2
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +7 -2
- 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 +6 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +6 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.d.mts +1 -0
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/deserializer.d.mts +42 -1
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +10 -0
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +12 -0
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +24 -0
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +56 -0
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +60 -0
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-PMGK5IHB.mjs → chunk-2FBJWTJD.mjs} +2 -2
- package/dist/esm/chunk-2FBJWTJD.mjs.map +1 -0
- package/dist/esm/{chunk-L4SWQLAJ.mjs → chunk-2N5KYALM.mjs} +2 -2
- package/dist/esm/chunk-2N5KYALM.mjs.map +1 -0
- package/dist/esm/{chunk-7V35JAAF.mjs → chunk-2TJ6OTVD.mjs} +2 -2
- package/dist/esm/chunk-2TJ6OTVD.mjs.map +1 -0
- package/dist/esm/{chunk-GVNK3UMT.mjs → chunk-2UXW3EB7.mjs} +2 -2
- package/dist/esm/chunk-2UXW3EB7.mjs.map +1 -0
- package/dist/esm/{chunk-UJSTWN32.mjs → chunk-2WCATZVL.mjs} +2 -2
- package/dist/esm/{chunk-UJSTWN32.mjs.map → chunk-2WCATZVL.mjs.map} +1 -1
- package/dist/esm/{chunk-FZDEGDUY.mjs → chunk-35DKMW7Q.mjs} +1 -1
- package/dist/esm/chunk-35DKMW7Q.mjs.map +1 -0
- package/dist/esm/{chunk-WFK3XRQX.mjs → chunk-3RCAJICY.mjs} +2 -2
- package/dist/esm/chunk-3RCAJICY.mjs.map +1 -0
- package/dist/esm/{chunk-KCWRCWNT.mjs → chunk-43GCGE6C.mjs} +2 -2
- package/dist/esm/chunk-43GCGE6C.mjs.map +1 -0
- package/dist/esm/{chunk-4DP3PEYK.mjs → chunk-4EUS4E6S.mjs} +2 -2
- package/dist/esm/chunk-4EUS4E6S.mjs.map +1 -0
- package/dist/esm/chunk-4RXKALLC.mjs +2 -0
- package/dist/esm/chunk-4RXKALLC.mjs.map +1 -0
- package/dist/esm/chunk-4YLUM62M.mjs +2 -0
- package/dist/esm/chunk-4YLUM62M.mjs.map +1 -0
- package/dist/esm/{chunk-SNYYEVJA.mjs → chunk-4ZYPDCSP.mjs} +2 -2
- package/dist/esm/chunk-4ZYPDCSP.mjs.map +1 -0
- package/dist/esm/{chunk-F2WY2DEY.mjs → chunk-5EBUWO2M.mjs} +2 -2
- package/dist/esm/chunk-5EBUWO2M.mjs.map +1 -0
- package/dist/esm/{chunk-5LGKGWLX.mjs → chunk-5EYTHMRZ.mjs} +2 -2
- package/dist/esm/chunk-5EYTHMRZ.mjs.map +1 -0
- package/dist/esm/{chunk-DBTKJMLV.mjs → chunk-5PXDPMF2.mjs} +2 -2
- package/dist/esm/chunk-5PXDPMF2.mjs.map +1 -0
- package/dist/esm/chunk-5VMAJTTV.mjs +2 -0
- package/dist/esm/chunk-5VMAJTTV.mjs.map +1 -0
- package/dist/esm/{chunk-YEWZAR76.mjs → chunk-5YWH3XPN.mjs} +2 -2
- package/dist/esm/chunk-5YWH3XPN.mjs.map +1 -0
- package/dist/esm/{chunk-QI7OREBM.mjs → chunk-67ZVDKJF.mjs} +2 -2
- package/dist/esm/chunk-67ZVDKJF.mjs.map +1 -0
- package/dist/esm/{chunk-U6OCK6T4.mjs → chunk-6CXMDJQR.mjs} +2 -2
- package/dist/esm/chunk-6CXMDJQR.mjs.map +1 -0
- package/dist/esm/chunk-6IEZPA4H.mjs +2 -0
- package/dist/esm/chunk-6IEZPA4H.mjs.map +1 -0
- package/dist/esm/{chunk-N62NUAHT.mjs → chunk-6YHDZLRN.mjs} +2 -2
- package/dist/esm/chunk-6YHDZLRN.mjs.map +1 -0
- package/dist/esm/chunk-6YWYAVFS.mjs +2 -0
- package/dist/esm/chunk-6YWYAVFS.mjs.map +1 -0
- package/dist/esm/chunk-77AEKF7K.mjs +2 -0
- package/dist/esm/{chunk-YD2BMHH7.mjs.map → chunk-77AEKF7K.mjs.map} +1 -1
- package/dist/esm/{chunk-XOLU6UP3.mjs → chunk-7IY3DTEF.mjs} +2 -2
- package/dist/esm/chunk-7IY3DTEF.mjs.map +1 -0
- package/dist/esm/{chunk-2CJC43CV.mjs → chunk-A5L76YP7.mjs} +1 -1
- package/dist/esm/chunk-A5L76YP7.mjs.map +1 -0
- package/dist/esm/{chunk-ICMELYCL.mjs → chunk-AFEHO5PP.mjs} +2 -2
- package/dist/esm/chunk-AFEHO5PP.mjs.map +1 -0
- package/dist/esm/{chunk-NK67FECB.mjs → chunk-AXYARCYT.mjs} +2 -2
- package/dist/esm/chunk-AXYARCYT.mjs.map +1 -0
- package/dist/esm/{chunk-AOROYJ74.mjs → chunk-AZWVCBK2.mjs} +2 -2
- package/dist/esm/chunk-AZWVCBK2.mjs.map +1 -0
- package/dist/esm/{chunk-U3T4ZT7B.mjs → chunk-BGSEBFFC.mjs} +2 -2
- package/dist/esm/chunk-BGSEBFFC.mjs.map +1 -0
- package/dist/esm/{chunk-6ZOVTYLJ.mjs → chunk-BI3BTSUB.mjs} +2 -2
- package/dist/esm/chunk-BI3BTSUB.mjs.map +1 -0
- package/dist/esm/{chunk-OIOGOW6I.mjs → chunk-C3Q23D22.mjs} +1 -1
- package/dist/esm/chunk-C3Q23D22.mjs.map +1 -0
- package/dist/esm/{chunk-VQZMI3EZ.mjs → chunk-CWKNJZB6.mjs} +2 -2
- package/dist/esm/chunk-CWKNJZB6.mjs.map +1 -0
- package/dist/esm/{chunk-V4FKFCBL.mjs → chunk-DAFSKSZ5.mjs} +1 -1
- package/dist/esm/chunk-DAFSKSZ5.mjs.map +1 -0
- package/dist/esm/{chunk-IBZKCBN5.mjs → chunk-DOQV5BSA.mjs} +2 -2
- package/dist/esm/chunk-DOQV5BSA.mjs.map +1 -0
- package/dist/esm/chunk-DPW6ELCQ.mjs +2 -0
- package/dist/esm/chunk-DPW6ELCQ.mjs.map +1 -0
- package/dist/esm/{chunk-IK2NYNKG.mjs → chunk-DYATTONT.mjs} +2 -2
- package/dist/esm/chunk-DYATTONT.mjs.map +1 -0
- package/dist/esm/{chunk-ALNQK276.mjs → chunk-E5HGSOG2.mjs} +2 -2
- package/dist/esm/chunk-E5HGSOG2.mjs.map +1 -0
- package/dist/esm/{chunk-2MN7DW2J.mjs → chunk-E7JDVKFY.mjs} +2 -2
- package/dist/esm/chunk-E7JDVKFY.mjs.map +1 -0
- package/dist/esm/{chunk-AJ5JHBAE.mjs → chunk-EBMEXURY.mjs} +2 -2
- package/dist/esm/chunk-EBMEXURY.mjs.map +1 -0
- package/dist/esm/chunk-EMURYYVO.mjs +2 -0
- package/dist/esm/chunk-EMURYYVO.mjs.map +1 -0
- package/dist/esm/chunk-F2ZTBAJJ.mjs +2 -0
- package/dist/esm/chunk-F2ZTBAJJ.mjs.map +1 -0
- package/dist/esm/{chunk-UGIHQFID.mjs → chunk-FIEMUPXF.mjs} +2 -2
- package/dist/esm/chunk-FIEMUPXF.mjs.map +1 -0
- package/dist/esm/{chunk-AKIO3OIT.mjs → chunk-FN4C3CKC.mjs} +2 -2
- package/dist/esm/chunk-FN4C3CKC.mjs.map +1 -0
- package/dist/esm/{chunk-H3C3VTHS.mjs → chunk-FZD5RWSZ.mjs} +2 -2
- package/dist/esm/chunk-FZD5RWSZ.mjs.map +1 -0
- package/dist/esm/{chunk-T6ADNZE5.mjs → chunk-G4O6FXCF.mjs} +2 -2
- package/dist/esm/chunk-G4O6FXCF.mjs.map +1 -0
- package/dist/esm/{chunk-GMKKHGXK.mjs → chunk-GOXRBEIJ.mjs} +1 -1
- package/dist/esm/chunk-GOXRBEIJ.mjs.map +1 -0
- package/dist/esm/chunk-GP4TLDVZ.mjs +1 -0
- package/dist/esm/chunk-GP4TLDVZ.mjs.map +1 -0
- package/dist/esm/{chunk-BAEIZAP7.mjs → chunk-HBH2NQKU.mjs} +2 -2
- package/dist/esm/chunk-HBH2NQKU.mjs.map +1 -0
- package/dist/esm/{chunk-ZMMLM6ZJ.mjs → chunk-IDTLNF4M.mjs} +2 -2
- package/dist/esm/chunk-IDTLNF4M.mjs.map +1 -0
- package/dist/esm/{chunk-PXMNAP2Q.mjs → chunk-IEUEMBFD.mjs} +2 -2
- package/dist/esm/chunk-IEUEMBFD.mjs.map +1 -0
- package/dist/esm/{chunk-6Q2O5G3J.mjs → chunk-IF4UU2MT.mjs} +1 -1
- package/dist/esm/chunk-IF4UU2MT.mjs.map +1 -0
- package/dist/esm/{chunk-LPVGVTWT.mjs → chunk-JBEUUULP.mjs} +2 -2
- package/dist/esm/chunk-JBEUUULP.mjs.map +1 -0
- package/dist/esm/chunk-JJM6ELMS.mjs +2 -0
- package/dist/esm/chunk-JJM6ELMS.mjs.map +1 -0
- package/dist/esm/{chunk-2ESU5N3V.mjs → chunk-KOORZTHC.mjs} +2 -2
- package/dist/esm/chunk-KOORZTHC.mjs.map +1 -0
- package/dist/esm/{chunk-2QGJDHME.mjs → chunk-KVM2SGSF.mjs} +2 -2
- package/dist/esm/chunk-KVM2SGSF.mjs.map +1 -0
- package/dist/esm/{chunk-5PVZ4N42.mjs → chunk-M77M6NSB.mjs} +2 -2
- package/dist/esm/chunk-M77M6NSB.mjs.map +1 -0
- package/dist/esm/{chunk-G4KAHJXB.mjs → chunk-MCLYDS3O.mjs} +2 -2
- package/dist/esm/chunk-MCLYDS3O.mjs.map +1 -0
- package/dist/esm/{chunk-46O23AOD.mjs → chunk-MLSAZJZK.mjs} +2 -2
- package/dist/esm/chunk-MLSAZJZK.mjs.map +1 -0
- package/dist/esm/{chunk-BRV3RLKW.mjs → chunk-MT2RJ7H3.mjs} +2 -2
- package/dist/esm/chunk-MT2RJ7H3.mjs.map +1 -0
- package/dist/esm/chunk-MWBRD43V.mjs +2 -0
- package/dist/esm/chunk-MWBRD43V.mjs.map +1 -0
- package/dist/esm/{chunk-ACVIE7IE.mjs → chunk-N4DM5FYH.mjs} +2 -2
- package/dist/esm/chunk-N4DM5FYH.mjs.map +1 -0
- package/dist/esm/{chunk-LGTOOAQI.mjs → chunk-N6YTF76Q.mjs} +2 -2
- package/dist/esm/chunk-N6YTF76Q.mjs.map +1 -0
- package/dist/esm/{chunk-7N7FEBZA.mjs → chunk-NBNZ53ZV.mjs} +2 -2
- package/dist/esm/chunk-NBNZ53ZV.mjs.map +1 -0
- package/dist/esm/{chunk-CX6KECGV.mjs → chunk-NWLJ6RW7.mjs} +2 -2
- package/dist/esm/chunk-NWLJ6RW7.mjs.map +1 -0
- package/dist/esm/{chunk-VIZHWYI5.mjs → chunk-NYETBDSR.mjs} +2 -2
- package/dist/esm/chunk-NYETBDSR.mjs.map +1 -0
- package/dist/esm/{chunk-SK3LIS4Z.mjs → chunk-OEQ2U7GK.mjs} +2 -2
- package/dist/esm/chunk-OEQ2U7GK.mjs.map +1 -0
- package/dist/esm/{chunk-2C27NY4D.mjs → chunk-OHZURQPY.mjs} +2 -2
- package/dist/esm/chunk-OHZURQPY.mjs.map +1 -0
- package/dist/esm/{chunk-333QBK32.mjs → chunk-ONTWK5FU.mjs} +2 -2
- package/dist/esm/chunk-ONTWK5FU.mjs.map +1 -0
- package/dist/esm/chunk-OR6GFWLG.mjs +2 -0
- package/dist/esm/chunk-OR6GFWLG.mjs.map +1 -0
- package/dist/esm/{chunk-42H7WETG.mjs → chunk-ORMOQWWH.mjs} +2 -2
- package/dist/esm/chunk-ORMOQWWH.mjs.map +1 -0
- package/dist/esm/{chunk-S5SQJRAV.mjs → chunk-OROPNHRY.mjs} +2 -2
- package/dist/esm/chunk-OROPNHRY.mjs.map +1 -0
- package/dist/esm/{chunk-VWGB5BHW.mjs → chunk-OSBRPVVI.mjs} +2 -2
- package/dist/esm/chunk-OSBRPVVI.mjs.map +1 -0
- package/dist/esm/{chunk-NZ7M6NG2.mjs → chunk-P7A5RILV.mjs} +2 -2
- package/dist/esm/{chunk-JNO7KPMG.mjs → chunk-Q4C4U6I4.mjs} +2 -2
- package/dist/esm/chunk-Q4C4U6I4.mjs.map +1 -0
- package/dist/esm/{chunk-HMMNQFVM.mjs → chunk-QHC5DKVZ.mjs} +2 -2
- package/dist/esm/chunk-QHC5DKVZ.mjs.map +1 -0
- package/dist/esm/{chunk-F45G3GP3.mjs → chunk-QHEKBHNU.mjs} +2 -2
- package/dist/esm/chunk-QQEK7WVP.mjs +2 -0
- package/dist/esm/chunk-QQEK7WVP.mjs.map +1 -0
- package/dist/esm/{chunk-J7PJSK3J.mjs → chunk-RJ7F4JDV.mjs} +1 -1
- package/dist/esm/chunk-RJ7F4JDV.mjs.map +1 -0
- package/dist/esm/{chunk-BUAHUVAD.mjs → chunk-ROT6S6BM.mjs} +2 -2
- package/dist/esm/chunk-ROT6S6BM.mjs.map +1 -0
- package/dist/esm/{chunk-LKKI2KAP.mjs → chunk-S4LZMY2L.mjs} +2 -2
- package/dist/esm/chunk-S4LZMY2L.mjs.map +1 -0
- package/dist/esm/{chunk-33CVOPIN.mjs → chunk-S7RZGC56.mjs} +2 -2
- package/dist/esm/{chunk-33CVOPIN.mjs.map → chunk-S7RZGC56.mjs.map} +1 -1
- package/dist/esm/{chunk-SPRNSFUV.mjs → chunk-STY74NUA.mjs} +2 -2
- package/dist/esm/chunk-STY74NUA.mjs.map +1 -0
- package/dist/esm/{chunk-ZMBXHMVQ.mjs → chunk-TOBQ5UE6.mjs} +2 -2
- package/dist/esm/chunk-TOBQ5UE6.mjs.map +1 -0
- package/dist/esm/{chunk-7T26VA2W.mjs → chunk-UC23V7PU.mjs} +2 -2
- package/dist/esm/chunk-UC23V7PU.mjs.map +1 -0
- package/dist/esm/{chunk-4MTSP4S2.mjs → chunk-V6VPMNWJ.mjs} +2 -2
- package/dist/esm/chunk-V6VPMNWJ.mjs.map +1 -0
- package/dist/esm/{chunk-JMPHD4BP.mjs → chunk-VUIHJIMX.mjs} +2 -2
- package/dist/esm/chunk-VUIHJIMX.mjs.map +1 -0
- package/dist/esm/{chunk-2KSMV5KD.mjs → chunk-VV4HCOJQ.mjs} +2 -2
- package/dist/esm/chunk-VV4HCOJQ.mjs.map +1 -0
- package/dist/esm/{chunk-XZN344G4.mjs → chunk-VVXBVJXD.mjs} +2 -2
- package/dist/esm/chunk-VVXBVJXD.mjs.map +1 -0
- package/dist/esm/{chunk-IHGA5KAD.mjs → chunk-W4BSN6SK.mjs} +1 -1
- package/dist/esm/chunk-W4BSN6SK.mjs.map +1 -0
- package/dist/esm/chunk-WCMW2L3P.mjs +2 -0
- package/dist/esm/chunk-WCMW2L3P.mjs.map +1 -0
- package/dist/esm/{chunk-UFPYCROT.mjs → chunk-WQRGDSPD.mjs} +2 -2
- package/dist/esm/chunk-WQRGDSPD.mjs.map +1 -0
- package/dist/esm/chunk-WUWPN7XV.mjs +2 -0
- package/dist/esm/chunk-WUWPN7XV.mjs.map +1 -0
- package/dist/esm/{chunk-LA5HJILW.mjs → chunk-X6UNY6YM.mjs} +2 -2
- package/dist/esm/chunk-X6UNY6YM.mjs.map +1 -0
- package/dist/esm/chunk-XJJVJOX5.mjs +2 -0
- package/dist/esm/{chunk-UGTIALNW.mjs.map → chunk-XJJVJOX5.mjs.map} +1 -1
- package/dist/esm/{chunk-OPO5EYF7.mjs → chunk-XKUIMGKU.mjs} +2 -2
- package/dist/esm/chunk-XKUIMGKU.mjs.map +1 -0
- package/dist/esm/chunk-XTJOA5QN.mjs +2 -0
- package/dist/esm/chunk-XTJOA5QN.mjs.map +1 -0
- package/dist/esm/chunk-XTOIL6MB.mjs +2 -0
- package/dist/esm/chunk-XTOIL6MB.mjs.map +1 -0
- package/dist/esm/{chunk-ZMS3AOEZ.mjs → chunk-XY43TPRH.mjs} +2 -2
- package/dist/esm/chunk-XY43TPRH.mjs.map +1 -0
- package/dist/esm/{chunk-EGV3HFE3.mjs → chunk-XYB6KYKW.mjs} +2 -2
- package/dist/esm/chunk-XYB6KYKW.mjs.map +1 -0
- package/dist/esm/{chunk-RCA73RVB.mjs → chunk-XZ4JRYCE.mjs} +2 -2
- package/dist/esm/chunk-XZ4JRYCE.mjs.map +1 -0
- package/dist/esm/{chunk-4XB3BB5Z.mjs → chunk-YCQUYDZI.mjs} +2 -2
- package/dist/esm/chunk-YCQUYDZI.mjs.map +1 -0
- package/dist/esm/{chunk-HBIDHQ2M.mjs → chunk-YOZBVVKL.mjs} +1 -1
- package/dist/esm/chunk-YOZBVVKL.mjs.map +1 -0
- package/dist/esm/chunk-ZAIVZDOL.mjs +2 -0
- package/dist/esm/chunk-ZAIVZDOL.mjs.map +1 -0
- package/dist/esm/{chunk-ZXVN3HXB.mjs → chunk-ZGVNZE7J.mjs} +2 -2
- package/dist/esm/chunk-ZGVNZE7J.mjs.map +1 -0
- package/dist/esm/{chunk-YJVZFYBX.mjs → chunk-ZPV7HPA4.mjs} +2 -2
- package/dist/esm/chunk-ZPV7HPA4.mjs.map +1 -0
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.d.mts +20 -8
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +26 -0
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.d.mts +4 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +33 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +37 -0
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +6 -0
- 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 +46 -0
- 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 +14 -0
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +57 -5
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +23 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +13 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/hdKey.d.mts +28 -0
- package/dist/esm/core/crypto/hdKey.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +2 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +131 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +41 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +38 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/poseidon.d.mts +10 -0
- package/dist/esm/core/crypto/poseidon.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +9 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +2 -0
- 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 +50 -3
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.d.mts +6 -0
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +36 -2
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.d.mts +2 -0
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.d.mts +20 -0
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +2 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +5 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +24 -4
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +27 -2
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +3 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +31 -2
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +5 -0
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +5 -0
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +8 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +7 -0
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +6 -2
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +2 -0
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +5 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +3 -0
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +14 -0
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +16 -5
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +2 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/{publicKey-BVXX1nVl.d.mts → publicKey-BMtGNNLg.d.mts} +36 -0
- package/dist/esm/transactions/authenticator/account.d.mts +28 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +2 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +23 -2
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +2 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.d.mts +8 -0
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +8 -0
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +2 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.d.mts +10 -0
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +8 -0
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +30 -0
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +7 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +10 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.d.mts +8 -0
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +16 -0
- package/dist/esm/transactions/instances/transactionPayload.d.mts +48 -0
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +19 -2
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/asyncQueue.d.mts +16 -0
- package/dist/esm/transactions/management/asyncQueue.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +3 -2
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +45 -7
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +64 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +14 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +10 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +42 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +82 -0
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +8 -0
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +80 -1
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +52 -0
- package/dist/esm/types/keyless.d.mts +12 -0
- package/dist/esm/utils/apiEndpoints.d.mts +30 -0
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +24 -0
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +20 -0
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/memoize.d.mts +4 -0
- package/dist/esm/utils/memoize.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.d.mts +8 -0
- 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 +19 -20
- package/src/account/AbstractKeylessAccount.ts +80 -9
- package/src/account/Account.ts +51 -6
- package/src/account/AccountUtils.ts +216 -0
- package/src/account/Ed25519Account.ts +26 -0
- package/src/account/EphemeralKeyPair.ts +30 -0
- package/src/account/FederatedKeylessAccount.ts +10 -3
- package/src/account/KeylessAccount.ts +13 -1
- package/src/account/MultiKeyAccount.ts +75 -12
- package/src/account/SingleKeyAccount.ts +63 -6
- package/src/account/index.ts +1 -0
- package/src/account/utils.ts +16 -0
- package/src/api/account.ts +22 -2
- package/src/api/ans.ts +15 -0
- package/src/api/aptos.ts +3 -0
- package/src/api/aptosConfig.ts +24 -0
- package/src/api/coin.ts +3 -0
- package/src/api/digitalAsset.ts +26 -0
- package/src/api/event.ts +6 -0
- package/src/api/faucet.ts +11 -2
- package/src/api/fungibleAsset.ts +8 -0
- package/src/api/general.ts +12 -0
- package/src/api/keyless.ts +6 -0
- package/src/api/object.ts +3 -0
- package/src/api/staking.ts +5 -0
- package/src/api/table.ts +5 -0
- package/src/api/transaction.ts +19 -3
- package/src/api/transactionSubmission/build.ts +4 -0
- package/src/api/transactionSubmission/helpers.ts +2 -0
- package/src/api/transactionSubmission/management.ts +5 -0
- package/src/api/transactionSubmission/sign.ts +4 -0
- package/src/api/transactionSubmission/simulate.ts +4 -0
- package/src/api/transactionSubmission/submit.ts +4 -0
- package/src/api/utils.ts +1 -0
- package/src/bcs/deserializer.ts +47 -1
- package/src/bcs/serializable/entryFunctionBytes.ts +10 -0
- package/src/bcs/serializable/fixedBytes.ts +12 -0
- package/src/bcs/serializable/movePrimitives.ts +26 -0
- package/src/bcs/serializable/moveStructs.ts +56 -0
- package/src/bcs/serializer.ts +64 -1
- package/src/cli/localNode.ts +22 -8
- package/src/cli/move.ts +26 -0
- package/src/client/core.ts +4 -0
- package/src/client/get.ts +75 -1
- package/src/client/post.ts +37 -0
- package/src/core/account/utils/address.ts +6 -0
- package/src/core/accountAddress.ts +46 -0
- package/src/core/authenticationKey.ts +22 -0
- package/src/core/common.ts +14 -0
- package/src/core/crypto/ed25519.ts +58 -4
- package/src/core/crypto/ephemeral.ts +22 -0
- package/src/core/crypto/federatedKeyless.ts +12 -0
- package/src/core/crypto/hdKey.ts +29 -0
- package/src/core/crypto/keyless.ts +134 -0
- package/src/core/crypto/multiEd25519.ts +40 -0
- package/src/core/crypto/multiKey.ts +37 -1
- package/src/core/crypto/poseidon.ts +20 -0
- package/src/core/crypto/privateKey.ts +8 -0
- package/src/core/crypto/proof.ts +2 -0
- package/src/core/crypto/publicKey.ts +14 -0
- package/src/core/crypto/secp256k1.ts +49 -2
- package/src/core/crypto/signature.ts +8 -0
- package/src/core/crypto/singleKey.ts +34 -2
- package/src/core/crypto/utils.ts +2 -0
- package/src/core/hex.ts +20 -0
- package/src/internal/account.ts +27 -7
- package/src/internal/ans.ts +27 -0
- package/src/internal/coin.ts +1 -0
- package/src/internal/digitalAsset.ts +30 -0
- package/src/internal/event.ts +6 -0
- package/src/internal/faucet.ts +5 -0
- package/src/internal/fungibleAsset.ts +5 -0
- package/src/internal/general.ts +7 -0
- package/src/internal/keyless.ts +4 -0
- package/src/internal/object.ts +2 -0
- package/src/internal/staking.ts +5 -1
- package/src/internal/table.ts +3 -0
- package/src/internal/transaction.ts +16 -0
- package/src/internal/transactionSubmission.ts +15 -2
- package/src/transactions/authenticator/account.ts +26 -0
- package/src/transactions/authenticator/transaction.ts +20 -0
- package/src/transactions/instances/chainId.ts +8 -0
- package/src/transactions/instances/identifier.ts +8 -0
- package/src/transactions/instances/moduleId.ts +10 -0
- package/src/transactions/instances/multiAgentTransaction.ts +8 -0
- package/src/transactions/instances/rawTransaction.ts +30 -0
- package/src/transactions/instances/rotationProofChallenge.ts +6 -0
- package/src/transactions/instances/signedTransaction.ts +8 -0
- package/src/transactions/instances/simpleTransaction.ts +8 -0
- package/src/transactions/instances/transactionArgument.ts +16 -0
- package/src/transactions/instances/transactionPayload.ts +50 -0
- package/src/transactions/management/accountSequenceNumber.ts +16 -0
- package/src/transactions/management/asyncQueue.ts +16 -0
- package/src/transactions/management/transactionWorker.ts +42 -5
- package/src/transactions/transactionBuilder/helpers.ts +82 -10
- package/src/transactions/transactionBuilder/remoteAbi.ts +20 -0
- package/src/transactions/transactionBuilder/signingMessage.ts +10 -0
- package/src/transactions/transactionBuilder/transactionBuilder.ts +58 -0
- package/src/transactions/typeTag/index.ts +82 -0
- package/src/transactions/typeTag/parser.ts +24 -0
- package/src/transactions/types.ts +78 -0
- package/src/types/indexer.ts +52 -0
- package/src/types/keyless.ts +12 -0
- package/src/utils/apiEndpoints.ts +30 -2
- package/src/utils/const.ts +24 -1
- package/src/utils/helpers.ts +22 -0
- package/src/utils/memoize.ts +6 -0
- package/src/utils/normalizeBundle.ts +8 -1
- package/src/version.ts +1 -1
- package/dist/common/chunk-F43XVDYJ.js.map +0 -1
- package/dist/esm/chunk-2C27NY4D.mjs.map +0 -1
- package/dist/esm/chunk-2CJC43CV.mjs.map +0 -1
- package/dist/esm/chunk-2ESU5N3V.mjs.map +0 -1
- package/dist/esm/chunk-2KSMV5KD.mjs.map +0 -1
- package/dist/esm/chunk-2MN7DW2J.mjs.map +0 -1
- package/dist/esm/chunk-2QGJDHME.mjs.map +0 -1
- package/dist/esm/chunk-333QBK32.mjs.map +0 -1
- package/dist/esm/chunk-372SLYVR.mjs +0 -2
- package/dist/esm/chunk-372SLYVR.mjs.map +0 -1
- package/dist/esm/chunk-42H7WETG.mjs.map +0 -1
- package/dist/esm/chunk-46O23AOD.mjs.map +0 -1
- package/dist/esm/chunk-4DI5SPSK.mjs +0 -2
- package/dist/esm/chunk-4DI5SPSK.mjs.map +0 -1
- package/dist/esm/chunk-4DP3PEYK.mjs.map +0 -1
- package/dist/esm/chunk-4MTSP4S2.mjs.map +0 -1
- package/dist/esm/chunk-4O5XDQDO.mjs +0 -2
- package/dist/esm/chunk-4O5XDQDO.mjs.map +0 -1
- package/dist/esm/chunk-4OV2A6PJ.mjs +0 -2
- package/dist/esm/chunk-4OV2A6PJ.mjs.map +0 -1
- package/dist/esm/chunk-4XB3BB5Z.mjs.map +0 -1
- package/dist/esm/chunk-5B3SMBXQ.mjs +0 -2
- package/dist/esm/chunk-5B3SMBXQ.mjs.map +0 -1
- package/dist/esm/chunk-5LGKGWLX.mjs.map +0 -1
- package/dist/esm/chunk-5PVZ4N42.mjs.map +0 -1
- package/dist/esm/chunk-6Q2O5G3J.mjs.map +0 -1
- package/dist/esm/chunk-6ZOVTYLJ.mjs.map +0 -1
- package/dist/esm/chunk-7N7FEBZA.mjs.map +0 -1
- package/dist/esm/chunk-7T26VA2W.mjs.map +0 -1
- package/dist/esm/chunk-7V35JAAF.mjs.map +0 -1
- package/dist/esm/chunk-ACVIE7IE.mjs.map +0 -1
- package/dist/esm/chunk-AJ5JHBAE.mjs.map +0 -1
- package/dist/esm/chunk-AKIO3OIT.mjs.map +0 -1
- package/dist/esm/chunk-ALNQK276.mjs.map +0 -1
- package/dist/esm/chunk-AOROYJ74.mjs.map +0 -1
- package/dist/esm/chunk-BAEIZAP7.mjs.map +0 -1
- package/dist/esm/chunk-BRV3RLKW.mjs.map +0 -1
- package/dist/esm/chunk-BUAHUVAD.mjs.map +0 -1
- package/dist/esm/chunk-C2HCRGQU.mjs +0 -2
- package/dist/esm/chunk-C2HCRGQU.mjs.map +0 -1
- package/dist/esm/chunk-CDEYH77E.mjs +0 -2
- package/dist/esm/chunk-CDEYH77E.mjs.map +0 -1
- package/dist/esm/chunk-CX6KECGV.mjs.map +0 -1
- package/dist/esm/chunk-D3OEQLUE.mjs +0 -2
- package/dist/esm/chunk-D3OEQLUE.mjs.map +0 -1
- package/dist/esm/chunk-DBTKJMLV.mjs.map +0 -1
- package/dist/esm/chunk-DC2IESER.mjs +0 -2
- package/dist/esm/chunk-DC2IESER.mjs.map +0 -1
- package/dist/esm/chunk-EGV3HFE3.mjs.map +0 -1
- package/dist/esm/chunk-ELXJ5A4B.mjs +0 -2
- package/dist/esm/chunk-ELXJ5A4B.mjs.map +0 -1
- package/dist/esm/chunk-F2WY2DEY.mjs.map +0 -1
- package/dist/esm/chunk-FZDEGDUY.mjs.map +0 -1
- package/dist/esm/chunk-G4KAHJXB.mjs.map +0 -1
- package/dist/esm/chunk-GAEAYY44.mjs +0 -1
- package/dist/esm/chunk-GMKKHGXK.mjs.map +0 -1
- package/dist/esm/chunk-GVNK3UMT.mjs.map +0 -1
- package/dist/esm/chunk-H3C3VTHS.mjs.map +0 -1
- package/dist/esm/chunk-HBIDHQ2M.mjs.map +0 -1
- package/dist/esm/chunk-HMMNQFVM.mjs.map +0 -1
- package/dist/esm/chunk-IBZKCBN5.mjs.map +0 -1
- package/dist/esm/chunk-ICMELYCL.mjs.map +0 -1
- package/dist/esm/chunk-IHGA5KAD.mjs.map +0 -1
- package/dist/esm/chunk-IK2NYNKG.mjs.map +0 -1
- package/dist/esm/chunk-J3E4UMBB.mjs +0 -2
- package/dist/esm/chunk-J3E4UMBB.mjs.map +0 -1
- package/dist/esm/chunk-J7PJSK3J.mjs.map +0 -1
- package/dist/esm/chunk-JMPHD4BP.mjs.map +0 -1
- package/dist/esm/chunk-JNO7KPMG.mjs.map +0 -1
- package/dist/esm/chunk-KCWRCWNT.mjs.map +0 -1
- package/dist/esm/chunk-L4SWQLAJ.mjs.map +0 -1
- package/dist/esm/chunk-LA5HJILW.mjs.map +0 -1
- package/dist/esm/chunk-LGTOOAQI.mjs.map +0 -1
- package/dist/esm/chunk-LKKI2KAP.mjs.map +0 -1
- package/dist/esm/chunk-LPVGVTWT.mjs.map +0 -1
- package/dist/esm/chunk-MHN6XY4Z.mjs +0 -2
- package/dist/esm/chunk-MHN6XY4Z.mjs.map +0 -1
- package/dist/esm/chunk-N62NUAHT.mjs.map +0 -1
- package/dist/esm/chunk-NK67FECB.mjs.map +0 -1
- package/dist/esm/chunk-OIOGOW6I.mjs.map +0 -1
- package/dist/esm/chunk-OPO5EYF7.mjs.map +0 -1
- package/dist/esm/chunk-P6KX7AS2.mjs +0 -2
- package/dist/esm/chunk-P6KX7AS2.mjs.map +0 -1
- package/dist/esm/chunk-PMGK5IHB.mjs.map +0 -1
- package/dist/esm/chunk-PXMNAP2Q.mjs.map +0 -1
- package/dist/esm/chunk-QI7OREBM.mjs.map +0 -1
- package/dist/esm/chunk-RCA73RVB.mjs.map +0 -1
- package/dist/esm/chunk-S5SQJRAV.mjs.map +0 -1
- package/dist/esm/chunk-SK3LIS4Z.mjs.map +0 -1
- package/dist/esm/chunk-SNYYEVJA.mjs.map +0 -1
- package/dist/esm/chunk-SPRNSFUV.mjs.map +0 -1
- package/dist/esm/chunk-T6ADNZE5.mjs.map +0 -1
- package/dist/esm/chunk-TCXYTPUR.mjs +0 -2
- package/dist/esm/chunk-TCXYTPUR.mjs.map +0 -1
- package/dist/esm/chunk-U3T4ZT7B.mjs.map +0 -1
- package/dist/esm/chunk-U6OCK6T4.mjs.map +0 -1
- package/dist/esm/chunk-UFPYCROT.mjs.map +0 -1
- package/dist/esm/chunk-UGIHQFID.mjs.map +0 -1
- package/dist/esm/chunk-UGTIALNW.mjs +0 -2
- package/dist/esm/chunk-V4FKFCBL.mjs.map +0 -1
- package/dist/esm/chunk-V5NDNR36.mjs +0 -2
- package/dist/esm/chunk-V5NDNR36.mjs.map +0 -1
- package/dist/esm/chunk-VIZHWYI5.mjs.map +0 -1
- package/dist/esm/chunk-VQZMI3EZ.mjs.map +0 -1
- package/dist/esm/chunk-VWGB5BHW.mjs.map +0 -1
- package/dist/esm/chunk-WFK3XRQX.mjs.map +0 -1
- package/dist/esm/chunk-XOLU6UP3.mjs.map +0 -1
- package/dist/esm/chunk-XZN344G4.mjs.map +0 -1
- package/dist/esm/chunk-YD2BMHH7.mjs +0 -2
- package/dist/esm/chunk-YEWZAR76.mjs.map +0 -1
- package/dist/esm/chunk-YJVZFYBX.mjs.map +0 -1
- package/dist/esm/chunk-ZMBXHMVQ.mjs.map +0 -1
- package/dist/esm/chunk-ZMMLM6ZJ.mjs.map +0 -1
- package/dist/esm/chunk-ZMS3AOEZ.mjs.map +0 -1
- package/dist/esm/chunk-ZXVN3HXB.mjs.map +0 -1
- /package/dist/esm/{chunk-GAEAYY44.mjs.map → account/AccountUtils.mjs.map} +0 -0
- /package/dist/esm/{chunk-NZ7M6NG2.mjs.map → chunk-P7A5RILV.mjs.map} +0 -0
- /package/dist/esm/{chunk-F45G3GP3.mjs.map → chunk-QHEKBHNU.mjs.map} +0 -0
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* the {@link api/digitalAsset}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
8
|
* digitalAsset namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -77,6 +78,7 @@ const PropertyTypeMap = {
|
|
|
77
78
|
|
|
78
79
|
/**
|
|
79
80
|
* The keys of the PropertyTypeMap, representing different property types.
|
|
81
|
+
* @group Implementation
|
|
80
82
|
*/
|
|
81
83
|
export type PropertyType = keyof typeof PropertyTypeMap;
|
|
82
84
|
|
|
@@ -84,6 +86,7 @@ export type PropertyType = keyof typeof PropertyTypeMap;
|
|
|
84
86
|
* Accepted property value types for user input, including boolean, number, bigint, string, AccountAddress, and Uint8Array.
|
|
85
87
|
* To pass in an Array, use Uint8Array type
|
|
86
88
|
* for example `new MoveVector([new MoveString("hello"), new MoveString("world")]).bcsToBytes()`
|
|
89
|
+
* @group Implementation
|
|
87
90
|
*/
|
|
88
91
|
export type PropertyValue = boolean | number | bigint | string | AccountAddress | Uint8Array;
|
|
89
92
|
|
|
@@ -99,6 +102,7 @@ const defaultDigitalAssetType = "0x4::token::Token";
|
|
|
99
102
|
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
100
103
|
* @param args.digitalAssetAddress - The address of the digital asset to retrieve data for.
|
|
101
104
|
* @returns The data of the specified digital asset.
|
|
105
|
+
* @group Implementation
|
|
102
106
|
*/
|
|
103
107
|
export async function getDigitalAssetData(args: {
|
|
104
108
|
aptosConfig: AptosConfig;
|
|
@@ -133,6 +137,7 @@ export async function getDigitalAssetData(args: {
|
|
|
133
137
|
* @param args.aptosConfig - The configuration settings for Aptos.
|
|
134
138
|
* @param args.digitalAssetAddress - The address of the digital asset to query ownership for.
|
|
135
139
|
* @returns The current ownership details of the specified digital asset.
|
|
140
|
+
* @group Implementation
|
|
136
141
|
*/
|
|
137
142
|
export async function getCurrentDigitalAssetOwnership(args: {
|
|
138
143
|
aptosConfig: AptosConfig;
|
|
@@ -173,6 +178,7 @@ export async function getCurrentDigitalAssetOwnership(args: {
|
|
|
173
178
|
* @param args.options.orderBy - The criteria for ordering the results.
|
|
174
179
|
*
|
|
175
180
|
* @returns An array of digital assets currently owned by the specified account.
|
|
181
|
+
* @group Implementation
|
|
176
182
|
*/
|
|
177
183
|
export async function getOwnedDigitalAssets(args: {
|
|
178
184
|
aptosConfig: AptosConfig;
|
|
@@ -217,6 +223,7 @@ export async function getOwnedDigitalAssets(args: {
|
|
|
217
223
|
* @param args.options.limit - The maximum number of records to return.
|
|
218
224
|
* @param args.options.orderBy - The criteria to order the results by.
|
|
219
225
|
* @returns A promise that resolves to an array of token activities for the specified digital asset.
|
|
226
|
+
* @group Implementation
|
|
220
227
|
*/
|
|
221
228
|
export async function getDigitalAssetActivity(args: {
|
|
222
229
|
aptosConfig: AptosConfig;
|
|
@@ -264,6 +271,7 @@ export async function getDigitalAssetActivity(args: {
|
|
|
264
271
|
* @param tokensFreezableByCreator - Indicates if the creator can freeze tokens in the collection.
|
|
265
272
|
* @param royaltyNumerator - The numerator for calculating royalties.
|
|
266
273
|
* @param royaltyDenominator - The denominator for calculating royalties.
|
|
274
|
+
* @group Implementation
|
|
267
275
|
*/
|
|
268
276
|
export interface CreateCollectionOptions {
|
|
269
277
|
maxSupply?: AnyNumber;
|
|
@@ -324,6 +332,7 @@ const createCollectionAbi: EntryFunctionABI = {
|
|
|
324
332
|
* @param args.tokensFreezableByCreator - Indicates if tokens can be frozen by the creator (optional, defaults to true).
|
|
325
333
|
* @param args.royaltyNumerator - The numerator for calculating royalties (optional, defaults to 0).
|
|
326
334
|
* @param args.royaltyDenominator - The denominator for calculating royalties (optional, defaults to 1).
|
|
335
|
+
* @group Implementation
|
|
327
336
|
*/
|
|
328
337
|
export async function createCollectionTransaction(
|
|
329
338
|
args: {
|
|
@@ -376,6 +385,7 @@ export async function createCollectionTransaction(
|
|
|
376
385
|
* @param args.options.limit - The limit for pagination.
|
|
377
386
|
* @param args.options.where - The conditions to filter the collections.
|
|
378
387
|
* @returns The data of the current collections.
|
|
388
|
+
* @group Implementation
|
|
379
389
|
*/
|
|
380
390
|
export async function getCollectionData(args: {
|
|
381
391
|
aptosConfig: AptosConfig;
|
|
@@ -416,6 +426,7 @@ export async function getCollectionData(args: {
|
|
|
416
426
|
* @param args.options - Optional parameters for filtering the results, including token standard and pagination options.
|
|
417
427
|
* @param args.options.tokenStandard - The token standard to filter the results by (optional).
|
|
418
428
|
* @param args.options.pagination - Pagination options for the results (optional).
|
|
429
|
+
* @group Implementation
|
|
419
430
|
*/
|
|
420
431
|
export async function getCollectionDataByCreatorAddressAndCollectionName(args: {
|
|
421
432
|
aptosConfig: AptosConfig;
|
|
@@ -447,6 +458,7 @@ export async function getCollectionDataByCreatorAddressAndCollectionName(args: {
|
|
|
447
458
|
* @param args.options - Optional parameters for filtering the results.
|
|
448
459
|
* @param args.options.tokenStandard - The token standard to filter the collections by.
|
|
449
460
|
* @param args.options.pagination - Pagination options for the results.
|
|
461
|
+
* @group Implementation
|
|
450
462
|
*/
|
|
451
463
|
export async function getCollectionDataByCreatorAddress(args: {
|
|
452
464
|
aptosConfig: AptosConfig;
|
|
@@ -477,6 +489,7 @@ export async function getCollectionDataByCreatorAddress(args: {
|
|
|
477
489
|
* @param args.options.tokenStandard - The standard of the token to filter the collection data.
|
|
478
490
|
* @param args.options.page - The page number for pagination.
|
|
479
491
|
* @param args.options.limit - The number of items per page for pagination.
|
|
492
|
+
* @group Implementation
|
|
480
493
|
*/
|
|
481
494
|
export async function getCollectionDataByCollectionId(args: {
|
|
482
495
|
aptosConfig: AptosConfig;
|
|
@@ -508,6 +521,7 @@ export async function getCollectionDataByCollectionId(args: {
|
|
|
508
521
|
* @param args.options - Optional parameters for additional filtering.
|
|
509
522
|
* @param args.options.tokenStandard - The token standard to filter the collection (default is "v2").
|
|
510
523
|
* @returns The ID of the specified collection.
|
|
524
|
+
* @group Implementation
|
|
511
525
|
*/
|
|
512
526
|
export async function getCollectionId(args: {
|
|
513
527
|
aptosConfig: AptosConfig;
|
|
@@ -559,6 +573,7 @@ const mintDigitalAssetAbi: EntryFunctionABI = {
|
|
|
559
573
|
* @param [args.propertyTypes] - Optional array of property types corresponding to the asset's properties.
|
|
560
574
|
* @param [args.propertyValues] - Optional array of property values for the asset's properties.
|
|
561
575
|
* @param [args.options] - Optional transaction generation options.
|
|
576
|
+
* @group Implementation
|
|
562
577
|
*/
|
|
563
578
|
export async function mintDigitalAssetTransaction(args: {
|
|
564
579
|
aptosConfig: AptosConfig;
|
|
@@ -604,6 +619,7 @@ export async function mintDigitalAssetTransaction(args: {
|
|
|
604
619
|
* @param propertyValues - An array of property values from which to extract the raw data.
|
|
605
620
|
* @param propertyTypes - An array of strings representing the types of properties to retrieve.
|
|
606
621
|
* @returns An array of Uint8Array containing the raw values for the specified property types.
|
|
622
|
+
* @group Implementation
|
|
607
623
|
*/
|
|
608
624
|
getPropertyValueRaw(propertyValues ?? [], convertedPropertyType ?? []),
|
|
609
625
|
],
|
|
@@ -629,6 +645,7 @@ const transferDigitalAssetAbi: EntryFunctionABI = {
|
|
|
629
645
|
* @param args.recipient - The address of the account receiving the digital asset.
|
|
630
646
|
* @param args.digitalAssetType - (Optional) The type of the digital asset being transferred.
|
|
631
647
|
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
648
|
+
* @group Implementation
|
|
632
649
|
*/
|
|
633
650
|
export async function transferDigitalAssetTransaction(args: {
|
|
634
651
|
aptosConfig: AptosConfig;
|
|
@@ -683,6 +700,7 @@ const mintSoulBoundAbi: EntryFunctionABI = {
|
|
|
683
700
|
* @param [args.propertyValues] - Optional array of property values that match the property keys and types.
|
|
684
701
|
* @param [args.options] - Optional transaction generation options.
|
|
685
702
|
* @throws Error if the counts of property keys, property types, and property values do not match.
|
|
703
|
+
* @group Implementation
|
|
686
704
|
*/
|
|
687
705
|
export async function mintSoulBoundTransaction(args: {
|
|
688
706
|
aptosConfig: AptosConfig;
|
|
@@ -753,6 +771,7 @@ const burnDigitalAssetAbi: EntryFunctionABI = {
|
|
|
753
771
|
* @param args.digitalAssetAddress - The address of the digital asset to be burned.
|
|
754
772
|
* @param args.digitalAssetType - Optional; the type of the digital asset being burned.
|
|
755
773
|
* @param args.options - Optional; additional options for generating the transaction.
|
|
774
|
+
* @group Implementation
|
|
756
775
|
*/
|
|
757
776
|
export async function burnDigitalAssetTransaction(args: {
|
|
758
777
|
aptosConfig: AptosConfig;
|
|
@@ -790,6 +809,7 @@ const freezeDigitalAssetAbi: EntryFunctionABI = {
|
|
|
790
809
|
* @param args.digitalAssetAddress - The address of the digital asset to be frozen.
|
|
791
810
|
* @param args.digitalAssetType - (Optional) The type of the digital asset as a Move struct ID.
|
|
792
811
|
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
812
|
+
* @group Implementation
|
|
793
813
|
*/
|
|
794
814
|
export async function freezeDigitalAssetTransferTransaction(args: {
|
|
795
815
|
aptosConfig: AptosConfig;
|
|
@@ -826,6 +846,7 @@ const unfreezeDigitalAssetAbi: EntryFunctionABI = {
|
|
|
826
846
|
* @param args.digitalAssetAddress - The address of the digital asset to be unfrozen.
|
|
827
847
|
* @param args.digitalAssetType - (Optional) The type of the digital asset being unfrozen.
|
|
828
848
|
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
849
|
+
* @group Implementation
|
|
829
850
|
*/
|
|
830
851
|
export async function unfreezeDigitalAssetTransferTransaction(args: {
|
|
831
852
|
aptosConfig: AptosConfig;
|
|
@@ -863,6 +884,7 @@ const setDigitalAssetDescriptionAbi: EntryFunctionABI = {
|
|
|
863
884
|
* @param args.digitalAssetAddress - The address of the digital asset whose description is being set.
|
|
864
885
|
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
865
886
|
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
887
|
+
* @group Implementation
|
|
866
888
|
*/
|
|
867
889
|
export async function setDigitalAssetDescriptionTransaction(args: {
|
|
868
890
|
aptosConfig: AptosConfig;
|
|
@@ -902,6 +924,7 @@ const setDigitalAssetNameAbi: EntryFunctionABI = {
|
|
|
902
924
|
* @param args.digitalAssetAddress - The address of the digital asset to update.
|
|
903
925
|
* @param args.digitalAssetType - (Optional) The type of the digital asset, represented as a Move struct ID.
|
|
904
926
|
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
927
|
+
* @group Implementation
|
|
905
928
|
*/
|
|
906
929
|
export async function setDigitalAssetNameTransaction(args: {
|
|
907
930
|
aptosConfig: AptosConfig;
|
|
@@ -940,6 +963,7 @@ const setDigitalAssetURIAbi: EntryFunctionABI = {
|
|
|
940
963
|
* @param args.digitalAssetAddress - The address of the digital asset whose URI is being set.
|
|
941
964
|
* @param args.digitalAssetType - The optional type of the digital asset; defaults to a predefined type if not provided.
|
|
942
965
|
* @param args.options - Optional settings for generating the transaction.
|
|
966
|
+
* @group Implementation
|
|
943
967
|
*/
|
|
944
968
|
export async function setDigitalAssetURITransaction(args: {
|
|
945
969
|
aptosConfig: AptosConfig;
|
|
@@ -986,6 +1010,7 @@ const addDigitalAssetPropertyAbi: EntryFunctionABI = {
|
|
|
986
1010
|
* @param args.digitalAssetAddress - The address of the digital asset to which the property is being added.
|
|
987
1011
|
* @param args.digitalAssetType - The optional type of the digital asset.
|
|
988
1012
|
* @param args.options - Optional transaction generation options.
|
|
1013
|
+
* @group Implementation
|
|
989
1014
|
*/
|
|
990
1015
|
export async function addDigitalAssetPropertyTransaction(args: {
|
|
991
1016
|
aptosConfig: AptosConfig;
|
|
@@ -1041,6 +1066,7 @@ const removeDigitalAssetPropertyAbi: EntryFunctionABI = {
|
|
|
1041
1066
|
* @param args.digitalAssetAddress - The address of the digital asset from which the property will be removed.
|
|
1042
1067
|
* @param args.digitalAssetType - The type of the digital asset (optional).
|
|
1043
1068
|
* @param args.options - Additional options for generating the transaction (optional).
|
|
1069
|
+
* @group Implementation
|
|
1044
1070
|
*/
|
|
1045
1071
|
export async function removeDigitalAssetPropertyTransaction(args: {
|
|
1046
1072
|
aptosConfig: AptosConfig;
|
|
@@ -1087,6 +1113,7 @@ const updateDigitalAssetPropertyAbi: EntryFunctionABI = {
|
|
|
1087
1113
|
* @param args.digitalAssetAddress - The address of the digital asset to update.
|
|
1088
1114
|
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
1089
1115
|
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
1116
|
+
* @group Implementation
|
|
1090
1117
|
*/
|
|
1091
1118
|
export async function updateDigitalAssetPropertyTransaction(args: {
|
|
1092
1119
|
aptosConfig: AptosConfig;
|
|
@@ -1125,6 +1152,7 @@ export async function updateDigitalAssetPropertyTransaction(args: {
|
|
|
1125
1152
|
* @param propertyValue - The value of the property to convert.
|
|
1126
1153
|
* @param propertyType - The type of the property, which determines how the value is processed.
|
|
1127
1154
|
* @returns The raw byte representation of the property value.
|
|
1155
|
+
* @group Implementation
|
|
1128
1156
|
*/
|
|
1129
1157
|
getSinglePropertyValueRaw(propertyValue, PropertyTypeMap[propertyType]),
|
|
1130
1158
|
],
|
|
@@ -1156,6 +1184,7 @@ const addDigitalAssetTypedPropertyAbi: EntryFunctionABI = {
|
|
|
1156
1184
|
* @param args.digitalAssetAddress - The address of the digital asset to which the property is being added.
|
|
1157
1185
|
* @param args.digitalAssetType - (Optional) The type of the digital asset.
|
|
1158
1186
|
* @param args.options - (Optional) Additional options for generating the transaction.
|
|
1187
|
+
* @group Implementation
|
|
1159
1188
|
*/
|
|
1160
1189
|
export async function addDigitalAssetTypedPropertyTransaction(args: {
|
|
1161
1190
|
aptosConfig: AptosConfig;
|
|
@@ -1211,6 +1240,7 @@ const updateDigitalAssetTypedPropertyAbi: EntryFunctionABI = {
|
|
|
1211
1240
|
* @param args.digitalAssetAddress - The address of the digital asset to be updated.
|
|
1212
1241
|
* @param args.digitalAssetType - Optional. The type of the digital asset, if not provided, defaults to the standard type.
|
|
1213
1242
|
* @param args.options - Optional. Additional options for generating the transaction.
|
|
1243
|
+
* @group Implementation
|
|
1214
1244
|
*/
|
|
1215
1245
|
export async function updateDigitalAssetTypedPropertyTransaction(args: {
|
|
1216
1246
|
aptosConfig: AptosConfig;
|
package/src/internal/event.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* the {@link api/event}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
8
|
* event namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -31,6 +32,7 @@ const checkEventTypeLength = (eventType?: InputMaybe<string>) => {
|
|
|
31
32
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
32
33
|
* @param args.eventType - The MoveStructId representing the type of event to retrieve.
|
|
33
34
|
* @param [args.options] - Optional pagination and ordering parameters for the event retrieval.
|
|
35
|
+
* @group Implementation
|
|
34
36
|
*/
|
|
35
37
|
export async function getModuleEventsByEventType(args: {
|
|
36
38
|
aptosConfig: AptosConfig;
|
|
@@ -64,6 +66,7 @@ export async function getModuleEventsByEventType(args: {
|
|
|
64
66
|
* @param args.accountAddress - The address of the account for which events are being retrieved.
|
|
65
67
|
* @param args.creationNumber - The creation number to filter events.
|
|
66
68
|
* @param args.options - Optional pagination and ordering parameters for the event retrieval.
|
|
69
|
+
* @group Implementation
|
|
67
70
|
*/
|
|
68
71
|
export async function getAccountEventsByCreationNumber(args: {
|
|
69
72
|
aptosConfig: AptosConfig;
|
|
@@ -90,6 +93,7 @@ export async function getAccountEventsByCreationNumber(args: {
|
|
|
90
93
|
* @param args.accountAddress - The address of the account for which to retrieve events.
|
|
91
94
|
* @param args.eventType - The type of event to filter by.
|
|
92
95
|
* @param args.options - Optional pagination and ordering parameters for the event retrieval.
|
|
96
|
+
* @group Implementation
|
|
93
97
|
*/
|
|
94
98
|
export async function getAccountEventsByEventType(args: {
|
|
95
99
|
aptosConfig: AptosConfig;
|
|
@@ -119,6 +123,7 @@ export async function getAccountEventsByEventType(args: {
|
|
|
119
123
|
* @param [args.options.orderBy] - Defines the order in which to return the events.
|
|
120
124
|
* @param [args.options.where] - Conditions to filter the events.
|
|
121
125
|
* @param [args.options.where.indexed_type] - Filters events by the indexed type.
|
|
126
|
+
* @group Implementation
|
|
122
127
|
*/
|
|
123
128
|
export async function getEvents(args: {
|
|
124
129
|
aptosConfig: AptosConfig;
|
|
@@ -136,6 +141,7 @@ export async function getEvents(args: {
|
|
|
136
141
|
* @param options.offset - The number of items to skip before starting to collect the result set.
|
|
137
142
|
* @param options.limit - The maximum number of items to return.
|
|
138
143
|
* @param options.orderBy - The criteria to sort the results.
|
|
144
|
+
* @group Implementation
|
|
139
145
|
*/
|
|
140
146
|
// eslint-disable-next-line no-underscore-dangle
|
|
141
147
|
checkEventTypeLength(options?.where?.indexed_type?._eq);
|
package/src/internal/faucet.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* the {@link api/faucet}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
8
|
* faucet namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -19,6 +20,9 @@ import { waitForTransaction } from "./transaction";
|
|
|
19
20
|
* Funds an account with a specified amount of tokens from the Aptos faucet.
|
|
20
21
|
* This function is useful for quickly providing a new or existing account with tokens to facilitate transactions.
|
|
21
22
|
*
|
|
23
|
+
* Note that only devnet has a publicly accessible faucet. For testnet, you must use
|
|
24
|
+
* the minting page at https://aptos.dev/network/faucet.
|
|
25
|
+
*
|
|
22
26
|
* @param args - The arguments for funding the account.
|
|
23
27
|
* @param args.aptosConfig - The configuration settings for connecting to the Aptos network.
|
|
24
28
|
* @param args.accountAddress - The address of the account to be funded.
|
|
@@ -28,6 +32,7 @@ import { waitForTransaction } from "./transaction";
|
|
|
28
32
|
* @param args.options.checkSuccess - A flag indicating whether to check if the transaction was successful.
|
|
29
33
|
*
|
|
30
34
|
* @throws Error if the transaction does not return a user transaction type.
|
|
35
|
+
* @group Implementation
|
|
31
36
|
*/
|
|
32
37
|
export async function fundAccount(args: {
|
|
33
38
|
aptosConfig: AptosConfig;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* the {@link api/fungible_asset}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
8
|
* fungible_asset namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -55,6 +56,7 @@ import { SimpleTransaction } from "../transactions/instances/simpleTransaction";
|
|
|
55
56
|
* @param [args.options.limit] - The maximum number of results to return.
|
|
56
57
|
* @param [args.options.offset] - The number of results to skip before starting to collect the result set.
|
|
57
58
|
* @param [args.options.where] - Conditions to filter the results.
|
|
59
|
+
* @group Implementation
|
|
58
60
|
*/
|
|
59
61
|
export async function getFungibleAssetMetadata(args: {
|
|
60
62
|
aptosConfig: AptosConfig;
|
|
@@ -91,6 +93,7 @@ export async function getFungibleAssetMetadata(args: {
|
|
|
91
93
|
* @param [args.options.offset] - The number of activities to skip before starting to collect the result set.
|
|
92
94
|
* @param [args.options.where] - Conditions to filter the activities.
|
|
93
95
|
* @returns A promise that resolves to an array of fungible asset activities.
|
|
96
|
+
* @group Implementation
|
|
94
97
|
*/
|
|
95
98
|
export async function getFungibleAssetActivities(args: {
|
|
96
99
|
aptosConfig: AptosConfig;
|
|
@@ -126,6 +129,7 @@ export async function getFungibleAssetActivities(args: {
|
|
|
126
129
|
* @param args.options.offset - The number of results to skip before starting to collect the results.
|
|
127
130
|
* @param args.options.where - Conditions to filter the results based on specific criteria.
|
|
128
131
|
* @returns The current balances of fungible assets.
|
|
132
|
+
* @group Implementation
|
|
129
133
|
*/
|
|
130
134
|
export async function getCurrentFungibleAssetBalances(args: {
|
|
131
135
|
aptosConfig: AptosConfig;
|
|
@@ -167,6 +171,7 @@ const faTransferAbi: EntryFunctionABI = {
|
|
|
167
171
|
* @param args.recipient - The address of the account receiving the asset.
|
|
168
172
|
* @param args.amount - The amount of the fungible asset to transfer.
|
|
169
173
|
* @param args.options - Optional settings for generating the transaction.
|
|
174
|
+
* @group Implementation
|
|
170
175
|
*/
|
|
171
176
|
export async function transferFungibleAsset(args: {
|
|
172
177
|
aptosConfig: AptosConfig;
|
package/src/internal/general.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* the {@link api/general}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
8
|
* general namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -20,6 +21,7 @@ import { ProcessorType } from "../utils/const";
|
|
|
20
21
|
*
|
|
21
22
|
* @param args - The arguments for retrieving ledger information.
|
|
22
23
|
* @param args.aptosConfig - The configuration object for connecting to the Aptos network.
|
|
24
|
+
* @group Implementation
|
|
23
25
|
*/
|
|
24
26
|
export async function getLedgerInfo(args: { aptosConfig: AptosConfig }): Promise<LedgerInfo> {
|
|
25
27
|
const { aptosConfig } = args;
|
|
@@ -38,6 +40,7 @@ export async function getLedgerInfo(args: { aptosConfig: AptosConfig }): Promise
|
|
|
38
40
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
39
41
|
* @param args.limit - The maximum number of transactions to retrieve.
|
|
40
42
|
* @returns An array of user transactions.
|
|
43
|
+
* @group Implementation
|
|
41
44
|
*/
|
|
42
45
|
export async function getChainTopUserTransactions(args: {
|
|
43
46
|
aptosConfig: AptosConfig;
|
|
@@ -66,6 +69,7 @@ export async function getChainTopUserTransactions(args: {
|
|
|
66
69
|
* @param args.query - The GraphQL query to be executed.
|
|
67
70
|
* @param args.originMethod - An optional string to specify the origin method for tracking purposes.
|
|
68
71
|
* @returns The data returned from the query execution.
|
|
72
|
+
* @group Implementation
|
|
69
73
|
*/
|
|
70
74
|
export async function queryIndexer<T extends {}>(args: {
|
|
71
75
|
aptosConfig: AptosConfig;
|
|
@@ -89,6 +93,7 @@ export async function queryIndexer<T extends {}>(args: {
|
|
|
89
93
|
* @param args - The arguments for the function.
|
|
90
94
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
91
95
|
* @returns The statuses of the processors.
|
|
96
|
+
* @group Implementation
|
|
92
97
|
*/
|
|
93
98
|
export async function getProcessorStatuses(args: { aptosConfig: AptosConfig }): Promise<GetProcessorStatusResponse> {
|
|
94
99
|
const { aptosConfig } = args;
|
|
@@ -112,6 +117,7 @@ export async function getProcessorStatuses(args: { aptosConfig: AptosConfig }):
|
|
|
112
117
|
* @param args - The arguments for the function.
|
|
113
118
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
114
119
|
* @returns The last success version as a BigInt.
|
|
120
|
+
* @group Implementation
|
|
115
121
|
*/
|
|
116
122
|
export async function getIndexerLastSuccessVersion(args: { aptosConfig: AptosConfig }): Promise<bigint> {
|
|
117
123
|
const response = await getProcessorStatuses({ aptosConfig: args.aptosConfig });
|
|
@@ -126,6 +132,7 @@ export async function getIndexerLastSuccessVersion(args: { aptosConfig: AptosCon
|
|
|
126
132
|
* @param args.aptosConfig - The configuration object for connecting to the Aptos network.
|
|
127
133
|
* @param args.processorType - The type of processor whose status you want to retrieve.
|
|
128
134
|
* @returns The status of the specified processor.
|
|
135
|
+
* @group Implementation
|
|
129
136
|
*/
|
|
130
137
|
export async function getProcessorStatus(args: {
|
|
131
138
|
aptosConfig: AptosConfig;
|
package/src/internal/keyless.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* the {@link api/keyless}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
8
|
* keyless namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
import { jwtDecode, JwtPayload } from "jwt-decode";
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -43,6 +44,7 @@ import { FIREBASE_AUTH_ISS_PATTERN } from "../utils/const";
|
|
|
43
44
|
* @param args.uidKey - An optional unique identifier key (defaults to "sub").
|
|
44
45
|
* @param args.derivationPath - An optional derivation path for the key.
|
|
45
46
|
* @returns A Uint8Array containing the fetched pepper value.
|
|
47
|
+
* @group Implementation
|
|
46
48
|
*/
|
|
47
49
|
export async function getPepper(args: {
|
|
48
50
|
aptosConfig: AptosConfig;
|
|
@@ -82,6 +84,7 @@ export async function getPepper(args: {
|
|
|
82
84
|
* @param args.pepper - An optional hex input used to enhance security (default is generated if not provided).
|
|
83
85
|
* @param args.uidKey - An optional string that specifies the unique identifier key (defaults to "sub").
|
|
84
86
|
* @throws Error if the pepper length is not valid or if the ephemeral key pair's lifespan exceeds the maximum allowed.
|
|
87
|
+
* @group Implementation
|
|
85
88
|
*/
|
|
86
89
|
export async function getProof(args: {
|
|
87
90
|
aptosConfig: AptosConfig;
|
|
@@ -154,6 +157,7 @@ export async function getProof(args: {
|
|
|
154
157
|
* @param args.pepper - An optional hexadecimal input used for additional security.
|
|
155
158
|
* @param args.proofFetchCallback - An optional callback function to handle the proof fetch outcome.
|
|
156
159
|
* @returns A keyless account object.
|
|
160
|
+
* @group Implementation
|
|
157
161
|
*/
|
|
158
162
|
export async function deriveKeylessAccount(args: {
|
|
159
163
|
aptosConfig: AptosConfig;
|
package/src/internal/object.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { queryIndexer } from "./general";
|
|
|
17
17
|
* @param [args.options.orderBy] - The criteria for ordering the results.
|
|
18
18
|
* @param [args.options.where] - The conditions to filter the results.
|
|
19
19
|
* @returns The current objects that match the specified criteria.
|
|
20
|
+
* @group Implementation
|
|
20
21
|
*/
|
|
21
22
|
export async function getObjectData(args: {
|
|
22
23
|
aptosConfig: AptosConfig;
|
|
@@ -50,6 +51,7 @@ export async function getObjectData(args: {
|
|
|
50
51
|
* @param args.aptosConfig - The configuration for connecting to the Aptos blockchain.
|
|
51
52
|
* @param args.objectAddress - The address of the object whose data is being retrieved.
|
|
52
53
|
* @param args.options - Optional parameters for pagination and ordering of the results.
|
|
54
|
+
* @group Implementation
|
|
53
55
|
*/
|
|
54
56
|
export async function getObjectDataByObjectAddress(args: {
|
|
55
57
|
aptosConfig: AptosConfig;
|
package/src/internal/staking.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* This file contains the underlying implementations for exposed API surface in
|
|
6
6
|
* the {@link api/staking}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
|
-
*
|
|
8
|
+
* staking namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -22,6 +23,7 @@ import { queryIndexer } from "./general";
|
|
|
22
23
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
23
24
|
* @param args.poolAddress - The address of the pool for which to retrieve the number of delegators.
|
|
24
25
|
* @returns The number of active delegators for the specified pool address.
|
|
26
|
+
* @group Implementation
|
|
25
27
|
*/
|
|
26
28
|
export async function getNumberOfDelegators(args: {
|
|
27
29
|
aptosConfig: AptosConfig;
|
|
@@ -48,6 +50,7 @@ export async function getNumberOfDelegators(args: {
|
|
|
48
50
|
* @param [args.options] - Optional parameters for ordering the results.
|
|
49
51
|
* @param args.options.orderBy - Specifies the order in which to return the results.
|
|
50
52
|
* @returns The number of active delegators per pool.
|
|
53
|
+
* @group Implementation
|
|
51
54
|
*/
|
|
52
55
|
export async function getNumberOfDelegatorsForAllPools(args: {
|
|
53
56
|
aptosConfig: AptosConfig;
|
|
@@ -73,6 +76,7 @@ export async function getNumberOfDelegatorsForAllPools(args: {
|
|
|
73
76
|
* @param args.delegatorAddress - The address of the delegator whose activities are being queried.
|
|
74
77
|
* @param args.poolAddress - The address of the pool associated with the delegated staking activities.
|
|
75
78
|
* @returns The delegated staking activities for the specified delegator and pool.
|
|
79
|
+
* @group Implementation
|
|
76
80
|
*/
|
|
77
81
|
export async function getDelegatedStakingActivities(args: {
|
|
78
82
|
aptosConfig: AptosConfig;
|
package/src/internal/table.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { queryIndexer } from "./general";
|
|
|
22
22
|
* @param args.handle - The identifier for the table from which to retrieve the item.
|
|
23
23
|
* @param args.data - The request data for the table item.
|
|
24
24
|
* @param args.options - Optional parameters for the request, including ledger version.
|
|
25
|
+
* @group Implementation
|
|
25
26
|
*/
|
|
26
27
|
export async function getTableItem<T>(args: {
|
|
27
28
|
aptosConfig: AptosConfig;
|
|
@@ -50,6 +51,7 @@ export async function getTableItem<T>(args: {
|
|
|
50
51
|
* @param args.options.limit - The maximum number of items to return.
|
|
51
52
|
* @param args.options.where - Conditions to filter the table items.
|
|
52
53
|
* @param args.options.orderBy - The criteria to sort the results.
|
|
54
|
+
* @group Implementation
|
|
53
55
|
*/
|
|
54
56
|
export async function getTableItemsData(args: {
|
|
55
57
|
aptosConfig: AptosConfig;
|
|
@@ -87,6 +89,7 @@ export async function getTableItemsData(args: {
|
|
|
87
89
|
* @param args.options.where - Conditions to filter the results.
|
|
88
90
|
* @param args.options.orderBy - The order in which to return the results.
|
|
89
91
|
* @returns A promise that resolves to an array of table metadata.
|
|
92
|
+
* @group Implementation
|
|
90
93
|
*/
|
|
91
94
|
export async function getTableItemsMetadata(args: {
|
|
92
95
|
aptosConfig: AptosConfig;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* the {@link api/transaction}. By moving the methods out into a separate file,
|
|
7
7
|
* other namespaces and processes can access these methods without depending on the entire
|
|
8
8
|
* transaction namespace and without having a dependency cycle error.
|
|
9
|
+
* @group Implementation
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
import { AptosConfig } from "../api/aptosConfig";
|
|
@@ -35,6 +36,7 @@ import { getIndexerLastSuccessVersion, getProcessorStatus } from "./general";
|
|
|
35
36
|
* @param {Object} args.options - The options for pagination.
|
|
36
37
|
* @param {number} args.options.offset - The number of transactions to skip before starting to collect the result set.
|
|
37
38
|
* @param {number} args.options.limit - The maximum number of transactions to return.
|
|
39
|
+
* @group Implementation
|
|
38
40
|
*/
|
|
39
41
|
export async function getTransactions(args: {
|
|
40
42
|
aptosConfig: AptosConfig;
|
|
@@ -55,6 +57,7 @@ export async function getTransactions(args: {
|
|
|
55
57
|
*
|
|
56
58
|
* @param args - The configuration parameters for the Aptos network.
|
|
57
59
|
* @param args.aptosConfig - The configuration object containing network details.
|
|
60
|
+
* @group Implementation
|
|
58
61
|
*/
|
|
59
62
|
export async function getGasPriceEstimation(args: { aptosConfig: AptosConfig }) {
|
|
60
63
|
const { aptosConfig } = args;
|
|
@@ -80,6 +83,7 @@ export async function getGasPriceEstimation(args: { aptosConfig: AptosConfig })
|
|
|
80
83
|
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
81
84
|
* @param args.ledgerVersion - The ledger version for which to retrieve the transaction.
|
|
82
85
|
* @returns The transaction details for the specified ledger version.
|
|
86
|
+
* @group Implementation
|
|
83
87
|
*/
|
|
84
88
|
export async function getTransactionByVersion(args: {
|
|
85
89
|
aptosConfig: AptosConfig;
|
|
@@ -101,6 +105,7 @@ export async function getTransactionByVersion(args: {
|
|
|
101
105
|
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
102
106
|
* @param args.transactionHash - The hash of the transaction to retrieve.
|
|
103
107
|
* @returns A promise that resolves to the transaction details.
|
|
108
|
+
* @group Implementation
|
|
104
109
|
*/
|
|
105
110
|
export async function getTransactionByHash(args: {
|
|
106
111
|
aptosConfig: AptosConfig;
|
|
@@ -124,6 +129,7 @@ export async function getTransactionByHash(args: {
|
|
|
124
129
|
* @param args.transactionHash - The hash of the transaction to check.
|
|
125
130
|
* @returns A boolean indicating whether the transaction is pending.
|
|
126
131
|
* @throws An error if the transaction cannot be retrieved due to reasons other than a 404 status.
|
|
132
|
+
* @group Implementation
|
|
127
133
|
*/
|
|
128
134
|
export async function isTransactionPending(args: {
|
|
129
135
|
aptosConfig: AptosConfig;
|
|
@@ -148,6 +154,7 @@ export async function isTransactionPending(args: {
|
|
|
148
154
|
* @param args - The arguments for the function.
|
|
149
155
|
* @param args.aptosConfig - The configuration settings for the Aptos client.
|
|
150
156
|
* @param args.transactionHash - The hash of the transaction to wait for.
|
|
157
|
+
* @group Implementation
|
|
151
158
|
*/
|
|
152
159
|
export async function longWaitForTransaction(args: {
|
|
153
160
|
aptosConfig: AptosConfig;
|
|
@@ -175,6 +182,7 @@ export async function longWaitForTransaction(args: {
|
|
|
175
182
|
* @returns A promise that resolves to the transaction response once the transaction is confirmed.
|
|
176
183
|
* @throws WaitForTransactionError if the transaction times out or remains pending.
|
|
177
184
|
* @throws FailedTransactionError if the transaction fails.
|
|
185
|
+
* @group Implementation
|
|
178
186
|
*/
|
|
179
187
|
export async function waitForTransaction(args: {
|
|
180
188
|
aptosConfig: AptosConfig;
|
|
@@ -197,6 +205,7 @@ export async function waitForTransaction(args: {
|
|
|
197
205
|
*
|
|
198
206
|
* @param e - The error object that occurred during the API call.
|
|
199
207
|
* @throws {Error} Throws the last error if it exists; otherwise, throws a WaitForTransactionError indicating a timeout.
|
|
208
|
+
* @group Implementation
|
|
200
209
|
*/
|
|
201
210
|
function handleAPIError(e: any) {
|
|
202
211
|
// In short, this means we will retry if it was an AptosApiError and the code was 404 or 5xx.
|
|
@@ -292,6 +301,7 @@ export async function waitForTransaction(args: {
|
|
|
292
301
|
* @param args.aptosConfig - The configuration object for Aptos.
|
|
293
302
|
* @param args.minimumLedgerVersion - The minimum ledger version that the indexer should sync to.
|
|
294
303
|
* @param args.processorType - (Optional) The type of processor to check the last success version from.
|
|
304
|
+
* @group Implementation
|
|
295
305
|
*/
|
|
296
306
|
export async function waitForIndexer(args: {
|
|
297
307
|
aptosConfig: AptosConfig;
|
|
@@ -338,6 +348,7 @@ export async function waitForIndexer(args: {
|
|
|
338
348
|
*
|
|
339
349
|
* @param message - A descriptive message for the error.
|
|
340
350
|
* @param lastSubmittedTransaction - The last submitted transaction response, if available.
|
|
351
|
+
* @group Implementation
|
|
341
352
|
*/
|
|
342
353
|
export class WaitForTransactionError extends Error {
|
|
343
354
|
public readonly lastSubmittedTransaction: TransactionResponse | undefined;
|
|
@@ -347,6 +358,7 @@ export class WaitForTransactionError extends Error {
|
|
|
347
358
|
*
|
|
348
359
|
* @param message - The message associated with the transaction.
|
|
349
360
|
* @param lastSubmittedTransaction - The transaction response object containing details about the transaction.
|
|
361
|
+
* @group Implementation
|
|
350
362
|
*/
|
|
351
363
|
constructor(message: string, lastSubmittedTransaction: TransactionResponse | undefined) {
|
|
352
364
|
super(message);
|
|
@@ -360,6 +372,7 @@ export class WaitForTransactionError extends Error {
|
|
|
360
372
|
*
|
|
361
373
|
* @param message - A description of the error.
|
|
362
374
|
* @param transaction - The transaction response associated with the failure.
|
|
375
|
+
* @group Implementation
|
|
363
376
|
*/
|
|
364
377
|
export class FailedTransactionError extends Error {
|
|
365
378
|
public readonly transaction: TransactionResponse;
|
|
@@ -379,6 +392,7 @@ export class FailedTransactionError extends Error {
|
|
|
379
392
|
* @param args.ledgerVersion - The ledger version of the block to retrieve.
|
|
380
393
|
* @param args.options - Optional parameters for the request.
|
|
381
394
|
* @param args.options.withTransactions - Indicates whether to include transactions in the block data.
|
|
395
|
+
* @group Implementation
|
|
382
396
|
*/
|
|
383
397
|
export async function getBlockByVersion(args: {
|
|
384
398
|
aptosConfig: AptosConfig;
|
|
@@ -405,6 +419,7 @@ export async function getBlockByVersion(args: {
|
|
|
405
419
|
* @param args.options - Optional parameters for the request.
|
|
406
420
|
* @param args.options.withTransactions - Indicates whether to include transactions in the block data.
|
|
407
421
|
* @returns A promise that resolves to the block data, potentially including its transactions.
|
|
422
|
+
* @group Implementation
|
|
408
423
|
*/
|
|
409
424
|
export async function getBlockByHeight(args: {
|
|
410
425
|
aptosConfig: AptosConfig;
|
|
@@ -429,6 +444,7 @@ export async function getBlockByHeight(args: {
|
|
|
429
444
|
* @param args.block - The block object that will be filled with transactions.
|
|
430
445
|
* @param args.options - Optional settings for fetching transactions.
|
|
431
446
|
* @param args.options.withTransactions - Indicates whether to include transactions in the block.
|
|
447
|
+
* @group Implementation
|
|
432
448
|
*/
|
|
433
449
|
async function fillBlockTransactions(args: {
|
|
434
450
|
aptosConfig: AptosConfig;
|