-
Notifications
You must be signed in to change notification settings - Fork 61
contract.PresaleListExtension
Aleksey Bykhun edited this page Jan 18, 2023
·
1 revision
Inherits: NFTExtension, Ownable, SaleControl
uint256 public price;uint256 public maxPerAddress;bytes32 public whitelistRoot;mapping(address => uint256) public claimedByAddress;constructor(address _nft, bytes32 _whitelistRoot, uint256 _price, uint256 _maxPerAddress)
NFTExtension(_nft)
SaleControl;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);