UNPKG

verusd-web

Version:

A Verus Blockchain library that enables a bi-directional communication with the Verus and other Verus PBaas chains.

16 lines (15 loc) 790 B
import type { EventData, SubscriptionEventsHandler } from "verus-zmq-client"; import { WsServer } from "./WsServer"; type CustomReceivedEventCallback = (value: EventData, topic?: string, result?: Object, wsServer?: WsServer) => Object; export declare class ZmqEventsHandlerProvider { private wsServer?; private events; constructor(wsServer?: WsServer | undefined); get e(): CustomReceivedEventCallback[]; onHashBlock(f: CustomReceivedEventCallback): CustomReceivedEventCallback; onHashTx(f: CustomReceivedEventCallback): CustomReceivedEventCallback; onRawBlock(f: CustomReceivedEventCallback): CustomReceivedEventCallback; onRawTx(f: CustomReceivedEventCallback): CustomReceivedEventCallback; get eventsHandler(): SubscriptionEventsHandler; } export {};