ETH Price: $2,417.25 (+1.94%)

Contract

0xa7EFD0ef3C1b77e11cef81052A1fda54dA893483
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Reserve160590792022-11-27 4:57:47657 days ago1669525067IN
0xa7EFD0ef...4dA893483
0 ETH0.0021010510.78417344
Reserve159906692022-11-17 15:34:59666 days ago1668699299IN
0xa7EFD0ef...4dA893483
0 ETH0.0048669424.98074591
Mint NF Ts159870972022-11-17 3:36:47667 days ago1668656207IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0032012914.06045107
Safe Transfer Fr...157432312022-10-14 2:01:23701 days ago1665712883IN
0xa7EFD0ef...4dA893483
0 ETH0.0013030115.05187005
Transfer From156952722022-10-07 9:16:23708 days ago1665134183IN
0xa7EFD0ef...4dA893483
0 ETH0.000304618.65626639
Set Base URI156606992022-10-02 13:16:11712 days ago1664716571IN
0xa7EFD0ef...4dA893483
0 ETH0.000317435.03181541
Mint NF Ts156582402022-10-02 5:02:35713 days ago1664686955IN
0xa7EFD0ef...4dA893483
0.908 ETH0.001092134.79678456
Mint NF Ts156436882022-09-30 4:12:47715 days ago1664511167IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0031024713.62639743
Mint NF Ts156099482022-09-25 10:59:59719 days ago1664103599IN
0xa7EFD0ef...4dA893483
0.908 ETH0.001326015.82398966
Mint NF Ts154974612022-09-08 15:48:42736 days ago1662652122IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0099633543.76014514
Mint NF Ts154845692022-09-06 14:14:55738 days ago1662473695IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0031735513.93859649
Mint NF Ts154566982022-09-02 3:04:19743 days ago1662087859IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0052535223.07404822
Mint NF Ts154532742022-09-01 14:01:09743 days ago1662040869IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0047625820.91779708
Mint NF Ts154532072022-09-01 13:45:37743 days ago1662039937IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0081996236.01366346
Reserve154516862022-09-01 7:55:56744 days ago1662018956IN
0xa7EFD0ef...4dA893483
0 ETH0.002444212.19820921
Reserve154438552022-08-31 1:53:00745 days ago1661910780IN
0xa7EFD0ef...4dA893483
0 ETH0.0028378114.16259133
Reserve154438442022-08-31 1:50:27745 days ago1661910627IN
0xa7EFD0ef...4dA893483
0 ETH0.0034317617.12679645
Mint NF Ts154436952022-08-31 1:18:25745 days ago1661908705IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0029799713.08838551
Mint NF Ts154373772022-08-30 0:49:25746 days ago1661820565IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0029837813.10513371
Mint NF Ts154344692022-08-29 13:58:29746 days ago1661781509IN
0xa7EFD0ef...4dA893483
0.908 ETH0.0064457228.31033182
Reserve154340352022-08-29 12:14:27746 days ago1661775267IN
0xa7EFD0ef...4dA893483
0 ETH0.0020567710.2646977
Reserve154319932022-08-29 4:20:48747 days ago1661746848IN
0xa7EFD0ef...4dA893483
0 ETH0.001408537.02950906
Reserve154317332022-08-29 3:19:33747 days ago1661743173IN
0xa7EFD0ef...4dA893483
0 ETH0.0023447311.70178233
Mint NF Ts154291832022-08-28 17:36:58747 days ago1661708218IN
0xa7EFD0ef...4dA893483
0.908 ETH0.001757347.71845684
Reserve154283822022-08-28 14:41:49747 days ago1661697709IN
0xa7EFD0ef...4dA893483
0 ETH0.001749528.73128794
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
159870972022-11-17 3:36:47667 days ago1668656207
0xa7EFD0ef...4dA893483
0.8626 ETH
159870972022-11-17 3:36:47667 days ago1668656207
0xa7EFD0ef...4dA893483
0.0454 ETH
156582402022-10-02 5:02:35713 days ago1664686955
0xa7EFD0ef...4dA893483
0.8626 ETH
156582402022-10-02 5:02:35713 days ago1664686955
0xa7EFD0ef...4dA893483
0.0454 ETH
156436882022-09-30 4:12:47715 days ago1664511167
0xa7EFD0ef...4dA893483
0.8626 ETH
156436882022-09-30 4:12:47715 days ago1664511167
0xa7EFD0ef...4dA893483
0.0454 ETH
156099482022-09-25 10:59:59719 days ago1664103599
0xa7EFD0ef...4dA893483
0.8626 ETH
156099482022-09-25 10:59:59719 days ago1664103599
0xa7EFD0ef...4dA893483
0.0454 ETH
154974612022-09-08 15:48:42736 days ago1662652122
0xa7EFD0ef...4dA893483
0.8626 ETH
154974612022-09-08 15:48:42736 days ago1662652122
0xa7EFD0ef...4dA893483
0.0454 ETH
154845692022-09-06 14:14:55738 days ago1662473695
0xa7EFD0ef...4dA893483
0.8626 ETH
154845692022-09-06 14:14:55738 days ago1662473695
0xa7EFD0ef...4dA893483
0.0454 ETH
154566982022-09-02 3:04:19743 days ago1662087859
0xa7EFD0ef...4dA893483
0.8626 ETH
154566982022-09-02 3:04:19743 days ago1662087859
0xa7EFD0ef...4dA893483
0.0454 ETH
154532742022-09-01 14:01:09743 days ago1662040869
0xa7EFD0ef...4dA893483
0.8626 ETH
154532742022-09-01 14:01:09743 days ago1662040869
0xa7EFD0ef...4dA893483
0.0454 ETH
154532072022-09-01 13:45:37743 days ago1662039937
0xa7EFD0ef...4dA893483
0.8626 ETH
154532072022-09-01 13:45:37743 days ago1662039937
0xa7EFD0ef...4dA893483
0.0454 ETH
154436952022-08-31 1:18:25745 days ago1661908705
0xa7EFD0ef...4dA893483
0.8626 ETH
154436952022-08-31 1:18:25745 days ago1661908705
0xa7EFD0ef...4dA893483
0.0454 ETH
154373772022-08-30 0:49:25746 days ago1661820565
0xa7EFD0ef...4dA893483
0.8626 ETH
154373772022-08-30 0:49:25746 days ago1661820565
0xa7EFD0ef...4dA893483
0.0454 ETH
154344692022-08-29 13:58:29746 days ago1661781509
0xa7EFD0ef...4dA893483
0.8626 ETH
154344692022-08-29 13:58:29746 days ago1661781509
0xa7EFD0ef...4dA893483
0.0454 ETH
154291832022-08-28 17:36:58747 days ago1661708218
0xa7EFD0ef...4dA893483
0.8626 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Equator

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 400 runs

Other Settings:
default evmVersion
File 1 of 18 : equator.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./EIP2981/ERC2981PerTokenRoyalties.sol";


contract Equator is ERC721, Ownable, ERC721Enumerable, ERC2981PerTokenRoyalties {


    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIds;

    // Maximum limit of tokens that can ever exist
    uint public constant MAX_SUPPLY = 50;

    // public mint price
    uint public PRICE =0.908 ether;
    // 
    bool public _isSaleActive = false;

    // The base link that leads to the image of the token
    string public baseTokenURI;
    
    string public baseExtension = ".json";

    mapping(uint256 => string) private _tokenURIs;
    // each use only purchase a nft
    mapping(address => bool) private _firstbuyers;

    event LogSelfDestruct(address sender, uint amount);

    // dev address
    address private devAddr = 0xf2d15dEAf62b8c4AFC0343006579E8E662c120D9;
    // team address
    address private teamAddr = 0x721CD264821D0Ff07299Bcf61a7C60E889152843;


    constructor(string memory __baseURI, address payable _receiver, address payable _devAddr) ERC721("SamurosJudgement","SAMURO"){
        setBaseURI(__baseURI);
        teamAddr = _receiver;
        devAddr = _devAddr;
    } 

     function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable, ERC2981Base) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function _baseURI() internal view virtual override returns(string memory){
        return baseTokenURI;
    }  

    function setBaseURI(string memory _baseTokenURI) public onlyOwner {
        baseTokenURI = _baseTokenURI;
    }


    /// @notice Public mint
    function mintNFTs(uint _count) public payable{
        uint totalMinted = _tokenIds.current();
        
        // check active
        require(_isSaleActive, "Sale must be active to mint ");
        // check if exceed total supply
        require(totalMinted.add(_count)<= MAX_SUPPLY,"Not enough NFTs left");
        // check fund
        require(msg.value >= PRICE.mul(_count),"Not enought ether to purchase NFTs");

        require(_firstbuyers[msg.sender] != true,"Only buy one");

        // transfer fund
        //payable(receiver).transfer(msg.value);

        uint256 fullAmount = msg.value;
        uint256 devFee = fullAmount * 5 / 100;
        Address.sendValue(payable(devAddr), devFee);
        Address.sendValue(payable(teamAddr), fullAmount - devFee);

        // batch mint
        for(uint i =0; i < _count; i++){
             _mintSingleNFT();
        }
        
        _firstbuyers[msg.sender]  = true;

    }

    function _mintSingleNFT() private{
        uint newTokenID = _tokenIds.current();
        _setTokenRoyalty(_tokenIds.current(), teamAddr, 1000);
        _safeMint(msg.sender, newTokenID);
        _tokenIds.increment();
    }

     /// @dev Reserve NFT. The contract owner can mint NFTs regardless of the minting start and end time.
    function reserve(address _to, uint256 _amount) external onlyOwner {
        require(totalSupply() + _amount <= MAX_SUPPLY, "Exceed total supply");
          for(uint i =0; i < _amount; i++){
            _setTokenRoyalty(_tokenIds.current(), teamAddr, 1000);
            uint newTokenID = _tokenIds.current();
            _safeMint(_to, newTokenID);
            _tokenIds.increment();
        }
        _firstbuyers[_to]  = true;
    }

    function tokensOfOwner(address _owner) external view returns(uint[] memory){

        uint tokenCount = balanceOf(_owner);
        uint[] memory tokensId = new uint256[](tokenCount);

        for (uint i=0; i< tokenCount;i++){
            tokensId[i]= tokenOfOwnerByIndex(_owner, i);
        }

        return tokensId;
    }

    //only operator can active/disactive sale
    function flipSaleActive() public onlyOwner {
        _isSaleActive = !_isSaleActive;
    }


    //only owner can update teamAddr
    function updateTeamAddr(address payable _receiver) public onlyOwner {
          teamAddr = _receiver;
    }


     //only owner can set sale price
    function setMintPrice(uint256 _mintPrice) public onlyOwner {
        PRICE = _mintPrice;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI,baseExtension));
        } 
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return
            string(abi.encodePacked(base, Strings.toString(tokenId),
            baseExtension));
    }

    function ownerKill() public onlyOwner {
        emit LogSelfDestruct(msg.sender, address(this).balance);
        selfdestruct(payable(owner()));
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal  override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);

    }
}

File 2 of 18 : 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 3 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 4 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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);
    }

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

    /**
     * @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 of token that is not own");
        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);
    }

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

File 6 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 7 of 18 : 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 8 of 18 : ERC2981PerTokenRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import "./ERC2981Base.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981PerTokenRoyalties is ERC2981Base {
    mapping(uint256 => RoyaltyInfo) internal _royalties;

    /// @dev Sets token royalties
    /// @param tokenId the token id fir which we register the royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setTokenRoyalty(
        uint256 tokenId,
        address recipient,
        uint256 value
    ) internal {
        require(value <= 10000, 'ERC2981Royalties: Too high');
        _royalties[tokenId] = RoyaltyInfo(recipient, uint24(value));
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256 tokenId, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties[tokenId];
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / 10000;
    }
}

File 9 of 18 : 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 10 of 18 : 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 11 of 18 : 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 12 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 17 of 18 : ERC2981Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import "./IERC2981Royalties.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC2981Royalties).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 18 of 18 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @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 _value - 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 value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__baseURI","type":"string"},{"internalType":"address payable","name":"_receiver","type":"address"},{"internalType":"address payable","name":"_devAddr","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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogSelfDestruct","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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleActive","outputs":[],"stateMutability":"nonpayable","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintNFTs","outputs":[],"stateMutability":"payable","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":[],"name":"ownerKill","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_receiver","type":"address"}],"name":"updateTeamAddr","outputs":[],"stateMutability":"nonpayable","type":"function"}]

670c99dd30700e0000600d55600e805460ff1916905560c06040526005608081905264173539b7b760d91b60a09081526200003e91601091906200024c565b50601380546001600160a01b031990811673f2d15deaf62b8c4afc0343006579e8e662c120d9179091556014805490911673721cd264821d0ff07299bcf61a7c60e8891528431790553480156200009457600080fd5b5060405162002e3538038062002e35833981016040819052620000b7916200030f565b604080518082018252601081526f14d85b5d5c9bdcd29d5919d95b595b9d60821b60208083019182528351808501909452600684526553414d55524f60d01b9084015281519192916200010d916000916200024c565b508051620001239060019060208401906200024c565b505050620001406200013a6200017e60201b60201c565b62000182565b6200014b83620001d4565b601480546001600160a01b039384166001600160a01b03199182161790915560138054929093169116179055506200045f565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620002335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80516200024890600f9060208401906200024c565b5050565b8280546200025a906200040c565b90600052602060002090601f0160209004810192826200027e5760008555620002c9565b82601f106200029957805160ff1916838001178555620002c9565b82800160010185558215620002c9579182015b82811115620002c9578251825591602001919060010190620002ac565b50620002d7929150620002db565b5090565b5b80821115620002d75760008155600101620002dc565b80516001600160a01b03811681146200030a57600080fd5b919050565b60008060006060848603121562000324578283fd5b83516001600160401b03808211156200033b578485fd5b818601915086601f8301126200034f578485fd5b81518181111562000364576200036462000449565b604051601f8201601f19908116603f011681019083821181831017156200038f576200038f62000449565b81604052828152602093508984848701011115620003ab578788fd5b8791505b82821015620003ce5784820184015181830185015290830190620003af565b82821115620003df57878484830101525b9650620003f1915050868201620002f2565b935050506200040360408501620002f2565b90509250925092565b600181811c908216806200042157607f821691505b602082108114156200044357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6129c6806200046f6000396000f3fe6080604052600436106101ee5760003560e01c8063715018a61161010d578063c6682862116100a0578063de8b51e11161006f578063de8b51e11461056e578063e985e9c514610583578063f2fde38b146105cc578063f4a0a528146105ec578063fb690f501461060c57600080fd5b8063c668286214610504578063c87b56dd14610519578063cc47a40b14610539578063d547cfb71461055957600080fd5b80638da5cb5b116100dc5780638da5cb5b1461049157806395d89b41146104af578063a22cb465146104c4578063b88d4fde146104e457600080fd5b8063715018a6146104245780638462151c146104395780638d702122146104665780638d859f3e1461047b57600080fd5b806332cb6b0c1161018557806355f804b31161015457806355f804b3146103aa5780636352211e146103ca5780637080d6fc146103ea57806370a082311461040457600080fd5b806332cb6b0c146103425780633b4b13811461035757806342842e0e1461036a5780634f6ccce71461038a57600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102c35780632a55205a146102e35780632f745c591461032257600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612576565b61062c565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61063d565b60405161021f919061279b565b34801561025657600080fd5b5061026a6102653660046125f4565b6106cf565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d36600461254b565b610769565b005b3480156102b057600080fd5b506009545b60405190815260200161021f565b3480156102cf57600080fd5b506102a26102de36600461245d565b61087f565b3480156102ef57600080fd5b506103036102fe36600461260c565b6108fa565b604080516001600160a01b03909316835260208301919091520161021f565b34801561032e57600080fd5b506102b561033d36600461254b565b610958565b34801561034e57600080fd5b506102b5603281565b6102a26103653660046125f4565b6109ee565b34801561037657600080fd5b506102a261038536600461245d565b610bfb565b34801561039657600080fd5b506102b56103a53660046125f4565b610c16565b3480156103b657600080fd5b506102a26103c53660046125ae565b610cb7565b3480156103d657600080fd5b5061026a6103e53660046125f4565b610d16565b3480156103f657600080fd5b50600e546102139060ff1681565b34801561041057600080fd5b506102b561041f366004612409565b610d8d565b34801561043057600080fd5b506102a2610e14565b34801561044557600080fd5b50610459610454366004612409565b610e68565b60405161021f9190612757565b34801561047257600080fd5b506102a2610f26565b34801561048757600080fd5b506102b5600d5481565b34801561049d57600080fd5b506006546001600160a01b031661026a565b3480156104bb57600080fd5b5061023d610fb4565b3480156104d057600080fd5b506102a26104df36600461251a565b610fc3565b3480156104f057600080fd5b506102a26104ff36600461249d565b610fce565b34801561051057600080fd5b5061023d611050565b34801561052557600080fd5b5061023d6105343660046125f4565b6110de565b34801561054557600080fd5b506102a261055436600461254b565b611266565b34801561056557600080fd5b5061023d61139b565b34801561057a57600080fd5b506102a26113a8565b34801561058f57600080fd5b5061021361059e366004612425565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105d857600080fd5b506102a26105e7366004612409565b611404565b3480156105f857600080fd5b506102a26106073660046125f4565b6114bd565b34801561061857600080fd5b506102a2610627366004612409565b61150a565b600061063782611574565b92915050565b60606000805461064c90612899565b80601f016020809104026020016040519081016040528092919081815260200182805461067890612899565b80156106c55780601f1061069a576101008083540402835291602001916106c5565b820191906000526020600020905b8154815290600101906020018083116106a857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661074d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061077482610d16565b9050806001600160a01b0316836001600160a01b031614156107e25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610744565b336001600160a01b03821614806107fe57506107fe813361059e565b6108705760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610744565b61087a8383611599565b505050565b6108893382611607565b6108ef5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610744565b61087a8383836116fe565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b90910462ffffff169282018390529291612710906109449086612837565b61094e9190612823565b9150509250929050565b600061096383610d8d565b82106109c55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610744565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60006109f9600c5490565b600e5490915060ff16610a4e5760405162461bcd60e51b815260206004820152601c60248201527f53616c65206d7573742062652061637469766520746f206d696e7420000000006044820152606401610744565b6032610a5a82846118a9565b1115610aa85760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768204e465473206c6566740000000000000000000000006044820152606401610744565b600d54610ab590836118bc565b341015610b0f5760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f7567687420657468657220746f207075726368617365204e46604482015261547360f01b6064820152608401610744565b3360009081526012602052604090205460ff16151560011415610b635760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c7920627579206f6e6560a01b6044820152606401610744565b3460006064610b73836005612837565b610b7d9190612823565b601354909150610b96906001600160a01b0316826118c8565b601454610bb5906001600160a01b0316610bb08385612856565b6118c8565b60005b84811015610bda57610bc86119e1565b80610bd2816128d4565b915050610bb8565b5050336000908152601260205260409020805460ff19166001179055505050565b61087a83838360405180602001604052806000815250610fce565b6000610c2160095490565b8210610c845760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610744565b60098281548110610ca557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6006546001600160a01b03163314610cff5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b8051610d1290600f9060208401906122fa565b5050565b6000818152600260205260408120546001600160a01b0316806106375760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610744565b60006001600160a01b038216610df85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610744565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e5c5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b610e666000611a12565b565b60606000610e7583610d8d565b905060008167ffffffffffffffff811115610ea057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ec9578160200160208202803683370190505b50905060005b82811015610f1e57610ee18582610958565b828281518110610f0157634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f16816128d4565b915050610ecf565b509392505050565b6006546001600160a01b03163314610f6e5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b604080513381524760208201527f215be423a2afeeee1f3f4d3cc730708809a96e17103a81f16896c0722bd20635910160405180910390a16006546001600160a01b0316ff5b60606001805461064c90612899565b610d12338383611a64565b610fd83383611607565b61103e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610744565b61104a84848484611b33565b50505050565b6010805461105d90612899565b80601f016020809104026020016040519081016040528092919081815260200182805461108990612899565b80156110d65780601f106110ab576101008083540402835291602001916110d6565b820191906000526020600020905b8154815290600101906020018083116110b957829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b031661115d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610744565b6000828152601160205260408120805461117690612899565b80601f01602080910402602001604051908101604052809291908181526020018280546111a290612899565b80156111ef5780601f106111c4576101008083540402835291602001916111ef565b820191906000526020600020905b8154815290600101906020018083116111d257829003601f168201915b505050505090506000611200611b66565b9050805160001415611213575092915050565b815115611248578082601060405160200161123093929190612659565b60405160208183030381529060405292505050919050565b8061125285611b75565b601060405160200161123093929190612659565b6006546001600160a01b031633146112ae5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b6032816112ba60095490565b6112c4919061280b565b11156113125760405162461bcd60e51b815260206004820152601360248201527f45786365656420746f74616c20737570706c79000000000000000000000000006044820152606401610744565b60005b818110156113755761133d611329600c5490565b6014546001600160a01b03166103e8611ca7565b6000611348600c5490565b90506113548482611d60565b611362600c80546001019055565b508061136d816128d4565b915050611315565b50506001600160a01b03166000908152601260205260409020805460ff19166001179055565b600f805461105d90612899565b6006546001600160a01b031633146113f05760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b600e805460ff19811660ff90911615179055565b6006546001600160a01b0316331461144c5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b6001600160a01b0381166114b15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610744565b6114ba81611a12565b50565b6006546001600160a01b031633146115055760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b600d55565b6006546001600160a01b031633146115525760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b0319821663152a902d60e11b1480610637575061063782611d7a565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115ce82610d16565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116805760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610744565b600061168b83610d16565b9050806001600160a01b0316846001600160a01b031614806116c65750836001600160a01b03166116bb846106cf565b6001600160a01b0316145b806116f657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661171182610d16565b6001600160a01b0316146117795760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610744565b6001600160a01b0382166117db5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b6117e6838383611d9f565b6117f1600082611599565b6001600160a01b038316600090815260036020526040812080546001929061181a908490612856565b90915550506001600160a01b038216600090815260036020526040812080546001929061184890849061280b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006118b5828461280b565b9392505050565b60006118b58284612837565b804710156119185760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610744565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611965576040519150601f19603f3d011682016040523d82523d6000602084013e61196a565b606091505b505090508061087a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610744565b60006119ec600c5490565b90506119fa611329600c5490565b611a043382611d60565b6114ba600c80546001019055565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611ac65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610744565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b3e8484846116fe565b611b4a84848484611daa565b61104a5760405162461bcd60e51b8152600401610744906127ae565b6060600f805461064c90612899565b606081611b995750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bc35780611bad816128d4565b9150611bbc9050600a83612823565b9150611b9d565b60008167ffffffffffffffff811115611bec57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c16576020820181803683370190505b5090505b84156116f657611c2b600183612856565b9150611c38600a866128ef565b611c4390603061280b565b60f81b818381518110611c6657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ca0600a86612823565b9450611c1a565b612710811115611cf95760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610744565b6040805180820182526001600160a01b03938416815262ffffff92831660208083019182526000968752600b905291909420935184549151909216600160a01b0276ffffffffffffffffffffffffffffffffffffffffffffff199091169190921617179055565b610d12828260405180602001604052806000815250611eb7565b60006001600160e01b0319821663780e9d6360e01b1480610637575061063782611eea565b61087a838383611f3a565b60006001600160a01b0384163b15611eac57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611dee90339089908890889060040161271b565b602060405180830381600087803b158015611e0857600080fd5b505af1925050508015611e38575060408051601f3d908101601f19168201909252611e3591810190612592565b60015b611e92573d808015611e66576040519150601f19603f3d011682016040523d82523d6000602084013e611e6b565b606091505b508051611e8a5760405162461bcd60e51b8152600401610744906127ae565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116f6565b506001949350505050565b611ec18383611ff2565b611ece6000848484611daa565b61087a5760405162461bcd60e51b8152600401610744906127ae565b60006001600160e01b031982166380ac58cd60e01b1480611f1b57506001600160e01b03198216635b5e139f60e01b145b8061063757506301ffc9a760e01b6001600160e01b0319831614610637565b6001600160a01b038316611f9557611f9081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611fb8565b816001600160a01b0316836001600160a01b031614611fb857611fb88382612140565b6001600160a01b038216611fcf5761087a816121dd565b826001600160a01b0316826001600160a01b03161461087a5761087a82826122b6565b6001600160a01b0382166120485760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610744565b6000818152600260205260409020546001600160a01b0316156120ad5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610744565b6120b960008383611d9f565b6001600160a01b03821660009081526003602052604081208054600192906120e290849061280b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161214d84610d8d565b6121579190612856565b6000838152600860205260409020549091508082146121aa576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906121ef90600190612856565b6000838152600a60205260408120546009805493945090928490811061222557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061225457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061229a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006122c183610d8d565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461230690612899565b90600052602060002090601f016020900481019282612328576000855561236e565b82601f1061234157805160ff191683800117855561236e565b8280016001018555821561236e579182015b8281111561236e578251825591602001919060010190612353565b5061237a92915061237e565b5090565b5b8082111561237a576000815560010161237f565b600067ffffffffffffffff808411156123ae576123ae61292f565b604051601f8501601f19908116603f011681019082821181831017156123d6576123d661292f565b816040528093508581528686860111156123ef57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561241a578081fd5b81356118b581612945565b60008060408385031215612437578081fd5b823561244281612945565b9150602083013561245281612945565b809150509250929050565b600080600060608486031215612471578081fd5b833561247c81612945565b9250602084013561248c81612945565b929592945050506040919091013590565b600080600080608085870312156124b2578081fd5b84356124bd81612945565b935060208501356124cd81612945565b925060408501359150606085013567ffffffffffffffff8111156124ef578182fd5b8501601f810187136124ff578182fd5b61250e87823560208401612393565b91505092959194509250565b6000806040838503121561252c578182fd5b823561253781612945565b915060208301358015158114612452578182fd5b6000806040838503121561255d578182fd5b823561256881612945565b946020939093013593505050565b600060208284031215612587578081fd5b81356118b58161295a565b6000602082840312156125a3578081fd5b81516118b58161295a565b6000602082840312156125bf578081fd5b813567ffffffffffffffff8111156125d5578182fd5b8201601f810184136125e5578182fd5b6116f684823560208401612393565b600060208284031215612605578081fd5b5035919050565b6000806040838503121561261e578182fd5b50508035926020909101359150565b6000815180845261264581602086016020860161286d565b601f01601f19169290920160200192915050565b60008451602061266c8285838a0161286d565b85519184019161267f8184848a0161286d565b85549201918390600181811c908083168061269b57607f831692505b8583108114156126b957634e487b7160e01b88526022600452602488fd5b8080156126cd57600181146126de5761270a565b60ff1985168852838801955061270a565b60008b815260209020895b858110156127025781548a8201529084019088016126e9565b505083880195505b50939b9a5050505050505050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261274d608083018461262d565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561278f57835183529284019291840191600101612773565b50909695505050505050565b6020815260006118b5602083018461262d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000821982111561281e5761281e612903565b500190565b60008261283257612832612919565b500490565b600081600019048311821515161561285157612851612903565b500290565b60008282101561286857612868612903565b500390565b60005b83811015612888578181015183820152602001612870565b8381111561104a5750506000910152565b600181811c908216806128ad57607f821691505b602082108114156128ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128e8576128e8612903565b5060010190565b6000826128fe576128fe612919565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114ba57600080fd5b6001600160e01b0319811681146114ba57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202188b2406a2de171856a8f6bfc0516999e4fd2c3cb8d7ab0c31e700a0811494464736f6c634300080400330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000721cd264821d0ff07299bcf61a7c60e889152843000000000000000000000000f2d15deaf62b8c4afc0343006579e8e662c120d90000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d514231553955374e416938425135327342477856384b4a76595574447178684b795a536341366347476978752f00000000000000000000

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c8063715018a61161010d578063c6682862116100a0578063de8b51e11161006f578063de8b51e11461056e578063e985e9c514610583578063f2fde38b146105cc578063f4a0a528146105ec578063fb690f501461060c57600080fd5b8063c668286214610504578063c87b56dd14610519578063cc47a40b14610539578063d547cfb71461055957600080fd5b80638da5cb5b116100dc5780638da5cb5b1461049157806395d89b41146104af578063a22cb465146104c4578063b88d4fde146104e457600080fd5b8063715018a6146104245780638462151c146104395780638d702122146104665780638d859f3e1461047b57600080fd5b806332cb6b0c1161018557806355f804b31161015457806355f804b3146103aa5780636352211e146103ca5780637080d6fc146103ea57806370a082311461040457600080fd5b806332cb6b0c146103425780633b4b13811461035757806342842e0e1461036a5780634f6ccce71461038a57600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102c35780632a55205a146102e35780632f745c591461032257600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612576565b61062c565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61063d565b60405161021f919061279b565b34801561025657600080fd5b5061026a6102653660046125f4565b6106cf565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d36600461254b565b610769565b005b3480156102b057600080fd5b506009545b60405190815260200161021f565b3480156102cf57600080fd5b506102a26102de36600461245d565b61087f565b3480156102ef57600080fd5b506103036102fe36600461260c565b6108fa565b604080516001600160a01b03909316835260208301919091520161021f565b34801561032e57600080fd5b506102b561033d36600461254b565b610958565b34801561034e57600080fd5b506102b5603281565b6102a26103653660046125f4565b6109ee565b34801561037657600080fd5b506102a261038536600461245d565b610bfb565b34801561039657600080fd5b506102b56103a53660046125f4565b610c16565b3480156103b657600080fd5b506102a26103c53660046125ae565b610cb7565b3480156103d657600080fd5b5061026a6103e53660046125f4565b610d16565b3480156103f657600080fd5b50600e546102139060ff1681565b34801561041057600080fd5b506102b561041f366004612409565b610d8d565b34801561043057600080fd5b506102a2610e14565b34801561044557600080fd5b50610459610454366004612409565b610e68565b60405161021f9190612757565b34801561047257600080fd5b506102a2610f26565b34801561048757600080fd5b506102b5600d5481565b34801561049d57600080fd5b506006546001600160a01b031661026a565b3480156104bb57600080fd5b5061023d610fb4565b3480156104d057600080fd5b506102a26104df36600461251a565b610fc3565b3480156104f057600080fd5b506102a26104ff36600461249d565b610fce565b34801561051057600080fd5b5061023d611050565b34801561052557600080fd5b5061023d6105343660046125f4565b6110de565b34801561054557600080fd5b506102a261055436600461254b565b611266565b34801561056557600080fd5b5061023d61139b565b34801561057a57600080fd5b506102a26113a8565b34801561058f57600080fd5b5061021361059e366004612425565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105d857600080fd5b506102a26105e7366004612409565b611404565b3480156105f857600080fd5b506102a26106073660046125f4565b6114bd565b34801561061857600080fd5b506102a2610627366004612409565b61150a565b600061063782611574565b92915050565b60606000805461064c90612899565b80601f016020809104026020016040519081016040528092919081815260200182805461067890612899565b80156106c55780601f1061069a576101008083540402835291602001916106c5565b820191906000526020600020905b8154815290600101906020018083116106a857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661074d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061077482610d16565b9050806001600160a01b0316836001600160a01b031614156107e25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610744565b336001600160a01b03821614806107fe57506107fe813361059e565b6108705760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610744565b61087a8383611599565b505050565b6108893382611607565b6108ef5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610744565b61087a8383836116fe565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b90910462ffffff169282018390529291612710906109449086612837565b61094e9190612823565b9150509250929050565b600061096383610d8d565b82106109c55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610744565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60006109f9600c5490565b600e5490915060ff16610a4e5760405162461bcd60e51b815260206004820152601c60248201527f53616c65206d7573742062652061637469766520746f206d696e7420000000006044820152606401610744565b6032610a5a82846118a9565b1115610aa85760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768204e465473206c6566740000000000000000000000006044820152606401610744565b600d54610ab590836118bc565b341015610b0f5760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f7567687420657468657220746f207075726368617365204e46604482015261547360f01b6064820152608401610744565b3360009081526012602052604090205460ff16151560011415610b635760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c7920627579206f6e6560a01b6044820152606401610744565b3460006064610b73836005612837565b610b7d9190612823565b601354909150610b96906001600160a01b0316826118c8565b601454610bb5906001600160a01b0316610bb08385612856565b6118c8565b60005b84811015610bda57610bc86119e1565b80610bd2816128d4565b915050610bb8565b5050336000908152601260205260409020805460ff19166001179055505050565b61087a83838360405180602001604052806000815250610fce565b6000610c2160095490565b8210610c845760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610744565b60098281548110610ca557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6006546001600160a01b03163314610cff5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b8051610d1290600f9060208401906122fa565b5050565b6000818152600260205260408120546001600160a01b0316806106375760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610744565b60006001600160a01b038216610df85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610744565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e5c5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b610e666000611a12565b565b60606000610e7583610d8d565b905060008167ffffffffffffffff811115610ea057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ec9578160200160208202803683370190505b50905060005b82811015610f1e57610ee18582610958565b828281518110610f0157634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f16816128d4565b915050610ecf565b509392505050565b6006546001600160a01b03163314610f6e5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b604080513381524760208201527f215be423a2afeeee1f3f4d3cc730708809a96e17103a81f16896c0722bd20635910160405180910390a16006546001600160a01b0316ff5b60606001805461064c90612899565b610d12338383611a64565b610fd83383611607565b61103e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610744565b61104a84848484611b33565b50505050565b6010805461105d90612899565b80601f016020809104026020016040519081016040528092919081815260200182805461108990612899565b80156110d65780601f106110ab576101008083540402835291602001916110d6565b820191906000526020600020905b8154815290600101906020018083116110b957829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b031661115d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610744565b6000828152601160205260408120805461117690612899565b80601f01602080910402602001604051908101604052809291908181526020018280546111a290612899565b80156111ef5780601f106111c4576101008083540402835291602001916111ef565b820191906000526020600020905b8154815290600101906020018083116111d257829003601f168201915b505050505090506000611200611b66565b9050805160001415611213575092915050565b815115611248578082601060405160200161123093929190612659565b60405160208183030381529060405292505050919050565b8061125285611b75565b601060405160200161123093929190612659565b6006546001600160a01b031633146112ae5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b6032816112ba60095490565b6112c4919061280b565b11156113125760405162461bcd60e51b815260206004820152601360248201527f45786365656420746f74616c20737570706c79000000000000000000000000006044820152606401610744565b60005b818110156113755761133d611329600c5490565b6014546001600160a01b03166103e8611ca7565b6000611348600c5490565b90506113548482611d60565b611362600c80546001019055565b508061136d816128d4565b915050611315565b50506001600160a01b03166000908152601260205260409020805460ff19166001179055565b600f805461105d90612899565b6006546001600160a01b031633146113f05760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b600e805460ff19811660ff90911615179055565b6006546001600160a01b0316331461144c5760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b6001600160a01b0381166114b15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610744565b6114ba81611a12565b50565b6006546001600160a01b031633146115055760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b600d55565b6006546001600160a01b031633146115525760405162461bcd60e51b815260206004820181905260248201526000805160206129718339815191526044820152606401610744565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b0319821663152a902d60e11b1480610637575061063782611d7a565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115ce82610d16565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116805760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610744565b600061168b83610d16565b9050806001600160a01b0316846001600160a01b031614806116c65750836001600160a01b03166116bb846106cf565b6001600160a01b0316145b806116f657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661171182610d16565b6001600160a01b0316146117795760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610744565b6001600160a01b0382166117db5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610744565b6117e6838383611d9f565b6117f1600082611599565b6001600160a01b038316600090815260036020526040812080546001929061181a908490612856565b90915550506001600160a01b038216600090815260036020526040812080546001929061184890849061280b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006118b5828461280b565b9392505050565b60006118b58284612837565b804710156119185760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610744565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611965576040519150601f19603f3d011682016040523d82523d6000602084013e61196a565b606091505b505090508061087a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610744565b60006119ec600c5490565b90506119fa611329600c5490565b611a043382611d60565b6114ba600c80546001019055565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611ac65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610744565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b3e8484846116fe565b611b4a84848484611daa565b61104a5760405162461bcd60e51b8152600401610744906127ae565b6060600f805461064c90612899565b606081611b995750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bc35780611bad816128d4565b9150611bbc9050600a83612823565b9150611b9d565b60008167ffffffffffffffff811115611bec57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c16576020820181803683370190505b5090505b84156116f657611c2b600183612856565b9150611c38600a866128ef565b611c4390603061280b565b60f81b818381518110611c6657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ca0600a86612823565b9450611c1a565b612710811115611cf95760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610744565b6040805180820182526001600160a01b03938416815262ffffff92831660208083019182526000968752600b905291909420935184549151909216600160a01b0276ffffffffffffffffffffffffffffffffffffffffffffff199091169190921617179055565b610d12828260405180602001604052806000815250611eb7565b60006001600160e01b0319821663780e9d6360e01b1480610637575061063782611eea565b61087a838383611f3a565b60006001600160a01b0384163b15611eac57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611dee90339089908890889060040161271b565b602060405180830381600087803b158015611e0857600080fd5b505af1925050508015611e38575060408051601f3d908101601f19168201909252611e3591810190612592565b60015b611e92573d808015611e66576040519150601f19603f3d011682016040523d82523d6000602084013e611e6b565b606091505b508051611e8a5760405162461bcd60e51b8152600401610744906127ae565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116f6565b506001949350505050565b611ec18383611ff2565b611ece6000848484611daa565b61087a5760405162461bcd60e51b8152600401610744906127ae565b60006001600160e01b031982166380ac58cd60e01b1480611f1b57506001600160e01b03198216635b5e139f60e01b145b8061063757506301ffc9a760e01b6001600160e01b0319831614610637565b6001600160a01b038316611f9557611f9081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611fb8565b816001600160a01b0316836001600160a01b031614611fb857611fb88382612140565b6001600160a01b038216611fcf5761087a816121dd565b826001600160a01b0316826001600160a01b03161461087a5761087a82826122b6565b6001600160a01b0382166120485760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610744565b6000818152600260205260409020546001600160a01b0316156120ad5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610744565b6120b960008383611d9f565b6001600160a01b03821660009081526003602052604081208054600192906120e290849061280b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161214d84610d8d565b6121579190612856565b6000838152600860205260409020549091508082146121aa576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906121ef90600190612856565b6000838152600a60205260408120546009805493945090928490811061222557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061225457634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061229a57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006122c183610d8d565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461230690612899565b90600052602060002090601f016020900481019282612328576000855561236e565b82601f1061234157805160ff191683800117855561236e565b8280016001018555821561236e579182015b8281111561236e578251825591602001919060010190612353565b5061237a92915061237e565b5090565b5b8082111561237a576000815560010161237f565b600067ffffffffffffffff808411156123ae576123ae61292f565b604051601f8501601f19908116603f011681019082821181831017156123d6576123d661292f565b816040528093508581528686860111156123ef57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561241a578081fd5b81356118b581612945565b60008060408385031215612437578081fd5b823561244281612945565b9150602083013561245281612945565b809150509250929050565b600080600060608486031215612471578081fd5b833561247c81612945565b9250602084013561248c81612945565b929592945050506040919091013590565b600080600080608085870312156124b2578081fd5b84356124bd81612945565b935060208501356124cd81612945565b925060408501359150606085013567ffffffffffffffff8111156124ef578182fd5b8501601f810187136124ff578182fd5b61250e87823560208401612393565b91505092959194509250565b6000806040838503121561252c578182fd5b823561253781612945565b915060208301358015158114612452578182fd5b6000806040838503121561255d578182fd5b823561256881612945565b946020939093013593505050565b600060208284031215612587578081fd5b81356118b58161295a565b6000602082840312156125a3578081fd5b81516118b58161295a565b6000602082840312156125bf578081fd5b813567ffffffffffffffff8111156125d5578182fd5b8201601f810184136125e5578182fd5b6116f684823560208401612393565b600060208284031215612605578081fd5b5035919050565b6000806040838503121561261e578182fd5b50508035926020909101359150565b6000815180845261264581602086016020860161286d565b601f01601f19169290920160200192915050565b60008451602061266c8285838a0161286d565b85519184019161267f8184848a0161286d565b85549201918390600181811c908083168061269b57607f831692505b8583108114156126b957634e487b7160e01b88526022600452602488fd5b8080156126cd57600181146126de5761270a565b60ff1985168852838801955061270a565b60008b815260209020895b858110156127025781548a8201529084019088016126e9565b505083880195505b50939b9a5050505050505050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261274d608083018461262d565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561278f57835183529284019291840191600101612773565b50909695505050505050565b6020815260006118b5602083018461262d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000821982111561281e5761281e612903565b500190565b60008261283257612832612919565b500490565b600081600019048311821515161561285157612851612903565b500290565b60008282101561286857612868612903565b500390565b60005b83811015612888578181015183820152602001612870565b8381111561104a5750506000910152565b600181811c908216806128ad57607f821691505b602082108114156128ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128e8576128e8612903565b5060010190565b6000826128fe576128fe612919565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114ba57600080fd5b6001600160e01b0319811681146114ba57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202188b2406a2de171856a8f6bfc0516999e4fd2c3cb8d7ab0c31e700a0811494464736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000721cd264821d0ff07299bcf61a7c60e889152843000000000000000000000000f2d15deaf62b8c4afc0343006579e8e662c120d90000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d514231553955374e416938425135327342477856384b4a76595574447178684b795a536341366347476978752f00000000000000000000

-----Decoded View---------------
Arg [0] : __baseURI (string): ipfs://QmQB1U9U7NAi8BQ52sBGxV8KJvYUtDqxhKyZScA6cGGixu/
Arg [1] : _receiver (address): 0x721CD264821D0Ff07299Bcf61a7C60E889152843
Arg [2] : _devAddr (address): 0xf2d15dEAf62b8c4AFC0343006579E8E662c120D9

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000721cd264821d0ff07299bcf61a7c60e889152843
Arg [2] : 000000000000000000000000f2d15deaf62b8c4afc0343006579e8e662c120d9
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d514231553955374e416938425135327342477856384b4a
Arg [5] : 76595574447178684b795a536341366347476978752f00000000000000000000


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.