ETH Price: $3,391.75 (-1.60%)
Gas: 1 Gwei

Token

Marvinaut Game Pass (MVG)
 

Overview

Max Total Supply

382 MVG

Holders

168

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 MVG
0xd4f69d02ef082f612558588d103994a7e3cf29c9
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:
MarvinautGamePass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 2 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 3 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 4 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 18 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 6 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 7 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 8 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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 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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 9 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 10 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 18 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 12 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 13 of 18 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 14 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 16 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 17 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 18 of 18 : MarvinautGamePass.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import '@openzeppelin/contracts/utils/Base64.sol';

/// @custom:security-contact [email protected]
contract MarvinautGamePass is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, Pausable {
  using Strings for uint256;
  using ECDSA for bytes32;
  using ECDSA for bytes;

  address public signer;

  string public baseURI;
  string public mediaURI;
  uint256 public constant maxSupply = 2500;
  uint256 public price;

  uint256 public maxMintPerWallet;
  uint256 public wlMintStart;
  uint256 public publicMintStart;
  uint256 public endMint;

  uint256 public goldSlots;
  uint256 public diamondSlots;
  uint256 private currentTokenId = 0;
  uint256 private upgradedTokenId = maxSupply + 1;
  mapping(uint256 => uint8) tokenIdToTier;

  event Upgrade(address _account, uint256[] _tokens, uint8[] _tiers);

  constructor() ERC721('Marvinaut Game Pass', 'MVG') {}

  function setupContract(
    address _signer,
    string memory __baseURI,
    string memory _mediaURI,
    uint256 _price,
    uint256 _maxMintPerWallet,
    uint256 _wlMintStart,
    uint256 _publicMintStart,
    uint256 _endMint,
    uint256 _goldSlots,
    uint256 _diamondSlots
  ) public onlyOwner {
    signer = _signer;
    baseURI = __baseURI;
    mediaURI = _mediaURI;
    price = _price;
    maxMintPerWallet = _maxMintPerWallet;
    wlMintStart = _wlMintStart;
    publicMintStart = _publicMintStart;
    endMint = _endMint;
    goldSlots = _goldSlots;
    diamondSlots = _diamondSlots;
  }

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

  function pause() public onlyOwner {
    _pause();
  }

  function unpause() public onlyOwner {
    _unpause();
  }

  function mintingActive() public view returns (bool) {
    return block.timestamp > publicMintStart;
  }

  function wlActive() public view returns (bool) {
    return block.timestamp > wlMintStart;
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    if (tokenId > 2500) {
      require(ownerOf(tokenId) != address(0), 'ERC721: invalid token ID');

      uint8 tier = tokenIdToTier[tokenId];
      string memory video = 'silver';
      string memory tierStr = 'Silver';

      if (tier == 1) {
        video = 'gold';
        tierStr = 'Gold';
      }

      if (tier == 2) {
        video = 'blackdiamond';
        tierStr = 'Black Diamond';
      }

      bytes memory metadata = abi.encodePacked(
        '{',
        '"name": "#',
        tokenId.toString(),
        '",',
        '"description": "Marvinaut Game Pass",',
        '"image": "',
        string(abi.encodePacked(mediaURI, video, '.mp4')),
        '",',
        '"attributes": [{',
        '"trait_type": "Tier",',
        '"value": "',
        tierStr,
        '"',
        '}]',
        '}'
      );
      return string(abi.encodePacked('data:application/json;base64,', Base64.encode(metadata)));
    }
    return super.tokenURI(tokenId);
  }

  function _mintGamePass(address _to, uint256 _mintAmount) internal {
    require(!paused(), 'Paused');
    require(block.timestamp < endMint, 'MintIsEnded');
    require(currentTokenId + _mintAmount < maxSupply + 1, 'NotEnoughTokenLeft');

    if (_msgSender() != owner()) {
      require(msg.value >= price * _mintAmount, 'Insufficient');
    }

    for (uint256 i = 1; i < _mintAmount + 1; i++) {
      _mint(_to, currentTokenId + i);
    }
    currentTokenId += _mintAmount;
  }

  function mint(address _to, uint256 _mintAmount) external payable {
    require(mintingActive(), 'PublicMintNotStarted');
    _mintGamePass(_to, _mintAmount);
  }

  function wlMint(address _to, uint256 _mintAmount, bytes32 _hashedMessage, bytes memory _signature) external payable {
    require(wlActive(), 'WhitelistMintNotStarted');
    require(_hashedMessage.toEthSignedMessageHash().recover(_signature) == signer, 'InvalidSigner');
    require(block.timestamp < publicMintStart, 'WhitelistMintIsEnded');
    require(_mintAmount <= maxMintPerWallet, 'InvalidAmount');

    _mintGamePass(_to, _mintAmount);
  }

  function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
    require(_isApprovedOrOwner(_msgSender(), tokenId), 'ERC721: caller is not token owner or approved');
    super._burn(tokenId);
  }

  function upgradeGamePass(
    uint256[] calldata _tokens,
    uint8[] calldata _tiers,
    bytes32 _hashedMessage,
    bytes memory _signature
  ) public {
    require(_tokens.length == 3, 'Need3ItemsToUpgrade');
    require(_tokens.length == _tiers.length, 'InvalidData');

    bytes32 msgHash = keccak256(abi.encodePacked(_tokens, _tiers));
    require(msgHash == _hashedMessage, 'InvalidSignature');
    require(_hashedMessage.toEthSignedMessageHash().recover(_signature) == signer, 'InvalidSigner');

    uint8 tier = _tiers[0];
    require(tier < 2, 'NoNeedToUpgrade');
    for (uint256 i = 0; i < _tokens.length; i++) {
      require(_isApprovedOrOwner(_msgSender(), _tokens[i]), 'ERC721: caller is not token owner or approved');
      require(tier == _tiers[i], 'MustBeSameTier');
    }

    if (tier == 0) {
      require(goldSlots > 0, 'GoldMaxReached');
    }

    if (tier == 1) {
      require(diamondSlots > 0, 'DiamondMaxReached');
    }

    _mint(_msgSender(), upgradedTokenId);
    tokenIdToTier[upgradedTokenId] = tier + 1;
    upgradedTokenId++;

    if (tier == 0) {
      goldSlots--;
    }

    if (tier == 1) {
      goldSlots += 3;
      diamondSlots--;
    }

    for (uint256 i = 0; i < _tokens.length; i++) {
      _burn(_tokens[i]);
    }

    emit Upgrade(msg.sender, _tokens, _tiers);
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId,
    uint256 batchSize
  ) internal override(ERC721, ERC721Enumerable) whenNotPaused {
    super._beforeTokenTransfer(from, to, tokenId, batchSize);
  }

  function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }

  function setSigner(address _signer) public onlyOwner {
    signer = _signer;
  }

  function setBaseURI(string memory _newBaseURI) public onlyOwner {
    baseURI = _newBaseURI;
  }

  function setMediaURI(string memory _newMediaURI) public onlyOwner {
    mediaURI = _newMediaURI;
  }

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

  function setMaxMintPerWallet(uint256 _maxMintPerWallet) public onlyOwner {
    maxMintPerWallet = _maxMintPerWallet;
  }

  function setPublicMintStart(uint256 _publicMintStart) public onlyOwner {
    publicMintStart = _publicMintStart;
  }

  function setWlMintStart(uint256 _wlMintStart) public onlyOwner {
    wlMintStart = _wlMintStart;
  }

  function setEndMint(uint256 _endMint) public onlyOwner {
    endMint = _endMint;
  }

  function setGoldSlots(uint256 _goldSlots) public onlyOwner {
    goldSlots = _goldSlots;
  }

  function setDiamondSlots(uint256 _diamondSlots) public onlyOwner {
    diamondSlots = _diamondSlots;
  }

  function withdraw() public onlyOwner {
    uint balance = address(this).balance;
    payable(msg.sender).transfer(balance);
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokens","type":"uint256[]"},{"indexed":false,"internalType":"uint8[]","name":"_tiers","type":"uint8[]"}],"name":"Upgrade","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"diamondSlots","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goldSlots","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mediaURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintStart","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":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_diamondSlots","type":"uint256"}],"name":"setDiamondSlots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endMint","type":"uint256"}],"name":"setEndMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_goldSlots","type":"uint256"}],"name":"setGoldSlots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintPerWallet","type":"uint256"}],"name":"setMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newMediaURI","type":"string"}],"name":"setMediaURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintStart","type":"uint256"}],"name":"setPublicMintStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlMintStart","type":"uint256"}],"name":"setWlMintStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"__baseURI","type":"string"},{"internalType":"string","name":"_mediaURI","type":"string"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"_wlMintStart","type":"uint256"},{"internalType":"uint256","name":"_publicMintStart","type":"uint256"},{"internalType":"uint256","name":"_endMint","type":"uint256"},{"internalType":"uint256","name":"_goldSlots","type":"uint256"},{"internalType":"uint256","name":"_diamondSlots","type":"uint256"}],"name":"setupContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"},{"internalType":"uint8[]","name":"_tiers","type":"uint8[]"},{"internalType":"bytes32","name":"_hashedMessage","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"upgradeGamePass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32","name":"_hashedMessage","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"wlMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlMintStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526000601655620000186109c4600162000121565b6017553480156200002857600080fd5b506040518060400160405280601381526020017f4d617276696e6175742047616d65205061737300000000000000000000000000815250604051806040016040528060038152602001624d564760e81b81525081600090816200008c9190620001ee565b5060016200009b8282620001ee565b505050620000b8620000b2620000cb60201b60201c565b620000cf565b600b805460ff60a01b19169055620002ba565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b808201808211156200014357634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200017457607f821691505b6020821081036200019557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001e957600081815260208120601f850160051c81016020861015620001c45750805b601f850160051c820191505b81811015620001e557828155600101620001d0565b5050505b505050565b81516001600160401b038111156200020a576200020a62000149565b62000222816200021b84546200015f565b846200019b565b602080601f8311600181146200025a5760008415620002415750858301515b600019600386901b1c1916600185901b178555620001e5565b600085815260208120601f198616915b828110156200028b578886015182559484019460019091019084016200026a565b5085821015620002aa5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6139a580620002ca6000396000f3fe6080604052600436106102c95760003560e01c80637441880011610175578063afdf6134116100dc578063d30c1d2f11610095578063e985e9c51161006f578063e985e9c514610800578063f2fde38b14610849578063f65e5cbc14610869578063fc5d00371461087f57600080fd5b8063d30c1d2f146107aa578063d5abeb01146107ca578063e8076aac146107e057600080fd5b8063afdf6134146106ff578063b228d9251461071f578063b88d4fde14610735578063c7ef2b7814610755578063c87b56dd1461076a578063cf6210fa1461078a57600080fd5b806392b05f861161012e57806392b05f861461065e57806395d89b411461067e5780639eaf167d146106935780639f8532c1146106b3578063a035b1fe146106c9578063a22cb465146106df57600080fd5b806374418800146105b55780638456cb59146105d55780638cfec4c0146105ea5780638da5cb5b146106005780638ebb25ca1461061e57806391b7f5ed1461063e57600080fd5b80633ccfd60b1161023457806355f804b3116101ed5780636c0360eb116101c75780636c0360eb1461054b5780636c19e7831461056057806370a0823114610580578063715018a6146105a057600080fd5b806355f804b3146104ec5780635c975abb1461050c5780636352211e1461052b57600080fd5b80633ccfd60b146104585780633f4ba83a1461046d57806340c10f191461048257806342842e0e1461049557806348575bfa146104b55780634f6ccce7146104cc57600080fd5b806318160ddd1161028657806318160ddd146103b9578063238ac933146103ce57806323b872dd146103ee57806325ee31411461040e5780632f745c591461042157806331f9c9191461044157600080fd5b8063017043a5146102ce57806301ffc9a7146102f757806306fdde0314610327578063081812fc14610349578063082ce92814610381578063095ea7b314610397575b600080fd5b3480156102da57600080fd5b506102e460135481565b6040519081526020015b60405180910390f35b34801561030357600080fd5b50610317610312366004612d3a565b61089f565b60405190151581526020016102ee565b34801561033357600080fd5b5061033c6108b0565b6040516102ee9190612da7565b34801561035557600080fd5b50610369610364366004612dba565b610942565b6040516001600160a01b0390911681526020016102ee565b34801561038d57600080fd5b506102e460145481565b3480156103a357600080fd5b506103b76103b2366004612def565b610969565b005b3480156103c557600080fd5b506008546102e4565b3480156103da57600080fd5b50600c54610369906001600160a01b031681565b3480156103fa57600080fd5b506103b7610409366004612e19565b610a83565b6103b761041c366004612ef8565b610ab5565b34801561042d57600080fd5b506102e461043c366004612def565b610c05565b34801561044d57600080fd5b506012544211610317565b34801561046457600080fd5b506103b7610c9b565b34801561047957600080fd5b506103b7610cd6565b6103b7610490366004612def565b610ce8565b3480156104a157600080fd5b506103b76104b0366004612e19565b610d3a565b3480156104c157600080fd5b506011544211610317565b3480156104d857600080fd5b506102e46104e7366004612dba565b610d55565b3480156104f857600080fd5b506103b7610507366004612f59565b610de8565b34801561051857600080fd5b50600b54600160a01b900460ff16610317565b34801561053757600080fd5b50610369610546366004612dba565b610dfc565b34801561055757600080fd5b5061033c610e31565b34801561056c57600080fd5b506103b761057b366004612f8e565b610ebf565b34801561058c57600080fd5b506102e461059b366004612f8e565b610ee9565b3480156105ac57600080fd5b506103b7610f6f565b3480156105c157600080fd5b506103b76105d0366004612dba565b610f81565b3480156105e157600080fd5b506103b7610f8e565b3480156105f657600080fd5b506102e460125481565b34801561060c57600080fd5b50600b546001600160a01b0316610369565b34801561062a57600080fd5b506103b7610639366004612dba565b610f9e565b34801561064a57600080fd5b506103b7610659366004612dba565b610fab565b34801561066a57600080fd5b506103b7610679366004612dba565b610fb8565b34801561068a57600080fd5b5061033c610fc5565b34801561069f57600080fd5b506103b76106ae366004612dba565b610fd4565b3480156106bf57600080fd5b506102e460115481565b3480156106d557600080fd5b506102e4600f5481565b3480156106eb57600080fd5b506103b76106fa366004612fa9565b610fe1565b34801561070b57600080fd5b506103b761071a366004612dba565b610fec565b34801561072b57600080fd5b506102e460105481565b34801561074157600080fd5b506103b7610750366004612fe5565b610ff9565b34801561076157600080fd5b5061033c61102b565b34801561077657600080fd5b5061033c610785366004612dba565b611038565b34801561079657600080fd5b506103b76107a5366004612f59565b6111f0565b3480156107b657600080fd5b506103b76107c5366004612dba565b611204565b3480156107d657600080fd5b506102e46109c481565b3480156107ec57600080fd5b506103b76107fb366004613035565b611211565b34801561080c57600080fd5b5061031761081b3660046130ea565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085557600080fd5b506103b7610864366004612f8e565b611271565b34801561087557600080fd5b506102e460155481565b34801561088b57600080fd5b506103b761089a366004613162565b6112ea565b60006108aa82611746565b92915050565b6060600080546108bf906131fe565b80601f01602080910402602001604051908101604052809291908181526020018280546108eb906131fe565b80156109385780601f1061090d57610100808354040283529160200191610938565b820191906000526020600020905b81548152906001019060200180831161091b57829003601f168201915b5050505050905090565b600061094d8261176b565b506000908152600460205260409020546001600160a01b031690565b600061097482610dfc565b9050806001600160a01b0316836001600160a01b0316036109e65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610a025750610a02813361081b565b610a745760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016109dd565b610a7e838361179f565b505050565b610a8e335b8261180d565b610aaa5760405162461bcd60e51b81526004016109dd90613238565b610a7e83838361188c565b6011544211610b065760405162461bcd60e51b815260206004820152601760248201527f57686974656c6973744d696e744e6f745374617274656400000000000000000060448201526064016109dd565b600c546001600160a01b0316610b2582610b1f856119fd565b90611a50565b6001600160a01b031614610b6b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b229b4b3b732b960991b60448201526064016109dd565b6012544210610bb35760405162461bcd60e51b815260206004820152601460248201527315da1a5d195b1a5cdd135a5b9d125cd15b99195960621b60448201526064016109dd565b601054831115610bf55760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59105b5bdd5b9d609a1b60448201526064016109dd565b610bff8484611a74565b50505050565b6000610c1083610ee9565b8210610c725760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109dd565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610ca3611c0b565b6040514790339082156108fc029083906000818181858888f19350505050158015610cd2573d6000803e3d6000fd5b5050565b610cde611c0b565b610ce6611c65565b565b6012544211610d305760405162461bcd60e51b8152602060048201526014602482015273141d589b1a58d35a5b9d139bdd14dd185c9d195960621b60448201526064016109dd565b610cd28282611a74565b610a7e83838360405180602001604052806000815250610ff9565b6000610d6060085490565b8210610dc35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109dd565b60088281548110610dd657610dd6613285565b90600052602060002001549050919050565b610df0611c0b565b600d610cd282826132e9565b6000818152600260205260408120546001600160a01b0316806108aa5760405162461bcd60e51b81526004016109dd906133a9565b600d8054610e3e906131fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6a906131fe565b8015610eb75780601f10610e8c57610100808354040283529160200191610eb7565b820191906000526020600020905b815481529060010190602001808311610e9a57829003601f168201915b505050505081565b610ec7611c0b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610f535760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109dd565b506001600160a01b031660009081526003602052604090205490565b610f77611c0b565b610ce66000611cba565b610f89611c0b565b601455565b610f96611c0b565b610ce6611d0c565b610fa6611c0b565b601255565b610fb3611c0b565b600f55565b610fc0611c0b565b601155565b6060600180546108bf906131fe565b610fdc611c0b565b601355565b610cd2338383611d4f565b610ff4611c0b565b601055565b611003338361180d565b61101f5760405162461bcd60e51b81526004016109dd90613238565b610bff84848484611e1d565b600e8054610e3e906131fe565b60606109c48211156111e757600061104f83610dfc565b6001600160a01b0316036110755760405162461bcd60e51b81526004016109dd906133a9565b600082815260186020908152604091829020548251808401845260068082526539b4b63b32b960d11b82850152845180860190955284526529b4b63b32b960d11b9284019290925260ff16916001839003611109576040518060400160405280600481526020016319dbdb1960e21b81525091506040518060400160405280600481526020016311dbdb1960e21b81525090505b8260ff16600203611164576040518060400160405280600c81526020016b189b1858dad91a585b5bdb9960a21b81525091506040518060400160405280600d81526020016c109b1858dac8111a585b5bdb99609a1b81525090505b600061116f86611e50565b600e846040516020016111839291906133fc565b60408051601f19818403018152908290526111a392918590602001613492565b60405160208183030381529060405290506111bd81611ee3565b6040516020016111cd91906135d3565b604051602081830303815290604052945050505050919050565b6108aa82612036565b6111f8611c0b565b600e610cd282826132e9565b61120c611c0b565b601555565b611219611c0b565b600c80546001600160a01b0319166001600160a01b038c16179055600d6112408a826132e9565b50600e61124d89826132e9565b50600f96909655601094909455601192909255601255601355601455601555505050565b611279611c0b565b6001600160a01b0381166112de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109dd565b6112e781611cba565b50565b600385146113305760405162461bcd60e51b81526020600482015260136024820152724e656564334974656d73546f5570677261646560681b60448201526064016109dd565b84831461136d5760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69644461746160a81b60448201526064016109dd565b6000868686866040516020016113869493929190613629565b6040516020818303038152906040528051906020012090508281146113e05760405162461bcd60e51b815260206004820152601060248201526f496e76616c69645369676e617475726560801b60448201526064016109dd565b600c546001600160a01b03166113f983610b1f866119fd565b6001600160a01b03161461143f5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b229b4b3b732b960991b60448201526064016109dd565b60008585600081811061145457611454613285565b90506020020160208101906114699190613683565b905060028160ff16106114b05760405162461bcd60e51b815260206004820152600f60248201526e4e6f4e656564546f5570677261646560881b60448201526064016109dd565b60005b87811015611577576114dd338a8a848181106114d1576114d1613285565b9050602002013561180d565b6114f95760405162461bcd60e51b81526004016109dd90613238565b86868281811061150b5761150b613285565b90506020020160208101906115209190613683565b60ff168260ff16146115655760405162461bcd60e51b815260206004820152600e60248201526d26bab9ba2132a9b0b6b2aa34b2b960911b60448201526064016109dd565b8061156f816136b4565b9150506114b3565b508060ff166000036115c6576000601454116115c65760405162461bcd60e51b815260206004820152600e60248201526d11dbdb1913585e14995858da195960921b60448201526064016109dd565b8060ff16600103611617576000601554116116175760405162461bcd60e51b8152602060048201526011602482015270111a585b5bdb9913585e14995858da1959607a1b60448201526064016109dd565b61162333601754612131565b61162e8160016136cd565b601780546000908152601860205260408120805460ff191660ff949094169390931790925580549161165f836136b4565b91905055508060ff16600003611685576014805490600061167f836136e6565b91905055505b8060ff166001036116be576003601460008282546116a391906136fd565b9091555050601580549060006116b8836136e6565b91905055505b60005b878110156116fc576116ea8989838181106116de576116de613285565b905060200201356122ca565b806116f4816136b4565b9150506116c1565b507f421aa12d3ea875a63c6092c3847ab27e843028ebb3c35600fcfc1207f19a3b023389898989604051611734959493929190613710565b60405180910390a15050505050505050565b60006001600160e01b0319821663780e9d6360e01b14806108aa57506108aa826122f8565b6000818152600260205260409020546001600160a01b03166112e75760405162461bcd60e51b81526004016109dd906133a9565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117d482610dfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061181983610dfc565b9050806001600160a01b0316846001600160a01b0316148061186057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118845750836001600160a01b031661187984610942565b6001600160a01b0316145b949350505050565b826001600160a01b031661189f82610dfc565b6001600160a01b0316146118c55760405162461bcd60e51b81526004016109dd906137a1565b6001600160a01b0382166119275760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109dd565b6119348383836001612348565b826001600160a01b031661194782610dfc565b6001600160a01b03161461196d5760405162461bcd60e51b81526004016109dd906137a1565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000611a5f858561235c565b91509150611a6c816123a1565b509392505050565b600b54600160a01b900460ff1615611ab75760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b60448201526064016109dd565b6013544210611af65760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d125cd15b99195960aa1b60448201526064016109dd565b611b036109c460016136fd565b81601654611b1191906136fd565b10611b535760405162461bcd60e51b8152602060048201526012602482015271139bdd115b9bdd59da151bdad95b9319599d60721b60448201526064016109dd565b600b546001600160a01b03163314611bb15780600f54611b7391906137e6565b341015611bb15760405162461bcd60e51b815260206004820152600c60248201526b125b9cdd59999a58da595b9d60a21b60448201526064016109dd565b60015b611bbf8260016136fd565b811015611bef57611bdd8382601654611bd891906136fd565b612131565b80611be7816136b4565b915050611bb4565b508060166000828254611c0291906136fd565b90915550505050565b600b546001600160a01b03163314610ce65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109dd565b611c6d6124eb565b600b805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611d1461253b565b600b805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c9d3390565b816001600160a01b0316836001600160a01b031603611db05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109dd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e2884848461188c565b611e3484848484612588565b610bff5760405162461bcd60e51b81526004016109dd906137fd565b60606000611e5d83612689565b600101905060008167ffffffffffffffff811115611e7d57611e7d612e55565b6040519080825280601f01601f191660200182016040528015611ea7576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611eb157509392505050565b60608151600003611f0257505060408051602081019091526000815290565b60006040518060600160405280604081526020016139306040913990506000600384516002611f3191906136fd565b611f3b919061384f565b611f469060046137e6565b67ffffffffffffffff811115611f5e57611f5e612e55565b6040519080825280601f01601f191660200182016040528015611f88576020820181803683370190505b509050600182016020820185865187015b80821015611ff4576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611f99565b505060038651066001811461201057600281146120235761202b565b603d6001830353603d600283035361202b565b603d60018303535b509195945050505050565b60606120418261176b565b6000828152600a60205260408120805461205a906131fe565b80601f0160208091040260200160405190810160405280929190818152602001828054612086906131fe565b80156120d35780601f106120a8576101008083540402835291602001916120d3565b820191906000526020600020905b8154815290600101906020018083116120b657829003601f168201915b5050505050905060006120e4612761565b905080516000036120f6575092915050565b815115612128578082604051602001612110929190613871565b60405160208183030381529060405292505050919050565b61188484612770565b6001600160a01b0382166121875760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109dd565b6000818152600260205260409020546001600160a01b0316156121ec5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109dd565b6121fa600083836001612348565b6000818152600260205260409020546001600160a01b03161561225f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109dd565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6122d333610a88565b6122ef5760405162461bcd60e51b81526004016109dd90613238565b6112e7816127d7565b60006001600160e01b031982166380ac58cd60e01b148061232957506001600160e01b03198216635b5e139f60e01b145b806108aa57506301ffc9a760e01b6001600160e01b03198316146108aa565b61235061253b565b610bff84848484612817565b60008082516041036123925760208301516040840151606085015160001a61238687828585612957565b9450945050505061239a565b506000905060025b9250929050565b60008160048111156123b5576123b56138a0565b036123bd5750565b60018160048111156123d1576123d16138a0565b0361241e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109dd565b6002816004811115612432576124326138a0565b0361247f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109dd565b6003816004811115612493576124936138a0565b036112e75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109dd565b600b54600160a01b900460ff16610ce65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109dd565b600b54600160a01b900460ff1615610ce65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109dd565b60006001600160a01b0384163b1561267e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125cc9033908990889088906004016138b6565b6020604051808303816000875af1925050508015612607575060408051601f3d908101601f19168201909252612604918101906138e9565b60015b612664573d808015612635576040519150601f19603f3d011682016040523d82523d6000602084013e61263a565b606091505b50805160000361265c5760405162461bcd60e51b81526004016109dd906137fd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611884565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106126c85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106126f4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061271257662386f26fc10000830492506010015b6305f5e100831061272a576305f5e100830492506008015b612710831061273e57612710830492506004015b60648310612750576064830492506002015b600a83106108aa5760010192915050565b6060600d80546108bf906131fe565b606061277b8261176b565b6000612785612761565b905060008151116127a557604051806020016040528060008152506127d0565b806127af84611e50565b6040516020016127c0929190613871565b6040516020818303038152906040525b9392505050565b6127e081612a1b565b6000818152600a6020526040902080546127f9906131fe565b1590506112e7576000818152600a602052604081206112e791612cd6565b61282384848484612abe565b60018111156128925760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016109dd565b816001600160a01b0385166128ee576128e981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612911565b836001600160a01b0316856001600160a01b031614612911576129118582612b46565b6001600160a01b03841661292d5761292881612be3565b612950565b846001600160a01b0316846001600160a01b031614612950576129508482612c92565b5050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561298e5750600090506003612a12565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129e2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0b57600060019250925050612a12565b9150600090505b94509492505050565b6000612a2682610dfc565b9050612a36816000846001612348565b612a3f82610dfc565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001811115610bff576001600160a01b03841615612b04576001600160a01b03841660009081526003602052604081208054839290612afe908490613906565b90915550505b6001600160a01b03831615610bff576001600160a01b03831660009081526003602052604081208054839290612b3b9084906136fd565b909155505050505050565b60006001612b5384610ee9565b612b5d9190613906565b600083815260076020526040902054909150808214612bb0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612bf590600190613906565b60008381526009602052604081205460088054939450909284908110612c1d57612c1d613285565b906000526020600020015490508060088381548110612c3e57612c3e613285565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612c7657612c76613919565b6001900381819060005260206000200160009055905550505050565b6000612c9d83610ee9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b508054612ce2906131fe565b6000825580601f10612cf2575050565b601f0160209004906000526020600020908101906112e791905b80821115612d205760008155600101612d0c565b5090565b6001600160e01b0319811681146112e757600080fd5b600060208284031215612d4c57600080fd5b81356127d081612d24565b60005b83811015612d72578181015183820152602001612d5a565b50506000910152565b60008151808452612d93816020860160208601612d57565b601f01601f19169290920160200192915050565b6020815260006127d06020830184612d7b565b600060208284031215612dcc57600080fd5b5035919050565b80356001600160a01b0381168114612dea57600080fd5b919050565b60008060408385031215612e0257600080fd5b612e0b83612dd3565b946020939093013593505050565b600080600060608486031215612e2e57600080fd5b612e3784612dd3565b9250612e4560208501612dd3565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612e7c57600080fd5b813567ffffffffffffffff80821115612e9757612e97612e55565b604051601f8301601f19908116603f01168101908282118183101715612ebf57612ebf612e55565b81604052838152866020858801011115612ed857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215612f0e57600080fd5b612f1785612dd3565b93506020850135925060408501359150606085013567ffffffffffffffff811115612f4157600080fd5b612f4d87828801612e6b565b91505092959194509250565b600060208284031215612f6b57600080fd5b813567ffffffffffffffff811115612f8257600080fd5b61188484828501612e6b565b600060208284031215612fa057600080fd5b6127d082612dd3565b60008060408385031215612fbc57600080fd5b612fc583612dd3565b915060208301358015158114612fda57600080fd5b809150509250929050565b60008060008060808587031215612ffb57600080fd5b61300485612dd3565b935061301260208601612dd3565b925060408501359150606085013567ffffffffffffffff811115612f4157600080fd5b6000806000806000806000806000806101408b8d03121561305557600080fd5b61305e8b612dd3565b995060208b013567ffffffffffffffff8082111561307b57600080fd5b6130878e838f01612e6b565b9a5060408d013591508082111561309d57600080fd5b506130aa8d828e01612e6b565b9a9d999c50999a60608101359a5060808101359960a0820135995060c0820135985060e08201359750610100820135965061012090910135945092505050565b600080604083850312156130fd57600080fd5b61310683612dd3565b915061311460208401612dd3565b90509250929050565b60008083601f84011261312f57600080fd5b50813567ffffffffffffffff81111561314757600080fd5b6020830191508360208260051b850101111561239a57600080fd5b6000806000806000806080878903121561317b57600080fd5b863567ffffffffffffffff8082111561319357600080fd5b61319f8a838b0161311d565b909850965060208901359150808211156131b857600080fd5b6131c48a838b0161311d565b90965094506040890135935060608901359150808211156131e457600080fd5b506131f189828a01612e6b565b9150509295509295509295565b600181811c9082168061321257607f821691505b60208210810361323257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b601f821115610a7e57600081815260208120601f850160051c810160208610156132c25750805b601f850160051c820191505b818110156132e1578281556001016132ce565b505050505050565b815167ffffffffffffffff81111561330357613303612e55565b6133178161331184546131fe565b8461329b565b602080601f83116001811461334c57600084156133345750858301515b600019600386901b1c1916600185901b1785556132e1565b600085815260208120601f198616915b8281101561337b5788860151825594840194600190910190840161335c565b50858210156133995787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b600081516133f2818560208601612d57565b9290920192915050565b600080845461340a816131fe565b60018281168015613422576001811461343757613466565b60ff1984168752821515830287019450613466565b8860005260208060002060005b8581101561345d5781548a820152908401908201613444565b50505082870194505b50505050835161347a818360208801612d57565b630b9b5c0d60e21b9101908152600401949350505050565b607b60f81b815269226e616d65223a20222360b01b600182015283516000906134c281600b850160208901612d57565b61088b60f21b600b9184019182018190527f226465736372697074696f6e223a20224d617276696e6175742047616d652050600d83015264185cdcc88b60da1b602d830152691134b6b0b3b2911d101160b11b6032830152855161352d81603c850160208a01612d57565b603c9201918201526f2261747472696275746573223a205b7b60801b603e8201526135c96135bc6135ae6135a161359b613585604e870174089d1c985a5d17dd1e5c19488e8808951a595c888b605a1b815260150190565b69113b30b63ab2911d101160b11b8152600a0190565b886133e0565b601160f91b815260010190565b617d5d60f01b815260020190565b607d60f81b815260010190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161360b81601d850160208701612d57565b91909101601d0192915050565b803560ff81168114612dea57600080fd5b60006001600160fb1b0385111561363f57600080fd5b8460051b8087843782018460005b858110156136765760ff61366083613618565b168352602092830192919091019060010161364d565b5090979650505050505050565b60006020828403121561369557600080fd5b6127d082613618565b634e487b7160e01b600052601160045260246000fd5b6000600182016136c6576136c661369e565b5060010190565b60ff81811683821601908111156108aa576108aa61369e565b6000816136f5576136f561369e565b506000190190565b808201808211156108aa576108aa61369e565b6001600160a01b0386168152606060208083018290529082018590526000906001600160fb1b0386111561374357600080fd5b8560051b808860808601378301838103608090810160408601528101859052859060009060a0015b868210156137935760ff61377e84613618565b1681529183019160019190910190830161376b565b9a9950505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b80820281158282048414176108aa576108aa61369e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261386c57634e487b7160e01b600052601260045260246000fd5b500490565b60008351613883818460208801612d57565b835190830190613897818360208801612d57565b01949350505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135c990830184612d7b565b6000602082840312156138fb57600080fd5b81516127d081612d24565b818103818111156108aa576108aa61369e565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203ad23d68c95764ed86eb2db1c7f2b8e254c5ae8a9f1e665006a265d714d11c9764736f6c63430008110033

Deployed Bytecode

0x6080604052600436106102c95760003560e01c80637441880011610175578063afdf6134116100dc578063d30c1d2f11610095578063e985e9c51161006f578063e985e9c514610800578063f2fde38b14610849578063f65e5cbc14610869578063fc5d00371461087f57600080fd5b8063d30c1d2f146107aa578063d5abeb01146107ca578063e8076aac146107e057600080fd5b8063afdf6134146106ff578063b228d9251461071f578063b88d4fde14610735578063c7ef2b7814610755578063c87b56dd1461076a578063cf6210fa1461078a57600080fd5b806392b05f861161012e57806392b05f861461065e57806395d89b411461067e5780639eaf167d146106935780639f8532c1146106b3578063a035b1fe146106c9578063a22cb465146106df57600080fd5b806374418800146105b55780638456cb59146105d55780638cfec4c0146105ea5780638da5cb5b146106005780638ebb25ca1461061e57806391b7f5ed1461063e57600080fd5b80633ccfd60b1161023457806355f804b3116101ed5780636c0360eb116101c75780636c0360eb1461054b5780636c19e7831461056057806370a0823114610580578063715018a6146105a057600080fd5b806355f804b3146104ec5780635c975abb1461050c5780636352211e1461052b57600080fd5b80633ccfd60b146104585780633f4ba83a1461046d57806340c10f191461048257806342842e0e1461049557806348575bfa146104b55780634f6ccce7146104cc57600080fd5b806318160ddd1161028657806318160ddd146103b9578063238ac933146103ce57806323b872dd146103ee57806325ee31411461040e5780632f745c591461042157806331f9c9191461044157600080fd5b8063017043a5146102ce57806301ffc9a7146102f757806306fdde0314610327578063081812fc14610349578063082ce92814610381578063095ea7b314610397575b600080fd5b3480156102da57600080fd5b506102e460135481565b6040519081526020015b60405180910390f35b34801561030357600080fd5b50610317610312366004612d3a565b61089f565b60405190151581526020016102ee565b34801561033357600080fd5b5061033c6108b0565b6040516102ee9190612da7565b34801561035557600080fd5b50610369610364366004612dba565b610942565b6040516001600160a01b0390911681526020016102ee565b34801561038d57600080fd5b506102e460145481565b3480156103a357600080fd5b506103b76103b2366004612def565b610969565b005b3480156103c557600080fd5b506008546102e4565b3480156103da57600080fd5b50600c54610369906001600160a01b031681565b3480156103fa57600080fd5b506103b7610409366004612e19565b610a83565b6103b761041c366004612ef8565b610ab5565b34801561042d57600080fd5b506102e461043c366004612def565b610c05565b34801561044d57600080fd5b506012544211610317565b34801561046457600080fd5b506103b7610c9b565b34801561047957600080fd5b506103b7610cd6565b6103b7610490366004612def565b610ce8565b3480156104a157600080fd5b506103b76104b0366004612e19565b610d3a565b3480156104c157600080fd5b506011544211610317565b3480156104d857600080fd5b506102e46104e7366004612dba565b610d55565b3480156104f857600080fd5b506103b7610507366004612f59565b610de8565b34801561051857600080fd5b50600b54600160a01b900460ff16610317565b34801561053757600080fd5b50610369610546366004612dba565b610dfc565b34801561055757600080fd5b5061033c610e31565b34801561056c57600080fd5b506103b761057b366004612f8e565b610ebf565b34801561058c57600080fd5b506102e461059b366004612f8e565b610ee9565b3480156105ac57600080fd5b506103b7610f6f565b3480156105c157600080fd5b506103b76105d0366004612dba565b610f81565b3480156105e157600080fd5b506103b7610f8e565b3480156105f657600080fd5b506102e460125481565b34801561060c57600080fd5b50600b546001600160a01b0316610369565b34801561062a57600080fd5b506103b7610639366004612dba565b610f9e565b34801561064a57600080fd5b506103b7610659366004612dba565b610fab565b34801561066a57600080fd5b506103b7610679366004612dba565b610fb8565b34801561068a57600080fd5b5061033c610fc5565b34801561069f57600080fd5b506103b76106ae366004612dba565b610fd4565b3480156106bf57600080fd5b506102e460115481565b3480156106d557600080fd5b506102e4600f5481565b3480156106eb57600080fd5b506103b76106fa366004612fa9565b610fe1565b34801561070b57600080fd5b506103b761071a366004612dba565b610fec565b34801561072b57600080fd5b506102e460105481565b34801561074157600080fd5b506103b7610750366004612fe5565b610ff9565b34801561076157600080fd5b5061033c61102b565b34801561077657600080fd5b5061033c610785366004612dba565b611038565b34801561079657600080fd5b506103b76107a5366004612f59565b6111f0565b3480156107b657600080fd5b506103b76107c5366004612dba565b611204565b3480156107d657600080fd5b506102e46109c481565b3480156107ec57600080fd5b506103b76107fb366004613035565b611211565b34801561080c57600080fd5b5061031761081b3660046130ea565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085557600080fd5b506103b7610864366004612f8e565b611271565b34801561087557600080fd5b506102e460155481565b34801561088b57600080fd5b506103b761089a366004613162565b6112ea565b60006108aa82611746565b92915050565b6060600080546108bf906131fe565b80601f01602080910402602001604051908101604052809291908181526020018280546108eb906131fe565b80156109385780601f1061090d57610100808354040283529160200191610938565b820191906000526020600020905b81548152906001019060200180831161091b57829003601f168201915b5050505050905090565b600061094d8261176b565b506000908152600460205260409020546001600160a01b031690565b600061097482610dfc565b9050806001600160a01b0316836001600160a01b0316036109e65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610a025750610a02813361081b565b610a745760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016109dd565b610a7e838361179f565b505050565b610a8e335b8261180d565b610aaa5760405162461bcd60e51b81526004016109dd90613238565b610a7e83838361188c565b6011544211610b065760405162461bcd60e51b815260206004820152601760248201527f57686974656c6973744d696e744e6f745374617274656400000000000000000060448201526064016109dd565b600c546001600160a01b0316610b2582610b1f856119fd565b90611a50565b6001600160a01b031614610b6b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b229b4b3b732b960991b60448201526064016109dd565b6012544210610bb35760405162461bcd60e51b815260206004820152601460248201527315da1a5d195b1a5cdd135a5b9d125cd15b99195960621b60448201526064016109dd565b601054831115610bf55760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59105b5bdd5b9d609a1b60448201526064016109dd565b610bff8484611a74565b50505050565b6000610c1083610ee9565b8210610c725760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109dd565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610ca3611c0b565b6040514790339082156108fc029083906000818181858888f19350505050158015610cd2573d6000803e3d6000fd5b5050565b610cde611c0b565b610ce6611c65565b565b6012544211610d305760405162461bcd60e51b8152602060048201526014602482015273141d589b1a58d35a5b9d139bdd14dd185c9d195960621b60448201526064016109dd565b610cd28282611a74565b610a7e83838360405180602001604052806000815250610ff9565b6000610d6060085490565b8210610dc35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109dd565b60088281548110610dd657610dd6613285565b90600052602060002001549050919050565b610df0611c0b565b600d610cd282826132e9565b6000818152600260205260408120546001600160a01b0316806108aa5760405162461bcd60e51b81526004016109dd906133a9565b600d8054610e3e906131fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6a906131fe565b8015610eb75780601f10610e8c57610100808354040283529160200191610eb7565b820191906000526020600020905b815481529060010190602001808311610e9a57829003601f168201915b505050505081565b610ec7611c0b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610f535760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109dd565b506001600160a01b031660009081526003602052604090205490565b610f77611c0b565b610ce66000611cba565b610f89611c0b565b601455565b610f96611c0b565b610ce6611d0c565b610fa6611c0b565b601255565b610fb3611c0b565b600f55565b610fc0611c0b565b601155565b6060600180546108bf906131fe565b610fdc611c0b565b601355565b610cd2338383611d4f565b610ff4611c0b565b601055565b611003338361180d565b61101f5760405162461bcd60e51b81526004016109dd90613238565b610bff84848484611e1d565b600e8054610e3e906131fe565b60606109c48211156111e757600061104f83610dfc565b6001600160a01b0316036110755760405162461bcd60e51b81526004016109dd906133a9565b600082815260186020908152604091829020548251808401845260068082526539b4b63b32b960d11b82850152845180860190955284526529b4b63b32b960d11b9284019290925260ff16916001839003611109576040518060400160405280600481526020016319dbdb1960e21b81525091506040518060400160405280600481526020016311dbdb1960e21b81525090505b8260ff16600203611164576040518060400160405280600c81526020016b189b1858dad91a585b5bdb9960a21b81525091506040518060400160405280600d81526020016c109b1858dac8111a585b5bdb99609a1b81525090505b600061116f86611e50565b600e846040516020016111839291906133fc565b60408051601f19818403018152908290526111a392918590602001613492565b60405160208183030381529060405290506111bd81611ee3565b6040516020016111cd91906135d3565b604051602081830303815290604052945050505050919050565b6108aa82612036565b6111f8611c0b565b600e610cd282826132e9565b61120c611c0b565b601555565b611219611c0b565b600c80546001600160a01b0319166001600160a01b038c16179055600d6112408a826132e9565b50600e61124d89826132e9565b50600f96909655601094909455601192909255601255601355601455601555505050565b611279611c0b565b6001600160a01b0381166112de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109dd565b6112e781611cba565b50565b600385146113305760405162461bcd60e51b81526020600482015260136024820152724e656564334974656d73546f5570677261646560681b60448201526064016109dd565b84831461136d5760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69644461746160a81b60448201526064016109dd565b6000868686866040516020016113869493929190613629565b6040516020818303038152906040528051906020012090508281146113e05760405162461bcd60e51b815260206004820152601060248201526f496e76616c69645369676e617475726560801b60448201526064016109dd565b600c546001600160a01b03166113f983610b1f866119fd565b6001600160a01b03161461143f5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b229b4b3b732b960991b60448201526064016109dd565b60008585600081811061145457611454613285565b90506020020160208101906114699190613683565b905060028160ff16106114b05760405162461bcd60e51b815260206004820152600f60248201526e4e6f4e656564546f5570677261646560881b60448201526064016109dd565b60005b87811015611577576114dd338a8a848181106114d1576114d1613285565b9050602002013561180d565b6114f95760405162461bcd60e51b81526004016109dd90613238565b86868281811061150b5761150b613285565b90506020020160208101906115209190613683565b60ff168260ff16146115655760405162461bcd60e51b815260206004820152600e60248201526d26bab9ba2132a9b0b6b2aa34b2b960911b60448201526064016109dd565b8061156f816136b4565b9150506114b3565b508060ff166000036115c6576000601454116115c65760405162461bcd60e51b815260206004820152600e60248201526d11dbdb1913585e14995858da195960921b60448201526064016109dd565b8060ff16600103611617576000601554116116175760405162461bcd60e51b8152602060048201526011602482015270111a585b5bdb9913585e14995858da1959607a1b60448201526064016109dd565b61162333601754612131565b61162e8160016136cd565b601780546000908152601860205260408120805460ff191660ff949094169390931790925580549161165f836136b4565b91905055508060ff16600003611685576014805490600061167f836136e6565b91905055505b8060ff166001036116be576003601460008282546116a391906136fd565b9091555050601580549060006116b8836136e6565b91905055505b60005b878110156116fc576116ea8989838181106116de576116de613285565b905060200201356122ca565b806116f4816136b4565b9150506116c1565b507f421aa12d3ea875a63c6092c3847ab27e843028ebb3c35600fcfc1207f19a3b023389898989604051611734959493929190613710565b60405180910390a15050505050505050565b60006001600160e01b0319821663780e9d6360e01b14806108aa57506108aa826122f8565b6000818152600260205260409020546001600160a01b03166112e75760405162461bcd60e51b81526004016109dd906133a9565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117d482610dfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061181983610dfc565b9050806001600160a01b0316846001600160a01b0316148061186057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118845750836001600160a01b031661187984610942565b6001600160a01b0316145b949350505050565b826001600160a01b031661189f82610dfc565b6001600160a01b0316146118c55760405162461bcd60e51b81526004016109dd906137a1565b6001600160a01b0382166119275760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109dd565b6119348383836001612348565b826001600160a01b031661194782610dfc565b6001600160a01b03161461196d5760405162461bcd60e51b81526004016109dd906137a1565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000611a5f858561235c565b91509150611a6c816123a1565b509392505050565b600b54600160a01b900460ff1615611ab75760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b60448201526064016109dd565b6013544210611af65760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d125cd15b99195960aa1b60448201526064016109dd565b611b036109c460016136fd565b81601654611b1191906136fd565b10611b535760405162461bcd60e51b8152602060048201526012602482015271139bdd115b9bdd59da151bdad95b9319599d60721b60448201526064016109dd565b600b546001600160a01b03163314611bb15780600f54611b7391906137e6565b341015611bb15760405162461bcd60e51b815260206004820152600c60248201526b125b9cdd59999a58da595b9d60a21b60448201526064016109dd565b60015b611bbf8260016136fd565b811015611bef57611bdd8382601654611bd891906136fd565b612131565b80611be7816136b4565b915050611bb4565b508060166000828254611c0291906136fd565b90915550505050565b600b546001600160a01b03163314610ce65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109dd565b611c6d6124eb565b600b805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611d1461253b565b600b805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c9d3390565b816001600160a01b0316836001600160a01b031603611db05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109dd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e2884848461188c565b611e3484848484612588565b610bff5760405162461bcd60e51b81526004016109dd906137fd565b60606000611e5d83612689565b600101905060008167ffffffffffffffff811115611e7d57611e7d612e55565b6040519080825280601f01601f191660200182016040528015611ea7576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611eb157509392505050565b60608151600003611f0257505060408051602081019091526000815290565b60006040518060600160405280604081526020016139306040913990506000600384516002611f3191906136fd565b611f3b919061384f565b611f469060046137e6565b67ffffffffffffffff811115611f5e57611f5e612e55565b6040519080825280601f01601f191660200182016040528015611f88576020820181803683370190505b509050600182016020820185865187015b80821015611ff4576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611f99565b505060038651066001811461201057600281146120235761202b565b603d6001830353603d600283035361202b565b603d60018303535b509195945050505050565b60606120418261176b565b6000828152600a60205260408120805461205a906131fe565b80601f0160208091040260200160405190810160405280929190818152602001828054612086906131fe565b80156120d35780601f106120a8576101008083540402835291602001916120d3565b820191906000526020600020905b8154815290600101906020018083116120b657829003601f168201915b5050505050905060006120e4612761565b905080516000036120f6575092915050565b815115612128578082604051602001612110929190613871565b60405160208183030381529060405292505050919050565b61188484612770565b6001600160a01b0382166121875760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109dd565b6000818152600260205260409020546001600160a01b0316156121ec5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109dd565b6121fa600083836001612348565b6000818152600260205260409020546001600160a01b03161561225f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109dd565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6122d333610a88565b6122ef5760405162461bcd60e51b81526004016109dd90613238565b6112e7816127d7565b60006001600160e01b031982166380ac58cd60e01b148061232957506001600160e01b03198216635b5e139f60e01b145b806108aa57506301ffc9a760e01b6001600160e01b03198316146108aa565b61235061253b565b610bff84848484612817565b60008082516041036123925760208301516040840151606085015160001a61238687828585612957565b9450945050505061239a565b506000905060025b9250929050565b60008160048111156123b5576123b56138a0565b036123bd5750565b60018160048111156123d1576123d16138a0565b0361241e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109dd565b6002816004811115612432576124326138a0565b0361247f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109dd565b6003816004811115612493576124936138a0565b036112e75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109dd565b600b54600160a01b900460ff16610ce65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109dd565b600b54600160a01b900460ff1615610ce65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109dd565b60006001600160a01b0384163b1561267e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125cc9033908990889088906004016138b6565b6020604051808303816000875af1925050508015612607575060408051601f3d908101601f19168201909252612604918101906138e9565b60015b612664573d808015612635576040519150601f19603f3d011682016040523d82523d6000602084013e61263a565b606091505b50805160000361265c5760405162461bcd60e51b81526004016109dd906137fd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611884565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106126c85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106126f4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061271257662386f26fc10000830492506010015b6305f5e100831061272a576305f5e100830492506008015b612710831061273e57612710830492506004015b60648310612750576064830492506002015b600a83106108aa5760010192915050565b6060600d80546108bf906131fe565b606061277b8261176b565b6000612785612761565b905060008151116127a557604051806020016040528060008152506127d0565b806127af84611e50565b6040516020016127c0929190613871565b6040516020818303038152906040525b9392505050565b6127e081612a1b565b6000818152600a6020526040902080546127f9906131fe565b1590506112e7576000818152600a602052604081206112e791612cd6565b61282384848484612abe565b60018111156128925760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016109dd565b816001600160a01b0385166128ee576128e981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612911565b836001600160a01b0316856001600160a01b031614612911576129118582612b46565b6001600160a01b03841661292d5761292881612be3565b612950565b846001600160a01b0316846001600160a01b031614612950576129508482612c92565b5050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561298e5750600090506003612a12565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129e2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0b57600060019250925050612a12565b9150600090505b94509492505050565b6000612a2682610dfc565b9050612a36816000846001612348565b612a3f82610dfc565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001811115610bff576001600160a01b03841615612b04576001600160a01b03841660009081526003602052604081208054839290612afe908490613906565b90915550505b6001600160a01b03831615610bff576001600160a01b03831660009081526003602052604081208054839290612b3b9084906136fd565b909155505050505050565b60006001612b5384610ee9565b612b5d9190613906565b600083815260076020526040902054909150808214612bb0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612bf590600190613906565b60008381526009602052604081205460088054939450909284908110612c1d57612c1d613285565b906000526020600020015490508060088381548110612c3e57612c3e613285565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612c7657612c76613919565b6001900381819060005260206000200160009055905550505050565b6000612c9d83610ee9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b508054612ce2906131fe565b6000825580601f10612cf2575050565b601f0160209004906000526020600020908101906112e791905b80821115612d205760008155600101612d0c565b5090565b6001600160e01b0319811681146112e757600080fd5b600060208284031215612d4c57600080fd5b81356127d081612d24565b60005b83811015612d72578181015183820152602001612d5a565b50506000910152565b60008151808452612d93816020860160208601612d57565b601f01601f19169290920160200192915050565b6020815260006127d06020830184612d7b565b600060208284031215612dcc57600080fd5b5035919050565b80356001600160a01b0381168114612dea57600080fd5b919050565b60008060408385031215612e0257600080fd5b612e0b83612dd3565b946020939093013593505050565b600080600060608486031215612e2e57600080fd5b612e3784612dd3565b9250612e4560208501612dd3565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612e7c57600080fd5b813567ffffffffffffffff80821115612e9757612e97612e55565b604051601f8301601f19908116603f01168101908282118183101715612ebf57612ebf612e55565b81604052838152866020858801011115612ed857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215612f0e57600080fd5b612f1785612dd3565b93506020850135925060408501359150606085013567ffffffffffffffff811115612f4157600080fd5b612f4d87828801612e6b565b91505092959194509250565b600060208284031215612f6b57600080fd5b813567ffffffffffffffff811115612f8257600080fd5b61188484828501612e6b565b600060208284031215612fa057600080fd5b6127d082612dd3565b60008060408385031215612fbc57600080fd5b612fc583612dd3565b915060208301358015158114612fda57600080fd5b809150509250929050565b60008060008060808587031215612ffb57600080fd5b61300485612dd3565b935061301260208601612dd3565b925060408501359150606085013567ffffffffffffffff811115612f4157600080fd5b6000806000806000806000806000806101408b8d03121561305557600080fd5b61305e8b612dd3565b995060208b013567ffffffffffffffff8082111561307b57600080fd5b6130878e838f01612e6b565b9a5060408d013591508082111561309d57600080fd5b506130aa8d828e01612e6b565b9a9d999c50999a60608101359a5060808101359960a0820135995060c0820135985060e08201359750610100820135965061012090910135945092505050565b600080604083850312156130fd57600080fd5b61310683612dd3565b915061311460208401612dd3565b90509250929050565b60008083601f84011261312f57600080fd5b50813567ffffffffffffffff81111561314757600080fd5b6020830191508360208260051b850101111561239a57600080fd5b6000806000806000806080878903121561317b57600080fd5b863567ffffffffffffffff8082111561319357600080fd5b61319f8a838b0161311d565b909850965060208901359150808211156131b857600080fd5b6131c48a838b0161311d565b90965094506040890135935060608901359150808211156131e457600080fd5b506131f189828a01612e6b565b9150509295509295509295565b600181811c9082168061321257607f821691505b60208210810361323257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b601f821115610a7e57600081815260208120601f850160051c810160208610156132c25750805b601f850160051c820191505b818110156132e1578281556001016132ce565b505050505050565b815167ffffffffffffffff81111561330357613303612e55565b6133178161331184546131fe565b8461329b565b602080601f83116001811461334c57600084156133345750858301515b600019600386901b1c1916600185901b1785556132e1565b600085815260208120601f198616915b8281101561337b5788860151825594840194600190910190840161335c565b50858210156133995787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b600081516133f2818560208601612d57565b9290920192915050565b600080845461340a816131fe565b60018281168015613422576001811461343757613466565b60ff1984168752821515830287019450613466565b8860005260208060002060005b8581101561345d5781548a820152908401908201613444565b50505082870194505b50505050835161347a818360208801612d57565b630b9b5c0d60e21b9101908152600401949350505050565b607b60f81b815269226e616d65223a20222360b01b600182015283516000906134c281600b850160208901612d57565b61088b60f21b600b9184019182018190527f226465736372697074696f6e223a20224d617276696e6175742047616d652050600d83015264185cdcc88b60da1b602d830152691134b6b0b3b2911d101160b11b6032830152855161352d81603c850160208a01612d57565b603c9201918201526f2261747472696275746573223a205b7b60801b603e8201526135c96135bc6135ae6135a161359b613585604e870174089d1c985a5d17dd1e5c19488e8808951a595c888b605a1b815260150190565b69113b30b63ab2911d101160b11b8152600a0190565b886133e0565b601160f91b815260010190565b617d5d60f01b815260020190565b607d60f81b815260010190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161360b81601d850160208701612d57565b91909101601d0192915050565b803560ff81168114612dea57600080fd5b60006001600160fb1b0385111561363f57600080fd5b8460051b8087843782018460005b858110156136765760ff61366083613618565b168352602092830192919091019060010161364d565b5090979650505050505050565b60006020828403121561369557600080fd5b6127d082613618565b634e487b7160e01b600052601160045260246000fd5b6000600182016136c6576136c661369e565b5060010190565b60ff81811683821601908111156108aa576108aa61369e565b6000816136f5576136f561369e565b506000190190565b808201808211156108aa576108aa61369e565b6001600160a01b0386168152606060208083018290529082018590526000906001600160fb1b0386111561374357600080fd5b8560051b808860808601378301838103608090810160408601528101859052859060009060a0015b868210156137935760ff61377e84613618565b1681529183019160019190910190830161376b565b9a9950505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b80820281158282048414176108aa576108aa61369e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261386c57634e487b7160e01b600052601260045260246000fd5b500490565b60008351613883818460208801612d57565b835190830190613897818360208801612d57565b01949350505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135c990830184612d7b565b6000602082840312156138fb57600080fd5b81516127d081612d24565b818103818111156108aa576108aa61369e565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203ad23d68c95764ed86eb2db1c7f2b8e254c5ae8a9f1e665006a265d714d11c9764736f6c63430008110033

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.