aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-02-24 06:47:44 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:16 +0800
commit8f7e67367adea778812bcb3bedebb8c36ef4198d (patch)
tree1ec718fef79ecc1a51860ea4ec8b2de5962b1706
parent0dad3fecb61af903019eb8d3c3b2fe627ba963f6 (diff)
downloaddexon-sol-tools-8f7e67367adea778812bcb3bedebb8c36ef4198d.tar
dexon-sol-tools-8f7e67367adea778812bcb3bedebb8c36ef4198d.tar.gz
dexon-sol-tools-8f7e67367adea778812bcb3bedebb8c36ef4198d.tar.bz2
dexon-sol-tools-8f7e67367adea778812bcb3bedebb8c36ef4198d.tar.lz
dexon-sol-tools-8f7e67367adea778812bcb3bedebb8c36ef4198d.tar.xz
dexon-sol-tools-8f7e67367adea778812bcb3bedebb8c36ef4198d.tar.zst
dexon-sol-tools-8f7e67367adea778812bcb3bedebb8c36ef4198d.zip
Add documentation
-rw-r--r--packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol18
1 files changed, 16 insertions, 2 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol
index a08fe75ff..1df5145ab 100644
--- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol
+++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinWrapperFunctions.sol
@@ -27,7 +27,10 @@ contract MixinWrapperFunctions is
MExchangeCore,
SafeMath
{
-
+ /// @param orderAddresses Array of order's maker, taker, makerToken, takerToken, and feeRecipient.
+ /// @param orderValues Array of order's makerTokenAmount, takerTokenAmount, makerFee, takerFee, expirationTimestampInSec, and salt.
+ /// @param takerTokenFillAmount Desired amount of takerToken to fill.
+ /// @param signature Maker's signature of the order.
function fillOrKillOrder(
address[5] orderAddresses,
uint[6] orderValues,
@@ -47,6 +50,7 @@ contract MixinWrapperFunctions is
/// @param orderAddresses Array of order's maker, taker, makerToken, takerToken, and feeRecipient.
/// @param orderValues Array of order's makerTokenAmount, takerTokenAmount, makerFee, takerFee, expirationTimestampInSec, and salt.
/// @param takerTokenFillAmount Desired amount of takerToken to fill.
+ /// @param signature Maker's signature of the order.
/// @return Success if the transaction did not revert.
/// @return Total amount of takerToken filled in trade.
function fillOrderNoThrow(
@@ -110,6 +114,7 @@ contract MixinWrapperFunctions is
/// @param orderAddresses Array of address arrays containing individual order addresses.
/// @param orderValues Array of uint256 arrays containing individual order values.
/// @param takerTokenFillAmounts Array of desired amounts of takerToken to fill in orders.
+ /// @param signatures Maker's signatures of the orders.
function batchFillOrders(
address[5][] orderAddresses,
uint256[6][] orderValues,
@@ -131,6 +136,7 @@ contract MixinWrapperFunctions is
/// @param orderAddresses Array of address arrays containing individual order addresses.
/// @param orderValues Array of uint256 arrays containing individual order values.
/// @param takerTokenFillAmounts Array of desired amounts of takerToken to fill in orders.
+ /// @param signatures Maker's signatures of the orders.
function batchFillOrKillOrders(
address[5][] orderAddresses,
uint[6][] orderValues,
@@ -148,7 +154,13 @@ contract MixinWrapperFunctions is
}
}
-
+ /// @dev Fills an order with specified parameters and ECDSA signature. Returns false if the transaction would otherwise revert.
+ /// @param orderAddresses Array of order's maker, taker, makerToken, takerToken, and feeRecipient.
+ /// @param orderValues Array of order's makerTokenAmount, takerTokenAmount, makerFee, takerFee, expirationTimestampInSec, and salt.
+ /// @param takerTokenFillAmount Desired amount of takerToken to fill.
+ /// @param signatures Maker's signatures of the orders.
+ /// @return Success if the transaction did not revert.
+ /// @return Total amount of takerToken filled in trade.
function batchFillOrdersNoThrow(
address[5][] orderAddresses,
uint[6][] orderValues,
@@ -171,6 +183,7 @@ contract MixinWrapperFunctions is
/// @param orderAddresses Array of address arrays containing individual order addresses.
/// @param orderValues Array of uint256 arrays containing individual order values.
/// @param takerTokenFillAmount Desired total amount of takerToken to fill in orders.
+ /// @param signatures Maker's signatures of the orders.
/// @return Total amount of takerTokenFillAmount filled in orders.
function marketFillOrders(
address[5][] orderAddresses,
@@ -197,6 +210,7 @@ contract MixinWrapperFunctions is
/// @param orderAddresses Array of address arrays containing individual order addresses.
/// @param orderValues Array of uint256 arrays containing individual order values.
/// @param takerTokenFillAmount Desired total amount of takerToken to fill in orders.
+ /// @param signatures Maker's signatures of the orders.
/// @return Total amount of takerTokenFillAmount filled in orders.
function marketFillOrdersNoThrow(
address[5][] orderAddresses,