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)
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 |
verifyToken(address _token) -> bool |
---|
Verifies whether the payment token entered is supported by Rawrshak. |
visibility: external |
state mutability: view |
placeBuyOrder(uint256 _orderId, address _token, address _sender, uint256 _tokenAmount) |
---|
Transfers |
visibility: external |
state mutability: |
placeSellOrder(uint256 _orderId, address _sender, LibOrder.AssetData _asset, uint256 _assetAmount) |
---|
Transfers |
visibility: external |
state mutability: |
executeBuyOrder(address _user, uint256[] _orderIds, uint256[] _paymentPerOrder, uint256[] _amounts, LibOrder.AssetData _asset) |
---|
Transfers assets to escrow to be claimed by buyers and withdraws token payment from escrow to |
Requirement:
|
visibility: external |
state mutability: |
executeSellOrder(address user, uint256[] _orderIds, uint256[] _paymentPerOrder, uint256[] _amounts, address _token) |
---|
Transfers token payment to escrow to be claimed by sellers and withdraws purchased assets to |
Requirement:
|
visibility: external |
state mutability: |
cancelOrders(uint256[] _orderIds) |
---|
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: |
claimOrders(address _user, uint256[] _orderIds) |
---|
Withdraws escrowed assets from filled or partially filled orders. Updates order state to "CLAIMED" if the order is completely filled. |
visibility: external |
state mutability: |
addSupportedToken(address _token) |
---|
Adds |
Emits an |
Passes through Erc20Escrow.sol. |
visibility: external |
state mutability: |
Last updated