aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/test/util
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sol-compiler/test/util')
-rw-r--r--packages/sol-compiler/test/util/constants.ts11
-rw-r--r--packages/sol-compiler/test/util/provider.ts9
2 files changed, 20 insertions, 0 deletions
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 };