ETH Price: $3,315.78 (-4.97%)

Token

GenesisExplorers (GEXPLRS)
 

Overview

Max Total Supply

206 GEXPLRS

Holders

68

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
qi-dao.eth
Balance
1 GEXPLRS
0x6ABaDBD5320bf25B349242EBfC7fa293601EA47F
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Genesis Explorers are powerful adventurers endowed with magic & power of its ancestral order, resurrected from Genesis Loot bags which contain a complete set of 8 items belonging to the same Order.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GenesisExplorers

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : GenesisExplorer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./Base64.sol";
import "./Helpers.sol";

contract GenesisExplorers is ERC721, Ownable, ReentrancyGuard {
    using Counters for Counters.Counter;
    Counters.Counter private tokenCounter;

    event GenesisExplorerSummoned(
        address indexed from,
        uint256 indexed tokenId
    );

    // Stop mint in case of emergency / contract migration
    bool public emergencyStop = false;

    address public immutable gaAddress;
    address public immutable leAddress;

    uint256 public immutable freeGenesisExplorers;
    uint256 public mintPrice = 0.1 ether;

    // Pre-revealed baseUri
    string private _baseURIextended =
        "ipfs://bafybeihdjg7sc5qqo5a755ut2laq5qafnvhhjtjvam5iyzolagqwiq6aty/metadata/";

    // Address that is allowed to setTokenURI()
    address private metadataUpdaterAddress;

    constructor(
        address _gaAddress,
        address _leAddress,
        address _newOwner,
        address _metadataUpdaterAddress,
        uint256 _freeGenesisExplorers
    ) ERC721("GenesisExplorers", "GEXPLRS") {
        gaAddress = _gaAddress;
        leAddress = _leAddress;
        metadataUpdaterAddress = _metadataUpdaterAddress;
        freeGenesisExplorers = _freeGenesisExplorers;

        transferOwnership(_newOwner);
    }

    // ========================
    //     PUBLIC FUNCTIONS
    // ========================
    function totalSupply() public view returns (uint256) {
        return tokenCounter.current();
    }

    function price() public view returns (uint256){
        // First 600 mint is free. Every subsequent mint cost 0.1 ETH
        return totalSupply() < freeGenesisExplorers ? 0 ether : mintPrice;
    }

    modifier canMintGenesisExplorer(uint256 _tokenId, uint256[3] calldata _leTokenIds) {
        require(!emergencyStop, "Emergency Stop!");
        require(msg.value == price(), "Ether value sent is not correct");
        require(
            IERC721(gaAddress).ownerOf(_tokenId) ==
                msg.sender,
            "You don't own this!"
        );
        for (uint8 i = 0; i < 3; i++) {
            require(
                IERC721(leAddress).ownerOf(_leTokenIds[i]) == 
                    msg.sender, 
                "You don't own the Loot Explorers!");
        }
        _;
    }

    modifier canSetBaseURI() {
        require(
            (msg.sender == metadataUpdaterAddress) || (msg.sender == owner()),
            "Only owner or metadata updater can set tokenURI"
        );
        _;
    }

    // =========================
    //      UPDATE BASE URI
    // =========================
    function setBaseURI(string memory baseURI) public canSetBaseURI {
        _baseURIextended = baseURI;
    }

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

    function mintGenesisExplorer(uint256 _tokenId, uint256[3] calldata _leTokenIds)
        public
        payable
        nonReentrant
        canMintGenesisExplorer(_tokenId, _leTokenIds)
    {
        _safeMint(msg.sender, _tokenId);
        tokenCounter.increment();
        emit GenesisExplorerSummoned(msg.sender, _tokenId);
    }

    // =============================
    //      WITHDRAWAL FUNCTIONS
    // =============================
    // IF VAULT EXISTS, WITHDRAW TO VAULT
    // ELSE WITHDRAW TO OWNER
    function withdrawAll() public{
        payable(owner()).transfer(address(this).balance);
    }

    function withdrawAllTokens(IERC20 token) public {
        uint256 balance = token.balanceOf(address(this));
        token.transfer(owner(), balance);
    }

    // ========================
    //      OWNER FUNCTIONS
    // ========================
    function setMetadataUpdaterAddress(address _metadataUpdaterAddress)
        public
        onlyOwner
    {
        metadataUpdaterAddress = _metadataUpdaterAddress;
    }

    function setMintPrice(uint256 newPrice) public onlyOwner {
        mintPrice = newPrice;
    }

    function setEmergencyStop(bool stop) public onlyOwner {
        emergencyStop = stop;
    }
}

File 2 of 17 : 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 17 : 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 4 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 5 of 17 : 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 6 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 7 of 17 : 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 8 of 17 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 17 : Base64.sol
// SPDX-License-Identifier: MIT
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
pragma solidity ^0.8.0;

library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    bytes internal constant TABLE_DECODE =
        hex"0000000000000000000000000000000000000000000000000000000000000000"
        hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
        hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
        hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

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

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

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

        bytes memory table = TABLE;

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

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

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

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

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

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

            mstore(result, encodedLen)
        }

        return string(result);
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

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

            // run over the input, 4 characters at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                // read 4 characters
                dataPtr := add(dataPtr, 4)
                let input := mload(dataPtr)

                // write 3 bytes
                let output := add(
                    add(
                        shl(
                            18,
                            and(
                                mload(add(tablePtr, and(shr(24, input), 0xFF))),
                                0xFF
                            )
                        ),
                        shl(
                            12,
                            and(
                                mload(add(tablePtr, and(shr(16, input), 0xFF))),
                                0xFF
                            )
                        )
                    ),
                    add(
                        shl(
                            6,
                            and(
                                mload(add(tablePtr, and(shr(8, input), 0xFF))),
                                0xFF
                            )
                        ),
                        and(mload(add(tablePtr, and(input, 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 10 of 17 : Helpers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Helpers {
    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);
    }
}

File 11 of 17 : 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 12 of 17 : 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 13 of 17 : 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 14 of 17 : 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 15 of 17 : 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 17 : 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 17 : 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":"_gaAddress","type":"address"},{"internalType":"address","name":"_leAddress","type":"address"},{"internalType":"address","name":"_newOwner","type":"address"},{"internalType":"address","name":"_metadataUpdaterAddress","type":"address"},{"internalType":"uint256","name":"_freeGenesisExplorers","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"GenesisExplorerSummoned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyStop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeGenesisExplorers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"leAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256[3]","name":"_leTokenIds","type":"uint256[3]"}],"name":"mintGenesisExplorer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"stop","type":"bool"}],"name":"setEmergencyStop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_metadataUpdaterAddress","type":"address"}],"name":"setMetadataUpdaterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","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":"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":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6009805460ff1916905567016345785d8a0000600a55610160604052604c60e0818152906200254f6101003980516200004191600b916020909101906200027e565b503480156200004f57600080fd5b506040516200259b3803806200259b833981016040819052620000729162000341565b604080518082018252601081526f47656e657369734578706c6f7265727360801b602080830191825283518085019094526007845266474558504c525360c81b908401528151919291620000c9916000916200027e565b508051620000df9060019060208401906200027e565b505050620000fc620000f66200015360201b60201c565b62000157565b60016007556001600160601b0319606086811b821660805285901b1660a052600c80546001600160a01b0384166001600160a01b031990911617905560c08190526200014883620001a9565b5050505050620003e4565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620002095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620002705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000200565b6200027b8162000157565b50565b8280546200028c90620003a7565b90600052602060002090601f016020900481019282620002b05760008555620002fb565b82601f10620002cb57805160ff1916838001178555620002fb565b82800160010185558215620002fb579182015b82811115620002fb578251825591602001919060010190620002de565b50620003099291506200030d565b5090565b5b808211156200030957600081556001016200030e565b80516001600160a01b03811681146200033c57600080fd5b919050565b600080600080600060a0868803121562000359578081fd5b620003648662000324565b9450620003746020870162000324565b9350620003846040870162000324565b9250620003946060870162000324565b9150608086015190509295509295909350565b600181811c90821680620003bc57607f821691505b60208210811415620003de57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c60c0516121206200042f600039600081816102190152610e660152600081816105350152610aa401526000818161046101526109cc01526121206000f3fe6080604052600436106101cd5760003560e01c8063853828b6116100f7578063b88d4fde11610095578063e0a20ef511610064578063e0a20ef514610523578063e985e9c514610557578063f2fde38b146105a0578063f4a0a528146105c057600080fd5b8063b88d4fde146104a3578063c73d7c7b146104c3578063c87b56dd146104e3578063cf6e7c4e1461050357600080fd5b8063a035b1fe116100d1578063a035b1fe1461041a578063a22cb4651461042f578063a2d789c51461044f578063a878aee61461048357600080fd5b8063853828b6146103d25780638da5cb5b146103e757806395d89b411461040557600080fd5b806323d687c11161016f57806363a599a41161013e57806363a599a41461036d5780636817c76c1461038757806370a082311461039d578063715018a6146103bd57600080fd5b806323d687c1146102fa57806342842e0e1461030d57806355f804b31461032d5780636352211e1461034d57600080fd5b8063081812fc116101ab578063081812fc1461026b578063095ea7b3146102a357806318160ddd146102c557806323b872dd146102da57600080fd5b806301ffc9a7146101d257806305cf994b1461020757806306fdde0314610249575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611d14565b6105e0565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061023b7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101fe565b34801561025557600080fd5b5061025e610632565b6040516101fe9190611e8b565b34801561027757600080fd5b5061028b610286366004611d92565b6106c4565b6040516001600160a01b0390911681526020016101fe565b3480156102af57600080fd5b506102c36102be366004611cb1565b61075e565b005b3480156102d157600080fd5b5061023b610874565b3480156102e657600080fd5b506102c36102f5366004611bc7565b610884565b6102c3610308366004611dc2565b6108b5565b34801561031957600080fd5b506102c3610328366004611bc7565b610c2a565b34801561033957600080fd5b506102c3610348366004611d4c565b610c45565b34801561035957600080fd5b5061028b610368366004611d92565b610ce3565b34801561037957600080fd5b506009546101f29060ff1681565b34801561039357600080fd5b5061023b600a5481565b3480156103a957600080fd5b5061023b6103b8366004611b57565b610d5a565b3480156103c957600080fd5b506102c3610de1565b3480156103de57600080fd5b506102c3610e17565b3480156103f357600080fd5b506006546001600160a01b031661028b565b34801561041157600080fd5b5061025e610e53565b34801561042657600080fd5b5061023b610e62565b34801561043b57600080fd5b506102c361044a366004611c84565b610e9f565b34801561045b57600080fd5b5061028b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561048f57600080fd5b506102c361049e366004611b57565b610eaa565b3480156104af57600080fd5b506102c36104be366004611c07565b610fc7565b3480156104cf57600080fd5b506102c36104de366004611cdc565b610fff565b3480156104ef57600080fd5b5061025e6104fe366004611d92565b61103c565b34801561050f57600080fd5b506102c361051e366004611b57565b611117565b34801561052f57600080fd5b5061028b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561056357600080fd5b506101f2610572366004611b8f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105ac57600080fd5b506102c36105bb366004611b57565b611163565b3480156105cc57600080fd5b506102c36105db366004611d92565b6111fb565b60006001600160e01b031982166380ac58cd60e01b148061061157506001600160e01b03198216635b5e139f60e01b145b8061062c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461064190611fe5565b80601f016020809104026020016040519081016040528092919081815260200182805461066d90611fe5565b80156106ba5780601f1061068f576101008083540402835291602001916106ba565b820191906000526020600020905b81548152906001019060200180831161069d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061076982610ce3565b9050806001600160a01b0316836001600160a01b031614156107d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610739565b336001600160a01b03821614806107f357506107f38133610572565b6108655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610739565b61086f838361122a565b505050565b600061087f60085490565b905090565b61088e3382611298565b6108aa5760405162461bcd60e51b815260040161073990611f25565b61086f83838361138f565b600260075414156109085760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610739565b60026007556009548290829060ff16156109565760405162461bcd60e51b815260206004820152600f60248201526e456d657267656e63792053746f702160881b6044820152606401610739565b61095e610e62565b34146109ac5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610739565b6040516331a9108f60e11b81526004810183905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e9060240160206040518083038186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a469190611b73565b6001600160a01b031614610a925760405162461bcd60e51b8152602060048201526013602482015272596f7520646f6e2774206f776e20746869732160681b6044820152606401610739565b60005b60038160ff161015610bd957337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e8460ff851660038110610af457634e487b7160e01b600052603260045260246000fd5b60200201356040518263ffffffff1660e01b8152600401610b1791815260200190565b60206040518083038186803b158015610b2f57600080fd5b505afa158015610b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b679190611b73565b6001600160a01b031614610bc75760405162461bcd60e51b815260206004820152602160248201527f596f7520646f6e2774206f776e20746865204c6f6f74204578706c6f726572736044820152602160f81b6064820152608401610739565b80610bd18161203b565b915050610a95565b50610be4338561152f565b610bf2600880546001019055565b604051849033907f06043e003cf55fc818c04d7fc646c10b7ccffcb3cf4d85e36258a55c8daded5b90600090a3505060016007555050565b61086f83838360405180602001604052806000815250610fc7565b600c546001600160a01b0316331480610c6857506006546001600160a01b031633145b610ccc5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c79206f776e6572206f72206d657461646174612075706461746572206360448201526e616e2073657420746f6b656e55524960881b6064820152608401610739565b8051610cdf90600b906020840190611a48565b5050565b6000818152600260205260408120546001600160a01b03168061062c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610739565b60006001600160a01b038216610dc55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610739565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e0b5760405162461bcd60e51b815260040161073990611ef0565b610e156000611549565b565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610e50573d6000803e3d6000fd5b50565b60606001805461064190611fe5565b60007f0000000000000000000000000000000000000000000000000000000000000000610e8d610874565b10610e995750600a5490565b50600090565b610cdf33838361159b565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610eec57600080fd5b505afa158015610f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f249190611daa565b9050816001600160a01b031663a9059cbb610f476006546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b158015610f8f57600080fd5b505af1158015610fa3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086f9190611cf8565b610fd13383611298565b610fed5760405162461bcd60e51b815260040161073990611f25565b610ff98484848461166a565b50505050565b6006546001600160a01b031633146110295760405162461bcd60e51b815260040161073990611ef0565b6009805460ff1916911515919091179055565b6000818152600260205260409020546060906001600160a01b03166110bb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610739565b60006110c561169d565b905060008151116110e55760405180602001604052806000815250611110565b806110ef846116ac565b604051602001611100929190611e1f565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146111415760405162461bcd60e51b815260040161073990611ef0565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331461118d5760405162461bcd60e51b815260040161073990611ef0565b6001600160a01b0381166111f25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610739565b610e5081611549565b6006546001600160a01b031633146112255760405162461bcd60e51b815260040161073990611ef0565b600a55565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061125f82610ce3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166113115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610739565b600061131c83610ce3565b9050806001600160a01b0316846001600160a01b031614806113575750836001600160a01b031661134c846106c4565b6001600160a01b0316145b8061138757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166113a282610ce3565b6001600160a01b03161461140a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610739565b6001600160a01b03821661146c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610739565b61147760008261122a565b6001600160a01b03831660009081526003602052604081208054600192906114a0908490611fa2565b90915550506001600160a01b03821660009081526003602052604081208054600192906114ce908490611f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610cdf8282604051806020016040528060008152506117c6565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156115fd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610739565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61167584848461138f565b611681848484846117f9565b610ff95760405162461bcd60e51b815260040161073990611e9e565b6060600b805461064190611fe5565b6060816116d05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116fa57806116e481612020565b91506116f39050600a83611f8e565b91506116d4565b60008167ffffffffffffffff81111561172357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561174d576020820181803683370190505b5090505b841561138757611762600183611fa2565b915061176f600a8661205b565b61177a906030611f76565b60f81b81838151811061179d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506117bf600a86611f8e565b9450611751565b6117d08383611906565b6117dd60008484846117f9565b61086f5760405162461bcd60e51b815260040161073990611e9e565b60006001600160a01b0384163b156118fb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061183d903390899088908890600401611e4e565b602060405180830381600087803b15801561185757600080fd5b505af1925050508015611887575060408051601f3d908101601f1916820190925261188491810190611d30565b60015b6118e1573d8080156118b5576040519150601f19603f3d011682016040523d82523d6000602084013e6118ba565b606091505b5080516118d95760405162461bcd60e51b815260040161073990611e9e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611387565b506001949350505050565b6001600160a01b03821661195c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610739565b6000818152600260205260409020546001600160a01b0316156119c15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610739565b6001600160a01b03821660009081526003602052604081208054600192906119ea908490611f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611a5490611fe5565b90600052602060002090601f016020900481019282611a765760008555611abc565b82601f10611a8f57805160ff1916838001178555611abc565b82800160010185558215611abc579182015b82811115611abc578251825591602001919060010190611aa1565b50611ac8929150611acc565b5090565b5b80821115611ac85760008155600101611acd565b600067ffffffffffffffff80841115611afc57611afc61209b565b604051601f8501601f19908116603f01168101908282118183101715611b2457611b2461209b565b81604052809350858152868686011115611b3d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611b68578081fd5b8135611110816120b1565b600060208284031215611b84578081fd5b8151611110816120b1565b60008060408385031215611ba1578081fd5b8235611bac816120b1565b91506020830135611bbc816120b1565b809150509250929050565b600080600060608486031215611bdb578081fd5b8335611be6816120b1565b92506020840135611bf6816120b1565b929592945050506040919091013590565b60008060008060808587031215611c1c578081fd5b8435611c27816120b1565b93506020850135611c37816120b1565b925060408501359150606085013567ffffffffffffffff811115611c59578182fd5b8501601f81018713611c69578182fd5b611c7887823560208401611ae1565b91505092959194509250565b60008060408385031215611c96578182fd5b8235611ca1816120b1565b91506020830135611bbc816120c6565b60008060408385031215611cc3578182fd5b8235611cce816120b1565b946020939093013593505050565b600060208284031215611ced578081fd5b8135611110816120c6565b600060208284031215611d09578081fd5b8151611110816120c6565b600060208284031215611d25578081fd5b8135611110816120d4565b600060208284031215611d41578081fd5b8151611110816120d4565b600060208284031215611d5d578081fd5b813567ffffffffffffffff811115611d73578182fd5b8201601f81018413611d83578182fd5b61138784823560208401611ae1565b600060208284031215611da3578081fd5b5035919050565b600060208284031215611dbb578081fd5b5051919050565b60008060808385031215611dd4578182fd5b8235915083608084011115611de7578081fd5b50926020919091019150565b60008151808452611e0b816020860160208601611fb9565b601f01601f19169290920160200192915050565b60008351611e31818460208801611fb9565b835190830190611e45818360208801611fb9565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e8190830184611df3565b9695505050505050565b6020815260006111106020830184611df3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611f8957611f8961206f565b500190565b600082611f9d57611f9d612085565b500490565b600082821015611fb457611fb461206f565b500390565b60005b83811015611fd4578181015183820152602001611fbc565b83811115610ff95750506000910152565b600181811c90821680611ff957607f821691505b6020821081141561201a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156120345761203461206f565b5060010190565b600060ff821660ff8114156120525761205261206f565b60010192915050565b60008261206a5761206a612085565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e5057600080fd5b8015158114610e5057600080fd5b6001600160e01b031981168114610e5057600080fdfea2646970667358221220a780dad451b69ba5bb849556096859e62a0c8eaca233a6534d8be3f8914494f164736f6c63430008040033697066733a2f2f6261667962656968646a673773633571716f35613735357574326c6171357161666e7668686a746a76616d3569797a6f6c616771776971366174792f6d657461646174612f0000000000000000000000008db687aceb92c66f013e1d614137238cc698fedb000000000000000000000000508d06b8f3a4b0fd363239ce61e0c4b0b82f3626000000000000000000000000b2723cd5c7e7e991472a9bd4d2d8bedf6e18ea55000000000000000000000000489b986011a3fde4297a3ed6b7e3cba71913aa920000000000000000000000000000000000000000000000000000000000000258

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c8063853828b6116100f7578063b88d4fde11610095578063e0a20ef511610064578063e0a20ef514610523578063e985e9c514610557578063f2fde38b146105a0578063f4a0a528146105c057600080fd5b8063b88d4fde146104a3578063c73d7c7b146104c3578063c87b56dd146104e3578063cf6e7c4e1461050357600080fd5b8063a035b1fe116100d1578063a035b1fe1461041a578063a22cb4651461042f578063a2d789c51461044f578063a878aee61461048357600080fd5b8063853828b6146103d25780638da5cb5b146103e757806395d89b411461040557600080fd5b806323d687c11161016f57806363a599a41161013e57806363a599a41461036d5780636817c76c1461038757806370a082311461039d578063715018a6146103bd57600080fd5b806323d687c1146102fa57806342842e0e1461030d57806355f804b31461032d5780636352211e1461034d57600080fd5b8063081812fc116101ab578063081812fc1461026b578063095ea7b3146102a357806318160ddd146102c557806323b872dd146102da57600080fd5b806301ffc9a7146101d257806305cf994b1461020757806306fdde0314610249575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611d14565b6105e0565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061023b7f000000000000000000000000000000000000000000000000000000000000025881565b6040519081526020016101fe565b34801561025557600080fd5b5061025e610632565b6040516101fe9190611e8b565b34801561027757600080fd5b5061028b610286366004611d92565b6106c4565b6040516001600160a01b0390911681526020016101fe565b3480156102af57600080fd5b506102c36102be366004611cb1565b61075e565b005b3480156102d157600080fd5b5061023b610874565b3480156102e657600080fd5b506102c36102f5366004611bc7565b610884565b6102c3610308366004611dc2565b6108b5565b34801561031957600080fd5b506102c3610328366004611bc7565b610c2a565b34801561033957600080fd5b506102c3610348366004611d4c565b610c45565b34801561035957600080fd5b5061028b610368366004611d92565b610ce3565b34801561037957600080fd5b506009546101f29060ff1681565b34801561039357600080fd5b5061023b600a5481565b3480156103a957600080fd5b5061023b6103b8366004611b57565b610d5a565b3480156103c957600080fd5b506102c3610de1565b3480156103de57600080fd5b506102c3610e17565b3480156103f357600080fd5b506006546001600160a01b031661028b565b34801561041157600080fd5b5061025e610e53565b34801561042657600080fd5b5061023b610e62565b34801561043b57600080fd5b506102c361044a366004611c84565b610e9f565b34801561045b57600080fd5b5061028b7f0000000000000000000000008db687aceb92c66f013e1d614137238cc698fedb81565b34801561048f57600080fd5b506102c361049e366004611b57565b610eaa565b3480156104af57600080fd5b506102c36104be366004611c07565b610fc7565b3480156104cf57600080fd5b506102c36104de366004611cdc565b610fff565b3480156104ef57600080fd5b5061025e6104fe366004611d92565b61103c565b34801561050f57600080fd5b506102c361051e366004611b57565b611117565b34801561052f57600080fd5b5061028b7f000000000000000000000000508d06b8f3a4b0fd363239ce61e0c4b0b82f362681565b34801561056357600080fd5b506101f2610572366004611b8f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105ac57600080fd5b506102c36105bb366004611b57565b611163565b3480156105cc57600080fd5b506102c36105db366004611d92565b6111fb565b60006001600160e01b031982166380ac58cd60e01b148061061157506001600160e01b03198216635b5e139f60e01b145b8061062c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461064190611fe5565b80601f016020809104026020016040519081016040528092919081815260200182805461066d90611fe5565b80156106ba5780601f1061068f576101008083540402835291602001916106ba565b820191906000526020600020905b81548152906001019060200180831161069d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061076982610ce3565b9050806001600160a01b0316836001600160a01b031614156107d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610739565b336001600160a01b03821614806107f357506107f38133610572565b6108655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610739565b61086f838361122a565b505050565b600061087f60085490565b905090565b61088e3382611298565b6108aa5760405162461bcd60e51b815260040161073990611f25565b61086f83838361138f565b600260075414156109085760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610739565b60026007556009548290829060ff16156109565760405162461bcd60e51b815260206004820152600f60248201526e456d657267656e63792053746f702160881b6044820152606401610739565b61095e610e62565b34146109ac5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610739565b6040516331a9108f60e11b81526004810183905233906001600160a01b037f0000000000000000000000008db687aceb92c66f013e1d614137238cc698fedb1690636352211e9060240160206040518083038186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a469190611b73565b6001600160a01b031614610a925760405162461bcd60e51b8152602060048201526013602482015272596f7520646f6e2774206f776e20746869732160681b6044820152606401610739565b60005b60038160ff161015610bd957337f000000000000000000000000508d06b8f3a4b0fd363239ce61e0c4b0b82f36266001600160a01b0316636352211e8460ff851660038110610af457634e487b7160e01b600052603260045260246000fd5b60200201356040518263ffffffff1660e01b8152600401610b1791815260200190565b60206040518083038186803b158015610b2f57600080fd5b505afa158015610b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b679190611b73565b6001600160a01b031614610bc75760405162461bcd60e51b815260206004820152602160248201527f596f7520646f6e2774206f776e20746865204c6f6f74204578706c6f726572736044820152602160f81b6064820152608401610739565b80610bd18161203b565b915050610a95565b50610be4338561152f565b610bf2600880546001019055565b604051849033907f06043e003cf55fc818c04d7fc646c10b7ccffcb3cf4d85e36258a55c8daded5b90600090a3505060016007555050565b61086f83838360405180602001604052806000815250610fc7565b600c546001600160a01b0316331480610c6857506006546001600160a01b031633145b610ccc5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c79206f776e6572206f72206d657461646174612075706461746572206360448201526e616e2073657420746f6b656e55524960881b6064820152608401610739565b8051610cdf90600b906020840190611a48565b5050565b6000818152600260205260408120546001600160a01b03168061062c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610739565b60006001600160a01b038216610dc55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610739565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610e0b5760405162461bcd60e51b815260040161073990611ef0565b610e156000611549565b565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610e50573d6000803e3d6000fd5b50565b60606001805461064190611fe5565b60007f0000000000000000000000000000000000000000000000000000000000000258610e8d610874565b10610e995750600a5490565b50600090565b610cdf33838361159b565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610eec57600080fd5b505afa158015610f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f249190611daa565b9050816001600160a01b031663a9059cbb610f476006546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b158015610f8f57600080fd5b505af1158015610fa3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086f9190611cf8565b610fd13383611298565b610fed5760405162461bcd60e51b815260040161073990611f25565b610ff98484848461166a565b50505050565b6006546001600160a01b031633146110295760405162461bcd60e51b815260040161073990611ef0565b6009805460ff1916911515919091179055565b6000818152600260205260409020546060906001600160a01b03166110bb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610739565b60006110c561169d565b905060008151116110e55760405180602001604052806000815250611110565b806110ef846116ac565b604051602001611100929190611e1f565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146111415760405162461bcd60e51b815260040161073990611ef0565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331461118d5760405162461bcd60e51b815260040161073990611ef0565b6001600160a01b0381166111f25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610739565b610e5081611549565b6006546001600160a01b031633146112255760405162461bcd60e51b815260040161073990611ef0565b600a55565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061125f82610ce3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166113115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610739565b600061131c83610ce3565b9050806001600160a01b0316846001600160a01b031614806113575750836001600160a01b031661134c846106c4565b6001600160a01b0316145b8061138757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166113a282610ce3565b6001600160a01b03161461140a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610739565b6001600160a01b03821661146c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610739565b61147760008261122a565b6001600160a01b03831660009081526003602052604081208054600192906114a0908490611fa2565b90915550506001600160a01b03821660009081526003602052604081208054600192906114ce908490611f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610cdf8282604051806020016040528060008152506117c6565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156115fd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610739565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61167584848461138f565b611681848484846117f9565b610ff95760405162461bcd60e51b815260040161073990611e9e565b6060600b805461064190611fe5565b6060816116d05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116fa57806116e481612020565b91506116f39050600a83611f8e565b91506116d4565b60008167ffffffffffffffff81111561172357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561174d576020820181803683370190505b5090505b841561138757611762600183611fa2565b915061176f600a8661205b565b61177a906030611f76565b60f81b81838151811061179d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506117bf600a86611f8e565b9450611751565b6117d08383611906565b6117dd60008484846117f9565b61086f5760405162461bcd60e51b815260040161073990611e9e565b60006001600160a01b0384163b156118fb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061183d903390899088908890600401611e4e565b602060405180830381600087803b15801561185757600080fd5b505af1925050508015611887575060408051601f3d908101601f1916820190925261188491810190611d30565b60015b6118e1573d8080156118b5576040519150601f19603f3d011682016040523d82523d6000602084013e6118ba565b606091505b5080516118d95760405162461bcd60e51b815260040161073990611e9e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611387565b506001949350505050565b6001600160a01b03821661195c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610739565b6000818152600260205260409020546001600160a01b0316156119c15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610739565b6001600160a01b03821660009081526003602052604081208054600192906119ea908490611f76565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611a5490611fe5565b90600052602060002090601f016020900481019282611a765760008555611abc565b82601f10611a8f57805160ff1916838001178555611abc565b82800160010185558215611abc579182015b82811115611abc578251825591602001919060010190611aa1565b50611ac8929150611acc565b5090565b5b80821115611ac85760008155600101611acd565b600067ffffffffffffffff80841115611afc57611afc61209b565b604051601f8501601f19908116603f01168101908282118183101715611b2457611b2461209b565b81604052809350858152868686011115611b3d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611b68578081fd5b8135611110816120b1565b600060208284031215611b84578081fd5b8151611110816120b1565b60008060408385031215611ba1578081fd5b8235611bac816120b1565b91506020830135611bbc816120b1565b809150509250929050565b600080600060608486031215611bdb578081fd5b8335611be6816120b1565b92506020840135611bf6816120b1565b929592945050506040919091013590565b60008060008060808587031215611c1c578081fd5b8435611c27816120b1565b93506020850135611c37816120b1565b925060408501359150606085013567ffffffffffffffff811115611c59578182fd5b8501601f81018713611c69578182fd5b611c7887823560208401611ae1565b91505092959194509250565b60008060408385031215611c96578182fd5b8235611ca1816120b1565b91506020830135611bbc816120c6565b60008060408385031215611cc3578182fd5b8235611cce816120b1565b946020939093013593505050565b600060208284031215611ced578081fd5b8135611110816120c6565b600060208284031215611d09578081fd5b8151611110816120c6565b600060208284031215611d25578081fd5b8135611110816120d4565b600060208284031215611d41578081fd5b8151611110816120d4565b600060208284031215611d5d578081fd5b813567ffffffffffffffff811115611d73578182fd5b8201601f81018413611d83578182fd5b61138784823560208401611ae1565b600060208284031215611da3578081fd5b5035919050565b600060208284031215611dbb578081fd5b5051919050565b60008060808385031215611dd4578182fd5b8235915083608084011115611de7578081fd5b50926020919091019150565b60008151808452611e0b816020860160208601611fb9565b601f01601f19169290920160200192915050565b60008351611e31818460208801611fb9565b835190830190611e45818360208801611fb9565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e8190830184611df3565b9695505050505050565b6020815260006111106020830184611df3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611f8957611f8961206f565b500190565b600082611f9d57611f9d612085565b500490565b600082821015611fb457611fb461206f565b500390565b60005b83811015611fd4578181015183820152602001611fbc565b83811115610ff95750506000910152565b600181811c90821680611ff957607f821691505b6020821081141561201a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156120345761203461206f565b5060010190565b600060ff821660ff8114156120525761205261206f565b60010192915050565b60008261206a5761206a612085565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e5057600080fd5b8015158114610e5057600080fd5b6001600160e01b031981168114610e5057600080fdfea2646970667358221220a780dad451b69ba5bb849556096859e62a0c8eaca233a6534d8be3f8914494f164736f6c63430008040033

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

0000000000000000000000008db687aceb92c66f013e1d614137238cc698fedb000000000000000000000000508d06b8f3a4b0fd363239ce61e0c4b0b82f3626000000000000000000000000b2723cd5c7e7e991472a9bd4d2d8bedf6e18ea55000000000000000000000000489b986011a3fde4297a3ed6b7e3cba71913aa920000000000000000000000000000000000000000000000000000000000000258

-----Decoded View---------------
Arg [0] : _gaAddress (address): 0x8dB687aCEb92c66f013e1D614137238Cc698fEdb
Arg [1] : _leAddress (address): 0x508d06B8f3A4B0Fd363239Ce61e0C4b0B82f3626
Arg [2] : _newOwner (address): 0xb2723cd5C7E7E991472A9bd4D2d8BeDF6e18EA55
Arg [3] : _metadataUpdaterAddress (address): 0x489B986011A3fde4297a3Ed6b7e3CbA71913AA92
Arg [4] : _freeGenesisExplorers (uint256): 600

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000008db687aceb92c66f013e1d614137238cc698fedb
Arg [1] : 000000000000000000000000508d06b8f3a4b0fd363239ce61e0c4b0b82f3626
Arg [2] : 000000000000000000000000b2723cd5c7e7e991472a9bd4d2d8bedf6e18ea55
Arg [3] : 000000000000000000000000489b986011a3fde4297a3ed6b7e3cba71913aa92
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000258


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.