ETH Price: $3,126.15 (-4.54%)

MetaPopit (METAPOPIT)
 

Overview

TokenID

4180

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

MetaPopit is an innovative AAA gaming universe, based on blockchain technology.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MetaPopit

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 500 runs

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

pragma solidity ^0.8.0;
pragma abicoder v2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./libraries/ContractUri.sol";
import "./libraries/MinterAccess.sol";
import "./libraries/Recoverable.sol";
import "./libraries/TokenStake.sol";
import "./interfaces/INftCollection.sol";

/**
 * @title MetaPopit
 * @notice MetaPopit ERC721 NFT collection
 * https://www.metapopit.com
 */
contract MetaPopit is Ownable, ERC721, TokenStake, MinterAccess, ContractUri, Recoverable, INftCollection {
    using Strings for uint256;
    using Counters for Counters.Counter;

    bool public isMetadataLocked;

    uint256 public immutable maxSupply;
    Counters.Counter private _totalSupply;

    string public baseURI;

    event LockMetadata();

    /**
     * @notice Constructor
     * @param _maxSupply: NFT max totalSupply
     */
    constructor(uint256 _maxSupply) ERC721("MetaPopit", "METAPOPIT") {
        maxSupply = _maxSupply;
    }

    /**
     * @dev transfer only tokens that are not staked
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override whenTokenNotStaked(tokenId) {
        super._transfer(from, to, tokenId);
    }

    /**
     * @dev Returns the current supply
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply.current();
    }

    /**
     * @notice Allows the owner to lock the contract
     * @dev Callable by owner
     */
    function lockMetadata() external onlyOwner {
        require(!isMetadataLocked, "Operations: Contract is locked");
        require(bytes(baseURI).length > 0, "Operations: BaseUri not set");
        isMetadataLocked = true;
        emit LockMetadata();
    }

    /**
     * @notice Allows a member of the minters group to mint a token to a specific address
     * @param _to: address to receive the token
     * @param _tokenId: tokenId
     * @dev Callable by minters
     */
    function mint(address _to, uint256 _tokenId) external onlyMinters {
        require(_totalSupply.current() < maxSupply, "NFT: Total supply reached");
        _totalSupply.increment();
        _mint(_to, _tokenId);
    }

    /**
     * @notice Allows the owner to set the base URI to be used for all token IDs
     * @param _uri: base URI
     * @dev Callable by owner
     */
    function setBaseURI(string memory _uri) external onlyOwner {
        require(!isMetadataLocked, "Operations: Contract is locked");
        baseURI = _uri;
    }

    /**
     * @notice Returns the Uniform Resource Identifier (URI) for a token ID
     * @param tokenId: token ID
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "Invalid tokenId");
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : "";
    }
}

File 2 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 3 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 4 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _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: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) 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 {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 5 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 22 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 22 : ContractUri.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IContractUri.sol";

/**
 * @title ContractUri
 * @notice NFT Collection with ContractUri
 */
abstract contract ContractUri is Ownable, IContractUri {
    string public contractURI;

    function setContractURI(string memory _uri) external onlyOwner {
        contractURI = _uri;
    }
}

File 8 of 22 : MinterAccess.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IContractUri.sol";

/**
 * @title MinterAccess
 */
abstract contract MinterAccess is Ownable {
    mapping(address => bool) private _minters;

    event MinterAdded(address indexed minter);
    event MinterRemoved(address indexed minter);

    modifier onlyMinters() {
        require(_minters[_msgSender()], "Mintable: Caller is not minter");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters[account];
    }

    function addMinter(address minter) external onlyOwner {
        require(!_minters[minter], "Mintable: Already minter");
        _minters[minter] = true;
        emit MinterAdded(minter);
    }

    function removeMinter(address minter) external onlyOwner {
        require(_minters[minter], "Mintable: Not minter");
        _minters[minter] = false;
        emit MinterRemoved(minter);
    }
}

File 9 of 22 : Recoverable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma abicoder v2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "../interfaces/IRecoverable.sol";

abstract contract Recoverable is Ownable, IRecoverable {
    using SafeERC20 for IERC20;

    event NonFungibleTokenRecovery(address indexed token, uint256 tokenId);
    event TokenRecovery(address indexed token, uint256 amount);
    event EthRecovery(uint256 amount);

    /**
     * @notice Allows the owner to recover non-fungible tokens sent to the contract by mistake
     * @param _token: NFT token address
     * @param _tokenId: tokenId
     * @dev Callable by owner
     */
    function recoverNonFungibleToken(address _token, uint256 _tokenId) external virtual onlyOwner {
        IERC721(_token).transferFrom(address(this), address(msg.sender), _tokenId);
        emit NonFungibleTokenRecovery(_token, _tokenId);
    }

    /**
     * @notice Allows the owner to recover tokens sent to the contract by mistake
     * @param _token: token address
     * @dev Callable by owner
     */
    function recoverToken(address _token) external virtual onlyOwner {
        uint256 balance = IERC20(_token).balanceOf(address(this));
        require(balance != 0, "Operations: Cannot recover zero balance");

        IERC20(_token).safeTransfer(address(msg.sender), balance);
        emit TokenRecovery(_token, balance);
    }

    function recoverEth(address payable _to) external virtual onlyOwner {
        uint256 balance = address(this).balance;
        _to.transfer(balance);
        emit EthRecovery(balance);
    }
}

File 10 of 22 : TokenStake.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma abicoder v2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

/**
 * @title TokenStake
 * @notice Locally lock a token for staking
 */
abstract contract TokenStake is Ownable, ERC721 {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet private _tokenStakers;
    mapping(uint256 => address) private _stakedTokens;

    event TokenStaked(address indexed tokenStaker, uint256 tokenId);
    event TokenUnstaked(address indexed tokenStaker, uint256 tokenId);
    event TokenRecoverUnstaked(uint256 tokenId);
    event BatchUpdateTokenStaked(address indexed newTokenStaker, uint256[] tokenIds);

    event TokenStakerAdded(address indexed tokenStaker);
    event TokenStakerRemoved(address indexed tokenStaker);

    modifier tokenStakersOnly() {
        require(_tokenStakers.contains(_msgSender()), "TokenStake: Not staker");
        _;
    }

    modifier whenTokenNotStaked(uint256 tokenId) {
        require(_stakedTokens[tokenId] == address(0), "TokenStake: Token is staked");
        _;
    }

    modifier whenTokenStaked(uint256 tokenId) {
        require(_stakedTokens[tokenId] != address(0), "TokenStake: Token is not staked");
        _;
    }

    /**
     * @notice Returns `true` if token is staked and can't be transfered
     */
    function isTokenStaked(uint256 tokenId) public view returns (bool) {
        return _stakedTokens[tokenId] != address(0);
    }

    /**
     * @notice Returns the address of the staker for a specific `tokenId``
     * Returns 0x0 if token is not staked
     */
    function stakerForToken(uint256 tokenId) public view returns (address) {
        return _stakedTokens[tokenId];
    }

    /**
     * @notice Lock a token for staking
     * only callable by members of the `tokenStakers` list
     * The owner of the token must approve the staking contract prior to call this method
     */
    function stakeToken(uint256 tokenId) external tokenStakersOnly whenTokenNotStaked(tokenId) {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "TokenStake: Staker not approved");
        _stakedTokens[tokenId] = _msgSender();
        emit TokenStaked(_msgSender(), tokenId);
    }

    /**
     * @notice Lock a token for staking
     * only callable by the staker
     */
    function unstakeToken(uint256 tokenId) external whenTokenStaked(tokenId) {
        require(_msgSender() == _stakedTokens[tokenId], "TokenStake: Token not stake by account");
        require(_msgSender() != address(0), "TokenStake: can't unstake from zero address");
        _stakedTokens[tokenId] = address(0);
        emit TokenUnstaked(_msgSender(), tokenId);
    }

    /**
     * @notice Recover a staked token
     * only callable by the owner
     */
    function recoverStakeToken(uint256 tokenId) external onlyOwner whenTokenStaked(tokenId) {
        _stakedTokens[tokenId] = address(0);
        emit TokenRecoverUnstaked(tokenId);
    }

    /**
     * @dev Change the token staker for a list of tokenIds
     * only callable by the owner
     * this is usefull if the staker contract must be updated
     * if `newStaker` is set to 0x0, tokens will be unstaked
     */
    function batchUpdateTokenStake(address newStaker, uint256[] calldata tokenIds) external onlyOwner {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(_stakedTokens[tokenIds[i]] != address(0), "TokenStake: not restakeable");
            if (newStaker != address(0)) {
                require(_isApprovedOrOwner(newStaker, tokenIds[i]), "TokenStake: Staker not approved");
            }
            _stakedTokens[tokenIds[i]] = newStaker;
        }
        emit BatchUpdateTokenStaked(newStaker, tokenIds);
    }

    /**
     * @dev returns true if `account` is a member of the staker group
     */
    function isTokenStaker(address account) public view returns (bool) {
        return _tokenStakers.contains(account);
    }

    /**
     * @dev Add `tokenStaker` to the list of allowed stakers
     * only callable by the owner
     */
    function addTokenStaker(address tokenStaker) external onlyOwner {
        require(!_tokenStakers.contains(tokenStaker), "TokenStake: Already TokenStaker");
        _tokenStakers.add(tokenStaker);
        emit TokenStakerAdded(tokenStaker);
    }

    /**
     * @dev Remove `tokenStaker` from the list of allowed stakers
     * only callable by the owner
     */
    function removeTokenStaker(address tokenStaker) external onlyOwner {
        require(_tokenStakers.contains(tokenStaker), "TokenStake: Not TokenStaker");
        _tokenStakers.remove(tokenStaker);
        emit TokenStakerRemoved(tokenStaker);
    }
}

File 11 of 22 : INftCollection.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface INftCollection {
    /**
     * @dev Returns the current supply
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the max total supply
     */
    function maxSupply() external view returns (uint256);

    /**
     * @dev Mint NFTs from the NFT contract.
     */
    function mint(address _to, uint256 _tokenId) external;
}

File 12 of 22 : 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 22 : 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 14 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 15 of 22 : 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 16 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 17 of 22 : 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 18 of 22 : IContractUri.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IContractUri {
    function contractURI() external view returns (string memory);

    /**
     * @notice Allows the owner to set the contracy URI to be used
     * @param _uri: contract URI
     * @dev Callable by owner
     */
    function setContractURI(string memory _uri) external;
}

File 19 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 20 of 22 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 21 of 22 : IRecoverable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IRecoverable {
    /**
     * @notice Allows the owner to recover non-fungible tokens sent to the NFT contract by mistake and this contract
     * @param _token: NFT token address
     * @param _tokenId: tokenId
     * @dev Callable by owner
     */
    function recoverNonFungibleToken(address _token, uint256 _tokenId) external;

    /**
     * @notice Allows the owner to recover tokens sent to the NFT contract and this contract by mistake
     * @param _token: token address
     * @dev Callable by owner
     */
    function recoverToken(address _token) external;

    /**
     * @notice Allows the owner to recover ETH sent to the NFT contract ans and contract by mistake
     * @param _to: target address
     * @dev Callable by owner
     */
    function recoverEth(address payable _to) external;
}

File 22 of 22 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"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":"newTokenStaker","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"BatchUpdateTokenStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthRecovery","type":"event"},{"anonymous":false,"inputs":[],"name":"LockMetadata","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NonFungibleTokenRecovery","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":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenRecoverUnstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenStaker","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenStaker","type":"address"}],"name":"TokenStakerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenStaker","type":"address"}],"name":"TokenStakerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenStaker","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenUnstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenStaker","type":"address"}],"name":"addTokenStaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newStaker","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchUpdateTokenStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"isMetadataLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTokenStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isTokenStaker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"recoverNonFungibleToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverStakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenStaker","type":"address"}],"name":"removeTokenStaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakerForToken","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162003378380380620033788339810160408190526200003491620001c3565b6040518060400160405280600981526020016813595d18541bdc1a5d60ba1b81525060405180604001604052806009815260200168135155105413d4125560ba1b815250620000926200008c620000c960201b60201c565b620000cd565b8151620000a79060019060208501906200011d565b508051620000bd9060029060208401906200011d565b5050506080526200021a565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200012b90620001dd565b90600052602060002090601f0160209004810192826200014f57600085556200019a565b82601f106200016a57805160ff19168380011785556200019a565b828001600101855582156200019a579182015b828111156200019a5782518255916020019190600101906200017d565b50620001a8929150620001ac565b5090565b5b80821115620001a85760008155600101620001ad565b600060208284031215620001d657600080fd5b5051919050565b600181811c90821680620001f257607f821691505b602082108114156200021457634e487b7160e01b600052602260045260246000fd5b50919050565b60805161313b6200023d600039600081816104fa0152610ced015261313b6000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c8063938e3d7b1161013b578063c87b56dd116100b8578063e8a3d4851161007c578063e8a3d48514610529578063e985e9c514610531578063f0a524241461056d578063f2b916c314610598578063f2fde38b146105ab57600080fd5b8063c87b56dd146104bc578063cb4644ff146104cf578063cda6b847146104e2578063d5abeb01146104f5578063d7e45cd71461051c57600080fd5b8063a22cb465116100ff578063a22cb46514610444578063aa271e1a14610457578063b0916f0314610483578063b88d4fde14610496578063bb0fd147146104a957600080fd5b8063938e3d7b146103fb57806395d89b411461040e578063983b2d5614610416578063989bdbb6146104295780639be65a601461043157600080fd5b806340c10f19116101c95780636c0360eb1161018d5780636c0360eb146103b457806370a08231146103bc578063715018a6146103cf5780637504db3e146103d75780638da5cb5b146103ea57600080fd5b806340c10f191461033f5780634125062c1461035257806342842e0e1461037b57806355f804b31461038e5780636352211e146103a157600080fd5b806318160ddd1161021057806318160ddd146102dd57806323b872dd146102f35780632cfb6688146103065780633092afd514610319578063396f650d1461032c57600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b55780630cd9c899146102ca575b600080fd5b61026061025b366004612a77565b6105be565b60405190151581526020015b60405180910390f35b61027d610610565b60405161026c9190612aec565b61029d610298366004612aff565b6106a2565b6040516001600160a01b03909116815260200161026c565b6102c86102c3366004612b2d565b61073c565b005b6102606102d8366004612b59565b610870565b6102e561087d565b60405190815260200161026c565b6102c8610301366004612b76565b61088d565b6102c8610314366004612aff565b610908565b6102c8610327366004612b59565b610ab0565b6102c861033a366004612b59565b610ba9565b6102c861034d366004612b2d565b610c8c565b61029d610360366004612aff565b6000908152600960205260409020546001600160a01b031690565b6102c8610389366004612b76565b610d7e565b6102c861039c366004612c43565b610d99565b61029d6103af366004612aff565b610e47565b61027d610ebe565b6102e56103ca366004612b59565b610f4c565b6102c8610fd3565b6102c86103e5366004612b59565b611027565b6000546001600160a01b031661029d565b6102c8610409366004612c43565b6110e0565b61027d61113b565b6102c8610424366004612b59565b61114a565b6102c8611247565b6102c861043f366004612b59565b611378565b6102c8610452366004612c9a565b6114e8565b610260610465366004612b59565b6001600160a01b03166000908152600a602052604090205460ff1690565b6102c8610491366004612aff565b6114f3565b6102c86104a4366004612cd3565b6115ef565b6102c86104b7366004612b2d565b611672565b61027d6104ca366004612aff565b61175b565b6102c86104dd366004612b59565b61181e565b6102c86104f0366004612aff565b611900565b6102e57f000000000000000000000000000000000000000000000000000000000000000081565b600c546102609060ff1681565b61027d611a65565b61026061053f366004612d53565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61026061057b366004612aff565b6000908152600960205260409020546001600160a01b0316151590565b6102c86105a6366004612d81565b611a72565b6102c86105b9366004612b59565b611c76565b60006001600160e01b031982166380ac58cd60e01b14806105ef57506001600160e01b03198216635b5e139f60e01b145b8061060a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461061f90612e09565b80601f016020809104026020016040519081016040528092919081815260200182805461064b90612e09565b80156106985780601f1061066d57610100808354040283529160200191610698565b820191906000526020600020905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061074782610e47565b9050806001600160a01b0316836001600160a01b031614156107b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610717565b336001600160a01b03821614806107ef57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6108615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610717565b61086b8383611d2f565b505050565b600061060a600783611d9d565b6000610888600d5490565b905090565b6108973382611dc2565b6108fd5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610717565b61086b838383611eb9565b60008181526009602052604090205481906001600160a01b031661096e5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a20546f6b656e206973206e6f74207374616b6564006044820152606401610717565b6000828152600960205260409020546001600160a01b0316336001600160a01b0316146109ec5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e5374616b653a20546f6b656e206e6f74207374616b65206279206160448201526518d8dbdd5b9d60d21b6064820152608401610717565b33610a4d5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e5374616b653a2063616e277420756e7374616b652066726f6d207a60448201526a65726f206164647265737360a81b6064820152608401610717565b600082815260096020526040902080546001600160a01b0319169055336001600160a01b03167ff0dbb2abe50e936f0d3720a39c0debe7706007b2c50286a913f24298e9be36ba83604051610aa491815260200190565b60405180910390a25050565b6000546001600160a01b03163314610af85760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6001600160a01b0381166000908152600a602052604090205460ff16610b605760405162461bcd60e51b815260206004820152601460248201527f4d696e7461626c653a204e6f74206d696e7465720000000000000000000000006044820152606401610717565b6001600160a01b0381166000818152600a6020526040808220805460ff19169055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a250565b6000546001600160a01b03163314610bf15760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b610bfc600782611d9d565b15610c495760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a20416c726561647920546f6b656e5374616b6572006044820152606401610717565b610c54600782611f2b565b506040516001600160a01b038216907fb0d0a630f2db36143e1613d24b818312e1b0f13888e8dae939d016cc81c1c91490600090a250565b336000908152600a602052604090205460ff16610ceb5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7461626c653a2043616c6c6572206973206e6f74206d696e74657200006044820152606401610717565b7f0000000000000000000000000000000000000000000000000000000000000000610d15600d5490565b10610d625760405162461bcd60e51b815260206004820152601960248201527f4e46543a20546f74616c20737570706c792072656163686564000000000000006044820152606401610717565b610d70600d80546001019055565b610d7a8282611f40565b5050565b61086b838383604051806020016040528060008152506115ef565b6000546001600160a01b03163314610de15760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b600c5460ff1615610e345760405162461bcd60e51b815260206004820152601e60248201527f4f7065726174696f6e733a20436f6e7472616374206973206c6f636b656400006044820152606401610717565b8051610d7a90600e9060208401906129c8565b6000818152600360205260408120546001600160a01b03168061060a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610717565b600e8054610ecb90612e09565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef790612e09565b8015610f445780601f10610f1957610100808354040283529160200191610f44565b820191906000526020600020905b815481529060010190602001808311610f2757829003601f168201915b505050505081565b60006001600160a01b038216610fb75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610717565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461101b5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6110256000612082565b565b6000546001600160a01b0316331461106f5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156110a7573d6000803e3d6000fd5b506040518181527f5c0a34c718716ee467140afbc9fb741fc2980e41d00f04a8f7f635d76484ff47906020015b60405180910390a15050565b6000546001600160a01b031633146111285760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b8051610d7a90600b9060208401906129c8565b60606002805461061f90612e09565b6000546001600160a01b031633146111925760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6001600160a01b0381166000908152600a602052604090205460ff16156111fb5760405162461bcd60e51b815260206004820152601860248201527f4d696e7461626c653a20416c7265616479206d696e74657200000000000000006044820152606401610717565b6001600160a01b0381166000818152600a6020526040808220805460ff19166001179055517f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f69190a250565b6000546001600160a01b0316331461128f5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b600c5460ff16156112e25760405162461bcd60e51b815260206004820152601e60248201527f4f7065726174696f6e733a20436f6e7472616374206973206c6f636b656400006044820152606401610717565b6000600e80546112f190612e09565b9050116113405760405162461bcd60e51b815260206004820152601b60248201527f4f7065726174696f6e733a2042617365557269206e6f742073657400000000006044820152606401610717565b600c805460ff191660011790556040517f95a231e0e633252fd44273c53079a71e951df22e856f058d0114c54c6430e81c90600090a1565b6000546001600160a01b031633146113c05760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561140257600080fd5b505afa158015611416573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143a9190612e44565b9050806114995760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b6064820152608401610717565b6114ad6001600160a01b03831633836120d2565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051610aa491815260200190565b610d7a338383612139565b6000546001600160a01b0316331461153b5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b60008181526009602052604090205481906001600160a01b03166115a15760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a20546f6b656e206973206e6f74207374616b6564006044820152606401610717565b6000828152600960205260409081902080546001600160a01b0319169055517f27862ebdcaf1c94ba2342cdeb5d6c140b8fde6b95a3921802445834577312ef4906110d49084815260200190565b6115fa335b83611dc2565b6116605760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610717565b61166c84848484612208565b50505050565b6000546001600160a01b031633146116ba5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b15801561170857600080fd5b505af115801561171c573d6000803e3d6000fd5b50505050816001600160a01b03167f861c3ea25dbda3af0bf5d258ba8582c0276c9446b1479e817be3f1b4a89acf9182604051610aa491815260200190565b6000818152600360205260409020546060906001600160a01b03166117c25760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610717565b6000600e80546117d190612e09565b9050116117ed576040518060200160405280600081525061060a565b600e6117f883612286565b604051602001611809929190612e79565b60405160208183030381529060405292915050565b6000546001600160a01b031633146118665760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b611871600782611d9d565b6118bd5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a204e6f7420546f6b656e5374616b657200000000006044820152606401610717565b6118c860078261239c565b506040516001600160a01b038216907f1d1e5fd08acb9bc25c0dd45c0561cfb6e086312e6960eb801333c3ae19eda07c90600090a250565b61190b600733611d9d565b6119575760405162461bcd60e51b815260206004820152601660248201527f546f6b656e5374616b653a204e6f74207374616b6572000000000000000000006044820152606401610717565b60008181526009602052604090205481906001600160a01b0316156119be5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a20546f6b656e206973207374616b656400000000006044820152606401610717565b6119c7336115f4565b611a135760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a205374616b6572206e6f7420617070726f766564006044820152606401610717565b60008281526009602090815260409182902080546001600160a01b0319163390811790915591518481527f1fdab8a8457aaf782e4b6217d6ffa6f5006eda7e50922dd092b2e1524275d7749101610aa4565b600b8054610ecb90612e09565b6000546001600160a01b03163314611aba5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b60005b81811015611c2d576000600981858585818110611adc57611adc612f34565b60209081029290920135835250810191909152604001600020546001600160a01b03161415611b4d5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a206e6f742072657374616b6561626c6500000000006044820152606401610717565b6001600160a01b03841615611bca57611b7e84848484818110611b7257611b72612f34565b90506020020135611dc2565b611bca5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a205374616b6572206e6f7420617070726f766564006044820152606401610717565b8360096000858585818110611be157611be1612f34565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611c2590612f60565b915050611abd565b50826001600160a01b03167f43b05a7e48dc5c22c2f56fa403cb8271d8a4e97f09548d2161cdd7bb3f9c7cbc8383604051611c69929190612f7b565b60405180910390a2505050565b6000546001600160a01b03163314611cbe5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6001600160a01b038116611d235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610717565b611d2c81612082565b50565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d6482610e47565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6000818152600360205260408120546001600160a01b0316611e3b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610717565b6000611e4683610e47565b9050806001600160a01b0316846001600160a01b03161480611e815750836001600160a01b0316611e76846106a2565b6001600160a01b0316145b80611eb157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b60008181526009602052604090205481906001600160a01b031615611f205760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a20546f6b656e206973207374616b656400000000006044820152606401610717565b61166c8484846123b1565b6000611dbb836001600160a01b038416612551565b6001600160a01b038216611f965760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610717565b6000818152600360205260409020546001600160a01b031615611ffb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610717565b6001600160a01b0382166000908152600460205260408120805460019290612024908490612fd0565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261086b9084906125a0565b816001600160a01b0316836001600160a01b0316141561219b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610717565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612213848484611eb9565b61221f84848484612672565b61166c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610717565b6060816122aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d457806122be81612f60565b91506122cd9050600a83612ffe565b91506122ae565b60008167ffffffffffffffff8111156122ef576122ef612bb7565b6040519080825280601f01601f191660200182016040528015612319576020820181803683370190505b5090505b8415611eb15761232e600183613012565b915061233b600a86613029565b612346906030612fd0565b60f81b81838151811061235b5761235b612f34565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612395600a86612ffe565b945061231d565b6000611dbb836001600160a01b0384166127ca565b826001600160a01b03166123c482610e47565b6001600160a01b03161461242c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610717565b6001600160a01b03821661248e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610717565b612499600082611d2f565b6001600160a01b03831660009081526004602052604081208054600192906124c2908490613012565b90915550506001600160a01b03821660009081526004602052604081208054600192906124f0908490612fd0565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008181526001830160205260408120546125985750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561060a565b50600061060a565b60006125f5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128bd9092919063ffffffff16565b80519091501561086b5780806020019051810190612613919061303d565b61086b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610717565b60006001600160a01b0384163b156127bf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126b690339089908890889060040161305a565b602060405180830381600087803b1580156126d057600080fd5b505af1925050508015612700575060408051601f3d908101601f191682019092526126fd91810190613096565b60015b6127a5573d80801561272e576040519150601f19603f3d011682016040523d82523d6000602084013e612733565b606091505b50805161279d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610717565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611eb1565b506001949350505050565b600081815260018301602052604081205480156128b35760006127ee600183613012565b855490915060009061280290600190613012565b905081811461286757600086600001828154811061282257612822612f34565b906000526020600020015490508087600001848154811061284557612845612f34565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612878576128786130b3565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061060a565b600091505061060a565b6060611eb1848460008585843b6129165760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610717565b600080866001600160a01b0316858760405161293291906130c9565b60006040518083038185875af1925050503d806000811461296f576040519150601f19603f3d011682016040523d82523d6000602084013e612974565b606091505b509150915061298482828661298f565b979650505050505050565b6060831561299e575081611dbb565b8251156129ae5782518084602001fd5b8160405162461bcd60e51b81526004016107179190612aec565b8280546129d490612e09565b90600052602060002090601f0160209004810192826129f65760008555612a3c565b82601f10612a0f57805160ff1916838001178555612a3c565b82800160010185558215612a3c579182015b82811115612a3c578251825591602001919060010190612a21565b50612a48929150612a4c565b5090565b5b80821115612a485760008155600101612a4d565b6001600160e01b031981168114611d2c57600080fd5b600060208284031215612a8957600080fd5b8135611dbb81612a61565b60005b83811015612aaf578181015183820152602001612a97565b8381111561166c5750506000910152565b60008151808452612ad8816020860160208601612a94565b601f01601f19169290920160200192915050565b602081526000611dbb6020830184612ac0565b600060208284031215612b1157600080fd5b5035919050565b6001600160a01b0381168114611d2c57600080fd5b60008060408385031215612b4057600080fd5b8235612b4b81612b18565b946020939093013593505050565b600060208284031215612b6b57600080fd5b8135611dbb81612b18565b600080600060608486031215612b8b57600080fd5b8335612b9681612b18565b92506020840135612ba681612b18565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612be857612be8612bb7565b604051601f8501601f19908116603f01168101908282118183101715612c1057612c10612bb7565b81604052809350858152868686011115612c2957600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612c5557600080fd5b813567ffffffffffffffff811115612c6c57600080fd5b8201601f81018413612c7d57600080fd5b611eb184823560208401612bcd565b8015158114611d2c57600080fd5b60008060408385031215612cad57600080fd5b8235612cb881612b18565b91506020830135612cc881612c8c565b809150509250929050565b60008060008060808587031215612ce957600080fd5b8435612cf481612b18565b93506020850135612d0481612b18565b925060408501359150606085013567ffffffffffffffff811115612d2757600080fd5b8501601f81018713612d3857600080fd5b612d4787823560208401612bcd565b91505092959194509250565b60008060408385031215612d6657600080fd5b8235612d7181612b18565b91506020830135612cc881612b18565b600080600060408486031215612d9657600080fd5b8335612da181612b18565b9250602084013567ffffffffffffffff80821115612dbe57600080fd5b818601915086601f830112612dd257600080fd5b813581811115612de157600080fd5b8760208260051b8501011115612df657600080fd5b6020830194508093505050509250925092565b600181811c90821680612e1d57607f821691505b60208210811415612e3e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612e5657600080fd5b5051919050565b60008151612e6f818560208601612a94565b9290920192915050565b600080845481600182811c915080831680612e9557607f831692505b6020808410821415612eb557634e487b7160e01b86526022600452602486fd5b818015612ec95760018114612eda57612f07565b60ff19861689528489019650612f07565b60008b81526020902060005b86811015612eff5781548b820152908501908301612ee6565b505084890196505b505050505050612f2b612f1a8286612e5d565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612f7457612f74612f4a565b5060010190565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fb457600080fd5b8260051b80856040850137600092016040019182525092915050565b60008219821115612fe357612fe3612f4a565b500190565b634e487b7160e01b600052601260045260246000fd5b60008261300d5761300d612fe8565b500490565b60008282101561302457613024612f4a565b500390565b60008261303857613038612fe8565b500690565b60006020828403121561304f57600080fd5b8151611dbb81612c8c565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261308c6080830184612ac0565b9695505050505050565b6000602082840312156130a857600080fd5b8151611dbb81612a61565b634e487b7160e01b600052603160045260246000fd5b600082516130db818460208701612a94565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220280fd1f26def34c4e4f76fb7ffef4a17b29dc2955861c267193c75221f330ed464736f6c634300080900330000000000000000000000000000000000000000000000000000000000001b39

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c8063938e3d7b1161013b578063c87b56dd116100b8578063e8a3d4851161007c578063e8a3d48514610529578063e985e9c514610531578063f0a524241461056d578063f2b916c314610598578063f2fde38b146105ab57600080fd5b8063c87b56dd146104bc578063cb4644ff146104cf578063cda6b847146104e2578063d5abeb01146104f5578063d7e45cd71461051c57600080fd5b8063a22cb465116100ff578063a22cb46514610444578063aa271e1a14610457578063b0916f0314610483578063b88d4fde14610496578063bb0fd147146104a957600080fd5b8063938e3d7b146103fb57806395d89b411461040e578063983b2d5614610416578063989bdbb6146104295780639be65a601461043157600080fd5b806340c10f19116101c95780636c0360eb1161018d5780636c0360eb146103b457806370a08231146103bc578063715018a6146103cf5780637504db3e146103d75780638da5cb5b146103ea57600080fd5b806340c10f191461033f5780634125062c1461035257806342842e0e1461037b57806355f804b31461038e5780636352211e146103a157600080fd5b806318160ddd1161021057806318160ddd146102dd57806323b872dd146102f35780632cfb6688146103065780633092afd514610319578063396f650d1461032c57600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b55780630cd9c899146102ca575b600080fd5b61026061025b366004612a77565b6105be565b60405190151581526020015b60405180910390f35b61027d610610565b60405161026c9190612aec565b61029d610298366004612aff565b6106a2565b6040516001600160a01b03909116815260200161026c565b6102c86102c3366004612b2d565b61073c565b005b6102606102d8366004612b59565b610870565b6102e561087d565b60405190815260200161026c565b6102c8610301366004612b76565b61088d565b6102c8610314366004612aff565b610908565b6102c8610327366004612b59565b610ab0565b6102c861033a366004612b59565b610ba9565b6102c861034d366004612b2d565b610c8c565b61029d610360366004612aff565b6000908152600960205260409020546001600160a01b031690565b6102c8610389366004612b76565b610d7e565b6102c861039c366004612c43565b610d99565b61029d6103af366004612aff565b610e47565b61027d610ebe565b6102e56103ca366004612b59565b610f4c565b6102c8610fd3565b6102c86103e5366004612b59565b611027565b6000546001600160a01b031661029d565b6102c8610409366004612c43565b6110e0565b61027d61113b565b6102c8610424366004612b59565b61114a565b6102c8611247565b6102c861043f366004612b59565b611378565b6102c8610452366004612c9a565b6114e8565b610260610465366004612b59565b6001600160a01b03166000908152600a602052604090205460ff1690565b6102c8610491366004612aff565b6114f3565b6102c86104a4366004612cd3565b6115ef565b6102c86104b7366004612b2d565b611672565b61027d6104ca366004612aff565b61175b565b6102c86104dd366004612b59565b61181e565b6102c86104f0366004612aff565b611900565b6102e57f0000000000000000000000000000000000000000000000000000000000001b3981565b600c546102609060ff1681565b61027d611a65565b61026061053f366004612d53565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61026061057b366004612aff565b6000908152600960205260409020546001600160a01b0316151590565b6102c86105a6366004612d81565b611a72565b6102c86105b9366004612b59565b611c76565b60006001600160e01b031982166380ac58cd60e01b14806105ef57506001600160e01b03198216635b5e139f60e01b145b8061060a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461061f90612e09565b80601f016020809104026020016040519081016040528092919081815260200182805461064b90612e09565b80156106985780601f1061066d57610100808354040283529160200191610698565b820191906000526020600020905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061074782610e47565b9050806001600160a01b0316836001600160a01b031614156107b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610717565b336001600160a01b03821614806107ef57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6108615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610717565b61086b8383611d2f565b505050565b600061060a600783611d9d565b6000610888600d5490565b905090565b6108973382611dc2565b6108fd5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610717565b61086b838383611eb9565b60008181526009602052604090205481906001600160a01b031661096e5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a20546f6b656e206973206e6f74207374616b6564006044820152606401610717565b6000828152600960205260409020546001600160a01b0316336001600160a01b0316146109ec5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e5374616b653a20546f6b656e206e6f74207374616b65206279206160448201526518d8dbdd5b9d60d21b6064820152608401610717565b33610a4d5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e5374616b653a2063616e277420756e7374616b652066726f6d207a60448201526a65726f206164647265737360a81b6064820152608401610717565b600082815260096020526040902080546001600160a01b0319169055336001600160a01b03167ff0dbb2abe50e936f0d3720a39c0debe7706007b2c50286a913f24298e9be36ba83604051610aa491815260200190565b60405180910390a25050565b6000546001600160a01b03163314610af85760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6001600160a01b0381166000908152600a602052604090205460ff16610b605760405162461bcd60e51b815260206004820152601460248201527f4d696e7461626c653a204e6f74206d696e7465720000000000000000000000006044820152606401610717565b6001600160a01b0381166000818152600a6020526040808220805460ff19169055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a250565b6000546001600160a01b03163314610bf15760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b610bfc600782611d9d565b15610c495760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a20416c726561647920546f6b656e5374616b6572006044820152606401610717565b610c54600782611f2b565b506040516001600160a01b038216907fb0d0a630f2db36143e1613d24b818312e1b0f13888e8dae939d016cc81c1c91490600090a250565b336000908152600a602052604090205460ff16610ceb5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7461626c653a2043616c6c6572206973206e6f74206d696e74657200006044820152606401610717565b7f0000000000000000000000000000000000000000000000000000000000001b39610d15600d5490565b10610d625760405162461bcd60e51b815260206004820152601960248201527f4e46543a20546f74616c20737570706c792072656163686564000000000000006044820152606401610717565b610d70600d80546001019055565b610d7a8282611f40565b5050565b61086b838383604051806020016040528060008152506115ef565b6000546001600160a01b03163314610de15760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b600c5460ff1615610e345760405162461bcd60e51b815260206004820152601e60248201527f4f7065726174696f6e733a20436f6e7472616374206973206c6f636b656400006044820152606401610717565b8051610d7a90600e9060208401906129c8565b6000818152600360205260408120546001600160a01b03168061060a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610717565b600e8054610ecb90612e09565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef790612e09565b8015610f445780601f10610f1957610100808354040283529160200191610f44565b820191906000526020600020905b815481529060010190602001808311610f2757829003601f168201915b505050505081565b60006001600160a01b038216610fb75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610717565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461101b5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6110256000612082565b565b6000546001600160a01b0316331461106f5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156110a7573d6000803e3d6000fd5b506040518181527f5c0a34c718716ee467140afbc9fb741fc2980e41d00f04a8f7f635d76484ff47906020015b60405180910390a15050565b6000546001600160a01b031633146111285760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b8051610d7a90600b9060208401906129c8565b60606002805461061f90612e09565b6000546001600160a01b031633146111925760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6001600160a01b0381166000908152600a602052604090205460ff16156111fb5760405162461bcd60e51b815260206004820152601860248201527f4d696e7461626c653a20416c7265616479206d696e74657200000000000000006044820152606401610717565b6001600160a01b0381166000818152600a6020526040808220805460ff19166001179055517f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f69190a250565b6000546001600160a01b0316331461128f5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b600c5460ff16156112e25760405162461bcd60e51b815260206004820152601e60248201527f4f7065726174696f6e733a20436f6e7472616374206973206c6f636b656400006044820152606401610717565b6000600e80546112f190612e09565b9050116113405760405162461bcd60e51b815260206004820152601b60248201527f4f7065726174696f6e733a2042617365557269206e6f742073657400000000006044820152606401610717565b600c805460ff191660011790556040517f95a231e0e633252fd44273c53079a71e951df22e856f058d0114c54c6430e81c90600090a1565b6000546001600160a01b031633146113c05760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561140257600080fd5b505afa158015611416573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143a9190612e44565b9050806114995760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b6064820152608401610717565b6114ad6001600160a01b03831633836120d2565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051610aa491815260200190565b610d7a338383612139565b6000546001600160a01b0316331461153b5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b60008181526009602052604090205481906001600160a01b03166115a15760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a20546f6b656e206973206e6f74207374616b6564006044820152606401610717565b6000828152600960205260409081902080546001600160a01b0319169055517f27862ebdcaf1c94ba2342cdeb5d6c140b8fde6b95a3921802445834577312ef4906110d49084815260200190565b6115fa335b83611dc2565b6116605760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610717565b61166c84848484612208565b50505050565b6000546001600160a01b031633146116ba5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6040516323b872dd60e01b8152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b15801561170857600080fd5b505af115801561171c573d6000803e3d6000fd5b50505050816001600160a01b03167f861c3ea25dbda3af0bf5d258ba8582c0276c9446b1479e817be3f1b4a89acf9182604051610aa491815260200190565b6000818152600360205260409020546060906001600160a01b03166117c25760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610717565b6000600e80546117d190612e09565b9050116117ed576040518060200160405280600081525061060a565b600e6117f883612286565b604051602001611809929190612e79565b60405160208183030381529060405292915050565b6000546001600160a01b031633146118665760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b611871600782611d9d565b6118bd5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a204e6f7420546f6b656e5374616b657200000000006044820152606401610717565b6118c860078261239c565b506040516001600160a01b038216907f1d1e5fd08acb9bc25c0dd45c0561cfb6e086312e6960eb801333c3ae19eda07c90600090a250565b61190b600733611d9d565b6119575760405162461bcd60e51b815260206004820152601660248201527f546f6b656e5374616b653a204e6f74207374616b6572000000000000000000006044820152606401610717565b60008181526009602052604090205481906001600160a01b0316156119be5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a20546f6b656e206973207374616b656400000000006044820152606401610717565b6119c7336115f4565b611a135760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a205374616b6572206e6f7420617070726f766564006044820152606401610717565b60008281526009602090815260409182902080546001600160a01b0319163390811790915591518481527f1fdab8a8457aaf782e4b6217d6ffa6f5006eda7e50922dd092b2e1524275d7749101610aa4565b600b8054610ecb90612e09565b6000546001600160a01b03163314611aba5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b60005b81811015611c2d576000600981858585818110611adc57611adc612f34565b60209081029290920135835250810191909152604001600020546001600160a01b03161415611b4d5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a206e6f742072657374616b6561626c6500000000006044820152606401610717565b6001600160a01b03841615611bca57611b7e84848484818110611b7257611b72612f34565b90506020020135611dc2565b611bca5760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e5374616b653a205374616b6572206e6f7420617070726f766564006044820152606401610717565b8360096000858585818110611be157611be1612f34565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611c2590612f60565b915050611abd565b50826001600160a01b03167f43b05a7e48dc5c22c2f56fa403cb8271d8a4e97f09548d2161cdd7bb3f9c7cbc8383604051611c69929190612f7b565b60405180910390a2505050565b6000546001600160a01b03163314611cbe5760405162461bcd60e51b815260206004820181905260248201526000805160206130e68339815191526044820152606401610717565b6001600160a01b038116611d235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610717565b611d2c81612082565b50565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d6482610e47565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6000818152600360205260408120546001600160a01b0316611e3b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610717565b6000611e4683610e47565b9050806001600160a01b0316846001600160a01b03161480611e815750836001600160a01b0316611e76846106a2565b6001600160a01b0316145b80611eb157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b60008181526009602052604090205481906001600160a01b031615611f205760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e5374616b653a20546f6b656e206973207374616b656400000000006044820152606401610717565b61166c8484846123b1565b6000611dbb836001600160a01b038416612551565b6001600160a01b038216611f965760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610717565b6000818152600360205260409020546001600160a01b031615611ffb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610717565b6001600160a01b0382166000908152600460205260408120805460019290612024908490612fd0565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261086b9084906125a0565b816001600160a01b0316836001600160a01b0316141561219b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610717565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612213848484611eb9565b61221f84848484612672565b61166c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610717565b6060816122aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d457806122be81612f60565b91506122cd9050600a83612ffe565b91506122ae565b60008167ffffffffffffffff8111156122ef576122ef612bb7565b6040519080825280601f01601f191660200182016040528015612319576020820181803683370190505b5090505b8415611eb15761232e600183613012565b915061233b600a86613029565b612346906030612fd0565b60f81b81838151811061235b5761235b612f34565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612395600a86612ffe565b945061231d565b6000611dbb836001600160a01b0384166127ca565b826001600160a01b03166123c482610e47565b6001600160a01b03161461242c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610717565b6001600160a01b03821661248e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610717565b612499600082611d2f565b6001600160a01b03831660009081526004602052604081208054600192906124c2908490613012565b90915550506001600160a01b03821660009081526004602052604081208054600192906124f0908490612fd0565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008181526001830160205260408120546125985750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561060a565b50600061060a565b60006125f5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128bd9092919063ffffffff16565b80519091501561086b5780806020019051810190612613919061303d565b61086b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610717565b60006001600160a01b0384163b156127bf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126b690339089908890889060040161305a565b602060405180830381600087803b1580156126d057600080fd5b505af1925050508015612700575060408051601f3d908101601f191682019092526126fd91810190613096565b60015b6127a5573d80801561272e576040519150601f19603f3d011682016040523d82523d6000602084013e612733565b606091505b50805161279d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610717565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611eb1565b506001949350505050565b600081815260018301602052604081205480156128b35760006127ee600183613012565b855490915060009061280290600190613012565b905081811461286757600086600001828154811061282257612822612f34565b906000526020600020015490508087600001848154811061284557612845612f34565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612878576128786130b3565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061060a565b600091505061060a565b6060611eb1848460008585843b6129165760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610717565b600080866001600160a01b0316858760405161293291906130c9565b60006040518083038185875af1925050503d806000811461296f576040519150601f19603f3d011682016040523d82523d6000602084013e612974565b606091505b509150915061298482828661298f565b979650505050505050565b6060831561299e575081611dbb565b8251156129ae5782518084602001fd5b8160405162461bcd60e51b81526004016107179190612aec565b8280546129d490612e09565b90600052602060002090601f0160209004810192826129f65760008555612a3c565b82601f10612a0f57805160ff1916838001178555612a3c565b82800160010185558215612a3c579182015b82811115612a3c578251825591602001919060010190612a21565b50612a48929150612a4c565b5090565b5b80821115612a485760008155600101612a4d565b6001600160e01b031981168114611d2c57600080fd5b600060208284031215612a8957600080fd5b8135611dbb81612a61565b60005b83811015612aaf578181015183820152602001612a97565b8381111561166c5750506000910152565b60008151808452612ad8816020860160208601612a94565b601f01601f19169290920160200192915050565b602081526000611dbb6020830184612ac0565b600060208284031215612b1157600080fd5b5035919050565b6001600160a01b0381168114611d2c57600080fd5b60008060408385031215612b4057600080fd5b8235612b4b81612b18565b946020939093013593505050565b600060208284031215612b6b57600080fd5b8135611dbb81612b18565b600080600060608486031215612b8b57600080fd5b8335612b9681612b18565b92506020840135612ba681612b18565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612be857612be8612bb7565b604051601f8501601f19908116603f01168101908282118183101715612c1057612c10612bb7565b81604052809350858152868686011115612c2957600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612c5557600080fd5b813567ffffffffffffffff811115612c6c57600080fd5b8201601f81018413612c7d57600080fd5b611eb184823560208401612bcd565b8015158114611d2c57600080fd5b60008060408385031215612cad57600080fd5b8235612cb881612b18565b91506020830135612cc881612c8c565b809150509250929050565b60008060008060808587031215612ce957600080fd5b8435612cf481612b18565b93506020850135612d0481612b18565b925060408501359150606085013567ffffffffffffffff811115612d2757600080fd5b8501601f81018713612d3857600080fd5b612d4787823560208401612bcd565b91505092959194509250565b60008060408385031215612d6657600080fd5b8235612d7181612b18565b91506020830135612cc881612b18565b600080600060408486031215612d9657600080fd5b8335612da181612b18565b9250602084013567ffffffffffffffff80821115612dbe57600080fd5b818601915086601f830112612dd257600080fd5b813581811115612de157600080fd5b8760208260051b8501011115612df657600080fd5b6020830194508093505050509250925092565b600181811c90821680612e1d57607f821691505b60208210811415612e3e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612e5657600080fd5b5051919050565b60008151612e6f818560208601612a94565b9290920192915050565b600080845481600182811c915080831680612e9557607f831692505b6020808410821415612eb557634e487b7160e01b86526022600452602486fd5b818015612ec95760018114612eda57612f07565b60ff19861689528489019650612f07565b60008b81526020902060005b86811015612eff5781548b820152908501908301612ee6565b505084890196505b505050505050612f2b612f1a8286612e5d565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612f7457612f74612f4a565b5060010190565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fb457600080fd5b8260051b80856040850137600092016040019182525092915050565b60008219821115612fe357612fe3612f4a565b500190565b634e487b7160e01b600052601260045260246000fd5b60008261300d5761300d612fe8565b500490565b60008282101561302457613024612f4a565b500390565b60008261303857613038612fe8565b500690565b60006020828403121561304f57600080fd5b8151611dbb81612c8c565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261308c6080830184612ac0565b9695505050505050565b6000602082840312156130a857600080fd5b8151611dbb81612a61565b634e487b7160e01b600052603160045260246000fd5b600082516130db818460208701612a94565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220280fd1f26def34c4e4f76fb7ffef4a17b29dc2955861c267193c75221f330ed464736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000001b39

-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 6969

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001b39


Loading...
Loading
Loading...
Loading
[ 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.