IOrderbookFactory
This Solidity smart contract defines an interface for the Orderbook Factory contract. Let's break down the variables, events, and functions present in this contract:
Variables
PriceLinkedList
(struct)
PriceLinkedList
(struct)A struct containing the addresses of the base and quote assets.
Functions
createBook
createBook
Creates a new orderbook contract with the specified bid asset, ask asset, and engine.
Parameters
Returns
getBook
getBook
Retrieves the orderbook contract address associated with the specified book ID.
Parameters
Returns
getBookByPair
getBookByPair
Retrieves the orderbook contract address associated with the specified base and quote assets.
Parameters
Returns
getBaseQuote
getBaseQuote
Retrieves the base and quote assets associated with the specified orderbook contract.
Parameters
Returns
engine()
engine()
Retrieves the address of the engine contract.
Returns
getPairs
getPairs
Retrieves an array of pairs (base and quote assets) within the specified range.
Parameters
Returns
Last updated