@aptos-labs/ts-sdk 1.14.0-zeta.3 → 1.15.0-win.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-u9wEan9p.d.ts → accountAddress-ccLvlUQe.d.ts} +22 -49
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +103 -550
- package/dist/common/index.js +55 -26
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-9zBaZEnp.d.mts → Ed25519Account-B1VMJOY2.d.mts} +1 -1
- package/dist/esm/account/Account.d.mts +2 -2
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +2 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +7 -12
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +2 -8
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.d.mts +2 -2
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +2 -2
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +5 -10
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +0 -20
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.d.mts +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +2 -2
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +2 -2
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +2 -27
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +3 -8
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +84 -0
- package/dist/esm/api/table.mjs +2 -0
- package/dist/esm/api/transaction.d.mts +2 -2
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/deserializer.d.mts +0 -26
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +0 -2
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-3CUVYW32.mjs → chunk-2X7A4HUS.mjs} +2 -2
- package/dist/esm/chunk-2XK53QFA.mjs +2 -0
- package/dist/esm/{chunk-WM2NCYZL.mjs.map → chunk-2XK53QFA.mjs.map} +1 -1
- package/dist/esm/{chunk-Y4SSUCPJ.mjs → chunk-2YZSEM2G.mjs} +2 -2
- package/dist/esm/{chunk-ZNEBMSNC.mjs → chunk-35EWRSDK.mjs} +2 -2
- package/dist/esm/{chunk-TVRJ3M7B.mjs → chunk-36QXVFR5.mjs} +2 -2
- package/dist/esm/{chunk-TVRJ3M7B.mjs.map → chunk-36QXVFR5.mjs.map} +1 -1
- package/dist/esm/chunk-3HSXKDOC.mjs +2 -0
- package/dist/esm/chunk-3HSXKDOC.mjs.map +1 -0
- package/dist/esm/chunk-3N6N3KOS.mjs +2 -0
- package/dist/esm/{chunk-HYDDIAJ6.mjs.map → chunk-3N6N3KOS.mjs.map} +1 -1
- package/dist/esm/{chunk-SLI3KELH.mjs → chunk-477G7LHJ.mjs} +2 -2
- package/dist/esm/chunk-4NHWV5AI.mjs +2 -0
- package/dist/esm/{chunk-7STYQ5ZE.mjs → chunk-5EN52MUT.mjs} +2 -2
- package/dist/esm/{chunk-P7JMD7KZ.mjs → chunk-5VIESFOC.mjs} +2 -2
- package/dist/esm/{chunk-TE3WIJ26.mjs → chunk-5YLAWRI2.mjs} +2 -2
- package/dist/esm/chunk-6IFMQ5AS.mjs +2 -0
- package/dist/esm/chunk-6IFMQ5AS.mjs.map +1 -0
- package/dist/esm/{chunk-3CMS2KOX.mjs → chunk-6JLYD5Q2.mjs} +2 -2
- package/dist/esm/{chunk-HMFL7AOJ.mjs → chunk-6XWDDCQD.mjs} +2 -2
- package/dist/esm/{chunk-CS7B3FVO.mjs → chunk-7NEETXEA.mjs} +2 -2
- package/dist/esm/chunk-7VRZLDIJ.mjs +2 -0
- package/dist/esm/{chunk-24ZOKI52.mjs → chunk-ACG4ZGRQ.mjs} +2 -2
- package/dist/esm/chunk-AQAH67IV.mjs +2 -0
- package/dist/esm/chunk-B7X6PSE7.mjs +2 -0
- package/dist/esm/{chunk-AOCNYMMX.mjs → chunk-BCUSI3N6.mjs} +2 -2
- package/dist/esm/{chunk-HYU23YVP.mjs → chunk-BHLICYAI.mjs} +2 -2
- package/dist/esm/chunk-BO2TLWNT.mjs +2 -0
- package/dist/esm/chunk-CEHCDA3G.mjs +2 -0
- package/dist/esm/chunk-CJDEPZ4J.mjs +2 -0
- package/dist/esm/{chunk-NBEXLW7P.mjs.map → chunk-CJDEPZ4J.mjs.map} +1 -1
- package/dist/esm/{chunk-WWGROAKX.mjs → chunk-CWUH4PNH.mjs} +2 -2
- package/dist/esm/chunk-CYNQRMO5.mjs +2 -0
- package/dist/esm/chunk-CYNQRMO5.mjs.map +1 -0
- package/dist/esm/chunk-DLAIJ2UM.mjs +2 -0
- package/dist/esm/chunk-DLAIJ2UM.mjs.map +1 -0
- package/dist/esm/{chunk-DD2VWOMZ.mjs → chunk-E2NVC2VR.mjs} +2 -2
- package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
- package/dist/esm/{chunk-EB7AI4B4.mjs → chunk-G56GPLTB.mjs} +2 -2
- package/dist/esm/{chunk-RKHPXZM6.mjs → chunk-GHYE26Q5.mjs} +2 -2
- package/dist/esm/{chunk-RKHPXZM6.mjs.map → chunk-GHYE26Q5.mjs.map} +1 -1
- package/dist/esm/{chunk-7IMWGGA6.mjs → chunk-GIAABV7R.mjs} +2 -2
- package/dist/esm/{chunk-KMKSA7LM.mjs → chunk-GKJ2NJG5.mjs} +2 -2
- package/dist/esm/{chunk-NC5HHEEM.mjs → chunk-GM56MMNJ.mjs} +2 -2
- package/dist/esm/{chunk-GQ6HIKZT.mjs → chunk-HMARHACL.mjs} +2 -2
- package/dist/esm/chunk-HNEAPYNI.mjs +2 -0
- package/dist/esm/{chunk-P2WALKSW.mjs → chunk-HSJTQLI2.mjs} +2 -2
- package/dist/esm/chunk-HYCGMFC2.mjs +2 -0
- package/dist/esm/chunk-HYCGMFC2.mjs.map +1 -0
- package/dist/esm/chunk-IENCDVPF.mjs +2 -0
- package/dist/esm/chunk-IENCDVPF.mjs.map +1 -0
- package/dist/esm/{chunk-23MNZ5LZ.mjs → chunk-IZQV2SU6.mjs} +2 -2
- package/dist/esm/chunk-J6OFSYUA.mjs +2 -0
- package/dist/esm/chunk-J6OFSYUA.mjs.map +1 -0
- package/dist/esm/chunk-JB5H65CE.mjs +2 -0
- package/dist/esm/chunk-JB5H65CE.mjs.map +1 -0
- package/dist/esm/{chunk-XZGQMZ2H.mjs → chunk-JFIAWBCK.mjs} +2 -2
- package/dist/esm/chunk-JQIGQMNZ.mjs +2 -0
- package/dist/esm/chunk-JQIGQMNZ.mjs.map +1 -0
- package/dist/esm/chunk-K7HX7JQH.mjs +2 -0
- package/dist/esm/chunk-K7HX7JQH.mjs.map +1 -0
- package/dist/esm/{chunk-HGZGTBA4.mjs → chunk-KAGLWBIJ.mjs} +2 -2
- package/dist/esm/chunk-LG7RJQ57.mjs +2 -0
- package/dist/esm/{chunk-HHVAU5HU.mjs → chunk-MCRRHBFQ.mjs} +2 -2
- package/dist/esm/{chunk-PFFAQZHT.mjs → chunk-MJPUASSD.mjs} +2 -2
- package/dist/esm/{chunk-7XYECSW6.mjs → chunk-MQI2IE6Y.mjs} +2 -2
- package/dist/esm/chunk-N3U47Y6Y.mjs +2 -0
- package/dist/esm/{chunk-L5WUYZ35.mjs → chunk-NZETF6Z4.mjs} +2 -2
- package/dist/esm/chunk-OWW6SIDP.mjs +2 -0
- package/dist/esm/chunk-OWW6SIDP.mjs.map +1 -0
- package/dist/esm/{chunk-CB6CNNM2.mjs → chunk-P6GWG2CY.mjs} +2 -2
- package/dist/esm/chunk-PF57EOJY.mjs +2 -0
- package/dist/esm/{chunk-JLWKIYHV.mjs → chunk-PIVZMT5D.mjs} +2 -2
- package/dist/esm/{chunk-R52BRP36.mjs → chunk-PLXGSUZA.mjs} +2 -2
- package/dist/esm/{chunk-AHNE2QA3.mjs → chunk-PPO4IXE4.mjs} +2 -2
- package/dist/esm/{chunk-PMPTAPM3.mjs → chunk-QIHR7HD6.mjs} +2 -2
- package/dist/esm/{chunk-BTLFW3YY.mjs → chunk-QQ5PHEJF.mjs} +2 -2
- package/dist/esm/{chunk-T23OVRNF.mjs → chunk-QRS4DGP3.mjs} +2 -2
- package/dist/esm/{chunk-T23OVRNF.mjs.map → chunk-QRS4DGP3.mjs.map} +1 -1
- package/dist/esm/{chunk-LDQ6JFEF.mjs → chunk-QSHLNSUP.mjs} +2 -2
- package/dist/esm/{chunk-LDQ6JFEF.mjs.map → chunk-QSHLNSUP.mjs.map} +1 -1
- package/dist/esm/chunk-ROXFCLDT.mjs +2 -0
- package/dist/esm/chunk-RTSWVT2Q.mjs +2 -0
- package/dist/esm/chunk-RTSWVT2Q.mjs.map +1 -0
- package/dist/esm/{chunk-Y33CIIZX.mjs → chunk-RVWYURXG.mjs} +2 -2
- package/dist/esm/{chunk-U5C2PXC6.mjs → chunk-RYD6HRW7.mjs} +2 -2
- package/dist/esm/chunk-S2VSJJRJ.mjs +2 -0
- package/dist/esm/chunk-S2VSJJRJ.mjs.map +1 -0
- package/dist/esm/{chunk-S4SEFF4K.mjs → chunk-S3EDNXZE.mjs} +46 -17
- package/dist/esm/chunk-S3EDNXZE.mjs.map +1 -0
- package/dist/esm/chunk-SRDIYE3M.mjs +2 -0
- package/dist/esm/{chunk-6RBUXB5I.mjs.map → chunk-SRDIYE3M.mjs.map} +1 -1
- package/dist/esm/{chunk-SI7MPP6G.mjs → chunk-T2AGN5YT.mjs} +2 -2
- package/dist/esm/chunk-TGQARO3F.mjs +2 -0
- package/dist/esm/chunk-TGQARO3F.mjs.map +1 -0
- package/dist/esm/chunk-TM7NDDT3.mjs +2 -0
- package/dist/esm/chunk-TM7NDDT3.mjs.map +1 -0
- package/dist/esm/{chunk-HSFG2AIK.mjs → chunk-TT2XR5ZI.mjs} +2 -2
- package/dist/esm/{chunk-3VGX3TXH.mjs → chunk-U3YYSIIT.mjs} +2 -2
- package/dist/esm/chunk-UGPALAPN.mjs +2 -0
- package/dist/esm/{chunk-7SIQDOYY.mjs → chunk-UKSRF2Q3.mjs} +2 -2
- package/dist/esm/chunk-UO3NZ5AH.mjs +1 -0
- package/dist/esm/{chunk-TICM455H.mjs → chunk-UPSCPEEE.mjs} +2 -2
- package/dist/esm/chunk-UVSRX4SV.mjs +1 -0
- package/dist/esm/chunk-WXWWYH73.mjs +2 -0
- package/dist/esm/chunk-WXWWYH73.mjs.map +1 -0
- package/dist/esm/{chunk-O3PLAAN7.mjs → chunk-XBHFMNYB.mjs} +2 -2
- package/dist/esm/{chunk-GNNNICLW.mjs → chunk-XD46HTI2.mjs} +2 -2
- package/dist/esm/{chunk-6WIB3GGF.mjs → chunk-XFSDV3ND.mjs} +2 -2
- package/dist/esm/chunk-YMB2XW2O.mjs +2 -0
- package/dist/esm/{chunk-YNNPWCF6.mjs.map → chunk-YMB2XW2O.mjs.map} +1 -1
- package/dist/esm/{chunk-ZPMS2Q37.mjs → chunk-ZBXOX3S7.mjs} +2 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/move.mjs +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +1 -2
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +1 -3
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/client/types.d.mts +1 -5
- package/dist/esm/client/types.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.d.mts +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/common.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.d.mts +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +1 -4
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.d.mts +1 -1
- package/dist/esm/core/crypto/publicKey.d.mts +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.d.mts +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.d.mts +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +1 -4
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +9 -14
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +2 -2
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +2 -2
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.d.mts +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +2 -2
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +2 -2
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.d.mts +2 -8
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +31 -0
- package/dist/esm/internal/table.mjs +2 -0
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +2 -2
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.d.mts +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.d.mts +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.d.mts +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.d.mts +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.d.mts +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.d.mts +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.d.mts +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.d.mts +2 -2
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +2 -2
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/transactions/types.d.mts +1 -1
- package/dist/esm/types/generated/operations.d.mts +31 -2
- package/dist/esm/types/generated/queries.d.mts +6 -2
- package/dist/esm/types/generated/queries.mjs +1 -1
- package/dist/esm/types/generated/types.d.mts +212 -7
- 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 +4 -20
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +4 -2
- package/dist/esm/utils/apiEndpoints.d.mts +1 -3
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/const.d.mts +1 -3
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/index.d.mts +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +3 -11
- package/src/account/MultiKeyAccount.ts +0 -10
- package/src/account/index.ts +0 -2
- package/src/api/aptos.ts +5 -5
- package/src/api/aptosConfig.ts +1 -46
- package/src/api/general.ts +0 -26
- package/src/api/table.ts +108 -0
- package/src/bcs/deserializer.ts +0 -40
- package/src/bcs/serializer.ts +0 -18
- package/src/cli/move.ts +1 -1
- package/src/client/core.ts +0 -8
- package/src/client/get.ts +0 -6
- package/src/client/post.ts +0 -12
- package/src/client/types.ts +1 -1
- package/src/core/crypto/index.ts +0 -2
- package/src/core/crypto/singleKey.ts +0 -11
- package/src/internal/account.ts +2 -1
- package/src/internal/general.ts +1 -20
- package/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql +1 -0
- package/src/internal/queries/getTableItemsData.graphql +15 -0
- package/src/internal/queries/getTableItemsMetadata.graphql +12 -0
- package/src/internal/table.ts +82 -0
- package/src/internal/transactionSubmission.ts +7 -20
- package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -16
- package/src/types/generated/operations.ts +29 -0
- package/src/types/generated/queries.ts +59 -0
- package/src/types/generated/types.ts +223 -4
- package/src/types/index.ts +0 -22
- package/src/types/indexer.ts +4 -0
- package/src/utils/apiEndpoints.ts +0 -14
- package/src/utils/const.ts +0 -2
- package/src/version.ts +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +0 -80
- package/dist/esm/account/EphemeralKeyPair.mjs +0 -2
- package/dist/esm/account/KeylessAccount.d.mts +0 -145
- package/dist/esm/account/KeylessAccount.mjs +0 -2
- package/dist/esm/api/keyless.d.mts +0 -81
- package/dist/esm/api/keyless.mjs +0 -2
- package/dist/esm/chunk-25H3DXTL.mjs +0 -2
- package/dist/esm/chunk-25H3DXTL.mjs.map +0 -1
- package/dist/esm/chunk-2ECWQRBB.mjs +0 -2
- package/dist/esm/chunk-2HD2G4AH.mjs +0 -2
- package/dist/esm/chunk-2HD2G4AH.mjs.map +0 -1
- package/dist/esm/chunk-3COVJN6Z.mjs +0 -2
- package/dist/esm/chunk-3COVJN6Z.mjs.map +0 -1
- package/dist/esm/chunk-3FVRXELT.mjs +0 -2
- package/dist/esm/chunk-3S3GIUQY.mjs +0 -2
- package/dist/esm/chunk-5XOFEQWC.mjs +0 -2
- package/dist/esm/chunk-6RBUXB5I.mjs +0 -2
- package/dist/esm/chunk-75J7H3XD.mjs +0 -2
- package/dist/esm/chunk-75J7H3XD.mjs.map +0 -1
- package/dist/esm/chunk-7KOC7VNK.mjs +0 -2
- package/dist/esm/chunk-7KOC7VNK.mjs.map +0 -1
- package/dist/esm/chunk-7Z6DYLCA.mjs +0 -1
- package/dist/esm/chunk-AJ7UC2G3.mjs +0 -2
- package/dist/esm/chunk-AJ7UC2G3.mjs.map +0 -1
- package/dist/esm/chunk-AQ4I7VVB.mjs +0 -1
- package/dist/esm/chunk-AQ4I7VVB.mjs.map +0 -1
- package/dist/esm/chunk-C3L4ETUF.mjs +0 -2
- package/dist/esm/chunk-CO53EOHE.mjs +0 -2
- package/dist/esm/chunk-CO53EOHE.mjs.map +0 -1
- package/dist/esm/chunk-COW5IGYC.mjs +0 -2
- package/dist/esm/chunk-FBPNHF54.mjs +0 -2
- package/dist/esm/chunk-FLYEALDB.mjs +0 -2
- package/dist/esm/chunk-FLYEALDB.mjs.map +0 -1
- package/dist/esm/chunk-H62IKYXG.mjs +0 -2
- package/dist/esm/chunk-HYDDIAJ6.mjs +0 -2
- package/dist/esm/chunk-JM2B5E2I.mjs +0 -2
- package/dist/esm/chunk-JM2B5E2I.mjs.map +0 -1
- package/dist/esm/chunk-JM544NRW.mjs +0 -2
- package/dist/esm/chunk-JM544NRW.mjs.map +0 -1
- package/dist/esm/chunk-MGOHPDX4.mjs +0 -2
- package/dist/esm/chunk-MOKAU77C.mjs +0 -2
- package/dist/esm/chunk-MOKAU77C.mjs.map +0 -1
- package/dist/esm/chunk-MWUJCP27.mjs +0 -2
- package/dist/esm/chunk-N466X3S6.mjs +0 -2
- package/dist/esm/chunk-N466X3S6.mjs.map +0 -1
- package/dist/esm/chunk-NBEXLW7P.mjs +0 -2
- package/dist/esm/chunk-PGCBIU33.mjs +0 -2
- package/dist/esm/chunk-PGCBIU33.mjs.map +0 -1
- package/dist/esm/chunk-PYUWGGAW.mjs +0 -2
- package/dist/esm/chunk-PYUWGGAW.mjs.map +0 -1
- package/dist/esm/chunk-RKTM5GBP.mjs +0 -2
- package/dist/esm/chunk-RKTM5GBP.mjs.map +0 -1
- package/dist/esm/chunk-S4SEFF4K.mjs.map +0 -1
- package/dist/esm/chunk-STYDBDYL.mjs +0 -2
- package/dist/esm/chunk-TJDC5PWD.mjs +0 -2
- package/dist/esm/chunk-UTXJOB3O.mjs +0 -2
- package/dist/esm/chunk-VL6EYA53.mjs +0 -2
- package/dist/esm/chunk-VL6EYA53.mjs.map +0 -1
- package/dist/esm/chunk-VPKPQBKL.mjs +0 -2
- package/dist/esm/chunk-VPKPQBKL.mjs.map +0 -1
- package/dist/esm/chunk-VSD2AWUR.mjs +0 -2
- package/dist/esm/chunk-VSD2AWUR.mjs.map +0 -1
- package/dist/esm/chunk-VT6XJSRO.mjs +0 -2
- package/dist/esm/chunk-VT6XJSRO.mjs.map +0 -1
- package/dist/esm/chunk-WM2NCYZL.mjs +0 -2
- package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
- package/dist/esm/chunk-YE5B2S5L.mjs.map +0 -1
- package/dist/esm/chunk-YGOJYDJA.mjs +0 -2
- package/dist/esm/chunk-YGOJYDJA.mjs.map +0 -1
- package/dist/esm/chunk-YNNPWCF6.mjs +0 -2
- package/dist/esm/chunk-YV7OBLK2.mjs +0 -2
- package/dist/esm/chunk-YV7OBLK2.mjs.map +0 -1
- package/dist/esm/chunk-ZKRG4C4U.mjs +0 -2
- package/dist/esm/chunk-ZKRG4C4U.mjs.map +0 -1
- package/dist/esm/core/crypto/ephemeral.d.mts +0 -73
- package/dist/esm/core/crypto/ephemeral.mjs +0 -2
- package/dist/esm/core/crypto/ephemeral.mjs.map +0 -1
- package/dist/esm/core/crypto/keyless.d.mts +0 -232
- package/dist/esm/core/crypto/keyless.mjs +0 -2
- package/dist/esm/core/crypto/keyless.mjs.map +0 -1
- package/dist/esm/core/crypto/poseidon.d.mts +0 -7
- package/dist/esm/core/crypto/poseidon.mjs +0 -2
- package/dist/esm/core/crypto/poseidon.mjs.map +0 -1
- package/dist/esm/core/crypto/proof.d.mts +0 -21
- package/dist/esm/core/crypto/proof.mjs +0 -2
- package/dist/esm/core/crypto/proof.mjs.map +0 -1
- package/dist/esm/internal/keyless.d.mts +0 -68
- package/dist/esm/internal/keyless.mjs +0 -2
- package/dist/esm/internal/keyless.mjs.map +0 -1
- package/dist/esm/types/keyless.d.mts +0 -69
- package/dist/esm/types/keyless.mjs +0 -2
- package/dist/esm/types/keyless.mjs.map +0 -1
- package/src/account/EphemeralKeyPair.ts +0 -161
- package/src/account/KeylessAccount.ts +0 -341
- package/src/api/keyless.ts +0 -48
- package/src/core/crypto/ephemeral.ts +0 -138
- package/src/core/crypto/keyless.ts +0 -453
- package/src/core/crypto/poseidon.ts +0 -134
- package/src/core/crypto/proof.ts +0 -16
- package/src/internal/keyless.ts +0 -119
- package/src/types/keyless.ts +0 -37
- /package/dist/esm/{account/EphemeralKeyPair.mjs.map → api/table.mjs.map} +0 -0
- /package/dist/esm/{chunk-3CUVYW32.mjs.map → chunk-2X7A4HUS.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y4SSUCPJ.mjs.map → chunk-2YZSEM2G.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZNEBMSNC.mjs.map → chunk-35EWRSDK.mjs.map} +0 -0
- /package/dist/esm/{chunk-SLI3KELH.mjs.map → chunk-477G7LHJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-COW5IGYC.mjs.map → chunk-4NHWV5AI.mjs.map} +0 -0
- /package/dist/esm/{chunk-7STYQ5ZE.mjs.map → chunk-5EN52MUT.mjs.map} +0 -0
- /package/dist/esm/{chunk-P7JMD7KZ.mjs.map → chunk-5VIESFOC.mjs.map} +0 -0
- /package/dist/esm/{chunk-TE3WIJ26.mjs.map → chunk-5YLAWRI2.mjs.map} +0 -0
- /package/dist/esm/{chunk-3CMS2KOX.mjs.map → chunk-6JLYD5Q2.mjs.map} +0 -0
- /package/dist/esm/{chunk-HMFL7AOJ.mjs.map → chunk-6XWDDCQD.mjs.map} +0 -0
- /package/dist/esm/{chunk-CS7B3FVO.mjs.map → chunk-7NEETXEA.mjs.map} +0 -0
- /package/dist/esm/{chunk-H62IKYXG.mjs.map → chunk-7VRZLDIJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-24ZOKI52.mjs.map → chunk-ACG4ZGRQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-3S3GIUQY.mjs.map → chunk-AQAH67IV.mjs.map} +0 -0
- /package/dist/esm/{chunk-MGOHPDX4.mjs.map → chunk-B7X6PSE7.mjs.map} +0 -0
- /package/dist/esm/{chunk-AOCNYMMX.mjs.map → chunk-BCUSI3N6.mjs.map} +0 -0
- /package/dist/esm/{chunk-HYU23YVP.mjs.map → chunk-BHLICYAI.mjs.map} +0 -0
- /package/dist/esm/{chunk-2ECWQRBB.mjs.map → chunk-BO2TLWNT.mjs.map} +0 -0
- /package/dist/esm/{chunk-3FVRXELT.mjs.map → chunk-CEHCDA3G.mjs.map} +0 -0
- /package/dist/esm/{chunk-WWGROAKX.mjs.map → chunk-CWUH4PNH.mjs.map} +0 -0
- /package/dist/esm/{chunk-DD2VWOMZ.mjs.map → chunk-E2NVC2VR.mjs.map} +0 -0
- /package/dist/esm/{chunk-TJDC5PWD.mjs.map → chunk-F7EMGK4M.mjs.map} +0 -0
- /package/dist/esm/{chunk-EB7AI4B4.mjs.map → chunk-G56GPLTB.mjs.map} +0 -0
- /package/dist/esm/{chunk-7IMWGGA6.mjs.map → chunk-GIAABV7R.mjs.map} +0 -0
- /package/dist/esm/{chunk-KMKSA7LM.mjs.map → chunk-GKJ2NJG5.mjs.map} +0 -0
- /package/dist/esm/{chunk-NC5HHEEM.mjs.map → chunk-GM56MMNJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-GQ6HIKZT.mjs.map → chunk-HMARHACL.mjs.map} +0 -0
- /package/dist/esm/{chunk-5XOFEQWC.mjs.map → chunk-HNEAPYNI.mjs.map} +0 -0
- /package/dist/esm/{chunk-P2WALKSW.mjs.map → chunk-HSJTQLI2.mjs.map} +0 -0
- /package/dist/esm/{chunk-23MNZ5LZ.mjs.map → chunk-IZQV2SU6.mjs.map} +0 -0
- /package/dist/esm/{chunk-XZGQMZ2H.mjs.map → chunk-JFIAWBCK.mjs.map} +0 -0
- /package/dist/esm/{chunk-HGZGTBA4.mjs.map → chunk-KAGLWBIJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-FBPNHF54.mjs.map → chunk-LG7RJQ57.mjs.map} +0 -0
- /package/dist/esm/{chunk-HHVAU5HU.mjs.map → chunk-MCRRHBFQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-PFFAQZHT.mjs.map → chunk-MJPUASSD.mjs.map} +0 -0
- /package/dist/esm/{chunk-7XYECSW6.mjs.map → chunk-MQI2IE6Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-C3L4ETUF.mjs.map → chunk-N3U47Y6Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-L5WUYZ35.mjs.map → chunk-NZETF6Z4.mjs.map} +0 -0
- /package/dist/esm/{chunk-CB6CNNM2.mjs.map → chunk-P6GWG2CY.mjs.map} +0 -0
- /package/dist/esm/{chunk-MWUJCP27.mjs.map → chunk-PF57EOJY.mjs.map} +0 -0
- /package/dist/esm/{chunk-JLWKIYHV.mjs.map → chunk-PIVZMT5D.mjs.map} +0 -0
- /package/dist/esm/{chunk-R52BRP36.mjs.map → chunk-PLXGSUZA.mjs.map} +0 -0
- /package/dist/esm/{chunk-AHNE2QA3.mjs.map → chunk-PPO4IXE4.mjs.map} +0 -0
- /package/dist/esm/{chunk-PMPTAPM3.mjs.map → chunk-QIHR7HD6.mjs.map} +0 -0
- /package/dist/esm/{chunk-BTLFW3YY.mjs.map → chunk-QQ5PHEJF.mjs.map} +0 -0
- /package/dist/esm/{chunk-UTXJOB3O.mjs.map → chunk-ROXFCLDT.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y33CIIZX.mjs.map → chunk-RVWYURXG.mjs.map} +0 -0
- /package/dist/esm/{chunk-U5C2PXC6.mjs.map → chunk-RYD6HRW7.mjs.map} +0 -0
- /package/dist/esm/{chunk-SI7MPP6G.mjs.map → chunk-T2AGN5YT.mjs.map} +0 -0
- /package/dist/esm/{chunk-HSFG2AIK.mjs.map → chunk-TT2XR5ZI.mjs.map} +0 -0
- /package/dist/esm/{chunk-3VGX3TXH.mjs.map → chunk-U3YYSIIT.mjs.map} +0 -0
- /package/dist/esm/{chunk-STYDBDYL.mjs.map → chunk-UGPALAPN.mjs.map} +0 -0
- /package/dist/esm/{chunk-7SIQDOYY.mjs.map → chunk-UKSRF2Q3.mjs.map} +0 -0
- /package/dist/esm/{account/KeylessAccount.mjs.map → chunk-UO3NZ5AH.mjs.map} +0 -0
- /package/dist/esm/{chunk-TICM455H.mjs.map → chunk-UPSCPEEE.mjs.map} +0 -0
- /package/dist/esm/{api/keyless.mjs.map → chunk-UVSRX4SV.mjs.map} +0 -0
- /package/dist/esm/{chunk-O3PLAAN7.mjs.map → chunk-XBHFMNYB.mjs.map} +0 -0
- /package/dist/esm/{chunk-GNNNICLW.mjs.map → chunk-XD46HTI2.mjs.map} +0 -0
- /package/dist/esm/{chunk-6WIB3GGF.mjs.map → chunk-XFSDV3ND.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZPMS2Q37.mjs.map → chunk-ZBXOX3S7.mjs.map} +0 -0
- /package/dist/esm/{chunk-7Z6DYLCA.mjs.map → internal/table.mjs.map} +0 -0
- /package/dist/esm/{publicKey-lq5djCIY.d.mts → publicKey-B3XRNhHO.d.mts} +0 -0
package/src/client/post.ts
CHANGED
|
@@ -135,15 +135,3 @@ export async function postAptosFaucet<Req extends {}, Res extends {}>(
|
|
|
135
135
|
},
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
export async function postAptosPepperService<Req extends {}, Res extends {}>(
|
|
140
|
-
options: PostAptosRequestOptions,
|
|
141
|
-
): Promise<AptosResponse<Req, Res>> {
|
|
142
|
-
return post<Req, Res>({ ...options, type: AptosApiType.PEPPER });
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export async function postAptosProvingService<Req extends {}, Res extends {}>(
|
|
146
|
-
options: PostAptosRequestOptions,
|
|
147
|
-
): Promise<AptosResponse<Req, Res>> {
|
|
148
|
-
return post<Req, Res>({ ...options, type: AptosApiType.PROVER });
|
|
149
|
-
}
|
package/src/client/types.ts
CHANGED
package/src/core/crypto/index.ts
CHANGED
|
@@ -5,8 +5,6 @@ export * from "./ed25519";
|
|
|
5
5
|
export * from "./hdKey";
|
|
6
6
|
export * from "./multiEd25519";
|
|
7
7
|
export * from "./multiKey";
|
|
8
|
-
export * from "./ephemeral";
|
|
9
|
-
export * from "./keyless";
|
|
10
8
|
export * from "./privateKey";
|
|
11
9
|
export * from "./publicKey";
|
|
12
10
|
export * from "./secp256k1";
|
|
@@ -4,7 +4,6 @@ import { AuthenticationKey } from "../authenticationKey";
|
|
|
4
4
|
import { Ed25519PublicKey, Ed25519Signature } from "./ed25519";
|
|
5
5
|
import { AccountPublicKey, PublicKey, VerifySignatureArgs } from "./publicKey";
|
|
6
6
|
import { Secp256k1PublicKey, Secp256k1Signature } from "./secp256k1";
|
|
7
|
-
import { KeylessPublicKey, KeylessSignature } from "./keyless";
|
|
8
7
|
import { Signature } from "./signature";
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -35,8 +34,6 @@ export class AnyPublicKey extends AccountPublicKey {
|
|
|
35
34
|
this.variant = AnyPublicKeyVariant.Ed25519;
|
|
36
35
|
} else if (publicKey instanceof Secp256k1PublicKey) {
|
|
37
36
|
this.variant = AnyPublicKeyVariant.Secp256k1;
|
|
38
|
-
} else if (publicKey instanceof KeylessPublicKey) {
|
|
39
|
-
this.variant = AnyPublicKeyVariant.Keyless;
|
|
40
37
|
} else {
|
|
41
38
|
throw new Error("Unsupported public key type");
|
|
42
39
|
}
|
|
@@ -88,9 +85,6 @@ export class AnyPublicKey extends AccountPublicKey {
|
|
|
88
85
|
case AnyPublicKeyVariant.Secp256k1:
|
|
89
86
|
publicKey = Secp256k1PublicKey.deserialize(deserializer);
|
|
90
87
|
break;
|
|
91
|
-
case AnyPublicKeyVariant.Keyless:
|
|
92
|
-
publicKey = KeylessPublicKey.deserialize(deserializer);
|
|
93
|
-
break;
|
|
94
88
|
default:
|
|
95
89
|
throw new Error(`Unknown variant index for AnyPublicKey: ${variantIndex}`);
|
|
96
90
|
}
|
|
@@ -144,8 +138,6 @@ export class AnySignature extends Signature {
|
|
|
144
138
|
this.variant = AnySignatureVariant.Ed25519;
|
|
145
139
|
} else if (signature instanceof Secp256k1Signature) {
|
|
146
140
|
this.variant = AnySignatureVariant.Secp256k1;
|
|
147
|
-
} else if (signature instanceof KeylessSignature) {
|
|
148
|
-
this.variant = AnySignatureVariant.Keyless;
|
|
149
141
|
} else {
|
|
150
142
|
throw new Error("Unsupported signature type");
|
|
151
143
|
}
|
|
@@ -178,9 +170,6 @@ export class AnySignature extends Signature {
|
|
|
178
170
|
case AnySignatureVariant.Secp256k1:
|
|
179
171
|
signature = Secp256k1Signature.deserialize(deserializer);
|
|
180
172
|
break;
|
|
181
|
-
case AnySignatureVariant.Keyless:
|
|
182
|
-
signature = KeylessSignature.deserialize(deserializer);
|
|
183
|
-
break;
|
|
184
173
|
default:
|
|
185
174
|
throw new Error(`Unknown variant index for AnySignature: ${variantIndex}`);
|
|
186
175
|
}
|
package/src/internal/account.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { AptosApiError, getAptosFullNode, paginateWithCursor } from "../client";
|
|
|
13
13
|
import { AccountAddress, AccountAddressInput } from "../core/accountAddress";
|
|
14
14
|
import { Account } from "../account";
|
|
15
15
|
import { AnyPublicKey, Ed25519PublicKey, PrivateKey } from "../core/crypto";
|
|
16
|
-
import {
|
|
16
|
+
import { queryIndexer } from "./general";
|
|
17
17
|
import {
|
|
18
18
|
AccountData,
|
|
19
19
|
GetAccountCoinsDataResponse,
|
|
@@ -54,6 +54,7 @@ import {
|
|
|
54
54
|
import { memoizeAsync } from "../utils/memoize";
|
|
55
55
|
import { Secp256k1PrivateKey, AuthenticationKey, Ed25519PrivateKey } from "../core";
|
|
56
56
|
import { CurrentFungibleAssetBalancesBoolExp } from "../types/generated/types";
|
|
57
|
+
import { getTableItem } from "./table";
|
|
57
58
|
|
|
58
59
|
export async function getInfo(args: {
|
|
59
60
|
aptosConfig: AptosConfig;
|
package/src/internal/general.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { AptosConfig } from "../api/aptosConfig";
|
|
12
|
-
import { getAptosFullNode,
|
|
12
|
+
import { getAptosFullNode, postAptosIndexer } from "../client";
|
|
13
13
|
import {
|
|
14
14
|
AnyNumber,
|
|
15
15
|
Block,
|
|
@@ -17,8 +17,6 @@ import {
|
|
|
17
17
|
GetProcessorStatusResponse,
|
|
18
18
|
GraphqlQuery,
|
|
19
19
|
LedgerInfo,
|
|
20
|
-
LedgerVersionArg,
|
|
21
|
-
TableItemRequest,
|
|
22
20
|
} from "../types";
|
|
23
21
|
import { GetChainTopUserTransactionsQuery, GetProcessorStatusQuery } from "../types/generated/operations";
|
|
24
22
|
import { GetChainTopUserTransactions, GetProcessorStatus } from "../types/generated/queries";
|
|
@@ -64,23 +62,6 @@ export async function getBlockByHeight(args: {
|
|
|
64
62
|
return data;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
export async function getTableItem<T>(args: {
|
|
68
|
-
aptosConfig: AptosConfig;
|
|
69
|
-
handle: string;
|
|
70
|
-
data: TableItemRequest;
|
|
71
|
-
options?: LedgerVersionArg;
|
|
72
|
-
}): Promise<T> {
|
|
73
|
-
const { aptosConfig, handle, data, options } = args;
|
|
74
|
-
const response = await postAptosFullNode<TableItemRequest, any>({
|
|
75
|
-
aptosConfig,
|
|
76
|
-
originMethod: "getTableItem",
|
|
77
|
-
path: `tables/${handle}/item`,
|
|
78
|
-
params: { ledger_version: options?.ledgerVersion },
|
|
79
|
-
body: data,
|
|
80
|
-
});
|
|
81
|
-
return response.data as T;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
65
|
export async function getChainTopUserTransactions(args: {
|
|
85
66
|
aptosConfig: AptosConfig;
|
|
86
67
|
limit: number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
query getTableItemsData(
|
|
2
|
+
$where_condition: table_items_bool_exp!
|
|
3
|
+
$offset: Int
|
|
4
|
+
$limit: Int
|
|
5
|
+
$order_by: [table_items_order_by!]
|
|
6
|
+
) {
|
|
7
|
+
table_items(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by){
|
|
8
|
+
decoded_key
|
|
9
|
+
decoded_value
|
|
10
|
+
key
|
|
11
|
+
table_handle
|
|
12
|
+
transaction_version
|
|
13
|
+
write_set_change_index
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
query getTableItemsMetadata(
|
|
2
|
+
$where_condition: table_metadatas_bool_exp!
|
|
3
|
+
$offset: Int
|
|
4
|
+
$limit: Int
|
|
5
|
+
$order_by: [table_metadatas_order_by!]
|
|
6
|
+
) {
|
|
7
|
+
table_metadatas(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by){
|
|
8
|
+
handle
|
|
9
|
+
key_type
|
|
10
|
+
value_type
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AptosConfig } from "../api/aptosConfig";
|
|
2
|
+
import { postAptosFullNode } from "../client";
|
|
3
|
+
import {
|
|
4
|
+
TableItemRequest,
|
|
5
|
+
LedgerVersionArg,
|
|
6
|
+
PaginationArgs,
|
|
7
|
+
WhereArg,
|
|
8
|
+
OrderByArg,
|
|
9
|
+
GetTableItemsDataResponse,
|
|
10
|
+
GetTableItemsMetadataResponse,
|
|
11
|
+
} from "../types";
|
|
12
|
+
import { GetTableItemsDataQuery, GetTableItemsMetadataQuery } from "../types/generated/operations";
|
|
13
|
+
import { GetTableItemsData, GetTableItemsMetadata } from "../types/generated/queries";
|
|
14
|
+
import { TableItemsBoolExp, TableMetadatasBoolExp } from "../types/generated/types";
|
|
15
|
+
import { queryIndexer } from "./general";
|
|
16
|
+
|
|
17
|
+
export async function getTableItem<T>(args: {
|
|
18
|
+
aptosConfig: AptosConfig;
|
|
19
|
+
handle: string;
|
|
20
|
+
data: TableItemRequest;
|
|
21
|
+
options?: LedgerVersionArg;
|
|
22
|
+
}): Promise<T> {
|
|
23
|
+
const { aptosConfig, handle, data, options } = args;
|
|
24
|
+
const response = await postAptosFullNode<TableItemRequest, any>({
|
|
25
|
+
aptosConfig,
|
|
26
|
+
originMethod: "getTableItem",
|
|
27
|
+
path: `tables/${handle}/item`,
|
|
28
|
+
params: { ledger_version: options?.ledgerVersion },
|
|
29
|
+
body: data,
|
|
30
|
+
});
|
|
31
|
+
return response.data as T;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export async function getTableItemsData(args: {
|
|
35
|
+
aptosConfig: AptosConfig;
|
|
36
|
+
options?: PaginationArgs & WhereArg<TableItemsBoolExp> & OrderByArg<GetTableItemsDataResponse[0]>;
|
|
37
|
+
}) {
|
|
38
|
+
const { aptosConfig, options } = args;
|
|
39
|
+
|
|
40
|
+
const graphqlQuery = {
|
|
41
|
+
query: GetTableItemsData,
|
|
42
|
+
variables: {
|
|
43
|
+
where_condition: options?.where,
|
|
44
|
+
offset: options?.offset,
|
|
45
|
+
limit: options?.limit,
|
|
46
|
+
order_by: options?.orderBy,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const data = await queryIndexer<GetTableItemsDataQuery>({
|
|
51
|
+
aptosConfig,
|
|
52
|
+
query: graphqlQuery,
|
|
53
|
+
originMethod: "getTableItemsData",
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
return data.table_items;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export async function getTableItemsMetadata(args: {
|
|
60
|
+
aptosConfig: AptosConfig;
|
|
61
|
+
options?: PaginationArgs & WhereArg<TableMetadatasBoolExp> & OrderByArg<GetTableItemsMetadataResponse[0]>;
|
|
62
|
+
}): Promise<GetTableItemsMetadataResponse> {
|
|
63
|
+
const { aptosConfig, options } = args;
|
|
64
|
+
|
|
65
|
+
const graphqlQuery = {
|
|
66
|
+
query: GetTableItemsMetadata,
|
|
67
|
+
variables: {
|
|
68
|
+
where_condition: options?.where,
|
|
69
|
+
offset: options?.offset,
|
|
70
|
+
limit: options?.limit,
|
|
71
|
+
order_by: options?.orderBy,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const data = await queryIndexer<GetTableItemsMetadataQuery>({
|
|
76
|
+
aptosConfig,
|
|
77
|
+
query: graphqlQuery,
|
|
78
|
+
originMethod: "getTableItemsMetadata",
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
return data.table_metadatas;
|
|
82
|
+
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { AptosConfig } from "../api/aptosConfig";
|
|
9
9
|
import { MoveVector, U8 } from "../bcs";
|
|
10
|
-
import {
|
|
11
|
-
import { Account
|
|
10
|
+
import { postAptosFullNode } from "../client";
|
|
11
|
+
import { Account } from "../account";
|
|
12
12
|
import { AccountAddress, AccountAddressInput } from "../core/accountAddress";
|
|
13
13
|
import { PrivateKey } from "../core/crypto";
|
|
14
14
|
import { AccountAuthenticator } from "../transactions/authenticator/account";
|
|
@@ -36,7 +36,6 @@ import { UserTransactionResponse, PendingTransactionResponse, MimeType, HexInput
|
|
|
36
36
|
import { TypeTagU8, TypeTagVector, generateSigningMessageForTransaction } from "../transactions";
|
|
37
37
|
import { SimpleTransaction } from "../transactions/instances/simpleTransaction";
|
|
38
38
|
import { MultiAgentTransaction } from "../transactions/instances/multiAgentTransaction";
|
|
39
|
-
import { KeylessError } from "../types/keyless";
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
41
|
* We are defining function signatures, each with its specific input and output.
|
|
@@ -276,24 +275,12 @@ export async function signAndSubmitTransaction(args: {
|
|
|
276
275
|
transaction: AnyRawTransaction;
|
|
277
276
|
}): Promise<PendingTransactionResponse> {
|
|
278
277
|
const { aptosConfig, signer, transaction } = args;
|
|
279
|
-
// If the signer contains a KeylessAccount, await proof fetching in case the proof
|
|
280
|
-
// was fetched asyncronously.
|
|
281
|
-
if (signer instanceof KeylessAccount || signer instanceof MultiKeyAccount) {
|
|
282
|
-
await signer.waitForProofFetch();
|
|
283
|
-
}
|
|
284
278
|
const authenticator = signTransaction({ signer, transaction });
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
});
|
|
291
|
-
} catch (error) {
|
|
292
|
-
if (error instanceof AptosApiError && signer instanceof KeylessAccount) {
|
|
293
|
-
throw await KeylessError.fromAptosApiError(error, signer);
|
|
294
|
-
}
|
|
295
|
-
throw error;
|
|
296
|
-
}
|
|
279
|
+
return submitTransaction({
|
|
280
|
+
aptosConfig,
|
|
281
|
+
transaction,
|
|
282
|
+
senderAuthenticator: authenticator,
|
|
283
|
+
});
|
|
297
284
|
}
|
|
298
285
|
|
|
299
286
|
const packagePublishAbi: EntryFunctionABI = {
|
|
@@ -9,13 +9,7 @@
|
|
|
9
9
|
import { sha3_256 as sha3Hash } from "@noble/hashes/sha3";
|
|
10
10
|
import { AptosConfig } from "../../api/aptosConfig";
|
|
11
11
|
import { AccountAddress, AccountAddressInput, Hex, PublicKey } from "../../core";
|
|
12
|
-
import {
|
|
13
|
-
AnyPublicKey,
|
|
14
|
-
AnySignature,
|
|
15
|
-
KeylessPublicKey,
|
|
16
|
-
Secp256k1PublicKey,
|
|
17
|
-
Secp256k1Signature,
|
|
18
|
-
} from "../../core/crypto";
|
|
12
|
+
import { AnyPublicKey, AnySignature, Secp256k1PublicKey, Secp256k1Signature } from "../../core/crypto";
|
|
19
13
|
import { Ed25519PublicKey, Ed25519Signature } from "../../core/crypto/ed25519";
|
|
20
14
|
import { getInfo } from "../../internal/account";
|
|
21
15
|
import { getLedgerInfo } from "../../internal/general";
|
|
@@ -446,12 +440,7 @@ export function generateSignedTransactionForSimulation(args: InputSimulateTransa
|
|
|
446
440
|
return new SignedTransaction(transaction.rawTransaction, transactionAuthenticator).bcsToBytes();
|
|
447
441
|
}
|
|
448
442
|
|
|
449
|
-
export function getAuthenticatorForSimulation(
|
|
450
|
-
let publicKey = pk;
|
|
451
|
-
if (publicKey instanceof KeylessPublicKey || publicKey instanceof Secp256k1PublicKey) {
|
|
452
|
-
publicKey = new AnyPublicKey(publicKey);
|
|
453
|
-
}
|
|
454
|
-
|
|
443
|
+
export function getAuthenticatorForSimulation(publicKey: PublicKey) {
|
|
455
444
|
// TODO add support for AnyMultiKey
|
|
456
445
|
if (publicKey instanceof AnyPublicKey) {
|
|
457
446
|
if (publicKey.publicKey instanceof Ed25519PublicKey) {
|
|
@@ -460,9 +449,6 @@ export function getAuthenticatorForSimulation(pk: PublicKey) {
|
|
|
460
449
|
if (publicKey.publicKey instanceof Secp256k1PublicKey) {
|
|
461
450
|
return new AccountAuthenticatorSingleKey(publicKey, new AnySignature(new Secp256k1Signature(new Uint8Array(64))));
|
|
462
451
|
}
|
|
463
|
-
if (publicKey.publicKey instanceof KeylessPublicKey) {
|
|
464
|
-
return new AccountAuthenticatorSingleKey(publicKey, new AnySignature(new Ed25519Signature(new Uint8Array(64))));
|
|
465
|
-
}
|
|
466
452
|
}
|
|
467
453
|
|
|
468
454
|
// legacy code
|
|
@@ -535,6 +535,35 @@ export type GetProcessorStatusQuery = {
|
|
|
535
535
|
processor_status: Array<{ last_success_version: any; processor: string; last_updated: any }>;
|
|
536
536
|
};
|
|
537
537
|
|
|
538
|
+
export type GetTableItemsDataQueryVariables = Types.Exact<{
|
|
539
|
+
where_condition: Types.TableItemsBoolExp;
|
|
540
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
541
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
542
|
+
order_by?: Types.InputMaybe<Array<Types.TableItemsOrderBy> | Types.TableItemsOrderBy>;
|
|
543
|
+
}>;
|
|
544
|
+
|
|
545
|
+
export type GetTableItemsDataQuery = {
|
|
546
|
+
table_items: Array<{
|
|
547
|
+
decoded_key: any;
|
|
548
|
+
decoded_value?: any | null;
|
|
549
|
+
key: string;
|
|
550
|
+
table_handle: string;
|
|
551
|
+
transaction_version: any;
|
|
552
|
+
write_set_change_index: any;
|
|
553
|
+
}>;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
export type GetTableItemsMetadataQueryVariables = Types.Exact<{
|
|
557
|
+
where_condition: Types.TableMetadatasBoolExp;
|
|
558
|
+
offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
559
|
+
limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
560
|
+
order_by?: Types.InputMaybe<Array<Types.TableMetadatasOrderBy> | Types.TableMetadatasOrderBy>;
|
|
561
|
+
}>;
|
|
562
|
+
|
|
563
|
+
export type GetTableItemsMetadataQuery = {
|
|
564
|
+
table_metadatas: Array<{ handle: string; key_type: string; value_type: string }>;
|
|
565
|
+
};
|
|
566
|
+
|
|
538
567
|
export type GetTokenActivityQueryVariables = Types.Exact<{
|
|
539
568
|
where_condition: Types.TokenActivitiesV2BoolExp;
|
|
540
569
|
offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
@@ -389,6 +389,37 @@ export const GetProcessorStatus = `
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
`;
|
|
392
|
+
export const GetTableItemsData = `
|
|
393
|
+
query getTableItemsData($where_condition: table_items_bool_exp!, $offset: Int, $limit: Int, $order_by: [table_items_order_by!]) {
|
|
394
|
+
table_items(
|
|
395
|
+
where: $where_condition
|
|
396
|
+
offset: $offset
|
|
397
|
+
limit: $limit
|
|
398
|
+
order_by: $order_by
|
|
399
|
+
) {
|
|
400
|
+
decoded_key
|
|
401
|
+
decoded_value
|
|
402
|
+
key
|
|
403
|
+
table_handle
|
|
404
|
+
transaction_version
|
|
405
|
+
write_set_change_index
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
`;
|
|
409
|
+
export const GetTableItemsMetadata = `
|
|
410
|
+
query getTableItemsMetadata($where_condition: table_metadatas_bool_exp!, $offset: Int, $limit: Int, $order_by: [table_metadatas_order_by!]) {
|
|
411
|
+
table_metadatas(
|
|
412
|
+
where: $where_condition
|
|
413
|
+
offset: $offset
|
|
414
|
+
limit: $limit
|
|
415
|
+
order_by: $order_by
|
|
416
|
+
) {
|
|
417
|
+
handle
|
|
418
|
+
key_type
|
|
419
|
+
value_type
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
`;
|
|
392
423
|
export const GetTokenActivity = `
|
|
393
424
|
query getTokenActivity($where_condition: token_activities_v2_bool_exp!, $offset: Int, $limit: Int, $order_by: [token_activities_v2_order_by!]) {
|
|
394
425
|
token_activities_v2(
|
|
@@ -727,6 +758,34 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
727
758
|
"query",
|
|
728
759
|
);
|
|
729
760
|
},
|
|
761
|
+
getTableItemsData(
|
|
762
|
+
variables: Types.GetTableItemsDataQueryVariables,
|
|
763
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
764
|
+
): Promise<Types.GetTableItemsDataQuery> {
|
|
765
|
+
return withWrapper(
|
|
766
|
+
(wrappedRequestHeaders) =>
|
|
767
|
+
client.request<Types.GetTableItemsDataQuery>(GetTableItemsData, variables, {
|
|
768
|
+
...requestHeaders,
|
|
769
|
+
...wrappedRequestHeaders,
|
|
770
|
+
}),
|
|
771
|
+
"getTableItemsData",
|
|
772
|
+
"query",
|
|
773
|
+
);
|
|
774
|
+
},
|
|
775
|
+
getTableItemsMetadata(
|
|
776
|
+
variables: Types.GetTableItemsMetadataQueryVariables,
|
|
777
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
778
|
+
): Promise<Types.GetTableItemsMetadataQuery> {
|
|
779
|
+
return withWrapper(
|
|
780
|
+
(wrappedRequestHeaders) =>
|
|
781
|
+
client.request<Types.GetTableItemsMetadataQuery>(GetTableItemsMetadata, variables, {
|
|
782
|
+
...requestHeaders,
|
|
783
|
+
...wrappedRequestHeaders,
|
|
784
|
+
}),
|
|
785
|
+
"getTableItemsMetadata",
|
|
786
|
+
"query",
|
|
787
|
+
);
|
|
788
|
+
},
|
|
730
789
|
getTokenActivity(
|
|
731
790
|
variables: Types.GetTokenActivityQueryVariables,
|
|
732
791
|
requestHeaders?: GraphQLClientRequestHeaders,
|