@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard } from './indexer.mjs';
|
|
2
|
-
export { bx as AccountAuthenticatorVariant,
|
|
1
|
+
export { GetANSNameResponse, GetAccountAddressesForAuthKeyResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard } from './indexer.mjs';
|
|
2
|
+
export { bx as AccountAuthenticatorVariant, c8 as AccountData, cU as AccountSignature, bM as AnyNumber, bz as AnyPublicKeyVariant, bB as AnySignatureVariant, c3 as AptosRequest, c4 as AptosResponse, bN as AptosSettings, dp as AuthenticationKeyScheme, dm as Block, cq as BlockEndInfo, cr as BlockEpilogueTransactionResponse, cn as BlockMetadataTransactionResponse, c2 as Client, bT as ClientConfig, bY as ClientHeadersType, c0 as ClientRequest, c1 as ClientResponse, cc as CommittedTransactionResponse, bP as CursorPaginationArgs, cz as DecodedTableData, cA as DeletedTableData, ds as DeriveScheme, cX as DirectWriteSet, cC as EntryFunctionPayloadResponse, bE as EphemeralCertificateVariant, bC as EphemeralPublicKeyVariant, bD as EphemeralSignatureVariant, cZ as Event, cY as EventGuid, bW as FaucetConfig, bU as FullNodeConfig, c6 as GasEstimation, dw as GenerateAccount, du as GenerateAccountWithEd25519, dv as GenerateAccountWithSingleSignerSecp256k1Key, cF as GenesisPayload, cm as GenesisTransactionResponse, bo as HexInput, bV as IndexerConfig, dl as LedgerInfo, c5 as LedgerVersionArg, bn as MimeType, de as MoveAbility, d4 as MoveAddressType, dj as MoveFunction, df as MoveFunctionGenericTypeParam, d8 as MoveFunctionId, dd as MoveFunctionVisibility, dh as MoveModule, c9 as MoveModuleBytecode, dc as MoveModuleId, d5 as MoveObjectType, d6 as MoveOptionType, c7 as MoveResource, cG as MoveScriptBytecode, di as MoveStruct, dg as MoveStructField, d7 as MoveStructId, d9 as MoveStructType, da as MoveType, d2 as MoveUint128Type, c$ as MoveUint16Type, d3 as MoveUint256Type, d0 as MoveUint32Type, d1 as MoveUint64Type, c_ as MoveUint8Type, db as MoveValue, cE as MultisigPayloadResponse, bR as OrderByArg, bO as PaginationArgs, ck as PendingTransactionResponse, bZ as PluginConfig, b_ as PluginSettings, by as PrivateKeyVariants, dk as RoleType, cD as ScriptPayloadResponse, bq as ScriptTransactionArgumentVariants, cW as ScriptWriteSet, dq as SigningScheme, dr as SigningSchemeInput, co as StateCheckpointTransactionResponse, dn as TableItemRequest, bQ as TokenStandardArg, bw as TransactionAuthenticatorVariant, cO as TransactionEd25519Signature, bt as TransactionExecutableVariants, bu as TransactionExtraConfigVariants, cT as TransactionFeePayerSignature, bX as TransactionGenerationConfig, bs as TransactionInnerPayloadVariants, cS as TransactionMultiAgentSignature, cR as TransactionMultiEd25519Signature, cB as TransactionPayloadResponse, br as TransactionPayloadVariants, cb as TransactionResponse, ca as TransactionResponseType, cP as TransactionSecp256k1Signature, cH as TransactionSignature, cQ as TransactionSingleSenderSignature, b$ as TransactionSubmitter, bv as TransactionVariants, bp as TypeTagVariants, bK as Uint128, bH as Uint16, bL as Uint256, bI as Uint32, bJ as Uint64, bG as Uint8, cl as UserTransactionResponse, cp as ValidatorTransactionResponse, dt as WaitForTransactionOptions, bS as WhereArg, cV as WriteSet, cs as WriteSetChange, ct as WriteSetChangeDeleteModule, cu as WriteSetChangeDeleteResource, cv as WriteSetChangeDeleteTableItem, cw as WriteSetChangeWriteModule, cx as WriteSetChangeWriteResource, cy as WriteSetChangeWriteTableItem, bF as ZkpVariant, bA as anyPublicKeyVariantToString, cj as isBlockEpilogueTransactionResponse, cg as isBlockMetadataTransactionResponse, cI as isEd25519Signature, cL as isFeePayerSignature, cf as isGenesisTransactionResponse, cK as isMultiAgentSignature, cM as isMultiEd25519Signature, cd as isPendingTransactionResponse, cJ as isSecp256k1Signature, cN as isSingleSenderSignature, ch as isStateCheckpointTransactionResponse, ce as isUserTransactionResponse, ci as isValidatorTransactionResponse } from '../account--Q9z_xMN.mjs';
|
|
3
3
|
import './generated/operations.mjs';
|
|
4
4
|
import './generated/types.mjs';
|
|
5
5
|
import '../utils/apiEndpoints.mjs';
|
package/dist/esm/types/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-FD6FGKYY.mjs";import{A,B,C,D,E,F,G,H,I,J,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
1
|
+
import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import{A,B,C,D,E,F,G,H,I,J,K,L,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-IJE2LVZG.mjs";import"../chunk-KDMSOCZY.mjs";export{j as AccountAuthenticatorVariant,l as AnyPublicKeyVariant,n as AnySignatureVariant,L as DeriveScheme,q as EphemeralCertificateVariant,o as EphemeralPublicKeyVariant,p as EphemeralSignatureVariant,a as MimeType,H as MoveAbility,G as MoveFunctionVisibility,k as PrivateKeyVariants,I as RoleType,c as ScriptTransactionArgumentVariants,J as SigningScheme,K as SigningSchemeInput,i as TransactionAuthenticatorVariant,f as TransactionExecutableVariants,g as TransactionExtraConfigVariants,e as TransactionInnerPayloadVariants,d as TransactionPayloadVariants,s as TransactionResponseType,h as TransactionVariants,b as TypeTagVariants,r as ZkpVariant,m as anyPublicKeyVariantToString,z as isBlockEpilogueTransactionResponse,w as isBlockMetadataTransactionResponse,A as isEd25519Signature,D as isFeePayerSignature,v as isGenesisTransactionResponse,C as isMultiAgentSignature,E as isMultiEd25519Signature,t as isPendingTransactionResponse,B as isSecp256k1Signature,F as isSingleSenderSignature,x as isStateCheckpointTransactionResponse,u as isUserTransactionResponse,y as isValidatorTransactionResponse};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetObjectDataQuery, GetNamesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetCurrentTokenOwnershipQuery, GetTokenActivityQuery, GetEventsQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetChainTopUserTransactionsQuery, GetProcessorStatusQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetTableItemsDataQuery, GetTableItemsMetadataQuery } from './generated/operations.mjs';
|
|
1
|
+
import { GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetObjectDataQuery, GetNamesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetCurrentTokenOwnershipQuery, GetTokenActivityQuery, GetEventsQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetChainTopUserTransactionsQuery, GetProcessorStatusQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetTableItemsDataQuery, GetTableItemsMetadataQuery, GetAccountAddressesForAuthKeyQuery } from './generated/operations.mjs';
|
|
2
2
|
import './generated/types.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -50,6 +50,12 @@ type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwne
|
|
|
50
50
|
* @category Types
|
|
51
51
|
*/
|
|
52
52
|
type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
|
|
53
|
+
/**
|
|
54
|
+
* The account addresses for an authentication key.
|
|
55
|
+
* @group Implementation
|
|
56
|
+
* @category Types
|
|
57
|
+
*/
|
|
58
|
+
type GetAccountAddressesForAuthKeyResponse = GetAccountAddressesForAuthKeyQuery["auth_key_account_addresses"];
|
|
53
59
|
/**
|
|
54
60
|
* The response structure for retrieving user transactions from the top of the blockchain.
|
|
55
61
|
* @group Implementation
|
|
@@ -177,4 +183,4 @@ type GraphqlQuery = {
|
|
|
177
183
|
variables?: {};
|
|
178
184
|
};
|
|
179
185
|
|
|
180
|
-
export type { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard };
|
|
186
|
+
export type { GetANSNameResponse, GetAccountAddressesForAuthKeyResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './indexer.mjs';
|
|
2
|
-
export { bx as AccountAuthenticatorVariant,
|
|
2
|
+
export { bx as AccountAuthenticatorVariant, c8 as AccountData, cU as AccountSignature, bM as AnyNumber, bz as AnyPublicKeyVariant, bB as AnySignatureVariant, c3 as AptosRequest, c4 as AptosResponse, bN as AptosSettings, dp as AuthenticationKeyScheme, dm as Block, cq as BlockEndInfo, cr as BlockEpilogueTransactionResponse, cn as BlockMetadataTransactionResponse, c2 as Client, bT as ClientConfig, bY as ClientHeadersType, c0 as ClientRequest, c1 as ClientResponse, cc as CommittedTransactionResponse, bP as CursorPaginationArgs, cz as DecodedTableData, cA as DeletedTableData, ds as DeriveScheme, cX as DirectWriteSet, cC as EntryFunctionPayloadResponse, bE as EphemeralCertificateVariant, bC as EphemeralPublicKeyVariant, bD as EphemeralSignatureVariant, cZ as Event, cY as EventGuid, bW as FaucetConfig, bU as FullNodeConfig, c6 as GasEstimation, dw as GenerateAccount, du as GenerateAccountWithEd25519, dv as GenerateAccountWithSingleSignerSecp256k1Key, cF as GenesisPayload, cm as GenesisTransactionResponse, bo as HexInput, bV as IndexerConfig, dl as LedgerInfo, c5 as LedgerVersionArg, bn as MimeType, de as MoveAbility, d4 as MoveAddressType, dj as MoveFunction, df as MoveFunctionGenericTypeParam, d8 as MoveFunctionId, dd as MoveFunctionVisibility, dh as MoveModule, c9 as MoveModuleBytecode, dc as MoveModuleId, d5 as MoveObjectType, d6 as MoveOptionType, c7 as MoveResource, cG as MoveScriptBytecode, di as MoveStruct, dg as MoveStructField, d7 as MoveStructId, d9 as MoveStructType, da as MoveType, d2 as MoveUint128Type, c$ as MoveUint16Type, d3 as MoveUint256Type, d0 as MoveUint32Type, d1 as MoveUint64Type, c_ as MoveUint8Type, db as MoveValue, cE as MultisigPayloadResponse, bR as OrderByArg, bO as PaginationArgs, ck as PendingTransactionResponse, bZ as PluginConfig, b_ as PluginSettings, by as PrivateKeyVariants, dk as RoleType, cD as ScriptPayloadResponse, bq as ScriptTransactionArgumentVariants, cW as ScriptWriteSet, dq as SigningScheme, dr as SigningSchemeInput, co as StateCheckpointTransactionResponse, dn as TableItemRequest, bQ as TokenStandardArg, bw as TransactionAuthenticatorVariant, cO as TransactionEd25519Signature, bt as TransactionExecutableVariants, bu as TransactionExtraConfigVariants, cT as TransactionFeePayerSignature, bX as TransactionGenerationConfig, bs as TransactionInnerPayloadVariants, cS as TransactionMultiAgentSignature, cR as TransactionMultiEd25519Signature, cB as TransactionPayloadResponse, br as TransactionPayloadVariants, cb as TransactionResponse, ca as TransactionResponseType, cP as TransactionSecp256k1Signature, cH as TransactionSignature, cQ as TransactionSingleSenderSignature, b$ as TransactionSubmitter, bv as TransactionVariants, bp as TypeTagVariants, bK as Uint128, bH as Uint16, bL as Uint256, bI as Uint32, bJ as Uint64, bG as Uint8, cl as UserTransactionResponse, cp as ValidatorTransactionResponse, dt as WaitForTransactionOptions, bS as WhereArg, cV as WriteSet, cs as WriteSetChange, ct as WriteSetChangeDeleteModule, cu as WriteSetChangeDeleteResource, cv as WriteSetChangeDeleteTableItem, cw as WriteSetChangeWriteModule, cx as WriteSetChangeWriteResource, cy as WriteSetChangeWriteTableItem, bF as ZkpVariant, bA as anyPublicKeyVariantToString, cj as isBlockEpilogueTransactionResponse, cg as isBlockMetadataTransactionResponse, cI as isEd25519Signature, cL as isFeePayerSignature, cf as isGenesisTransactionResponse, cK as isMultiAgentSignature, cM as isMultiEd25519Signature, cd as isPendingTransactionResponse, cJ as isSecp256k1Signature, cN as isSingleSenderSignature, ch as isStateCheckpointTransactionResponse, ce as isUserTransactionResponse, ci as isValidatorTransactionResponse } from '../account--Q9z_xMN.mjs';
|
|
3
3
|
import '../utils/apiEndpoints.mjs';
|
|
4
4
|
import './generated/operations.mjs';
|
|
5
5
|
import './generated/types.mjs';
|
package/dist/esm/types/types.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A,B,C,D,E,F,G,H,I,J,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
1
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-IJE2LVZG.mjs";import"../chunk-KDMSOCZY.mjs";export{j as AccountAuthenticatorVariant,l as AnyPublicKeyVariant,n as AnySignatureVariant,L as DeriveScheme,q as EphemeralCertificateVariant,o as EphemeralPublicKeyVariant,p as EphemeralSignatureVariant,a as MimeType,H as MoveAbility,G as MoveFunctionVisibility,k as PrivateKeyVariants,I as RoleType,c as ScriptTransactionArgumentVariants,J as SigningScheme,K as SigningSchemeInput,i as TransactionAuthenticatorVariant,f as TransactionExecutableVariants,g as TransactionExtraConfigVariants,e as TransactionInnerPayloadVariants,d as TransactionPayloadVariants,s as TransactionResponseType,h as TransactionVariants,b as TypeTagVariants,r as ZkpVariant,m as anyPublicKeyVariantToString,z as isBlockEpilogueTransactionResponse,w as isBlockMetadataTransactionResponse,A as isEd25519Signature,D as isFeePayerSignature,v as isGenesisTransactionResponse,C as isMultiAgentSignature,E as isMultiEd25519Signature,t as isPendingTransactionResponse,B as isSecp256k1Signature,F as isSingleSenderSignature,x as isStateCheckpointTransactionResponse,u as isUserTransactionResponse,y as isValidatorTransactionResponse};
|
|
2
2
|
//# sourceMappingURL=types.mjs.map
|
|
@@ -69,6 +69,7 @@ declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
|
|
|
69
69
|
* @category Utils
|
|
70
70
|
*/
|
|
71
71
|
declare enum ProcessorType {
|
|
72
|
+
ACCOUNT_RESTORATION_PROCESSOR = "account_restoration_processor",
|
|
72
73
|
ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
|
|
73
74
|
DEFAULT = "default_processor",
|
|
74
75
|
EVENTS_PROCESSOR = "events_processor",
|
package/dist/esm/utils/const.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j}from"../chunk-JCFTAG5Z.mjs";import"../chunk-KDMSOCZY.mjs";export{e as APTOS_COIN,f as APTOS_FA,a as AptosApiType,b as DEFAULT_MAX_GAS_AMOUNT,c as DEFAULT_TXN_EXP_SEC_FROM_NOW,d as DEFAULT_TXN_TIMEOUT_SEC,j as FIREBASE_AUTH_ISS_PATTERN,i as ProcessorType,g as RAW_TRANSACTION_SALT,h as RAW_TRANSACTION_WITH_DATA_SALT};
|
|
2
2
|
//# sourceMappingURL=const.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d7 as MoveStructId, d8 as MoveFunctionId, n as AccountAddress } from '../account--Q9z_xMN.mjs';
|
|
2
2
|
import '../types/indexer.mjs';
|
|
3
3
|
import '../types/generated/operations.mjs';
|
|
4
4
|
import '../types/generated/types.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-IJE2LVZG.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{e as base64UrlDecode,f as base64UrlToBytes,g as convertAmountFromHumanReadableToOnChain,h as convertAmountFromOnChainToHumanReadable,d as floorToWholeHour,b as getErrorMessage,k as getFunctionParts,j as isEncodedStruct,l as isValidFunctionInfo,c as nowInSeconds,n as pairedFaMetadataAddress,i as parseEncodedStruct,a as sleep,m as truncateAddress};
|
|
2
2
|
//# sourceMappingURL=helpers.mjs.map
|
|
@@ -2,7 +2,7 @@ export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, Net
|
|
|
2
2
|
export { APTOS_COIN, APTOS_FA, AptosApiType, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, FIREBASE_AUTH_ISS_PATTERN, ProcessorType, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT } from './const.mjs';
|
|
3
3
|
export { DeserializableClass, normalizeBundle } from './normalizeBundle.mjs';
|
|
4
4
|
export { base64UrlDecode, base64UrlToBytes, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, floorToWholeHour, getErrorMessage, getFunctionParts, isEncodedStruct, isValidFunctionInfo, nowInSeconds, pairedFaMetadataAddress, parseEncodedStruct, sleep, truncateAddress } from './helpers.mjs';
|
|
5
|
-
import '../account
|
|
5
|
+
import '../account--Q9z_xMN.mjs';
|
|
6
6
|
import '../types/indexer.mjs';
|
|
7
7
|
import '../types/generated/operations.mjs';
|
|
8
8
|
import '../types/generated/types.mjs';
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-HGLO5LDS.mjs";import{a as s}from"../chunk-CW35YAMN.mjs";import{a as t,b as u,c as v,d as w,e as x,f as y,g as z,h as A,i as B,j as C,k as D,l as E,m as F,n as G}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-
|
|
1
|
+
import"../chunk-HGLO5LDS.mjs";import{a as s}from"../chunk-CW35YAMN.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-Q4W3WJ2U.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-FLZPUYXQ.mjs";import{a as t,b as u,c as v,d as w,e as x,f as y,g as z,h as A,i as B,j as C,k as D,l as E,m as F,n as G}from"../chunk-7DQDJ2SA.mjs";import"../chunk-HNBVYE3N.mjs";import"../chunk-RGKRCZ36.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-IJE2LVZG.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import{a,b,c,d,e,f,g,h}from"../chunk-4RXKALLC.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o,h as p,i as q,j as r}from"../chunk-JCFTAG5Z.mjs";import"../chunk-KDMSOCZY.mjs";export{m as APTOS_COIN,n as APTOS_FA,i as AptosApiType,j as DEFAULT_MAX_GAS_AMOUNT,k as DEFAULT_TXN_EXP_SEC_FROM_NOW,l as DEFAULT_TXN_TIMEOUT_SEC,r as FIREBASE_AUTH_ISS_PATTERN,f as Network,g as NetworkToChainId,c as NetworkToFaucetAPI,a as NetworkToIndexerAPI,h as NetworkToNetworkName,b as NetworkToNodeAPI,d as NetworkToPepperAPI,e as NetworkToProverAPI,q as ProcessorType,o as RAW_TRANSACTION_SALT,p as RAW_TRANSACTION_WITH_DATA_SALT,x as base64UrlDecode,y as base64UrlToBytes,z as convertAmountFromHumanReadableToOnChain,A as convertAmountFromOnChainToHumanReadable,w as floorToWholeHour,u as getErrorMessage,D as getFunctionParts,C as isEncodedStruct,E as isValidFunctionInfo,s as normalizeBundle,v as nowInSeconds,G as pairedFaMetadataAddress,B as parseEncodedStruct,t as sleep,F as truncateAddress};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Serializable, a as Deserializer } from '../account
|
|
1
|
+
import { S as Serializable, a as Deserializer } from '../account--Q9z_xMN.mjs';
|
|
2
2
|
import '../types/indexer.mjs';
|
|
3
3
|
import '../types/generated/operations.mjs';
|
|
4
4
|
import '../types/generated/types.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-CW35YAMN.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-Q4W3WJ2U.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-
|
|
1
|
+
import{a}from"../chunk-CW35YAMN.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-Q4W3WJ2U.mjs";import"../chunk-ORMOQWWH.mjs";import"../chunk-TOBQ5UE6.mjs";import"../chunk-MT2RJ7H3.mjs";import"../chunk-FLZPUYXQ.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-IJE2LVZG.mjs";import"../chunk-EBMEXURY.mjs";import"../chunk-STY74NUA.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as normalizeBundle};
|
|
2
2
|
//# sourceMappingURL=normalizeBundle.mjs.map
|
package/dist/esm/version.d.mts
CHANGED
package/dist/esm/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-75NVN2CG.mjs";import"./chunk-KDMSOCZY.mjs";export{a as VERSION};
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/package.json
CHANGED
|
@@ -140,6 +140,7 @@ export class FederatedKeylessAccount extends AbstractKeylessAccount {
|
|
|
140
140
|
uidKey?: string;
|
|
141
141
|
proofFetchCallback?: ProofFetchCallback;
|
|
142
142
|
verificationKey?: Groth16VerificationKey;
|
|
143
|
+
verificationKeyHash?: Uint8Array;
|
|
143
144
|
}): FederatedKeylessAccount {
|
|
144
145
|
const {
|
|
145
146
|
address,
|
|
@@ -151,8 +152,13 @@ export class FederatedKeylessAccount extends AbstractKeylessAccount {
|
|
|
151
152
|
uidKey = "sub",
|
|
152
153
|
proofFetchCallback,
|
|
153
154
|
verificationKey,
|
|
155
|
+
verificationKeyHash,
|
|
154
156
|
} = args;
|
|
155
157
|
|
|
158
|
+
if (verificationKeyHash && verificationKey) {
|
|
159
|
+
throw new Error("Cannot provide both verificationKey and verificationKeyHash");
|
|
160
|
+
}
|
|
161
|
+
|
|
156
162
|
const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });
|
|
157
163
|
return new FederatedKeylessAccount({
|
|
158
164
|
address,
|
|
@@ -166,7 +172,7 @@ export class FederatedKeylessAccount extends AbstractKeylessAccount {
|
|
|
166
172
|
jwkAddress: AccountAddress.from(jwkAddress),
|
|
167
173
|
jwt,
|
|
168
174
|
proofFetchCallback,
|
|
169
|
-
verificationKeyHash: verificationKey ? verificationKey.hash() : undefined,
|
|
175
|
+
verificationKeyHash: verificationKeyHash ?? (verificationKey ? verificationKey.hash() : undefined),
|
|
170
176
|
});
|
|
171
177
|
}
|
|
172
178
|
}
|
|
@@ -143,8 +143,23 @@ export class KeylessAccount extends AbstractKeylessAccount {
|
|
|
143
143
|
uidKey?: string;
|
|
144
144
|
proofFetchCallback?: ProofFetchCallback;
|
|
145
145
|
verificationKey?: Groth16VerificationKey;
|
|
146
|
+
verificationKeyHash?: Uint8Array;
|
|
146
147
|
}): KeylessAccount {
|
|
147
|
-
const {
|
|
148
|
+
const {
|
|
149
|
+
address,
|
|
150
|
+
proof,
|
|
151
|
+
jwt,
|
|
152
|
+
ephemeralKeyPair,
|
|
153
|
+
pepper,
|
|
154
|
+
uidKey = "sub",
|
|
155
|
+
proofFetchCallback,
|
|
156
|
+
verificationKey,
|
|
157
|
+
verificationKeyHash,
|
|
158
|
+
} = args;
|
|
159
|
+
|
|
160
|
+
if (verificationKeyHash && verificationKey) {
|
|
161
|
+
throw new Error("Cannot provide both verificationKey and verificationKeyHash");
|
|
162
|
+
}
|
|
148
163
|
|
|
149
164
|
const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });
|
|
150
165
|
return new KeylessAccount({
|
|
@@ -158,7 +173,7 @@ export class KeylessAccount extends AbstractKeylessAccount {
|
|
|
158
173
|
pepper,
|
|
159
174
|
jwt,
|
|
160
175
|
proofFetchCallback,
|
|
161
|
-
verificationKeyHash: verificationKey ? verificationKey.hash() : undefined,
|
|
176
|
+
verificationKeyHash: verificationKeyHash ?? (verificationKey ? verificationKey.hash() : undefined),
|
|
162
177
|
});
|
|
163
178
|
}
|
|
164
179
|
}
|
package/src/api/account.ts
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
import { Account as AccountModule } from "../account";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
AccountAddress,
|
|
7
|
+
AccountAddressInput,
|
|
8
|
+
createObjectAddress,
|
|
9
|
+
BaseAccountPublicKey,
|
|
10
|
+
PrivateKeyInput,
|
|
11
|
+
} from "../core";
|
|
6
12
|
import {
|
|
7
13
|
AccountData,
|
|
8
14
|
AnyNumber,
|
|
@@ -31,6 +37,7 @@ import {
|
|
|
31
37
|
getAccountOwnedObjects,
|
|
32
38
|
getAccountOwnedTokens,
|
|
33
39
|
getAccountOwnedTokensFromCollectionAddress,
|
|
40
|
+
getAccountsForPublicKey,
|
|
34
41
|
getAccountTokensCount,
|
|
35
42
|
getAccountTransactionsCount,
|
|
36
43
|
getInfo,
|
|
@@ -42,6 +49,8 @@ import {
|
|
|
42
49
|
getResourcesPage,
|
|
43
50
|
getTransactions,
|
|
44
51
|
lookupOriginalAccountAddress,
|
|
52
|
+
deriveOwnedAccountsFromSigner,
|
|
53
|
+
AccountInfo,
|
|
45
54
|
} from "../internal/account";
|
|
46
55
|
import { APTOS_COIN, APTOS_FA, ProcessorType } from "../utils/const";
|
|
47
56
|
import { AptosConfig } from "./aptosConfig";
|
|
@@ -977,7 +986,131 @@ export class Account {
|
|
|
977
986
|
* @group Account
|
|
978
987
|
* @deprecated Note that more inspection is needed by the user to determine which account exists on-chain
|
|
979
988
|
*/
|
|
980
|
-
async deriveAccountFromPrivateKey(args: {
|
|
989
|
+
async deriveAccountFromPrivateKey(args: {
|
|
990
|
+
privateKey: PrivateKeyInput;
|
|
991
|
+
minimumLedgerVersion?: AnyNumber;
|
|
992
|
+
options?: {
|
|
993
|
+
throwIfNoAccountFound?: boolean;
|
|
994
|
+
};
|
|
995
|
+
}): Promise<AccountModule> {
|
|
996
|
+
await waitForIndexerOnVersion({
|
|
997
|
+
config: this.config,
|
|
998
|
+
minimumLedgerVersion: args.minimumLedgerVersion,
|
|
999
|
+
processorType: ProcessorType.ACCOUNT_RESTORATION_PROCESSOR,
|
|
1000
|
+
});
|
|
1001
|
+
await waitForIndexerOnVersion({
|
|
1002
|
+
config: this.config,
|
|
1003
|
+
minimumLedgerVersion: args.minimumLedgerVersion,
|
|
1004
|
+
processorType: ProcessorType.OBJECT_PROCESSOR,
|
|
1005
|
+
});
|
|
981
1006
|
return deriveAccountFromPrivateKey({ aptosConfig: this.config, ...args });
|
|
982
1007
|
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Derives all accounts owned by a signer. This function takes a signer (either an Account or PrivateKey)
|
|
1011
|
+
* and returns all accounts that can be derived from it, ordered by the most recently used account first.
|
|
1012
|
+
*
|
|
1013
|
+
* Note, this function will not return accounts that require more than one signer to be used.
|
|
1014
|
+
*
|
|
1015
|
+
* @param args - The arguments for deriving owned accounts
|
|
1016
|
+
* @param args.signer - The signer to derive accounts from (Account or PrivateKey)
|
|
1017
|
+
* @param args.minimumLedgerVersion - The minimum ledger version to wait for before querying
|
|
1018
|
+
* @param args.options.includeUnverified - Whether to include unverified accounts in the results. Unverified accounts
|
|
1019
|
+
* are accounts that can be authenticated with the signer, but there is no history of the signer using the account.
|
|
1020
|
+
* Default is false.
|
|
1021
|
+
* @param args.options.noMultiKey - If true, do not include multi-key accounts in the results. Default is false.
|
|
1022
|
+
* @returns Promise resolving to an array of derived Account objects
|
|
1023
|
+
*
|
|
1024
|
+
* @example
|
|
1025
|
+
* ```typescript
|
|
1026
|
+
* import { Aptos, AptosConfig, Network, Ed25519Account } from "@aptos-labs/ts-sdk";
|
|
1027
|
+
*
|
|
1028
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
1029
|
+
* const aptos = new Aptos(config);
|
|
1030
|
+
*
|
|
1031
|
+
* async function getOwnedAccounts() {
|
|
1032
|
+
* const signer = Ed25519Account.generate();
|
|
1033
|
+
* const accounts = await aptos.deriveOwnedAccountsFromSigner({
|
|
1034
|
+
* signer
|
|
1035
|
+
* });
|
|
1036
|
+
* const account = accounts[0];
|
|
1037
|
+
* console.log(account);
|
|
1038
|
+
* }
|
|
1039
|
+
* ```
|
|
1040
|
+
* @group Account
|
|
1041
|
+
*/
|
|
1042
|
+
async deriveOwnedAccountsFromSigner(args: {
|
|
1043
|
+
signer: AccountModule | PrivateKeyInput;
|
|
1044
|
+
minimumLedgerVersion?: AnyNumber;
|
|
1045
|
+
options?: { includeUnverified?: boolean; noMultiKey?: boolean };
|
|
1046
|
+
}): Promise<AccountModule[]> {
|
|
1047
|
+
await waitForIndexerOnVersion({
|
|
1048
|
+
config: this.config,
|
|
1049
|
+
minimumLedgerVersion: args.minimumLedgerVersion,
|
|
1050
|
+
processorType: ProcessorType.ACCOUNT_RESTORATION_PROCESSOR,
|
|
1051
|
+
});
|
|
1052
|
+
await waitForIndexerOnVersion({
|
|
1053
|
+
config: this.config,
|
|
1054
|
+
minimumLedgerVersion: args.minimumLedgerVersion,
|
|
1055
|
+
processorType: ProcessorType.OBJECT_PROCESSOR,
|
|
1056
|
+
});
|
|
1057
|
+
return deriveOwnedAccountsFromSigner({ aptosConfig: this.config, ...args });
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Gets all account info (address, account public key, last transaction version) that have are associated with a public key and **related public keys**
|
|
1062
|
+
*
|
|
1063
|
+
* For a given public key, it will query all multikeys that the public key is part of. Then for the provided public key and
|
|
1064
|
+
* any multikeys found in the previous step, it will query for any accounts that have an auth key that matches any of the
|
|
1065
|
+
* public keys.
|
|
1066
|
+
*
|
|
1067
|
+
* Note: If an Ed25519PublicKey or an AnyPublicKey that wraps Ed25519PublicKey is passed in, it will query for both legacy and single singer cases.
|
|
1068
|
+
*
|
|
1069
|
+
* @param args - The arguments for getting accounts for a public key
|
|
1070
|
+
* @param args.publicKey - The public key to look up accounts for
|
|
1071
|
+
* @param args.minimumLedgerVersion - The minimum ledger version to wait for before querying
|
|
1072
|
+
* @param args.options.includeUnverified - Whether to include unverified accounts in the results. Unverified accounts
|
|
1073
|
+
* are accounts that can be authenticated with the signer, but there is no history of the signer using the account. Default
|
|
1074
|
+
* is false.
|
|
1075
|
+
* @param args.options.noMultiKey - Whether to exclude multi-key accounts in the results. Default is false.
|
|
1076
|
+
* @returns Promise resolving to an array of account addresses and their associated public keys
|
|
1077
|
+
*
|
|
1078
|
+
* @example
|
|
1079
|
+
* ```typescript
|
|
1080
|
+
* import { Aptos, AptosConfig, Network, Ed25519PrivateKey } from "@aptos-labs/ts-sdk";
|
|
1081
|
+
*
|
|
1082
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
1083
|
+
* const aptos = new Aptos(config);
|
|
1084
|
+
*
|
|
1085
|
+
* async function getAccounts() {
|
|
1086
|
+
* const privateKey = Ed25519PrivateKey.generate();
|
|
1087
|
+
* const publicKey = privateKey.publicKey();
|
|
1088
|
+
* const accounts = await aptos.getAccountsForPublicKey({
|
|
1089
|
+
* publicKey
|
|
1090
|
+
* });
|
|
1091
|
+
* console.log(accounts);
|
|
1092
|
+
* }
|
|
1093
|
+
* ```
|
|
1094
|
+
* @group Account
|
|
1095
|
+
*/
|
|
1096
|
+
async getAccountsForPublicKey(args: {
|
|
1097
|
+
publicKey: BaseAccountPublicKey;
|
|
1098
|
+
minimumLedgerVersion?: AnyNumber;
|
|
1099
|
+
options?: { includeUnverified?: boolean; noMultiKey?: boolean };
|
|
1100
|
+
}): Promise<AccountInfo[]> {
|
|
1101
|
+
await waitForIndexerOnVersion({
|
|
1102
|
+
config: this.config,
|
|
1103
|
+
minimumLedgerVersion: args.minimumLedgerVersion,
|
|
1104
|
+
processorType: ProcessorType.ACCOUNT_RESTORATION_PROCESSOR,
|
|
1105
|
+
});
|
|
1106
|
+
await waitForIndexerOnVersion({
|
|
1107
|
+
config: this.config,
|
|
1108
|
+
minimumLedgerVersion: args.minimumLedgerVersion,
|
|
1109
|
+
processorType: ProcessorType.OBJECT_PROCESSOR,
|
|
1110
|
+
});
|
|
1111
|
+
return getAccountsForPublicKey({
|
|
1112
|
+
aptosConfig: this.config,
|
|
1113
|
+
...args,
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
983
1116
|
}
|
package/src/api/transaction.ts
CHANGED
|
@@ -523,6 +523,7 @@ export class Transaction {
|
|
|
523
523
|
async rotateAuthKey(
|
|
524
524
|
args: {
|
|
525
525
|
fromAccount: Account;
|
|
526
|
+
options?: InputGenerateTransactionOptions;
|
|
526
527
|
} & (
|
|
527
528
|
| { toAccount: Account; dangerouslySkipVerification?: never }
|
|
528
529
|
| { toNewPrivateKey: Ed25519PrivateKey; dangerouslySkipVerification?: never }
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { AccountAuthenticator, AnyRawTransaction, InputTransactionPluginData } from "../../transactions";
|
|
2
|
+
import { AptosConfig } from "../aptosConfig";
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* Validates the fee payer data when submitting a transaction to ensure that the fee
|
|
3
|
-
* payer address is specified.
|
|
4
|
-
*
|
|
5
|
+
* Validates the fee payer data when submitting a transaction to ensure that the fee
|
|
6
|
+
* payer authenticator is provided if a fee payer address is specified. This helps
|
|
7
|
+
* prevent errors in transaction submission related to fee payer authentication.
|
|
5
8
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @param
|
|
9
|
+
* The validation is skipped if a custom transaction submitter is defined.
|
|
10
|
+
*
|
|
11
|
+
* @param config - The Aptos configuration that may contain a transaction submitter.
|
|
12
|
+
* @param args - The method arguments containing transaction data and optional transaction submitter.
|
|
9
13
|
*
|
|
10
14
|
* @example
|
|
11
15
|
* ```typescript
|
|
@@ -15,8 +19,8 @@
|
|
|
15
19
|
* const aptos = new Aptos(config);
|
|
16
20
|
*
|
|
17
21
|
* class TransactionHandler {
|
|
18
|
-
* @ValidateFeePayerDataOnSubmission
|
|
19
22
|
* async submitTransaction(methodArgs: { transaction: { feePayerAddress: string }, feePayerAuthenticator?: string }) {
|
|
23
|
+
* validateFeePayerDataOnSubmission(this.config, methodArgs);
|
|
20
24
|
* // Logic to submit the transaction
|
|
21
25
|
* }
|
|
22
26
|
* }
|
|
@@ -45,20 +49,22 @@
|
|
|
45
49
|
* ```
|
|
46
50
|
* @group Implementation
|
|
47
51
|
*/
|
|
48
|
-
export function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return
|
|
59
|
-
}
|
|
52
|
+
export function validateFeePayerDataOnSubmission(
|
|
53
|
+
config: AptosConfig,
|
|
54
|
+
args: {
|
|
55
|
+
transaction: AnyRawTransaction;
|
|
56
|
+
senderAuthenticator: AccountAuthenticator;
|
|
57
|
+
feePayerAuthenticator?: AccountAuthenticator;
|
|
58
|
+
} & InputTransactionPluginData,
|
|
59
|
+
): void {
|
|
60
|
+
// Skip validation if a transaction submitter is defined.
|
|
61
|
+
if (config.getTransactionSubmitter() !== undefined || args.transactionSubmitter !== undefined) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
60
64
|
|
|
61
|
-
|
|
65
|
+
if (args.transaction.feePayerAddress && !args.feePayerAuthenticator) {
|
|
66
|
+
throw new Error("You are submitting a Fee Payer transaction but missing the feePayerAuthenticator");
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
/**
|
|
@@ -5,7 +5,7 @@ import { submitTransaction } from "../../internal/transactionSubmission";
|
|
|
5
5
|
import { AccountAuthenticator, AnyRawTransaction, InputTransactionPluginData } from "../../transactions";
|
|
6
6
|
import { PendingTransactionResponse } from "../../types";
|
|
7
7
|
import { AptosConfig } from "../aptosConfig";
|
|
8
|
-
import {
|
|
8
|
+
import { validateFeePayerDataOnSubmission } from "./helpers";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A class to handle all `Submit` transaction operations.
|
|
@@ -86,7 +86,6 @@ export class Submit {
|
|
|
86
86
|
* ```
|
|
87
87
|
* @group Implementation
|
|
88
88
|
*/
|
|
89
|
-
@ValidateFeePayerDataOnSubmission
|
|
90
89
|
async simple(
|
|
91
90
|
args: {
|
|
92
91
|
transaction: AnyRawTransaction;
|
|
@@ -94,6 +93,7 @@ export class Submit {
|
|
|
94
93
|
feePayerAuthenticator?: AccountAuthenticator;
|
|
95
94
|
} & InputTransactionPluginData,
|
|
96
95
|
): Promise<PendingTransactionResponse> {
|
|
96
|
+
validateFeePayerDataOnSubmission(this.config, args);
|
|
97
97
|
return submitTransaction({ aptosConfig: this.config, ...args });
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -142,7 +142,6 @@ export class Submit {
|
|
|
142
142
|
* ```
|
|
143
143
|
* @group Implementation
|
|
144
144
|
*/
|
|
145
|
-
@ValidateFeePayerDataOnSubmission
|
|
146
145
|
async multiAgent(
|
|
147
146
|
args: {
|
|
148
147
|
transaction: AnyRawTransaction;
|
|
@@ -151,6 +150,7 @@ export class Submit {
|
|
|
151
150
|
feePayerAuthenticator?: AccountAuthenticator;
|
|
152
151
|
} & InputTransactionPluginData,
|
|
153
152
|
): Promise<PendingTransactionResponse> {
|
|
153
|
+
validateFeePayerDataOnSubmission(this.config, args);
|
|
154
154
|
return submitTransaction({ aptosConfig: this.config, ...args });
|
|
155
155
|
}
|
|
156
156
|
}
|
package/src/core/crypto/index.ts
CHANGED
|
@@ -92,6 +92,10 @@ export class MultiEd25519PublicKey extends AbstractMultiKey {
|
|
|
92
92
|
this.threshold = threshold;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
getSignaturesRequired(): number {
|
|
96
|
+
return this.threshold;
|
|
97
|
+
}
|
|
98
|
+
|
|
95
99
|
// region AccountPublicKey
|
|
96
100
|
|
|
97
101
|
/**
|
|
@@ -217,6 +221,28 @@ export class MultiEd25519PublicKey extends AbstractMultiKey {
|
|
|
217
221
|
return new MultiEd25519PublicKey({ publicKeys: keys, threshold });
|
|
218
222
|
}
|
|
219
223
|
|
|
224
|
+
/**
|
|
225
|
+
* Deserializes a MultiEd25519Signature from the provided deserializer.
|
|
226
|
+
* This function helps in reconstructing a MultiEd25519Signature object from its serialized byte representation.
|
|
227
|
+
*
|
|
228
|
+
* @param deserializer - The deserializer instance used to read the serialized data.
|
|
229
|
+
* @group Implementation
|
|
230
|
+
* @category Serialization
|
|
231
|
+
*/
|
|
232
|
+
static deserializeWithoutLength(deserializer: Deserializer): MultiEd25519PublicKey {
|
|
233
|
+
const length = deserializer.remaining();
|
|
234
|
+
const bytes = deserializer.deserializeFixedBytes(length);
|
|
235
|
+
const threshold = bytes[bytes.length - 1];
|
|
236
|
+
|
|
237
|
+
const keys: Ed25519PublicKey[] = [];
|
|
238
|
+
|
|
239
|
+
for (let i = 0; i < bytes.length - 1; i += Ed25519PublicKey.LENGTH) {
|
|
240
|
+
const begin = i;
|
|
241
|
+
keys.push(new Ed25519PublicKey(bytes.subarray(begin, begin + Ed25519PublicKey.LENGTH)));
|
|
242
|
+
}
|
|
243
|
+
return new MultiEd25519PublicKey({ publicKeys: keys, threshold });
|
|
244
|
+
}
|
|
245
|
+
|
|
220
246
|
// endregion
|
|
221
247
|
|
|
222
248
|
/**
|
|
@@ -96,6 +96,8 @@ export abstract class AbstractMultiKey extends AccountPublicKey {
|
|
|
96
96
|
}
|
|
97
97
|
throw new Error(`Public key ${publicKey} not found in multi key set ${this.publicKeys}`);
|
|
98
98
|
}
|
|
99
|
+
|
|
100
|
+
abstract getSignaturesRequired(): number;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
/**
|
|
@@ -175,6 +177,10 @@ export class MultiKey extends AbstractMultiKey {
|
|
|
175
177
|
this.signaturesRequired = signaturesRequired;
|
|
176
178
|
}
|
|
177
179
|
|
|
180
|
+
getSignaturesRequired(): number {
|
|
181
|
+
return this.signaturesRequired;
|
|
182
|
+
}
|
|
183
|
+
|
|
178
184
|
// endregion
|
|
179
185
|
|
|
180
186
|
// region AccountPublicKey
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnyPublicKey } from "./singleKey";
|
|
2
|
+
import { Ed25519PublicKey } from "./ed25519";
|
|
3
|
+
import { MultiKey } from "./multiKey";
|
|
4
|
+
import { MultiEd25519PublicKey } from "./multiEd25519";
|
|
5
|
+
|
|
6
|
+
// This type is used to represent the base from of an account's public key.
|
|
7
|
+
// These are the types of public keys that can be used to derive an account's address by appending
|
|
8
|
+
// the signing scheme to the public key as bytes and hashing it.
|
|
9
|
+
export type BaseAccountPublicKey = Ed25519PublicKey | AnyPublicKey | MultiKey | MultiEd25519PublicKey;
|