Add support for EIP1193 providers and clean up provider standardization logic

This commit is contained in:
Fabio Berger
2019-02-18 15:12:29 -08:00
parent e909faa3ef
commit 5db20bbbe8
20 changed files with 188 additions and 66 deletions

View File

@@ -0,0 +1,16 @@
declare module 'ganache-core' {
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;
}
export function provider(opts: GanacheOpts): GanacheProvider;
}