diff options
Diffstat (limited to 'packages/order-utils/src/types.ts')
-rw-r--r-- | packages/order-utils/src/types.ts | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/packages/order-utils/src/types.ts b/packages/order-utils/src/types.ts deleted file mode 100644 index 55ec553db..000000000 --- a/packages/order-utils/src/types.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { BigNumber } from '@0x/utils'; - -export enum OrderError { - InvalidSignature = 'INVALID_SIGNATURE', - InvalidMetamaskSigner = "MetaMask provider must be wrapped in a MetamaskSubprovider (from the '@0x/subproviders' package) in order to work with this method.", -} - -export enum TradeSide { - Maker = 'maker', - Taker = 'taker', -} - -export enum TransferType { - Trade = 'trade', - Fee = 'fee', -} - -export interface CreateOrderOpts { - takerAddress?: string; - senderAddress?: string; - makerFee?: BigNumber; - takerFee?: BigNumber; - feeRecipientAddress?: string; - salt?: BigNumber; - expirationTimeSeconds?: BigNumber; -} - -/** - * remainingFillableMakerAssetAmount: An array of BigNumbers corresponding to the `orders` parameter. - * You can use `OrderStateUtils` `@0x/order-utils` to perform blockchain lookups for these values. - * Defaults to `makerAssetAmount` values from the orders param. - * slippageBufferAmount: An additional amount of makerAsset to be covered by the result in case of trade collisions or partial fills. - * Defaults to 0 - */ -export interface FindOrdersThatCoverMakerAssetFillAmountOpts { - remainingFillableMakerAssetAmounts?: BigNumber[]; - slippageBufferAmount?: BigNumber; -} - -/** - * remainingFillableMakerAssetAmount: An array of BigNumbers corresponding to the `orders` parameter. - * You can use `OrderStateUtils` `@0x/order-utils` to perform blockchain lookups for these values. - * Defaults to `makerAssetAmount` values from the orders param. - * remainingFillableFeeAmounts: An array of BigNumbers corresponding to the feeOrders parameter. - * You can use OrderStateUtils @0x/order-utils to perform blockchain lookups for these values. - * Defaults to `makerAssetAmount` values from the feeOrders param. - * slippageBufferAmount: An additional amount of fee to be covered by the result in case of trade collisions or partial fills. - * Defaults to 0 - */ -export interface FindFeeOrdersThatCoverFeesForTargetOrdersOpts { - remainingFillableMakerAssetAmounts?: BigNumber[]; - remainingFillableFeeAmounts?: BigNumber[]; - slippageBufferAmount?: BigNumber; -} - -export interface FeeOrdersAndRemainingFeeAmount<T> { - resultFeeOrders: T[]; - feeOrdersRemainingFillableMakerAssetAmounts: BigNumber[]; - remainingFeeAmount: BigNumber; -} - -export interface OrdersAndRemainingFillAmount<T> { - resultOrders: T[]; - ordersRemainingFillableMakerAssetAmounts: BigNumber[]; - remainingFillAmount: BigNumber; -} |