ETH Price: $3,134.02 (-4.99%)
Gas: 3 Gwei

Token

Forgotten Ethereal Worlds (FEW)
 

Overview

Max Total Supply

345 FEW

Holders

302

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
orgen.eth
Balance
1 FEW
0x944b8a5c94055a761d518ee11c6c370b139eff28
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Forgotten Ethereal Worlds is a landscape NFT project. 345 Genesis. 3345 total supply. These worlds will include passive staking, token generation, and level progression.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EtherealWorlds

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : EtherealWorlds.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./ERC721P/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract EtherealWorlds is Ownable, ERC721Enumerable {
    using Strings for uint256;
    using ECDSA for bytes32;

    address constant private TREASURY = 0x17020cBf555670aB1c7f3e64a80dA61b0B4990c0;
    address constant private TAKOA = 0x4c65767a604011EA3Fb0974d8f1803CD48472FEa;
    address constant private PIONEER = 0xD632a4331229f0dC16418d6240731340855a8DA2;
    address constant private EXCEED = 0x0788C6B29E4951C853f1BD0BB55B3a1471fC8ad7;
    address constant private SUIKON = 0x1D8c8507C8046A5981f1aAD639E273CB4Eb2517B;
    address constant private DEV_1 = 0xb738bEadEE128cfa9E28BaA1609d08Ff1CBc9535;
    address constant private DEV_2 = 0xfE6420605CE05bbA3E6330EE8a983574a89afE6E;
    address constant private DEV_3 = 0x552b6aD871F27A9729162c18d769050363f2d57E;
    address constant private STAFF_1 = 0x3E3fD41aDD7dE67a12CBF9575d442826B067C71a;
    address constant private STAFF_2 = 0x419F2E40EacFB8e636E644A4e65f3A533c40679a;

    uint256 constant public MAX_WORLDS = 345;
    uint256 constant public WORLD_PRICE = 0.125 ether;

    mapping(uint256 => bool) private usedNonces;
    
    bool public isSaleActive;

    string public _baseTokenURI = "https://data.forgottenethereal.world/metadata/";
    address private _signer;

    constructor(address signer) ERC721("Forgotten Ethereal Worlds", "FEW") {
        _safeMint(TAKOA, 0);
        _safeMint(EXCEED, 1);
        _safeMint(PIONEER, 2);
        _safeMint(SUIKON, 3);
        _safeMint(DEV_1, 4);
        _safeMint(DEV_2, 5);
        _safeMint(DEV_3, 6);
        _safeMint(STAFF_1, 7);
        _safeMint(STAFF_2, 8);
        _signer = signer;
    }

    /**
     * @dev Only mints if sale is active, and that the signature is valid.
     *      Each signature is valid for 1 mint
     */
    function mint(bytes calldata _signature, uint256 _nonce) external payable {
        require(isSaleActive, "Worlds: Sale Inactive");
        require(WORLD_PRICE <= msg.value, "Worlds: Insufficient Funds");
        require(hashMessage(_nonce).recover(_signature) == _signer, "Worlds: Weird Hash");
        require(!usedNonces[_nonce], "Worlds: Reused Hash");
        uint256 currentSupply = totalSupply();
        require(currentSupply < MAX_WORLDS, "Worlds: Sold Out");
        usedNonces[_nonce] = true;

        _safeMint(msg.sender, currentSupply);
    }

    /**
     * @dev Mints all remaining NFT's into treasury in the event someone decides not to mint
     *      Should keep in mind gas limit in case there are a lot of no shows
     */
    function mintRemaining() external onlyOwner {
        uint256 currentSupply = totalSupply();

        while(currentSupply < MAX_WORLDS) {
            _safeMint(TREASURY, currentSupply++);
        }
    }

    /**
     * @dev Just a utility function so the mint code looks slightly cleaner
     */
    function hashMessage(uint256 _nonce) internal view returns(bytes32 _hash) {
        _hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(msg.sender, _nonce))));
    }

    /**
     * @dev Turn's sale on if its off and vice versa
     */
    function toggleSale() external onlyOwner {
        isSaleActive = !isSaleActive;
    }

    /**
    * @notice Set baseURI
    *
    * @param baseURI URI of the pet image server
    */
    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    /**
    * @notice Base URI for computing {tokenURI}. If set, the resulting URI for each
    * token will be the concatenation of the `baseURI` and the `tokenId`.
    *
    * @return string Uri
    */
    function _baseURI() internal view virtual returns (string memory) {
        return _baseTokenURI;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
	    require(_exists(tokenId), "ERC721Metadata: Unknown token");
        
	    string memory baseURI = _baseURI();
	    return bytes(baseURI).length > 0	? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
	}

    /**
     * @dev Not safe to have all the funds on the deployer's address
     */
    function withdrawAll() external {
        uint256 balance = address(this).balance;
        
        payable(TREASURY).transfer(balance * 5000 / 10000);
        payable(TAKOA).transfer(balance * 1150 / 10000);
        payable(EXCEED).transfer(balance * 800 / 10000);
        payable(PIONEER).transfer(balance * 1000 / 10000);
        payable(SUIKON).transfer(balance * 550 / 10000);
        payable(DEV_1).transfer(balance * 500 / 10000);
        payable(DEV_2).transfer(balance * 650 / 10000);
        payable(DEV_3).transfer(balance * 350 / 10000);
    }
}

File 2 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.9;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256 tokenId)
    {
        require(
            index < ERC721.balanceOf(owner),
            "ERC721Enumerable : owner ioob"
        );
        uint256 count;
        for (uint256 i; i < _owners.length; ++i) {
            if (owner == _owners[i]) {
                if (count == index) return i;
                else ++count;
            }
        }
        require(false, "ERC721Enumerable: owner ioob");
    }

    /**
     * @dev Returns the token IDs owned by `owner`.
     */
    function tokensOfOwner(address owner)
        public
        view
        returns (uint256[] memory)
    {
        require(0 < ERC721.balanceOf(owner), "ERC721Enumerable: owner ioob");
        uint256 tokenCount = balanceOf(owner);
        uint256[] memory tokenIds = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(owner, i);
        }
        return tokenIds;
    }

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

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

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 4 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 14 : ERC721.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Array of owners by token ID
    address[] internal _owners;

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     * Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 7 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 8 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

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

File 10 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 11 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_WORLDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WORLD_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintRemaining","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","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":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052602e60808181529062002f4d60a039805162000029916008916020909101906200062b565b503480156200003757600080fd5b5060405162002f7b38038062002f7b8339810160408190526200005a91620006d1565b6040518060400160405280601981526020017f466f72676f7474656e20457468657265616c20576f726c6473000000000000008152506040518060400160405280600381526020016246455760e81b815250620000c6620000c06200024960201b60201c565b6200024d565b8151620000db9060019060208501906200062b565b508051620000f19060029060208401906200062b565b5050506200011b734c65767a604011ea3fb0974d8f1803cd48472fea60006200029d60201b60201c565b6200013c730788c6b29e4951c853f1bd0bb55b3a1471fc8ad760016200029d565b6200015d73d632a4331229f0dc16418d6240731340855a8da260026200029d565b6200017e731d8c8507c8046a5981f1aad639e273cb4eb2517b60036200029d565b6200019f73b738beadee128cfa9e28baa1609d08ff1cbc953560046200029d565b620001c073fe6420605ce05bba3e6330ee8a983574a89afe6e60056200029d565b620001e173552b6ad871f27a9729162c18d769050363f2d57e60066200029d565b62000202733e3fd41add7de67a12cbf9575d442826b067c71a60076200029d565b6200022373419f2e40eacfb8e636e644a4e65f3a533c40679a60086200029d565b600980546001600160a01b0319166001600160a01b0392909216919091179055620007fd565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620002bf828260405180602001604052806000815250620002c360201b60201c565b5050565b620002cf83836200033f565b620002de60008484846200046d565b6200033a5760405162461bcd60e51b8152602060048201526032602482015260008051602062002f2d83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084015b60405180910390fd5b505050565b6001600160a01b038216620003975760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000331565b620003a281620005d6565b15620003f15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000331565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006200048e846001600160a01b03166200062560201b620014bb1760201c565b15620005ca57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620004c890339089908890889060040162000703565b602060405180830381600087803b158015620004e357600080fd5b505af192505050801562000516575060408051601f3d908101601f1916820190925262000513918101906200077e565b60015b620005af573d80801562000547576040519150601f19603f3d011682016040523d82523d6000602084013e6200054c565b606091505b508051620005a75760405162461bcd60e51b8152602060048201526032602482015260008051602062002f2d83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000331565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620005ce565b5060015b949350505050565b600354600090821080156200061f575060006001600160a01b031660038381548110620006075762000607620007aa565b6000918252602090912001546001600160a01b031614155b92915050565b3b151590565b8280546200063990620007c0565b90600052602060002090601f0160209004810192826200065d5760008555620006a8565b82601f106200067857805160ff1916838001178555620006a8565b82800160010185558215620006a8579182015b82811115620006a85782518255916020019190600101906200068b565b50620006b6929150620006ba565b5090565b5b80821115620006b65760008155600101620006bb565b600060208284031215620006e457600080fd5b81516001600160a01b0381168114620006fc57600080fd5b9392505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620007525785810182015185820160a00152810162000734565b828111156200076557600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200079157600080fd5b81516001600160e01b031981168114620006fc57600080fd5b634e487b7160e01b600052603260045260246000fd5b600181811c90821680620007d557607f821691505b60208210811415620007f757634e487b7160e01b600052602260045260246000fd5b50919050565b612720806200080d6000396000f3fe6080604052600436106101c15760003560e01c806370a08231116100f757806395d89b4111610095578063cfc86f7b11610064578063cfc86f7b146104d3578063e985e9c5146104e8578063f2fde38b14610531578063f5cd83d61461055157600080fd5b806395d89b411461045e578063a22cb46514610473578063b88d4fde14610493578063c87b56dd146104b357600080fd5b80637d8966e4116100d15780637d8966e4146103e95780638462151c146103fe578063853828b61461042b5780638da5cb5b1461044057600080fd5b806370a082311461039f578063715018a6146103bf57806376185f39146103d457600080fd5b80632f745c59116101645780634f6ccce71161013e5780634f6ccce71461032557806355f804b314610345578063564566a8146103655780636352211e1461037f57600080fd5b80632f745c59146102c95780633f90662c146102e957806342842e0e1461030557600080fd5b8063081812fc116101a0578063081812fc14610232578063095ea7b31461026a57806318160ddd1461028a57806323b872dd146102a957600080fd5b8062257612146101c657806301ffc9a7146101db57806306fdde0314610210575b600080fd5b6101d96101d43660046120de565b610567565b005b3480156101e757600080fd5b506101fb6101f6366004612140565b610780565b60405190151581526020015b60405180910390f35b34801561021c57600080fd5b506102256107ab565b60405161020791906121b5565b34801561023e57600080fd5b5061025261024d3660046121c8565b61083d565b6040516001600160a01b039091168152602001610207565b34801561027657600080fd5b506101d96102853660046121fd565b6108c5565b34801561029657600080fd5b506003545b604051908152602001610207565b3480156102b557600080fd5b506101d96102c4366004612227565b6109db565b3480156102d557600080fd5b5061029b6102e43660046121fd565b610a0c565b3480156102f557600080fd5b5061029b6701bc16d674ec800081565b34801561031157600080fd5b506101d9610320366004612227565b610b1b565b34801561033157600080fd5b5061029b6103403660046121c8565b610b36565b34801561035157600080fd5b506101d9610360366004612263565b610b93565b34801561037157600080fd5b506007546101fb9060ff1681565b34801561038b57600080fd5b5061025261039a3660046121c8565b610bc9565b3480156103ab57600080fd5b5061029b6103ba3660046122a5565b610c55565b3480156103cb57600080fd5b506101d9610d27565b3480156103e057600080fd5b506101d9610d5d565b3480156103f557600080fd5b506101d9610dd0565b34801561040a57600080fd5b5061041e6104193660046122a5565b610e0e565b60405161020791906122c0565b34801561043757600080fd5b506101d9610f08565b34801561044c57600080fd5b506000546001600160a01b0316610252565b34801561046a57600080fd5b506102256111dc565b34801561047f57600080fd5b506101d961048e366004612304565b6111eb565b34801561049f57600080fd5b506101d96104ae366004612356565b6112b0565b3480156104bf57600080fd5b506102256104ce3660046121c8565b6112e2565b3480156104df57600080fd5b50610225611395565b3480156104f457600080fd5b506101fb610503366004612432565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561053d57600080fd5b506101d961054c3660046122a5565b611423565b34801561055d57600080fd5b5061029b61015981565b60075460ff166105b65760405162461bcd60e51b8152602060048201526015602482015274576f726c64733a2053616c6520496e61637469766560581b60448201526064015b60405180910390fd5b346701bc16d674ec8000111561060e5760405162461bcd60e51b815260206004820152601a60248201527f576f726c64733a20496e73756666696369656e742046756e647300000000000060448201526064016105ad565b600954604080516020601f86018190048102820181019092528481526001600160a01b039092169161066691869086908190840183828082843760009201919091525061066092508691506114c19050565b9061154f565b6001600160a01b0316146106b15760405162461bcd60e51b81526020600482015260126024820152710aedee4d8c8e67440aecad2e4c84090c2e6d60731b60448201526064016105ad565b60008181526006602052604090205460ff16156107065760405162461bcd60e51b81526020600482015260136024820152720aedee4d8c8e67440a4caeae6cac84090c2e6d606b1b60448201526064016105ad565b600061071160035490565b905061015981106107575760405162461bcd60e51b815260206004820152601060248201526f15dbdc9b191cce8814dbdb190813dd5d60821b60448201526064016105ad565b6000828152600660205260409020805460ff1916600117905561077a338261156b565b50505050565b60006001600160e01b0319821663780e9d6360e01b14806107a557506107a582611585565b92915050565b6060600180546107ba90612465565b80601f01602080910402602001604051908101604052809291908181526020018280546107e690612465565b80156108335780601f1061080857610100808354040283529160200191610833565b820191906000526020600020905b81548152906001019060200180831161081657829003601f168201915b5050505050905090565b6000610848826115d5565b6108a95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ad565b506000908152600460205260409020546001600160a01b031690565b60006108d082610bc9565b9050806001600160a01b0316836001600160a01b0316141561093e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105ad565b336001600160a01b038216148061095a575061095a8133610503565b6109cc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105ad565b6109d6838361161f565b505050565b6109e5338261168d565b610a015760405162461bcd60e51b81526004016105ad906124a0565b6109d6838383611777565b6000610a1783610c55565b8210610a655760405162461bcd60e51b815260206004820152601d60248201527f455243373231456e756d657261626c65203a206f776e657220696f6f6200000060448201526064016105ad565b6000805b600354811015610ad25760038181548110610a8657610a866124f1565b6000918252602090912001546001600160a01b0386811691161415610ac25783821415610ab65791506107a59050565b610abf8261251d565b91505b610acb8161251d565b9050610a69565b5060405162461bcd60e51b815260206004820152601c60248201527f455243373231456e756d657261626c653a206f776e657220696f6f620000000060448201526064016105ad565b6109d6838383604051806020016040528060008152506112b0565b6000610b4160035490565b8210610b8f5760405162461bcd60e51b815260206004820152601d60248201527f455243373231456e756d657261626c653a20676c6f62616c20696f6f6200000060448201526064016105ad565b5090565b6000546001600160a01b03163314610bbd5760405162461bcd60e51b81526004016105ad90612538565b6109d66008838361200c565b60008060038381548110610bdf57610bdf6124f1565b6000918252602090912001546001600160a01b03169050806107a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105ad565b60006001600160a01b038216610cc05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105ad565b600354600090815b81811015610d1e5760038181548110610ce357610ce36124f1565b6000918252602090912001546001600160a01b0386811691161415610d0e57610d0b8361251d565b92505b610d178161251d565b9050610cc8565b50909392505050565b6000546001600160a01b03163314610d515760405162461bcd60e51b81526004016105ad90612538565b610d5b60006118cd565b565b6000546001600160a01b03163314610d875760405162461bcd60e51b81526004016105ad90612538565b6000610d9260035490565b90505b610159811015610dcd57610dc87317020cbf555670ab1c7f3e64a80da61b0b4990c082610dc18161251d565b935061156b565b610d95565b50565b6000546001600160a01b03163314610dfa5760405162461bcd60e51b81526004016105ad90612538565b6007805460ff19811660ff90911615179055565b6060610e1982610c55565b600010610e685760405162461bcd60e51b815260206004820152601c60248201527f455243373231456e756d657261626c653a206f776e657220696f6f620000000060448201526064016105ad565b6000610e7383610c55565b905060008167ffffffffffffffff811115610e9057610e90612340565b604051908082528060200260200182016040528015610eb9578160200160208202803683370190505b50905060005b82811015610f0057610ed18582610a0c565b828281518110610ee357610ee36124f1565b602090810291909101015280610ef88161251d565b915050610ebf565b509392505050565b477317020cbf555670ab1c7f3e64a80da61b0b4990c06108fc612710610f308461138861256d565b610f3a91906125a2565b6040518115909202916000818181858888f19350505050158015610f62573d6000803e3d6000fd5b50734c65767a604011ea3fb0974d8f1803cd48472fea6108fc612710610f8a8461047e61256d565b610f9491906125a2565b6040518115909202916000818181858888f19350505050158015610fbc573d6000803e3d6000fd5b50730788c6b29e4951c853f1bd0bb55b3a1471fc8ad76108fc612710610fe48461032061256d565b610fee91906125a2565b6040518115909202916000818181858888f19350505050158015611016573d6000803e3d6000fd5b5073d632a4331229f0dc16418d6240731340855a8da26108fc61271061103e846103e861256d565b61104891906125a2565b6040518115909202916000818181858888f19350505050158015611070573d6000803e3d6000fd5b50731d8c8507c8046a5981f1aad639e273cb4eb2517b6108fc6127106110988461022661256d565b6110a291906125a2565b6040518115909202916000818181858888f193505050501580156110ca573d6000803e3d6000fd5b5073b738beadee128cfa9e28baa1609d08ff1cbc95356108fc6127106110f2846101f461256d565b6110fc91906125a2565b6040518115909202916000818181858888f19350505050158015611124573d6000803e3d6000fd5b5073fe6420605ce05bba3e6330ee8a983574a89afe6e6108fc61271061114c8461028a61256d565b61115691906125a2565b6040518115909202916000818181858888f1935050505015801561117e573d6000803e3d6000fd5b5073552b6ad871f27a9729162c18d769050363f2d57e6108fc6127106111a68461015e61256d565b6111b091906125a2565b6040518115909202916000818181858888f193505050501580156111d8573d6000803e3d6000fd5b5050565b6060600280546107ba90612465565b6001600160a01b0382163314156112445760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105ad565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112ba338361168d565b6112d65760405162461bcd60e51b81526004016105ad906124a0565b61077a8484848461191d565b60606112ed826115d5565b6113395760405162461bcd60e51b815260206004820152601d60248201527f4552433732314d657461646174613a20556e6b6e6f776e20746f6b656e00000060448201526064016105ad565b6000611343611950565b90506000815111611363576040518060200160405280600081525061138e565b8061136d8461195f565b60405160200161137e9291906125b6565b6040516020818303038152906040525b9392505050565b600880546113a290612465565b80601f01602080910402602001604051908101604052809291908181526020018280546113ce90612465565b801561141b5780601f106113f05761010080835404028352916020019161141b565b820191906000526020600020905b8154815290600101906020018083116113fe57829003601f168201915b505050505081565b6000546001600160a01b0316331461144d5760405162461bcd60e51b81526004016105ad90612538565b6001600160a01b0381166114b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ad565b610dcd816118cd565b3b151590565b6040516bffffffffffffffffffffffff193360601b1660208201526034810182905260009060540160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050919050565b600080600061155e8585611a5d565b91509150610f0081611acd565b6111d8828260405180602001604052806000815250611c88565b60006001600160e01b031982166380ac58cd60e01b14806115b657506001600160e01b03198216635b5e139f60e01b145b806107a557506301ffc9a760e01b6001600160e01b03198316146107a5565b600354600090821080156107a5575060006001600160a01b031660038381548110611602576116026124f1565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061165482610bc9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611698826115d5565b6116f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ad565b600061170483610bc9565b9050806001600160a01b0316846001600160a01b0316148061173f5750836001600160a01b03166117348461083d565b6001600160a01b0316145b8061176f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661178a82610bc9565b6001600160a01b0316146117f25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105ad565b6001600160a01b0382166118545760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105ad565b61185f60008261161f565b8160038281548110611873576118736124f1565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611928848484611777565b61193484848484611cbb565b61077a5760405162461bcd60e51b81526004016105ad906125e5565b6060600880546107ba90612465565b6060816119835750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119ad57806119978161251d565b91506119a69050600a836125a2565b9150611987565b60008167ffffffffffffffff8111156119c8576119c8612340565b6040519080825280601f01601f1916602001820160405280156119f2576020820181803683370190505b5090505b841561176f57611a07600183612637565b9150611a14600a8661264e565b611a1f906030612662565b60f81b818381518110611a3457611a346124f1565b60200101906001600160f81b031916908160001a905350611a56600a866125a2565b94506119f6565b600080825160411415611a945760208301516040840151606085015160001a611a8887828585611dc8565b94509450505050611ac6565b825160401415611abe5760208301516040840151611ab3868383611eb5565b935093505050611ac6565b506000905060025b9250929050565b6000816004811115611ae157611ae161267a565b1415611aea5750565b6001816004811115611afe57611afe61267a565b1415611b4c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105ad565b6002816004811115611b6057611b6061267a565b1415611bae5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105ad565b6003816004811115611bc257611bc261267a565b1415611c1b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105ad565b6004816004811115611c2f57611c2f61267a565b1415610dcd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105ad565b611c928383611ee4565b611c9f6000848484611cbb565b6109d65760405162461bcd60e51b81526004016105ad906125e5565b60006001600160a01b0384163b15611dbd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cff903390899088908890600401612690565b602060405180830381600087803b158015611d1957600080fd5b505af1925050508015611d49575060408051601f3d908101601f19168201909252611d46918101906126cd565b60015b611da3573d808015611d77576040519150601f19603f3d011682016040523d82523d6000602084013e611d7c565b606091505b508051611d9b5760405162461bcd60e51b81526004016105ad906125e5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061176f565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611dff5750600090506003611eac565b8460ff16601b14158015611e1757508460ff16601c14155b15611e285750600090506004611eac565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611e7c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611ea557600060019250925050611eac565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611ed687828885611dc8565b935093505050935093915050565b6001600160a01b038216611f3a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105ad565b611f43816115d5565b15611f905760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105ad565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461201890612465565b90600052602060002090601f01602090048101928261203a5760008555612080565b82601f106120535782800160ff19823516178555612080565b82800160010185558215612080579182015b82811115612080578235825591602001919060010190612065565b50610b8f9291505b80821115610b8f5760008155600101612088565b60008083601f8401126120ae57600080fd5b50813567ffffffffffffffff8111156120c657600080fd5b602083019150836020828501011115611ac657600080fd5b6000806000604084860312156120f357600080fd5b833567ffffffffffffffff81111561210a57600080fd5b6121168682870161209c565b909790965060209590950135949350505050565b6001600160e01b031981168114610dcd57600080fd5b60006020828403121561215257600080fd5b813561138e8161212a565b60005b83811015612178578181015183820152602001612160565b8381111561077a5750506000910152565b600081518084526121a181602086016020860161215d565b601f01601f19169290920160200192915050565b60208152600061138e6020830184612189565b6000602082840312156121da57600080fd5b5035919050565b80356001600160a01b03811681146121f857600080fd5b919050565b6000806040838503121561221057600080fd5b612219836121e1565b946020939093013593505050565b60008060006060848603121561223c57600080fd5b612245846121e1565b9250612253602085016121e1565b9150604084013590509250925092565b6000806020838503121561227657600080fd5b823567ffffffffffffffff81111561228d57600080fd5b6122998582860161209c565b90969095509350505050565b6000602082840312156122b757600080fd5b61138e826121e1565b6020808252825182820181905260009190848201906040850190845b818110156122f8578351835292840192918401916001016122dc565b50909695505050505050565b6000806040838503121561231757600080fd5b612320836121e1565b91506020830135801515811461233557600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561236c57600080fd5b612375856121e1565b9350612383602086016121e1565b925060408501359150606085013567ffffffffffffffff808211156123a757600080fd5b818701915087601f8301126123bb57600080fd5b8135818111156123cd576123cd612340565b604051601f8201601f19908116603f011681019083821181831017156123f5576123f5612340565b816040528281528a602084870101111561240e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561244557600080fd5b61244e836121e1565b915061245c602084016121e1565b90509250929050565b600181811c9082168061247957607f821691505b6020821081141561249a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561253157612531612507565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081600019048311821515161561258757612587612507565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826125b1576125b161258c565b500490565b600083516125c881846020880161215d565b8351908301906125dc81836020880161215d565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008282101561264957612649612507565b500390565b60008261265d5761265d61258c565b500690565b6000821982111561267557612675612507565b500190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126c390830184612189565b9695505050505050565b6000602082840312156126df57600080fd5b815161138e8161212a56fea2646970667358221220c89d3d095fdfd256bdb22009a59a8935fd25c3f09c7ec13e068bdd7ee8ae6e6864736f6c634300080900334552433732313a207472616e7366657220746f206e6f6e20455243373231526568747470733a2f2f646174612e666f72676f7474656e657468657265616c2e776f726c642f6d657461646174612f000000000000000000000000dc945f2c73a6c6bad51efd83235d8fab9c7de135

Deployed Bytecode

0x6080604052600436106101c15760003560e01c806370a08231116100f757806395d89b4111610095578063cfc86f7b11610064578063cfc86f7b146104d3578063e985e9c5146104e8578063f2fde38b14610531578063f5cd83d61461055157600080fd5b806395d89b411461045e578063a22cb46514610473578063b88d4fde14610493578063c87b56dd146104b357600080fd5b80637d8966e4116100d15780637d8966e4146103e95780638462151c146103fe578063853828b61461042b5780638da5cb5b1461044057600080fd5b806370a082311461039f578063715018a6146103bf57806376185f39146103d457600080fd5b80632f745c59116101645780634f6ccce71161013e5780634f6ccce71461032557806355f804b314610345578063564566a8146103655780636352211e1461037f57600080fd5b80632f745c59146102c95780633f90662c146102e957806342842e0e1461030557600080fd5b8063081812fc116101a0578063081812fc14610232578063095ea7b31461026a57806318160ddd1461028a57806323b872dd146102a957600080fd5b8062257612146101c657806301ffc9a7146101db57806306fdde0314610210575b600080fd5b6101d96101d43660046120de565b610567565b005b3480156101e757600080fd5b506101fb6101f6366004612140565b610780565b60405190151581526020015b60405180910390f35b34801561021c57600080fd5b506102256107ab565b60405161020791906121b5565b34801561023e57600080fd5b5061025261024d3660046121c8565b61083d565b6040516001600160a01b039091168152602001610207565b34801561027657600080fd5b506101d96102853660046121fd565b6108c5565b34801561029657600080fd5b506003545b604051908152602001610207565b3480156102b557600080fd5b506101d96102c4366004612227565b6109db565b3480156102d557600080fd5b5061029b6102e43660046121fd565b610a0c565b3480156102f557600080fd5b5061029b6701bc16d674ec800081565b34801561031157600080fd5b506101d9610320366004612227565b610b1b565b34801561033157600080fd5b5061029b6103403660046121c8565b610b36565b34801561035157600080fd5b506101d9610360366004612263565b610b93565b34801561037157600080fd5b506007546101fb9060ff1681565b34801561038b57600080fd5b5061025261039a3660046121c8565b610bc9565b3480156103ab57600080fd5b5061029b6103ba3660046122a5565b610c55565b3480156103cb57600080fd5b506101d9610d27565b3480156103e057600080fd5b506101d9610d5d565b3480156103f557600080fd5b506101d9610dd0565b34801561040a57600080fd5b5061041e6104193660046122a5565b610e0e565b60405161020791906122c0565b34801561043757600080fd5b506101d9610f08565b34801561044c57600080fd5b506000546001600160a01b0316610252565b34801561046a57600080fd5b506102256111dc565b34801561047f57600080fd5b506101d961048e366004612304565b6111eb565b34801561049f57600080fd5b506101d96104ae366004612356565b6112b0565b3480156104bf57600080fd5b506102256104ce3660046121c8565b6112e2565b3480156104df57600080fd5b50610225611395565b3480156104f457600080fd5b506101fb610503366004612432565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561053d57600080fd5b506101d961054c3660046122a5565b611423565b34801561055d57600080fd5b5061029b61015981565b60075460ff166105b65760405162461bcd60e51b8152602060048201526015602482015274576f726c64733a2053616c6520496e61637469766560581b60448201526064015b60405180910390fd5b346701bc16d674ec8000111561060e5760405162461bcd60e51b815260206004820152601a60248201527f576f726c64733a20496e73756666696369656e742046756e647300000000000060448201526064016105ad565b600954604080516020601f86018190048102820181019092528481526001600160a01b039092169161066691869086908190840183828082843760009201919091525061066092508691506114c19050565b9061154f565b6001600160a01b0316146106b15760405162461bcd60e51b81526020600482015260126024820152710aedee4d8c8e67440aecad2e4c84090c2e6d60731b60448201526064016105ad565b60008181526006602052604090205460ff16156107065760405162461bcd60e51b81526020600482015260136024820152720aedee4d8c8e67440a4caeae6cac84090c2e6d606b1b60448201526064016105ad565b600061071160035490565b905061015981106107575760405162461bcd60e51b815260206004820152601060248201526f15dbdc9b191cce8814dbdb190813dd5d60821b60448201526064016105ad565b6000828152600660205260409020805460ff1916600117905561077a338261156b565b50505050565b60006001600160e01b0319821663780e9d6360e01b14806107a557506107a582611585565b92915050565b6060600180546107ba90612465565b80601f01602080910402602001604051908101604052809291908181526020018280546107e690612465565b80156108335780601f1061080857610100808354040283529160200191610833565b820191906000526020600020905b81548152906001019060200180831161081657829003601f168201915b5050505050905090565b6000610848826115d5565b6108a95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ad565b506000908152600460205260409020546001600160a01b031690565b60006108d082610bc9565b9050806001600160a01b0316836001600160a01b0316141561093e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105ad565b336001600160a01b038216148061095a575061095a8133610503565b6109cc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105ad565b6109d6838361161f565b505050565b6109e5338261168d565b610a015760405162461bcd60e51b81526004016105ad906124a0565b6109d6838383611777565b6000610a1783610c55565b8210610a655760405162461bcd60e51b815260206004820152601d60248201527f455243373231456e756d657261626c65203a206f776e657220696f6f6200000060448201526064016105ad565b6000805b600354811015610ad25760038181548110610a8657610a866124f1565b6000918252602090912001546001600160a01b0386811691161415610ac25783821415610ab65791506107a59050565b610abf8261251d565b91505b610acb8161251d565b9050610a69565b5060405162461bcd60e51b815260206004820152601c60248201527f455243373231456e756d657261626c653a206f776e657220696f6f620000000060448201526064016105ad565b6109d6838383604051806020016040528060008152506112b0565b6000610b4160035490565b8210610b8f5760405162461bcd60e51b815260206004820152601d60248201527f455243373231456e756d657261626c653a20676c6f62616c20696f6f6200000060448201526064016105ad565b5090565b6000546001600160a01b03163314610bbd5760405162461bcd60e51b81526004016105ad90612538565b6109d66008838361200c565b60008060038381548110610bdf57610bdf6124f1565b6000918252602090912001546001600160a01b03169050806107a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105ad565b60006001600160a01b038216610cc05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105ad565b600354600090815b81811015610d1e5760038181548110610ce357610ce36124f1565b6000918252602090912001546001600160a01b0386811691161415610d0e57610d0b8361251d565b92505b610d178161251d565b9050610cc8565b50909392505050565b6000546001600160a01b03163314610d515760405162461bcd60e51b81526004016105ad90612538565b610d5b60006118cd565b565b6000546001600160a01b03163314610d875760405162461bcd60e51b81526004016105ad90612538565b6000610d9260035490565b90505b610159811015610dcd57610dc87317020cbf555670ab1c7f3e64a80da61b0b4990c082610dc18161251d565b935061156b565b610d95565b50565b6000546001600160a01b03163314610dfa5760405162461bcd60e51b81526004016105ad90612538565b6007805460ff19811660ff90911615179055565b6060610e1982610c55565b600010610e685760405162461bcd60e51b815260206004820152601c60248201527f455243373231456e756d657261626c653a206f776e657220696f6f620000000060448201526064016105ad565b6000610e7383610c55565b905060008167ffffffffffffffff811115610e9057610e90612340565b604051908082528060200260200182016040528015610eb9578160200160208202803683370190505b50905060005b82811015610f0057610ed18582610a0c565b828281518110610ee357610ee36124f1565b602090810291909101015280610ef88161251d565b915050610ebf565b509392505050565b477317020cbf555670ab1c7f3e64a80da61b0b4990c06108fc612710610f308461138861256d565b610f3a91906125a2565b6040518115909202916000818181858888f19350505050158015610f62573d6000803e3d6000fd5b50734c65767a604011ea3fb0974d8f1803cd48472fea6108fc612710610f8a8461047e61256d565b610f9491906125a2565b6040518115909202916000818181858888f19350505050158015610fbc573d6000803e3d6000fd5b50730788c6b29e4951c853f1bd0bb55b3a1471fc8ad76108fc612710610fe48461032061256d565b610fee91906125a2565b6040518115909202916000818181858888f19350505050158015611016573d6000803e3d6000fd5b5073d632a4331229f0dc16418d6240731340855a8da26108fc61271061103e846103e861256d565b61104891906125a2565b6040518115909202916000818181858888f19350505050158015611070573d6000803e3d6000fd5b50731d8c8507c8046a5981f1aad639e273cb4eb2517b6108fc6127106110988461022661256d565b6110a291906125a2565b6040518115909202916000818181858888f193505050501580156110ca573d6000803e3d6000fd5b5073b738beadee128cfa9e28baa1609d08ff1cbc95356108fc6127106110f2846101f461256d565b6110fc91906125a2565b6040518115909202916000818181858888f19350505050158015611124573d6000803e3d6000fd5b5073fe6420605ce05bba3e6330ee8a983574a89afe6e6108fc61271061114c8461028a61256d565b61115691906125a2565b6040518115909202916000818181858888f1935050505015801561117e573d6000803e3d6000fd5b5073552b6ad871f27a9729162c18d769050363f2d57e6108fc6127106111a68461015e61256d565b6111b091906125a2565b6040518115909202916000818181858888f193505050501580156111d8573d6000803e3d6000fd5b5050565b6060600280546107ba90612465565b6001600160a01b0382163314156112445760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105ad565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112ba338361168d565b6112d65760405162461bcd60e51b81526004016105ad906124a0565b61077a8484848461191d565b60606112ed826115d5565b6113395760405162461bcd60e51b815260206004820152601d60248201527f4552433732314d657461646174613a20556e6b6e6f776e20746f6b656e00000060448201526064016105ad565b6000611343611950565b90506000815111611363576040518060200160405280600081525061138e565b8061136d8461195f565b60405160200161137e9291906125b6565b6040516020818303038152906040525b9392505050565b600880546113a290612465565b80601f01602080910402602001604051908101604052809291908181526020018280546113ce90612465565b801561141b5780601f106113f05761010080835404028352916020019161141b565b820191906000526020600020905b8154815290600101906020018083116113fe57829003601f168201915b505050505081565b6000546001600160a01b0316331461144d5760405162461bcd60e51b81526004016105ad90612538565b6001600160a01b0381166114b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105ad565b610dcd816118cd565b3b151590565b6040516bffffffffffffffffffffffff193360601b1660208201526034810182905260009060540160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050919050565b600080600061155e8585611a5d565b91509150610f0081611acd565b6111d8828260405180602001604052806000815250611c88565b60006001600160e01b031982166380ac58cd60e01b14806115b657506001600160e01b03198216635b5e139f60e01b145b806107a557506301ffc9a760e01b6001600160e01b03198316146107a5565b600354600090821080156107a5575060006001600160a01b031660038381548110611602576116026124f1565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061165482610bc9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611698826115d5565b6116f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ad565b600061170483610bc9565b9050806001600160a01b0316846001600160a01b0316148061173f5750836001600160a01b03166117348461083d565b6001600160a01b0316145b8061176f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661178a82610bc9565b6001600160a01b0316146117f25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105ad565b6001600160a01b0382166118545760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105ad565b61185f60008261161f565b8160038281548110611873576118736124f1565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611928848484611777565b61193484848484611cbb565b61077a5760405162461bcd60e51b81526004016105ad906125e5565b6060600880546107ba90612465565b6060816119835750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119ad57806119978161251d565b91506119a69050600a836125a2565b9150611987565b60008167ffffffffffffffff8111156119c8576119c8612340565b6040519080825280601f01601f1916602001820160405280156119f2576020820181803683370190505b5090505b841561176f57611a07600183612637565b9150611a14600a8661264e565b611a1f906030612662565b60f81b818381518110611a3457611a346124f1565b60200101906001600160f81b031916908160001a905350611a56600a866125a2565b94506119f6565b600080825160411415611a945760208301516040840151606085015160001a611a8887828585611dc8565b94509450505050611ac6565b825160401415611abe5760208301516040840151611ab3868383611eb5565b935093505050611ac6565b506000905060025b9250929050565b6000816004811115611ae157611ae161267a565b1415611aea5750565b6001816004811115611afe57611afe61267a565b1415611b4c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105ad565b6002816004811115611b6057611b6061267a565b1415611bae5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105ad565b6003816004811115611bc257611bc261267a565b1415611c1b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105ad565b6004816004811115611c2f57611c2f61267a565b1415610dcd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105ad565b611c928383611ee4565b611c9f6000848484611cbb565b6109d65760405162461bcd60e51b81526004016105ad906125e5565b60006001600160a01b0384163b15611dbd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cff903390899088908890600401612690565b602060405180830381600087803b158015611d1957600080fd5b505af1925050508015611d49575060408051601f3d908101601f19168201909252611d46918101906126cd565b60015b611da3573d808015611d77576040519150601f19603f3d011682016040523d82523d6000602084013e611d7c565b606091505b508051611d9b5760405162461bcd60e51b81526004016105ad906125e5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061176f565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611dff5750600090506003611eac565b8460ff16601b14158015611e1757508460ff16601c14155b15611e285750600090506004611eac565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611e7c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611ea557600060019250925050611eac565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611ed687828885611dc8565b935093505050935093915050565b6001600160a01b038216611f3a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105ad565b611f43816115d5565b15611f905760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105ad565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461201890612465565b90600052602060002090601f01602090048101928261203a5760008555612080565b82601f106120535782800160ff19823516178555612080565b82800160010185558215612080579182015b82811115612080578235825591602001919060010190612065565b50610b8f9291505b80821115610b8f5760008155600101612088565b60008083601f8401126120ae57600080fd5b50813567ffffffffffffffff8111156120c657600080fd5b602083019150836020828501011115611ac657600080fd5b6000806000604084860312156120f357600080fd5b833567ffffffffffffffff81111561210a57600080fd5b6121168682870161209c565b909790965060209590950135949350505050565b6001600160e01b031981168114610dcd57600080fd5b60006020828403121561215257600080fd5b813561138e8161212a565b60005b83811015612178578181015183820152602001612160565b8381111561077a5750506000910152565b600081518084526121a181602086016020860161215d565b601f01601f19169290920160200192915050565b60208152600061138e6020830184612189565b6000602082840312156121da57600080fd5b5035919050565b80356001600160a01b03811681146121f857600080fd5b919050565b6000806040838503121561221057600080fd5b612219836121e1565b946020939093013593505050565b60008060006060848603121561223c57600080fd5b612245846121e1565b9250612253602085016121e1565b9150604084013590509250925092565b6000806020838503121561227657600080fd5b823567ffffffffffffffff81111561228d57600080fd5b6122998582860161209c565b90969095509350505050565b6000602082840312156122b757600080fd5b61138e826121e1565b6020808252825182820181905260009190848201906040850190845b818110156122f8578351835292840192918401916001016122dc565b50909695505050505050565b6000806040838503121561231757600080fd5b612320836121e1565b91506020830135801515811461233557600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561236c57600080fd5b612375856121e1565b9350612383602086016121e1565b925060408501359150606085013567ffffffffffffffff808211156123a757600080fd5b818701915087601f8301126123bb57600080fd5b8135818111156123cd576123cd612340565b604051601f8201601f19908116603f011681019083821181831017156123f5576123f5612340565b816040528281528a602084870101111561240e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561244557600080fd5b61244e836121e1565b915061245c602084016121e1565b90509250929050565b600181811c9082168061247957607f821691505b6020821081141561249a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561253157612531612507565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081600019048311821515161561258757612587612507565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826125b1576125b161258c565b500490565b600083516125c881846020880161215d565b8351908301906125dc81836020880161215d565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008282101561264957612649612507565b500390565b60008261265d5761265d61258c565b500690565b6000821982111561267557612675612507565b500190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126c390830184612189565b9695505050505050565b6000602082840312156126df57600080fd5b815161138e8161212a56fea2646970667358221220c89d3d095fdfd256bdb22009a59a8935fd25c3f09c7ec13e068bdd7ee8ae6e6864736f6c63430008090033

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

000000000000000000000000dc945f2c73a6c6bad51efd83235d8fab9c7de135

-----Decoded View---------------
Arg [0] : signer (address): 0xDC945F2c73A6C6BaD51eFd83235d8FaB9c7DE135

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000dc945f2c73a6c6bad51efd83235d8fab9c7de135


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.