@paradeum/burrow
Version:
TypeScript library that calls a Hyperledger Burrow server over GRPC.
18 lines (17 loc) • 925 B
TypeScript
/// <reference types="node" />
import { Burrow } from './burrow';
import { Readable } from 'stream';
import { CallTx } from '../../proto/payload_pb';
import { TxExecution } from '../../proto/exec_pb';
export declare type Interceptor = (result: TxExecution) => Promise<TxExecution>;
export declare class Client extends Burrow {
interceptor: Interceptor;
constructor(url: string, account: string);
deploy(msg: CallTx, callback: (err: Error, addr: Uint8Array) => void): void;
call(msg: CallTx, callback: (err: Error, exec: Uint8Array) => void): void;
callSim(msg: CallTx, callback: (err: Error, exec: Uint8Array) => void): void;
listen(signature: string, address: string, callback: (err: Error, event: any) => void): Readable;
payload(data: string, address?: string): CallTx;
encode(name: string, inputs: string[], ...args: any[]): string;
decode(data: Uint8Array, outputs: string[]): any;
}