UNPKG

@paradeum/burrow

Version:

TypeScript library that calls a Hyperledger Burrow server over GRPC.

29 lines (28 loc) 913 B
import { Result } from '../../../proto/exec_pb'; import { Envelope } from '../../../proto/txs_pb'; import { Function } from 'solc'; import { Contract } from '../..'; export declare const DEFAULT_GAS = 1111111111; declare type TransactionResult = { contractAddress: string; height: number; index: number; hash: string; type: number; result: Result.AsObject; tx: Envelope.AsObject; caller: string | string[]; } & DecodedResult; declare type DecodedResult = { raw?: any[]; values?: Record<string, any>; }; export declare type Handler = (result: TransactionResult) => any; export declare const SolidityFunction: (abi: Function, contract: Contract) => { displayName: string; typeName: string; call: (isSim: boolean, handler: Handler, address: string, ...args: any[]) => Promise<any>; encode: () => string; decode: (data: any) => DecodedResult; }; export {};