ETH Price: $3,881.99 (-1.25%)

Token

Banquets (BANQUET)
 

Overview

Max Total Supply

2,941 BANQUET

Holders

762

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
cryptom-nft.eth
Balance
1 BANQUET
0xb688f02b24accd0dc7dfcc604aad18e79f5db2c2
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:
Banquet

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 20 runs

Other Settings:
default evmVersion
File 1 of 1 : banquet.sol
/**
 *Submitted for verification at Etherscan.io on 2021-08-27
 */

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @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 LootInterface {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

contract Banquet is ERC721Enumerable, ReentrancyGuard, Ownable {
    uint256 public price = 20000000000000000; //0.02 ETH

    //Loot Contract
    address public lootAddress = 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7;
    LootInterface public lootContract = LootInterface(lootAddress);

    string[] private drink = [
        "Ale",
        "Barley Water",
        "Butter Beer",
        "Honeyed Milk",
        "Mead",
        "Red Wine",
        "Spiced Wine"
    ];

    string[] private appetizer = [
        "Fruit-Dried Fowl",
        "Frumenty",
        "Mashed Lentils",
        "Mawmenny",
        "Mess of Pottage",
        "Pickled Jellies",
        "Plate of Pears",
        "Cow Tongue"
    ];

    string[] private meat = [
        "Pork Pie",
        "Chopped Liver",
        "Pudding in Cowcumber",
        "Fyllettes in Galyntyne",
        "Pork Sausages",
        "Stuffed Piglets",
        "Pigeon Stew",
        "Two-Baked Chickens",
        "Roast Duck"
    ];

    string[] private meat2 = [
        "Roasted Hen",
        "Bovarian Tart",
        "Venison with Custard",
        "Gammon of Hen",
        "Sauce de Sauvignon",
        "Bratwurst",
        "Rabbits Feet",
        "Foie Gras",
        "Stewed Pigs Feet"
    ];

    string[] private meat3 = [
        "Roasted Squirrel",
        "Baked Venison",
        "Roasted Deer",
        "Baked Duck",
        "Sausaged Squirrel",
        "Cabbage and Peas",
        "Turnips",
        "Mushroom Stew",
        "Sturgeon Caviar"
    ];

    string[] private dessert = [
        "Plum Tart",
        "Pear Tart",
        "Candied Fruit",
        "Fruit and Cheese",
        "Syruped Apple",
        "Creme de la Loot",
        "Bread Pudding",
        "Gingerbread Crumbs",
        "Apple Pie"
    ];

    string[] private sauces = [
        "Gravy",
        "Juniper Berry Sauce",
        "Cranberry Sauce",
        "Garlic Butter",
        "Green Herb Sauce",
        "Dried Plum Sauce",
        "Verjuice Sauce",
        "Ginger Sauce"
    ];

    string[] private soups = [
        "Beef Stew",
        "Chickpea Soup",
        "Cabbage Soup",
        "Lentil Stew",
        "Chickens in Ale Broth",
        "Mushrooms with Leeks",
        "Lamb Stew",
        "Hungarian Cheese Soup"
    ];

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

    function getDrink(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "RACE", drink);
    }

    function getAppetizer(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "PROFESSION", appetizer);
    }

    function getMeat(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "HEAD", meat);
    }

    function getMeat2(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "WAIST", meat2);
    }

    function getMeat3(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "FOOT", meat3);
    }

    function getDessert(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "HAND", dessert);
    }

    function getSauce(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "NECK", sauces);
    }

    function getSoup(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "RING", soups);
    }

    function pluck(
        uint256 tokenId,
        string memory keyPrefix,
        string[] memory sourceArray
    ) internal view returns (string memory) {
        uint256 rand = random(string(abi.encodePacked(keyPrefix, toString(tokenId))));
        string memory output = sourceArray[rand % sourceArray.length];
        return output;
    }

    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 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="20" class="base">';

        parts[1] = getDrink(tokenId);

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

        parts[3] = getAppetizer(tokenId);

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

        parts[5] = getMeat(tokenId);

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

        parts[7] = getMeat2(tokenId);

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

        parts[9] = getMeat3(tokenId);

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

        parts[11] = getDessert(tokenId);

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

        parts[13] = getSauce(tokenId);

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

        parts[15] = getSoup(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": "Banquet #',
                        toString(tokenId),
                        '", "description": "Banquets are randomized adventurer meals generated and stored on chain. Images and other functionality are intentionally omitted for others to interpret. Feel free to use Banquets in any way you want. Compatible with Loot (for Adventurers)", "image": "data:image/svg+xml;base64,',
                        Base64.encode(bytes(output)),
                        '"}'
                    )
                )
            )
        );
        output = string(abi.encodePacked("data:application/json;base64,", json));

        return output;
    }

    function mint(uint256 tokenId) public payable nonReentrant {
        require(tokenId > 8000 && tokenId <= 12000, "Token ID invalid");
        require(price <= msg.value, "Ether value sent is not correct");
        _safeMint(_msgSender(), tokenId);
    }

    function multiMint(uint256[] memory tokenIds) public payable nonReentrant {
        require((price * tokenIds.length) <= msg.value, "Ether value sent is not correct");
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(tokenIds[i] > 8000 && tokenIds[i] < 12000, "Token ID invalid");
            _safeMint(msg.sender, tokenIds[i]);
        }
    }

    function mintWithLoot(uint256 lootId) public payable nonReentrant {
        require(lootId > 0 && lootId <= 8000, "Token ID invalid");
        require(lootContract.ownerOf(lootId) == msg.sender, "Not the owner of this loot");
        _safeMint(_msgSender(), lootId);
    }

    function multiMintWithLoot(uint256[] memory lootIds) public payable nonReentrant {
        for (uint256 i = 0; i < lootIds.length; i++) {
            require(lootContract.ownerOf(lootIds[i]) == msg.sender, "Not the owner of this loot");
            _safeMint(_msgSender(), lootIds[i]);
        }
    }

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

    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);
    }

    constructor() ERC721("Banquets", "BANQUET") Ownable() {}
}

/// [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": 20
  },
  "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":"getAppetizer","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDessert","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDrink","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMeat","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMeat2","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMeat3","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSauce","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSoup","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":"lootAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootContract","outputs":[{"internalType":"contract LootInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lootId","type":"uint256"}],"name":"mintWithLoot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"multiMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"lootIds","type":"uint256[]"}],"name":"multiMintWithLoot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

66470de4df820000600c908155600d80546001600160a01b031990811673ff9c1b15b16263c61d017ee9f65c50e4ae0113d71791829055600e80549091166001600160a01b0392909216919091179055600361016090815262416c6560e81b6101805260809081526101a08281526b2130b93632bc902bb0ba32b960a11b6101c05260a052600b6101e08181526a213aba3a32b9102132b2b960a91b6102005260c0526102209283526b486f6e65796564204d696c6b60a01b6102405260e0929092526004610260908152631359585960e21b610280526101005260086102a0908152675265642057696e6560c01b6102c052610120526103206040526102e09182526a5370696365642057696e6560a81b61030052610140919091526200012c90600f90600762000c5f565b506040518061010001604052806040518060400160405280601081526020016f119c9d5a5d0b511c9a595908119bdddb60821b8152508152602001604051806040016040528060088152602001674672756d656e747960c01b81525081526020016040518060400160405280600e81526020016d4d6173686564204c656e74696c7360901b8152508152602001604051806040016040528060088152602001674d61776d656e6e7960c01b81525081526020016040518060400160405280600f81526020016e4d657373206f6620506f747461676560881b81525081526020016040518060400160405280600f81526020016e5069636b6c6564204a656c6c69657360881b81525081526020016040518060400160405280600e81526020016d506c617465206f6620506561727360901b81525081526020016040518060400160405280600a815260200169436f7720546f6e67756560b01b81525081525060109060086200029d92919062000cc3565b5060408051610160810182526008610120820190815267506f726b2050696560c01b610140830152815281518083018352600d8082526c21b437b83832b2102634bb32b960991b6020838101919091528084019290925283518085018552601481527f50756464696e6720696e20436f7763756d626572000000000000000000000000818401528385015283518085018552601681527f46796c6c657474657320696e2047616c796e74796e6500000000000000000000818401526060840152835180850185529081526c506f726b20536175736167657360981b81830152608083015282518084018452600f81526e53747566666564205069676c65747360881b8183015260a083015282518084018452600b81526a506967656f6e205374657760a81b8183015260c083015282518084018452601281527154776f2d42616b656420436869636b656e7360701b8183015260e08301528251808401909352600a835269526f617374204475636b60b01b908301526101008101919091526200042c90601190600962000d15565b506040805161016081018252600b61012082019081526a2937b0b9ba32b2102432b760a91b610140830152815281518083018352600d8082526c109bdd985c9a585b8815185c9d609a1b6020838101919091528084019290925283518085018552601481527f56656e69736f6e207769746820437573746172640000000000000000000000008184015283850152835180850185529081526c23b0b6b6b7b71037b3102432b760991b8183015260608301528251808401845260128082527129b0bab1b29032329029b0babb34b3b737b760711b82840152608084019190915283518085018552600980825268109c985d1ddd5c9cdd60ba1b8285015260a085019190915284518086018652600c81526b149858989a5d1cc81199595d60a21b8185015260c08501528451808601865281815268466f6965204772617360b81b8185015260e08501528451808601909552601085526f14dd195dd95908141a59dcc81199595d60821b92850192909252610100830193909352620005b292919062000d15565b506040805161016081018252601061012082018181526f149bd85cdd19590814dc5d5a5c9c995b60821b610140840152825282518084018452600d8082526c2130b5b2b2102b32b734b9b7b760991b6020838101919091528085019290925284518086018652600c81526b2937b0b9ba32b2102232b2b960a11b818401528486015284518086018652600a81526942616b6564204475636b60b01b81840152606085015284518086018652601181527014d85d5cd859d9590814dc5d5a5c9c995b607a1b818401526080850152845180860186529283526f4361626261676520616e64205065617360801b8383015260a08401929092528351808501855260078152665475726e69707360c81b8183015260c0840152835180850185529182526c4d757368726f6f6d205374657760981b8282015260e08301919091528251808401909352600f83526e29ba3ab933b2b7b71021b0bb34b0b960891b908301526101008101919091526200072b90601390600962000d15565b5060408051610160810182526009610120820181815268141b1d5b4815185c9d60ba1b610140840152825282518084018452818152681419585c8815185c9d60ba1b6020828101919091528084019190915283518085018552600d8082526c10d85b991a595908119c9d5a5d609a1b82840152848601919091528451808601865260108082526f467275697420616e642043686565736560801b828501526060860191909152855180870187528281526c53797275706564204170706c6560981b818501526080860152855180870187529081526f10dc995b59481919481b1848131bdbdd60821b8184015260a0850152845180860186529081526c42726561642050756464696e6760981b8183015260c084015283518085018552601281527147696e6765726272656164204372756d627360701b8183015260e08401528351808501909452818452684170706c652050696560b81b908401526101008201929092526200089e916014919062000d15565b5060408051610140810182526005610100820190815264477261767960d81b610120830152815281518083018352601381527f4a756e69706572204265727279205361756365000000000000000000000000006020828101919091528083019190915282518084018452600f81526e4372616e626572727920536175636560881b818301528284015282518084018452600d81526c23b0b93634b190213aba3a32b960991b8183015260608301528251808401845260108082526f477265656e204865726220536175636560801b828401526080840191909152835180850185529081526f447269656420506c756d20536175636560801b8183015260a083015282518084018452600e81526d5665726a7569636520536175636560901b8183015260c08301528251808401909352600c83526b47696e67657220536175636560a01b9083015260e0810191909152620009fd90601590600862000cc3565b506040805161014081018252600961010082018181526842656566205374657760b81b610120840152825282518084018452600d81526c0436869636b70656120536f757609c1b6020828101919091528084019190915283518085018552600c81526b04361626261676520536f75760a41b818301528385015283518085018552600b81526a4c656e74696c205374657760a81b8183015260608401528351808501855260158082527f436869636b656e7320696e20416c652042726f7468000000000000000000000082840152608085019190915284518086018652601481527f4d757368726f6f6d732077697468204c65656b730000000000000000000000008184015260a085015284518086018652928352684c616d62205374657760b81b8383015260c084019290925283518085019094529083527f48756e67617269616e2043686565736520536f757000000000000000000000009083015260e081019190915262000b7390601690600862000cc3565b5034801562000b8157600080fd5b50604080518082018252600881526742616e717565747360c01b6020808301918252835180850190945260078452661090539455515560ca1b90840152815191929162000bd19160009162000d67565b50805162000be790600190602084019062000d67565b50506001600a555062000c0362000bfd62000c09565b62000c0d565b62000eac565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000cb1579160200282015b8281111562000cb1578251805162000ca091849160209091019062000d67565b509160200191906001019062000c80565b5062000cbf92915062000df2565b5090565b82805482825590600052602060002090810192821562000cb1579160200282015b8281111562000cb1578251805162000d0491849160209091019062000d67565b509160200191906001019062000ce4565b82805482825590600052602060002090810192821562000cb1579160200282015b8281111562000cb1578251805162000d5691849160209091019062000d67565b509160200191906001019062000d36565b82805462000d759062000e6f565b90600052602060002090601f01602090048101928262000d99576000855562000de4565b82601f1062000db457805160ff191683800117855562000de4565b8280016001018555821562000de4579182015b8281111562000de457825182559160200191906001019062000dc7565b5062000cbf92915062000e13565b8082111562000cbf57600062000e09828262000e2a565b5060010162000df2565b5b8082111562000cbf576000815560010162000e14565b50805462000e389062000e6f565b6000825580601f1062000e4c575062000e6c565b601f01602090049060005260206000209081019062000e6c919062000e13565b50565b60028104600182168062000e8457607f821691505b6020821081141562000ea657634e487b7160e01b600052602260045260246000fd5b50919050565b61354a8062000ebc6000396000f3fe6080604052600436106101a45760003560e01c806370a08231116100e857806370a08231146103c4578063715018a6146103e457806379f36518146103f95780638da5cb5b146104195780638fb901c21461042e57806395d89b411461044e5780639a0e4ebb14610463578063a035b1fe14610476578063a0712d681461048b578063a22cb4651461049e578063b1e17ecc146104be578063b88d4fde146104de578063bef7c3b8146104fe578063c87b56dd1461051e578063cfae0e2b1461053e578063e985e9c51461055e578063f2fde38b1461057e578063fd12c9681461059e576101a4565b806301ffc9a7146101a957806306fdde03146101df578063081812fc14610201578063095ea7b31461022e5780630e4393261461025057806318160ddd146102655780631f32c18f1461028757806323b872dd146102a75780632f745c59146102c757806335b48afd146102e75780633ccfd60b146102fc5780633e4f415b1461031157806342842e0e146103315780634a27c637146103515780634f6ccce7146103715780636352211e1461039157806367fd1a0f146103b1575b600080fd5b3480156101b557600080fd5b506101c96101c4366004612791565b6105b1565b6040516101d69190612b96565b60405180910390f35b3480156101eb57600080fd5b506101f46105de565b6040516101d69190612ba1565b34801561020d57600080fd5b5061022161021c3660046127c9565b610670565b6040516101d69190612b45565b34801561023a57600080fd5b5061024e6102493660046126c0565b6106bc565b005b34801561025c57600080fd5b50610221610754565b34801561027157600080fd5b5061027a610763565b6040516101d69190613124565b34801561029357600080fd5b506101f46102a23660046127c9565b610769565b3480156102b357600080fd5b5061024e6102c2366004612594565b610863565b3480156102d357600080fd5b5061027a6102e23660046126c0565b61089b565b3480156102f357600080fd5b506102216108ed565b34801561030857600080fd5b5061024e6108fc565b34801561031d57600080fd5b506101f461032c3660046127c9565b61097e565b34801561033d57600080fd5b5061024e61034c366004612594565b610a6f565b34801561035d57600080fd5b506101f461036c3660046127c9565b610a8a565b34801561037d57600080fd5b5061027a61038c3660046127c9565b610b7b565b34801561039d57600080fd5b506102216103ac3660046127c9565b610bd6565b61024e6103bf3660046126eb565b610c0b565b3480156103d057600080fd5b5061027a6103df36600461251d565b610d63565b3480156103f057600080fd5b5061024e610da7565b34801561040557600080fd5b506101f46104143660046127c9565b610df2565b34801561042557600080fd5b50610221610ee3565b34801561043a57600080fd5b506101f46104493660046127c9565b610ef2565b34801561045a57600080fd5b506101f4610fe3565b61024e6104713660046126eb565b610ff2565b34801561048257600080fd5b5061027a611106565b61024e6104993660046127c9565b61110c565b3480156104aa57600080fd5b5061024e6104b936600461268f565b61119e565b3480156104ca57600080fd5b506101f46104d93660046127c9565b61126c565b3480156104ea57600080fd5b5061024e6104f93660046125d4565b61135d565b34801561050a57600080fd5b506101f46105193660046127c9565b61139c565b34801561052a57600080fd5b506101f46105393660046127c9565b61148e565b34801561054a57600080fd5b506101f46105593660046127c9565b611736565b34801561056a57600080fd5b506101c961057936600461255c565b61182d565b34801561058a57600080fd5b5061024e61059936600461251d565b61185b565b61024e6105ac3660046127c9565b6118c9565b60006001600160e01b0319821663780e9d6360e01b14806105d657506105d6826119c4565b90505b919050565b6060600080546105ed906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610619906131e4565b80156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b5050505050905090565b600061067b82611a04565b6106a05760405162461bcd60e51b815260040161069790612f1b565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106c782610bd6565b9050806001600160a01b0316836001600160a01b031614156106fb5760405162461bcd60e51b81526004016106979061300f565b806001600160a01b031661070d611a21565b6001600160a01b03161480610729575061072981610579611a21565b6107455760405162461bcd60e51b815260040161069790612dfb565b61074f8383611a25565b505050565b600d546001600160a01b031681565b60085490565b60606105d682604051806040016040528060048152602001635241434560e01b815250600f805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546107cd906131e4565b80601f01602080910402602001604051908101604052809291908181526020018280546107f9906131e4565b80156108465780601f1061081b57610100808354040283529160200191610846565b820191906000526020600020905b81548152906001019060200180831161082957829003601f168201915b5050505050815260200190600101906107ae565b50505050611a93565b61087461086e611a21565b82611b0f565b6108905760405162461bcd60e51b815260040161069790613050565b61074f838383611b94565b60006108a683610d63565b82106108c45760405162461bcd60e51b815260040161069790612bb4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600e546001600160a01b031681565b610904611a21565b6001600160a01b0316610915610ee3565b6001600160a01b03161461093b5760405162461bcd60e51b815260040161069790612f67565b60405173085f56727ec590c117f6bf0726a08cd4c7e8564e904780156108fc02916000818181858888f1935050505015801561097b573d6000803e3d6000fd5b50565b60606105d682604051806040016040528060048152602001634e45434b60e01b8152506015805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546109e2906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0e906131e4565b8015610a5b5780601f10610a3057610100808354040283529160200191610a5b565b820191906000526020600020905b815481529060010190602001808311610a3e57829003601f168201915b5050505050815260200190600101906109c3565b61074f8383836040518060200160405280600081525061135d565b60606105d6826040518060400160405280600481526020016352494e4760e01b8152506016805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054610aee906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1a906131e4565b8015610b675780601f10610b3c57610100808354040283529160200191610b67565b820191906000526020600020905b815481529060010190602001808311610b4a57829003601f168201915b505050505081526020019060010190610acf565b6000610b85610763565b8210610ba35760405162461bcd60e51b8152600401610697906130a1565b60088281548110610bc457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105d65760405162461bcd60e51b815260040161069790612e9d565b6002600a541415610c2e5760405162461bcd60e51b8152600401610697906130ed565b6002600a5560005b8151811015610d5a57600e54825133916001600160a01b031690636352211e90859085908110610c7657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610c9a9190613124565b60206040518083038186803b158015610cb257600080fd5b505afa158015610cc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cea9190612540565b6001600160a01b031614610d105760405162461bcd60e51b815260040161069790612d7b565b610d48610d1b611a21565b838381518110610d3b57634e487b7160e01b600052603260045260246000fd5b6020026020010151611cc1565b80610d528161321f565b915050610c36565b50506001600a55565b60006001600160a01b038216610d8b5760405162461bcd60e51b815260040161069790612e53565b506001600160a01b031660009081526003602052604090205490565b610daf611a21565b6001600160a01b0316610dc0610ee3565b6001600160a01b031614610de65760405162461bcd60e51b815260040161069790612f67565b610df06000611cdf565b565b60606105d682604051806040016040528060048152602001631193d3d560e21b8152506013805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054610e56906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e82906131e4565b8015610ecf5780601f10610ea457610100808354040283529160200191610ecf565b820191906000526020600020905b815481529060010190602001808311610eb257829003601f168201915b505050505081526020019060010190610e37565b600b546001600160a01b031690565b60606105d682604051806040016040528060048152602001631210539160e21b8152506014805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054610f56906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610f82906131e4565b8015610fcf5780601f10610fa457610100808354040283529160200191610fcf565b820191906000526020600020905b815481529060010190602001808311610fb257829003601f168201915b505050505081526020019060010190610f37565b6060600180546105ed906131e4565b6002600a5414156110155760405162461bcd60e51b8152600401610697906130ed565b6002600a558051600c54349161102a91613182565b11156110485760405162461bcd60e51b815260040161069790612d44565b60005b8151811015610d5a57611f4082828151811061107757634e487b7160e01b600052603260045260246000fd5b60200260200101511180156110b45750612ee08282815181106110aa57634e487b7160e01b600052603260045260246000fd5b6020026020010151105b6110d05760405162461bcd60e51b815260040161069790612f9c565b6110f433838381518110610d3b57634e487b7160e01b600052603260045260246000fd5b806110fe8161321f565b91505061104b565b600c5481565b6002600a54141561112f5760405162461bcd60e51b8152600401610697906130ed565b6002600a55611f40811180156111475750612ee08111155b6111635760405162461bcd60e51b815260040161069790612f9c565b34600c5411156111855760405162461bcd60e51b815260040161069790612d44565b611196611190611a21565b82611cc1565b506001600a55565b6111a6611a21565b6001600160a01b0316826001600160a01b031614156111d75760405162461bcd60e51b815260040161069790612d11565b80600560006111e4611a21565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611228611a21565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112609190612b96565b60405180910390a35050565b60606105d682604051806040016040528060048152602001631211505160e21b8152506011805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546112d0906131e4565b80601f01602080910402602001604051908101604052809291908181526020018280546112fc906131e4565b80156113495780601f1061131e57610100808354040283529160200191611349565b820191906000526020600020905b81548152906001019060200180831161132c57829003601f168201915b5050505050815260200190600101906112b1565b61136e611368611a21565b83611b0f565b61138a5760405162461bcd60e51b815260040161069790613050565b61139684848484611d31565b50505050565b60606105d6826040518060400160405280600581526020016415d05254d560da1b8152506012805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054611401906131e4565b80601f016020809104026020016040519081016040528092919081815260200182805461142d906131e4565b801561147a5780601f1061144f5761010080835404028352916020019161147a565b820191906000526020600020905b81548152906001019060200180831161145d57829003601f168201915b5050505050815260200190600101906113e2565b60606114986124f5565b60405180610120016040528060fd815260200161338760fd913981526114bd83610769565b81600160200201819052506040518060600160405280602881526020016134ed6028913960408201526114ef83611736565b60608083019190915260408051918201905260288082526132bc6020830139608082015261151c8361126c565b60a082015260408051606081019091526028808252613336602083013960c08201526115478361139c565b60e08201526040805160608101909152602980825261335e602083013961010082015261157383610df2565b6101208201526040805160608101909152602980825261330d60208301396101408201526115a083610ef2565b6101608201526040805160608101909152602980825261348460208301396101808201526115cd8361097e565b6101a0820152604080516060810190915260298082526132e460208301396101c08201526115fa83610a8a565b6101e0820152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a61166a9a909101612882565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b01519799506116bd988a9890602001612882565b6040516020818303038152906040529050600061170a6116dc86611d64565b6116e584611e7e565b6040516020016116f6929190612944565b604051602081830303815290604052611e7e565b90508060405160200161171d9190612b00565b60408051808303601f1901815291905295945050505050565b60606105d6826040518060400160405280600a815260200169282927a322a9a9a4a7a760b11b8152506010805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546117a0906131e4565b80601f01602080910402602001604051908101604052809291908181526020018280546117cc906131e4565b80156118195780601f106117ee57610100808354040283529160200191611819565b820191906000526020600020905b8154815290600101906020018083116117fc57829003601f168201915b505050505081526020019060010190611781565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611863611a21565b6001600160a01b0316611874610ee3565b6001600160a01b03161461189a5760405162461bcd60e51b815260040161069790612f67565b6001600160a01b0381166118c05760405162461bcd60e51b815260040161069790612c51565b61097b81611cdf565b6002600a5414156118ec5760405162461bcd60e51b8152600401610697906130ed565b6002600a5580158015906119025750611f408111155b61191e5760405162461bcd60e51b815260040161069790612f9c565b600e546040516331a9108f60e11b815233916001600160a01b031690636352211e9061194e908590600401613124565b60206040518083038186803b15801561196657600080fd5b505afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e9190612540565b6001600160a01b0316146111855760405162461bcd60e51b815260040161069790612d7b565b60006001600160e01b031982166380ac58cd60e01b14806119f557506001600160e01b03198216635b5e139f60e01b145b806105d657506105d682611ff1565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a5a82610bd6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000611ac984611aa487611d64565b604051602001611ab5929190612853565b60405160208183030381529060405261200a565b9050600083845183611adb919061323a565b81518110611af957634e487b7160e01b600052603260045260246000fd5b6020026020010151905080925050509392505050565b6000611b1a82611a04565b611b365760405162461bcd60e51b815260040161069790612daf565b6000611b4183610bd6565b9050806001600160a01b0316846001600160a01b03161480611b7c5750836001600160a01b0316611b7184610670565b6001600160a01b0316145b80611b8c5750611b8c818561182d565b949350505050565b826001600160a01b0316611ba782610bd6565b6001600160a01b031614611bcd5760405162461bcd60e51b815260040161069790612fc6565b6001600160a01b038216611bf35760405162461bcd60e51b815260040161069790612ccd565b611bfe83838361203b565b611c09600082611a25565b6001600160a01b0383166000908152600360205260408120805460019290611c329084906131a1565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c60908490613156565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611cdb8282604051806020016040528060008152506120c4565b5050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611d3c848484611b94565b611d48848484846120f7565b6113965760405162461bcd60e51b815260040161069790612bff565b606081611d8957506040805180820190915260018152600360fc1b60208201526105d9565b8160005b8115611db35780611d9d8161321f565b9150611dac9050600a8361316e565b9150611d8d565b6000816001600160401b03811115611ddb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e05576020820181803683370190505b5090505b8415611b8c57611e1a6001836131a1565b9150611e27600a8661323a565b611e32906030613156565b60f81b818381518110611e5557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e77600a8661316e565b9450611e09565b805160609080611e9e5750506040805160208101909152600081526105d9565b60006003611ead836002613156565b611eb7919061316e565b611ec2906004613182565b90506000611ed1826020613156565b6001600160401b03811115611ef657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f20576020820181803683370190505b50905060006040518060600160405280604081526020016134ad604091399050600181016020830160005b86811015611fac576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611f4b565b506003860660018114611fc65760028114611fd757611fe3565b613d3d60f01b600119830152611fe3565b603d60f81b6000198301525b505050918152949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b60008160405160200161201d9190612837565b60408051601f19818403018152919052805160209091012092915050565b61204683838361074f565b6001600160a01b0383166120625761205d81612212565b612085565b816001600160a01b0316836001600160a01b031614612085576120858382612256565b6001600160a01b0382166120a15761209c816122f3565b61074f565b826001600160a01b0316826001600160a01b03161461074f5761074f82826123cc565b6120ce8383612410565b6120db60008484846120f7565b61074f5760405162461bcd60e51b815260040161069790612bff565b600061210b846001600160a01b03166124ef565b1561220757836001600160a01b031663150b7a02612127611a21565b8786866040518563ffffffff1660e01b81526004016121499493929190612b59565b602060405180830381600087803b15801561216357600080fd5b505af1925050508015612193575060408051601f3d908101601f19168201909252612190918101906127ad565b60015b6121ed573d8080156121c1576040519150601f19603f3d011682016040523d82523d6000602084013e6121c6565b606091505b5080516121e55760405162461bcd60e51b815260040161069790612bff565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b8c565b506001949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161226384610d63565b61226d91906131a1565b6000838152600760205260409020549091508082146122c0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612305906001906131a1565b6000838152600960205260408120546008805493945090928490811061233b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061236a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806123b057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006123d783610d63565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166124365760405162461bcd60e51b815260040161069790612ee6565b61243f81611a04565b1561245c5760405162461bcd60e51b815260040161069790612c97565b6124686000838361203b565b6001600160a01b0382166000908152600360205260408120805460019290612491908490613156565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b6040518061022001604052806011905b60608152602001906001900390816125055790505090565b60006020828403121561252e578081fd5b813561253981613290565b9392505050565b600060208284031215612551578081fd5b815161253981613290565b6000806040838503121561256e578081fd5b823561257981613290565b9150602083013561258981613290565b809150509250929050565b6000806000606084860312156125a8578081fd5b83356125b381613290565b925060208401356125c381613290565b929592945050506040919091013590565b600080600080608085870312156125e9578081fd5b84356125f481613290565b935060208581013561260581613290565b93506040860135925060608601356001600160401b0380821115612627578384fd5b818801915088601f83011261263a578384fd5b81358181111561264c5761264c61327a565b61265e601f8201601f1916850161312d565b91508082528984828501011115612673578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156126a1578182fd5b82356126ac81613290565b915060208301358015158114612589578182fd5b600080604083850312156126d2578182fd5b82356126dd81613290565b946020939093013593505050565b600060208083850312156126fd578182fd5b82356001600160401b0380821115612713578384fd5b818501915085601f830112612726578384fd5b8135818111156127385761273861327a565b838102915061274884830161312d565b8181528481019084860184860187018a1015612762578788fd5b8795505b83861015612784578035835260019590950194918601918601612766565b5098975050505050505050565b6000602082840312156127a2578081fd5b8135612539816132a5565b6000602082840312156127be578081fd5b8151612539816132a5565b6000602082840312156127da578081fd5b5035919050565b600081518084526127f98160208601602086016131b8565b601f01601f19169290920160200192915050565b6000815161281f8185602086016131b8565b9290920192915050565b61227d60f01b815260020190565b600082516128498184602087016131b8565b9190910192915050565b600083516128658184602088016131b8565b8351908301906128798183602088016131b8565b01949350505050565b60008a51612894818460208f016131b8565b8a51908301906128a8818360208f016131b8565b8a516128ba8183850160208f016131b8565b8a519290910101906128d0818360208d016131b8565b88516128e28183850160208d016131b8565b88519290910101906128f8818360208b016131b8565b865161290a8183850160208b016131b8565b86519290910101906129208183602089016131b8565b845161293281838501602089016131b8565b9101019b9a5050505050505050505050565b727b226e616d65223a202242616e71756574202360681b815282516000906129738160138501602088016131b8565b7f222c20226465736372697074696f6e223a202242616e717565747320617265206013918401918201527f72616e646f6d697a656420616476656e7475726572206d65616c732067656e6560338201527f726174656420616e642073746f726564206f6e20636861696e2e20496d61676560538201527f7320616e64206f746865722066756e6374696f6e616c6974792061726520696e60738201527f74656e74696f6e616c6c79206f6d697474656420666f72206f7468657273207460938201527f6f20696e746572707265742e204665656c206672656520746f2075736520426160b38201527f6e717565747320696e20616e792077617920796f752077616e742e20436f6d7060d38201527f617469626c652077697468204c6f6f742028666f7220416476656e747572657260f38201527f7329222c2022696d616765223a2022646174613a696d6167652f7376672b786d610113820152681b0ed8985cd94d8d0b60ba1b610133820152612af7612af261013c83018661280d565b612829565b95945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612b3881601d8501602087016131b8565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b8c908301846127e1565b9695505050505050565b901515815260200190565b60006020825261253960208301846127e1565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601a9082015279139bdd081d1a19481bdddb995c881bd9881d1a1a5cc81b1bdbdd60321b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776040820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f151bdad95b881251081a5b9d985b1a5960821b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b6040518181016001600160401b038111828210171561314e5761314e61327a565b604052919050565b600082198211156131695761316961324e565b500190565b60008261317d5761317d613264565b500490565b600081600019048311821515161561319c5761319c61324e565b500290565b6000828210156131b3576131b361324e565b500390565b60005b838110156131d35781810151838201526020016131bb565b838111156113965750506000910152565b6002810460018216806131f857607f821691505b6020821081141561321957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132335761323361324e565b5060010190565b60008261324957613249613264565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461097b57600080fd5b6001600160e01b03198116811461097b57600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea26469706673582212202bd593c29f345e6c14ef4916f64101fca744338ce86d2ee0d6023848732cf36064736f6c63430008000033

Deployed Bytecode

0x6080604052600436106101a45760003560e01c806370a08231116100e857806370a08231146103c4578063715018a6146103e457806379f36518146103f95780638da5cb5b146104195780638fb901c21461042e57806395d89b411461044e5780639a0e4ebb14610463578063a035b1fe14610476578063a0712d681461048b578063a22cb4651461049e578063b1e17ecc146104be578063b88d4fde146104de578063bef7c3b8146104fe578063c87b56dd1461051e578063cfae0e2b1461053e578063e985e9c51461055e578063f2fde38b1461057e578063fd12c9681461059e576101a4565b806301ffc9a7146101a957806306fdde03146101df578063081812fc14610201578063095ea7b31461022e5780630e4393261461025057806318160ddd146102655780631f32c18f1461028757806323b872dd146102a75780632f745c59146102c757806335b48afd146102e75780633ccfd60b146102fc5780633e4f415b1461031157806342842e0e146103315780634a27c637146103515780634f6ccce7146103715780636352211e1461039157806367fd1a0f146103b1575b600080fd5b3480156101b557600080fd5b506101c96101c4366004612791565b6105b1565b6040516101d69190612b96565b60405180910390f35b3480156101eb57600080fd5b506101f46105de565b6040516101d69190612ba1565b34801561020d57600080fd5b5061022161021c3660046127c9565b610670565b6040516101d69190612b45565b34801561023a57600080fd5b5061024e6102493660046126c0565b6106bc565b005b34801561025c57600080fd5b50610221610754565b34801561027157600080fd5b5061027a610763565b6040516101d69190613124565b34801561029357600080fd5b506101f46102a23660046127c9565b610769565b3480156102b357600080fd5b5061024e6102c2366004612594565b610863565b3480156102d357600080fd5b5061027a6102e23660046126c0565b61089b565b3480156102f357600080fd5b506102216108ed565b34801561030857600080fd5b5061024e6108fc565b34801561031d57600080fd5b506101f461032c3660046127c9565b61097e565b34801561033d57600080fd5b5061024e61034c366004612594565b610a6f565b34801561035d57600080fd5b506101f461036c3660046127c9565b610a8a565b34801561037d57600080fd5b5061027a61038c3660046127c9565b610b7b565b34801561039d57600080fd5b506102216103ac3660046127c9565b610bd6565b61024e6103bf3660046126eb565b610c0b565b3480156103d057600080fd5b5061027a6103df36600461251d565b610d63565b3480156103f057600080fd5b5061024e610da7565b34801561040557600080fd5b506101f46104143660046127c9565b610df2565b34801561042557600080fd5b50610221610ee3565b34801561043a57600080fd5b506101f46104493660046127c9565b610ef2565b34801561045a57600080fd5b506101f4610fe3565b61024e6104713660046126eb565b610ff2565b34801561048257600080fd5b5061027a611106565b61024e6104993660046127c9565b61110c565b3480156104aa57600080fd5b5061024e6104b936600461268f565b61119e565b3480156104ca57600080fd5b506101f46104d93660046127c9565b61126c565b3480156104ea57600080fd5b5061024e6104f93660046125d4565b61135d565b34801561050a57600080fd5b506101f46105193660046127c9565b61139c565b34801561052a57600080fd5b506101f46105393660046127c9565b61148e565b34801561054a57600080fd5b506101f46105593660046127c9565b611736565b34801561056a57600080fd5b506101c961057936600461255c565b61182d565b34801561058a57600080fd5b5061024e61059936600461251d565b61185b565b61024e6105ac3660046127c9565b6118c9565b60006001600160e01b0319821663780e9d6360e01b14806105d657506105d6826119c4565b90505b919050565b6060600080546105ed906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610619906131e4565b80156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b5050505050905090565b600061067b82611a04565b6106a05760405162461bcd60e51b815260040161069790612f1b565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106c782610bd6565b9050806001600160a01b0316836001600160a01b031614156106fb5760405162461bcd60e51b81526004016106979061300f565b806001600160a01b031661070d611a21565b6001600160a01b03161480610729575061072981610579611a21565b6107455760405162461bcd60e51b815260040161069790612dfb565b61074f8383611a25565b505050565b600d546001600160a01b031681565b60085490565b60606105d682604051806040016040528060048152602001635241434560e01b815250600f805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546107cd906131e4565b80601f01602080910402602001604051908101604052809291908181526020018280546107f9906131e4565b80156108465780601f1061081b57610100808354040283529160200191610846565b820191906000526020600020905b81548152906001019060200180831161082957829003601f168201915b5050505050815260200190600101906107ae565b50505050611a93565b61087461086e611a21565b82611b0f565b6108905760405162461bcd60e51b815260040161069790613050565b61074f838383611b94565b60006108a683610d63565b82106108c45760405162461bcd60e51b815260040161069790612bb4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600e546001600160a01b031681565b610904611a21565b6001600160a01b0316610915610ee3565b6001600160a01b03161461093b5760405162461bcd60e51b815260040161069790612f67565b60405173085f56727ec590c117f6bf0726a08cd4c7e8564e904780156108fc02916000818181858888f1935050505015801561097b573d6000803e3d6000fd5b50565b60606105d682604051806040016040528060048152602001634e45434b60e01b8152506015805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546109e2906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0e906131e4565b8015610a5b5780601f10610a3057610100808354040283529160200191610a5b565b820191906000526020600020905b815481529060010190602001808311610a3e57829003601f168201915b5050505050815260200190600101906109c3565b61074f8383836040518060200160405280600081525061135d565b60606105d6826040518060400160405280600481526020016352494e4760e01b8152506016805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054610aee906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1a906131e4565b8015610b675780601f10610b3c57610100808354040283529160200191610b67565b820191906000526020600020905b815481529060010190602001808311610b4a57829003601f168201915b505050505081526020019060010190610acf565b6000610b85610763565b8210610ba35760405162461bcd60e51b8152600401610697906130a1565b60088281548110610bc457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105d65760405162461bcd60e51b815260040161069790612e9d565b6002600a541415610c2e5760405162461bcd60e51b8152600401610697906130ed565b6002600a5560005b8151811015610d5a57600e54825133916001600160a01b031690636352211e90859085908110610c7657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610c9a9190613124565b60206040518083038186803b158015610cb257600080fd5b505afa158015610cc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cea9190612540565b6001600160a01b031614610d105760405162461bcd60e51b815260040161069790612d7b565b610d48610d1b611a21565b838381518110610d3b57634e487b7160e01b600052603260045260246000fd5b6020026020010151611cc1565b80610d528161321f565b915050610c36565b50506001600a55565b60006001600160a01b038216610d8b5760405162461bcd60e51b815260040161069790612e53565b506001600160a01b031660009081526003602052604090205490565b610daf611a21565b6001600160a01b0316610dc0610ee3565b6001600160a01b031614610de65760405162461bcd60e51b815260040161069790612f67565b610df06000611cdf565b565b60606105d682604051806040016040528060048152602001631193d3d560e21b8152506013805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054610e56906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e82906131e4565b8015610ecf5780601f10610ea457610100808354040283529160200191610ecf565b820191906000526020600020905b815481529060010190602001808311610eb257829003601f168201915b505050505081526020019060010190610e37565b600b546001600160a01b031690565b60606105d682604051806040016040528060048152602001631210539160e21b8152506014805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054610f56906131e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610f82906131e4565b8015610fcf5780601f10610fa457610100808354040283529160200191610fcf565b820191906000526020600020905b815481529060010190602001808311610fb257829003601f168201915b505050505081526020019060010190610f37565b6060600180546105ed906131e4565b6002600a5414156110155760405162461bcd60e51b8152600401610697906130ed565b6002600a558051600c54349161102a91613182565b11156110485760405162461bcd60e51b815260040161069790612d44565b60005b8151811015610d5a57611f4082828151811061107757634e487b7160e01b600052603260045260246000fd5b60200260200101511180156110b45750612ee08282815181106110aa57634e487b7160e01b600052603260045260246000fd5b6020026020010151105b6110d05760405162461bcd60e51b815260040161069790612f9c565b6110f433838381518110610d3b57634e487b7160e01b600052603260045260246000fd5b806110fe8161321f565b91505061104b565b600c5481565b6002600a54141561112f5760405162461bcd60e51b8152600401610697906130ed565b6002600a55611f40811180156111475750612ee08111155b6111635760405162461bcd60e51b815260040161069790612f9c565b34600c5411156111855760405162461bcd60e51b815260040161069790612d44565b611196611190611a21565b82611cc1565b506001600a55565b6111a6611a21565b6001600160a01b0316826001600160a01b031614156111d75760405162461bcd60e51b815260040161069790612d11565b80600560006111e4611a21565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611228611a21565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112609190612b96565b60405180910390a35050565b60606105d682604051806040016040528060048152602001631211505160e21b8152506011805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546112d0906131e4565b80601f01602080910402602001604051908101604052809291908181526020018280546112fc906131e4565b80156113495780601f1061131e57610100808354040283529160200191611349565b820191906000526020600020905b81548152906001019060200180831161132c57829003601f168201915b5050505050815260200190600101906112b1565b61136e611368611a21565b83611b0f565b61138a5760405162461bcd60e51b815260040161069790613050565b61139684848484611d31565b50505050565b60606105d6826040518060400160405280600581526020016415d05254d560da1b8152506012805480602002602001604051908101604052809291908181526020016000905b8282101561085a578382906000526020600020018054611401906131e4565b80601f016020809104026020016040519081016040528092919081815260200182805461142d906131e4565b801561147a5780601f1061144f5761010080835404028352916020019161147a565b820191906000526020600020905b81548152906001019060200180831161145d57829003601f168201915b5050505050815260200190600101906113e2565b60606114986124f5565b60405180610120016040528060fd815260200161338760fd913981526114bd83610769565b81600160200201819052506040518060600160405280602881526020016134ed6028913960408201526114ef83611736565b60608083019190915260408051918201905260288082526132bc6020830139608082015261151c8361126c565b60a082015260408051606081019091526028808252613336602083013960c08201526115478361139c565b60e08201526040805160608101909152602980825261335e602083013961010082015261157383610df2565b6101208201526040805160608101909152602980825261330d60208301396101408201526115a083610ef2565b6101608201526040805160608101909152602980825261348460208301396101808201526115cd8361097e565b6101a0820152604080516060810190915260298082526132e460208301396101c08201526115fa83610a8a565b6101e0820152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a61166a9a909101612882565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b01519799506116bd988a9890602001612882565b6040516020818303038152906040529050600061170a6116dc86611d64565b6116e584611e7e565b6040516020016116f6929190612944565b604051602081830303815290604052611e7e565b90508060405160200161171d9190612b00565b60408051808303601f1901815291905295945050505050565b60606105d6826040518060400160405280600a815260200169282927a322a9a9a4a7a760b11b8152506010805480602002602001604051908101604052809291908181526020016000905b8282101561085a5783829060005260206000200180546117a0906131e4565b80601f01602080910402602001604051908101604052809291908181526020018280546117cc906131e4565b80156118195780601f106117ee57610100808354040283529160200191611819565b820191906000526020600020905b8154815290600101906020018083116117fc57829003601f168201915b505050505081526020019060010190611781565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611863611a21565b6001600160a01b0316611874610ee3565b6001600160a01b03161461189a5760405162461bcd60e51b815260040161069790612f67565b6001600160a01b0381166118c05760405162461bcd60e51b815260040161069790612c51565b61097b81611cdf565b6002600a5414156118ec5760405162461bcd60e51b8152600401610697906130ed565b6002600a5580158015906119025750611f408111155b61191e5760405162461bcd60e51b815260040161069790612f9c565b600e546040516331a9108f60e11b815233916001600160a01b031690636352211e9061194e908590600401613124565b60206040518083038186803b15801561196657600080fd5b505afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e9190612540565b6001600160a01b0316146111855760405162461bcd60e51b815260040161069790612d7b565b60006001600160e01b031982166380ac58cd60e01b14806119f557506001600160e01b03198216635b5e139f60e01b145b806105d657506105d682611ff1565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a5a82610bd6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000611ac984611aa487611d64565b604051602001611ab5929190612853565b60405160208183030381529060405261200a565b9050600083845183611adb919061323a565b81518110611af957634e487b7160e01b600052603260045260246000fd5b6020026020010151905080925050509392505050565b6000611b1a82611a04565b611b365760405162461bcd60e51b815260040161069790612daf565b6000611b4183610bd6565b9050806001600160a01b0316846001600160a01b03161480611b7c5750836001600160a01b0316611b7184610670565b6001600160a01b0316145b80611b8c5750611b8c818561182d565b949350505050565b826001600160a01b0316611ba782610bd6565b6001600160a01b031614611bcd5760405162461bcd60e51b815260040161069790612fc6565b6001600160a01b038216611bf35760405162461bcd60e51b815260040161069790612ccd565b611bfe83838361203b565b611c09600082611a25565b6001600160a01b0383166000908152600360205260408120805460019290611c329084906131a1565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c60908490613156565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611cdb8282604051806020016040528060008152506120c4565b5050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611d3c848484611b94565b611d48848484846120f7565b6113965760405162461bcd60e51b815260040161069790612bff565b606081611d8957506040805180820190915260018152600360fc1b60208201526105d9565b8160005b8115611db35780611d9d8161321f565b9150611dac9050600a8361316e565b9150611d8d565b6000816001600160401b03811115611ddb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e05576020820181803683370190505b5090505b8415611b8c57611e1a6001836131a1565b9150611e27600a8661323a565b611e32906030613156565b60f81b818381518110611e5557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611e77600a8661316e565b9450611e09565b805160609080611e9e5750506040805160208101909152600081526105d9565b60006003611ead836002613156565b611eb7919061316e565b611ec2906004613182565b90506000611ed1826020613156565b6001600160401b03811115611ef657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f20576020820181803683370190505b50905060006040518060600160405280604081526020016134ad604091399050600181016020830160005b86811015611fac576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611f4b565b506003860660018114611fc65760028114611fd757611fe3565b613d3d60f01b600119830152611fe3565b603d60f81b6000198301525b505050918152949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b60008160405160200161201d9190612837565b60408051601f19818403018152919052805160209091012092915050565b61204683838361074f565b6001600160a01b0383166120625761205d81612212565b612085565b816001600160a01b0316836001600160a01b031614612085576120858382612256565b6001600160a01b0382166120a15761209c816122f3565b61074f565b826001600160a01b0316826001600160a01b03161461074f5761074f82826123cc565b6120ce8383612410565b6120db60008484846120f7565b61074f5760405162461bcd60e51b815260040161069790612bff565b600061210b846001600160a01b03166124ef565b1561220757836001600160a01b031663150b7a02612127611a21565b8786866040518563ffffffff1660e01b81526004016121499493929190612b59565b602060405180830381600087803b15801561216357600080fd5b505af1925050508015612193575060408051601f3d908101601f19168201909252612190918101906127ad565b60015b6121ed573d8080156121c1576040519150601f19603f3d011682016040523d82523d6000602084013e6121c6565b606091505b5080516121e55760405162461bcd60e51b815260040161069790612bff565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b8c565b506001949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161226384610d63565b61226d91906131a1565b6000838152600760205260409020549091508082146122c0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612305906001906131a1565b6000838152600960205260408120546008805493945090928490811061233b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061236a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806123b057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006123d783610d63565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166124365760405162461bcd60e51b815260040161069790612ee6565b61243f81611a04565b1561245c5760405162461bcd60e51b815260040161069790612c97565b6124686000838361203b565b6001600160a01b0382166000908152600360205260408120805460019290612491908490613156565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b6040518061022001604052806011905b60608152602001906001900390816125055790505090565b60006020828403121561252e578081fd5b813561253981613290565b9392505050565b600060208284031215612551578081fd5b815161253981613290565b6000806040838503121561256e578081fd5b823561257981613290565b9150602083013561258981613290565b809150509250929050565b6000806000606084860312156125a8578081fd5b83356125b381613290565b925060208401356125c381613290565b929592945050506040919091013590565b600080600080608085870312156125e9578081fd5b84356125f481613290565b935060208581013561260581613290565b93506040860135925060608601356001600160401b0380821115612627578384fd5b818801915088601f83011261263a578384fd5b81358181111561264c5761264c61327a565b61265e601f8201601f1916850161312d565b91508082528984828501011115612673578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156126a1578182fd5b82356126ac81613290565b915060208301358015158114612589578182fd5b600080604083850312156126d2578182fd5b82356126dd81613290565b946020939093013593505050565b600060208083850312156126fd578182fd5b82356001600160401b0380821115612713578384fd5b818501915085601f830112612726578384fd5b8135818111156127385761273861327a565b838102915061274884830161312d565b8181528481019084860184860187018a1015612762578788fd5b8795505b83861015612784578035835260019590950194918601918601612766565b5098975050505050505050565b6000602082840312156127a2578081fd5b8135612539816132a5565b6000602082840312156127be578081fd5b8151612539816132a5565b6000602082840312156127da578081fd5b5035919050565b600081518084526127f98160208601602086016131b8565b601f01601f19169290920160200192915050565b6000815161281f8185602086016131b8565b9290920192915050565b61227d60f01b815260020190565b600082516128498184602087016131b8565b9190910192915050565b600083516128658184602088016131b8565b8351908301906128798183602088016131b8565b01949350505050565b60008a51612894818460208f016131b8565b8a51908301906128a8818360208f016131b8565b8a516128ba8183850160208f016131b8565b8a519290910101906128d0818360208d016131b8565b88516128e28183850160208d016131b8565b88519290910101906128f8818360208b016131b8565b865161290a8183850160208b016131b8565b86519290910101906129208183602089016131b8565b845161293281838501602089016131b8565b9101019b9a5050505050505050505050565b727b226e616d65223a202242616e71756574202360681b815282516000906129738160138501602088016131b8565b7f222c20226465736372697074696f6e223a202242616e717565747320617265206013918401918201527f72616e646f6d697a656420616476656e7475726572206d65616c732067656e6560338201527f726174656420616e642073746f726564206f6e20636861696e2e20496d61676560538201527f7320616e64206f746865722066756e6374696f6e616c6974792061726520696e60738201527f74656e74696f6e616c6c79206f6d697474656420666f72206f7468657273207460938201527f6f20696e746572707265742e204665656c206672656520746f2075736520426160b38201527f6e717565747320696e20616e792077617920796f752077616e742e20436f6d7060d38201527f617469626c652077697468204c6f6f742028666f7220416476656e747572657260f38201527f7329222c2022696d616765223a2022646174613a696d6167652f7376672b786d610113820152681b0ed8985cd94d8d0b60ba1b610133820152612af7612af261013c83018661280d565b612829565b95945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612b3881601d8501602087016131b8565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b8c908301846127e1565b9695505050505050565b901515815260200190565b60006020825261253960208301846127e1565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601a9082015279139bdd081d1a19481bdddb995c881bd9881d1a1a5cc81b1bdbdd60321b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776040820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f151bdad95b881251081a5b9d985b1a5960821b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b6040518181016001600160401b038111828210171561314e5761314e61327a565b604052919050565b600082198211156131695761316961324e565b500190565b60008261317d5761317d613264565b500490565b600081600019048311821515161561319c5761319c61324e565b500290565b6000828210156131b3576131b361324e565b500390565b60005b838110156131d35781810151838201526020016131bb565b838111156113965750506000910152565b6002810460018216806131f857607f821691505b6020821081141561321957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132335761323361324e565b5060010190565b60008261324957613249613264565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461097b57600080fd5b6001600160e01b03198116811461097b57600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea26469706673582212202bd593c29f345e6c14ef4916f64101fca744338ce86d2ee0d6023848732cf36064736f6c63430008000033

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.