From 5e92ca039c593028694a1453b39e55c127e96ba5 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 26 Sep 2017 11:01:33 +0200 Subject: Add validateOrderFillableThrowIfNotFillableAsync to public methods in order to validate orders in an orderbook without a specific taker in mind --- src/types.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/types.ts') diff --git a/src/types.ts b/src/types.ts index 29fb40e73..92d1e51f6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -433,6 +433,16 @@ export interface Artifact { }}; } +/* + * expectedFillTakerTokenAmount: If specified, the validation method will ensure that the + * supplied order's maker has a sufficient allowance/balance to fill this amount of the order's + * takerTokenAmount. If not specified, the validation method ensures that the maker has a sufficient + * allowance/balance to fill the entire remaining order. + */ +export interface ValidateOrderFillableOpts { + expectedFillTakerTokenAmount?: BigNumber.BigNumber; +} + /* * defaultBlock: The block up to which to query the blockchain state. Setting this to a historical block number * let's the user query the blockchain's state at an arbitrary point in time. In order for this to work, the -- cgit v1.2.3