Skip to main content
Version: Next

ILooksRareProtocol

LooksRare protocol team (👀,💎)

ILooksRareProtocol

Methods​

executeMultipleTakerBids​

function executeMultipleTakerBids(OrderStructs.Taker[] takerBids, OrderStructs.Maker[] makerAsks, bytes[] makerSignatures, OrderStructs.MerkleTree[] merkleTrees, bool isAtomic) external payable

Parameters​

NameTypeDescription
takerBidsOrderStructs.Taker[]undefined
makerAsksOrderStructs.Maker[]undefined
makerSignaturesbytes[]undefined
merkleTreesOrderStructs.MerkleTree[]undefined
isAtomicboolundefined

executeTakerAsk​

function executeTakerAsk(OrderStructs.Taker takerAsk, OrderStructs.Maker makerBid, bytes makerSignature, OrderStructs.MerkleTree merkleTree) external nonpayable

Parameters​

NameTypeDescription
takerAskOrderStructs.Takerundefined
makerBidOrderStructs.Makerundefined
makerSignaturebytesundefined
merkleTreeOrderStructs.MerkleTreeundefined

executeTakerBid​

function executeTakerBid(OrderStructs.Taker takerBid, OrderStructs.Maker makerAsk, bytes makerSignature, OrderStructs.MerkleTree merkleTree) external payable

Parameters​

NameTypeDescription
takerBidOrderStructs.Takerundefined
makerAskOrderStructs.Makerundefined
makerSignaturebytesundefined
merkleTreeOrderStructs.MerkleTreeundefined

Events​

NewDomainSeparator​

event NewDomainSeparator()

It is emitted if there is a change in the domain separator.

NewGasLimitETHTransfer​

event NewGasLimitETHTransfer(uint256 gasLimitETHTransfer)

It is emitted when there is a new gas limit for a ETH transfer (before it is wrapped to WETH).

Parameters​

NameTypeDescription
gasLimitETHTransferuint256Gas limit for an ETH transfer

TakerAsk​

event TakerAsk(ILooksRareProtocol.NonceInvalidationParameters nonceInvalidationParameters, address askUser, address bidUser, uint256 strategyId, address currency, address collection, uint256[] itemIds, uint256[] amounts, address[2] feeRecipients, uint256[3] feeAmounts)

It is emitted when a taker ask transaction is completed.

Parameters​

NameTypeDescription
nonceInvalidationParametersILooksRareProtocol.NonceInvalidationParametersStruct about nonce invalidation parameters
askUseraddressAddress of the ask user
bidUseraddressAddress of the bid user
strategyIduint256Id of the strategy
currencyaddressAddress of the currency
collectionaddressAddress of the collection
itemIdsuint256[]Array of item ids
amountsuint256[]Array of amounts (for item ids)
feeRecipientsaddress[2]Array of fee recipients feeRecipients[0] User who receives the proceeds of the sale (it can be the taker ask user or different) feeRecipients[1] Creator fee recipient (if none, address(0))
feeAmountsuint256[3]Array of fee amounts feeAmounts[0] Fee amount for the user receiving sale proceeds feeAmounts[1] Creator fee amount feeAmounts[2] Protocol fee amount prior to adjustment for a potential affiliate payment

TakerBid​

event TakerBid(ILooksRareProtocol.NonceInvalidationParameters nonceInvalidationParameters, address bidUser, address bidRecipient, uint256 strategyId, address currency, address collection, uint256[] itemIds, uint256[] amounts, address[2] feeRecipients, uint256[3] feeAmounts)

It is emitted when a taker bid transaction is completed.

Parameters​

NameTypeDescription
nonceInvalidationParametersILooksRareProtocol.NonceInvalidationParametersStruct about nonce invalidation parameters
bidUseraddressAddress of the bid user
bidRecipientaddressAddress of the recipient of the bid
strategyIduint256Id of the strategy
currencyaddressAddress of the currency
collectionaddressAddress of the collection
itemIdsuint256[]Array of item ids
amountsuint256[]Array of amounts (for item ids)
feeRecipientsaddress[2]Array of fee recipients feeRecipients[0] User who receives the proceeds of the sale (it is the maker ask user) feeRecipients[1] Creator fee recipient (if none, address(0))
feeAmountsuint256[3]Array of fee amounts feeAmounts[0] Fee amount for the user receiving sale proceeds feeAmounts[1] Creator fee amount feeAmounts[2] Protocol fee amount prior to adjustment for a potential affiliate payment

Errors​

ChainIdInvalid​

error ChainIdInvalid()

It is returned if the domain separator should change.

NewGasLimitETHTransferTooLow​

error NewGasLimitETHTransferTooLow()

It is returned if the gas limit for a standard ETH transfer is too low.

NoncesInvalid​

error NoncesInvalid()

It is returned if the nonces are invalid.

SameDomainSeparator​

error SameDomainSeparator()

It is returned if the domain separator cannot be updated (i.e. the chainId is the same).