aboutsummaryrefslogblamecommitdiffstats
path: root/packages/subproviders/test/utils/subprovider.ts
blob: b1c459746a629c42e961d51f1ba380cc5813b00c (plain) (tree)
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 subprovider = new GanacheSubprovider({
    logger,
    verbose: false,
    port: configs.port,
    networkId: configs.networkId,
    mnemonic: configs.mnemonic,
});