Orderbook
FUNCTIONS
exists(_orderId)
ordersLength()
verifyOrdersExist(_orderIds)
verifyAllOrdersData(_orderIds, _isBuyOrder)
verifyOrderOwners(_orderIds, _owner)
verifyOrdersReady(_orderIds)
getOrderAmounts(_orderIds, amountToFill, maxSpend)
getPaymentTotals(_orderIds, _amounts)
getOrder(_orderId)
placeOrder(_order)
fillOrders(_orderIds, _amounts)
cancelOrders(_orderIds)
claimOrders(_orderIds)
exists(uint256 _orderId) -> bool |
---|
Verifies whether the order |
visibility: external |
state mutability: view |
ordersLength() -> uint256 |
---|
Returns the total number of orders that have been placed on the exchange. |
visibility: external |
state mutability: view |
verifyOrdersExist(uint256[] _orderIds) -> bool |
---|
Runs a loop of the |
visibility: external |
state mutability: view |
verifyAllOrdersData(uint256[] _orderIds, bool _isBuyOrder) -> bool |
---|
Verifies whether all the orders in |
visibility: external |
state mutability: view |
verifyOrderOwners(uint256[] _orderIds, address _owner) -> bool |
---|
Verifies whether the owner of the orders in |
visibility: external |
state mutability: view |
verifyOrdersReady(uint256[] _orderIds) -> bool |
---|
Verifies whether all the orders in |
visibility: external |
state mutability: view |
getOrderAmounts(uint256[] _orderIds, uint256 amountToFill, uint256 maxSpend) -> uint256[], uint256 |
---|
Returns the amount of the asset to be filled from each order in |
visibility: external |
state mutability: view |
getPaymentTotals(uint256[] _orderIds, uint256[] _amounts) -> uint256, uint256[] |
---|
Returns the token payment to be paid for each order in |
visibility: external |
state mutability: view |
getOrder(uint256 _orderId) -> LibOrder.Order |
---|
Returns the order information of |
Order structure object. See LibOrder.sol. |
visibility: external |
state mutability: view |
placeOrder(LibOrder.OrderInput _order) -> uint256 |
---|
Places an order on the exchange with order information |
|
Requirements:
|
visibility: external |
state mutability: |
fillOrders(uint256[] _orderIds, uint256[] _amounts) |
---|
Updates the order information of |
visibility: external |
state mutability: |
cancelOrders(uint256[] _orderIds) |
---|
Updates the order state of |
Requirement:
|
visibility: external |
state mutability: |
claimOrders(uint256[] _orderIds) |
---|
Updates the order state of |
visibility: external |
state mutability: |
Last updated