aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src/globals.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/subproviders/src/globals.d.ts')
-rw-r--r--packages/subproviders/src/globals.d.ts25
1 files changed, 15 insertions, 10 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts
index e51801b5c..b3dcd4ed3 100644
--- a/packages/subproviders/src/globals.d.ts
+++ b/packages/subproviders/src/globals.d.ts
@@ -67,16 +67,6 @@ declare module '@ledgerhq/hw-transport-node-hid' {
}
}
-// Semaphore-async-await declarations
-declare module 'semaphore-async-await' {
- class Semaphore {
- constructor(permits: number);
- public wait(): Promise<void>;
- public signal(): void;
- }
- export default Semaphore;
-}
-
// web3-provider-engine declarations
declare module 'web3-provider-engine/subproviders/subprovider' {
class Subprovider {}
@@ -141,3 +131,18 @@ declare module '*.json' {
export default json;
/* tslint:enable */
}
+
+// ganache-core declarations
+declare module 'ganache-core' {
+ import * as Web3 from 'web3';
+ export interface GanacheOpts {
+ verbose: boolean;
+ logger: {
+ log(msg: string): void;
+ };
+ port: number;
+ networkId: number;
+ mnemonic: string;
+ }
+ export function provider(opts: GanacheOpts): Web3.Provider;
+}