-
Notifications
You must be signed in to change notification settings - Fork 63
contract.Allowlist
Aleksey Bykhun edited this page Jan 18, 2023
·
1 revision
Inherits: NFTExtensionUpgradeable, SaleControlUpgradeable
uint256 public price;
uint256 public maxPerAddress;
bytes32 public whitelistRoot;
string public title;
mapping(address => uint256) public claimedByAddress;
constructor() initializer;
function initialize(string memory _title, address _nft, bytes32 _whitelistRoot, uint256 _price, uint256 _maxPerAddress)
public
initializer;
function updatePrice(uint256 _price) public onlyOwner;
function updateMaxPerAddress(uint256 _maxPerAddress) public onlyOwner;
function updateWhitelistRoot(bytes32 _whitelistRoot) public onlyOwner;
function mint(uint256 nTokens, bytes32[] memory proof) external payable whenSaleStarted;
function isWhitelisted(bytes32 root, address receiver, bytes32[] memory proof) public pure returns (bool);