prettier + lint

This commit is contained in:
David Sun 2019-11-16 14:01:54 -06:00 committed by Jacob Evans
parent 6c705728a4
commit 863e830d24
No known key found for this signature in database
GPG Key ID: 2036DA2ADDFB0842
5 changed files with 6 additions and 18 deletions

View File

@ -48,7 +48,7 @@ describe('swapQuoteCalculator', () => {
}; };
await testHelpers.expectInsufficientLiquidityErrorAsync(expect, errorFunction, baseUnitAmount(9)); await testHelpers.expectInsufficientLiquidityErrorAsync(expect, errorFunction, baseUnitAmount(9));
}); });
it('should throw if not enough taker asset liquidity (multiple feeless orders with 20% slippage)',async () => { it('should throw if not enough taker asset liquidity (multiple feeless orders with 20% slippage)', async () => {
const errorFunction = async () => { const errorFunction = async () => {
await swapQuoteCalculator.calculateMarketSellSwapQuoteAsync( await swapQuoteCalculator.calculateMarketSellSwapQuoteAsync(
testOrders.PRUNED_SIGNED_ORDERS_FEELESS, testOrders.PRUNED_SIGNED_ORDERS_FEELESS,

View File

@ -1,10 +1,4 @@
import { import { MarketBuySwapQuote, SwapQuoteConsumer, SwapQuoteConsumerError, SwapQuoter } from '@0x/asset-swapper';
MarketBuySwapQuote,
SwapQuoteConsumer,
SwapQuoter,
SwapQuoterError,
SwapQuoteConsumerError,
} from '@0x/asset-swapper';
import { BigNumber } from '@0x/utils'; import { BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper'; import { Web3Wrapper } from '@0x/web3-wrapper';
import * as React from 'react'; import * as React from 'react';

View File

@ -1,10 +1,4 @@
import { import { MarketBuySwapQuote, SwapQuoteConsumer, SwapQuoteConsumerError, SwapQuoter } from '@0x/asset-swapper';
MarketBuySwapQuote,
SwapQuoteConsumer,
SwapQuoteConsumerError,
SwapQuoter,
SwapQuoterError,
} from '@0x/asset-swapper';
import { BigNumber } from '@0x/utils'; import { BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper'; import { Web3Wrapper } from '@0x/web3-wrapper';
import * as _ from 'lodash'; import * as _ from 'lodash';

View File

@ -1,4 +1,4 @@
import { SwapQuoteConsumer, SwapQuoter, SwapQuoteConsumerOpts, SwapQuoterOpts } from '@0x/asset-swapper'; import { SwapQuoteConsumer, SwapQuoter, SwapQuoterOpts } from '@0x/asset-swapper';
import { SupportedProvider } from 'ethereum-types'; import { SupportedProvider } from 'ethereum-types';
import * as _ from 'lodash'; import * as _ from 'lodash';

View File

@ -1,14 +1,14 @@
import { MarketBuySwapQuote, SwapQuote, SwapQuoter } from '@0x/asset-swapper'; import { MarketBuySwapQuote, SwapQuoter } from '@0x/asset-swapper';
import { AssetProxyId } from '@0x/types'; import { AssetProxyId } from '@0x/types';
import { BigNumber } from '@0x/utils'; import { BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper'; import { Web3Wrapper } from '@0x/web3-wrapper';
import * as _ from 'lodash'; import * as _ from 'lodash';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { oc } from 'ts-optchain';
import { ERC20_SWAP_QUOTE_SLIPPAGE_PERCENTAGE, ERC721_SWAP_QUOTE_SLIPPAGE_PERCENTAGE } from '../constants'; import { ERC20_SWAP_QUOTE_SLIPPAGE_PERCENTAGE, ERC721_SWAP_QUOTE_SLIPPAGE_PERCENTAGE } from '../constants';
import { Action, actions } from '../redux/actions'; import { Action, actions } from '../redux/actions';
import { Asset, QuoteFetchOrigin } from '../types'; import { Asset, QuoteFetchOrigin } from '../types';
import { analytics } from './analytics'; import { analytics } from './analytics';
import { assetUtils } from './asset'; import { assetUtils } from './asset';
import { errorFlasher } from './error_flasher'; import { errorFlasher } from './error_flasher';