BendExchange
It is the core contract of the Bend exchange.
Methods
matchAskWithTakerBid
Match a takerBid with a matchAsk
Parameters
takerBid
OrderTypes.TakerOrder
taker bid order
makerAsk
OrderTypes.MakerOrder
maker ask order
matchAskWithTakerBidUsingETHAndWETH
Match ask with a taker bid order using ETH
Parameters
takerBid
OrderTypes.TakerOrder
taker bid order
makerAsk
OrderTypes.MakerOrder
maker ask order
matchBidWithTakerAsk
Match a takerAsk with a makerBid
Parameters
takerAsk
OrderTypes.TakerOrder
taker ask order
makerBid
OrderTypes.MakerOrder
maker bid order
cancelAllOrdersForSender
Cancel all pending orders for a sender
Parameters
minNonce
uint256
minimum user nonce
cancelMultipleMakerOrders
Cancel maker orders
Parameters
orderNonces
uint256[]
array of order nonces
CancelMultipleOrders
Parameters
user indexed
address
user address
orderNonces
uint256[]
array of order nonces that are cancelled
renounceOwnership
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
newOwner
address
address of the new owner
updateAuthorizationManager
Update authorization manager
Parameters
_authorizationManager
address
new authorization manager address
updateCurrencyManager
Update currency manager
Parameters
_currencyManager
address
new currency manager address
updateExecutionManager
Update execution manager
Parameters
_executionManager
address
new execution manager address
updateProtocolFeeRecipient
Update protocol fee and recipient
Parameters
_protocolFeeRecipient
address
new recipient for protocol fees
updateRoyaltyFeeManager
Update royalty fee manager
Parameters
_royaltyFeeManager
address
new fee manager address
updateTransferManager
Update transfer manager
Parameters
_transferManager
address
new transfer manager address
updateInterceptorManager
Update interceptor manager
Parameters
_interceptorManager
address
new interceptor manager address
View methods
DOMAIN_SEPARATOR
Returns
DOMAIN_SEPARATOR
bytes32
WETH
Returns
WETH
address
address of the WETH ("Wrapped Ether") contract
authorizationManager
Returns
currencyManager
Returns
currencyManager
contract ICurrencyManager
address of the CurrencyManager
executionManager
Returns
executionManager
contract IExecutionManager
address of the ExecutionManager
royaltyFeeManager
Returns
royaltyFeeManager
contract IRoyaltyFeeManager
address of the RoyaltyFeeManager
transferManager
Returns
transferManager
contract ITransferManager
address of the TransferManager contract
interceptorManager
Returns
interceptorManager
contract IInterceptorManager
address of the InterceptorManager contract
isUserOrderNonceExecutedOrCancelled
Check whether user order nonce is executed or cancelled
Parameters
user
address
address of user
orderNonce
uint256
nonce of the order
Returns
-
bool
whether the user order nonce is executed or cancelled (for cancels, it needs to be checked against the minOrderNonce too)
protocolFeeRecipient
Returns
protocolFeeRecipient
address
address of the protocol fee recipient
owner
Returns the address of the current owner.
Returns
owner
address
address of the current owner
userMinOrderNonce
Parameters
user
address
user address
Returns
minOrderNonce
uint256
minimum order nonce that defines the validity of user orders. If an order has a nonce inferior to the minOrderNonce, it cannot be executed.
Events
CancelAllOrders
Parameters
user indexed
address
user address
newMinNonce
uint256
new minimum order nonce
NewAuthorizationManager
Parameters
authorizationManager indexed
address
address of the new AuthorizationManager
NewCurrencyManager
Parameters
currencyManager indexed
address
address of the new CurrencyManager
NewExecutionManager
Parameters
executionManager indexed
address
address of the new ExecutionManager
NewProtocolFeeRecipient
Parameters
protocolFeeRecipient indexed
address
address of the new protocol fee recipient
NewRoyaltyFeeManager
Parameters
royaltyFeeManager indexed
address
address of the new RoyaltyFeeManager
NewTransferManager
Parameters
transferManager indexed
address
address of the new TransferManager
NewInterceptorManager
Parameters
interceptorManager indexed
address
address of the new InterceptorManager
OwnershipTransferred
Parameters
previousOwner indexed
address
address of the previous owner
newOwner indexed
address
address of the new owner
RoyaltyPayment
Parameters
collection indexed
address
collection address
tokenId indexed
uint256
tokenId
royaltyRecipient indexed
address
royalty fee recipient
currency
address
currency used (e.g., WETH)
amount
uint256
royalty amount transferred
ProtocolFeePayment
Parameters
collection indexed
address
collection address
tokenId indexed
uint256
tokenId
protocolFeeRecipient indexed
address
protocol fee recipient
currency
address
currency used (e.g., WETH)
amount
uint256
royalty amount transferred
TakerAsk
Parameters
orderHash
bytes32
order hash
orderNonce
uint256
user order nonce (for the maker)
taker indexed
address
taker address
maker indexed
address
maker address
strategy indexed
address
address of the execution strategy
currency
address
currency address
collection
address
collection address
tokenId
uint256
tokenId
amount
uint256
amount of tokens transferred
price
uint256
gross transaction price
TakerBid
Parameters
orderHash
bytes32
order hash
orderNonce
uint256
user order nonce (for the maker)
taker indexed
address
taker address
maker indexed
address
maker address
strategy indexed
address
address of the execution strategy
currency
address
currency address
collection
address
collection address
tokenId
uint256
tokenId
amount
uint256
amount of tokens transferred
price
uint256
gross transaction price
Last updated