UNPKG

@paradeum/burrow

Version:

TypeScript library that calls a Hyperledger Burrow server over GRPC.

13 lines (12 loc) 637 B
import { QueryClient } from '../../proto/rpcquery_grpc_pb'; import { Entry } from '../../proto/names_pb'; import { TransactClient } from '../../proto/rpctransact_grpc_pb'; import { TxExecution } from '../../proto/exec_pb'; import * as grpc from 'grpc'; export declare class Namereg { burrow: TransactClient & QueryClient; account: string; constructor(burrow: TransactClient & QueryClient, account: string); set(name: string, data: string, lease: number, fee: number, callback: grpc.requestCallback<TxExecution>): grpc.ClientUnaryCall; get(name: string, callback: grpc.requestCallback<Entry>): grpc.ClientUnaryCall; }