ETH Price: $3,378.97 (-8.17%)
 

Overview

ETH Balance

1.2 ETH

Eth Value

$4,054.77 (@ $3,378.97/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Whitelist Mint213671532024-12-09 19:51:5929 days ago1733773919IN
0xDda7103F...32d55F32b
1.2 ETH0.0024635426.46211464
Set Allow List213671272024-12-09 19:46:4729 days ago1733773607IN
0xDda7103F...32d55F32b
0 ETH0.0006969223.13447852
Withdraw203716312024-07-23 20:29:59168 days ago1721766599IN
0xDda7103F...32d55F32b
0 ETH0.000157245.16492496
Set Approval For...201724352024-06-26 0:59:35195 days ago1719363575IN
0xDda7103F...32d55F32b
0 ETH0.000136662.96656995
Safe Transfer Fr...201083592024-06-17 1:53:59204 days ago1718589239IN
0xDda7103F...32d55F32b
0 ETH0.000234194.09178302
Whitelist Mint201083512024-06-17 1:52:23204 days ago1718589143IN
0xDda7103F...32d55F32b
1.2 ETH0.000404724.34721774
Set Allow List201075552024-06-16 23:12:59204 days ago1718579579IN
0xDda7103F...32d55F32b
0 ETH0.000127074.21832645
Transfer From200143792024-06-03 22:49:11217 days ago1717454951IN
0xDda7103F...32d55F32b
0 ETH0.000452618.3034121
Whitelist Mint200143632024-06-03 22:45:59217 days ago1717454759IN
0xDda7103F...32d55F32b
1.2 ETH0.000818628.62681435
Transfer From199099842024-05-20 8:35:59232 days ago1716194159IN
0xDda7103F...32d55F32b
0 ETH0.000142872.62048582
Whitelist Mint199099772024-05-20 8:34:35232 days ago1716194075IN
0xDda7103F...32d55F32b
1.2 ETH0.000287663.03148204
Set Allow List199090592024-05-20 5:29:59232 days ago1716182999IN
0xDda7103F...32d55F32b
0 ETH0.000121954.04826464
Set Allow List198313682024-05-09 8:43:59243 days ago1715244239IN
0xDda7103F...32d55F32b
0 ETH0.000220267.311828
Set Allow List198307052024-05-09 6:30:35243 days ago1715236235IN
0xDda7103F...32d55F32b
0 ETH0.000187136.21183793
Set Allow List198059762024-05-05 19:27:47247 days ago1714937267IN
0xDda7103F...32d55F32b
0 ETH0.000218797.26275259
Set Allow List197970942024-05-04 13:38:59248 days ago1714829939IN
0xDda7103F...32d55F32b
0 ETH0.000274299.10523693
Set Allow List197926442024-05-03 22:43:59248 days ago1714776239IN
0xDda7103F...32d55F32b
0 ETH0.000109684.54577427
Set Approval For...197904622024-05-03 15:24:35249 days ago1714749875IN
0xDda7103F...32d55F32b
0 ETH0.0006761114.6491785
Withdraw197903812024-05-03 15:08:23249 days ago1714748903IN
0xDda7103F...32d55F32b
0 ETH0.0008548236
Set Allow List197899372024-05-03 13:38:47249 days ago1714743527IN
0xDda7103F...32d55F32b
0 ETH0.0003118212.9295212
Withdraw197865662024-05-03 2:19:59249 days ago1714702799IN
0xDda7103F...32d55F32b
0 ETH0.000189417.97699048
Set Approval For...197865592024-05-03 2:18:35249 days ago1714702715IN
0xDda7103F...32d55F32b
0 ETH0.000205387.82641829
Set Approval For...197865322024-05-03 2:12:59249 days ago1714702379IN
0xDda7103F...32d55F32b
0 ETH0.000159336.57282792
Set Approval For...197865132024-05-03 2:08:59249 days ago1714702139IN
0xDda7103F...32d55F32b
0 ETH0.00029616.41562415
Set Allow List197864402024-05-03 1:54:23249 days ago1714701263IN
0xDda7103F...32d55F32b
0 ETH0.000131885.49848587
View all transactions

Latest 20 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
203716312024-07-23 20:29:59168 days ago1721766599
0xDda7103F...32d55F32b
3.6 ETH
197853242024-05-02 22:09:59250 days ago1714687799
0xDda7103F...32d55F32b
3.6 ETH
196776262024-04-17 20:37:35265 days ago1713386255
0xDda7103F...32d55F32b
3.6 ETH
194974992024-03-23 13:08:35290 days ago1711199315
0xDda7103F...32d55F32b
7.2 ETH
190654452024-01-22 23:13:23350 days ago1705965203
0xDda7103F...32d55F32b
1.2 ETH
189652282024-01-08 22:21:59364 days ago1704752519
0xDda7103F...32d55F32b
1.2 ETH
187660332023-12-11 22:47:35392 days ago1702334855
0xDda7103F...32d55F32b
4.5 ETH
183930392023-10-20 17:31:47445 days ago1697823107
0xDda7103F...32d55F32b
7.5 ETH
171671302023-05-01 16:21:23617 days ago1682958083
0xDda7103F...32d55F32b
1.5 ETH
171038742023-04-22 19:09:23626 days ago1682190563
0xDda7103F...32d55F32b
3 ETH
169856742023-04-05 23:02:47642 days ago1680735767
0xDda7103F...32d55F32b
1.5 ETH
168367412023-03-16 0:06:11663 days ago1678925171
0xDda7103F...32d55F32b
3 ETH
166703472023-02-20 14:27:47687 days ago1676903267
0xDda7103F...32d55F32b
3 ETH
166376592023-02-16 0:16:59691 days ago1676506619
0xDda7103F...32d55F32b
3 ETH
165564722023-02-04 16:01:11703 days ago1675526471
0xDda7103F...32d55F32b
3 ETH
165094712023-01-29 2:23:23709 days ago1674959003
0xDda7103F...32d55F32b
4.5 ETH
165059352023-01-28 14:32:59710 days ago1674916379
0xDda7103F...32d55F32b
3 ETH
164642492023-01-22 18:51:11716 days ago1674413471
0xDda7103F...32d55F32b
6 ETH
160919392022-12-01 19:07:35768 days ago1669921655
0xDda7103F...32d55F32b
10.5 ETH
159852822022-11-16 21:32:11783 days ago1668634331
0xDda7103F...32d55F32b
4.5 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AffinityCollective

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : AffinityCollective.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {ERC721} from "solmate/tokens/ERC721.sol";
import "openzeppelin/contracts/token/common/ERC2981.sol";
import {Ownable} from "openzeppelin/contracts/access/Ownable.sol";
import {Strings} from "openzeppelin/contracts/utils/Strings.sol";
import "openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./MerkleDistributor.sol";

error MintPriceNotPaid();
error PublicSaleNotActive();
error IsNotAdmin();
error MaxSupply();
error MaxMintPerAddress();
error NonExistentTokenURI();
error WithdrawTransfer();

contract AffinityCollective is
    ERC721,
    ERC2981,
    Ownable,
    MerkleDistributor,
    ReentrancyGuard
{
    using Strings for uint256;
    uint256 public constant TOTAL_SUPPLY = 1000;
    address affinityWallet;
    bool public publiSaleActive;
    uint256 public MAX_MINT_PER_ADDRESS;
    uint256 public WHITELIST_MINT_PRICE;
    uint256 public PUBLIC_MINT_PRICE;
    uint256 public currentTokenId;
    string public baseURI;

    /**
     * @notice premint founder NFT's
     */

    constructor(
        uint256 _publicMintPrice,
        uint256 _whitelistMintPrice,
        string memory _baseURI,
        address _admin
    ) ERC721("Affinity Collective", "AFFINITY") {
        baseURI = _baseURI;
        publiSaleActive = false;
        PUBLIC_MINT_PRICE = _publicMintPrice;
        WHITELIST_MINT_PRICE = _whitelistMintPrice;
        MAX_MINT_PER_ADDRESS = 5;
        affinityWallet = _admin;
    }

    /**
     * @dev checks to see whether publiSaleActive is true
     */
    modifier isPublicSaleActive() {
        if (!publiSaleActive) revert PublicSaleNotActive();
        _;
    }

    modifier isAdmin() {
        if (msg.sender != affinityWallet) revert IsNotAdmin();
        _;
    }

    /**
     * @notice airdrop founding members NFT's
     */
    function airdropFounders(address _foundersAirdrop) external onlyOwner {
        require(currentTokenId == 0, "Airdrop already completed");
        uint256 index;
        unchecked {
            for (index = 0; index < 50; index++) {
                _safeMint(_foundersAirdrop, index);
            }
        }
        currentTokenId = index;
    }

    /**
     * @notice Public mint
     */
    function mint(uint256 _amount)
        external
        payable
        nonReentrant
        isPublicSaleActive
    {
        if (_amount > MAX_MINT_PER_ADDRESS) revert MaxMintPerAddress();
        if (currentTokenId >= TOTAL_SUPPLY) revert MaxSupply();
        if (msg.value != PUBLIC_MINT_PRICE * _amount) revert MintPriceNotPaid();
        unchecked {
            for (uint256 index = 0; index < _amount; index++) {
                _safeMint(msg.sender, currentTokenId);
                currentTokenId++;
            }
        }
    }

    /**
     * @notice Public mint
     */
    function adminMint(uint256 _amount, address _to)
        external
        nonReentrant
        isAdmin
    {
        if (currentTokenId >= TOTAL_SUPPLY) revert MaxSupply();
        unchecked {
            for (uint256 index = 0; index < _amount; index++) {
                _safeMint(_to, currentTokenId);
                currentTokenId++;
            }
        }
    }

    /**
     * @notice White list mint
     */
    function whitelistMint(
        address _to,
        uint256 _amount,
        bytes32[] memory _proof
    )
        external
        payable
        nonReentrant
        isAllowListActive
        ableToClaim(_to, _proof)
        tokensAvailable(_to, _amount, MAX_MINT_PER_ADDRESS)
    {
        if (msg.value != WHITELIST_MINT_PRICE * _amount)
            revert MintPriceNotPaid();
        if (currentTokenId + _amount > TOTAL_SUPPLY) revert MaxSupply();
        for (uint256 index = 0; index < _amount; index++) {
            _safeMint(_to, currentTokenId);
            currentTokenId++;
        }
    }

    /**
     * @notice Return token uri of the given token id.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        if (ownerOf(tokenId) == address(0)) {
            revert NonExistentTokenURI();
        }
        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    /**
     * @notice Return current token count.
     */
    function totalSupply() public view returns (uint256) {
        return currentTokenId;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC2981)
        returns (bool)
    {
        return
            ERC721.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);
    }

    /**
     * @notice Set the token URI's.
     */
    function setTokenURI(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    /**
     * @dev sets the merkle root for the allow list
     */
    function setAllowList(bytes32 merkleRoot) external onlyOwner {
        _setAllowList(merkleRoot);
    }

    /**
     * @dev sets mint price
     */
    function setMintPrice(uint256 _mintPrice, uint256 _wmintPrice)
        external
        onlyOwner
    {
        PUBLIC_MINT_PRICE = _mintPrice;
        WHITELIST_MINT_PRICE = _wmintPrice;
    }

    /**
     * @dev sets max mint per address
     */
    function setMintPerWallet(uint256 _maxMint) external onlyOwner {
        MAX_MINT_PER_ADDRESS = _maxMint;
    }

    /**
     * @dev allows minting from a list of addresses
     */
    function setAllowListActive(bool allowListActive) external onlyOwner {
        _setAllowListActive(allowListActive);
    }

    /**
     * @dev Enable public sale
     */
    function setPublicSale(bool state) external onlyOwner {
        publiSaleActive = state;
    }

    /**
     * @dev Set admin wallet
     */
    function setAdmin(address _admin) external onlyOwner {
        affinityWallet = _admin;
    }

    /**
     *  @dev Set royalties
     */
    function setRoyaltyInfo(address receiver, uint96 feeBasisPoints)
        external
        onlyOwner
    {
        _setDefaultRoyalty(receiver, feeBasisPoints);
    }

    /**
     * @dev Withdraw contract balance.
     */
    function withdraw() external isAdmin {
        uint256 balance = address(this).balance;
        (bool transferTx, ) = affinityWallet.call{value: balance}("");
        if (!transferTx) {
            revert WithdrawTransfer();
        }
    }
}

File 2 of 13 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 3 of 13 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 4 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 6 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 7 of 13 : MerkleDistributor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import 'openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

contract MerkleDistributor {
    bytes32 public merkleRoot;
    bool public allowListActive = false;

    mapping(address => uint256) private _allowListNumMinted;

    /**
     * @dev emitted when an account has claimed some tokens
     */
    event Claimed(address indexed account, uint256 amount);

    /**
     * @dev emitted when the merkle root has changed
     */
    event MerkleRootChanged(bytes32 merkleRoot);

    /**
     * @dev throws when allow list is not active
     */
    modifier isAllowListActive() {
        require(allowListActive, 'Allow list is not active');
        _;
    }

    /**
     * @dev throws when number of tokens exceeds total token amount
     */
    modifier tokensAvailable(
        address to,
        uint256 numberOfTokens,
        uint256 totalTokenAmount
    ) {
        uint256 claimed = getAllowListMinted(to);
        require(claimed + numberOfTokens <= totalTokenAmount, 'Purchase would exceed number of tokens allotted');
        _;
    }

    /**
     * @dev throws when parameters sent by claimer is incorrect
     */
    modifier ableToClaim(address claimer, bytes32[] memory proof) {
        require(onAllowList(claimer, proof), 'Not on allow list');
        _;
    }

    /**
     * @dev sets the state of the allow list
     */
    function _setAllowListActive(bool allowListActive_) internal virtual {
        allowListActive = allowListActive_;
    }

    /**
     * @dev sets the merkle root
     */
    function _setAllowList(bytes32 merkleRoot_) internal virtual {
        merkleRoot = merkleRoot_;

        emit MerkleRootChanged(merkleRoot);
    }

    /**
     * @dev adds the number of tokens to the incoming address
     */
    function _setAllowListMinted(address to, uint256 numberOfTokens) internal virtual {
        _allowListNumMinted[to] += numberOfTokens;

        emit Claimed(to, numberOfTokens);
    }

    /**
     * @dev gets the number of tokens from the address
     */
    function getAllowListMinted(address from) public view virtual returns (uint256) {
        return _allowListNumMinted[from];
    }

    /**
     * @dev checks if the claimer has a valid proof
     */
    function onAllowList(address claimer, bytes32[] memory proof) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(claimer));
        return MerkleProof.verify(proof, merkleRoot, leaf);
    }
}

File 8 of 13 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 9 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 11 of 13 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 12 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_publicMintPrice","type":"uint256"},{"internalType":"uint256","name":"_whitelistMintPrice","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"IsNotAdmin","type":"error"},{"inputs":[],"name":"MaxMintPerAddress","type":"error"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"MintPriceNotPaid","type":"error"},{"inputs":[],"name":"NonExistentTokenURI","type":"error"},{"inputs":[],"name":"PublicSaleNotActive","type":"error"},{"inputs":[],"name":"WithdrawTransfer","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_foundersAirdrop","type":"address"}],"name":"airdropFounders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getAllowListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publiSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowListActive","type":"bool"}],"name":"setAllowListActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"setMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_wmintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805460ff191690553480156200001b57600080fd5b5060405162002752380380620027528339810160408190526200003e9162000257565b604080518082018252601381527f416666696e69747920436f6c6c65637469766500000000000000000000000000602080830191825283518085019094526008845267414646494e49545960c01b908401528151919291620000a3916000916200017e565b508051620000b99060019060208401906200017e565b505050620000d6620000d06200012860201b60201c565b6200012c565b6001600c558151620000f09060129060208501906200017e565b50600d8054601095909555600f939093556005600e556001600160a01b03166001600160a81b03199093169290921790555062000399565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200018c906200035d565b90600052602060002090601f016020900481019282620001b05760008555620001fb565b82601f10620001cb57805160ff1916838001178555620001fb565b82800160010185558215620001fb579182015b82811115620001fb578251825591602001919060010190620001de565b50620002099291506200020d565b5090565b5b808211156200020957600081556001016200020e565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200025257600080fd5b919050565b600080600080608085870312156200026e57600080fd5b845160208087015160408801519296509450906001600160401b03808211156200029757600080fd5b818801915088601f830112620002ac57600080fd5b815181811115620002c157620002c162000224565b604051601f8201601f19908116603f01168101908382118183101715620002ec57620002ec62000224565b816040528281528b868487010111156200030557600080fd5b600093505b828410156200032957848401860151818501870152928501926200030a565b828411156200033b5760008684830101525b80975050505050505062000352606086016200023a565b905092959194509250565b600181811c908216806200037257607f821691505b6020821081036200039357634e487b7160e01b600052602260045260246000fd5b50919050565b6123a980620003a96000396000f3fe6080604052600436106102505760003560e01c80636352211e11610139578063a0712d68116100b6578063c87b56dd1161007a578063c87b56dd146106ca578063e05eb28b146106ea578063e0df5b6f1461070b578063e985e9c51461072b578063f2fde38b14610766578063fc0840ed1461078657600080fd5b8063a0712d6814610641578063a22cb46514610654578063aca9938d14610674578063b32c56801461068a578063b88d4fde146106aa57600080fd5b8063715018a6116100fd578063715018a6146105c357806384584d07146105d85780638da5cb5b146105f8578063902d55a51461061657806395d89b411461062c57600080fd5b80636352211e146105385780636bde2627146105585780636c0360eb1461056e578063704b6c021461058357806370a08231146105a357600080fd5b806323b872dd116101d25780633ccfd60b116101965780633ccfd60b1461048057806342842e0e14610495578063457dbf21146104b55780634b11faaf146104cf5780635aca1bb6146104e25780635ea1ef521461050257600080fd5b806323b872dd146103d55780632a55205a146103f55780632eb4a7ab146104345780633a73c58d1461044a5780633acd6cb21461046a57600080fd5b8063081812fc11610219578063081812fc14610312578063095ea7b3146103605780630dc28efe1461038057806310de19d1146103a057806318160ddd146103c057600080fd5b80629a9b7b1461025557806301ffc9a71461027e57806302fa7c47146102ae5780630442bfa8146102d057806306fdde03146102f0575b600080fd5b34801561026157600080fd5b5061026b60115481565b6040519081526020015b60405180910390f35b34801561028a57600080fd5b5061029e610299366004611c4d565b6107a6565b6040519015158152602001610275565b3480156102ba57600080fd5b506102ce6102c9366004611c81565b6107c6565b005b3480156102dc57600080fd5b506102ce6102eb366004611cc4565b6107dc565b3480156102fc57600080fd5b506103056107ef565b6040516102759190611d16565b34801561031e57600080fd5b5061034861032d366004611d49565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610275565b34801561036c57600080fd5b506102ce61037b366004611d62565b61087d565b34801561038c57600080fd5b506102ce61039b366004611d8c565b610964565b3480156103ac57600080fd5b506102ce6103bb366004611d49565b6109ef565b3480156103cc57600080fd5b5060115461026b565b3480156103e157600080fd5b506102ce6103f0366004611db8565b6109fc565b34801561040157600080fd5b50610415610410366004611cc4565b610bc3565b604080516001600160a01b039093168352602083019190915201610275565b34801561044057600080fd5b5061026b60095481565b34801561045657600080fd5b506102ce610465366004611e04565b610c6f565b34801561047657600080fd5b5061026b600e5481565b34801561048c57600080fd5b506102ce610c8b565b3480156104a157600080fd5b506102ce6104b0366004611db8565b610d2e565b3480156104c157600080fd5b50600a5461029e9060ff1681565b6102ce6104dd366004611ee6565b610e03565b3480156104ee57600080fd5b506102ce6104fd366004611e04565b610fef565b34801561050e57600080fd5b5061026b61051d366004611f3d565b6001600160a01b03166000908152600b602052604090205490565b34801561054457600080fd5b50610348610553366004611d49565b611015565b34801561056457600080fd5b5061026b60105481565b34801561057a57600080fd5b5061030561106c565b34801561058f57600080fd5b506102ce61059e366004611f3d565b611079565b3480156105af57600080fd5b5061026b6105be366004611f3d565b6110a3565b3480156105cf57600080fd5b506102ce611106565b3480156105e457600080fd5b506102ce6105f3366004611d49565b61111a565b34801561060457600080fd5b506008546001600160a01b0316610348565b34801561062257600080fd5b5061026b6103e881565b34801561063857600080fd5b5061030561112b565b6102ce61064f366004611d49565b611138565b34801561066057600080fd5b506102ce61066f366004611f58565b611212565b34801561068057600080fd5b5061026b600f5481565b34801561069657600080fd5b5061029e6106a5366004611f82565b61127e565b3480156106b657600080fd5b506102ce6106c5366004611fd0565b6112cf565b3480156106d657600080fd5b506103056106e5366004611d49565b611394565b3480156106f657600080fd5b50600d5461029e90600160a01b900460ff1681565b34801561071757600080fd5b506102ce61072636600461206b565b6113fa565b34801561073757600080fd5b5061029e610746366004612100565b600560209081526000928352604080842090915290825290205460ff1681565b34801561077257600080fd5b506102ce610781366004611f3d565b611415565b34801561079257600080fd5b506102ce6107a1366004611f3d565b61148b565b60006107b182611507565b806107c057506107c082611555565b92915050565b6107ce61158a565b6107d882826115e4565b5050565b6107e461158a565b601091909155600f55565b600080546107fc9061212a565b80601f01602080910402602001604051908101604052809291908181526020018280546108289061212a565b80156108755780601f1061084a57610100808354040283529160200191610875565b820191906000526020600020905b81548152906001019060200180831161085857829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316338114806108c657506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6109085760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61096c6116e1565b600d546001600160a01b031633146109975760405163088f2b9960e21b815260040160405180910390fd5b6103e8601154106109bb57604051632cdb04a160e21b815260040160405180910390fd5b60005b828110156109e4576109d28260115461173a565b601180546001908101909155016109be565b506107d86001600c55565b6109f761158a565b600e55565b6000818152600260205260409020546001600160a01b03848116911614610a525760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016108ff565b6001600160a01b038216610a9c5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016108ff565b336001600160a01b0384161480610ad657506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610af757506000818152600460205260409020546001600160a01b031633145b610b345760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016108ff565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c385750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610c57906001600160601b03168761217a565b610c619190612199565b915196919550909350505050565b610c7761158a565b600a805460ff191682151517905550565b50565b600d546001600160a01b03163314610cb65760405163088f2b9960e21b815260040160405180910390fd5b600d5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610d07576040519150601f19603f3d011682016040523d82523d6000602084013e610d0c565b606091505b50509050806107d85760405163d23a9e8960e01b815260040160405180910390fd5b610d398383836109fc565b6001600160a01b0382163b1580610de25750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610db2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd691906121bb565b6001600160e01b031916145b610dfe5760405162461bcd60e51b81526004016108ff906121d8565b505050565b610e0b6116e1565b600a5460ff16610e5d5760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f7420616374697665000000000000000060448201526064016108ff565b8281610e69828261127e565b610ea95760405162461bcd60e51b8152602060048201526011602482015270139bdd081bdb88185b1b1bddc81b1a5cdd607a1b60448201526064016108ff565b8484600e546000610ecf846001600160a01b03166000908152600b602052604090205490565b905081610edc8483612202565b1115610f425760405162461bcd60e51b815260206004820152602f60248201527f507572636861736520776f756c6420657863656564206e756d626572206f662060448201526e1d1bdad95b9cc8185b1b1bdd1d1959608a1b60648201526084016108ff565b87600f54610f50919061217a565b3414610f6f576040516310f0c8f160e11b815260040160405180910390fd5b6103e888601154610f809190612202565b1115610f9f57604051632cdb04a160e21b815260040160405180910390fd5b60005b88811015610fde57610fb68a60115461173a565b60118054906000610fc68361221a565b91905055508080610fd69061221a565b915050610fa2565b50505050505050610dfe6001600c55565b610ff761158a565b600d8054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260409020546001600160a01b0316806110675760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016108ff565b919050565b601280546107fc9061212a565b61108161158a565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166110ea5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016108ff565b506001600160a01b031660009081526003602052604090205490565b61110e61158a565b6111186000611806565b565b61112261158a565b610c8881611858565b600180546107fc9061212a565b6111406116e1565b600d54600160a01b900460ff1661116a576040516331f423c160e21b815260040160405180910390fd5b600e5481111561118d576040516369f0a9d960e11b815260040160405180910390fd5b6103e8601154106111b157604051632cdb04a160e21b815260040160405180910390fd5b806010546111bf919061217a565b34146111de576040516310f0c8f160e11b815260040160405180910390fd5b60005b81811015611207576111f53360115461173a565b601180546001908101909155016111e1565b50610c886001600c55565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506112c78360095483611893565b949350505050565b6112da8585856109fc565b6001600160a01b0384163b15806113715750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906113229033908a90899089908990600401612233565b6020604051808303816000875af1158015611341573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136591906121bb565b6001600160e01b031916145b61138d5760405162461bcd60e51b81526004016108ff906121d8565b5050505050565b606060006113a183611015565b6001600160a01b0316036113c85760405163d872946b60e01b815260040160405180910390fd5b60126113d3836118a9565b6040516020016113e49291906122a3565b6040516020818303038152906040529050919050565b61140261158a565b80516107d8906012906020840190611b9e565b61141d61158a565b6001600160a01b0381166114825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ff565b610c8881611806565b61149361158a565b601154156114e35760405162461bcd60e51b815260206004820152601960248201527f41697264726f7020616c726561647920636f6d706c657465640000000000000060448201526064016108ff565b60005b6032811015611501576114f9828261173a565b6001016114e6565b60115550565b60006301ffc9a760e01b6001600160e01b03198316148061153857506380ac58cd60e01b6001600160e01b03198316145b806107c05750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806107c057506301ffc9a760e01b6001600160e01b03198316146107c0565b6008546001600160a01b031633146111185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ff565b6127106001600160601b03821611156116525760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108ff565b6001600160a01b0382166116a85760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016108ff565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6002600c54036117335760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108ff565b6002600c55565b611744828261193c565b6001600160a01b0382163b15806117ea5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156117ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117de91906121bb565b6001600160e01b031916145b6107d85760405162461bcd60e51b81526004016108ff906121d8565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60098190556040518181527f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c9060200160405180910390a150565b6000826118a08584611a47565b14949350505050565b606060006118b683611a94565b600101905060008167ffffffffffffffff8111156118d6576118d6611e1f565b6040519080825280601f01601f191660200182016040528015611900576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461190a57509392505050565b6001600160a01b0382166119865760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016108ff565b6000818152600260205260409020546001600160a01b0316156119dc5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016108ff565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611a8c57611a7882868381518110611a6b57611a6b61235d565b6020026020010151611b6c565b915080611a848161221a565b915050611a4c565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ad35772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611aff576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611b1d57662386f26fc10000830492506010015b6305f5e1008310611b35576305f5e100830492506008015b6127108310611b4957612710830492506004015b60648310611b5b576064830492506002015b600a83106107c05760010192915050565b6000818310611b88576000828152602084905260409020611b97565b60008381526020839052604090205b9392505050565b828054611baa9061212a565b90600052602060002090601f016020900481019282611bcc5760008555611c12565b82601f10611be557805160ff1916838001178555611c12565b82800160010185558215611c12579182015b82811115611c12578251825591602001919060010190611bf7565b50611c1e929150611c22565b5090565b5b80821115611c1e5760008155600101611c23565b6001600160e01b031981168114610c8857600080fd5b600060208284031215611c5f57600080fd5b8135611b9781611c37565b80356001600160a01b038116811461106757600080fd5b60008060408385031215611c9457600080fd5b611c9d83611c6a565b915060208301356001600160601b0381168114611cb957600080fd5b809150509250929050565b60008060408385031215611cd757600080fd5b50508035926020909101359150565b60005b83811015611d01578181015183820152602001611ce9565b83811115611d10576000848401525b50505050565b6020815260008251806020840152611d35816040850160208701611ce6565b601f01601f19169190910160400192915050565b600060208284031215611d5b57600080fd5b5035919050565b60008060408385031215611d7557600080fd5b611d7e83611c6a565b946020939093013593505050565b60008060408385031215611d9f57600080fd5b82359150611daf60208401611c6a565b90509250929050565b600080600060608486031215611dcd57600080fd5b611dd684611c6a565b9250611de460208501611c6a565b9150604084013590509250925092565b8035801515811461106757600080fd5b600060208284031215611e1657600080fd5b611b9782611df4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611e5e57611e5e611e1f565b604052919050565b600082601f830112611e7757600080fd5b8135602067ffffffffffffffff821115611e9357611e93611e1f565b8160051b611ea2828201611e35565b9283528481018201928281019087851115611ebc57600080fd5b83870192505b84831015611edb57823582529183019190830190611ec2565b979650505050505050565b600080600060608486031215611efb57600080fd5b611f0484611c6a565b925060208401359150604084013567ffffffffffffffff811115611f2757600080fd5b611f3386828701611e66565b9150509250925092565b600060208284031215611f4f57600080fd5b611b9782611c6a565b60008060408385031215611f6b57600080fd5b611f7483611c6a565b9150611daf60208401611df4565b60008060408385031215611f9557600080fd5b611f9e83611c6a565b9150602083013567ffffffffffffffff811115611fba57600080fd5b611fc685828601611e66565b9150509250929050565b600080600080600060808688031215611fe857600080fd5b611ff186611c6a565b9450611fff60208701611c6a565b935060408601359250606086013567ffffffffffffffff8082111561202357600080fd5b818801915088601f83011261203757600080fd5b81358181111561204657600080fd5b89602082850101111561205857600080fd5b9699959850939650602001949392505050565b6000602080838503121561207e57600080fd5b823567ffffffffffffffff8082111561209657600080fd5b818501915085601f8301126120aa57600080fd5b8135818111156120bc576120bc611e1f565b6120ce601f8201601f19168501611e35565b915080825286848285010111156120e457600080fd5b8084840185840137600090820190930192909252509392505050565b6000806040838503121561211357600080fd5b61211c83611c6a565b9150611daf60208401611c6a565b600181811c9082168061213e57607f821691505b60208210810361215e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561219457612194612164565b500290565b6000826121b657634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156121cd57600080fd5b8151611b9781611c37565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6000821982111561221557612215612164565b500190565b60006001820161222c5761222c612164565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008151612299818560208601611ce6565b9290920192915050565b600080845481600182811c9150808316806122bf57607f831692505b602080841082036122de57634e487b7160e01b86526022600452602486fd5b8180156122f2576001811461230357612330565b60ff19861689528489019650612330565b60008b81526020902060005b868110156123285781548b82015290850190830161230f565b505084890196505b5050505050506123546123438286612287565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052603260045260246000fdfea264697066735822122044da2d11a843efd62b516fd618be572a4878fa00bd11628071857a090a2e067064736f6c634300080d003300000000000000000000000000000000000000000000000029a2241af62c000000000000000000000000000000000000000000000000000014d1120d7b160000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000009c4b5eb1e85153e03e946362565e648240fe49d0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656968366c35716d686a3579696b66666d7870786d78616477793434756b323275326f6d6532636267777a346e7a73346574617178652f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102505760003560e01c80636352211e11610139578063a0712d68116100b6578063c87b56dd1161007a578063c87b56dd146106ca578063e05eb28b146106ea578063e0df5b6f1461070b578063e985e9c51461072b578063f2fde38b14610766578063fc0840ed1461078657600080fd5b8063a0712d6814610641578063a22cb46514610654578063aca9938d14610674578063b32c56801461068a578063b88d4fde146106aa57600080fd5b8063715018a6116100fd578063715018a6146105c357806384584d07146105d85780638da5cb5b146105f8578063902d55a51461061657806395d89b411461062c57600080fd5b80636352211e146105385780636bde2627146105585780636c0360eb1461056e578063704b6c021461058357806370a08231146105a357600080fd5b806323b872dd116101d25780633ccfd60b116101965780633ccfd60b1461048057806342842e0e14610495578063457dbf21146104b55780634b11faaf146104cf5780635aca1bb6146104e25780635ea1ef521461050257600080fd5b806323b872dd146103d55780632a55205a146103f55780632eb4a7ab146104345780633a73c58d1461044a5780633acd6cb21461046a57600080fd5b8063081812fc11610219578063081812fc14610312578063095ea7b3146103605780630dc28efe1461038057806310de19d1146103a057806318160ddd146103c057600080fd5b80629a9b7b1461025557806301ffc9a71461027e57806302fa7c47146102ae5780630442bfa8146102d057806306fdde03146102f0575b600080fd5b34801561026157600080fd5b5061026b60115481565b6040519081526020015b60405180910390f35b34801561028a57600080fd5b5061029e610299366004611c4d565b6107a6565b6040519015158152602001610275565b3480156102ba57600080fd5b506102ce6102c9366004611c81565b6107c6565b005b3480156102dc57600080fd5b506102ce6102eb366004611cc4565b6107dc565b3480156102fc57600080fd5b506103056107ef565b6040516102759190611d16565b34801561031e57600080fd5b5061034861032d366004611d49565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610275565b34801561036c57600080fd5b506102ce61037b366004611d62565b61087d565b34801561038c57600080fd5b506102ce61039b366004611d8c565b610964565b3480156103ac57600080fd5b506102ce6103bb366004611d49565b6109ef565b3480156103cc57600080fd5b5060115461026b565b3480156103e157600080fd5b506102ce6103f0366004611db8565b6109fc565b34801561040157600080fd5b50610415610410366004611cc4565b610bc3565b604080516001600160a01b039093168352602083019190915201610275565b34801561044057600080fd5b5061026b60095481565b34801561045657600080fd5b506102ce610465366004611e04565b610c6f565b34801561047657600080fd5b5061026b600e5481565b34801561048c57600080fd5b506102ce610c8b565b3480156104a157600080fd5b506102ce6104b0366004611db8565b610d2e565b3480156104c157600080fd5b50600a5461029e9060ff1681565b6102ce6104dd366004611ee6565b610e03565b3480156104ee57600080fd5b506102ce6104fd366004611e04565b610fef565b34801561050e57600080fd5b5061026b61051d366004611f3d565b6001600160a01b03166000908152600b602052604090205490565b34801561054457600080fd5b50610348610553366004611d49565b611015565b34801561056457600080fd5b5061026b60105481565b34801561057a57600080fd5b5061030561106c565b34801561058f57600080fd5b506102ce61059e366004611f3d565b611079565b3480156105af57600080fd5b5061026b6105be366004611f3d565b6110a3565b3480156105cf57600080fd5b506102ce611106565b3480156105e457600080fd5b506102ce6105f3366004611d49565b61111a565b34801561060457600080fd5b506008546001600160a01b0316610348565b34801561062257600080fd5b5061026b6103e881565b34801561063857600080fd5b5061030561112b565b6102ce61064f366004611d49565b611138565b34801561066057600080fd5b506102ce61066f366004611f58565b611212565b34801561068057600080fd5b5061026b600f5481565b34801561069657600080fd5b5061029e6106a5366004611f82565b61127e565b3480156106b657600080fd5b506102ce6106c5366004611fd0565b6112cf565b3480156106d657600080fd5b506103056106e5366004611d49565b611394565b3480156106f657600080fd5b50600d5461029e90600160a01b900460ff1681565b34801561071757600080fd5b506102ce61072636600461206b565b6113fa565b34801561073757600080fd5b5061029e610746366004612100565b600560209081526000928352604080842090915290825290205460ff1681565b34801561077257600080fd5b506102ce610781366004611f3d565b611415565b34801561079257600080fd5b506102ce6107a1366004611f3d565b61148b565b60006107b182611507565b806107c057506107c082611555565b92915050565b6107ce61158a565b6107d882826115e4565b5050565b6107e461158a565b601091909155600f55565b600080546107fc9061212a565b80601f01602080910402602001604051908101604052809291908181526020018280546108289061212a565b80156108755780601f1061084a57610100808354040283529160200191610875565b820191906000526020600020905b81548152906001019060200180831161085857829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316338114806108c657506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6109085760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61096c6116e1565b600d546001600160a01b031633146109975760405163088f2b9960e21b815260040160405180910390fd5b6103e8601154106109bb57604051632cdb04a160e21b815260040160405180910390fd5b60005b828110156109e4576109d28260115461173a565b601180546001908101909155016109be565b506107d86001600c55565b6109f761158a565b600e55565b6000818152600260205260409020546001600160a01b03848116911614610a525760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016108ff565b6001600160a01b038216610a9c5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016108ff565b336001600160a01b0384161480610ad657506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610af757506000818152600460205260409020546001600160a01b031633145b610b345760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016108ff565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c385750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610c57906001600160601b03168761217a565b610c619190612199565b915196919550909350505050565b610c7761158a565b600a805460ff191682151517905550565b50565b600d546001600160a01b03163314610cb65760405163088f2b9960e21b815260040160405180910390fd5b600d5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114610d07576040519150601f19603f3d011682016040523d82523d6000602084013e610d0c565b606091505b50509050806107d85760405163d23a9e8960e01b815260040160405180910390fd5b610d398383836109fc565b6001600160a01b0382163b1580610de25750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610db2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd691906121bb565b6001600160e01b031916145b610dfe5760405162461bcd60e51b81526004016108ff906121d8565b505050565b610e0b6116e1565b600a5460ff16610e5d5760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f7420616374697665000000000000000060448201526064016108ff565b8281610e69828261127e565b610ea95760405162461bcd60e51b8152602060048201526011602482015270139bdd081bdb88185b1b1bddc81b1a5cdd607a1b60448201526064016108ff565b8484600e546000610ecf846001600160a01b03166000908152600b602052604090205490565b905081610edc8483612202565b1115610f425760405162461bcd60e51b815260206004820152602f60248201527f507572636861736520776f756c6420657863656564206e756d626572206f662060448201526e1d1bdad95b9cc8185b1b1bdd1d1959608a1b60648201526084016108ff565b87600f54610f50919061217a565b3414610f6f576040516310f0c8f160e11b815260040160405180910390fd5b6103e888601154610f809190612202565b1115610f9f57604051632cdb04a160e21b815260040160405180910390fd5b60005b88811015610fde57610fb68a60115461173a565b60118054906000610fc68361221a565b91905055508080610fd69061221a565b915050610fa2565b50505050505050610dfe6001600c55565b610ff761158a565b600d8054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260409020546001600160a01b0316806110675760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016108ff565b919050565b601280546107fc9061212a565b61108161158a565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166110ea5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016108ff565b506001600160a01b031660009081526003602052604090205490565b61110e61158a565b6111186000611806565b565b61112261158a565b610c8881611858565b600180546107fc9061212a565b6111406116e1565b600d54600160a01b900460ff1661116a576040516331f423c160e21b815260040160405180910390fd5b600e5481111561118d576040516369f0a9d960e11b815260040160405180910390fd5b6103e8601154106111b157604051632cdb04a160e21b815260040160405180910390fd5b806010546111bf919061217a565b34146111de576040516310f0c8f160e11b815260040160405180910390fd5b60005b81811015611207576111f53360115461173a565b601180546001908101909155016111e1565b50610c886001600c55565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506112c78360095483611893565b949350505050565b6112da8585856109fc565b6001600160a01b0384163b15806113715750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906113229033908a90899089908990600401612233565b6020604051808303816000875af1158015611341573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136591906121bb565b6001600160e01b031916145b61138d5760405162461bcd60e51b81526004016108ff906121d8565b5050505050565b606060006113a183611015565b6001600160a01b0316036113c85760405163d872946b60e01b815260040160405180910390fd5b60126113d3836118a9565b6040516020016113e49291906122a3565b6040516020818303038152906040529050919050565b61140261158a565b80516107d8906012906020840190611b9e565b61141d61158a565b6001600160a01b0381166114825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ff565b610c8881611806565b61149361158a565b601154156114e35760405162461bcd60e51b815260206004820152601960248201527f41697264726f7020616c726561647920636f6d706c657465640000000000000060448201526064016108ff565b60005b6032811015611501576114f9828261173a565b6001016114e6565b60115550565b60006301ffc9a760e01b6001600160e01b03198316148061153857506380ac58cd60e01b6001600160e01b03198316145b806107c05750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806107c057506301ffc9a760e01b6001600160e01b03198316146107c0565b6008546001600160a01b031633146111185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ff565b6127106001600160601b03821611156116525760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016108ff565b6001600160a01b0382166116a85760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016108ff565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6002600c54036117335760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108ff565b6002600c55565b611744828261193c565b6001600160a01b0382163b15806117ea5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156117ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117de91906121bb565b6001600160e01b031916145b6107d85760405162461bcd60e51b81526004016108ff906121d8565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60098190556040518181527f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c9060200160405180910390a150565b6000826118a08584611a47565b14949350505050565b606060006118b683611a94565b600101905060008167ffffffffffffffff8111156118d6576118d6611e1f565b6040519080825280601f01601f191660200182016040528015611900576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461190a57509392505050565b6001600160a01b0382166119865760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016108ff565b6000818152600260205260409020546001600160a01b0316156119dc5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016108ff565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611a8c57611a7882868381518110611a6b57611a6b61235d565b6020026020010151611b6c565b915080611a848161221a565b915050611a4c565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ad35772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611aff576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611b1d57662386f26fc10000830492506010015b6305f5e1008310611b35576305f5e100830492506008015b6127108310611b4957612710830492506004015b60648310611b5b576064830492506002015b600a83106107c05760010192915050565b6000818310611b88576000828152602084905260409020611b97565b60008381526020839052604090205b9392505050565b828054611baa9061212a565b90600052602060002090601f016020900481019282611bcc5760008555611c12565b82601f10611be557805160ff1916838001178555611c12565b82800160010185558215611c12579182015b82811115611c12578251825591602001919060010190611bf7565b50611c1e929150611c22565b5090565b5b80821115611c1e5760008155600101611c23565b6001600160e01b031981168114610c8857600080fd5b600060208284031215611c5f57600080fd5b8135611b9781611c37565b80356001600160a01b038116811461106757600080fd5b60008060408385031215611c9457600080fd5b611c9d83611c6a565b915060208301356001600160601b0381168114611cb957600080fd5b809150509250929050565b60008060408385031215611cd757600080fd5b50508035926020909101359150565b60005b83811015611d01578181015183820152602001611ce9565b83811115611d10576000848401525b50505050565b6020815260008251806020840152611d35816040850160208701611ce6565b601f01601f19169190910160400192915050565b600060208284031215611d5b57600080fd5b5035919050565b60008060408385031215611d7557600080fd5b611d7e83611c6a565b946020939093013593505050565b60008060408385031215611d9f57600080fd5b82359150611daf60208401611c6a565b90509250929050565b600080600060608486031215611dcd57600080fd5b611dd684611c6a565b9250611de460208501611c6a565b9150604084013590509250925092565b8035801515811461106757600080fd5b600060208284031215611e1657600080fd5b611b9782611df4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611e5e57611e5e611e1f565b604052919050565b600082601f830112611e7757600080fd5b8135602067ffffffffffffffff821115611e9357611e93611e1f565b8160051b611ea2828201611e35565b9283528481018201928281019087851115611ebc57600080fd5b83870192505b84831015611edb57823582529183019190830190611ec2565b979650505050505050565b600080600060608486031215611efb57600080fd5b611f0484611c6a565b925060208401359150604084013567ffffffffffffffff811115611f2757600080fd5b611f3386828701611e66565b9150509250925092565b600060208284031215611f4f57600080fd5b611b9782611c6a565b60008060408385031215611f6b57600080fd5b611f7483611c6a565b9150611daf60208401611df4565b60008060408385031215611f9557600080fd5b611f9e83611c6a565b9150602083013567ffffffffffffffff811115611fba57600080fd5b611fc685828601611e66565b9150509250929050565b600080600080600060808688031215611fe857600080fd5b611ff186611c6a565b9450611fff60208701611c6a565b935060408601359250606086013567ffffffffffffffff8082111561202357600080fd5b818801915088601f83011261203757600080fd5b81358181111561204657600080fd5b89602082850101111561205857600080fd5b9699959850939650602001949392505050565b6000602080838503121561207e57600080fd5b823567ffffffffffffffff8082111561209657600080fd5b818501915085601f8301126120aa57600080fd5b8135818111156120bc576120bc611e1f565b6120ce601f8201601f19168501611e35565b915080825286848285010111156120e457600080fd5b8084840185840137600090820190930192909252509392505050565b6000806040838503121561211357600080fd5b61211c83611c6a565b9150611daf60208401611c6a565b600181811c9082168061213e57607f821691505b60208210810361215e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561219457612194612164565b500290565b6000826121b657634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156121cd57600080fd5b8151611b9781611c37565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6000821982111561221557612215612164565b500190565b60006001820161222c5761222c612164565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008151612299818560208601611ce6565b9290920192915050565b600080845481600182811c9150808316806122bf57607f831692505b602080841082036122de57634e487b7160e01b86526022600452602486fd5b8180156122f2576001811461230357612330565b60ff19861689528489019650612330565b60008b81526020902060005b868110156123285781548b82015290850190830161230f565b505084890196505b5050505050506123546123438286612287565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052603260045260246000fdfea264697066735822122044da2d11a843efd62b516fd618be572a4878fa00bd11628071857a090a2e067064736f6c634300080d0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000029a2241af62c000000000000000000000000000000000000000000000000000014d1120d7b160000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000009c4b5eb1e85153e03e946362565e648240fe49d0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656968366c35716d686a3579696b66666d7870786d78616477793434756b323275326f6d6532636267777a346e7a73346574617178652f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _publicMintPrice (uint256): 3000000000000000000
Arg [1] : _whitelistMintPrice (uint256): 1500000000000000000
Arg [2] : _baseURI (string): ipfs://bafybeih6l5qmhj5yikffmxpxmxadwy44uk22u2ome2cbgwz4nzs4etaqxe/
Arg [3] : _admin (address): 0x09C4B5eb1E85153E03e946362565e648240Fe49d

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000029a2241af62c0000
Arg [1] : 00000000000000000000000000000000000000000000000014d1120d7b160000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000009c4b5eb1e85153e03e946362565e648240fe49d
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [5] : 697066733a2f2f6261667962656968366c35716d686a3579696b66666d787078
Arg [6] : 6d78616477793434756b323275326f6d6532636267777a346e7a733465746171
Arg [7] : 78652f0000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.