OrderbookStream

Git Source

Functions

add

Emits PublishQuote event for quote

function add(Quote[] calldata quote) external;

Events

PublishQuote

event PublishQuote(
    IPoolFactory.PoolKey indexed poolKeyHash,
    address indexed provider,
    address taker,
    uint256 price,
    uint256 size,
    bool isBuy,
    uint256 deadline,
    uint256 salt,
    Signature signature,
    IPoolFactory.PoolKey poolKey
);

Structs

Signature

struct Signature {
    bytes32 r;
    bytes32 s;
    uint8 v;
}

Quote

struct Quote {
    IPoolFactory.PoolKey poolKey;
    address provider;
    address taker;
    uint256 price;
    uint256 size;
    bool isBuy;
    uint256 deadline;
    uint256 salt;
    Signature signature;
}