diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-24 00:04:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 00:04:59 +0800 |
commit | f3fe9661f65f5ac58d45e965b7be02e9738df1c4 (patch) | |
tree | aeff401cb16007a30c08e9e3a980bb4904257f6a /packages/contracts/src/utils/constants.ts | |
parent | e7e8773cd43121cdedff6151d379503ff899e595 (diff) | |
parent | 17cfd7b001a046e1014257da6b77b28c7a291e54 (diff) | |
download | dexon-sol-tools-f3fe9661f65f5ac58d45e965b7be02e9738df1c4.tar dexon-sol-tools-f3fe9661f65f5ac58d45e965b7be02e9738df1c4.tar.gz dexon-sol-tools-f3fe9661f65f5ac58d45e965b7be02e9738df1c4.tar.bz2 dexon-sol-tools-f3fe9661f65f5ac58d45e965b7be02e9738df1c4.tar.lz dexon-sol-tools-f3fe9661f65f5ac58d45e965b7be02e9738df1c4.tar.xz dexon-sol-tools-f3fe9661f65f5ac58d45e965b7be02e9738df1c4.tar.zst dexon-sol-tools-f3fe9661f65f5ac58d45e965b7be02e9738df1c4.zip |
Merge pull request #609 from 0xProject/refactor/contracts/remove0xjsDep
Remove 0x.js dep from Contracts
Diffstat (limited to 'packages/contracts/src/utils/constants.ts')
-rw-r--r-- | packages/contracts/src/utils/constants.ts | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/packages/contracts/src/utils/constants.ts b/packages/contracts/src/utils/constants.ts index b876bf6b5..483340186 100644 --- a/packages/contracts/src/utils/constants.ts +++ b/packages/contracts/src/utils/constants.ts @@ -1,5 +1,5 @@ -import { ZeroEx } from '0x.js'; import { BigNumber } from '@0xproject/utils'; +import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; @@ -31,13 +31,14 @@ export const constants = { NUM_DUMMY_ERC20_TO_DEPLOY: 3, NUM_DUMMY_ERC721_TO_DEPLOY: 1, NUM_ERC721_TOKENS_TO_MINT: 2, + NULL_ADDRESS: '0x0000000000000000000000000000000000000000', TESTRPC_PRIVATE_KEYS: _.map(TESTRPC_PRIVATE_KEYS_STRINGS, privateKeyString => ethUtil.toBuffer(privateKeyString)), - INITIAL_ERC20_BALANCE: ZeroEx.toBaseUnitAmount(new BigNumber(10000), 18), - INITIAL_ERC20_ALLOWANCE: ZeroEx.toBaseUnitAmount(new BigNumber(10000), 18), + INITIAL_ERC20_BALANCE: Web3Wrapper.toBaseUnitAmount(new BigNumber(10000), 18), + INITIAL_ERC20_ALLOWANCE: Web3Wrapper.toBaseUnitAmount(new BigNumber(10000), 18), STATIC_ORDER_PARAMS: { - makerAssetAmount: ZeroEx.toBaseUnitAmount(new BigNumber(100), 18), - takerAssetAmount: ZeroEx.toBaseUnitAmount(new BigNumber(200), 18), - makerFee: ZeroEx.toBaseUnitAmount(new BigNumber(1), 18), - takerFee: ZeroEx.toBaseUnitAmount(new BigNumber(1), 18), + makerAssetAmount: Web3Wrapper.toBaseUnitAmount(new BigNumber(100), 18), + takerAssetAmount: Web3Wrapper.toBaseUnitAmount(new BigNumber(200), 18), + makerFee: Web3Wrapper.toBaseUnitAmount(new BigNumber(1), 18), + takerFee: Web3Wrapper.toBaseUnitAmount(new BigNumber(1), 18), }, }; |