@paradeum/burrow
Version:
TypeScript library that calls a Hyperledger Burrow server over GRPC.
16 lines (15 loc) • 748 B
TypeScript
import { TransactClient } from '../../proto/rpctransact_grpc_pb';
import { CallTx } from '../../proto/payload_pb';
import { TxExecution } from '../../proto/exec_pb';
import { Events } from './events';
import { LogEvent } from '../../proto/exec_pb';
import * as grpc from 'grpc';
export declare type TxCallback = grpc.requestCallback<TxExecution>;
export declare class Pipe {
burrow: TransactClient;
events: Events;
constructor(burrow: TransactClient, events: Events);
transact(payload: CallTx, callback: TxCallback): grpc.ClientUnaryCall;
call(payload: CallTx, callback: TxCallback): void;
eventSub(accountAddress: string, signature: string, callback: (err: Error, log: LogEvent) => void): import("./events").EventStream;
}