aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-11 09:55:01 +0800
committerFabio Berger <me@fabioberger.com>2017-07-11 15:30:14 +0800
commit987d7a7d8a74189dfd01a0381977afd4c6871481 (patch)
tree18d696a28a0f91298a4f8963fbfea4b9248e1dc9
parent183ea1b33da3cbe0c0babffca8eaefd4568d0e37 (diff)
downloaddexon-sol-tools-987d7a7d8a74189dfd01a0381977afd4c6871481.tar
dexon-sol-tools-987d7a7d8a74189dfd01a0381977afd4c6871481.tar.gz
dexon-sol-tools-987d7a7d8a74189dfd01a0381977afd4c6871481.tar.bz2
dexon-sol-tools-987d7a7d8a74189dfd01a0381977afd4c6871481.tar.lz
dexon-sol-tools-987d7a7d8a74189dfd01a0381977afd4c6871481.tar.xz
dexon-sol-tools-987d7a7d8a74189dfd01a0381977afd4c6871481.tar.zst
dexon-sol-tools-987d7a7d8a74189dfd01a0381977afd4c6871481.zip
Rename shouldCheckTransfer to shouldThrowOnInsufficientBalanceOrAllowance
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index a2674f344..ee5cd7287 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -208,16 +208,17 @@ export class ExchangeWrapper extends ContractWrapper {
* Sequentially and atomically fills signedOrders up to the specified takerTokenFillAmount.
* If the fill amount is reached - it succeeds and does not fill the rest of the orders.
* If fill amount is not reached - it fills as much of the fill amount as possible and succeeds.
- * @param signedOrders The array of signedOrders that you would like to fill until
- * takerTokenFillAmount is reached.
- * @param fillTakerTokenAmount The total amount of the takerTokens you would like to fill.
- * @param shouldCheckTransfer Whether or not you wish for the contract call to throw if upon
- * execution any of the tokens cannot be transferred. If set to false,
- * the call will continue to fill subsequent signedOrders even when
- * some cannot be filled.
- * @param takerAddress The user Ethereum address who would like to fill these orders.
- * Must be available via the supplied Web3.Provider passed to 0x.js.
- * @return The amount of the orders that was filled (in taker token baseUnits).
+ * @param signedOrders The array of signedOrders that you would like to fill until
+ * takerTokenFillAmount is reached.
+ * @param fillTakerTokenAmount The total amount of the takerTokens you would like to fill.
+ * @param shouldThrowOnInsufficientBalanceOrAllowance Whether or not you wish for the contract call to throw if
+ * upon execution any of the tokens cannot be transferred.
+ * If set to false, the call will continue to fill subsequent
+ * signedOrders even when some cannot be filled.
+ * @param takerAddress The user Ethereum address who would like to fill these
+ * orders. Must be available via the supplied Web3.Provider
+ * passed to 0x.js.
+ * @return The amount of the orders that was filled (in taker token baseUnits).
*/
@decorators.contractCallErrorHandler
public async fillOrdersUpToAsync(signedOrders: SignedOrder[], fillTakerTokenAmount: BigNumber.BigNumber,