Exchange
function
getOrderHash
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5] | |
| orderValues | uint256[6] |
Outputs
| Type | Description |
|---|---|
| bytes32 |
function
fillOrder
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5] | |
| orderValues | uint256[6] | |
| fillTakerTokenAmount | uint256 | |
| shouldThrowOnInsufficientBalanceOrAllowance | bool | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
batchCancelOrders
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5][] | |
| orderValues | uint256[6][] | |
| cancelTakerTokenAmounts | uint256[] |
Outputs
(void)
function
batchFillOrders
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5][] | |
| orderValues | uint256[6][] | |
| fillTakerTokenAmounts | uint256[] | |
| shouldThrowOnInsufficientBalanceOrAllowance | bool | |
| v | uint8[] | |
| r | bytes32[] | |
| s | bytes32[] |
Outputs
(void)
function
getPartialAmount
Inputs
| Parameter | Type | Description |
|---|---|---|
| numerator | uint256 | |
| denominator | uint256 | |
| target | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
isValidSignature
Inputs
| Parameter | Type | Description |
|---|---|---|
| signer | address | |
| hash | bytes32 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Outputs
| Type | Description |
|---|---|
| bool |
function
fillOrKillOrder
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5] | |
| orderValues | uint256[6] | |
| fillTakerTokenAmount | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Outputs
(void)
function
batchFillOrKillOrders
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5][] | |
| orderValues | uint256[6][] | |
| fillTakerTokenAmounts | uint256[] | |
| v | uint8[] | |
| r | bytes32[] | |
| s | bytes32[] |
Outputs
(void)
function
cancelOrder
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5] | |
| orderValues | uint256[6] | |
| cancelTakerTokenAmount | uint256 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
fillOrdersUpTo
Inputs
| Parameter | Type | Description |
|---|---|---|
| orderAddresses | address[5][] | |
| orderValues | uint256[6][] | |
| fillTakerTokenAmount | uint256 | |
| shouldThrowOnInsufficientBalanceOrAllowance | bool | |
| v | uint8[] | |
| r | bytes32[] | |
| s | bytes32[] |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
isRoundingError
Inputs
| Parameter | Type | Description |
|---|---|---|
| numerator | uint256 | |
| denominator | uint256 | |
| target | uint256 |
Outputs
| Type | Description |
|---|---|
| bool |
constructor
Exchange
Inputs
| Parameter | Type | Description |
|---|---|---|
| _zrxToken | address | |
| _tokenTransferProxy | address |
Outputs
(void)
event
LogError
Inputs
| Parameter | Type | Description |
|---|---|---|
| errorId | uint8 | |
| orderHash | bytes32 |
Outputs
(void)
event
LogCancel
Inputs
| Parameter | Type | Description |
|---|---|---|
| maker | address | |
| feeRecipient | address | |
| makerToken | address | |
| takerToken | address | |
| cancelledMakerTokenAmount | uint256 | |
| cancelledTakerTokenAmount | uint256 | |
| tokens | bytes32 | |
| orderHash | bytes32 |
Outputs
(void)
event
LogFill
Inputs
| Parameter | Type | Description |
|---|---|---|
| maker | address | |
| taker | address | |
| feeRecipient | address | |
| makerToken | address | |
| takerToken | address | |
| filledMakerTokenAmount | uint256 | |
| filledTakerTokenAmount | uint256 | |
| paidMakerFee | uint256 | |
| paidTakerFee | uint256 | |
| tokens | bytes32 | |
| orderHash | bytes32 |
Outputs
(void)
function
VERSION
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| string |
function
EXTERNAL_QUERY_GAS_LIMIT
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| uint16 |
function
TOKEN_TRANSFER_PROXY_CONTRACT
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
ZRX_TOKEN_CONTRACT
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
cancelled
Inputs
| Parameter | Type | Description |
|---|---|---|
| bytes32 |
Outputs
| Type | Description |
|---|---|
| uint256 |
function
filled
Inputs
| Parameter | Type | Description |
|---|---|---|
| bytes32 |
Outputs
| Type | Description |
|---|---|
| uint256 |