UNPKG

blockchain-api

Version:

API utilities for interacting with the Exatechl2 blockchain

108 lines (105 loc) 2.04 kB
export interface TransactionMethod { signature: string; name: string; params?: any; } export declare const EVENT_SIGNATURES: { Transfer: string; Approval: string; Mint: string; Burn: string; Pause: string; Unpause: string; OwnershipTransferred: string; RoleGranted: string; RoleRevoked: string; }; export declare const TOKEN_RELATED_EVENTS: string[]; /** * * @param topic * @returns */ export declare function parseAddressFromTopic(topic: string): string; /** * * @param signature * @returns */ export declare function getEventType(signature: string): string; /** * * * @param event * @returns */ export declare function enhanceEvent(event: any): Promise<any>; /** * * @param events * @returns */ export declare function enhanceEvents(events: any[]): Promise<any[]>; /** * * @param response * @returns */ export declare function enhanceEventResponse(response: any): Promise<any>; /** * @param address * @param params * @returns */ export declare function getAddressEvents(address: string, params?: { page?: number; limit?: number; eventType?: string; }): Promise<any>; /** * @param txHash * @param params * @returns */ export declare function getTransactionEvents(txHash: string, params?: { eventType?: string; }): Promise<any>; /** * * @param params * @returns */ export declare function getAllEvents(params?: { page?: number; limit?: number; eventType?: string; }): Promise<any>; /** * * @param params * @returns */ export declare function getTokenTransfers(params?: { page?: number; limit?: number; }): Promise<any>; /** * * @param tokenAddress * @param params * @returns */ export declare function getTokenTransfersByToken(tokenAddress: string, params?: { page?: number; limit?: number; }): Promise<any>; /** * * @param address * @param params * @returns */ export declare function getTokenTransfersByAddress(address: string, params?: { page?: number; limit?: number; }): Promise<any>;