Skip to content

contract.PresaleListExtension

Aleksey Bykhun edited this page Jan 18, 2023 · 1 revision

PresaleListExtension

Git Source

Inherits: NFTExtension, Ownable, SaleControl

State Variables

price

uint256 public price;

maxPerAddress

uint256 public maxPerAddress;

whitelistRoot

bytes32 public whitelistRoot;

claimedByAddress

mapping(address => uint256) public claimedByAddress;

Functions

constructor

constructor(address _nft, bytes32 _whitelistRoot, uint256 _price, uint256 _maxPerAddress)
    NFTExtension(_nft)
    SaleControl;

updatePrice

function updatePrice(uint256 _price) public onlyOwner;

updateMaxPerAddress

function updateMaxPerAddress(uint256 _maxPerAddress) public onlyOwner;

updateWhitelistRoot

function updateWhitelistRoot(bytes32 _whitelistRoot) public onlyOwner;

mint

function mint(uint256 nTokens, bytes32[] memory proof) external payable whenSaleStarted;

isWhitelisted

function isWhitelisted(bytes32 root, address receiver, bytes32[] memory proof) public pure returns (bool);
Clone this wiki locally