0x / Exchange

V2.1 - Exchange

0x080bf510fcbf18b91105470639e9561022937712
LibConstants
constructor

Exchange

nonpayable

Inputs

ParameterTypeDescription
_zrxAssetDatabytes

Outputs

(void)
MAssetProxyDispatcher
event

AssetProxyRegistered

Inputs

ParameterTypeDescription
idbytes4
assetProxyaddress

Outputs

(void)
MExchangeCore
event

CancelUpTo

Inputs

ParameterTypeDescription
makerAddressaddress
senderAddressaddress
orderEpochuint256

Outputs

(void)
event

Cancel

Inputs

ParameterTypeDescription
makerAddressaddress
feeRecipientAddressaddress
senderAddressaddress
orderHashbytes32
makerAssetDatabytes
takerAssetDatabytes

Outputs

(void)
event

Fill

Inputs

ParameterTypeDescription
makerAddressaddress
feeRecipientAddressaddress
takerAddressaddress
senderAddressaddress
makerAssetFilledAmountuint256
takerAssetFilledAmountuint256
makerFeePaiduint256
takerFeePaiduint256
orderHashbytes32
makerAssetDatabytes
takerAssetDatabytes

Outputs

(void)
MSignatureValidator
event

SignatureValidatorApproval

Inputs

ParameterTypeDescription
signerAddressaddress
validatorAddressaddress
approvedbool

Outputs

(void)
MixinAssetProxyDispatcher
function

registerAssetProxy

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
assetProxyaddress

Outputs

(void)
function

getAssetProxy

view

Inputs

ParameterTypeDescription
assetProxyIdbytes4

Outputs

TypeDescription
address
MixinExchangeCore
function

cancelOrder

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
ordertuple

Outputs

(void)
function

fillOrder

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
ordertuple
takerAssetFillAmountuint256
signaturebytes

Outputs

TypeDescription
tuple
function

cancelOrdersUpTo

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
targetOrderEpochuint256

Outputs

(void)
function

getOrderInfo

view

Inputs

ParameterTypeDescription
ordertuple

Outputs

TypeDescription
tuple
MixinMatchOrders
function

matchOrders

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
leftOrdertuple
rightOrdertuple
leftSignaturebytes
rightSignaturebytes

Outputs

TypeDescription
tuple
MixinSignatureValidator
function

setSignatureValidatorApproval

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
validatorAddressaddress
approvalbool

Outputs

(void)
function

preSign

nonpayable

Inputs

ParameterTypeDescription
hashbytes32
signerAddressaddress
signaturebytes

Outputs

(void)
function

isValidSignature

view

Inputs

ParameterTypeDescription
hashbytes32
signerAddressaddress
signaturebytes

Outputs

TypeDescription
bool
MixinTransactions
function

executeTransaction

nonpayable

Inputs

ParameterTypeDescription
saltuint256
signerAddressaddress
databytes
signaturebytes

Outputs

(void)
MixinWrapperFunctions
function

marketBuyOrders

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
orderstuple[]
makerAssetFillAmountuint256
signaturesbytes[]

Outputs

TypeDescription
tuple
function

marketSellOrders

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
orderstuple[]
takerAssetFillAmountuint256
signaturesbytes[]

Outputs

TypeDescription
tuple
function

fillOrKillOrder

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
ordertuple
takerAssetFillAmountuint256
signaturebytes

Outputs

TypeDescription
tuple
function

batchFillOrKillOrders

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
orderstuple[]
takerAssetFillAmountsuint256[]
signaturesbytes[]

Outputs

TypeDescription
tuple
function

batchCancelOrders

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
orderstuple[]

Outputs

(void)
function

batchFillOrders

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
orderstuple[]
takerAssetFillAmountsuint256[]
signaturesbytes[]

Outputs

TypeDescription
tuple
function

marketSellOrdersNoThrow

nonpayable

Inputs

ParameterTypeDescription
orderstuple[]
takerAssetFillAmountuint256
signaturesbytes[]

Outputs

TypeDescription
tuple
function

marketBuyOrdersNoThrow

nonpayable

Inputs

ParameterTypeDescription
orderstuple[]
makerAssetFillAmountuint256
signaturesbytes[]

Outputs

TypeDescription
tuple
function

batchFillOrdersNoThrow

nonpayable

Inputs

ParameterTypeDescription
orderstuple[]
takerAssetFillAmountsuint256[]
signaturesbytes[]

Outputs

TypeDescription
tuple
function

fillOrderNoThrow

nonpayable

Inputs

ParameterTypeDescription
ordertuple
takerAssetFillAmountuint256
signaturebytes

Outputs

TypeDescription
tuple
function

getOrdersInfo

view

Inputs

ParameterTypeDescription
orderstuple[]

Outputs

TypeDescription
tuple[]
Ownable
function

transferOwnership

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
newOwneraddress

Outputs

(void)
function

VERSION

view

Inputs

(void)

Outputs

TypeDescription
string
function

currentContextAddress

view

Inputs

(void)

Outputs

TypeDescription
address
function

EIP712_DOMAIN_HASH

view

Inputs

(void)

Outputs

TypeDescription
bytes32
function

ZRX_ASSET_DATA

view

Inputs

(void)

Outputs

TypeDescription
bytes
function

orderEpoch

view

Inputs

ParameterTypeDescription
address
address

Outputs

TypeDescription
uint256
function

owner

view

Inputs

(void)

Outputs

TypeDescription
address
function

preSigned

view

Inputs

ParameterTypeDescription
bytes32
address

Outputs

TypeDescription
bool
function

allowedValidators

view

Inputs

ParameterTypeDescription
address
address

Outputs

TypeDescription
bool
function

transactions

view

Inputs

ParameterTypeDescription
bytes32

Outputs

TypeDescription
bool
function

assetProxies

view

Inputs

ParameterTypeDescription
bytes4

Outputs

TypeDescription
address
function

cancelled

view

Inputs

ParameterTypeDescription
bytes32

Outputs

TypeDescription
bool
function

filled

view

Inputs

ParameterTypeDescription
bytes32

Outputs

TypeDescription
uint256