aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/utils/ganache_subprovider.ts
blob: ac4a9325c3afc44533a11f3ee06f7c362e1f6d3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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,
});