Execution Manager
FUNCTIONS
tokenEscrow()
nftsEscrow()
verifyToken(_token)
placeBuyOrder(_orderId, _token, _sender, _tokenAmount)
placeSellOrder(_orderId, _sender, _asset, _assetAmount)
executeBuyOrder(_user, _orderIds, _paymentPerOrder, _amounts, _asset)
executeSellOrder(_user, _orderIds, _paymentPerOrder, _amounts, _token)
cancelOrders(_orderIds)
claimOrders(_user, _orderIds)
addSupportedToken(_token)
Retrieves a token's contract address.
visibility: external
state mutability: view
Retrieves a non-fungible token's contract address.
visibility: external
state mutability: view
Verifies whether the payment token entered is supported by Rawrshak.
visibility: external
state mutability: view
Transfers _tokenAmount of _token from _sender to the Erc20Escrow contract and updates the escrowedByOrder mapping.
visibility: external
state mutability:
Transfers _assetAmount of _asset to the NftEscrow contract and updates the escrowedAssets and escrowedAmounts mappings.
visibility: external
state mutability:
Transfers assets to escrow to be claimed by buyers and withdraws token payment from escrow to _user, updating necessary records.
Requirement:
The length of
_orderIdsmust equal the length of_paymentPerOrderand_amounts.
visibility: external
state mutability:
Transfers token payment to escrow to be claimed by sellers and withdraws purchased assets to _user, updating necessary records.
Requirement:
The length of
_orderIdsmust equal the length of_paymentPerOrderand_amounts.
visibility: external
state mutability:
For buy orders, this function withdraws unused token payments and claims purchased assets (if any, from partial fills). For sell orders, this function withdraws unsold assets and claims token payments (if any, from partial fills).
visibility: external
state mutability:
Withdraws escrowed assets from filled or partially filled orders. Updates order state to "CLAIMED" if the order is completely filled.
visibility: external
state mutability:
Adds _token to the list of supported ERC20 tokens on Rawrshak.
Emits an AddedTokenSupport event.
Passes through Erc20Escrow.sol.
visibility: external
state mutability:
Last updated