LensSeaDropCollection

Git Source

Inherits: ERC721SeaDropCloneable

State Variables

ROYALTIES_BPS

uint16 private constant ROYALTIES_BPS = 1_000;

HUB

address immutable HUB;

SEADROP_ACTION_MODULE

address immutable SEADROP_ACTION_MODULE;

DEFAULT_SEADROP

address immutable DEFAULT_SEADROP;

Functions

onlySeaDropActionModule

modifier onlySeaDropActionModule();

constructor

constructor(address lensHub, address seaDropActionModule, address defaultSeaDrop);

initialize

function initialize(
    address owner,
    string calldata name,
    string calldata symbol,
    address[] calldata allowedSeaDrops,
    MultiConfigureStruct calldata config
) external onlySeaDropActionModule;

_validateInitializationData

function _validateInitializationData(address[] calldata allowedSeaDrops, MultiConfigureStruct calldata config)
    internal
    view;

updateAllowedSeaDrop

Update the allowed SeaDrop contracts. Only the owner or administrator can use this function.

function updateAllowedSeaDrop(address[] calldata allowedSeaDrop) external virtual override onlyOwner;

Parameters

NameTypeDescription
allowedSeaDropaddress[]The allowed SeaDrop addresses.

updatePublicDrop

Update the public drop data for this NFT contract on SeaDrop. Only the owner can use this function.

function updatePublicDrop(address seaDropImpl, PublicDrop calldata publicDrop) external virtual override;

Parameters

NameTypeDescription
seaDropImpladdressThe allowed SeaDrop contract.
publicDropPublicDropThe public drop data.

updateAllowedFeeRecipient

Update the allowed fee recipient for this NFT contract on SeaDrop. Only the owner can set the allowed fee recipient.

function updateAllowedFeeRecipient(address seaDropImpl, address feeRecipient, bool allowed) external virtual override;

Parameters

NameTypeDescription
seaDropImpladdressThe allowed SeaDrop contract.
feeRecipientaddressThe new fee recipient.
allowedboolIf the fee recipient is allowed.

updatePayer

Update the allowed payers for this NFT contract on SeaDrop. Only the owner can use this function.

function updatePayer(address seaDropImpl, address payer, bool allowed) external virtual override;

Parameters

NameTypeDescription
seaDropImpladdressThe allowed SeaDrop contract.
payeraddressThe payer to update.
allowedboolWhether the payer is allowed.

Errors

OnlySeaDropActionModule

error OnlySeaDropActionModule();

FeesDoNotCoverLensTreasury

error FeesDoNotCoverLensTreasury();

InvalidParams

error InvalidParams();