prettier + lint

This commit is contained in:
David Sun 2019-07-17 15:22:48 -07:00
parent dcf4eb2aaf
commit 8ce8bee76f
4 changed files with 2 additions and 9 deletions

View File

@ -8,7 +8,6 @@ import {
OrdersAndFillableAmounts, OrdersAndFillableAmounts,
SwapQuoteRequestOpts, SwapQuoteRequestOpts,
SwapQuoterOpts, SwapQuoterOpts,
SwapQuoteUtilsOpts,
} from './types'; } from './types';
const NULL_ADDRESS = '0x0000000000000000000000000000000000000000'; const NULL_ADDRESS = '0x0000000000000000000000000000000000000000';
@ -22,10 +21,6 @@ const DEFAULT_SWAP_QUOTER_OPTS: SwapQuoterOpts = {
expiryBufferMs: 120000, // 2 minutes expiryBufferMs: 120000, // 2 minutes
}; };
const DEFAULT_SWAP_QUOTE_UTILS_OPTS: SwapQuoteUtilsOpts = {
networkId: MAINNET_NETWORK_ID,
};
const DEFAULT_FORWARDER_SWAP_QUOTE_GET_OPTS: ForwarderSwapQuoteGetOutputOpts = { const DEFAULT_FORWARDER_SWAP_QUOTE_GET_OPTS: ForwarderSwapQuoteGetOutputOpts = {
feePercentage: 0, feePercentage: 0,
feeRecipient: NULL_ADDRESS, feeRecipient: NULL_ADDRESS,
@ -62,5 +57,4 @@ export const constants = {
EMPTY_ORDERS_AND_FILLABLE_AMOUNTS, EMPTY_ORDERS_AND_FILLABLE_AMOUNTS,
DEFAULT_PER_PAGE, DEFAULT_PER_PAGE,
DEFAULT_LIQUIDITY_REQUEST_OPTS, DEFAULT_LIQUIDITY_REQUEST_OPTS,
DEFAULT_SWAP_QUOTE_UTILS_OPTS,
}; };

View File

@ -33,7 +33,6 @@ export { StandardRelayerAPIOrderProvider } from './order_providers/standard_rela
export { export {
SwapQuoterError, SwapQuoterError,
SwapQuoterOpts, SwapQuoterOpts,
SwapQuoteUtilsOpts,
SwapQuote, SwapQuote,
SwapQuoteConsumerOpts, SwapQuoteConsumerOpts,
CalldataInfo, CalldataInfo,

View File

@ -1,5 +1,4 @@
import { ContractWrappers, ContractWrappersError, ForwarderWrapperError } from '@0x/contract-wrappers'; import { ContractWrappers, ContractWrappersError, ForwarderWrapperError } from '@0x/contract-wrappers';
import { calldataOptimizationUtils } from '@0x/contract-wrappers/lib/src/utils/calldata_optimization_utils';
import { MarketOperation } from '@0x/types'; import { MarketOperation } from '@0x/types';
import { AbiEncoder, providerUtils } from '@0x/utils'; import { AbiEncoder, providerUtils } from '@0x/utils';
import { SupportedProvider, ZeroExProvider } from '@0x/web3-wrapper'; import { SupportedProvider, ZeroExProvider } from '@0x/web3-wrapper';

View File

@ -98,7 +98,8 @@ export interface ExchangeMarketSellSmartContractParams extends SmartContractPara
* Represents the varying smart contracts that can consume a valid swap quote * Represents the varying smart contracts that can consume a valid swap quote
*/ */
export enum ConsumerType { export enum ConsumerType {
Forwarder, Exchange, Forwarder,
Exchange,
} }
/** /**