Move TradeSide and TransferType types to contract-exchange package
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { DevUtilsContract } from '@0x/contracts-dev-utils';
|
||||
import { constants } from '@0x/contracts-test-utils';
|
||||
import { SupportedProvider, TradeSide, TransferType } from '@0x/order-utils';
|
||||
import { SupportedProvider} from '@0x/order-utils';
|
||||
import { AssetProxyId, ExchangeContractErrs } from '@0x/types';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
|
||||
import { AbstractBalanceAndProxyAllowanceLazyStore } from './abstract/abstract_balance_and_proxy_allowance_lazy_store';
|
||||
import { TradeSide, TransferType } from './types';
|
||||
|
||||
enum FailureReason {
|
||||
Balance = 'balance',
|
||||
|
||||
@@ -2,8 +2,6 @@ import { constants, orderUtils } from '@0x/contracts-test-utils';
|
||||
import {
|
||||
Order,
|
||||
SupportedProvider,
|
||||
TradeSide,
|
||||
TransferType,
|
||||
} from '@0x/order-utils';
|
||||
import { FillResults } from '@0x/types';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
@@ -13,6 +11,10 @@ import {
|
||||
AbstractBalanceAndProxyAllowanceLazyStore as LazyStore,
|
||||
} from './abstract/abstract_balance_and_proxy_allowance_lazy_store';
|
||||
import { ExchangeTransferSimulator } from './exchange_transfer_simulator';
|
||||
import {
|
||||
TradeSide,
|
||||
TransferType,
|
||||
} from './types';
|
||||
|
||||
export enum FillOrderError {
|
||||
OrderUnfillable = 'ORDER_UNFILLABLE',
|
||||
|
||||
@@ -36,3 +36,13 @@ export enum ExchangeFunctionName {
|
||||
SetProtocolFeeCollectorAddress = 'setProtocolFeeCollectorAddress',
|
||||
DetachProtocolFeeCollector = 'detachProtocolFeeCollector',
|
||||
}
|
||||
|
||||
export enum TradeSide {
|
||||
Maker = 'maker',
|
||||
Taker = 'taker',
|
||||
}
|
||||
|
||||
export enum TransferType {
|
||||
Trade = 'trade',
|
||||
Fee = 'fee',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user