OrderV2
Defines a fully deployed order ready to evaluate by Orderbook. Identical to
Order except for the newer EvaluableV2.
struct OrderV2 {
address owner;
bool handleIO;
EvaluableV2 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 | EvaluableV2 | Standard EvaluableV2 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. |