Use configured version of bignumber in all packages

This commit is contained in:
Leonid Logvinov
2018-01-04 12:38:19 +01:00
parent ce6abad97f
commit 4dfa720f2d
108 changed files with 107 additions and 139 deletions

View File

@@ -1,5 +1,5 @@
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import * as path from 'path';
import * as Web3 from 'web3';

View File

@@ -1,5 +1,5 @@
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import { Deployer } from './../src/deployer';

View File

@@ -1,4 +1,4 @@
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
export const constants = {
networkId: 0,

View File

@@ -1,4 +1,4 @@
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
// HACK: This module overrides the Chai namespace so that we can use BigNumber types inside.
// Source: https://github.com/Microsoft/TypeScript/issues/7352#issuecomment-191547232

View File

@@ -59,7 +59,6 @@
"@0xproject/json-schemas": "^0.7.1",
"@0xproject/utils": "^0.1.2",
"@0xproject/web3-wrapper": "^0.1.2",
"bignumber.js": "~4.1.0",
"bluebird": "^3.5.0",
"bn.js": "^4.11.8",
"ethereumjs-abi": "^0.6.4",

View File

@@ -1,6 +1,6 @@
import { ZeroEx, ZeroExError } from '0x.js';
import { promisify } from '@0xproject/utils';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import Web3 = require('web3');

View File

@@ -1,5 +1,5 @@
import { ZeroEx } from '0x.js';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import ethUtil = require('ethereumjs-util');
import * as Web3 from 'web3';

View File

@@ -1,5 +1,5 @@
import { ZeroEx } from '0x.js';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import ethUtil = require('ethereumjs-util');

View File

@@ -1,5 +1,5 @@
import { ZeroEx } from '0x.js';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import * as _ from 'lodash';

View File

@@ -1,6 +1,6 @@
import { RPC } from '@0xproject/dev-utils';
import { promisify } from '@0xproject/utils';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import Web3 = require('web3');

View File

@@ -1,5 +1,5 @@
import { ZeroEx } from '0x.js';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import * as Web3 from 'web3';

View File

@@ -1,5 +1,5 @@
import { ZeroEx } from '0x.js';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import * as Web3 from 'web3';

View File

@@ -1,5 +1,5 @@
import { ZeroEx } from '0x.js';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import Web3 = require('web3');

View File

@@ -1,11 +1,8 @@
import { bigNumberConfigs } from '@0xproject/utils';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import { BalancesByOwner, ContractInstance } from './types';
bigNumberConfigs.configure();
export class Balances {
private _tokenContractInstances: ContractInstance[];
private _ownerAddresses: string[];

View File

@@ -1,4 +1,4 @@
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import { formatters } from './formatters';

View File

@@ -1,4 +1,4 @@
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import { Order } from './order';

View File

@@ -1,5 +1,5 @@
import { promisify } from '@0xproject/utils';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import ethUtil = require('ethereumjs-util');
import * as _ from 'lodash';
import Web3 = require('web3');

View File

@@ -1,5 +1,5 @@
import { ZeroEx } from '0x.js';
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import { Order } from './order';

View File

@@ -1,4 +1,4 @@
import { BigNumber } from 'bignumber.js';
import { BigNumber } from '@0xproject/utils';
import * as Web3 from 'web3';
export interface BalancesByOwner {