Exchange
EVENTS
OrderPlaced(from, orderId, order)
OrdersFilled(from, orderIds, amounts, asset, token, totalAssetsAmount, volume)
OrdersDeleted(owner, orderIds)
OrdersClaimed(owner, orderIds)
Event emitted when the placeOrder
function is called.
Event emitted when the functions fillBuyOrder
or fillSellOrder
are called.
Event emitted when the cancelOrders
function is called by owner
.
Event emitted when the claimOrders
function is called by owner
.
FUNCTIONS
getOrder(id)
tokenEscrow()
nftsEscrow()
claimableRoyalties()
placeOrder(_order)
fillBuyOrder(_orderIds, amountToSell, maxSpend)
fillSellOrder(_orderIds, anountToBuy, maxSpend)
cancelOrders(_orderIds)
claimOrders(_orderIds)
claimRoyalties()
addSupportedToken(_token)
Retrieves id
's order information.
visibility: external
state mutability: view
Retrieves a token's contract address.
visibility: external
state mutability: view
Retrieves a non-fungible token's contract address.
visibility: external
state mutability: view
Retrieves the contract address and amount of each token available for the caller to claim.
visibility: external
state mutability: view
Places a buy or sell order with the information _order
on the exchange and transfers the tokens to escrow.
emits an OrderPlaced
event.
visibility: external
state mutability:
Fills buy orders, transferring the sold assets to escrow, and withdrawing token payments from escrow.
Emits an OrdersFilled
event.
Requirements:
Length of
_orderIds
must be greater than 0._orderIds
must exist._orderIds
must be of the same asset and token payment.
visibility: external
state mutability:
Fills sell orders, sending token payments to escrow, and withdrawing the purchased assets from escrow.
Emits an OrdersFilled
event.
Requirements:
Length of
_orderIds
must be greater than 0._orderIds
must exist._orderIds
must be of the same asset and token payment.
visibility: external
state mutability:
Cancels unfilled or partially filled orders and withdraws the unused tokens.
Emits an OrdersDeleted
event.
Requirements:
_orderIds
must exist._orderIds
must be owned by caller.Filled and cancelled orders cannot be canceled.
visibility: external
state mutability:
Withdraws tokens from filled buy or sell orders.
Emits an OrdersClaimed
event.
Requirements:
_orderIds
must exist._orderIds
must be owned by caller.
visibility: external
state mutability:
Withdraws royalties available to claim from purchases of their asset made on the exchange.
Emits a ClaimedRoyalties
event.
visibility: external
state mutability:
Adds _token
to the list of supported ERC20 tokens on Rawrshak.
Emits an AddedTokenSupport
event.
visibility: external
state mutability:
Last updated