Fix prettier issues
This commit is contained in:
parent
d91a7b6d0e
commit
fc824b8d06
@ -25,10 +25,7 @@ import { LogWithDecodedArgs } from 'ethereum-types';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { artifacts } from './artifacts';
|
||||
import {
|
||||
TestAssetProxyDispatcherAssetProxyRegisteredEventArgs,
|
||||
TestAssetProxyDispatcherContract,
|
||||
} from './wrappers';
|
||||
import { TestAssetProxyDispatcherAssetProxyRegisteredEventArgs, TestAssetProxyDispatcherContract } from './wrappers';
|
||||
|
||||
import { dependencyArtifacts } from './utils/dependency_artifacts';
|
||||
|
||||
|
@ -33,9 +33,7 @@ import * as _ from 'lodash';
|
||||
import { ExchangeWrapper } from './utils/exchange_wrapper';
|
||||
|
||||
import { artifacts } from './artifacts';
|
||||
import {
|
||||
ExchangeContract,
|
||||
} from './wrappers';
|
||||
import { ExchangeContract } from './wrappers';
|
||||
|
||||
import { MatchOrderTester, TokenBalances } from './utils/match_order_tester';
|
||||
|
||||
|
@ -2,7 +2,7 @@ import { blockchainTests } from '@0x/contracts-test-utils';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
|
||||
import { artifacts } from './artifacts';
|
||||
import { TestProtocolFeesContract, TestProtocolFeesReceiverContract} from './wrappers';
|
||||
import { TestProtocolFeesContract, TestProtocolFeesReceiverContract } from './wrappers';
|
||||
|
||||
// The contents of this test suite does not inform the reader about the assertions made in these
|
||||
// tests. For more information and a more accurate view of the tests, check out
|
||||
|
@ -4,7 +4,7 @@ import { DataItem, MethodAbi, TupleDataItem } from 'ethereum-types';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { artifacts } from './artifacts';
|
||||
import { ReentrancyTesterContract} from './wrappers';
|
||||
import { ReentrancyTesterContract } from './wrappers';
|
||||
|
||||
import { constants as TestConstants } from './utils/constants';
|
||||
|
||||
|
@ -6,10 +6,7 @@ import { LogWithDecodedArgs } from 'ethereum-types';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { artifacts } from './artifacts';
|
||||
import {
|
||||
TestTransactionsContract,
|
||||
TestTransactionsTransactionExecutionEventArgs,
|
||||
} from './wrappers';
|
||||
import { TestTransactionsContract, TestTransactionsTransactionExecutionEventArgs } from './wrappers';
|
||||
|
||||
blockchainTests.resets('Transaction Unit Tests', ({ provider, web3Wrapper, txDefaults }) => {
|
||||
let transactionsContract: TestTransactionsContract;
|
||||
|
@ -18,7 +18,7 @@ import {
|
||||
IsolatedExchangeContract,
|
||||
IsolatedExchangeDispatchTransferFromCalledEventArgs as DispatchTransferFromCallArgs,
|
||||
IsolatedExchangeFillEventArgs as FillEventArgs,
|
||||
} from '../wrappers';
|
||||
} from '../wrappers';
|
||||
|
||||
export interface AssetBalances {
|
||||
[assetData: string]: { [address: string]: BigNumber };
|
||||
|
@ -2,7 +2,6 @@ import { constants, expect } from '@0x/contracts-test-utils';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { StakingApiWrapper } from '../utils/api_wrapper';
|
||||
import {
|
||||
BalanceByOwner,
|
||||
DelegatorBalancesByPoolId,
|
||||
@ -13,6 +12,7 @@ import {
|
||||
RewardBalanceByPoolId,
|
||||
RewardByPoolId,
|
||||
} from '../../src/types';
|
||||
import { StakingApiWrapper } from '../utils/api_wrapper';
|
||||
|
||||
import { BaseActor } from './base_actor';
|
||||
|
||||
|
@ -2,8 +2,8 @@ import { expect } from '@0x/contracts-test-utils';
|
||||
import { BigNumber, RevertError } from '@0x/utils';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { StakingApiWrapper } from '../utils/api_wrapper';
|
||||
import { StakeBalances, StakeInfo, StakeStatus, StoredBalance } from '../../src/types';
|
||||
import { StakingApiWrapper } from '../utils/api_wrapper';
|
||||
|
||||
import { BaseActor } from './base_actor';
|
||||
|
||||
|
@ -2,9 +2,10 @@ import { ERC20Wrapper } from '@0x/contracts-asset-proxy';
|
||||
import { blockchainTests, expect } from '@0x/contracts-test-utils';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper';
|
||||
import { constants as stakingConstants } from '../src/constants';
|
||||
|
||||
import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper';
|
||||
|
||||
// tslint:disable:no-unnecessary-type-assertion
|
||||
blockchainTests('Epochs', env => {
|
||||
// tokens & addresses
|
||||
|
@ -2,6 +2,9 @@ import { blockchainTests, constants, expect, filterLogsToArguments } from '@0x/c
|
||||
import { StakingRevertErrors } from '@0x/order-utils';
|
||||
import { AuthorizableRevertErrors, BigNumber, StringRevertError } from '@0x/utils';
|
||||
|
||||
import { constants as stakingConstants } from '../src/constants';
|
||||
|
||||
import { artifacts } from './artifacts';
|
||||
import {
|
||||
StakingContract,
|
||||
StakingProxyContract,
|
||||
@ -11,10 +14,6 @@ import {
|
||||
TestStakingProxyStakingContractAttachedToProxyEventArgs,
|
||||
} from './wrappers';
|
||||
|
||||
import { artifacts } from './artifacts';
|
||||
|
||||
import { constants as stakingConstants } from '../src/constants';
|
||||
|
||||
blockchainTests('Migration tests', env => {
|
||||
let authorizedAddress: string;
|
||||
let notAuthorizedAddress: string;
|
||||
|
@ -3,10 +3,11 @@ import { blockchainTests, constants, expect } from '@0x/contracts-test-utils';
|
||||
import { StakingRevertErrors } from '@0x/order-utils';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
import { constants as stakingConstants } from '../src/constants';
|
||||
|
||||
import { MakerActor } from './actors/maker_actor';
|
||||
import { PoolOperatorActor } from './actors/pool_operator_actor';
|
||||
import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper';
|
||||
import { constants as stakingConstants } from '../src/constants';
|
||||
|
||||
// tslint:disable:no-unnecessary-type-assertion
|
||||
// tslint:disable:max-file-line-count
|
||||
|
@ -93,24 +93,15 @@ describe('OrderValidationUtils/OrderTransferSimulatorUtils', () => {
|
||||
txDefaults,
|
||||
artifacts,
|
||||
);
|
||||
await exchange.registerAssetProxy.awaitTransactionSuccessAsync(
|
||||
erc20Proxy.address,
|
||||
{
|
||||
from: owner,
|
||||
},
|
||||
);
|
||||
await exchange.registerAssetProxy.awaitTransactionSuccessAsync(
|
||||
erc721Proxy.address,
|
||||
{
|
||||
from: owner,
|
||||
},
|
||||
);
|
||||
await exchange.registerAssetProxy.awaitTransactionSuccessAsync(
|
||||
multiAssetProxy.address,
|
||||
{
|
||||
from: owner,
|
||||
},
|
||||
);
|
||||
await exchange.registerAssetProxy.awaitTransactionSuccessAsync(erc20Proxy.address, {
|
||||
from: owner,
|
||||
});
|
||||
await exchange.registerAssetProxy.awaitTransactionSuccessAsync(erc721Proxy.address, {
|
||||
from: owner,
|
||||
});
|
||||
await exchange.registerAssetProxy.awaitTransactionSuccessAsync(multiAssetProxy.address, {
|
||||
from: owner,
|
||||
});
|
||||
await erc20Proxy.addAuthorizedAddress.awaitTransactionSuccessAsync(exchange.address, { from: owner });
|
||||
await erc721Proxy.addAuthorizedAddress.awaitTransactionSuccessAsync(exchange.address, { from: owner });
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user