HasIndexedBidsAndAsks
utilizes the IHasOfferListOfOfferType
contract.
SetLength
the length of the index has been set. By emitting this data, an indexer will be able to keep track of what length is used.
Parameters
value
uint256
the length.
SetIndexMapping
a new offer of type ba
with offerId
was created at price index
By emitting this data, an indexer will be able to keep track of what offer has what index.
Parameters
ba
enum OfferType
the offer type
index
uint256
the index
offerId
uint256
the Mangrove offer id.
length
the length of the map.
offerIdOfIndex
maps index of offers to offer id on Mangrove.
Parameters
ba
enum OfferType
the offer type
index
uint256
the index
Return Values
offerId
uint256
the Mangrove offer id.
indexOfOfferId
Maps an offer type and Mangrove offer id to index.
Parameters
ba
enum OfferType
the offer type
offerId
uint256
the Mangrove offer id.
Return Values
index
uint256
the index.
setIndexMapping
Sets the Mangrove offer id for an index and vice versa.
Parameters
ba
enum OfferType
the offer type
index
uint256
the index
offerId
uint256
the Mangrove offer id.
setLength
sets the length of the map.
Parameters
length_
uint256
the new length.