Fix remaining imports
This commit is contained in:
parent
6324a92ec5
commit
30d54407e6
@ -4,12 +4,13 @@ import { StakingRevertErrors } from '@0x/order-utils';
|
|||||||
import { BigNumber } from '@0x/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
import { DelegatorsByPoolId, OperatorByPoolId, StakeInfo, StakeStatus } from '../src/types';
|
||||||
|
|
||||||
import { FinalizerActor } from './actors/finalizer_actor';
|
import { FinalizerActor } from './actors/finalizer_actor';
|
||||||
import { PoolOperatorActor } from './actors/pool_operator_actor';
|
import { PoolOperatorActor } from './actors/pool_operator_actor';
|
||||||
import { StakerActor } from './actors/staker_actor';
|
import { StakerActor } from './actors/staker_actor';
|
||||||
import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper';
|
import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper';
|
||||||
import { toBaseUnitAmount } from './utils/number_utils';
|
import { toBaseUnitAmount } from './utils/number_utils';
|
||||||
import { DelegatorsByPoolId, OperatorByPoolId, StakeInfo, StakeStatus } from './utils/types';
|
|
||||||
|
|
||||||
// tslint:disable:no-unnecessary-type-assertion
|
// tslint:disable:no-unnecessary-type-assertion
|
||||||
// tslint:disable:max-file-line-count
|
// tslint:disable:max-file-line-count
|
||||||
|
@ -4,10 +4,11 @@ import { StakingRevertErrors } from '@0x/order-utils';
|
|||||||
import { BigNumber } from '@0x/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
import { StakeInfo, StakeStatus } from '../src/types';
|
||||||
|
|
||||||
import { StakerActor } from './actors/staker_actor';
|
import { StakerActor } from './actors/staker_actor';
|
||||||
import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper';
|
import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper';
|
||||||
import { toBaseUnitAmount } from './utils/number_utils';
|
import { toBaseUnitAmount } from './utils/number_utils';
|
||||||
import { StakeInfo, StakeStatus } from './utils/types';
|
|
||||||
|
|
||||||
// tslint:disable:no-unnecessary-type-assertion
|
// tslint:disable:no-unnecessary-type-assertion
|
||||||
blockchainTests.resets('Stake Statuses', env => {
|
blockchainTests.resets('Stake Statuses', env => {
|
||||||
|
@ -12,8 +12,8 @@ import { BigNumber } from '@0x/utils';
|
|||||||
import { LogEntry } from 'ethereum-types';
|
import { LogEntry } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
import { constants as stakingConstants } from '.../src/constants';
|
|
||||||
import { assertIntegerRoughlyEquals, getRandomInteger, toBaseUnitAmount } from '../utils/number_utils';
|
import { assertIntegerRoughlyEquals, getRandomInteger, toBaseUnitAmount } from '../utils/number_utils';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -2,7 +2,7 @@ import { blockchainTests, expect } from '@0x/contracts-test-utils';
|
|||||||
import { BigNumber } from '@0x/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { constants as stakingConstants } from '.../src/constants';
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
import { toBaseUnitAmount } from '../utils/number_utils';
|
import { toBaseUnitAmount } from '../utils/number_utils';
|
||||||
|
|
||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
|
@ -3,7 +3,7 @@ import { StakingRevertErrors } from '@0x/order-utils';
|
|||||||
import { BigNumber } from '@0x/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import { LogWithDecodedArgs } from 'ethereum-types';
|
import { LogWithDecodedArgs } from 'ethereum-types';
|
||||||
|
|
||||||
import { constants as stakingConstants } from '.../src/constants';
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
|
|
||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
import {
|
import {
|
||||||
|
@ -2,7 +2,7 @@ import { blockchainTests, expect, Numberish } from '@0x/contracts-test-utils';
|
|||||||
import { StakingRevertErrors } from '@0x/order-utils';
|
import { StakingRevertErrors } from '@0x/order-utils';
|
||||||
import { BigNumber } from '@0x/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { constants } from '.../src/constants';
|
import { constants } from '../../src/constants';
|
||||||
import { StoredBalance } from '../../src/types';
|
import { StoredBalance } from '../../src/types';
|
||||||
|
|
||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
|
@ -6,7 +6,7 @@ import * as _ from 'lodash';
|
|||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
import { IStakingEventsParamsSetEventArgs, TestMixinParamsContract } from '../wrappers';
|
import { IStakingEventsParamsSetEventArgs, TestMixinParamsContract } from '../wrappers';
|
||||||
|
|
||||||
import { constants as stakingConstants } from '.../src/constants';
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
import { StakingParams } from '../../src/types';
|
import { StakingParams } from '../../src/types';
|
||||||
|
|
||||||
blockchainTests('Configurable Parameters unit tests', env => {
|
blockchainTests('Configurable Parameters unit tests', env => {
|
||||||
|
@ -11,7 +11,7 @@ import { BigNumber, SafeMathRevertErrors } from '@0x/utils';
|
|||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
import { TestMixinStakeBalancesContract } from '../wrappers';
|
import { TestMixinStakeBalancesContract } from '../wrappers';
|
||||||
|
|
||||||
import { constants as stakingConstants } from '.../src/constants';
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
import { StakeStatus, StoredBalance } from '../../src/types';
|
import { StakeStatus, StoredBalance } from '../../src/types';
|
||||||
|
|
||||||
blockchainTests.resets('MixinStakeBalances unit tests', env => {
|
blockchainTests.resets('MixinStakeBalances unit tests', env => {
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
TestStakingProxyUnitContract,
|
TestStakingProxyUnitContract,
|
||||||
} from '../wrappers';
|
} from '../wrappers';
|
||||||
|
|
||||||
import { constants as stakingConstants } from '.../src/constants';
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
|
|
||||||
blockchainTests.resets('StakingProxy unit tests', env => {
|
blockchainTests.resets('StakingProxy unit tests', env => {
|
||||||
const testString = 'Hello, World!';
|
const testString = 'Hello, World!';
|
||||||
|
@ -13,7 +13,7 @@ import { RevertReason } from '@0x/types';
|
|||||||
import { AuthorizableRevertErrors, BigNumber, SafeMathRevertErrors } from '@0x/utils';
|
import { AuthorizableRevertErrors, BigNumber, SafeMathRevertErrors } from '@0x/utils';
|
||||||
import { TransactionReceiptWithDecodedLogs } from 'ethereum-types';
|
import { TransactionReceiptWithDecodedLogs } from 'ethereum-types';
|
||||||
|
|
||||||
import { constants as stakingConstants } from '.../src/constants';
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
|
|
||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
import {
|
import {
|
||||||
|
@ -17,8 +17,8 @@ import {
|
|||||||
ZrxVaultContract,
|
ZrxVaultContract,
|
||||||
} from '../wrappers';
|
} from '../wrappers';
|
||||||
|
|
||||||
import { constants as stakingConstants } from './constants';
|
import { constants as stakingConstants } from '../../src/constants';
|
||||||
import { DecodedLogs, EndOfEpochInfo, StakingParams } from './types';
|
import { DecodedLogs, EndOfEpochInfo, StakingParams } from '../../src/types';
|
||||||
|
|
||||||
export class StakingApiWrapper {
|
export class StakingApiWrapper {
|
||||||
// The address of the real Staking.sol contract
|
// The address of the real Staking.sol contract
|
||||||
|
@ -3,12 +3,12 @@ import { BigNumber } from '@0x/utils';
|
|||||||
import { DecodedLogEntry, TransactionReceiptWithDecodedLogs } from 'ethereum-types';
|
import { DecodedLogEntry, TransactionReceiptWithDecodedLogs } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
import { DecodedLogs, StakeInfo, StakeStatus } from '../../src/types';
|
||||||
import { artifacts } from '../artifacts';
|
import { artifacts } from '../artifacts';
|
||||||
import { TestCumulativeRewardTrackingContract, TestCumulativeRewardTrackingEvents } from '../wrappers';
|
import { TestCumulativeRewardTrackingContract, TestCumulativeRewardTrackingEvents } from '../wrappers';
|
||||||
|
|
||||||
import { StakingApiWrapper } from './api_wrapper';
|
import { StakingApiWrapper } from './api_wrapper';
|
||||||
import { toBaseUnitAmount } from './number_utils';
|
import { toBaseUnitAmount } from './number_utils';
|
||||||
import { DecodedLogs, StakeInfo, StakeStatus } from './types';
|
|
||||||
|
|
||||||
export enum TestAction {
|
export enum TestAction {
|
||||||
Finalize,
|
Finalize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user