ETH Price: $2,062.89 (-2.65%)

Contract

0xFFbb8a1dfe038b498dee13B3D71013D40B6feD58
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...243231262026-01-27 2:17:2355 days ago1769480243IN
0xFFbb8a1d...40B6feD58
0 ETH0.00009572.07299872
Set Approval For...243221832026-01-26 23:07:4755 days ago1769468867IN
0xFFbb8a1d...40B6feD58
0 ETH0.000002870.06223046
Safe Transfer Fr...243077572026-01-24 22:51:1157 days ago1769295071IN
0xFFbb8a1d...40B6feD58
0 ETH0.000002840.04709136
Set Approval For...224640802025-05-12 1:55:59315 days ago1747014959IN
0xFFbb8a1d...40B6feD58
0 ETH0.000118052.55722035
Set Approval For...223274012025-04-22 22:01:23334 days ago1745359283IN
0xFFbb8a1d...40B6feD58
0 ETH0.000231395.01212994
Set Approval For...209110652024-10-07 3:43:23532 days ago1728272603IN
0xFFbb8a1d...40B6feD58
0 ETH0.000186767.7
Safe Transfer Fr...207549022024-09-15 8:45:11553 days ago1726389911IN
0xFFbb8a1d...40B6feD58
0 ETH0.000126592.09520022
Set Approval For...193571142024-03-03 20:46:47749 days ago1709498807IN
0xFFbb8a1d...40B6feD58
0 ETH0.0028606761.96367857
Set Approval For...188025742023-12-17 1:46:35827 days ago1702777595IN
0xFFbb8a1d...40B6feD58
0 ETH0.0008159533.64060074
Set Approval For...183745152023-10-18 3:19:11887 days ago1697599151IN
0xFFbb8a1d...40B6feD58
0 ETH0.000273185.91725159
Set Approval For...173159342023-05-22 16:11:351035 days ago1684771895IN
0xFFbb8a1d...40B6feD58
0 ETH0.0036116578.23033541
Set Approval For...169526422023-04-01 6:52:231086 days ago1680331943IN
0xFFbb8a1d...40B6feD58
0 ETH0.0009967721.59055537
Safe Transfer Fr...168942872023-03-24 2:07:351095 days ago1679623655IN
0xFFbb8a1d...40B6feD58
0 ETH0.0009973315.18666113
Set Approval For...168374912023-03-16 2:37:591103 days ago1678934279IN
0xFFbb8a1d...40B6feD58
0 ETH0.0008293517.96420609
Set Approval For...165718962023-02-06 19:39:591140 days ago1675712399IN
0xFFbb8a1d...40B6feD58
0 ETH0.0017213237.28474245
Set Approval For...165505012023-02-03 19:59:231143 days ago1675454363IN
0xFFbb8a1d...40B6feD58
0 ETH0.0018648140.39286431
Set Approval For...164448412023-01-20 1:50:591158 days ago1674179459IN
0xFFbb8a1d...40B6feD58
0 ETH0.000654214.17046078
Set Approval For...164122902023-01-15 12:45:471162 days ago1673786747IN
0xFFbb8a1d...40B6feD58
0 ETH0.00068414.81586339
Set Approval For...164031692023-01-14 6:11:591163 days ago1673676719IN
0xFFbb8a1d...40B6feD58
0 ETH0.0007391516.01043193
Set Approval For...162428502022-12-22 21:11:351186 days ago1671743495IN
0xFFbb8a1d...40B6feD58
0 ETH0.0008259917.89154978
Set Approval For...162426452022-12-22 20:30:351186 days ago1671741035IN
0xFFbb8a1d...40B6feD58
0 ETH0.0010558322.86988973
Set Approval For...162332932022-12-21 13:11:591187 days ago1671628319IN
0xFFbb8a1d...40B6feD58
0 ETH0.000679414.71630531
Safe Transfer Fr...162212402022-12-19 20:49:591189 days ago1671482999IN
0xFFbb8a1d...40B6feD58
0 ETH0.0010409517.22807728
Set Approval For...161975462022-12-16 13:26:111192 days ago1671197171IN
0xFFbb8a1d...40B6feD58
0 ETH0.0007928517.17365203
Set Approval For...161766172022-12-13 15:18:111195 days ago1670944691IN
0xFFbb8a1d...40B6feD58
0 ETH0.0009732821.08176062
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InterfaceOfPerceptionClickersEdition

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 18 : InterfaceOfPerceptionClickersEdition.sol
// SPDX-License-Identifier: MIT

/// @title Interface of Perception: Clicker's Edition
/// @author transientlabs.xyz

pragma solidity 0.8.14;

import "ERC721TLMerkle.sol";

contract InterfaceOfPerceptionClickersEdition is ERC721TLMerkle {

    constructor (
        address royaltyRecipient,
        uint256 royaltyPercentage,
        uint256 supply,
        address admin,
        address payout
    )
    ERC721TLMerkle("Interface of Perception: Clicker's Edition", "IPCE", royaltyRecipient, royaltyPercentage, 0, supply, bytes32(0), admin, payout)
    {}

}

// SPDX-License-Identifier: MIT

/**
*   @title ERC-721 TL merkle
*   @notice ERC-721 contract with owner and admin, merkle claim allowlist, public minting, airdrop, and owner minting
*   @author transientlabs.xyz
*/

/*
   ___       _ __   __  ___  _ ______                 __ 
  / _ )__ __(_) /__/ / / _ \(_) _/ _/__ _______ ___  / /_
 / _  / // / / / _  / / // / / _/ _/ -_) __/ -_) _ \/ __/
/____/\_,_/_/_/\_,_/ /____/_/_//_/ \__/_/  \__/_//_/\__/                                                          
 ______                  _          __    __        __     
/_  __/______ ____  ___ (_)__ ___  / /_  / /  ___ _/ /  ___
 / / / __/ _ `/ _ \(_-</ / -_) _ \/ __/ / /__/ _ `/ _ \(_-<
/_/ /_/  \_,_/_//_/___/_/\__/_//_/\__/ /____/\_,_/_.__/___/ 
*/

pragma solidity 0.8.14;

import "ERC721TLCore.sol";
import "ReentrancyGuard.sol";

contract ERC721TLMerkle is ERC721TLCore, ReentrancyGuard {

    bool public allowlistSaleOpen;
    bool public publicSaleOpen;
    uint256 public mintAllowance;
    uint256 public mintPrice;
    bytes32 public allowlistMerkleRoot;

    /**
    *   @param name is the name of the contract
    *   @param symbol is the symbol
    *   @param royaltyRecipient is the royalty recipient
    *   @param royaltyPercentage is the royalty percentage to set
    *   @param price is the mint price
    *   @param supply is the total token supply
    *   @param merkleRoot is the allowlist merkle root
    *   @param admin is the admin address
    *   @param payout is the payout address
    */
    constructor (
        string memory name,
        string memory symbol,
        address royaltyRecipient,
        uint256 royaltyPercentage,
        uint256 price,
        uint256 supply,
        bytes32 merkleRoot,
        address admin,
        address payout
    )
        ERC721TLCore(
            name,
            symbol,
            royaltyRecipient,
            royaltyPercentage,
            supply,
            admin,
            payout
        )
        ReentrancyGuard()
    {
        mintPrice = price;
        allowlistMerkleRoot = merkleRoot;
    }

    /**
    *   @notice function to open the allowlist sale
    */
    function openAllowlistSale() external virtual adminOrOwner {
        allowlistSaleOpen = true;
        publicSaleOpen = false;
    }

    /**
    *   @notice function to open the public sale
    */
    function openPublicSale() external virtual adminOrOwner {
        allowlistSaleOpen = false;
        publicSaleOpen = true;
    }

    /**
    *   @notice function to close both sales
    */
    function closeSales() external virtual adminOrOwner {
        allowlistSaleOpen = false;
        publicSaleOpen = false;
    }

    /**
    *   @notice sets the mint allowance for each address
    *   @dev requires admin or owner
    *   @param allowance is the new allowance
    */
    function setMintAllowance(uint16 allowance) external virtual adminOrOwner {
        mintAllowance = allowance;
    }

    /**
    *   @notice function to set the merkle root
    *   @dev requires admin or owner
    *   @param newRoot is the new merkle root
    */
    function setAllowlistMerkleRoot(bytes32 newRoot) external adminOrOwner {
        allowlistMerkleRoot = newRoot;
    }

    /**
    *   @notice function to set the mint price
    *   @dev requires admin or owner
    *   @param newPrice is the new mint price
    */
    function setMintPrice(uint256 newPrice) external adminOrOwner {
        mintPrice = newPrice;
    }

    /**
    *   @notice function for batch minting to many addresses
    *   @dev requires owner or admin
    *   @dev using _mint... it is imperitive that receivers are vetted as being EOA or able to accept ERC721 tokens
    *   @dev airdrop not subject to mint allowance constraints
    *   @param addresses is an array of addresses to mint to
    */
    function airdrop(address[] calldata addresses) external virtual adminOrOwner {
        require(_counter + addresses.length <= maxSupply, "ERC721TLMerkle: No token supply left");

        for (uint256 i; i < addresses.length; i++) {
            _counter++;
            _mint(addresses[i], _counter);
        }
    }

    /**
    *   @notice function for minting to the owner's address
    *   @dev requires owner or admin
    *   @dev not subject to mint allowance constraints
    *   @dev using _mint as owner() should be an EOA or at least knowlegeable if they can receive ERC721 tokens
    *   @param numToMint is the number to mint
    */
    function ownerMint(uint128 numToMint) external virtual adminOrOwner {
        require(_counter + numToMint <= maxSupply, "ERC721TLMerkle: No token supply left");
        for (uint256 i; i < numToMint; i++) {
            _counter++;
            _mint(owner(), _counter);
        }
    }

    /**
    *   @notice function for users to mint
    *   @dev requires payment
    *   @dev only mint one at a time. If looking to mint more than one at a time, utilize ERC721TLMultiMint
    *   @dev using _mint as restricting all function calls to EOAs
    *   @param merkleProof is the hash for merkle proof verification
    */
    function mint(bytes32[] calldata merkleProof) external virtual payable nonReentrant {
        require(_counter < maxSupply, "ERC721TLMerkle: No token supply left");
        require(msg.value >= mintPrice, "ERC721TLMerkle: Not enough ether attached to the transaction");
        require(_numMinted[msg.sender] < mintAllowance, "ERC721TLMerkle: Mint allowance reached");
        if (allowlistSaleOpen) {
            bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
            require(MerkleProof.verify(merkleProof, allowlistMerkleRoot, leaf), "ERC721TLMerkle: Not on allowlist");
        }
        else if (!publicSaleOpen) {
            revert("ERC721TLMerkle: Mint not open");
        }

        _numMinted[msg.sender]++;
        _counter++;
        _safeMint(msg.sender, _counter);
    }

}

// SPDX-License-Identifier: MIT

/**
*   @title ERC-721 TL Core
*   @author transientlabs.xyz
*/

/*
   ___       _ __   __  ___  _ ______                 __ 
  / _ )__ __(_) /__/ / / _ \(_) _/ _/__ _______ ___  / /_
 / _  / // / / / _  / / // / / _/ _/ -_) __/ -_) _ \/ __/
/____/\_,_/_/_/\_,_/ /____/_/_//_/ \__/_/  \__/_//_/\__/                                                          
 ______                  _          __    __        __     
/_  __/______ ____  ___ (_)__ ___  / /_  / /  ___ _/ /  ___
 / / / __/ _ `/ _ \(_-</ / -_) _ \/ __/ / /__/ _ `/ _ \(_-<
/_/ /_/  \_,_/_//_/___/_/\__/_//_/\__/ /____/\_,_/_.__/___/ 
*/

pragma solidity 0.8.14;

import "ERC721.sol";
import "IERC20.sol";
import "Ownable.sol";
import "MerkleProof.sol";
import "EIP2981AllToken.sol";

contract ERC721TLCore is ERC721, EIP2981AllToken, Ownable {

    bool public frozen;
    uint256 internal _counter;
    uint256 public maxSupply;
    
    address payable public payoutAddress;
    address public adminAddress;
    
    string internal _baseTokenURI;

    mapping(address => uint256) internal _numMinted;

    modifier isNotFrozen {
        require(!frozen, "ERC721TLCore: Metadata is frozen");
        _;
    }

    modifier adminOrOwner {
        require(msg.sender == adminAddress || msg.sender == owner(), "ERC721TLCore: Address not admin or owner");
        _;
    }

    modifier onlyAdmin {
        require(msg.sender == adminAddress, "ERC721TLCore: Address not admin");
        _;
    }

    /**
    *   @param name is the name of the contract
    *   @param symbol is the symbol
    *   @param royaltyRecipient is the royalty recipient
    *   @param royaltyPercentage is the royalty percentage to set
    *   @param supply is the total token supply
    *   @param admin is the admin address
    *   @param payout is the payout address
    */
    constructor (
        string memory name,
        string memory symbol,
        address royaltyRecipient,
        uint256 royaltyPercentage,
        uint256 supply,
        address admin,
        address payout
    )
        ERC721(name, symbol) 
        Ownable()
        EIP2981AllToken(royaltyRecipient, royaltyPercentage)
    {
        maxSupply = supply;
        adminAddress = admin;
        payoutAddress = payable(payout);
    }

    /**
    *   @notice freezes the metadata for the token
    *   @dev requires admin or owner
    */
    function freezeMetadata() external virtual adminOrOwner {
        frozen = true;
    }

    /**
    *   @notice sets the base URI
    *   @dev requires admin or owner
    *   @param newURI is the base URI set for each token
    */
    function setBaseURI(string memory newURI) external virtual adminOrOwner isNotFrozen {
        _baseTokenURI = newURI;
    }

    /**
    *   @notice function to change the royalty info
    *   @dev requires owner
    *   @dev this is useful if the amount was set improperly at contract creation.
    *   @param newAddr is the new royalty payout addresss
    *   @param newPerc is the new royalty percentage, in basis points (out of 10,000)
    */
    function setRoyaltyInfo(address newAddr, uint256 newPerc) external virtual onlyOwner {
        _setRoyaltyInfo(newAddr, newPerc);
    }

    /**
    *   @notice function to withdraw ERC20 tokens from the contract
    *   @dev requires admin or owner
    *   @dev requires payout address to be abel to receive ERC20 tokens
    *   @param tokenAddress is the ERC20 contract address
    *   @param amount is the amount to withdraw
    */
    function withdrawERC20(address tokenAddress, uint256 amount) external virtual adminOrOwner {
        IERC20 erc20 = IERC20(tokenAddress);
        require(amount <= erc20.balanceOf(address(this)), "ERC721ATLCore: cannot withdraw more than balance");
        require(erc20.transfer(payoutAddress, amount));
    }

    /**
    *   @notice function to withdraw ether from the contract
    *   @dev requires admin or owner
    *   @dev recipient MUST be an EOA or contract that does not require more than 2300 gas
    *   @param amount is the amount to withdraw
    */
    function withdrawEther(uint256 amount) external virtual adminOrOwner {
        require(amount <= address(this).balance, "ERC721ATLCore: cannot withdraw more than balance");
        payoutAddress.transfer(amount);
    }

    /**
    *   @notice function to renounce admin rights
    *   @dev requires admin only
    */
    function renounceAdmin() external virtual onlyAdmin {
        adminAddress = address(0);
    }

    /**
    *   @notice function to set the admin address on the contract
    *   @dev requires owner
    *   @param newAdmin is the new admin address
    */
    function setAdminAddress(address newAdmin) external virtual onlyOwner {
        require(newAdmin != address(0), "ERC721TLCore: New admin cannot be the zero address");
        adminAddress = newAdmin;
    }

    /**
    *   @notice function to set the payout address
    *   @dev requires owner
    *   @param payoutAddr is the new payout address
    */
    function setPayoutAddress(address payoutAddr) external virtual onlyOwner {
        require(payoutAddr != address(0), "ERC721TLCore: Payout address cannot be the zero address");
        payoutAddress = payable(payoutAddr);
    }

    /**
    *   @notice function to get number minted
    *   @param addr address to query
    */
    function getNumMinted(address addr) external view virtual returns (uint256) {
        return _numMinted[addr];
    }

    /**
    *   @notice function to view remaining supply
    */
    function getRemainingSupply() external view virtual returns (uint256) {
        return maxSupply - _counter;
    }

    /**
    *   @notice function to return total supply (current count of NFTs minted)
    */
    function totalSupply() external view virtual returns (uint256) {
        return _counter;
    }
   
    /**
    *   @notice overrides supportsInterface function
    *   @param interfaceId is supplied from anyone/contract calling this function, as defined in ERC 165
    *   @return a boolean saying if this contract supports the interface or not
    */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, EIP2981AllToken) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
    *   @notice override standard ERC721 base URI
    *   @dev doesn't require access control since it's internal
    *   @return string representing base URI
    */
    function _baseURI() internal view override returns (string memory) {
        return _baseTokenURI;
    }

}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// 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);
}

File 7 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// 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;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_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);
    }
}

// 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

pragma solidity ^0.8.0;

import "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);
    }
}

// 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)
        }
    }
}

// SPDX-License-Identifier: MIT
/**
*   @title EIP 2981 All Token
*   @notice implementation of EIP 2981, with all tokens having the same royalty amount
*   @author transientlabs.xyz
*/

/*
   ___       _ __   __  ___  _ ______                 __ 
  / _ )__ __(_) /__/ / / _ \(_) _/ _/__ _______ ___  / /_
 / _  / // / / / _  / / // / / _/ _/ -_) __/ -_) _ \/ __/
/____/\_,_/_/_/\_,_/ /____/_/_//_/ \__/_/  \__/_//_/\__/                                                          
 ______                  _          __    __        __     
/_  __/______ ____  ___ (_)__ ___  / /_  / /  ___ _/ /  ___
 / / / __/ _ `/ _ \(_-</ / -_) _ \/ __/ / /__/ _ `/ _ \(_-<
/_/ /_/  \_,_/_//_/___/_/\__/_//_/\__/ /____/\_,_/_.__/___/ 
*/

pragma solidity >0.8.9 <0.9.0;

import "ERC165.sol";
import "IEIP2981.sol";

abstract contract EIP2981AllToken is IEIP2981, ERC165 {

    address internal _royaltyAddr;
    uint256 internal _royaltyPerc; // percentage in basis (out of 10,000)

    /**
    *   @param recipient is the royalty recipient
    *   @param percentage is the royalty percentage
    */
    constructor(address recipient, uint256 percentage) {
        _setRoyaltyInfo(recipient, percentage);
    }
    
    /**
    *   @notice EIP 2981 royalty support
    *   @dev royalty amount not dependent on _tokenId
    */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address receiver, uint256 royaltyAmount) {
        return (_royaltyAddr, _royaltyPerc * _salePrice / 10000);
    }

    /**
    *   @notice override ERC 165 implementation of this function
    *   @dev if using this contract with another contract that suppports ERC 265, will have to override in the inheriting contract
    */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) {
        return interfaceId == type(IEIP2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
    *   @notice function to set royalty information
    *   @dev to be called by inheriting contract
    *   @param addr is the royalty payout address for this token id
    *   @param perc is the royalty percentage (out of 10,000) to set for this token id
    */
    function _setRoyaltyInfo(address addr, uint256 perc) internal virtual {
        require(addr != address(0), "EIP2981AllToken: Cannot set royalty receipient to the zero address");
        require(perc < 10000, "EIP2981AllToken: Cannot set royalty percentage above 10000");
        _royaltyAddr = addr;
        _royaltyPerc = perc;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >0.8.9 <0.9.0;

///
/// @dev Interface for the NFT Royalty Standard
///
interface IEIP2981 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver,uint256 royaltyAmount);
}

File 18 of 18 : 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() {
        // 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;

        _;

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

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "InterfaceOfPerceptionClickersEdition.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"payout","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","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":"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":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"closeSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openAllowlistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"numToMint","type":"uint128"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceAdmin","outputs":[],"stateMutability":"nonpayable","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":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setAdminAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","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":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"allowance","type":"uint16"}],"name":"setMintAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payoutAddr","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"},{"internalType":"uint256","name":"newPerc","type":"uint256"}],"name":"setRoyaltyInfo","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":"tokenId","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":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002e8038038062002e80833981016040819052620000349162000348565b6040518060600160405280602a815260200162002e36602a9139604051806040016040528060048152602001634950434560e01b81525086866000876000801b8888888888888786868484888881600090805190602001906200009992919062000285565b508051620000af90600190602084019062000285565b505050620000c482826200012960201b60201c565b50620000d290503362000233565b600a92909255600c80546001600160a01b039283166001600160a01b031991821617909155600b805492909316911617905550506001600f5550505060129390935560135550620003e29950505050505050505050565b6001600160a01b038216620001a55760405162461bcd60e51b8152602060048201526042602482015260008051602062002e6083398151915260448201527f6c74792072656365697069656e7420746f20746865207a65726f206164647265606482015261737360f01b608482015260a4015b60405180910390fd5b61271081106200020d5760405162461bcd60e51b815260206004820152603a602482015260008051602062002e6083398151915260448201527f6c74792070657263656e746167652061626f766520313030303000000000000060648201526084016200019c565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200029390620003a6565b90600052602060002090601f016020900481019282620002b7576000855562000302565b82601f10620002d257805160ff191683800117855562000302565b8280016001018555821562000302579182015b8281111562000302578251825591602001919060010190620002e5565b506200031092915062000314565b5090565b5b8082111562000310576000815560010162000315565b80516001600160a01b03811681146200034357600080fd5b919050565b600080600080600060a086880312156200036157600080fd5b6200036c866200032b565b945060208601519350604086015192506200038a606087016200032b565b91506200039a608087016200032b565b90509295509295909350565b600181811c90821680620003bb57607f821691505b602082108103620003dc57634e487b7160e01b600052602260045260246000fd5b50919050565b612a4480620003f26000396000f3fe60806040526004361061027d5760003560e01c8063715018a61161014f578063b88d4fde116100c1578063e985e9c51161007a578063e985e9c514610753578063f2fde38b1461079c578063f4a0a528146107bc578063f95df414146107dc578063f9e23799146107fc578063fc6f94681461081b57600080fd5b8063b88d4fde146106b3578063c87b56dd146106d3578063d111515d146106f3578063d5abeb0114610708578063e2e784d51461071e578063e4b7fb731461073e57600080fd5b8063a1db978211610113578063a1db978214610611578063a22cb46514610631578063a809f7a514610651578063ae23d6131461066b578063b585209b1461068b578063b77a147b146106a057600080fd5b8063715018a614610594578063729ad39e146105a95780638bad0c0a146105c95780638da5cb5b146105de57806395d89b41146105fc57600080fd5b80632c1e816d116101f357806355f804b3116101ac57806355f804b3146104e95780635b8d02d7146105095780636352211e1461052957806365135438146105495780636817c76c1461055e57806370a082311461057457600080fd5b80632c1e816d1461041d57806333ea51a81461043d578063396876bd1461045d5780633bed33ce146104735780633d6dc6cf1461049357806342842e0e146104c957600080fd5b8063095ea7b311610245578063095ea7b31461035457806315a8f0731461037457806318160ddd1461038957806323b872dd146103a8578063293108e0146103c85780632a55205a146103de57600080fd5b806301ffc9a71461028257806303fb8c0a146102b7578063054f7d9c146102d957806306fdde03146102fa578063081812fc1461031c575b600080fd5b34801561028e57600080fd5b506102a261029d3660046122cb565b61083b565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b506102d76102d23660046122e8565b61084c565b005b3480156102e557600080fd5b506008546102a290600160a01b900460ff1681565b34801561030657600080fd5b5061030f61089d565b6040516102ae9190612364565b34801561032857600080fd5b5061033c610337366004612377565b61092f565b6040516001600160a01b0390911681526020016102ae565b34801561036057600080fd5b506102d761036f3660046123ac565b610956565b34801561038057600080fd5b506102d7610a6b565b34801561039557600080fd5b506009545b6040519081526020016102ae565b3480156103b457600080fd5b506102d76103c33660046123d6565b610ab7565b3480156103d457600080fd5b5061039a60135481565b3480156103ea57600080fd5b506103fe6103f9366004612412565b610ae8565b604080516001600160a01b0390931683526020830191909152016102ae565b34801561042957600080fd5b506102d7610438366004612434565b610b24565b34801561044957600080fd5b506102d7610458366004612434565b610bbf565b34801561046957600080fd5b5061039a60115481565b34801561047f57600080fd5b506102d761048e366004612377565b610c65565b34801561049f57600080fd5b5061039a6104ae366004612434565b6001600160a01b03166000908152600e602052604090205490565b3480156104d557600080fd5b506102d76104e43660046123d6565b610d02565b3480156104f557600080fd5b506102d76105043660046124db565b610d1d565b34801561051557600080fd5b50600b5461033c906001600160a01b031681565b34801561053557600080fd5b5061033c610544366004612377565b610dc9565b34801561055557600080fd5b506102d7610e29565b34801561056a57600080fd5b5061039a60125481565b34801561058057600080fd5b5061039a61058f366004612434565b610e78565b3480156105a057600080fd5b506102d7610efe565b3480156105b557600080fd5b506102d76105c4366004612569565b610f12565b3480156105d557600080fd5b506102d7610fe4565b3480156105ea57600080fd5b506008546001600160a01b031661033c565b34801561060857600080fd5b5061030f611050565b34801561061d57600080fd5b506102d761062c3660046123ac565b61105f565b34801561063d57600080fd5b506102d761064c3660046125b9565b6111a7565b34801561065d57600080fd5b506010546102a29060ff1681565b34801561067757600080fd5b506102d76106863660046125f0565b6111b2565b34801561069757600080fd5b506102d7611279565b6102d76106ae366004612569565b6112c9565b3480156106bf57600080fd5b506102d76106ce366004612619565b6115a2565b3480156106df57600080fd5b5061030f6106ee366004612377565b6115da565b3480156106ff57600080fd5b506102d7611641565b34801561071457600080fd5b5061039a600a5481565b34801561072a57600080fd5b506102d76107393660046123ac565b611695565b34801561074a57600080fd5b5061039a6116a7565b34801561075f57600080fd5b506102a261076e366004612695565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107a857600080fd5b506102d76107b7366004612434565b6116be565b3480156107c857600080fd5b506102d76107d7366004612377565b611737565b3480156107e857600080fd5b506102d76107f7366004612377565b61177b565b34801561080857600080fd5b506010546102a290610100900460ff1681565b34801561082757600080fd5b50600c5461033c906001600160a01b031681565b6000610846826117bf565b92915050565b600c546001600160a01b031633148061086f57506008546001600160a01b031633145b6108945760405162461bcd60e51b815260040161088b906126c8565b60405180910390fd5b61ffff16601155565b6060600080546108ac90612710565b80601f01602080910402602001604051908101604052809291908181526020018280546108d890612710565b80156109255780601f106108fa57610100808354040283529160200191610925565b820191906000526020600020905b81548152906001019060200180831161090857829003601f168201915b5050505050905090565b600061093a826117e4565b506000908152600460205260409020546001600160a01b031690565b600061096182610dc9565b9050806001600160a01b0316836001600160a01b0316036109ce5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161088b565b336001600160a01b03821614806109ea57506109ea813361076e565b610a5c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161088b565b610a668383611843565b505050565b600c546001600160a01b0316331480610a8e57506008546001600160a01b031633145b610aaa5760405162461bcd60e51b815260040161088b906126c8565b6010805461ffff19169055565b610ac133826118b1565b610add5760405162461bcd60e51b815260040161088b9061274a565b610a66838383611930565b60065460075460009182916001600160a01b039091169061271090610b0e9086906127ae565b610b1891906127e3565b915091505b9250929050565b610b2c611acc565b6001600160a01b038116610b9d5760405162461bcd60e51b815260206004820152603260248201527f455243373231544c436f72653a204e65772061646d696e2063616e6e6f7420626044820152716520746865207a65726f206164647265737360701b606482015260840161088b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610bc7611acc565b6001600160a01b038116610c435760405162461bcd60e51b815260206004820152603760248201527f455243373231544c436f72653a205061796f757420616464726573732063616e60448201527f6e6f7420626520746865207a65726f2061646472657373000000000000000000606482015260840161088b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b0316331480610c8857506008546001600160a01b031633145b610ca45760405162461bcd60e51b815260040161088b906126c8565b47811115610cc45760405162461bcd60e51b815260040161088b906127f7565b600b546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610cfe573d6000803e3d6000fd5b5050565b610a66838383604051806020016040528060008152506115a2565b600c546001600160a01b0316331480610d4057506008546001600160a01b031633145b610d5c5760405162461bcd60e51b815260040161088b906126c8565b600854600160a01b900460ff1615610db65760405162461bcd60e51b815260206004820181905260248201527f455243373231544c436f72653a204d657461646174612069732066726f7a656e604482015260640161088b565b8051610cfe90600d90602084019061221c565b6000818152600260205260408120546001600160a01b0316806108465760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161088b565b600c546001600160a01b0316331480610e4c57506008546001600160a01b031633145b610e685760405162461bcd60e51b815260040161088b906126c8565b6010805461ffff19166001179055565b60006001600160a01b038216610ee25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161088b565b506001600160a01b031660009081526003602052604090205490565b610f06611acc565b610f106000611b26565b565b600c546001600160a01b0316331480610f3557506008546001600160a01b031633145b610f515760405162461bcd60e51b815260040161088b906126c8565b600a54600954610f62908390612847565b1115610f805760405162461bcd60e51b815260040161088b9061285f565b60005b81811015610a665760098054906000610f9b836128a3565b9190505550610fd2838383818110610fb557610fb56128bc565b9050602002016020810190610fca9190612434565b600954611b78565b80610fdc816128a3565b915050610f83565b600c546001600160a01b0316331461103e5760405162461bcd60e51b815260206004820152601f60248201527f455243373231544c436f72653a2041646472657373206e6f742061646d696e00604482015260640161088b565b600c80546001600160a01b0319169055565b6060600180546108ac90612710565b600c546001600160a01b031633148061108257506008546001600160a01b031633145b61109e5760405162461bcd60e51b815260040161088b906126c8565b6040516370a0823160e01b815230600482015282906001600160a01b038216906370a0823190602401602060405180830381865afa1580156110e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110891906128d2565b8211156111275760405162461bcd60e51b815260040161088b906127f7565b600b5460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018490529082169063a9059cbb906044016020604051808303816000875af115801561117a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119e91906128eb565b610a6657600080fd5b610cfe338383611cba565b600c546001600160a01b03163314806111d557506008546001600160a01b031633145b6111f15760405162461bcd60e51b815260040161088b906126c8565b600a54816001600160801b031660095461120b9190612847565b11156112295760405162461bcd60e51b815260040161088b9061285f565b60005b816001600160801b0316811015610cfe576009805490600061124d836128a3565b9190505550611267610fca6008546001600160a01b031690565b80611271816128a3565b91505061122c565b600c546001600160a01b031633148061129c57506008546001600160a01b031633145b6112b85760405162461bcd60e51b815260040161088b906126c8565b6010805461ffff1916610100179055565b6002600f540361131b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161088b565b6002600f55600a54600954106113435760405162461bcd60e51b815260040161088b9061285f565b6012543410156113bb5760405162461bcd60e51b815260206004820152603c60248201527f455243373231544c4d65726b6c653a204e6f7420656e6f75676820657468657260448201527f20617474616368656420746f20746865207472616e73616374696f6e00000000606482015260840161088b565b601154336000908152600e60205260409020541061142a5760405162461bcd60e51b815260206004820152602660248201527f455243373231544c4d65726b6c653a204d696e7420616c6c6f77616e63652072604482015265195858da195960d21b606482015260840161088b565b60105460ff1615611501576040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506114af838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013549150849050611d88565b6114fb5760405162461bcd60e51b815260206004820181905260248201527f455243373231544c4d65726b6c653a204e6f74206f6e20616c6c6f776c697374604482015260640161088b565b50611558565b601054610100900460ff166115585760405162461bcd60e51b815260206004820152601d60248201527f455243373231544c4d65726b6c653a204d696e74206e6f74206f70656e000000604482015260640161088b565b336000908152600e60205260408120805491611573836128a3565b909155505060098054906000611588836128a3565b919050555061159933600954611d9e565b50506001600f55565b6115ac33836118b1565b6115c85760405162461bcd60e51b815260040161088b9061274a565b6115d484848484611db8565b50505050565b60606115e5826117e4565b60006115ef611deb565b9050600081511161160f576040518060200160405280600081525061163a565b8061161984611dfa565b60405160200161162a929190612908565b6040516020818303038152906040525b9392505050565b600c546001600160a01b031633148061166457506008546001600160a01b031633145b6116805760405162461bcd60e51b815260040161088b906126c8565b6008805460ff60a01b1916600160a01b179055565b61169d611acc565b610cfe8282611efb565b6000600954600a546116b99190612937565b905090565b6116c6611acc565b6001600160a01b03811661172b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088b565b61173481611b26565b50565b600c546001600160a01b031633148061175a57506008546001600160a01b031633145b6117765760405162461bcd60e51b815260040161088b906126c8565b601255565b600c546001600160a01b031633148061179e57506008546001600160a01b031633145b6117ba5760405162461bcd60e51b815260040161088b906126c8565b601355565b60006001600160e01b0319821663152a902d60e11b148061084657506108468261201f565b6000818152600260205260409020546001600160a01b03166117345760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161088b565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061187882610dc9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118bd83610dc9565b9050806001600160a01b0316846001600160a01b0316148061190457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119285750836001600160a01b031661191d8461092f565b6001600160a01b0316145b949350505050565b826001600160a01b031661194382610dc9565b6001600160a01b0316146119a75760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161088b565b6001600160a01b038216611a095760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161088b565b611a14600082611843565b6001600160a01b0383166000908152600360205260408120805460019290611a3d908490612937565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a6b908490612847565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6008546001600160a01b03163314610f105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161088b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611bce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161088b565b6000818152600260205260409020546001600160a01b031615611c335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161088b565b6001600160a01b0382166000908152600360205260408120805460019290611c5c908490612847565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603611d1b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161088b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600082611d95858461206f565b14949350505050565b610cfe8282604051806020016040528060008152506120bc565b611dc3848484611930565b611dcf848484846120ef565b6115d45760405162461bcd60e51b815260040161088b9061294e565b6060600d80546108ac90612710565b606081600003611e215750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e4b5780611e35816128a3565b9150611e449050600a836127e3565b9150611e25565b60008167ffffffffffffffff811115611e6657611e6661244f565b6040519080825280601f01601f191660200182016040528015611e90576020820181803683370190505b5090505b841561192857611ea5600183612937565b9150611eb2600a866129a0565b611ebd906030612847565b60f81b818381518110611ed257611ed26128bc565b60200101906001600160f81b031916908160001a905350611ef4600a866127e3565b9450611e94565b6001600160a01b038216611f825760405162461bcd60e51b815260206004820152604260248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792072656365697069656e7420746f20746865207a65726f206164647265606482015261737360f01b608482015260a40161088b565b6127108110611ff95760405162461bcd60e51b815260206004820152603a60248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792070657263656e746167652061626f7665203130303030000000000000606482015260840161088b565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b60006001600160e01b031982166380ac58cd60e01b148061205057506001600160e01b03198216635b5e139f60e01b145b8061084657506301ffc9a760e01b6001600160e01b0319831614610846565b600081815b84518110156120b4576120a082868381518110612093576120936128bc565b60200260200101516121f0565b9150806120ac816128a3565b915050612074565b509392505050565b6120c68383611b78565b6120d360008484846120ef565b610a665760405162461bcd60e51b815260040161088b9061294e565b60006001600160a01b0384163b156121e557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121339033908990889088906004016129b4565b6020604051808303816000875af192505050801561216e575060408051601f3d908101601f1916820190925261216b918101906129f1565b60015b6121cb573d80801561219c576040519150601f19603f3d011682016040523d82523d6000602084013e6121a1565b606091505b5080516000036121c35760405162461bcd60e51b815260040161088b9061294e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611928565b506001949350505050565b600081831061220c57600082815260208490526040902061163a565b5060009182526020526040902090565b82805461222890612710565b90600052602060002090601f01602090048101928261224a5760008555612290565b82601f1061226357805160ff1916838001178555612290565b82800160010185558215612290579182015b82811115612290578251825591602001919060010190612275565b5061229c9291506122a0565b5090565b5b8082111561229c57600081556001016122a1565b6001600160e01b03198116811461173457600080fd5b6000602082840312156122dd57600080fd5b813561163a816122b5565b6000602082840312156122fa57600080fd5b813561ffff8116811461163a57600080fd5b60005b8381101561232757818101518382015260200161230f565b838111156115d45750506000910152565b6000815180845261235081602086016020860161230c565b601f01601f19169290920160200192915050565b60208152600061163a6020830184612338565b60006020828403121561238957600080fd5b5035919050565b80356001600160a01b03811681146123a757600080fd5b919050565b600080604083850312156123bf57600080fd5b6123c883612390565b946020939093013593505050565b6000806000606084860312156123eb57600080fd5b6123f484612390565b925061240260208501612390565b9150604084013590509250925092565b6000806040838503121561242557600080fd5b50508035926020909101359150565b60006020828403121561244657600080fd5b61163a82612390565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156124805761248061244f565b604051601f8501601f19908116603f011681019082821181831017156124a8576124a861244f565b816040528093508581528686860111156124c157600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156124ed57600080fd5b813567ffffffffffffffff81111561250457600080fd5b8201601f8101841361251557600080fd5b61192884823560208401612465565b60008083601f84011261253657600080fd5b50813567ffffffffffffffff81111561254e57600080fd5b6020830191508360208260051b8501011115610b1d57600080fd5b6000806020838503121561257c57600080fd5b823567ffffffffffffffff81111561259357600080fd5b61259f85828601612524565b90969095509350505050565b801515811461173457600080fd5b600080604083850312156125cc57600080fd5b6125d583612390565b915060208301356125e5816125ab565b809150509250929050565b60006020828403121561260257600080fd5b81356001600160801b038116811461163a57600080fd5b6000806000806080858703121561262f57600080fd5b61263885612390565b935061264660208601612390565b925060408501359150606085013567ffffffffffffffff81111561266957600080fd5b8501601f8101871361267a57600080fd5b61268987823560208401612465565b91505092959194509250565b600080604083850312156126a857600080fd5b6126b183612390565b91506126bf60208401612390565b90509250929050565b60208082526028908201527f455243373231544c436f72653a2041646472657373206e6f742061646d696e2060408201526737b91037bbb732b960c11b606082015260800190565b600181811c9082168061272457607f821691505b60208210810361274457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156127c8576127c8612798565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826127f2576127f26127cd565b500490565b60208082526030908201527f45524337323141544c436f72653a2063616e6e6f74207769746864726177206d60408201526f6f7265207468616e2062616c616e636560801b606082015260800190565b6000821982111561285a5761285a612798565b500190565b60208082526024908201527f455243373231544c4d65726b6c653a204e6f20746f6b656e20737570706c79206040820152631b19599d60e21b606082015260800190565b6000600182016128b5576128b5612798565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156128e457600080fd5b5051919050565b6000602082840312156128fd57600080fd5b815161163a816125ab565b6000835161291a81846020880161230c565b83519083019061292e81836020880161230c565b01949350505050565b60008282101561294957612949612798565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826129af576129af6127cd565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129e790830184612338565b9695505050505050565b600060208284031215612a0357600080fd5b815161163a816122b556fea2646970667358221220fe31d9bdc98d9f00cb13b445acb87ddbca7afef8e77283be3828568efe8a685e64736f6c634300080e0033496e74657266616365206f662050657263657074696f6e3a20436c69636b657227732045646974696f6e45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796100000000000000000000000083ff31faa1fbe034b1bf17ad33759ed85da65e2f00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000001d00000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a800000000000000000000000083ff31faa1fbe034b1bf17ad33759ed85da65e2f

Deployed Bytecode

0x60806040526004361061027d5760003560e01c8063715018a61161014f578063b88d4fde116100c1578063e985e9c51161007a578063e985e9c514610753578063f2fde38b1461079c578063f4a0a528146107bc578063f95df414146107dc578063f9e23799146107fc578063fc6f94681461081b57600080fd5b8063b88d4fde146106b3578063c87b56dd146106d3578063d111515d146106f3578063d5abeb0114610708578063e2e784d51461071e578063e4b7fb731461073e57600080fd5b8063a1db978211610113578063a1db978214610611578063a22cb46514610631578063a809f7a514610651578063ae23d6131461066b578063b585209b1461068b578063b77a147b146106a057600080fd5b8063715018a614610594578063729ad39e146105a95780638bad0c0a146105c95780638da5cb5b146105de57806395d89b41146105fc57600080fd5b80632c1e816d116101f357806355f804b3116101ac57806355f804b3146104e95780635b8d02d7146105095780636352211e1461052957806365135438146105495780636817c76c1461055e57806370a082311461057457600080fd5b80632c1e816d1461041d57806333ea51a81461043d578063396876bd1461045d5780633bed33ce146104735780633d6dc6cf1461049357806342842e0e146104c957600080fd5b8063095ea7b311610245578063095ea7b31461035457806315a8f0731461037457806318160ddd1461038957806323b872dd146103a8578063293108e0146103c85780632a55205a146103de57600080fd5b806301ffc9a71461028257806303fb8c0a146102b7578063054f7d9c146102d957806306fdde03146102fa578063081812fc1461031c575b600080fd5b34801561028e57600080fd5b506102a261029d3660046122cb565b61083b565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b506102d76102d23660046122e8565b61084c565b005b3480156102e557600080fd5b506008546102a290600160a01b900460ff1681565b34801561030657600080fd5b5061030f61089d565b6040516102ae9190612364565b34801561032857600080fd5b5061033c610337366004612377565b61092f565b6040516001600160a01b0390911681526020016102ae565b34801561036057600080fd5b506102d761036f3660046123ac565b610956565b34801561038057600080fd5b506102d7610a6b565b34801561039557600080fd5b506009545b6040519081526020016102ae565b3480156103b457600080fd5b506102d76103c33660046123d6565b610ab7565b3480156103d457600080fd5b5061039a60135481565b3480156103ea57600080fd5b506103fe6103f9366004612412565b610ae8565b604080516001600160a01b0390931683526020830191909152016102ae565b34801561042957600080fd5b506102d7610438366004612434565b610b24565b34801561044957600080fd5b506102d7610458366004612434565b610bbf565b34801561046957600080fd5b5061039a60115481565b34801561047f57600080fd5b506102d761048e366004612377565b610c65565b34801561049f57600080fd5b5061039a6104ae366004612434565b6001600160a01b03166000908152600e602052604090205490565b3480156104d557600080fd5b506102d76104e43660046123d6565b610d02565b3480156104f557600080fd5b506102d76105043660046124db565b610d1d565b34801561051557600080fd5b50600b5461033c906001600160a01b031681565b34801561053557600080fd5b5061033c610544366004612377565b610dc9565b34801561055557600080fd5b506102d7610e29565b34801561056a57600080fd5b5061039a60125481565b34801561058057600080fd5b5061039a61058f366004612434565b610e78565b3480156105a057600080fd5b506102d7610efe565b3480156105b557600080fd5b506102d76105c4366004612569565b610f12565b3480156105d557600080fd5b506102d7610fe4565b3480156105ea57600080fd5b506008546001600160a01b031661033c565b34801561060857600080fd5b5061030f611050565b34801561061d57600080fd5b506102d761062c3660046123ac565b61105f565b34801561063d57600080fd5b506102d761064c3660046125b9565b6111a7565b34801561065d57600080fd5b506010546102a29060ff1681565b34801561067757600080fd5b506102d76106863660046125f0565b6111b2565b34801561069757600080fd5b506102d7611279565b6102d76106ae366004612569565b6112c9565b3480156106bf57600080fd5b506102d76106ce366004612619565b6115a2565b3480156106df57600080fd5b5061030f6106ee366004612377565b6115da565b3480156106ff57600080fd5b506102d7611641565b34801561071457600080fd5b5061039a600a5481565b34801561072a57600080fd5b506102d76107393660046123ac565b611695565b34801561074a57600080fd5b5061039a6116a7565b34801561075f57600080fd5b506102a261076e366004612695565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107a857600080fd5b506102d76107b7366004612434565b6116be565b3480156107c857600080fd5b506102d76107d7366004612377565b611737565b3480156107e857600080fd5b506102d76107f7366004612377565b61177b565b34801561080857600080fd5b506010546102a290610100900460ff1681565b34801561082757600080fd5b50600c5461033c906001600160a01b031681565b6000610846826117bf565b92915050565b600c546001600160a01b031633148061086f57506008546001600160a01b031633145b6108945760405162461bcd60e51b815260040161088b906126c8565b60405180910390fd5b61ffff16601155565b6060600080546108ac90612710565b80601f01602080910402602001604051908101604052809291908181526020018280546108d890612710565b80156109255780601f106108fa57610100808354040283529160200191610925565b820191906000526020600020905b81548152906001019060200180831161090857829003601f168201915b5050505050905090565b600061093a826117e4565b506000908152600460205260409020546001600160a01b031690565b600061096182610dc9565b9050806001600160a01b0316836001600160a01b0316036109ce5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161088b565b336001600160a01b03821614806109ea57506109ea813361076e565b610a5c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161088b565b610a668383611843565b505050565b600c546001600160a01b0316331480610a8e57506008546001600160a01b031633145b610aaa5760405162461bcd60e51b815260040161088b906126c8565b6010805461ffff19169055565b610ac133826118b1565b610add5760405162461bcd60e51b815260040161088b9061274a565b610a66838383611930565b60065460075460009182916001600160a01b039091169061271090610b0e9086906127ae565b610b1891906127e3565b915091505b9250929050565b610b2c611acc565b6001600160a01b038116610b9d5760405162461bcd60e51b815260206004820152603260248201527f455243373231544c436f72653a204e65772061646d696e2063616e6e6f7420626044820152716520746865207a65726f206164647265737360701b606482015260840161088b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610bc7611acc565b6001600160a01b038116610c435760405162461bcd60e51b815260206004820152603760248201527f455243373231544c436f72653a205061796f757420616464726573732063616e60448201527f6e6f7420626520746865207a65726f2061646472657373000000000000000000606482015260840161088b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b0316331480610c8857506008546001600160a01b031633145b610ca45760405162461bcd60e51b815260040161088b906126c8565b47811115610cc45760405162461bcd60e51b815260040161088b906127f7565b600b546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610cfe573d6000803e3d6000fd5b5050565b610a66838383604051806020016040528060008152506115a2565b600c546001600160a01b0316331480610d4057506008546001600160a01b031633145b610d5c5760405162461bcd60e51b815260040161088b906126c8565b600854600160a01b900460ff1615610db65760405162461bcd60e51b815260206004820181905260248201527f455243373231544c436f72653a204d657461646174612069732066726f7a656e604482015260640161088b565b8051610cfe90600d90602084019061221c565b6000818152600260205260408120546001600160a01b0316806108465760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161088b565b600c546001600160a01b0316331480610e4c57506008546001600160a01b031633145b610e685760405162461bcd60e51b815260040161088b906126c8565b6010805461ffff19166001179055565b60006001600160a01b038216610ee25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161088b565b506001600160a01b031660009081526003602052604090205490565b610f06611acc565b610f106000611b26565b565b600c546001600160a01b0316331480610f3557506008546001600160a01b031633145b610f515760405162461bcd60e51b815260040161088b906126c8565b600a54600954610f62908390612847565b1115610f805760405162461bcd60e51b815260040161088b9061285f565b60005b81811015610a665760098054906000610f9b836128a3565b9190505550610fd2838383818110610fb557610fb56128bc565b9050602002016020810190610fca9190612434565b600954611b78565b80610fdc816128a3565b915050610f83565b600c546001600160a01b0316331461103e5760405162461bcd60e51b815260206004820152601f60248201527f455243373231544c436f72653a2041646472657373206e6f742061646d696e00604482015260640161088b565b600c80546001600160a01b0319169055565b6060600180546108ac90612710565b600c546001600160a01b031633148061108257506008546001600160a01b031633145b61109e5760405162461bcd60e51b815260040161088b906126c8565b6040516370a0823160e01b815230600482015282906001600160a01b038216906370a0823190602401602060405180830381865afa1580156110e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110891906128d2565b8211156111275760405162461bcd60e51b815260040161088b906127f7565b600b5460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018490529082169063a9059cbb906044016020604051808303816000875af115801561117a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119e91906128eb565b610a6657600080fd5b610cfe338383611cba565b600c546001600160a01b03163314806111d557506008546001600160a01b031633145b6111f15760405162461bcd60e51b815260040161088b906126c8565b600a54816001600160801b031660095461120b9190612847565b11156112295760405162461bcd60e51b815260040161088b9061285f565b60005b816001600160801b0316811015610cfe576009805490600061124d836128a3565b9190505550611267610fca6008546001600160a01b031690565b80611271816128a3565b91505061122c565b600c546001600160a01b031633148061129c57506008546001600160a01b031633145b6112b85760405162461bcd60e51b815260040161088b906126c8565b6010805461ffff1916610100179055565b6002600f540361131b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161088b565b6002600f55600a54600954106113435760405162461bcd60e51b815260040161088b9061285f565b6012543410156113bb5760405162461bcd60e51b815260206004820152603c60248201527f455243373231544c4d65726b6c653a204e6f7420656e6f75676820657468657260448201527f20617474616368656420746f20746865207472616e73616374696f6e00000000606482015260840161088b565b601154336000908152600e60205260409020541061142a5760405162461bcd60e51b815260206004820152602660248201527f455243373231544c4d65726b6c653a204d696e7420616c6c6f77616e63652072604482015265195858da195960d21b606482015260840161088b565b60105460ff1615611501576040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506114af838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013549150849050611d88565b6114fb5760405162461bcd60e51b815260206004820181905260248201527f455243373231544c4d65726b6c653a204e6f74206f6e20616c6c6f776c697374604482015260640161088b565b50611558565b601054610100900460ff166115585760405162461bcd60e51b815260206004820152601d60248201527f455243373231544c4d65726b6c653a204d696e74206e6f74206f70656e000000604482015260640161088b565b336000908152600e60205260408120805491611573836128a3565b909155505060098054906000611588836128a3565b919050555061159933600954611d9e565b50506001600f55565b6115ac33836118b1565b6115c85760405162461bcd60e51b815260040161088b9061274a565b6115d484848484611db8565b50505050565b60606115e5826117e4565b60006115ef611deb565b9050600081511161160f576040518060200160405280600081525061163a565b8061161984611dfa565b60405160200161162a929190612908565b6040516020818303038152906040525b9392505050565b600c546001600160a01b031633148061166457506008546001600160a01b031633145b6116805760405162461bcd60e51b815260040161088b906126c8565b6008805460ff60a01b1916600160a01b179055565b61169d611acc565b610cfe8282611efb565b6000600954600a546116b99190612937565b905090565b6116c6611acc565b6001600160a01b03811661172b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088b565b61173481611b26565b50565b600c546001600160a01b031633148061175a57506008546001600160a01b031633145b6117765760405162461bcd60e51b815260040161088b906126c8565b601255565b600c546001600160a01b031633148061179e57506008546001600160a01b031633145b6117ba5760405162461bcd60e51b815260040161088b906126c8565b601355565b60006001600160e01b0319821663152a902d60e11b148061084657506108468261201f565b6000818152600260205260409020546001600160a01b03166117345760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161088b565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061187882610dc9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118bd83610dc9565b9050806001600160a01b0316846001600160a01b0316148061190457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119285750836001600160a01b031661191d8461092f565b6001600160a01b0316145b949350505050565b826001600160a01b031661194382610dc9565b6001600160a01b0316146119a75760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161088b565b6001600160a01b038216611a095760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161088b565b611a14600082611843565b6001600160a01b0383166000908152600360205260408120805460019290611a3d908490612937565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a6b908490612847565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6008546001600160a01b03163314610f105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161088b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611bce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161088b565b6000818152600260205260409020546001600160a01b031615611c335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161088b565b6001600160a01b0382166000908152600360205260408120805460019290611c5c908490612847565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603611d1b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161088b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600082611d95858461206f565b14949350505050565b610cfe8282604051806020016040528060008152506120bc565b611dc3848484611930565b611dcf848484846120ef565b6115d45760405162461bcd60e51b815260040161088b9061294e565b6060600d80546108ac90612710565b606081600003611e215750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e4b5780611e35816128a3565b9150611e449050600a836127e3565b9150611e25565b60008167ffffffffffffffff811115611e6657611e6661244f565b6040519080825280601f01601f191660200182016040528015611e90576020820181803683370190505b5090505b841561192857611ea5600183612937565b9150611eb2600a866129a0565b611ebd906030612847565b60f81b818381518110611ed257611ed26128bc565b60200101906001600160f81b031916908160001a905350611ef4600a866127e3565b9450611e94565b6001600160a01b038216611f825760405162461bcd60e51b815260206004820152604260248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792072656365697069656e7420746f20746865207a65726f206164647265606482015261737360f01b608482015260a40161088b565b6127108110611ff95760405162461bcd60e51b815260206004820152603a60248201527f45495032393831416c6c546f6b656e3a2043616e6e6f742073657420726f796160448201527f6c74792070657263656e746167652061626f7665203130303030000000000000606482015260840161088b565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b60006001600160e01b031982166380ac58cd60e01b148061205057506001600160e01b03198216635b5e139f60e01b145b8061084657506301ffc9a760e01b6001600160e01b0319831614610846565b600081815b84518110156120b4576120a082868381518110612093576120936128bc565b60200260200101516121f0565b9150806120ac816128a3565b915050612074565b509392505050565b6120c68383611b78565b6120d360008484846120ef565b610a665760405162461bcd60e51b815260040161088b9061294e565b60006001600160a01b0384163b156121e557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121339033908990889088906004016129b4565b6020604051808303816000875af192505050801561216e575060408051601f3d908101601f1916820190925261216b918101906129f1565b60015b6121cb573d80801561219c576040519150601f19603f3d011682016040523d82523d6000602084013e6121a1565b606091505b5080516000036121c35760405162461bcd60e51b815260040161088b9061294e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611928565b506001949350505050565b600081831061220c57600082815260208490526040902061163a565b5060009182526020526040902090565b82805461222890612710565b90600052602060002090601f01602090048101928261224a5760008555612290565b82601f1061226357805160ff1916838001178555612290565b82800160010185558215612290579182015b82811115612290578251825591602001919060010190612275565b5061229c9291506122a0565b5090565b5b8082111561229c57600081556001016122a1565b6001600160e01b03198116811461173457600080fd5b6000602082840312156122dd57600080fd5b813561163a816122b5565b6000602082840312156122fa57600080fd5b813561ffff8116811461163a57600080fd5b60005b8381101561232757818101518382015260200161230f565b838111156115d45750506000910152565b6000815180845261235081602086016020860161230c565b601f01601f19169290920160200192915050565b60208152600061163a6020830184612338565b60006020828403121561238957600080fd5b5035919050565b80356001600160a01b03811681146123a757600080fd5b919050565b600080604083850312156123bf57600080fd5b6123c883612390565b946020939093013593505050565b6000806000606084860312156123eb57600080fd5b6123f484612390565b925061240260208501612390565b9150604084013590509250925092565b6000806040838503121561242557600080fd5b50508035926020909101359150565b60006020828403121561244657600080fd5b61163a82612390565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156124805761248061244f565b604051601f8501601f19908116603f011681019082821181831017156124a8576124a861244f565b816040528093508581528686860111156124c157600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156124ed57600080fd5b813567ffffffffffffffff81111561250457600080fd5b8201601f8101841361251557600080fd5b61192884823560208401612465565b60008083601f84011261253657600080fd5b50813567ffffffffffffffff81111561254e57600080fd5b6020830191508360208260051b8501011115610b1d57600080fd5b6000806020838503121561257c57600080fd5b823567ffffffffffffffff81111561259357600080fd5b61259f85828601612524565b90969095509350505050565b801515811461173457600080fd5b600080604083850312156125cc57600080fd5b6125d583612390565b915060208301356125e5816125ab565b809150509250929050565b60006020828403121561260257600080fd5b81356001600160801b038116811461163a57600080fd5b6000806000806080858703121561262f57600080fd5b61263885612390565b935061264660208601612390565b925060408501359150606085013567ffffffffffffffff81111561266957600080fd5b8501601f8101871361267a57600080fd5b61268987823560208401612465565b91505092959194509250565b600080604083850312156126a857600080fd5b6126b183612390565b91506126bf60208401612390565b90509250929050565b60208082526028908201527f455243373231544c436f72653a2041646472657373206e6f742061646d696e2060408201526737b91037bbb732b960c11b606082015260800190565b600181811c9082168061272457607f821691505b60208210810361274457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156127c8576127c8612798565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826127f2576127f26127cd565b500490565b60208082526030908201527f45524337323141544c436f72653a2063616e6e6f74207769746864726177206d60408201526f6f7265207468616e2062616c616e636560801b606082015260800190565b6000821982111561285a5761285a612798565b500190565b60208082526024908201527f455243373231544c4d65726b6c653a204e6f20746f6b656e20737570706c79206040820152631b19599d60e21b606082015260800190565b6000600182016128b5576128b5612798565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156128e457600080fd5b5051919050565b6000602082840312156128fd57600080fd5b815161163a816125ab565b6000835161291a81846020880161230c565b83519083019061292e81836020880161230c565b01949350505050565b60008282101561294957612949612798565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826129af576129af6127cd565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129e790830184612338565b9695505050505050565b600060208284031215612a0357600080fd5b815161163a816122b556fea2646970667358221220fe31d9bdc98d9f00cb13b445acb87ddbca7afef8e77283be3828568efe8a685e64736f6c634300080e0033

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

00000000000000000000000083ff31faa1fbe034b1bf17ad33759ed85da65e2f00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000001d00000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a800000000000000000000000083ff31faa1fbe034b1bf17ad33759ed85da65e2f

-----Decoded View---------------
Arg [0] : royaltyRecipient (address): 0x83Ff31faA1FbE034b1Bf17ad33759ED85Da65e2f
Arg [1] : royaltyPercentage (uint256): 1000
Arg [2] : supply (uint256): 29
Arg [3] : admin (address): 0x72DBe00dE00eDF158AEbEE2c82B7E2f19A8c19a8
Arg [4] : payout (address): 0x83Ff31faA1FbE034b1Bf17ad33759ED85Da65e2f

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000083ff31faa1fbe034b1bf17ad33759ed85da65e2f
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001d
Arg [3] : 00000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a8
Arg [4] : 00000000000000000000000083ff31faa1fbe034b1bf17ad33759ed85da65e2f


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.