Skip to content

contract.Allowlist

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

Allowlist

Git Source

Inherits: NFTExtensionUpgradeable, SaleControlUpgradeable

State Variables

price

uint256 public price;

maxPerAddress

uint256 public maxPerAddress;

whitelistRoot

bytes32 public whitelistRoot;

title

string public title;

claimedByAddress

mapping(address => uint256) public claimedByAddress;

Functions

constructor

constructor() initializer;

initialize

function initialize(string memory _title, address _nft, bytes32 _whitelistRoot, uint256 _price, uint256 _maxPerAddress)
    public
    initializer;

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