-
Notifications
You must be signed in to change notification settings - Fork 63
contract.OffchainAllowlistExtension
Aleksey Bykhun edited this page Jan 18, 2023
·
1 revision
Inherits: NFTExtension, Ownable, SaleControl, LimitedSupply
uint256 public price;
address public signer;
mapping(address => uint256) public claimedByAddress;
constructor(address _nft, address _signer, uint256 _price, uint256 _extensionSupply)
NFTExtension(_nft)
SaleControl
LimitedSupply(_extensionSupply);
function updatePrice(uint256 _price) public onlyOwner;
function updateSigner(address _signer) public onlyOwner;
function mint(uint256 amount, SignedAllowance calldata allowance) external payable whenSaleStarted;
function isValid(SignedAllowance calldata allowance) public view returns (bool);
function calculateDigest(address receiver, OffchainAllowlistExtension extension, uint96 amount)
public
pure
returns (bytes32);