@aptos-labs/ts-sdk 3.1.3 → 4.0.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/{account-Bb5REyaT.d.ts → account-CmEgDBH6.d.ts} +1 -1
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/index.d.ts +6 -203
- package/dist/common/index.js +32 -51
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +0 -2
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/faucet.mjs +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 +0 -1
- package/dist/esm/api/index.mjs +1 -1
- 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.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/{chunk-JEEUU42Q.mjs → chunk-3BMZKCLH.mjs} +2 -2
- package/dist/esm/{chunk-CO67Y6YE.mjs → chunk-4JT5AESZ.mjs} +2 -2
- package/dist/esm/chunk-55Q7BSZT.mjs +6 -0
- package/dist/esm/chunk-55Q7BSZT.mjs.map +1 -0
- package/dist/esm/{chunk-QVLV73OB.mjs → chunk-6JYQ5P36.mjs} +2 -2
- package/dist/esm/chunk-6SLY7UV2.mjs +2 -0
- package/dist/esm/{chunk-ZIB2TU7B.mjs.map → chunk-6SLY7UV2.mjs.map} +1 -1
- package/dist/esm/{chunk-MGMCLJQC.mjs → chunk-BPWSOC2Y.mjs} +2 -2
- package/dist/esm/{chunk-RQX6JOEN.mjs → chunk-EF4FA5I6.mjs} +2 -2
- package/dist/esm/{chunk-GMEBV7NZ.mjs → chunk-HZVN4JSO.mjs} +2 -2
- package/dist/esm/{chunk-UQWF24SS.mjs → chunk-K43K3YG7.mjs} +2 -2
- package/dist/esm/{chunk-CFQFFP6N.mjs → chunk-MSMFHPDT.mjs} +2 -2
- package/dist/esm/{chunk-KJW3XYRT.mjs → chunk-NF73V673.mjs} +2 -2
- package/dist/esm/{chunk-DAGUHPTV.mjs → chunk-PLI53ZU6.mjs} +2 -2
- package/dist/esm/{chunk-NIXUOEWL.mjs → chunk-UQZTHVWC.mjs} +2 -2
- package/dist/esm/{chunk-XZQAMU5W.mjs → chunk-V6C6NWFU.mjs} +2 -2
- package/dist/esm/{chunk-TZRRQMCT.mjs → chunk-XYXBAU4J.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.mjs +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.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/deserializationUtils.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.mjs +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/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.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +0 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +19 -8
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/object.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.mjs +1 -1
- package/dist/esm/internal/utils/index.mjs +1 -1
- 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.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/indexer.d.mts +1 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/src/api/aptos.ts +10 -9
- package/src/internal/ans.ts +19 -8
- package/src/version.ts +1 -1
- package/dist/esm/api/event.d.mts +0 -193
- package/dist/esm/api/event.mjs +0 -2
- package/dist/esm/api/event.mjs.map +0 -1
- package/dist/esm/chunk-GXDOOLCG.mjs +0 -6
- package/dist/esm/chunk-GXDOOLCG.mjs.map +0 -1
- package/dist/esm/chunk-ZIB2TU7B.mjs +0 -2
- package/dist/esm/internal/event.d.mts +0 -82
- package/dist/esm/internal/event.mjs +0 -2
- package/dist/esm/internal/event.mjs.map +0 -1
- package/src/api/event.ts +0 -230
- package/src/internal/event.ts +0 -171
- /package/dist/esm/{chunk-JEEUU42Q.mjs.map → chunk-3BMZKCLH.mjs.map} +0 -0
- /package/dist/esm/{chunk-CO67Y6YE.mjs.map → chunk-4JT5AESZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-QVLV73OB.mjs.map → chunk-6JYQ5P36.mjs.map} +0 -0
- /package/dist/esm/{chunk-MGMCLJQC.mjs.map → chunk-BPWSOC2Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-RQX6JOEN.mjs.map → chunk-EF4FA5I6.mjs.map} +0 -0
- /package/dist/esm/{chunk-GMEBV7NZ.mjs.map → chunk-HZVN4JSO.mjs.map} +0 -0
- /package/dist/esm/{chunk-UQWF24SS.mjs.map → chunk-K43K3YG7.mjs.map} +0 -0
- /package/dist/esm/{chunk-CFQFFP6N.mjs.map → chunk-MSMFHPDT.mjs.map} +0 -0
- /package/dist/esm/{chunk-KJW3XYRT.mjs.map → chunk-NF73V673.mjs.map} +0 -0
- /package/dist/esm/{chunk-DAGUHPTV.mjs.map → chunk-PLI53ZU6.mjs.map} +0 -0
- /package/dist/esm/{chunk-NIXUOEWL.mjs.map → chunk-UQZTHVWC.mjs.map} +0 -0
- /package/dist/esm/{chunk-XZQAMU5W.mjs.map → chunk-V6C6NWFU.mjs.map} +0 -0
- /package/dist/esm/{chunk-TZRRQMCT.mjs.map → chunk-XYXBAU4J.mjs.map} +0 -0
|
@@ -7409,4 +7409,4 @@ declare class AccountAuthenticatorAbstraction extends AccountAuthenticator {
|
|
|
7409
7409
|
static load(deserializer: Deserializer): AccountAuthenticatorAbstraction;
|
|
7410
7410
|
}
|
|
7411
7411
|
|
|
7412
|
-
export { type InputGenerateTransactionOptions as $, AccountAddress as A, Bool as B, type MoveFunction as C, Deserializer as D, EphemeralPublicKeyVariant as E, FixedBytes as F, type InputEntryFunctionDataWithRemoteABI as G, type HexInput as H, type InputGenerateTransactionPayloadDataWithRemoteABI as I, TransactionPayloadEntryFunction as J, type InputMultiSigDataWithRemoteABI as K, type LedgerVersionArg as L, MultiKey as M, TransactionPayloadMultiSig as N, type InputEntryFunctionDataWithABI as O, PublicKey as P, type InputMultiSigDataWithABI as Q, RawTransaction as R, Serializer as S, TransactionPayloadScript as T, U8 as U, type VerifySignatureArgs as V, type InputViewFunctionDataWithRemoteABI as W, EntryFunction as X, type InputViewFunctionDataWithABI as Y, ZkpVariant as Z, type AnyTransactionPayloadInstance as _, AccountPublicKey as a,
|
|
7412
|
+
export { type InputGenerateTransactionOptions as $, AccountAddress as A, Bool as B, type MoveFunction as C, Deserializer as D, EphemeralPublicKeyVariant as E, FixedBytes as F, type InputEntryFunctionDataWithRemoteABI as G, type HexInput as H, type InputGenerateTransactionPayloadDataWithRemoteABI as I, TransactionPayloadEntryFunction as J, type InputMultiSigDataWithRemoteABI as K, type LedgerVersionArg as L, MultiKey as M, TransactionPayloadMultiSig as N, type InputEntryFunctionDataWithABI as O, PublicKey as P, type InputMultiSigDataWithABI as Q, RawTransaction as R, Serializer as S, TransactionPayloadScript as T, U8 as U, type VerifySignatureArgs as V, type InputViewFunctionDataWithRemoteABI as W, EntryFunction as X, type InputViewFunctionDataWithABI as Y, ZkpVariant as Z, type AnyTransactionPayloadInstance as _, AccountPublicKey as a, type TableItemRequest as a$, TransactionInnerPayload as a0, type InputGenerateSingleSignerRawTransactionArgs as a1, SimpleTransaction as a2, type InputGenerateMultiAgentRawTransactionArgs as a3, MultiAgentTransaction as a4, type InputSimulateTransactionData as a5, AccountAuthenticatorNoAccountAuthenticator as a6, AccountAuthenticatorEd25519 as a7, AccountAuthenticatorSingleKey as a8, AccountAuthenticatorMultiKey as a9, type GetTokenDataResponse as aA, type GetCurrentTokenOwnershipResponse as aB, type GetOwnedTokensResponse as aC, type GetTokenActivityResponse as aD, type WaitForTransactionOptions as aE, type UserTransactionResponse as aF, type GetFungibleAssetMetadataResponse as aG, type GetFungibleAssetActivitiesResponse as aH, type GetCurrentFungibleAssetBalancesResponse as aI, type LedgerInfo as aJ, type Block as aK, type MoveValue as aL, type InputViewFunctionData as aM, type InputViewFunctionJsonData as aN, type GetChainTopUserTransactionsResponse as aO, type GraphqlQuery as aP, ProcessorType as aQ, type GetProcessorStatusResponse as aR, type GetANSNameResponse as aS, type GetNumberOfDelegatorsResponse as aT, type GetDelegatedStakingActivitiesResponse as aU, type InputSimulateTransactionOptions as aV, type InputTransactionPluginData as aW, type PendingTransactionResponse as aX, type CommittedTransactionResponse as aY, type GasEstimation as aZ, Ed25519PrivateKey as a_, type InputSubmitTransactionData as aa, type TypeArgument as ab, TypeTag as ac, type MoveModule as ad, type FunctionABI as ae, type EntryFunctionABI as af, type ViewFunctionABI as ag, type AnyRawTransaction as ah, type AnyRawTransactionInstance as ai, type AccountData as aj, type MoveModuleBytecode as ak, type CursorPaginationArgs as al, type PaginationArgs as am, type TransactionResponse as an, type MoveResource as ao, type MoveStructId as ap, type TokenStandardArg as aq, type OrderByArg as ar, type GetAccountOwnedTokensQueryResponse as as, type GetAccountOwnedTokensFromCollectionResponse as at, type GetAccountCollectionsWithOwnedTokenResponse as au, type GetAccountCoinsDataResponse as av, type WhereArg as aw, type GetObjectDataQueryResponse as ax, type PrivateKeyInput as ay, type GetCollectionDataResponse as az, AuthenticationKey as b, TypeTagAddress as b$, type GetTableItemsDataResponse as b0, type GetTableItemsMetadataResponse as b1, PrivateKey as b2, SigningScheme as b3, SigningSchemeInput as b4, AnySignature as b5, type EntryFunctionArgument as b6, MultiKeySignature as b7, AccountAuthenticatorMultiEd25519 as b8, AccountAuthenticatorAbstraction as b9, ChainId as bA, Identifier as bB, ModuleId as bC, RawTransactionWithData as bD, MultiAgentRawTransaction as bE, FeePayerRawTransaction as bF, type TransactionArgument as bG, type ScriptFunctionArgument as bH, deserializeFromScriptArgument as bI, TransactionPayload as bJ, Script as bK, MultiSig as bL, MultiSigTransactionPayload as bM, TransactionInnerPayloadV1 as bN, TransactionExecutable as bO, TransactionExecutableScript as bP, TransactionExecutableEntryFunction as bQ, TransactionExecutableEmpty as bR, TransactionExtraConfig as bS, TransactionExtraConfigV1 as bT, TypeTagBool as bU, TypeTagU8 as bV, TypeTagU16 as bW, TypeTagU32 as bX, TypeTagU64 as bY, TypeTagU128 as bZ, TypeTagU256 as b_, type MoveFunctionId as ba, type ClientRequest as bb, type Client as bc, type ClientResponse as bd, type AptosRequest as be, AptosApiType as bf, type AptosResponse as bg, MimeType as bh, type ClientConfig as bi, type Deserializable as bj, ensureBoolean as bk, outOfRangeErrorMessage as bl, validateNumberInRange as bm, Serialized as bn, MoveOption as bo, AddressInvalidReason as bp, ParsingError as bq, type ParsingResult as br, isCanonicalEd25519Signature as bs, AbstractMultiKey as bt, Secp256k1PublicKey as bu, Secp256k1PrivateKey as bv, Secp256k1Signature as bw, HexInvalidReason as bx, Hex as by, hexToAsciiString as bz, type VerifySignatureAsyncArgs as c, type GenesisTransactionResponse as c$, TypeTagSigner as c0, TypeTagReference as c1, TypeTagGeneric as c2, TypeTagVector as c3, TypeTagStruct as c4, StructTag as c5, aptosCoinStructTag as c6, stringStructTag as c7, optionStructTag as c8, objectStructTag as c9, AnyPublicKeyVariant as cA, anyPublicKeyVariantToString as cB, AnySignatureVariant as cC, EphemeralSignatureVariant as cD, type Uint8 as cE, type Uint16 as cF, type Uint32 as cG, type Uint64 as cH, type Uint128 as cI, type Uint256 as cJ, type AptosSettings as cK, type FullNodeConfig as cL, type IndexerConfig as cM, type FaucetConfig as cN, type TransactionGenerationConfig as cO, type ClientHeadersType as cP, type PluginConfig as cQ, type PluginSettings as cR, type TransactionSubmitter as cS, TransactionResponseType as cT, isPendingTransactionResponse as cU, isUserTransactionResponse as cV, isGenesisTransactionResponse as cW, isBlockMetadataTransactionResponse as cX, isStateCheckpointTransactionResponse as cY, isValidatorTransactionResponse as cZ, isBlockEpilogueTransactionResponse as c_, type ScriptFunctionArgumentTypes as ca, type InputGenerateSequenceNumberTransactionOptions as cb, type InputGenerateOrderlessTransactionOptions as cc, type InputEntryFunctionData as cd, type InputGenerateTransactionPayloadDataWithABI as ce, type InputMultiSigData as cf, type ViewFunctionJsonPayload as cg, type InputGenerateRawTransactionArgs as ch, type InputGenerateSingleSignerRawTransactionData as ci, type InputGenerateMultiAgentRawTransactionData as cj, type InputGenerateTransactionData as ck, type GetAccountAddressesForAuthKeyResponse as cl, type GetEventsResponse as cm, type OrderBy as cn, type OrderByValue as co, type TokenStandard as cp, TypeTagVariants as cq, ScriptTransactionArgumentVariants as cr, TransactionPayloadVariants as cs, TransactionInnerPayloadVariants as ct, TransactionExecutableVariants as cu, TransactionExtraConfigVariants as cv, TransactionVariants as cw, TransactionAuthenticatorVariant as cx, AccountAuthenticatorVariant as cy, PrivateKeyVariants as cz, Signature as d, NetworkToIndexerAPI as d$, type BlockMetadataTransactionResponse as d0, type StateCheckpointTransactionResponse as d1, type ValidatorTransactionResponse as d2, type BlockEndInfo as d3, type BlockEpilogueTransactionResponse as d4, type WriteSetChange as d5, type WriteSetChangeDeleteModule as d6, type WriteSetChangeDeleteResource as d7, type WriteSetChangeDeleteTableItem as d8, type WriteSetChangeWriteModule as d9, type ScriptWriteSet as dA, type DirectWriteSet as dB, type EventGuid as dC, type Event as dD, type MoveUint8Type as dE, type MoveUint16Type as dF, type MoveUint32Type as dG, type MoveUint64Type as dH, type MoveUint128Type as dI, type MoveUint256Type as dJ, type MoveAddressType as dK, type MoveObjectType as dL, type MoveOptionType as dM, type MoveStructType as dN, type MoveType as dO, type MoveModuleId as dP, MoveFunctionVisibility as dQ, MoveAbility as dR, type MoveFunctionGenericTypeParam as dS, type MoveStructField as dT, type MoveStruct as dU, RoleType as dV, type AuthenticationKeyScheme as dW, DeriveScheme as dX, type GenerateAccountWithEd25519 as dY, type GenerateAccountWithSingleSignerSecp256k1Key as dZ, type GenerateAccount as d_, type WriteSetChangeWriteResource as da, type WriteSetChangeWriteTableItem as db, type DecodedTableData as dc, type DeletedTableData as dd, type TransactionPayloadResponse as de, type EntryFunctionPayloadResponse as df, type ScriptPayloadResponse as dg, type MultisigPayloadResponse as dh, type GenesisPayload as di, type MoveScriptBytecode as dj, type TransactionSignature as dk, isEd25519Signature as dl, isSecp256k1Signature as dm, isMultiAgentSignature as dn, isFeePayerSignature as dp, isMultiEd25519Signature as dq, isSingleSenderSignature as dr, type TransactionEd25519Signature as ds, type TransactionSecp256k1Signature as dt, type TransactionSingleSenderSignature as du, type TransactionMultiEd25519Signature as dv, type TransactionMultiAgentSignature as dw, type TransactionFeePayerSignature as dx, type AccountSignature as dy, type WriteSet as dz, AptosConfig as e, NetworkToNodeAPI as e0, NetworkToFaucetAPI as e1, NetworkToPepperAPI as e2, NetworkToProverAPI as e3, Network as e4, NetworkToChainId as e5, NetworkToNetworkName as e6, DEFAULT_MAX_GAS_AMOUNT as e7, DEFAULT_TXN_EXP_SEC_FROM_NOW as e8, DEFAULT_TXN_TIMEOUT_SEC as e9, APTOS_COIN as ea, APTOS_FA as eb, RAW_TRANSACTION_SALT as ec, RAW_TRANSACTION_WITH_DATA_SALT as ed, FIREBASE_AUTH_ISS_PATTERN as ee, Serializable as f, EphemeralCertificateVariant as g, type AccountAddressInput as h, Ed25519PublicKey as i, AnyPublicKey as j, MultiEd25519PublicKey as k, Ed25519Signature as l, MultiEd25519Signature as m, AccountAuthenticator as n, MoveString as o, MoveVector as p, U64 as q, type AnyNumber as r, type SimpleEntryFunctionArgumentTypes as s, type EntryFunctionArgumentTypes as t, U16 as u, U32 as v, U128 as w, U256 as x, type InputGenerateTransactionPayloadData as y, type InputScriptData as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcessWithoutNullStreams } from 'child_process';
|
|
2
|
-
import { e4 as Network, A as AccountAddress } from '../account-
|
|
2
|
+
import { e4 as Network, A as AccountAddress } from '../account-CmEgDBH6.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Represents a local node for running a localnet environment.
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountAddress, a as AccountPublicKey, b as AuthenticationKey, V as VerifySignatureArgs, c as VerifySignatureAsyncArgs, S as Serializer, d as Signature, H as HexInput, D as Deserializer, P as PublicKey, E as EphemeralPublicKeyVariant, e as AptosConfig, f as Serializable, g as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, h as AccountAddressInput, i as Ed25519PublicKey, j as AnyPublicKey, M as MultiKey, k as MultiEd25519PublicKey, l as Ed25519Signature, m as MultiEd25519Signature, n as AccountAuthenticator, o as MoveString, p as MoveVector, U as U8, q as U64, r as AnyNumber, R as RawTransaction, s as SimpleEntryFunctionArgumentTypes, t as EntryFunctionArgumentTypes, B as Bool, F as FixedBytes, u as U16, v as U32, w as U128, x as U256, I as InputGenerateTransactionPayloadDataWithRemoteABI, y as InputGenerateTransactionPayloadData, z as InputScriptData, C as MoveFunction, T as TransactionPayloadScript, G as InputEntryFunctionDataWithRemoteABI, J as TransactionPayloadEntryFunction, K as InputMultiSigDataWithRemoteABI, N as TransactionPayloadMultiSig, O as InputEntryFunctionDataWithABI, Q as InputMultiSigDataWithABI, W as InputViewFunctionDataWithRemoteABI, X as EntryFunction, Y as InputViewFunctionDataWithABI, _ as AnyTransactionPayloadInstance, $ as InputGenerateTransactionOptions, a0 as TransactionInnerPayload, a1 as InputGenerateSingleSignerRawTransactionArgs, a2 as SimpleTransaction, a3 as InputGenerateMultiAgentRawTransactionArgs, a4 as MultiAgentTransaction, a5 as InputSimulateTransactionData, a6 as AccountAuthenticatorNoAccountAuthenticator, a7 as AccountAuthenticatorEd25519, a8 as AccountAuthenticatorSingleKey, a9 as AccountAuthenticatorMultiKey, aa as InputSubmitTransactionData, ab as TypeArgument, ac as TypeTag, ad as MoveModule, ae as FunctionABI, af as EntryFunctionABI, ag as ViewFunctionABI, ah as AnyRawTransaction, ai as AnyRawTransactionInstance, aj as AccountData, ak as MoveModuleBytecode, al as CursorPaginationArgs, am as PaginationArgs, an as TransactionResponse, ao as MoveResource, ap as MoveStructId, aq as TokenStandardArg, ar as OrderByArg, as as GetAccountOwnedTokensQueryResponse, at as GetAccountOwnedTokensFromCollectionResponse, au as GetAccountCollectionsWithOwnedTokenResponse, av as GetAccountCoinsDataResponse, aw as WhereArg, ax as GetObjectDataQueryResponse, ay as PrivateKeyInput, az as GetCollectionDataResponse, aA as GetTokenDataResponse, aB as GetCurrentTokenOwnershipResponse, aC as GetOwnedTokensResponse, aD as GetTokenActivityResponse, aE as
|
|
2
|
-
export { ea as APTOS_COIN, eb as APTOS_FA,
|
|
1
|
+
import { A as AccountAddress, a as AccountPublicKey, b as AuthenticationKey, V as VerifySignatureArgs, c as VerifySignatureAsyncArgs, S as Serializer, d as Signature, H as HexInput, D as Deserializer, P as PublicKey, E as EphemeralPublicKeyVariant, e as AptosConfig, f as Serializable, g as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, h as AccountAddressInput, i as Ed25519PublicKey, j as AnyPublicKey, M as MultiKey, k as MultiEd25519PublicKey, l as Ed25519Signature, m as MultiEd25519Signature, n as AccountAuthenticator, o as MoveString, p as MoveVector, U as U8, q as U64, r as AnyNumber, R as RawTransaction, s as SimpleEntryFunctionArgumentTypes, t as EntryFunctionArgumentTypes, B as Bool, F as FixedBytes, u as U16, v as U32, w as U128, x as U256, I as InputGenerateTransactionPayloadDataWithRemoteABI, y as InputGenerateTransactionPayloadData, z as InputScriptData, C as MoveFunction, T as TransactionPayloadScript, G as InputEntryFunctionDataWithRemoteABI, J as TransactionPayloadEntryFunction, K as InputMultiSigDataWithRemoteABI, N as TransactionPayloadMultiSig, O as InputEntryFunctionDataWithABI, Q as InputMultiSigDataWithABI, W as InputViewFunctionDataWithRemoteABI, X as EntryFunction, Y as InputViewFunctionDataWithABI, _ as AnyTransactionPayloadInstance, $ as InputGenerateTransactionOptions, a0 as TransactionInnerPayload, a1 as InputGenerateSingleSignerRawTransactionArgs, a2 as SimpleTransaction, a3 as InputGenerateMultiAgentRawTransactionArgs, a4 as MultiAgentTransaction, a5 as InputSimulateTransactionData, a6 as AccountAuthenticatorNoAccountAuthenticator, a7 as AccountAuthenticatorEd25519, a8 as AccountAuthenticatorSingleKey, a9 as AccountAuthenticatorMultiKey, aa as InputSubmitTransactionData, ab as TypeArgument, ac as TypeTag, ad as MoveModule, ae as FunctionABI, af as EntryFunctionABI, ag as ViewFunctionABI, ah as AnyRawTransaction, ai as AnyRawTransactionInstance, aj as AccountData, ak as MoveModuleBytecode, al as CursorPaginationArgs, am as PaginationArgs, an as TransactionResponse, ao as MoveResource, ap as MoveStructId, aq as TokenStandardArg, ar as OrderByArg, as as GetAccountOwnedTokensQueryResponse, at as GetAccountOwnedTokensFromCollectionResponse, au as GetAccountCollectionsWithOwnedTokenResponse, av as GetAccountCoinsDataResponse, aw as WhereArg, ax as GetObjectDataQueryResponse, ay as PrivateKeyInput, az as GetCollectionDataResponse, aA as GetTokenDataResponse, aB as GetCurrentTokenOwnershipResponse, aC as GetOwnedTokensResponse, aD as GetTokenActivityResponse, aE as WaitForTransactionOptions, aF as UserTransactionResponse, aG as GetFungibleAssetMetadataResponse, aH as GetFungibleAssetActivitiesResponse, aI as GetCurrentFungibleAssetBalancesResponse, aJ as LedgerInfo, aK as Block, aL as MoveValue, aM as InputViewFunctionData, aN as InputViewFunctionJsonData, aO as GetChainTopUserTransactionsResponse, aP as GraphqlQuery, aQ as ProcessorType, aR as GetProcessorStatusResponse, aS as GetANSNameResponse, aT as GetNumberOfDelegatorsResponse, aU as GetDelegatedStakingActivitiesResponse, aV as InputSimulateTransactionOptions, aW as InputTransactionPluginData, aX as PendingTransactionResponse, aY as CommittedTransactionResponse, aZ as GasEstimation, a_ as Ed25519PrivateKey, a$ as TableItemRequest, b0 as GetTableItemsDataResponse, b1 as GetTableItemsMetadataResponse, b2 as PrivateKey, b3 as SigningScheme, b4 as SigningSchemeInput, b5 as AnySignature, b6 as EntryFunctionArgument, b7 as MultiKeySignature, b8 as AccountAuthenticatorMultiEd25519, b9 as AccountAuthenticatorAbstraction, ba as MoveFunctionId, bb as ClientRequest, bc as Client, bd as ClientResponse, be as AptosRequest, bf as AptosApiType, bg as AptosResponse, bh as MimeType, bi as ClientConfig } from './account-CmEgDBH6.js';
|
|
2
|
+
export { ea as APTOS_COIN, eb as APTOS_FA, bt as AbstractMultiKey, cy as AccountAuthenticatorVariant, dy as AccountSignature, bp as AddressInvalidReason, cA as AnyPublicKeyVariant, cC as AnySignatureVariant, cK as AptosSettings, dW as AuthenticationKeyScheme, d3 as BlockEndInfo, d4 as BlockEpilogueTransactionResponse, d0 as BlockMetadataTransactionResponse, bA as ChainId, cP as ClientHeadersType, e7 as DEFAULT_MAX_GAS_AMOUNT, e8 as DEFAULT_TXN_EXP_SEC_FROM_NOW, e9 as DEFAULT_TXN_TIMEOUT_SEC, dc as DecodedTableData, dd as DeletedTableData, dX as DeriveScheme, bj as Deserializable, dB as DirectWriteSet, df as EntryFunctionPayloadResponse, cD as EphemeralSignatureVariant, dD as Event, dC as EventGuid, ee as FIREBASE_AUTH_ISS_PATTERN, cN as FaucetConfig, bF as FeePayerRawTransaction, cL as FullNodeConfig, d_ as GenerateAccount, dY as GenerateAccountWithEd25519, dZ as GenerateAccountWithSingleSignerSecp256k1Key, di as GenesisPayload, c$ as GenesisTransactionResponse, cl as GetAccountAddressesForAuthKeyResponse, cm as GetEventsResponse, by as Hex, bx as HexInvalidReason, bB as Identifier, cM as IndexerConfig, cd as InputEntryFunctionData, cj as InputGenerateMultiAgentRawTransactionData, cc as InputGenerateOrderlessTransactionOptions, ch as InputGenerateRawTransactionArgs, cb as InputGenerateSequenceNumberTransactionOptions, ci as InputGenerateSingleSignerRawTransactionData, ck as InputGenerateTransactionData, ce as InputGenerateTransactionPayloadDataWithABI, cf as InputMultiSigData, bC as ModuleId, dR as MoveAbility, dK as MoveAddressType, dS as MoveFunctionGenericTypeParam, dQ as MoveFunctionVisibility, dP as MoveModuleId, dL as MoveObjectType, bo as MoveOption, dM as MoveOptionType, dj as MoveScriptBytecode, dU as MoveStruct, dT as MoveStructField, dN as MoveStructType, dO as MoveType, dI as MoveUint128Type, dF as MoveUint16Type, dJ as MoveUint256Type, dG as MoveUint32Type, dH as MoveUint64Type, dE as MoveUint8Type, bE as MultiAgentRawTransaction, bL as MultiSig, bM as MultiSigTransactionPayload, dh as MultisigPayloadResponse, e4 as Network, e5 as NetworkToChainId, e1 as NetworkToFaucetAPI, d$ as NetworkToIndexerAPI, e6 as NetworkToNetworkName, e0 as NetworkToNodeAPI, e2 as NetworkToPepperAPI, e3 as NetworkToProverAPI, cn as OrderBy, co as OrderByValue, bq as ParsingError, br as ParsingResult, cQ as PluginConfig, cR as PluginSettings, cz as PrivateKeyVariants, ec as RAW_TRANSACTION_SALT, ed as RAW_TRANSACTION_WITH_DATA_SALT, bD as RawTransactionWithData, dV as RoleType, bK as Script, bH as ScriptFunctionArgument, ca as ScriptFunctionArgumentTypes, dg as ScriptPayloadResponse, cr as ScriptTransactionArgumentVariants, dA as ScriptWriteSet, bv as Secp256k1PrivateKey, bu as Secp256k1PublicKey, bw as Secp256k1Signature, bn as Serialized, d1 as StateCheckpointTransactionResponse, c5 as StructTag, cp as TokenStandard, bG as TransactionArgument, cx as TransactionAuthenticatorVariant, ds as TransactionEd25519Signature, bO as TransactionExecutable, bR as TransactionExecutableEmpty, bQ as TransactionExecutableEntryFunction, bP as TransactionExecutableScript, cu as TransactionExecutableVariants, bS as TransactionExtraConfig, bT as TransactionExtraConfigV1, cv as TransactionExtraConfigVariants, dx as TransactionFeePayerSignature, cO as TransactionGenerationConfig, bN as TransactionInnerPayloadV1, ct as TransactionInnerPayloadVariants, dw as TransactionMultiAgentSignature, dv as TransactionMultiEd25519Signature, bJ as TransactionPayload, de as TransactionPayloadResponse, cs as TransactionPayloadVariants, cT as TransactionResponseType, dt as TransactionSecp256k1Signature, dk as TransactionSignature, du as TransactionSingleSenderSignature, cS as TransactionSubmitter, cw as TransactionVariants, b$ as TypeTagAddress, bU as TypeTagBool, c2 as TypeTagGeneric, c1 as TypeTagReference, c0 as TypeTagSigner, c4 as TypeTagStruct, bZ as TypeTagU128, bW as TypeTagU16, b_ as TypeTagU256, bX as TypeTagU32, bY as TypeTagU64, bV as TypeTagU8, cq as TypeTagVariants, c3 as TypeTagVector, cI as Uint128, cF as Uint16, cJ as Uint256, cG as Uint32, cH as Uint64, cE as Uint8, d2 as ValidatorTransactionResponse, cg as ViewFunctionJsonPayload, dz as WriteSet, d5 as WriteSetChange, d6 as WriteSetChangeDeleteModule, d7 as WriteSetChangeDeleteResource, d8 as WriteSetChangeDeleteTableItem, d9 as WriteSetChangeWriteModule, da as WriteSetChangeWriteResource, db as WriteSetChangeWriteTableItem, cB as anyPublicKeyVariantToString, c6 as aptosCoinStructTag, bI as deserializeFromScriptArgument, bk as ensureBoolean, bz as hexToAsciiString, c_ as isBlockEpilogueTransactionResponse, cX as isBlockMetadataTransactionResponse, bs as isCanonicalEd25519Signature, dl as isEd25519Signature, dp as isFeePayerSignature, cW as isGenesisTransactionResponse, dn as isMultiAgentSignature, dq as isMultiEd25519Signature, cU as isPendingTransactionResponse, dm as isSecp256k1Signature, dr as isSingleSenderSignature, cY as isStateCheckpointTransactionResponse, cV as isUserTransactionResponse, cZ as isValidatorTransactionResponse, c9 as objectStructTag, c8 as optionStructTag, bl as outOfRangeErrorMessage, c7 as stringStructTag, bm as validateNumberInRange } from './account-CmEgDBH6.js';
|
|
3
3
|
import { ProjPointType } from '@noble/curves/abstract/weierstrass';
|
|
4
4
|
import { Fp2 } from '@noble/curves/abstract/tower';
|
|
5
5
|
import EventEmitter from 'eventemitter3';
|
|
@@ -223,21 +223,6 @@ type CurrentFungibleAssetBalancesBoolExp = {
|
|
|
223
223
|
storage_id?: InputMaybe<StringComparisonExp>;
|
|
224
224
|
token_standard?: InputMaybe<StringComparisonExp>;
|
|
225
225
|
};
|
|
226
|
-
/** Boolean expression to filter rows from the table "events". All fields are combined with a logical 'AND'. */
|
|
227
|
-
type EventsBoolExp = {
|
|
228
|
-
_and?: InputMaybe<Array<EventsBoolExp>>;
|
|
229
|
-
_not?: InputMaybe<EventsBoolExp>;
|
|
230
|
-
_or?: InputMaybe<Array<EventsBoolExp>>;
|
|
231
|
-
account_address?: InputMaybe<StringComparisonExp>;
|
|
232
|
-
creation_number?: InputMaybe<BigintComparisonExp>;
|
|
233
|
-
data?: InputMaybe<JsonbComparisonExp>;
|
|
234
|
-
event_index?: InputMaybe<BigintComparisonExp>;
|
|
235
|
-
indexed_type?: InputMaybe<StringComparisonExp>;
|
|
236
|
-
sequence_number?: InputMaybe<BigintComparisonExp>;
|
|
237
|
-
transaction_block_height?: InputMaybe<BigintComparisonExp>;
|
|
238
|
-
transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
239
|
-
type?: InputMaybe<StringComparisonExp>;
|
|
240
|
-
};
|
|
241
226
|
/** Boolean expression to filter rows from the table "fungible_asset_activities". All fields are combined with a logical 'AND'. */
|
|
242
227
|
type FungibleAssetActivitiesBoolExp = {
|
|
243
228
|
_and?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
|
|
@@ -4548,190 +4533,6 @@ declare class DigitalAsset {
|
|
|
4548
4533
|
}): Promise<SimpleTransaction>;
|
|
4549
4534
|
}
|
|
4550
4535
|
|
|
4551
|
-
/**
|
|
4552
|
-
* A class to query all `Event` Aptos related queries.
|
|
4553
|
-
* @group Event
|
|
4554
|
-
*/
|
|
4555
|
-
declare class Event {
|
|
4556
|
-
readonly config: AptosConfig;
|
|
4557
|
-
/**
|
|
4558
|
-
* Initializes a new instance of the Aptos client with the provided configuration.
|
|
4559
|
-
*
|
|
4560
|
-
* @param config - The configuration settings for the Aptos client.
|
|
4561
|
-
* @param config.network - The network to connect to (e.g., Testnet, Mainnet).
|
|
4562
|
-
* @param config.nodeUrl - The URL of the Aptos node to connect to.
|
|
4563
|
-
* @param config.faucetUrl - The URL of the faucet to use for funding accounts.
|
|
4564
|
-
*
|
|
4565
|
-
* @example
|
|
4566
|
-
* ```typescript
|
|
4567
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
4568
|
-
*
|
|
4569
|
-
* async function runExample() {
|
|
4570
|
-
* // Create a new Aptos client with Testnet configuration
|
|
4571
|
-
* const config = new AptosConfig({ network: Network.TESTNET }); // Specify your own network if needed
|
|
4572
|
-
* const aptos = new Aptos(config);
|
|
4573
|
-
*
|
|
4574
|
-
* console.log("Aptos client initialized:", aptos);
|
|
4575
|
-
* }
|
|
4576
|
-
* runExample().catch(console.error);
|
|
4577
|
-
* ```
|
|
4578
|
-
* @group Event
|
|
4579
|
-
*/
|
|
4580
|
-
constructor(config: AptosConfig);
|
|
4581
|
-
/**
|
|
4582
|
-
* Retrieve module events based on a specified event type.
|
|
4583
|
-
* This function allows you to query for events that are associated with a particular module event type in the Aptos blockchain.
|
|
4584
|
-
*
|
|
4585
|
-
* @param args - The arguments for retrieving module events.
|
|
4586
|
-
* @param args.eventType - The event type to filter the results.
|
|
4587
|
-
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
4588
|
-
* @param args.options - Optional pagination and ordering parameters for the event results.
|
|
4589
|
-
*
|
|
4590
|
-
* @returns Promise<GetEventsResponse> - A promise that resolves to the retrieved events.
|
|
4591
|
-
*
|
|
4592
|
-
* @example
|
|
4593
|
-
* ```typescript
|
|
4594
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
4595
|
-
*
|
|
4596
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
4597
|
-
* const aptos = new Aptos(config);
|
|
4598
|
-
*
|
|
4599
|
-
* async function runExample() {
|
|
4600
|
-
* // Retrieve module events for a specific event type
|
|
4601
|
-
* const events = await aptos.getModuleEventsByEventType({
|
|
4602
|
-
* eventType: "0x1::transaction_fee::FeeStatement", // specify the event type
|
|
4603
|
-
* minimumLedgerVersion: 1, // optional: specify minimum ledger version if needed
|
|
4604
|
-
* });
|
|
4605
|
-
*
|
|
4606
|
-
* console.log(events); // log the retrieved events
|
|
4607
|
-
* }
|
|
4608
|
-
* runExample().catch(console.error);
|
|
4609
|
-
* ```
|
|
4610
|
-
* @group Event
|
|
4611
|
-
*/
|
|
4612
|
-
getModuleEventsByEventType(args: {
|
|
4613
|
-
eventType: MoveStructId;
|
|
4614
|
-
minimumLedgerVersion?: AnyNumber;
|
|
4615
|
-
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
|
|
4616
|
-
}): Promise<GetEventsResponse>;
|
|
4617
|
-
/**
|
|
4618
|
-
* Retrieve events associated with a specific account address and creation number.
|
|
4619
|
-
*
|
|
4620
|
-
* @param args - The parameters for retrieving account events.
|
|
4621
|
-
* @param args.accountAddress - The account address to query events for.
|
|
4622
|
-
* @param args.creationNumber - The event creation number to filter the events.
|
|
4623
|
-
* @param args.minimumLedgerVersion - Optional minimum ledger version to sync up to before querying.
|
|
4624
|
-
*
|
|
4625
|
-
* @returns Promise<GetEventsResponse>
|
|
4626
|
-
*
|
|
4627
|
-
* @example
|
|
4628
|
-
* ```typescript
|
|
4629
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
4630
|
-
*
|
|
4631
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
4632
|
-
* const aptos = new Aptos(config);
|
|
4633
|
-
*
|
|
4634
|
-
* async function runExample() {
|
|
4635
|
-
* // Get events for the account at creation number 0
|
|
4636
|
-
* const events = await aptos.getAccountEventsByCreationNumber({
|
|
4637
|
-
* accountAddress: "0x1", // replace with a real account address
|
|
4638
|
-
* creationNumber: 0,
|
|
4639
|
-
* });
|
|
4640
|
-
*
|
|
4641
|
-
* console.log(events);
|
|
4642
|
-
* }
|
|
4643
|
-
* runExample().catch(console.error);
|
|
4644
|
-
* ```
|
|
4645
|
-
* @group Event
|
|
4646
|
-
*/
|
|
4647
|
-
getAccountEventsByCreationNumber(args: {
|
|
4648
|
-
accountAddress: AccountAddressInput;
|
|
4649
|
-
creationNumber: AnyNumber;
|
|
4650
|
-
minimumLedgerVersion?: AnyNumber;
|
|
4651
|
-
}): Promise<GetEventsResponse>;
|
|
4652
|
-
/**
|
|
4653
|
-
* Retrieve events associated with a specific account address and event type.
|
|
4654
|
-
*
|
|
4655
|
-
* @param args.accountAddress - The account address to query events for.
|
|
4656
|
-
* @param args.eventType - The type of event to filter by.
|
|
4657
|
-
* @param args.minimumLedgerVersion - Optional ledger version to sync up to before querying.
|
|
4658
|
-
* @param args.options - Optional pagination and ordering parameters for the event query.
|
|
4659
|
-
*
|
|
4660
|
-
* @returns Promise<GetEventsResponse>
|
|
4661
|
-
*
|
|
4662
|
-
* @example
|
|
4663
|
-
* ```typescript
|
|
4664
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
4665
|
-
*
|
|
4666
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
4667
|
-
* const aptos = new Aptos(config);
|
|
4668
|
-
*
|
|
4669
|
-
* async function runExample() {
|
|
4670
|
-
* // Get events for a specific account and event type
|
|
4671
|
-
* const events = await aptos.getAccountEventsByEventType({
|
|
4672
|
-
* accountAddress: "0x1", // replace with a real account address
|
|
4673
|
-
* eventType: "0x1::transaction_fee::FeeStatement", // replace with a real event type
|
|
4674
|
-
* minimumLedgerVersion: 1, // optional, specify if needed
|
|
4675
|
-
* });
|
|
4676
|
-
*
|
|
4677
|
-
* console.log(events);
|
|
4678
|
-
* }
|
|
4679
|
-
* runExample().catch(console.error);
|
|
4680
|
-
* ```
|
|
4681
|
-
* @group Event
|
|
4682
|
-
*/
|
|
4683
|
-
getAccountEventsByEventType(args: {
|
|
4684
|
-
accountAddress: AccountAddressInput;
|
|
4685
|
-
eventType: MoveStructId;
|
|
4686
|
-
minimumLedgerVersion?: AnyNumber;
|
|
4687
|
-
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
|
|
4688
|
-
}): Promise<GetEventsResponse>;
|
|
4689
|
-
/**
|
|
4690
|
-
* Retrieve all events from the Aptos blockchain.
|
|
4691
|
-
* An optional `where` clause can be provided to filter the results based on specific criteria.
|
|
4692
|
-
*
|
|
4693
|
-
* @param args Optional parameters for the query.
|
|
4694
|
-
* @param args.minimumLedgerVersion Optional ledger version to sync up to before querying.
|
|
4695
|
-
* @param args.options Optional pagination and filtering options.
|
|
4696
|
-
* @param args.options.where Optional condition to filter events.
|
|
4697
|
-
* @param args.options.offset Optional pagination offset.
|
|
4698
|
-
* @param args.options.limit Optional maximum number of events to return.
|
|
4699
|
-
* @param args.options.orderBy Optional ordering of the results.
|
|
4700
|
-
*
|
|
4701
|
-
* @returns GetEventsQuery response type containing the events.
|
|
4702
|
-
*
|
|
4703
|
-
* @example
|
|
4704
|
-
* ```typescript
|
|
4705
|
-
* import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
|
|
4706
|
-
*
|
|
4707
|
-
* const config = new AptosConfig({ network: Network.TESTNET });
|
|
4708
|
-
* const aptos = new Aptos(config);
|
|
4709
|
-
*
|
|
4710
|
-
* async function runExample() {
|
|
4711
|
-
* // Retrieve all events
|
|
4712
|
-
* const events = await aptos.getEvents();
|
|
4713
|
-
*
|
|
4714
|
-
* // Retrieve events with filtering by account address
|
|
4715
|
-
* const whereCondition = {
|
|
4716
|
-
* account_address: { _eq: "0x123" }, // replace with a real account address
|
|
4717
|
-
* };
|
|
4718
|
-
* const filteredEvents = await aptos.getEvents({
|
|
4719
|
-
* options: { where: whereCondition },
|
|
4720
|
-
* });
|
|
4721
|
-
*
|
|
4722
|
-
* console.log(events);
|
|
4723
|
-
* console.log(filteredEvents);
|
|
4724
|
-
* }
|
|
4725
|
-
* runExample().catch(console.error);
|
|
4726
|
-
* ```
|
|
4727
|
-
* @group Event
|
|
4728
|
-
*/
|
|
4729
|
-
getEvents(args?: {
|
|
4730
|
-
minimumLedgerVersion?: AnyNumber;
|
|
4731
|
-
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]> & WhereArg<EventsBoolExp>;
|
|
4732
|
-
}): Promise<GetEventsResponse>;
|
|
4733
|
-
}
|
|
4734
|
-
|
|
4735
4536
|
/**
|
|
4736
4537
|
* A class to query all `Faucet` related queries on Aptos.
|
|
4737
4538
|
* @group Faucet
|
|
@@ -5390,6 +5191,9 @@ declare class General {
|
|
|
5390
5191
|
* @param sender - The account initiating the name registration.
|
|
5391
5192
|
* @param name - The name to be registered.
|
|
5392
5193
|
* @param expiration - The expiration policy for the name registration.
|
|
5194
|
+
* @param transferable - Whether the name can be transferred to another owner.
|
|
5195
|
+
* @param toAddress - The address that will be set as the owner_address of the name.
|
|
5196
|
+
* @param targetAddress - The address that this name will resolve to.
|
|
5393
5197
|
* @group Implementation
|
|
5394
5198
|
*/
|
|
5395
5199
|
interface RegisterNameParameters {
|
|
@@ -9133,7 +8937,6 @@ declare class Aptos {
|
|
|
9133
8937
|
readonly ans: ANS;
|
|
9134
8938
|
readonly coin: Coin;
|
|
9135
8939
|
readonly digitalAsset: DigitalAsset;
|
|
9136
|
-
readonly event: Event;
|
|
9137
8940
|
readonly faucet: Faucet;
|
|
9138
8941
|
readonly fungibleAsset: FungibleAsset;
|
|
9139
8942
|
readonly general: General;
|
|
@@ -10495,4 +10298,4 @@ declare class AptosApiError extends Error {
|
|
|
10495
10298
|
constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts);
|
|
10496
10299
|
}
|
|
10497
10300
|
|
|
10498
|
-
export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, AbstractKeylessAccount, AbstractPublicKey, AbstractSignature, AbstractedAccount, Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorAbstraction, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorNoAccountAuthenticator, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AccountUtils, AnyNumber, AnyPublicKey, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AuthenticationKey, type BaseAccountPublicKey, Block, Bool, CKDPriv, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, CursorPaginationArgs, DerivableAbstractedAccount, type DerivedKeys, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FederatedKeylessAccount, FederatedKeylessPublicKey, FixedBytes, FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse,
|
|
10301
|
+
export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, AbstractKeylessAccount, AbstractPublicKey, AbstractSignature, AbstractedAccount, Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorAbstraction, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorNoAccountAuthenticator, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AccountUtils, AnyNumber, AnyPublicKey, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AuthenticationKey, type BaseAccountPublicKey, Block, Bool, CKDPriv, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, CursorPaginationArgs, DerivableAbstractedAccount, type DerivedKeys, type DeserializableClass, Deserializer, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, type ExecutionFinishEventData, type FailureEventData, FederatedKeylessAccount, FederatedKeylessPublicKey, FixedBytes, FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetObjectDataQueryResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16ProofAndStatement, Groth16VerificationKey, Groth16Zkp, HARDENED_OFFSET, HexInput, InputEntryFunctionDataWithABI, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigDataWithABI, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputTransactionPluginData, InputViewFunctionData, InputViewFunctionDataWithABI, InputViewFunctionDataWithRemoteABI, 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, MoveFunction, MoveFunctionId, MoveJWK, MoveModule, MoveModuleBytecode, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentTransaction, MultiEd25519Account, MultiEd25519PublicKey, MultiEd25519Signature, type MultiEd25519SignerConstructorArgs, MultiKey, MultiKeyAccount, MultiKeySignature, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, type PrivateKeyFromDerivationPathArgs, PrivateKeyInput, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, PublicKey, RawTransaction, RotationProofChallenge, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySigner, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, type SingleKeySignerOrLegacyEd25519Account, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionAndProof, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionInnerPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeArgument, TypeTag, TypeTagParserError, TypeTagParserErrorType, U128, U16, U256, U32, U64, U8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifyMultiEd25519SignatureArgs, type VerifyMultiKeySignatureArgs, VerifySignatureArgs, VerifySignatureAsyncArgs, type VerifySingleKeySignatureArgs, ViewFunctionABI, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosRequest, base64UrlDecode, base64UrlToBytes, bigIntToBytesLE, buildTransaction, bytesToBigIntLE, checkOrConvertArgument, convertAmountFromHumanReadableToOnChain, convertAmountFromOnChainToHumanReadable, convertArgument, convertNumber, convertPayloadToInnerPayload, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializePublicKey, deserializeSignature, fetchEntryFunctionAbi, fetchFunctionAbi, fetchJWK, fetchModuleAbi, fetchMoveFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, floorToWholeHour, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getErrorMessage, getFunctionParts, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, getPageWithObfuscatedCursor, hashStrToField, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEmptyOption, isEncodedEntryFunctionArgument, isEncodedStruct, isKeylessSigner, isLargeNumber, isNumber, isScriptDataInput, isSingleKeySigner, isString, isValidBIP44Path, isValidFunctionInfo, isValidHardenedPath, mnemonicToSeed, normalizeBundle, nowInSeconds, padAndPackBytesWithLen, paginateWithCursor, paginateWithObfuscatedCursor, pairedFaMetadataAddress, parseEncodedStruct, parseJwtHeader, parseTypeTag, poseidonHash, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, sleep, splitPath, standardizeTypeTags, throwTypeMismatch, truncateAddress, verifyKeylessSignature, verifyKeylessSignatureWithJwkAndConfig };
|