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) • 1.07 kB
TypeScript
import { PoolContract } from '@contracts';
import { IEventListener } from '../../interfaces/listeners/IEventListener';
import { ISetFeeProtocolEvent } from '../../interfaces/events/pool/ISetFeeProtocolEvent';
/**
* @title SetFeeProtocol Event Listener
* @notice Listens for SetFeeProtocol events from a EvxPool contract
* @dev This listener monitors a pool contract for set fee protocol events
*/
export declare class SetFeeProtocolListener implements IEventListener<ISetFeeProtocolEvent> {
private readonly poolContract;
private isListening;
private eventFilter;
private callbacks;
constructor(poolContract: PoolContract);
start(callback: (event: ISetFeeProtocolEvent) => void | Promise<void>): Promise<void>;
addCallback(callback: (event: ISetFeeProtocolEvent) => void | Promise<void>): void;
removeCallback(callback: (event: ISetFeeProtocolEvent) => void | Promise<void>): void;
stop(): void;
getHistoricalEvents(fromBlock: number, toBlock?: number | 'latest'): Promise<ISetFeeProtocolEvent[]>;
get listening(): boolean;
}