ETH Price: $3,670.43 (+2.30%)

Token

Wishes (W22)
 

Overview

Max Total Supply

0 W22

Holders

2,259

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 W22
0xee4b3f14ec1851f4ea2733b2fdc96d6a0e27428b
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:
Wishes

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 16 : Wishes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract Wishes is DefaultOperatorFilterer, ERC721, Ownable {
    using Strings for uint256;
    using Counters for Counters.Counter;
    address public _donation_wallet;
    uint256 public _listing_price = 0 ether;
    string private _unrevealed_URI;
    Counters.Counter public _token_id_counter;
    bool public _sale_is_active = false;
    mapping(address => mapping(uint256 => uint256)) public user_per_day;
    mapping(uint256 => uint256) public token_to_day;
    mapping(uint256 => Artist) private artist;

    uint256 public _startdate;
    uint8 public _maxday = 24;
    uint256 public _max_per_day = 1;

    struct Artist {
        string name;
        string uri;
    }

    constructor(
        uint256 startdate_,
        address donation_wallet_
    ) ERC721("Wishes", "W22") {
        _startdate = startdate_;
        _donation_wallet = donation_wallet_;
    }

    /**
     *  Calculate the current day. Always rounded down. => +1
     */

    function calculateDay() public view returns (uint256 day) {
        if (block.timestamp < _startdate) {
            return 0;
        }
        return day = ((block.timestamp - _startdate) / 1 days) + 1;
    }

    /** Check if a token exists.
     *  token_to_day[tokenId_] check which day the token was minted on.
     *  day_to_uri[...] matches the day to the corresponding URI
     *  if the URI for the token is not set or the current day is less
     *  or equal the current day the unrevealed URI is returned.
     *
     *  The description is onchain and the image is returned one day after it minted.
     */
    function tokenURI(
        uint256 tokenId_
    ) public view virtual override returns (string memory) {
        _requireMinted(tokenId_);

        string memory _tokenURI = artist[token_to_day[tokenId_]].uri;
        string memory artist_name = artist[token_to_day[tokenId_]].name;
        if (
            (bytes(_tokenURI).length == 0) ||
            (calculateDay() <= token_to_day[tokenId_])
        ) {
            _tokenURI = _unrevealed_URI;
            artist_name = "unknown";
        }

        bytes memory dataURI = abi.encodePacked(
            "{",
            '"name": "Wishes 2022 #',
            tokenId_.toString(),
            '",',
            '"description":'
            '"',
            artist_name,
            '",',
            '"image": "',
            _tokenURI,
            '",',
            '"attributes": [{"trait_type": "Day", "value":"',
            token_to_day[tokenId_].toString(),
            '"},{"trait_type": "Artist", "value":"',
            artist_name,
            '"}]',
            "}"
        );
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(dataURI)
                )
            );
    }

    /** To be able to mint, sale has to be active.
     *  The current block timestamp must not be below the 1st of December.
     *  The current day is calculated.
     *  The current day has to be smaller or equal than 24. December.
     *  User only allowed to mint 3 per day.
     *  The neede funds are calculated. (price * amount)
     *  Check if enough funds submitted.
     *  If more than the needed funds submitted, transfer them to donation wallet.
     *  -- all checks passed --
     *  Save the current day for future discount
     *  Set the token day (token_to_day) for all tokens to the current day.
     *  Mint tokens.
     */
    function mint(uint256 amount_) public payable {
        require(_sale_is_active, "Sale is not open");
        if (block.timestamp < _startdate) {
            revert("Mint not started, yet");
        }
        uint256 day = calculateDay();
        require(day <= _maxday, "Mint is over");
        require(
            user_per_day[msg.sender][day] + amount_ <= _max_per_day,
            "Amount restricted"
        );

        uint256 funds_needed = (_listing_price * amount_);

        require(msg.value >= funds_needed, "Not enough funds submitted");

        uint256 donation = msg.value - funds_needed;
        if (donation > 0) {
            payable(_donation_wallet).transfer(donation);
        }
        user_per_day[msg.sender][day] += amount_;
        for (uint i = 0; i < amount_; i++) {
            _token_id_counter.increment();
            uint256 id = _token_id_counter.current();
            token_to_day[id] = day;
            _safeMint(msg.sender, id);
        }
    }

    /**
     *  Function to set the revealed URI for a single day
     */
    function setDayReveal(
        uint256 day,
        string calldata newURI_,
        string calldata newName_
    ) public onlyOwner {
        artist[day].uri = newURI_;
        artist[day].name = newName_;
    }

    /**
     *  Function to set the start date
     */
    function setStartDate(uint256 startdate_) public onlyOwner {
        _startdate = startdate_;
    }

    /**
     *  Function to set the max day
     */
    function setMaxDay(uint8 maxday_) public onlyOwner {
        _maxday = maxday_;
    }

    /**
     *  Function to set the max amount per day
     */
    function setMaxPerDay(uint256 max_per_day_) public onlyOwner {
        _max_per_day = max_per_day_;
    }

    /**
     *  Function to set the revealed URI for all 24 days
     */
    function setDaysReveal(
        string[] calldata allPaths,
        string[] calldata allNames
    ) public onlyOwner {
        require(
            allPaths.length == _maxday && allNames.length == _maxday,
            "Set all URIs at once."
        );
        for (uint i = 0; i < _maxday; i++) {
            artist[i + 1].uri = allPaths[i];
            artist[i + 1].name = allNames[i];
        }
    }

    /**
     *  Function to set the unrevealed uri
     */
    function setUnrevealedUri(string memory unrevealed_URI_) public onlyOwner {
        _unrevealed_URI = unrevealed_URI_;
    }

    /**
     *  Function to set the listing price
     */
    function setListingPrice(uint256 listing_price_) public onlyOwner {
        _listing_price = listing_price_;
    }

    /**
     *  Function to flip the sale state
     */
    function flipSaleState() public onlyOwner {
        _sale_is_active = !_sale_is_active;
    }

    /**
     *  Function to update the donation wallet
     */
    function setDonationWallet(address donation_wallet_) public onlyOwner {
        _donation_wallet = donation_wallet_;
    }

    /**
     *  Function to have an easy access to all images after reveal.
     */
    function returnArtists() public view returns (Artist[] memory) {
        uint256 day = calculateDay();
        require(day > 0, "nothing to show, yet.");
        if (day > _maxday) {
            day = _maxday + 1;
        }
        Artist[] memory artistArray = new Artist[](day);
        artistArray[0].name = "unknown";
        artistArray[0].uri = _unrevealed_URI;

        for (uint i = 1; i < day; i++) {
            artistArray[i].name = artist[i].name;
            artistArray[i].uri = artist[i].uri;
        }
        return artistArray;
    }

    /**
     * Withdraw funds. No worries.
     * We only cover costs for deployment and contract interactions.
     * Additional funds will be sent to donation wallet.
     */

    function withdraw() public onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    //Opensea royalty enforcement

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(
        address operator,
        uint256 tokenId
    ) public override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 2 of 16 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 4 of 16 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

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

File 6 of 16 : 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 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./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: address zero is not a valid owner");
        return _balances[owner];
    }

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

File 8 of 16 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 9 of 16 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 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 13 of 16 : 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 14 of 16 : 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 16 : 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 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"startdate_","type":"uint256"},{"internalType":"address","name":"donation_wallet_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_donation_wallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_listing_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_max_per_day","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxday","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sale_is_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_startdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_token_id_counter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"calculateDay","outputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mint","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"returnArtists","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct Wishes.Artist[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"string","name":"newURI_","type":"string"},{"internalType":"string","name":"newName_","type":"string"}],"name":"setDayReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"allPaths","type":"string[]"},{"internalType":"string[]","name":"allNames","type":"string[]"}],"name":"setDaysReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"donation_wallet_","type":"address"}],"name":"setDonationWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listing_price_","type":"uint256"}],"name":"setListingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"maxday_","type":"uint8"}],"name":"setMaxDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max_per_day_","type":"uint256"}],"name":"setMaxPerDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startdate_","type":"uint256"}],"name":"setStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"unrevealed_URI_","type":"string"}],"name":"setUnrevealedUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"token_to_day","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"user_per_day","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600855600b805460ff1990811690915560108054909116601817905560016011553480156200003457600080fd5b50604051620036df380380620036df8339810160408190526200005791620002a9565b604080518082018252600681526557697368657360d01b602080830191909152825180840190935260038352622b991960e91b9083015290733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620001eb5780156200013957604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200011a57600080fd5b505af11580156200012f573d6000803e3d6000fd5b50505050620001eb565b6001600160a01b038216156200018a5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000ff565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001d157600080fd5b505af1158015620001e6573d6000803e3d6000fd5b505050505b5060009050620001fc83826200038d565b5060016200020b82826200038d565b50505062000228620002226200025360201b60201c565b62000257565b600f91909155600780546001600160a01b0319166001600160a01b0390921691909117905562000459565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060408385031215620002bd57600080fd5b825160208401519092506001600160a01b0381168114620002dd57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200031357607f821691505b6020821081036200033457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200038857600081815260208120601f850160051c81016020861015620003635750805b601f850160051c820191505b8181101562000384578281556001016200036f565b5050505b505050565b81516001600160401b03811115620003a957620003a9620002e8565b620003c181620003ba8454620002fe565b846200033a565b602080601f831160018114620003f95760008415620003e05750858301515b600019600386901b1c1916600185901b17855562000384565b600085815260208120601f198616915b828110156200042a5788860151825594840194600190910190840162000409565b5085821015620004495787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61327680620004696000396000f3fe6080604052600436106102a05760003560e01c80637c726b691161016e578063a22cb465116100cb578063d755abf51161007f578063eb080bf111610064578063eb080bf11461074f578063f2fde38b1461076f578063f97e6f8a1461078f57600080fd5b8063d755abf5146106f1578063e985e9c51461070657600080fd5b8063b88d4fde116100b0578063b88d4fde14610685578063c4402862146106a5578063c87b56dd146106d157600080fd5b8063a22cb4651461064e578063b27b2adc1461066e57600080fd5b806390fb5fb9116101225780639b7cc24b116101075780639b7cc24b146106055780639c92cdee14610625578063a0712d681461063b57600080fd5b806390fb5fb9146105d057806395d89b41146105f057600080fd5b80638da5cb5b116101535780638da5cb5b146105865780638e0de7be146105a457806390e23065146105ba57600080fd5b80637c726b691461054657806382d95df51461056657600080fd5b806334918dfd1161021c5780635a96cdd7116101d05780636352211e116101b55780636352211e146104f157806370a0823114610511578063715018a61461053157600080fd5b80635a96cdd7146104b15780636048c543146104d157600080fd5b806340e4fccf1161020157806340e4fccf1461044f57806341f434341461046f57806342842e0e1461049157600080fd5b806334918dfd146104255780633ccfd60b1461043a57600080fd5b80631188ad2b116102735780631fd75ac6116102585780631fd75ac6146103b657806323b872dd146103e35780632c6373511461040357600080fd5b80631188ad2b1461035657806314e0c7ea1461037057600080fd5b806301ffc9a7146102a557806306fdde03146102da578063081812fc146102fc578063095ea7b314610334575b600080fd5b3480156102b157600080fd5b506102c56102c0366004612659565b6107af565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef610894565b6040516102d191906126cd565b34801561030857600080fd5b5061031c6103173660046126e0565b610926565b6040516001600160a01b0390911681526020016102d1565b34801561034057600080fd5b5061035461034f366004612715565b61094d565b005b34801561036257600080fd5b50600b546102c59060ff1681565b34801561037c57600080fd5b506103a861038b366004612715565b600c60209081526000928352604080842090915290825290205481565b6040519081526020016102d1565b3480156103c257600080fd5b506103a86103d13660046126e0565b600d6020526000908152604090205481565b3480156103ef57600080fd5b506103546103fe36600461273f565b610966565b34801561040f57600080fd5b50610418610991565b6040516102d1919061277b565b34801561043157600080fd5b50610354610d19565b34801561044657600080fd5b50610354610d35565b34801561045b57600080fd5b5061035461046a36600461286a565b610d79565b34801561047b57600080fd5b5061031c6daaeb6d7670e522a718067333cd4e81565b34801561049d57600080fd5b506103546104ac36600461273f565b610eb0565b3480156104bd57600080fd5b506103546104cc3660046128d6565b610ed5565b3480156104dd57600080fd5b506103546104ec3660046126e0565b610f0c565b3480156104fd57600080fd5b5061031c61050c3660046126e0565b610f19565b34801561051d57600080fd5b506103a861052c3660046128d6565b610f7e565b34801561053d57600080fd5b50610354611018565b34801561055257600080fd5b506103546105613660046126e0565b61102c565b34801561057257600080fd5b506103546105813660046126e0565b611039565b34801561059257600080fd5b506006546001600160a01b031661031c565b3480156105b057600080fd5b506103a860085481565b3480156105c657600080fd5b506103a8600f5481565b3480156105dc57600080fd5b506103546105eb36600461297d565b611046565b3480156105fc57600080fd5b506102ef61105e565b34801561061157600080fd5b506103546106203660046129c6565b61106d565b34801561063157600080fd5b506103a860115481565b6103546106493660046126e0565b61108b565b34801561065a57600080fd5b506103546106693660046129f7565b61133e565b34801561067a57600080fd5b50600a546103a89081565b34801561069157600080fd5b506103546106a0366004612a2e565b611352565b3480156106b157600080fd5b506010546106bf9060ff1681565b60405160ff90911681526020016102d1565b3480156106dd57600080fd5b506102ef6106ec3660046126e0565b611378565b3480156106fd57600080fd5b506103a8611646565b34801561071257600080fd5b506102c5610721366004612aaa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561075b57600080fd5b5061035461076a366004612b1f565b611684565b34801561077b57600080fd5b5061035461078a3660046128d6565b6116ca565b34801561079b57600080fd5b5060075461031c906001600160a01b031681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061084257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061088e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546108a390612b99565b80601f01602080910402602001604051908101604052809291908181526020018280546108cf90612b99565b801561091c5780601f106108f15761010080835404028352916020019161091c565b820191906000526020600020905b8154815290600101906020018083116108ff57829003601f168201915b5050505050905090565b600061093182611757565b506000908152600460205260409020546001600160a01b031690565b81610957816117bb565b61096183836118a6565b505050565b826001600160a01b038116331461098057610980336117bb565b61098b8484846119f0565b50505050565b6060600061099d611646565b9050600081116109f45760405162461bcd60e51b815260206004820152601560248201527f6e6f7468696e6720746f2073686f772c207965742e000000000000000000000060448201526064015b60405180910390fd5b60105460ff16811115610a1857601054610a129060ff166001612be9565b60ff1690505b60008167ffffffffffffffff811115610a3357610a336128f1565b604051908082528060200260200182016040528015610a7857816020015b6040805180820190915260608082526020820152815260200190600190039081610a515790505b5090506040518060400160405280600781526020017f756e6b6e6f776e0000000000000000000000000000000000000000000000000081525081600081518110610ac457610ac4612c02565b60209081029190910101515260098054610add90612b99565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0990612b99565b8015610b565780601f10610b2b57610100808354040283529160200191610b56565b820191906000526020600020905b815481529060010190602001808311610b3957829003601f168201915b505050505081600081518110610b6e57610b6e612c02565b602090810291909101810151015260015b82811015610d12576000818152600e602052604090208054610ba090612b99565b80601f0160208091040260200160405190810160405280929190818152602001828054610bcc90612b99565b8015610c195780601f10610bee57610100808354040283529160200191610c19565b820191906000526020600020905b815481529060010190602001808311610bfc57829003601f168201915b5050505050828281518110610c3057610c30612c02565b602002602001015160000181905250600e60008281526020019081526020016000206001018054610c6090612b99565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8c90612b99565b8015610cd95780601f10610cae57610100808354040283529160200191610cd9565b820191906000526020600020905b815481529060010190602001808311610cbc57829003601f168201915b5050505050828281518110610cf057610cf0612c02565b6020026020010151602001819052508080610d0a90612c18565b915050610b7f565b5092915050565b610d21611a77565b600b805460ff19811660ff90911615179055565b610d3d611a77565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d76573d6000803e3d6000fd5b50565b610d81611a77565b60105460ff1683148015610d99575060105460ff1681145b610de55760405162461bcd60e51b815260206004820152601560248201527f53657420616c6c2055524973206174206f6e63652e000000000000000000000060448201526064016109eb565b60005b60105460ff16811015610ea957848482818110610e0757610e07612c02565b9050602002810190610e199190612c32565b600e6000610e28856001612c97565b81526020019081526020016000206001019182610e46929190612cf0565b50828282818110610e5957610e59612c02565b9050602002810190610e6b9190612c32565b600e6000610e7a856001612c97565b8152602081019190915260400160002091610e96919083612cf0565b5080610ea181612c18565b915050610de8565b5050505050565b826001600160a01b0381163314610eca57610eca336117bb565b61098b848484611ad1565b610edd611a77565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610f14611a77565b601155565b6000818152600260205260408120546001600160a01b03168061088e5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109eb565b60006001600160a01b038216610ffc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016109eb565b506001600160a01b031660009081526003602052604090205490565b611020611a77565b61102a6000611aec565b565b611034611a77565b600855565b611041611a77565b600f55565b61104e611a77565b600961105a8282612db0565b5050565b6060600180546108a390612b99565b611075611a77565b6010805460ff191660ff92909216919091179055565b600b5460ff166110dd5760405162461bcd60e51b815260206004820152601060248201527f53616c65206973206e6f74206f70656e0000000000000000000000000000000060448201526064016109eb565b600f5442101561112f5760405162461bcd60e51b815260206004820152601560248201527f4d696e74206e6f7420737461727465642c20796574000000000000000000000060448201526064016109eb565b6000611139611646565b60105490915060ff168111156111915760405162461bcd60e51b815260206004820152600c60248201527f4d696e74206973206f766572000000000000000000000000000000000000000060448201526064016109eb565b601154336000908152600c602090815260408083208584529091529020546111ba908490612c97565b11156112085760405162461bcd60e51b815260206004820152601160248201527f416d6f756e74207265737472696374656400000000000000000000000000000060448201526064016109eb565b6000826008546112189190612e70565b90508034101561126a5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682066756e6473207375626d697474656400000000000060448201526064016109eb565b60006112768234612e87565b905080156112ba576007546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156112b8573d6000803e3d6000fd5b505b336000908152600c60209081526040808320868452909152812080548692906112e4908490612c97565b90915550600090505b84811015610ea957611303600a80546001019055565b600061130e600a5490565b6000818152600d60205260409020869055905061132b3382611b4b565b508061133681612c18565b9150506112ed565b81611348816117bb565b6109618383611b65565b836001600160a01b038116331461136c5761136c336117bb565b610ea985858585611b70565b606061138382611757565b6000828152600d60209081526040808320548352600e909152812060010180546113ac90612b99565b80601f01602080910402602001604051908101604052809291908181526020018280546113d890612b99565b80156114255780601f106113fa57610100808354040283529160200191611425565b820191906000526020600020905b81548152906001019060200180831161140857829003601f168201915b5050506000868152600d60209081526040808320548352600e9091528120805494955090939092506114579150612b99565b80601f016020809104026020016040519081016040528092919081815260200182805461148390612b99565b80156114d05780601f106114a5576101008083540402835291602001916114d0565b820191906000526020600020905b8154815290600101906020018083116114b357829003601f168201915b505050505090508151600014806114fc57506000848152600d60205260409020546114f9611646565b11155b156115c7576009805461150e90612b99565b80601f016020809104026020016040519081016040528092919081815260200182805461153a90612b99565b80156115875780601f1061155c57610100808354040283529160200191611587565b820191906000526020600020905b81548152906001019060200180831161156a57829003601f168201915b505050505091506040518060400160405280600781526020017f756e6b6e6f776e0000000000000000000000000000000000000000000000000081525090505b60006115d285611bf8565b6000868152600d6020526040902054839085906115ee90611bf8565b85604051602001611603959493929190612eb6565b604051602081830303815290604052905061161d81611d35565b60405160200161162d9190613107565b6040516020818303038152906040529350505050919050565b6000600f544210156116585750600090565b62015180600f544261166a9190612e87565b6116749190613162565b61167f906001612c97565b905090565b61168c611a77565b6000858152600e602052604090206001016116a8848683612cf0565b506000858152600e602052604090206116c2828483612cf0565b505050505050565b6116d2611a77565b6001600160a01b03811661174e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109eb565b610d7681611aec565b6000818152600260205260409020546001600160a01b0316610d765760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109eb565b6daaeb6d7670e522a718067333cd4e3b15610d76576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611841573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118659190613176565b610d76576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016109eb565b60006118b182610f19565b9050806001600160a01b0316836001600160a01b03160361193a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109eb565b336001600160a01b038216148061197457506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6119e65760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109eb565b6109618383611e88565b6119fa3382611f03565b611a6c5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109eb565b610961838383611f81565b6006546001600160a01b0316331461102a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109eb565b61096183838360405180602001604052806000815250611352565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61105a82826040518060200160405280600081525061215b565b61105a3383836121e4565b611b7a3383611f03565b611bec5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109eb565b61098b848484846122b2565b606081600003611c3b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611c655780611c4f81612c18565b9150611c5e9050600a83613162565b9150611c3f565b60008167ffffffffffffffff811115611c8057611c806128f1565b6040519080825280601f01601f191660200182016040528015611caa576020820181803683370190505b5090505b8415611d2d57611cbf600183612e87565b9150611ccc600a86613193565b611cd7906030612c97565b60f81b818381518110611cec57611cec612c02565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611d26600a86613162565b9450611cae565b949350505050565b60608151600003611d5457505060408051602081019091526000815290565b60006040518060600160405280604081526020016132016040913990506000600384516002611d839190612c97565b611d8d9190613162565b611d98906004612e70565b67ffffffffffffffff811115611db057611db06128f1565b6040519080825280601f01601f191660200182016040528015611dda576020820181803683370190505b509050600182016020820185865187015b80821015611e46576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611deb565b5050600386510660018114611e625760028114611e7557611e7d565b603d6001830353603d6002830353611e7d565b603d60018303535b509195945050505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611eca82610f19565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611f0f83610f19565b9050806001600160a01b0316846001600160a01b03161480611f5657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611d2d5750836001600160a01b0316611f6f84610926565b6001600160a01b031614949350505050565b826001600160a01b0316611f9482610f19565b6001600160a01b0316146120105760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016109eb565b6001600160a01b03821661208b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109eb565b612096600082611e88565b6001600160a01b03831660009081526003602052604081208054600192906120bf908490612e87565b90915550506001600160a01b03821660009081526003602052604081208054600192906120ed908490612c97565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612165838361233b565b612172600084848461248a565b6109615760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109eb565b816001600160a01b0316836001600160a01b0316036122455760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109eb565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6122bd848484611f81565b6122c98484848461248a565b61098b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109eb565b6001600160a01b0382166123915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109eb565b6000818152600260205260409020546001600160a01b0316156123f65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109eb565b6001600160a01b038216600090815260036020526040812080546001929061241f908490612c97565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612620576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906124e79033908990889088906004016131a7565b6020604051808303816000875af1925050508015612522575060408051601f3d908101601f1916820190925261251f918101906131e3565b60015b6125d5573d808015612550576040519150601f19603f3d011682016040523d82523d6000602084013e612555565b606091505b5080516000036125cd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109eb565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d2d565b506001949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d7657600080fd5b60006020828403121561266b57600080fd5b81356126768161262b565b9392505050565b60005b83811015612698578181015183820152602001612680565b50506000910152565b600081518084526126b981602086016020860161267d565b601f01601f19169290920160200192915050565b60208152600061267660208301846126a1565b6000602082840312156126f257600080fd5b5035919050565b80356001600160a01b038116811461271057600080fd5b919050565b6000806040838503121561272857600080fd5b612731836126f9565b946020939093013593505050565b60008060006060848603121561275457600080fd5b61275d846126f9565b925061276b602085016126f9565b9150604084013590509250925092565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015612810577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0898403018552815180518785526127e4888601826126a1565b91890151858303868b01529190506127fc81836126a1565b9689019694505050908601906001016127a2565b509098975050505050505050565b60008083601f84011261283057600080fd5b50813567ffffffffffffffff81111561284857600080fd5b6020830191508360208260051b850101111561286357600080fd5b9250929050565b6000806000806040858703121561288057600080fd5b843567ffffffffffffffff8082111561289857600080fd5b6128a48883890161281e565b909650945060208701359150808211156128bd57600080fd5b506128ca8782880161281e565b95989497509550505050565b6000602082840312156128e857600080fd5b612676826126f9565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612922576129226128f1565b604051601f8501601f19908116603f0116810190828211818310171561294a5761294a6128f1565b8160405280935085815286868601111561296357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561298f57600080fd5b813567ffffffffffffffff8111156129a657600080fd5b8201601f810184136129b757600080fd5b611d2d84823560208401612907565b6000602082840312156129d857600080fd5b813560ff8116811461267657600080fd5b8015158114610d7657600080fd5b60008060408385031215612a0a57600080fd5b612a13836126f9565b91506020830135612a23816129e9565b809150509250929050565b60008060008060808587031215612a4457600080fd5b612a4d856126f9565b9350612a5b602086016126f9565b925060408501359150606085013567ffffffffffffffff811115612a7e57600080fd5b8501601f81018713612a8f57600080fd5b612a9e87823560208401612907565b91505092959194509250565b60008060408385031215612abd57600080fd5b612ac6836126f9565b9150612ad4602084016126f9565b90509250929050565b60008083601f840112612aef57600080fd5b50813567ffffffffffffffff811115612b0757600080fd5b60208301915083602082850101111561286357600080fd5b600080600080600060608688031215612b3757600080fd5b85359450602086013567ffffffffffffffff80821115612b5657600080fd5b612b6289838a01612add565b90965094506040880135915080821115612b7b57600080fd5b50612b8888828901612add565b969995985093965092949392505050565b600181811c90821680612bad57607f821691505b602082108103612bcd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60ff818116838216019081111561088e5761088e612bd3565b634e487b7160e01b600052603260045260246000fd5b60006000198203612c2b57612c2b612bd3565b5060010190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112612c6757600080fd5b83018035915067ffffffffffffffff821115612c8257600080fd5b60200191503681900382131561286357600080fd5b8082018082111561088e5761088e612bd3565b601f82111561096157600081815260208120601f850160051c81016020861015612cd15750805b601f850160051c820191505b818110156116c257828155600101612cdd565b67ffffffffffffffff831115612d0857612d086128f1565b612d1c83612d168354612b99565b83612caa565b6000601f841160018114612d505760008515612d385750838201355b600019600387901b1c1916600186901b178355610ea9565b600083815260209020601f19861690835b82811015612d815786850135825560209485019460019092019101612d61565b5086821015612d9e5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b815167ffffffffffffffff811115612dca57612dca6128f1565b612dde81612dd88454612b99565b84612caa565b602080601f831160018114612e135760008415612dfb5750858301515b600019600386901b1c1916600185901b1785556116c2565b600085815260208120601f198616915b82811015612e4257888601518255948401946001909101908401612e23565b5085821015612e605787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808202811582820484141761088e5761088e612bd3565b8181038181111561088e5761088e612bd3565b60008151612eac81856020860161267d565b9290920192915050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a20225769736865732032303232202300000000000000000000600182015260008651612f14816017850160208b0161267d565b80830190507f222c0000000000000000000000000000000000000000000000000000000000008060178301527f226465736372697074696f6e223a22000000000000000000000000000000000060198301528751612f79816028850160208c0161267d565b60289201918201527f22696d616765223a202200000000000000000000000000000000000000000000602a8201528551612fba816034840160208a0161267d565b6130fa6130d16130a86130a261305361304d612ffe6034888a01017f222c000000000000000000000000000000000000000000000000000000000000815260020190565b7f2261747472696275746573223a205b7b2274726169745f74797065223a20224481527f6179222c202276616c7565223a220000000000000000000000000000000000006020820152602e0190565b8b612e9a565b7f227d2c7b2274726169745f74797065223a2022417274697374222c202276616c81527f7565223a22000000000000000000000000000000000000000000000000000000602082015260250190565b88612e9a565b7f227d5d0000000000000000000000000000000000000000000000000000000000815260030190565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010190565b9998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161313f81601d85016020870161267d565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b6000826131715761317161314c565b500490565b60006020828403121561318857600080fd5b8151612676816129e9565b6000826131a2576131a261314c565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526131d960808301846126a1565b9695505050505050565b6000602082840312156131f557600080fd5b81516126768161262b56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212200ec9d8bdee6bee64231bd6e375873d37f1b5523144a25de5808479e0d2c573ec64736f6c6343000811003300000000000000000000000000000000000000000000000000000000638842e0000000000000000000000000fb1e9a00eab85311d7dbec39e252aa9ed3c85988

Deployed Bytecode

0x6080604052600436106102a05760003560e01c80637c726b691161016e578063a22cb465116100cb578063d755abf51161007f578063eb080bf111610064578063eb080bf11461074f578063f2fde38b1461076f578063f97e6f8a1461078f57600080fd5b8063d755abf5146106f1578063e985e9c51461070657600080fd5b8063b88d4fde116100b0578063b88d4fde14610685578063c4402862146106a5578063c87b56dd146106d157600080fd5b8063a22cb4651461064e578063b27b2adc1461066e57600080fd5b806390fb5fb9116101225780639b7cc24b116101075780639b7cc24b146106055780639c92cdee14610625578063a0712d681461063b57600080fd5b806390fb5fb9146105d057806395d89b41146105f057600080fd5b80638da5cb5b116101535780638da5cb5b146105865780638e0de7be146105a457806390e23065146105ba57600080fd5b80637c726b691461054657806382d95df51461056657600080fd5b806334918dfd1161021c5780635a96cdd7116101d05780636352211e116101b55780636352211e146104f157806370a0823114610511578063715018a61461053157600080fd5b80635a96cdd7146104b15780636048c543146104d157600080fd5b806340e4fccf1161020157806340e4fccf1461044f57806341f434341461046f57806342842e0e1461049157600080fd5b806334918dfd146104255780633ccfd60b1461043a57600080fd5b80631188ad2b116102735780631fd75ac6116102585780631fd75ac6146103b657806323b872dd146103e35780632c6373511461040357600080fd5b80631188ad2b1461035657806314e0c7ea1461037057600080fd5b806301ffc9a7146102a557806306fdde03146102da578063081812fc146102fc578063095ea7b314610334575b600080fd5b3480156102b157600080fd5b506102c56102c0366004612659565b6107af565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef610894565b6040516102d191906126cd565b34801561030857600080fd5b5061031c6103173660046126e0565b610926565b6040516001600160a01b0390911681526020016102d1565b34801561034057600080fd5b5061035461034f366004612715565b61094d565b005b34801561036257600080fd5b50600b546102c59060ff1681565b34801561037c57600080fd5b506103a861038b366004612715565b600c60209081526000928352604080842090915290825290205481565b6040519081526020016102d1565b3480156103c257600080fd5b506103a86103d13660046126e0565b600d6020526000908152604090205481565b3480156103ef57600080fd5b506103546103fe36600461273f565b610966565b34801561040f57600080fd5b50610418610991565b6040516102d1919061277b565b34801561043157600080fd5b50610354610d19565b34801561044657600080fd5b50610354610d35565b34801561045b57600080fd5b5061035461046a36600461286a565b610d79565b34801561047b57600080fd5b5061031c6daaeb6d7670e522a718067333cd4e81565b34801561049d57600080fd5b506103546104ac36600461273f565b610eb0565b3480156104bd57600080fd5b506103546104cc3660046128d6565b610ed5565b3480156104dd57600080fd5b506103546104ec3660046126e0565b610f0c565b3480156104fd57600080fd5b5061031c61050c3660046126e0565b610f19565b34801561051d57600080fd5b506103a861052c3660046128d6565b610f7e565b34801561053d57600080fd5b50610354611018565b34801561055257600080fd5b506103546105613660046126e0565b61102c565b34801561057257600080fd5b506103546105813660046126e0565b611039565b34801561059257600080fd5b506006546001600160a01b031661031c565b3480156105b057600080fd5b506103a860085481565b3480156105c657600080fd5b506103a8600f5481565b3480156105dc57600080fd5b506103546105eb36600461297d565b611046565b3480156105fc57600080fd5b506102ef61105e565b34801561061157600080fd5b506103546106203660046129c6565b61106d565b34801561063157600080fd5b506103a860115481565b6103546106493660046126e0565b61108b565b34801561065a57600080fd5b506103546106693660046129f7565b61133e565b34801561067a57600080fd5b50600a546103a89081565b34801561069157600080fd5b506103546106a0366004612a2e565b611352565b3480156106b157600080fd5b506010546106bf9060ff1681565b60405160ff90911681526020016102d1565b3480156106dd57600080fd5b506102ef6106ec3660046126e0565b611378565b3480156106fd57600080fd5b506103a8611646565b34801561071257600080fd5b506102c5610721366004612aaa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561075b57600080fd5b5061035461076a366004612b1f565b611684565b34801561077b57600080fd5b5061035461078a3660046128d6565b6116ca565b34801561079b57600080fd5b5060075461031c906001600160a01b031681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061084257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061088e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546108a390612b99565b80601f01602080910402602001604051908101604052809291908181526020018280546108cf90612b99565b801561091c5780601f106108f15761010080835404028352916020019161091c565b820191906000526020600020905b8154815290600101906020018083116108ff57829003601f168201915b5050505050905090565b600061093182611757565b506000908152600460205260409020546001600160a01b031690565b81610957816117bb565b61096183836118a6565b505050565b826001600160a01b038116331461098057610980336117bb565b61098b8484846119f0565b50505050565b6060600061099d611646565b9050600081116109f45760405162461bcd60e51b815260206004820152601560248201527f6e6f7468696e6720746f2073686f772c207965742e000000000000000000000060448201526064015b60405180910390fd5b60105460ff16811115610a1857601054610a129060ff166001612be9565b60ff1690505b60008167ffffffffffffffff811115610a3357610a336128f1565b604051908082528060200260200182016040528015610a7857816020015b6040805180820190915260608082526020820152815260200190600190039081610a515790505b5090506040518060400160405280600781526020017f756e6b6e6f776e0000000000000000000000000000000000000000000000000081525081600081518110610ac457610ac4612c02565b60209081029190910101515260098054610add90612b99565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0990612b99565b8015610b565780601f10610b2b57610100808354040283529160200191610b56565b820191906000526020600020905b815481529060010190602001808311610b3957829003601f168201915b505050505081600081518110610b6e57610b6e612c02565b602090810291909101810151015260015b82811015610d12576000818152600e602052604090208054610ba090612b99565b80601f0160208091040260200160405190810160405280929190818152602001828054610bcc90612b99565b8015610c195780601f10610bee57610100808354040283529160200191610c19565b820191906000526020600020905b815481529060010190602001808311610bfc57829003601f168201915b5050505050828281518110610c3057610c30612c02565b602002602001015160000181905250600e60008281526020019081526020016000206001018054610c6090612b99565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8c90612b99565b8015610cd95780601f10610cae57610100808354040283529160200191610cd9565b820191906000526020600020905b815481529060010190602001808311610cbc57829003601f168201915b5050505050828281518110610cf057610cf0612c02565b6020026020010151602001819052508080610d0a90612c18565b915050610b7f565b5092915050565b610d21611a77565b600b805460ff19811660ff90911615179055565b610d3d611a77565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d76573d6000803e3d6000fd5b50565b610d81611a77565b60105460ff1683148015610d99575060105460ff1681145b610de55760405162461bcd60e51b815260206004820152601560248201527f53657420616c6c2055524973206174206f6e63652e000000000000000000000060448201526064016109eb565b60005b60105460ff16811015610ea957848482818110610e0757610e07612c02565b9050602002810190610e199190612c32565b600e6000610e28856001612c97565b81526020019081526020016000206001019182610e46929190612cf0565b50828282818110610e5957610e59612c02565b9050602002810190610e6b9190612c32565b600e6000610e7a856001612c97565b8152602081019190915260400160002091610e96919083612cf0565b5080610ea181612c18565b915050610de8565b5050505050565b826001600160a01b0381163314610eca57610eca336117bb565b61098b848484611ad1565b610edd611a77565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610f14611a77565b601155565b6000818152600260205260408120546001600160a01b03168061088e5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109eb565b60006001600160a01b038216610ffc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016109eb565b506001600160a01b031660009081526003602052604090205490565b611020611a77565b61102a6000611aec565b565b611034611a77565b600855565b611041611a77565b600f55565b61104e611a77565b600961105a8282612db0565b5050565b6060600180546108a390612b99565b611075611a77565b6010805460ff191660ff92909216919091179055565b600b5460ff166110dd5760405162461bcd60e51b815260206004820152601060248201527f53616c65206973206e6f74206f70656e0000000000000000000000000000000060448201526064016109eb565b600f5442101561112f5760405162461bcd60e51b815260206004820152601560248201527f4d696e74206e6f7420737461727465642c20796574000000000000000000000060448201526064016109eb565b6000611139611646565b60105490915060ff168111156111915760405162461bcd60e51b815260206004820152600c60248201527f4d696e74206973206f766572000000000000000000000000000000000000000060448201526064016109eb565b601154336000908152600c602090815260408083208584529091529020546111ba908490612c97565b11156112085760405162461bcd60e51b815260206004820152601160248201527f416d6f756e74207265737472696374656400000000000000000000000000000060448201526064016109eb565b6000826008546112189190612e70565b90508034101561126a5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682066756e6473207375626d697474656400000000000060448201526064016109eb565b60006112768234612e87565b905080156112ba576007546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156112b8573d6000803e3d6000fd5b505b336000908152600c60209081526040808320868452909152812080548692906112e4908490612c97565b90915550600090505b84811015610ea957611303600a80546001019055565b600061130e600a5490565b6000818152600d60205260409020869055905061132b3382611b4b565b508061133681612c18565b9150506112ed565b81611348816117bb565b6109618383611b65565b836001600160a01b038116331461136c5761136c336117bb565b610ea985858585611b70565b606061138382611757565b6000828152600d60209081526040808320548352600e909152812060010180546113ac90612b99565b80601f01602080910402602001604051908101604052809291908181526020018280546113d890612b99565b80156114255780601f106113fa57610100808354040283529160200191611425565b820191906000526020600020905b81548152906001019060200180831161140857829003601f168201915b5050506000868152600d60209081526040808320548352600e9091528120805494955090939092506114579150612b99565b80601f016020809104026020016040519081016040528092919081815260200182805461148390612b99565b80156114d05780601f106114a5576101008083540402835291602001916114d0565b820191906000526020600020905b8154815290600101906020018083116114b357829003601f168201915b505050505090508151600014806114fc57506000848152600d60205260409020546114f9611646565b11155b156115c7576009805461150e90612b99565b80601f016020809104026020016040519081016040528092919081815260200182805461153a90612b99565b80156115875780601f1061155c57610100808354040283529160200191611587565b820191906000526020600020905b81548152906001019060200180831161156a57829003601f168201915b505050505091506040518060400160405280600781526020017f756e6b6e6f776e0000000000000000000000000000000000000000000000000081525090505b60006115d285611bf8565b6000868152600d6020526040902054839085906115ee90611bf8565b85604051602001611603959493929190612eb6565b604051602081830303815290604052905061161d81611d35565b60405160200161162d9190613107565b6040516020818303038152906040529350505050919050565b6000600f544210156116585750600090565b62015180600f544261166a9190612e87565b6116749190613162565b61167f906001612c97565b905090565b61168c611a77565b6000858152600e602052604090206001016116a8848683612cf0565b506000858152600e602052604090206116c2828483612cf0565b505050505050565b6116d2611a77565b6001600160a01b03811661174e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109eb565b610d7681611aec565b6000818152600260205260409020546001600160a01b0316610d765760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109eb565b6daaeb6d7670e522a718067333cd4e3b15610d76576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611841573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118659190613176565b610d76576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016109eb565b60006118b182610f19565b9050806001600160a01b0316836001600160a01b03160361193a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109eb565b336001600160a01b038216148061197457506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6119e65760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109eb565b6109618383611e88565b6119fa3382611f03565b611a6c5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109eb565b610961838383611f81565b6006546001600160a01b0316331461102a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109eb565b61096183838360405180602001604052806000815250611352565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61105a82826040518060200160405280600081525061215b565b61105a3383836121e4565b611b7a3383611f03565b611bec5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109eb565b61098b848484846122b2565b606081600003611c3b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611c655780611c4f81612c18565b9150611c5e9050600a83613162565b9150611c3f565b60008167ffffffffffffffff811115611c8057611c806128f1565b6040519080825280601f01601f191660200182016040528015611caa576020820181803683370190505b5090505b8415611d2d57611cbf600183612e87565b9150611ccc600a86613193565b611cd7906030612c97565b60f81b818381518110611cec57611cec612c02565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611d26600a86613162565b9450611cae565b949350505050565b60608151600003611d5457505060408051602081019091526000815290565b60006040518060600160405280604081526020016132016040913990506000600384516002611d839190612c97565b611d8d9190613162565b611d98906004612e70565b67ffffffffffffffff811115611db057611db06128f1565b6040519080825280601f01601f191660200182016040528015611dda576020820181803683370190505b509050600182016020820185865187015b80821015611e46576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611deb565b5050600386510660018114611e625760028114611e7557611e7d565b603d6001830353603d6002830353611e7d565b603d60018303535b509195945050505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611eca82610f19565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611f0f83610f19565b9050806001600160a01b0316846001600160a01b03161480611f5657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611d2d5750836001600160a01b0316611f6f84610926565b6001600160a01b031614949350505050565b826001600160a01b0316611f9482610f19565b6001600160a01b0316146120105760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016109eb565b6001600160a01b03821661208b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109eb565b612096600082611e88565b6001600160a01b03831660009081526003602052604081208054600192906120bf908490612e87565b90915550506001600160a01b03821660009081526003602052604081208054600192906120ed908490612c97565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612165838361233b565b612172600084848461248a565b6109615760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109eb565b816001600160a01b0316836001600160a01b0316036122455760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109eb565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6122bd848484611f81565b6122c98484848461248a565b61098b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109eb565b6001600160a01b0382166123915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109eb565b6000818152600260205260409020546001600160a01b0316156123f65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109eb565b6001600160a01b038216600090815260036020526040812080546001929061241f908490612c97565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612620576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906124e79033908990889088906004016131a7565b6020604051808303816000875af1925050508015612522575060408051601f3d908101601f1916820190925261251f918101906131e3565b60015b6125d5573d808015612550576040519150601f19603f3d011682016040523d82523d6000602084013e612555565b606091505b5080516000036125cd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109eb565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d2d565b506001949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d7657600080fd5b60006020828403121561266b57600080fd5b81356126768161262b565b9392505050565b60005b83811015612698578181015183820152602001612680565b50506000910152565b600081518084526126b981602086016020860161267d565b601f01601f19169290920160200192915050565b60208152600061267660208301846126a1565b6000602082840312156126f257600080fd5b5035919050565b80356001600160a01b038116811461271057600080fd5b919050565b6000806040838503121561272857600080fd5b612731836126f9565b946020939093013593505050565b60008060006060848603121561275457600080fd5b61275d846126f9565b925061276b602085016126f9565b9150604084013590509250925092565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015612810577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0898403018552815180518785526127e4888601826126a1565b91890151858303868b01529190506127fc81836126a1565b9689019694505050908601906001016127a2565b509098975050505050505050565b60008083601f84011261283057600080fd5b50813567ffffffffffffffff81111561284857600080fd5b6020830191508360208260051b850101111561286357600080fd5b9250929050565b6000806000806040858703121561288057600080fd5b843567ffffffffffffffff8082111561289857600080fd5b6128a48883890161281e565b909650945060208701359150808211156128bd57600080fd5b506128ca8782880161281e565b95989497509550505050565b6000602082840312156128e857600080fd5b612676826126f9565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612922576129226128f1565b604051601f8501601f19908116603f0116810190828211818310171561294a5761294a6128f1565b8160405280935085815286868601111561296357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561298f57600080fd5b813567ffffffffffffffff8111156129a657600080fd5b8201601f810184136129b757600080fd5b611d2d84823560208401612907565b6000602082840312156129d857600080fd5b813560ff8116811461267657600080fd5b8015158114610d7657600080fd5b60008060408385031215612a0a57600080fd5b612a13836126f9565b91506020830135612a23816129e9565b809150509250929050565b60008060008060808587031215612a4457600080fd5b612a4d856126f9565b9350612a5b602086016126f9565b925060408501359150606085013567ffffffffffffffff811115612a7e57600080fd5b8501601f81018713612a8f57600080fd5b612a9e87823560208401612907565b91505092959194509250565b60008060408385031215612abd57600080fd5b612ac6836126f9565b9150612ad4602084016126f9565b90509250929050565b60008083601f840112612aef57600080fd5b50813567ffffffffffffffff811115612b0757600080fd5b60208301915083602082850101111561286357600080fd5b600080600080600060608688031215612b3757600080fd5b85359450602086013567ffffffffffffffff80821115612b5657600080fd5b612b6289838a01612add565b90965094506040880135915080821115612b7b57600080fd5b50612b8888828901612add565b969995985093965092949392505050565b600181811c90821680612bad57607f821691505b602082108103612bcd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60ff818116838216019081111561088e5761088e612bd3565b634e487b7160e01b600052603260045260246000fd5b60006000198203612c2b57612c2b612bd3565b5060010190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112612c6757600080fd5b83018035915067ffffffffffffffff821115612c8257600080fd5b60200191503681900382131561286357600080fd5b8082018082111561088e5761088e612bd3565b601f82111561096157600081815260208120601f850160051c81016020861015612cd15750805b601f850160051c820191505b818110156116c257828155600101612cdd565b67ffffffffffffffff831115612d0857612d086128f1565b612d1c83612d168354612b99565b83612caa565b6000601f841160018114612d505760008515612d385750838201355b600019600387901b1c1916600186901b178355610ea9565b600083815260209020601f19861690835b82811015612d815786850135825560209485019460019092019101612d61565b5086821015612d9e5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b815167ffffffffffffffff811115612dca57612dca6128f1565b612dde81612dd88454612b99565b84612caa565b602080601f831160018114612e135760008415612dfb5750858301515b600019600386901b1c1916600185901b1785556116c2565b600085815260208120601f198616915b82811015612e4257888601518255948401946001909101908401612e23565b5085821015612e605787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808202811582820484141761088e5761088e612bd3565b8181038181111561088e5761088e612bd3565b60008151612eac81856020860161267d565b9290920192915050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a20225769736865732032303232202300000000000000000000600182015260008651612f14816017850160208b0161267d565b80830190507f222c0000000000000000000000000000000000000000000000000000000000008060178301527f226465736372697074696f6e223a22000000000000000000000000000000000060198301528751612f79816028850160208c0161267d565b60289201918201527f22696d616765223a202200000000000000000000000000000000000000000000602a8201528551612fba816034840160208a0161267d565b6130fa6130d16130a86130a261305361304d612ffe6034888a01017f222c000000000000000000000000000000000000000000000000000000000000815260020190565b7f2261747472696275746573223a205b7b2274726169745f74797065223a20224481527f6179222c202276616c7565223a220000000000000000000000000000000000006020820152602e0190565b8b612e9a565b7f227d2c7b2274726169745f74797065223a2022417274697374222c202276616c81527f7565223a22000000000000000000000000000000000000000000000000000000602082015260250190565b88612e9a565b7f227d5d0000000000000000000000000000000000000000000000000000000000815260030190565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010190565b9998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161313f81601d85016020870161267d565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b6000826131715761317161314c565b500490565b60006020828403121561318857600080fd5b8151612676816129e9565b6000826131a2576131a261314c565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526131d960808301846126a1565b9695505050505050565b6000602082840312156131f557600080fd5b81516126768161262b56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212200ec9d8bdee6bee64231bd6e375873d37f1b5523144a25de5808479e0d2c573ec64736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000638842e0000000000000000000000000fb1e9a00eab85311d7dbec39e252aa9ed3c85988

-----Decoded View---------------
Arg [0] : startdate_ (uint256): 1669874400
Arg [1] : donation_wallet_ (address): 0xfb1e9a00eab85311D7dBec39e252AA9ED3C85988

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000638842e0
Arg [1] : 000000000000000000000000fb1e9a00eab85311d7dbec39e252aa9ed3c85988


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.