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)

A struct containing the addresses of the base and quote assets.

Functions

createBook

Creates a new orderbook contract with the specified bid asset, ask asset, and engine.

Parameters

Returns

getBook

Retrieves the orderbook contract address associated with the specified book ID.

Parameters

Returns

getBookByPair

Retrieves the orderbook contract address associated with the specified base and quote assets.

Parameters

Returns

getBaseQuote

Retrieves the base and quote assets associated with the specified orderbook contract.

Parameters

Returns

engine()

Retrieves the address of the engine contract.

Returns

getPairs

Retrieves an array of pairs (base and quote assets) within the specified range.

Parameters

Returns

Last updated