Comment on page
BendExchange
It is the core contract of the Bend exchange.
function matchAskWithTakerBid(OrderTypes.TakerOrder takerBid, OrderTypes.MakerOrder makerAsk) external nonpayable
Match a takerBid with a matchAsk
Name | Type | Description |
---|---|---|
takerBid | OrderTypes.TakerOrder | taker bid order |
makerAsk | OrderTypes.MakerOrder | maker ask order |
function matchAskWithTakerBidUsingETHAndWETH(OrderTypes.TakerOrder takerBid, OrderTypes.MakerOrder makerAsk) external payable
Match ask with a taker bid order using ETH
Name | Type | Description |
---|---|---|
takerBid | OrderTypes.TakerOrder | taker bid order |
makerAsk | OrderTypes.MakerOrder | maker ask order |
function matchBidWithTakerAsk(OrderTypes.TakerOrder takerAsk, OrderTypes.MakerOrder makerBid) external nonpayable
Match a takerAsk with a makerBid
Name | Type | Description |
---|---|---|
takerAsk | OrderTypes.TakerOrder | taker ask order |
makerBid | OrderTypes.MakerOrder | maker bid order |
function cancelAllOrdersForSender(uint256 minNonce) external nonpayable
Cancel all pending orders for a sender
Name | Type | Description |
---|---|---|
minNonce | uint256 | minimum user nonce |
function cancelMultipleMakerOrders(uint256[] orderNonces) external nonpayable
Cancel maker orders
Name | Type | Description |
---|---|---|
orderNonces | uint256[] | array of order nonces |
event CancelMultipleOrders(address indexed user, uint256[] orderNonces)
Name | Type | Description |
---|---|---|
user indexed | address | user address |
orderNonces | uint256[] | array of order nonces that are cancelled |
function renounceOwnership() external nonpayable
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.function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (
newOwner
). Can only be called by the current owner.Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
function updateAuthorizationManager(address _authorizationManager) external nonpayable
Update authorization manager
Name | Type | Description |
---|---|---|
_authorizationManager | address | new authorization manager address |
function updateCurrencyManager(address _currencyManager) external nonpayable
Update currency manager
Name | Type | Description |
---|---|---|
_currencyManager | address | new currency manager address |
function updateExecutionManager(address _executionManager) external nonpayable
Update execution manager
Name | Type | Description |
---|---|---|
_executionManager | address | new execution manager address |
function updateProtocolFeeRecipient(address _protocolFeeRecipient) external nonpayable
Update protocol fee and recipient
Name | Type | Description |
---|---|---|
_protocolFeeRecipient | address | new recipient for protocol fees |
function updateRoyaltyFeeManager(address _royaltyFeeManager) external nonpayable
Update royalty fee manager
Name | Type | Description |
---|---|---|
_royaltyFeeManager | address | new fee manager address |
function updateTransferManager(address _transferManager) external nonpayable
Update transfer manager
Name | Type | Description |
---|---|---|
_transferManager | address | new transfer manager address |
function updateInterceptorManager(address _interceptorManager) external nonpayable
Update interceptor manager
Name | Type | Description |
---|---|---|
_interceptorManager | address | new interceptor manager address |
function DOMAIN_SEPARATOR() external view returns (bytes32)
Name | Type | Description |
---|---|---|
DOMAIN_SEPARATOR | bytes32 |
function WETH() external view returns (address)
Name | Type | Description |
---|---|---|
WETH | address | address of the WETH ("Wrapped Ether") contract |
function authorizationManager() external view returns (contract IAuthorizationManager)
function currencyManager() external view returns (contract ICurrencyManager)
Name | Type | Description |
---|---|---|
currencyManager | contract ICurrencyManager | address of the CurrencyManager |
function executionManager() external view returns (contract IExecutionManager)
Name | Type | Description |
---|---|---|
executionManager | contract IExecutionManager | address of the ExecutionManager |
function royaltyFeeManager() external view returns (contract IRoyaltyFeeManager)
Name | Type | Description |
---|---|---|
royaltyFeeManager | contract IRoyaltyFeeManager | address of the RoyaltyFeeManager |
function transferManager() external view returns (contract ITransferManager)
Name | Type | Description |
---|---|---|
transferManager | contract ITransferManager | address of the TransferManager contract |
function interceptorManager() external view returns (contract IInterceptorManager)
Name | Type | Description |
---|---|---|
interceptorManager | contract IInterceptorManager | address of the InterceptorManager contract |
function isUserOrderNonceExecutedOrCancelled(address user, uint256 orderNonce) external view returns (bool)
Check whether user order nonce is executed or cancelled
Name | Type | Description |
---|---|---|
user | address | address of user |
orderNonce | uint256 | nonce of the order |
Name | Type | Description |
---|---|---|
- | bool | whether the user order nonce is executed or cancelled (for cancels, it needs to be checked against the minOrderNonce too) |
function protocolFeeRecipient() external view returns (address)
Name | Type | Description |
---|---|---|
protocolFeeRecipient | address | address of the protocol fee recipient |
function owner() external view returns (address)
Returns the address of the current owner.
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
function userMinOrderNonce(address) external view returns (uint256)
Name | Type | Description |
---|---|---|
user | address | user address |
Name | Type | Description |
---|---|---|
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. |
event CancelAllOrders(address indexed user, uint256 newMinNonce)
Name | Type | Description |
---|---|---|
user indexed | address | user address |
newMinNonce | uint256 | new minimum order nonce |
event NewAuthorizationManager(address indexed authorizationManager)
Name | Type | Description |
---|---|---|
authorizationManager indexed | address | address of the new AuthorizationManager |
event NewCurrencyManager(address indexed currencyManager)
Name | Type | Description |
---|---|---|
currencyManager indexed | address | address of the new CurrencyManager |
event NewExecutionManager(address indexed executionManager)
Name | Type | Description |
---|---|---|
executionManager indexed | address | address of the new ExecutionManager |
event NewProtocolFeeRecipient(address indexed protocolFeeRecipient)
Name | Type | Description |
---|---|---|
protocolFeeRecipient indexed | address | address of the new protocol fee recipient |
event NewRoyaltyFeeManager(address indexed royaltyFeeManager)
Name | Type | Description |
---|---|---|
royaltyFeeManager indexed | address | address of the new RoyaltyFeeManager |
event NewTransferManager(address indexed transferManager)
Name | Type | Description |
---|---|---|
transferManager indexed | address | address of the new TransferManager |
event NewInterceptorManager(address indexed interceptorManager)
Name | Type | Description |
---|---|---|
interceptorManager indexed | address | address of the new InterceptorManager |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Name | Type | Description |
---|---|---|
previousOwner indexed | address | address of the previous owner |
newOwner indexed | address | address of the new owner |
event RoyaltyPayment(address indexed collection, uint256 indexed tokenId, address indexed royaltyRecipient, address currency, uint256 amount)
Name | Type | Description |
---|---|---|
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 |
event ProtocolFeePayment(address indexed collection,uint256 indexed tokenId,address indexed protocolFeeRecipient,address currency,uint256 amount);
Name | Type | Description |
---|---|---|
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 |
event TakerAsk(bytes32 orderHash, uint256 orderNonce, address indexed taker, address indexed maker, address indexed strategy, address currency, address collection, uint256 tokenId, uint256 amount, uint256 price)
Name | Type | Description |
---|---|---|
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 |
event TakerBid(bytes32 orderHash, uint256 orderNonce, address indexed taker, address indexed maker, address indexed strategy, address currency, address collection, uint256 tokenId, uint256 amount, uint256 price)
Name | Type | Description |
---|---|---|
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 modified 1yr ago