19 lines
433 B
TypeScript
19 lines
433 B
TypeScript
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,
|
|
});
|