aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-09-26 17:01:33 +0800
committerFabio Berger <me@fabioberger.com>2017-09-26 17:01:33 +0800
commit5e92ca039c593028694a1453b39e55c127e96ba5 (patch)
treeb026864d4df60352af7a47d801ea5573d2a136cd /src/types.ts
parent0a19a7e8d165a3df33e862d761492c9b4382ed24 (diff)
downloaddexon-sol-tools-5e92ca039c593028694a1453b39e55c127e96ba5.tar
dexon-sol-tools-5e92ca039c593028694a1453b39e55c127e96ba5.tar.gz
dexon-sol-tools-5e92ca039c593028694a1453b39e55c127e96ba5.tar.bz2
dexon-sol-tools-5e92ca039c593028694a1453b39e55c127e96ba5.tar.lz
dexon-sol-tools-5e92ca039c593028694a1453b39e55c127e96ba5.tar.xz
dexon-sol-tools-5e92ca039c593028694a1453b39e55c127e96ba5.tar.zst
dexon-sol-tools-5e92ca039c593028694a1453b39e55c127e96ba5.zip
Add validateOrderFillableThrowIfNotFillableAsync to public methods in order to validate orders in an orderbook without a specific taker in mind
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 29fb40e73..92d1e51f6 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -434,6 +434,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
* backing Ethereum node must keep the entire historical state of the chain (e.g setting `--pruning=archive`