ETH Price: $3,942.78 (+7.44%)

Token

Ethernals (ETHR)
 

Overview

Max Total Supply

2,304 ETHR

Holders

1,028

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
scilynt.eth
Balance
1 ETHR
0xacf36c7afecc6aae80de6151413f6fe1c778e0fd
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Redifining blockchain gaming - Ethernals #MMORPG. #NFTs with art and purpose. Join the gaming revolution! https://discord.gg/ethernals

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Ethernals

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

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

    uint256 constant public MAX_ETHERNALS = 10101;
    string _baseTokenURI = "";
    uint256 private _reserved = 101;
    uint256 private _price = 0.08 ether;
    address private _signerWalet = 0x9b38A4F0E758BC3c47dBEabcD98a04C1805D2f1a;
    bool public _paused = true;
    bool public _presale = false;
    bool public isURIFrozen = false;
    mapping(bytes32 => bool) public usedHashes;
    mapping(address => uint256) private presaleUsage;

    // owners
    address t1 = 0x107dAb1a4117b36128e0140a1dB993D89b46708C;
    address t2 = 0x435691EA5fcF5d91dd74c7f366601e6d2186D696;
    address t3 = 0xb7745c5852Edd5d0a0B64485A17c65285fbC4D2C;
    address t4 = 0x4dC2D0E1053654B7ee655F5634DDcf8bd40a589a;

    modifier canWithdraw(){
        require(address(this).balance > 0.2 ether);
        _;
    }

    struct ContractOwners {
        address payable addr;
        uint percent;
    }

    ContractOwners[] contractOnwers;

    constructor() ERC721("Ethernals", "ETHR")  {
        contractOnwers.push(ContractOwners(payable(address(t1)), 30));
        contractOnwers.push(ContractOwners(payable(address(t2)), 30));
        contractOnwers.push(ContractOwners(payable(address(t3)), 20));
        contractOnwers.push(ContractOwners(payable(address(t4)), 20));
    }

    function mintEthernals(uint256 quantity, bytes calldata signature, uint256 nonce) public payable {
        uint256 supply = totalSupply();
        require( !_paused,                                          "Sale paused" );
        require( quantity < 4,                                      "Maximum of 3 mints per transaction" );
        require( supply + quantity < MAX_ETHERNALS - _reserved,     "Sold Out" );
        require( msg.value >= _price * quantity,                    "Ether sent is not correct" );

        bytes32 messageHash = hashMessage(msg.sender, quantity, nonce);
        require( messageHash.recover(signature) == _signerWalet, "Unrecognizable Hash" );
        require( !usedHashes[messageHash], "Reused Hash" );

        usedHashes[messageHash] = true;

        for(uint256 i; i < quantity; i++){
            _safeMint( msg.sender, supply + i );
        }
    }

    function mintEthernalsPreSale(uint256 quantity, bytes calldata signature, uint256 maxLimit) public payable {
        uint256 supply = totalSupply();
        require( _presale,                                           "Presale is not active" );
        require( presaleUsage[msg.sender] + quantity <= maxLimit,    "Mint Overflow" );
        require( quantity < 4,                                       "Max of 3 mints per transaction" );
        require( supply + quantity < MAX_ETHERNALS - _reserved,      "Sold Out" );
        require( msg.value >= _price * quantity,                     "Ether sent is not correct" );

        bytes32 messageHash = hashMessagePresale(msg.sender, maxLimit);
        require( messageHash.recover(signature) == _signerWalet, "Unrecognizable Hash" );

        presaleUsage[msg.sender] += quantity;

        for(uint256 i; i < quantity; i++){
            _safeMint( msg.sender, supply + i );
        }
    }

    function getPresaleUsage(address _to) public view returns (uint256){
        return presaleUsage[_to];
    }

    function walletOfOwner(address _owner) public view returns(uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for(uint256 i; i < tokenCount; i++){
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }

    function setPrice(uint256 _newPrice) public onlyOwner() {
        _price = _newPrice;
    }

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

    function setBaseURI(string memory baseURI) public onlyOwner {
        require( !isURIFrozen, "URI is Frozen" );
        _baseTokenURI = baseURI;
    }

    function getPrice() public view returns (uint256){
        return _price;
    }

    function giveAway(address _to, uint256 _amount) external onlyOwner() {
        require( _amount <= _reserved, "Exceeds reserved Ethernals supply" );

        uint256 supply = totalSupply();
        for(uint256 i; i < _amount; i++){
            _safeMint( _to, supply + i );
        }

        _reserved -= _amount;
    }

    function pause(bool val) public onlyOwner {
        _paused = val;
    }

    function togglePresale(bool val) public onlyOwner {
        _presale = val;
    }

    function withdraw() external payable onlyOwner() canWithdraw() {
        uint nbalance = address(this).balance - 0.1 ether;
        for(uint i = 0; i < contractOnwers.length; i++){
            ContractOwners storage o = contractOnwers[i];
            o.addr.transfer((nbalance * o.percent) / 100);
        }
    }

    function freezeURI() external onlyOwner {
        isURIFrozen = true;
    }

    /*
    // In case the private key gets compromised
    */
    function setSignatureWallet(address newSignerWallet) external onlyOwner {
        _signerWalet = newSignerWallet;
    }

    function hashMessage(address sender, uint256 quantity, uint256 nonce) internal pure returns(bytes32) {
        bytes32 hash = keccak256(abi.encodePacked(
            "\x19Ethereum Signed Message:\n32",
            keccak256(abi.encodePacked(sender, quantity, nonce))));
        return hash;
    }

    function hashMessagePresale(address sender, uint256 maxLimit) internal pure returns(bytes32) {
        bytes32 hash = keccak256(abi.encodePacked(
            "\x19Ethereum Signed Message:\n32",
            keccak256(abi.encodePacked(sender, maxLimit))));
        return hash;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 4 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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 {
    /**
     * @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) {
        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // 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) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
        } else if (signature.length == 64) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                let vs := mload(add(signature, 0x40))
                r := mload(add(signature, 0x20))
                s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                v := add(shr(255, vs), 27)
            }
        } else {
            revert("ECDSA: invalid signature length");
        }

        return recover(hash, v, r, s);
    }

    /**
     * @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) {
        // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @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 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 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        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 _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 6 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 7 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

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

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

File 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 10 of 14 : Address.sol
// SPDX-License-Identifier: MIT

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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 14 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 13 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

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

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":[],"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_ETHERNALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_presale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"getPresaleUsage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","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":"isURIFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"mintEthernals","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"maxLimit","type":"uint256"}],"name":"mintEthernalsPreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSignerWallet","type":"address"}],"name":"setSignatureWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"togglePresale","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":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040819052600060808190526200001b91600b916200030a565b506065600c5567011c37937e080000600d55600e80546001600160b81b03191674019b38a4f0e758bc3c47dbeabcd98a04c1805d2f1a179055601180546001600160a01b031990811673107dab1a4117b36128e0140a1db993d89b46708c1790915560128054821673435691ea5fcf5d91dd74c7f366601e6d2186d69617905560138054821673b7745c5852edd5d0a0b64485a17c65285fbc4d2c17905560148054909116734dc2d0e1053654b7ee655f5634ddcf8bd40a589a179055348015620000e557600080fd5b50604080518082018252600981526845746865726e616c7360b81b60208083019182528351808501909452600484526322aa242960e11b90840152815191929162000133916000916200030a565b508051620001499060019060208401906200030a565b50505060006200015e6200030660201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506040805180820182526011546001600160a01b039081168252601e602080840182815260158054600181810183556000838152975160029283027f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4758181018054938b166001600160a01b031994851617905595517f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec476918201558a51808c018c526012548a16815280880198895285548085018755868c5290519085028088018054928c16928516929092179091559751978101979097558951808b018b5260135489168152601481880181815286548086018855878d5292519286028089018054948d169486169490941790935551918901919091558a51808c01909b52805489168b52958a01958652835491820184559290975296519590960290810180549590941694909516939093179091559051910155620003ed565b3390565b8280546200031890620003b0565b90600052602060002090601f0160209004810192826200033c576000855562000387565b82601f106200035757805160ff191683800117855562000387565b8280016001018555821562000387579182015b82811115620003875782518255916020019190600101906200036a565b506200039592915062000399565b5090565b5b808211156200039557600081556001016200039a565b600181811c90821680620003c557607f821691505b60208210811415620003e757634e487b7160e01b600052602260045260246000fd5b50919050565b612cfd80620003fd6000396000f3fe60806040526004361061021a5760003560e01c80636b2ce7f111610123578063b7cdde9c116100ab578063e2a71ef81161006f578063e2a71ef81461062a578063e985e9c51461064b578063f2fde38b14610694578063f832d25b146106b4578063fcd4b212146106c757600080fd5b8063b7cdde9c1461057f578063b88d4fde146105b5578063c793803c146105d5578063c87b56dd146105ea578063ca8001441461060a57600080fd5b806391b7f5ed116100f257806391b7f5ed146104e557806395d89b411461050557806398d5fdca1461051a578063a22cb4651461052f578063aef18bf71461054f57600080fd5b80636b2ce7f11461047257806370a0823114610492578063715018a6146104b25780638da5cb5b146104c757600080fd5b80632f745c59116101a6578063438b630011610175578063438b6300146103c55780634f6ccce7146103f257806355f804b3146104125780636352211e146104325780636ae7bd561461045257600080fd5b80632f745c591461036a5780633ccfd60b1461038a5780633da12aac1461039257806342842e0e146103a557600080fd5b8063081812fc116101ed578063081812fc146102bc578063095ea7b3146102f457806316c61ccc1461031457806318160ddd1461033557806323b872dd1461034a57600080fd5b806301ffc9a71461021f57806302329a291461025457806306fdde03146102765780630723b95214610298575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046128bc565b6106e8565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f36600461288a565b610713565b005b34801561028257600080fd5b5061028b610764565b60405161024b9190612a89565b3480156102a457600080fd5b506102ae61277581565b60405190815260200161024b565b3480156102c857600080fd5b506102dc6102d73660046128a4565b6107f6565b6040516001600160a01b03909116815260200161024b565b34801561030057600080fd5b5061027461030f366004612861565b61088b565b34801561032057600080fd5b50600e5461023f90600160a01b900460ff1681565b34801561034157600080fd5b506008546102ae565b34801561035657600080fd5b50610274610365366004612784565b6109a1565b34801561037657600080fd5b506102ae610385366004612861565b6109d2565b610274610a68565b6102746103a036600461293a565b610b6c565b3480156103b157600080fd5b506102746103c0366004612784565b610e88565b3480156103d157600080fd5b506103e56103e0366004612738565b610ea3565b60405161024b9190612a45565b3480156103fe57600080fd5b506102ae61040d3660046128a4565b610f61565b34801561041e57600080fd5b5061027461042d3660046128f4565b611002565b34801561043e57600080fd5b506102dc61044d3660046128a4565b611089565b34801561045e57600080fd5b5061027461046d366004612738565b611100565b34801561047e57600080fd5b5061027461048d36600461288a565b61114c565b34801561049e57600080fd5b506102ae6104ad366004612738565b611194565b3480156104be57600080fd5b5061027461121b565b3480156104d357600080fd5b50600a546001600160a01b03166102dc565b3480156104f157600080fd5b506102746105003660046128a4565b61128f565b34801561051157600080fd5b5061028b6112be565b34801561052657600080fd5b50600d546102ae565b34801561053b57600080fd5b5061027461054a366004612838565b6112cd565b34801561055b57600080fd5b5061023f61056a3660046128a4565b600f6020526000908152604090205460ff1681565b34801561058b57600080fd5b506102ae61059a366004612738565b6001600160a01b031660009081526010602052604090205490565b3480156105c157600080fd5b506102746105d03660046127bf565b611392565b3480156105e157600080fd5b506102746113ca565b3480156105f657600080fd5b5061028b6106053660046128a4565b611409565b34801561061657600080fd5b50610274610625366004612861565b6114e4565b34801561063657600080fd5b50600e5461023f90600160a81b900460ff1681565b34801561065757600080fd5b5061023f610666366004612752565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106a057600080fd5b506102746106af366004612738565b6115bf565b6102746106c236600461293a565b6116aa565b3480156106d357600080fd5b50600e5461023f90600160b01b900460ff1681565b60006001600160e01b0319821663780e9d6360e01b148061070d575061070d826119cb565b92915050565b600a546001600160a01b031633146107465760405162461bcd60e51b815260040161073d90612aee565b60405180910390fd5b600e8054911515600160a01b0260ff60a01b19909216919091179055565b60606000805461077390612c02565b80601f016020809104026020016040519081016040528092919081815260200182805461079f90612c02565b80156107ec5780601f106107c1576101008083540402835291602001916107ec565b820191906000526020600020905b8154815290600101906020018083116107cf57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661086f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161073d565b506000908152600460205260409020546001600160a01b031690565b600061089682611089565b9050806001600160a01b0316836001600160a01b031614156109045760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161073d565b336001600160a01b038216148061092057506109208133610666565b6109925760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161073d565b61099c8383611a1b565b505050565b6109ab3382611a89565b6109c75760405162461bcd60e51b815260040161073d90612b23565b61099c838383611b80565b60006109dd83611194565b8210610a3f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161073d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a925760405162461bcd60e51b815260040161073d90612aee565b6702c68af0bb1400004711610aa657600080fd5b6000610aba67016345785d8a000047612bbf565b905060005b601554811015610b6857600060158281548110610aec57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201805460018201549192506001600160a01b0316906108fc90606490610b219087612ba0565b610b2b9190612b8c565b6040518115909202916000818181858888f19350505050158015610b53573d6000803e3d6000fd5b50508080610b6090612c3d565b915050610abf565b5050565b6000610b7760085490565b600e54909150600160a01b900460ff1615610bc25760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b604482015260640161073d565b60048510610c1d5760405162461bcd60e51b815260206004820152602260248201527f4d6178696d756d206f662033206d696e747320706572207472616e736163746960448201526137b760f11b606482015260840161073d565b600c54610c2c90612775612bbf565b610c368683612b74565b10610c6e5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b604482015260640161073d565b84600d54610c7c9190612ba0565b341015610cc75760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b604482015260640161073d565b604080516bffffffffffffffffffffffff193360601b16602080830191909152603482018890526054808301869052835180840390910181526074830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000609484015260b0808401919091528351808403909101815260d08301808552815191830191909120600e5460f0601f8a0185900490940285018401909552878252936001600160a01b031692610d9f92899189918291018382808284376000920191909152508693925050611d2b9050565b6001600160a01b031614610deb5760405162461bcd60e51b81526020600482015260136024820152720aadce4cac6decedcd2f4c2c4d8ca4090c2e6d606b1b604482015260640161073d565b6000818152600f602052604090205460ff1615610e385760405162461bcd60e51b815260206004820152600b60248201526a0a4caeae6cac84090c2e6d60ab1b604482015260640161073d565b6000818152600f60205260408120805460ff191660011790555b86811015610e7f57610e6d33610e688386612b74565b611de1565b80610e7781612c3d565b915050610e52565b50505050505050565b61099c83838360405180602001604052806000815250611392565b60606000610eb083611194565b905060008167ffffffffffffffff811115610edb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f04578160200160208202803683370190505b50905060005b82811015610f5957610f1c85826109d2565b828281518110610f3c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f5181612c3d565b915050610f0a565b509392505050565b6000610f6c60085490565b8210610fcf5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161073d565b60088281548110610ff057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b0316331461102c5760405162461bcd60e51b815260040161073d90612aee565b600e54600160b01b900460ff16156110765760405162461bcd60e51b815260206004820152600d60248201526c2aa9249034b990233937bd32b760991b604482015260640161073d565b8051610b6890600b9060208401906125fd565b6000818152600260205260408120546001600160a01b03168061070d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161073d565b600a546001600160a01b0316331461112a5760405162461bcd60e51b815260040161073d90612aee565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146111765760405162461bcd60e51b815260040161073d90612aee565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b60006001600160a01b0382166111ff5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161073d565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146112455760405162461bcd60e51b815260040161073d90612aee565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b031633146112b95760405162461bcd60e51b815260040161073d90612aee565b600d55565b60606001805461077390612c02565b6001600160a01b0382163314156113265760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161073d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61139c3383611a89565b6113b85760405162461bcd60e51b815260040161073d90612b23565b6113c484848484611dfb565b50505050565b600a546001600160a01b031633146113f45760405162461bcd60e51b815260040161073d90612aee565b600e805460ff60b01b1916600160b01b179055565b6000818152600260205260409020546060906001600160a01b03166114885760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161073d565b6000611492611e2e565b905060008151116114b257604051806020016040528060008152506114dd565b806114bc84611e3d565b6040516020016114cd9291906129e3565b6040516020818303038152906040525b9392505050565b600a546001600160a01b0316331461150e5760405162461bcd60e51b815260040161073d90612aee565b600c5481111561156a5760405162461bcd60e51b815260206004820152602160248201527f457863656564732072657365727665642045746865726e616c7320737570706c6044820152607960f81b606482015260840161073d565b600061157560085490565b905060005b828110156115a25761159084610e688385612b74565b8061159a81612c3d565b91505061157a565b5081600c60008282546115b59190612bbf565b9091555050505050565b600a546001600160a01b031633146115e95760405162461bcd60e51b815260040161073d90612aee565b6001600160a01b03811661164e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161073d565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006116b560085490565b600e54909150600160a81b900460ff166117095760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b604482015260640161073d565b336000908152601060205260409020548290611726908790612b74565b11156117645760405162461bcd60e51b815260206004820152600d60248201526c4d696e74204f766572666c6f7760981b604482015260640161073d565b600485106117b45760405162461bcd60e51b815260206004820152601e60248201527f4d6178206f662033206d696e747320706572207472616e73616374696f6e0000604482015260640161073d565b600c546117c390612775612bbf565b6117cd8683612b74565b106118055760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b604482015260640161073d565b84600d546118139190612ba0565b34101561185e5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b604482015260640161073d565b604080516bffffffffffffffffffffffff193360601b166020808301919091526034808301869052835180840390910181526054830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060748401526090808401919091528351808403909101815260b08301808552815191830191909120600e5460d0601f8a0185900490940285018401909552878252936001600160a01b03169261192f92899189918291018382808284376000920191909152508693925050611d2b9050565b6001600160a01b03161461197b5760405162461bcd60e51b81526020600482015260136024820152720aadce4cac6decedcd2f4c2c4d8ca4090c2e6d606b1b604482015260640161073d565b336000908152601060205260408120805488929061199a908490612b74565b90915550600090505b86811015610e7f576119b933610e688386612b74565b806119c381612c3d565b9150506119a3565b60006001600160e01b031982166380ac58cd60e01b14806119fc57506001600160e01b03198216635b5e139f60e01b145b8061070d57506301ffc9a760e01b6001600160e01b031983161461070d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a5082611089565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611b025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161073d565b6000611b0d83611089565b9050806001600160a01b0316846001600160a01b03161480611b485750836001600160a01b0316611b3d846107f6565b6001600160a01b0316145b80611b7857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b9382611089565b6001600160a01b031614611bfb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161073d565b6001600160a01b038216611c5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161073d565b611c68838383611f57565b611c73600082611a1b565b6001600160a01b0383166000908152600360205260408120805460019290611c9c908490612bbf565b90915550506001600160a01b0382166000908152600360205260408120805460019290611cca908490612b74565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080600080845160411415611d555750505060208201516040830151606084015160001a611dcb565b845160401415611d835750505060408201516020830151906001600160ff1b0381169060ff1c601b01611dcb565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161073d565b611dd78682858561200f565b9695505050505050565b610b688282604051806020016040528060008152506121b8565b611e06848484611b80565b611e12848484846121eb565b6113c45760405162461bcd60e51b815260040161073d90612a9c565b6060600b805461077390612c02565b606081611e615750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e8b5780611e7581612c3d565b9150611e849050600a83612b8c565b9150611e65565b60008167ffffffffffffffff811115611eb457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ede576020820181803683370190505b5090505b8415611b7857611ef3600183612bbf565b9150611f00600a86612c58565b611f0b906030612b74565b60f81b818381518110611f2e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f50600a86612b8c565b9450611ee2565b6001600160a01b038316611fb257611fad81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611fd5565b816001600160a01b0316836001600160a01b031614611fd557611fd583826122f5565b6001600160a01b038216611fec5761099c81612392565b826001600160a01b0316826001600160a01b03161461099c5761099c828261246b565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561208c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161073d565b8360ff16601b14806120a157508360ff16601c145b6120f85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161073d565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa15801561214c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121af5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161073d565b95945050505050565b6121c283836124af565b6121cf60008484846121eb565b61099c5760405162461bcd60e51b815260040161073d90612a9c565b60006001600160a01b0384163b156122ed57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061222f903390899088908890600401612a12565b602060405180830381600087803b15801561224957600080fd5b505af1925050508015612279575060408051601f3d908101601f19168201909252612276918101906128d8565b60015b6122d3573d8080156122a7576040519150601f19603f3d011682016040523d82523d6000602084013e6122ac565b606091505b5080516122cb5760405162461bcd60e51b815260040161073d90612a9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b78565b506001611b78565b6000600161230284611194565b61230c9190612bbf565b60008381526007602052604090205490915080821461235f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906123a490600190612bbf565b600083815260096020526040812054600880549394509092849081106123da57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061240957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061244f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061247683611194565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166125055760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161073d565b6000818152600260205260409020546001600160a01b03161561256a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161073d565b61257660008383611f57565b6001600160a01b038216600090815260036020526040812080546001929061259f908490612b74565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461260990612c02565b90600052602060002090601f01602090048101928261262b5760008555612671565b82601f1061264457805160ff1916838001178555612671565b82800160010185558215612671579182015b82811115612671578251825591602001919060010190612656565b5061267d929150612681565b5090565b5b8082111561267d5760008155600101612682565b600067ffffffffffffffff808411156126b1576126b1612c98565b604051601f8501601f19908116603f011681019082821181831017156126d9576126d9612c98565b816040528093508581528686860111156126f257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461272357600080fd5b919050565b8035801515811461272357600080fd5b600060208284031215612749578081fd5b6114dd8261270c565b60008060408385031215612764578081fd5b61276d8361270c565b915061277b6020840161270c565b90509250929050565b600080600060608486031215612798578081fd5b6127a18461270c565b92506127af6020850161270c565b9150604084013590509250925092565b600080600080608085870312156127d4578081fd5b6127dd8561270c565b93506127eb6020860161270c565b925060408501359150606085013567ffffffffffffffff81111561280d578182fd5b8501601f8101871361281d578182fd5b61282c87823560208401612696565b91505092959194509250565b6000806040838503121561284a578182fd5b6128538361270c565b915061277b60208401612728565b60008060408385031215612873578182fd5b61287c8361270c565b946020939093013593505050565b60006020828403121561289b578081fd5b6114dd82612728565b6000602082840312156128b5578081fd5b5035919050565b6000602082840312156128cd578081fd5b81356114dd81612cae565b6000602082840312156128e9578081fd5b81516114dd81612cae565b600060208284031215612905578081fd5b813567ffffffffffffffff81111561291b578182fd5b8201601f8101841361292b578182fd5b611b7884823560208401612696565b6000806000806060858703121561294f578384fd5b84359350602085013567ffffffffffffffff8082111561296d578485fd5b818701915087601f830112612980578485fd5b81358181111561298e578586fd5b88602082850101111561299f578586fd5b95986020929092019750949560400135945092505050565b600081518084526129cf816020860160208601612bd6565b601f01601f19169290920160200192915050565b600083516129f5818460208801612bd6565b835190830190612a09818360208801612bd6565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611dd7908301846129b7565b6020808252825182820181905260009190848201906040850190845b81811015612a7d57835183529284019291840191600101612a61565b50909695505050505050565b6020815260006114dd60208301846129b7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612b8757612b87612c6c565b500190565b600082612b9b57612b9b612c82565b500490565b6000816000190483118215151615612bba57612bba612c6c565b500290565b600082821015612bd157612bd1612c6c565b500390565b60005b83811015612bf1578181015183820152602001612bd9565b838111156113c45750506000910152565b600181811c90821680612c1657607f821691505b60208210811415612c3757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c5157612c51612c6c565b5060010190565b600082612c6757612c67612c82565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612cc457600080fd5b5056fea2646970667358221220d11199a24b4e4209888ef171fd471907de1d001d0741667468fa9c4f67fb0b7564736f6c63430008040033

Deployed Bytecode

0x60806040526004361061021a5760003560e01c80636b2ce7f111610123578063b7cdde9c116100ab578063e2a71ef81161006f578063e2a71ef81461062a578063e985e9c51461064b578063f2fde38b14610694578063f832d25b146106b4578063fcd4b212146106c757600080fd5b8063b7cdde9c1461057f578063b88d4fde146105b5578063c793803c146105d5578063c87b56dd146105ea578063ca8001441461060a57600080fd5b806391b7f5ed116100f257806391b7f5ed146104e557806395d89b411461050557806398d5fdca1461051a578063a22cb4651461052f578063aef18bf71461054f57600080fd5b80636b2ce7f11461047257806370a0823114610492578063715018a6146104b25780638da5cb5b146104c757600080fd5b80632f745c59116101a6578063438b630011610175578063438b6300146103c55780634f6ccce7146103f257806355f804b3146104125780636352211e146104325780636ae7bd561461045257600080fd5b80632f745c591461036a5780633ccfd60b1461038a5780633da12aac1461039257806342842e0e146103a557600080fd5b8063081812fc116101ed578063081812fc146102bc578063095ea7b3146102f457806316c61ccc1461031457806318160ddd1461033557806323b872dd1461034a57600080fd5b806301ffc9a71461021f57806302329a291461025457806306fdde03146102765780630723b95214610298575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046128bc565b6106e8565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f36600461288a565b610713565b005b34801561028257600080fd5b5061028b610764565b60405161024b9190612a89565b3480156102a457600080fd5b506102ae61277581565b60405190815260200161024b565b3480156102c857600080fd5b506102dc6102d73660046128a4565b6107f6565b6040516001600160a01b03909116815260200161024b565b34801561030057600080fd5b5061027461030f366004612861565b61088b565b34801561032057600080fd5b50600e5461023f90600160a01b900460ff1681565b34801561034157600080fd5b506008546102ae565b34801561035657600080fd5b50610274610365366004612784565b6109a1565b34801561037657600080fd5b506102ae610385366004612861565b6109d2565b610274610a68565b6102746103a036600461293a565b610b6c565b3480156103b157600080fd5b506102746103c0366004612784565b610e88565b3480156103d157600080fd5b506103e56103e0366004612738565b610ea3565b60405161024b9190612a45565b3480156103fe57600080fd5b506102ae61040d3660046128a4565b610f61565b34801561041e57600080fd5b5061027461042d3660046128f4565b611002565b34801561043e57600080fd5b506102dc61044d3660046128a4565b611089565b34801561045e57600080fd5b5061027461046d366004612738565b611100565b34801561047e57600080fd5b5061027461048d36600461288a565b61114c565b34801561049e57600080fd5b506102ae6104ad366004612738565b611194565b3480156104be57600080fd5b5061027461121b565b3480156104d357600080fd5b50600a546001600160a01b03166102dc565b3480156104f157600080fd5b506102746105003660046128a4565b61128f565b34801561051157600080fd5b5061028b6112be565b34801561052657600080fd5b50600d546102ae565b34801561053b57600080fd5b5061027461054a366004612838565b6112cd565b34801561055b57600080fd5b5061023f61056a3660046128a4565b600f6020526000908152604090205460ff1681565b34801561058b57600080fd5b506102ae61059a366004612738565b6001600160a01b031660009081526010602052604090205490565b3480156105c157600080fd5b506102746105d03660046127bf565b611392565b3480156105e157600080fd5b506102746113ca565b3480156105f657600080fd5b5061028b6106053660046128a4565b611409565b34801561061657600080fd5b50610274610625366004612861565b6114e4565b34801561063657600080fd5b50600e5461023f90600160a81b900460ff1681565b34801561065757600080fd5b5061023f610666366004612752565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106a057600080fd5b506102746106af366004612738565b6115bf565b6102746106c236600461293a565b6116aa565b3480156106d357600080fd5b50600e5461023f90600160b01b900460ff1681565b60006001600160e01b0319821663780e9d6360e01b148061070d575061070d826119cb565b92915050565b600a546001600160a01b031633146107465760405162461bcd60e51b815260040161073d90612aee565b60405180910390fd5b600e8054911515600160a01b0260ff60a01b19909216919091179055565b60606000805461077390612c02565b80601f016020809104026020016040519081016040528092919081815260200182805461079f90612c02565b80156107ec5780601f106107c1576101008083540402835291602001916107ec565b820191906000526020600020905b8154815290600101906020018083116107cf57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661086f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161073d565b506000908152600460205260409020546001600160a01b031690565b600061089682611089565b9050806001600160a01b0316836001600160a01b031614156109045760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161073d565b336001600160a01b038216148061092057506109208133610666565b6109925760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161073d565b61099c8383611a1b565b505050565b6109ab3382611a89565b6109c75760405162461bcd60e51b815260040161073d90612b23565b61099c838383611b80565b60006109dd83611194565b8210610a3f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161073d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610a925760405162461bcd60e51b815260040161073d90612aee565b6702c68af0bb1400004711610aa657600080fd5b6000610aba67016345785d8a000047612bbf565b905060005b601554811015610b6857600060158281548110610aec57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201805460018201549192506001600160a01b0316906108fc90606490610b219087612ba0565b610b2b9190612b8c565b6040518115909202916000818181858888f19350505050158015610b53573d6000803e3d6000fd5b50508080610b6090612c3d565b915050610abf565b5050565b6000610b7760085490565b600e54909150600160a01b900460ff1615610bc25760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b604482015260640161073d565b60048510610c1d5760405162461bcd60e51b815260206004820152602260248201527f4d6178696d756d206f662033206d696e747320706572207472616e736163746960448201526137b760f11b606482015260840161073d565b600c54610c2c90612775612bbf565b610c368683612b74565b10610c6e5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b604482015260640161073d565b84600d54610c7c9190612ba0565b341015610cc75760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b604482015260640161073d565b604080516bffffffffffffffffffffffff193360601b16602080830191909152603482018890526054808301869052835180840390910181526074830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000609484015260b0808401919091528351808403909101815260d08301808552815191830191909120600e5460f0601f8a0185900490940285018401909552878252936001600160a01b031692610d9f92899189918291018382808284376000920191909152508693925050611d2b9050565b6001600160a01b031614610deb5760405162461bcd60e51b81526020600482015260136024820152720aadce4cac6decedcd2f4c2c4d8ca4090c2e6d606b1b604482015260640161073d565b6000818152600f602052604090205460ff1615610e385760405162461bcd60e51b815260206004820152600b60248201526a0a4caeae6cac84090c2e6d60ab1b604482015260640161073d565b6000818152600f60205260408120805460ff191660011790555b86811015610e7f57610e6d33610e688386612b74565b611de1565b80610e7781612c3d565b915050610e52565b50505050505050565b61099c83838360405180602001604052806000815250611392565b60606000610eb083611194565b905060008167ffffffffffffffff811115610edb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f04578160200160208202803683370190505b50905060005b82811015610f5957610f1c85826109d2565b828281518110610f3c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f5181612c3d565b915050610f0a565b509392505050565b6000610f6c60085490565b8210610fcf5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161073d565b60088281548110610ff057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b0316331461102c5760405162461bcd60e51b815260040161073d90612aee565b600e54600160b01b900460ff16156110765760405162461bcd60e51b815260206004820152600d60248201526c2aa9249034b990233937bd32b760991b604482015260640161073d565b8051610b6890600b9060208401906125fd565b6000818152600260205260408120546001600160a01b03168061070d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161073d565b600a546001600160a01b0316331461112a5760405162461bcd60e51b815260040161073d90612aee565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146111765760405162461bcd60e51b815260040161073d90612aee565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b60006001600160a01b0382166111ff5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161073d565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146112455760405162461bcd60e51b815260040161073d90612aee565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b031633146112b95760405162461bcd60e51b815260040161073d90612aee565b600d55565b60606001805461077390612c02565b6001600160a01b0382163314156113265760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161073d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61139c3383611a89565b6113b85760405162461bcd60e51b815260040161073d90612b23565b6113c484848484611dfb565b50505050565b600a546001600160a01b031633146113f45760405162461bcd60e51b815260040161073d90612aee565b600e805460ff60b01b1916600160b01b179055565b6000818152600260205260409020546060906001600160a01b03166114885760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161073d565b6000611492611e2e565b905060008151116114b257604051806020016040528060008152506114dd565b806114bc84611e3d565b6040516020016114cd9291906129e3565b6040516020818303038152906040525b9392505050565b600a546001600160a01b0316331461150e5760405162461bcd60e51b815260040161073d90612aee565b600c5481111561156a5760405162461bcd60e51b815260206004820152602160248201527f457863656564732072657365727665642045746865726e616c7320737570706c6044820152607960f81b606482015260840161073d565b600061157560085490565b905060005b828110156115a25761159084610e688385612b74565b8061159a81612c3d565b91505061157a565b5081600c60008282546115b59190612bbf565b9091555050505050565b600a546001600160a01b031633146115e95760405162461bcd60e51b815260040161073d90612aee565b6001600160a01b03811661164e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161073d565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006116b560085490565b600e54909150600160a81b900460ff166117095760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b604482015260640161073d565b336000908152601060205260409020548290611726908790612b74565b11156117645760405162461bcd60e51b815260206004820152600d60248201526c4d696e74204f766572666c6f7760981b604482015260640161073d565b600485106117b45760405162461bcd60e51b815260206004820152601e60248201527f4d6178206f662033206d696e747320706572207472616e73616374696f6e0000604482015260640161073d565b600c546117c390612775612bbf565b6117cd8683612b74565b106118055760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b604482015260640161073d565b84600d546118139190612ba0565b34101561185e5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b604482015260640161073d565b604080516bffffffffffffffffffffffff193360601b166020808301919091526034808301869052835180840390910181526054830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060748401526090808401919091528351808403909101815260b08301808552815191830191909120600e5460d0601f8a0185900490940285018401909552878252936001600160a01b03169261192f92899189918291018382808284376000920191909152508693925050611d2b9050565b6001600160a01b03161461197b5760405162461bcd60e51b81526020600482015260136024820152720aadce4cac6decedcd2f4c2c4d8ca4090c2e6d606b1b604482015260640161073d565b336000908152601060205260408120805488929061199a908490612b74565b90915550600090505b86811015610e7f576119b933610e688386612b74565b806119c381612c3d565b9150506119a3565b60006001600160e01b031982166380ac58cd60e01b14806119fc57506001600160e01b03198216635b5e139f60e01b145b8061070d57506301ffc9a760e01b6001600160e01b031983161461070d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a5082611089565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611b025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161073d565b6000611b0d83611089565b9050806001600160a01b0316846001600160a01b03161480611b485750836001600160a01b0316611b3d846107f6565b6001600160a01b0316145b80611b7857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b9382611089565b6001600160a01b031614611bfb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161073d565b6001600160a01b038216611c5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161073d565b611c68838383611f57565b611c73600082611a1b565b6001600160a01b0383166000908152600360205260408120805460019290611c9c908490612bbf565b90915550506001600160a01b0382166000908152600360205260408120805460019290611cca908490612b74565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080600080845160411415611d555750505060208201516040830151606084015160001a611dcb565b845160401415611d835750505060408201516020830151906001600160ff1b0381169060ff1c601b01611dcb565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161073d565b611dd78682858561200f565b9695505050505050565b610b688282604051806020016040528060008152506121b8565b611e06848484611b80565b611e12848484846121eb565b6113c45760405162461bcd60e51b815260040161073d90612a9c565b6060600b805461077390612c02565b606081611e615750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e8b5780611e7581612c3d565b9150611e849050600a83612b8c565b9150611e65565b60008167ffffffffffffffff811115611eb457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611ede576020820181803683370190505b5090505b8415611b7857611ef3600183612bbf565b9150611f00600a86612c58565b611f0b906030612b74565b60f81b818381518110611f2e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f50600a86612b8c565b9450611ee2565b6001600160a01b038316611fb257611fad81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611fd5565b816001600160a01b0316836001600160a01b031614611fd557611fd583826122f5565b6001600160a01b038216611fec5761099c81612392565b826001600160a01b0316826001600160a01b03161461099c5761099c828261246b565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561208c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161073d565b8360ff16601b14806120a157508360ff16601c145b6120f85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161073d565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa15801561214c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121af5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161073d565b95945050505050565b6121c283836124af565b6121cf60008484846121eb565b61099c5760405162461bcd60e51b815260040161073d90612a9c565b60006001600160a01b0384163b156122ed57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061222f903390899088908890600401612a12565b602060405180830381600087803b15801561224957600080fd5b505af1925050508015612279575060408051601f3d908101601f19168201909252612276918101906128d8565b60015b6122d3573d8080156122a7576040519150601f19603f3d011682016040523d82523d6000602084013e6122ac565b606091505b5080516122cb5760405162461bcd60e51b815260040161073d90612a9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b78565b506001611b78565b6000600161230284611194565b61230c9190612bbf565b60008381526007602052604090205490915080821461235f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906123a490600190612bbf565b600083815260096020526040812054600880549394509092849081106123da57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061240957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061244f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061247683611194565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166125055760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161073d565b6000818152600260205260409020546001600160a01b03161561256a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161073d565b61257660008383611f57565b6001600160a01b038216600090815260036020526040812080546001929061259f908490612b74565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461260990612c02565b90600052602060002090601f01602090048101928261262b5760008555612671565b82601f1061264457805160ff1916838001178555612671565b82800160010185558215612671579182015b82811115612671578251825591602001919060010190612656565b5061267d929150612681565b5090565b5b8082111561267d5760008155600101612682565b600067ffffffffffffffff808411156126b1576126b1612c98565b604051601f8501601f19908116603f011681019082821181831017156126d9576126d9612c98565b816040528093508581528686860111156126f257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461272357600080fd5b919050565b8035801515811461272357600080fd5b600060208284031215612749578081fd5b6114dd8261270c565b60008060408385031215612764578081fd5b61276d8361270c565b915061277b6020840161270c565b90509250929050565b600080600060608486031215612798578081fd5b6127a18461270c565b92506127af6020850161270c565b9150604084013590509250925092565b600080600080608085870312156127d4578081fd5b6127dd8561270c565b93506127eb6020860161270c565b925060408501359150606085013567ffffffffffffffff81111561280d578182fd5b8501601f8101871361281d578182fd5b61282c87823560208401612696565b91505092959194509250565b6000806040838503121561284a578182fd5b6128538361270c565b915061277b60208401612728565b60008060408385031215612873578182fd5b61287c8361270c565b946020939093013593505050565b60006020828403121561289b578081fd5b6114dd82612728565b6000602082840312156128b5578081fd5b5035919050565b6000602082840312156128cd578081fd5b81356114dd81612cae565b6000602082840312156128e9578081fd5b81516114dd81612cae565b600060208284031215612905578081fd5b813567ffffffffffffffff81111561291b578182fd5b8201601f8101841361292b578182fd5b611b7884823560208401612696565b6000806000806060858703121561294f578384fd5b84359350602085013567ffffffffffffffff8082111561296d578485fd5b818701915087601f830112612980578485fd5b81358181111561298e578586fd5b88602082850101111561299f578586fd5b95986020929092019750949560400135945092505050565b600081518084526129cf816020860160208601612bd6565b601f01601f19169290920160200192915050565b600083516129f5818460208801612bd6565b835190830190612a09818360208801612bd6565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611dd7908301846129b7565b6020808252825182820181905260009190848201906040850190845b81811015612a7d57835183529284019291840191600101612a61565b50909695505050505050565b6020815260006114dd60208301846129b7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612b8757612b87612c6c565b500190565b600082612b9b57612b9b612c82565b500490565b6000816000190483118215151615612bba57612bba612c6c565b500290565b600082821015612bd157612bd1612c6c565b500390565b60005b83811015612bf1578181015183820152602001612bd9565b838111156113c45750506000910152565b600181811c90821680612c1657607f821691505b60208210811415612c3757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c5157612c51612c6c565b5060010190565b600082612c6757612c67612c82565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612cc457600080fd5b5056fea2646970667358221220d11199a24b4e4209888ef171fd471907de1d001d0741667468fa9c4f67fb0b7564736f6c63430008040033

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.