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

import { constants } from '../../util/constants';

const deployerOpts = {
    artifactsDir: `${path.resolve('build')}/artifacts`,
    jsonrpcPort: devConstants.RPC_PORT,
    networkId: constants.TESTRPC_NETWORK_ID,
    defaults: {
        gas: devConstants.GAS_ESTIMATE,
    },
};

export const deployer = new Deployer(deployerOpts);