@titan-suite/cli
Version:
The complete smart contract development tool
28 lines (27 loc) • 1.07 kB
TypeScript
export interface Bolt {
name: string;
abi: any[];
bytecode: string;
migrations?: any[];
updated?: string;
}
interface DeployInfo {
code: string;
abi?: any[];
from?: string;
gas?: number;
gasPrice?: number;
args?: any[];
privateKey?: string;
}
export declare const getConfig: () => any;
export declare const getCurrentNetwork: () => string;
export declare const getProvider: (targetNetwork?: string | undefined) => any;
export declare const readUtf8: (absolutePath: string) => string;
export declare const readContract: (contract: any) => string;
export declare const compile: (sol: string, locally: boolean) => Promise<{}>;
export declare const unlock: (addr: string, pw: string) => Promise<void>;
export declare const deploy: ({ abi, code, args, privateKey }: DeployInfo, targetNetwork?: string | undefined) => Promise<any>;
export declare const downloadPack: (_pack: string, _path?: string | undefined) => Promise<void>;
export declare const createTemplate: (type: string, name: string) => Promise<void>;
export {};