@aptos-labs/ts-sdk 0.0.8 → 1.1.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 +17 -17
- package/dist/browser/index.d.ts +528 -209
- package/dist/browser/index.global.js +25 -25
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +528 -209
- package/dist/common/index.js +26 -26
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +9 -9
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +4 -11
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/coin.d.mts +3 -3
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +317 -73
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +3 -3
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +0 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +118 -13
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +25 -4
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/helpers.d.mts +4 -0
- package/dist/esm/api/transactionSubmission/helpers.mjs +2 -0
- 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 +23 -2
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +21 -2
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-ZJUDDSWN.mjs → chunk-2HBIGMDV.mjs} +2 -2
- package/dist/esm/{chunk-GIZLK7M7.mjs → chunk-3O4GKLXA.mjs} +2 -2
- package/dist/esm/chunk-3O4GKLXA.mjs.map +1 -0
- package/dist/esm/{chunk-CJPCOS4R.mjs → chunk-3QS3MFWJ.mjs} +2 -2
- package/dist/esm/{chunk-AZUWHKN5.mjs → chunk-4K252UDE.mjs} +2 -2
- package/dist/esm/{chunk-MWAMLQ25.mjs → chunk-4TIQQKXV.mjs} +2 -2
- package/dist/esm/{chunk-GMG4VR3K.mjs → chunk-4VG7DV6F.mjs} +2 -2
- package/dist/esm/{chunk-CCXMVVXD.mjs → chunk-4ZYW3BPF.mjs} +2 -2
- package/dist/esm/chunk-4ZYW3BPF.mjs.map +1 -0
- package/dist/esm/{chunk-UW6HQ643.mjs → chunk-5HZKDT5C.mjs} +2 -2
- package/dist/esm/{chunk-73VWOS4Z.mjs → chunk-6DYNAFAP.mjs} +2 -2
- package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
- package/dist/esm/chunk-6EMN3BOV.mjs.map +1 -0
- package/dist/esm/{chunk-HTI5LEST.mjs → chunk-6F4ACCCZ.mjs} +2 -2
- package/dist/esm/chunk-6MKBROIC.mjs +2 -0
- package/dist/esm/chunk-6MKBROIC.mjs.map +1 -0
- package/dist/esm/{chunk-53DS6NBQ.mjs → chunk-7B3VSBCX.mjs} +2 -2
- package/dist/esm/{chunk-F7EWDYTE.mjs → chunk-7QJYTQSU.mjs} +2 -2
- package/dist/esm/{chunk-OZZDXS26.mjs → chunk-AS7RX4RK.mjs} +2 -2
- package/dist/esm/chunk-AS7RX4RK.mjs.map +1 -0
- package/dist/esm/{chunk-GEZSEAL5.mjs → chunk-BUM2FIHF.mjs} +2 -2
- package/dist/esm/chunk-BV6SCEXY.mjs +2 -0
- package/dist/esm/chunk-BV6SCEXY.mjs.map +1 -0
- package/dist/esm/chunk-C3Y52GHM.mjs +2 -0
- package/dist/esm/chunk-C3Y52GHM.mjs.map +1 -0
- package/dist/esm/{chunk-OBOOY2QD.mjs → chunk-D2XLC3KK.mjs} +2 -2
- package/dist/esm/chunk-EHJEK7FU.mjs +2 -0
- package/dist/esm/chunk-EMQWD6KP.mjs +2 -0
- package/dist/esm/chunk-EMQWD6KP.mjs.map +1 -0
- package/dist/esm/{chunk-PL2VA73L.mjs → chunk-F2GFSFPW.mjs} +2 -2
- package/dist/esm/{chunk-GXPGRCSW.mjs → chunk-F52GIFKT.mjs} +2 -2
- package/dist/esm/{chunk-QNTV5NMH.mjs → chunk-FGTQT7Q5.mjs} +2 -2
- package/dist/esm/{chunk-RCM3K5JL.mjs → chunk-GQI3HWOB.mjs} +2 -2
- package/dist/esm/chunk-HDNJ4JK4.mjs +2 -0
- package/dist/esm/chunk-HDNJ4JK4.mjs.map +1 -0
- package/dist/esm/{chunk-2SAKPC5Q.mjs → chunk-HQ4DGB7L.mjs} +2 -2
- package/dist/esm/{chunk-KNMWDGP4.mjs → chunk-IEL6J6Z3.mjs} +2 -2
- package/dist/esm/{chunk-NZSGGL25.mjs → chunk-IPW2YTRD.mjs} +2 -2
- package/dist/esm/{chunk-F6K26WV5.mjs → chunk-IU5JZNH4.mjs} +2 -2
- package/dist/esm/{chunk-Y6PVFMBS.mjs → chunk-KH3M3YPI.mjs} +2 -2
- package/dist/esm/chunk-KSWQZKMQ.mjs +2 -0
- package/dist/esm/chunk-KSWQZKMQ.mjs.map +1 -0
- package/dist/esm/{chunk-5OPOJ43H.mjs → chunk-KVJ2KGMW.mjs} +2 -2
- package/dist/esm/{chunk-TZ623H2V.mjs → chunk-LUCDRB52.mjs} +2 -2
- package/dist/esm/chunk-LUCDRB52.mjs.map +1 -0
- package/dist/esm/{chunk-WTGGCH34.mjs → chunk-N25GOEVL.mjs} +2 -2
- package/dist/esm/{chunk-CU2DINU4.mjs → chunk-NLONZHYT.mjs} +2 -2
- package/dist/esm/{chunk-FZ56IS3E.mjs → chunk-NMFS5KAE.mjs} +2 -2
- package/dist/esm/chunk-NZ6RYGJQ.mjs +2 -0
- package/dist/esm/chunk-NZ6RYGJQ.mjs.map +1 -0
- package/dist/esm/chunk-OU4MEM5F.mjs +2 -0
- package/dist/esm/chunk-OU4MEM5F.mjs.map +1 -0
- package/dist/esm/{chunk-KZSJ5MFF.mjs → chunk-OWP2MKTX.mjs} +2 -2
- package/dist/esm/{chunk-QCBIJCU4.mjs → chunk-OXO3Z2MF.mjs} +2 -2
- package/dist/esm/{chunk-CL5B2QNS.mjs → chunk-PANYJULW.mjs} +2 -2
- package/dist/esm/{chunk-QEXAMHPU.mjs → chunk-PJMRQLJ5.mjs} +2 -2
- package/dist/esm/chunk-PJMRQLJ5.mjs.map +1 -0
- package/dist/esm/{chunk-XMUUI6HG.mjs → chunk-PRKZ2KJ4.mjs} +2 -2
- package/dist/esm/{chunk-SGTFMSOG.mjs → chunk-R3SAAJ2N.mjs} +2 -2
- package/dist/esm/{chunk-VQ7LYNMD.mjs → chunk-R4APGSSC.mjs} +2 -2
- package/dist/esm/{chunk-3F5WV6US.mjs → chunk-RCYWJZR4.mjs} +2 -2
- package/dist/esm/chunk-SI6QMT4N.mjs +2 -0
- package/dist/esm/chunk-SI6QMT4N.mjs.map +1 -0
- package/dist/esm/{chunk-SSJQOXEP.mjs → chunk-SMN2QQ4Q.mjs} +2 -2
- package/dist/esm/chunk-SMN2QQ4Q.mjs.map +1 -0
- package/dist/esm/chunk-SODP7NAK.mjs +2 -0
- package/dist/esm/{chunk-SDPICQ5B.mjs.map → chunk-SODP7NAK.mjs.map} +1 -1
- package/dist/esm/{chunk-OT2UDMUU.mjs → chunk-SR7XLV76.mjs} +2 -2
- package/dist/esm/{chunk-APSQ4M23.mjs → chunk-T3ID6KFN.mjs} +2 -2
- package/dist/esm/{chunk-5UY5OKXR.mjs → chunk-TCSN7PYL.mjs} +2 -2
- package/dist/esm/chunk-TCSN7PYL.mjs.map +1 -0
- package/dist/esm/chunk-TTDCRLRD.mjs +2 -0
- package/dist/esm/chunk-TTDCRLRD.mjs.map +1 -0
- package/dist/esm/{chunk-G36AY4R7.mjs → chunk-UR5E2UDO.mjs} +2 -2
- package/dist/esm/{chunk-JI2BBZ2W.mjs → chunk-UZB7CTLX.mjs} +2 -2
- package/dist/esm/chunk-VA4K6DEK.mjs +2 -0
- package/dist/esm/chunk-VA4K6DEK.mjs.map +1 -0
- package/dist/esm/{chunk-CLJLQXFQ.mjs → chunk-VBUKPN4Q.mjs} +2 -2
- package/dist/esm/chunk-VBUKPN4Q.mjs.map +1 -0
- package/dist/esm/{chunk-XITLXPBK.mjs → chunk-VMCFN5CT.mjs} +2 -2
- package/dist/esm/{chunk-SRGPSANH.mjs → chunk-YLI6J47P.mjs} +2 -2
- package/dist/esm/chunk-YLPG6XMH.mjs +2 -0
- package/dist/esm/chunk-YLPG6XMH.mjs.map +1 -0
- package/dist/esm/{chunk-HC5VMNXA.mjs → chunk-ZLYSA7JR.mjs} +2 -2
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account.d.mts +2 -2
- package/dist/esm/core/account.mjs +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
- package/dist/esm/core/crypto/anySignature.mjs +1 -1
- package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +1 -3
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +5 -5
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +2 -2
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +151 -26
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +12 -5
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +6 -6
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- 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.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -2
- package/src/api/ans.ts +9 -9
- package/src/api/aptos.ts +3 -28
- package/src/api/coin.ts +3 -3
- package/src/api/digitalAsset.ts +387 -88
- package/src/api/fungibleAsset.ts +3 -3
- package/src/api/transaction.ts +172 -2
- package/src/api/transactionSubmission/build.ts +25 -4
- package/src/api/transactionSubmission/helpers.ts +31 -0
- package/src/api/transactionSubmission/simulate.ts +26 -20
- package/src/api/transactionSubmission/submit.ts +24 -20
- package/src/client/core.ts +1 -1
- package/src/core/account.ts +2 -2
- package/src/internal/ans.ts +5 -5
- package/src/internal/coin.ts +2 -2
- package/src/internal/digitalAsset.ts +482 -58
- package/src/internal/fungibleAsset.ts +2 -2
- package/src/internal/transactionSubmission.ts +6 -6
- package/src/transactions/management/transactionWorker.ts +2 -9
- package/src/transactions/transactionBuilder/remoteAbi.ts +13 -5
- package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -4
- package/src/transactions/typeTag/index.ts +1 -0
- package/src/transactions/types.ts +2 -2
- package/src/version.ts +1 -1
- package/dist/esm/api/transactionSubmission.d.mts +0 -113
- package/dist/esm/api/transactionSubmission.mjs +0 -2
- package/dist/esm/chunk-2YQXX64E.mjs +0 -2
- package/dist/esm/chunk-2YQXX64E.mjs.map +0 -1
- package/dist/esm/chunk-5CUNY7X2.mjs +0 -2
- package/dist/esm/chunk-5CUNY7X2.mjs.map +0 -1
- package/dist/esm/chunk-5UY5OKXR.mjs.map +0 -1
- package/dist/esm/chunk-5ZVCSKFX.mjs +0 -2
- package/dist/esm/chunk-5ZVCSKFX.mjs.map +0 -1
- package/dist/esm/chunk-CCXMVVXD.mjs.map +0 -1
- package/dist/esm/chunk-CLJLQXFQ.mjs.map +0 -1
- package/dist/esm/chunk-EFRFDFS4.mjs +0 -2
- package/dist/esm/chunk-EFRFDFS4.mjs.map +0 -1
- package/dist/esm/chunk-GIZLK7M7.mjs.map +0 -1
- package/dist/esm/chunk-IELTCGLP.mjs +0 -2
- package/dist/esm/chunk-IELTCGLP.mjs.map +0 -1
- package/dist/esm/chunk-KKER5KL4.mjs +0 -2
- package/dist/esm/chunk-KKER5KL4.mjs.map +0 -1
- package/dist/esm/chunk-OZZDXS26.mjs.map +0 -1
- package/dist/esm/chunk-P5747ZYC.mjs +0 -2
- package/dist/esm/chunk-P5747ZYC.mjs.map +0 -1
- package/dist/esm/chunk-PXTMLJKO.mjs +0 -2
- package/dist/esm/chunk-QEXAMHPU.mjs.map +0 -1
- package/dist/esm/chunk-RLG3WOTH.mjs +0 -2
- package/dist/esm/chunk-RLG3WOTH.mjs.map +0 -1
- package/dist/esm/chunk-SDPICQ5B.mjs +0 -2
- package/dist/esm/chunk-SO6EE5DX.mjs +0 -2
- package/dist/esm/chunk-SO6EE5DX.mjs.map +0 -1
- package/dist/esm/chunk-SSJQOXEP.mjs.map +0 -1
- package/dist/esm/chunk-TZ623H2V.mjs.map +0 -1
- package/dist/esm/chunk-UKSA4H2O.mjs +0 -2
- package/dist/esm/chunk-UKSA4H2O.mjs.map +0 -1
- package/dist/esm/chunk-UWXDXOFK.mjs +0 -2
- package/dist/esm/chunk-UWXDXOFK.mjs.map +0 -1
- package/dist/esm/chunk-XX2Z26FH.mjs +0 -2
- package/dist/esm/chunk-XX2Z26FH.mjs.map +0 -1
- package/dist/esm/chunk-YN6UIVFB.mjs +0 -2
- package/dist/esm/chunk-YN6UIVFB.mjs.map +0 -1
- package/dist/esm/chunk-ZFK7QD3B.mjs +0 -2
- package/dist/esm/chunk-ZFK7QD3B.mjs.map +0 -1
- package/src/api/transactionSubmission.ts +0 -121
- /package/dist/esm/api/{transactionSubmission.mjs.map → transactionSubmission/helpers.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZJUDDSWN.mjs.map → chunk-2HBIGMDV.mjs.map} +0 -0
- /package/dist/esm/{chunk-CJPCOS4R.mjs.map → chunk-3QS3MFWJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-AZUWHKN5.mjs.map → chunk-4K252UDE.mjs.map} +0 -0
- /package/dist/esm/{chunk-MWAMLQ25.mjs.map → chunk-4TIQQKXV.mjs.map} +0 -0
- /package/dist/esm/{chunk-GMG4VR3K.mjs.map → chunk-4VG7DV6F.mjs.map} +0 -0
- /package/dist/esm/{chunk-UW6HQ643.mjs.map → chunk-5HZKDT5C.mjs.map} +0 -0
- /package/dist/esm/{chunk-73VWOS4Z.mjs.map → chunk-6DYNAFAP.mjs.map} +0 -0
- /package/dist/esm/{chunk-HTI5LEST.mjs.map → chunk-6F4ACCCZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-53DS6NBQ.mjs.map → chunk-7B3VSBCX.mjs.map} +0 -0
- /package/dist/esm/{chunk-F7EWDYTE.mjs.map → chunk-7QJYTQSU.mjs.map} +0 -0
- /package/dist/esm/{chunk-GEZSEAL5.mjs.map → chunk-BUM2FIHF.mjs.map} +0 -0
- /package/dist/esm/{chunk-OBOOY2QD.mjs.map → chunk-D2XLC3KK.mjs.map} +0 -0
- /package/dist/esm/{chunk-PXTMLJKO.mjs.map → chunk-EHJEK7FU.mjs.map} +0 -0
- /package/dist/esm/{chunk-PL2VA73L.mjs.map → chunk-F2GFSFPW.mjs.map} +0 -0
- /package/dist/esm/{chunk-GXPGRCSW.mjs.map → chunk-F52GIFKT.mjs.map} +0 -0
- /package/dist/esm/{chunk-QNTV5NMH.mjs.map → chunk-FGTQT7Q5.mjs.map} +0 -0
- /package/dist/esm/{chunk-RCM3K5JL.mjs.map → chunk-GQI3HWOB.mjs.map} +0 -0
- /package/dist/esm/{chunk-2SAKPC5Q.mjs.map → chunk-HQ4DGB7L.mjs.map} +0 -0
- /package/dist/esm/{chunk-KNMWDGP4.mjs.map → chunk-IEL6J6Z3.mjs.map} +0 -0
- /package/dist/esm/{chunk-NZSGGL25.mjs.map → chunk-IPW2YTRD.mjs.map} +0 -0
- /package/dist/esm/{chunk-F6K26WV5.mjs.map → chunk-IU5JZNH4.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y6PVFMBS.mjs.map → chunk-KH3M3YPI.mjs.map} +0 -0
- /package/dist/esm/{chunk-5OPOJ43H.mjs.map → chunk-KVJ2KGMW.mjs.map} +0 -0
- /package/dist/esm/{chunk-WTGGCH34.mjs.map → chunk-N25GOEVL.mjs.map} +0 -0
- /package/dist/esm/{chunk-CU2DINU4.mjs.map → chunk-NLONZHYT.mjs.map} +0 -0
- /package/dist/esm/{chunk-FZ56IS3E.mjs.map → chunk-NMFS5KAE.mjs.map} +0 -0
- /package/dist/esm/{chunk-KZSJ5MFF.mjs.map → chunk-OWP2MKTX.mjs.map} +0 -0
- /package/dist/esm/{chunk-QCBIJCU4.mjs.map → chunk-OXO3Z2MF.mjs.map} +0 -0
- /package/dist/esm/{chunk-CL5B2QNS.mjs.map → chunk-PANYJULW.mjs.map} +0 -0
- /package/dist/esm/{chunk-XMUUI6HG.mjs.map → chunk-PRKZ2KJ4.mjs.map} +0 -0
- /package/dist/esm/{chunk-SGTFMSOG.mjs.map → chunk-R3SAAJ2N.mjs.map} +0 -0
- /package/dist/esm/{chunk-VQ7LYNMD.mjs.map → chunk-R4APGSSC.mjs.map} +0 -0
- /package/dist/esm/{chunk-3F5WV6US.mjs.map → chunk-RCYWJZR4.mjs.map} +0 -0
- /package/dist/esm/{chunk-OT2UDMUU.mjs.map → chunk-SR7XLV76.mjs.map} +0 -0
- /package/dist/esm/{chunk-APSQ4M23.mjs.map → chunk-T3ID6KFN.mjs.map} +0 -0
- /package/dist/esm/{chunk-G36AY4R7.mjs.map → chunk-UR5E2UDO.mjs.map} +0 -0
- /package/dist/esm/{chunk-JI2BBZ2W.mjs.map → chunk-UZB7CTLX.mjs.map} +0 -0
- /package/dist/esm/{chunk-XITLXPBK.mjs.map → chunk-VMCFN5CT.mjs.map} +0 -0
- /package/dist/esm/{chunk-SRGPSANH.mjs.map → chunk-YLI6J47P.mjs.map} +0 -0
- /package/dist/esm/{chunk-HC5VMNXA.mjs.map → chunk-ZLYSA7JR.mjs.map} +0 -0
package/dist/esm/api/account.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-IPW2YTRD.mjs";import"../chunk-T3ID6KFN.mjs";import"../chunk-R3SAAJ2N.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-SMN2QQ4Q.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-BUM2FIHF.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-SR7XLV76.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-UZB7CTLX.mjs";import"../chunk-ZLYSA7JR.mjs";import"../chunk-NZ6RYGJQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-SODP7NAK.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Account};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
package/dist/esm/api/ans.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { Account } from '../core/account.mjs';
|
|
|
2
2
|
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
3
3
|
import { MoveAddressType } from '../types/index.mjs';
|
|
4
4
|
import { RegisterNameParameters, GetAccountNamesArgs, GetAccountDomainsArgs, GetAccountSubdomainsArgs, GetDomainSubdomainsArgs } from '../internal/ans.mjs';
|
|
5
|
-
import { InputGenerateTransactionOptions,
|
|
5
|
+
import { InputGenerateTransactionOptions, SimpleTransaction } from '../transactions/types.mjs';
|
|
6
6
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
7
7
|
import { GetANSNameResponse } from '../types/indexer.mjs';
|
|
8
8
|
import '../core/authenticationKey.mjs';
|
|
@@ -102,14 +102,14 @@ declare class ANS {
|
|
|
102
102
|
* @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
|
|
103
103
|
* @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
|
|
104
104
|
*
|
|
105
|
-
* @returns
|
|
105
|
+
* @returns SimpleTransaction
|
|
106
106
|
*/
|
|
107
107
|
setTargetAddress(args: {
|
|
108
108
|
sender: Account;
|
|
109
109
|
name: string;
|
|
110
110
|
address: AccountAddressInput;
|
|
111
111
|
options?: InputGenerateTransactionOptions;
|
|
112
|
-
}): Promise<
|
|
112
|
+
}): Promise<SimpleTransaction>;
|
|
113
113
|
/**
|
|
114
114
|
* Retrieve the primary name for an account. An account can have
|
|
115
115
|
* multiple names that target it, but only a single name that is primary. An
|
|
@@ -141,13 +141,13 @@ declare class ANS {
|
|
|
141
141
|
* @param args.sender - The sender account
|
|
142
142
|
* @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
|
|
143
143
|
*
|
|
144
|
-
* @returns
|
|
144
|
+
* @returns SimpleTransaction
|
|
145
145
|
*/
|
|
146
146
|
setPrimaryName(args: {
|
|
147
147
|
sender: Account;
|
|
148
148
|
name?: string;
|
|
149
149
|
options?: InputGenerateTransactionOptions;
|
|
150
|
-
}): Promise<
|
|
150
|
+
}): Promise<SimpleTransaction>;
|
|
151
151
|
/**
|
|
152
152
|
* Registers a new name
|
|
153
153
|
*
|
|
@@ -181,9 +181,9 @@ declare class ANS {
|
|
|
181
181
|
* @param args.toAddress optional - The address to send the domain name to. If not provided,
|
|
182
182
|
* the transaction will be sent to the router.
|
|
183
183
|
*
|
|
184
|
-
* @returns
|
|
184
|
+
* @returns SimpleTransaction
|
|
185
185
|
*/
|
|
186
|
-
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<
|
|
186
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SimpleTransaction>;
|
|
187
187
|
/**
|
|
188
188
|
* Renews a domain name
|
|
189
189
|
*
|
|
@@ -199,14 +199,14 @@ declare class ANS {
|
|
|
199
199
|
* Subdomains cannot be renewed.
|
|
200
200
|
* @param args.years - The number of years to renew the name. Currently only one year is permitted.
|
|
201
201
|
*
|
|
202
|
-
* @returns
|
|
202
|
+
* @returns SimpleTransaction
|
|
203
203
|
*/
|
|
204
204
|
renewDomain(args: {
|
|
205
205
|
sender: Account;
|
|
206
206
|
name: string;
|
|
207
207
|
years?: 1;
|
|
208
208
|
options?: InputGenerateTransactionOptions;
|
|
209
|
-
}): Promise<
|
|
209
|
+
}): Promise<SimpleTransaction>;
|
|
210
210
|
/**
|
|
211
211
|
* Fetches a single name from the indexer
|
|
212
212
|
* @param args.name - A string of the name to retrieve, e.g. "test.aptos.apt"
|
package/dist/esm/api/ans.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-HDNJ4JK4.mjs";import"../chunk-TTDCRLRD.mjs";import"../chunk-VBUKPN4Q.mjs";import"../chunk-3O4GKLXA.mjs";import"../chunk-YLPG6XMH.mjs";import"../chunk-F52GIFKT.mjs";import"../chunk-7QJYTQSU.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-HQ4DGB7L.mjs";import"../chunk-OXO3Z2MF.mjs";import"../chunk-3QS3MFWJ.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-R3SAAJ2N.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-SMN2QQ4Q.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-BUM2FIHF.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-SR7XLV76.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-UZB7CTLX.mjs";import"../chunk-ZLYSA7JR.mjs";import"../chunk-NZ6RYGJQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-SODP7NAK.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as ANS};
|
|
2
2
|
//# sourceMappingURL=ans.mjs.map
|
package/dist/esm/api/aptos.d.mts
CHANGED
|
@@ -9,11 +9,6 @@ import { General } from './general.mjs';
|
|
|
9
9
|
import { ANS } from './ans.mjs';
|
|
10
10
|
import { Staking } from './staking.mjs';
|
|
11
11
|
import { Transaction } from './transaction.mjs';
|
|
12
|
-
import { TransactionSubmission } from './transactionSubmission.mjs';
|
|
13
|
-
import { Build } from './transactionSubmission/build.mjs';
|
|
14
|
-
import { Sign } from './transactionSubmission/sign.mjs';
|
|
15
|
-
import { Simulate } from './transactionSubmission/simulate.mjs';
|
|
16
|
-
import { Submit } from './transactionSubmission/submit.mjs';
|
|
17
12
|
import '../core/account.mjs';
|
|
18
13
|
import '../core/accountAddress.mjs';
|
|
19
14
|
import '../bcs/serializer.mjs';
|
|
@@ -48,6 +43,9 @@ import '../core/crypto/multiEd25519.mjs';
|
|
|
48
43
|
import '../core/crypto/multiKey.mjs';
|
|
49
44
|
import '../internal/digitalAsset.mjs';
|
|
50
45
|
import '../internal/ans.mjs';
|
|
46
|
+
import './transactionSubmission/build.mjs';
|
|
47
|
+
import './transactionSubmission/simulate.mjs';
|
|
48
|
+
import './transactionSubmission/submit.mjs';
|
|
51
49
|
|
|
52
50
|
/**
|
|
53
51
|
* This class is the main entry point into Aptos's
|
|
@@ -68,14 +66,9 @@ declare class Aptos {
|
|
|
68
66
|
readonly general: General;
|
|
69
67
|
readonly staking: Staking;
|
|
70
68
|
readonly transaction: Transaction;
|
|
71
|
-
readonly transactionSubmission: TransactionSubmission;
|
|
72
|
-
readonly build: Build;
|
|
73
|
-
readonly sign: Sign;
|
|
74
|
-
readonly simulate: Simulate;
|
|
75
|
-
readonly submit: Submit;
|
|
76
69
|
constructor(settings?: AptosConfig);
|
|
77
70
|
}
|
|
78
|
-
interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction
|
|
71
|
+
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction {
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
export { Aptos };
|
package/dist/esm/api/aptos.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-KSWQZKMQ.mjs";import"../chunk-4TIQQKXV.mjs";import"../chunk-D2XLC3KK.mjs";import"../chunk-YLI6J47P.mjs";import"../chunk-4VG7DV6F.mjs";import"../chunk-PJMRQLJ5.mjs";import"../chunk-4ZYW3BPF.mjs";import"../chunk-R4APGSSC.mjs";import"../chunk-IEL6J6Z3.mjs";import"../chunk-2HBIGMDV.mjs";import"../chunk-SI6QMT4N.mjs";import"../chunk-IHYTP2EW.mjs";import"../chunk-AS7RX4RK.mjs";import"../chunk-KH3M3YPI.mjs";import"../chunk-U6Z4FNB7.mjs";import"../chunk-BV6SCEXY.mjs";import"../chunk-OU4MEM5F.mjs";import"../chunk-6MKBROIC.mjs";import"../chunk-6EMN3BOV.mjs";import"../chunk-IPW2YTRD.mjs";import"../chunk-HDNJ4JK4.mjs";import"../chunk-TTDCRLRD.mjs";import"../chunk-3RMXGSHK.mjs";import"../chunk-TCSN7PYL.mjs";import"../chunk-LUCDRB52.mjs";import"../chunk-EMQWD6KP.mjs";import"../chunk-VA4K6DEK.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-R7G3CLRI.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-T3ID6KFN.mjs";import"../chunk-VBUKPN4Q.mjs";import"../chunk-3O4GKLXA.mjs";import"../chunk-YLPG6XMH.mjs";import"../chunk-F52GIFKT.mjs";import"../chunk-7QJYTQSU.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-HQ4DGB7L.mjs";import"../chunk-OXO3Z2MF.mjs";import"../chunk-3QS3MFWJ.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-R3SAAJ2N.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-SMN2QQ4Q.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-BUM2FIHF.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-SR7XLV76.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-UZB7CTLX.mjs";import"../chunk-ZLYSA7JR.mjs";import"../chunk-NZ6RYGJQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-SODP7NAK.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Aptos};
|
|
2
2
|
//# sourceMappingURL=aptos.mjs.map
|
package/dist/esm/api/coin.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Account } from '../core/account.mjs';
|
|
2
2
|
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
3
3
|
import { AnyNumber, MoveStructId } from '../types/index.mjs';
|
|
4
|
-
import { InputGenerateTransactionOptions,
|
|
4
|
+
import { InputGenerateTransactionOptions, SimpleTransaction } from '../transactions/types.mjs';
|
|
5
5
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
6
6
|
import '../core/authenticationKey.mjs';
|
|
7
7
|
import '../core/crypto/asymmetricCrypto.mjs';
|
|
@@ -46,7 +46,7 @@ declare class Coin {
|
|
|
46
46
|
* @param args.amount The amount to transfer
|
|
47
47
|
* @param args.coinType optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin
|
|
48
48
|
*
|
|
49
|
-
* @returns
|
|
49
|
+
* @returns SimpleTransaction
|
|
50
50
|
*/
|
|
51
51
|
transferCoinTransaction(args: {
|
|
52
52
|
sender: Account;
|
|
@@ -54,7 +54,7 @@ declare class Coin {
|
|
|
54
54
|
amount: AnyNumber;
|
|
55
55
|
coinType?: MoveStructId;
|
|
56
56
|
options?: InputGenerateTransactionOptions;
|
|
57
|
-
}): Promise<
|
|
57
|
+
}): Promise<SimpleTransaction>;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export { Coin };
|
package/dist/esm/api/coin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-TCSN7PYL.mjs";import"../chunk-LUCDRB52.mjs";import"../chunk-VBUKPN4Q.mjs";import"../chunk-3O4GKLXA.mjs";import"../chunk-YLPG6XMH.mjs";import"../chunk-F52GIFKT.mjs";import"../chunk-7QJYTQSU.mjs";import"../chunk-HTZTTZQJ.mjs";import"../chunk-HQ4DGB7L.mjs";import"../chunk-OXO3Z2MF.mjs";import"../chunk-3QS3MFWJ.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-R3SAAJ2N.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-SMN2QQ4Q.mjs";import"../chunk-N25GOEVL.mjs";import"../chunk-4K252UDE.mjs";import"../chunk-NMFS5KAE.mjs";import"../chunk-OWP2MKTX.mjs";import"../chunk-RCYWJZR4.mjs";import"../chunk-5HZKDT5C.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EHJEK7FU.mjs";import"../chunk-UR5E2UDO.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-6DYNAFAP.mjs";import"../chunk-F2GFSFPW.mjs";import"../chunk-7B3VSBCX.mjs";import"../chunk-VMCFN5CT.mjs";import"../chunk-UDMADMVO.mjs";import"../chunk-IU5JZNH4.mjs";import"../chunk-NL72WE3E.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-BUM2FIHF.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-SR7XLV76.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-UZB7CTLX.mjs";import"../chunk-ZLYSA7JR.mjs";import"../chunk-NZ6RYGJQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-SODP7NAK.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Coin};
|
|
2
2
|
//# sourceMappingURL=coin.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AnyNumber, TokenStandardArg, PaginationArgs, OrderByArg } from '../types/index.mjs';
|
|
1
|
+
import { AnyNumber, TokenStandardArg, PaginationArgs, OrderByArg, MoveStructId } from '../types/index.mjs';
|
|
2
2
|
import { Account } from '../core/account.mjs';
|
|
3
|
-
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
|
-
import { InputGenerateTransactionOptions,
|
|
5
|
-
import { CreateCollectionOptions } from '../internal/digitalAsset.mjs';
|
|
3
|
+
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs';
|
|
4
|
+
import { InputGenerateTransactionOptions, SimpleTransaction } from '../transactions/types.mjs';
|
|
5
|
+
import { CreateCollectionOptions, PropertyType, PropertyValue } from '../internal/digitalAsset.mjs';
|
|
6
6
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
7
7
|
import { GetCollectionDataResponse, GetTokenDataResponse, GetCurrentTokenOwnershipResponse, GetOwnedTokensResponse, GetTokenActivityResponse } from '../types/indexer.mjs';
|
|
8
8
|
import '../utils/apiEndpoints.mjs';
|
|
@@ -39,38 +39,6 @@ import '../types/generated/types.mjs';
|
|
|
39
39
|
declare class DigitalAsset {
|
|
40
40
|
readonly config: AptosConfig;
|
|
41
41
|
constructor(config: AptosConfig);
|
|
42
|
-
/**
|
|
43
|
-
* Creates a new collection within the specified account
|
|
44
|
-
*
|
|
45
|
-
* @param args.creator the account of the collection's creator
|
|
46
|
-
* @param args.description the description of the collection
|
|
47
|
-
* @param args.name the name of the collection
|
|
48
|
-
* @param args.uri the URI to additional info about the collection
|
|
49
|
-
*
|
|
50
|
-
* The parameters below are optional.
|
|
51
|
-
* @param args.maxSupply controls the max supply of the tokens - defaults MAX_U64_BIG_INT
|
|
52
|
-
* @param args.mutableDescription controls mutability of the collection's description - defaults true
|
|
53
|
-
* @param args.mutableRoyalty controls mutability of the collection's description - defaults true
|
|
54
|
-
* @param args.mutableUri controls mutability of the collection's URI - defaults true
|
|
55
|
-
* @param args.mutableTokenDescription controls mutability of the token's description - defaults true
|
|
56
|
-
* @param args.mutableTokenName controls mutability of the token's name - defaults true
|
|
57
|
-
* @param args.mutableTokenProperties controls mutability of token's properties - defaults true
|
|
58
|
-
* @param args.mutableTokenUri controls mutability of the token's URI - defaults true
|
|
59
|
-
* @param args.tokensBurnableByCreator controls whether tokens can be burnable by the creator - defaults true
|
|
60
|
-
* @param args.tokensFreezableByCreator controls whether tokens can be frozen by the creator - defaults true
|
|
61
|
-
* @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when a token is transferred - defaults 0
|
|
62
|
-
* @param args.royaltyDenominator the denominator of the royalty to be paid to the creator when a token is transferred -
|
|
63
|
-
* defaults 1
|
|
64
|
-
*
|
|
65
|
-
* @returns A SingleSignerTransaction that when submitted will create the collection.
|
|
66
|
-
*/
|
|
67
|
-
createCollectionTransaction(args: {
|
|
68
|
-
creator: Account;
|
|
69
|
-
description: string;
|
|
70
|
-
name: string;
|
|
71
|
-
uri: string;
|
|
72
|
-
options?: InputGenerateTransactionOptions;
|
|
73
|
-
} & CreateCollectionOptions): Promise<SingleSignerTransaction>;
|
|
74
42
|
/**
|
|
75
43
|
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
76
44
|
*
|
|
@@ -108,70 +76,346 @@ declare class DigitalAsset {
|
|
|
108
76
|
options?: TokenStandardArg;
|
|
109
77
|
}): Promise<string>;
|
|
110
78
|
/**
|
|
111
|
-
*
|
|
79
|
+
* Gets digital asset data given the address of a digital asset.
|
|
112
80
|
*
|
|
113
|
-
* @param args.
|
|
114
|
-
* @param args.collection the name of the collection the token belongs to
|
|
115
|
-
* @param args.description the description of the token
|
|
116
|
-
* @param args.name the name of the token
|
|
117
|
-
* @param args.uri the URI to additional info about the token
|
|
118
|
-
*
|
|
119
|
-
* @returns A SingleSignerTransaction that can be simulated or submitted to chain
|
|
120
|
-
*/
|
|
121
|
-
mintTokenTransaction(args: {
|
|
122
|
-
creator: Account;
|
|
123
|
-
collection: string;
|
|
124
|
-
description: string;
|
|
125
|
-
name: string;
|
|
126
|
-
uri: string;
|
|
127
|
-
options?: InputGenerateTransactionOptions;
|
|
128
|
-
}): Promise<SingleSignerTransaction>;
|
|
129
|
-
/**
|
|
130
|
-
* Gets token data given the address of a token.
|
|
131
|
-
*
|
|
132
|
-
* @param args.tokenAddress The address of the token
|
|
81
|
+
* @param args.tokenAddress The address of the digital asset
|
|
133
82
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
134
|
-
* @returns GetTokenDataResponse containing relevant data to the
|
|
83
|
+
* @returns GetTokenDataResponse containing relevant data to the digital asset.
|
|
135
84
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
85
|
+
getDigitalAssetData(args: {
|
|
86
|
+
digitalAssetAddress: AccountAddressInput;
|
|
138
87
|
minimumLedgerVersion?: AnyNumber;
|
|
139
88
|
}): Promise<GetTokenDataResponse>;
|
|
140
89
|
/**
|
|
141
|
-
* Gets
|
|
90
|
+
* Gets digital asset ownership data given the address of a digital asset.
|
|
142
91
|
*
|
|
143
|
-
* @param args.tokenAddress The address of the
|
|
92
|
+
* @param args.tokenAddress The address of the digital asset
|
|
144
93
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
145
|
-
*
|
|
94
|
+
*
|
|
95
|
+
* @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
|
|
146
96
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
97
|
+
getCurrentDigitalAssetOwnership(args: {
|
|
98
|
+
digitalAssetAddress: AccountAddressInput;
|
|
149
99
|
minimumLedgerVersion?: AnyNumber;
|
|
150
100
|
}): Promise<GetCurrentTokenOwnershipResponse>;
|
|
151
101
|
/**
|
|
152
|
-
* Gets the
|
|
102
|
+
* Gets the digital assets that the given address owns.
|
|
153
103
|
*
|
|
154
104
|
* @param args.ownerAddress The address of the owner
|
|
155
105
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
156
|
-
*
|
|
106
|
+
*
|
|
107
|
+
* @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddresss.
|
|
157
108
|
*/
|
|
158
|
-
|
|
109
|
+
getOwnedDigitalAssets(args: {
|
|
159
110
|
ownerAddress: AccountAddressInput;
|
|
160
111
|
minimumLedgerVersion?: AnyNumber;
|
|
161
112
|
options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
|
|
162
113
|
}): Promise<GetOwnedTokensResponse>;
|
|
163
114
|
/**
|
|
164
|
-
* Gets the activity data given the address of a
|
|
115
|
+
* Gets the activity data given the address of a digital asset.
|
|
165
116
|
*
|
|
166
|
-
* @param args.tokenAddress The address of the
|
|
117
|
+
* @param args.tokenAddress The address of the digital asset
|
|
167
118
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
168
|
-
*
|
|
119
|
+
*
|
|
120
|
+
* @returns GetTokenActivityResponse containing relevant activity data to the digital asset.
|
|
169
121
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
122
|
+
getDigitalAssetActivity(args: {
|
|
123
|
+
digitalAssetAddress: AccountAddressInput;
|
|
172
124
|
minimumLedgerVersion?: AnyNumber;
|
|
173
125
|
options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
|
|
174
126
|
}): Promise<GetTokenActivityResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates a new collection within the specified account
|
|
129
|
+
*
|
|
130
|
+
* @param args.creator the account of the collection's creator
|
|
131
|
+
* @param args.description the description of the collection
|
|
132
|
+
* @param args.name the name of the collection
|
|
133
|
+
* @param args.uri the URI to additional info about the collection
|
|
134
|
+
*
|
|
135
|
+
* The parameters below are optional.
|
|
136
|
+
* @param args.maxSupply controls the max supply of the digital assets - defaults MAX_U64_BIG_INT
|
|
137
|
+
* @param args.mutableDescription controls mutability of the collection's description - defaults true
|
|
138
|
+
* @param args.mutableRoyalty controls mutability of the collection's description - defaults true
|
|
139
|
+
* @param args.mutableUri controls mutability of the collection's URI - defaults true
|
|
140
|
+
* @param args.mutableTokenDescription controls mutability of the digital asset's description - defaults true
|
|
141
|
+
* @param args.mutableTokenName controls mutability of the digital asset's name - defaults true
|
|
142
|
+
* @param args.mutableTokenProperties controls mutability of digital asset's properties - defaults true
|
|
143
|
+
* @param args.mutableTokenUri controls mutability of the digital asset's URI - defaults true
|
|
144
|
+
* @param args.tokensBurnableByCreator controls whether digital assets can be burnable by the creator - defaults true
|
|
145
|
+
* @param args.tokensFreezableByCreator controls whether digital assets can be frozen by the creator - defaults true
|
|
146
|
+
* @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when
|
|
147
|
+
* a digital asset is transferred - defaults 0
|
|
148
|
+
* @param args.royaltyDenominator the denominator of the royalty to be paid to the creator
|
|
149
|
+
* when a digital asset is transferred - defaults 1
|
|
150
|
+
*
|
|
151
|
+
* @returns A SimpleTransaction that when submitted will create the collection.
|
|
152
|
+
*/
|
|
153
|
+
createCollectionTransaction(args: {
|
|
154
|
+
creator: Account;
|
|
155
|
+
description: string;
|
|
156
|
+
name: string;
|
|
157
|
+
uri: string;
|
|
158
|
+
options?: InputGenerateTransactionOptions;
|
|
159
|
+
} & CreateCollectionOptions): Promise<SimpleTransaction>;
|
|
160
|
+
/**
|
|
161
|
+
* Create a transaction to mint a digital asset into the creators account within an existing collection.
|
|
162
|
+
*
|
|
163
|
+
* @param args.creator the creator of the collection
|
|
164
|
+
* @param args.collection the name of the collection the digital asset belongs to
|
|
165
|
+
* @param args.description the description of the digital asset
|
|
166
|
+
* @param args.name the name of the digital asset
|
|
167
|
+
* @param args.uri the URI to additional info about the digital asset
|
|
168
|
+
*
|
|
169
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
170
|
+
*/
|
|
171
|
+
mintDigitalAssetTransaction(args: {
|
|
172
|
+
creator: Account;
|
|
173
|
+
collection: string;
|
|
174
|
+
description: string;
|
|
175
|
+
name: string;
|
|
176
|
+
uri: string;
|
|
177
|
+
propertyKeys?: Array<string>;
|
|
178
|
+
propertyTypes?: Array<PropertyType>;
|
|
179
|
+
propertyValues?: Array<PropertyValue>;
|
|
180
|
+
options?: InputGenerateTransactionOptions;
|
|
181
|
+
}): Promise<SimpleTransaction>;
|
|
182
|
+
/**
|
|
183
|
+
* Transfer a digital asset (non fungible digital asset) ownership.
|
|
184
|
+
*
|
|
185
|
+
* We can transfer a digital asset only when the digital asset is not frozen
|
|
186
|
+
* (i.e. owner transfer is not disabled such as for soul bound digital assets)
|
|
187
|
+
*
|
|
188
|
+
* @param args.sender The sender account of the current digital asset owner
|
|
189
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
190
|
+
* @param args.recipient The recipient account address
|
|
191
|
+
* @param args.digitalAssetType optional. The digital asset type, default to "0x4::token::Token"
|
|
192
|
+
*
|
|
193
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
194
|
+
*/
|
|
195
|
+
transferDigitalAssetTransaction(args: {
|
|
196
|
+
sender: Account;
|
|
197
|
+
digitalAssetAddress: AccountAddressInput;
|
|
198
|
+
recipient: AccountAddress;
|
|
199
|
+
digitalAssetType?: MoveStructId;
|
|
200
|
+
options?: InputGenerateTransactionOptions;
|
|
201
|
+
}): Promise<SimpleTransaction>;
|
|
202
|
+
/**
|
|
203
|
+
* Mint a soul bound digital asset into a recipient's account
|
|
204
|
+
*
|
|
205
|
+
* @param args.account The account that mints the digital asset
|
|
206
|
+
* @param args.collection The collection name that the digital asset belongs to
|
|
207
|
+
* @param args.description The digital asset description
|
|
208
|
+
* @param args.name The digital asset name
|
|
209
|
+
* @param args.uri The digital asset URL
|
|
210
|
+
* @param args.recipient The account address where the digital asset will be created
|
|
211
|
+
* @param args.propertyKeys The property keys for storing on-chain properties
|
|
212
|
+
* @param args.propertyTypes The type of property values
|
|
213
|
+
* @param args.propertyValues The property values to be stored on-chain
|
|
214
|
+
*
|
|
215
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
216
|
+
*/
|
|
217
|
+
mintSoulBoundTransaction(args: {
|
|
218
|
+
account: Account;
|
|
219
|
+
collection: string;
|
|
220
|
+
description: string;
|
|
221
|
+
name: string;
|
|
222
|
+
uri: string;
|
|
223
|
+
recipient: AccountAddress;
|
|
224
|
+
propertyKeys?: Array<string>;
|
|
225
|
+
propertyTypes?: Array<PropertyType>;
|
|
226
|
+
propertyValues?: Array<PropertyValue>;
|
|
227
|
+
options?: InputGenerateTransactionOptions;
|
|
228
|
+
}): Promise<SimpleTransaction>;
|
|
229
|
+
/**
|
|
230
|
+
* Burn a digital asset by its creator
|
|
231
|
+
*
|
|
232
|
+
* @param args.creator The creator account
|
|
233
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
234
|
+
*
|
|
235
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
236
|
+
*/
|
|
237
|
+
burnDigitalAssetTransaction(args: {
|
|
238
|
+
creator: Account;
|
|
239
|
+
digitalAssetAddress: AccountAddressInput;
|
|
240
|
+
digitalAssetType?: MoveStructId;
|
|
241
|
+
options?: InputGenerateTransactionOptions;
|
|
242
|
+
}): Promise<SimpleTransaction>;
|
|
243
|
+
/**
|
|
244
|
+
* Freeze digital asset transfer ability
|
|
245
|
+
*
|
|
246
|
+
* @param args.creator The creator account
|
|
247
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
248
|
+
*
|
|
249
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
250
|
+
*/
|
|
251
|
+
freezeDigitalAssetTransaferTransaction(args: {
|
|
252
|
+
creator: Account;
|
|
253
|
+
digitalAssetAddress: AccountAddressInput;
|
|
254
|
+
digitalAssetType?: MoveStructId;
|
|
255
|
+
options?: InputGenerateTransactionOptions;
|
|
256
|
+
}): Promise<SimpleTransaction>;
|
|
257
|
+
/**
|
|
258
|
+
* Unfreeze digital asset transfer ability
|
|
259
|
+
*
|
|
260
|
+
* @param args.creator The creator account
|
|
261
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
262
|
+
*
|
|
263
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
264
|
+
*/
|
|
265
|
+
unfreezeDigitalAssetTransaferTransaction(args: {
|
|
266
|
+
creator: Account;
|
|
267
|
+
digitalAssetAddress: AccountAddressInput;
|
|
268
|
+
digitalAssetType?: MoveStructId;
|
|
269
|
+
options?: InputGenerateTransactionOptions;
|
|
270
|
+
}): Promise<SimpleTransaction>;
|
|
271
|
+
/**
|
|
272
|
+
* Set the digital asset description
|
|
273
|
+
*
|
|
274
|
+
* @param args.creator The creator account
|
|
275
|
+
* @param args.description The digital asset description
|
|
276
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
277
|
+
*
|
|
278
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
279
|
+
*/
|
|
280
|
+
setDigitalAssetDescriptionTransaction(args: {
|
|
281
|
+
creator: Account;
|
|
282
|
+
description: string;
|
|
283
|
+
digitalAssetAddress: AccountAddressInput;
|
|
284
|
+
digitalAssetType?: MoveStructId;
|
|
285
|
+
options?: InputGenerateTransactionOptions;
|
|
286
|
+
}): Promise<SimpleTransaction>;
|
|
287
|
+
/**
|
|
288
|
+
* Set the digital asset name
|
|
289
|
+
*
|
|
290
|
+
* @param args.creator The creator account
|
|
291
|
+
* @param args.name The digital asset name
|
|
292
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
293
|
+
*
|
|
294
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
295
|
+
*/
|
|
296
|
+
setDigitalAssetNameTransaction(args: {
|
|
297
|
+
creator: Account;
|
|
298
|
+
name: string;
|
|
299
|
+
digitalAssetAddress: AccountAddressInput;
|
|
300
|
+
digitalAssetType?: MoveStructId;
|
|
301
|
+
options?: InputGenerateTransactionOptions;
|
|
302
|
+
}): Promise<SimpleTransaction>;
|
|
303
|
+
/**
|
|
304
|
+
* Set the digital asset name
|
|
305
|
+
*
|
|
306
|
+
* @param args.creator The creator account
|
|
307
|
+
* @param args.uri The digital asset uri
|
|
308
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
309
|
+
*
|
|
310
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
311
|
+
*/
|
|
312
|
+
setDigitalAssetURITransaction(args: {
|
|
313
|
+
creator: Account;
|
|
314
|
+
uri: string;
|
|
315
|
+
digitalAssetAddress: AccountAddressInput;
|
|
316
|
+
digitalAssetType?: MoveStructId;
|
|
317
|
+
options?: InputGenerateTransactionOptions;
|
|
318
|
+
}): Promise<SimpleTransaction>;
|
|
319
|
+
/**
|
|
320
|
+
* Add a digital asset property
|
|
321
|
+
*
|
|
322
|
+
* @param args.account The account that mints the digital asset
|
|
323
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
324
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
325
|
+
* @param args.propertyType The type of property value
|
|
326
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
327
|
+
*
|
|
328
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
329
|
+
*/
|
|
330
|
+
addDigitalAssetPropertyTransaction(args: {
|
|
331
|
+
creator: Account;
|
|
332
|
+
propertyKey: string;
|
|
333
|
+
propertyType: PropertyType;
|
|
334
|
+
propertyValue: PropertyValue;
|
|
335
|
+
digitalAssetAddress: AccountAddressInput;
|
|
336
|
+
digitalAssetType?: MoveStructId;
|
|
337
|
+
options?: InputGenerateTransactionOptions;
|
|
338
|
+
}): Promise<SimpleTransaction>;
|
|
339
|
+
/**
|
|
340
|
+
* Remove a digital asset property
|
|
341
|
+
*
|
|
342
|
+
* @param args.account The account that mints the digital asset
|
|
343
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
344
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
345
|
+
* @param args.propertyType The type of property value
|
|
346
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
347
|
+
*
|
|
348
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
349
|
+
*/
|
|
350
|
+
removeDigitalAssetPropertyTransaction(args: {
|
|
351
|
+
creator: Account;
|
|
352
|
+
propertyKey: string;
|
|
353
|
+
propertyType: PropertyType;
|
|
354
|
+
propertyValue: PropertyValue;
|
|
355
|
+
digitalAssetAddress: AccountAddressInput;
|
|
356
|
+
digitalAssetType?: MoveStructId;
|
|
357
|
+
options?: InputGenerateTransactionOptions;
|
|
358
|
+
}): Promise<SimpleTransaction>;
|
|
359
|
+
/**
|
|
360
|
+
* Update a digital asset property
|
|
361
|
+
*
|
|
362
|
+
* @param args.account The account that mints the digital asset
|
|
363
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
364
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
365
|
+
* @param args.propertyType The type of property value
|
|
366
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
367
|
+
*
|
|
368
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
369
|
+
*/
|
|
370
|
+
updateDigitalAssetPropertyTransaction(args: {
|
|
371
|
+
creator: Account;
|
|
372
|
+
propertyKey: string;
|
|
373
|
+
propertyType: PropertyType;
|
|
374
|
+
propertyValue: PropertyValue;
|
|
375
|
+
digitalAssetAddress: AccountAddressInput;
|
|
376
|
+
digitalAssetType?: MoveStructId;
|
|
377
|
+
options?: InputGenerateTransactionOptions;
|
|
378
|
+
}): Promise<SimpleTransaction>;
|
|
379
|
+
/**
|
|
380
|
+
* Add a typed digital asset property
|
|
381
|
+
*
|
|
382
|
+
* @param args.account The account that mints the digital asset
|
|
383
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
384
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
385
|
+
* @param args.propertyType The type of property value
|
|
386
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
387
|
+
*
|
|
388
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
389
|
+
*/
|
|
390
|
+
addDigitalAssetTypedPropertyTransaction(args: {
|
|
391
|
+
creator: Account;
|
|
392
|
+
propertyKey: string;
|
|
393
|
+
propertyType: PropertyType;
|
|
394
|
+
propertyValue: PropertyValue;
|
|
395
|
+
digitalAssetAddress: AccountAddressInput;
|
|
396
|
+
digitalAssetType?: MoveStructId;
|
|
397
|
+
options?: InputGenerateTransactionOptions;
|
|
398
|
+
}): Promise<SimpleTransaction>;
|
|
399
|
+
/**
|
|
400
|
+
* Update a typed digital asset property
|
|
401
|
+
*
|
|
402
|
+
* @param args.account The account that mints the digital asset
|
|
403
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
404
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
405
|
+
* @param args.propertyType The type of property value
|
|
406
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
407
|
+
*
|
|
408
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
409
|
+
*/
|
|
410
|
+
updateDigitalAssetTypedPropertyTransaction(args: {
|
|
411
|
+
creator: Account;
|
|
412
|
+
propertyKey: string;
|
|
413
|
+
propertyType: PropertyType;
|
|
414
|
+
propertyValue: PropertyValue;
|
|
415
|
+
digitalAssetAddress: AccountAddressInput;
|
|
416
|
+
digitalAssetType?: MoveStructId;
|
|
417
|
+
options?: InputGenerateTransactionOptions;
|
|
418
|
+
}): Promise<SimpleTransaction>;
|
|
175
419
|
}
|
|
176
420
|
|
|
177
421
|
export { DigitalAsset };
|