UNPKG

618 BTypeScriptView Raw
1declare module 'ganache-core' {
2 import EthereumTypes = require('ethereum-types');
3 export interface GanacheOpts {
4 verbose?: boolean;
5 logger?: {
6 log(msg: string): void;
7 };
8 port?: number;
9 network_id?: number;
10 networkId?: number;
11 mnemonic?: string;
12 gasLimit?: number;
13 vmErrorsOnRPCResponse?: boolean;
14 db_path?: string;
15 total_accounts?: number;
16 fork?: string;
17 blockTime?: number;
18 unlocked_accounts?: string[];
19 }
20 export function provider(opts: GanacheOpts): EthereumTypes.Provider;
21}