ETH Price: $2,571.75 (-3.38%)

Contract

0xeA232fa18EC871Df1CaA0A7068D7B5127942F86E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...190295542024-01-17 22:24:11216 days ago1705530251IN
0xeA232fa1...27942F86E
0 ETH0.0008676435.76583235
Transfer From181541062023-09-17 6:51:11339 days ago1694933471IN
0xeA232fa1...27942F86E
0 ETH0.000433277.51511648
Set Approval For...163858302023-01-11 20:04:35587 days ago1673467475IN
0xeA232fa1...27942F86E
0 ETH0.0011572225.0638669
Set Approval For...159485172022-11-11 18:18:59648 days ago1668190739IN
0xeA232fa1...27942F86E
0 ETH0.0009430620.42555969
Safe Transfer Fr...154605662022-09-02 17:54:53718 days ago1662141293IN
0xeA232fa1...27942F86E
0 ETH0.0018200927.85320597
Safe Transfer Fr...154605642022-09-02 17:54:17718 days ago1662141257IN
0xeA232fa1...27942F86E
0 ETH0.0015360223.50605962
Safe Transfer Fr...154605602022-09-02 17:52:48718 days ago1662141168IN
0xeA232fa1...27942F86E
0 ETH0.0012037718.42162902
Safe Transfer Fr...154605542022-09-02 17:51:34718 days ago1662141094IN
0xeA232fa1...27942F86E
0 ETH0.0012486419.11165475
Safe Transfer Fr...154605502022-09-02 17:49:48718 days ago1662140988IN
0xeA232fa1...27942F86E
0 ETH0.0012148315.79620446
Safe Transfer Fr...154605432022-09-02 17:48:38718 days ago1662140918IN
0xeA232fa1...27942F86E
0 ETH0.0012525619.16815223
Safe Transfer Fr...154605382022-09-02 17:47:12718 days ago1662140832IN
0xeA232fa1...27942F86E
0 ETH0.0009298915.54821461
Safe Transfer Fr...154605342022-09-02 17:46:12718 days ago1662140772IN
0xeA232fa1...27942F86E
0 ETH0.0009719514.87663674
Safe Transfer Fr...154605262022-09-02 17:44:50718 days ago1662140690IN
0xeA232fa1...27942F86E
0 ETH0.0010772616.48557421
Safe Transfer Fr...154605222022-09-02 17:44:14718 days ago1662140654IN
0xeA232fa1...27942F86E
0 ETH0.0010444115.98286545
Safe Transfer Fr...154605202022-09-02 17:43:30718 days ago1662140610IN
0xeA232fa1...27942F86E
0 ETH0.0009282914.20582713
Safe Transfer Fr...154605132022-09-02 17:42:04718 days ago1662140524IN
0xeA232fa1...27942F86E
0 ETH0.0009909915.16530512
Safe Transfer Fr...154605012022-09-02 17:40:04718 days ago1662140404IN
0xeA232fa1...27942F86E
0 ETH0.0011773918.01780673
Safe Transfer Fr...154604962022-09-02 17:39:17718 days ago1662140357IN
0xeA232fa1...27942F86E
0 ETH0.0012570719.23720054
Safe Transfer Fr...154604942022-09-02 17:38:07718 days ago1662140287IN
0xeA232fa1...27942F86E
0 ETH0.0010139615.51686346
Safe Transfer Fr...154604852022-09-02 17:35:52718 days ago1662140152IN
0xeA232fa1...27942F86E
0 ETH0.0009513614.55890021
Safe Transfer Fr...154604752022-09-02 17:34:23718 days ago1662140063IN
0xeA232fa1...27942F86E
0 ETH0.0013994121.41541039
Safe Transfer Fr...154604712022-09-02 17:33:43718 days ago1662140023IN
0xeA232fa1...27942F86E
0 ETH0.001696525.96187253
Safe Transfer Fr...154604692022-09-02 17:32:59718 days ago1662139979IN
0xeA232fa1...27942F86E
0 ETH0.001539923.56540865
Safe Transfer Fr...154604362022-09-02 17:25:50718 days ago1662139550IN
0xeA232fa1...27942F86E
0 ETH0.001595733.07440671
Safe Transfer Fr...154604232022-09-02 17:21:05718 days ago1662139265IN
0xeA232fa1...27942F86E
0 ETH0.0015394223.55801163
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
151751132022-07-19 19:58:34763 days ago1658260714
0xeA232fa1...27942F86E
9.45 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheEndings

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : TheEndings.sol
// SPDX-License-Identifier: MIT

/**
*   @title The Endings
*   @notice The Endings by Caitlin Cronenberg, an editioned, interactive photography book
*   @author Transient Labs
*/

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

pragma solidity ^0.8.0;

import "@transient-labs/contracts/token/ERC721TLCore.sol";

contract TheEndings is ERC721TLCore {

    uint16[] internal availableTokenIds;

    constructor(address royaltyRecp, uint256 royaltyPerc, 
        uint256 price, bytes32 merkleRoot, 
        address admin, address payout)
        ERC721TLCore("The Endings", "END", royaltyRecp, royaltyPerc, 
        price, 500, merkleRoot, admin, payout) {
            uint16[500] memory tokenIds;
            for (uint16 i = 0; i < 500; i++) {
                tokenIds[i] = i + 1;
            }
            availableTokenIds = tokenIds;
    }

    /**
    *   @notice function for batch minting to many addresses
    *   @dev requires owner or admin
    *   @dev airdrop not subject to mint allowance constraintss
    *   @param addresses is an array of addresses to mint to
    */
    function airdrop(address[] calldata addresses) external override adminOrOwner {
        revert("disabled");
    }
    
    /**
    *   @notice function for minting to the owner's address
    *   @dev requires owner or admin
    *   @dev not subject to mint allowance constraints
    */
    function ownerMint(uint128 numToMint) external override adminOrOwner {
        require(numToMint == 1, "numToMint must be 1");
        require(availableTokenIds.length > 0, "All pieces have been minted");

        uint256 num = getRandomNum(availableTokenIds.length);
        uint256 id = uint256(availableTokenIds[num]);

        availableTokenIds[num] = availableTokenIds[availableTokenIds.length - 1];
        availableTokenIds.pop();

        _safeMint(owner(), id);
    }

    /**
    *   @notice allowlist mint function
    *   @dev requires mint to be open
    *   @dev requires merkle proof to be valid, if in presale mint
    *   @dev requires mint price to be met
    *   @dev requires that the message sender hasn't already minted more than allowed at the time of the transaction
    *   @param merkleProof is the proof provided by the minting site
    */
    function mint(bytes32[] calldata merkleProof) public payable override {
        require(availableTokenIds.length > 0, "All pieces have been minted");
        require(msg.value >= mintPrice, "Not enough ether");
        require(numMinted[msg.sender] < mintAllowance, "Reached mint limit");
        if (allowlistSaleOpen) {
            bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
            require(MerkleProof.verify(merkleProof, allowlistMerkleRoot, leaf), "Not on allowlist");
        }
        else if (!publicSaleOpen) {
            revert("Mint not open");
        }
        numMinted[msg.sender]++;
        uint256 num = getRandomNum(availableTokenIds.length);
        uint256 id = uint256(availableTokenIds[num]);

        availableTokenIds[num] = availableTokenIds[availableTokenIds.length - 1];
        availableTokenIds.pop();

        _safeMint(msg.sender, id);
    }

    /**
    *   @notice function to view remaining supply
    */
    function getRemainingSupply() external view override returns (uint256) {
        return availableTokenIds.length;
    }

    /**
    *   @notice function to get psuedo random token id to mint
    *   @param upper is the upper limit to get a number between (exculsive)
    */
    function getRandomNum(uint256 upper) internal view returns (uint256) {
        uint256 random = uint256(keccak256(abi.encodePacked(blockhash(block.number - 1), block.coinbase, block.difficulty, msg.sender)));
        return random % upper;
    }
}

File 2 of 15 : ERC721TLCore.sol
// SPDX-License-Identifier: MIT

/**
*   @title ERC-721 TL Core
*   @notice ERC-721 contract with owner and admin, merkle claim allowlist, public minting, airdrop, and owner minting
*   @author Transient Labs
*/

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "../royalty/EIP2981AllToken.sol";

contract ERC721TLCore is ERC721, EIP2981AllToken, Ownable {

    bool public allowlistSaleOpen;
    bool public publicSaleOpen;
    bool public frozen;
    uint16 public mintAllowance;
    uint128 internal _tokenId;
    uint256 public mintPrice;
    uint256 public totalSupply;
    
    address payable public payoutAddress;
    address public adminAddress;

    bytes32 public immutable allowlistMerkleRoot;
    
    string internal baseTokenURI;

    mapping(address => uint16) 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");
        _;
    }

    /**
    *   @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)
        ERC721(name, symbol) EIP2981AllToken(royaltyRecipient, royaltyPercentage) Ownable() {
            mintPrice = price;
            totalSupply = supply;
            allowlistMerkleRoot = merkleRoot;
            adminAddress = admin;
            payoutAddress = payable(payout);
            _tokenId++;
    }

    /**
    *   @notice function to set the allowlist mint status
    *   @param status is the true/false flag for the allowlist mint status
    */
    function setAllowlistSaleStatus(bool status) external virtual adminOrOwner {
        allowlistSaleOpen = status;
    }

    /**
    *   @notice function to set the public mint status
    *   @param status is the true/false flag for the allowlist mint status
    */
    function setPublicSaleStatus(bool status) external virtual adminOrOwner {
        publicSaleOpen = status;
    }

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

    /**
    *   @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 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 admin or 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 adminOrOwner {
        require(newAddr != address(0), "ERC721TLCore: Cannot set royalty receipient to the zero address");
        require(newPerc < 10000, "v: Cannot set royalty percentage above 10000");
        royaltyAddr = newAddr;
        royaltyPerc = newPerc;
    }

    /**
    *   @notice function for batch minting to many addresses
    *   @dev requires owner or admin
    *   @dev airdrop not subject to mint allowance constraintss
    *   @param addresses is an array of addresses to mint to
    */
    function airdrop(address[] calldata addresses) external virtual adminOrOwner {
        require(totalSupply + 1 - _tokenId >= addresses.length, "ERC721TLCore: No token supply left");

        uint256 start = _tokenId;

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

        _tokenId += uint128(addresses.length);
    }

    /**
    *   @notice function for minting to the owner's address
    *   @dev requires owner or admin
    *   @dev not subject to mint allowance constraints
    *   @param numToMint is the number to mint
    */
    function ownerMint(uint128 numToMint) external virtual adminOrOwner {
        require(totalSupply + 1 - _tokenId >= numToMint, "ERC721TLCore: No token supply left");

        uint256 start = _tokenId;

        for (uint256 i; i < numToMint; i++) {
            _safeMint(owner(), start + i);
        }

        _tokenId += numToMint;
    }

    /**
    *   @notice function to withdraw ether from the contract
    *   @dev requires admin or owner
    */
    function withdrawEther() external virtual adminOrOwner {
        payoutAddress.transfer(address(this).balance);
    }

    /**
    *   @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
    *   @param merkleProof is the has for merkle proof verification
    */
    function mint(bytes32[] calldata merkleProof) external virtual payable {
        require(_tokenId <= totalSupply, "ERC721TLCore: No token supply left");
        require(msg.value >= mintPrice, "ERC721TLCore: Not enough ether attached to the transaction");
        require(numMinted[msg.sender] < mintAllowance, "ERC721TLCore: Mint allowance reached");
        if (allowlistSaleOpen) {
            bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
            require(MerkleProof.verify(merkleProof, allowlistMerkleRoot, leaf), "ERC721TLCore: Not on allowlist");
        }
        else if (!publicSaleOpen) {
            revert("ERC721TLCore: Mint not open");
        }

        numMinted[msg.sender]++;

        _safeMint(msg.sender, uint256(_tokenId));
        
        _tokenId++;
    }

    /**
    *   @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 burn function for owners to use at their discretion
    *   @dev requires the msg sender to be the owner or an approved delegate
    *   @param tokenId is the token ID to burn
    */
    function burn(uint256 tokenId) public virtual {
        require(_isApprovedOrOwner(msg.sender, tokenId), "Burn: Not Approved or Owner");
        _burn(tokenId);
    }

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

    /**
    *   @notice function to view remaining supply
    */
    function getRemainingSupply() external view virtual returns (uint256) {
        return totalSupply + 1 - _tokenId;
    }
   
    /**
    *   @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;
    }

}

File 3 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/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: balance query for the zero address");
        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: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 overriden 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        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: transfer caller is not 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: transfer caller is not 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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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 a {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 a {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 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 {
                    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 {}
}

File 4 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 5 of 15 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees 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.
 */
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 Returns the rebuilt hash obtained by traversing a Merklee 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 6 of 15 : EIP2981AllToken.sol
// SPDX-License-Identifier: MIT

/**
*   @title EIP 2981 All Token
*   @notice implementation of EIP 2981, with all tokens having the same royalty amount
*   @author Transient Labs, LLC
*/

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./IEIP2981.sol";

contract EIP2981AllToken is IEIP2981, ERC165 {

    address internal royaltyAddr;
    uint256 internal royaltyPerc; // percentage in basis (out of 10,000)

    /**
    *   @notice constructor
    *   @dev need inheriting contracts to accept the parameters in their constructor
    *   @dev inheriting contracts may implement functions to re-assign the state variables in this contract
    *   @param addr is the royalty payout address
    *   @param perc is the royalty percentage, multiplied by 10000. Ex: 7.5% => 750
    */
    constructor(address addr, uint256 perc) {
        royaltyAddr = addr;
        royaltyPerc = perc;
    }

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

File 7 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/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`, 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 be 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 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);

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

File 8 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 15 : IERC721Metadata.sol
// 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);
}

File 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 12 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 15 of 15 : IEIP2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"royaltyRecp","type":"address"},{"internalType":"uint256","name":"royaltyPerc","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","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":"uint16","name":"","type":"uint16"}],"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":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAllowance","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"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":"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":"bool","name":"status","type":"bool"}],"name":"setAllowlistSaleStatus","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":"address","name":"payoutAddr","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setPublicSaleStatus","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":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200309f3803806200309f8339810160408190526200003491620003d0565b6040518060400160405280600b81526020016a54686520456e64696e677360a81b8152506040518060400160405280600381526020016211539160ea1b8152508787876101f488888886868a8a81600090805190602001906200009992919062000247565b508051620000af90600190602084019062000247565b5050600680546001600160a01b0319166001600160a01b03949094169390931790925560075550620000e8620000e23390565b620001f5565b600a859055600b8490556080839052600d80546001600160a01b038085166001600160a01b031992831617909255600c805492841692909116919091179055600980546001600160801b031690600062000142836200044c565b91906101000a8154816001600160801b0302191690836001600160801b03160217905550505050505050505050506200017a620002d6565b60005b6101f48161ffff161015620001d6576200019981600162000476565b828261ffff166101f48110620001b357620001b36200049f565b61ffff909216602092909202015280620001cd81620004b5565b9150506200017d565b50620001e76010826101f4620002f6565b50505050505050506200050d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200025590620004d0565b90600052602060002090601f016020900481019282620002795760008555620002c4565b82601f106200029457805160ff1916838001178555620002c4565b82800160010185558215620002c4579182015b82811115620002c4578251825591602001919060010190620002a7565b50620002d29291506200039c565b5090565b60405180613e8001604052806101f4906020820280368337509192915050565b82805482825590600052602060002090600f01601090048101928215620002c45791602002820160005b838211156200036257835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000320565b8015620003925782816101000a81549061ffff021916905560020160208160010104928301926001030262000362565b5050620002d29291505b5b80821115620002d257600081556001016200039d565b80516001600160a01b0381168114620003cb57600080fd5b919050565b60008060008060008060c08789031215620003ea57600080fd5b620003f587620003b3565b95506020870151945060408701519350606087015192506200041a60808801620003b3565b91506200042a60a08801620003b3565b90509295509295509295565b634e487b7160e01b600052601160045260246000fd5b60006001600160801b03828116808214156200046c576200046c62000436565b6001019392505050565b600061ffff80831681851680830382111562000496576200049662000436565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff808316818114156200046c576200046c62000436565b600181811c90821680620004e557607f821691505b602082108114156200050757634e487b7160e01b600052602260045260246000fd5b50919050565b608051612b6f6200053060003960008181610393015261142e0152612b6f6000f3fe6080604052600436106102465760003560e01c806370a0823111610139578063b423fe67116100b6578063e2e784d51161007a578063e2e784d5146106ff578063e4b7fb731461071f578063e985e9c514610734578063f2fde38b1461077d578063f9e237991461079d578063fc6f9468146107be57600080fd5b8063b423fe6714610677578063b77a147b14610697578063b88d4fde146106aa578063c87b56dd146106ca578063d111515d146106ea57600080fd5b806395d89b41116100fd57806395d89b41146105e1578063a22cb465146105f6578063a809f7a514610616578063ae129b1714610637578063ae23d6131461065757600080fd5b806370a0823114610559578063715018a614610579578063729ad39e1461058e5780637362377b146105ae5780638da5cb5b146105c357600080fd5b80632c1e816d116101c757806342966c681161018b57806342966c68146104c357806355f804b3146104e35780635b8d02d7146105035780636352211e146105235780636817c76c1461054357600080fd5b80632c1e816d146103f457806333ea51a814610414578063396876bd146104345780633d6dc6cf1461046957806342842e0e146104a357600080fd5b8063095ea7b31161020e578063095ea7b31461031d57806318160ddd1461033d57806323b872dd14610361578063293108e0146103815780632a55205a146103b557600080fd5b806301ffc9a71461024b57806303fb8c0a14610280578063054f7d9c146102a257806306fdde03146102c3578063081812fc146102e5575b600080fd5b34801561025757600080fd5b5061026b61026636600461243d565b6107de565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b36600461245a565b6107ef565b005b3480156102ae57600080fd5b5060085461026b90600160b01b900460ff1681565b3480156102cf57600080fd5b506102d8610859565b60405161027791906124d6565b3480156102f157600080fd5b506103056103003660046124e9565b6108eb565b6040516001600160a01b039091168152602001610277565b34801561032957600080fd5b506102a061033836600461251e565b610980565b34801561034957600080fd5b50610353600b5481565b604051908152602001610277565b34801561036d57600080fd5b506102a061037c366004612548565b610a96565b34801561038d57600080fd5b506103537f000000000000000000000000000000000000000000000000000000000000000081565b3480156103c157600080fd5b506103d56103d0366004612584565b610ac7565b604080516001600160a01b039093168352602083019190915201610277565b34801561040057600080fd5b506102a061040f3660046125a6565b610b03565b34801561042057600080fd5b506102a061042f3660046125a6565b610bc0565b34801561044057600080fd5b5060085461045690600160b81b900461ffff1681565b60405161ffff9091168152602001610277565b34801561047557600080fd5b506104566104843660046125a6565b6001600160a01b03166000908152600f602052604090205461ffff1690565b3480156104af57600080fd5b506102a06104be366004612548565b610c88565b3480156104cf57600080fd5b506102a06104de3660046124e9565b610ca3565b3480156104ef57600080fd5b506102a06104fe36600461264d565b610d05565b34801561050f57600080fd5b50600c54610305906001600160a01b031681565b34801561052f57600080fd5b5061030561053e3660046124e9565b610db5565b34801561054f57600080fd5b50610353600a5481565b34801561056557600080fd5b506103536105743660046125a6565b610e2c565b34801561058557600080fd5b506102a0610eb3565b34801561059a57600080fd5b506102a06105a93660046126db565b610ee9565b3480156105ba57600080fd5b506102a0610f5b565b3480156105cf57600080fd5b506008546001600160a01b0316610305565b3480156105ed57600080fd5b506102d8610fd3565b34801561060257600080fd5b506102a061061136600461272d565b610fe2565b34801561062257600080fd5b5060085461026b90600160a01b900460ff1681565b34801561064357600080fd5b506102a0610652366004612760565b610fed565b34801561066357600080fd5b506102a061067236600461277b565b61104a565b34801561068357600080fd5b506102a0610692366004612760565b611259565b6102a06106a53660046126db565b6112b6565b3480156106b657600080fd5b506102a06106c53660046127a4565b611649565b3480156106d657600080fd5b506102d86106e53660046124e9565b61167b565b3480156106f657600080fd5b506102a0611756565b34801561070b57600080fd5b506102a061071a36600461251e565b6117aa565b34801561072b57600080fd5b50601054610353565b34801561074057600080fd5b5061026b61074f366004612820565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078957600080fd5b506102a06107983660046125a6565b6118f1565b3480156107a957600080fd5b5060085461026b90600160a81b900460ff1681565b3480156107ca57600080fd5b50600d54610305906001600160a01b031681565b60006107e982611989565b92915050565b600d546001600160a01b031633148061081257506008546001600160a01b031633145b6108375760405162461bcd60e51b815260040161082e9061284a565b60405180910390fd5b6008805461ffff909216600160b81b0261ffff60b81b19909216919091179055565b60606000805461086890612892565b80601f016020809104026020016040519081016040528092919081815260200182805461089490612892565b80156108e15780601f106108b6576101008083540402835291602001916108e1565b820191906000526020600020905b8154815290600101906020018083116108c457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161082e565b506000908152600460205260409020546001600160a01b031690565b600061098b82610db5565b9050806001600160a01b0316836001600160a01b031614156109f95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161082e565b336001600160a01b0382161480610a155750610a15813361074f565b610a875760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161082e565b610a9183836119ae565b505050565b610aa03382611a1c565b610abc5760405162461bcd60e51b815260040161082e906128cd565b610a91838383611b13565b60065460075460009182916001600160a01b039091169061271090610aed908690612934565b610af79190612969565b915091505b9250929050565b6008546001600160a01b03163314610b2d5760405162461bcd60e51b815260040161082e9061297d565b6001600160a01b038116610b9e5760405162461bcd60e51b815260206004820152603260248201527f455243373231544c436f72653a204e65772061646d696e2063616e6e6f7420626044820152716520746865207a65726f206164647265737360701b606482015260840161082e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610bea5760405162461bcd60e51b815260040161082e9061297d565b6001600160a01b038116610c665760405162461bcd60e51b815260206004820152603760248201527f455243373231544c436f72653a205061796f757420616464726573732063616e60448201527f6e6f7420626520746865207a65726f2061646472657373000000000000000000606482015260840161082e565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610a9183838360405180602001604052806000815250611649565b610cad3382611a1c565b610cf95760405162461bcd60e51b815260206004820152601b60248201527f4275726e3a204e6f7420417070726f766564206f72204f776e65720000000000604482015260640161082e565b610d0281611caf565b50565b600d546001600160a01b0316331480610d2857506008546001600160a01b031633145b610d445760405162461bcd60e51b815260040161082e9061284a565b600854600160b01b900460ff1615610d9e5760405162461bcd60e51b815260206004820181905260248201527f455243373231544c436f72653a204d657461646174612069732066726f7a656e604482015260640161082e565b8051610db190600e90602084019061238e565b5050565b6000818152600260205260408120546001600160a01b0316806107e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161082e565b60006001600160a01b038216610e975760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161082e565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314610edd5760405162461bcd60e51b815260040161082e9061297d565b610ee76000611d4a565b565b600d546001600160a01b0316331480610f0c57506008546001600160a01b031633145b610f285760405162461bcd60e51b815260040161082e9061284a565b60405162461bcd60e51b8152602060048201526008602482015267191a5cd8589b195960c21b604482015260640161082e565b600d546001600160a01b0316331480610f7e57506008546001600160a01b031633145b610f9a5760405162461bcd60e51b815260040161082e9061284a565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d02573d6000803e3d6000fd5b60606001805461086890612892565b610db1338383611d9c565b600d546001600160a01b031633148061101057506008546001600160a01b031633145b61102c5760405162461bcd60e51b815260040161082e9061284a565b60088054911515600160a01b0260ff60a01b19909216919091179055565b600d546001600160a01b031633148061106d57506008546001600160a01b031633145b6110895760405162461bcd60e51b815260040161082e9061284a565b806001600160801b03166001146110d85760405162461bcd60e51b81526020600482015260136024820152726e756d546f4d696e74206d757374206265203160681b604482015260640161082e565b6010546111275760405162461bcd60e51b815260206004820152601b60248201527f416c6c207069656365732068617665206265656e206d696e7465640000000000604482015260640161082e565b60105460009061113690611e6b565b905060006010828154811061114d5761114d6129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1690506010600160108054905061118b91906129c8565b8154811061119b5761119b6129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff16601083815481106111d2576111d26129b2565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506010805480611212576112126129df565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055610a916112536008546001600160a01b031690565b82611ed8565b600d546001600160a01b031633148061127c57506008546001600160a01b031633145b6112985760405162461bcd60e51b815260040161082e9061284a565b60088054911515600160a81b0260ff60a81b19909216919091179055565b6010546113055760405162461bcd60e51b815260206004820152601b60248201527f416c6c207069656365732068617665206265656e206d696e7465640000000000604482015260640161082e565b600a5434101561134a5760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b604482015260640161082e565b600854336000908152600f602052604090205461ffff600160b81b90920482169116106113ae5760405162461bcd60e51b815260206004820152601260248201527114995858da1959081b5a5b9d081b1a5b5a5d60721b604482015260640161082e565b600854600160a01b900460ff161561149e576040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506114598383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f00000000000000000000000000000000000000000000000000000000000000009250859150611ef29050565b6114985760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdb88185b1b1bdddb1a5cdd60821b604482015260640161082e565b506114e7565b600854600160a81b900460ff166114e75760405162461bcd60e51b815260206004820152600d60248201526c26b4b73a103737ba1037b832b760991b604482015260640161082e565b336000908152600f60205260408120805461ffff1691611506836129f5565b91906101000a81548161ffff021916908361ffff160217905550506000611531601080549050611e6b565b9050600060108281548110611548576115486129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1690506010600160108054905061158691906129c8565b81548110611596576115966129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff16601083815481106115cd576115cd6129b2565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550601080548061160d5761160d6129df565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590556116433382611ed8565b50505050565b6116533383611a1c565b61166f5760405162461bcd60e51b815260040161082e906128cd565b61164384848484611f08565b6000818152600260205260409020546060906001600160a01b03166116fa5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161082e565b6000611704611f3b565b90506000815111611724576040518060200160405280600081525061174f565b8061172e84611f4a565b60405160200161173f929190612a17565b6040516020818303038152906040525b9392505050565b600d546001600160a01b031633148061177957506008546001600160a01b031633145b6117955760405162461bcd60e51b815260040161082e9061284a565b6008805460ff60b01b1916600160b01b179055565b600d546001600160a01b03163314806117cd57506008546001600160a01b031633145b6117e95760405162461bcd60e51b815260040161082e9061284a565b6001600160a01b0382166118655760405162461bcd60e51b815260206004820152603f60248201527f455243373231544c436f72653a2043616e6e6f742073657420726f79616c747960448201527f2072656365697069656e7420746f20746865207a65726f206164647265737300606482015260840161082e565b61271081106118cb5760405162461bcd60e51b815260206004820152602c60248201527f763a2043616e6e6f742073657420726f79616c74792070657263656e7461676560448201526b02061626f76652031303030360a41b606482015260840161082e565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b6008546001600160a01b0316331461191b5760405162461bcd60e51b815260040161082e9061297d565b6001600160a01b0381166119805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161082e565b610d0281611d4a565b60006001600160e01b0319821663152a902d60e11b14806107e957506107e982612048565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119e382610db5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161082e565b6000611aa083610db5565b9050806001600160a01b0316846001600160a01b03161480611adb5750836001600160a01b0316611ad0846108eb565b6001600160a01b0316145b80611b0b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b2682610db5565b6001600160a01b031614611b8a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161082e565b6001600160a01b038216611bec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161082e565b611bf76000826119ae565b6001600160a01b0383166000908152600360205260408120805460019290611c209084906129c8565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c4e908490612a46565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611cba82610db5565b9050611cc76000836119ae565b6001600160a01b0381166000908152600360205260408120805460019290611cf09084906129c8565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611dfe5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161082e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080611e796001436129c8565b60408051914060208301526bffffffffffffffffffffffff1941606090811b8216928401929092524460548401523390911b16607482015260880160408051601f198184030181529190528051602090910120905061174f8382612a5e565b610db1828260405180602001604052806000815250612098565b600082611eff85846120cb565b14949350505050565b611f13848484611b13565b611f1f8484848461213f565b6116435760405162461bcd60e51b815260040161082e90612a72565b6060600e805461086890612892565b606081611f6e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f985780611f8281612ac4565b9150611f919050600a83612969565b9150611f72565b60008167ffffffffffffffff811115611fb357611fb36125c1565b6040519080825280601f01601f191660200182016040528015611fdd576020820181803683370190505b5090505b8415611b0b57611ff26001836129c8565b9150611fff600a86612a5e565b61200a906030612a46565b60f81b81838151811061201f5761201f6129b2565b60200101906001600160f81b031916908160001a905350612041600a86612969565b9450611fe1565b60006001600160e01b031982166380ac58cd60e01b148061207957506001600160e01b03198216635b5e139f60e01b145b806107e957506301ffc9a760e01b6001600160e01b03198316146107e9565b6120a2838361224c565b6120af600084848461213f565b610a915760405162461bcd60e51b815260040161082e90612a72565b600081815b84518110156121375760008582815181106120ed576120ed6129b2565b602002602001015190508083116121135760008381526020829052604090209250612124565b600081815260208490526040902092505b508061212f81612ac4565b9150506120d0565b509392505050565b60006001600160a01b0384163b1561224157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612183903390899088908890600401612adf565b602060405180830381600087803b15801561219d57600080fd5b505af19250505080156121cd575060408051601f3d908101601f191682019092526121ca91810190612b1c565b60015b612227573d8080156121fb576040519150601f19603f3d011682016040523d82523d6000602084013e612200565b606091505b50805161221f5760405162461bcd60e51b815260040161082e90612a72565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b0b565b506001949350505050565b6001600160a01b0382166122a25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161082e565b6000818152600260205260409020546001600160a01b0316156123075760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161082e565b6001600160a01b0382166000908152600360205260408120805460019290612330908490612a46565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461239a90612892565b90600052602060002090601f0160209004810192826123bc5760008555612402565b82601f106123d557805160ff1916838001178555612402565b82800160010185558215612402579182015b828111156124025782518255916020019190600101906123e7565b5061240e929150612412565b5090565b5b8082111561240e5760008155600101612413565b6001600160e01b031981168114610d0257600080fd5b60006020828403121561244f57600080fd5b813561174f81612427565b60006020828403121561246c57600080fd5b813561ffff8116811461174f57600080fd5b60005b83811015612499578181015183820152602001612481565b838111156116435750506000910152565b600081518084526124c281602086016020860161247e565b601f01601f19169290920160200192915050565b60208152600061174f60208301846124aa565b6000602082840312156124fb57600080fd5b5035919050565b80356001600160a01b038116811461251957600080fd5b919050565b6000806040838503121561253157600080fd5b61253a83612502565b946020939093013593505050565b60008060006060848603121561255d57600080fd5b61256684612502565b925061257460208501612502565b9150604084013590509250925092565b6000806040838503121561259757600080fd5b50508035926020909101359150565b6000602082840312156125b857600080fd5b61174f82612502565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156125f2576125f26125c1565b604051601f8501601f19908116603f0116810190828211818310171561261a5761261a6125c1565b8160405280935085815286868601111561263357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561265f57600080fd5b813567ffffffffffffffff81111561267657600080fd5b8201601f8101841361268757600080fd5b611b0b848235602084016125d7565b60008083601f8401126126a857600080fd5b50813567ffffffffffffffff8111156126c057600080fd5b6020830191508360208260051b8501011115610afc57600080fd5b600080602083850312156126ee57600080fd5b823567ffffffffffffffff81111561270557600080fd5b61271185828601612696565b90969095509350505050565b8035801515811461251957600080fd5b6000806040838503121561274057600080fd5b61274983612502565b91506127576020840161271d565b90509250929050565b60006020828403121561277257600080fd5b61174f8261271d565b60006020828403121561278d57600080fd5b81356001600160801b038116811461174f57600080fd5b600080600080608085870312156127ba57600080fd5b6127c385612502565b93506127d160208601612502565b925060408501359150606085013567ffffffffffffffff8111156127f457600080fd5b8501601f8101871361280557600080fd5b612814878235602084016125d7565b91505092959194509250565b6000806040838503121561283357600080fd5b61283c83612502565b915061275760208401612502565b60208082526028908201527f455243373231544c436f72653a2041646472657373206e6f742061646d696e2060408201526737b91037bbb732b960c11b606082015260800190565b600181811c908216806128a657607f821691505b602082108114156128c757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561294e5761294e61291e565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261297857612978612953565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000828210156129da576129da61291e565b500390565b634e487b7160e01b600052603160045260246000fd5b600061ffff80831681811415612a0d57612a0d61291e565b6001019392505050565b60008351612a2981846020880161247e565b835190830190612a3d81836020880161247e565b01949350505050565b60008219821115612a5957612a5961291e565b500190565b600082612a6d57612a6d612953565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612ad857612ad861291e565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b12908301846124aa565b9695505050505050565b600060208284031215612b2e57600080fd5b815161174f8161242756fea2646970667358221220d97ee5c9f6b3604217f76aac0076db5db3943dfad65299911e8c59d25ae6ed9164736f6c634300080900330000000000000000000000003d1df78367d956c4fafc766cfecb9fb2a7fc479c00000000000000000000000000000000000000000000000000000000000002ee00000000000000000000000000000000000000000000000004db732547630000eece9f890a70830e44532194dd5a09ddc0f17967d81fe7ca2808eda3c422648200000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a80000000000000000000000003d1df78367d956c4fafc766cfecb9fb2a7fc479c

Deployed Bytecode

0x6080604052600436106102465760003560e01c806370a0823111610139578063b423fe67116100b6578063e2e784d51161007a578063e2e784d5146106ff578063e4b7fb731461071f578063e985e9c514610734578063f2fde38b1461077d578063f9e237991461079d578063fc6f9468146107be57600080fd5b8063b423fe6714610677578063b77a147b14610697578063b88d4fde146106aa578063c87b56dd146106ca578063d111515d146106ea57600080fd5b806395d89b41116100fd57806395d89b41146105e1578063a22cb465146105f6578063a809f7a514610616578063ae129b1714610637578063ae23d6131461065757600080fd5b806370a0823114610559578063715018a614610579578063729ad39e1461058e5780637362377b146105ae5780638da5cb5b146105c357600080fd5b80632c1e816d116101c757806342966c681161018b57806342966c68146104c357806355f804b3146104e35780635b8d02d7146105035780636352211e146105235780636817c76c1461054357600080fd5b80632c1e816d146103f457806333ea51a814610414578063396876bd146104345780633d6dc6cf1461046957806342842e0e146104a357600080fd5b8063095ea7b31161020e578063095ea7b31461031d57806318160ddd1461033d57806323b872dd14610361578063293108e0146103815780632a55205a146103b557600080fd5b806301ffc9a71461024b57806303fb8c0a14610280578063054f7d9c146102a257806306fdde03146102c3578063081812fc146102e5575b600080fd5b34801561025757600080fd5b5061026b61026636600461243d565b6107de565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b36600461245a565b6107ef565b005b3480156102ae57600080fd5b5060085461026b90600160b01b900460ff1681565b3480156102cf57600080fd5b506102d8610859565b60405161027791906124d6565b3480156102f157600080fd5b506103056103003660046124e9565b6108eb565b6040516001600160a01b039091168152602001610277565b34801561032957600080fd5b506102a061033836600461251e565b610980565b34801561034957600080fd5b50610353600b5481565b604051908152602001610277565b34801561036d57600080fd5b506102a061037c366004612548565b610a96565b34801561038d57600080fd5b506103537feece9f890a70830e44532194dd5a09ddc0f17967d81fe7ca2808eda3c422648281565b3480156103c157600080fd5b506103d56103d0366004612584565b610ac7565b604080516001600160a01b039093168352602083019190915201610277565b34801561040057600080fd5b506102a061040f3660046125a6565b610b03565b34801561042057600080fd5b506102a061042f3660046125a6565b610bc0565b34801561044057600080fd5b5060085461045690600160b81b900461ffff1681565b60405161ffff9091168152602001610277565b34801561047557600080fd5b506104566104843660046125a6565b6001600160a01b03166000908152600f602052604090205461ffff1690565b3480156104af57600080fd5b506102a06104be366004612548565b610c88565b3480156104cf57600080fd5b506102a06104de3660046124e9565b610ca3565b3480156104ef57600080fd5b506102a06104fe36600461264d565b610d05565b34801561050f57600080fd5b50600c54610305906001600160a01b031681565b34801561052f57600080fd5b5061030561053e3660046124e9565b610db5565b34801561054f57600080fd5b50610353600a5481565b34801561056557600080fd5b506103536105743660046125a6565b610e2c565b34801561058557600080fd5b506102a0610eb3565b34801561059a57600080fd5b506102a06105a93660046126db565b610ee9565b3480156105ba57600080fd5b506102a0610f5b565b3480156105cf57600080fd5b506008546001600160a01b0316610305565b3480156105ed57600080fd5b506102d8610fd3565b34801561060257600080fd5b506102a061061136600461272d565b610fe2565b34801561062257600080fd5b5060085461026b90600160a01b900460ff1681565b34801561064357600080fd5b506102a0610652366004612760565b610fed565b34801561066357600080fd5b506102a061067236600461277b565b61104a565b34801561068357600080fd5b506102a0610692366004612760565b611259565b6102a06106a53660046126db565b6112b6565b3480156106b657600080fd5b506102a06106c53660046127a4565b611649565b3480156106d657600080fd5b506102d86106e53660046124e9565b61167b565b3480156106f657600080fd5b506102a0611756565b34801561070b57600080fd5b506102a061071a36600461251e565b6117aa565b34801561072b57600080fd5b50601054610353565b34801561074057600080fd5b5061026b61074f366004612820565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078957600080fd5b506102a06107983660046125a6565b6118f1565b3480156107a957600080fd5b5060085461026b90600160a81b900460ff1681565b3480156107ca57600080fd5b50600d54610305906001600160a01b031681565b60006107e982611989565b92915050565b600d546001600160a01b031633148061081257506008546001600160a01b031633145b6108375760405162461bcd60e51b815260040161082e9061284a565b60405180910390fd5b6008805461ffff909216600160b81b0261ffff60b81b19909216919091179055565b60606000805461086890612892565b80601f016020809104026020016040519081016040528092919081815260200182805461089490612892565b80156108e15780601f106108b6576101008083540402835291602001916108e1565b820191906000526020600020905b8154815290600101906020018083116108c457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161082e565b506000908152600460205260409020546001600160a01b031690565b600061098b82610db5565b9050806001600160a01b0316836001600160a01b031614156109f95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161082e565b336001600160a01b0382161480610a155750610a15813361074f565b610a875760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161082e565b610a9183836119ae565b505050565b610aa03382611a1c565b610abc5760405162461bcd60e51b815260040161082e906128cd565b610a91838383611b13565b60065460075460009182916001600160a01b039091169061271090610aed908690612934565b610af79190612969565b915091505b9250929050565b6008546001600160a01b03163314610b2d5760405162461bcd60e51b815260040161082e9061297d565b6001600160a01b038116610b9e5760405162461bcd60e51b815260206004820152603260248201527f455243373231544c436f72653a204e65772061646d696e2063616e6e6f7420626044820152716520746865207a65726f206164647265737360701b606482015260840161082e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610bea5760405162461bcd60e51b815260040161082e9061297d565b6001600160a01b038116610c665760405162461bcd60e51b815260206004820152603760248201527f455243373231544c436f72653a205061796f757420616464726573732063616e60448201527f6e6f7420626520746865207a65726f2061646472657373000000000000000000606482015260840161082e565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610a9183838360405180602001604052806000815250611649565b610cad3382611a1c565b610cf95760405162461bcd60e51b815260206004820152601b60248201527f4275726e3a204e6f7420417070726f766564206f72204f776e65720000000000604482015260640161082e565b610d0281611caf565b50565b600d546001600160a01b0316331480610d2857506008546001600160a01b031633145b610d445760405162461bcd60e51b815260040161082e9061284a565b600854600160b01b900460ff1615610d9e5760405162461bcd60e51b815260206004820181905260248201527f455243373231544c436f72653a204d657461646174612069732066726f7a656e604482015260640161082e565b8051610db190600e90602084019061238e565b5050565b6000818152600260205260408120546001600160a01b0316806107e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161082e565b60006001600160a01b038216610e975760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161082e565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314610edd5760405162461bcd60e51b815260040161082e9061297d565b610ee76000611d4a565b565b600d546001600160a01b0316331480610f0c57506008546001600160a01b031633145b610f285760405162461bcd60e51b815260040161082e9061284a565b60405162461bcd60e51b8152602060048201526008602482015267191a5cd8589b195960c21b604482015260640161082e565b600d546001600160a01b0316331480610f7e57506008546001600160a01b031633145b610f9a5760405162461bcd60e51b815260040161082e9061284a565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d02573d6000803e3d6000fd5b60606001805461086890612892565b610db1338383611d9c565b600d546001600160a01b031633148061101057506008546001600160a01b031633145b61102c5760405162461bcd60e51b815260040161082e9061284a565b60088054911515600160a01b0260ff60a01b19909216919091179055565b600d546001600160a01b031633148061106d57506008546001600160a01b031633145b6110895760405162461bcd60e51b815260040161082e9061284a565b806001600160801b03166001146110d85760405162461bcd60e51b81526020600482015260136024820152726e756d546f4d696e74206d757374206265203160681b604482015260640161082e565b6010546111275760405162461bcd60e51b815260206004820152601b60248201527f416c6c207069656365732068617665206265656e206d696e7465640000000000604482015260640161082e565b60105460009061113690611e6b565b905060006010828154811061114d5761114d6129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1690506010600160108054905061118b91906129c8565b8154811061119b5761119b6129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff16601083815481106111d2576111d26129b2565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506010805480611212576112126129df565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055610a916112536008546001600160a01b031690565b82611ed8565b600d546001600160a01b031633148061127c57506008546001600160a01b031633145b6112985760405162461bcd60e51b815260040161082e9061284a565b60088054911515600160a81b0260ff60a81b19909216919091179055565b6010546113055760405162461bcd60e51b815260206004820152601b60248201527f416c6c207069656365732068617665206265656e206d696e7465640000000000604482015260640161082e565b600a5434101561134a5760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b604482015260640161082e565b600854336000908152600f602052604090205461ffff600160b81b90920482169116106113ae5760405162461bcd60e51b815260206004820152601260248201527114995858da1959081b5a5b9d081b1a5b5a5d60721b604482015260640161082e565b600854600160a01b900460ff161561149e576040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506114598383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507feece9f890a70830e44532194dd5a09ddc0f17967d81fe7ca2808eda3c42264829250859150611ef29050565b6114985760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdb88185b1b1bdddb1a5cdd60821b604482015260640161082e565b506114e7565b600854600160a81b900460ff166114e75760405162461bcd60e51b815260206004820152600d60248201526c26b4b73a103737ba1037b832b760991b604482015260640161082e565b336000908152600f60205260408120805461ffff1691611506836129f5565b91906101000a81548161ffff021916908361ffff160217905550506000611531601080549050611e6b565b9050600060108281548110611548576115486129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1690506010600160108054905061158691906129c8565b81548110611596576115966129b2565b90600052602060002090601091828204019190066002029054906101000a900461ffff16601083815481106115cd576115cd6129b2565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550601080548061160d5761160d6129df565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590556116433382611ed8565b50505050565b6116533383611a1c565b61166f5760405162461bcd60e51b815260040161082e906128cd565b61164384848484611f08565b6000818152600260205260409020546060906001600160a01b03166116fa5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161082e565b6000611704611f3b565b90506000815111611724576040518060200160405280600081525061174f565b8061172e84611f4a565b60405160200161173f929190612a17565b6040516020818303038152906040525b9392505050565b600d546001600160a01b031633148061177957506008546001600160a01b031633145b6117955760405162461bcd60e51b815260040161082e9061284a565b6008805460ff60b01b1916600160b01b179055565b600d546001600160a01b03163314806117cd57506008546001600160a01b031633145b6117e95760405162461bcd60e51b815260040161082e9061284a565b6001600160a01b0382166118655760405162461bcd60e51b815260206004820152603f60248201527f455243373231544c436f72653a2043616e6e6f742073657420726f79616c747960448201527f2072656365697069656e7420746f20746865207a65726f206164647265737300606482015260840161082e565b61271081106118cb5760405162461bcd60e51b815260206004820152602c60248201527f763a2043616e6e6f742073657420726f79616c74792070657263656e7461676560448201526b02061626f76652031303030360a41b606482015260840161082e565b600680546001600160a01b0319166001600160a01b039390931692909217909155600755565b6008546001600160a01b0316331461191b5760405162461bcd60e51b815260040161082e9061297d565b6001600160a01b0381166119805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161082e565b610d0281611d4a565b60006001600160e01b0319821663152a902d60e11b14806107e957506107e982612048565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119e382610db5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a955760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161082e565b6000611aa083610db5565b9050806001600160a01b0316846001600160a01b03161480611adb5750836001600160a01b0316611ad0846108eb565b6001600160a01b0316145b80611b0b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b2682610db5565b6001600160a01b031614611b8a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161082e565b6001600160a01b038216611bec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161082e565b611bf76000826119ae565b6001600160a01b0383166000908152600360205260408120805460019290611c209084906129c8565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c4e908490612a46565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611cba82610db5565b9050611cc76000836119ae565b6001600160a01b0381166000908152600360205260408120805460019290611cf09084906129c8565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611dfe5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161082e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080611e796001436129c8565b60408051914060208301526bffffffffffffffffffffffff1941606090811b8216928401929092524460548401523390911b16607482015260880160408051601f198184030181529190528051602090910120905061174f8382612a5e565b610db1828260405180602001604052806000815250612098565b600082611eff85846120cb565b14949350505050565b611f13848484611b13565b611f1f8484848461213f565b6116435760405162461bcd60e51b815260040161082e90612a72565b6060600e805461086890612892565b606081611f6e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f985780611f8281612ac4565b9150611f919050600a83612969565b9150611f72565b60008167ffffffffffffffff811115611fb357611fb36125c1565b6040519080825280601f01601f191660200182016040528015611fdd576020820181803683370190505b5090505b8415611b0b57611ff26001836129c8565b9150611fff600a86612a5e565b61200a906030612a46565b60f81b81838151811061201f5761201f6129b2565b60200101906001600160f81b031916908160001a905350612041600a86612969565b9450611fe1565b60006001600160e01b031982166380ac58cd60e01b148061207957506001600160e01b03198216635b5e139f60e01b145b806107e957506301ffc9a760e01b6001600160e01b03198316146107e9565b6120a2838361224c565b6120af600084848461213f565b610a915760405162461bcd60e51b815260040161082e90612a72565b600081815b84518110156121375760008582815181106120ed576120ed6129b2565b602002602001015190508083116121135760008381526020829052604090209250612124565b600081815260208490526040902092505b508061212f81612ac4565b9150506120d0565b509392505050565b60006001600160a01b0384163b1561224157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612183903390899088908890600401612adf565b602060405180830381600087803b15801561219d57600080fd5b505af19250505080156121cd575060408051601f3d908101601f191682019092526121ca91810190612b1c565b60015b612227573d8080156121fb576040519150601f19603f3d011682016040523d82523d6000602084013e612200565b606091505b50805161221f5760405162461bcd60e51b815260040161082e90612a72565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b0b565b506001949350505050565b6001600160a01b0382166122a25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161082e565b6000818152600260205260409020546001600160a01b0316156123075760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161082e565b6001600160a01b0382166000908152600360205260408120805460019290612330908490612a46565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461239a90612892565b90600052602060002090601f0160209004810192826123bc5760008555612402565b82601f106123d557805160ff1916838001178555612402565b82800160010185558215612402579182015b828111156124025782518255916020019190600101906123e7565b5061240e929150612412565b5090565b5b8082111561240e5760008155600101612413565b6001600160e01b031981168114610d0257600080fd5b60006020828403121561244f57600080fd5b813561174f81612427565b60006020828403121561246c57600080fd5b813561ffff8116811461174f57600080fd5b60005b83811015612499578181015183820152602001612481565b838111156116435750506000910152565b600081518084526124c281602086016020860161247e565b601f01601f19169290920160200192915050565b60208152600061174f60208301846124aa565b6000602082840312156124fb57600080fd5b5035919050565b80356001600160a01b038116811461251957600080fd5b919050565b6000806040838503121561253157600080fd5b61253a83612502565b946020939093013593505050565b60008060006060848603121561255d57600080fd5b61256684612502565b925061257460208501612502565b9150604084013590509250925092565b6000806040838503121561259757600080fd5b50508035926020909101359150565b6000602082840312156125b857600080fd5b61174f82612502565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156125f2576125f26125c1565b604051601f8501601f19908116603f0116810190828211818310171561261a5761261a6125c1565b8160405280935085815286868601111561263357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561265f57600080fd5b813567ffffffffffffffff81111561267657600080fd5b8201601f8101841361268757600080fd5b611b0b848235602084016125d7565b60008083601f8401126126a857600080fd5b50813567ffffffffffffffff8111156126c057600080fd5b6020830191508360208260051b8501011115610afc57600080fd5b600080602083850312156126ee57600080fd5b823567ffffffffffffffff81111561270557600080fd5b61271185828601612696565b90969095509350505050565b8035801515811461251957600080fd5b6000806040838503121561274057600080fd5b61274983612502565b91506127576020840161271d565b90509250929050565b60006020828403121561277257600080fd5b61174f8261271d565b60006020828403121561278d57600080fd5b81356001600160801b038116811461174f57600080fd5b600080600080608085870312156127ba57600080fd5b6127c385612502565b93506127d160208601612502565b925060408501359150606085013567ffffffffffffffff8111156127f457600080fd5b8501601f8101871361280557600080fd5b612814878235602084016125d7565b91505092959194509250565b6000806040838503121561283357600080fd5b61283c83612502565b915061275760208401612502565b60208082526028908201527f455243373231544c436f72653a2041646472657373206e6f742061646d696e2060408201526737b91037bbb732b960c11b606082015260800190565b600181811c908216806128a657607f821691505b602082108114156128c757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561294e5761294e61291e565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261297857612978612953565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000828210156129da576129da61291e565b500390565b634e487b7160e01b600052603160045260246000fd5b600061ffff80831681811415612a0d57612a0d61291e565b6001019392505050565b60008351612a2981846020880161247e565b835190830190612a3d81836020880161247e565b01949350505050565b60008219821115612a5957612a5961291e565b500190565b600082612a6d57612a6d612953565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612ad857612ad861291e565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b12908301846124aa565b9695505050505050565b600060208284031215612b2e57600080fd5b815161174f8161242756fea2646970667358221220d97ee5c9f6b3604217f76aac0076db5db3943dfad65299911e8c59d25ae6ed9164736f6c63430008090033

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

0000000000000000000000003d1df78367d956c4fafc766cfecb9fb2a7fc479c00000000000000000000000000000000000000000000000000000000000002ee00000000000000000000000000000000000000000000000004db732547630000eece9f890a70830e44532194dd5a09ddc0f17967d81fe7ca2808eda3c422648200000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a80000000000000000000000003d1df78367d956c4fafc766cfecb9fb2a7fc479c

-----Decoded View---------------
Arg [0] : royaltyRecp (address): 0x3d1df78367d956c4fAFC766cfeCb9Fb2a7Fc479c
Arg [1] : royaltyPerc (uint256): 750
Arg [2] : price (uint256): 350000000000000000
Arg [3] : merkleRoot (bytes32): 0xeece9f890a70830e44532194dd5a09ddc0f17967d81fe7ca2808eda3c4226482
Arg [4] : admin (address): 0x72DBe00dE00eDF158AEbEE2c82B7E2f19A8c19a8
Arg [5] : payout (address): 0x3d1df78367d956c4fAFC766cfeCb9Fb2a7Fc479c

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000003d1df78367d956c4fafc766cfecb9fb2a7fc479c
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [2] : 00000000000000000000000000000000000000000000000004db732547630000
Arg [3] : eece9f890a70830e44532194dd5a09ddc0f17967d81fe7ca2808eda3c4226482
Arg [4] : 00000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a8
Arg [5] : 0000000000000000000000003d1df78367d956c4fafc766cfecb9fb2a7fc479c


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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