@paradeum/burrow
Version:
TypeScript library that calls a Hyperledger Burrow server over GRPC.
21 lines (20 loc) • 840 B
TypeScript
import { Contract, Handlers } from './contract';
import { Burrow } from '../Burrow';
import { Function, Event } from 'solc';
declare type FunctionOrEvent = Function | Event;
export declare class ContractManager {
burrow: Burrow;
constructor(burrow: Burrow);
deploy(abi: Array<FunctionOrEvent>, byteCode: string, deployedBytecode: string, handlers?: Handlers, ...args: any[]): Promise<Contract>;
/**
* Creates a contract object interface from an address without ABI.
* The contract must be deployed using a recent burrow deploy which registers
* metadata.
*
* @method address
* @param {string} address - default contract address [can be null]
* @returns {Contract} returns contract interface object
*/
address(address: string, handlers?: Handlers): Promise<Contract>;
}
export {};