-
Notifications
You must be signed in to change notification settings - Fork 63
contract.DynamicPricePresaleListExtension
Aleksey Bykhun edited this page Jan 18, 2023
·
1 revision
Inherits: NFTExtension, Ownable, SaleControl, LimitedSupply
uint256 public pricePerOne;
uint256 public maxPerAddress;
bytes32 public whitelistRoot;
mapping(address => uint256) public claimedByAddress;
constructor(
address _nft,
bytes32 _whitelistRoot,
uint256 _pricePerOne,
uint256 _maxPerAddress,
uint256 _extensionSupply
) NFTExtension(_nft) SaleControl LimitedSupply(_extensionSupply);
function price(uint256 nTokens) public view returns (uint256);
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
whenLimitedSupplyNotReached(nTokens);
function isWhitelisted(bytes32 root, address receiver, bytes32[] memory proof) public pure returns (bool);