Move TradeSide and TransferType types to contract-exchange package

This commit is contained in:
fabioberger
2019-11-07 15:25:22 +00:00
parent 744dda144b
commit 8614475324
5 changed files with 17 additions and 14 deletions

View File

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

View File

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

View File

@@ -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',
}