evx-sdk
Version:
The Evx SDK is a developer toolkit designed to simplify interaction with the Evx decentralized liquidity protocol. It provides an abstraction layer over the smart contracts, allowing developers to easily build applications, integrate liquidity pools, fetc
22 lines (21 loc) • 995 B
TypeScript
import { PoolContract } from '@contracts';
import { IEventListener } from '../../interfaces/listeners/IEventListener';
import { ICollectEvent } from '../../interfaces/events/pool/ICollectEvent';
/**
* @title Collect Event Listener
* @notice Listens for Collect events from a EvxPool contract
* @dev This listener monitors a pool contract for collect events
*/
export declare class CollectListener implements IEventListener<ICollectEvent> {
private readonly poolContract;
private isListening;
private eventFilter;
private callbacks;
constructor(poolContract: PoolContract);
start(callback: (event: ICollectEvent) => void | Promise<void>): Promise<void>;
addCallback(callback: (event: ICollectEvent) => void | Promise<void>): void;
removeCallback(callback: (event: ICollectEvent) => void | Promise<void>): void;
stop(): void;
getHistoricalEvents(fromBlock: number, toBlock?: number | 'latest'): Promise<ICollectEvent[]>;
get listening(): boolean;
}