aboutsummaryrefslogblamecommitdiffstats
path: root/packages/contracts/test/utils/deployer.ts
blob: 2f0951475a66d58a3d060c84229ec04ab1111d9a (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                    

                                      
                      
                                   
                                                          






                                                   
import { Deployer } from '@0xproject/deployer';
import { devConstants } from '@0xproject/dev-utils';
import * as path from 'path';

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

import { web3 } from './web3_wrapper';

const deployerOpts = {
    provider: web3.currentProvider,
    artifactsDir: path.resolve('lib', 'src', 'artifacts'),
    networkId: constants.TESTRPC_NETWORK_ID,
    defaults: {
        gas: devConstants.GAS_ESTIMATE,
    },
};

export const deployer = new Deployer(deployerOpts);