Remove 0x.js as a dependency from website

This commit is contained in:
Leonid Logvinov
2018-05-22 16:18:52 -07:00
parent f3fe9661f6
commit 5913d654bd
24 changed files with 137 additions and 122 deletions

View File

@@ -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';

View File

@@ -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,