aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-23 07:18:52 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-24 00:41:35 +0800
commit5913d654bdf77d25b95570b1e656f63cc89ff97a (patch)
tree8cf3fd324cb7cd13e58f67eb3c0491bf5fa6ef18 /packages/website/ts/redux
parentf3fe9661f65f5ac58d45e965b7be02e9738df1c4 (diff)
downloaddexon-sol-tools-5913d654bdf77d25b95570b1e656f63cc89ff97a.tar
dexon-sol-tools-5913d654bdf77d25b95570b1e656f63cc89ff97a.tar.gz
dexon-sol-tools-5913d654bdf77d25b95570b1e656f63cc89ff97a.tar.bz2
dexon-sol-tools-5913d654bdf77d25b95570b1e656f63cc89ff97a.tar.lz
dexon-sol-tools-5913d654bdf77d25b95570b1e656f63cc89ff97a.tar.xz
dexon-sol-tools-5913d654bdf77d25b95570b1e656f63cc89ff97a.tar.zst
dexon-sol-tools-5913d654bdf77d25b95570b1e656f63cc89ff97a.zip
Remove 0x.js as a dependency from website
Diffstat (limited to 'packages/website/ts/redux')
-rw-r--r--packages/website/ts/redux/dispatcher.ts2
-rw-r--r--packages/website/ts/redux/reducer.ts7
2 files changed, 5 insertions, 4 deletions
diff --git a/packages/website/ts/redux/dispatcher.ts b/packages/website/ts/redux/dispatcher.ts
index 981522360..340b80d49 100644
--- a/packages/website/ts/redux/dispatcher.ts
+++ b/packages/website/ts/redux/dispatcher.ts
@@ -1,4 +1,4 @@
-import { ECSignature } from '0x.js';
+import { ECSignature } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import { Dispatch } from 'redux';
import { State } from 'ts/redux/reducer';
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts
index bb8f1472b..fba6afa5d 100644
--- a/packages/website/ts/redux/reducer.ts
+++ b/packages/website/ts/redux/reducer.ts
@@ -1,4 +1,5 @@
-import { ECSignature, ZeroEx } from '0x.js';
+import { constants, generatePseudoRandomSalt } from '@0xproject/order-utils';
+import { ECSignature } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import * as moment from 'moment';
@@ -65,8 +66,8 @@ const INITIAL_STATE: State = {
s: '',
v: 27,
},
- orderTakerAddress: ZeroEx.NULL_ADDRESS,
- orderSalt: ZeroEx.generatePseudoRandomSalt(),
+ orderTakerAddress: constants.NULL_ADDRESS,
+ orderSalt: generatePseudoRandomSalt(),
nodeVersion: undefined,
screenWidth: utils.getScreenWidth(),
shouldBlockchainErrDialogBeOpen: false,