Marketplace
Inherits: IMarketplace
State Variables
_buyOrders
BuyOrder[] private _buyOrders;
_sellOrders
SellOrder[] private _sellOrders;
_item
IItem private immutable _item;
_gold
IGold private immutable _gold;
Functions
constructor
constructor(IItem item_, IGold gold_);
placeOrders
function placeOrders(
uint256[] calldata sellOrdersIds_,
uint80[] calldata sellOrderPrices_,
uint16[] calldata buyOrdersIds_,
uint80[] calldata buyOrderPrices_
) external override;
fulfilOrders
function fulfilOrders(uint256[] calldata sellOrderIds_, uint256[] calldata buyOrderIds_) external override;
cancelOrders
function cancelOrders(uint256[] calldata sellOrderIds_, uint256[] calldata buyOrderIds_) external override;
getBuyOrders
function getBuyOrders() external view override returns (BuyOrder[] memory);
getSellOrders
function getSellOrders() external view override returns (SellOrder[] memory);