@aptos-labs/ts-sdk 1.36.0-zeta.0 → 1.37.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-C685VEzA.d.ts → accountAddress-DZH9Wn5l.d.ts} +28 -1
- package/dist/common/chunk-MVCKMP5U.js +4 -0
- package/dist/common/{chunk-5GUWOXQG.js.map → chunk-MVCKMP5U.js.map} +1 -1
- 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 +221 -31
- package/dist/common/index.js +9 -9
- package/dist/common/index.js.map +1 -1
- package/dist/esm/{Ed25519Account-6KGApCPu.d.mts → Ed25519Account-CDURCT1q.d.mts} +56 -0
- package/dist/esm/account/AbstractKeylessAccount.d.mts +2 -2
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.d.mts +1 -1
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +3 -3
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.d.mts +2 -2
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +4 -4
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.d.mts +2 -2
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +2 -2
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.d.mts +35 -13
- package/dist/esm/account/MultiEd25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.d.mts +6 -2
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.d.mts +4 -4
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +2 -2
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.d.mts +85 -6
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +2 -2
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/experimental.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.d.mts +1 -1
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.d.mts +2 -2
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +2 -2
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/{chunk-AIPHJFJL.mjs → chunk-3IGJ2IMB.mjs} +2 -2
- package/dist/esm/{chunk-CWL7ZA3P.mjs → chunk-5MMTP427.mjs} +2 -2
- package/dist/esm/chunk-6374Q7AG.mjs +2 -0
- package/dist/esm/{chunk-3RVAGHAA.mjs.map → chunk-6374Q7AG.mjs.map} +1 -1
- package/dist/esm/{chunk-AEGA5N2W.mjs → chunk-6J64BOS7.mjs} +2 -2
- package/dist/esm/chunk-7H44HTYE.mjs +4 -0
- package/dist/esm/chunk-7H44HTYE.mjs.map +1 -0
- package/dist/esm/{chunk-6KE4JZD6.mjs → chunk-7VEWPUCH.mjs} +2 -2
- package/dist/esm/chunk-ANTUWHYB.mjs +2 -0
- package/dist/esm/chunk-ANTUWHYB.mjs.map +1 -0
- package/dist/esm/{chunk-R6QCPXQG.mjs → chunk-B373VRCY.mjs} +2 -2
- package/dist/esm/chunk-B373VRCY.mjs.map +1 -0
- package/dist/esm/{chunk-TTY5GFMN.mjs → chunk-BSH7B2QT.mjs} +2 -2
- package/dist/esm/chunk-EYLZD4JU.mjs +4 -0
- package/dist/esm/chunk-EYLZD4JU.mjs.map +1 -0
- package/dist/esm/chunk-GPG64UZT.mjs +2 -0
- package/dist/esm/{chunk-X5YB74NB.mjs.map → chunk-GPG64UZT.mjs.map} +1 -1
- package/dist/esm/{chunk-PSZYS4RG.mjs → chunk-HRHICHDX.mjs} +2 -2
- package/dist/esm/{chunk-XLDMPCLF.mjs → chunk-JG4T5BDZ.mjs} +2 -2
- package/dist/esm/{chunk-35CO4BP4.mjs → chunk-LBA4CTUV.mjs} +2 -2
- package/dist/esm/{chunk-RXMLONF7.mjs → chunk-NZXPT44W.mjs} +2 -2
- package/dist/esm/{chunk-KXVD52Y6.mjs → chunk-POELQOLD.mjs} +2 -2
- package/dist/esm/chunk-PR72YXRK.mjs +2 -0
- package/dist/esm/chunk-PR72YXRK.mjs.map +1 -0
- package/dist/esm/{chunk-3EUHEZND.mjs → chunk-PXG3WJIU.mjs} +2 -2
- package/dist/esm/{chunk-TBY3VMMV.mjs → chunk-TTFYJM6A.mjs} +2 -2
- package/dist/esm/{chunk-EODSU3YN.mjs → chunk-VNUNIQAY.mjs} +2 -2
- package/dist/esm/{chunk-WB26DWOY.mjs → chunk-YHJHXLYS.mjs} +2 -2
- package/dist/esm/{chunk-7YTGBTWH.mjs → chunk-YHKWV7NV.mjs} +2 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +5 -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.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.d.mts +18 -0
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.d.mts +2 -2
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +1 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +2 -2
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +4 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.d.mts +4 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/{federatedKeyless-Qe_j8OqV.d.mts → federatedKeyless-J5bdbbLQ.d.mts} +20 -20
- package/dist/esm/index.d.mts +5 -5
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.d.mts +49 -6
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +1 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.d.mts +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/experimental.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.d.mts +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.d.mts +2 -2
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.d.mts +1 -1
- 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 +2 -19
- package/dist/esm/internal/utils/utils.mjs +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.d.mts +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.d.mts +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.d.mts +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/scriptComposer/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/types/index.d.mts +1 -1
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/types.d.mts +10 -1
- package/dist/esm/types/types.mjs +1 -1
- package/dist/esm/utils/helpers.d.mts +27 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.d.mts +3 -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 +7 -1
- package/src/account/Account.ts +20 -0
- package/src/account/Ed25519Account.ts +26 -1
- package/src/account/MultiEd25519Account.ts +28 -1
- package/src/account/MultiKeyAccount.ts +2 -0
- package/src/account/SingleKeyAccount.ts +35 -1
- package/src/api/account.ts +84 -4
- package/src/client/get.ts +45 -18
- package/src/core/accountAddress.ts +25 -0
- package/src/core/crypto/federatedKeyless.ts +8 -2
- package/src/core/crypto/keyless.ts +93 -60
- package/src/core/crypto/multiEd25519.ts +2 -2
- package/src/core/crypto/multiKey.ts +24 -13
- package/src/core/crypto/singleKey.ts +12 -2
- package/src/internal/account.ts +84 -7
- package/src/internal/utils/utils.ts +2 -32
- package/src/types/types.ts +10 -0
- package/src/utils/helpers.ts +50 -0
- package/src/version.ts +1 -1
- package/dist/common/chunk-5GUWOXQG.js +0 -4
- package/dist/esm/chunk-3RVAGHAA.mjs +0 -2
- package/dist/esm/chunk-LQOSHBB7.mjs +0 -4
- package/dist/esm/chunk-LQOSHBB7.mjs.map +0 -1
- package/dist/esm/chunk-NFPNWY6Z.mjs +0 -4
- package/dist/esm/chunk-NFPNWY6Z.mjs.map +0 -1
- package/dist/esm/chunk-R6QCPXQG.mjs.map +0 -1
- package/dist/esm/chunk-TNWABITK.mjs +0 -2
- package/dist/esm/chunk-TNWABITK.mjs.map +0 -1
- package/dist/esm/chunk-X5YB74NB.mjs +0 -2
- package/dist/esm/chunk-ZELTLAUN.mjs +0 -2
- package/dist/esm/chunk-ZELTLAUN.mjs.map +0 -1
- /package/dist/esm/{chunk-AIPHJFJL.mjs.map → chunk-3IGJ2IMB.mjs.map} +0 -0
- /package/dist/esm/{chunk-CWL7ZA3P.mjs.map → chunk-5MMTP427.mjs.map} +0 -0
- /package/dist/esm/{chunk-AEGA5N2W.mjs.map → chunk-6J64BOS7.mjs.map} +0 -0
- /package/dist/esm/{chunk-6KE4JZD6.mjs.map → chunk-7VEWPUCH.mjs.map} +0 -0
- /package/dist/esm/{chunk-TTY5GFMN.mjs.map → chunk-BSH7B2QT.mjs.map} +0 -0
- /package/dist/esm/{chunk-PSZYS4RG.mjs.map → chunk-HRHICHDX.mjs.map} +0 -0
- /package/dist/esm/{chunk-XLDMPCLF.mjs.map → chunk-JG4T5BDZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-35CO4BP4.mjs.map → chunk-LBA4CTUV.mjs.map} +0 -0
- /package/dist/esm/{chunk-RXMLONF7.mjs.map → chunk-NZXPT44W.mjs.map} +0 -0
- /package/dist/esm/{chunk-KXVD52Y6.mjs.map → chunk-POELQOLD.mjs.map} +0 -0
- /package/dist/esm/{chunk-3EUHEZND.mjs.map → chunk-PXG3WJIU.mjs.map} +0 -0
- /package/dist/esm/{chunk-TBY3VMMV.mjs.map → chunk-TTFYJM6A.mjs.map} +0 -0
- /package/dist/esm/{chunk-EODSU3YN.mjs.map → chunk-VNUNIQAY.mjs.map} +0 -0
- /package/dist/esm/{chunk-WB26DWOY.mjs.map → chunk-YHJHXLYS.mjs.map} +0 -0
- /package/dist/esm/{chunk-7YTGBTWH.mjs.map → chunk-YHKWV7NV.mjs.map} +0 -0
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, N as Network, C as Client, h as ClientConfig, F as FullNodeConfig, I as IndexerConfig, i as FaucetConfig, j as AptosSettings, P as PrivateKeyVariants, k as AnyPublicKeyVariant, M as MoveModuleId, l as ScriptFunctionArgument, m as MoveFunctionId, n as AccountAddressInput, o as MoveStructId, p as MoveValue, q as MoveFunctionGenericTypeParam, r as MoveFunction, s as MoveModule, t as AccountData,
|
|
2
|
-
export {
|
|
1
|
+
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, N as Network, C as Client, h as ClientConfig, F as FullNodeConfig, I as IndexerConfig, i as FaucetConfig, j as AptosSettings, P as PrivateKeyVariants, k as AnyPublicKeyVariant, M as MoveModuleId, l as ScriptFunctionArgument, m as MoveFunctionId, n as AccountAddressInput, o as MoveStructId, p as MoveValue, q as MoveFunctionGenericTypeParam, r as MoveFunction, s as MoveModule, t as AccountData, L as LedgerVersionArg, u as MoveModuleBytecode, v as CursorPaginationArgs, w as PaginationArgs, x as TransactionResponse, y as MoveResource, z as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, B as GetAccountOwnedTokensFromCollectionResponse, J as GetAccountCollectionsWithOwnedTokenResponse, K as GetAccountCoinsDataResponse, W as WhereArg, Q as GetObjectDataQueryResponse, R as GetCollectionDataResponse, V as GetTokenDataResponse, X as GetCurrentTokenOwnershipResponse, Y as GetOwnedTokensResponse, Z as GetTokenActivityResponse, _ as GetEventsResponse, $ as WaitForTransactionOptions, a0 as UserTransactionResponse, a1 as GetFungibleAssetMetadataResponse, a2 as GetFungibleAssetActivitiesResponse, a3 as GetCurrentFungibleAssetBalancesResponse, a4 as LedgerInfo, a5 as Block, a6 as GetChainTopUserTransactionsResponse, a7 as GraphqlQuery, a8 as GetProcessorStatusResponse, a9 as GetANSNameResponse, aa as GetNumberOfDelegatorsResponse, ab as GetDelegatedStakingActivitiesResponse, ac as PendingTransactionResponse, ad as CommittedTransactionResponse, ae as GasEstimation, af as TableItemRequest, ag as GetTableItemsDataResponse, ah as GetTableItemsMetadataResponse, ai as EphemeralPublicKeyVariant, aj as EphemeralCertificateVariant, ak as ZkpVariant, al as SigningSchemeInput, am as SigningScheme, an as ClientRequest, ao as ClientResponse, ap as AptosRequest, aq as AptosResponse, ar as MimeType } from './accountAddress-DZH9Wn5l.js';
|
|
2
|
+
export { aI as AccountAuthenticatorVariant, br as AccountSignature, av as AddressInvalidReason, aJ as AnySignatureVariant, a$ as BlockEndInfo, b0 as BlockEpilogueTransactionResponse, aY as BlockMetadataTransactionResponse, aO as ClientHeadersType, b8 as DecodedTableData, b9 as DeletedTableData, bN as DeriveScheme, bu as DirectWriteSet, bb as EntryFunctionPayloadResponse, aK as EphemeralSignatureVariant, bw as Event, bv as EventGuid, bQ as GenerateAccount, bO as GenerateAccountWithEd25519, bP as GenerateAccountWithSingleSignerSecp256k1Key, be as GenesisPayload, aX as GenesisTransactionResponse, ay as HexInvalidReason, bJ as MoveAbility, bD as MoveAddressType, bI as MoveFunctionVisibility, bE as MoveObjectType, bF as MoveOptionType, bf as MoveScriptBytecode, bL as MoveStruct, bK as MoveStructField, bG as MoveStructType, bH as MoveType, bB as MoveUint128Type, by as MoveUint16Type, bC as MoveUint256Type, bz as MoveUint32Type, bA as MoveUint64Type, bx as MoveUint8Type, bd as MultisigPayloadResponse, bW as NetworkToChainId, bT as NetworkToFaucetAPI, bR as NetworkToIndexerAPI, bX as NetworkToNetworkName, bS as NetworkToNodeAPI, bU as NetworkToPepperAPI, bV as NetworkToProverAPI, aA as OrderBy, aB as OrderByValue, aw as ParsingError, ax as ParsingResult, bM as RoleType, bc as ScriptPayloadResponse, aE as ScriptTransactionArgumentVariants, bt as ScriptWriteSet, aZ as StateCheckpointTransactionResponse, aC as TokenStandard, aH as TransactionAuthenticatorVariant, bm as TransactionEd25519Signature, bq as TransactionFeePayerSignature, bp as TransactionMultiAgentSignature, bo as TransactionMultiEd25519Signature, ba as TransactionPayloadResponse, aF as TransactionPayloadVariants, aP as TransactionResponseType, bn as TransactionSecp256k1Signature, bg as TransactionSignature, aG as TransactionVariants, aD as TypeTagVariants, aM as Uint128, aN as Uint256, aL as Uint64, a_ as ValidatorTransactionResponse, bs as WriteSet, b1 as WriteSetChange, b2 as WriteSetChangeDeleteModule, b3 as WriteSetChangeDeleteResource, b4 as WriteSetChangeDeleteTableItem, b5 as WriteSetChangeWriteModule, b6 as WriteSetChangeWriteResource, b7 as WriteSetChangeWriteTableItem, as as ensureBoolean, az as hexToAsciiString, aW as isBlockEpilogueTransactionResponse, aT as isBlockMetadataTransactionResponse, bh as isEd25519Signature, bk as isFeePayerSignature, aS as isGenesisTransactionResponse, bj as isMultiAgentSignature, bl as isMultiEd25519Signature, aQ as isPendingTransactionResponse, bi as isSecp256k1Signature, aU as isStateCheckpointTransactionResponse, aR as isUserTransactionResponse, aV as isValidatorTransactionResponse, at as outOfRangeErrorMessage, au as validateNumberInRange } from './accountAddress-DZH9Wn5l.js';
|
|
3
3
|
import { CallArgument } from '@aptos-labs/script-composer-pack';
|
|
4
4
|
export { CallArgument } from '@aptos-labs/script-composer-pack';
|
|
5
5
|
import { ProjPointType } from '@noble/curves/abstract/weierstrass';
|
|
@@ -2191,7 +2191,10 @@ declare class AnyPublicKey extends AccountPublicKey {
|
|
|
2191
2191
|
verifySignatureAsync(args: {
|
|
2192
2192
|
aptosConfig: AptosConfig;
|
|
2193
2193
|
message: HexInput;
|
|
2194
|
-
signature:
|
|
2194
|
+
signature: Signature;
|
|
2195
|
+
options?: {
|
|
2196
|
+
throwErrorWithReason?: boolean;
|
|
2197
|
+
};
|
|
2195
2198
|
}): Promise<boolean>;
|
|
2196
2199
|
/**
|
|
2197
2200
|
* Generates an authentication key from the current instance's byte representation.
|
|
@@ -2394,7 +2397,10 @@ declare class MultiKey extends AbstractMultiKey {
|
|
|
2394
2397
|
verifySignatureAsync(args: {
|
|
2395
2398
|
aptosConfig: AptosConfig;
|
|
2396
2399
|
message: HexInput;
|
|
2397
|
-
signature:
|
|
2400
|
+
signature: Signature;
|
|
2401
|
+
options?: {
|
|
2402
|
+
throwErrorWithReason?: boolean;
|
|
2403
|
+
};
|
|
2398
2404
|
}): Promise<boolean>;
|
|
2399
2405
|
/**
|
|
2400
2406
|
* Generates an authentication key based on the current instance's byte representation.
|
|
@@ -2599,12 +2605,12 @@ declare class MultiEd25519PublicKey extends AbstractMultiKey {
|
|
|
2599
2605
|
*/
|
|
2600
2606
|
verifySignature(args: {
|
|
2601
2607
|
message: HexInput;
|
|
2602
|
-
signature:
|
|
2608
|
+
signature: Signature;
|
|
2603
2609
|
}): boolean;
|
|
2604
2610
|
verifySignatureAsync(args: {
|
|
2605
2611
|
aptosConfig: AptosConfig;
|
|
2606
2612
|
message: HexInput;
|
|
2607
|
-
signature:
|
|
2613
|
+
signature: Signature;
|
|
2608
2614
|
}): Promise<boolean>;
|
|
2609
2615
|
/**
|
|
2610
2616
|
* Generates an authentication key based on the current instance's byte representation.
|
|
@@ -5256,7 +5262,6 @@ declare class Account$1 {
|
|
|
5256
5262
|
* This function may call the API multiple times to auto paginate through results.
|
|
5257
5263
|
*
|
|
5258
5264
|
* @param args.accountAddress - The Aptos account address to query modules for.
|
|
5259
|
-
* @param args.options.offset - The cursor to start returning results from. Note, this is obfuscated and is not an index.
|
|
5260
5265
|
* @param args.options.limit - The maximum number of results to return.
|
|
5261
5266
|
* @param args.options.ledgerVersion - The ledger version to query; if not provided, it retrieves the latest version.
|
|
5262
5267
|
*
|
|
@@ -5274,7 +5279,6 @@ declare class Account$1 {
|
|
|
5274
5279
|
* const accountModules = await aptos.getAccountModules({
|
|
5275
5280
|
* accountAddress: "0x1", // replace with a real account address
|
|
5276
5281
|
* options: {
|
|
5277
|
-
* offset: 0, // starting from the first module
|
|
5278
5282
|
* limit: 10, // limiting to 10 modules
|
|
5279
5283
|
* },
|
|
5280
5284
|
* });
|
|
@@ -5287,8 +5291,51 @@ declare class Account$1 {
|
|
|
5287
5291
|
*/
|
|
5288
5292
|
getAccountModules(args: {
|
|
5289
5293
|
accountAddress: AccountAddressInput;
|
|
5290
|
-
options?:
|
|
5294
|
+
options?: {
|
|
5295
|
+
limit?: number;
|
|
5296
|
+
} & LedgerVersionArg;
|
|
5291
5297
|
}): Promise<MoveModuleBytecode[]>;
|
|
5298
|
+
/**
|
|
5299
|
+
* Queries for a page of modules in an account given an account address.
|
|
5300
|
+
*
|
|
5301
|
+
* @param args.accountAddress - The Aptos account address to query modules for.
|
|
5302
|
+
* @param args.options.cursor - The cursor to start returning results from. Note, this is obfuscated and is not an index.
|
|
5303
|
+
* @param args.options.limit - The maximum number of results to return.
|
|
5304
|
+
* @param args.options.ledgerVersion - The ledger version to query; if not provided, it retrieves the latest version.
|
|
5305
|
+
*
|
|
5306
|
+
* @returns - The account modules associated with the specified address. Along with a cursor for future pagination. If the cursor is undefined, it means there are no more modules to fetch.
|
|
5307
|
+
*
|
|
5308
|
+
* @example
|
|
5309
|
+
* ```typescript
|
|
5310
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
5311
|
+
*
|
|
5312
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
5313
|
+
* const aptos = new Aptos(config);
|
|
5314
|
+
*
|
|
5315
|
+
* async function runExample() {
|
|
5316
|
+
* // Fetching account modules for a specific account
|
|
5317
|
+
* const {modules, cursor} = await aptos.getAccountModulesPage({
|
|
5318
|
+
* accountAddress: "0x1", // replace with a real account address
|
|
5319
|
+
* options: {
|
|
5320
|
+
* cursor: undefined, // starting from the first module
|
|
5321
|
+
* limit: 10, // limiting to 10 modules
|
|
5322
|
+
* },
|
|
5323
|
+
* });
|
|
5324
|
+
*
|
|
5325
|
+
* console.log(modules);
|
|
5326
|
+
* console.log(`More to fetch: ${cursor !== undefined}`);
|
|
5327
|
+
* }
|
|
5328
|
+
* runExample().catch(console.error);
|
|
5329
|
+
* ```
|
|
5330
|
+
* @group Account
|
|
5331
|
+
*/
|
|
5332
|
+
getAccountModulesPage(args: {
|
|
5333
|
+
accountAddress: AccountAddressInput;
|
|
5334
|
+
options?: CursorPaginationArgs & LedgerVersionArg;
|
|
5335
|
+
}): Promise<{
|
|
5336
|
+
modules: MoveModuleBytecode[];
|
|
5337
|
+
cursor: string | undefined;
|
|
5338
|
+
}>;
|
|
5292
5339
|
/**
|
|
5293
5340
|
* Queries for a specific account module given an account address and module name.
|
|
5294
5341
|
*
|
|
@@ -5366,7 +5413,6 @@ declare class Account$1 {
|
|
|
5366
5413
|
* This function may call the API multiple times to auto paginate through results.
|
|
5367
5414
|
*
|
|
5368
5415
|
* @param args.accountAddress - The Aptos account address to query resources for.
|
|
5369
|
-
* @param args.options.offset - The cursor to start returning results from. Note, this is obfuscated and is not an index.
|
|
5370
5416
|
* @param args.options.limit - The maximum number of results to return.
|
|
5371
5417
|
* @param args.options.ledgerVersion - The ledger version to query; if not provided, it will get the latest version.
|
|
5372
5418
|
* @returns Account resources.
|
|
@@ -5391,6 +5437,45 @@ declare class Account$1 {
|
|
|
5391
5437
|
accountAddress: AccountAddressInput;
|
|
5392
5438
|
options?: PaginationArgs & LedgerVersionArg;
|
|
5393
5439
|
}): Promise<MoveResource[]>;
|
|
5440
|
+
/**
|
|
5441
|
+
* Queries a page of account resources given an account address.
|
|
5442
|
+
*
|
|
5443
|
+
* @param args.accountAddress - The Aptos account address to query resources for.
|
|
5444
|
+
* @param args.options.cursor - The cursor to start returning results from. Note, this is obfuscated and is not an index.
|
|
5445
|
+
* @param args.options.limit - The maximum number of results to return.
|
|
5446
|
+
* @param args.options.ledgerVersion - The ledger version to query; if not provided, it will get the latest version.
|
|
5447
|
+
* @returns Account resources.
|
|
5448
|
+
*
|
|
5449
|
+
* @example
|
|
5450
|
+
* ```typescript
|
|
5451
|
+
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
5452
|
+
*
|
|
5453
|
+
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
5454
|
+
* const aptos = new Aptos(config);
|
|
5455
|
+
*
|
|
5456
|
+
* async function runExample() {
|
|
5457
|
+
* // Fetching account resources for a specific account address
|
|
5458
|
+
* const resources = await aptos.getAccountResourcesPage({
|
|
5459
|
+
* accountAddress: "0x1", // replace with a real account address
|
|
5460
|
+
* options: {
|
|
5461
|
+
* cursor: undefined, // starting from the first resource
|
|
5462
|
+
* limit: 10, // limiting to 10 resources
|
|
5463
|
+
* },
|
|
5464
|
+
* });
|
|
5465
|
+
* console.log(resources);
|
|
5466
|
+
* console.log(`More to fetch: ${resources.cursor !== undefined}`);
|
|
5467
|
+
* }
|
|
5468
|
+
* runExample().catch(console.error);
|
|
5469
|
+
* ```
|
|
5470
|
+
* @group Account
|
|
5471
|
+
*/
|
|
5472
|
+
getAccountResourcesPage(args: {
|
|
5473
|
+
accountAddress: AccountAddressInput;
|
|
5474
|
+
options?: CursorPaginationArgs & LedgerVersionArg;
|
|
5475
|
+
}): Promise<{
|
|
5476
|
+
resources: MoveResource[];
|
|
5477
|
+
cursor: string | undefined;
|
|
5478
|
+
}>;
|
|
5394
5479
|
/**
|
|
5395
5480
|
* Queries a specific account resource given an account address and resource type.
|
|
5396
5481
|
*
|
|
@@ -10720,24 +10805,10 @@ declare class KeylessPublicKey extends AccountPublicKey {
|
|
|
10720
10805
|
*/
|
|
10721
10806
|
verifySignature(args: {
|
|
10722
10807
|
message: HexInput;
|
|
10723
|
-
signature:
|
|
10808
|
+
signature: Signature;
|
|
10724
10809
|
jwk: MoveJWK;
|
|
10725
10810
|
keylessConfig: KeylessConfiguration;
|
|
10726
10811
|
}): boolean;
|
|
10727
|
-
/**
|
|
10728
|
-
* Serializes the current instance into a format suitable for transmission or storage.
|
|
10729
|
-
* This function ensures that all relevant fields are properly serialized, including the proof and optional fields.
|
|
10730
|
-
*
|
|
10731
|
-
* @param serializer - The serializer instance used to perform the serialization.
|
|
10732
|
-
* @param serializer.proof - The proof to be serialized.
|
|
10733
|
-
* @param serializer.expHorizonSecs - The expiration horizon in seconds.
|
|
10734
|
-
* @param serializer.extraField - An optional additional field for serialization.
|
|
10735
|
-
* @param serializer.overrideAudVal - An optional override value for auditing.
|
|
10736
|
-
* @param serializer.trainingWheelsSignature - An optional signature for training wheels.
|
|
10737
|
-
* @group Implementation
|
|
10738
|
-
* @category Serialization
|
|
10739
|
-
*/
|
|
10740
|
-
serialize(serializer: Serializer): void;
|
|
10741
10812
|
/**
|
|
10742
10813
|
* Verifies a keyless signature for a given message. It will fetch the keyless configuration and the JWK to
|
|
10743
10814
|
* use for verification from the appropriate network as defined by the aptosConfig.
|
|
@@ -10751,11 +10822,25 @@ declare class KeylessPublicKey extends AccountPublicKey {
|
|
|
10751
10822
|
verifySignatureAsync(args: {
|
|
10752
10823
|
aptosConfig: AptosConfig;
|
|
10753
10824
|
message: HexInput;
|
|
10754
|
-
signature:
|
|
10825
|
+
signature: Signature;
|
|
10755
10826
|
options?: {
|
|
10756
10827
|
throwErrorWithReason?: boolean;
|
|
10757
10828
|
};
|
|
10758
10829
|
}): Promise<boolean>;
|
|
10830
|
+
/**
|
|
10831
|
+
* Serializes the current instance into a format suitable for transmission or storage.
|
|
10832
|
+
* This function ensures that all relevant fields are properly serialized, including the proof and optional fields.
|
|
10833
|
+
*
|
|
10834
|
+
* @param serializer - The serializer instance used to perform the serialization.
|
|
10835
|
+
* @param serializer.proof - The proof to be serialized.
|
|
10836
|
+
* @param serializer.expHorizonSecs - The expiration horizon in seconds.
|
|
10837
|
+
* @param serializer.extraField - An optional additional field for serialization.
|
|
10838
|
+
* @param serializer.overrideAudVal - An optional override value for auditing.
|
|
10839
|
+
* @param serializer.trainingWheelsSignature - An optional signature for training wheels.
|
|
10840
|
+
* @group Implementation
|
|
10841
|
+
* @category Serialization
|
|
10842
|
+
*/
|
|
10843
|
+
serialize(serializer: Serializer): void;
|
|
10759
10844
|
/**
|
|
10760
10845
|
* Deserializes a ZeroKnowledgeSig object from the provided deserializer.
|
|
10761
10846
|
* This function allows you to reconstruct a ZeroKnowledgeSig instance from its serialized form.
|
|
@@ -10837,7 +10922,7 @@ declare function verifyKeylessSignature(args: {
|
|
|
10837
10922
|
publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
|
|
10838
10923
|
aptosConfig: AptosConfig;
|
|
10839
10924
|
message: HexInput;
|
|
10840
|
-
signature:
|
|
10925
|
+
signature: Signature;
|
|
10841
10926
|
keylessConfig?: KeylessConfiguration;
|
|
10842
10927
|
jwk?: MoveJWK;
|
|
10843
10928
|
options?: {
|
|
@@ -10858,10 +10943,10 @@ declare function verifyKeylessSignature(args: {
|
|
|
10858
10943
|
declare function verifyKeylessSignatureWithJwkAndConfig(args: {
|
|
10859
10944
|
publicKey: KeylessPublicKey | FederatedKeylessPublicKey;
|
|
10860
10945
|
message: HexInput;
|
|
10861
|
-
signature:
|
|
10946
|
+
signature: Signature;
|
|
10862
10947
|
keylessConfig: KeylessConfiguration;
|
|
10863
10948
|
jwk: MoveJWK;
|
|
10864
|
-
}):
|
|
10949
|
+
}): void;
|
|
10865
10950
|
/**
|
|
10866
10951
|
* Fetches the JWK from the issuer's well-known JWKS endpoint.
|
|
10867
10952
|
*
|
|
@@ -11421,7 +11506,7 @@ declare class FederatedKeylessPublicKey extends AccountPublicKey {
|
|
|
11421
11506
|
*/
|
|
11422
11507
|
verifySignature(args: {
|
|
11423
11508
|
message: HexInput;
|
|
11424
|
-
signature:
|
|
11509
|
+
signature: Signature;
|
|
11425
11510
|
jwk: MoveJWK;
|
|
11426
11511
|
keylessConfig: KeylessConfiguration;
|
|
11427
11512
|
}): boolean;
|
|
@@ -11596,6 +11681,27 @@ declare class SingleKeyAccount implements Account, SingleKeySigner {
|
|
|
11596
11681
|
* @category Account (On-Chain Model)
|
|
11597
11682
|
*/
|
|
11598
11683
|
verifySignature(args: VerifySingleKeySignatureArgs): boolean;
|
|
11684
|
+
/**
|
|
11685
|
+
* Verify the given message and signature with the account's public key.
|
|
11686
|
+
*
|
|
11687
|
+
* This function checks if the provided signature is valid for the given message using the account's public key.
|
|
11688
|
+
*
|
|
11689
|
+
* @param args - The arguments for verifying the signature.
|
|
11690
|
+
* @param args.message - The raw message data in HexInput format.
|
|
11691
|
+
* @param args.signature - The signed message signature.
|
|
11692
|
+
* @param args.options.throwErrorWithReason - Whether to throw an error with the reason for the verification failure.
|
|
11693
|
+
* @returns A boolean indicating whether the signature is valid for the message.
|
|
11694
|
+
* @group Implementation
|
|
11695
|
+
* @category Account (On-Chain Model)
|
|
11696
|
+
*/
|
|
11697
|
+
verifySignatureAsync(args: {
|
|
11698
|
+
aptosConfig: AptosConfig;
|
|
11699
|
+
message: HexInput;
|
|
11700
|
+
signature: Signature;
|
|
11701
|
+
options?: {
|
|
11702
|
+
throwErrorWithReason?: boolean;
|
|
11703
|
+
};
|
|
11704
|
+
}): Promise<boolean>;
|
|
11599
11705
|
/**
|
|
11600
11706
|
* Sign a message using the account's private key and return an AccountAuthenticator containing the signature along with the
|
|
11601
11707
|
* account's public key.
|
|
@@ -11907,6 +12013,22 @@ declare abstract class Account {
|
|
|
11907
12013
|
* @category Account (On-Chain Model)
|
|
11908
12014
|
*/
|
|
11909
12015
|
verifySignature(args: VerifySignatureArgs): boolean;
|
|
12016
|
+
/**
|
|
12017
|
+
* Verify the given message and signature with the public key. It fetches any on chain state if needed for verification.
|
|
12018
|
+
*
|
|
12019
|
+
* @param args - The arguments for verifying the signature.
|
|
12020
|
+
* @param args.aptosConfig - The configuration object for connecting to the Aptos network
|
|
12021
|
+
* @param args.message - Raw message data in HexInput format.
|
|
12022
|
+
* @param args.signature - Signed message signature.
|
|
12023
|
+
* @returns A boolean indicating whether the signature is valid.
|
|
12024
|
+
* @group Implementation
|
|
12025
|
+
* @category Account (On-Chain Model)
|
|
12026
|
+
*/
|
|
12027
|
+
verifySignatureAsync(args: {
|
|
12028
|
+
aptosConfig: AptosConfig;
|
|
12029
|
+
message: HexInput;
|
|
12030
|
+
signature: Signature;
|
|
12031
|
+
}): Promise<boolean>;
|
|
11910
12032
|
}
|
|
11911
12033
|
|
|
11912
12034
|
/**
|
|
@@ -13168,6 +13290,24 @@ declare class Ed25519Account implements Account {
|
|
|
13168
13290
|
* @category Account (On-Chain Model)
|
|
13169
13291
|
*/
|
|
13170
13292
|
verifySignature(args: VerifyEd25519SignatureArgs): boolean;
|
|
13293
|
+
/**
|
|
13294
|
+
* Verify the given message and signature with the public key.
|
|
13295
|
+
*
|
|
13296
|
+
* Ed25519 signatures do not depend on chain state, so this function is equivalent to the synchronous verifySignature method.
|
|
13297
|
+
*
|
|
13298
|
+
* @param args - The arguments for verifying the signature.
|
|
13299
|
+
* @param args.aptosConfig - The configuration object for connecting to the Aptos network
|
|
13300
|
+
* @param args.message - Raw message data in HexInput format.
|
|
13301
|
+
* @param args.signature - Signed message signature.
|
|
13302
|
+
* @returns A boolean indicating whether the signature is valid.
|
|
13303
|
+
* @group Implementation
|
|
13304
|
+
* @category Account (On-Chain Model)
|
|
13305
|
+
*/
|
|
13306
|
+
verifySignatureAsync(args: {
|
|
13307
|
+
aptosConfig: AptosConfig;
|
|
13308
|
+
message: HexInput;
|
|
13309
|
+
signature: Signature;
|
|
13310
|
+
}): Promise<boolean>;
|
|
13171
13311
|
/**
|
|
13172
13312
|
* Sign a message using the account's Ed25519 private key.
|
|
13173
13313
|
* This function returns an AccountAuthenticator containing the signature along with the account's public key.
|
|
@@ -13486,6 +13626,7 @@ declare class MultiKeyAccount implements Account, KeylessSigner {
|
|
|
13486
13626
|
* @param args - The arguments for verifying the signature.
|
|
13487
13627
|
* @param args.message - The raw message data in HexInput format.
|
|
13488
13628
|
* @param args.signature - The signed message MultiKeySignature containing multiple signatures.
|
|
13629
|
+
* @param args.options.throwErrorWithReason - Whether to throw an error with the reason for the verification failure.
|
|
13489
13630
|
* @returns A boolean indicating whether the signatures are valid for the message.
|
|
13490
13631
|
* @group Implementation
|
|
13491
13632
|
* @category Account (On-Chain Model)
|
|
@@ -13494,6 +13635,9 @@ declare class MultiKeyAccount implements Account, KeylessSigner {
|
|
|
13494
13635
|
aptosConfig: AptosConfig;
|
|
13495
13636
|
message: HexInput;
|
|
13496
13637
|
signature: MultiKeySignature;
|
|
13638
|
+
options?: {
|
|
13639
|
+
throwErrorWithReason?: boolean;
|
|
13640
|
+
};
|
|
13497
13641
|
}): Promise<boolean>;
|
|
13498
13642
|
}
|
|
13499
13643
|
|
|
@@ -13541,6 +13685,28 @@ declare class MultiEd25519Account implements Account {
|
|
|
13541
13685
|
* @returns
|
|
13542
13686
|
*/
|
|
13543
13687
|
verifySignature(args: VerifyMultiEd25519SignatureArgs): boolean;
|
|
13688
|
+
/**
|
|
13689
|
+
* Verify the given message and signature with the public key.
|
|
13690
|
+
*
|
|
13691
|
+
* MultiEd25519 signatures do not depend on chain state, so this function is
|
|
13692
|
+
* equivalent to the synchronous verifySignature method.
|
|
13693
|
+
*
|
|
13694
|
+
* @param args - The arguments for verifying the signature.
|
|
13695
|
+
* @param args.aptosConfig - The configuration object for connecting to the Aptos network
|
|
13696
|
+
* @param args.message - Raw message data in HexInput format.
|
|
13697
|
+
* @param args.signature - Signed message signature.
|
|
13698
|
+
* @returns A boolean indicating whether the signature is valid.
|
|
13699
|
+
* @group Implementation
|
|
13700
|
+
* @category Account (On-Chain Model)
|
|
13701
|
+
*/
|
|
13702
|
+
verifySignatureAsync(args: {
|
|
13703
|
+
aptosConfig: AptosConfig;
|
|
13704
|
+
message: HexInput;
|
|
13705
|
+
signature: Signature;
|
|
13706
|
+
options?: {
|
|
13707
|
+
throwErrorWithReason?: boolean;
|
|
13708
|
+
};
|
|
13709
|
+
}): Promise<boolean>;
|
|
13544
13710
|
/**
|
|
13545
13711
|
* Sign a message using the account's Ed25519 private key.
|
|
13546
13712
|
* @param message the signing message, as binary input
|
|
@@ -13806,6 +13972,26 @@ declare function isValidFunctionInfo(functionInfo: string): boolean;
|
|
|
13806
13972
|
* @category Utils
|
|
13807
13973
|
*/
|
|
13808
13974
|
declare function truncateAddress(address: string, start?: number, end?: number): string;
|
|
13975
|
+
/**
|
|
13976
|
+
* Calculates the paired FA metadata address for a given coin type.
|
|
13977
|
+
* This function is tolerant of various address formats in the coin type string,
|
|
13978
|
+
* including complex nested types.
|
|
13979
|
+
*
|
|
13980
|
+
* @example
|
|
13981
|
+
* // All these formats are valid and will produce the same result:
|
|
13982
|
+
* pairedFaMetadataAddress("0x1::aptos_coin::AptosCoin") // simple form
|
|
13983
|
+
* pairedFaMetadataAddress("0x0000000000000000000000000000000000000000000000000000000000000001::aptos_coin::AptosCoin") // long form
|
|
13984
|
+
* pairedFaMetadataAddress("0x00001::aptos_coin::AptosCoin") // with leading zeros
|
|
13985
|
+
* pairedFaMetadataAddress("0x1::coin::Coin<0x1412::a::struct<0x0001::aptos_coin::AptosCoin>>") // nested type parameters
|
|
13986
|
+
*
|
|
13987
|
+
* @param coinType - The coin type string in any of these formats:
|
|
13988
|
+
* - Short form address: "0x1::aptos_coin::AptosCoin"
|
|
13989
|
+
* - Long form address: "0x0000000000000000000000000000000000000000000000000000000000000001::aptos_coin::AptosCoin"
|
|
13990
|
+
* - With leading zeros: "0x00001::aptos_coin::AptosCoin"
|
|
13991
|
+
* - With nested types: "0x1::coin::Coin<0x1412::a::struct<0x0001::aptos_coin::AptosCoin>>"
|
|
13992
|
+
* @returns The calculated metadata address as an AccountAddress instance
|
|
13993
|
+
*/
|
|
13994
|
+
declare function pairedFaMetadataAddress(coinType: `0x${string}::${string}::${string}`): AccountAddress;
|
|
13809
13995
|
|
|
13810
13996
|
/**
|
|
13811
13997
|
* Sends a request using the specified options and returns the response.
|
|
@@ -14020,6 +14206,10 @@ declare function getAptosPepperService<Req extends {}, Res extends {}>(options:
|
|
|
14020
14206
|
*/
|
|
14021
14207
|
declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
|
|
14022
14208
|
declare function paginateWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
|
|
14209
|
+
declare function getPageWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<{
|
|
14210
|
+
response: AptosResponse<Req, Res>;
|
|
14211
|
+
cursor: string | undefined;
|
|
14212
|
+
}>;
|
|
14023
14213
|
|
|
14024
14214
|
/**
|
|
14025
14215
|
* Options for making a POST request, including the API client configuration.
|
|
@@ -14328,4 +14518,4 @@ declare class AptosApiError extends Error {
|
|
|
14328
14518
|
constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
|
|
14329
14519
|
}
|
|
14330
14520
|
|
|
14331
|
-
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_FA, APTOS_HARDENED_REGEX, AbstractKeylessAccount, AbstractMultiKey, AbstractPublicKey, AbstractSignature, AbstractedAccount, Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorAbstraction, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorNoAccountAuthenticator, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AccountUtils, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosScriptComposer, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, FIREBASE_AUTH_ISS_PATTERN, type FailureEventData, FaucetConfig, FederatedKeylessAccount, FederatedKeylessPublicKey, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16ProofAndStatement, Groth16VerificationKey, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputBatchedFunctionData, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, type InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessError, KeylessErrorCategory, KeylessErrorResolutionTip, KeylessErrorType, KeylessPublicKey, KeylessSignature, type KeylessSigner, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveJWK, MoveModule, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519Account, MultiEd25519PublicKey, MultiEd25519Signature, type MultiEd25519SignerConstructorArgs, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, type PrivateKeyFromDerivationPathArgs, type PrivateKeyInput, PrivateKeyVariants, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serialized, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySigner, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type SingleKeySignerOrLegacyEd25519Account, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySignatureAsyncArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type ViewFunctionJsonPayload, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosBinaryRequest, aptosCoinStructTag, aptosRequest, base64UrlDecode, base64UrlToBytes, bigIntToBytesLE, binaryRequest, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertCallArgument, convertNumber, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchJWK, fetchModuleAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getBinary, getBinaryAptosFullNode, getErrorMessage, getFunctionParts, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isCanonicalEd25519Signature, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isKeylessSigner, isLargeNumber, isNumber, isScriptDataInput, isSingleKeySigner, isString, isValidBIP44Path, isValidFunctionInfo, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, objectStructTag, optionStructTag, padAndPackBytesWithLen, paginateWithCursor, paginateWithObfuscatedCursor, parseEncodedStruct, parseJwtHeader, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, postBinary, postBinaryAptosFullNode, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, truncateAddress, verifyKeylessSignature, verifyKeylessSignatureWithJwkAndConfig };
|
|
14521
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_FA, APTOS_HARDENED_REGEX, AbstractKeylessAccount, AbstractMultiKey, AbstractPublicKey, AbstractSignature, AbstractedAccount, Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorAbstraction, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorNoAccountAuthenticator, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AccountUtils, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosScriptComposer, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, CursorPaginationArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, FIREBASE_AUTH_ISS_PATTERN, type FailureEventData, FaucetConfig, FederatedKeylessAccount, FederatedKeylessPublicKey, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16ProofAndStatement, Groth16VerificationKey, Groth16Zkp, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputBatchedFunctionData, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, type InputViewFunctionJsonData, KeyType, KeylessAccount, KeylessConfiguration, KeylessError, KeylessErrorCategory, KeylessErrorResolutionTip, KeylessErrorType, KeylessPublicKey, KeylessSignature, type KeylessSigner, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveJWK, MoveModule, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519Account, MultiEd25519PublicKey, MultiEd25519Signature, type MultiEd25519SignerConstructorArgs, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, type PrivateKeyFromDerivationPathArgs, type PrivateKeyInput, PrivateKeyVariants, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serialized, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySigner, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type SingleKeySignerOrLegacyEd25519Account, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySignatureAsyncArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, type ViewFunctionJsonPayload, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosBinaryRequest, aptosCoinStructTag, aptosRequest, base64UrlDecode, base64UrlToBytes, bigIntToBytesLE, binaryRequest, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertCallArgument, convertNumber, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchJWK, fetchModuleAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getBinary, getBinaryAptosFullNode, getErrorMessage, getFunctionParts, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, getPageWithObfuscatedCursor, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isCanonicalEd25519Signature, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isKeylessSigner, isLargeNumber, isNumber, isScriptDataInput, isSingleKeySigner, isString, isValidBIP44Path, isValidFunctionInfo, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, objectStructTag, optionStructTag, padAndPackBytesWithLen, paginateWithCursor, paginateWithObfuscatedCursor, pairedFaMetadataAddress, parseEncodedStruct, parseJwtHeader, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, postBinary, postBinaryAptosFullNode, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, truncateAddress, verifyKeylessSignature, verifyKeylessSignatureWithJwkAndConfig };
|