ganache-core: Provides its own types (#39605)

This commit is contained in:
Alexander T
2019-11-01 20:13:14 +02:00
committed by Jesse Trinity
parent a3f77f97b0
commit 7eb9f13d9b
5 changed files with 6 additions and 48 deletions

View File

@@ -1362,6 +1362,12 @@
"sourceRepoURL": "https://github.com/ascoders/gaea-model",
"asOfVersion": "0.0.0"
},
{
"libraryName": "ganache-core",
"typingsPackageName": "ganache-core",
"sourceRepoURL": "https://github.com/trufflesuite/ganache-core#readme",
"asOfVersion": "2.7.0"
},
{
"libraryName": "geolib",
"typingsPackageName": "geolib",

View File

@@ -1,3 +0,0 @@
import { provider } from 'ganache-core';
provider({ verbose: true, vmErrorsOnRPCResponse: false });

View File

@@ -1,21 +0,0 @@
// 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
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;

View File

@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"ganache-core-tests.ts"
]
}

View File

@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }