ETH Price: $3,252.67 (+2.76%)
Gas: 2 Gwei

Token

Desires (for Creatures) (CREATD)
 

Overview

Max Total Supply

406 CREATD

Holders

107

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
13 CREATD
0xeea89c8843e8beb56e411bb4cac6dbc2d937ee1d
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DesiresForCreatures

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.8.7;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, 'ReentrancyGuard: reentrant call');

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), 'ERC721: approve to caller');

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

interface ILootCreatures {
    function getFirst(uint256 tokenId) external view returns (string memory);
    
    function getSecond(uint256 tokenId) external view returns (string memory);
    
    function getThird(uint256 tokenId) external view returns (string memory);
    
    function getFourth(uint256 tokenId) external view returns (string memory);

    function getFifth(uint256 tokenId) external view returns (string memory);

    function getSixth(uint256 tokenId) external view returns (string memory);
    
    function getSeventh(uint256 tokenId) external view returns (string memory);
    
    function getEighth(uint256 tokenId) external view returns (string memory);
}

contract DesiresForCreatures is ERC721Enumerable, ReentrancyGuard, Ownable {
    ILootCreatures constant LOOT_CREATURES =
        ILootCreatures(0xB89A71F1abe992Dc71349FC782b393dA2b6FB4C2);

    uint256 CREATURE_SUPPLY = 16120;

    mapping(uint256 => bytes32) _randomHashes;

    string[] private interjections = [
        'Alas!',
        'Tilly-vally.',
        'Unbelievable...',
        'Heigh-ho, hey-ho!',
        "O summer's day!",
        'Out, alas!',
        'Heigh, my hearts!',
        'Marry come up!',
        'Interesting...',
        'Wonderful!',
        'As expected.',
        'You egg!',
        'Bloody hell!',
        'You fool.',
        'Aha!',
        'It cannot be!',
        'Dear me!',
        'Good heavens!',
        'Be still my heart!',
        'What is that I see?',
        'Out of my sight!',
        'Good-morrow to thee.',
        'Poor Creature!',
        'How exciting!',
        'How mysterious...',
        'Could it be?',
        'Oh, how terrible!'
    ];

    string[] private verbs = [
        'detests',
        'loves',
        'adores',
        'bequeathed',
        'swallows',
        'hunts',
        'seeks',
        'fights with',
        'has a vendetta with',
        'hates',
        'often thinks about',
        'rarely thinks about',
        'courts',
        'serenades',
        'growls at',
        'worships',
        'desperately desires',
        'praises',
        'prays to',
        'wears',
        'is betrothed to',
        'angers',
        'sits on',
        'discovers',
        'insults',
        'recites poetry to',
        'demands payment from',
        'farms',
        'would die for',
        'revives',
        'feasts on',
        'is addicted to'
    ];

    string[] private things = [
        'a ripe fig',
        'gooseberries',
        'eggs',
        'mushrooms',
        'me',
        'stone soup',
        'divine robes',
        'sausages',
        'hairless creatures',
        'fish',
        'birds',
        'the banquet',
        'pigeon pie',
        'swagbellied footlickers',
        'willow trees',
        'a rare ruby',
        'roast rabbit',
        'hazelnuts',
        'an ornate chair',
        'an abnormal walnut',
        'the open sea',
        'rocks',
        'willow trees',
        'walrus tusk',
        'tears of a fairy',
        'fortunate felines',
        'mud',
        'a harmonica',
        'deviled eggs',
        'a tiny quail egg',
        'a cracked egg',
        'white truffles',
        'Caspian caviar',
        'Beluga caviar',
        'a golden apple',
        'black truffles',
        'a feast of peaches',
        'a spoon of trout roe',
        'boiled snails',
        'salted slugs',
        'a goblet of wine',
        'a Century egg',
        'mushrooms',
        'frog legs',
        'pickled cabbage',
        'beef and mutton',
        'beet stew',
        'black pudding',
        'cranberries',
        'odd numbers',
        'a balalaika',
        'forbidden fruit',
        'oats',
        'porridge',
        'fermented fish',
        'nymphs',
        'a buttered biscuit',
        'merry adventures',
        'bagpipes',
        'a perfect pumpkin',
        'bangers and mash',
        'toad in the hole',
        'spotted dick',
        'a broken harp',
        'a scotch egg',
        'truffles',
        'a truffle pig',
        'fairy dust',
        'a goblet of wine',
        'a love potion',
        'a sack of gold coins',
        'a saber',
        'a soulmate',
        'strawberry jam',
        'a vanilla sponge',
        'a cup of Persian tea',
        'a honeycomb',
        'chestnuts',
        'marmalade',
        'rose jam',
        'blackberry jam',
        'lemon custard',
        'peach nectar',
        'a goblet of ambrosia',
        'warm ale',
        'a valiant steed',
        "aged goat's milk",
        "sheep's milk",
        'honey mead',
        'a cup of ginger tea',
        'absinthe',
        'bitter broccoli',
        'cabbages',
        'olives',
        'an apricot',
        'purple cabbages',
        'a sugar cube',
        'some soggy bread',
        'a leg of lamb',
        'a turkey leg',
        'a sour grape',
        'sour milk',
        'lemon curd',
        'a handful of crickets',
        'precious gems',
        'a tiny almond',
        'an ancient olive',
        'boiled potatoes',
        'a tiny hat',
        'a stack of books',
        'a quill and ink',
        'a broken violin',
        'lucky clovers',
        'garlic pancakes'
    ];

    constructor() ERC721('Desires (for Creatures)', 'CREATD') Ownable() {}

    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }

    function getFirst(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'FIRST', 1);
    }

    function getSecond(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'SECOND', 2);
    }

    function getThird(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'THIRD', 3);
    }

    function getFourth(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'FOURTH', 4);
    }

    function getFifth(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'FIFTH', 5);
    }

    function getSixth(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'SIXTH', 6);
    }

    function getSeventh(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'SEVENTH', 7);
    }

    function getEighth(uint256 tokenId) public view returns (string memory) {
        return _getResult(tokenId, 'EIGHTH', 8);
    }

    function _getResult(
        uint256 tokenId,
        string memory shuffleString,
        uint256 index
    ) internal view returns (string memory) {
        string memory result = pluck(tokenId, shuffleString, index);
        while (bytes(result).length > 83) {
            shuffleString = string(abi.encode(keccak256(bytes(shuffleString))));
            result = pluck(tokenId, shuffleString, index);
        }
        return result;
    }

    function pluck(
        uint256 tokenId,
        string memory shuffleString,
        uint256 index
    ) internal view returns (string memory) {
        uint256 rand =
            random(
                string(abi.encodePacked(shuffleString, toString(tokenId), _randomHashes[tokenId]))
            );
        string memory mainCreature = getCreature(tokenId, index);
        string memory output;

        uint256 greatness = rand % 100;
        if (greatness > 95) {
            uint256 otherId = 1 + (rand % CREATURE_SUPPLY);
            string memory otherCreature = getCreature(otherId, index);
            output = string(
                abi.encodePacked(
                    'My [',
                    mainCreature,
                    '] ',
                    verbs[rand % verbs.length],
                    ' [',
                    otherCreature,
                    '].'
                )
            );
            if (greatness == 99) {
                output = string(
                    abi.encodePacked(interjections[rand % interjections.length], ' ', output)
                );
            }
        } else {
            output = string(
                abi.encodePacked(
                    'My [',
                    mainCreature,
                    '] ',
                    verbs[rand % verbs.length],
                    ' ',
                    things[rand % things.length],
                    '.'
                )
            );
            if (greatness > 35) {
                output = string(
                    abi.encodePacked(interjections[rand % interjections.length], ' ', output)
                );
            }
        }
        return output;
    }

    function getCreature(uint256 tokenId, uint256 index) internal view returns (string memory) {
        if (index == 1) {
            return LOOT_CREATURES.getFirst(tokenId);
        } else if (index == 2) {
            return LOOT_CREATURES.getSecond(tokenId);
        } else if (index == 3) {
            return LOOT_CREATURES.getThird(tokenId);
        } else if (index == 4) {
            return LOOT_CREATURES.getFourth(tokenId);
        } else if (index == 5) {
            return LOOT_CREATURES.getFifth(tokenId);
        } else if (index == 6) {
            return LOOT_CREATURES.getSixth(tokenId);
        } else if (index == 7) {
            return LOOT_CREATURES.getSeventh(tokenId);
        } else if (index == 8) {
            return LOOT_CREATURES.getEighth(tokenId);
        } else {
            revert('Invalid index');
        }
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        string[17] memory parts;
        parts[
            0
        ] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 650 350"><style>.base { fill: black; font-family: serif; font-size: 13px; }</style><rect width="100%" height="100%" fill="white" /><text x="10" y="20" class="base">';

        parts[1] = getFirst(tokenId);

        parts[2] = '</text><text x="10" y="40" class="base">';

        parts[3] = getSecond(tokenId);

        parts[4] = '</text><text x="10" y="60" class="base">';

        parts[5] = getThird(tokenId);

        parts[6] = '</text><text x="10" y="80" class="base">';

        parts[7] = getFourth(tokenId);

        parts[8] = '</text><text x="10" y="100" class="base">';

        parts[9] = getFifth(tokenId);

        parts[10] = '</text><text x="10" y="120" class="base">';

        parts[11] = getSixth(tokenId);

        parts[12] = '</text><text x="10" y="140" class="base">';

        parts[13] = getSeventh(tokenId);

        parts[14] = '</text><text x="10" y="160" class="base">';

        parts[15] = getEighth(tokenId);

        parts[16] = '</text></svg>';

        string memory output =
            string(
                abi.encodePacked(
                    parts[0],
                    parts[1],
                    parts[2],
                    parts[3],
                    parts[4],
                    parts[5],
                    parts[6],
                    parts[7],
                    parts[8]
                )
            );
        output = string(
            abi.encodePacked(
                output,
                parts[9],
                parts[10],
                parts[11],
                parts[12],
                parts[13],
                parts[14],
                parts[15],
                parts[16]
            )
        );

        string memory json =
            Base64.encode(
                bytes(
                    string(
                        abi.encodePacked(
                            '{"name": "Traits #',
                            toString(tokenId),
                            '", "description": "Behold! You have befriended your Creatures, and now the time has come to reveal their true nature. Tales randomly generated and stored on-chain, these vignettes foretell the deepest desires of your Creatures.", "image": "data:image/svg+xml;base64,',
                            Base64.encode(bytes(output)),
                            '"}'
                        )
                    )
                )
            );
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }

    function claim(uint256 tokenId) public nonReentrant {
        require(tokenId > 0, 'Token ID invalid');
        require(msg.sender == IERC721(address(LOOT_CREATURES)).ownerOf(tokenId), 'Not Creature Owner');
        _randomHashes[tokenId] = keccak256(abi.encodePacked(block.basefee));
        _safeMint(_msgSender(), tokenId);
    }

    function getHerdRarity(uint256 tokenId) public view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(tokenId, _randomHashes[tokenId]))) % 100;
    }

    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE =
        'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return '';

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
                case 1 {
                    mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
                }
                case 2 {
                    mstore(sub(resultPtr, 1), shl(248, 0x3d))
                }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","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":"uint256","name":"tokenId","type":"uint256"}],"name":"getEighth","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFifth","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFirst","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFourth","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHerdRarity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSecond","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSeventh","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSixth","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getThird","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

613ef8600c90815560056103e090815264416c61732160d81b6104005260809081526104208281526b2a34b6363c96bb30b6363c9760a11b6104405260a052600f6104608181526e2ab73132b634b2bb30b1363297171760891b6104805260c05260116104a08181527048656967682d686f2c206865792d686f2160781b6104c05260e0526104e09182526e4f2073756d6d65722773206461792160881b6105005261010091909152600a610520818152694f75742c20616c61732160b01b61054052610120526105608281527048656967682c206d79206865617274732160781b6105805261014052600e6105a08181526d4d6172727920636f6d652075702160901b6105c052610160526105e08181526d24b73a32b932b9ba34b73397171760911b610600526101805261062091825269576f6e64657266756c2160b01b610640526101a0919091526106608481526b20b99032bc3832b1ba32b21760a11b610680526101c05260086106a081815267596f75206567672160c01b6106c0526101e0526106e08581526b426c6f6f64792068656c6c2160a01b61070052610200526009610720908152682cb7ba903337b7b61760b91b61074052610220526004610760908152634168612160e01b6107805261024052600d6107a08181526c49742063616e6e6f742062652160981b6107c052610260526107e09182526744656172206d652160c01b61080052610280919091526108208181526c476f6f642068656176656e732160981b610840526102a0526012610860908152714265207374696c6c206d792068656172742160701b610880526102c05260136108a09081527f5768617420697320746861742049207365653f000000000000000000000000006108c0526102e05260106108e09081526f4f7574206f66206d792073696768742160801b610900526103005260146109209081527f476f6f642d6d6f72726f7720746f20746865652e00000000000000000000000061094052610320526109608281526d506f6f722043726561747572652160901b61098052610340526109a09081526c486f77206578636974696e672160981b6109c052610360526109e0828152702437bb9036bcb9ba32b934b7bab997171760791b610a005261038052610a209384526b436f756c642069742062653f60a01b610a40526103a093909352610aa0604052610a60908152704f682c20686f77207465727269626c652160781b610a80526103c0526200039a9190601b62001c78565b50604080516104408101825260076104008201818152666465746573747360c81b6104208401528252825180840184526005808252646c6f76657360d81b602083810191909152808501929092528451808601865260068082526561646f72657360d01b828501528587019190915285518087018752600a81526918995c5d59585d1a195960b21b818501526060860152855180870187526008808252677377616c6c6f777360c01b828601526080870191909152865180880188528381526468756e747360d81b8186015260a087015286518088018852838152647365656b7360d81b8186015260c087015286518088018852600b81526a0ccd2ced0e8e640eed2e8d60ab1b8186015260e08701528651808801885260138082527f68617320612076656e6465747461207769746800000000000000000000000000828701526101008801919091528751808901895284815264686174657360d81b818701526101208801528751808901895260128152711bd99d195b881d1a1a5b9adcc818589bdd5d60721b81870152610140880152875180890189528181527f726172656c79207468696e6b732061626f757400000000000000000000000000818701526101608801528751808901895283815265636f7572747360d01b8187015261018088015287518089018952600980825268736572656e6164657360b81b828801526101a08901919091528851808a018a528181526819dc9bdddb1cc8185d60ba1b818801526101c08901528851808a018a5283815267776f72736869707360c01b818801526101e08901528851808a018a529182527f6465737065726174656c792064657369726573000000000000000000000000008287015261020088019190915287518089018952868152667072616973657360c81b818701526102208801528751808901895291825267707261797320746f60c01b828601526102408701919091528651808801885283815264776561727360d81b8186015261026087015286518088018852600f8082526e697320626574726f7468656420746f60881b828701526102808801919091528751808901895292835265616e6765727360d01b838601526102a0870192909252865180880188528581526639b4ba399037b760c91b818601526102c08701528651808801885281815268646973636f7665727360b81b818601526102e08701528651808801885285815266696e73756c747360c81b818601526103008701528651808801885260118152707265636974657320706f6574727920746f60781b8186015261032087015286518088018852601481527f64656d616e6473207061796d656e742066726f6d0000000000000000000000008186015261034087015286518088018852928352646661726d7360d81b8385015261036086019290925285518087018752600d81526c3bb7bab632103234b2903337b960991b8185015261038086015285518087018752938452667265766976657360c81b848401526103a085019390935284518086018652908152683332b0b9ba399037b760b91b818301526103c08401528351808501909452600e84526d697320616464696374656420746f60901b848201526103e08301939093526200084b9290919062001cdc565b5060405180610e4001604052806040518060400160405280600a8152602001696120726970652066696760b01b81525081526020016040518060400160405280600c81526020016b676f6f73656265727269657360a01b8152508152602001604051806040016040528060048152602001636567677360e01b8152508152602001604051806040016040528060098152602001686d757368726f6f6d7360b81b8152508152602001604051806040016040528060028152602001616d6560f01b81525081526020016040518060400160405280600a815260200169073746f6e6520736f75760b41b81525081526020016040518060400160405280600c81526020016b646976696e6520726f62657360a01b815250815260200160405180604001604052806008815260200167736175736167657360c01b815250815260200160405180604001604052806012815260200171686169726c6573732063726561747572657360701b8152508152602001604051806040016040528060048152602001630ccd2e6d60e31b815250815260200160405180604001604052806005815260200164626972647360d81b81525081526020016040518060400160405280600b81526020016a1d1a194818985b9c5d595d60aa1b81525081526020016040518060400160405280600a815260200169706967656f6e2070696560b01b81525081526020016040518060400160405280601781526020017f7377616762656c6c69656420666f6f746c69636b65727300000000000000000081525081526020016040518060400160405280600c81526020016b77696c6c6f7720747265657360a01b81525081526020016040518060400160405280600b81526020016a612072617265207275627960a81b81525081526020016040518060400160405280600c81526020016b1c9bd85cdd081c9858989a5d60a21b81525081526020016040518060400160405280600981526020016868617a656c6e75747360b81b81525081526020016040518060400160405280600f81526020016e30b71037b93730ba329031b430b4b960891b815250815260200160405180604001604052806012815260200171185b8818589b9bdc9b585b081dd85b1b9d5d60721b81525081526020016040518060400160405280600c81526020016b746865206f70656e2073656160a01b815250815260200160405180604001604052806005815260200164726f636b7360d81b81525081526020016040518060400160405280600c81526020016b77696c6c6f7720747265657360a01b81525081526020016040518060400160405280600b81526020016a77616c727573207475736b60a81b81525081526020016040518060400160405280601081526020016f7465617273206f66206120666169727960801b815250815260200160405180604001604052806011815260200170666f7274756e6174652066656c696e657360781b8152508152602001604051806040016040528060038152602001621b5d5960ea1b81525081526020016040518060400160405280600b81526020016a61206861726d6f6e69636160a81b81525081526020016040518060400160405280600c81526020016b646576696c6564206567677360a01b81525081526020016040518060400160405280601081526020016f612074696e7920717561696c2065676760801b81525081526020016040518060400160405280600d81526020016c6120637261636b65642065676760981b81525081526020016040518060400160405280600e81526020016d77686974652074727566666c657360901b81525081526020016040518060400160405280600e81526020016d21b0b9b834b0b71031b0bb34b0b960911b81525081526020016040518060400160405280600d81526020016c2132b63ab3b09031b0bb34b0b960991b81525081526020016040518060400160405280600e81526020016d6120676f6c64656e206170706c6560901b81525081526020016040518060400160405280600e81526020016d626c61636b2074727566666c657360901b81525081526020016040518060400160405280601281526020017161206665617374206f66207065616368657360701b81525081526020016040518060400160405280601481526020017f612073706f6f6e206f662074726f757420726f6500000000000000000000000081525081526020016040518060400160405280600d81526020016c626f696c656420736e61696c7360981b81525081526020016040518060400160405280600c81526020016b73616c74656420736c75677360a01b81525081526020016040518060400160405280601081526020016f6120676f626c6574206f662077696e6560801b81525081526020016040518060400160405280600d81526020016c612043656e747572792065676760981b8152508152602001604051806040016040528060098152602001686d757368726f6f6d7360b81b81525081526020016040518060400160405280600981526020016866726f67206c65677360b81b81525081526020016040518060400160405280600f81526020016e7069636b6c6564206361626261676560881b81525081526020016040518060400160405280600f81526020016e3132b2b31030b7321036baba3a37b760891b81525081526020016040518060400160405280600981526020016862656574207374657760b81b81525081526020016040518060400160405280600d81526020016c626c61636b2070756464696e6760981b81525081526020016040518060400160405280600b81526020016a6372616e6265727269657360a81b81525081526020016040518060400160405280600b81526020016a6f6464206e756d6265727360a81b81525081526020016040518060400160405280600b81526020016a612062616c616c61696b6160a81b81525081526020016040518060400160405280600f81526020016e199bdc989a5919195b88199c9d5a5d608a1b8152508152602001604051806040016040528060048152602001636f61747360e01b815250815260200160405180604001604052806008815260200167706f72726964676560c01b81525081526020016040518060400160405280600e81526020016d0cccae4dacadce8cac840ccd2e6d60931b8152508152602001604051806040016040528060068152602001656e796d70687360d01b8152508152602001604051806040016040528060128152602001711848189d5d1d195c995908189a5cd8dd5a5d60721b81525081526020016040518060400160405280601081526020016f6d6572727920616476656e747572657360801b815250815260200160405180604001604052806008815260200167626167706970657360c01b81525081526020016040518060400160405280601181526020017030903832b93332b1ba10383ab6b835b4b760791b81525081526020016040518060400160405280601081526020016f0c4c2dccecae4e640c2dcc840dac2e6d60831b81525081526020016040518060400160405280601081526020016f746f616420696e2074686520686f6c6560801b81525081526020016040518060400160405280600c81526020016b73706f74746564206469636b60a01b81525081526020016040518060400160405280600d81526020016c0612062726f6b656e206861727609c1b81525081526020016040518060400160405280600c81526020016b612073636f7463682065676760a01b81525081526020016040518060400160405280600881526020016774727566666c657360c01b81525081526020016040518060400160405280600d81526020016c612074727566666c652070696760981b81525081526020016040518060400160405280600a81526020016919985a5c9e48191d5cdd60b21b81525081526020016040518060400160405280601081526020016f6120676f626c6574206f662077696e6560801b81525081526020016040518060400160405280600d81526020016c30903637bb32903837ba34b7b760991b81525081526020016040518060400160405280601481526020017f61207361636b206f6620676f6c6420636f696e73000000000000000000000000815250815260200160405180604001604052806007815260200166309039b0b132b960c91b81525081526020016040518060400160405280600a8152602001696120736f756c6d61746560b01b81525081526020016040518060400160405280600e81526020016d73747261776265727279206a616d60901b81525081526020016040518060400160405280601081526020016f612076616e696c6c612073706f6e676560801b81525081526020016040518060400160405280601481526020017f6120637570206f66205065727369616e2074656100000000000000000000000081525081526020016040518060400160405280600b81526020016a30903437b732bcb1b7b6b160a91b81525081526020016040518060400160405280600981526020016863686573746e75747360b81b8152508152602001604051806040016040528060098152602001686d61726d616c61646560b81b815250815260200160405180604001604052806008815260200167726f7365206a616d60c01b81525081526020016040518060400160405280600e81526020016d626c61636b6265727279206a616d60901b81525081526020016040518060400160405280600d81526020016c1b195b5bdb8818dd5cdd185c99609a1b81525081526020016040518060400160405280600c81526020016b3832b0b1b4103732b1ba30b960a11b81525081526020016040518060400160405280601481526020017f6120676f626c6574206f6620616d62726f7369610000000000000000000000008152508152602001604051806040016040528060088152602001677761726d20616c6560c01b81525081526020016040518060400160405280600f81526020016e18481d985b1a585b9d081cdd195959608a1b81525081526020016040518060400160405280601081526020016f6167656420676f61742773206d696c6b60801b81525081526020016040518060400160405280600c81526020016b73686565702773206d696c6b60a01b81525081526020016040518060400160405280600a8152602001691a1bdb995e481b59585960b21b81525081526020016040518060400160405280601381526020017f6120637570206f662067696e6765722074656100000000000000000000000000815250815260200160405180604001604052806008815260200167616273696e74686560c01b81525081526020016040518060400160405280600f81526020016e6269747465722062726f63636f6c6960881b815250815260200160405180604001604052806008815260200167636162626167657360c01b8152508152602001604051806040016040528060068152602001656f6c6976657360d01b81525081526020016040518060400160405280600a815260200169185b88185c1c9a58dbdd60b21b81525081526020016040518060400160405280600f81526020016e707572706c6520636162626167657360881b81525081526020016040518060400160405280600c81526020016b61207375676172206375626560a01b81525081526020016040518060400160405280601081526020016f1cdbdb59481cdbd9d9de48189c99585960821b81525081526020016040518060400160405280600d81526020016c30903632b39037b3103630b6b160991b81525081526020016040518060400160405280600c81526020016b61207475726b6579206c656760a01b81525081526020016040518060400160405280600c81526020016b6120736f757220677261706560a01b815250815260200160405180604001604052806009815260200168736f7572206d696c6b60b81b81525081526020016040518060400160405280600a8152602001691b195b5bdb8818dd5c9960b21b81525081526020016040518060400160405280601581526020017f612068616e6466756c206f6620637269636b657473000000000000000000000081525081526020016040518060400160405280600d81526020016c70726563696f75732067656d7360981b81525081526020016040518060400160405280600d81526020016c18481d1a5b9e48185b1b5bdb99609a1b81525081526020016040518060400160405280601081526020016f616e20616e6369656e74206f6c69766560801b81525081526020016040518060400160405280600f81526020016e626f696c656420706f7461746f657360881b81525081526020016040518060400160405280600a81526020016918481d1a5b9e481a185d60b21b81525081526020016040518060400160405280601081526020016f6120737461636b206f6620626f6f6b7360801b81525081526020016040518060400160405280600f81526020016e61207175696c6c20616e6420696e6b60881b81525081526020016040518060400160405280600f81526020016e3090313937b5b2b7103b34b7b634b760891b81525081526020016040518060400160405280600d81526020016c6c75636b7920636c6f7665727360981b81525081526020016040518060400160405280600f81526020016e6761726c69632070616e63616b657360881b815250815250601090607262001b8592919062001d2e565b5034801562001b9357600080fd5b50604080518082018252601781527f446573697265732028666f72204372656174757265732900000000000000000060208083019182528351808501909452600684526510d49150551160d21b90840152815191929162001bf79160009162001d80565b50805162001c0d90600190602084019062001d80565b50506001600a555062001c203362001c26565b62001ec2565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562001cca579160200282015b8281111562001cca578251805162001cb991849160209091019062001d80565b509160200191906001019062001c99565b5062001cd892915062001e0b565b5090565b82805482825590600052602060002090810192821562001cca579160200282015b8281111562001cca578251805162001d1d91849160209091019062001d80565b509160200191906001019062001cfd565b82805482825590600052602060002090810192821562001cca579160200282015b8281111562001cca578251805162001d6f91849160209091019062001d80565b509160200191906001019062001d4f565b82805462001d8e9062001e85565b90600052602060002090601f01602090048101928262001db2576000855562001dfd565b82601f1062001dcd57805160ff191683800117855562001dfd565b8280016001018555821562001dfd579182015b8281111562001dfd57825182559160200191906001019062001de0565b5062001cd892915062001e2c565b8082111562001cd857600062001e22828262001e43565b5060010162001e0b565b5b8082111562001cd8576000815560010162001e2d565b50805462001e519062001e85565b6000825580601f1062001e62575050565b601f01602090049060005260206000209081019062001e82919062001e2c565b50565b600181811c9082168062001e9a57607f821691505b6020821081141562001ebc57634e487b7160e01b600052602260045260246000fd5b50919050565b612edb8062001ed26000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a08231116101045780639ec29b82116100a2578063c87b56dd11610071578063c87b56dd146103c7578063e985e9c5146103da578063f2fde38b14610416578063fa7f71b11461042957600080fd5b80639ec29b821461037b578063a22cb4651461038e578063af116f64146103a1578063b88d4fde146103b457600080fd5b80638c921d06116100de5780638c921d061461033c5780638da5cb5b1461034f5780638e1c0a021461036057806395d89b411461037357600080fd5b806370a082311461030e578063715018a6146103215780638aa001fc1461032957600080fd5b80632f745c591161017157806342d9d8761161014b57806342d9d876146102c25780634f6ccce7146102d55780636352211e146102e8578063667386f7146102fb57600080fd5b80632f745c5914610289578063379607f51461029c57806342842e0e146102af57600080fd5b8063095ea7b3116101ad578063095ea7b31461023c5780630b2503a61461025157806318160ddd1461026457806323b872dd1461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e23660046123cd565b61043c565b60405190151581526020015b60405180910390f35b610204610467565b6040516101f391906129ac565b61022461021f36600461247e565b6104f9565b6040516001600160a01b0390911681526020016101f3565b61024f61024a3660046123a1565b610593565b005b61020461025f36600461247e565b6106a9565b6008545b6040519081526020016101f3565b61024f61028436600461227e565b6106d4565b6102686102973660046123a1565b610705565b61024f6102aa36600461247e565b61079b565b61024f6102bd36600461227e565b61094d565b6102046102d036600461247e565b610968565b6102686102e336600461247e565b610993565b6102246102f636600461247e565b610a26565b61020461030936600461247e565b610a9d565b61026861031c366004612204565b610ac8565b61024f610b4f565b61020461033736600461247e565b610bb5565b61020461034a36600461247e565b610be1565b600b546001600160a01b0316610224565b61020461036e36600461247e565b610c0e565b610204610c3a565b61020461038936600461247e565b610c49565b61024f61039c36600461236e565b610c75565b6102686103af36600461247e565b610d3a565b61024f6103c23660046122bf565b610d81565b6102046103d536600461247e565b610db9565b6101e76103e8366004612245565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61024f610424366004612204565b611061565b61020461043736600461247e565b61112c565b60006001600160e01b0319821663780e9d6360e01b1480610461575061046182611157565b92915050565b60606000805461047690612b49565b80601f01602080910402602001604051908101604052809291908181526020018280546104a290612b49565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061059e82610a26565b9050806001600160a01b0316836001600160a01b0316141561060c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161056e565b336001600160a01b0382161480610628575061062881336103e8565b61069a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161056e565b6106a483836111a7565b505050565b6060610461826040518060400160405280600581526020016408c928ca8960db1b8152506005611215565b6106de3382611276565b6106fa5760405162461bcd60e51b815260040161056e90612a11565b6106a4838383611369565b600061071083610ac8565b82106107725760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161056e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a5414156107ee5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161056e565b6002600a55806108335760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b604482015260640161056e565b6040516331a9108f60e11b81526004810182905273b89a71f1abe992dc71349fc782b393da2b6fb4c290636352211e9060240160206040518083038186803b15801561087e57600080fd5b505afa158015610892573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b69190612228565b6001600160a01b0316336001600160a01b03161461090b5760405162461bcd60e51b81526020600482015260126024820152712737ba1021b932b0ba3ab9329027bbb732b960711b604482015260640161056e565b604080514860208201520160408051808303601f1901815291815281516020928301206000848152600d9093529120556109453382611514565b506001600a55565b6106a483838360405180602001604052806000815250610d81565b606061046182604051806040016040528060058152602001640a692b0a8960db1b8152506006611215565b600061099e60085490565b8210610a015760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161056e565b60088281548110610a1457610a14612bf5565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161056e565b6060610461826040518060400160405280600581526020016411925494d560da1b8152506001611215565b60006001600160a01b038216610b335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161056e565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610ba95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056e565b610bb36000611532565b565b6060610461826040518060400160405280600681526020016514d150d3d39160d21b8152506002611215565b606061046182604051806040016040528060078152602001660a68aac8a9ca8960cb1b8152506007611215565b6060610461826040518060400160405280600681526020016508a928e90a8960d31b8152506008611215565b60606001805461047690612b49565b6060610461826040518060400160405280600681526020016508c9eaaa4a8960d31b8152506004611215565b6001600160a01b038216331415610cce5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161056e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152600d60209081526040808320548151928301859052908201526064906060016040516020818303038152906040528051906020012060001c6104619190612b9f565b610d8b3383611276565b610da75760405162461bcd60e51b815260040161056e90612a11565b610db384848484611584565b50505050565b6060610dc36121dc565b60405180610120016040528060fd8152602001612c7560fd91398152610de883610a9d565b8160016020020181905250604051806060016040528060288152602001612e7e602891396040820152610e1a83610bb5565b6060808301919091526040805191820190526028808252612c4d60208301396080820152610e478361112c565b60a082015260408051606081019091526028808252612dc4602083013960c0820152610e7283610c49565b60e082015260408051606081019091526029808252612dec6020830139610100820152610e9e836106a9565b61012082015260408051606081019091526029808252612d9b6020830139610140820152610ecb83610968565b61016082015260408051606081019091526029808252612e156020830139610180820152610ef883610be1565b6101a082015260408051606081019091526029808252612d7260208301396101c0820152610f2583610c0e565b6101e0820152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a610f959a9091016125ca565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950610fe8988a98906020016125ca565b60405160208183030381529060405290506000611035611007866115b7565b611010846116b5565b6040516020016110219291906126bc565b6040516020818303038152906040526116b5565b905080604051602001611048919061292a565b60408051601f1981840301815291905295945050505050565b600b546001600160a01b031633146110bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056e565b6001600160a01b0381166111205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161056e565b61112981611532565b50565b60606104618260405180604001604052806005815260200164151212549160da1b8152506003611215565b60006001600160e01b031982166380ac58cd60e01b148061118857506001600160e01b03198216635b5e139f60e01b145b8061046157506301ffc9a760e01b6001600160e01b0319831614610461565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111dc82610a26565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060600061122485858561181b565b90505b60538151111561126e57838051906020012060405160200161124b91815260200190565b604051602081830303815290604052935061126785858561181b565b9050611227565b949350505050565b6000818152600260205260408120546001600160a01b03166112ef5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161056e565b60006112fa83610a26565b9050806001600160a01b0316846001600160a01b031614806113355750836001600160a01b031661132a846104f9565b6001600160a01b0316145b8061126e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661126e565b826001600160a01b031661137c82610a26565b6001600160a01b0316146113e45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161056e565b6001600160a01b0382166114465760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161056e565b611451838383611a3c565b61145c6000826111a7565b6001600160a01b0383166000908152600360205260408120805460019290611485908490612b06565b90915550506001600160a01b03821660009081526003602052604081208054600192906114b3908490612abb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61152e828260405180602001604052806000815250611af4565b5050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61158f848484611369565b61159b84848484611b27565b610db35760405162461bcd60e51b815260040161056e906129bf565b6060816115db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561160557806115ef81612b84565b91506115fe9050600a83612ad3565b91506115df565b60008167ffffffffffffffff81111561162057611620612c0b565b6040519080825280601f01601f19166020018201604052801561164a576020820181803683370190505b5090505b841561126e5761165f600183612b06565b915061166c600a86612b9f565b611677906030612abb565b60f81b81838151811061168c5761168c612bf5565b60200101906001600160f81b031916908160001a9053506116ae600a86612ad3565b945061164e565b8051606090806116d5575050604080516020810190915260008152919050565b600060036116e4836002612abb565b6116ee9190612ad3565b6116f9906004612ae7565b90506000611708826020612abb565b67ffffffffffffffff81111561172057611720612c0b565b6040519080825280601f01601f19166020018201604052801561174a576020820181803683370190505b5090506000604051806060016040528060408152602001612e3e604091399050600181016020830160005b868110156117d6576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611775565b5060038606600181146117f057600281146118015761180d565b613d3d60f01b60011983015261180d565b603d60f81b6000198301525b505050918152949350505050565b606060006118628461182c876115b7565b6000888152600d602090815260409182902054915161184e9493929101612595565b604051602081830303815290604052611c34565b905060006118708685611c65565b905060606000611881606485612b9f565b9050605f811115611962576000600c548561189c9190612b9f565b6118a7906001612abb565b905060006118b58289611c65565b600f805491925086916118c89089612b9f565b815481106118d8576118d8612bf5565b90600052602060002001826040516020016118f593929190612851565b6040516020818303038152906040529350826063141561195b57600e805461191d9088612b9f565b8154811061192d5761192d612bf5565b906000526020600020018460405160200161194992919061268a565b60405160208183030381529060405293505b5050611a31565b600f80548491906119739087612b9f565b8154811061198357611983612bf5565b90600052602060002001601080805490508761199f9190612b9f565b815481106119af576119af612bf5565b906000526020600020016040516020016119cb939291906128c5565b60405160208183030381529060405291506023811115611a3157600e80546119f39086612b9f565b81548110611a0357611a03612bf5565b9060005260206000200182604051602001611a1f92919061268a565b60405160208183030381529060405291505b509695505050505050565b6001600160a01b038316611a9757611a9281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611aba565b816001600160a01b0316836001600160a01b031614611aba57611aba8382611efe565b6001600160a01b038216611ad1576106a481611f9b565b826001600160a01b0316826001600160a01b0316146106a4576106a4828261204a565b611afe838361208e565b611b0b6000848484611b27565b6106a45760405162461bcd60e51b815260040161056e906129bf565b60006001600160a01b0384163b15611c2957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b6b90339089908890889060040161296f565b602060405180830381600087803b158015611b8557600080fd5b505af1925050508015611bb5575060408051601f3d908101601f19168201909252611bb2918101906123ea565b60015b611c0f573d808015611be3576040519150601f19603f3d011682016040523d82523d6000602084013e611be8565b606091505b508051611c075760405162461bcd60e51b815260040161056e906129bf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061126e565b506001949350505050565b600081604051602001611c479190612579565b60408051601f19818403018152919052805160209091012092915050565b60608160011415611cff5760405163667386f760e01b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c29063667386f7906024015b60006040518083038186803b158015611cbc57600080fd5b505afa158015611cd0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cf89190810190612407565b9050610461565b8160021415611d40576040516322a8007f60e21b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290638aa001fc90602401611ca4565b8160031415611d815760405163fa7f71b160e01b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c29063fa7f71b190602401611ca4565b8160041415611dc257604051634f614dc160e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290639ec29b8290602401611ca4565b8160051415611e035760405163059281d360e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290630b2503a690602401611ca4565b8160061415611e445760405163216cec3b60e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c2906342d9d87690602401611ca4565b8160071415611e85576040516346490e8360e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290638c921d0690602401611ca4565b8160081415611ec65760405163470e050160e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290638e1c0a0290602401611ca4565b60405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b604482015260640161056e565b60006001611f0b84610ac8565b611f159190612b06565b600083815260076020526040902054909150808214611f68576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611fad90600190612b06565b60008381526009602052604081205460088054939450909284908110611fd557611fd5612bf5565b906000526020600020015490508060088381548110611ff657611ff6612bf5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061202e5761202e612bdf565b6001900381819060005260206000200160009055905550505050565b600061205583610ac8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166120e45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161056e565b6000818152600260205260409020546001600160a01b0316156121495760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161056e565b61215560008383611a3c565b6001600160a01b038216600090815260036020526040812080546001929061217e908490612abb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061022001604052806011905b60608152602001906001900390816121ec5790505090565b60006020828403121561221657600080fd5b813561222181612c21565b9392505050565b60006020828403121561223a57600080fd5b815161222181612c21565b6000806040838503121561225857600080fd5b823561226381612c21565b9150602083013561227381612c21565b809150509250929050565b60008060006060848603121561229357600080fd5b833561229e81612c21565b925060208401356122ae81612c21565b929592945050506040919091013590565b600080600080608085870312156122d557600080fd5b84356122e081612c21565b935060208501356122f081612c21565b925060408501359150606085013567ffffffffffffffff81111561231357600080fd5b8501601f8101871361232457600080fd5b803561233761233282612a93565b612a62565b81815288602083850101111561234c57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561238157600080fd5b823561238c81612c21565b91506020830135801515811461227357600080fd5b600080604083850312156123b457600080fd5b82356123bf81612c21565b946020939093013593505050565b6000602082840312156123df57600080fd5b813561222181612c36565b6000602082840312156123fc57600080fd5b815161222181612c36565b60006020828403121561241957600080fd5b815167ffffffffffffffff81111561243057600080fd5b8201601f8101841361244157600080fd5b805161244f61233282612a93565b81815285602083850101111561246457600080fd5b612475826020830160208601612b1d565b95945050505050565b60006020828403121561249057600080fd5b5035919050565b600081518084526124af816020860160208601612b1d565b601f01601f19169290920160200192915050565b600081516124d5818560208601612b1d565b9290920192915050565b8054600090600181811c90808316806124f957607f831692505b602080841082141561251b57634e487b7160e01b600052602260045260246000fd5b81801561252f57600181146125405761256d565b60ff1986168952848901965061256d565b60008881526020902060005b868110156125655781548b82015290850190830161254c565b505084890196505b50505050505092915050565b6000825161258b818460208701612b1d565b9190910192915050565b600084516125a7818460208901612b1d565b8451908301906125bb818360208901612b1d565b01928352505060200192915050565b60008a516125dc818460208f01612b1d565b8a516125ee8183860160208f01612b1d565b8a519184010190612603818360208e01612b1d565b89516126158183850160208e01612b1d565b895192909101019061262b818360208c01612b1d565b875161263d8183850160208c01612b1d565b8751929091010190612653818360208a01612b1d565b8551910190612666818360208901612b1d565b84516126788183850160208901612b1d565b9101019b9a5050505050505050505050565b600061269682856124df565b600160fd1b815283516126b0816001840160208801612b1d565b01600101949350505050565b717b226e616d65223a2022547261697473202360701b815282516000906126ea816012850160208801612b1d565b7f222c20226465736372697074696f6e223a20224265686f6c642120596f7520686012918401918201527f617665206265667269656e64656420796f7572204372656174757265732c206160328201527f6e64206e6f77207468652074696d652068617320636f6d6520746f207265766560528201527f616c2074686569722074727565206e61747572652e2054616c65732072616e6460728201527f6f6d6c792067656e65726174656420616e642073746f726564206f6e2d63686160928201527f696e2c207468657365207669676e657474657320666f726574656c6c2074686560b28201527f20646565706573742064657369726573206f6620796f7572204372656174757260d28201527f65732e222c2022696d616765223a2022646174613a696d6167652f7376672b7860f2820152691b5b0ed8985cd94d8d0b60b21b61011282015261247561284361011c8301866124c3565b61227d60f01b815260020190565b634d79205b60e01b815260008451612870816004850160208901612b1d565b6102e960f51b60049184019182015261288c60068201866124df565b905061205b60f01b815283516128a9816002840160208801612b1d565b612e9760f11b6002929091019182015260040195945050505050565b634d79205b60e01b8152600084516128e4816004850160208901612b1d565b6102e960f51b60049184019182015261290060068201866124df565b9050600160fd1b815261291660018201856124df565b601760f91b81526001019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161296281601d850160208701612b1d565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129a290830184612497565b9695505050505050565b6020815260006122216020830184612497565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612a8b57612a8b612c0b565b604052919050565b600067ffffffffffffffff821115612aad57612aad612c0b565b50601f01601f191660200190565b60008219821115612ace57612ace612bb3565b500190565b600082612ae257612ae2612bc9565b500490565b6000816000190483118215151615612b0157612b01612bb3565b500290565b600082821015612b1857612b18612bb3565b500390565b60005b83811015612b38578181015183820152602001612b20565b83811115610db35750506000910152565b600181811c90821680612b5d57607f821691505b60208210811415612b7e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b9857612b98612bb3565b5060010190565b600082612bae57612bae612bc9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461112957600080fd5b6001600160e01b03198116811461112957600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302036353020333530223e3c7374796c653e2e62617365207b2066696c6c3a20626c61636b3b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313370783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22776869746522202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea26469706673582212202742d24f5ef61e2587ec58e7e0c7c778476128de690379bc20463fe45cf6b56c64736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a08231116101045780639ec29b82116100a2578063c87b56dd11610071578063c87b56dd146103c7578063e985e9c5146103da578063f2fde38b14610416578063fa7f71b11461042957600080fd5b80639ec29b821461037b578063a22cb4651461038e578063af116f64146103a1578063b88d4fde146103b457600080fd5b80638c921d06116100de5780638c921d061461033c5780638da5cb5b1461034f5780638e1c0a021461036057806395d89b411461037357600080fd5b806370a082311461030e578063715018a6146103215780638aa001fc1461032957600080fd5b80632f745c591161017157806342d9d8761161014b57806342d9d876146102c25780634f6ccce7146102d55780636352211e146102e8578063667386f7146102fb57600080fd5b80632f745c5914610289578063379607f51461029c57806342842e0e146102af57600080fd5b8063095ea7b3116101ad578063095ea7b31461023c5780630b2503a61461025157806318160ddd1461026457806323b872dd1461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e23660046123cd565b61043c565b60405190151581526020015b60405180910390f35b610204610467565b6040516101f391906129ac565b61022461021f36600461247e565b6104f9565b6040516001600160a01b0390911681526020016101f3565b61024f61024a3660046123a1565b610593565b005b61020461025f36600461247e565b6106a9565b6008545b6040519081526020016101f3565b61024f61028436600461227e565b6106d4565b6102686102973660046123a1565b610705565b61024f6102aa36600461247e565b61079b565b61024f6102bd36600461227e565b61094d565b6102046102d036600461247e565b610968565b6102686102e336600461247e565b610993565b6102246102f636600461247e565b610a26565b61020461030936600461247e565b610a9d565b61026861031c366004612204565b610ac8565b61024f610b4f565b61020461033736600461247e565b610bb5565b61020461034a36600461247e565b610be1565b600b546001600160a01b0316610224565b61020461036e36600461247e565b610c0e565b610204610c3a565b61020461038936600461247e565b610c49565b61024f61039c36600461236e565b610c75565b6102686103af36600461247e565b610d3a565b61024f6103c23660046122bf565b610d81565b6102046103d536600461247e565b610db9565b6101e76103e8366004612245565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61024f610424366004612204565b611061565b61020461043736600461247e565b61112c565b60006001600160e01b0319821663780e9d6360e01b1480610461575061046182611157565b92915050565b60606000805461047690612b49565b80601f01602080910402602001604051908101604052809291908181526020018280546104a290612b49565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061059e82610a26565b9050806001600160a01b0316836001600160a01b0316141561060c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161056e565b336001600160a01b0382161480610628575061062881336103e8565b61069a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161056e565b6106a483836111a7565b505050565b6060610461826040518060400160405280600581526020016408c928ca8960db1b8152506005611215565b6106de3382611276565b6106fa5760405162461bcd60e51b815260040161056e90612a11565b6106a4838383611369565b600061071083610ac8565b82106107725760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161056e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a5414156107ee5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161056e565b6002600a55806108335760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b604482015260640161056e565b6040516331a9108f60e11b81526004810182905273b89a71f1abe992dc71349fc782b393da2b6fb4c290636352211e9060240160206040518083038186803b15801561087e57600080fd5b505afa158015610892573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b69190612228565b6001600160a01b0316336001600160a01b03161461090b5760405162461bcd60e51b81526020600482015260126024820152712737ba1021b932b0ba3ab9329027bbb732b960711b604482015260640161056e565b604080514860208201520160408051808303601f1901815291815281516020928301206000848152600d9093529120556109453382611514565b506001600a55565b6106a483838360405180602001604052806000815250610d81565b606061046182604051806040016040528060058152602001640a692b0a8960db1b8152506006611215565b600061099e60085490565b8210610a015760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161056e565b60088281548110610a1457610a14612bf5565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161056e565b6060610461826040518060400160405280600581526020016411925494d560da1b8152506001611215565b60006001600160a01b038216610b335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161056e565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610ba95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056e565b610bb36000611532565b565b6060610461826040518060400160405280600681526020016514d150d3d39160d21b8152506002611215565b606061046182604051806040016040528060078152602001660a68aac8a9ca8960cb1b8152506007611215565b6060610461826040518060400160405280600681526020016508a928e90a8960d31b8152506008611215565b60606001805461047690612b49565b6060610461826040518060400160405280600681526020016508c9eaaa4a8960d31b8152506004611215565b6001600160a01b038216331415610cce5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161056e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152600d60209081526040808320548151928301859052908201526064906060016040516020818303038152906040528051906020012060001c6104619190612b9f565b610d8b3383611276565b610da75760405162461bcd60e51b815260040161056e90612a11565b610db384848484611584565b50505050565b6060610dc36121dc565b60405180610120016040528060fd8152602001612c7560fd91398152610de883610a9d565b8160016020020181905250604051806060016040528060288152602001612e7e602891396040820152610e1a83610bb5565b6060808301919091526040805191820190526028808252612c4d60208301396080820152610e478361112c565b60a082015260408051606081019091526028808252612dc4602083013960c0820152610e7283610c49565b60e082015260408051606081019091526029808252612dec6020830139610100820152610e9e836106a9565b61012082015260408051606081019091526029808252612d9b6020830139610140820152610ecb83610968565b61016082015260408051606081019091526029808252612e156020830139610180820152610ef883610be1565b6101a082015260408051606081019091526029808252612d7260208301396101c0820152610f2583610c0e565b6101e0820152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a610f959a9091016125ca565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950610fe8988a98906020016125ca565b60405160208183030381529060405290506000611035611007866115b7565b611010846116b5565b6040516020016110219291906126bc565b6040516020818303038152906040526116b5565b905080604051602001611048919061292a565b60408051601f1981840301815291905295945050505050565b600b546001600160a01b031633146110bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056e565b6001600160a01b0381166111205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161056e565b61112981611532565b50565b60606104618260405180604001604052806005815260200164151212549160da1b8152506003611215565b60006001600160e01b031982166380ac58cd60e01b148061118857506001600160e01b03198216635b5e139f60e01b145b8061046157506301ffc9a760e01b6001600160e01b0319831614610461565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111dc82610a26565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060600061122485858561181b565b90505b60538151111561126e57838051906020012060405160200161124b91815260200190565b604051602081830303815290604052935061126785858561181b565b9050611227565b949350505050565b6000818152600260205260408120546001600160a01b03166112ef5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161056e565b60006112fa83610a26565b9050806001600160a01b0316846001600160a01b031614806113355750836001600160a01b031661132a846104f9565b6001600160a01b0316145b8061126e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661126e565b826001600160a01b031661137c82610a26565b6001600160a01b0316146113e45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161056e565b6001600160a01b0382166114465760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161056e565b611451838383611a3c565b61145c6000826111a7565b6001600160a01b0383166000908152600360205260408120805460019290611485908490612b06565b90915550506001600160a01b03821660009081526003602052604081208054600192906114b3908490612abb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61152e828260405180602001604052806000815250611af4565b5050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61158f848484611369565b61159b84848484611b27565b610db35760405162461bcd60e51b815260040161056e906129bf565b6060816115db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561160557806115ef81612b84565b91506115fe9050600a83612ad3565b91506115df565b60008167ffffffffffffffff81111561162057611620612c0b565b6040519080825280601f01601f19166020018201604052801561164a576020820181803683370190505b5090505b841561126e5761165f600183612b06565b915061166c600a86612b9f565b611677906030612abb565b60f81b81838151811061168c5761168c612bf5565b60200101906001600160f81b031916908160001a9053506116ae600a86612ad3565b945061164e565b8051606090806116d5575050604080516020810190915260008152919050565b600060036116e4836002612abb565b6116ee9190612ad3565b6116f9906004612ae7565b90506000611708826020612abb565b67ffffffffffffffff81111561172057611720612c0b565b6040519080825280601f01601f19166020018201604052801561174a576020820181803683370190505b5090506000604051806060016040528060408152602001612e3e604091399050600181016020830160005b868110156117d6576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611775565b5060038606600181146117f057600281146118015761180d565b613d3d60f01b60011983015261180d565b603d60f81b6000198301525b505050918152949350505050565b606060006118628461182c876115b7565b6000888152600d602090815260409182902054915161184e9493929101612595565b604051602081830303815290604052611c34565b905060006118708685611c65565b905060606000611881606485612b9f565b9050605f811115611962576000600c548561189c9190612b9f565b6118a7906001612abb565b905060006118b58289611c65565b600f805491925086916118c89089612b9f565b815481106118d8576118d8612bf5565b90600052602060002001826040516020016118f593929190612851565b6040516020818303038152906040529350826063141561195b57600e805461191d9088612b9f565b8154811061192d5761192d612bf5565b906000526020600020018460405160200161194992919061268a565b60405160208183030381529060405293505b5050611a31565b600f80548491906119739087612b9f565b8154811061198357611983612bf5565b90600052602060002001601080805490508761199f9190612b9f565b815481106119af576119af612bf5565b906000526020600020016040516020016119cb939291906128c5565b60405160208183030381529060405291506023811115611a3157600e80546119f39086612b9f565b81548110611a0357611a03612bf5565b9060005260206000200182604051602001611a1f92919061268a565b60405160208183030381529060405291505b509695505050505050565b6001600160a01b038316611a9757611a9281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611aba565b816001600160a01b0316836001600160a01b031614611aba57611aba8382611efe565b6001600160a01b038216611ad1576106a481611f9b565b826001600160a01b0316826001600160a01b0316146106a4576106a4828261204a565b611afe838361208e565b611b0b6000848484611b27565b6106a45760405162461bcd60e51b815260040161056e906129bf565b60006001600160a01b0384163b15611c2957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b6b90339089908890889060040161296f565b602060405180830381600087803b158015611b8557600080fd5b505af1925050508015611bb5575060408051601f3d908101601f19168201909252611bb2918101906123ea565b60015b611c0f573d808015611be3576040519150601f19603f3d011682016040523d82523d6000602084013e611be8565b606091505b508051611c075760405162461bcd60e51b815260040161056e906129bf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061126e565b506001949350505050565b600081604051602001611c479190612579565b60408051601f19818403018152919052805160209091012092915050565b60608160011415611cff5760405163667386f760e01b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c29063667386f7906024015b60006040518083038186803b158015611cbc57600080fd5b505afa158015611cd0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cf89190810190612407565b9050610461565b8160021415611d40576040516322a8007f60e21b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290638aa001fc90602401611ca4565b8160031415611d815760405163fa7f71b160e01b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c29063fa7f71b190602401611ca4565b8160041415611dc257604051634f614dc160e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290639ec29b8290602401611ca4565b8160051415611e035760405163059281d360e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290630b2503a690602401611ca4565b8160061415611e445760405163216cec3b60e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c2906342d9d87690602401611ca4565b8160071415611e85576040516346490e8360e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290638c921d0690602401611ca4565b8160081415611ec65760405163470e050160e11b81526004810184905273b89a71f1abe992dc71349fc782b393da2b6fb4c290638e1c0a0290602401611ca4565b60405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b604482015260640161056e565b60006001611f0b84610ac8565b611f159190612b06565b600083815260076020526040902054909150808214611f68576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611fad90600190612b06565b60008381526009602052604081205460088054939450909284908110611fd557611fd5612bf5565b906000526020600020015490508060088381548110611ff657611ff6612bf5565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061202e5761202e612bdf565b6001900381819060005260206000200160009055905550505050565b600061205583610ac8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166120e45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161056e565b6000818152600260205260409020546001600160a01b0316156121495760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161056e565b61215560008383611a3c565b6001600160a01b038216600090815260036020526040812080546001929061217e908490612abb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061022001604052806011905b60608152602001906001900390816121ec5790505090565b60006020828403121561221657600080fd5b813561222181612c21565b9392505050565b60006020828403121561223a57600080fd5b815161222181612c21565b6000806040838503121561225857600080fd5b823561226381612c21565b9150602083013561227381612c21565b809150509250929050565b60008060006060848603121561229357600080fd5b833561229e81612c21565b925060208401356122ae81612c21565b929592945050506040919091013590565b600080600080608085870312156122d557600080fd5b84356122e081612c21565b935060208501356122f081612c21565b925060408501359150606085013567ffffffffffffffff81111561231357600080fd5b8501601f8101871361232457600080fd5b803561233761233282612a93565b612a62565b81815288602083850101111561234c57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561238157600080fd5b823561238c81612c21565b91506020830135801515811461227357600080fd5b600080604083850312156123b457600080fd5b82356123bf81612c21565b946020939093013593505050565b6000602082840312156123df57600080fd5b813561222181612c36565b6000602082840312156123fc57600080fd5b815161222181612c36565b60006020828403121561241957600080fd5b815167ffffffffffffffff81111561243057600080fd5b8201601f8101841361244157600080fd5b805161244f61233282612a93565b81815285602083850101111561246457600080fd5b612475826020830160208601612b1d565b95945050505050565b60006020828403121561249057600080fd5b5035919050565b600081518084526124af816020860160208601612b1d565b601f01601f19169290920160200192915050565b600081516124d5818560208601612b1d565b9290920192915050565b8054600090600181811c90808316806124f957607f831692505b602080841082141561251b57634e487b7160e01b600052602260045260246000fd5b81801561252f57600181146125405761256d565b60ff1986168952848901965061256d565b60008881526020902060005b868110156125655781548b82015290850190830161254c565b505084890196505b50505050505092915050565b6000825161258b818460208701612b1d565b9190910192915050565b600084516125a7818460208901612b1d565b8451908301906125bb818360208901612b1d565b01928352505060200192915050565b60008a516125dc818460208f01612b1d565b8a516125ee8183860160208f01612b1d565b8a519184010190612603818360208e01612b1d565b89516126158183850160208e01612b1d565b895192909101019061262b818360208c01612b1d565b875161263d8183850160208c01612b1d565b8751929091010190612653818360208a01612b1d565b8551910190612666818360208901612b1d565b84516126788183850160208901612b1d565b9101019b9a5050505050505050505050565b600061269682856124df565b600160fd1b815283516126b0816001840160208801612b1d565b01600101949350505050565b717b226e616d65223a2022547261697473202360701b815282516000906126ea816012850160208801612b1d565b7f222c20226465736372697074696f6e223a20224265686f6c642120596f7520686012918401918201527f617665206265667269656e64656420796f7572204372656174757265732c206160328201527f6e64206e6f77207468652074696d652068617320636f6d6520746f207265766560528201527f616c2074686569722074727565206e61747572652e2054616c65732072616e6460728201527f6f6d6c792067656e65726174656420616e642073746f726564206f6e2d63686160928201527f696e2c207468657365207669676e657474657320666f726574656c6c2074686560b28201527f20646565706573742064657369726573206f6620796f7572204372656174757260d28201527f65732e222c2022696d616765223a2022646174613a696d6167652f7376672b7860f2820152691b5b0ed8985cd94d8d0b60b21b61011282015261247561284361011c8301866124c3565b61227d60f01b815260020190565b634d79205b60e01b815260008451612870816004850160208901612b1d565b6102e960f51b60049184019182015261288c60068201866124df565b905061205b60f01b815283516128a9816002840160208801612b1d565b612e9760f11b6002929091019182015260040195945050505050565b634d79205b60e01b8152600084516128e4816004850160208901612b1d565b6102e960f51b60049184019182015261290060068201866124df565b9050600160fd1b815261291660018201856124df565b601760f91b81526001019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161296281601d850160208701612b1d565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129a290830184612497565b9695505050505050565b6020815260006122216020830184612497565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612a8b57612a8b612c0b565b604052919050565b600067ffffffffffffffff821115612aad57612aad612c0b565b50601f01601f191660200190565b60008219821115612ace57612ace612bb3565b500190565b600082612ae257612ae2612bc9565b500490565b6000816000190483118215151615612b0157612b01612bb3565b500290565b600082821015612b1857612b18612bb3565b500390565b60005b83811015612b38578181015183820152602001612b20565b83811115610db35750506000910152565b600181811c90821680612b5d57607f821691505b60208210811415612b7e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b9857612b98612bb3565b5060010190565b600082612bae57612bae612bc9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461112957600080fd5b6001600160e01b03198116811461112957600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302036353020333530223e3c7374796c653e2e62617365207b2066696c6c3a20626c61636b3b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313370783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22776869746522202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea26469706673582212202742d24f5ef61e2587ec58e7e0c7c778476128de690379bc20463fe45cf6b56c64736f6c63430008070033

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.