@0x/typescript-typings
Version:
0x project typescript type definitions
22 lines (21 loc) • 618 B
TypeScript
declare module 'ganache-core' {
import EthereumTypes = require('ethereum-types');
export interface GanacheOpts {
verbose?: boolean;
logger?: {
log(msg: string): void;
};
port?: number;
network_id?: number;
networkId?: number;
mnemonic?: string;
gasLimit?: number;
vmErrorsOnRPCResponse?: boolean;
db_path?: string;
total_accounts?: number;
fork?: string;
blockTime?: number;
unlocked_accounts?: string[];
}
export function provider(opts: GanacheOpts): EthereumTypes.Provider;
}