Order
Defines a fully deployed order ready to evaluate by Orderbook.
struct Order {
address owner;
bool handleIO;
Evaluable evaluable;
IO[] validInputs;
IO[] validOutputs;
}
Properties
| Name | Type | Description |
|---|---|---|
owner | address | The owner of the order is the msg.sender that added the order. |
handleIO | bool | true if there is a "handle IO" entrypoint to run. If false the order book MAY skip calling the interpreter to save gas. |
evaluable | Evaluable | Standard Evaluable with entrypoints for both "calculate order" and "handle IO". The latter MAY be empty bytes, in which case it will be skipped at runtime to save gas. |
validInputs | IO[] | A list of input tokens that are economically equivalent for the purpose of processing this order. Inputs are relative to the order so these tokens will be sent to the owners vault. |
validOutputs | IO[] | A list of output tokens that are economically equivalent for the purpose of processing this order. Outputs are relative to the order so these tokens will be sent from the owners vault. |