Exchange
EVENTS
OrderPlaced(from, orderId, order)
OrdersFilled(from, orderIds, amounts, asset, token, totalAssetsAmount, volume)
OrdersDeleted(owner, orderIds)
OrdersClaimed(owner, orderIds)
OrderPlaced(address from, uint256 orderId, LibOrder.OrderInput order) |
---|
Event emitted when the |
OrdersFilled(address from, uint256[] orderIds, uint256[] amounts, LibOrder.AssetData asset, address token, uint256 totalAssetsAmount, uint256 volume) |
---|
Event emitted when the functions |
OrdersDeleted(address owner, uint256 orderIds) |
---|
Event emitted when the |
OrdersClaimed(address owner, uint256[] orderIds) |
---|
Event emitted when the |
FUNCTIONS
getOrder(id)
tokenEscrow()
nftsEscrow()
claimableRoyalties()
placeOrder(_order)
fillBuyOrder(_orderIds, amountToSell, maxSpend)
fillSellOrder(_orderIds, anountToBuy, maxSpend)
cancelOrders(_orderIds)
claimOrders(_orderIds)
claimRoyalties()
addSupportedToken(_token)
getOrder(uint256 id) -> LibOrder.Order |
---|
Retrieves |
visibility: external |
state mutability: view |
tokenEscrow() -> address |
---|
Retrieves a token's contract address. |
visibility: external |
state mutability: view |
nftsEscrow() -> address |
---|
Retrieves a non-fungible token's contract address. |
visibility: external |
state mutability: view |
claimableRoyalties() -> address[], uint256[] |
---|
Retrieves the contract address and amount of each token available for the caller to claim. |
visibility: external |
state mutability: view |
placeOrder(LibOrder.OrderInput _order) |
---|
Places a buy or sell order with the information |
|
emits an |
visibility: external |
state mutability: |
fillBuyOrder(uint256[] _orderIds, uint256 amountToSell, uint256 maxSpend) |
---|
Fills buy orders, transferring the sold assets to escrow, and withdrawing token payments from escrow. |
Emits an |
Requirements:
|
visibility: external |
state mutability: |
fillSellOrder(uint256[] _orderIds, uint256 amountToBuy, uint256 maxSpend) |
---|
Fills sell orders, sending token payments to escrow, and withdrawing the purchased assets from escrow. |
Emits an |
Requirements:
|
visibility: external |
state mutability: |
cancelOrders(uint256[] _orderIds) |
---|
Cancels unfilled or partially filled orders and withdraws the unused tokens. |
Emits an |
Requirements:
|
visibility: external |
state mutability: |
claimOrders(uint256[] _orderIds) |
---|
Withdraws tokens from filled buy or sell orders. |
Emits an |
Requirements:
|
visibility: external |
state mutability: |
claimRoyalties() |
---|
Withdraws royalties available to claim from purchases of their asset made on the exchange. |
Emits a |
Passes through RoyaltyManager.sol. |
visibility: external |
state mutability: |
addSupportedToken(address _token) |
---|
Adds |
Emits an |
Passes through Erc20Escrow.sol. |
visibility: external |
state mutability: |
Last updated