aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test/utils/deployer.ts
blob: b092322e2471ffcf39bacbf6abc7426281e53feb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Deployer } from '@0xproject/deployer';
import { devConstants } from '@0xproject/dev-utils';
import * as path from 'path';

import { constants } from './constants';

import { provider } from './web3_wrapper';

const artifactsDir = path.resolve('test', 'artifacts');
const deployerOpts = {
    artifactsDir,
    provider,
    networkId: constants.TESTRPC_NETWORK_ID,
    defaults: {
        gas: devConstants.GAS_ESTIMATE,
    },
};
export const deployer = new Deployer(deployerOpts);