@zondax/fvm-client-tool
Version:
Filecoin Virtual Machine client tool for AssemblyScript language
18 lines (17 loc) • 582 B
TypeScript
import { CID } from "multiformats/cid";
import { ABI } from "./types";
export declare class ContractManager {
protected methods: {
[key: string]: number;
};
protected address: string | null;
protected cid: CID | null;
static install(account: any, binaryPath: string): Promise<{
cid: CID;
isInstalled: boolean;
}>;
static load<T>(address: string, { functions, types }: ABI): T;
static create<T>(cid: CID, { functions, types }: ABI): T;
setContractAddress: (address: string) => void;
getContractAddress: () => string;
}