@aptos-labs/ts-sdk 3.0.0 → 3.1.1
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/{account-CEmLe1wW.d.ts → account-Bb5REyaT.d.ts} +60 -11
- package/dist/common/chunk-6MMUUJHX.js +4 -0
- package/dist/common/{chunk-5JIJXVJ5.js.map → chunk-6MMUUJHX.js.map} +1 -1
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/index.d.ts +121 -9
- package/dist/common/index.js +55 -34
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-Ccxj1zdx.d.mts → Ed25519Account-ndmdpFe9.d.mts} +1 -1
- package/dist/esm/account/AbstractKeylessAccount.d.mts +3 -3
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.d.mts +2 -2
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +2 -2
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +3 -3
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/DerivableAbstractedAccount.d.mts +2 -2
- package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +2 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +4 -3
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +4 -3
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.d.mts +2 -2
- package/dist/esm/account/MultiEd25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +3 -3
- 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 +3 -3
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.d.mts +1 -1
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/{account-9G6tix5T.d.mts → account--Q9z_xMN.d.mts} +37 -3
- package/dist/esm/api/account/abstraction.d.mts +1 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.d.mts +94 -3
- 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 +6 -4
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.d.mts +1 -1
- 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.d.mts +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.d.mts +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 +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +6 -4
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +3 -3
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.d.mts +1 -1
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.d.mts +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.d.mts +1 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +3 -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/helpers.d.mts +22 -9
- package/dist/esm/api/transactionSubmission/helpers.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.d.mts +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/consts.d.mts +1 -1
- package/dist/esm/bcs/deserializer.d.mts +1 -1
- package/dist/esm/bcs/index.d.mts +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.d.mts +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.d.mts +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.d.mts +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.d.mts +1 -1
- package/dist/esm/{chunk-YHGGNYYL.mjs → chunk-2PF7UFKU.mjs} +2 -2
- package/dist/esm/chunk-5HXLZHDW.mjs +1 -0
- package/dist/esm/chunk-5HXLZHDW.mjs.map +1 -0
- package/dist/esm/chunk-75NVN2CG.mjs +2 -0
- package/dist/esm/{chunk-HMUIOIBG.mjs.map → chunk-75NVN2CG.mjs.map} +1 -1
- package/dist/esm/chunk-IJE2LVZG.mjs +2 -0
- package/dist/esm/chunk-IJE2LVZG.mjs.map +1 -0
- package/dist/esm/chunk-JCFTAG5Z.mjs +2 -0
- package/dist/esm/{chunk-RJ7F4JDV.mjs.map → chunk-JCFTAG5Z.mjs.map} +1 -1
- package/dist/esm/{chunk-FSP4QM2T.mjs → chunk-JL6RR7ML.mjs} +2 -2
- package/dist/esm/chunk-L3GEIX2R.mjs +6 -0
- package/dist/esm/chunk-L3GEIX2R.mjs.map +1 -0
- package/dist/esm/{chunk-WOTQ7227.mjs → chunk-LIS2GDBI.mjs} +2 -2
- package/dist/esm/{chunk-7T62PEFI.mjs → chunk-LJEERFEH.mjs} +2 -2
- package/dist/esm/{chunk-IDHVW7HS.mjs → chunk-O7WBNU4J.mjs} +2 -2
- package/dist/esm/{chunk-SAMHWS73.mjs → chunk-PXQPKCDD.mjs} +2 -2
- package/dist/esm/chunk-QREVMGQZ.mjs +2 -0
- package/dist/esm/chunk-QREVMGQZ.mjs.map +1 -0
- package/dist/esm/{chunk-R7NQJWDG.mjs → chunk-S335GK43.mjs} +2 -2
- package/dist/esm/{chunk-PFXXFUBL.mjs → chunk-SZE4RT4B.mjs} +2 -2
- package/dist/esm/{chunk-VHNX2NUR.mjs → chunk-UL777LTI.mjs} +47 -26
- package/dist/esm/chunk-UL777LTI.mjs.map +1 -0
- package/dist/esm/{chunk-2XQKGWHQ.mjs → chunk-V74WPKSY.mjs} +2 -2
- package/dist/esm/{chunk-5ZRPV4YI.mjs → chunk-VW26RFJ7.mjs} +2 -2
- package/dist/esm/{chunk-UIVX6WSC.mjs → chunk-Y7ZQTLH4.mjs} +2 -2
- package/dist/esm/cli/index.d.mts +1 -1
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/cli/move.d.mts +1 -1
- package/dist/esm/client/core.d.mts +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.d.mts +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.d.mts +1 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.d.mts +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.d.mts +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/crypto/abstraction.d.mts +1 -1
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/deserializationUtils.d.mts +1 -1
- package/dist/esm/core/crypto/deserializationUtils.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/ephemeral.d.mts +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +2 -2
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +3 -2
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +2 -2
- package/dist/esm/core/crypto/keyless.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/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.d.mts +1 -1
- package/dist/esm/core/crypto/proof.mjs +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.d.mts +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/types.d.mts +11 -0
- package/dist/esm/core/crypto/types.mjs +2 -0
- package/dist/esm/core/crypto/types.mjs.map +1 -0
- package/dist/esm/core/crypto/utils.d.mts +1 -1
- package/dist/esm/core/hex.d.mts +1 -1
- package/dist/esm/core/index.d.mts +3 -2
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.d.mts +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/{federatedKeyless-CVKW5pnz.d.mts → federatedKeyless-CiyplsOB.d.mts} +1 -1
- package/dist/esm/index.d.mts +6 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.d.mts +1 -1
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.d.mts +38 -8
- 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.d.mts +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.d.mts +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 +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +12 -3
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.d.mts +1 -1
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.d.mts +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.d.mts +1 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.d.mts +1 -1
- 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/utils/index.d.mts +1 -1
- package/dist/esm/internal/utils/index.mjs +1 -1
- package/dist/esm/internal/utils/utils.d.mts +1 -1
- package/dist/esm/internal/utils/utils.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.d.mts +1 -1
- package/dist/esm/transactions/instances/identifier.d.mts +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.d.mts +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.d.mts +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.d.mts +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionArgument.d.mts +1 -1
- package/dist/esm/transactions/instances/transactionPayload.d.mts +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 +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.d.mts +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.d.mts +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 +37 -10
- 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 +584 -1172
- 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 +2 -2
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +8 -2
- package/dist/esm/types/types.d.mts +1 -1
- package/dist/esm/types/types.mjs +1 -1
- package/dist/esm/utils/const.d.mts +1 -0
- package/dist/esm/utils/const.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +1 -1
- package/dist/esm/utils/helpers.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.d.mts +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/account/FederatedKeylessAccount.ts +7 -1
- package/src/account/KeylessAccount.ts +17 -2
- package/src/api/account.ts +135 -2
- package/src/api/transaction.ts +1 -0
- package/src/api/transactionSubmission/helpers.ts +26 -20
- package/src/api/transactionSubmission/submit.ts +3 -3
- package/src/core/crypto/index.ts +1 -0
- package/src/core/crypto/multiEd25519.ts +26 -0
- package/src/core/crypto/multiKey.ts +6 -0
- package/src/core/crypto/types.ts +9 -0
- package/src/internal/account.ts +526 -59
- package/src/internal/keyless.ts +10 -0
- package/src/internal/queries/getAccountAddressesForAuthKey.graphql +8 -0
- package/src/internal/queries/getAuthKeysForPublicKey.graphql +11 -0
- package/src/types/codegen.yaml +1 -1
- package/src/types/generated/operations.ts +39 -8
- package/src/types/generated/queries.ts +53 -0
- package/src/types/generated/types.ts +620 -1239
- package/src/types/indexer.ts +8 -0
- package/src/types/types.ts +40 -3
- package/src/utils/const.ts +1 -0
- package/src/version.ts +1 -1
- package/dist/common/chunk-5JIJXVJ5.js +0 -4
- package/dist/esm/chunk-4H2RMR7D.mjs +0 -2
- package/dist/esm/chunk-4H2RMR7D.mjs.map +0 -1
- package/dist/esm/chunk-GMDBBVDH.mjs +0 -6
- package/dist/esm/chunk-GMDBBVDH.mjs.map +0 -1
- package/dist/esm/chunk-HMUIOIBG.mjs +0 -2
- package/dist/esm/chunk-RJ7F4JDV.mjs +0 -2
- package/dist/esm/chunk-VHNX2NUR.mjs.map +0 -1
- package/dist/esm/chunk-W4BSN6SK.mjs +0 -2
- package/dist/esm/chunk-W4BSN6SK.mjs.map +0 -1
- /package/dist/esm/{chunk-YHGGNYYL.mjs.map → chunk-2PF7UFKU.mjs.map} +0 -0
- /package/dist/esm/{chunk-FSP4QM2T.mjs.map → chunk-JL6RR7ML.mjs.map} +0 -0
- /package/dist/esm/{chunk-WOTQ7227.mjs.map → chunk-LIS2GDBI.mjs.map} +0 -0
- /package/dist/esm/{chunk-7T62PEFI.mjs.map → chunk-LJEERFEH.mjs.map} +0 -0
- /package/dist/esm/{chunk-IDHVW7HS.mjs.map → chunk-O7WBNU4J.mjs.map} +0 -0
- /package/dist/esm/{chunk-SAMHWS73.mjs.map → chunk-PXQPKCDD.mjs.map} +0 -0
- /package/dist/esm/{chunk-R7NQJWDG.mjs.map → chunk-S335GK43.mjs.map} +0 -0
- /package/dist/esm/{chunk-PFXXFUBL.mjs.map → chunk-SZE4RT4B.mjs.map} +0 -0
- /package/dist/esm/{chunk-2XQKGWHQ.mjs.map → chunk-V74WPKSY.mjs.map} +0 -0
- /package/dist/esm/{chunk-5ZRPV4YI.mjs.map → chunk-VW26RFJ7.mjs.map} +0 -0
- /package/dist/esm/{chunk-UIVX6WSC.mjs.map → chunk-Y7ZQTLH4.mjs.map} +0 -0
package/src/internal/keyless.ts
CHANGED
|
@@ -178,6 +178,16 @@ export async function deriveKeylessAccount(args: {
|
|
|
178
178
|
proofFetchCallback?: ProofFetchCallback;
|
|
179
179
|
}): Promise<FederatedKeylessAccount>;
|
|
180
180
|
|
|
181
|
+
export async function deriveKeylessAccount(args: {
|
|
182
|
+
aptosConfig: AptosConfig;
|
|
183
|
+
jwt: string;
|
|
184
|
+
ephemeralKeyPair: EphemeralKeyPair;
|
|
185
|
+
jwkAddress?: AccountAddressInput;
|
|
186
|
+
uidKey?: string;
|
|
187
|
+
pepper?: HexInput;
|
|
188
|
+
proofFetchCallback?: ProofFetchCallback;
|
|
189
|
+
}): Promise<KeylessAccount | FederatedKeylessAccount>;
|
|
190
|
+
|
|
181
191
|
export async function deriveKeylessAccount(args: {
|
|
182
192
|
aptosConfig: AptosConfig;
|
|
183
193
|
jwt: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
query getAccountAddressesForAuthKey($where_condition: auth_key_account_addresses_bool_exp, $order_by: [auth_key_account_addresses_order_by!]) {
|
|
2
|
+
auth_key_account_addresses(where: $where_condition, order_by: $order_by) {
|
|
3
|
+
auth_key
|
|
4
|
+
account_address
|
|
5
|
+
last_transaction_version
|
|
6
|
+
is_auth_key_used
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
query getAuthKeysForPublicKey($where_condition: public_key_auth_keys_bool_exp, $order_by: [public_key_auth_keys_order_by!]) {
|
|
2
|
+
public_key_auth_keys(where: $where_condition, order_by: $order_by) {
|
|
3
|
+
public_key
|
|
4
|
+
public_key_type
|
|
5
|
+
auth_key
|
|
6
|
+
account_public_key
|
|
7
|
+
last_transaction_version
|
|
8
|
+
is_public_key_used
|
|
9
|
+
signature_type
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/types/codegen.yaml
CHANGED
|
@@ -77,6 +77,20 @@ export type CurrentTokenOwnershipFieldsFragment = {
|
|
|
77
77
|
} | null;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
export type GetAccountAddressesForAuthKeyQueryVariables = Types.Exact<{
|
|
81
|
+
where_condition?: Types.InputMaybe<Types.AuthKeyAccountAddressesBoolExp>;
|
|
82
|
+
order_by?: Types.InputMaybe<Array<Types.AuthKeyAccountAddressesOrderBy> | Types.AuthKeyAccountAddressesOrderBy>;
|
|
83
|
+
}>;
|
|
84
|
+
|
|
85
|
+
export type GetAccountAddressesForAuthKeyQuery = {
|
|
86
|
+
auth_key_account_addresses: Array<{
|
|
87
|
+
auth_key: string;
|
|
88
|
+
account_address: string;
|
|
89
|
+
last_transaction_version: any;
|
|
90
|
+
is_auth_key_used: boolean;
|
|
91
|
+
}>;
|
|
92
|
+
};
|
|
93
|
+
|
|
80
94
|
export type GetAccountCoinsCountQueryVariables = Types.Exact<{
|
|
81
95
|
address?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
|
|
82
96
|
}>;
|
|
@@ -96,15 +110,15 @@ export type GetAccountCoinsDataQueryVariables = Types.Exact<{
|
|
|
96
110
|
|
|
97
111
|
export type GetAccountCoinsDataQuery = {
|
|
98
112
|
current_fungible_asset_balances: Array<{
|
|
99
|
-
amount
|
|
100
|
-
asset_type
|
|
113
|
+
amount: any;
|
|
114
|
+
asset_type: string;
|
|
101
115
|
is_frozen: boolean;
|
|
102
|
-
is_primary
|
|
116
|
+
is_primary: boolean;
|
|
103
117
|
last_transaction_timestamp?: any | null;
|
|
104
118
|
last_transaction_version?: any | null;
|
|
105
119
|
owner_address: string;
|
|
106
120
|
storage_id: string;
|
|
107
|
-
token_standard
|
|
121
|
+
token_standard: string;
|
|
108
122
|
metadata?: {
|
|
109
123
|
token_standard: string;
|
|
110
124
|
symbol: string;
|
|
@@ -346,6 +360,23 @@ export type GetAccountTransactionsCountQuery = {
|
|
|
346
360
|
account_transactions_aggregate: { aggregate?: { count: number } | null };
|
|
347
361
|
};
|
|
348
362
|
|
|
363
|
+
export type GetAuthKeysForPublicKeyQueryVariables = Types.Exact<{
|
|
364
|
+
where_condition?: Types.InputMaybe<Types.PublicKeyAuthKeysBoolExp>;
|
|
365
|
+
order_by?: Types.InputMaybe<Array<Types.PublicKeyAuthKeysOrderBy> | Types.PublicKeyAuthKeysOrderBy>;
|
|
366
|
+
}>;
|
|
367
|
+
|
|
368
|
+
export type GetAuthKeysForPublicKeyQuery = {
|
|
369
|
+
public_key_auth_keys: Array<{
|
|
370
|
+
public_key: string;
|
|
371
|
+
public_key_type: string;
|
|
372
|
+
auth_key: string;
|
|
373
|
+
account_public_key?: string | null;
|
|
374
|
+
last_transaction_version: any;
|
|
375
|
+
is_public_key_used: boolean;
|
|
376
|
+
signature_type: string;
|
|
377
|
+
}>;
|
|
378
|
+
};
|
|
379
|
+
|
|
349
380
|
export type GetChainTopUserTransactionsQueryVariables = Types.Exact<{
|
|
350
381
|
limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
|
|
351
382
|
}>;
|
|
@@ -394,15 +425,15 @@ export type GetCurrentFungibleAssetBalancesQueryVariables = Types.Exact<{
|
|
|
394
425
|
|
|
395
426
|
export type GetCurrentFungibleAssetBalancesQuery = {
|
|
396
427
|
current_fungible_asset_balances: Array<{
|
|
397
|
-
amount
|
|
398
|
-
asset_type
|
|
428
|
+
amount: any;
|
|
429
|
+
asset_type: string;
|
|
399
430
|
is_frozen: boolean;
|
|
400
|
-
is_primary
|
|
431
|
+
is_primary: boolean;
|
|
401
432
|
last_transaction_timestamp?: any | null;
|
|
402
433
|
last_transaction_version?: any | null;
|
|
403
434
|
owner_address: string;
|
|
404
435
|
storage_id: string;
|
|
405
|
-
token_standard
|
|
436
|
+
token_standard: string;
|
|
406
437
|
}>;
|
|
407
438
|
};
|
|
408
439
|
|
|
@@ -82,6 +82,16 @@ export const CurrentTokenOwnershipFieldsFragmentDoc = `
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
`;
|
|
85
|
+
export const GetAccountAddressesForAuthKey = `
|
|
86
|
+
query getAccountAddressesForAuthKey($where_condition: auth_key_account_addresses_bool_exp, $order_by: [auth_key_account_addresses_order_by!]) {
|
|
87
|
+
auth_key_account_addresses(where: $where_condition, order_by: $order_by) {
|
|
88
|
+
auth_key
|
|
89
|
+
account_address
|
|
90
|
+
last_transaction_version
|
|
91
|
+
is_auth_key_used
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
85
95
|
export const GetAccountCoinsCount = `
|
|
86
96
|
query getAccountCoinsCount($address: String) {
|
|
87
97
|
current_fungible_asset_balances_aggregate(
|
|
@@ -220,6 +230,19 @@ export const GetAccountTransactionsCount = `
|
|
|
220
230
|
}
|
|
221
231
|
}
|
|
222
232
|
`;
|
|
233
|
+
export const GetAuthKeysForPublicKey = `
|
|
234
|
+
query getAuthKeysForPublicKey($where_condition: public_key_auth_keys_bool_exp, $order_by: [public_key_auth_keys_order_by!]) {
|
|
235
|
+
public_key_auth_keys(where: $where_condition, order_by: $order_by) {
|
|
236
|
+
public_key
|
|
237
|
+
public_key_type
|
|
238
|
+
auth_key
|
|
239
|
+
account_public_key
|
|
240
|
+
last_transaction_version
|
|
241
|
+
is_public_key_used
|
|
242
|
+
signature_type
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
`;
|
|
223
246
|
export const GetChainTopUserTransactions = `
|
|
224
247
|
query getChainTopUserTransactions($limit: Int) {
|
|
225
248
|
user_transactions(limit: $limit, order_by: {version: desc}) {
|
|
@@ -512,6 +535,21 @@ const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationTy
|
|
|
512
535
|
|
|
513
536
|
export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
|
|
514
537
|
return {
|
|
538
|
+
getAccountAddressesForAuthKey(
|
|
539
|
+
variables?: Types.GetAccountAddressesForAuthKeyQueryVariables,
|
|
540
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
541
|
+
): Promise<Types.GetAccountAddressesForAuthKeyQuery> {
|
|
542
|
+
return withWrapper(
|
|
543
|
+
(wrappedRequestHeaders) =>
|
|
544
|
+
client.request<Types.GetAccountAddressesForAuthKeyQuery>(GetAccountAddressesForAuthKey, variables, {
|
|
545
|
+
...requestHeaders,
|
|
546
|
+
...wrappedRequestHeaders,
|
|
547
|
+
}),
|
|
548
|
+
"getAccountAddressesForAuthKey",
|
|
549
|
+
"query",
|
|
550
|
+
variables,
|
|
551
|
+
);
|
|
552
|
+
},
|
|
515
553
|
getAccountCoinsCount(
|
|
516
554
|
variables?: Types.GetAccountCoinsCountQueryVariables,
|
|
517
555
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
@@ -634,6 +672,21 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
|
|
|
634
672
|
variables,
|
|
635
673
|
);
|
|
636
674
|
},
|
|
675
|
+
getAuthKeysForPublicKey(
|
|
676
|
+
variables?: Types.GetAuthKeysForPublicKeyQueryVariables,
|
|
677
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
678
|
+
): Promise<Types.GetAuthKeysForPublicKeyQuery> {
|
|
679
|
+
return withWrapper(
|
|
680
|
+
(wrappedRequestHeaders) =>
|
|
681
|
+
client.request<Types.GetAuthKeysForPublicKeyQuery>(GetAuthKeysForPublicKey, variables, {
|
|
682
|
+
...requestHeaders,
|
|
683
|
+
...wrappedRequestHeaders,
|
|
684
|
+
}),
|
|
685
|
+
"getAuthKeysForPublicKey",
|
|
686
|
+
"query",
|
|
687
|
+
variables,
|
|
688
|
+
);
|
|
689
|
+
},
|
|
637
690
|
getChainTopUserTransactions(
|
|
638
691
|
variables?: Types.GetChainTopUserTransactionsQueryVariables,
|
|
639
692
|
requestHeaders?: GraphQLClientRequestHeaders,
|