UNPKG

@paradeum/burrow

Version:

TypeScript library that calls a Hyperledger Burrow server over GRPC.

13 lines (12 loc) 640 B
import { ExecutionEventsClient } from '../../proto/rpcevents_grpc_pb'; import { EventsResponse } from '../../proto/rpcevents_pb'; import { LogEvent } from '../../proto/exec_pb'; import { Error } from './Burrow'; import * as grpc from 'grpc'; export declare type EventStream = grpc.ClientReadableStream<EventsResponse>; export declare class Events { burrow: ExecutionEventsClient; constructor(burrow: ExecutionEventsClient); listen(query: string, callback: (err: Error, log: LogEvent) => void): EventStream; subContractEvents(address: string, signature: string, callback: (err: Error, log: LogEvent) => void): EventStream; }