diff options
Diffstat (limited to 'packages/typescript-typings/types/ganache-core')
-rw-r--r-- | packages/typescript-typings/types/ganache-core/index.d.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/typescript-typings/types/ganache-core/index.d.ts b/packages/typescript-typings/types/ganache-core/index.d.ts new file mode 100644 index 000000000..e192db556 --- /dev/null +++ b/packages/typescript-typings/types/ganache-core/index.d.ts @@ -0,0 +1,23 @@ +// Type definitions for ganache-core 2.1 +// Project: https://github.com/trufflesuite/ganache-core#readme +// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +declare module '@dexon-foundation/ganache-core' { + import { Provider } from 'ethereum-protocol'; + 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): Provider; +} |