// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.16; import "./interface/IWalletClaimCounter.sol"; abstract contract WalletClaimCounter is IWalletClaimCounter { /// @dev The max number of NFTs any wallet can claim. uint256 public maxWalletClaimCount; /// @dev Mapping from address => total number of NFTs a wallet has claimed. mapping(address => uint256) public walletClaimCount; /// @notice Lets a contract admin set a claim count for a wallet. /// @param _claimer address of claimer /// @param _count current count of claim for one wallet function setWalletClaimCount(address _claimer, uint256 _count) external override { walletClaimCount[_claimer] = _count; emit WalletClaimCountUpdated(_claimer, _count); } /// @notice Lets a contract admin set a maximum number of NFTs that can be claimed by any wallet. /// @param _count max claim for each wallet function setMaxWalletClaimCount(uint256 _count) external override { maxWalletClaimCount = _count; emit MaxWalletClaimCountUpdated(_count); } }