aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/utils/ganache_subprovider.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/subproviders/test/utils/ganache_subprovider.ts')
-rw-r--r--packages/subproviders/test/utils/ganache_subprovider.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/subproviders/test/utils/ganache_subprovider.ts b/packages/subproviders/test/utils/ganache_subprovider.ts
new file mode 100644
index 000000000..ac4a9325c
--- /dev/null
+++ b/packages/subproviders/test/utils/ganache_subprovider.ts
@@ -0,0 +1,18 @@
+import * as fs from 'fs';
+
+import { GanacheSubprovider } from '../../src/subproviders/ganache';
+import { configs } from '../utils/configs';
+
+const logger = {
+ log: (arg: any) => {
+ fs.appendFileSync('ganache.log', `${arg}\n`);
+ },
+};
+
+export const ganacheSubprovider = new GanacheSubprovider({
+ logger,
+ verbose: false,
+ port: configs.port,
+ networkId: configs.networkId,
+ mnemonic: configs.mnemonic,
+});