aboutsummaryrefslogtreecommitdiffstats
path: root/packages/metacoin/test/utils/deployer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/metacoin/test/utils/deployer.ts')
-rw-r--r--packages/metacoin/test/utils/deployer.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/metacoin/test/utils/deployer.ts b/packages/metacoin/test/utils/deployer.ts
new file mode 100644
index 000000000..7916c8541
--- /dev/null
+++ b/packages/metacoin/test/utils/deployer.ts
@@ -0,0 +1,17 @@
+import { Deployer } from '@0xproject/deployer';
+import { devConstants } from '@0xproject/dev-utils';
+import * as path from 'path';
+
+import { config } from './config';
+import { web3Wrapper } from './web3_wrapper';
+
+const deployerOpts = {
+ web3Provider: web3Wrapper.getProvider(),
+ artifactsDir: config.artifactsDir,
+ networkId: config.networkId,
+ defaults: {
+ from: devConstants.TESTRPC_FIRST_ADDRESS,
+ },
+};
+
+export const deployer = new Deployer(deployerOpts);