ETH Price: $2,540.50 (+0.61%)

Token

VenusMePE (VenusMePE)
 

Overview

Max Total Supply

319 VenusMePE

Holders

71

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 VenusMePE
0x819c156C094785d89993bbD24d948b3e8c95148b
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
VenusMePE

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

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

// ------------------------------------------------------------
// This is the only contract file we added on top of
// standard contracts by openzeppelin
// ------------------------------------------------------------
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.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/token/ERC721/extensions/ERC721Royalty.sol";

contract VenusMePE is ERC721, ERC721Royalty, ERC721Enumerable, Ownable {
    using SafeMath for uint256;
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    // 555 NFTS available on Ethereum blockchain.
    uint256 public constant MAX_SUPPLY = 555;

    // We Reserve tokens to reward people who supported us
    uint256 public constant RESERVED_TOKENS = 10;

    // Price initially set to 5.5 ETH (around 5.555€ at time of deployment)
    uint256 public price = 5.5 ether;

    // Base address for the metadata
    bool public lockedBaseTokenUri = false;
    string public baseTokenURI;

    // Addresses for withdrawals
    bool public lockedAddressCharity = false;
    address public addressCharity;
    address public addressJuanjo;
    address public addressTokomo;

    constructor(string memory baseURI) ERC721("VenusMePE", "VenusMePE") {
        setBaseURI(baseURI);

        // Set royalty of all NFTs to 10%
        _setDefaultRoyalty(address(this), 1000);
    }

    // Reserve NFTs
    function reserveNFTs() public onlyOwner {
        uint256 totalMinted = _tokenIds.current();

        require(
            totalMinted.add(RESERVED_TOKENS) < MAX_SUPPLY,
            "Not enough NFTs left to reserve"
        );

        for (uint256 i = 0; i < RESERVED_TOKENS; i++) {
            _mintSingleNFT();
        }
    }

    // Override so the openzeppelin tokenURI() method will use this method to create the full tokenURI instead
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }

    // Set new baseTokenUri as long it is not locked
    function setBaseURI(string memory _baseTokenURI) public onlyOwner {
        require(!lockedBaseTokenUri, "baseTokenURI is already locked.");
        baseTokenURI = _baseTokenURI;
    }

    // Lock baseTokenUri ::: no change possible after calling this
    function lockBaseTokenUri() public onlyOwner {
        lockedBaseTokenUri = true;
    }

    // Set new addressCharity as long it is not locked
    // ------------------------------------------------------------
    // We need to be flexible until The Giving Block team has verified
    // the donation address on twitter. Once this is done, we will lock
    // the variable via "lockAddressCharity" function.
    function setAddressCharity(address _addressCharity) public onlyOwner {
        require(!lockedAddressCharity, "addressCharity is already locked.");
        addressCharity = _addressCharity;
    }

    // Lock addressCharity ::: no return possible after calling this
    // ------------------------------------------------------------
    // With this function we lock in the charity address.
    // Once the variable "lockedAddressCharity" is set to true,
    // we cannot use the "setAddressCharity" function anymore
    // to set the variable "addressCharity" other than the address
    // that is verified by The Giving Blocks team on twitter.
    function lockAddressCharity() public onlyOwner {
        lockedAddressCharity = true;
    }

    // Set a different price in case ETH changes drastically
    function setPrice(uint256 _price) public onlyOwner {
        price = _price;
    }

    // The function to mint NFTs
    function mintNFTs(uint256 _count) public payable {
        uint256 totalMinted = _tokenIds.current();

        require(totalMinted.add(_count) <= MAX_SUPPLY, "Not enough NFTs left!");
        require(
            msg.value >= price.mul(_count),
            "Not enough funds to purchase NFTs."
        );

        for (uint256 i = 0; i < _count; i++) {
            _mintSingleNFT();
        }
    }

    // Mint NFT and increment the tokenId
    function _mintSingleNFT() private {
        uint256 newTokenID = _tokenIds.current();
        _safeMint(msg.sender, newTokenID);
        _tokenIds.increment();
    }

    // Set team addresses to stay flexible
    function setAddresses(address[] memory _a) public onlyOwner {
        addressTokomo = _a[0];
        addressJuanjo = _a[1];
    }

    // Withdraw funds
    // ------------------------------------------------------------
    // By reviewing this publicly transparent and unchangable smart contract,
    // everyone able to read read a smart contract, can verify that this is the only
    // function to withdraw the funds.
    // Once the "addressCharity" is locked and the address is verified by
    // The Giving Block's team, this guarantees in a trustless manner,
    // that we cannot do anything else with the funds than donate 95% percent
    // with each withdrawal.
    // ------------------------------------------------------------
    // Follow @VenusMe14 on twitter or visit https://venusme.love for more info
    // and updates!
    function withdraw(uint256 amount) public payable onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "No funds left to withdraw");

        uint256 percent = amount / 100;
        require(payable(addressCharity).send(percent * 95)); // 95% for charity
        require(payable(addressJuanjo).send((percent * 5) / 2)); // 2,5% for juanjo
        require(payable(addressTokomo).send((percent * 5) / 2)); // 2,5% for tokomo
    }

    // ------------------------------------------------------------
    // The following functions are overrides required by Solidity.
    // ------------------------------------------------------------
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

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

    function _burn(uint256 tokenId)
        internal
        virtual
        override(ERC721, ERC721Royalty)
    {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 2 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 3 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 4 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 subtraction 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 (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 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 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 8 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 9 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

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

pragma solidity ^0.8.0;

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

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 (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 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 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 (last updated v4.5.0) (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);

    /**
     * @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 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressCharity","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressJuanjo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressTokomo","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockAddressCharity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockBaseTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockedAddressCharity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedBaseTokenUri","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"_addressCharity","type":"address"}],"name":"setAddressCharity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_a","type":"address[]"}],"name":"setAddresses","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":"_price","type":"uint256"}],"name":"setPrice","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":[],"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":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052674c53ecdc18a60000600e55600f805460ff199081169091556011805490911690553480156200003357600080fd5b5060405162002be238038062002be28339810160408190526200005691620003ce565b60408051808201825260098082526856656e75734d65504560b81b6020808401828152855180870190965292855284015281519192916200009a9160029162000312565b508051620000b090600390602084019062000312565b505050620000cd620000c7620000ed60201b60201c565b620000f1565b620000d88162000143565b620000e6306103e862000211565b50620004e7565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c546001600160a01b03163314620001a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600f5460ff1615620001f85760405162461bcd60e51b815260206004820152601f60248201527f62617365546f6b656e55524920697320616c7265616479206c6f636b65642e0060448201526064016200019a565b80516200020d90601090602084019062000312565b5050565b6127106001600160601b0382161115620002815760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200019a565b6001600160a01b038216620002d95760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200019a565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b8280546200032090620004aa565b90600052602060002090601f0160209004810192826200034457600085556200038f565b82601f106200035f57805160ff19168380011785556200038f565b828001600101855582156200038f579182015b828111156200038f57825182559160200191906001019062000372565b506200039d929150620003a1565b5090565b5b808211156200039d5760008155600101620003a2565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620003e257600080fd5b82516001600160401b0380821115620003fa57600080fd5b818501915085601f8301126200040f57600080fd5b815181811115620004245762000424620003b8565b604051601f8201601f19908116603f011681019083821181831017156200044f576200044f620003b8565b8160405282815288868487010111156200046857600080fd5b600093505b828410156200048c57848401860151818501870152928501926200046d565b828411156200049e5760008684830101525b98975050505050505050565b600181811c90821680620004bf57607f821691505b60208210811415620004e157634e487b7160e01b600052602260045260246000fd5b50919050565b6126eb80620004f76000396000f3fe6080604052600436106102255760003560e01c806368fc68c711610123578063b88d4fde116100ab578063d547cfb71161006f578063d547cfb714610626578063dc7b7ebb1461063b578063e97b043914610655578063e985e9c514610675578063f2fde38b146106be57600080fd5b8063b88d4fde14610591578063b9571721146105b1578063c22b2b04146105d1578063c4887d4d146105e6578063c87b56dd1461060657600080fd5b80638de97ed5116100f25780638de97ed51461050657806391b7f5ed1461052657806395d89b4114610546578063a035b1fe1461055b578063a22cb4651461057157600080fd5b806368fc68c71461049e57806370a08231146104b3578063715018a6146104d35780638da5cb5b146104e857600080fd5b80632e1a7d4d116101b15780634f6ccce7116101755780634f6ccce7146103ff5780634feff95c1461041f57806355f804b3146104395780636019a2d5146104595780636352211e1461047e57600080fd5b80632e1a7d4d146103835780632f745c591461039657806332cb6b0c146103b65780633b4b1381146103cc57806342842e0e146103df57600080fd5b8063144100c7116101f8578063144100c7146102db57806318160ddd146102f057806323b872dd1461030f5780632a55205a1461032f5780632d2eb0f11461036e57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004612050565b6106de565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746106ef565b60405161025691906120c5565b34801561028d57600080fd5b506102a161029c3660046120d8565b610781565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d436600461210d565b61081b565b005b3480156102e757600080fd5b506102d9610931565b3480156102fc57600080fd5b50600a545b604051908152602001610256565b34801561031b57600080fd5b506102d961032a366004612137565b6109ed565b34801561033b57600080fd5b5061034f61034a366004612173565b610a1e565b604080516001600160a01b039093168352602083019190915201610256565b34801561037a57600080fd5b506102d9610aca565b6102d96103913660046120d8565b610b03565b3480156103a257600080fd5b506103016103b136600461210d565b610c56565b3480156103c257600080fd5b5061030161022b81565b6102d96103da3660046120d8565b610cec565b3480156103eb57600080fd5b506102d96103fa366004612137565b610dd8565b34801561040b57600080fd5b5061030161041a3660046120d8565b610df3565b34801561042b57600080fd5b50600f5461024a9060ff1681565b34801561044557600080fd5b506102d9610454366004612234565b610e86565b34801561046557600080fd5b506011546102a19061010090046001600160a01b031681565b34801561048a57600080fd5b506102a16104993660046120d8565b610f16565b3480156104aa57600080fd5b50610301600a81565b3480156104bf57600080fd5b506103016104ce36600461227d565b610f8d565b3480156104df57600080fd5b506102d9611014565b3480156104f457600080fd5b50600c546001600160a01b03166102a1565b34801561051257600080fd5b506012546102a1906001600160a01b031681565b34801561053257600080fd5b506102d96105413660046120d8565b61104a565b34801561055257600080fd5b50610274611079565b34801561056757600080fd5b50610301600e5481565b34801561057d57600080fd5b506102d961058c366004612298565b611088565b34801561059d57600080fd5b506102d96105ac3660046122d4565b611093565b3480156105bd57600080fd5b506102d96105cc366004612350565b6110cb565b3480156105dd57600080fd5b506102d961117a565b3480156105f257600080fd5b506102d961060136600461227d565b6111b3565b34801561061257600080fd5b506102746106213660046120d8565b611262565b34801561063257600080fd5b5061027461133d565b34801561064757600080fd5b5060115461024a9060ff1681565b34801561066157600080fd5b506013546102a1906001600160a01b031681565b34801561068157600080fd5b5061024a6106903660046123fd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106ca57600080fd5b506102d96106d936600461227d565b6113cb565b60006106e982611466565b92915050565b6060600280546106fe90612430565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90612430565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166107ff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082682610f16565b9050806001600160a01b0316836001600160a01b031614156108945760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f6565b336001600160a01b03821614806108b057506108b08133610690565b6109225760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f6565b61092c838361148b565b505050565b600c546001600160a01b0316331461095b5760405162461bcd60e51b81526004016107f69061246b565b6000610966600d5490565b905061022b61097682600a6114f9565b106109c35760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f756768204e465473206c65667420746f20726573657276650060448201526064016107f6565b60005b600a8110156109e9576109d7611505565b806109e1816124b6565b9150506109c6565b5050565b6109f7338261152a565b610a135760405162461bcd60e51b81526004016107f6906124d1565b61092c838383611621565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a935750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ab2906001600160601b031687612522565b610abc9190612557565b915196919550909350505050565b600c546001600160a01b03163314610af45760405162461bcd60e51b81526004016107f69061246b565b6011805460ff19166001179055565b600c546001600160a01b03163314610b2d5760405162461bcd60e51b81526004016107f69061246b565b4780610b7b5760405162461bcd60e51b815260206004820152601960248201527f4e6f2066756e6473206c65667420746f2077697468647261770000000000000060448201526064016107f6565b6000610b88606484612557565b60115490915061010090046001600160a01b03166108fc610baa83605f612522565b6040518115909202916000818181858888f19350505050610bca57600080fd5b6012546001600160a01b03166108fc6002610be6846005612522565b610bf09190612557565b6040518115909202916000818181858888f19350505050610c1057600080fd5b6013546001600160a01b03166108fc6002610c2c846005612522565b610c369190612557565b6040518115909202916000818181858888f1935050505061092c57600080fd5b6000610c6183610f8d565b8210610cc35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107f6565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6000610cf7600d5490565b905061022b610d0682846114f9565b1115610d4c5760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f756768204e465473206c6566742160581b60448201526064016107f6565b600e54610d5990836117c8565b341015610db35760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f7567682066756e647320746f207075726368617365204e4654604482015261399760f11b60648201526084016107f6565b60005b8281101561092c57610dc6611505565b80610dd0816124b6565b915050610db6565b61092c83838360405180602001604052806000815250611093565b6000610dfe600a5490565b8210610e615760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107f6565b600a8281548110610e7457610e7461256b565b90600052602060002001549050919050565b600c546001600160a01b03163314610eb05760405162461bcd60e51b81526004016107f69061246b565b600f5460ff1615610f035760405162461bcd60e51b815260206004820152601f60248201527f62617365546f6b656e55524920697320616c7265616479206c6f636b65642e0060448201526064016107f6565b80516109e9906010906020840190611fa1565b6000818152600460205260408120546001600160a01b0316806106e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f6565b60006001600160a01b038216610ff85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f6565b506001600160a01b031660009081526005602052604090205490565b600c546001600160a01b0316331461103e5760405162461bcd60e51b81526004016107f69061246b565b61104860006117d4565b565b600c546001600160a01b031633146110745760405162461bcd60e51b81526004016107f69061246b565b600e55565b6060600380546106fe90612430565b6109e9338383611826565b61109d338361152a565b6110b95760405162461bcd60e51b81526004016107f6906124d1565b6110c5848484846118f5565b50505050565b600c546001600160a01b031633146110f55760405162461bcd60e51b81526004016107f69061246b565b806000815181106111085761110861256b565b6020026020010151601360006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001815181106111495761114961256b565b6020026020010151601260006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b600c546001600160a01b031633146111a45760405162461bcd60e51b81526004016107f69061246b565b600f805460ff19166001179055565b600c546001600160a01b031633146111dd5760405162461bcd60e51b81526004016107f69061246b565b60115460ff161561123a5760405162461bcd60e51b815260206004820152602160248201527f616464726573734368617269747920697320616c7265616479206c6f636b65646044820152601760f91b60648201526084016107f6565b601180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000818152600460205260409020546060906001600160a01b03166112e15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107f6565b60006112eb611928565b9050600081511161130b5760405180602001604052806000815250611336565b8061131584611937565b604051602001611326929190612581565b6040516020818303038152906040525b9392505050565b6010805461134a90612430565b80601f016020809104026020016040519081016040528092919081815260200182805461137690612430565b80156113c35780601f10611398576101008083540402835291602001916113c3565b820191906000526020600020905b8154815290600101906020018083116113a657829003601f168201915b505050505081565b600c546001600160a01b031633146113f55760405162461bcd60e51b81526004016107f69061246b565b6001600160a01b03811661145a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f6565b611463816117d4565b50565b60006001600160e01b0319821663780e9d6360e01b14806106e957506106e982611a35565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114c082610f16565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061133682846125b0565b6000611510600d5490565b905061151c3382611a40565b611463600d80546001019055565b6000818152600460205260408120546001600160a01b03166115a35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f6565b60006115ae83610f16565b9050806001600160a01b0316846001600160a01b031614806115f557506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806116195750836001600160a01b031661160e84610781565b6001600160a01b0316145b949350505050565b826001600160a01b031661163482610f16565b6001600160a01b0316146116985760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107f6565b6001600160a01b0382166116fa5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f6565b611705838383611a5a565b61171060008261148b565b6001600160a01b03831660009081526005602052604081208054600192906117399084906125c8565b90915550506001600160a01b03821660009081526005602052604081208054600192906117679084906125b0565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006113368284612522565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f6565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611900848484611621565b61190c84848484611a65565b6110c55760405162461bcd60e51b81526004016107f6906125df565b6060601080546106fe90612430565b60608161195b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611985578061196f816124b6565b915061197e9050600a83612557565b915061195f565b60008167ffffffffffffffff8111156119a0576119a0612195565b6040519080825280601f01601f1916602001820160405280156119ca576020820181803683370190505b5090505b8415611619576119df6001836125c8565b91506119ec600a86612631565b6119f79060306125b0565b60f81b818381518110611a0c57611a0c61256b565b60200101906001600160f81b031916908160001a905350611a2e600a86612557565b94506119ce565b60006106e982611b63565b6109e9828260405180602001604052806000815250611ba3565b61092c838383611bd6565b60006001600160a01b0384163b15611b5857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611aa9903390899088908890600401612645565b6020604051808303816000875af1925050508015611ae4575060408051601f3d908101601f19168201909252611ae191810190612682565b60015b611b3e573d808015611b12576040519150601f19603f3d011682016040523d82523d6000602084013e611b17565b606091505b508051611b365760405162461bcd60e51b81526004016107f6906125df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611619565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b1480611b9457506001600160e01b03198216635b5e139f60e01b145b806106e957506106e982611c8e565b611bad8383611cc3565b611bba6000848484611a65565b61092c5760405162461bcd60e51b81526004016107f6906125df565b6001600160a01b038316611c3157611c2c81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611c54565b816001600160a01b0316836001600160a01b031614611c5457611c548382611e11565b6001600160a01b038216611c6b5761092c81611eae565b826001600160a01b0316826001600160a01b03161461092c5761092c8282611f5d565b60006001600160e01b0319821663152a902d60e11b14806106e957506301ffc9a760e01b6001600160e01b03198316146106e9565b6001600160a01b038216611d195760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f6565b6000818152600460205260409020546001600160a01b031615611d7e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f6565b611d8a60008383611a5a565b6001600160a01b0382166000908152600560205260408120805460019290611db39084906125b0565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611e1e84610f8d565b611e2891906125c8565b600083815260096020526040902054909150808214611e7b576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090611ec0906001906125c8565b6000838152600b6020526040812054600a8054939450909284908110611ee857611ee861256b565b9060005260206000200154905080600a8381548110611f0957611f0961256b565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480611f4157611f4161269f565b6001900381819060005260206000200160009055905550505050565b6000611f6883610f8d565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b828054611fad90612430565b90600052602060002090601f016020900481019282611fcf5760008555612015565b82601f10611fe857805160ff1916838001178555612015565b82800160010185558215612015579182015b82811115612015578251825591602001919060010190611ffa565b50612021929150612025565b5090565b5b808211156120215760008155600101612026565b6001600160e01b03198116811461146357600080fd5b60006020828403121561206257600080fd5b81356113368161203a565b60005b83811015612088578181015183820152602001612070565b838111156110c55750506000910152565b600081518084526120b181602086016020860161206d565b601f01601f19169290920160200192915050565b6020815260006113366020830184612099565b6000602082840312156120ea57600080fd5b5035919050565b80356001600160a01b038116811461210857600080fd5b919050565b6000806040838503121561212057600080fd5b612129836120f1565b946020939093013593505050565b60008060006060848603121561214c57600080fd5b612155846120f1565b9250612163602085016120f1565b9150604084013590509250925092565b6000806040838503121561218657600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121d4576121d4612195565b604052919050565b600067ffffffffffffffff8311156121f6576121f6612195565b612209601f8401601f19166020016121ab565b905082815283838301111561221d57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561224657600080fd5b813567ffffffffffffffff81111561225d57600080fd5b8201601f8101841361226e57600080fd5b611619848235602084016121dc565b60006020828403121561228f57600080fd5b611336826120f1565b600080604083850312156122ab57600080fd5b6122b4836120f1565b9150602083013580151581146122c957600080fd5b809150509250929050565b600080600080608085870312156122ea57600080fd5b6122f3856120f1565b9350612301602086016120f1565b925060408501359150606085013567ffffffffffffffff81111561232457600080fd5b8501601f8101871361233557600080fd5b612344878235602084016121dc565b91505092959194509250565b6000602080838503121561236357600080fd5b823567ffffffffffffffff8082111561237b57600080fd5b818501915085601f83011261238f57600080fd5b8135818111156123a1576123a1612195565b8060051b91506123b28483016121ab565b81815291830184019184810190888411156123cc57600080fd5b938501935b838510156123f1576123e2856120f1565b825293850193908501906123d1565b98975050505050505050565b6000806040838503121561241057600080fd5b612419836120f1565b9150612427602084016120f1565b90509250929050565b600181811c9082168061244457607f821691505b6020821081141561246557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156124ca576124ca6124a0565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161561253c5761253c6124a0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261256657612566612541565b500490565b634e487b7160e01b600052603260045260246000fd5b6000835161259381846020880161206d565b8351908301906125a781836020880161206d565b01949350505050565b600082198211156125c3576125c36124a0565b500190565b6000828210156125da576125da6124a0565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261264057612640612541565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267890830184612099565b9695505050505050565b60006020828403121561269457600080fd5b81516113368161203a565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203587bcd922885302ba3021fb72379f04dda106e0db564034a1f56b38b0eae88464736f6c634300080c00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000e697066733a2f2f6e6f747965742f000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102255760003560e01c806368fc68c711610123578063b88d4fde116100ab578063d547cfb71161006f578063d547cfb714610626578063dc7b7ebb1461063b578063e97b043914610655578063e985e9c514610675578063f2fde38b146106be57600080fd5b8063b88d4fde14610591578063b9571721146105b1578063c22b2b04146105d1578063c4887d4d146105e6578063c87b56dd1461060657600080fd5b80638de97ed5116100f25780638de97ed51461050657806391b7f5ed1461052657806395d89b4114610546578063a035b1fe1461055b578063a22cb4651461057157600080fd5b806368fc68c71461049e57806370a08231146104b3578063715018a6146104d35780638da5cb5b146104e857600080fd5b80632e1a7d4d116101b15780634f6ccce7116101755780634f6ccce7146103ff5780634feff95c1461041f57806355f804b3146104395780636019a2d5146104595780636352211e1461047e57600080fd5b80632e1a7d4d146103835780632f745c591461039657806332cb6b0c146103b65780633b4b1381146103cc57806342842e0e146103df57600080fd5b8063144100c7116101f8578063144100c7146102db57806318160ddd146102f057806323b872dd1461030f5780632a55205a1461032f5780632d2eb0f11461036e57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004612050565b6106de565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746106ef565b60405161025691906120c5565b34801561028d57600080fd5b506102a161029c3660046120d8565b610781565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d436600461210d565b61081b565b005b3480156102e757600080fd5b506102d9610931565b3480156102fc57600080fd5b50600a545b604051908152602001610256565b34801561031b57600080fd5b506102d961032a366004612137565b6109ed565b34801561033b57600080fd5b5061034f61034a366004612173565b610a1e565b604080516001600160a01b039093168352602083019190915201610256565b34801561037a57600080fd5b506102d9610aca565b6102d96103913660046120d8565b610b03565b3480156103a257600080fd5b506103016103b136600461210d565b610c56565b3480156103c257600080fd5b5061030161022b81565b6102d96103da3660046120d8565b610cec565b3480156103eb57600080fd5b506102d96103fa366004612137565b610dd8565b34801561040b57600080fd5b5061030161041a3660046120d8565b610df3565b34801561042b57600080fd5b50600f5461024a9060ff1681565b34801561044557600080fd5b506102d9610454366004612234565b610e86565b34801561046557600080fd5b506011546102a19061010090046001600160a01b031681565b34801561048a57600080fd5b506102a16104993660046120d8565b610f16565b3480156104aa57600080fd5b50610301600a81565b3480156104bf57600080fd5b506103016104ce36600461227d565b610f8d565b3480156104df57600080fd5b506102d9611014565b3480156104f457600080fd5b50600c546001600160a01b03166102a1565b34801561051257600080fd5b506012546102a1906001600160a01b031681565b34801561053257600080fd5b506102d96105413660046120d8565b61104a565b34801561055257600080fd5b50610274611079565b34801561056757600080fd5b50610301600e5481565b34801561057d57600080fd5b506102d961058c366004612298565b611088565b34801561059d57600080fd5b506102d96105ac3660046122d4565b611093565b3480156105bd57600080fd5b506102d96105cc366004612350565b6110cb565b3480156105dd57600080fd5b506102d961117a565b3480156105f257600080fd5b506102d961060136600461227d565b6111b3565b34801561061257600080fd5b506102746106213660046120d8565b611262565b34801561063257600080fd5b5061027461133d565b34801561064757600080fd5b5060115461024a9060ff1681565b34801561066157600080fd5b506013546102a1906001600160a01b031681565b34801561068157600080fd5b5061024a6106903660046123fd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106ca57600080fd5b506102d96106d936600461227d565b6113cb565b60006106e982611466565b92915050565b6060600280546106fe90612430565b80601f016020809104026020016040519081016040528092919081815260200182805461072a90612430565b80156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166107ff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082682610f16565b9050806001600160a01b0316836001600160a01b031614156108945760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f6565b336001600160a01b03821614806108b057506108b08133610690565b6109225760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f6565b61092c838361148b565b505050565b600c546001600160a01b0316331461095b5760405162461bcd60e51b81526004016107f69061246b565b6000610966600d5490565b905061022b61097682600a6114f9565b106109c35760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f756768204e465473206c65667420746f20726573657276650060448201526064016107f6565b60005b600a8110156109e9576109d7611505565b806109e1816124b6565b9150506109c6565b5050565b6109f7338261152a565b610a135760405162461bcd60e51b81526004016107f6906124d1565b61092c838383611621565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a935750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ab2906001600160601b031687612522565b610abc9190612557565b915196919550909350505050565b600c546001600160a01b03163314610af45760405162461bcd60e51b81526004016107f69061246b565b6011805460ff19166001179055565b600c546001600160a01b03163314610b2d5760405162461bcd60e51b81526004016107f69061246b565b4780610b7b5760405162461bcd60e51b815260206004820152601960248201527f4e6f2066756e6473206c65667420746f2077697468647261770000000000000060448201526064016107f6565b6000610b88606484612557565b60115490915061010090046001600160a01b03166108fc610baa83605f612522565b6040518115909202916000818181858888f19350505050610bca57600080fd5b6012546001600160a01b03166108fc6002610be6846005612522565b610bf09190612557565b6040518115909202916000818181858888f19350505050610c1057600080fd5b6013546001600160a01b03166108fc6002610c2c846005612522565b610c369190612557565b6040518115909202916000818181858888f1935050505061092c57600080fd5b6000610c6183610f8d565b8210610cc35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107f6565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6000610cf7600d5490565b905061022b610d0682846114f9565b1115610d4c5760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f756768204e465473206c6566742160581b60448201526064016107f6565b600e54610d5990836117c8565b341015610db35760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f7567682066756e647320746f207075726368617365204e4654604482015261399760f11b60648201526084016107f6565b60005b8281101561092c57610dc6611505565b80610dd0816124b6565b915050610db6565b61092c83838360405180602001604052806000815250611093565b6000610dfe600a5490565b8210610e615760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107f6565b600a8281548110610e7457610e7461256b565b90600052602060002001549050919050565b600c546001600160a01b03163314610eb05760405162461bcd60e51b81526004016107f69061246b565b600f5460ff1615610f035760405162461bcd60e51b815260206004820152601f60248201527f62617365546f6b656e55524920697320616c7265616479206c6f636b65642e0060448201526064016107f6565b80516109e9906010906020840190611fa1565b6000818152600460205260408120546001600160a01b0316806106e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f6565b60006001600160a01b038216610ff85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f6565b506001600160a01b031660009081526005602052604090205490565b600c546001600160a01b0316331461103e5760405162461bcd60e51b81526004016107f69061246b565b61104860006117d4565b565b600c546001600160a01b031633146110745760405162461bcd60e51b81526004016107f69061246b565b600e55565b6060600380546106fe90612430565b6109e9338383611826565b61109d338361152a565b6110b95760405162461bcd60e51b81526004016107f6906124d1565b6110c5848484846118f5565b50505050565b600c546001600160a01b031633146110f55760405162461bcd60e51b81526004016107f69061246b565b806000815181106111085761110861256b565b6020026020010151601360006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001815181106111495761114961256b565b6020026020010151601260006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b600c546001600160a01b031633146111a45760405162461bcd60e51b81526004016107f69061246b565b600f805460ff19166001179055565b600c546001600160a01b031633146111dd5760405162461bcd60e51b81526004016107f69061246b565b60115460ff161561123a5760405162461bcd60e51b815260206004820152602160248201527f616464726573734368617269747920697320616c7265616479206c6f636b65646044820152601760f91b60648201526084016107f6565b601180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000818152600460205260409020546060906001600160a01b03166112e15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107f6565b60006112eb611928565b9050600081511161130b5760405180602001604052806000815250611336565b8061131584611937565b604051602001611326929190612581565b6040516020818303038152906040525b9392505050565b6010805461134a90612430565b80601f016020809104026020016040519081016040528092919081815260200182805461137690612430565b80156113c35780601f10611398576101008083540402835291602001916113c3565b820191906000526020600020905b8154815290600101906020018083116113a657829003601f168201915b505050505081565b600c546001600160a01b031633146113f55760405162461bcd60e51b81526004016107f69061246b565b6001600160a01b03811661145a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f6565b611463816117d4565b50565b60006001600160e01b0319821663780e9d6360e01b14806106e957506106e982611a35565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114c082610f16565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061133682846125b0565b6000611510600d5490565b905061151c3382611a40565b611463600d80546001019055565b6000818152600460205260408120546001600160a01b03166115a35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f6565b60006115ae83610f16565b9050806001600160a01b0316846001600160a01b031614806115f557506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806116195750836001600160a01b031661160e84610781565b6001600160a01b0316145b949350505050565b826001600160a01b031661163482610f16565b6001600160a01b0316146116985760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107f6565b6001600160a01b0382166116fa5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f6565b611705838383611a5a565b61171060008261148b565b6001600160a01b03831660009081526005602052604081208054600192906117399084906125c8565b90915550506001600160a01b03821660009081526005602052604081208054600192906117679084906125b0565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006113368284612522565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156118885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f6565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611900848484611621565b61190c84848484611a65565b6110c55760405162461bcd60e51b81526004016107f6906125df565b6060601080546106fe90612430565b60608161195b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611985578061196f816124b6565b915061197e9050600a83612557565b915061195f565b60008167ffffffffffffffff8111156119a0576119a0612195565b6040519080825280601f01601f1916602001820160405280156119ca576020820181803683370190505b5090505b8415611619576119df6001836125c8565b91506119ec600a86612631565b6119f79060306125b0565b60f81b818381518110611a0c57611a0c61256b565b60200101906001600160f81b031916908160001a905350611a2e600a86612557565b94506119ce565b60006106e982611b63565b6109e9828260405180602001604052806000815250611ba3565b61092c838383611bd6565b60006001600160a01b0384163b15611b5857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611aa9903390899088908890600401612645565b6020604051808303816000875af1925050508015611ae4575060408051601f3d908101601f19168201909252611ae191810190612682565b60015b611b3e573d808015611b12576040519150601f19603f3d011682016040523d82523d6000602084013e611b17565b606091505b508051611b365760405162461bcd60e51b81526004016107f6906125df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611619565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b1480611b9457506001600160e01b03198216635b5e139f60e01b145b806106e957506106e982611c8e565b611bad8383611cc3565b611bba6000848484611a65565b61092c5760405162461bcd60e51b81526004016107f6906125df565b6001600160a01b038316611c3157611c2c81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611c54565b816001600160a01b0316836001600160a01b031614611c5457611c548382611e11565b6001600160a01b038216611c6b5761092c81611eae565b826001600160a01b0316826001600160a01b03161461092c5761092c8282611f5d565b60006001600160e01b0319821663152a902d60e11b14806106e957506301ffc9a760e01b6001600160e01b03198316146106e9565b6001600160a01b038216611d195760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f6565b6000818152600460205260409020546001600160a01b031615611d7e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f6565b611d8a60008383611a5a565b6001600160a01b0382166000908152600560205260408120805460019290611db39084906125b0565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611e1e84610f8d565b611e2891906125c8565b600083815260096020526040902054909150808214611e7b576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090611ec0906001906125c8565b6000838152600b6020526040812054600a8054939450909284908110611ee857611ee861256b565b9060005260206000200154905080600a8381548110611f0957611f0961256b565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480611f4157611f4161269f565b6001900381819060005260206000200160009055905550505050565b6000611f6883610f8d565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b828054611fad90612430565b90600052602060002090601f016020900481019282611fcf5760008555612015565b82601f10611fe857805160ff1916838001178555612015565b82800160010185558215612015579182015b82811115612015578251825591602001919060010190611ffa565b50612021929150612025565b5090565b5b808211156120215760008155600101612026565b6001600160e01b03198116811461146357600080fd5b60006020828403121561206257600080fd5b81356113368161203a565b60005b83811015612088578181015183820152602001612070565b838111156110c55750506000910152565b600081518084526120b181602086016020860161206d565b601f01601f19169290920160200192915050565b6020815260006113366020830184612099565b6000602082840312156120ea57600080fd5b5035919050565b80356001600160a01b038116811461210857600080fd5b919050565b6000806040838503121561212057600080fd5b612129836120f1565b946020939093013593505050565b60008060006060848603121561214c57600080fd5b612155846120f1565b9250612163602085016120f1565b9150604084013590509250925092565b6000806040838503121561218657600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121d4576121d4612195565b604052919050565b600067ffffffffffffffff8311156121f6576121f6612195565b612209601f8401601f19166020016121ab565b905082815283838301111561221d57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561224657600080fd5b813567ffffffffffffffff81111561225d57600080fd5b8201601f8101841361226e57600080fd5b611619848235602084016121dc565b60006020828403121561228f57600080fd5b611336826120f1565b600080604083850312156122ab57600080fd5b6122b4836120f1565b9150602083013580151581146122c957600080fd5b809150509250929050565b600080600080608085870312156122ea57600080fd5b6122f3856120f1565b9350612301602086016120f1565b925060408501359150606085013567ffffffffffffffff81111561232457600080fd5b8501601f8101871361233557600080fd5b612344878235602084016121dc565b91505092959194509250565b6000602080838503121561236357600080fd5b823567ffffffffffffffff8082111561237b57600080fd5b818501915085601f83011261238f57600080fd5b8135818111156123a1576123a1612195565b8060051b91506123b28483016121ab565b81815291830184019184810190888411156123cc57600080fd5b938501935b838510156123f1576123e2856120f1565b825293850193908501906123d1565b98975050505050505050565b6000806040838503121561241057600080fd5b612419836120f1565b9150612427602084016120f1565b90509250929050565b600181811c9082168061244457607f821691505b6020821081141561246557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156124ca576124ca6124a0565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161561253c5761253c6124a0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261256657612566612541565b500490565b634e487b7160e01b600052603260045260246000fd5b6000835161259381846020880161206d565b8351908301906125a781836020880161206d565b01949350505050565b600082198211156125c3576125c36124a0565b500190565b6000828210156125da576125da6124a0565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261264057612640612541565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267890830184612099565b9695505050505050565b60006020828403121561269457600080fd5b81516113368161203a565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203587bcd922885302ba3021fb72379f04dda106e0db564034a1f56b38b0eae88464736f6c634300080c0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000e697066733a2f2f6e6f747965742f000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://notyet/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [2] : 697066733a2f2f6e6f747965742f000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.