@aptos-labs/ts-sdk 0.0.7 → 1.0.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 +26 -10
- package/dist/browser/index.d.ts +818 -446
- package/dist/browser/index.global.js +30 -30
- package/dist/browser/index.global.js.map +1 -1
- package/dist/common/index.d.ts +818 -446
- package/dist/common/index.js +29 -29
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/account.d.mts +72 -47
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +19 -17
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +1 -0
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +2 -2
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +4 -3
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +42 -19
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.d.mts +12 -14
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +4 -4
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +71 -30
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +12 -5
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.d.mts +13 -9
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +36 -2
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +1 -0
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/transactionSubmission.d.mts +23 -1
- package/dist/esm/api/transactionSubmission.mjs +1 -1
- package/dist/esm/api/utils.d.mts +21 -0
- package/dist/esm/api/utils.mjs +2 -0
- package/dist/esm/bcs/deserializer.d.mts +4 -4
- package/dist/esm/bcs/deserializer.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.d.mts +4 -4
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/chunk-26GRNGPL.mjs +2 -0
- package/dist/esm/chunk-26GRNGPL.mjs.map +1 -0
- package/dist/esm/{chunk-72F5YXGC.mjs → chunk-2AMFCGJ3.mjs} +2 -2
- package/dist/esm/chunk-2AMFCGJ3.mjs.map +1 -0
- package/dist/esm/{chunk-ZUHN56GM.mjs → chunk-2X3FRUKX.mjs} +2 -2
- package/dist/esm/chunk-2X3FRUKX.mjs.map +1 -0
- package/dist/esm/chunk-32A35CPU.mjs +2 -0
- package/dist/esm/chunk-32A35CPU.mjs.map +1 -0
- package/dist/esm/{chunk-JZNLZMUC.mjs → chunk-3QS3MFWJ.mjs} +2 -2
- package/dist/esm/{chunk-ARVSIDVB.mjs → chunk-3RMXGSHK.mjs} +2 -2
- package/dist/esm/chunk-3RMXGSHK.mjs.map +1 -0
- package/dist/esm/chunk-4FDIPWVB.mjs +2 -0
- package/dist/esm/chunk-4FDIPWVB.mjs.map +1 -0
- package/dist/esm/{chunk-U25N2VWA.mjs → chunk-4K252UDE.mjs} +2 -2
- package/dist/esm/{chunk-3VZ3OZKC.mjs → chunk-4XQ5IV6C.mjs} +2 -2
- package/dist/esm/chunk-5HZKDT5C.mjs +2 -0
- package/dist/esm/chunk-5HZKDT5C.mjs.map +1 -0
- package/dist/esm/chunk-5IVRKK5V.mjs +2 -0
- package/dist/esm/chunk-5IVRKK5V.mjs.map +1 -0
- package/dist/esm/chunk-5SRMD5C6.mjs +2 -0
- package/dist/esm/chunk-5SRMD5C6.mjs.map +1 -0
- package/dist/esm/chunk-5X46HDCI.mjs +2 -0
- package/dist/esm/chunk-5X46HDCI.mjs.map +1 -0
- package/dist/esm/{chunk-HVADSXTB.mjs → chunk-6DYNAFAP.mjs} +2 -2
- package/dist/esm/chunk-6F4ACCCZ.mjs +2 -0
- package/dist/esm/chunk-6F4ACCCZ.mjs.map +1 -0
- package/dist/esm/{chunk-4ADA5BE7.mjs → chunk-7B3VSBCX.mjs} +2 -2
- package/dist/esm/chunk-7IY2Y73Q.mjs +2 -0
- package/dist/esm/chunk-7IY2Y73Q.mjs.map +1 -0
- package/dist/esm/chunk-7QJYTQSU.mjs +2 -0
- package/dist/esm/chunk-7QJYTQSU.mjs.map +1 -0
- package/dist/esm/chunk-ALFESCPU.mjs +2 -0
- package/dist/esm/chunk-ALFESCPU.mjs.map +1 -0
- package/dist/esm/chunk-BA4TDBYB.mjs +2 -0
- package/dist/esm/chunk-BA4TDBYB.mjs.map +1 -0
- package/dist/esm/chunk-BDTDWLGO.mjs +2 -0
- package/dist/esm/chunk-BDTDWLGO.mjs.map +1 -0
- package/dist/esm/{chunk-UDBH4CER.mjs → chunk-BQSE5HHW.mjs} +7 -7
- package/dist/esm/chunk-BQSE5HHW.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-CBAVJ5EN.mjs +2 -0
- package/dist/esm/chunk-CBAVJ5EN.mjs.map +1 -0
- package/dist/esm/chunk-DBJTMCAG.mjs +2 -0
- package/dist/esm/chunk-DBJTMCAG.mjs.map +1 -0
- package/dist/esm/chunk-DYJVDOBH.mjs +2 -0
- package/dist/esm/chunk-DYJVDOBH.mjs.map +1 -0
- package/dist/esm/chunk-EHJEK7FU.mjs +2 -0
- package/dist/esm/chunk-ELWWME6B.mjs +2 -0
- package/dist/esm/chunk-ELWWME6B.mjs.map +1 -0
- package/dist/esm/chunk-EOC4UI5B.mjs +2 -0
- package/dist/esm/{chunk-KC64ESLO.mjs.map → chunk-EOC4UI5B.mjs.map} +1 -1
- package/dist/esm/{chunk-BPYLPPEQ.mjs → chunk-F2GFSFPW.mjs} +2 -2
- package/dist/esm/{chunk-U6SZNNVL.mjs → chunk-F52GIFKT.mjs} +2 -2
- package/dist/esm/{chunk-U6SZNNVL.mjs.map → chunk-F52GIFKT.mjs.map} +1 -1
- package/dist/esm/{chunk-KQXRH5FK.mjs → chunk-FGTQT7Q5.mjs} +2 -2
- package/dist/esm/chunk-GMOHGD73.mjs +2 -0
- package/dist/esm/chunk-GMOHGD73.mjs.map +1 -0
- package/dist/esm/{chunk-HO7K2UAK.mjs → chunk-GQI3HWOB.mjs} +2 -2
- package/dist/esm/{chunk-UAAI3NCA.mjs → chunk-HQ4DGB7L.mjs} +2 -2
- package/dist/esm/chunk-IHYTP2EW.mjs +1 -0
- package/dist/esm/chunk-IHYTP2EW.mjs.map +1 -0
- package/dist/esm/{chunk-HA6JD5R6.mjs → chunk-IU5JZNH4.mjs} +2 -2
- package/dist/esm/{chunk-HA6JD5R6.mjs.map → chunk-IU5JZNH4.mjs.map} +1 -1
- package/dist/esm/{chunk-TPWSHFFI.mjs → chunk-KR5JAN32.mjs} +2 -2
- package/dist/esm/{chunk-QWVR4RCV.mjs → chunk-KVJ2KGMW.mjs} +2 -2
- package/dist/esm/chunk-LBNMY7EM.mjs +2 -0
- package/dist/esm/chunk-LBNMY7EM.mjs.map +1 -0
- package/dist/esm/chunk-MNFGMNYS.mjs +2 -0
- package/dist/esm/chunk-MNFGMNYS.mjs.map +1 -0
- package/dist/esm/{chunk-IBH7IOIM.mjs → chunk-N25GOEVL.mjs} +2 -2
- package/dist/esm/chunk-NBSXZKMQ.mjs +2 -0
- package/dist/esm/chunk-NBSXZKMQ.mjs.map +1 -0
- package/dist/esm/chunk-NFGAZSSK.mjs +2 -0
- package/dist/esm/{chunk-ND3ZQKTT.mjs.map → chunk-NFGAZSSK.mjs.map} +1 -1
- package/dist/esm/chunk-NL72WE3E.mjs +2 -0
- package/dist/esm/{chunk-TIH6ARYP.mjs.map → chunk-NL72WE3E.mjs.map} +1 -1
- package/dist/esm/{chunk-EWTHPMEE.mjs → chunk-NLONZHYT.mjs} +2 -2
- package/dist/esm/{chunk-44MGBJ73.mjs → chunk-NMFS5KAE.mjs} +2 -2
- package/dist/esm/{chunk-4KTQIWUP.mjs → chunk-NZ36UN4C.mjs} +2 -2
- package/dist/esm/{chunk-YYRDFZE6.mjs → chunk-OWP2MKTX.mjs} +2 -2
- package/dist/esm/{chunk-YYRDFZE6.mjs.map → chunk-OWP2MKTX.mjs.map} +1 -1
- package/dist/esm/{chunk-WL4OXZLN.mjs → chunk-OXO3Z2MF.mjs} +2 -2
- package/dist/esm/{chunk-S36IYY6K.mjs → chunk-PANYJULW.mjs} +2 -2
- package/dist/esm/{chunk-DRPMIJH7.mjs → chunk-PEBXSNMJ.mjs} +2 -2
- package/dist/esm/chunk-PLY7MQKE.mjs +2 -0
- package/dist/esm/chunk-PLY7MQKE.mjs.map +1 -0
- package/dist/esm/chunk-PRKZ2KJ4.mjs +2 -0
- package/dist/esm/{chunk-R3KWVOFG.mjs.map → chunk-PRKZ2KJ4.mjs.map} +1 -1
- package/dist/esm/{chunk-GAI75GOG.mjs → chunk-PZ5JKQSP.mjs} +2 -2
- package/dist/esm/chunk-Q3R3KKKP.mjs +2 -0
- package/dist/esm/chunk-Q3R3KKKP.mjs.map +1 -0
- package/dist/esm/chunk-RCYWJZR4.mjs +2 -0
- package/dist/esm/chunk-RCYWJZR4.mjs.map +1 -0
- package/dist/esm/chunk-TNUGIBLO.mjs +2 -0
- package/dist/esm/chunk-TNUGIBLO.mjs.map +1 -0
- package/dist/esm/{chunk-3732I6BR.mjs → chunk-TTICPGX6.mjs} +2 -2
- package/dist/esm/chunk-U6Z4FNB7.mjs +2 -0
- package/dist/esm/chunk-U6Z4FNB7.mjs.map +1 -0
- package/dist/esm/{chunk-GTC7WHMV.mjs → chunk-UDMADMVO.mjs} +1 -1
- package/dist/esm/{chunk-GTC7WHMV.mjs.map → chunk-UDMADMVO.mjs.map} +1 -1
- package/dist/esm/chunk-UES76WF2.mjs +2 -0
- package/dist/esm/chunk-UES76WF2.mjs.map +1 -0
- package/dist/esm/chunk-UIVJXLRM.mjs +1 -0
- package/dist/esm/chunk-UIVJXLRM.mjs.map +1 -0
- package/dist/esm/chunk-UR5E2UDO.mjs +2 -0
- package/dist/esm/chunk-UR5E2UDO.mjs.map +1 -0
- package/dist/esm/{chunk-X32O46IB.mjs → chunk-VMCFN5CT.mjs} +2 -2
- package/dist/esm/{chunk-5LO7FR2P.mjs → chunk-W44E6YAW.mjs} +2 -2
- package/dist/esm/chunk-W4JEP5GW.mjs +2 -0
- package/dist/esm/{chunk-FYIFBLHU.mjs.map → chunk-W4JEP5GW.mjs.map} +1 -1
- package/dist/esm/chunk-WXISFVRU.mjs +2 -0
- package/dist/esm/chunk-WXISFVRU.mjs.map +1 -0
- package/dist/esm/chunk-X7QBDRQR.mjs +2 -0
- package/dist/esm/chunk-X7QBDRQR.mjs.map +1 -0
- package/dist/esm/chunk-XKINEFAA.mjs +2 -0
- package/dist/esm/chunk-XKINEFAA.mjs.map +1 -0
- package/dist/esm/chunk-Y5RQOXZH.mjs +2 -0
- package/dist/esm/chunk-Y5RQOXZH.mjs.map +1 -0
- package/dist/esm/chunk-ZKFDLJ2F.mjs +2 -0
- package/dist/esm/chunk-ZKFDLJ2F.mjs.map +1 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +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.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +9 -9
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/anyPublicKey.d.mts +5 -0
- 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.d.mts +3 -0
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +2 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +2 -0
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +3 -0
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +2 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +11 -8
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +20 -33
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +7 -10
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +4 -3
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +19 -20
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.d.mts +5 -12
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +5 -5
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +39 -14
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +9 -5
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +5 -7
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +12 -4
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +24 -5
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +5 -0
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +1 -0
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +1 -0
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +4 -3
- 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.d.mts +1 -0
- 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.d.mts +1 -0
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +89 -0
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +2 -0
- package/dist/esm/transactions/management/accountSequenceNumber.mjs.map +1 -0
- package/dist/esm/transactions/management/asyncQueue.d.mts +58 -0
- package/dist/esm/transactions/management/asyncQueue.mjs +2 -0
- package/dist/esm/transactions/management/asyncQueue.mjs.map +1 -0
- package/dist/esm/transactions/management/index.d.mts +36 -0
- package/dist/esm/transactions/management/index.mjs +2 -0
- package/dist/esm/transactions/management/index.mjs.map +1 -0
- package/dist/esm/transactions/management/transactionWorker.d.mts +135 -0
- package/dist/esm/transactions/management/transactionWorker.mjs +2 -0
- package/dist/esm/transactions/management/transactionWorker.mjs.map +1 -0
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +4 -3
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +3 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +3 -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 -2
- package/dist/esm/types/generated/operations.d.mts +3 -3
- package/dist/esm/types/generated/queries.d.mts +3 -3
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/index.d.mts +27 -9
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/utils/const.d.mts +18 -1
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/index.d.mts +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +150 -53
- package/src/api/ans.ts +19 -22
- package/src/api/aptosConfig.ts +2 -2
- package/src/api/coin.ts +2 -6
- package/src/api/digitalAsset.ts +98 -23
- package/src/api/event.ts +28 -17
- package/src/api/faucet.ts +12 -9
- package/src/api/fungibleAsset.ts +76 -35
- package/src/api/general.ts +19 -3
- package/src/api/staking.ts +30 -11
- package/src/api/transaction.ts +16 -1
- package/src/api/transactionSubmission.ts +43 -1
- package/src/api/utils.ts +37 -0
- package/src/bcs/deserializer.ts +4 -4
- package/src/bcs/serializer.ts +4 -4
- package/src/client/core.ts +6 -4
- package/src/client/get.ts +7 -6
- package/src/core/accountAddress.ts +20 -22
- package/src/core/crypto/anyPublicKey.ts +12 -0
- package/src/core/crypto/ed25519.ts +13 -0
- package/src/core/crypto/index.ts +2 -0
- package/src/core/crypto/secp256k1.ts +12 -0
- package/src/core/hex.ts +5 -7
- package/src/index.ts +1 -0
- package/src/internal/account.ts +56 -50
- package/src/internal/ans.ts +52 -39
- package/src/internal/coin.ts +4 -6
- package/src/internal/digitalAsset.ts +36 -22
- package/src/internal/event.ts +7 -14
- package/src/internal/faucet.ts +10 -6
- package/src/internal/fungibleAsset.ts +36 -18
- package/src/internal/general.ts +30 -3
- package/src/internal/queries/getNumberOfDelegatorsQuery.graphql +5 -5
- package/src/internal/queries/getProcessorStatus.graphql +2 -2
- package/src/internal/staking.ts +12 -14
- package/src/internal/transaction.ts +23 -26
- package/src/internal/transactionSubmission.ts +35 -5
- package/src/transactions/authenticator/account.ts +16 -0
- package/src/transactions/instances/moduleId.ts +1 -1
- package/src/transactions/management/accountSequenceNumber.ts +186 -0
- package/src/transactions/management/asyncQueue.ts +107 -0
- package/src/transactions/management/index.ts +2 -0
- package/src/transactions/management/transactionWorker.ts +275 -0
- package/src/transactions/transactionBuilder/helpers.ts +28 -1
- package/src/transactions/transactionBuilder/remoteAbi.ts +47 -32
- package/src/transactions/transactionBuilder/transactionBuilder.ts +28 -26
- package/src/transactions/typeTag/index.ts +1 -0
- package/src/transactions/typeTag/parser.ts +1 -1
- package/src/transactions/types.ts +2 -2
- package/src/types/generated/operations.ts +4 -2
- package/src/types/generated/queries.ts +4 -4
- package/src/types/index.ts +67 -11
- package/src/utils/const.ts +18 -0
- package/src/version.ts +1 -1
- package/dist/esm/chunk-2OZRBXLM.mjs +0 -2
- package/dist/esm/chunk-2OZRBXLM.mjs.map +0 -1
- package/dist/esm/chunk-33T7WTB6.mjs +0 -2
- package/dist/esm/chunk-33T7WTB6.mjs.map +0 -1
- package/dist/esm/chunk-62SCW5NH.mjs +0 -2
- package/dist/esm/chunk-62SCW5NH.mjs.map +0 -1
- package/dist/esm/chunk-67OGU66P.mjs +0 -2
- package/dist/esm/chunk-67OGU66P.mjs.map +0 -1
- package/dist/esm/chunk-72F5YXGC.mjs.map +0 -1
- package/dist/esm/chunk-ARVSIDVB.mjs.map +0 -1
- package/dist/esm/chunk-BFQRMCY2.mjs +0 -2
- package/dist/esm/chunk-BFQRMCY2.mjs.map +0 -1
- package/dist/esm/chunk-BM4HBROC.mjs +0 -2
- package/dist/esm/chunk-BM4HBROC.mjs.map +0 -1
- package/dist/esm/chunk-BV4OOU5Y.mjs +0 -2
- package/dist/esm/chunk-BV4OOU5Y.mjs.map +0 -1
- package/dist/esm/chunk-EFIYW4WK.mjs +0 -2
- package/dist/esm/chunk-FYIFBLHU.mjs +0 -2
- package/dist/esm/chunk-GU4OUKAF.mjs +0 -2
- package/dist/esm/chunk-GU4OUKAF.mjs.map +0 -1
- package/dist/esm/chunk-J5BH7V37.mjs +0 -2
- package/dist/esm/chunk-J5BH7V37.mjs.map +0 -1
- package/dist/esm/chunk-KC64ESLO.mjs +0 -2
- package/dist/esm/chunk-L7AA75WZ.mjs +0 -2
- package/dist/esm/chunk-L7AA75WZ.mjs.map +0 -1
- package/dist/esm/chunk-LACQ537H.mjs +0 -2
- package/dist/esm/chunk-LACQ537H.mjs.map +0 -1
- package/dist/esm/chunk-LDAD54H5.mjs +0 -2
- package/dist/esm/chunk-LDAD54H5.mjs.map +0 -1
- package/dist/esm/chunk-LXW3A3MJ.mjs +0 -2
- package/dist/esm/chunk-LXW3A3MJ.mjs.map +0 -1
- package/dist/esm/chunk-M2V2POWK.mjs +0 -2
- package/dist/esm/chunk-M2V2POWK.mjs.map +0 -1
- package/dist/esm/chunk-ND3ZQKTT.mjs +0 -2
- package/dist/esm/chunk-NZIJV4O2.mjs +0 -2
- package/dist/esm/chunk-NZIJV4O2.mjs.map +0 -1
- package/dist/esm/chunk-O2B54NZT.mjs +0 -2
- package/dist/esm/chunk-O2B54NZT.mjs.map +0 -1
- package/dist/esm/chunk-OCW2L33Q.mjs +0 -2
- package/dist/esm/chunk-OCW2L33Q.mjs.map +0 -1
- package/dist/esm/chunk-OCYS4V2V.mjs +0 -2
- package/dist/esm/chunk-OCYS4V2V.mjs.map +0 -1
- package/dist/esm/chunk-OSTH5JRX.mjs +0 -2
- package/dist/esm/chunk-OSTH5JRX.mjs.map +0 -1
- package/dist/esm/chunk-OVHY6ZUJ.mjs +0 -2
- package/dist/esm/chunk-OVHY6ZUJ.mjs.map +0 -1
- package/dist/esm/chunk-PZCMSHY6.mjs +0 -2
- package/dist/esm/chunk-PZCMSHY6.mjs.map +0 -1
- package/dist/esm/chunk-R3KWVOFG.mjs +0 -2
- package/dist/esm/chunk-RHS5ROLP.mjs +0 -2
- package/dist/esm/chunk-RHS5ROLP.mjs.map +0 -1
- package/dist/esm/chunk-RKKU2SY5.mjs +0 -2
- package/dist/esm/chunk-RKKU2SY5.mjs.map +0 -1
- package/dist/esm/chunk-RYETO74W.mjs +0 -2
- package/dist/esm/chunk-RYETO74W.mjs.map +0 -1
- package/dist/esm/chunk-TCTZCPQ6.mjs +0 -1
- package/dist/esm/chunk-TGKB6ALT.mjs +0 -2
- package/dist/esm/chunk-TGKB6ALT.mjs.map +0 -1
- package/dist/esm/chunk-TIH6ARYP.mjs +0 -2
- package/dist/esm/chunk-UDBH4CER.mjs.map +0 -1
- package/dist/esm/chunk-VWVEDCBM.mjs +0 -2
- package/dist/esm/chunk-VWVEDCBM.mjs.map +0 -1
- package/dist/esm/chunk-WEJAI26R.mjs +0 -2
- package/dist/esm/chunk-WEJAI26R.mjs.map +0 -1
- package/dist/esm/chunk-Y2HRRUZ6.mjs +0 -2
- package/dist/esm/chunk-Y2HRRUZ6.mjs.map +0 -1
- package/dist/esm/chunk-Y7VR7X5W.mjs +0 -2
- package/dist/esm/chunk-Y7VR7X5W.mjs.map +0 -1
- package/dist/esm/chunk-ZLW65YCO.mjs +0 -2
- package/dist/esm/chunk-ZLW65YCO.mjs.map +0 -1
- package/dist/esm/chunk-ZUHN56GM.mjs.map +0 -1
- /package/dist/esm/{chunk-TCTZCPQ6.mjs.map → api/utils.mjs.map} +0 -0
- /package/dist/esm/{chunk-JZNLZMUC.mjs.map → chunk-3QS3MFWJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-U25N2VWA.mjs.map → chunk-4K252UDE.mjs.map} +0 -0
- /package/dist/esm/{chunk-3VZ3OZKC.mjs.map → chunk-4XQ5IV6C.mjs.map} +0 -0
- /package/dist/esm/{chunk-HVADSXTB.mjs.map → chunk-6DYNAFAP.mjs.map} +0 -0
- /package/dist/esm/{chunk-4ADA5BE7.mjs.map → chunk-7B3VSBCX.mjs.map} +0 -0
- /package/dist/esm/{chunk-EFIYW4WK.mjs.map → chunk-EHJEK7FU.mjs.map} +0 -0
- /package/dist/esm/{chunk-BPYLPPEQ.mjs.map → chunk-F2GFSFPW.mjs.map} +0 -0
- /package/dist/esm/{chunk-KQXRH5FK.mjs.map → chunk-FGTQT7Q5.mjs.map} +0 -0
- /package/dist/esm/{chunk-HO7K2UAK.mjs.map → chunk-GQI3HWOB.mjs.map} +0 -0
- /package/dist/esm/{chunk-UAAI3NCA.mjs.map → chunk-HQ4DGB7L.mjs.map} +0 -0
- /package/dist/esm/{chunk-TPWSHFFI.mjs.map → chunk-KR5JAN32.mjs.map} +0 -0
- /package/dist/esm/{chunk-QWVR4RCV.mjs.map → chunk-KVJ2KGMW.mjs.map} +0 -0
- /package/dist/esm/{chunk-IBH7IOIM.mjs.map → chunk-N25GOEVL.mjs.map} +0 -0
- /package/dist/esm/{chunk-EWTHPMEE.mjs.map → chunk-NLONZHYT.mjs.map} +0 -0
- /package/dist/esm/{chunk-44MGBJ73.mjs.map → chunk-NMFS5KAE.mjs.map} +0 -0
- /package/dist/esm/{chunk-4KTQIWUP.mjs.map → chunk-NZ36UN4C.mjs.map} +0 -0
- /package/dist/esm/{chunk-WL4OXZLN.mjs.map → chunk-OXO3Z2MF.mjs.map} +0 -0
- /package/dist/esm/{chunk-S36IYY6K.mjs.map → chunk-PANYJULW.mjs.map} +0 -0
- /package/dist/esm/{chunk-DRPMIJH7.mjs.map → chunk-PEBXSNMJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-GAI75GOG.mjs.map → chunk-PZ5JKQSP.mjs.map} +0 -0
- /package/dist/esm/{chunk-3732I6BR.mjs.map → chunk-TTICPGX6.mjs.map} +0 -0
- /package/dist/esm/{chunk-X32O46IB.mjs.map → chunk-VMCFN5CT.mjs.map} +0 -0
- /package/dist/esm/{chunk-5LO7FR2P.mjs.map → chunk-W44E6YAW.mjs.map} +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { PaginationArgs } from '../types/index.mjs';
|
|
2
|
-
import { AptosConfig } from './aptosConfig.mjs';
|
|
1
|
+
import { AnyNumber, TokenStandardArg, PaginationArgs, OrderByArg, MoveStructId } from '../types/index.mjs';
|
|
3
2
|
import { Account } from '../core/account.mjs';
|
|
4
|
-
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
3
|
+
import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs';
|
|
5
4
|
import { InputGenerateTransactionOptions, SingleSignerTransaction } from '../transactions/types.mjs';
|
|
6
5
|
import { CreateCollectionOptions } from '../internal/digitalAsset.mjs';
|
|
7
|
-
import {
|
|
6
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
7
|
+
import { GetCollectionDataResponse, GetTokenDataResponse, GetCurrentTokenOwnershipResponse, GetOwnedTokensResponse, GetTokenActivityResponse } from '../types/indexer.mjs';
|
|
8
8
|
import '../utils/apiEndpoints.mjs';
|
|
9
|
-
import '../utils/const.mjs';
|
|
10
9
|
import '../core/authenticationKey.mjs';
|
|
11
10
|
import '../core/crypto/asymmetricCrypto.mjs';
|
|
12
11
|
import '../bcs/serializer.mjs';
|
|
@@ -27,8 +26,10 @@ import '../transactions/authenticator/account.mjs';
|
|
|
27
26
|
import '../core/crypto/anyPublicKey.mjs';
|
|
28
27
|
import '../core/crypto/anySignature.mjs';
|
|
29
28
|
import '../core/crypto/ed25519.mjs';
|
|
29
|
+
import '../core/crypto/secp256k1.mjs';
|
|
30
30
|
import '../core/crypto/multiEd25519.mjs';
|
|
31
31
|
import '../core/crypto/multiKey.mjs';
|
|
32
|
+
import '../utils/const.mjs';
|
|
32
33
|
import '../types/generated/operations.mjs';
|
|
33
34
|
import '../types/generated/types.mjs';
|
|
34
35
|
|
|
@@ -78,15 +79,15 @@ declare class DigitalAsset {
|
|
|
78
79
|
*
|
|
79
80
|
* @param args.creatorAddress the address of the collection's creator
|
|
80
81
|
* @param args.collectionName the name of the collection
|
|
82
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
81
83
|
* @param args.options.tokenStandard the token standard to query
|
|
82
84
|
* @returns GetCollectionDataResponse response type
|
|
83
85
|
*/
|
|
84
86
|
getCollectionData(args: {
|
|
85
87
|
creatorAddress: AccountAddressInput;
|
|
86
88
|
collectionName: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
};
|
|
89
|
+
minimumLedgerVersion?: AnyNumber;
|
|
90
|
+
options?: TokenStandardArg;
|
|
90
91
|
}): Promise<GetCollectionDataResponse>;
|
|
91
92
|
/**
|
|
92
93
|
* Queries a collection's ID.
|
|
@@ -96,15 +97,15 @@ declare class DigitalAsset {
|
|
|
96
97
|
*
|
|
97
98
|
* @param args.creatorAddress the address of the collection's creator
|
|
98
99
|
* @param args.collectionName the name of the collection
|
|
100
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
99
101
|
* @param args.options.tokenStandard the token standard to query
|
|
100
102
|
* @returns the collection id
|
|
101
103
|
*/
|
|
102
104
|
getCollectionId(args: {
|
|
103
105
|
creatorAddress: AccountAddressInput;
|
|
104
106
|
collectionName: string;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
};
|
|
107
|
+
minimumLedgerVersion?: AnyNumber;
|
|
108
|
+
options?: TokenStandardArg;
|
|
108
109
|
}): Promise<string>;
|
|
109
110
|
/**
|
|
110
111
|
* Create a transaction to mint a token into the creators account within an existing collection.
|
|
@@ -129,46 +130,68 @@ declare class DigitalAsset {
|
|
|
129
130
|
* Gets token data given the address of a token.
|
|
130
131
|
*
|
|
131
132
|
* @param args.tokenAddress The address of the token
|
|
133
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
132
134
|
* @returns GetTokenDataResponse containing relevant data to the token.
|
|
133
135
|
*/
|
|
134
136
|
getTokenData(args: {
|
|
135
137
|
tokenAddress: AccountAddressInput;
|
|
138
|
+
minimumLedgerVersion?: AnyNumber;
|
|
136
139
|
}): Promise<GetTokenDataResponse>;
|
|
137
140
|
/**
|
|
138
141
|
* Gets token ownership data given the address of a token.
|
|
139
142
|
*
|
|
140
143
|
* @param args.tokenAddress The address of the token
|
|
144
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
141
145
|
* @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the token.
|
|
142
146
|
*/
|
|
143
147
|
getCurrentTokenOwnership(args: {
|
|
144
148
|
tokenAddress: AccountAddressInput;
|
|
149
|
+
minimumLedgerVersion?: AnyNumber;
|
|
145
150
|
}): Promise<GetCurrentTokenOwnershipResponse>;
|
|
146
151
|
/**
|
|
147
152
|
* Gets the tokens that the given address owns.
|
|
148
153
|
*
|
|
149
154
|
* @param args.ownerAddress The address of the owner
|
|
155
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
150
156
|
* @returns GetOwnedTokensResponse containing ownership data of the tokens belonging to the ownerAddresss.
|
|
151
157
|
*/
|
|
152
158
|
getOwnedTokens(args: {
|
|
153
159
|
ownerAddress: AccountAddressInput;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
orderBy?: OrderBy<GetOwnedTokensResponse[0]>;
|
|
157
|
-
};
|
|
160
|
+
minimumLedgerVersion?: AnyNumber;
|
|
161
|
+
options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
|
|
158
162
|
}): Promise<GetOwnedTokensResponse>;
|
|
159
163
|
/**
|
|
160
164
|
* Gets the activity data given the address of a token.
|
|
161
165
|
*
|
|
162
166
|
* @param args.tokenAddress The address of the token
|
|
167
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
163
168
|
* @returns GetTokenActivityResponse containing relevant activity data to the token.
|
|
164
169
|
*/
|
|
165
170
|
getTokenActivity(args: {
|
|
166
171
|
tokenAddress: AccountAddressInput;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
orderBy?: OrderBy<GetTokenActivityResponse[0]>;
|
|
170
|
-
};
|
|
172
|
+
minimumLedgerVersion?: AnyNumber;
|
|
173
|
+
options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
|
|
171
174
|
}): Promise<GetTokenActivityResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* Transfer a digital asset (non fungible token) ownership.
|
|
177
|
+
*
|
|
178
|
+
* We can transfer a digital asset only when the digital asset is not frozen
|
|
179
|
+
* (i.e. owner transfer is not disabled such as for soul bound tokens)
|
|
180
|
+
*
|
|
181
|
+
* @param args.sender The sender account of the current digital asset owner
|
|
182
|
+
* @param args.digitalAssetAddress The digital asset address
|
|
183
|
+
* @param args.recipient The recipient account address
|
|
184
|
+
* @param args.digitalAssetType optional. The digital asset type, default to "0x4::token::Token"
|
|
185
|
+
*
|
|
186
|
+
* @returns A SingleSignerTransaction that can be simulated or submitted to chain
|
|
187
|
+
*/
|
|
188
|
+
transferDigitalAsset(args: {
|
|
189
|
+
sender: Account;
|
|
190
|
+
digitalAssetAddress: AccountAddressInput;
|
|
191
|
+
recipient: AccountAddress;
|
|
192
|
+
digitalAssetType?: MoveStructId;
|
|
193
|
+
options?: InputGenerateTransactionOptions;
|
|
194
|
+
}): Promise<SingleSignerTransaction>;
|
|
172
195
|
}
|
|
173
196
|
|
|
174
197
|
export { DigitalAsset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-TNUGIBLO.mjs";import"../chunk-26GRNGPL.mjs";import"../chunk-LBNMY7EM.mjs";import"../chunk-7IY2Y73Q.mjs";import"../chunk-MNFGMNYS.mjs";import"../chunk-4FDIPWVB.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-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-Y5RQOXZH.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.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-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.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-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as DigitalAsset};
|
|
2
2
|
//# sourceMappingURL=digitalAsset.mjs.map
|
package/dist/esm/api/event.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AnyNumber, MoveStructId, PaginationArgs } from '../types/index.mjs';
|
|
1
|
+
import { AnyNumber, MoveStructId, PaginationArgs, OrderByArg, WhereArg } from '../types/index.mjs';
|
|
3
2
|
import { EventsBoolExp } from '../types/generated/types.mjs';
|
|
4
3
|
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
5
|
-
import {
|
|
4
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
5
|
+
import { GetEventsResponse } from '../types/indexer.mjs';
|
|
6
6
|
import '../utils/apiEndpoints.mjs';
|
|
7
|
-
import '../utils/const.mjs';
|
|
8
7
|
import '../bcs/serializer.mjs';
|
|
9
8
|
import '../core/hex.mjs';
|
|
10
9
|
import '../core/common.mjs';
|
|
11
10
|
import '../bcs/deserializer.mjs';
|
|
12
11
|
import '../transactions/instances/transactionArgument.mjs';
|
|
12
|
+
import '../utils/const.mjs';
|
|
13
13
|
import '../types/generated/operations.mjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -23,34 +23,35 @@ declare class Event {
|
|
|
23
23
|
*
|
|
24
24
|
* @param args.accountAddress - The account address
|
|
25
25
|
* @param args.creationNumber - The event creation number
|
|
26
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
26
27
|
*
|
|
27
28
|
* @returns Promise<GetEventsResponse>
|
|
28
29
|
*/
|
|
29
30
|
getAccountEventsByCreationNumber(args: {
|
|
30
31
|
accountAddress: AccountAddressInput;
|
|
31
32
|
creationNumber: AnyNumber;
|
|
33
|
+
minimumLedgerVersion?: AnyNumber;
|
|
32
34
|
}): Promise<GetEventsResponse>;
|
|
33
35
|
/**
|
|
34
36
|
* Get events by event type and an account address
|
|
35
37
|
*
|
|
36
38
|
* @param args.accountAddress - The account address
|
|
37
39
|
* @param args.eventType - The event type
|
|
40
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
38
41
|
*
|
|
39
42
|
* @returns Promise<GetEventsResponse>
|
|
40
43
|
*/
|
|
41
44
|
getAccountEventsByEventType(args: {
|
|
42
45
|
accountAddress: AccountAddressInput;
|
|
43
46
|
eventType: MoveStructId;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
orderBy?: OrderBy<GetEventsResponse[0]>;
|
|
47
|
-
};
|
|
47
|
+
minimumLedgerVersion?: AnyNumber;
|
|
48
|
+
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
|
|
48
49
|
}): Promise<GetEventsResponse>;
|
|
49
50
|
/**
|
|
50
51
|
* Get all events
|
|
51
52
|
*
|
|
52
53
|
* An optional `where` can be passed in to filter out the response.
|
|
53
|
-
|
|
54
|
+
*@param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
54
55
|
* @example
|
|
55
56
|
* ```
|
|
56
57
|
* { where:
|
|
@@ -63,11 +64,8 @@ declare class Event {
|
|
|
63
64
|
* @returns GetEventsQuery response type
|
|
64
65
|
*/
|
|
65
66
|
getEvents(args?: {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
pagination?: PaginationArgs;
|
|
69
|
-
orderBy?: OrderBy<GetEventsResponse[0]>;
|
|
70
|
-
};
|
|
67
|
+
minimumLedgerVersion?: AnyNumber;
|
|
68
|
+
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]> & WhereArg<EventsBoolExp>;
|
|
71
69
|
}): Promise<GetEventsResponse>;
|
|
72
70
|
}
|
|
73
71
|
|
package/dist/esm/api/event.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GMOHGD73.mjs";import"../chunk-CBAVJ5EN.mjs";import"../chunk-LBNMY7EM.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.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-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.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-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Event};
|
|
2
2
|
//# sourceMappingURL=event.mjs.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { WaitForTransactionOptions } from '../types/index.mjs';
|
|
1
|
+
import { WaitForTransactionOptions, UserTransactionResponse } from '../types/index.mjs';
|
|
3
2
|
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
3
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
4
4
|
import '../utils/apiEndpoints.mjs';
|
|
5
|
-
import '../utils/const.mjs';
|
|
6
5
|
import '../types/indexer.mjs';
|
|
7
6
|
import '../types/generated/operations.mjs';
|
|
8
7
|
import '../types/generated/types.mjs';
|
|
@@ -11,6 +10,7 @@ import '../core/hex.mjs';
|
|
|
11
10
|
import '../core/common.mjs';
|
|
12
11
|
import '../bcs/deserializer.mjs';
|
|
13
12
|
import '../transactions/instances/transactionArgument.mjs';
|
|
13
|
+
import '../utils/const.mjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A class to query all `Faucet` related queries on Aptos.
|
|
@@ -31,7 +31,7 @@ declare class Faucet {
|
|
|
31
31
|
accountAddress: AccountAddressInput;
|
|
32
32
|
amount: number;
|
|
33
33
|
options?: WaitForTransactionOptions;
|
|
34
|
-
}): Promise<
|
|
34
|
+
}): Promise<UserTransactionResponse>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export { Faucet };
|
package/dist/esm/api/faucet.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-5SRMD5C6.mjs";import"../chunk-DBJTMCAG.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.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-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.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-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Faucet};
|
|
2
2
|
//# sourceMappingURL=faucet.mjs.map
|
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
import { PaginationArgs } from '../types/index.mjs';
|
|
2
|
-
import { AptosConfig } from './aptosConfig.mjs';
|
|
1
|
+
import { AnyNumber, PaginationArgs, WhereArg } from '../types/index.mjs';
|
|
3
2
|
import { FungibleAssetMetadataBoolExp, FungibleAssetActivitiesBoolExp, CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.mjs';
|
|
3
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
4
|
+
import { Account } from '../core/account.mjs';
|
|
5
|
+
import { AccountAddress } from '../core/accountAddress.mjs';
|
|
6
|
+
import { InputGenerateTransactionOptions, SingleSignerTransaction } from '../transactions/types.mjs';
|
|
4
7
|
import { GetFungibleAssetMetadataResponse, GetFungibleAssetActivitiesResponse, GetCurrentFungibleAssetBalancesResponse } from '../types/indexer.mjs';
|
|
5
8
|
import '../utils/apiEndpoints.mjs';
|
|
6
9
|
import '../utils/const.mjs';
|
|
10
|
+
import '../core/authenticationKey.mjs';
|
|
11
|
+
import '../core/crypto/asymmetricCrypto.mjs';
|
|
12
|
+
import '../bcs/serializer.mjs';
|
|
13
|
+
import '../core/hex.mjs';
|
|
14
|
+
import '../core/common.mjs';
|
|
15
|
+
import '../bcs/deserializer.mjs';
|
|
16
|
+
import '../transactions/instances/transactionArgument.mjs';
|
|
17
|
+
import '../bcs/serializable/moveStructs.mjs';
|
|
18
|
+
import '../bcs/serializable/movePrimitives.mjs';
|
|
19
|
+
import '../bcs/serializable/fixedBytes.mjs';
|
|
20
|
+
import '../transactions/instances/rawTransaction.mjs';
|
|
21
|
+
import '../transactions/instances/chainId.mjs';
|
|
22
|
+
import '../transactions/instances/transactionPayload.mjs';
|
|
23
|
+
import '../transactions/instances/identifier.mjs';
|
|
24
|
+
import '../transactions/instances/moduleId.mjs';
|
|
25
|
+
import '../transactions/typeTag/index.mjs';
|
|
26
|
+
import '../transactions/authenticator/account.mjs';
|
|
27
|
+
import '../core/crypto/anyPublicKey.mjs';
|
|
28
|
+
import '../core/crypto/anySignature.mjs';
|
|
29
|
+
import '../core/crypto/ed25519.mjs';
|
|
30
|
+
import '../core/crypto/secp256k1.mjs';
|
|
31
|
+
import '../core/crypto/multiEd25519.mjs';
|
|
32
|
+
import '../core/crypto/multiKey.mjs';
|
|
7
33
|
import '../types/generated/operations.mjs';
|
|
8
34
|
|
|
9
35
|
/**
|
|
@@ -13,60 +39,75 @@ declare class FungibleAsset {
|
|
|
13
39
|
readonly config: AptosConfig;
|
|
14
40
|
constructor(config: AptosConfig);
|
|
15
41
|
/**
|
|
16
|
-
* Queries
|
|
42
|
+
* Queries all fungible asset metadata.
|
|
17
43
|
*
|
|
18
|
-
*
|
|
19
|
-
* It can be filtered by creator address and asset type.
|
|
44
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
20
45
|
*
|
|
21
|
-
* @returns
|
|
46
|
+
* @returns A list of fungible asset metadata
|
|
22
47
|
*/
|
|
23
48
|
getFungibleAssetMetadata(args?: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
where?: FungibleAssetMetadataBoolExp;
|
|
27
|
-
};
|
|
49
|
+
minimumLedgerVersion?: AnyNumber;
|
|
50
|
+
options?: PaginationArgs & WhereArg<FungibleAssetMetadataBoolExp>;
|
|
28
51
|
}): Promise<GetFungibleAssetMetadataResponse>;
|
|
29
52
|
/**
|
|
30
|
-
* Queries
|
|
53
|
+
* Queries a fungible asset metadata
|
|
31
54
|
*
|
|
32
55
|
* This query returns the fungible asset metadata for a specific fungible asset.
|
|
33
56
|
*
|
|
34
|
-
* @param
|
|
57
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
58
|
+
* @param args.assetType The asset type of the fungible asset.
|
|
35
59
|
* e.g
|
|
36
60
|
* "0x1::aptos_coin::AptosCoin" for Aptos Coin
|
|
37
61
|
* "0xc2948283c2ce03aafbb294821de7ee684b06116bb378ab614fa2de07a99355a8" - address format if this is fungible asset
|
|
38
62
|
*
|
|
39
|
-
* @returns
|
|
63
|
+
* @returns A fungible asset metadata item
|
|
40
64
|
*/
|
|
41
|
-
getFungibleAssetMetadataByAssetType(
|
|
65
|
+
getFungibleAssetMetadataByAssetType(args: {
|
|
66
|
+
assetType: string;
|
|
67
|
+
minimumLedgerVersion?: AnyNumber;
|
|
68
|
+
}): Promise<GetFungibleAssetMetadataResponse[0]>;
|
|
42
69
|
/**
|
|
43
|
-
* Queries
|
|
70
|
+
* Queries all fungible asset activities
|
|
44
71
|
*
|
|
45
|
-
*
|
|
46
|
-
* It can be filtered by owner address, asset type, and type.
|
|
72
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
47
73
|
*
|
|
48
|
-
* @returns
|
|
74
|
+
* @returns A list of fungible asset metadata
|
|
49
75
|
*/
|
|
50
76
|
getFungibleAssetActivities(args?: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
where?: FungibleAssetActivitiesBoolExp;
|
|
54
|
-
};
|
|
77
|
+
minimumLedgerVersion?: AnyNumber;
|
|
78
|
+
options?: PaginationArgs & WhereArg<FungibleAssetActivitiesBoolExp>;
|
|
55
79
|
}): Promise<GetFungibleAssetActivitiesResponse>;
|
|
56
80
|
/**
|
|
57
|
-
* Queries
|
|
81
|
+
* Queries all fungible asset balances
|
|
58
82
|
*
|
|
59
|
-
*
|
|
60
|
-
* It can be filtered by owner address, and asset type
|
|
83
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
61
84
|
*
|
|
62
|
-
* @returns
|
|
85
|
+
* @returns A list of fungible asset metadata
|
|
63
86
|
*/
|
|
64
87
|
getCurrentFungibleAssetBalances(args?: {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
where?: CurrentFungibleAssetBalancesBoolExp;
|
|
68
|
-
};
|
|
88
|
+
minimumLedgerVersion?: AnyNumber;
|
|
89
|
+
options?: PaginationArgs & WhereArg<CurrentFungibleAssetBalancesBoolExp>;
|
|
69
90
|
}): Promise<GetCurrentFungibleAssetBalancesResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Transfer `amount` of fungible asset from sender's primary store to recipient's primary store.
|
|
93
|
+
*
|
|
94
|
+
* Use this method to transfer any fungible asset including fungible token.
|
|
95
|
+
*
|
|
96
|
+
* @param sender The sender account
|
|
97
|
+
* @param fungibleAssetMetadataAddress The fungible asset account address.
|
|
98
|
+
* For example if you’re transferring USDT this would be the USDT address
|
|
99
|
+
* @param recipient The recipient account address
|
|
100
|
+
* @param amount Number of assets to transfer
|
|
101
|
+
*
|
|
102
|
+
* @returns A SingleSignerTransaction that can be simulated or submitted to chain.
|
|
103
|
+
*/
|
|
104
|
+
transferFungibleAsset(args: {
|
|
105
|
+
sender: Account;
|
|
106
|
+
fungibleAssetMetadataAddress: AccountAddress;
|
|
107
|
+
recipient: AccountAddress;
|
|
108
|
+
amount: AnyNumber;
|
|
109
|
+
options?: InputGenerateTransactionOptions;
|
|
110
|
+
}): Promise<SingleSignerTransaction>;
|
|
70
111
|
}
|
|
71
112
|
|
|
72
113
|
export { FungibleAsset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-PLY7MQKE.mjs";import"../chunk-XKINEFAA.mjs";import"../chunk-LBNMY7EM.mjs";import"../chunk-7IY2Y73Q.mjs";import"../chunk-MNFGMNYS.mjs";import"../chunk-4FDIPWVB.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-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-Y5RQOXZH.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.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-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.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-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as FungibleAsset};
|
|
2
2
|
//# sourceMappingURL=fungibleAsset.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AptosConfig } from './aptosConfig.mjs';
|
|
2
|
-
import { LedgerInfo, AnyNumber, Block, TableItemRequest,
|
|
3
|
-
import {
|
|
2
|
+
import { LedgerInfo, AnyNumber, Block, TableItemRequest, LedgerVersionArg, MoveValue, InputViewRequestData } from '../types/index.mjs';
|
|
3
|
+
import { ProcessorType } from '../utils/const.mjs';
|
|
4
|
+
import { GetChainTopUserTransactionsResponse, GraphqlQuery, GetProcessorStatusResponse } from '../types/indexer.mjs';
|
|
4
5
|
import '../utils/apiEndpoints.mjs';
|
|
5
|
-
import '../utils/const.mjs';
|
|
6
6
|
import '../types/generated/operations.mjs';
|
|
7
7
|
import '../types/generated/types.mjs';
|
|
8
8
|
|
|
@@ -86,7 +86,7 @@ declare class General {
|
|
|
86
86
|
getTableItem<T>(args: {
|
|
87
87
|
handle: string;
|
|
88
88
|
data: TableItemRequest;
|
|
89
|
-
options?:
|
|
89
|
+
options?: LedgerVersionArg;
|
|
90
90
|
}): Promise<T>;
|
|
91
91
|
/**
|
|
92
92
|
* Queries for a Move view function
|
|
@@ -105,7 +105,7 @@ declare class General {
|
|
|
105
105
|
*/
|
|
106
106
|
view<T extends Array<MoveValue>>(args: {
|
|
107
107
|
payload: InputViewRequestData;
|
|
108
|
-
options?:
|
|
108
|
+
options?: LedgerVersionArg;
|
|
109
109
|
}): Promise<T>;
|
|
110
110
|
/**
|
|
111
111
|
* Queries top user transactions
|
|
@@ -145,6 +145,13 @@ declare class General {
|
|
|
145
145
|
* This is useful to tell what ledger version the indexer is updated to, as it can be behind the full nodes.
|
|
146
146
|
*/
|
|
147
147
|
getIndexerLastSuccessVersion(): Promise<number>;
|
|
148
|
+
/**
|
|
149
|
+
* Query the processor status for a specific processor type.
|
|
150
|
+
*
|
|
151
|
+
* @param processorType The processor type to query
|
|
152
|
+
* @returns
|
|
153
|
+
*/
|
|
154
|
+
getProcessorStatus(processorType: ProcessorType): Promise<GetProcessorStatusResponse[0]>;
|
|
148
155
|
}
|
|
149
156
|
|
|
150
157
|
export { General };
|
package/dist/esm/api/general.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-32A35CPU.mjs";import"../chunk-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as General};
|
|
2
2
|
//# sourceMappingURL=general.mjs.map
|
package/dist/esm/api/index.d.mts
CHANGED
|
@@ -31,6 +31,7 @@ import '../transactions/authenticator/account.mjs';
|
|
|
31
31
|
import '../core/crypto/anyPublicKey.mjs';
|
|
32
32
|
import '../core/crypto/anySignature.mjs';
|
|
33
33
|
import '../core/crypto/ed25519.mjs';
|
|
34
|
+
import '../core/crypto/secp256k1.mjs';
|
|
34
35
|
import '../core/crypto/multiEd25519.mjs';
|
|
35
36
|
import '../core/crypto/multiKey.mjs';
|
|
36
37
|
import './digitalAsset.mjs';
|
package/dist/esm/api/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-RMMOF53Q.mjs";import{a as b}from"../chunk-
|
|
1
|
+
import"../chunk-RMMOF53Q.mjs";import{a as b}from"../chunk-TTICPGX6.mjs";import"../chunk-W44E6YAW.mjs";import"../chunk-4XQ5IV6C.mjs";import"../chunk-PEBXSNMJ.mjs";import"../chunk-NZ36UN4C.mjs";import"../chunk-NBSXZKMQ.mjs";import"../chunk-IHYTP2EW.mjs";import"../chunk-DYJVDOBH.mjs";import"../chunk-BDTDWLGO.mjs";import"../chunk-U6Z4FNB7.mjs";import"../chunk-TNUGIBLO.mjs";import"../chunk-26GRNGPL.mjs";import"../chunk-GMOHGD73.mjs";import"../chunk-CBAVJ5EN.mjs";import"../chunk-5SRMD5C6.mjs";import"../chunk-DBJTMCAG.mjs";import"../chunk-PLY7MQKE.mjs";import"../chunk-XKINEFAA.mjs";import"../chunk-32A35CPU.mjs";import"../chunk-BA4TDBYB.mjs";import"../chunk-ZKFDLJ2F.mjs";import"../chunk-WXISFVRU.mjs";import"../chunk-Q3R3KKKP.mjs";import"../chunk-LBNMY7EM.mjs";import"../chunk-2X3FRUKX.mjs";import"../chunk-UES76WF2.mjs";import{a}from"../chunk-3RMXGSHK.mjs";import"../chunk-2AMFCGJ3.mjs";import"../chunk-ELWWME6B.mjs";import"../chunk-7IY2Y73Q.mjs";import"../chunk-MNFGMNYS.mjs";import"../chunk-4FDIPWVB.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-PANYJULW.mjs";import"../chunk-C3Y52GHM.mjs";import"../chunk-FGTQT7Q5.mjs";import"../chunk-PRKZ2KJ4.mjs";import"../chunk-NLONZHYT.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-GQI3HWOB.mjs";import"../chunk-6F4ACCCZ.mjs";import"../chunk-Y5RQOXZH.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.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-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.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-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{b as Aptos,a as AptosConfig};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OrderBy, GetNumberOfDelegatorsResponse, GetDelegatedStakingActivitiesResponse } from '../types/indexer.mjs';
|
|
1
|
+
import { AnyNumber, OrderByArg } from '../types/index.mjs';
|
|
3
2
|
import { AccountAddressInput } from '../core/accountAddress.mjs';
|
|
4
|
-
import '
|
|
3
|
+
import { AptosConfig } from './aptosConfig.mjs';
|
|
4
|
+
import { GetNumberOfDelegatorsResponse, GetDelegatedStakingActivitiesResponse } from '../types/indexer.mjs';
|
|
5
5
|
import '../utils/apiEndpoints.mjs';
|
|
6
|
-
import '../utils/const.mjs';
|
|
7
|
-
import '../types/generated/operations.mjs';
|
|
8
|
-
import '../types/generated/types.mjs';
|
|
9
6
|
import '../bcs/serializer.mjs';
|
|
10
7
|
import '../core/hex.mjs';
|
|
11
8
|
import '../core/common.mjs';
|
|
12
9
|
import '../bcs/deserializer.mjs';
|
|
13
10
|
import '../transactions/instances/transactionArgument.mjs';
|
|
11
|
+
import '../utils/const.mjs';
|
|
12
|
+
import '../types/generated/operations.mjs';
|
|
13
|
+
import '../types/generated/types.mjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A class to query all `Staking` related queries on Aptos.
|
|
@@ -22,31 +22,35 @@ declare class Staking {
|
|
|
22
22
|
* Queries current number of delegators in a pool. Throws an error if the pool is not found.
|
|
23
23
|
*
|
|
24
24
|
* @param args.poolAddress Pool address
|
|
25
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
25
26
|
* @returns The number of delegators for the given pool
|
|
26
27
|
*/
|
|
27
28
|
getNumberOfDelegators(args: {
|
|
28
29
|
poolAddress: AccountAddressInput;
|
|
30
|
+
minimumLedgerVersion?: AnyNumber;
|
|
29
31
|
}): Promise<number>;
|
|
30
32
|
/**
|
|
31
33
|
* Queries current number of delegators in a pool. Throws an error if the pool is not found.
|
|
32
34
|
*
|
|
35
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
33
36
|
* @returns GetNumberOfDelegatorsForAllPoolsResponse response type
|
|
34
37
|
*/
|
|
35
38
|
getNumberOfDelegatorsForAllPools(args?: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
+
minimumLedgerVersion?: AnyNumber;
|
|
40
|
+
options?: OrderByArg<GetNumberOfDelegatorsResponse[0]>;
|
|
39
41
|
}): Promise<GetNumberOfDelegatorsResponse>;
|
|
40
42
|
/**
|
|
41
43
|
* Queries delegated staking activities
|
|
42
44
|
*
|
|
43
45
|
* @param args.delegatorAddress Delegator address
|
|
44
46
|
* @param args.poolAddress Pool address
|
|
47
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
45
48
|
* @returns GetDelegatedStakingActivitiesResponse response type
|
|
46
49
|
*/
|
|
47
50
|
getDelegatedStakingActivities(args: {
|
|
48
51
|
delegatorAddress: AccountAddressInput;
|
|
49
52
|
poolAddress: AccountAddressInput;
|
|
53
|
+
minimumLedgerVersion?: AnyNumber;
|
|
50
54
|
}): Promise<GetDelegatedStakingActivitiesResponse>;
|
|
51
55
|
}
|
|
52
56
|
|
package/dist/esm/api/staking.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-BA4TDBYB.mjs";import"../chunk-ZKFDLJ2F.mjs";import"../chunk-LBNMY7EM.mjs";import"../chunk-X7QBDRQR.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-UIVJXLRM.mjs";import"../chunk-KVJ2KGMW.mjs";import"../chunk-PZ5JKQSP.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-5IVRKK5V.mjs";import"../chunk-BQSE5HHW.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-N2FKVZ4D.mjs";import"../chunk-NFGAZSSK.mjs";import"../chunk-KR5JAN32.mjs";import"../chunk-EOC4UI5B.mjs";import"../chunk-LV33NV4J.mjs";import"../chunk-5X46HDCI.mjs";import"../chunk-ALFESCPU.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W4JEP5GW.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-DNDWTM7A.mjs";import"../chunk-ZWH2ESXT.mjs";export{a as Staking};
|
|
2
2
|
//# sourceMappingURL=staking.mjs.map
|