Skip to main content

IForwarder

IForwarder​

Interface for contracts that manage liquidity on Mangrove on behalf of multiple offer makers

NewOwnedOffer​

event NewOwnedOffer(bytes32 olKeyHash, uint256 offerId, address owner)

Logging new offer owner By emitting this data, an indexer will be able to keep track of the real owner of an offer

Parameters​

NameTypeDescription
olKeyHashbytes32the hash of the offer list key. This is indexed to allow RPC calls to filter on it.
offerIduint256the Mangrove offer id. This is indexed to allow RPC calls to filter on it.
owneraddressthe offer maker that can manage the offer. It is indexed to allow RPC calls to filter on it.

offerOwners​

function offerOwners(bytes32 olKeyHash, uint256[] offerIds) external view returns (address[] offer_owners)

view on offer owners.

if offerIds[i]==address(0) if and only if this offer has no owner.

Parameters​

NameTypeDescription
olKeyHashbytes32the hash of the offer list key.
offerIdsuint256[]an array of offer identifiers on the offer list.

Return Values​

NameTypeDescription
offer_ownersaddress[]an array of the same length where the address at position i is the owner of offerIds[i]

ownerOf​

function ownerOf(bytes32 olKeyHash, uint256 offerId) external view returns (address owner)

view on an offer owner.

ownerOf(in,out,id) is equivalent to offerOwners(in, out, [id]) but more gas efficient.

Parameters​

NameTypeDescription
olKeyHashbytes32the hash of the offer list key.
offerIduint256the offer identifier on the offer list.

Return Values​

NameTypeDescription
owneraddressthe offer maker that can manage the offer.