ETH Price: $2,413.95 (-0.16%)

Token

Magic Mind (MIND)
 

Overview

Max Total Supply

25 MIND

Holders

154

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
sepimnft.eth
Balance
1 MIND
0xa697e7d803997f026b4d67abeabf548ac6849100
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The 10k Magic Mind collection is a flourishing of introspection, a metaphorical mental health journey generated from over 1000 pieces of hand-drawn artwork.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MagicMind

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 1 : MagicMind_Flat.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;


// File: contracts/Ownable.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.
 *
 * Source: openzeppelin
 */
abstract contract Ownable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(msg.sender);
    }

    /**
     * @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() == msg.sender, "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() external virtual onlyOwner {
        _setOwner(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) external virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: Strings.sol

/**
 * Source: Openzeppelin
 */

/**
 * @dev String operations.
 */
library Strings {

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

// File: ECDSA.sol

// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)


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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

}

// File: Address.sol0

/**
 * Source: Openzeppelin
 */

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

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

// File: IERC721Receiver.sol

/**
 * @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: IERC165.sol

// https://eips.ethereum.org/EIPS/eip-165


interface IERC165 {
    /// @notice Query if a contract implements an interface
    /// @param interfaceID The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    ///  uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    ///  `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceID) external view returns (bool);
}

// File: IERC2981.sol


/**
 * Source: Openzeppelin
 */


/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

// File: ERC165.sol


/**
 * Source: Openzeppelin
 */


/**
 * @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: IERC721.sol

// https://eips.ethereum.org/EIPS/eip-721, http://erc721.org/


/// @title ERC-721 Non-Fungible Token Standard
/// @dev See https://eips.ethereum.org/EIPS/eip-721
///  Note: the ERC-165 identifier for this interface is 0x80ac58cd.
interface IERC721 is IERC165 {
    /// @dev This emits when ownership of any NFT changes by any mechanism.
    ///  This event emits when NFTs are created (`from` == 0) and destroyed
    ///  (`to` == 0). Exception: during contract creation, any number of NFTs
    ///  may be created and assigned without emitting Transfer. At the time of
    ///  any transfer, the approved address for that NFT (if any) is reset to none.
    event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId);

    /// @dev This emits when the approved address for an NFT is changed or
    ///  reaffirmed. The zero address indicates there is no approved address.
    ///  When a Transfer event emits, this also indicates that the approved
    ///  address for that NFT (if any) is reset to none.
    event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId);

    /// @dev This emits when an operator is enabled or disabled for an owner.
    ///  The operator can manage all NFTs of the owner.
    event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

    /// @notice Count all NFTs assigned to an owner
    /// @dev NFTs assigned to the zero address are considered invalid, and this
    ///  function throws for queries about the zero address.
    /// @param _owner An address for whom to query the balance
    /// @return The number of NFTs owned by `_owner`, possibly zero
    function balanceOf(address _owner) external view returns (uint256);

    /// @notice Find the owner of an NFT
    /// @dev NFTs assigned to zero address are considered invalid, and queries
    ///  about them do throw.
    /// @param _tokenId The identifier for an NFT
    /// @return The address of the owner of the NFT
    function ownerOf(uint256 _tokenId) external view returns (address);

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    ///  operator, or the approved address for this NFT. Throws if `_from` is
    ///  not the current owner. Throws if `_to` is the zero address. Throws if
    ///  `_tokenId` is not a valid NFT. When transfer is complete, this function
    ///  checks if `_to` is a smart contract (code size > 0). If so, it calls
    ///  `onERC721Received` on `_to` and throws if the return value is not
    ///  `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    /// @param data Additional data with no specified format, sent in call to `_to`
    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory data) external;

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev This works identically to the other function with an extra data parameter,
    ///  except this function just sets data to "".
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) external;

    /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE
    ///  TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE
    ///  THEY MAY BE PERMANENTLY LOST
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    ///  operator, or the approved address for this NFT. Throws if `_from` is
    ///  not the current owner. Throws if `_to` is the zero address. Throws if
    ///  `_tokenId` is not a valid NFT.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function transferFrom(address _from, address _to, uint256 _tokenId) external;

    /// @notice Change or reaffirm the approved address for an NFT
    /// @dev The zero address indicates there is no approved address.
    ///  Throws unless `msg.sender` is the current NFT owner, or an authorized
    ///  operator of the current owner.
    /// @param _approved The new approved NFT controller
    /// @param _tokenId The NFT to approve
    function approve(address _approved, uint256 _tokenId) external;

    /// @notice Enable or disable approval for a third party ("operator") to manage
    ///  all of `msg.sender`'s assets
    /// @dev Emits the ApprovalForAll event. The contract MUST allow
    ///  multiple operators per owner.
    /// @param _operator Address to add to the set of authorized operators
    /// @param _approved True if the operator is approved, false to revoke approval
    function setApprovalForAll(address _operator, bool _approved) external;

    /// @notice Get the approved address for a single NFT
    /// @dev Throws if `_tokenId` is not a valid NFT.
    /// @param _tokenId The NFT to find the approved address for
    /// @return The approved address for this NFT, or the zero address if there is none
    function getApproved(uint256 _tokenId) external view returns (address);

    /// @notice Query if an address is an authorized operator for another address
    /// @param _owner The address that owns the NFTs
    /// @param _operator The address that acts on behalf of the owner
    /// @return True if `_operator` is an approved operator for `_owner`, false otherwise
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
}

// File: IERC721Metadata.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: ERC721.sol

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension
 * Made for efficiancy!
 */
contract ERC721 is ERC165, IERC721, IERC721Metadata, Ownable {
    using Address for address;
    using Strings for uint256;

    uint16 public totalSupply;

    address public proxyRegistryAddress;

    string public baseURI;

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

    // Mapping owner address to token count
    mapping(address => uint256) internal _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;


    constructor(address _openseaProxyRegistry, string memory _baseURI) {
        proxyRegistryAddress = _openseaProxyRegistry;
        baseURI = _baseURI;
    }

    /**
     * @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) external view 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 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() external pure override returns (string memory) {
        return "Magic Mind";
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() external pure override returns (string memory) {
        return "MIND";
    }

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

        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    function setBaseURI(string memory uri) external onlyOwner {
        baseURI = uri;
    }

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view 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) external override {
        _setApprovalForAll(msg.sender, operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return _operatorApprovals[owner][operator];
    }

    function setOpenseaProxyRegistry(address addr) external onlyOwner {
        proxyRegistryAddress = addr;
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(msg.sender, 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
    ) external override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        require(_isApprovedOrOwner(msg.sender, 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
     */
    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 = _owners[tokenId];
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @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(uint256 amount, address to) internal {
        uint tokenId = totalSupply;

        _balances[to] += amount;

        for (uint i; i < amount; i++) {
            tokenId++;

            _owners[tokenId] = to;
            emit Transfer(address(0), to, tokenId);
        }

        totalSupply += uint16(amount);

        require(
            _checkOnERC721Received(address(0), to, tokenId, ""),
            "ERC721: transfer to non ERC721Receiver implementer"
        ); // checking it once will make sure that the address can recieve NFTs
    }

    /**
     * @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(_owners[tokenId] == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

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

        _balances[from]--;
        _balances[to]++;

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

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

}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}


// File: MagicMind.sol


contract MagicMind is Ownable, IERC2981, ERC721 {

    bool private _onlyMagicList;
    bool private _mintingEnabled;

    uint private EIP2981RoyaltyPercent;

    mapping (address => uint8) private amountMinted;

    constructor(
        uint _royalty,
        address _openseaProxyRegistry,
        string memory _tempBaseURI
    ) ERC721(_openseaProxyRegistry, _tempBaseURI) {
        EIP2981RoyaltyPercent = _royalty;
    }

    function mintFromReserve(uint amount, address to) external onlyOwner {
        require(amount + totalSupply <= 500);
        _mint(amount, to);
    }

    function batchMintFromReserve(uint[] memory amount, address[] memory to) external onlyOwner {
        uint length = amount.length;
        require(length == to.length, "array length missmatch");

        uint tokenId = totalSupply;
        uint total;

        uint cAmount;
        address cTo;

        for (uint i; i < length; i++) {

            assembly {
                cAmount := mload(add(add(amount, 0x20), mul(i, 0x20)))
                cTo := mload(add(add(to, 0x20), mul(i, 0x20)))
            }

            require(!Address.isContract(cTo), "Cannot mint to contracts!");

            _balances[cTo] += cAmount;

            for (uint f; f < cAmount; f++) {
                tokenId++;

                _owners[tokenId] = cTo;
                emit Transfer(address(0), cTo, tokenId);
            }

            total += cAmount;
        }

        require(tokenId <= 500, "Exceeds reserve!");

        totalSupply = uint16(total);
    }

    function mint(uint256 amount) external payable {
        require(_mintingEnabled, "Minting is not enabled!");
        require(amount <= 20 && amount != 0, "Invalid request amount!");
        require(amount + totalSupply <= 10_000, "Request exceeds max supply!");
        require(msg.value == amount * 89e15, "ETH Amount is not correct!");

        _mint(amount, msg.sender);
    }

    function preMint(bytes calldata sig, uint256 amount) external payable {
        require(_onlyMagicList, "Minting is not enabled!");
        require(_checkSig(msg.sender, sig), "User not whitelisted!");
        require(amount + amountMinted[msg.sender] <= 10 && amount != 0, "Request exceeds max per wallet!");
        require(msg.value == amount * 69e15, "ETH Amount is not correct!");

        amountMinted[msg.sender] += uint8(amount);
        _mint(amount, msg.sender);
    }

    function _checkSig(address _wallet, bytes memory _signature) private view returns(bool) {
        return ECDSA.recover(
            ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(_wallet))),
            _signature
        ) == owner();
    }

    function getMsg(address _wallet) external pure returns(bytes32) {
        return keccak256(abi.encodePacked(_wallet));
    }

    /**
     * @notice returns pre sale satus
     */
    function isPresale() external view returns(bool) {
        return _onlyMagicList;
    }

    /**
     * @notice returns public sale status
     */
    function isMinting() external view returns(bool) {
        return _mintingEnabled;
    }

    /**
     * @notice returns royalty info for EIP2981 supporting marketplaces
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint tokenId, uint salePrice) external view override returns(address receiver, uint256 royaltyAmount) {
        require(_exists(tokenId), "Royality querry for non-existant token!");
        return(owner(), salePrice * EIP2981RoyaltyPercent / 10000);
    }

    /**
     * @notice sets the royalty percentage for EIP2981 supporting marketplaces
     * @dev percentage is in bassis points (parts per 10,000).
            Example: 5% = 500, 0.5% = 50
     * @param amount - percent amount
     */
    function setRoyaltyPercent(uint256 amount) external onlyOwner {
        EIP2981RoyaltyPercent = amount;
    }

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

    function withdraw() onlyOwner external {
        uint bal = address(this).balance;
        payable(0x12723aD63dA5D0C9Cfa671Ddf8f208b7eA03C913).transfer(bal * 4 / 10);
        payable(0x14CFCE63790aE8567c83858050273F01684C1540).transfer(bal * 15 / 100);
        payable(msg.sender).transfer(bal * 14 / 100);
        payable(0x5aE9936E3BBbc98b19622d6A73d1003F533f8544).transfer(bal * 7 / 100);
        payable(0x7222b04D739B93e95E48baad5896B30F3105A0Ad).transfer(bal * 4 / 100);
        payable(0xdF09b919392687072AD42eE6986c861751C2559D).transfer(bal * 325 / 10000);
        payable(0xb8258175018a494ca3E241e709e7A1E74Aef8116).transfer(bal * 325 / 10000);
        payable(0x53D0D29b5bABDDB0284624D25aBd0F482a09F81b).transfer(bal * 3 / 100);
        payable(0xE321d503EF3181B2A930876A3098F0d0aB3bCF6E).transfer(bal * 3 / 100);
        payable(0x22722720Df246B776f01e98977d89C103985Eb78).transfer(bal * 3 / 100);
        payable(0x915FD7751dBbD3d4E8b359D5b99486941636c12f).transfer(bal * 25 / 1000);
        payable(0x0876Fd16eC5755CEBE7b2b96B2DFaF490466540c).transfer(bal * 2 / 100);
    }

    /**
     * @notice toggles pre sale
     * @dev enables the pre sale functions. NEVER USE THIS AFTER ENABLING THE PUBLIC SALE FUNCTIONS UNLESS ITS NECESSARY
     */
    function togglePresale() external onlyOwner {
        _onlyMagicList = !_onlyMagicList;
    }

    /**
     * @notice toggles the public sale
     * @dev enables/disables public sale functions and disables pre sale functions
     */
    function togglePublicSale() external onlyOwner {
        _onlyMagicList = false;
        _mintingEnabled = !_mintingEnabled;
    }

    function tokensOfOwner(address owner) external view returns(uint[] memory) {
        uint[] memory tokens = new uint[](_balances[owner]);
        uint y = totalSupply + 1;
        uint x;

        for (uint i = 1; i < y; i++) {
            if (ownerOf(i) == owner) {
                tokens[x] = i;
                x++;
            }
        }

        return tokens;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_royalty","type":"uint256"},{"internalType":"address","name":"_openseaProxyRegistry","type":"address"},{"internalType":"string","name":"_tempBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"bool","name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"amount","type":"uint256[]"},{"internalType":"address[]","name":"to","type":"address[]"}],"name":"batchMintFromReserve","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":"_wallet","type":"address"}],"name":"getMsg","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":"isMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintFromReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"bytes","name":"sig","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setOpenseaProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setRoyaltyPercent","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":"pure","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003cc238038062003cc2833981016040819052620000349162000179565b8181620000413362000083565b600180546001600160a01b0319166001600160a01b038416179055805162000071906002906020840190620000d3565b50505060089290925550620002d69050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000e19062000283565b90600052602060002090601f01602090048101928262000105576000855562000150565b82601f106200012057805160ff191683800117855562000150565b8280016001018555821562000150579182015b828111156200015057825182559160200191906001019062000133565b506200015e92915062000162565b5090565b5b808211156200015e576000815560010162000163565b6000806000606084860312156200018f57600080fd5b8351602080860151919450906001600160a01b0381168114620001b157600080fd5b60408601519093506001600160401b0380821115620001cf57600080fd5b818701915087601f830112620001e457600080fd5b815181811115620001f957620001f9620002c0565b604051601f8201601f19908116603f01168101908382118183101715620002245762000224620002c0565b816040528281528a868487010111156200023d57600080fd5b600093505b8284101562000261578484018601518185018701529285019262000242565b82841115620002735760008684830101525b8096505050505050509250925092565b600181811c908216806200029857607f821691505b60208210811415620002ba57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6139dc80620002e66000396000f3fe6080604052600436106102195760003560e01c80638462151c1161011d578063adb03e4f116100b0578063cd7c03261161007f578063e222c7f911610064578063e222c7f91461068f578063e985e9c5146106a4578063f2fde38b146106c457600080fd5b8063cd7c03261461065c578063ce34a8b11461067c57600080fd5b8063adb03e4f146105dc578063b88d4fde146105fc578063bd2f52441461061c578063c87b56dd1461063c57600080fd5b8063984f3913116100ec578063984f3913146105695780639a4fc64014610589578063a0712d68146105a9578063a22cb465146105bc57600080fd5b80638462151c146104c05780638da5cb5b146104ed57806395364a841461050b57806395d89b411461052357600080fd5b806334393743116101b057806355f804b31161017f5780636c0360eb116101645780636c0360eb1461047657806370a082311461048b578063715018a6146104ab57600080fd5b806355f804b3146104365780636352211e1461045657600080fd5b806334393743146103be5780633ccfd60b146103d357806342842e0e146103e8578063428e2d641461040857600080fd5b806318160ddd116101ec57806318160ddd146102fc57806323b872dd146103425780632a55205a146103625780632a8092df146103a157600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc146102a2578063095ea7b3146102da575b600080fd5b34801561022a57600080fd5b5061023e6102393660046132bd565b6106e4565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5060408051808201909152600a81527f4d61676963204d696e640000000000000000000000000000000000000000000060208201525b60405161024a9190613625565b3480156102ae57600080fd5b506102c26102bd3660046133d5565b610740565b6040516001600160a01b03909116815260200161024a565b3480156102e657600080fd5b506102fa6102f53660046131d1565b6107eb565b005b34801561030857600080fd5b5060005461032f9074010000000000000000000000000000000000000000900461ffff1681565b60405161ffff909116815260200161024a565b34801561034e57600080fd5b506102fa61035d3660046130dd565b61091a565b34801561036e57600080fd5b5061038261037d366004613413565b6109a1565b604080516001600160a01b03909316835260208301919091520161024a565b3480156103ad57600080fd5b50600754610100900460ff1661023e565b3480156103ca57600080fd5b506102fa610a60565b3480156103df57600080fd5b506102fa610afb565b3480156103f457600080fd5b506102fa6104033660046130dd565b610f79565b34801561041457600080fd5b50610428610423366004613080565b610f94565b60405190815260200161024a565b34801561044257600080fd5b506102fa61045136600461338c565b610fe7565b34801561046257600080fd5b506102c26104713660046133d5565b611063565b34801561048257600080fd5b506102956110ee565b34801561049757600080fd5b506104286104a6366004613080565b61117c565b3480156104b757600080fd5b506102fa611216565b3480156104cc57600080fd5b506104e06104db366004613080565b61128b565b60405161024a91906135e1565b3480156104f957600080fd5b506000546001600160a01b03166102c2565b34801561051757600080fd5b5060075460ff1661023e565b34801561052f57600080fd5b5060408051808201909152600481527f4d494e44000000000000000000000000000000000000000000000000000000006020820152610295565b34801561057557600080fd5b506102fa6105843660046131fd565b611396565b34801561059557600080fd5b506102fa6105a43660046133d5565b611678565b6102fa6105b73660046133d5565b6116e6565b3480156105c857600080fd5b506102fa6105d736600461319e565b611881565b3480156105e857600080fd5b506102fa6105f73660046133ee565b61188c565b34801561060857600080fd5b506102fa61061736600461311e565b611937565b34801561062857600080fd5b506102fa610637366004613080565b6119c5565b34801561064857600080fd5b506102956106573660046133d5565b611a68565b34801561066857600080fd5b506001546102c2906001600160a01b031681565b6102fa61068a3660046132f7565b611b27565b34801561069b57600080fd5b506102fa611d21565b3480156106b057600080fd5b5061023e6106bf3660046130a4565b611de5565b3480156106d057600080fd5b506102fa6106df366004613080565b611ecc565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000148061073a575061073a82611fba565b92915050565b6000818152600360205260408120546001600160a01b03166107cf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000818152600360205260409020546001600160a01b0390811690831681141561087d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107c6565b336001600160a01b038216148061089957506108998133611de5565b61090b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107c6565b610915838361209d565b505050565b6109243382612123565b6109965760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107c6565b610915838383612208565b60008281526003602052604081205481906001600160a01b0316610a2d5760405162461bcd60e51b815260206004820152602760248201527f526f79616c6974792071756572727920666f72206e6f6e2d6578697374616e7460448201527f20746f6b656e210000000000000000000000000000000000000000000000000060648201526084016107c6565b6000546001600160a01b031661271060085485610a4a9190613722565b610a54919061370e565b915091505b9250929050565b33610a736000546001600160a01b031690565b6001600160a01b031614610ac95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b33610b0e6000546001600160a01b031690565b6001600160a01b031614610b645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b477312723ad63da5d0c9cfa671ddf8f208b7ea03c9136108fc600a610b8a846004613722565b610b94919061370e565b6040518115909202916000818181858888f19350505050158015610bbc573d6000803e3d6000fd5b507314cfce63790ae8567c83858050273f01684c15406108fc6064610be284600f613722565b610bec919061370e565b6040518115909202916000818181858888f19350505050158015610c14573d6000803e3d6000fd5b50336108fc6064610c2684600e613722565b610c30919061370e565b6040518115909202916000818181858888f19350505050158015610c58573d6000803e3d6000fd5b50735ae9936e3bbbc98b19622d6a73d1003f533f85446108fc6064610c7e846007613722565b610c88919061370e565b6040518115909202916000818181858888f19350505050158015610cb0573d6000803e3d6000fd5b50737222b04d739b93e95e48baad5896b30f3105a0ad6108fc6064610cd6846004613722565b610ce0919061370e565b6040518115909202916000818181858888f19350505050158015610d08573d6000803e3d6000fd5b5073df09b919392687072ad42ee6986c861751c2559d6108fc612710610d3084610145613722565b610d3a919061370e565b6040518115909202916000818181858888f19350505050158015610d62573d6000803e3d6000fd5b5073b8258175018a494ca3e241e709e7a1e74aef81166108fc612710610d8a84610145613722565b610d94919061370e565b6040518115909202916000818181858888f19350505050158015610dbc573d6000803e3d6000fd5b507353d0d29b5babddb0284624d25abd0f482a09f81b6108fc6064610de2846003613722565b610dec919061370e565b6040518115909202916000818181858888f19350505050158015610e14573d6000803e3d6000fd5b5073e321d503ef3181b2a930876a3098f0d0ab3bcf6e6108fc6064610e3a846003613722565b610e44919061370e565b6040518115909202916000818181858888f19350505050158015610e6c573d6000803e3d6000fd5b507322722720df246b776f01e98977d89c103985eb786108fc6064610e92846003613722565b610e9c919061370e565b6040518115909202916000818181858888f19350505050158015610ec4573d6000803e3d6000fd5b5073915fd7751dbbd3d4e8b359d5b99486941636c12f6108fc6103e8610eeb846019613722565b610ef5919061370e565b6040518115909202916000818181858888f19350505050158015610f1d573d6000803e3d6000fd5b50730876fd16ec5755cebe7b2b96b2dfaf490466540c6108fc6064610f43846002613722565b610f4d919061370e565b6040518115909202916000818181858888f19350505050158015610f75573d6000803e3d6000fd5b5050565b61091583838360405180602001604052806000815250611937565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b1660208201526000906034015b604051602081830303815290604052805190602001209050919050565b33610ffa6000546001600160a01b031690565b6001600160a01b0316146110505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b8051610f75906002906020840190612ef6565b6000818152600360205260408120546001600160a01b03168061073a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107c6565b600280546110fb906137d7565b80601f0160208091040260200160405190810160405280929190818152602001828054611127906137d7565b80156111745780601f1061114957610100808354040283529160200191611174565b820191906000526020600020905b81548152906001019060200180831161115757829003601f168201915b505050505081565b60006001600160a01b0382166111fa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107c6565b506001600160a01b031660009081526004602052604090205490565b336112296000546001600160a01b031690565b6001600160a01b03161461127f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b61128960006123e3565b565b6001600160a01b0381166000908152600460205260408120546060919067ffffffffffffffff8111156112c0576112c0613934565b6040519080825280602002602001820160405280156112e9578160200160208202803683370190505b5060008054919250906113199074010000000000000000000000000000000000000000900461ffff1660016136ab565b61ffff169050600060015b8281101561138c57856001600160a01b031661133f82611063565b6001600160a01b0316141561137a578084838151811061136157611361613905565b6020908102919091010152816113768161382b565b9250505b806113848161382b565b915050611324565b5091949350505050565b336113a96000546001600160a01b031690565b6001600160a01b0316146113ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b8151815181146114515760405162461bcd60e51b815260206004820152601660248201527f6172726179206c656e677468206d6973736d617463680000000000000000000060448201526064016107c6565b6000805474010000000000000000000000000000000000000000900461ffff16908080805b858110156115d2576020810260208901015192506020810260208801015191506114a0823b151590565b156114ed5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206d696e7420746f20636f6e747261637473210000000000000060448201526064016107c6565b6001600160a01b038216600090815260046020526040812080548592906115159084906136d1565b90915550600090505b838110156115b357856115308161382b565b60008181526003602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389169081179091559051929950899350917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4806115ab8161382b565b91505061151e565b506115be83856136d1565b9350806115ca8161382b565b915050611476565b506101f48411156116255760405162461bcd60e51b815260206004820152601060248201527f457863656564732072657365727665210000000000000000000000000000000060448201526064016107c6565b50506000805461ffff90921674010000000000000000000000000000000000000000027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff90921691909117905550505050565b3361168b6000546001600160a01b031690565b6001600160a01b0316146116e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600855565b600754610100900460ff1661173d5760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642100000000000000000060448201526064016107c6565b6014811115801561174d57508015155b6117995760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964207265717565737420616d6f756e742100000000000000000060448201526064016107c6565b600054612710906117c69074010000000000000000000000000000000000000000900461ffff16836136d1565b11156118145760405162461bcd60e51b815260206004820152601b60248201527f526571756573742065786365656473206d617820737570706c7921000000000060448201526064016107c6565b6118268167013c310749028000613722565b34146118745760405162461bcd60e51b815260206004820152601a60248201527f45544820416d6f756e74206973206e6f7420636f72726563742100000000000060448201526064016107c6565b61187e813361244b565b50565b610f753383836125f7565b3361189f6000546001600160a01b031690565b6001600160a01b0316146118f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b6000546101f4906119229074010000000000000000000000000000000000000000900461ffff16846136d1565b111561192d57600080fd5b610f75828261244b565b6119413383612123565b6119b35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107c6565b6119bf848484846126e4565b50505050565b336119d86000546001600160a01b031690565b6001600160a01b031614611a2e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600360205260409020546060906001600160a01b0316611af55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107c6565b6002611b008361276d565b604051602001611b1192919061349b565b6040516020818303038152906040529050919050565b60075460ff16611b795760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642100000000000000000060448201526064016107c6565b611bb93384848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061289f92505050565b611c055760405162461bcd60e51b815260206004820152601560248201527f55736572206e6f742077686974656c697374656421000000000000000000000060448201526064016107c6565b33600090815260096020526040902054600a90611c259060ff16836136d1565b11158015611c3257508015155b611c7e5760405162461bcd60e51b815260206004820152601f60248201527f526571756573742065786365656473206d6178207065722077616c6c6574210060448201526064016107c6565b611c8f8166f5232269808000613722565b3414611cdd5760405162461bcd60e51b815260206004820152601a60248201527f45544820416d6f756e74206973206e6f7420636f72726563742100000000000060448201526064016107c6565b3360009081526009602052604081208054839290611cff90849060ff166136e9565b92506101000a81548160ff021916908360ff160217905550610915813361244b565b33611d346000546001600160a01b031690565b6001600160a01b031614611d8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600780546101007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00821681900460ff1615027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909116179055565b6001546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611e4b57600080fd5b505afa158015611e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e83919061336f565b6001600160a01b03161415611e9c57600191505061073a565b50506001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b33611edf6000546001600160a01b031690565b6001600160a01b031614611f355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b6001600160a01b038116611fb15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107c6565b61187e816123e3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061204d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061073a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461073a565b600081815260056020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906120ea82611063565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166121ad5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016107c6565b6000828152600360205260409020546001600160a01b039081169084168114806121f05750836001600160a01b03166121e584610740565b6001600160a01b0316145b8061220057506122008185611de5565b949350505050565b6000818152600360205260409020546001600160a01b038481169116146122975760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016107c6565b6001600160a01b0382166123125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107c6565b61231d60008261209d565b6001600160a01b0383166000908152600460205260408120805491612341836137a2565b90915550506001600160a01b038216600090815260046020526040812080549161236a8361382b565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080546001600160a01b038316825260046020526040822080547401000000000000000000000000000000000000000090920461ffff169285926124919084906136d1565b90915550600090505b8381101561252f57816124ac8161382b565b60008181526003602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389169081179091559051929550859350917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4806125278161382b565b91505061249a565b5082600060148282829054906101000a900461ffff1661254f91906136ab565b92506101000a81548161ffff021916908361ffff160217905550612585600083836040518060200160405280600081525061291b565b6109155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107c6565b816001600160a01b0316836001600160a01b031614156126595760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107c6565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6126ef848484612208565b6126fb8484848461291b565b6119bf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107c6565b6060816127ad57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127d757806127c18161382b565b91506127d09050600a8361370e565b91506127b1565b60008167ffffffffffffffff8111156127f2576127f2613934565b6040519080825280601f01601f19166020018201604052801561281c576020820181803683370190505b5090505b84156122005761283160018361375f565b915061283e600a86613864565b6128499060306136d1565b60f81b81838151811061285e5761285e613905565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612898600a8661370e565b9450612820565b600080546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606086901b1660208201526001600160a01b039091169061290a906129049060340160405160208183030381529060405280519060200120612ae6565b84612b21565b6001600160a01b0316149392505050565b60006001600160a01b0384163b15612adb576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906129789033908990889088906004016135a5565b602060405180830381600087803b15801561299257600080fd5b505af19250505080156129e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526129dd918101906132da565b60015b612a90573d808015612a0e576040519150601f19603f3d011682016040523d82523d6000602084013e612a13565b606091505b508051612a885760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107c6565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612200565b506001949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01610fca565b6000806000612b308585612b45565b91509150612b3d81612bb2565b509392505050565b600080825160411415612b7c5760208301516040840151606085015160001a612b7087828585612da3565b94509450505050610a59565b825160401415612ba65760208301516040840151612b9b868383612eae565b935093505050610a59565b50600090506002610a59565b6000816004811115612bc657612bc66138d6565b1415612bcf5750565b6001816004811115612be357612be36138d6565b1415612c315760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107c6565b6002816004811115612c4557612c456138d6565b1415612c935760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107c6565b6003816004811115612ca757612ca76138d6565b1415612d1b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107c6565b6004816004811115612d2f57612d2f6138d6565b141561187e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107c6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612dda5750600090506003612ea5565b8460ff16601b14158015612df257508460ff16601c14155b15612e035750600090506004612ea5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612e57573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116612e9e57600060019250925050612ea5565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612ee887828885612da3565b935093505050935093915050565b828054612f02906137d7565b90600052602060002090601f016020900481019282612f245760008555612f6a565b82601f10612f3d57805160ff1916838001178555612f6a565b82800160010185558215612f6a579182015b82811115612f6a578251825591602001919060010190612f4f565b50612f76929150612f7a565b5090565b5b80821115612f765760008155600101612f7b565b600067ffffffffffffffff831115612fa957612fa9613934565b612fda60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613638565b9050828152838383011115612fee57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261301657600080fd5b8135602061302b61302683613687565b613638565b80838252828201915082860187848660051b890101111561304b57600080fd5b60005b8581101561307357813561306181613963565b8452928401929084019060010161304e565b5090979650505050505050565b60006020828403121561309257600080fd5b813561309d81613963565b9392505050565b600080604083850312156130b757600080fd5b82356130c281613963565b915060208301356130d281613963565b809150509250929050565b6000806000606084860312156130f257600080fd5b83356130fd81613963565b9250602084013561310d81613963565b929592945050506040919091013590565b6000806000806080858703121561313457600080fd5b843561313f81613963565b9350602085013561314f81613963565b925060408501359150606085013567ffffffffffffffff81111561317257600080fd5b8501601f8101871361318357600080fd5b61319287823560208401612f8f565b91505092959194509250565b600080604083850312156131b157600080fd5b82356131bc81613963565b9150602083013580151581146130d257600080fd5b600080604083850312156131e457600080fd5b82356131ef81613963565b946020939093013593505050565b6000806040838503121561321057600080fd5b823567ffffffffffffffff8082111561322857600080fd5b818501915085601f83011261323c57600080fd5b8135602061324c61302683613687565b8083825282820191508286018a848660051b890101111561326c57600080fd5b600096505b8487101561328f578035835260019690960195918301918301613271565b50965050860135925050808211156132a657600080fd5b506132b385828601613005565b9150509250929050565b6000602082840312156132cf57600080fd5b813561309d81613978565b6000602082840312156132ec57600080fd5b815161309d81613978565b60008060006040848603121561330c57600080fd5b833567ffffffffffffffff8082111561332457600080fd5b818601915086601f83011261333857600080fd5b81358181111561334757600080fd5b87602082850101111561335957600080fd5b6020928301989097509590910135949350505050565b60006020828403121561338157600080fd5b815161309d81613963565b60006020828403121561339e57600080fd5b813567ffffffffffffffff8111156133b557600080fd5b8201601f810184136133c657600080fd5b61220084823560208401612f8f565b6000602082840312156133e757600080fd5b5035919050565b6000806040838503121561340157600080fd5b8235915060208301356130d281613963565b6000806040838503121561342657600080fd5b50508035926020909101359150565b6000815180845261344d816020860160208601613776565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008151613491818560208601613776565b9290920192915050565b600080845481600182811c9150808316806134b757607f831692505b60208084108214156134f0577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613504576001811461353357613560565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650613560565b60008b81526020902060005b868110156135585781548b82015290850190830161353f565b505084890196505b50505050505061359c613573828661347f565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135d76080830184613435565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613619578351835292840192918401916001016135fd565b50909695505050505050565b60208152600061309d6020830184613435565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561367f5761367f613934565b604052919050565b600067ffffffffffffffff8211156136a1576136a1613934565b5060051b60200190565b600061ffff8083168185168083038211156136c8576136c8613878565b01949350505050565b600082198211156136e4576136e4613878565b500190565b600060ff821660ff84168060ff0382111561370657613706613878565b019392505050565b60008261371d5761371d6138a7565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561375a5761375a613878565b500290565b60008282101561377157613771613878565b500390565b60005b83811015613791578181015183820152602001613779565b838111156119bf5750506000910152565b6000816137b1576137b1613878565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806137eb57607f821691505b60208210811415613825577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561385d5761385d613878565b5060010190565b600082613873576138736138a7565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461187e57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461187e57600080fdfea26469706673582212204cf51718a53d1b18933fa70aadd372bdd83a525918180188107347eed135beb364736f6c6343000807003300000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f7777772e6d616769636d696e646e66742e636f6d2f6170692f6d657461646174612d7072652d72657665616c2f0000000000000000000000

Deployed Bytecode

0x6080604052600436106102195760003560e01c80638462151c1161011d578063adb03e4f116100b0578063cd7c03261161007f578063e222c7f911610064578063e222c7f91461068f578063e985e9c5146106a4578063f2fde38b146106c457600080fd5b8063cd7c03261461065c578063ce34a8b11461067c57600080fd5b8063adb03e4f146105dc578063b88d4fde146105fc578063bd2f52441461061c578063c87b56dd1461063c57600080fd5b8063984f3913116100ec578063984f3913146105695780639a4fc64014610589578063a0712d68146105a9578063a22cb465146105bc57600080fd5b80638462151c146104c05780638da5cb5b146104ed57806395364a841461050b57806395d89b411461052357600080fd5b806334393743116101b057806355f804b31161017f5780636c0360eb116101645780636c0360eb1461047657806370a082311461048b578063715018a6146104ab57600080fd5b806355f804b3146104365780636352211e1461045657600080fd5b806334393743146103be5780633ccfd60b146103d357806342842e0e146103e8578063428e2d641461040857600080fd5b806318160ddd116101ec57806318160ddd146102fc57806323b872dd146103425780632a55205a146103625780632a8092df146103a157600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc146102a2578063095ea7b3146102da575b600080fd5b34801561022a57600080fd5b5061023e6102393660046132bd565b6106e4565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5060408051808201909152600a81527f4d61676963204d696e640000000000000000000000000000000000000000000060208201525b60405161024a9190613625565b3480156102ae57600080fd5b506102c26102bd3660046133d5565b610740565b6040516001600160a01b03909116815260200161024a565b3480156102e657600080fd5b506102fa6102f53660046131d1565b6107eb565b005b34801561030857600080fd5b5060005461032f9074010000000000000000000000000000000000000000900461ffff1681565b60405161ffff909116815260200161024a565b34801561034e57600080fd5b506102fa61035d3660046130dd565b61091a565b34801561036e57600080fd5b5061038261037d366004613413565b6109a1565b604080516001600160a01b03909316835260208301919091520161024a565b3480156103ad57600080fd5b50600754610100900460ff1661023e565b3480156103ca57600080fd5b506102fa610a60565b3480156103df57600080fd5b506102fa610afb565b3480156103f457600080fd5b506102fa6104033660046130dd565b610f79565b34801561041457600080fd5b50610428610423366004613080565b610f94565b60405190815260200161024a565b34801561044257600080fd5b506102fa61045136600461338c565b610fe7565b34801561046257600080fd5b506102c26104713660046133d5565b611063565b34801561048257600080fd5b506102956110ee565b34801561049757600080fd5b506104286104a6366004613080565b61117c565b3480156104b757600080fd5b506102fa611216565b3480156104cc57600080fd5b506104e06104db366004613080565b61128b565b60405161024a91906135e1565b3480156104f957600080fd5b506000546001600160a01b03166102c2565b34801561051757600080fd5b5060075460ff1661023e565b34801561052f57600080fd5b5060408051808201909152600481527f4d494e44000000000000000000000000000000000000000000000000000000006020820152610295565b34801561057557600080fd5b506102fa6105843660046131fd565b611396565b34801561059557600080fd5b506102fa6105a43660046133d5565b611678565b6102fa6105b73660046133d5565b6116e6565b3480156105c857600080fd5b506102fa6105d736600461319e565b611881565b3480156105e857600080fd5b506102fa6105f73660046133ee565b61188c565b34801561060857600080fd5b506102fa61061736600461311e565b611937565b34801561062857600080fd5b506102fa610637366004613080565b6119c5565b34801561064857600080fd5b506102956106573660046133d5565b611a68565b34801561066857600080fd5b506001546102c2906001600160a01b031681565b6102fa61068a3660046132f7565b611b27565b34801561069b57600080fd5b506102fa611d21565b3480156106b057600080fd5b5061023e6106bf3660046130a4565b611de5565b3480156106d057600080fd5b506102fa6106df366004613080565b611ecc565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000148061073a575061073a82611fba565b92915050565b6000818152600360205260408120546001600160a01b03166107cf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000818152600360205260409020546001600160a01b0390811690831681141561087d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107c6565b336001600160a01b038216148061089957506108998133611de5565b61090b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107c6565b610915838361209d565b505050565b6109243382612123565b6109965760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107c6565b610915838383612208565b60008281526003602052604081205481906001600160a01b0316610a2d5760405162461bcd60e51b815260206004820152602760248201527f526f79616c6974792071756572727920666f72206e6f6e2d6578697374616e7460448201527f20746f6b656e210000000000000000000000000000000000000000000000000060648201526084016107c6565b6000546001600160a01b031661271060085485610a4a9190613722565b610a54919061370e565b915091505b9250929050565b33610a736000546001600160a01b031690565b6001600160a01b031614610ac95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b33610b0e6000546001600160a01b031690565b6001600160a01b031614610b645760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b477312723ad63da5d0c9cfa671ddf8f208b7ea03c9136108fc600a610b8a846004613722565b610b94919061370e565b6040518115909202916000818181858888f19350505050158015610bbc573d6000803e3d6000fd5b507314cfce63790ae8567c83858050273f01684c15406108fc6064610be284600f613722565b610bec919061370e565b6040518115909202916000818181858888f19350505050158015610c14573d6000803e3d6000fd5b50336108fc6064610c2684600e613722565b610c30919061370e565b6040518115909202916000818181858888f19350505050158015610c58573d6000803e3d6000fd5b50735ae9936e3bbbc98b19622d6a73d1003f533f85446108fc6064610c7e846007613722565b610c88919061370e565b6040518115909202916000818181858888f19350505050158015610cb0573d6000803e3d6000fd5b50737222b04d739b93e95e48baad5896b30f3105a0ad6108fc6064610cd6846004613722565b610ce0919061370e565b6040518115909202916000818181858888f19350505050158015610d08573d6000803e3d6000fd5b5073df09b919392687072ad42ee6986c861751c2559d6108fc612710610d3084610145613722565b610d3a919061370e565b6040518115909202916000818181858888f19350505050158015610d62573d6000803e3d6000fd5b5073b8258175018a494ca3e241e709e7a1e74aef81166108fc612710610d8a84610145613722565b610d94919061370e565b6040518115909202916000818181858888f19350505050158015610dbc573d6000803e3d6000fd5b507353d0d29b5babddb0284624d25abd0f482a09f81b6108fc6064610de2846003613722565b610dec919061370e565b6040518115909202916000818181858888f19350505050158015610e14573d6000803e3d6000fd5b5073e321d503ef3181b2a930876a3098f0d0ab3bcf6e6108fc6064610e3a846003613722565b610e44919061370e565b6040518115909202916000818181858888f19350505050158015610e6c573d6000803e3d6000fd5b507322722720df246b776f01e98977d89c103985eb786108fc6064610e92846003613722565b610e9c919061370e565b6040518115909202916000818181858888f19350505050158015610ec4573d6000803e3d6000fd5b5073915fd7751dbbd3d4e8b359d5b99486941636c12f6108fc6103e8610eeb846019613722565b610ef5919061370e565b6040518115909202916000818181858888f19350505050158015610f1d573d6000803e3d6000fd5b50730876fd16ec5755cebe7b2b96b2dfaf490466540c6108fc6064610f43846002613722565b610f4d919061370e565b6040518115909202916000818181858888f19350505050158015610f75573d6000803e3d6000fd5b5050565b61091583838360405180602001604052806000815250611937565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b1660208201526000906034015b604051602081830303815290604052805190602001209050919050565b33610ffa6000546001600160a01b031690565b6001600160a01b0316146110505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b8051610f75906002906020840190612ef6565b6000818152600360205260408120546001600160a01b03168061073a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107c6565b600280546110fb906137d7565b80601f0160208091040260200160405190810160405280929190818152602001828054611127906137d7565b80156111745780601f1061114957610100808354040283529160200191611174565b820191906000526020600020905b81548152906001019060200180831161115757829003601f168201915b505050505081565b60006001600160a01b0382166111fa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107c6565b506001600160a01b031660009081526004602052604090205490565b336112296000546001600160a01b031690565b6001600160a01b03161461127f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b61128960006123e3565b565b6001600160a01b0381166000908152600460205260408120546060919067ffffffffffffffff8111156112c0576112c0613934565b6040519080825280602002602001820160405280156112e9578160200160208202803683370190505b5060008054919250906113199074010000000000000000000000000000000000000000900461ffff1660016136ab565b61ffff169050600060015b8281101561138c57856001600160a01b031661133f82611063565b6001600160a01b0316141561137a578084838151811061136157611361613905565b6020908102919091010152816113768161382b565b9250505b806113848161382b565b915050611324565b5091949350505050565b336113a96000546001600160a01b031690565b6001600160a01b0316146113ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b8151815181146114515760405162461bcd60e51b815260206004820152601660248201527f6172726179206c656e677468206d6973736d617463680000000000000000000060448201526064016107c6565b6000805474010000000000000000000000000000000000000000900461ffff16908080805b858110156115d2576020810260208901015192506020810260208801015191506114a0823b151590565b156114ed5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206d696e7420746f20636f6e747261637473210000000000000060448201526064016107c6565b6001600160a01b038216600090815260046020526040812080548592906115159084906136d1565b90915550600090505b838110156115b357856115308161382b565b60008181526003602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389169081179091559051929950899350917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4806115ab8161382b565b91505061151e565b506115be83856136d1565b9350806115ca8161382b565b915050611476565b506101f48411156116255760405162461bcd60e51b815260206004820152601060248201527f457863656564732072657365727665210000000000000000000000000000000060448201526064016107c6565b50506000805461ffff90921674010000000000000000000000000000000000000000027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff90921691909117905550505050565b3361168b6000546001600160a01b031690565b6001600160a01b0316146116e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600855565b600754610100900460ff1661173d5760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642100000000000000000060448201526064016107c6565b6014811115801561174d57508015155b6117995760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964207265717565737420616d6f756e742100000000000000000060448201526064016107c6565b600054612710906117c69074010000000000000000000000000000000000000000900461ffff16836136d1565b11156118145760405162461bcd60e51b815260206004820152601b60248201527f526571756573742065786365656473206d617820737570706c7921000000000060448201526064016107c6565b6118268167013c310749028000613722565b34146118745760405162461bcd60e51b815260206004820152601a60248201527f45544820416d6f756e74206973206e6f7420636f72726563742100000000000060448201526064016107c6565b61187e813361244b565b50565b610f753383836125f7565b3361189f6000546001600160a01b031690565b6001600160a01b0316146118f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b6000546101f4906119229074010000000000000000000000000000000000000000900461ffff16846136d1565b111561192d57600080fd5b610f75828261244b565b6119413383612123565b6119b35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107c6565b6119bf848484846126e4565b50505050565b336119d86000546001600160a01b031690565b6001600160a01b031614611a2e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600360205260409020546060906001600160a01b0316611af55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107c6565b6002611b008361276d565b604051602001611b1192919061349b565b6040516020818303038152906040529050919050565b60075460ff16611b795760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642100000000000000000060448201526064016107c6565b611bb93384848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061289f92505050565b611c055760405162461bcd60e51b815260206004820152601560248201527f55736572206e6f742077686974656c697374656421000000000000000000000060448201526064016107c6565b33600090815260096020526040902054600a90611c259060ff16836136d1565b11158015611c3257508015155b611c7e5760405162461bcd60e51b815260206004820152601f60248201527f526571756573742065786365656473206d6178207065722077616c6c6574210060448201526064016107c6565b611c8f8166f5232269808000613722565b3414611cdd5760405162461bcd60e51b815260206004820152601a60248201527f45544820416d6f756e74206973206e6f7420636f72726563742100000000000060448201526064016107c6565b3360009081526009602052604081208054839290611cff90849060ff166136e9565b92506101000a81548160ff021916908360ff160217905550610915813361244b565b33611d346000546001600160a01b031690565b6001600160a01b031614611d8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b600780546101007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00821681900460ff1615027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909116179055565b6001546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611e4b57600080fd5b505afa158015611e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e83919061336f565b6001600160a01b03161415611e9c57600191505061073a565b50506001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b33611edf6000546001600160a01b031690565b6001600160a01b031614611f355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c6565b6001600160a01b038116611fb15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107c6565b61187e816123e3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061204d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061073a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461073a565b600081815260056020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906120ea82611063565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166121ad5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016107c6565b6000828152600360205260409020546001600160a01b039081169084168114806121f05750836001600160a01b03166121e584610740565b6001600160a01b0316145b8061220057506122008185611de5565b949350505050565b6000818152600360205260409020546001600160a01b038481169116146122975760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016107c6565b6001600160a01b0382166123125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107c6565b61231d60008261209d565b6001600160a01b0383166000908152600460205260408120805491612341836137a2565b90915550506001600160a01b038216600090815260046020526040812080549161236a8361382b565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080546001600160a01b038316825260046020526040822080547401000000000000000000000000000000000000000090920461ffff169285926124919084906136d1565b90915550600090505b8381101561252f57816124ac8161382b565b60008181526003602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389169081179091559051929550859350917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4806125278161382b565b91505061249a565b5082600060148282829054906101000a900461ffff1661254f91906136ab565b92506101000a81548161ffff021916908361ffff160217905550612585600083836040518060200160405280600081525061291b565b6109155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107c6565b816001600160a01b0316836001600160a01b031614156126595760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107c6565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6126ef848484612208565b6126fb8484848461291b565b6119bf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107c6565b6060816127ad57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127d757806127c18161382b565b91506127d09050600a8361370e565b91506127b1565b60008167ffffffffffffffff8111156127f2576127f2613934565b6040519080825280601f01601f19166020018201604052801561281c576020820181803683370190505b5090505b84156122005761283160018361375f565b915061283e600a86613864565b6128499060306136d1565b60f81b81838151811061285e5761285e613905565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612898600a8661370e565b9450612820565b600080546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606086901b1660208201526001600160a01b039091169061290a906129049060340160405160208183030381529060405280519060200120612ae6565b84612b21565b6001600160a01b0316149392505050565b60006001600160a01b0384163b15612adb576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906129789033908990889088906004016135a5565b602060405180830381600087803b15801561299257600080fd5b505af19250505080156129e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526129dd918101906132da565b60015b612a90573d808015612a0e576040519150601f19603f3d011682016040523d82523d6000602084013e612a13565b606091505b508051612a885760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107c6565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612200565b506001949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01610fca565b6000806000612b308585612b45565b91509150612b3d81612bb2565b509392505050565b600080825160411415612b7c5760208301516040840151606085015160001a612b7087828585612da3565b94509450505050610a59565b825160401415612ba65760208301516040840151612b9b868383612eae565b935093505050610a59565b50600090506002610a59565b6000816004811115612bc657612bc66138d6565b1415612bcf5750565b6001816004811115612be357612be36138d6565b1415612c315760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107c6565b6002816004811115612c4557612c456138d6565b1415612c935760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107c6565b6003816004811115612ca757612ca76138d6565b1415612d1b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107c6565b6004816004811115612d2f57612d2f6138d6565b141561187e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107c6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612dda5750600090506003612ea5565b8460ff16601b14158015612df257508460ff16601c14155b15612e035750600090506004612ea5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612e57573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116612e9e57600060019250925050612ea5565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612ee887828885612da3565b935093505050935093915050565b828054612f02906137d7565b90600052602060002090601f016020900481019282612f245760008555612f6a565b82601f10612f3d57805160ff1916838001178555612f6a565b82800160010185558215612f6a579182015b82811115612f6a578251825591602001919060010190612f4f565b50612f76929150612f7a565b5090565b5b80821115612f765760008155600101612f7b565b600067ffffffffffffffff831115612fa957612fa9613934565b612fda60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613638565b9050828152838383011115612fee57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261301657600080fd5b8135602061302b61302683613687565b613638565b80838252828201915082860187848660051b890101111561304b57600080fd5b60005b8581101561307357813561306181613963565b8452928401929084019060010161304e565b5090979650505050505050565b60006020828403121561309257600080fd5b813561309d81613963565b9392505050565b600080604083850312156130b757600080fd5b82356130c281613963565b915060208301356130d281613963565b809150509250929050565b6000806000606084860312156130f257600080fd5b83356130fd81613963565b9250602084013561310d81613963565b929592945050506040919091013590565b6000806000806080858703121561313457600080fd5b843561313f81613963565b9350602085013561314f81613963565b925060408501359150606085013567ffffffffffffffff81111561317257600080fd5b8501601f8101871361318357600080fd5b61319287823560208401612f8f565b91505092959194509250565b600080604083850312156131b157600080fd5b82356131bc81613963565b9150602083013580151581146130d257600080fd5b600080604083850312156131e457600080fd5b82356131ef81613963565b946020939093013593505050565b6000806040838503121561321057600080fd5b823567ffffffffffffffff8082111561322857600080fd5b818501915085601f83011261323c57600080fd5b8135602061324c61302683613687565b8083825282820191508286018a848660051b890101111561326c57600080fd5b600096505b8487101561328f578035835260019690960195918301918301613271565b50965050860135925050808211156132a657600080fd5b506132b385828601613005565b9150509250929050565b6000602082840312156132cf57600080fd5b813561309d81613978565b6000602082840312156132ec57600080fd5b815161309d81613978565b60008060006040848603121561330c57600080fd5b833567ffffffffffffffff8082111561332457600080fd5b818601915086601f83011261333857600080fd5b81358181111561334757600080fd5b87602082850101111561335957600080fd5b6020928301989097509590910135949350505050565b60006020828403121561338157600080fd5b815161309d81613963565b60006020828403121561339e57600080fd5b813567ffffffffffffffff8111156133b557600080fd5b8201601f810184136133c657600080fd5b61220084823560208401612f8f565b6000602082840312156133e757600080fd5b5035919050565b6000806040838503121561340157600080fd5b8235915060208301356130d281613963565b6000806040838503121561342657600080fd5b50508035926020909101359150565b6000815180845261344d816020860160208601613776565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008151613491818560208601613776565b9290920192915050565b600080845481600182811c9150808316806134b757607f831692505b60208084108214156134f0577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613504576001811461353357613560565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650613560565b60008b81526020902060005b868110156135585781548b82015290850190830161353f565b505084890196505b50505050505061359c613573828661347f565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135d76080830184613435565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613619578351835292840192918401916001016135fd565b50909695505050505050565b60208152600061309d6020830184613435565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561367f5761367f613934565b604052919050565b600067ffffffffffffffff8211156136a1576136a1613934565b5060051b60200190565b600061ffff8083168185168083038211156136c8576136c8613878565b01949350505050565b600082198211156136e4576136e4613878565b500190565b600060ff821660ff84168060ff0382111561370657613706613878565b019392505050565b60008261371d5761371d6138a7565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561375a5761375a613878565b500290565b60008282101561377157613771613878565b500390565b60005b83811015613791578181015183820152602001613779565b838111156119bf5750506000910152565b6000816137b1576137b1613878565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806137eb57607f821691505b60208210811415613825577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561385d5761385d613878565b5060010190565b600082613873576138736138a7565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461187e57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461187e57600080fdfea26469706673582212204cf51718a53d1b18933fa70aadd372bdd83a525918180188107347eed135beb364736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f7777772e6d616769636d696e646e66742e636f6d2f6170692f6d657461646174612d7072652d72657665616c2f0000000000000000000000

-----Decoded View---------------
Arg [0] : _royalty (uint256): 1000
Arg [1] : _openseaProxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [2] : _tempBaseURI (string): https://www.magicmindnft.com/api/metadata-pre-reveal/

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [1] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [4] : 68747470733a2f2f7777772e6d616769636d696e646e66742e636f6d2f617069
Arg [5] : 2f6d657461646174612d7072652d72657665616c2f0000000000000000000000


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.