diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-26 09:53:22 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-26 09:53:22 +0800 |
commit | 27d9e516e1cf6a8bea469998bc92513bec3d91c5 (patch) | |
tree | 2db73b2d26e432236034c411f0edd62b94dd9144 /packages/asset-buyer/src/constants.ts | |
parent | 948d62200a23b4da59278f976e9757cfc3c9234e (diff) | |
parent | 4a96dbe085004be49dbbaa435d4552a9c920d823 (diff) | |
download | dexon-sol-tools-27d9e516e1cf6a8bea469998bc92513bec3d91c5.tar dexon-sol-tools-27d9e516e1cf6a8bea469998bc92513bec3d91c5.tar.gz dexon-sol-tools-27d9e516e1cf6a8bea469998bc92513bec3d91c5.tar.bz2 dexon-sol-tools-27d9e516e1cf6a8bea469998bc92513bec3d91c5.tar.lz dexon-sol-tools-27d9e516e1cf6a8bea469998bc92513bec3d91c5.tar.xz dexon-sol-tools-27d9e516e1cf6a8bea469998bc92513bec3d91c5.tar.zst dexon-sol-tools-27d9e516e1cf6a8bea469998bc92513bec3d91c5.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/fixed-orders-in-render-method
Diffstat (limited to 'packages/asset-buyer/src/constants.ts')
-rw-r--r-- | packages/asset-buyer/src/constants.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/constants.ts b/packages/asset-buyer/src/constants.ts index 55effdb23..c912253bd 100644 --- a/packages/asset-buyer/src/constants.ts +++ b/packages/asset-buyer/src/constants.ts @@ -1,6 +1,7 @@ +import { SignedOrder } from '@0x/types'; import { BigNumber } from '@0x/utils'; -import { AssetBuyerOpts, BuyQuoteExecutionOpts, BuyQuoteRequestOpts } from './types'; +import { AssetBuyerOpts, BuyQuoteExecutionOpts, BuyQuoteRequestOpts, OrdersAndFillableAmounts } from './types'; const NULL_ADDRESS = '0x0000000000000000000000000000000000000000'; const MAINNET_NETWORK_ID = 1; @@ -22,6 +23,11 @@ const DEFAULT_BUY_QUOTE_EXECUTION_OPTS: BuyQuoteExecutionOpts = { feeRecipient: NULL_ADDRESS, }; +const EMPTY_ORDERS_AND_FILLABLE_AMOUNTS: OrdersAndFillableAmounts = { + orders: [] as SignedOrder[], + remainingFillableMakerAssetAmounts: [] as BigNumber[], +}; + export const constants = { ZERO_AMOUNT: new BigNumber(0), NULL_ADDRESS, @@ -31,4 +37,5 @@ export const constants = { DEFAULT_BUY_QUOTE_EXECUTION_OPTS, DEFAULT_BUY_QUOTE_REQUEST_OPTS, MAX_PER_PAGE: 10000, + EMPTY_ORDERS_AND_FILLABLE_AMOUNTS, }; |