ETH Price: $3,391.43 (+6.24%)
Gas: 29 Gwei

Token

Royal Goats Club (GOAT)
 

Overview

Max Total Supply

1,001 GOAT

Holders

229

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
boredpapa.eth
Balance
1 GOAT
0x8bbabe07f6b87264b1e63d6c03b10ecd8310d5e3
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
RoyalGoats

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : RoyalGoats.sol
// SPDX-License-Identifier: UNLICENSED
/**
  _____   _____  _____   _           _         
 |  __ \ / ____|/ ____| | |         | |        
 | |__) | |  __| |      | |     __ _| |__  ___ 
 |  _  /| | |_ | |      | |    / _` | '_ \/ __|
 | | \ \| |__| | |____  | |___| (_| | |_) \__ \
 |_|  \_\\_____|\_____| |______\__,_|_.__/|___/
                                            
 */

pragma solidity ^0.8.14;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "@metacrypt/contracts/src/erc721/ERC721EnumerableSupply.sol";
import "@metacrypt/contracts/src/access/OwnableClaimable.sol";
import "@metacrypt/contracts/src/security/ContractSafe.sol";

/// @title ERC721 Contract for Royal Goats Club
/// @author metacrypt.org
contract RoyalGoats is ERC721, ERC721EnumerableSupply, Pausable, AccessControl, OwnableClaimable, ContractSafe {
    using ECDSA for bytes32;

    bytes32 public constant CONTROLLER_ROLE = keccak256("CONTROLLER_ROLE");

    string private baseURIStorage = "https://metadata.metacrypt.org/api/royal-goats-club/";

    constructor(address _signer) ERC721("Royal Goats Club", "GOAT") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(CONTROLLER_ROLE, msg.sender);

        signerAccount = _signer;
    }

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

    function setBaseURI(string calldata newBaseURI) external onlyRole(DEFAULT_ADMIN_ROLE) {
        baseURIStorage = newBaseURI;
    }

    function approveController(address controller) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _grantRole(CONTROLLER_ROLE, controller);
    }

    function pause() public onlyRole(CONTROLLER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(CONTROLLER_ROLE) {
        _unpause();
    }

    /**
     ** Sale Parameters
     */

    uint256 public constant MAX_GOATS = 10_000;

    address private signerAccount;
    bytes32 eip712DomainHash =
        keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes("RoyalGoats")),
                keccak256(bytes("1")),
                block.chainid,
                address(this)
            )
        );

    uint256 public mintTimestampPublic = 0;
    uint256 public mintTimestampAllowlist = 0;

    uint256 public mintPricePublic = 0.1 ether;
    uint256 public mintPriceAllowlist = 0.08 ether;

    uint256 public mintLimitPublic = type(uint256).max - 1;
    uint256 public mintLimitAllowlist = 6;

    mapping(address => uint256) public mintedDuringPublicSale;
    mapping(address => uint256) public mintedDuringAllowlistSale;

    function isPublicSaleOpen() public view returns (bool) {
        return mintTimestampPublic == 0 ? false : (block.timestamp >= mintTimestampPublic);
    }

    function isAllowlistSaleOpen() public view returns (bool) {
        return mintTimestampAllowlist == 0 ? false : (block.timestamp >= mintTimestampAllowlist);
    }

    function setMintingTime(uint256 _public, uint256 _allowlist) external onlyOwner {
        mintTimestampPublic = _public;
        mintTimestampAllowlist = _allowlist;
    }

    function setMintingPrice(uint256 _public, uint256 _allowlist) external onlyOwner {
        mintPricePublic = _public;
        mintPriceAllowlist = _allowlist;
    }

    function setMintingLimits(uint256 _public, uint256 _allowlist) external onlyOwner {
        mintLimitPublic = _public;
        mintLimitAllowlist = _allowlist;
    }

    modifier passesRequirements(uint256 numberOfTokens, uint16 mode) {
        require(!isContract(msg.sender) && isSentViaEOA(), "Must be sent via EOA");
        require(totalSupply() + numberOfTokens <= MAX_GOATS, "Purchase would exceed limit");

        if (mode == 0) {
            // Public Sale
            require(isPublicSaleOpen(), "Public sale not open yet");
            require(mintedDuringPublicSale[msg.sender] + numberOfTokens <= mintLimitPublic, "Minting Limit Exceeded");
            require(msg.value >= (mintPricePublic * numberOfTokens), "Incorrect amount");
        } else if (mode == 1) {
            // Allowlist Sale
            require(isAllowlistSaleOpen(), "Allowlist sale not open yet");
            require(mintedDuringAllowlistSale[msg.sender] + numberOfTokens <= mintLimitAllowlist, "Minting Limit Exceeded");
            require(msg.value >= (mintPriceAllowlist * numberOfTokens), "Incorrect amount");
        }
        _;
    }

    function mintTokens(uint256 numberOfTokens, address target) internal {
        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 nextMint = totalSupply();
            _safeMint(target, nextMint);
        }
    }

    function mintPublic(uint256 numberOfTokens) public payable passesRequirements(numberOfTokens, 0) {
        mintedDuringPublicSale[msg.sender] += numberOfTokens;

        mintTokens(numberOfTokens, msg.sender);
    }

    function mintAllowlist(
        uint256 numberOfTokens,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public payable passesRequirements(numberOfTokens, 1) {
        bytes32 hashStruct = keccak256(abi.encode(keccak256("Data(address target)"), msg.sender));
        bytes32 hash = keccak256(abi.encodePacked("\x19\x01", eip712DomainHash, hashStruct));
        address signer = ecrecover(hash, v, r, s);

        require(signer == signerAccount, "ECDSA: invalid signature");

        mintedDuringAllowlistSale[msg.sender] += numberOfTokens;

        mintTokens(numberOfTokens, msg.sender);
    }

    function mintOwner(uint256 numberOfTokens, address to) public payable onlyRole(CONTROLLER_ROLE) {
        require(totalSupply() + numberOfTokens <= MAX_GOATS, "Mint would exceed limit");

        mintTokens(numberOfTokens, to);
    }

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

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

File 2 of 21 : 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 3 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 4 of 21 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 5 of 21 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 6 of 21 : ERC721EnumerableSupply.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

/// @title Existance Check to ERC721Enumerable
/// @author Metacrypt (https://www.metacrypt.org/)
abstract contract ERC721EnumerableSupply is ERC721Enumerable {
    function exists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }
}

File 7 of 21 : OwnableClaimable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @title ContractSafe
/// @author Metacrypt (https://www.metacrypt.org/)
abstract contract OwnableClaimable is Ownable {
    function claimNative() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function claimToken(address _token) external onlyOwner {
        IERC20(_token).transfer(owner(), IERC20(_token).balanceOf(address(this)));
    }
}

File 8 of 21 : ContractSafe.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

/// @title ContractSafe
/// @author Metacrypt (https://www.metacrypt.org/)
abstract contract ContractSafe {
    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;
    }

    function isSentViaEOA() internal view returns (bool) {
        // Use with caution, tx.origin may become unreliable in the future.
        // https://ethereum.stackexchange.com/a/200
        return msg.sender == tx.origin;
    }
}

File 9 of 21 : 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 10 of 21 : 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 11 of 21 : 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 12 of 21 : 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 13 of 21 : 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 14 of 21 : 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 15 of 21 : 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 16 of 21 : 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 17 of 21 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 20 of 21 : 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 21 of 21 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CONTROLLER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_GOATS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"controller","type":"address"}],"name":"approveController","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":"claimNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"claimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowlistSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isPublicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimitAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimitPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintOwner","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPriceAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintTimestampAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTimestampPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedDuringAllowlistSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedDuringPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_public","type":"uint256"},{"internalType":"uint256","name":"_allowlist","type":"uint256"}],"name":"setMintingLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_public","type":"uint256"},{"internalType":"uint256","name":"_allowlist","type":"uint256"}],"name":"setMintingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_public","type":"uint256"},{"internalType":"uint256","name":"_allowlist","type":"uint256"}],"name":"setMintingTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040526034608081815290620037b660a039600d90620000229082620003dc565b50604080518082018252600a815269526f79616c476f61747360b01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527fc50daa47be83f0191f5adddac6b2db80c884d6467565f505ecf7865b5b644dfe918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120600f556000601055600060115567016345785d8a000060125567011c37937e08000060135560016000196200012b9190620004a8565b60145560066015553480156200014057600080fd5b50604051620037ea380380620037ea8339810160408190526200016391620004ce565b6040518060400160405280601081526020016f2937bcb0b61023b7b0ba399021b63ab160811b8152506040518060400160405280600481526020016311d3d05560e21b8152508160009081620001ba9190620003dc565b506001620001c98282620003dc565b5050600a805460ff1916905550620001e13362000240565b620001ee60003362000292565b6200021a7f7b765e0e932d348852a6f810bfa1ab891e259123f02db8cdcde614c5702233573362000292565b600e80546001600160a01b0319166001600160a01b039290921691909117905562000500565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1662000333576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002f23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200036257607f821691505b6020821081036200038357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003d757600081815260208120601f850160051c81016020861015620003b25750805b601f850160051c820191505b81811015620003d357828155600101620003be565b5050505b505050565b81516001600160401b03811115620003f857620003f862000337565b62000410816200040984546200034d565b8462000389565b602080601f8311600181146200044857600084156200042f5750858301515b600019600386901b1c1916600185901b178555620003d3565b600085815260208120601f198616915b82811015620004795788860151825594840194600190910190840162000458565b5085821015620004985787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082821015620004c957634e487b7160e01b600052601160045260246000fd5b500390565b600060208284031215620004e157600080fd5b81516001600160a01b0381168114620004f957600080fd5b9392505050565b6132a680620005106000396000f3fe6080604052600436106102e45760003560e01c80636623267511610190578063a842222e116100dc578063d3a6670611610095578063efd0cbf91161006f578063efd0cbf9146108a6578063f0e06a59146108b9578063f2fde38b146108ce578063f4856230146108ee57600080fd5b8063d3a6670614610810578063d547741f1461083d578063e985e9c51461085d57600080fd5b8063a842222e1461076e578063b88d4fde14610784578063bf17cd45146107a4578063c057e157146107ba578063c6329837146107da578063c87b56dd146107f057600080fd5b80638da5cb5b1161014957806395d89b411161012357806395d89b41146107115780639f15df1214610726578063a217fddf14610739578063a22cb4651461074e57600080fd5b80638da5cb5b146106b357806391d14854146106d157806393dcee5f146106f157600080fd5b8063662326751461061657806370a0823114610636578063715018a6146106565780637ed22efe1461066b5780638456cb591461067e57806384f302f11461069357600080fd5b80632f745c591161024f5780634eb9778b1161020857806355f804b3116101e257806355f804b3146105a85780635c975abb146105c8578063611a4d51146105e05780636352211e146105f657600080fd5b80634eb9778b146105525780634f558e79146105685780634f6ccce71461058857600080fd5b80632f745c59146104a7578063323b6635146104c757806332f289cf146104dd57806336568abe146104fd5780633f4ba83a1461051d57806342842e0e1461053257600080fd5b806318160ddd116102a157806318160ddd146103f75780631a6949e31461040c5780631c18a0621461042157806323b872dd14610437578063248a9ca3146104575780632f2ff15d1461048757600080fd5b806301ffc9a7146102e957806306fdde031461031e578063081812fc14610340578063092c5b3b14610378578063095ea7b3146103a857806314d23505146103ca575b600080fd5b3480156102f557600080fd5b50610309610304366004612a01565b610903565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b50610333610914565b6040516103159190612a76565b34801561034c57600080fd5b5061036061035b366004612a89565b6109a6565b6040516001600160a01b039091168152602001610315565b34801561038457600080fd5b5061039a60008051602061325183398151915281565b604051908152602001610315565b3480156103b457600080fd5b506103c86103c3366004612abe565b610a40565b005b3480156103d657600080fd5b5061039a6103e5366004612ae8565b60176020526000908152604090205481565b34801561040357600080fd5b5060085461039a565b34801561041857600080fd5b50610309610b55565b34801561042d57600080fd5b5061039a60125481565b34801561044357600080fd5b506103c8610452366004612b03565b610b71565b34801561046357600080fd5b5061039a610472366004612a89565b6000908152600b602052604090206001015490565b34801561049357600080fd5b506103c86104a2366004612b3f565b610ba2565b3480156104b357600080fd5b5061039a6104c2366004612abe565b610bc8565b3480156104d357600080fd5b5061039a60105481565b3480156104e957600080fd5b506103c86104f8366004612ae8565b610c5e565b34801561050957600080fd5b506103c8610518366004612b3f565b610d84565b34801561052957600080fd5b506103c8610dfe565b34801561053e57600080fd5b506103c861054d366004612b03565b610e22565b34801561055e57600080fd5b5061039a60145481565b34801561057457600080fd5b50610309610583366004612a89565b610e3d565b34801561059457600080fd5b5061039a6105a3366004612a89565b610e5c565b3480156105b457600080fd5b506103c86105c3366004612b6b565b610eef565b3480156105d457600080fd5b50600a5460ff16610309565b3480156105ec57600080fd5b5061039a60115481565b34801561060257600080fd5b50610360610611366004612a89565b610f0e565b34801561062257600080fd5b506103c8610631366004612ae8565b610f85565b34801561064257600080fd5b5061039a610651366004612ae8565b610fa9565b34801561066257600080fd5b506103c8611030565b6103c8610679366004612bdd565b611066565b34801561068a57600080fd5b506103c861142e565b34801561069f57600080fd5b506103c86106ae366004612c20565b61144f565b3480156106bf57600080fd5b50600c546001600160a01b0316610360565b3480156106dd57600080fd5b506103096106ec366004612b3f565b611484565b3480156106fd57600080fd5b506103c861070c366004612c20565b6114af565b34801561071d57600080fd5b506103336114e4565b6103c8610734366004612b3f565b6114f3565b34801561074557600080fd5b5061039a600081565b34801561075a57600080fd5b506103c8610769366004612c50565b61157b565b34801561077a57600080fd5b5061039a61271081565b34801561079057600080fd5b506103c861079f366004612c9d565b611586565b3480156107b057600080fd5b5061039a60135481565b3480156107c657600080fd5b506103c86107d5366004612c20565b6115b8565b3480156107e657600080fd5b5061039a60155481565b3480156107fc57600080fd5b5061033361080b366004612a89565b6115ed565b34801561081c57600080fd5b5061039a61082b366004612ae8565b60166020526000908152604090205481565b34801561084957600080fd5b506103c8610858366004612b3f565b6116c8565b34801561086957600080fd5b50610309610878366004612d79565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103c86108b4366004612a89565b6116ee565b3480156108c557600080fd5b50610309611968565b3480156108da57600080fd5b506103c86108e9366004612ae8565b61197e565b3480156108fa57600080fd5b506103c8611a16565b600061090e82611a79565b92915050565b60606000805461092390612da3565b80601f016020809104026020016040519081016040528092919081815260200182805461094f90612da3565b801561099c5780601f106109715761010080835404028352916020019161099c565b820191906000526020600020905b81548152906001019060200180831161097f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a4b82610f0e565b9050806001600160a01b0316836001600160a01b031603610ab85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a1b565b336001600160a01b0382161480610ad45750610ad48133610878565b610b465760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a1b565b610b508383611a9e565b505050565b6000601054600014610b6b575060105442101590565b50600090565b610b7b3382611b0c565b610b975760405162461bcd60e51b8152600401610a1b90612ddd565b610b50838383611c03565b6000828152600b6020526040902060010154610bbe8133611dae565b610b508383611e12565b6000610bd383610fa9565b8210610c355760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a1b565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600c546001600160a01b03163314610c885760405162461bcd60e51b8152600401610a1b90612e2e565b806001600160a01b031663a9059cbb610ca9600c546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610ced573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d119190612e63565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d809190612e7c565b5050565b6001600160a01b0381163314610df45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a1b565b610d808282611e98565b600080516020613251833981519152610e178133611dae565b610e1f611eff565b50565b610b5083838360405180602001604052806000815250611586565b6000818152600260205260408120546001600160a01b0316151561090e565b6000610e6760085490565b8210610eca5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a1b565b60088281548110610edd57610edd612e99565b90600052602060002001549050919050565b6000610efb8133611dae565b600d610f08838583612efd565b50505050565b6000818152600260205260408120546001600160a01b03168061090e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a1b565b6000610f918133611dae565b610d8060008051602061325183398151915283611e12565b60006001600160a01b0382166110145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a1b565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b0316331461105a5760405162461bcd60e51b8152600401610a1b90612e2e565b6110646000611f92565b565b836001333b15801561107757503233145b6110ba5760405162461bcd60e51b81526020600482015260146024820152734d7573742062652073656e742076696120454f4160601b6044820152606401610a1b565b612710826110c760085490565b6110d19190612fd4565b111561111f5760405162461bcd60e51b815260206004820152601b60248201527f507572636861736520776f756c6420657863656564206c696d697400000000006044820152606401610a1b565b8061ffff166000036111e857611133610b55565b61117a5760405162461bcd60e51b8152602060048201526018602482015277141d589b1a58c81cd85b19481b9bdd081bdc195b881e595d60421b6044820152606401610a1b565b60145433600090815260166020526040902054611198908490612fd4565b11156111b65760405162461bcd60e51b8152600401610a1b90612fec565b816012546111c4919061301c565b3410156111e35760405162461bcd60e51b8152600401610a1b9061303b565b6112b1565b8061ffff166001036112b1576111fc611968565b6112485760405162461bcd60e51b815260206004820152601b60248201527f416c6c6f776c6973742073616c65206e6f74206f70656e2079657400000000006044820152606401610a1b565b60155433600090815260176020526040902054611266908490612fd4565b11156112845760405162461bcd60e51b8152600401610a1b90612fec565b81601354611292919061301c565b3410156112b15760405162461bcd60e51b8152600401610a1b9061303b565b604080517fedaa0b3ba1fcb95f137273d7e31814ddf6780899720fae11d4b734eb01d0dc356020808301919091523382840152825180830384018152606083019093528251920191909120600f5461190160f01b6080840152608283015260a282018190529060009060c20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015611388573d6000803e3d6000fd5b5050604051601f190151600e549092506001600160a01b0380841691161490506113f45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1b565b33600090815260176020526040812080548b9290611413908490612fd4565b9091555061142390508933611fe4565b505050505050505050565b6000805160206132518339815191526114478133611dae565b610e1f612019565b600c546001600160a01b031633146114795760405162461bcd60e51b8152600401610a1b90612e2e565b601491909155601555565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600c546001600160a01b031633146114d95760405162461bcd60e51b8152600401610a1b90612e2e565b601091909155601155565b60606001805461092390612da3565b60008051602061325183398151915261150c8133611dae565b6127108361151960085490565b6115239190612fd4565b11156115715760405162461bcd60e51b815260206004820152601760248201527f4d696e7420776f756c6420657863656564206c696d69740000000000000000006044820152606401610a1b565b610b508383611fe4565b610d80338383612094565b6115903383611b0c565b6115ac5760405162461bcd60e51b8152600401610a1b90612ddd565b610f0884848484612162565b600c546001600160a01b031633146115e25760405162461bcd60e51b8152600401610a1b90612e2e565b601291909155601355565b6000818152600260205260409020546060906001600160a01b031661166c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a1b565b6000611676612195565b9050600081511161169657604051806020016040528060008152506116c1565b806116a0846121a4565b6040516020016116b1929190613065565b6040516020818303038152906040525b9392505050565b6000828152600b60205260409020600101546116e48133611dae565b610b508383611e98565b806000333b1580156116ff57503233145b6117425760405162461bcd60e51b81526020600482015260146024820152734d7573742062652073656e742076696120454f4160601b6044820152606401610a1b565b6127108261174f60085490565b6117599190612fd4565b11156117a75760405162461bcd60e51b815260206004820152601b60248201527f507572636861736520776f756c6420657863656564206c696d697400000000006044820152606401610a1b565b8061ffff16600003611870576117bb610b55565b6118025760405162461bcd60e51b8152602060048201526018602482015277141d589b1a58c81cd85b19481b9bdd081bdc195b881e595d60421b6044820152606401610a1b565b60145433600090815260166020526040902054611820908490612fd4565b111561183e5760405162461bcd60e51b8152600401610a1b90612fec565b8160125461184c919061301c565b34101561186b5760405162461bcd60e51b8152600401610a1b9061303b565b611939565b8061ffff1660010361193957611884611968565b6118d05760405162461bcd60e51b815260206004820152601b60248201527f416c6c6f776c6973742073616c65206e6f74206f70656e2079657400000000006044820152606401610a1b565b601554336000908152601760205260409020546118ee908490612fd4565b111561190c5760405162461bcd60e51b8152600401610a1b90612fec565b8160135461191a919061301c565b3410156119395760405162461bcd60e51b8152600401610a1b9061303b565b3360009081526016602052604081208054859290611958908490612fd4565b90915550610b5090508333611fe4565b6000601154600014610b6b575060115442101590565b600c546001600160a01b031633146119a85760405162461bcd60e51b8152600401610a1b90612e2e565b6001600160a01b038116611a0d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a1b565b610e1f81611f92565b600c546001600160a01b03163314611a405760405162461bcd60e51b8152600401610a1b90612e2e565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610e1f573d6000803e3d6000fd5b60006001600160e01b03198216637965db0b60e01b148061090e575061090e826122a5565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ad382610f0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611b855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a1b565b6000611b9083610f0e565b9050806001600160a01b0316846001600160a01b03161480611bcb5750836001600160a01b0316611bc0846109a6565b6001600160a01b0316145b80611bfb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c1682610f0e565b6001600160a01b031614611c7e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a1b565b6001600160a01b038216611ce05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a1b565b611ceb8383836122ca565b611cf6600082611a9e565b6001600160a01b0383166000908152600360205260408120805460019290611d1f908490613094565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d4d908490612fd4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611db88282611484565b610d8057611dd0816001600160a01b0316601461231b565b611ddb83602061231b565b604051602001611dec9291906130ab565b60408051601f198184030181529082905262461bcd60e51b8252610a1b91600401612a76565b611e1c8282611484565b610d80576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e543390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611ea28282611484565b15610d80576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600a5460ff16611f485760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a1b565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b82811015610b50576000611ffa60085490565b905061200683826124b7565b508061201181613120565b915050611fe7565b600a5460ff161561205f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a1b565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f753390565b816001600160a01b0316836001600160a01b0316036120f55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a1b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61216d848484611c03565b612179848484846124d1565b610f085760405162461bcd60e51b8152600401610a1b90613139565b6060600d805461092390612da3565b6060816000036121cb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121f557806121df81613120565b91506121ee9050600a836131a1565b91506121cf565b60008167ffffffffffffffff81111561221057612210612c87565b6040519080825280601f01601f19166020018201604052801561223a576020820181803683370190505b5090505b8415611bfb5761224f600183613094565b915061225c600a866131b5565b612267906030612fd4565b60f81b81838151811061227c5761227c612e99565b60200101906001600160f81b031916908160001a90535061229e600a866131a1565b945061223e565b60006001600160e01b0319821663780e9d6360e01b148061090e575061090e826125d2565b600a5460ff16156123105760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a1b565b610b50838383612622565b6060600061232a83600261301c565b612335906002612fd4565b67ffffffffffffffff81111561234d5761234d612c87565b6040519080825280601f01601f191660200182016040528015612377576020820181803683370190505b509050600360fc1b8160008151811061239257612392612e99565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106123c1576123c1612e99565b60200101906001600160f81b031916908160001a90535060006123e584600261301c565b6123f0906001612fd4565b90505b6001811115612468576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061242457612424612e99565b1a60f81b82828151811061243a5761243a612e99565b60200101906001600160f81b031916908160001a90535060049490941c93612461816131c9565b90506123f3565b5083156116c15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a1b565b610d808282604051806020016040528060008152506126da565b60006001600160a01b0384163b156125c757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125159033908990889088906004016131e0565b6020604051808303816000875af1925050508015612550575060408051601f3d908101601f1916820190925261254d9181019061321d565b60015b6125ad573d80801561257e576040519150601f19603f3d011682016040523d82523d6000602084013e612583565b606091505b5080516000036125a55760405162461bcd60e51b8152600401610a1b90613139565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bfb565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061260357506001600160e01b03198216635b5e139f60e01b145b8061090e57506301ffc9a760e01b6001600160e01b031983161461090e565b6001600160a01b03831661267d5761267881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126a0565b816001600160a01b0316836001600160a01b0316146126a0576126a0838261270d565b6001600160a01b0382166126b757610b50816127aa565b826001600160a01b0316826001600160a01b031614610b5057610b508282612859565b6126e4838361289d565b6126f160008484846124d1565b610b505760405162461bcd60e51b8152600401610a1b90613139565b6000600161271a84610fa9565b6127249190613094565b600083815260076020526040902054909150808214612777576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906127bc90600190613094565b600083815260096020526040812054600880549394509092849081106127e4576127e4612e99565b90600052602060002001549050806008838154811061280557612805612e99565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061283d5761283d61323a565b6001900381819060005260206000200160009055905550505050565b600061286483610fa9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166128f35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a1b565b6000818152600260205260409020546001600160a01b0316156129585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a1b565b612964600083836122ca565b6001600160a01b038216600090815260036020526040812080546001929061298d908490612fd4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610e1f57600080fd5b600060208284031215612a1357600080fd5b81356116c1816129eb565b60005b83811015612a39578181015183820152602001612a21565b83811115610f085750506000910152565b60008151808452612a62816020860160208601612a1e565b601f01601f19169290920160200192915050565b6020815260006116c16020830184612a4a565b600060208284031215612a9b57600080fd5b5035919050565b80356001600160a01b0381168114612ab957600080fd5b919050565b60008060408385031215612ad157600080fd5b612ada83612aa2565b946020939093013593505050565b600060208284031215612afa57600080fd5b6116c182612aa2565b600080600060608486031215612b1857600080fd5b612b2184612aa2565b9250612b2f60208501612aa2565b9150604084013590509250925092565b60008060408385031215612b5257600080fd5b82359150612b6260208401612aa2565b90509250929050565b60008060208385031215612b7e57600080fd5b823567ffffffffffffffff80821115612b9657600080fd5b818501915085601f830112612baa57600080fd5b813581811115612bb957600080fd5b866020828501011115612bcb57600080fd5b60209290920196919550909350505050565b60008060008060808587031215612bf357600080fd5b84359350602085013560ff81168114612c0b57600080fd5b93969395505050506040820135916060013590565b60008060408385031215612c3357600080fd5b50508035926020909101359150565b8015158114610e1f57600080fd5b60008060408385031215612c6357600080fd5b612c6c83612aa2565b91506020830135612c7c81612c42565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612cb357600080fd5b612cbc85612aa2565b9350612cca60208601612aa2565b925060408501359150606085013567ffffffffffffffff80821115612cee57600080fd5b818701915087601f830112612d0257600080fd5b813581811115612d1457612d14612c87565b604051601f8201601f19908116603f01168101908382118183101715612d3c57612d3c612c87565b816040528281528a6020848701011115612d5557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612d8c57600080fd5b612d9583612aa2565b9150612b6260208401612aa2565b600181811c90821680612db757607f821691505b602082108103612dd757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612e7557600080fd5b5051919050565b600060208284031215612e8e57600080fd5b81516116c181612c42565b634e487b7160e01b600052603260045260246000fd5b601f821115610b5057600081815260208120601f850160051c81016020861015612ed65750805b601f850160051c820191505b81811015612ef557828155600101612ee2565b505050505050565b67ffffffffffffffff831115612f1557612f15612c87565b612f2983612f238354612da3565b83612eaf565b6000601f841160018114612f5d5760008515612f455750838201355b600019600387901b1c1916600186901b178355612fb7565b600083815260209020601f19861690835b82811015612f8e5786850135825560209485019460019092019101612f6e565b5086821015612fab5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612fe757612fe7612fbe565b500190565b602080825260169082015275135a5b9d1a5b99c8131a5b5a5d08115e18d95959195960521b604082015260600190565b600081600019048311821515161561303657613036612fbe565b500290565b60208082526010908201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b604082015260600190565b60008351613077818460208801612a1e565b83519083019061308b818360208801612a1e565b01949350505050565b6000828210156130a6576130a6612fbe565b500390565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516130e3816017850160208801612a1e565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613114816028840160208801612a1e565b01602801949350505050565b60006001820161313257613132612fbe565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826131b0576131b061318b565b500490565b6000826131c4576131c461318b565b500690565b6000816131d8576131d8612fbe565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061321390830184612a4a565b9695505050505050565b60006020828403121561322f57600080fd5b81516116c1816129eb565b634e487b7160e01b600052603160045260246000fdfe7b765e0e932d348852a6f810bfa1ab891e259123f02db8cdcde614c570223357a264697066735822122088d101927920fe07d0707069d4368a9d65e4cdc8d820a9c591bc04603aa7610164736f6c634300080f003368747470733a2f2f6d657461646174612e6d65746163727970742e6f72672f6170692f726f79616c2d676f6174732d636c75622f000000000000000000000000ec9a385df79fd5e329601a4800928aa8ee156fa2

Deployed Bytecode

0x6080604052600436106102e45760003560e01c80636623267511610190578063a842222e116100dc578063d3a6670611610095578063efd0cbf91161006f578063efd0cbf9146108a6578063f0e06a59146108b9578063f2fde38b146108ce578063f4856230146108ee57600080fd5b8063d3a6670614610810578063d547741f1461083d578063e985e9c51461085d57600080fd5b8063a842222e1461076e578063b88d4fde14610784578063bf17cd45146107a4578063c057e157146107ba578063c6329837146107da578063c87b56dd146107f057600080fd5b80638da5cb5b1161014957806395d89b411161012357806395d89b41146107115780639f15df1214610726578063a217fddf14610739578063a22cb4651461074e57600080fd5b80638da5cb5b146106b357806391d14854146106d157806393dcee5f146106f157600080fd5b8063662326751461061657806370a0823114610636578063715018a6146106565780637ed22efe1461066b5780638456cb591461067e57806384f302f11461069357600080fd5b80632f745c591161024f5780634eb9778b1161020857806355f804b3116101e257806355f804b3146105a85780635c975abb146105c8578063611a4d51146105e05780636352211e146105f657600080fd5b80634eb9778b146105525780634f558e79146105685780634f6ccce71461058857600080fd5b80632f745c59146104a7578063323b6635146104c757806332f289cf146104dd57806336568abe146104fd5780633f4ba83a1461051d57806342842e0e1461053257600080fd5b806318160ddd116102a157806318160ddd146103f75780631a6949e31461040c5780631c18a0621461042157806323b872dd14610437578063248a9ca3146104575780632f2ff15d1461048757600080fd5b806301ffc9a7146102e957806306fdde031461031e578063081812fc14610340578063092c5b3b14610378578063095ea7b3146103a857806314d23505146103ca575b600080fd5b3480156102f557600080fd5b50610309610304366004612a01565b610903565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b50610333610914565b6040516103159190612a76565b34801561034c57600080fd5b5061036061035b366004612a89565b6109a6565b6040516001600160a01b039091168152602001610315565b34801561038457600080fd5b5061039a60008051602061325183398151915281565b604051908152602001610315565b3480156103b457600080fd5b506103c86103c3366004612abe565b610a40565b005b3480156103d657600080fd5b5061039a6103e5366004612ae8565b60176020526000908152604090205481565b34801561040357600080fd5b5060085461039a565b34801561041857600080fd5b50610309610b55565b34801561042d57600080fd5b5061039a60125481565b34801561044357600080fd5b506103c8610452366004612b03565b610b71565b34801561046357600080fd5b5061039a610472366004612a89565b6000908152600b602052604090206001015490565b34801561049357600080fd5b506103c86104a2366004612b3f565b610ba2565b3480156104b357600080fd5b5061039a6104c2366004612abe565b610bc8565b3480156104d357600080fd5b5061039a60105481565b3480156104e957600080fd5b506103c86104f8366004612ae8565b610c5e565b34801561050957600080fd5b506103c8610518366004612b3f565b610d84565b34801561052957600080fd5b506103c8610dfe565b34801561053e57600080fd5b506103c861054d366004612b03565b610e22565b34801561055e57600080fd5b5061039a60145481565b34801561057457600080fd5b50610309610583366004612a89565b610e3d565b34801561059457600080fd5b5061039a6105a3366004612a89565b610e5c565b3480156105b457600080fd5b506103c86105c3366004612b6b565b610eef565b3480156105d457600080fd5b50600a5460ff16610309565b3480156105ec57600080fd5b5061039a60115481565b34801561060257600080fd5b50610360610611366004612a89565b610f0e565b34801561062257600080fd5b506103c8610631366004612ae8565b610f85565b34801561064257600080fd5b5061039a610651366004612ae8565b610fa9565b34801561066257600080fd5b506103c8611030565b6103c8610679366004612bdd565b611066565b34801561068a57600080fd5b506103c861142e565b34801561069f57600080fd5b506103c86106ae366004612c20565b61144f565b3480156106bf57600080fd5b50600c546001600160a01b0316610360565b3480156106dd57600080fd5b506103096106ec366004612b3f565b611484565b3480156106fd57600080fd5b506103c861070c366004612c20565b6114af565b34801561071d57600080fd5b506103336114e4565b6103c8610734366004612b3f565b6114f3565b34801561074557600080fd5b5061039a600081565b34801561075a57600080fd5b506103c8610769366004612c50565b61157b565b34801561077a57600080fd5b5061039a61271081565b34801561079057600080fd5b506103c861079f366004612c9d565b611586565b3480156107b057600080fd5b5061039a60135481565b3480156107c657600080fd5b506103c86107d5366004612c20565b6115b8565b3480156107e657600080fd5b5061039a60155481565b3480156107fc57600080fd5b5061033361080b366004612a89565b6115ed565b34801561081c57600080fd5b5061039a61082b366004612ae8565b60166020526000908152604090205481565b34801561084957600080fd5b506103c8610858366004612b3f565b6116c8565b34801561086957600080fd5b50610309610878366004612d79565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103c86108b4366004612a89565b6116ee565b3480156108c557600080fd5b50610309611968565b3480156108da57600080fd5b506103c86108e9366004612ae8565b61197e565b3480156108fa57600080fd5b506103c8611a16565b600061090e82611a79565b92915050565b60606000805461092390612da3565b80601f016020809104026020016040519081016040528092919081815260200182805461094f90612da3565b801561099c5780601f106109715761010080835404028352916020019161099c565b820191906000526020600020905b81548152906001019060200180831161097f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a4b82610f0e565b9050806001600160a01b0316836001600160a01b031603610ab85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a1b565b336001600160a01b0382161480610ad45750610ad48133610878565b610b465760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a1b565b610b508383611a9e565b505050565b6000601054600014610b6b575060105442101590565b50600090565b610b7b3382611b0c565b610b975760405162461bcd60e51b8152600401610a1b90612ddd565b610b50838383611c03565b6000828152600b6020526040902060010154610bbe8133611dae565b610b508383611e12565b6000610bd383610fa9565b8210610c355760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a1b565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600c546001600160a01b03163314610c885760405162461bcd60e51b8152600401610a1b90612e2e565b806001600160a01b031663a9059cbb610ca9600c546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610ced573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d119190612e63565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d809190612e7c565b5050565b6001600160a01b0381163314610df45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a1b565b610d808282611e98565b600080516020613251833981519152610e178133611dae565b610e1f611eff565b50565b610b5083838360405180602001604052806000815250611586565b6000818152600260205260408120546001600160a01b0316151561090e565b6000610e6760085490565b8210610eca5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a1b565b60088281548110610edd57610edd612e99565b90600052602060002001549050919050565b6000610efb8133611dae565b600d610f08838583612efd565b50505050565b6000818152600260205260408120546001600160a01b03168061090e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a1b565b6000610f918133611dae565b610d8060008051602061325183398151915283611e12565b60006001600160a01b0382166110145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a1b565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b0316331461105a5760405162461bcd60e51b8152600401610a1b90612e2e565b6110646000611f92565b565b836001333b15801561107757503233145b6110ba5760405162461bcd60e51b81526020600482015260146024820152734d7573742062652073656e742076696120454f4160601b6044820152606401610a1b565b612710826110c760085490565b6110d19190612fd4565b111561111f5760405162461bcd60e51b815260206004820152601b60248201527f507572636861736520776f756c6420657863656564206c696d697400000000006044820152606401610a1b565b8061ffff166000036111e857611133610b55565b61117a5760405162461bcd60e51b8152602060048201526018602482015277141d589b1a58c81cd85b19481b9bdd081bdc195b881e595d60421b6044820152606401610a1b565b60145433600090815260166020526040902054611198908490612fd4565b11156111b65760405162461bcd60e51b8152600401610a1b90612fec565b816012546111c4919061301c565b3410156111e35760405162461bcd60e51b8152600401610a1b9061303b565b6112b1565b8061ffff166001036112b1576111fc611968565b6112485760405162461bcd60e51b815260206004820152601b60248201527f416c6c6f776c6973742073616c65206e6f74206f70656e2079657400000000006044820152606401610a1b565b60155433600090815260176020526040902054611266908490612fd4565b11156112845760405162461bcd60e51b8152600401610a1b90612fec565b81601354611292919061301c565b3410156112b15760405162461bcd60e51b8152600401610a1b9061303b565b604080517fedaa0b3ba1fcb95f137273d7e31814ddf6780899720fae11d4b734eb01d0dc356020808301919091523382840152825180830384018152606083019093528251920191909120600f5461190160f01b6080840152608283015260a282018190529060009060c20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015611388573d6000803e3d6000fd5b5050604051601f190151600e549092506001600160a01b0380841691161490506113f45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1b565b33600090815260176020526040812080548b9290611413908490612fd4565b9091555061142390508933611fe4565b505050505050505050565b6000805160206132518339815191526114478133611dae565b610e1f612019565b600c546001600160a01b031633146114795760405162461bcd60e51b8152600401610a1b90612e2e565b601491909155601555565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600c546001600160a01b031633146114d95760405162461bcd60e51b8152600401610a1b90612e2e565b601091909155601155565b60606001805461092390612da3565b60008051602061325183398151915261150c8133611dae565b6127108361151960085490565b6115239190612fd4565b11156115715760405162461bcd60e51b815260206004820152601760248201527f4d696e7420776f756c6420657863656564206c696d69740000000000000000006044820152606401610a1b565b610b508383611fe4565b610d80338383612094565b6115903383611b0c565b6115ac5760405162461bcd60e51b8152600401610a1b90612ddd565b610f0884848484612162565b600c546001600160a01b031633146115e25760405162461bcd60e51b8152600401610a1b90612e2e565b601291909155601355565b6000818152600260205260409020546060906001600160a01b031661166c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a1b565b6000611676612195565b9050600081511161169657604051806020016040528060008152506116c1565b806116a0846121a4565b6040516020016116b1929190613065565b6040516020818303038152906040525b9392505050565b6000828152600b60205260409020600101546116e48133611dae565b610b508383611e98565b806000333b1580156116ff57503233145b6117425760405162461bcd60e51b81526020600482015260146024820152734d7573742062652073656e742076696120454f4160601b6044820152606401610a1b565b6127108261174f60085490565b6117599190612fd4565b11156117a75760405162461bcd60e51b815260206004820152601b60248201527f507572636861736520776f756c6420657863656564206c696d697400000000006044820152606401610a1b565b8061ffff16600003611870576117bb610b55565b6118025760405162461bcd60e51b8152602060048201526018602482015277141d589b1a58c81cd85b19481b9bdd081bdc195b881e595d60421b6044820152606401610a1b565b60145433600090815260166020526040902054611820908490612fd4565b111561183e5760405162461bcd60e51b8152600401610a1b90612fec565b8160125461184c919061301c565b34101561186b5760405162461bcd60e51b8152600401610a1b9061303b565b611939565b8061ffff1660010361193957611884611968565b6118d05760405162461bcd60e51b815260206004820152601b60248201527f416c6c6f776c6973742073616c65206e6f74206f70656e2079657400000000006044820152606401610a1b565b601554336000908152601760205260409020546118ee908490612fd4565b111561190c5760405162461bcd60e51b8152600401610a1b90612fec565b8160135461191a919061301c565b3410156119395760405162461bcd60e51b8152600401610a1b9061303b565b3360009081526016602052604081208054859290611958908490612fd4565b90915550610b5090508333611fe4565b6000601154600014610b6b575060115442101590565b600c546001600160a01b031633146119a85760405162461bcd60e51b8152600401610a1b90612e2e565b6001600160a01b038116611a0d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a1b565b610e1f81611f92565b600c546001600160a01b03163314611a405760405162461bcd60e51b8152600401610a1b90612e2e565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610e1f573d6000803e3d6000fd5b60006001600160e01b03198216637965db0b60e01b148061090e575061090e826122a5565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ad382610f0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611b855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a1b565b6000611b9083610f0e565b9050806001600160a01b0316846001600160a01b03161480611bcb5750836001600160a01b0316611bc0846109a6565b6001600160a01b0316145b80611bfb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c1682610f0e565b6001600160a01b031614611c7e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a1b565b6001600160a01b038216611ce05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a1b565b611ceb8383836122ca565b611cf6600082611a9e565b6001600160a01b0383166000908152600360205260408120805460019290611d1f908490613094565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d4d908490612fd4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611db88282611484565b610d8057611dd0816001600160a01b0316601461231b565b611ddb83602061231b565b604051602001611dec9291906130ab565b60408051601f198184030181529082905262461bcd60e51b8252610a1b91600401612a76565b611e1c8282611484565b610d80576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e543390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611ea28282611484565b15610d80576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600a5460ff16611f485760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a1b565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b82811015610b50576000611ffa60085490565b905061200683826124b7565b508061201181613120565b915050611fe7565b600a5460ff161561205f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a1b565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f753390565b816001600160a01b0316836001600160a01b0316036120f55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a1b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61216d848484611c03565b612179848484846124d1565b610f085760405162461bcd60e51b8152600401610a1b90613139565b6060600d805461092390612da3565b6060816000036121cb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121f557806121df81613120565b91506121ee9050600a836131a1565b91506121cf565b60008167ffffffffffffffff81111561221057612210612c87565b6040519080825280601f01601f19166020018201604052801561223a576020820181803683370190505b5090505b8415611bfb5761224f600183613094565b915061225c600a866131b5565b612267906030612fd4565b60f81b81838151811061227c5761227c612e99565b60200101906001600160f81b031916908160001a90535061229e600a866131a1565b945061223e565b60006001600160e01b0319821663780e9d6360e01b148061090e575061090e826125d2565b600a5460ff16156123105760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a1b565b610b50838383612622565b6060600061232a83600261301c565b612335906002612fd4565b67ffffffffffffffff81111561234d5761234d612c87565b6040519080825280601f01601f191660200182016040528015612377576020820181803683370190505b509050600360fc1b8160008151811061239257612392612e99565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106123c1576123c1612e99565b60200101906001600160f81b031916908160001a90535060006123e584600261301c565b6123f0906001612fd4565b90505b6001811115612468576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061242457612424612e99565b1a60f81b82828151811061243a5761243a612e99565b60200101906001600160f81b031916908160001a90535060049490941c93612461816131c9565b90506123f3565b5083156116c15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a1b565b610d808282604051806020016040528060008152506126da565b60006001600160a01b0384163b156125c757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125159033908990889088906004016131e0565b6020604051808303816000875af1925050508015612550575060408051601f3d908101601f1916820190925261254d9181019061321d565b60015b6125ad573d80801561257e576040519150601f19603f3d011682016040523d82523d6000602084013e612583565b606091505b5080516000036125a55760405162461bcd60e51b8152600401610a1b90613139565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bfb565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061260357506001600160e01b03198216635b5e139f60e01b145b8061090e57506301ffc9a760e01b6001600160e01b031983161461090e565b6001600160a01b03831661267d5761267881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126a0565b816001600160a01b0316836001600160a01b0316146126a0576126a0838261270d565b6001600160a01b0382166126b757610b50816127aa565b826001600160a01b0316826001600160a01b031614610b5057610b508282612859565b6126e4838361289d565b6126f160008484846124d1565b610b505760405162461bcd60e51b8152600401610a1b90613139565b6000600161271a84610fa9565b6127249190613094565b600083815260076020526040902054909150808214612777576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906127bc90600190613094565b600083815260096020526040812054600880549394509092849081106127e4576127e4612e99565b90600052602060002001549050806008838154811061280557612805612e99565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061283d5761283d61323a565b6001900381819060005260206000200160009055905550505050565b600061286483610fa9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166128f35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a1b565b6000818152600260205260409020546001600160a01b0316156129585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a1b565b612964600083836122ca565b6001600160a01b038216600090815260036020526040812080546001929061298d908490612fd4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610e1f57600080fd5b600060208284031215612a1357600080fd5b81356116c1816129eb565b60005b83811015612a39578181015183820152602001612a21565b83811115610f085750506000910152565b60008151808452612a62816020860160208601612a1e565b601f01601f19169290920160200192915050565b6020815260006116c16020830184612a4a565b600060208284031215612a9b57600080fd5b5035919050565b80356001600160a01b0381168114612ab957600080fd5b919050565b60008060408385031215612ad157600080fd5b612ada83612aa2565b946020939093013593505050565b600060208284031215612afa57600080fd5b6116c182612aa2565b600080600060608486031215612b1857600080fd5b612b2184612aa2565b9250612b2f60208501612aa2565b9150604084013590509250925092565b60008060408385031215612b5257600080fd5b82359150612b6260208401612aa2565b90509250929050565b60008060208385031215612b7e57600080fd5b823567ffffffffffffffff80821115612b9657600080fd5b818501915085601f830112612baa57600080fd5b813581811115612bb957600080fd5b866020828501011115612bcb57600080fd5b60209290920196919550909350505050565b60008060008060808587031215612bf357600080fd5b84359350602085013560ff81168114612c0b57600080fd5b93969395505050506040820135916060013590565b60008060408385031215612c3357600080fd5b50508035926020909101359150565b8015158114610e1f57600080fd5b60008060408385031215612c6357600080fd5b612c6c83612aa2565b91506020830135612c7c81612c42565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612cb357600080fd5b612cbc85612aa2565b9350612cca60208601612aa2565b925060408501359150606085013567ffffffffffffffff80821115612cee57600080fd5b818701915087601f830112612d0257600080fd5b813581811115612d1457612d14612c87565b604051601f8201601f19908116603f01168101908382118183101715612d3c57612d3c612c87565b816040528281528a6020848701011115612d5557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612d8c57600080fd5b612d9583612aa2565b9150612b6260208401612aa2565b600181811c90821680612db757607f821691505b602082108103612dd757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612e7557600080fd5b5051919050565b600060208284031215612e8e57600080fd5b81516116c181612c42565b634e487b7160e01b600052603260045260246000fd5b601f821115610b5057600081815260208120601f850160051c81016020861015612ed65750805b601f850160051c820191505b81811015612ef557828155600101612ee2565b505050505050565b67ffffffffffffffff831115612f1557612f15612c87565b612f2983612f238354612da3565b83612eaf565b6000601f841160018114612f5d5760008515612f455750838201355b600019600387901b1c1916600186901b178355612fb7565b600083815260209020601f19861690835b82811015612f8e5786850135825560209485019460019092019101612f6e565b5086821015612fab5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612fe757612fe7612fbe565b500190565b602080825260169082015275135a5b9d1a5b99c8131a5b5a5d08115e18d95959195960521b604082015260600190565b600081600019048311821515161561303657613036612fbe565b500290565b60208082526010908201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b604082015260600190565b60008351613077818460208801612a1e565b83519083019061308b818360208801612a1e565b01949350505050565b6000828210156130a6576130a6612fbe565b500390565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516130e3816017850160208801612a1e565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613114816028840160208801612a1e565b01602801949350505050565b60006001820161313257613132612fbe565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826131b0576131b061318b565b500490565b6000826131c4576131c461318b565b500690565b6000816131d8576131d8612fbe565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061321390830184612a4a565b9695505050505050565b60006020828403121561322f57600080fd5b81516116c1816129eb565b634e487b7160e01b600052603160045260246000fdfe7b765e0e932d348852a6f810bfa1ab891e259123f02db8cdcde614c570223357a264697066735822122088d101927920fe07d0707069d4368a9d65e4cdc8d820a9c591bc04603aa7610164736f6c634300080f0033

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

000000000000000000000000ec9a385df79fd5e329601a4800928aa8ee156fa2

-----Decoded View---------------
Arg [0] : _signer (address): 0xEc9a385Df79fd5e329601A4800928aa8eE156Fa2

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ec9a385df79fd5e329601a4800928aa8ee156fa2


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.