From a6f72de09d7b2c9738b78d2097baa9906838fbe9 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 8 May 2018 15:42:07 +0200 Subject: Rename deployer to sol-compiler --- packages/sol-compiler/test/util/constants.ts | 11 +++++++++++ packages/sol-compiler/test/util/provider.ts | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 packages/sol-compiler/test/util/constants.ts create mode 100644 packages/sol-compiler/test/util/provider.ts (limited to 'packages/sol-compiler/test/util') diff --git a/packages/sol-compiler/test/util/constants.ts b/packages/sol-compiler/test/util/constants.ts new file mode 100644 index 000000000..88d6db550 --- /dev/null +++ b/packages/sol-compiler/test/util/constants.ts @@ -0,0 +1,11 @@ +import { BigNumber } from '@0xproject/utils'; + +export const constants = { + networkId: 0, + optimizerEnabled: false, + gasPrice: new BigNumber(20000000000), + timeoutMs: 30000, + zrxTokenAddress: '0xe41d2489571d322189246dafa5ebde1f4699f498', + tokenTransferProxyAddress: '0x8da0d80f5007ef1e431dd2127178d224e32c2ef4', + contracts: '*' as '*', +}; diff --git a/packages/sol-compiler/test/util/provider.ts b/packages/sol-compiler/test/util/provider.ts new file mode 100644 index 000000000..e0fcb362a --- /dev/null +++ b/packages/sol-compiler/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 }; -- cgit v1.2.3