aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/types.ts
diff options
context:
space:
mode:
authorHsuan Lee <hsuan@cobinhood.com>2019-01-19 18:42:04 +0800
committerHsuan Lee <hsuan@cobinhood.com>2019-01-19 18:42:04 +0800
commit7ae38906926dc09bc10670c361af0d2bf0050426 (patch)
tree5fb10ae366b987db09e4ddb4bc3ba0f75404ad08 /packages/order-utils/src/types.ts
parentb5fd3c72a08aaa6957917d74c333387a16edf66b (diff)
downloaddexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.gz
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.bz2
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.lz
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.xz
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.zst
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.zip
Update dependency packages
Diffstat (limited to 'packages/order-utils/src/types.ts')
-rw-r--r--packages/order-utils/src/types.ts66
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;
-}