@aptos-labs/ts-sdk 1.19.0 → 1.20.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/dist/common/{accountAddress-Lv-GSihU.d.ts → accountAddress-NYtf3uZq.d.ts} +31 -20
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/index.d.ts +117 -7
- package/dist/common/index.js +62 -51
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.d.mts +3 -3
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +3 -1
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +49 -1
- 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.mjs +1 -1
- package/dist/esm/api/general.d.mts +21 -1
- 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/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +39 -0
- package/dist/esm/api/object.mjs +2 -0
- package/dist/esm/api/object.mjs.map +1 -0
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- 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/{chunk-N5A4L6Z6.mjs → chunk-32BE76A3.mjs} +2 -2
- package/dist/esm/{chunk-3EDNV7KS.mjs → chunk-3CEN6LXR.mjs} +2 -2
- package/dist/esm/{chunk-4ZM7V7HN.mjs → chunk-3DCHEXE3.mjs} +2 -2
- package/dist/esm/{chunk-E2JEBCSY.mjs → chunk-463B3NF7.mjs} +2 -2
- package/dist/esm/{chunk-MUAV4P6C.mjs → chunk-4ARX2MGY.mjs} +2 -2
- package/dist/esm/{chunk-BCY5UOGP.mjs → chunk-4KAXCXAK.mjs} +2 -2
- package/dist/esm/chunk-4KYQ7N3N.mjs +2 -0
- package/dist/esm/{chunk-EAXCOIOP.mjs.map → chunk-4KYQ7N3N.mjs.map} +1 -1
- package/dist/esm/chunk-5MFDTDK2.mjs +2 -0
- package/dist/esm/chunk-5MFDTDK2.mjs.map +1 -0
- package/dist/esm/{chunk-HED6CPN2.mjs → chunk-5ZBDXUER.mjs} +2 -2
- package/dist/esm/{chunk-MH6HIFMG.mjs → chunk-67BD7B6N.mjs} +2 -2
- package/dist/esm/chunk-6QTWWNRH.mjs +2 -0
- package/dist/esm/chunk-6QTWWNRH.mjs.map +1 -0
- package/dist/esm/{chunk-VRSZLJVR.mjs → chunk-7CMCN6LB.mjs} +2 -2
- package/dist/esm/{chunk-LLLINNAG.mjs → chunk-7DDRPSWU.mjs} +2 -2
- package/dist/esm/chunk-7DDRPSWU.mjs.map +1 -0
- package/dist/esm/{chunk-IOMJ5OWV.mjs → chunk-7HS4UJGE.mjs} +2 -2
- package/dist/esm/{chunk-4EPLOSKY.mjs → chunk-7WFKAS7T.mjs} +2 -2
- package/dist/esm/{chunk-YXXEXFQH.mjs → chunk-7X6HZUXX.mjs} +2 -2
- package/dist/esm/{chunk-KUAN2WZF.mjs → chunk-ARMY5A3J.mjs} +2 -2
- package/dist/esm/{chunk-ILXK4OH5.mjs → chunk-BLAIJHMU.mjs} +2 -2
- package/dist/esm/{chunk-RUVDYKIZ.mjs → chunk-CCUUYI4Z.mjs} +2 -2
- package/dist/esm/{chunk-HJT2Q5NL.mjs → chunk-COJZFWV3.mjs} +2 -2
- package/dist/esm/{chunk-A2Z7I2EY.mjs → chunk-F6REP536.mjs} +2 -2
- package/dist/esm/{chunk-CAC7G2HC.mjs → chunk-GQ6Q7KK5.mjs} +2 -2
- package/dist/esm/{chunk-JM7CSDJ3.mjs → chunk-H6CS3BD7.mjs} +2 -2
- package/dist/esm/{chunk-OKLLJQM4.mjs → chunk-H6QWMF3Q.mjs} +2 -2
- package/dist/esm/chunk-HNTKL7NS.mjs +2 -0
- package/dist/esm/chunk-HNTKL7NS.mjs.map +1 -0
- package/dist/esm/{chunk-7JUBWA7V.mjs → chunk-I2T6BJOA.mjs} +2 -2
- package/dist/esm/{chunk-ICE6OL3A.mjs → chunk-J5KAD2RM.mjs} +2 -2
- package/dist/esm/{chunk-3KZ7HFFA.mjs → chunk-J5YHMYHB.mjs} +2 -2
- package/dist/esm/chunk-L36ZHC7J.mjs +2 -0
- package/dist/esm/{chunk-YE5B2S5L.mjs.map → chunk-L36ZHC7J.mjs.map} +1 -1
- package/dist/esm/{chunk-GPZEPKKD.mjs → chunk-L6RINMT6.mjs} +2 -2
- package/dist/esm/{chunk-47M33ENP.mjs → chunk-LBKYNX5K.mjs} +2 -2
- package/dist/esm/{chunk-LWFSV3OA.mjs → chunk-LBU3LV7I.mjs} +2 -2
- package/dist/esm/{chunk-4U3MAEYH.mjs → chunk-M2J7QC7G.mjs} +2 -2
- package/dist/esm/chunk-MIEXKKJP.mjs +2 -0
- package/dist/esm/chunk-MIEXKKJP.mjs.map +1 -0
- package/dist/esm/{chunk-YF6UA3XW.mjs → chunk-MTPARVMT.mjs} +2 -2
- package/dist/esm/{chunk-QTNKFKDE.mjs → chunk-NJYVAMTG.mjs} +2 -2
- package/dist/esm/{chunk-Y37TV7SM.mjs → chunk-NWAGENBX.mjs} +2 -2
- package/dist/esm/{chunk-TFNJPJF6.mjs → chunk-NZFKPV67.mjs} +2 -2
- package/dist/esm/{chunk-XSHUCBNT.mjs → chunk-O7XEE7QT.mjs} +2 -2
- package/dist/esm/{chunk-GXLFQEPR.mjs → chunk-PTK4OJ2U.mjs} +2 -2
- package/dist/esm/chunk-PY23BQ2H.mjs +2 -0
- package/dist/esm/chunk-PY23BQ2H.mjs.map +1 -0
- package/dist/esm/{chunk-ZQUDGZIZ.mjs → chunk-PZAA2YYO.mjs} +2 -2
- package/dist/esm/{chunk-FGFQZQGX.mjs → chunk-Q7ZP25NJ.mjs} +2 -2
- package/dist/esm/{chunk-OLVNRYGT.mjs → chunk-RA56CRJB.mjs} +2 -2
- package/dist/esm/{chunk-FD2VCIZG.mjs → chunk-RM2IVUJ2.mjs} +2 -2
- package/dist/esm/chunk-S6H5Q2IK.mjs +2 -0
- package/dist/esm/chunk-S6H5Q2IK.mjs.map +1 -0
- package/dist/esm/{chunk-V5JJHVMP.mjs → chunk-SQQ2424E.mjs} +2 -2
- package/dist/esm/{chunk-64P5SB7N.mjs → chunk-T4NXIMZL.mjs} +2 -2
- package/dist/esm/{chunk-PS7L2TLP.mjs → chunk-T7YRD4PM.mjs} +2 -2
- package/dist/esm/{chunk-BI5P5ASH.mjs → chunk-TPMVNFS5.mjs} +2 -2
- package/dist/esm/{chunk-VY2MJZWM.mjs → chunk-TZOKV22Z.mjs} +2 -2
- package/dist/esm/{chunk-K6NUFABY.mjs → chunk-UJYWEIQ2.mjs} +2 -2
- package/dist/esm/{chunk-HACVLK5I.mjs → chunk-UYF7AQLE.mjs} +2 -2
- package/dist/esm/{chunk-3JEL6FIZ.mjs → chunk-V2LIP26A.mjs} +2 -2
- package/dist/esm/chunk-V4SPDICR.mjs +2 -0
- package/dist/esm/chunk-V4SPDICR.mjs.map +1 -0
- package/dist/esm/{chunk-WUWJLSGN.mjs → chunk-VQPLSJEI.mjs} +2 -2
- package/dist/esm/{chunk-LAZTLEXF.mjs → chunk-WHQNLKFO.mjs} +2 -2
- package/dist/esm/{chunk-6ZQWPHLV.mjs → chunk-XWVMFCW3.mjs} +2 -2
- package/dist/esm/chunk-XZBGNMFN.mjs +2 -0
- package/dist/esm/chunk-XZBGNMFN.mjs.map +1 -0
- package/dist/esm/{chunk-GMHGYDZQ.mjs → chunk-Y2H7FG2P.mjs} +2 -2
- package/dist/esm/{chunk-HIHKTLLM.mjs → chunk-YMFEA2TJ.mjs} +55 -44
- package/dist/esm/chunk-YMFEA2TJ.mjs.map +1 -0
- 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/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.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/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +3 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +3 -3
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +14 -4
- 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.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +25 -0
- package/dist/esm/internal/object.mjs +2 -0
- package/dist/esm/internal/object.mjs.map +1 -0
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +7 -2
- package/dist/esm/internal/view.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/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.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/simpleTransaction.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.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/signingMessage.mjs +1 -1
- 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 +18 -2
- package/dist/esm/types/generated/operations.d.mts +37 -26
- package/dist/esm/types/generated/queries.d.mts +5 -5
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/types.d.mts +227 -15
- package/dist/esm/types/generated/types.mjs +1 -1
- package/dist/esm/types/generated/types.mjs.map +1 -1
- package/dist/esm/types/index.d.mts +1 -1
- package/dist/esm/types/indexer.d.mts +3 -3
- package/dist/esm/utils/const.d.mts +2 -1
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +3 -3
- package/src/api/aptos.ts +6 -0
- package/src/api/digitalAsset.ts +81 -1
- package/src/api/general.ts +25 -2
- package/src/api/object.ts +43 -0
- package/src/internal/account.ts +7 -9
- package/src/internal/digitalAsset.ts +67 -24
- package/src/internal/object.ts +45 -0
- package/src/internal/queries/getCollectionData.graphql +19 -10
- package/src/internal/queries/{getAccountOwnedObjects.graphql → getObjectData.graphql} +1 -1
- package/src/internal/view.ts +27 -1
- package/src/transactions/types.ts +19 -1
- package/src/types/generated/operations.ts +37 -26
- package/src/types/generated/queries.ts +51 -40
- package/src/types/generated/types.ts +252 -14
- package/src/types/indexer.ts +2 -2
- package/src/utils/const.ts +1 -0
- package/src/version.ts +1 -1
- package/dist/esm/chunk-5Y3O7MLN.mjs +0 -2
- package/dist/esm/chunk-5Y3O7MLN.mjs.map +0 -1
- package/dist/esm/chunk-DCBXXRXS.mjs +0 -2
- package/dist/esm/chunk-DCBXXRXS.mjs.map +0 -1
- package/dist/esm/chunk-EAXCOIOP.mjs +0 -2
- package/dist/esm/chunk-FTA2ZMUX.mjs +0 -2
- package/dist/esm/chunk-FTA2ZMUX.mjs.map +0 -1
- package/dist/esm/chunk-GRZVD45M.mjs +0 -2
- package/dist/esm/chunk-GRZVD45M.mjs.map +0 -1
- package/dist/esm/chunk-HIHKTLLM.mjs.map +0 -1
- package/dist/esm/chunk-LLLINNAG.mjs.map +0 -1
- package/dist/esm/chunk-MKOIEX4B.mjs +0 -2
- package/dist/esm/chunk-MKOIEX4B.mjs.map +0 -1
- package/dist/esm/chunk-NBGXHLM4.mjs +0 -2
- package/dist/esm/chunk-NBGXHLM4.mjs.map +0 -1
- package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
- /package/dist/esm/{chunk-N5A4L6Z6.mjs.map → chunk-32BE76A3.mjs.map} +0 -0
- /package/dist/esm/{chunk-3EDNV7KS.mjs.map → chunk-3CEN6LXR.mjs.map} +0 -0
- /package/dist/esm/{chunk-4ZM7V7HN.mjs.map → chunk-3DCHEXE3.mjs.map} +0 -0
- /package/dist/esm/{chunk-E2JEBCSY.mjs.map → chunk-463B3NF7.mjs.map} +0 -0
- /package/dist/esm/{chunk-MUAV4P6C.mjs.map → chunk-4ARX2MGY.mjs.map} +0 -0
- /package/dist/esm/{chunk-BCY5UOGP.mjs.map → chunk-4KAXCXAK.mjs.map} +0 -0
- /package/dist/esm/{chunk-HED6CPN2.mjs.map → chunk-5ZBDXUER.mjs.map} +0 -0
- /package/dist/esm/{chunk-MH6HIFMG.mjs.map → chunk-67BD7B6N.mjs.map} +0 -0
- /package/dist/esm/{chunk-VRSZLJVR.mjs.map → chunk-7CMCN6LB.mjs.map} +0 -0
- /package/dist/esm/{chunk-IOMJ5OWV.mjs.map → chunk-7HS4UJGE.mjs.map} +0 -0
- /package/dist/esm/{chunk-4EPLOSKY.mjs.map → chunk-7WFKAS7T.mjs.map} +0 -0
- /package/dist/esm/{chunk-YXXEXFQH.mjs.map → chunk-7X6HZUXX.mjs.map} +0 -0
- /package/dist/esm/{chunk-KUAN2WZF.mjs.map → chunk-ARMY5A3J.mjs.map} +0 -0
- /package/dist/esm/{chunk-ILXK4OH5.mjs.map → chunk-BLAIJHMU.mjs.map} +0 -0
- /package/dist/esm/{chunk-RUVDYKIZ.mjs.map → chunk-CCUUYI4Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-HJT2Q5NL.mjs.map → chunk-COJZFWV3.mjs.map} +0 -0
- /package/dist/esm/{chunk-A2Z7I2EY.mjs.map → chunk-F6REP536.mjs.map} +0 -0
- /package/dist/esm/{chunk-CAC7G2HC.mjs.map → chunk-GQ6Q7KK5.mjs.map} +0 -0
- /package/dist/esm/{chunk-JM7CSDJ3.mjs.map → chunk-H6CS3BD7.mjs.map} +0 -0
- /package/dist/esm/{chunk-OKLLJQM4.mjs.map → chunk-H6QWMF3Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-7JUBWA7V.mjs.map → chunk-I2T6BJOA.mjs.map} +0 -0
- /package/dist/esm/{chunk-ICE6OL3A.mjs.map → chunk-J5KAD2RM.mjs.map} +0 -0
- /package/dist/esm/{chunk-3KZ7HFFA.mjs.map → chunk-J5YHMYHB.mjs.map} +0 -0
- /package/dist/esm/{chunk-GPZEPKKD.mjs.map → chunk-L6RINMT6.mjs.map} +0 -0
- /package/dist/esm/{chunk-47M33ENP.mjs.map → chunk-LBKYNX5K.mjs.map} +0 -0
- /package/dist/esm/{chunk-LWFSV3OA.mjs.map → chunk-LBU3LV7I.mjs.map} +0 -0
- /package/dist/esm/{chunk-4U3MAEYH.mjs.map → chunk-M2J7QC7G.mjs.map} +0 -0
- /package/dist/esm/{chunk-YF6UA3XW.mjs.map → chunk-MTPARVMT.mjs.map} +0 -0
- /package/dist/esm/{chunk-QTNKFKDE.mjs.map → chunk-NJYVAMTG.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y37TV7SM.mjs.map → chunk-NWAGENBX.mjs.map} +0 -0
- /package/dist/esm/{chunk-TFNJPJF6.mjs.map → chunk-NZFKPV67.mjs.map} +0 -0
- /package/dist/esm/{chunk-XSHUCBNT.mjs.map → chunk-O7XEE7QT.mjs.map} +0 -0
- /package/dist/esm/{chunk-GXLFQEPR.mjs.map → chunk-PTK4OJ2U.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZQUDGZIZ.mjs.map → chunk-PZAA2YYO.mjs.map} +0 -0
- /package/dist/esm/{chunk-FGFQZQGX.mjs.map → chunk-Q7ZP25NJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-OLVNRYGT.mjs.map → chunk-RA56CRJB.mjs.map} +0 -0
- /package/dist/esm/{chunk-FD2VCIZG.mjs.map → chunk-RM2IVUJ2.mjs.map} +0 -0
- /package/dist/esm/{chunk-V5JJHVMP.mjs.map → chunk-SQQ2424E.mjs.map} +0 -0
- /package/dist/esm/{chunk-64P5SB7N.mjs.map → chunk-T4NXIMZL.mjs.map} +0 -0
- /package/dist/esm/{chunk-PS7L2TLP.mjs.map → chunk-T7YRD4PM.mjs.map} +0 -0
- /package/dist/esm/{chunk-BI5P5ASH.mjs.map → chunk-TPMVNFS5.mjs.map} +0 -0
- /package/dist/esm/{chunk-VY2MJZWM.mjs.map → chunk-TZOKV22Z.mjs.map} +0 -0
- /package/dist/esm/{chunk-K6NUFABY.mjs.map → chunk-UJYWEIQ2.mjs.map} +0 -0
- /package/dist/esm/{chunk-HACVLK5I.mjs.map → chunk-UYF7AQLE.mjs.map} +0 -0
- /package/dist/esm/{chunk-3JEL6FIZ.mjs.map → chunk-V2LIP26A.mjs.map} +0 -0
- /package/dist/esm/{chunk-WUWJLSGN.mjs.map → chunk-VQPLSJEI.mjs.map} +0 -0
- /package/dist/esm/{chunk-LAZTLEXF.mjs.map → chunk-WHQNLKFO.mjs.map} +0 -0
- /package/dist/esm/{chunk-6ZQWPHLV.mjs.map → chunk-XWVMFCW3.mjs.map} +0 -0
- /package/dist/esm/{chunk-GMHGYDZQ.mjs.map → chunk-Y2H7FG2P.mjs.map} +0 -0
|
@@ -68,17 +68,6 @@ type GetAccountCollectionsWithOwnedTokensQuery = {
|
|
|
68
68
|
} | null;
|
|
69
69
|
}>;
|
|
70
70
|
};
|
|
71
|
-
type GetAccountOwnedObjectsQuery = {
|
|
72
|
-
current_objects: Array<{
|
|
73
|
-
allow_ungated_transfer: boolean;
|
|
74
|
-
state_key_hash: string;
|
|
75
|
-
owner_address: string;
|
|
76
|
-
object_address: string;
|
|
77
|
-
last_transaction_version: any;
|
|
78
|
-
last_guid_creation_num: any;
|
|
79
|
-
is_deleted: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
};
|
|
82
71
|
type GetAccountOwnedTokensQuery = {
|
|
83
72
|
current_token_ownerships_v2: Array<{
|
|
84
73
|
token_standard: string;
|
|
@@ -182,6 +171,13 @@ type GetChainTopUserTransactionsQuery = {
|
|
|
182
171
|
};
|
|
183
172
|
type GetCollectionDataQuery = {
|
|
184
173
|
current_collections_v2: Array<{
|
|
174
|
+
uri: string;
|
|
175
|
+
total_minted_v2?: any | null;
|
|
176
|
+
token_standard: string;
|
|
177
|
+
table_handle_v1?: string | null;
|
|
178
|
+
mutable_uri?: boolean | null;
|
|
179
|
+
mutable_description?: boolean | null;
|
|
180
|
+
max_supply?: any | null;
|
|
185
181
|
collection_id: string;
|
|
186
182
|
collection_name: string;
|
|
187
183
|
creator_address: string;
|
|
@@ -189,13 +185,17 @@ type GetCollectionDataQuery = {
|
|
|
189
185
|
description: string;
|
|
190
186
|
last_transaction_timestamp: any;
|
|
191
187
|
last_transaction_version: any;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
188
|
+
cdn_asset_uris?: {
|
|
189
|
+
cdn_image_uri?: string | null;
|
|
190
|
+
asset_uri: string;
|
|
191
|
+
animation_optimizer_retry_count: number;
|
|
192
|
+
cdn_animation_uri?: string | null;
|
|
193
|
+
cdn_json_uri?: string | null;
|
|
194
|
+
image_optimizer_retry_count: number;
|
|
195
|
+
json_parser_retry_count: number;
|
|
196
|
+
raw_animation_uri?: string | null;
|
|
197
|
+
raw_image_uri?: string | null;
|
|
198
|
+
} | null;
|
|
199
199
|
}>;
|
|
200
200
|
};
|
|
201
201
|
type GetCurrentFungibleAssetBalancesQuery = {
|
|
@@ -289,6 +289,17 @@ type GetNumberOfDelegatorsQuery = {
|
|
|
289
289
|
pool_address?: string | null;
|
|
290
290
|
}>;
|
|
291
291
|
};
|
|
292
|
+
type GetObjectDataQuery = {
|
|
293
|
+
current_objects: Array<{
|
|
294
|
+
allow_ungated_transfer: boolean;
|
|
295
|
+
state_key_hash: string;
|
|
296
|
+
owner_address: string;
|
|
297
|
+
object_address: string;
|
|
298
|
+
last_transaction_version: any;
|
|
299
|
+
last_guid_creation_num: any;
|
|
300
|
+
is_deleted: boolean;
|
|
301
|
+
}>;
|
|
302
|
+
};
|
|
292
303
|
type GetProcessorStatusQuery = {
|
|
293
304
|
processor_status: Array<{
|
|
294
305
|
last_success_version: any;
|
|
@@ -435,7 +446,7 @@ type GetTokenDataQuery = {
|
|
|
435
446
|
* These types are used as the return type when calling a sdk api function
|
|
436
447
|
* that calls the function that queries the server (usually under the /api/ folder)
|
|
437
448
|
*/
|
|
438
|
-
type
|
|
449
|
+
type GetObjectDataQueryResponse = GetObjectDataQuery["current_objects"];
|
|
439
450
|
type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
|
|
440
451
|
type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
|
|
441
452
|
type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
|
|
@@ -2213,4 +2224,4 @@ declare class AccountAddress extends Serializable implements TransactionArgument
|
|
|
2213
2224
|
equals(other: AccountAddress): boolean;
|
|
2214
2225
|
}
|
|
2215
2226
|
|
|
2216
|
-
export { type
|
|
2227
|
+
export { type GetEventsResponse as $, type AnyNumber as A, type GetAccountOwnedTokensFromCollectionResponse as B, type Client as C, Deserializer as D, type EntryFunctionArgument as E, type FullNodeConfig as F, type GetAccountOwnedTokensQueryResponse as G, type HexInput as H, type IndexerConfig as I, type GetAccountCollectionsWithOwnedTokenResponse as J, type GetAccountCoinsDataResponse as K, type LedgerVersionArg as L, type MoveModuleId as M, Network as N, type OrderByArg as O, type PaginationArgs as P, type GetObjectDataQueryResponse as Q, type GetCollectionDataResponse as R, Serializable as S, type TransactionArgument as T, type Uint8 as U, type GetTokenDataResponse as V, type WhereArg as W, type GetCurrentTokenOwnershipResponse as X, type GetOwnedTokensResponse as Y, ZkpVariant as Z, type GetTokenActivityResponse as _, Serializer as a, type TransactionPayloadResponse as a$, type WaitForTransactionOptions as a0, type UserTransactionResponse as a1, type MoveFunction as a2, type GetFungibleAssetMetadataResponse as a3, type GetFungibleAssetActivitiesResponse as a4, type GetCurrentFungibleAssetBalancesResponse as a5, type LedgerInfo as a6, type Block as a7, type GetChainTopUserTransactionsResponse as a8, type GraphqlQuery as a9, AccountAuthenticatorVariant as aA, AnySignatureVariant as aB, EphemeralSignatureVariant as aC, type Uint64 as aD, type Uint128 as aE, type Uint256 as aF, type ClientHeadersType as aG, TransactionResponseType as aH, isPendingTransactionResponse as aI, isUserTransactionResponse as aJ, isGenesisTransactionResponse as aK, isBlockMetadataTransactionResponse as aL, isStateCheckpointTransactionResponse as aM, isValidatorTransactionResponse as aN, type GenesisTransactionResponse as aO, type BlockMetadataTransactionResponse as aP, type StateCheckpointTransactionResponse as aQ, type ValidatorTransactionResponse as aR, type WriteSetChange as aS, type WriteSetChangeDeleteModule as aT, type WriteSetChangeDeleteResource as aU, type WriteSetChangeDeleteTableItem as aV, type WriteSetChangeWriteModule as aW, type WriteSetChangeWriteResource as aX, type WriteSetChangeWriteTableItem as aY, type DecodedTableData as aZ, type DeletedTableData as a_, type GetProcessorStatusResponse as aa, type GetANSNameResponse as ab, type GetNumberOfDelegatorsResponse as ac, type GetDelegatedStakingActivitiesResponse as ad, type PendingTransactionResponse as ae, type CommittedTransactionResponse as af, type GasEstimation as ag, type TableItemRequest as ah, type GetTableItemsDataResponse as ai, type GetTableItemsMetadataResponse as aj, type AptosRequest as ak, type ClientRequest as al, type ClientResponse as am, MimeType as an, ensureBoolean as ao, outOfRangeErrorMessage as ap, validateNumberInRange as aq, AddressInvalidReason as ar, ParsingError as as, type ParsingResult as at, HexInvalidReason as au, TypeTagVariants as av, ScriptTransactionArgumentVariants as aw, TransactionPayloadVariants as ax, TransactionVariants as ay, TransactionAuthenticatorVariant as az, type Uint16 as b, type EntryFunctionPayloadResponse as b0, type ScriptPayloadResponse as b1, type MultisigPayloadResponse as b2, type GenesisPayload as b3, type MoveScriptBytecode as b4, type TransactionSignature as b5, isEd25519Signature as b6, isSecp256k1Signature as b7, isMultiAgentSignature as b8, isFeePayerSignature as b9, type MoveModule as bA, type MoveStruct as bB, RoleType as bC, DeriveScheme as bD, type GenerateAccountWithEd25519 as bE, type GenerateAccountWithSingleSignerSecp256k1Key as bF, type GenerateAccount as bG, type OrderBy as bH, type OrderByValue as bI, type TokenStandard as bJ, NetworkToIndexerAPI as bK, NetworkToNodeAPI as bL, NetworkToFaucetAPI as bM, NetworkToPepperAPI as bN, NetworkToProverAPI as bO, NetworkToChainId as bP, NetworkToNetworkName as bQ, isMultiEd25519Signature as ba, type TransactionEd25519Signature as bb, type TransactionSecp256k1Signature as bc, type TransactionMultiEd25519Signature as bd, type TransactionMultiAgentSignature as be, type TransactionFeePayerSignature as bf, type AccountSignature as bg, type WriteSet as bh, type ScriptWriteSet as bi, type DirectWriteSet as bj, type EventGuid as bk, type Event as bl, type MoveUint8Type as bm, type MoveUint16Type as bn, type MoveUint32Type as bo, type MoveUint64Type as bp, type MoveUint128Type as bq, type MoveUint256Type as br, type MoveAddressType as bs, type MoveObjectType as bt, type MoveOptionType as bu, type MoveStructType as bv, type MoveType as bw, MoveFunctionVisibility as bx, MoveAbility as by, type MoveStructField as bz, type Uint32 as c, type Deserializable as d, Hex as e, type AuthenticationKeyScheme as f, AccountAddress as g, AnyPublicKeyVariant as h, EphemeralPublicKeyVariant as i, type ClientConfig as j, type FaucetConfig as k, type AptosSettings as l, EphemeralCertificateVariant as m, type ScriptFunctionArgument as n, type MoveFunctionId as o, type AccountAddressInput as p, type MoveStructId as q, type MoveValue as r, type MoveFunctionGenericTypeParam as s, SigningSchemeInput as t, SigningScheme as u, type AccountData as v, type MoveModuleBytecode as w, type TransactionResponse as x, type MoveResource as y, type TokenStandardArg as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcessWithoutNullStreams } from 'child_process';
|
|
2
|
-
import { N as Network, g as AccountAddress } from '../accountAddress-
|
|
2
|
+
import { N as Network, g as AccountAddress } from '../accountAddress-NYtf3uZq.js';
|
|
3
3
|
|
|
4
4
|
declare class LocalNode {
|
|
5
5
|
readonly MAXIMUM_WAIT_TIME_SEC = 75;
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, M as MoveModuleId, n as ScriptFunctionArgument, o as MoveFunctionId, p as AccountAddressInput, q as
|
|
2
|
-
export { aA as AccountAuthenticatorVariant, bg as AccountSignature, ar as AddressInvalidReason, aB as AnySignatureVariant, aP as BlockMetadataTransactionResponse, aG as ClientHeadersType, aZ as DecodedTableData, a_ as DeletedTableData, bD as DeriveScheme, bj as DirectWriteSet, b0 as EntryFunctionPayloadResponse, aC as EphemeralSignatureVariant, bl as Event, bk as EventGuid, bG as GenerateAccount, bE as GenerateAccountWithEd25519, bF as GenerateAccountWithSingleSignerSecp256k1Key, b3 as GenesisPayload, aO as GenesisTransactionResponse, au as HexInvalidReason, by as MoveAbility, bs as MoveAddressType, bx as MoveFunctionVisibility, bA as MoveModule, bt as MoveObjectType, bu as MoveOptionType, b4 as MoveScriptBytecode, bB as MoveStruct, bz as MoveStructField, bv as MoveStructType, bw as MoveType, bq as MoveUint128Type, bn as MoveUint16Type, br as MoveUint256Type, bo as MoveUint32Type, bp as MoveUint64Type, bm as MoveUint8Type, b2 as MultisigPayloadResponse, bP as NetworkToChainId, bM as NetworkToFaucetAPI, bK as NetworkToIndexerAPI, bQ as NetworkToNetworkName, bL as NetworkToNodeAPI, bN as NetworkToPepperAPI, bO as NetworkToProverAPI, bH as OrderBy, bI as OrderByValue, as as ParsingError, at as ParsingResult, bC as RoleType, b1 as ScriptPayloadResponse, aw as ScriptTransactionArgumentVariants, bi as ScriptWriteSet, aQ as StateCheckpointTransactionResponse, bJ as TokenStandard, az as TransactionAuthenticatorVariant, bb as TransactionEd25519Signature, bf as TransactionFeePayerSignature, be as TransactionMultiAgentSignature, bd as TransactionMultiEd25519Signature, a$ as TransactionPayloadResponse, ax as TransactionPayloadVariants, aH as TransactionResponseType, bc as TransactionSecp256k1Signature, b5 as TransactionSignature, ay as TransactionVariants, av as TypeTagVariants, aE as Uint128, aF as Uint256, aD as Uint64, aR as ValidatorTransactionResponse, bh as WriteSet, aS as WriteSetChange, aT as WriteSetChangeDeleteModule, aU as WriteSetChangeDeleteResource, aV as WriteSetChangeDeleteTableItem, aW as WriteSetChangeWriteModule, aX as WriteSetChangeWriteResource, aY as WriteSetChangeWriteTableItem, ao as ensureBoolean, aL as isBlockMetadataTransactionResponse, b6 as isEd25519Signature, b9 as isFeePayerSignature, aK as isGenesisTransactionResponse, b8 as isMultiAgentSignature, ba as isMultiEd25519Signature, aI as isPendingTransactionResponse, b7 as isSecp256k1Signature, aM as isStateCheckpointTransactionResponse, aJ as isUserTransactionResponse, aN as isValidatorTransactionResponse, ap as outOfRangeErrorMessage, aq as validateNumberInRange } from './accountAddress-
|
|
1
|
+
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, M as MoveModuleId, n as ScriptFunctionArgument, o as MoveFunctionId, p as AccountAddressInput, q as MoveStructId, r as MoveValue, s as MoveFunctionGenericTypeParam, t as SigningSchemeInput, u as SigningScheme, v as AccountData, P as PaginationArgs, w as MoveModuleBytecode, x as TransactionResponse, y as MoveResource, z as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, B as GetAccountOwnedTokensFromCollectionResponse, J as GetAccountCollectionsWithOwnedTokenResponse, K as GetAccountCoinsDataResponse, W as WhereArg, Q as GetObjectDataQueryResponse, R as GetCollectionDataResponse, V as GetTokenDataResponse, X as GetCurrentTokenOwnershipResponse, Y as GetOwnedTokensResponse, _ as GetTokenActivityResponse, $ as GetEventsResponse, a0 as WaitForTransactionOptions, a1 as UserTransactionResponse, a2 as MoveFunction, a3 as GetFungibleAssetMetadataResponse, a4 as GetFungibleAssetActivitiesResponse, a5 as GetCurrentFungibleAssetBalancesResponse, a6 as LedgerInfo, a7 as Block, a8 as GetChainTopUserTransactionsResponse, a9 as GraphqlQuery, aa as GetProcessorStatusResponse, ab as GetANSNameResponse, ac as GetNumberOfDelegatorsResponse, ad as GetDelegatedStakingActivitiesResponse, ae as PendingTransactionResponse, af as CommittedTransactionResponse, ag as GasEstimation, ah as TableItemRequest, ai as GetTableItemsDataResponse, aj as GetTableItemsMetadataResponse, ak as AptosRequest, al as ClientRequest, am as ClientResponse, an as MimeType } from './accountAddress-NYtf3uZq.js';
|
|
2
|
+
export { aA as AccountAuthenticatorVariant, bg as AccountSignature, ar as AddressInvalidReason, aB as AnySignatureVariant, aP as BlockMetadataTransactionResponse, aG as ClientHeadersType, aZ as DecodedTableData, a_ as DeletedTableData, bD as DeriveScheme, bj as DirectWriteSet, b0 as EntryFunctionPayloadResponse, aC as EphemeralSignatureVariant, bl as Event, bk as EventGuid, bG as GenerateAccount, bE as GenerateAccountWithEd25519, bF as GenerateAccountWithSingleSignerSecp256k1Key, b3 as GenesisPayload, aO as GenesisTransactionResponse, au as HexInvalidReason, by as MoveAbility, bs as MoveAddressType, bx as MoveFunctionVisibility, bA as MoveModule, bt as MoveObjectType, bu as MoveOptionType, b4 as MoveScriptBytecode, bB as MoveStruct, bz as MoveStructField, bv as MoveStructType, bw as MoveType, bq as MoveUint128Type, bn as MoveUint16Type, br as MoveUint256Type, bo as MoveUint32Type, bp as MoveUint64Type, bm as MoveUint8Type, b2 as MultisigPayloadResponse, bP as NetworkToChainId, bM as NetworkToFaucetAPI, bK as NetworkToIndexerAPI, bQ as NetworkToNetworkName, bL as NetworkToNodeAPI, bN as NetworkToPepperAPI, bO as NetworkToProverAPI, bH as OrderBy, bI as OrderByValue, as as ParsingError, at as ParsingResult, bC as RoleType, b1 as ScriptPayloadResponse, aw as ScriptTransactionArgumentVariants, bi as ScriptWriteSet, aQ as StateCheckpointTransactionResponse, bJ as TokenStandard, az as TransactionAuthenticatorVariant, bb as TransactionEd25519Signature, bf as TransactionFeePayerSignature, be as TransactionMultiAgentSignature, bd as TransactionMultiEd25519Signature, a$ as TransactionPayloadResponse, ax as TransactionPayloadVariants, aH as TransactionResponseType, bc as TransactionSecp256k1Signature, b5 as TransactionSignature, ay as TransactionVariants, av as TypeTagVariants, aE as Uint128, aF as Uint256, aD as Uint64, aR as ValidatorTransactionResponse, bh as WriteSet, aS as WriteSetChange, aT as WriteSetChangeDeleteModule, aU as WriteSetChangeDeleteResource, aV as WriteSetChangeDeleteTableItem, aW as WriteSetChangeWriteModule, aX as WriteSetChangeWriteResource, aY as WriteSetChangeWriteTableItem, ao as ensureBoolean, aL as isBlockMetadataTransactionResponse, b6 as isEd25519Signature, b9 as isFeePayerSignature, aK as isGenesisTransactionResponse, b8 as isMultiAgentSignature, ba as isMultiEd25519Signature, aI as isPendingTransactionResponse, b7 as isSecp256k1Signature, aM as isStateCheckpointTransactionResponse, aJ as isUserTransactionResponse, aN as isValidatorTransactionResponse, ap as outOfRangeErrorMessage, aq as validateNumberInRange } from './accountAddress-NYtf3uZq.js';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
type Maybe<T> = T | null;
|
|
@@ -1500,7 +1500,8 @@ declare enum ProcessorType {
|
|
|
1500
1500
|
FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
|
|
1501
1501
|
STAKE_PROCESSOR = "stake_processor",
|
|
1502
1502
|
TOKEN_V2_PROCESSOR = "token_v2_processor",
|
|
1503
|
-
USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
|
|
1503
|
+
USER_TRANSACTION_PROCESSOR = "user_transaction_processor",
|
|
1504
|
+
OBJECT_PROCESSOR = "objects_processor"
|
|
1504
1505
|
}
|
|
1505
1506
|
|
|
1506
1507
|
/**
|
|
@@ -2782,6 +2783,22 @@ type InputViewFunctionData = {
|
|
|
2782
2783
|
functionArguments?: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
|
|
2783
2784
|
abi?: ViewFunctionABI;
|
|
2784
2785
|
};
|
|
2786
|
+
/**
|
|
2787
|
+
* The data needed to generate a View Function payload in JSON
|
|
2788
|
+
*/
|
|
2789
|
+
type InputViewFunctionJsonData = {
|
|
2790
|
+
function: MoveFunctionId;
|
|
2791
|
+
typeArguments?: Array<MoveStructId>;
|
|
2792
|
+
functionArguments?: Array<MoveValue>;
|
|
2793
|
+
};
|
|
2794
|
+
/**
|
|
2795
|
+
* Payload sent to the fullnode for a JSON view request
|
|
2796
|
+
*/
|
|
2797
|
+
type ViewFunctionJsonPayload = {
|
|
2798
|
+
function: MoveFunctionId;
|
|
2799
|
+
typeArguments: Array<MoveStructId>;
|
|
2800
|
+
functionArguments: Array<MoveValue>;
|
|
2801
|
+
};
|
|
2785
2802
|
/**
|
|
2786
2803
|
* Data needed to generate a view function payload and fetch the remote ABI
|
|
2787
2804
|
*/
|
|
@@ -3877,8 +3894,8 @@ declare class Account {
|
|
|
3877
3894
|
getAccountOwnedObjects(args: {
|
|
3878
3895
|
accountAddress: AccountAddressInput;
|
|
3879
3896
|
minimumLedgerVersion?: AnyNumber;
|
|
3880
|
-
options?: PaginationArgs & OrderByArg<
|
|
3881
|
-
}): Promise<
|
|
3897
|
+
options?: PaginationArgs & OrderByArg<GetObjectDataQueryResponse[0]>;
|
|
3898
|
+
}): Promise<GetObjectDataQueryResponse>;
|
|
3882
3899
|
/**
|
|
3883
3900
|
* Derives an account by providing a private key.
|
|
3884
3901
|
* This functions resolves the provided private key type and derives the public key from it.
|
|
@@ -3976,6 +3993,9 @@ declare class DigitalAsset {
|
|
|
3976
3993
|
readonly config: AptosConfig;
|
|
3977
3994
|
constructor(config: AptosConfig);
|
|
3978
3995
|
/**
|
|
3996
|
+
* @deprecated use getCollectionDataByCreatorAddressAndCollectionName - this function
|
|
3997
|
+
* will be removed in the next major release
|
|
3998
|
+
*
|
|
3979
3999
|
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
3980
4000
|
*
|
|
3981
4001
|
* If, for some reason, a creator account has 2 collections with the same name in v1 and v2,
|
|
@@ -3996,6 +4016,50 @@ declare class DigitalAsset {
|
|
|
3996
4016
|
minimumLedgerVersion?: AnyNumber;
|
|
3997
4017
|
options?: TokenStandardArg;
|
|
3998
4018
|
}): Promise<GetCollectionDataResponse>;
|
|
4019
|
+
/**
|
|
4020
|
+
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
4021
|
+
*
|
|
4022
|
+
* If, for some reason, a creator account has 2 collections with the same name in v1 and v2,
|
|
4023
|
+
* can pass an optional `tokenStandard` parameter to query a specific standard
|
|
4024
|
+
*
|
|
4025
|
+
* @example
|
|
4026
|
+
* const collection = await aptos.getCollectionDataByCreatorAddressAndCollectionName({
|
|
4027
|
+
* creatorAddress:"0x123",
|
|
4028
|
+
* collectionName:"myCollection"
|
|
4029
|
+
* })
|
|
4030
|
+
*
|
|
4031
|
+
* @param args.creatorAddress the address of the collection's creator
|
|
4032
|
+
* @param args.collectionName the name of the collection
|
|
4033
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4034
|
+
* @param args.options.tokenStandard the token standard to query
|
|
4035
|
+
* @returns GetCollectionDataResponse response type
|
|
4036
|
+
*/
|
|
4037
|
+
getCollectionDataByCreatorAddressAndCollectionName(args: {
|
|
4038
|
+
creatorAddress: AccountAddressInput;
|
|
4039
|
+
collectionName: string;
|
|
4040
|
+
minimumLedgerVersion?: AnyNumber;
|
|
4041
|
+
options?: TokenStandardArg & PaginationArgs;
|
|
4042
|
+
}): Promise<GetCollectionDataResponse>;
|
|
4043
|
+
/**
|
|
4044
|
+
* Queries data of a specific collection by the collection creator address and the collection name.
|
|
4045
|
+
*
|
|
4046
|
+
* If, for some reason, a creator account has 2 collections with the same name in v1 and v2,
|
|
4047
|
+
* can pass an optional `tokenStandard` parameter to query a specific standard
|
|
4048
|
+
*
|
|
4049
|
+
* @example
|
|
4050
|
+
* const collection = await aptos.getCollectionDataByCreatorAddressAnd({creatorAddress:"0x123"})
|
|
4051
|
+
*
|
|
4052
|
+
* @param args.creatorAddress the address of the collection's creator
|
|
4053
|
+
* @param args.collectionName the name of the collection
|
|
4054
|
+
* @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
|
|
4055
|
+
* @param args.options.tokenStandard the token standard to query
|
|
4056
|
+
* @returns GetCollectionDataResponse response type
|
|
4057
|
+
*/
|
|
4058
|
+
getCollectionDataByCreatorAddress(args: {
|
|
4059
|
+
creatorAddress: AccountAddressInput;
|
|
4060
|
+
minimumLedgerVersion?: AnyNumber;
|
|
4061
|
+
options?: TokenStandardArg & PaginationArgs;
|
|
4062
|
+
}): Promise<GetCollectionDataResponse>;
|
|
3999
4063
|
/**
|
|
4000
4064
|
* Queries data of a specific collection by the collection ID.
|
|
4001
4065
|
*
|
|
@@ -4009,6 +4073,7 @@ declare class DigitalAsset {
|
|
|
4009
4073
|
getCollectionDataByCollectionId(args: {
|
|
4010
4074
|
collectionId: AccountAddressInput;
|
|
4011
4075
|
minimumLedgerVersion?: AnyNumber;
|
|
4076
|
+
options?: TokenStandardArg & PaginationArgs;
|
|
4012
4077
|
}): Promise<GetCollectionDataResponse>;
|
|
4013
4078
|
/**
|
|
4014
4079
|
* Queries a collection's ID.
|
|
@@ -5034,6 +5099,26 @@ declare class General {
|
|
|
5034
5099
|
payload: InputViewFunctionData;
|
|
5035
5100
|
options?: LedgerVersionArg;
|
|
5036
5101
|
}): Promise<T>;
|
|
5102
|
+
/**
|
|
5103
|
+
* Queries for a Move view function with JSON, this provides compatability with the old `aptos` package
|
|
5104
|
+
* @param args.payload Payload for the view function
|
|
5105
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
5106
|
+
*
|
|
5107
|
+
* @example
|
|
5108
|
+
* const data = await aptos.view({
|
|
5109
|
+
* payload: {
|
|
5110
|
+
* function: "0x1::coin::balance",
|
|
5111
|
+
* typeArguments: ["0x1::aptos_coin::AptosCoin"],
|
|
5112
|
+
* functionArguments: [accountAddress.toString()],
|
|
5113
|
+
* }
|
|
5114
|
+
* })
|
|
5115
|
+
*
|
|
5116
|
+
* @returns an array of Move values
|
|
5117
|
+
*/
|
|
5118
|
+
viewJson<T extends Array<MoveValue>>(args: {
|
|
5119
|
+
payload: InputViewFunctionJsonData;
|
|
5120
|
+
options?: LedgerVersionArg;
|
|
5121
|
+
}): Promise<T>;
|
|
5037
5122
|
/**
|
|
5038
5123
|
* Queries top user transactions
|
|
5039
5124
|
*
|
|
@@ -6223,6 +6308,30 @@ declare class Keyless {
|
|
|
6223
6308
|
}): Promise<KeylessAccount>;
|
|
6224
6309
|
}
|
|
6225
6310
|
|
|
6311
|
+
/**
|
|
6312
|
+
* A class to query all `Object` related queries on Aptos.
|
|
6313
|
+
*/
|
|
6314
|
+
declare class AptosObject {
|
|
6315
|
+
readonly config: AptosConfig;
|
|
6316
|
+
constructor(config: AptosConfig);
|
|
6317
|
+
/**
|
|
6318
|
+
* Fetch the object data based on the oabject address
|
|
6319
|
+
*
|
|
6320
|
+
* @example
|
|
6321
|
+
* const object = await aptos.getObjectDataByObjectAddress({objectAddress:"0x123"})
|
|
6322
|
+
*
|
|
6323
|
+
* @param args.objectAddress The object address
|
|
6324
|
+
* @param args.options Configuration options for waitForTransaction
|
|
6325
|
+
*
|
|
6326
|
+
* @returns The object data
|
|
6327
|
+
*/
|
|
6328
|
+
getObjectDataByObjectAddress(args: {
|
|
6329
|
+
objectAddress: AccountAddressInput;
|
|
6330
|
+
minimumLedgerVersion?: AnyNumber;
|
|
6331
|
+
options?: PaginationArgs & OrderByArg<GetObjectDataQueryResponse[0]>;
|
|
6332
|
+
}): Promise<GetObjectDataQueryResponse[0]>;
|
|
6333
|
+
}
|
|
6334
|
+
|
|
6226
6335
|
/**
|
|
6227
6336
|
* This class is the main entry point into Aptos's
|
|
6228
6337
|
* APIs and separates functionality into different namespaces.
|
|
@@ -6248,9 +6357,10 @@ declare class Aptos {
|
|
|
6248
6357
|
readonly transaction: Transaction;
|
|
6249
6358
|
readonly table: Table;
|
|
6250
6359
|
readonly keyless: Keyless;
|
|
6360
|
+
readonly object: AptosObject;
|
|
6251
6361
|
constructor(settings?: AptosConfig);
|
|
6252
6362
|
}
|
|
6253
|
-
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
6363
|
+
interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Keyless, Staking, Table, AptosObject, Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {
|
|
6254
6364
|
}
|
|
6255
6365
|
|
|
6256
6366
|
/**
|
|
@@ -6428,4 +6538,4 @@ declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAp
|
|
|
6428
6538
|
declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6429
6539
|
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6430
6540
|
|
|
6431
|
-
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse,
|
|
6541
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, type InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type ViewFunctionJsonPayload, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, convertNumber, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, getKeylessConfig, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEmptyOption, isEncodedEntryFunctionArgument, isLargeNumber, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
|