@aptos-labs/ts-sdk
Version:
Aptos TypeScript SDK
45 lines (41 loc) • 1.97 kB
text/typescript
import { AptosConfig } from '../api/aptosConfig.mjs';
import { AccountAddressInput } from '../core/accountAddress.mjs';
import { MoveStructId, PaginationArgs, OrderByArg, AnyNumber, WhereArg } from '../types/index.mjs';
import { EventsBoolExp } from '../types/generated/types.mjs';
import { GetEventsResponse } from '../types/indexer.mjs';
import '../utils/apiEndpoints.mjs';
import '../utils/const.mjs';
import '../bcs/serializer.mjs';
import '../core/hex.mjs';
import '../core/common.mjs';
import '../bcs/deserializer.mjs';
import '../transactions/instances/transactionArgument.mjs';
import '../types/generated/operations.mjs';
/**
* This file contains the underlying implementations for exposed API surface in
* the {@link api/event}. By moving the methods out into a separate file,
* other namespaces and processes can access these methods without depending on the entire
* event namespace and without having a dependency cycle error.
*/
declare function getModuleEventsByEventType(args: {
aptosConfig: AptosConfig;
eventType: MoveStructId;
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
}): Promise<GetEventsResponse>;
declare function getAccountEventsByCreationNumber(args: {
aptosConfig: AptosConfig;
accountAddress: AccountAddressInput;
creationNumber: AnyNumber;
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
}): Promise<GetEventsResponse>;
declare function getAccountEventsByEventType(args: {
aptosConfig: AptosConfig;
accountAddress: AccountAddressInput;
eventType: MoveStructId;
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]>;
}): Promise<GetEventsResponse>;
declare function getEvents(args: {
aptosConfig: AptosConfig;
options?: PaginationArgs & OrderByArg<GetEventsResponse[0]> & WhereArg<EventsBoolExp>;
}): Promise<GetEventsResponse>;
export { getAccountEventsByCreationNumber, getAccountEventsByEventType, getEvents, getModuleEventsByEventType };