@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/browser/index.d.ts
CHANGED
|
@@ -2885,8 +2885,8 @@ declare class Account$1 {
|
|
|
2885
2885
|
*
|
|
2886
2886
|
* @param args.privateKey PrivateKey - private key of the account
|
|
2887
2887
|
* @param args.address AccountAddress - address of the account
|
|
2888
|
-
* @param args.legacy optional. If set to
|
|
2889
|
-
* Defaults to deriving an authentication key with
|
|
2888
|
+
* @param args.legacy optional. If set to false, the keypair authentication keys will be derived with a unified scheme.
|
|
2889
|
+
* Defaults to deriving an authentication key with the legacy scheme.
|
|
2890
2890
|
*
|
|
2891
2891
|
* This method is private because it should only be called by the factory static methods.
|
|
2892
2892
|
* @returns Account
|
|
@@ -4730,7 +4730,7 @@ type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionAr
|
|
|
4730
4730
|
*
|
|
4731
4731
|
* @param rawTransaction a bcs serialized raw transaction
|
|
4732
4732
|
*/
|
|
4733
|
-
interface
|
|
4733
|
+
interface SimpleTransaction {
|
|
4734
4734
|
rawTransaction: RawTransaction;
|
|
4735
4735
|
feePayerAddress?: AccountAddress;
|
|
4736
4736
|
secondarySignerAddresses?: undefined;
|
|
@@ -4749,7 +4749,7 @@ interface MultiAgentTransaction {
|
|
|
4749
4749
|
/**
|
|
4750
4750
|
* Unified type that holds all the return interfaces when generating different transaction types
|
|
4751
4751
|
*/
|
|
4752
|
-
type AnyRawTransaction =
|
|
4752
|
+
type AnyRawTransaction = SimpleTransaction | MultiAgentTransaction;
|
|
4753
4753
|
type InputSimulateTransactionData = {
|
|
4754
4754
|
/**
|
|
4755
4755
|
* The transaction to simulate, probably generated by `generateTransaction()`
|
|
@@ -4822,7 +4822,7 @@ declare class Coin {
|
|
|
4822
4822
|
* @param args.amount The amount to transfer
|
|
4823
4823
|
* @param args.coinType optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin
|
|
4824
4824
|
*
|
|
4825
|
-
* @returns
|
|
4825
|
+
* @returns SimpleTransaction
|
|
4826
4826
|
*/
|
|
4827
4827
|
transferCoinTransaction(args: {
|
|
4828
4828
|
sender: Account$1;
|
|
@@ -4830,7 +4830,7 @@ declare class Coin {
|
|
|
4830
4830
|
amount: AnyNumber;
|
|
4831
4831
|
coinType?: MoveStructId;
|
|
4832
4832
|
options?: InputGenerateTransactionOptions;
|
|
4833
|
-
}): Promise<
|
|
4833
|
+
}): Promise<SimpleTransaction>;
|
|
4834
4834
|
}
|
|
4835
4835
|
|
|
4836
4836
|
/**
|
|
@@ -4840,6 +4840,19 @@ declare class Coin {
|
|
|
4840
4840
|
* digitalAsset namespace and without having a dependency cycle error.
|
|
4841
4841
|
*/
|
|
4842
4842
|
|
|
4843
|
+
declare const PropertyTypeMap: {
|
|
4844
|
+
BOOLEAN: string;
|
|
4845
|
+
U8: string;
|
|
4846
|
+
U16: string;
|
|
4847
|
+
U32: string;
|
|
4848
|
+
U64: string;
|
|
4849
|
+
U128: string;
|
|
4850
|
+
U256: string;
|
|
4851
|
+
ADDRESS: string;
|
|
4852
|
+
STRING: string;
|
|
4853
|
+
};
|
|
4854
|
+
type PropertyType = keyof typeof PropertyTypeMap;
|
|
4855
|
+
type PropertyValue = boolean | number | bigint | string | AccountAddress | Array<PropertyValue>;
|
|
4843
4856
|
interface CreateCollectionOptions {
|
|
4844
4857
|
maxSupply?: AnyNumber;
|
|
4845
4858
|
mutableDescription?: boolean;
|
|
@@ -4861,38 +4874,6 @@ interface CreateCollectionOptions {
|
|
|
4861
4874
|
declare class DigitalAsset {
|
|
4862
4875
|
readonly config: AptosConfig;
|
|
4863
4876
|
constructor(config: AptosConfig);
|
|
4864
|
-
/**
|
|
4865
|
-
* Creates a new collection within the specified account
|
|
4866
|
-
*
|
|
4867
|
-
* @param args.creator the account of the collection's creator
|
|
4868
|
-
* @param args.description the description of the collection
|
|
4869
|
-
* @param args.name the name of the collection
|
|
4870
|
-
* @param args.uri the URI to additional info about the collection
|
|
4871
|
-
*
|
|
4872
|
-
* The parameters below are optional.
|
|
4873
|
-
* @param args.maxSupply controls the max supply of the tokens - defaults MAX_U64_BIG_INT
|
|
4874
|
-
* @param args.mutableDescription controls mutability of the collection's description - defaults true
|
|
4875
|
-
* @param args.mutableRoyalty controls mutability of the collection's description - defaults true
|
|
4876
|
-
* @param args.mutableUri controls mutability of the collection's URI - defaults true
|
|
4877
|
-
* @param args.mutableTokenDescription controls mutability of the token's description - defaults true
|
|
4878
|
-
* @param args.mutableTokenName controls mutability of the token's name - defaults true
|
|
4879
|
-
* @param args.mutableTokenProperties controls mutability of token's properties - defaults true
|
|
4880
|
-
* @param args.mutableTokenUri controls mutability of the token's URI - defaults true
|
|
4881
|
-
* @param args.tokensBurnableByCreator controls whether tokens can be burnable by the creator - defaults true
|
|
4882
|
-
* @param args.tokensFreezableByCreator controls whether tokens can be frozen by the creator - defaults true
|
|
4883
|
-
* @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when a token is transferred - defaults 0
|
|
4884
|
-
* @param args.royaltyDenominator the denominator of the royalty to be paid to the creator when a token is transferred -
|
|
4885
|
-
* defaults 1
|
|
4886
|
-
*
|
|
4887
|
-
* @returns A SingleSignerTransaction that when submitted will create the collection.
|
|
4888
|
-
*/
|
|
4889
|
-
createCollectionTransaction(args: {
|
|
4890
|
-
creator: Account$1;
|
|
4891
|
-
description: string;
|
|
4892
|
-
name: string;
|
|
4893
|
-
uri: string;
|
|
4894
|
-
options?: InputGenerateTransactionOptions;
|
|
4895
|
-
} & CreateCollectionOptions): Promise<SingleSignerTransaction>;
|
|
4896
4877
|
/**
|
|
4897
4878
|
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
4898
4879
|
*
|
|
@@ -4930,70 +4911,346 @@ declare class DigitalAsset {
|
|
|
4930
4911
|
options?: TokenStandardArg;
|
|
4931
4912
|
}): Promise<string>;
|
|
4932
4913
|
/**
|
|
4933
|
-
*
|
|
4934
|
-
*
|
|
4935
|
-
* @param args.creator the creator of the collection
|
|
4936
|
-
* @param args.collection the name of the collection the token belongs to
|
|
4937
|
-
* @param args.description the description of the token
|
|
4938
|
-
* @param args.name the name of the token
|
|
4939
|
-
* @param args.uri the URI to additional info about the token
|
|
4940
|
-
*
|
|
4941
|
-
* @returns A SingleSignerTransaction that can be simulated or submitted to chain
|
|
4942
|
-
*/
|
|
4943
|
-
mintTokenTransaction(args: {
|
|
4944
|
-
creator: Account$1;
|
|
4945
|
-
collection: string;
|
|
4946
|
-
description: string;
|
|
4947
|
-
name: string;
|
|
4948
|
-
uri: string;
|
|
4949
|
-
options?: InputGenerateTransactionOptions;
|
|
4950
|
-
}): Promise<SingleSignerTransaction>;
|
|
4951
|
-
/**
|
|
4952
|
-
* Gets token data given the address of a token.
|
|
4914
|
+
* Gets digital asset data given the address of a digital asset.
|
|
4953
4915
|
*
|
|
4954
|
-
* @param args.tokenAddress The address of the
|
|
4916
|
+
* @param args.tokenAddress The address of the digital asset
|
|
4955
4917
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4956
|
-
* @returns GetTokenDataResponse containing relevant data to the
|
|
4918
|
+
* @returns GetTokenDataResponse containing relevant data to the digital asset.
|
|
4957
4919
|
*/
|
|
4958
|
-
|
|
4959
|
-
|
|
4920
|
+
getDigitalAssetData(args: {
|
|
4921
|
+
digitalAssetAddress: AccountAddressInput;
|
|
4960
4922
|
minimumLedgerVersion?: AnyNumber;
|
|
4961
4923
|
}): Promise<GetTokenDataResponse>;
|
|
4962
4924
|
/**
|
|
4963
|
-
* Gets
|
|
4925
|
+
* Gets digital asset ownership data given the address of a digital asset.
|
|
4964
4926
|
*
|
|
4965
|
-
* @param args.tokenAddress The address of the
|
|
4927
|
+
* @param args.tokenAddress The address of the digital asset
|
|
4966
4928
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4967
|
-
*
|
|
4929
|
+
*
|
|
4930
|
+
* @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
|
|
4968
4931
|
*/
|
|
4969
|
-
|
|
4970
|
-
|
|
4932
|
+
getCurrentDigitalAssetOwnership(args: {
|
|
4933
|
+
digitalAssetAddress: AccountAddressInput;
|
|
4971
4934
|
minimumLedgerVersion?: AnyNumber;
|
|
4972
4935
|
}): Promise<GetCurrentTokenOwnershipResponse>;
|
|
4973
4936
|
/**
|
|
4974
|
-
* Gets the
|
|
4937
|
+
* Gets the digital assets that the given address owns.
|
|
4975
4938
|
*
|
|
4976
4939
|
* @param args.ownerAddress The address of the owner
|
|
4977
4940
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4978
|
-
*
|
|
4941
|
+
*
|
|
4942
|
+
* @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddresss.
|
|
4979
4943
|
*/
|
|
4980
|
-
|
|
4944
|
+
getOwnedDigitalAssets(args: {
|
|
4981
4945
|
ownerAddress: AccountAddressInput;
|
|
4982
4946
|
minimumLedgerVersion?: AnyNumber;
|
|
4983
4947
|
options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
|
|
4984
4948
|
}): Promise<GetOwnedTokensResponse>;
|
|
4985
4949
|
/**
|
|
4986
|
-
* Gets the activity data given the address of a
|
|
4950
|
+
* Gets the activity data given the address of a digital asset.
|
|
4987
4951
|
*
|
|
4988
|
-
* @param args.tokenAddress The address of the
|
|
4952
|
+
* @param args.tokenAddress The address of the digital asset
|
|
4989
4953
|
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4990
|
-
*
|
|
4954
|
+
*
|
|
4955
|
+
* @returns GetTokenActivityResponse containing relevant activity data to the digital asset.
|
|
4991
4956
|
*/
|
|
4992
|
-
|
|
4993
|
-
|
|
4957
|
+
getDigitalAssetActivity(args: {
|
|
4958
|
+
digitalAssetAddress: AccountAddressInput;
|
|
4994
4959
|
minimumLedgerVersion?: AnyNumber;
|
|
4995
4960
|
options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
|
|
4996
4961
|
}): Promise<GetTokenActivityResponse>;
|
|
4962
|
+
/**
|
|
4963
|
+
* Creates a new collection within the specified account
|
|
4964
|
+
*
|
|
4965
|
+
* @param args.creator the account of the collection's creator
|
|
4966
|
+
* @param args.description the description of the collection
|
|
4967
|
+
* @param args.name the name of the collection
|
|
4968
|
+
* @param args.uri the URI to additional info about the collection
|
|
4969
|
+
*
|
|
4970
|
+
* The parameters below are optional.
|
|
4971
|
+
* @param args.maxSupply controls the max supply of the digital assets - defaults MAX_U64_BIG_INT
|
|
4972
|
+
* @param args.mutableDescription controls mutability of the collection's description - defaults true
|
|
4973
|
+
* @param args.mutableRoyalty controls mutability of the collection's description - defaults true
|
|
4974
|
+
* @param args.mutableUri controls mutability of the collection's URI - defaults true
|
|
4975
|
+
* @param args.mutableTokenDescription controls mutability of the digital asset's description - defaults true
|
|
4976
|
+
* @param args.mutableTokenName controls mutability of the digital asset's name - defaults true
|
|
4977
|
+
* @param args.mutableTokenProperties controls mutability of digital asset's properties - defaults true
|
|
4978
|
+
* @param args.mutableTokenUri controls mutability of the digital asset's URI - defaults true
|
|
4979
|
+
* @param args.tokensBurnableByCreator controls whether digital assets can be burnable by the creator - defaults true
|
|
4980
|
+
* @param args.tokensFreezableByCreator controls whether digital assets can be frozen by the creator - defaults true
|
|
4981
|
+
* @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when
|
|
4982
|
+
* a digital asset is transferred - defaults 0
|
|
4983
|
+
* @param args.royaltyDenominator the denominator of the royalty to be paid to the creator
|
|
4984
|
+
* when a digital asset is transferred - defaults 1
|
|
4985
|
+
*
|
|
4986
|
+
* @returns A SimpleTransaction that when submitted will create the collection.
|
|
4987
|
+
*/
|
|
4988
|
+
createCollectionTransaction(args: {
|
|
4989
|
+
creator: Account$1;
|
|
4990
|
+
description: string;
|
|
4991
|
+
name: string;
|
|
4992
|
+
uri: string;
|
|
4993
|
+
options?: InputGenerateTransactionOptions;
|
|
4994
|
+
} & CreateCollectionOptions): Promise<SimpleTransaction>;
|
|
4995
|
+
/**
|
|
4996
|
+
* Create a transaction to mint a digital asset into the creators account within an existing collection.
|
|
4997
|
+
*
|
|
4998
|
+
* @param args.creator the creator of the collection
|
|
4999
|
+
* @param args.collection the name of the collection the digital asset belongs to
|
|
5000
|
+
* @param args.description the description of the digital asset
|
|
5001
|
+
* @param args.name the name of the digital asset
|
|
5002
|
+
* @param args.uri the URI to additional info about the digital asset
|
|
5003
|
+
*
|
|
5004
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5005
|
+
*/
|
|
5006
|
+
mintDigitalAssetTransaction(args: {
|
|
5007
|
+
creator: Account$1;
|
|
5008
|
+
collection: string;
|
|
5009
|
+
description: string;
|
|
5010
|
+
name: string;
|
|
5011
|
+
uri: string;
|
|
5012
|
+
propertyKeys?: Array<string>;
|
|
5013
|
+
propertyTypes?: Array<PropertyType>;
|
|
5014
|
+
propertyValues?: Array<PropertyValue>;
|
|
5015
|
+
options?: InputGenerateTransactionOptions;
|
|
5016
|
+
}): Promise<SimpleTransaction>;
|
|
5017
|
+
/**
|
|
5018
|
+
* Transfer a digital asset (non fungible digital asset) ownership.
|
|
5019
|
+
*
|
|
5020
|
+
* We can transfer a digital asset only when the digital asset is not frozen
|
|
5021
|
+
* (i.e. owner transfer is not disabled such as for soul bound digital assets)
|
|
5022
|
+
*
|
|
5023
|
+
* @param args.sender The sender account of the current digital asset owner
|
|
5024
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5025
|
+
* @param args.recipient The recipient account address
|
|
5026
|
+
* @param args.digitalAssetType optional. The digital asset type, default to "0x4::token::Token"
|
|
5027
|
+
*
|
|
5028
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5029
|
+
*/
|
|
5030
|
+
transferDigitalAssetTransaction(args: {
|
|
5031
|
+
sender: Account$1;
|
|
5032
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5033
|
+
recipient: AccountAddress;
|
|
5034
|
+
digitalAssetType?: MoveStructId;
|
|
5035
|
+
options?: InputGenerateTransactionOptions;
|
|
5036
|
+
}): Promise<SimpleTransaction>;
|
|
5037
|
+
/**
|
|
5038
|
+
* Mint a soul bound digital asset into a recipient's account
|
|
5039
|
+
*
|
|
5040
|
+
* @param args.account The account that mints the digital asset
|
|
5041
|
+
* @param args.collection The collection name that the digital asset belongs to
|
|
5042
|
+
* @param args.description The digital asset description
|
|
5043
|
+
* @param args.name The digital asset name
|
|
5044
|
+
* @param args.uri The digital asset URL
|
|
5045
|
+
* @param args.recipient The account address where the digital asset will be created
|
|
5046
|
+
* @param args.propertyKeys The property keys for storing on-chain properties
|
|
5047
|
+
* @param args.propertyTypes The type of property values
|
|
5048
|
+
* @param args.propertyValues The property values to be stored on-chain
|
|
5049
|
+
*
|
|
5050
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5051
|
+
*/
|
|
5052
|
+
mintSoulBoundTransaction(args: {
|
|
5053
|
+
account: Account$1;
|
|
5054
|
+
collection: string;
|
|
5055
|
+
description: string;
|
|
5056
|
+
name: string;
|
|
5057
|
+
uri: string;
|
|
5058
|
+
recipient: AccountAddress;
|
|
5059
|
+
propertyKeys?: Array<string>;
|
|
5060
|
+
propertyTypes?: Array<PropertyType>;
|
|
5061
|
+
propertyValues?: Array<PropertyValue>;
|
|
5062
|
+
options?: InputGenerateTransactionOptions;
|
|
5063
|
+
}): Promise<SimpleTransaction>;
|
|
5064
|
+
/**
|
|
5065
|
+
* Burn a digital asset by its creator
|
|
5066
|
+
*
|
|
5067
|
+
* @param args.creator The creator account
|
|
5068
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5069
|
+
*
|
|
5070
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5071
|
+
*/
|
|
5072
|
+
burnDigitalAssetTransaction(args: {
|
|
5073
|
+
creator: Account$1;
|
|
5074
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5075
|
+
digitalAssetType?: MoveStructId;
|
|
5076
|
+
options?: InputGenerateTransactionOptions;
|
|
5077
|
+
}): Promise<SimpleTransaction>;
|
|
5078
|
+
/**
|
|
5079
|
+
* Freeze digital asset transfer ability
|
|
5080
|
+
*
|
|
5081
|
+
* @param args.creator The creator account
|
|
5082
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5083
|
+
*
|
|
5084
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5085
|
+
*/
|
|
5086
|
+
freezeDigitalAssetTransaferTransaction(args: {
|
|
5087
|
+
creator: Account$1;
|
|
5088
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5089
|
+
digitalAssetType?: MoveStructId;
|
|
5090
|
+
options?: InputGenerateTransactionOptions;
|
|
5091
|
+
}): Promise<SimpleTransaction>;
|
|
5092
|
+
/**
|
|
5093
|
+
* Unfreeze digital asset transfer ability
|
|
5094
|
+
*
|
|
5095
|
+
* @param args.creator The creator account
|
|
5096
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5097
|
+
*
|
|
5098
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5099
|
+
*/
|
|
5100
|
+
unfreezeDigitalAssetTransaferTransaction(args: {
|
|
5101
|
+
creator: Account$1;
|
|
5102
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5103
|
+
digitalAssetType?: MoveStructId;
|
|
5104
|
+
options?: InputGenerateTransactionOptions;
|
|
5105
|
+
}): Promise<SimpleTransaction>;
|
|
5106
|
+
/**
|
|
5107
|
+
* Set the digital asset description
|
|
5108
|
+
*
|
|
5109
|
+
* @param args.creator The creator account
|
|
5110
|
+
* @param args.description The digital asset description
|
|
5111
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5112
|
+
*
|
|
5113
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5114
|
+
*/
|
|
5115
|
+
setDigitalAssetDescriptionTransaction(args: {
|
|
5116
|
+
creator: Account$1;
|
|
5117
|
+
description: string;
|
|
5118
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5119
|
+
digitalAssetType?: MoveStructId;
|
|
5120
|
+
options?: InputGenerateTransactionOptions;
|
|
5121
|
+
}): Promise<SimpleTransaction>;
|
|
5122
|
+
/**
|
|
5123
|
+
* Set the digital asset name
|
|
5124
|
+
*
|
|
5125
|
+
* @param args.creator The creator account
|
|
5126
|
+
* @param args.name The digital asset name
|
|
5127
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5128
|
+
*
|
|
5129
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5130
|
+
*/
|
|
5131
|
+
setDigitalAssetNameTransaction(args: {
|
|
5132
|
+
creator: Account$1;
|
|
5133
|
+
name: string;
|
|
5134
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5135
|
+
digitalAssetType?: MoveStructId;
|
|
5136
|
+
options?: InputGenerateTransactionOptions;
|
|
5137
|
+
}): Promise<SimpleTransaction>;
|
|
5138
|
+
/**
|
|
5139
|
+
* Set the digital asset name
|
|
5140
|
+
*
|
|
5141
|
+
* @param args.creator The creator account
|
|
5142
|
+
* @param args.uri The digital asset uri
|
|
5143
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5144
|
+
*
|
|
5145
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5146
|
+
*/
|
|
5147
|
+
setDigitalAssetURITransaction(args: {
|
|
5148
|
+
creator: Account$1;
|
|
5149
|
+
uri: string;
|
|
5150
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5151
|
+
digitalAssetType?: MoveStructId;
|
|
5152
|
+
options?: InputGenerateTransactionOptions;
|
|
5153
|
+
}): Promise<SimpleTransaction>;
|
|
5154
|
+
/**
|
|
5155
|
+
* Add a digital asset property
|
|
5156
|
+
*
|
|
5157
|
+
* @param args.account The account that mints the digital asset
|
|
5158
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5159
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5160
|
+
* @param args.propertyType The type of property value
|
|
5161
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5162
|
+
*
|
|
5163
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5164
|
+
*/
|
|
5165
|
+
addDigitalAssetPropertyTransaction(args: {
|
|
5166
|
+
creator: Account$1;
|
|
5167
|
+
propertyKey: string;
|
|
5168
|
+
propertyType: PropertyType;
|
|
5169
|
+
propertyValue: PropertyValue;
|
|
5170
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5171
|
+
digitalAssetType?: MoveStructId;
|
|
5172
|
+
options?: InputGenerateTransactionOptions;
|
|
5173
|
+
}): Promise<SimpleTransaction>;
|
|
5174
|
+
/**
|
|
5175
|
+
* Remove a digital asset property
|
|
5176
|
+
*
|
|
5177
|
+
* @param args.account The account that mints the digital asset
|
|
5178
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5179
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5180
|
+
* @param args.propertyType The type of property value
|
|
5181
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5182
|
+
*
|
|
5183
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5184
|
+
*/
|
|
5185
|
+
removeDigitalAssetPropertyTransaction(args: {
|
|
5186
|
+
creator: Account$1;
|
|
5187
|
+
propertyKey: string;
|
|
5188
|
+
propertyType: PropertyType;
|
|
5189
|
+
propertyValue: PropertyValue;
|
|
5190
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5191
|
+
digitalAssetType?: MoveStructId;
|
|
5192
|
+
options?: InputGenerateTransactionOptions;
|
|
5193
|
+
}): Promise<SimpleTransaction>;
|
|
5194
|
+
/**
|
|
5195
|
+
* Update a digital asset property
|
|
5196
|
+
*
|
|
5197
|
+
* @param args.account The account that mints the digital asset
|
|
5198
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5199
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5200
|
+
* @param args.propertyType The type of property value
|
|
5201
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5202
|
+
*
|
|
5203
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5204
|
+
*/
|
|
5205
|
+
updateDigitalAssetPropertyTransaction(args: {
|
|
5206
|
+
creator: Account$1;
|
|
5207
|
+
propertyKey: string;
|
|
5208
|
+
propertyType: PropertyType;
|
|
5209
|
+
propertyValue: PropertyValue;
|
|
5210
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5211
|
+
digitalAssetType?: MoveStructId;
|
|
5212
|
+
options?: InputGenerateTransactionOptions;
|
|
5213
|
+
}): Promise<SimpleTransaction>;
|
|
5214
|
+
/**
|
|
5215
|
+
* Add a typed digital asset property
|
|
5216
|
+
*
|
|
5217
|
+
* @param args.account The account that mints the digital asset
|
|
5218
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5219
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5220
|
+
* @param args.propertyType The type of property value
|
|
5221
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5222
|
+
*
|
|
5223
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5224
|
+
*/
|
|
5225
|
+
addDigitalAssetTypedPropertyTransaction(args: {
|
|
5226
|
+
creator: Account$1;
|
|
5227
|
+
propertyKey: string;
|
|
5228
|
+
propertyType: PropertyType;
|
|
5229
|
+
propertyValue: PropertyValue;
|
|
5230
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5231
|
+
digitalAssetType?: MoveStructId;
|
|
5232
|
+
options?: InputGenerateTransactionOptions;
|
|
5233
|
+
}): Promise<SimpleTransaction>;
|
|
5234
|
+
/**
|
|
5235
|
+
* Update a typed digital asset property
|
|
5236
|
+
*
|
|
5237
|
+
* @param args.account The account that mints the digital asset
|
|
5238
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
5239
|
+
* @param args.propertyKey The property key for storing on-chain properties
|
|
5240
|
+
* @param args.propertyType The type of property value
|
|
5241
|
+
* @param args.propertyValue The property value to be stored on-chain
|
|
5242
|
+
*
|
|
5243
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
5244
|
+
*/
|
|
5245
|
+
updateDigitalAssetTypedPropertyTransaction(args: {
|
|
5246
|
+
creator: Account$1;
|
|
5247
|
+
propertyKey: string;
|
|
5248
|
+
propertyType: PropertyType;
|
|
5249
|
+
propertyValue: PropertyValue;
|
|
5250
|
+
digitalAssetAddress: AccountAddressInput;
|
|
5251
|
+
digitalAssetType?: MoveStructId;
|
|
5252
|
+
options?: InputGenerateTransactionOptions;
|
|
5253
|
+
}): Promise<SimpleTransaction>;
|
|
4997
5254
|
}
|
|
4998
5255
|
|
|
4999
5256
|
/**
|
|
@@ -5139,7 +5396,7 @@ declare function generateRawTransaction(args: {
|
|
|
5139
5396
|
* When we call our `generateTransaction` function with the relevant type properties,
|
|
5140
5397
|
* Typescript can infer the return type based on the appropriate function overload.
|
|
5141
5398
|
*/
|
|
5142
|
-
declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<
|
|
5399
|
+
declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<SimpleTransaction>;
|
|
5143
5400
|
declare function buildTransaction(args: InputGenerateMultiAgentRawTransactionArgs): Promise<MultiAgentTransaction>;
|
|
5144
5401
|
/**
|
|
5145
5402
|
* Simulate a transaction before signing and submit to chain
|
|
@@ -5319,7 +5576,7 @@ declare class FungibleAsset {
|
|
|
5319
5576
|
* @param recipient The recipient account address
|
|
5320
5577
|
* @param amount Number of assets to transfer
|
|
5321
5578
|
*
|
|
5322
|
-
* @returns A
|
|
5579
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain.
|
|
5323
5580
|
*/
|
|
5324
5581
|
transferFungibleAsset(args: {
|
|
5325
5582
|
sender: Account$1;
|
|
@@ -5327,7 +5584,7 @@ declare class FungibleAsset {
|
|
|
5327
5584
|
recipient: AccountAddress;
|
|
5328
5585
|
amount: AnyNumber;
|
|
5329
5586
|
options?: InputGenerateTransactionOptions;
|
|
5330
|
-
}): Promise<
|
|
5587
|
+
}): Promise<SimpleTransaction>;
|
|
5331
5588
|
}
|
|
5332
5589
|
|
|
5333
5590
|
/**
|
|
@@ -5588,14 +5845,14 @@ declare class ANS {
|
|
|
5588
5845
|
* @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
|
|
5589
5846
|
* @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
|
|
5590
5847
|
*
|
|
5591
|
-
* @returns
|
|
5848
|
+
* @returns SimpleTransaction
|
|
5592
5849
|
*/
|
|
5593
5850
|
setTargetAddress(args: {
|
|
5594
5851
|
sender: Account$1;
|
|
5595
5852
|
name: string;
|
|
5596
5853
|
address: AccountAddressInput;
|
|
5597
5854
|
options?: InputGenerateTransactionOptions;
|
|
5598
|
-
}): Promise<
|
|
5855
|
+
}): Promise<SimpleTransaction>;
|
|
5599
5856
|
/**
|
|
5600
5857
|
* Retrieve the primary name for an account. An account can have
|
|
5601
5858
|
* multiple names that target it, but only a single name that is primary. An
|
|
@@ -5627,13 +5884,13 @@ declare class ANS {
|
|
|
5627
5884
|
* @param args.sender - The sender account
|
|
5628
5885
|
* @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
|
|
5629
5886
|
*
|
|
5630
|
-
* @returns
|
|
5887
|
+
* @returns SimpleTransaction
|
|
5631
5888
|
*/
|
|
5632
5889
|
setPrimaryName(args: {
|
|
5633
5890
|
sender: Account$1;
|
|
5634
5891
|
name?: string;
|
|
5635
5892
|
options?: InputGenerateTransactionOptions;
|
|
5636
|
-
}): Promise<
|
|
5893
|
+
}): Promise<SimpleTransaction>;
|
|
5637
5894
|
/**
|
|
5638
5895
|
* Registers a new name
|
|
5639
5896
|
*
|
|
@@ -5667,9 +5924,9 @@ declare class ANS {
|
|
|
5667
5924
|
* @param args.toAddress optional - The address to send the domain name to. If not provided,
|
|
5668
5925
|
* the transaction will be sent to the router.
|
|
5669
5926
|
*
|
|
5670
|
-
* @returns
|
|
5927
|
+
* @returns SimpleTransaction
|
|
5671
5928
|
*/
|
|
5672
|
-
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<
|
|
5929
|
+
registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SimpleTransaction>;
|
|
5673
5930
|
/**
|
|
5674
5931
|
* Renews a domain name
|
|
5675
5932
|
*
|
|
@@ -5685,14 +5942,14 @@ declare class ANS {
|
|
|
5685
5942
|
* Subdomains cannot be renewed.
|
|
5686
5943
|
* @param args.years - The number of years to renew the name. Currently only one year is permitted.
|
|
5687
5944
|
*
|
|
5688
|
-
* @returns
|
|
5945
|
+
* @returns SimpleTransaction
|
|
5689
5946
|
*/
|
|
5690
5947
|
renewDomain(args: {
|
|
5691
5948
|
sender: Account$1;
|
|
5692
5949
|
name: string;
|
|
5693
5950
|
years?: 1;
|
|
5694
5951
|
options?: InputGenerateTransactionOptions;
|
|
5695
|
-
}): Promise<
|
|
5952
|
+
}): Promise<SimpleTransaction>;
|
|
5696
5953
|
/**
|
|
5697
5954
|
* Fetches a single name from the indexer
|
|
5698
5955
|
* @param args.name - A string of the name to retrieve, e.g. "test.aptos.apt"
|
|
@@ -5800,8 +6057,133 @@ declare class Staking {
|
|
|
5800
6057
|
}): Promise<GetDelegatedStakingActivitiesResponse>;
|
|
5801
6058
|
}
|
|
5802
6059
|
|
|
6060
|
+
/**
|
|
6061
|
+
* A class to handle all `Build` transaction operations
|
|
6062
|
+
*/
|
|
6063
|
+
declare class Build {
|
|
6064
|
+
readonly config: AptosConfig;
|
|
6065
|
+
constructor(config: AptosConfig);
|
|
6066
|
+
/**
|
|
6067
|
+
* Build a simple transaction
|
|
6068
|
+
*
|
|
6069
|
+
* @param args.sender The sender account address
|
|
6070
|
+
* @param args.data The transaction data
|
|
6071
|
+
* @param args.options optional. Optional transaction configurations
|
|
6072
|
+
* @param args.withFeePayer optional. Whether there is a fee payer for the transaction
|
|
6073
|
+
*
|
|
6074
|
+
* @returns SimpleTransaction
|
|
6075
|
+
*/
|
|
6076
|
+
simple(args: {
|
|
6077
|
+
sender: AccountAddressInput;
|
|
6078
|
+
data: InputGenerateTransactionPayloadData;
|
|
6079
|
+
options?: InputGenerateTransactionOptions;
|
|
6080
|
+
withFeePayer?: boolean;
|
|
6081
|
+
}): Promise<SimpleTransaction>;
|
|
6082
|
+
/**
|
|
6083
|
+
* Build a multi agent transaction
|
|
6084
|
+
*
|
|
6085
|
+
* @param args.sender The sender account address
|
|
6086
|
+
* @param args.data The transaction data
|
|
6087
|
+
* @param args.secondarySignerAddresses An array of the secondary signers account addresses
|
|
6088
|
+
* @param args.options optional. Optional transaction configurations
|
|
6089
|
+
* @param args.withFeePayer optional. Whether there is a fee payer for the transaction
|
|
6090
|
+
*
|
|
6091
|
+
* @returns MultiAgentTransaction
|
|
6092
|
+
*/
|
|
6093
|
+
multiAgent(args: {
|
|
6094
|
+
sender: AccountAddressInput;
|
|
6095
|
+
data: InputGenerateTransactionPayloadData;
|
|
6096
|
+
secondarySignerAddresses: AccountAddressInput[];
|
|
6097
|
+
options?: InputGenerateTransactionOptions;
|
|
6098
|
+
withFeePayer?: boolean;
|
|
6099
|
+
}): Promise<MultiAgentTransaction>;
|
|
6100
|
+
}
|
|
6101
|
+
|
|
6102
|
+
/**
|
|
6103
|
+
* A class to handle all `Simulate` transaction operations
|
|
6104
|
+
*/
|
|
6105
|
+
declare class Simulate {
|
|
6106
|
+
readonly config: AptosConfig;
|
|
6107
|
+
constructor(config: AptosConfig);
|
|
6108
|
+
/**
|
|
6109
|
+
* Simulate a simple transaction
|
|
6110
|
+
*
|
|
6111
|
+
* @param args.signerPublicKey The signer public key
|
|
6112
|
+
* @param args.transaction An instance of a raw transaction
|
|
6113
|
+
* @param args.options optional. Optional transaction configurations
|
|
6114
|
+
* @param args.feePayerPublicKey optional. The fee payer public key if it is a fee payer transaction
|
|
6115
|
+
*
|
|
6116
|
+
* @returns Array<UserTransactionResponse>
|
|
6117
|
+
*/
|
|
6118
|
+
simple(args: {
|
|
6119
|
+
signerPublicKey: PublicKey;
|
|
6120
|
+
transaction: AnyRawTransaction;
|
|
6121
|
+
feePayerPublicKey?: PublicKey;
|
|
6122
|
+
options?: InputSimulateTransactionOptions;
|
|
6123
|
+
}): Promise<Array<UserTransactionResponse>>;
|
|
6124
|
+
/**
|
|
6125
|
+
* Simulate a multi agent transaction
|
|
6126
|
+
*
|
|
6127
|
+
* @param args.signerPublicKey The signer public key
|
|
6128
|
+
* @param args.transaction An instance of a raw transaction
|
|
6129
|
+
* @param args.secondarySignersPublicKeys An array of the secondary signers public keys
|
|
6130
|
+
* @param args.options optional. Optional transaction configurations
|
|
6131
|
+
* @param args.feePayerPublicKey optional. The fee payer public key if it is a fee payer transaction
|
|
6132
|
+
*
|
|
6133
|
+
* @returns Array<UserTransactionResponse>
|
|
6134
|
+
*/
|
|
6135
|
+
multiAgent(args: {
|
|
6136
|
+
signerPublicKey: PublicKey;
|
|
6137
|
+
transaction: AnyRawTransaction;
|
|
6138
|
+
secondarySignersPublicKeys: Array<PublicKey>;
|
|
6139
|
+
feePayerPublicKey?: PublicKey;
|
|
6140
|
+
options?: InputSimulateTransactionOptions;
|
|
6141
|
+
}): Promise<Array<UserTransactionResponse>>;
|
|
6142
|
+
}
|
|
6143
|
+
|
|
6144
|
+
/**
|
|
6145
|
+
* A class to handle all `Submit` transaction operations
|
|
6146
|
+
*/
|
|
6147
|
+
declare class Submit {
|
|
6148
|
+
readonly config: AptosConfig;
|
|
6149
|
+
constructor(config: AptosConfig);
|
|
6150
|
+
/**
|
|
6151
|
+
* Submit a simple transaction
|
|
6152
|
+
*
|
|
6153
|
+
* @param args.transaction An instance of a raw transaction
|
|
6154
|
+
* @param args.senderAuthenticator optional. The sender account authenticator
|
|
6155
|
+
* @param args.feePayerAuthenticator optional. The fee payer account authenticator if it is a fee payer transaction
|
|
6156
|
+
*
|
|
6157
|
+
* @returns PendingTransactionResponse
|
|
6158
|
+
*/
|
|
6159
|
+
simple(args: {
|
|
6160
|
+
transaction: AnyRawTransaction;
|
|
6161
|
+
senderAuthenticator: AccountAuthenticator;
|
|
6162
|
+
feePayerAuthenticator?: AccountAuthenticator;
|
|
6163
|
+
}): Promise<PendingTransactionResponse>;
|
|
6164
|
+
/**
|
|
6165
|
+
* Submit a multi agent transaction
|
|
6166
|
+
*
|
|
6167
|
+
* @param args.transaction An instance of a raw transaction
|
|
6168
|
+
* @param args.senderAuthenticator optional. The sender account authenticator
|
|
6169
|
+
* @param args.additionalSignersAuthenticators An array of the secondary signers account authenticators
|
|
6170
|
+
* @param args.feePayerAuthenticator optional. The fee payer account authenticator if it is a fee payer transaction
|
|
6171
|
+
*
|
|
6172
|
+
* @returns PendingTransactionResponse
|
|
6173
|
+
*/
|
|
6174
|
+
multiAgent(args: {
|
|
6175
|
+
transaction: AnyRawTransaction;
|
|
6176
|
+
senderAuthenticator: AccountAuthenticator;
|
|
6177
|
+
additionalSignersAuthenticators: Array<AccountAuthenticator>;
|
|
6178
|
+
feePayerAuthenticator?: AccountAuthenticator;
|
|
6179
|
+
}): Promise<PendingTransactionResponse>;
|
|
6180
|
+
}
|
|
6181
|
+
|
|
5803
6182
|
declare class Transaction {
|
|
5804
6183
|
readonly config: AptosConfig;
|
|
6184
|
+
readonly build: Build;
|
|
6185
|
+
readonly simulate: Simulate;
|
|
6186
|
+
readonly submit: Submit;
|
|
5805
6187
|
constructor(config: AptosConfig);
|
|
5806
6188
|
/**
|
|
5807
6189
|
* Queries on-chain transactions. This function will not return pending
|
|
@@ -5900,11 +6282,63 @@ declare class Transaction {
|
|
|
5900
6282
|
getSigningMessage(args: {
|
|
5901
6283
|
transaction: AnyRawTransaction;
|
|
5902
6284
|
}): Uint8Array;
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
6285
|
+
/**
|
|
6286
|
+
* Generates a transaction to publish a move package to chain.
|
|
6287
|
+
*
|
|
6288
|
+
* To get the `metadataBytes` and `byteCode`, can compile using Aptos CLI with command
|
|
6289
|
+
* `aptos move compile --save-metadata ...`,
|
|
6290
|
+
* For more info {@link https://aptos.dev/tutorials/your-first-dapp/#step-4-publish-a-move-module}
|
|
6291
|
+
*
|
|
6292
|
+
* @param args.account The publisher account
|
|
6293
|
+
* @param args.metadataBytes The package metadata bytes
|
|
6294
|
+
* @param args.moduleBytecode An array of the bytecode of each module in the package in compiler output order
|
|
6295
|
+
*
|
|
6296
|
+
* @returns A SimpleTransaction that can be simulated or submitted to chain
|
|
6297
|
+
*/
|
|
6298
|
+
publishPackageTransaction(args: {
|
|
6299
|
+
account: AccountAddressInput;
|
|
6300
|
+
metadataBytes: HexInput;
|
|
6301
|
+
moduleBytecode: Array<HexInput>;
|
|
6302
|
+
options?: InputGenerateTransactionOptions;
|
|
6303
|
+
}): Promise<SimpleTransaction>;
|
|
6304
|
+
/**
|
|
6305
|
+
* Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
|
|
6306
|
+
* the account.
|
|
6307
|
+
* Note: Only legacy Ed25519 scheme is supported for now.
|
|
6308
|
+
* More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
|
|
6309
|
+
* @param args.fromAccount The account to rotate the auth key for
|
|
6310
|
+
* @param args.toNewPrivateKey The new private key to rotate to
|
|
6311
|
+
*
|
|
6312
|
+
* @returns PendingTransactionResponse
|
|
6313
|
+
*/
|
|
6314
|
+
rotateAuthKey(args: {
|
|
6315
|
+
fromAccount: Account$1;
|
|
6316
|
+
toNewPrivateKey: PrivateKey;
|
|
6317
|
+
}): Promise<TransactionResponse>;
|
|
6318
|
+
/**
|
|
6319
|
+
* Sign a transaction that can later be submitted to chain
|
|
6320
|
+
*
|
|
6321
|
+
* @param args.signer The signer account
|
|
6322
|
+
* @param args.transaction A raw transaction to sign on
|
|
6323
|
+
*
|
|
6324
|
+
* @returns AccountAuthenticator
|
|
6325
|
+
*/
|
|
6326
|
+
sign(args: {
|
|
6327
|
+
signer: Account$1;
|
|
6328
|
+
transaction: AnyRawTransaction;
|
|
6329
|
+
}): AccountAuthenticator;
|
|
6330
|
+
/**
|
|
6331
|
+
* Sign a transaction as a fee payer that can later be submitted to chain
|
|
6332
|
+
*
|
|
6333
|
+
* @param args.signer The fee payer signer account
|
|
6334
|
+
* @param args.transaction A raw transaction to sign on
|
|
6335
|
+
*
|
|
6336
|
+
* @returns AccountAuthenticator
|
|
6337
|
+
*/
|
|
6338
|
+
signAsFeePayer(args: {
|
|
6339
|
+
signer: Account$1;
|
|
6340
|
+
transaction: AnyRawTransaction;
|
|
6341
|
+
}): AccountAuthenticator;
|
|
5908
6342
|
/**
|
|
5909
6343
|
* Batch transactions for a single account.
|
|
5910
6344
|
*
|
|
@@ -5945,116 +6379,6 @@ declare class TransactionSubmission {
|
|
|
5945
6379
|
signer: Account$1;
|
|
5946
6380
|
transaction: AnyRawTransaction;
|
|
5947
6381
|
}): Promise<PendingTransactionResponse>;
|
|
5948
|
-
/**
|
|
5949
|
-
* Generates a transaction to publish a move package to chain.
|
|
5950
|
-
*
|
|
5951
|
-
* To get the `metadataBytes` and `byteCode`, can compile using Aptos CLI with command
|
|
5952
|
-
* `aptos move compile --save-metadata ...`,
|
|
5953
|
-
* For more info {@link https://aptos.dev/tutorials/your-first-dapp/#step-4-publish-a-move-module}
|
|
5954
|
-
*
|
|
5955
|
-
* @param args.account The publisher account
|
|
5956
|
-
* @param args.metadataBytes The package metadata bytes
|
|
5957
|
-
* @param args.moduleBytecode An array of the bytecode of each module in the package in compiler output order
|
|
5958
|
-
*
|
|
5959
|
-
* @returns A SingleSignerTransaction that can be simulated or submitted to chain
|
|
5960
|
-
*/
|
|
5961
|
-
publishPackageTransaction(args: {
|
|
5962
|
-
account: AccountAddressInput;
|
|
5963
|
-
metadataBytes: HexInput;
|
|
5964
|
-
moduleBytecode: Array<HexInput>;
|
|
5965
|
-
options?: InputGenerateTransactionOptions;
|
|
5966
|
-
}): Promise<SingleSignerTransaction>;
|
|
5967
|
-
/**
|
|
5968
|
-
* Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
|
|
5969
|
-
* the account.
|
|
5970
|
-
* Note: Only legacy Ed25519 scheme is supported for now.
|
|
5971
|
-
* More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
|
|
5972
|
-
* @param args.fromAccount The account to rotate the auth key for
|
|
5973
|
-
* @param args.toNewPrivateKey The new private key to rotate to
|
|
5974
|
-
*
|
|
5975
|
-
* @returns PendingTransactionResponse
|
|
5976
|
-
*/
|
|
5977
|
-
rotateAuthKey(args: {
|
|
5978
|
-
fromAccount: Account$1;
|
|
5979
|
-
toNewPrivateKey: PrivateKey;
|
|
5980
|
-
}): Promise<TransactionResponse>;
|
|
5981
|
-
}
|
|
5982
|
-
|
|
5983
|
-
/**
|
|
5984
|
-
* A class to handle all `Build` transaction operations
|
|
5985
|
-
*/
|
|
5986
|
-
declare class Build {
|
|
5987
|
-
readonly config: AptosConfig;
|
|
5988
|
-
constructor(config: AptosConfig);
|
|
5989
|
-
transaction(args: {
|
|
5990
|
-
sender: AccountAddressInput;
|
|
5991
|
-
data: InputGenerateTransactionPayloadData;
|
|
5992
|
-
options?: InputGenerateTransactionOptions;
|
|
5993
|
-
withFeePayer?: boolean;
|
|
5994
|
-
}): Promise<SingleSignerTransaction>;
|
|
5995
|
-
multiAgentTransaction(args: {
|
|
5996
|
-
sender: AccountAddressInput;
|
|
5997
|
-
data: InputGenerateTransactionPayloadData;
|
|
5998
|
-
secondarySignerAddresses: AccountAddressInput[];
|
|
5999
|
-
options?: InputGenerateTransactionOptions;
|
|
6000
|
-
withFeePayer?: boolean;
|
|
6001
|
-
}): Promise<MultiAgentTransaction>;
|
|
6002
|
-
}
|
|
6003
|
-
|
|
6004
|
-
/**
|
|
6005
|
-
* A class to handle all `Sign` transaction operations
|
|
6006
|
-
*/
|
|
6007
|
-
declare class Sign {
|
|
6008
|
-
readonly config: AptosConfig;
|
|
6009
|
-
constructor(config: AptosConfig);
|
|
6010
|
-
transaction(args: {
|
|
6011
|
-
signer: Account$1;
|
|
6012
|
-
transaction: AnyRawTransaction;
|
|
6013
|
-
}): AccountAuthenticator;
|
|
6014
|
-
transactionAsFeePayer(args: {
|
|
6015
|
-
signer: Account$1;
|
|
6016
|
-
transaction: AnyRawTransaction;
|
|
6017
|
-
}): AccountAuthenticator;
|
|
6018
|
-
}
|
|
6019
|
-
|
|
6020
|
-
/**
|
|
6021
|
-
* A class to handle all `Simulate` transaction operations
|
|
6022
|
-
*/
|
|
6023
|
-
declare class Simulate {
|
|
6024
|
-
readonly config: AptosConfig;
|
|
6025
|
-
constructor(config: AptosConfig);
|
|
6026
|
-
transaction(args: {
|
|
6027
|
-
signerPublicKey: PublicKey;
|
|
6028
|
-
transaction: AnyRawTransaction;
|
|
6029
|
-
feePayerPublicKey?: PublicKey;
|
|
6030
|
-
options?: InputSimulateTransactionOptions;
|
|
6031
|
-
}): Promise<Array<UserTransactionResponse>>;
|
|
6032
|
-
multiAgentTransaction(args: {
|
|
6033
|
-
signerPublicKey: PublicKey;
|
|
6034
|
-
transaction: AnyRawTransaction;
|
|
6035
|
-
secondarySignersPublicKeys: Array<PublicKey>;
|
|
6036
|
-
feePayerPublicKey?: PublicKey;
|
|
6037
|
-
options?: InputSimulateTransactionOptions;
|
|
6038
|
-
}): Promise<Array<UserTransactionResponse>>;
|
|
6039
|
-
}
|
|
6040
|
-
|
|
6041
|
-
/**
|
|
6042
|
-
* A class to handle all `Submit` transaction operations
|
|
6043
|
-
*/
|
|
6044
|
-
declare class Submit {
|
|
6045
|
-
readonly config: AptosConfig;
|
|
6046
|
-
constructor(config: AptosConfig);
|
|
6047
|
-
transaction(args: {
|
|
6048
|
-
transaction: AnyRawTransaction;
|
|
6049
|
-
senderAuthenticator: AccountAuthenticator;
|
|
6050
|
-
feePayerAuthenticator?: AccountAuthenticator;
|
|
6051
|
-
}): Promise<PendingTransactionResponse>;
|
|
6052
|
-
multiAgentTransaction(args: {
|
|
6053
|
-
transaction: AnyRawTransaction;
|
|
6054
|
-
senderAuthenticator: AccountAuthenticator;
|
|
6055
|
-
additionalSignersAuthenticators: Array<AccountAuthenticator>;
|
|
6056
|
-
feePayerAuthenticator?: AccountAuthenticator;
|
|
6057
|
-
}): Promise<PendingTransactionResponse>;
|
|
6058
6382
|
}
|
|
6059
6383
|
|
|
6060
6384
|
/**
|
|
@@ -6076,14 +6400,9 @@ declare class Aptos {
|
|
|
6076
6400
|
readonly general: General;
|
|
6077
6401
|
readonly staking: Staking;
|
|
6078
6402
|
readonly transaction: Transaction;
|
|
6079
|
-
readonly transactionSubmission: TransactionSubmission;
|
|
6080
|
-
readonly build: Build;
|
|
6081
|
-
readonly sign: Sign;
|
|
6082
|
-
readonly simulate: Simulate;
|
|
6083
|
-
readonly submit: Submit;
|
|
6084
6403
|
constructor(settings?: AptosConfig);
|
|
6085
6404
|
}
|
|
6086
|
-
interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction
|
|
6405
|
+
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction {
|
|
6087
6406
|
}
|
|
6088
6407
|
|
|
6089
6408
|
/**
|
|
@@ -6443,7 +6762,7 @@ declare class TransactionWorker {
|
|
|
6443
6762
|
* @param sequenceNumber a sequence number the transaction will be generated with
|
|
6444
6763
|
* @returns
|
|
6445
6764
|
*/
|
|
6446
|
-
generateNextTransaction(account: Account$1, sequenceNumber: bigint): Promise<
|
|
6765
|
+
generateNextTransaction(account: Account$1, sequenceNumber: bigint): Promise<SimpleTransaction | undefined>;
|
|
6447
6766
|
/**
|
|
6448
6767
|
* Starts transaction submission and transaction processing.
|
|
6449
6768
|
*/
|
|
@@ -6458,4 +6777,4 @@ declare class TransactionWorker {
|
|
|
6458
6777
|
stop(): void;
|
|
6459
6778
|
}
|
|
6460
6779
|
|
|
6461
|
-
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountSequenceNumber, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputViewRequestData, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByArg, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes,
|
|
6780
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountSequenceNumber, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputViewRequestData, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByArg, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, SimpleTransaction, StateCheckpointTransactionResponse, StructTag, TableItemRequest, TokenStandard, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TransactionWorker, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, WaitForTransactionOptions, WhereArg, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
|