@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
package/src/internal/view.ts
CHANGED
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
import { LedgerVersionArg, MimeType, MoveValue } from "../types";
|
|
5
5
|
import { AptosConfig } from "../api/aptosConfig";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
generateViewFunctionPayload,
|
|
8
|
+
InputViewFunctionData,
|
|
9
|
+
InputViewFunctionJsonData,
|
|
10
|
+
ViewFunctionJsonPayload,
|
|
11
|
+
} from "../transactions";
|
|
7
12
|
import { Serializer } from "../bcs";
|
|
8
13
|
import { postAptosFullNode } from "../client";
|
|
9
14
|
|
|
@@ -33,3 +38,24 @@ export async function view<T extends Array<MoveValue> = Array<MoveValue>>(args:
|
|
|
33
38
|
|
|
34
39
|
return data as T;
|
|
35
40
|
}
|
|
41
|
+
|
|
42
|
+
export async function viewJson<T extends Array<MoveValue> = Array<MoveValue>>(args: {
|
|
43
|
+
aptosConfig: AptosConfig;
|
|
44
|
+
payload: InputViewFunctionJsonData;
|
|
45
|
+
options?: LedgerVersionArg;
|
|
46
|
+
}): Promise<T> {
|
|
47
|
+
const { aptosConfig, payload, options } = args;
|
|
48
|
+
const { data } = await postAptosFullNode<ViewFunctionJsonPayload, MoveValue[]>({
|
|
49
|
+
aptosConfig,
|
|
50
|
+
originMethod: "viewJson",
|
|
51
|
+
path: "view",
|
|
52
|
+
params: { ledger_version: options?.ledgerVersion },
|
|
53
|
+
body: {
|
|
54
|
+
function: payload.function,
|
|
55
|
+
type_arguments: payload.typeArguments ?? [],
|
|
56
|
+
arguments: payload.functionArguments ?? [],
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
return data as T;
|
|
61
|
+
}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
TransactionPayloadMultiSig,
|
|
16
16
|
TransactionPayloadScript,
|
|
17
17
|
} from "./instances";
|
|
18
|
-
import { AnyNumber, HexInput, MoveFunctionGenericTypeParam, MoveFunctionId } from "../types";
|
|
18
|
+
import { AnyNumber, HexInput, MoveFunctionGenericTypeParam, MoveFunctionId, MoveStructId, MoveValue } from "../types";
|
|
19
19
|
import { TypeTag } from "./typeTag";
|
|
20
20
|
import { AccountAuthenticator } from "./authenticator/account";
|
|
21
21
|
import { SimpleTransaction } from "./instances/simpleTransaction";
|
|
@@ -177,6 +177,24 @@ export type InputViewFunctionData = {
|
|
|
177
177
|
abi?: ViewFunctionABI;
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* The data needed to generate a View Function payload in JSON
|
|
182
|
+
*/
|
|
183
|
+
export type InputViewFunctionJsonData = {
|
|
184
|
+
function: MoveFunctionId;
|
|
185
|
+
typeArguments?: Array<MoveStructId>;
|
|
186
|
+
functionArguments?: Array<MoveValue>;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Payload sent to the fullnode for a JSON view request
|
|
191
|
+
*/
|
|
192
|
+
export type ViewFunctionJsonPayload = {
|
|
193
|
+
function: MoveFunctionId;
|
|
194
|
+
typeArguments: Array<MoveStructId>;
|
|
195
|
+
functionArguments: Array<MoveValue>;
|
|
196
|
+
};
|
|
197
|
+
|
|
180
198
|
/**
|
|
181
199
|
* Data needed to generate a view function payload and fetch the remote ABI
|
|
182
200
|
*/
|
|
@@ -158,25 +158,6 @@ export type GetAccountCollectionsWithOwnedTokensQuery = {
|
|
|
158
158
|
}>;
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
-
export type GetAccountOwnedObjectsQueryVariables = Types.Exact<{
|
|
162
|
-
where_condition?: Types.InputMaybe<Types.CurrentObjectsBoolExp>;
|
|
163
|
-
offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
164
|
-
limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
165
|
-
order_by?: Types.InputMaybe<Array<Types.CurrentObjectsOrderBy> | Types.CurrentObjectsOrderBy>;
|
|
166
|
-
}>;
|
|
167
|
-
|
|
168
|
-
export type GetAccountOwnedObjectsQuery = {
|
|
169
|
-
current_objects: Array<{
|
|
170
|
-
allow_ungated_transfer: boolean;
|
|
171
|
-
state_key_hash: string;
|
|
172
|
-
owner_address: string;
|
|
173
|
-
object_address: string;
|
|
174
|
-
last_transaction_version: any;
|
|
175
|
-
last_guid_creation_num: any;
|
|
176
|
-
is_deleted: boolean;
|
|
177
|
-
}>;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
161
|
export type GetAccountOwnedTokensQueryVariables = Types.Exact<{
|
|
181
162
|
where_condition: Types.CurrentTokenOwnershipsV2BoolExp;
|
|
182
163
|
offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
@@ -375,6 +356,13 @@ export type GetCollectionDataQueryVariables = Types.Exact<{
|
|
|
375
356
|
|
|
376
357
|
export type GetCollectionDataQuery = {
|
|
377
358
|
current_collections_v2: Array<{
|
|
359
|
+
uri: string;
|
|
360
|
+
total_minted_v2?: any | null;
|
|
361
|
+
token_standard: string;
|
|
362
|
+
table_handle_v1?: string | null;
|
|
363
|
+
mutable_uri?: boolean | null;
|
|
364
|
+
mutable_description?: boolean | null;
|
|
365
|
+
max_supply?: any | null;
|
|
378
366
|
collection_id: string;
|
|
379
367
|
collection_name: string;
|
|
380
368
|
creator_address: string;
|
|
@@ -382,13 +370,17 @@ export type GetCollectionDataQuery = {
|
|
|
382
370
|
description: string;
|
|
383
371
|
last_transaction_timestamp: any;
|
|
384
372
|
last_transaction_version: any;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
373
|
+
cdn_asset_uris?: {
|
|
374
|
+
cdn_image_uri?: string | null;
|
|
375
|
+
asset_uri: string;
|
|
376
|
+
animation_optimizer_retry_count: number;
|
|
377
|
+
cdn_animation_uri?: string | null;
|
|
378
|
+
cdn_json_uri?: string | null;
|
|
379
|
+
image_optimizer_retry_count: number;
|
|
380
|
+
json_parser_retry_count: number;
|
|
381
|
+
raw_animation_uri?: string | null;
|
|
382
|
+
raw_image_uri?: string | null;
|
|
383
|
+
} | null;
|
|
392
384
|
}>;
|
|
393
385
|
};
|
|
394
386
|
|
|
@@ -529,6 +521,25 @@ export type GetNumberOfDelegatorsQuery = {
|
|
|
529
521
|
num_active_delegator_per_pool: Array<{ num_active_delegator?: any | null; pool_address?: string | null }>;
|
|
530
522
|
};
|
|
531
523
|
|
|
524
|
+
export type GetObjectDataQueryVariables = Types.Exact<{
|
|
525
|
+
where_condition?: Types.InputMaybe<Types.CurrentObjectsBoolExp>;
|
|
526
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
527
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
528
|
+
order_by?: Types.InputMaybe<Array<Types.CurrentObjectsOrderBy> | Types.CurrentObjectsOrderBy>;
|
|
529
|
+
}>;
|
|
530
|
+
|
|
531
|
+
export type GetObjectDataQuery = {
|
|
532
|
+
current_objects: Array<{
|
|
533
|
+
allow_ungated_transfer: boolean;
|
|
534
|
+
state_key_hash: string;
|
|
535
|
+
owner_address: string;
|
|
536
|
+
object_address: string;
|
|
537
|
+
last_transaction_version: any;
|
|
538
|
+
last_guid_creation_num: any;
|
|
539
|
+
is_deleted: boolean;
|
|
540
|
+
}>;
|
|
541
|
+
};
|
|
542
|
+
|
|
532
543
|
export type GetProcessorStatusQueryVariables = Types.Exact<{
|
|
533
544
|
where_condition?: Types.InputMaybe<Types.ProcessorStatusBoolExp>;
|
|
534
545
|
}>;
|
|
@@ -160,24 +160,6 @@ export const GetAccountCollectionsWithOwnedTokens = `
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
`;
|
|
163
|
-
export const GetAccountOwnedObjects = `
|
|
164
|
-
query getAccountOwnedObjects($where_condition: current_objects_bool_exp, $offset: Int, $limit: Int, $order_by: [current_objects_order_by!]) {
|
|
165
|
-
current_objects(
|
|
166
|
-
where: $where_condition
|
|
167
|
-
offset: $offset
|
|
168
|
-
limit: $limit
|
|
169
|
-
order_by: $order_by
|
|
170
|
-
) {
|
|
171
|
-
allow_ungated_transfer
|
|
172
|
-
state_key_hash
|
|
173
|
-
owner_address
|
|
174
|
-
object_address
|
|
175
|
-
last_transaction_version
|
|
176
|
-
last_guid_creation_num
|
|
177
|
-
is_deleted
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
`;
|
|
181
163
|
export const GetAccountOwnedTokens = `
|
|
182
164
|
query getAccountOwnedTokens($where_condition: current_token_ownerships_v2_bool_exp!, $offset: Int, $limit: Int, $order_by: [current_token_ownerships_v2_order_by!]) {
|
|
183
165
|
current_token_ownerships_v2(
|
|
@@ -246,6 +228,13 @@ export const GetChainTopUserTransactions = `
|
|
|
246
228
|
export const GetCollectionData = `
|
|
247
229
|
query getCollectionData($where_condition: current_collections_v2_bool_exp!) {
|
|
248
230
|
current_collections_v2(where: $where_condition) {
|
|
231
|
+
uri
|
|
232
|
+
total_minted_v2
|
|
233
|
+
token_standard
|
|
234
|
+
table_handle_v1
|
|
235
|
+
mutable_uri
|
|
236
|
+
mutable_description
|
|
237
|
+
max_supply
|
|
249
238
|
collection_id
|
|
250
239
|
collection_name
|
|
251
240
|
creator_address
|
|
@@ -253,13 +242,17 @@ export const GetCollectionData = `
|
|
|
253
242
|
description
|
|
254
243
|
last_transaction_timestamp
|
|
255
244
|
last_transaction_version
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
245
|
+
cdn_asset_uris {
|
|
246
|
+
cdn_image_uri
|
|
247
|
+
asset_uri
|
|
248
|
+
animation_optimizer_retry_count
|
|
249
|
+
cdn_animation_uri
|
|
250
|
+
cdn_json_uri
|
|
251
|
+
image_optimizer_retry_count
|
|
252
|
+
json_parser_retry_count
|
|
253
|
+
raw_animation_uri
|
|
254
|
+
raw_image_uri
|
|
255
|
+
}
|
|
263
256
|
}
|
|
264
257
|
}
|
|
265
258
|
`;
|
|
@@ -382,6 +375,24 @@ export const GetNumberOfDelegators = `
|
|
|
382
375
|
}
|
|
383
376
|
}
|
|
384
377
|
`;
|
|
378
|
+
export const GetObjectData = `
|
|
379
|
+
query getObjectData($where_condition: current_objects_bool_exp, $offset: Int, $limit: Int, $order_by: [current_objects_order_by!]) {
|
|
380
|
+
current_objects(
|
|
381
|
+
where: $where_condition
|
|
382
|
+
offset: $offset
|
|
383
|
+
limit: $limit
|
|
384
|
+
order_by: $order_by
|
|
385
|
+
) {
|
|
386
|
+
allow_ungated_transfer
|
|
387
|
+
state_key_hash
|
|
388
|
+
owner_address
|
|
389
|
+
object_address
|
|
390
|
+
last_transaction_version
|
|
391
|
+
last_guid_creation_num
|
|
392
|
+
is_deleted
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
`;
|
|
385
396
|
export const GetProcessorStatus = `
|
|
386
397
|
query getProcessorStatus($where_condition: processor_status_bool_exp) {
|
|
387
398
|
processor_status(where: $where_condition) {
|
|
@@ -545,21 +556,6 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
545
556
|
variables,
|
|
546
557
|
);
|
|
547
558
|
},
|
|
548
|
-
getAccountOwnedObjects(
|
|
549
|
-
variables?: Types.GetAccountOwnedObjectsQueryVariables,
|
|
550
|
-
requestHeaders?: GraphQLClientRequestHeaders,
|
|
551
|
-
): Promise<Types.GetAccountOwnedObjectsQuery> {
|
|
552
|
-
return withWrapper(
|
|
553
|
-
(wrappedRequestHeaders) =>
|
|
554
|
-
client.request<Types.GetAccountOwnedObjectsQuery>(GetAccountOwnedObjects, variables, {
|
|
555
|
-
...requestHeaders,
|
|
556
|
-
...wrappedRequestHeaders,
|
|
557
|
-
}),
|
|
558
|
-
"getAccountOwnedObjects",
|
|
559
|
-
"query",
|
|
560
|
-
variables,
|
|
561
|
-
);
|
|
562
|
-
},
|
|
563
559
|
getAccountOwnedTokens(
|
|
564
560
|
variables: Types.GetAccountOwnedTokensQueryVariables,
|
|
565
561
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
@@ -765,6 +761,21 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
765
761
|
variables,
|
|
766
762
|
);
|
|
767
763
|
},
|
|
764
|
+
getObjectData(
|
|
765
|
+
variables?: Types.GetObjectDataQueryVariables,
|
|
766
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
767
|
+
): Promise<Types.GetObjectDataQuery> {
|
|
768
|
+
return withWrapper(
|
|
769
|
+
(wrappedRequestHeaders) =>
|
|
770
|
+
client.request<Types.GetObjectDataQuery>(GetObjectData, variables, {
|
|
771
|
+
...requestHeaders,
|
|
772
|
+
...wrappedRequestHeaders,
|
|
773
|
+
}),
|
|
774
|
+
"getObjectData",
|
|
775
|
+
"query",
|
|
776
|
+
variables,
|
|
777
|
+
);
|
|
778
|
+
},
|
|
768
779
|
getProcessorStatus(
|
|
769
780
|
variables?: Types.GetProcessorStatusQueryVariables,
|
|
770
781
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
@@ -4565,6 +4565,184 @@ export type CurrentTokenPendingClaimsStreamCursorValueInput = {
|
|
|
4565
4565
|
token_data_id_hash?: InputMaybe<Scalars["String"]["input"]>;
|
|
4566
4566
|
};
|
|
4567
4567
|
|
|
4568
|
+
/** columns and relationships of "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
4569
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamed = {
|
|
4570
|
+
amount?: Maybe<Scalars["numeric"]["output"]>;
|
|
4571
|
+
asset_type?: Maybe<Scalars["String"]["output"]>;
|
|
4572
|
+
is_frozen: Scalars["Boolean"]["output"];
|
|
4573
|
+
is_primary?: Maybe<Scalars["Boolean"]["output"]>;
|
|
4574
|
+
last_transaction_timestamp?: Maybe<Scalars["timestamp"]["output"]>;
|
|
4575
|
+
last_transaction_version?: Maybe<Scalars["bigint"]["output"]>;
|
|
4576
|
+
/** An object relationship */
|
|
4577
|
+
metadata?: Maybe<FungibleAssetMetadata>;
|
|
4578
|
+
owner_address: Scalars["String"]["output"];
|
|
4579
|
+
storage_id: Scalars["String"]["output"];
|
|
4580
|
+
};
|
|
4581
|
+
|
|
4582
|
+
/** aggregated selection of "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
4583
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedAggregate = {
|
|
4584
|
+
aggregate?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedAggregateFields>;
|
|
4585
|
+
nodes: Array<CurrentUnifiedFungibleAssetBalancesToBeRenamed>;
|
|
4586
|
+
};
|
|
4587
|
+
|
|
4588
|
+
/** aggregate fields of "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
4589
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedAggregateFields = {
|
|
4590
|
+
avg?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedAvgFields>;
|
|
4591
|
+
count: Scalars["Int"]["output"];
|
|
4592
|
+
max?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedMaxFields>;
|
|
4593
|
+
min?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedMinFields>;
|
|
4594
|
+
stddev?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedStddevFields>;
|
|
4595
|
+
stddev_pop?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedStddevPopFields>;
|
|
4596
|
+
stddev_samp?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedStddevSampFields>;
|
|
4597
|
+
sum?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedSumFields>;
|
|
4598
|
+
var_pop?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedVarPopFields>;
|
|
4599
|
+
var_samp?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedVarSampFields>;
|
|
4600
|
+
variance?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedVarianceFields>;
|
|
4601
|
+
};
|
|
4602
|
+
|
|
4603
|
+
/** aggregate fields of "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
4604
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedAggregateFieldsCountArgs = {
|
|
4605
|
+
columns?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedSelectColumn>>;
|
|
4606
|
+
distinct?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
4607
|
+
};
|
|
4608
|
+
|
|
4609
|
+
/** aggregate avg on columns */
|
|
4610
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedAvgFields = {
|
|
4611
|
+
amount?: Maybe<Scalars["Float"]["output"]>;
|
|
4612
|
+
last_transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4615
|
+
/** Boolean expression to filter rows from the table "current_unified_fungible_asset_balances_to_be_renamed". All fields are combined with a logical 'AND'. */
|
|
4616
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp = {
|
|
4617
|
+
_and?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>>;
|
|
4618
|
+
_not?: InputMaybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>;
|
|
4619
|
+
_or?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>>;
|
|
4620
|
+
amount?: InputMaybe<NumericComparisonExp>;
|
|
4621
|
+
asset_type?: InputMaybe<StringComparisonExp>;
|
|
4622
|
+
is_frozen?: InputMaybe<BooleanComparisonExp>;
|
|
4623
|
+
is_primary?: InputMaybe<BooleanComparisonExp>;
|
|
4624
|
+
last_transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
|
|
4625
|
+
last_transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
4626
|
+
metadata?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
4627
|
+
owner_address?: InputMaybe<StringComparisonExp>;
|
|
4628
|
+
storage_id?: InputMaybe<StringComparisonExp>;
|
|
4629
|
+
};
|
|
4630
|
+
|
|
4631
|
+
/** aggregate max on columns */
|
|
4632
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedMaxFields = {
|
|
4633
|
+
amount?: Maybe<Scalars["numeric"]["output"]>;
|
|
4634
|
+
asset_type?: Maybe<Scalars["String"]["output"]>;
|
|
4635
|
+
last_transaction_timestamp?: Maybe<Scalars["timestamp"]["output"]>;
|
|
4636
|
+
last_transaction_version?: Maybe<Scalars["bigint"]["output"]>;
|
|
4637
|
+
owner_address?: Maybe<Scalars["String"]["output"]>;
|
|
4638
|
+
storage_id?: Maybe<Scalars["String"]["output"]>;
|
|
4639
|
+
};
|
|
4640
|
+
|
|
4641
|
+
/** aggregate min on columns */
|
|
4642
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedMinFields = {
|
|
4643
|
+
amount?: Maybe<Scalars["numeric"]["output"]>;
|
|
4644
|
+
asset_type?: Maybe<Scalars["String"]["output"]>;
|
|
4645
|
+
last_transaction_timestamp?: Maybe<Scalars["timestamp"]["output"]>;
|
|
4646
|
+
last_transaction_version?: Maybe<Scalars["bigint"]["output"]>;
|
|
4647
|
+
owner_address?: Maybe<Scalars["String"]["output"]>;
|
|
4648
|
+
storage_id?: Maybe<Scalars["String"]["output"]>;
|
|
4649
|
+
};
|
|
4650
|
+
|
|
4651
|
+
/** Ordering options when selecting data from "current_unified_fungible_asset_balances_to_be_renamed". */
|
|
4652
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedOrderBy = {
|
|
4653
|
+
amount?: InputMaybe<OrderBy>;
|
|
4654
|
+
asset_type?: InputMaybe<OrderBy>;
|
|
4655
|
+
is_frozen?: InputMaybe<OrderBy>;
|
|
4656
|
+
is_primary?: InputMaybe<OrderBy>;
|
|
4657
|
+
last_transaction_timestamp?: InputMaybe<OrderBy>;
|
|
4658
|
+
last_transaction_version?: InputMaybe<OrderBy>;
|
|
4659
|
+
metadata?: InputMaybe<FungibleAssetMetadataOrderBy>;
|
|
4660
|
+
owner_address?: InputMaybe<OrderBy>;
|
|
4661
|
+
storage_id?: InputMaybe<OrderBy>;
|
|
4662
|
+
};
|
|
4663
|
+
|
|
4664
|
+
/** select columns of table "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
4665
|
+
export enum CurrentUnifiedFungibleAssetBalancesToBeRenamedSelectColumn {
|
|
4666
|
+
/** column name */
|
|
4667
|
+
Amount = "amount",
|
|
4668
|
+
/** column name */
|
|
4669
|
+
AssetType = "asset_type",
|
|
4670
|
+
/** column name */
|
|
4671
|
+
IsFrozen = "is_frozen",
|
|
4672
|
+
/** column name */
|
|
4673
|
+
IsPrimary = "is_primary",
|
|
4674
|
+
/** column name */
|
|
4675
|
+
LastTransactionTimestamp = "last_transaction_timestamp",
|
|
4676
|
+
/** column name */
|
|
4677
|
+
LastTransactionVersion = "last_transaction_version",
|
|
4678
|
+
/** column name */
|
|
4679
|
+
OwnerAddress = "owner_address",
|
|
4680
|
+
/** column name */
|
|
4681
|
+
StorageId = "storage_id",
|
|
4682
|
+
}
|
|
4683
|
+
|
|
4684
|
+
/** aggregate stddev on columns */
|
|
4685
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedStddevFields = {
|
|
4686
|
+
amount?: Maybe<Scalars["Float"]["output"]>;
|
|
4687
|
+
last_transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
4688
|
+
};
|
|
4689
|
+
|
|
4690
|
+
/** aggregate stddev_pop on columns */
|
|
4691
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedStddevPopFields = {
|
|
4692
|
+
amount?: Maybe<Scalars["Float"]["output"]>;
|
|
4693
|
+
last_transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
4694
|
+
};
|
|
4695
|
+
|
|
4696
|
+
/** aggregate stddev_samp on columns */
|
|
4697
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedStddevSampFields = {
|
|
4698
|
+
amount?: Maybe<Scalars["Float"]["output"]>;
|
|
4699
|
+
last_transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
4700
|
+
};
|
|
4701
|
+
|
|
4702
|
+
/** Streaming cursor of the table "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
4703
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedStreamCursorInput = {
|
|
4704
|
+
/** Stream column input with initial value */
|
|
4705
|
+
initial_value: CurrentUnifiedFungibleAssetBalancesToBeRenamedStreamCursorValueInput;
|
|
4706
|
+
/** cursor ordering */
|
|
4707
|
+
ordering?: InputMaybe<CursorOrdering>;
|
|
4708
|
+
};
|
|
4709
|
+
|
|
4710
|
+
/** Initial value of the column from where the streaming should start */
|
|
4711
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedStreamCursorValueInput = {
|
|
4712
|
+
amount?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
4713
|
+
asset_type?: InputMaybe<Scalars["String"]["input"]>;
|
|
4714
|
+
is_frozen?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
4715
|
+
is_primary?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
4716
|
+
last_transaction_timestamp?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
4717
|
+
last_transaction_version?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
4718
|
+
owner_address?: InputMaybe<Scalars["String"]["input"]>;
|
|
4719
|
+
storage_id?: InputMaybe<Scalars["String"]["input"]>;
|
|
4720
|
+
};
|
|
4721
|
+
|
|
4722
|
+
/** aggregate sum on columns */
|
|
4723
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedSumFields = {
|
|
4724
|
+
amount?: Maybe<Scalars["numeric"]["output"]>;
|
|
4725
|
+
last_transaction_version?: Maybe<Scalars["bigint"]["output"]>;
|
|
4726
|
+
};
|
|
4727
|
+
|
|
4728
|
+
/** aggregate var_pop on columns */
|
|
4729
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedVarPopFields = {
|
|
4730
|
+
amount?: Maybe<Scalars["Float"]["output"]>;
|
|
4731
|
+
last_transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
4732
|
+
};
|
|
4733
|
+
|
|
4734
|
+
/** aggregate var_samp on columns */
|
|
4735
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedVarSampFields = {
|
|
4736
|
+
amount?: Maybe<Scalars["Float"]["output"]>;
|
|
4737
|
+
last_transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
4738
|
+
};
|
|
4739
|
+
|
|
4740
|
+
/** aggregate variance on columns */
|
|
4741
|
+
export type CurrentUnifiedFungibleAssetBalancesToBeRenamedVarianceFields = {
|
|
4742
|
+
amount?: Maybe<Scalars["Float"]["output"]>;
|
|
4743
|
+
last_transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
4744
|
+
};
|
|
4745
|
+
|
|
4568
4746
|
/** ordering argument of a cursor */
|
|
4569
4747
|
export enum CursorOrdering {
|
|
4570
4748
|
/** ascending ordering of the cursor */
|
|
@@ -5636,19 +5814,19 @@ export type LedgerInfosStreamCursorValueInput = {
|
|
|
5636
5814
|
chain_id?: InputMaybe<Scalars["bigint"]["input"]>;
|
|
5637
5815
|
};
|
|
5638
5816
|
|
|
5639
|
-
/** columns and relationships of "move_resources" */
|
|
5817
|
+
/** columns and relationships of "legacy_migration_v1.move_resources" */
|
|
5640
5818
|
export type MoveResources = {
|
|
5641
|
-
address
|
|
5642
|
-
transaction_version
|
|
5819
|
+
address?: Maybe<Scalars["String"]["output"]>;
|
|
5820
|
+
transaction_version?: Maybe<Scalars["bigint"]["output"]>;
|
|
5643
5821
|
};
|
|
5644
5822
|
|
|
5645
|
-
/** aggregated selection of "move_resources" */
|
|
5823
|
+
/** aggregated selection of "legacy_migration_v1.move_resources" */
|
|
5646
5824
|
export type MoveResourcesAggregate = {
|
|
5647
5825
|
aggregate?: Maybe<MoveResourcesAggregateFields>;
|
|
5648
5826
|
nodes: Array<MoveResources>;
|
|
5649
5827
|
};
|
|
5650
5828
|
|
|
5651
|
-
/** aggregate fields of "move_resources" */
|
|
5829
|
+
/** aggregate fields of "legacy_migration_v1.move_resources" */
|
|
5652
5830
|
export type MoveResourcesAggregateFields = {
|
|
5653
5831
|
avg?: Maybe<MoveResourcesAvgFields>;
|
|
5654
5832
|
count: Scalars["Int"]["output"];
|
|
@@ -5663,7 +5841,7 @@ export type MoveResourcesAggregateFields = {
|
|
|
5663
5841
|
variance?: Maybe<MoveResourcesVarianceFields>;
|
|
5664
5842
|
};
|
|
5665
5843
|
|
|
5666
|
-
/** aggregate fields of "move_resources" */
|
|
5844
|
+
/** aggregate fields of "legacy_migration_v1.move_resources" */
|
|
5667
5845
|
export type MoveResourcesAggregateFieldsCountArgs = {
|
|
5668
5846
|
columns?: InputMaybe<Array<MoveResourcesSelectColumn>>;
|
|
5669
5847
|
distinct?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
@@ -5674,7 +5852,7 @@ export type MoveResourcesAvgFields = {
|
|
|
5674
5852
|
transaction_version?: Maybe<Scalars["Float"]["output"]>;
|
|
5675
5853
|
};
|
|
5676
5854
|
|
|
5677
|
-
/** Boolean expression to filter rows from the table "move_resources". All fields are combined with a logical 'AND'. */
|
|
5855
|
+
/** Boolean expression to filter rows from the table "legacy_migration_v1.move_resources". All fields are combined with a logical 'AND'. */
|
|
5678
5856
|
export type MoveResourcesBoolExp = {
|
|
5679
5857
|
_and?: InputMaybe<Array<MoveResourcesBoolExp>>;
|
|
5680
5858
|
_not?: InputMaybe<MoveResourcesBoolExp>;
|
|
@@ -5695,13 +5873,13 @@ export type MoveResourcesMinFields = {
|
|
|
5695
5873
|
transaction_version?: Maybe<Scalars["bigint"]["output"]>;
|
|
5696
5874
|
};
|
|
5697
5875
|
|
|
5698
|
-
/** Ordering options when selecting data from "move_resources". */
|
|
5876
|
+
/** Ordering options when selecting data from "legacy_migration_v1.move_resources". */
|
|
5699
5877
|
export type MoveResourcesOrderBy = {
|
|
5700
5878
|
address?: InputMaybe<OrderBy>;
|
|
5701
5879
|
transaction_version?: InputMaybe<OrderBy>;
|
|
5702
5880
|
};
|
|
5703
5881
|
|
|
5704
|
-
/** select columns of table "move_resources" */
|
|
5882
|
+
/** select columns of table "legacy_migration_v1.move_resources" */
|
|
5705
5883
|
export enum MoveResourcesSelectColumn {
|
|
5706
5884
|
/** column name */
|
|
5707
5885
|
Address = "address",
|
|
@@ -7081,6 +7259,12 @@ export type QueryRoot = {
|
|
|
7081
7259
|
current_token_pending_claims: Array<CurrentTokenPendingClaims>;
|
|
7082
7260
|
/** fetch data from the table: "current_token_pending_claims" using primary key columns */
|
|
7083
7261
|
current_token_pending_claims_by_pk?: Maybe<CurrentTokenPendingClaims>;
|
|
7262
|
+
/** fetch data from the table: "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
7263
|
+
current_unified_fungible_asset_balances_to_be_renamed: Array<CurrentUnifiedFungibleAssetBalancesToBeRenamed>;
|
|
7264
|
+
/** fetch aggregated fields from the table: "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
7265
|
+
current_unified_fungible_asset_balances_to_be_renamed_aggregate: CurrentUnifiedFungibleAssetBalancesToBeRenamedAggregate;
|
|
7266
|
+
/** fetch data from the table: "current_unified_fungible_asset_balances_to_be_renamed" using primary key columns */
|
|
7267
|
+
current_unified_fungible_asset_balances_to_be_renamed_by_pk?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamed>;
|
|
7084
7268
|
/** An array relationship */
|
|
7085
7269
|
delegated_staking_activities: Array<DelegatedStakingActivities>;
|
|
7086
7270
|
/** fetch data from the table: "delegated_staking_activities" using primary key columns */
|
|
@@ -7119,9 +7303,9 @@ export type QueryRoot = {
|
|
|
7119
7303
|
ledger_infos: Array<LedgerInfos>;
|
|
7120
7304
|
/** fetch data from the table: "ledger_infos" using primary key columns */
|
|
7121
7305
|
ledger_infos_by_pk?: Maybe<LedgerInfos>;
|
|
7122
|
-
/** fetch data from the table: "move_resources" */
|
|
7306
|
+
/** fetch data from the table: "legacy_migration_v1.move_resources" */
|
|
7123
7307
|
move_resources: Array<MoveResources>;
|
|
7124
|
-
/** fetch aggregated fields from the table: "move_resources" */
|
|
7308
|
+
/** fetch aggregated fields from the table: "legacy_migration_v1.move_resources" */
|
|
7125
7309
|
move_resources_aggregate: MoveResourcesAggregate;
|
|
7126
7310
|
/** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" */
|
|
7127
7311
|
nft_marketplace_v2_current_nft_marketplace_auctions: Array<NftMarketplaceV2CurrentNftMarketplaceAuctions>;
|
|
@@ -7628,6 +7812,26 @@ export type QueryRootCurrentTokenPendingClaimsByPkArgs = {
|
|
|
7628
7812
|
token_data_id_hash: Scalars["String"]["input"];
|
|
7629
7813
|
};
|
|
7630
7814
|
|
|
7815
|
+
export type QueryRootCurrentUnifiedFungibleAssetBalancesToBeRenamedArgs = {
|
|
7816
|
+
distinct_on?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedSelectColumn>>;
|
|
7817
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7818
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7819
|
+
order_by?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedOrderBy>>;
|
|
7820
|
+
where?: InputMaybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>;
|
|
7821
|
+
};
|
|
7822
|
+
|
|
7823
|
+
export type QueryRootCurrentUnifiedFungibleAssetBalancesToBeRenamedAggregateArgs = {
|
|
7824
|
+
distinct_on?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedSelectColumn>>;
|
|
7825
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7826
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7827
|
+
order_by?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedOrderBy>>;
|
|
7828
|
+
where?: InputMaybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>;
|
|
7829
|
+
};
|
|
7830
|
+
|
|
7831
|
+
export type QueryRootCurrentUnifiedFungibleAssetBalancesToBeRenamedByPkArgs = {
|
|
7832
|
+
storage_id: Scalars["String"]["input"];
|
|
7833
|
+
};
|
|
7834
|
+
|
|
7631
7835
|
export type QueryRootDelegatedStakingActivitiesArgs = {
|
|
7632
7836
|
distinct_on?: InputMaybe<Array<DelegatedStakingActivitiesSelectColumn>>;
|
|
7633
7837
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
@@ -8318,6 +8522,14 @@ export type SubscriptionRoot = {
|
|
|
8318
8522
|
current_token_pending_claims_by_pk?: Maybe<CurrentTokenPendingClaims>;
|
|
8319
8523
|
/** fetch data from the table in a streaming manner: "current_token_pending_claims" */
|
|
8320
8524
|
current_token_pending_claims_stream: Array<CurrentTokenPendingClaims>;
|
|
8525
|
+
/** fetch data from the table: "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
8526
|
+
current_unified_fungible_asset_balances_to_be_renamed: Array<CurrentUnifiedFungibleAssetBalancesToBeRenamed>;
|
|
8527
|
+
/** fetch aggregated fields from the table: "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
8528
|
+
current_unified_fungible_asset_balances_to_be_renamed_aggregate: CurrentUnifiedFungibleAssetBalancesToBeRenamedAggregate;
|
|
8529
|
+
/** fetch data from the table: "current_unified_fungible_asset_balances_to_be_renamed" using primary key columns */
|
|
8530
|
+
current_unified_fungible_asset_balances_to_be_renamed_by_pk?: Maybe<CurrentUnifiedFungibleAssetBalancesToBeRenamed>;
|
|
8531
|
+
/** fetch data from the table in a streaming manner: "current_unified_fungible_asset_balances_to_be_renamed" */
|
|
8532
|
+
current_unified_fungible_asset_balances_to_be_renamed_stream: Array<CurrentUnifiedFungibleAssetBalancesToBeRenamed>;
|
|
8321
8533
|
/** An array relationship */
|
|
8322
8534
|
delegated_staking_activities: Array<DelegatedStakingActivities>;
|
|
8323
8535
|
/** fetch data from the table: "delegated_staking_activities" using primary key columns */
|
|
@@ -8374,11 +8586,11 @@ export type SubscriptionRoot = {
|
|
|
8374
8586
|
ledger_infos_by_pk?: Maybe<LedgerInfos>;
|
|
8375
8587
|
/** fetch data from the table in a streaming manner: "ledger_infos" */
|
|
8376
8588
|
ledger_infos_stream: Array<LedgerInfos>;
|
|
8377
|
-
/** fetch data from the table: "move_resources" */
|
|
8589
|
+
/** fetch data from the table: "legacy_migration_v1.move_resources" */
|
|
8378
8590
|
move_resources: Array<MoveResources>;
|
|
8379
|
-
/** fetch aggregated fields from the table: "move_resources" */
|
|
8591
|
+
/** fetch aggregated fields from the table: "legacy_migration_v1.move_resources" */
|
|
8380
8592
|
move_resources_aggregate: MoveResourcesAggregate;
|
|
8381
|
-
/** fetch data from the table in a streaming manner: "move_resources" */
|
|
8593
|
+
/** fetch data from the table in a streaming manner: "legacy_migration_v1.move_resources" */
|
|
8382
8594
|
move_resources_stream: Array<MoveResources>;
|
|
8383
8595
|
/** fetch data from the table: "nft_marketplace_v2.current_nft_marketplace_auctions" */
|
|
8384
8596
|
nft_marketplace_v2_current_nft_marketplace_auctions: Array<NftMarketplaceV2CurrentNftMarketplaceAuctions>;
|
|
@@ -9095,6 +9307,32 @@ export type SubscriptionRootCurrentTokenPendingClaimsStreamArgs = {
|
|
|
9095
9307
|
where?: InputMaybe<CurrentTokenPendingClaimsBoolExp>;
|
|
9096
9308
|
};
|
|
9097
9309
|
|
|
9310
|
+
export type SubscriptionRootCurrentUnifiedFungibleAssetBalancesToBeRenamedArgs = {
|
|
9311
|
+
distinct_on?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedSelectColumn>>;
|
|
9312
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
9313
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
9314
|
+
order_by?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedOrderBy>>;
|
|
9315
|
+
where?: InputMaybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>;
|
|
9316
|
+
};
|
|
9317
|
+
|
|
9318
|
+
export type SubscriptionRootCurrentUnifiedFungibleAssetBalancesToBeRenamedAggregateArgs = {
|
|
9319
|
+
distinct_on?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedSelectColumn>>;
|
|
9320
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
9321
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
9322
|
+
order_by?: InputMaybe<Array<CurrentUnifiedFungibleAssetBalancesToBeRenamedOrderBy>>;
|
|
9323
|
+
where?: InputMaybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>;
|
|
9324
|
+
};
|
|
9325
|
+
|
|
9326
|
+
export type SubscriptionRootCurrentUnifiedFungibleAssetBalancesToBeRenamedByPkArgs = {
|
|
9327
|
+
storage_id: Scalars["String"]["input"];
|
|
9328
|
+
};
|
|
9329
|
+
|
|
9330
|
+
export type SubscriptionRootCurrentUnifiedFungibleAssetBalancesToBeRenamedStreamArgs = {
|
|
9331
|
+
batch_size: Scalars["Int"]["input"];
|
|
9332
|
+
cursor: Array<InputMaybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedStreamCursorInput>>;
|
|
9333
|
+
where?: InputMaybe<CurrentUnifiedFungibleAssetBalancesToBeRenamedBoolExp>;
|
|
9334
|
+
};
|
|
9335
|
+
|
|
9098
9336
|
export type SubscriptionRootDelegatedStakingActivitiesArgs = {
|
|
9099
9337
|
distinct_on?: InputMaybe<Array<DelegatedStakingActivitiesSelectColumn>>;
|
|
9100
9338
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
package/src/types/indexer.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import {
|
|
15
15
|
GetAccountCoinsDataQuery,
|
|
16
|
-
|
|
16
|
+
GetObjectDataQuery,
|
|
17
17
|
GetAccountOwnedTokensQuery,
|
|
18
18
|
GetAccountOwnedTokensFromCollectionQuery,
|
|
19
19
|
GetAccountCollectionsWithOwnedTokensQuery,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
* These types are used as the return type when calling a sdk api function
|
|
45
45
|
* that calls the function that queries the server (usually under the /api/ folder)
|
|
46
46
|
*/
|
|
47
|
-
export type
|
|
47
|
+
export type GetObjectDataQueryResponse = GetObjectDataQuery["current_objects"];
|
|
48
48
|
|
|
49
49
|
export type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
|
|
50
50
|
|
package/src/utils/const.ts
CHANGED