Import from @0x/utils

This commit is contained in:
Jacob Evans
2019-11-27 11:58:25 +11:00
parent 89dcbd0229
commit 389d4d10f1
10 changed files with 15 additions and 27 deletions

View File

@@ -1,9 +1,8 @@
import { blockchainTests, expect } from '@0x/contracts-test-utils';
import { AuthorizableRevertErrors } from '@0x/contracts-utils';
import { StakingRevertErrors } from '@0x/utils';
import { LogWithDecodedArgs, TransactionReceiptWithDecodedLogs } from 'ethereum-types';
import { StakingRevertErrors } from '../../src';
import { artifacts } from '../artifacts';
import {
TestExchangeManagerContract,

View File

@@ -7,11 +7,10 @@ import {
Numberish,
shortZip,
} from '@0x/contracts-test-utils';
import { BigNumber } from '@0x/utils';
import { BigNumber, StakingRevertErrors } from '@0x/utils';
import { LogEntry } from 'ethereum-types';
import * as _ from 'lodash';
import { StakingRevertErrors } from '../../src';
import { constants as stakingConstants } from '../../src/constants';
import { artifacts } from '../artifacts';

View File

@@ -1,9 +1,8 @@
import { blockchainTests, expect, hexRandom, Numberish } from '@0x/contracts-test-utils';
import { BigNumber } from '@0x/utils';
import { BigNumber, FixedMathRevertErrors } from '@0x/utils';
import { Decimal } from 'decimal.js';
import * as _ from 'lodash';
import { FixedMathRevertErrors } from '../../src';
import { assertRoughlyEquals, fromFixed, toDecimal, toFixed } from '../utils/number_utils';
import { artifacts } from '../artifacts';

View File

@@ -1,8 +1,7 @@
import { blockchainTests, constants, expect, verifyEventsFromLogs } from '@0x/contracts-test-utils';
import { BigNumber } from '@0x/utils';
import { BigNumber, StakingRevertErrors } from '@0x/utils';
import { LogWithDecodedArgs } from 'ethereum-types';
import { StakingRevertErrors } from '../../src';
import { constants as stakingConstants } from '../../src/constants';
import { artifacts } from '../artifacts';

View File

@@ -7,12 +7,10 @@ import {
Numberish,
randomAddress,
} from '@0x/contracts-test-utils';
import { BigNumber } from '@0x/utils';
import { BigNumber, StakingRevertErrors } from '@0x/utils';
import { LogEntry } from 'ethereum-types';
import * as _ from 'lodash';
import { StakingRevertErrors } from '../../src';
import { artifacts } from '../artifacts';
import {
IStakingEventsEvents,

View File

@@ -9,10 +9,9 @@ import {
Numberish,
shortZip,
} from '@0x/contracts-test-utils';
import { BigNumber } from '@0x/utils';
import { BigNumber, StakingRevertErrors } from '@0x/utils';
import * as _ from 'lodash';
import { StakingRevertErrors } from '../../src';
import { StakeStatus } from '../../src/types';
import { artifacts } from '../artifacts';

View File

@@ -1,6 +1,6 @@
import { blockchainTests, constants, expect, verifyEventsFromLogs } from '@0x/contracts-test-utils';
import { AuthorizableRevertErrors } from '@0x/contracts-utils';
import { BigNumber } from '@0x/utils';
import { BigNumber, StakingRevertErrors } from '@0x/utils';
import * as _ from 'lodash';
import { artifacts } from '../artifacts';
@@ -11,7 +11,6 @@ import {
TestStakingProxyUnitContract,
} from '../wrappers';
import { StakingRevertErrors } from '../../src';
import { constants as stakingConstants } from '../../src/constants';
blockchainTests.resets('StakingProxy unit tests', env => {

View File

@@ -8,12 +8,10 @@ import {
filterLogsToArguments,
provider,
} from '@0x/contracts-test-utils';
import { AuthorizableRevertErrors, SafeMathRevertErrors } from '@0x/contracts-utils';
import { RevertReason } from '@0x/types';
import { BigNumber } from '@0x/utils';
import { AuthorizableRevertErrors, BigNumber, SafeMathRevertErrors, StakingRevertErrors } from '@0x/utils';
import { TransactionReceiptWithDecodedLogs } from 'ethereum-types';
import { StakingRevertErrors } from '../../src';
import { constants as stakingConstants } from '../../src/constants';
import { artifacts } from '../artifacts';