Fix prettier issues

This commit is contained in:
fabioberger 2019-11-12 11:35:34 +00:00
parent d91a7b6d0e
commit fc824b8d06
12 changed files with 24 additions and 40 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -18,7 +18,7 @@ import {
IsolatedExchangeContract,
IsolatedExchangeDispatchTransferFromCalledEventArgs as DispatchTransferFromCallArgs,
IsolatedExchangeFillEventArgs as FillEventArgs,
} from '../wrappers';
} from '../wrappers';
export interface AssetBalances {
[assetData: string]: { [address: string]: BigNumber };

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 });