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

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

import { runMigrationsAsync } from './migrate';

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

export const deployer = new Deployer(deployerOpts);

runMigrationsAsync(deployer).catch(console.log);