0x / Exchange

V1 - Exchange

0x12459c951127e0c374ff9105dda097662a027093
Exchange
function

getOrderHash

Inputs

ParameterTypeDescription
orderAddressesaddress[5]
orderValuesuint256[6]

Outputs

TypeDescription
bytes32
function

fillOrder

Inputs

ParameterTypeDescription
orderAddressesaddress[5]
orderValuesuint256[6]
fillTakerTokenAmountuint256
shouldThrowOnInsufficientBalanceOrAllowancebool
vuint8
rbytes32
sbytes32

Outputs

TypeDescription
uint256
function

batchCancelOrders

Inputs

ParameterTypeDescription
orderAddressesaddress[5][]
orderValuesuint256[6][]
cancelTakerTokenAmountsuint256[]

Outputs

(void)
function

batchFillOrders

Inputs

ParameterTypeDescription
orderAddressesaddress[5][]
orderValuesuint256[6][]
fillTakerTokenAmountsuint256[]
shouldThrowOnInsufficientBalanceOrAllowancebool
vuint8[]
rbytes32[]
sbytes32[]

Outputs

(void)
function

getPartialAmount

Inputs

ParameterTypeDescription
numeratoruint256
denominatoruint256
targetuint256

Outputs

TypeDescription
uint256
function

isValidSignature

Inputs

ParameterTypeDescription
signeraddress
hashbytes32
vuint8
rbytes32
sbytes32

Outputs

TypeDescription
bool
function

getUnavailableTakerTokenAmount

Inputs

ParameterTypeDescription
orderHashbytes32

Outputs

TypeDescription
uint256
function

fillOrKillOrder

Inputs

ParameterTypeDescription
orderAddressesaddress[5]
orderValuesuint256[6]
fillTakerTokenAmountuint256
vuint8
rbytes32
sbytes32

Outputs

(void)
function

batchFillOrKillOrders

Inputs

ParameterTypeDescription
orderAddressesaddress[5][]
orderValuesuint256[6][]
fillTakerTokenAmountsuint256[]
vuint8[]
rbytes32[]
sbytes32[]

Outputs

(void)
function

cancelOrder

Inputs

ParameterTypeDescription
orderAddressesaddress[5]
orderValuesuint256[6]
cancelTakerTokenAmountuint256

Outputs

TypeDescription
uint256
function

fillOrdersUpTo

Inputs

ParameterTypeDescription
orderAddressesaddress[5][]
orderValuesuint256[6][]
fillTakerTokenAmountuint256
shouldThrowOnInsufficientBalanceOrAllowancebool
vuint8[]
rbytes32[]
sbytes32[]

Outputs

TypeDescription
uint256
function

isRoundingError

Inputs

ParameterTypeDescription
numeratoruint256
denominatoruint256
targetuint256

Outputs

TypeDescription
bool
constructor

Exchange

Inputs

ParameterTypeDescription
_zrxTokenaddress
_tokenTransferProxyaddress

Outputs

(void)
event

LogError

Inputs

ParameterTypeDescription
errorIduint8
orderHashbytes32

Outputs

(void)
event

LogCancel

Inputs

ParameterTypeDescription
makeraddress
feeRecipientaddress
makerTokenaddress
takerTokenaddress
cancelledMakerTokenAmountuint256
cancelledTakerTokenAmountuint256
tokensbytes32
orderHashbytes32

Outputs

(void)
event

LogFill

Inputs

ParameterTypeDescription
makeraddress
takeraddress
feeRecipientaddress
makerTokenaddress
takerTokenaddress
filledMakerTokenAmountuint256
filledTakerTokenAmountuint256
paidMakerFeeuint256
paidTakerFeeuint256
tokensbytes32
orderHashbytes32

Outputs

(void)
function

VERSION

Inputs

(void)

Outputs

TypeDescription
string
function

EXTERNAL_QUERY_GAS_LIMIT

Inputs

(void)

Outputs

TypeDescription
uint16
function

TOKEN_TRANSFER_PROXY_CONTRACT

Inputs

(void)

Outputs

TypeDescription
address
function

ZRX_TOKEN_CONTRACT

Inputs

(void)

Outputs

TypeDescription
address
function

cancelled

Inputs

ParameterTypeDescription
bytes32

Outputs

TypeDescription
uint256
function

filled

Inputs

ParameterTypeDescription
bytes32

Outputs

TypeDescription
uint256