aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/test/util/provider.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-12 07:53:32 +0800
committerGitHub <noreply@github.com>2018-04-12 07:53:32 +0800
commitc47fb8f9a83d409c092dd7449054fa16cf0fa1c9 (patch)
tree3e5e1b9f8e4588f811b203806ffde6864f0e09de /packages/deployer/test/util/provider.ts
parente8d4f6d5322930cf8618abcb9fea7c773a87ecd7 (diff)
parent27b915789efcacbeb0bfbe943f917c590cfaff4a (diff)
downloaddexon-sol-tools-c47fb8f9a83d409c092dd7449054fa16cf0fa1c9.tar
dexon-sol-tools-c47fb8f9a83d409c092dd7449054fa16cf0fa1c9.tar.gz
dexon-sol-tools-c47fb8f9a83d409c092dd7449054fa16cf0fa1c9.tar.bz2
dexon-sol-tools-c47fb8f9a83d409c092dd7449054fa16cf0fa1c9.tar.lz
dexon-sol-tools-c47fb8f9a83d409c092dd7449054fa16cf0fa1c9.tar.xz
dexon-sol-tools-c47fb8f9a83d409c092dd7449054fa16cf0fa1c9.tar.zst
dexon-sol-tools-c47fb8f9a83d409c092dd7449054fa16cf0fa1c9.zip
Merge pull request #500 from 0xProject/removeMigrateStep
Run all tests against in-process Ganache
Diffstat (limited to 'packages/deployer/test/util/provider.ts')
-rw-r--r--packages/deployer/test/util/provider.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/deployer/test/util/provider.ts b/packages/deployer/test/util/provider.ts
new file mode 100644
index 000000000..e0fcb362a
--- /dev/null
+++ b/packages/deployer/test/util/provider.ts
@@ -0,0 +1,9 @@
+import { web3Factory } from '@0xproject/dev-utils';
+import { Provider } from '@0xproject/types';
+import * as Web3 from 'web3';
+
+const providerConfigs = { shouldUseInProcessGanache: true };
+const web3Instance = web3Factory.create(providerConfigs);
+const provider: Provider = web3Instance.currentProvider;
+
+export { provider };