ETH Price: $2,627.18 (-1.63%)

Token

ETHMap Zones (ZONES)
 

Overview

Max Total Supply

62 ZONES

Holders

41

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
og.vidpet.eth
Balance
2 ZONES
0x7bEf79f77C415Cec176a8157438404E2188699a8
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
ETHMapZones

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion, MIT license
File 1 of 19 : ETHMapZones.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Strings.sol";
import "./OpenSeaWhitelistERC721.sol";
import "./IEthMap.sol";


contract ETHMapZones is OpenSeaWhitelistERC721("ETHMap Zones", "ZONES") {
/** ==========  Constants  ========== */

  IEthMap public constant map = IEthMap(0xB6bbf89c3DbBa20Cb4d5cABAa4A386ACbbAb455e);
  address public immutable oldContract;

  string public baseTokenURI = "https://ethmap.world/";

/** ==========  Storage  ========== */

  mapping(uint256 => address) public pendingZoneOwners;

/** ==========  Constructor  ========== */

  constructor(address _oldContract) {
    oldContract = _oldContract;
  }

/** ==========  Queries  ========== */

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

  function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
    return string(abi.encodePacked(baseTokenURI, Strings.toString(_tokenId)));
  }

  function canWrapZone(uint256 id) public view returns (bool) {
    return pendingZoneOwners[id] == _msgSender() && zoneOwner(id) == address(this);
  }

  function zoneOwner(uint256 zoneId) internal view returns (address owner) {
    (,owner,) = map.getZone(zoneId);
  }

/** ==========  Actions  ========== */

  function _wrap(uint256 zoneId) internal {
    (,address owner, uint256 sellPrice) = map.getZone(zoneId);
    require(owner == address(this), "ETHMapZones: Contract has not received zone.");
    pendingZoneOwners[zoneId] = address(0);
    if (sellPrice > 0) {
      map.sellZone(zoneId, 0);
    }
    _mint(_msgSender(), zoneId);
  }

  function migrate(uint256 zoneId) external {
    IERC721(oldContract).transferFrom(_msgSender(), address(this), zoneId);
    ETHMapZones(oldContract).unwrapZone(zoneId);
    _wrap(zoneId);
  }

  function setBaseURI(string memory baseURI) external onlyOwner {
    baseTokenURI = baseURI;
  }

  function prepareToWrapZone(uint256 zoneId) external {
    require(zoneOwner(zoneId) == _msgSender(), "ETHMapZones: caller is not zone owner.");
    pendingZoneOwners[zoneId] = _msgSender();
  }

  function wrapZone(uint256 zoneId) external {
    require(pendingZoneOwners[zoneId] == _msgSender(), "ETHMapZones: Zone not prepared for wrap.");
    _wrap(zoneId);
  }

  function unwrapZone(uint256 zoneId) external {
    require(_isApprovedOrOwner(_msgSender(), zoneId), "ETHMapZones: caller is not owner nor approved.");
    _burn(zoneId);
    map.transferZone(zoneId, _msgSender());
  }

  function claimUnpreparedZone(uint256 zoneId) external onlyOwner {
    require(pendingZoneOwners[zoneId] == address(0), "ETHMapZones: Zone prepared for wrap.");
    require(!_exists(zoneId), "ETHMapZones: Zone already wrapped.");
    _wrap(zoneId);
  }
}

File 2 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.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 4 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

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 5 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 6 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 8 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 9 of 19 : Address.sol
// SPDX-License-Identifier: MIT

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 10 of 19 : Context.sol
// SPDX-License-Identifier: MIT

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 11 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

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 12 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

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 13 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 14 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 15 of 19 : IEthMap.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.0;


interface IEthMap {
  function buyZone(uint zoneId) external payable returns (bool success);
  function sellZone(uint zoneId, uint amount) external returns (bool success);
  function transferZone(uint zoneId, address recipient) external returns (bool success);
  function computeInitialPrice(uint zoneId) external view returns (uint price);
  function getZone(uint zoneId) external view returns (uint id, address owner, uint sellPrice);
  function getBalance() external view returns (uint amount);
  function withdraw() external returns (bool success);
  function transferContractOwnership(address newOwner) external returns (bool success);
}

File 16 of 19 : OpenSeaWhitelistERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./meta-transactions/ContextMixin.sol";
import "./meta-transactions/NativeMetaTransaction.sol";


contract OwnableDelegateProxy {}

contract ProxyRegistry {
  mapping(address => OwnableDelegateProxy) public proxies;
}

contract OpenSeaWhitelistERC721 is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable() {
  address public constant proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;

  constructor(string memory name_, string memory symbol_)
    ERC721(name_, symbol_)
    NativeMetaTransaction(name_)
    {}

  /**
   * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
   */
  function isApprovedForAll(address owner, address operator) public view override returns (bool) {
    // Whitelist OpenSea proxy contract for easy trading.
    ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    if (address(proxyRegistry.proxies(owner)) == operator) {
      return true;
    }

    return super.isApprovedForAll(owner, operator);
  }

  /**
   * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
   */
  function _msgSender() internal view override returns (address) {
    return ContextMixin.msgSender();
  }
}

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


abstract contract ContextMixin {
  function msgSender() internal view returns (address payable sender) {
    if (msg.sender == address(this)) {
      bytes memory array = msg.data;
      uint256 index = msg.data.length;
      assembly {
        // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
        sender := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)
      }
    } else {
      sender = payable(msg.sender);
    }
    return sender;
  }
}

File 18 of 19 : EIP712Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


contract EIP712Base {
  struct EIP712Domain {
    string name;
    string version;
    address verifyingContract;
    bytes32 salt;
  }

  string public constant ERC712_VERSION = "1";

  bytes32 internal constant EIP712_DOMAIN_TYPEHASH =
    keccak256(bytes("EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"));

  bytes32 internal immutable domainSeperator;

  constructor(string memory name) {
    domainSeperator = keccak256(
      abi.encode(
        EIP712_DOMAIN_TYPEHASH,
        keccak256(bytes(name)),
        keccak256(bytes(ERC712_VERSION)),
        address(this),
        bytes32(getChainId())
      )
    );
  }

  function getDomainSeperator() public view returns (bytes32) {
    return domainSeperator;
  }

  function getChainId() public view returns (uint256) {
    uint256 id;
    assembly { id := chainid() }
    return id;
  }

  /**
   * Accept message hash and returns hash message in EIP712 compatible form
   * So that it can be used to recover signer from signature signed using EIP712 formatted data
   * https://eips.ethereum.org/EIPS/eip-712
   * "\\x19" makes the encoding deterministic
   * "\\x01" is the version byte to make it compatible to EIP-191
   */
  function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) {
    return keccak256(abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash));
  }
}

File 19 of 19 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
  using SafeMath for uint256;
  bytes32 private constant META_TRANSACTION_TYPEHASH =
    keccak256(bytes("MetaTransaction(uint256 nonce,address from,bytes functionSignature)"));
  event MetaTransactionExecuted(address userAddress, address payable relayerAddress, bytes functionSignature);
  mapping(address => uint256) public nonces;

  /*
   * Meta transaction structure.
   * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
   * He should call the desired function directly in that case.
   */
  struct MetaTransaction {
    uint256 nonce;
    address from;
    bytes functionSignature;
  }

  constructor(string memory name) EIP712Base(name) {}

  function executeMetaTransaction(
    address userAddress,
    bytes memory functionSignature,
    bytes32 sigR,
    bytes32 sigS,
    uint8 sigV
  ) public payable returns (bytes memory) {
    MetaTransaction memory metaTx = MetaTransaction({
      nonce: nonces[userAddress],
      from: userAddress,
      functionSignature: functionSignature
    });

    require(verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match");

    // increase nonce for user (to avoid re-use)
    nonces[userAddress] = nonces[userAddress].add(1);

    emit MetaTransactionExecuted(userAddress, payable(msg.sender), functionSignature);

    // Append userAddress and relayer address at the end to extract it from calling context
    (bool success, bytes memory returnData) = address(this).call(abi.encodePacked(functionSignature, userAddress));
    require(success, "Function call not successful");
    return returnData;
  }

  function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) {
    return
      keccak256(abi.encode(META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature)));
  }

  function getNonce(address user) public view returns (uint256 nonce) {
    nonce = nonces[user];
  }

  function verify(
    address signer,
    MetaTransaction memory metaTx,
    bytes32 sigR,
    bytes32 sigS,
    uint8 sigV
  ) internal view returns (bool) {
    require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
    return signer == ecrecover(toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS);
  }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_oldContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"canWrapZone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"zoneId","type":"uint256"}],"name":"claimUnpreparedZone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"map","outputs":[{"internalType":"contract IEthMap","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"zoneId","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pendingZoneOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"zoneId","type":"uint256"}],"name":"prepareToWrapZone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"zoneId","type":"uint256"}],"name":"unwrapZone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"zoneId","type":"uint256"}],"name":"wrapZone","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610100604052601560c08190527f68747470733a2f2f6574686d61702e776f726c642f000000000000000000000060e09081526200004191600c919062000296565b503480156200004f57600080fd5b506040516200351c3803806200351c83398101604081905262000072916200033c565b6040518060400160405280600c81526020016b4554484d6170205a6f6e657360a01b815250604051806040016040528060058152602001645a4f4e455360d81b815250818083838160009080519060200190620000d192919062000296565b508051620000e790600190602084019062000296565b5050506040518060800160405280604f8152602001620034cd604f913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6304660408051602081019690965285019390935260608401919091526001600160a01b0316608083015260a082015260c00160408051601f19818403018152919052805160209091012060805250620001b19050620001ab620001c9565b620001e5565b505060601b6001600160601b03191660a052620003ab565b6000620001e06200023760201b620019b51760201c565b905090565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000333014156200029057600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620002939050565b50335b90565b828054620002a4906200036e565b90600052602060002090601f016020900481019282620002c8576000855562000313565b82601f10620002e357805160ff191683800117855562000313565b8280016001018555821562000313579182015b8281111562000313578251825591602001919060010190620002f6565b506200032192915062000325565b5090565b5b8082111562000321576000815560010162000326565b6000602082840312156200034f57600080fd5b81516001600160a01b03811681146200036757600080fd5b9392505050565b600181811c908216806200038357607f821691505b60208210811415620003a557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160601c6130e4620003e96000396000818161047a01528181610f330152610fe20152600081816103ce01526124c001526130e46000f3fe60806040526004361061026a5760003560e01c80635164dd4a116101535780638da5cb5b116100cb578063c87b56dd1161007f578063d547cfb711610064578063d547cfb71461072a578063e985e9c51461073f578063f2fde38b1461075f57600080fd5b8063c87b56dd146106e2578063cd7c03261461070257600080fd5b8063a22cb465116100b0578063a22cb4651461067a578063b88d4fde1461069a578063c7581184146106ba57600080fd5b80638da5cb5b1461064757806395d89b411461066557600080fd5b80636ac3fbc311610122578063715018a611610107578063715018a6146105e55780637774ce08146105fa5780637ecebe001461061a57600080fd5b80636ac3fbc3146105a557806370a08231146105c557600080fd5b80635164dd4a1461050f57806355f804b31461052f5780635cd0ff411461054f5780636352211e1461058557600080fd5b806320379ee5116101e657806330503c4e116101b557806342842e0e1161019a57806342842e0e146104af578063454b0608146104cf5780634f6ccce7146104ef57600080fd5b806330503c4e146104685780633408e4701461049c57600080fd5b806320379ee5146103bf57806323b872dd146103f25780632d0335ab146104125780632f745c591461044857600080fd5b8063095ea7b31161023d5780630f7e5970116102225780630f7e597014610353578063172e56ed1461038057806318160ddd146103a057600080fd5b8063095ea7b3146103205780630c53c51c1461034057600080fd5b806301ffc9a71461026f57806302bd4ee1146102a457806306fdde03146102c6578063081812fc146102e8575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612c65565b61077f565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102c46102bf366004612d05565b6107aa565b005b3480156102d257600080fd5b506102db6108e1565b60405161029b9190612f01565b3480156102f457600080fd5b50610308610303366004612d05565b610973565b6040516001600160a01b03909116815260200161029b565b34801561032c57600080fd5b506102c461033b366004612c1c565b610a08565b6102db61034e366004612b9e565b610b30565b34801561035f57600080fd5b506102db604051806040016040528060018152602001603160f81b81525081565b34801561038c57600080fd5b506102c461039b366004612d05565b610d1a565b3480156103ac57600080fd5b506008545b60405190815260200161029b565b3480156103cb57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103b1565b3480156103fe57600080fd5b506102c461040d366004612ac3565b610de6565b34801561041e57600080fd5b506103b161042d366004612a6d565b6001600160a01b03166000908152600a602052604090205490565b34801561045457600080fd5b506103b1610463366004612c1c565b610e6e565b34801561047457600080fd5b506103087f000000000000000000000000000000000000000000000000000000000000000081565b3480156104a857600080fd5b50466103b1565b3480156104bb57600080fd5b506102c46104ca366004612ac3565b610f16565b3480156104db57600080fd5b506102c46104ea366004612d05565b610f31565b3480156104fb57600080fd5b506103b161050a366004612d05565b611054565b34801561051b57600080fd5b506102c461052a366004612d05565b6110f8565b34801561053b57600080fd5b506102c461054a366004612cbc565b61125b565b34801561055b57600080fd5b5061030861056a366004612d05565b600d602052600090815260409020546001600160a01b031681565b34801561059157600080fd5b506103086105a0366004612d05565b6112e7565b3480156105b157600080fd5b506102c46105c0366004612d05565b611372565b3480156105d157600080fd5b506103b16105e0366004612a6d565b611409565b3480156105f157600080fd5b506102c46114a3565b34801561060657600080fd5b5061028f610615366004612d05565b611528565b34801561062657600080fd5b506103b1610635366004612a6d565b600a6020526000908152604090205481565b34801561065357600080fd5b50600b546001600160a01b0316610308565b34801561067157600080fd5b506102db611570565b34801561068657600080fd5b506102c4610695366004612b70565b61157f565b3480156106a657600080fd5b506102c46106b5366004612b04565b611681565b3480156106c657600080fd5b5061030873b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e81565b3480156106ee57600080fd5b506102db6106fd366004612d05565b611716565b34801561070e57600080fd5b5061030873a5409ec958c83c3f309868babaca7c86dcb077c181565b34801561073657600080fd5b506102db61174a565b34801561074b57600080fd5b5061028f61075a366004612a8a565b6117d8565b34801561076b57600080fd5b506102c461077a366004612a6d565b6118b7565b60006001600160e01b0319821663780e9d6360e01b14806107a457506107a482611a12565b92915050565b6107bb6107b5611a62565b82611a71565b6108325760405162461bcd60e51b815260206004820152602e60248201527f4554484d61705a6f6e65733a2063616c6c6572206973206e6f74206f776e657260448201527f206e6f7220617070726f7665642e00000000000000000000000000000000000060648201526084015b60405180910390fd5b61083b81611b40565b73b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e6388806b378261085e611a62565b6040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b1580156108a557600080fd5b505af11580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd9190612c48565b5050565b6060600080546108f090612f83565b80601f016020809104026020016040519081016040528092919081815260200182805461091c90612f83565b80156109695780601f1061093e57610100808354040283529160200191610969565b820191906000526020600020905b81548152906001019060200180831161094c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109ec5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610829565b506000908152600460205260409020546001600160a01b031690565b6000610a13826112e7565b9050806001600160a01b0316836001600160a01b03161415610a815760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610829565b806001600160a01b0316610a93611a62565b6001600160a01b03161480610aaf5750610aaf8161075a611a62565b610b215760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610829565b610b2b8383611be7565b505050565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610b6e8782878787611c55565b610bc45760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610829565b6001600160a01b0387166000908152600a6020526040902054610be8906001611d5d565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610c3890899033908a90612e99565b60405180910390a1600080306001600160a01b0316888a604051602001610c60929190612dbb565b60408051601f1981840301815290829052610c7a91612d9f565b6000604051808303816000865af19150503d8060008114610cb7576040519150601f19603f3d011682016040523d82523d6000602084013e610cbc565b606091505b509150915081610d0e5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610829565b98975050505050505050565b610d22611a62565b6001600160a01b0316610d3482611d70565b6001600160a01b031614610db05760405162461bcd60e51b815260206004820152602660248201527f4554484d61705a6f6e65733a2063616c6c6572206973206e6f74207a6f6e652060448201527f6f776e65722e00000000000000000000000000000000000000000000000000006064820152608401610829565b610db8611a62565b6000918252600d602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b610df16107b5611a62565b610e635760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610829565b610b2b838383611dfe565b6000610e7983611409565b8210610eed5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610829565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610b2b83838360405180602001604052806000815250611681565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd610f68611a62565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b158015610fb657600080fd5b505af1158015610fca573d6000803e3d6000fd5b50506040516302bd4ee160e01b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506302bd4ee19150602401600060405180830381600087803b15801561103057600080fd5b505af1158015611044573d6000803e3d6000fd5b5050505061105181611fbd565b50565b600061105f60085490565b82106110d35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610829565b600882815481106110e6576110e661302f565b90600052602060002001549050919050565b611100611a62565b6001600160a01b031661111b600b546001600160a01b031690565b6001600160a01b0316146111715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b6000818152600d60205260409020546001600160a01b0316156111e25760405162461bcd60e51b8152602060048201526024808201527f4554484d61705a6f6e65733a205a6f6e6520707265706172656420666f7220776044820152633930b81760e11b6064820152608401610829565b6000818152600260205260409020546001600160a01b0316156112525760405162461bcd60e51b815260206004820152602260248201527f4554484d61705a6f6e65733a205a6f6e6520616c726561647920777261707065604482015261321760f11b6064820152608401610829565b61105181611fbd565b611263611a62565b6001600160a01b031661127e600b546001600160a01b031690565b6001600160a01b0316146112d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b80516108dd90600c90602084019061293e565b6000818152600260205260408120546001600160a01b0316806107a45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610829565b61137a611a62565b6000828152600d60205260409020546001600160a01b039081169116146112525760405162461bcd60e51b815260206004820152602860248201527f4554484d61705a6f6e65733a205a6f6e65206e6f74207072657061726564206660448201527f6f7220777261702e0000000000000000000000000000000000000000000000006064820152608401610829565b60006001600160a01b0382166114875760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610829565b506001600160a01b031660009081526003602052604090205490565b6114ab611a62565b6001600160a01b03166114c6600b546001600160a01b031690565b6001600160a01b03161461151c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b611526600061218a565b565b6000611532611a62565b6000838152600d60205260409020546001600160a01b0390811691161480156107a457503061156083611d70565b6001600160a01b03161492915050565b6060600180546108f090612f83565b611587611a62565b6001600160a01b0316826001600160a01b031614156115e85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610829565b80600560006115f5611a62565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611639611a62565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611675911515815260200190565b60405180910390a35050565b61169261168c611a62565b83611a71565b6117045760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610829565b611710848484846121dc565b50505050565b6060600c61172383612265565b604051602001611734929190612df2565b6040516020818303038152906040529050919050565b600c805461175790612f83565b80601f016020809104026020016040519081016040528092919081815260200182805461178390612f83565b80156117d05780601f106117a5576101008083540402835291602001916117d0565b820191906000526020600020905b8154815290600101906020018083116117b357829003601f168201915b505050505081565b60405163c455279160e01b81526001600160a01b03838116600483015260009173a5409ec958c83c3f309868babaca7c86dcb077c191841690829063c45527919060240160206040518083038186803b15801561183457600080fd5b505afa158015611848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186c9190612c9f565b6001600160a01b031614156118855760019150506107a4565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6118bf611a62565b6001600160a01b03166118da600b546001600160a01b031690565b6001600160a01b0316146119305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b6001600160a01b0381166119ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610829565b6110518161218a565b600033301415611a0c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150611a0f9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b1480611a4357506001600160e01b03198216635b5e139f60e01b145b806107a457506301ffc9a760e01b6001600160e01b03198316146107a4565b6000611a6c6119b5565b905090565b6000818152600260205260408120546001600160a01b0316611aea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610829565b6000611af5836112e7565b9050806001600160a01b0316846001600160a01b03161480611b305750836001600160a01b0316611b2584610973565b6001600160a01b0316145b806118af57506118af81856117d8565b6000611b4b826112e7565b9050611b598160008461237b565b611b64600083611be7565b6001600160a01b0381166000908152600360205260408120805460019290611b8d908490612f40565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c1c826112e7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616611cd35760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610829565b6001611ce6611ce187612433565b6124b0565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611d34573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000611d698284612f14565b9392505050565b6040516311ee0ec560e01b81526004810182905260009073b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e906311ee0ec59060240160606040518083038186803b158015611dbe57600080fd5b505afa158015611dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df69190612d1e565b509392505050565b826001600160a01b0316611e11826112e7565b6001600160a01b031614611e8d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610829565b6001600160a01b038216611eef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610829565b611efa83838361237b565b611f05600082611be7565b6001600160a01b0383166000908152600360205260408120805460019290611f2e908490612f40565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f5c908490612f14565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516311ee0ec560e01b815260048101829052600090819073b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e906311ee0ec59060240160606040518083038186803b15801561200d57600080fd5b505afa158015612021573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120459190612d1e565b9093509150506001600160a01b03821630146120c95760405162461bcd60e51b815260206004820152602c60248201527f4554484d61705a6f6e65733a20436f6e747261637420686173206e6f7420726560448201527f636569766564207a6f6e652e00000000000000000000000000000000000000006064820152608401610829565b6000838152600d6020526040902080546001600160a01b03191690558015612179576040516305674f0960e21b8152600481018490526000602482015273b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e9063159d3c2490604401602060405180830381600087803b15801561213f57600080fd5b505af1158015612153573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121779190612c48565b505b610b2b612184611a62565b846124f6565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121e7848484611dfe565b6121f384848484612644565b6117105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610829565b6060816122895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122b3578061229d81612fbe565b91506122ac9050600a83612f2c565b915061228d565b60008167ffffffffffffffff8111156122ce576122ce613045565b6040519080825280601f01601f1916602001820160405280156122f8576020820181803683370190505b5090505b84156118af5761230d600183612f40565b915061231a600a86612fd9565b612325906030612f14565b60f81b81838151811061233a5761233a61302f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612374600a86612f2c565b94506122fc565b6001600160a01b0383166123d6576123d181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6123f9565b816001600160a01b0316836001600160a01b0316146123f9576123f983826127ae565b6001600160a01b03821661241057610b2b8161284b565b826001600160a01b0316826001600160a01b031614610b2b57610b2b82826128fa565b60006040518060800160405280604381526020016130956043913980516020918201208351848301516040808701518051908601209051612493950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60405161190160f01b60208201527f0000000000000000000000000000000000000000000000000000000000000000602282015260428101829052600090606201612493565b6001600160a01b03821661254c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610829565b6000818152600260205260409020546001600160a01b0316156125b15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610829565b6125bd6000838361237b565b6001600160a01b03821660009081526003602052604081208054600192906125e6908490612f14565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156127a357836001600160a01b031663150b7a0261266d611a62565b8786866040518563ffffffff1660e01b815260040161268f9493929190612ec5565b602060405180830381600087803b1580156126a957600080fd5b505af19250505080156126d9575060408051601f3d908101601f191682019092526126d691810190612c82565b60015b612789573d808015612707576040519150601f19603f3d011682016040523d82523d6000602084013e61270c565b606091505b5080516127815760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610829565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118af565b506001949350505050565b600060016127bb84611409565b6127c59190612f40565b600083815260076020526040902054909150808214612818576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061285d90600190612f40565b600083815260096020526040812054600880549394509092849081106128855761288561302f565b9060005260206000200154905080600883815481106128a6576128a661302f565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806128de576128de613019565b6001900381819060005260206000200160009055905550505050565b600061290583611409565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461294a90612f83565b90600052602060002090601f01602090048101928261296c57600085556129b2565b82601f1061298557805160ff19168380011785556129b2565b828001600101855582156129b2579182015b828111156129b2578251825591602001919060010190612997565b506129be9291506129c2565b5090565b5b808211156129be57600081556001016129c3565b600067ffffffffffffffff808411156129f2576129f2613045565b604051601f8501601f19908116603f01168101908282118183101715612a1a57612a1a613045565b81604052809350858152868686011115612a3357600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612a5e57600080fd5b611d69838335602085016129d7565b600060208284031215612a7f57600080fd5b8135611d698161305b565b60008060408385031215612a9d57600080fd5b8235612aa88161305b565b91506020830135612ab88161305b565b809150509250929050565b600080600060608486031215612ad857600080fd5b8335612ae38161305b565b92506020840135612af38161305b565b929592945050506040919091013590565b60008060008060808587031215612b1a57600080fd5b8435612b258161305b565b93506020850135612b358161305b565b925060408501359150606085013567ffffffffffffffff811115612b5857600080fd5b612b6487828801612a4d565b91505092959194509250565b60008060408385031215612b8357600080fd5b8235612b8e8161305b565b91506020830135612ab881613070565b600080600080600060a08688031215612bb657600080fd5b8535612bc18161305b565b9450602086013567ffffffffffffffff811115612bdd57600080fd5b612be988828901612a4d565b9450506040860135925060608601359150608086013560ff81168114612c0e57600080fd5b809150509295509295909350565b60008060408385031215612c2f57600080fd5b8235612c3a8161305b565b946020939093013593505050565b600060208284031215612c5a57600080fd5b8151611d6981613070565b600060208284031215612c7757600080fd5b8135611d698161307e565b600060208284031215612c9457600080fd5b8151611d698161307e565b600060208284031215612cb157600080fd5b8151611d698161305b565b600060208284031215612cce57600080fd5b813567ffffffffffffffff811115612ce557600080fd5b8201601f81018413612cf657600080fd5b6118af848235602084016129d7565b600060208284031215612d1757600080fd5b5035919050565b600080600060608486031215612d3357600080fd5b835192506020840151612d458161305b565b80925050604084015190509250925092565b60008151808452612d6f816020860160208601612f57565b601f01601f19169290920160200192915050565b60008151612d95818560208601612f57565b9290920192915050565b60008251612db1818460208701612f57565b9190910192915050565b60008351612dcd818460208801612f57565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845481600182811c915080831680612e0e57607f831692505b6020808410821415612e2e57634e487b7160e01b86526022600452602486fd5b818015612e425760018114612e5357612e80565b60ff19861689528489019650612e80565b60008b81526020902060005b86811015612e785781548b820152908501908301612e5f565b505084890196505b505050505050612e908185612d83565b95945050505050565b60006001600160a01b03808616835280851660208401525060606040830152612e906060830184612d57565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ef76080830184612d57565b9695505050505050565b602081526000611d696020830184612d57565b60008219821115612f2757612f27612fed565b500190565b600082612f3b57612f3b613003565b500490565b600082821015612f5257612f52612fed565b500390565b60005b83811015612f72578181015183820152602001612f5a565b838111156117105750506000910152565b600181811c90821680612f9757607f821691505b60208210811415612fb857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612fd257612fd2612fed565b5060010190565b600082612fe857612fe8613003565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461105157600080fd5b801515811461105157600080fd5b6001600160e01b03198116811461105157600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a164736f6c6343000807000a454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74290000000000000000000000007372d7fb769470ff57019404cbf6bc6515e39090

Deployed Bytecode

0x60806040526004361061026a5760003560e01c80635164dd4a116101535780638da5cb5b116100cb578063c87b56dd1161007f578063d547cfb711610064578063d547cfb71461072a578063e985e9c51461073f578063f2fde38b1461075f57600080fd5b8063c87b56dd146106e2578063cd7c03261461070257600080fd5b8063a22cb465116100b0578063a22cb4651461067a578063b88d4fde1461069a578063c7581184146106ba57600080fd5b80638da5cb5b1461064757806395d89b411461066557600080fd5b80636ac3fbc311610122578063715018a611610107578063715018a6146105e55780637774ce08146105fa5780637ecebe001461061a57600080fd5b80636ac3fbc3146105a557806370a08231146105c557600080fd5b80635164dd4a1461050f57806355f804b31461052f5780635cd0ff411461054f5780636352211e1461058557600080fd5b806320379ee5116101e657806330503c4e116101b557806342842e0e1161019a57806342842e0e146104af578063454b0608146104cf5780634f6ccce7146104ef57600080fd5b806330503c4e146104685780633408e4701461049c57600080fd5b806320379ee5146103bf57806323b872dd146103f25780632d0335ab146104125780632f745c591461044857600080fd5b8063095ea7b31161023d5780630f7e5970116102225780630f7e597014610353578063172e56ed1461038057806318160ddd146103a057600080fd5b8063095ea7b3146103205780630c53c51c1461034057600080fd5b806301ffc9a71461026f57806302bd4ee1146102a457806306fdde03146102c6578063081812fc146102e8575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612c65565b61077f565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102c46102bf366004612d05565b6107aa565b005b3480156102d257600080fd5b506102db6108e1565b60405161029b9190612f01565b3480156102f457600080fd5b50610308610303366004612d05565b610973565b6040516001600160a01b03909116815260200161029b565b34801561032c57600080fd5b506102c461033b366004612c1c565b610a08565b6102db61034e366004612b9e565b610b30565b34801561035f57600080fd5b506102db604051806040016040528060018152602001603160f81b81525081565b34801561038c57600080fd5b506102c461039b366004612d05565b610d1a565b3480156103ac57600080fd5b506008545b60405190815260200161029b565b3480156103cb57600080fd5b507ff02b63205c69de763c13db152c8e5acb18cfe2c142b90be024888451c55f33f06103b1565b3480156103fe57600080fd5b506102c461040d366004612ac3565b610de6565b34801561041e57600080fd5b506103b161042d366004612a6d565b6001600160a01b03166000908152600a602052604090205490565b34801561045457600080fd5b506103b1610463366004612c1c565b610e6e565b34801561047457600080fd5b506103087f0000000000000000000000007372d7fb769470ff57019404cbf6bc6515e3909081565b3480156104a857600080fd5b50466103b1565b3480156104bb57600080fd5b506102c46104ca366004612ac3565b610f16565b3480156104db57600080fd5b506102c46104ea366004612d05565b610f31565b3480156104fb57600080fd5b506103b161050a366004612d05565b611054565b34801561051b57600080fd5b506102c461052a366004612d05565b6110f8565b34801561053b57600080fd5b506102c461054a366004612cbc565b61125b565b34801561055b57600080fd5b5061030861056a366004612d05565b600d602052600090815260409020546001600160a01b031681565b34801561059157600080fd5b506103086105a0366004612d05565b6112e7565b3480156105b157600080fd5b506102c46105c0366004612d05565b611372565b3480156105d157600080fd5b506103b16105e0366004612a6d565b611409565b3480156105f157600080fd5b506102c46114a3565b34801561060657600080fd5b5061028f610615366004612d05565b611528565b34801561062657600080fd5b506103b1610635366004612a6d565b600a6020526000908152604090205481565b34801561065357600080fd5b50600b546001600160a01b0316610308565b34801561067157600080fd5b506102db611570565b34801561068657600080fd5b506102c4610695366004612b70565b61157f565b3480156106a657600080fd5b506102c46106b5366004612b04565b611681565b3480156106c657600080fd5b5061030873b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e81565b3480156106ee57600080fd5b506102db6106fd366004612d05565b611716565b34801561070e57600080fd5b5061030873a5409ec958c83c3f309868babaca7c86dcb077c181565b34801561073657600080fd5b506102db61174a565b34801561074b57600080fd5b5061028f61075a366004612a8a565b6117d8565b34801561076b57600080fd5b506102c461077a366004612a6d565b6118b7565b60006001600160e01b0319821663780e9d6360e01b14806107a457506107a482611a12565b92915050565b6107bb6107b5611a62565b82611a71565b6108325760405162461bcd60e51b815260206004820152602e60248201527f4554484d61705a6f6e65733a2063616c6c6572206973206e6f74206f776e657260448201527f206e6f7220617070726f7665642e00000000000000000000000000000000000060648201526084015b60405180910390fd5b61083b81611b40565b73b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e6388806b378261085e611a62565b6040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401602060405180830381600087803b1580156108a557600080fd5b505af11580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd9190612c48565b5050565b6060600080546108f090612f83565b80601f016020809104026020016040519081016040528092919081815260200182805461091c90612f83565b80156109695780601f1061093e57610100808354040283529160200191610969565b820191906000526020600020905b81548152906001019060200180831161094c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109ec5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610829565b506000908152600460205260409020546001600160a01b031690565b6000610a13826112e7565b9050806001600160a01b0316836001600160a01b03161415610a815760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610829565b806001600160a01b0316610a93611a62565b6001600160a01b03161480610aaf5750610aaf8161075a611a62565b610b215760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610829565b610b2b8383611be7565b505050565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610b6e8782878787611c55565b610bc45760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610829565b6001600160a01b0387166000908152600a6020526040902054610be8906001611d5d565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610c3890899033908a90612e99565b60405180910390a1600080306001600160a01b0316888a604051602001610c60929190612dbb565b60408051601f1981840301815290829052610c7a91612d9f565b6000604051808303816000865af19150503d8060008114610cb7576040519150601f19603f3d011682016040523d82523d6000602084013e610cbc565b606091505b509150915081610d0e5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610829565b98975050505050505050565b610d22611a62565b6001600160a01b0316610d3482611d70565b6001600160a01b031614610db05760405162461bcd60e51b815260206004820152602660248201527f4554484d61705a6f6e65733a2063616c6c6572206973206e6f74207a6f6e652060448201527f6f776e65722e00000000000000000000000000000000000000000000000000006064820152608401610829565b610db8611a62565b6000918252600d602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b610df16107b5611a62565b610e635760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610829565b610b2b838383611dfe565b6000610e7983611409565b8210610eed5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610829565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610b2b83838360405180602001604052806000815250611681565b7f0000000000000000000000007372d7fb769470ff57019404cbf6bc6515e390906001600160a01b03166323b872dd610f68611a62565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401600060405180830381600087803b158015610fb657600080fd5b505af1158015610fca573d6000803e3d6000fd5b50506040516302bd4ee160e01b8152600481018490527f0000000000000000000000007372d7fb769470ff57019404cbf6bc6515e390906001600160a01b031692506302bd4ee19150602401600060405180830381600087803b15801561103057600080fd5b505af1158015611044573d6000803e3d6000fd5b5050505061105181611fbd565b50565b600061105f60085490565b82106110d35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610829565b600882815481106110e6576110e661302f565b90600052602060002001549050919050565b611100611a62565b6001600160a01b031661111b600b546001600160a01b031690565b6001600160a01b0316146111715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b6000818152600d60205260409020546001600160a01b0316156111e25760405162461bcd60e51b8152602060048201526024808201527f4554484d61705a6f6e65733a205a6f6e6520707265706172656420666f7220776044820152633930b81760e11b6064820152608401610829565b6000818152600260205260409020546001600160a01b0316156112525760405162461bcd60e51b815260206004820152602260248201527f4554484d61705a6f6e65733a205a6f6e6520616c726561647920777261707065604482015261321760f11b6064820152608401610829565b61105181611fbd565b611263611a62565b6001600160a01b031661127e600b546001600160a01b031690565b6001600160a01b0316146112d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b80516108dd90600c90602084019061293e565b6000818152600260205260408120546001600160a01b0316806107a45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610829565b61137a611a62565b6000828152600d60205260409020546001600160a01b039081169116146112525760405162461bcd60e51b815260206004820152602860248201527f4554484d61705a6f6e65733a205a6f6e65206e6f74207072657061726564206660448201527f6f7220777261702e0000000000000000000000000000000000000000000000006064820152608401610829565b60006001600160a01b0382166114875760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610829565b506001600160a01b031660009081526003602052604090205490565b6114ab611a62565b6001600160a01b03166114c6600b546001600160a01b031690565b6001600160a01b03161461151c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b611526600061218a565b565b6000611532611a62565b6000838152600d60205260409020546001600160a01b0390811691161480156107a457503061156083611d70565b6001600160a01b03161492915050565b6060600180546108f090612f83565b611587611a62565b6001600160a01b0316826001600160a01b031614156115e85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610829565b80600560006115f5611a62565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611639611a62565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611675911515815260200190565b60405180910390a35050565b61169261168c611a62565b83611a71565b6117045760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610829565b611710848484846121dc565b50505050565b6060600c61172383612265565b604051602001611734929190612df2565b6040516020818303038152906040529050919050565b600c805461175790612f83565b80601f016020809104026020016040519081016040528092919081815260200182805461178390612f83565b80156117d05780601f106117a5576101008083540402835291602001916117d0565b820191906000526020600020905b8154815290600101906020018083116117b357829003601f168201915b505050505081565b60405163c455279160e01b81526001600160a01b03838116600483015260009173a5409ec958c83c3f309868babaca7c86dcb077c191841690829063c45527919060240160206040518083038186803b15801561183457600080fd5b505afa158015611848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186c9190612c9f565b6001600160a01b031614156118855760019150506107a4565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6118bf611a62565b6001600160a01b03166118da600b546001600160a01b031690565b6001600160a01b0316146119305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610829565b6001600160a01b0381166119ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610829565b6110518161218a565b600033301415611a0c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150611a0f9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b1480611a4357506001600160e01b03198216635b5e139f60e01b145b806107a457506301ffc9a760e01b6001600160e01b03198316146107a4565b6000611a6c6119b5565b905090565b6000818152600260205260408120546001600160a01b0316611aea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610829565b6000611af5836112e7565b9050806001600160a01b0316846001600160a01b03161480611b305750836001600160a01b0316611b2584610973565b6001600160a01b0316145b806118af57506118af81856117d8565b6000611b4b826112e7565b9050611b598160008461237b565b611b64600083611be7565b6001600160a01b0381166000908152600360205260408120805460019290611b8d908490612f40565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c1c826112e7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616611cd35760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610829565b6001611ce6611ce187612433565b6124b0565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611d34573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000611d698284612f14565b9392505050565b6040516311ee0ec560e01b81526004810182905260009073b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e906311ee0ec59060240160606040518083038186803b158015611dbe57600080fd5b505afa158015611dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df69190612d1e565b509392505050565b826001600160a01b0316611e11826112e7565b6001600160a01b031614611e8d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610829565b6001600160a01b038216611eef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610829565b611efa83838361237b565b611f05600082611be7565b6001600160a01b0383166000908152600360205260408120805460019290611f2e908490612f40565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f5c908490612f14565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516311ee0ec560e01b815260048101829052600090819073b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e906311ee0ec59060240160606040518083038186803b15801561200d57600080fd5b505afa158015612021573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120459190612d1e565b9093509150506001600160a01b03821630146120c95760405162461bcd60e51b815260206004820152602c60248201527f4554484d61705a6f6e65733a20436f6e747261637420686173206e6f7420726560448201527f636569766564207a6f6e652e00000000000000000000000000000000000000006064820152608401610829565b6000838152600d6020526040902080546001600160a01b03191690558015612179576040516305674f0960e21b8152600481018490526000602482015273b6bbf89c3dbba20cb4d5cabaa4a386acbbab455e9063159d3c2490604401602060405180830381600087803b15801561213f57600080fd5b505af1158015612153573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121779190612c48565b505b610b2b612184611a62565b846124f6565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121e7848484611dfe565b6121f384848484612644565b6117105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610829565b6060816122895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122b3578061229d81612fbe565b91506122ac9050600a83612f2c565b915061228d565b60008167ffffffffffffffff8111156122ce576122ce613045565b6040519080825280601f01601f1916602001820160405280156122f8576020820181803683370190505b5090505b84156118af5761230d600183612f40565b915061231a600a86612fd9565b612325906030612f14565b60f81b81838151811061233a5761233a61302f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612374600a86612f2c565b94506122fc565b6001600160a01b0383166123d6576123d181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6123f9565b816001600160a01b0316836001600160a01b0316146123f9576123f983826127ae565b6001600160a01b03821661241057610b2b8161284b565b826001600160a01b0316826001600160a01b031614610b2b57610b2b82826128fa565b60006040518060800160405280604381526020016130956043913980516020918201208351848301516040808701518051908601209051612493950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60405161190160f01b60208201527ff02b63205c69de763c13db152c8e5acb18cfe2c142b90be024888451c55f33f0602282015260428101829052600090606201612493565b6001600160a01b03821661254c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610829565b6000818152600260205260409020546001600160a01b0316156125b15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610829565b6125bd6000838361237b565b6001600160a01b03821660009081526003602052604081208054600192906125e6908490612f14565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156127a357836001600160a01b031663150b7a0261266d611a62565b8786866040518563ffffffff1660e01b815260040161268f9493929190612ec5565b602060405180830381600087803b1580156126a957600080fd5b505af19250505080156126d9575060408051601f3d908101601f191682019092526126d691810190612c82565b60015b612789573d808015612707576040519150601f19603f3d011682016040523d82523d6000602084013e61270c565b606091505b5080516127815760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610829565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118af565b506001949350505050565b600060016127bb84611409565b6127c59190612f40565b600083815260076020526040902054909150808214612818576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061285d90600190612f40565b600083815260096020526040812054600880549394509092849081106128855761288561302f565b9060005260206000200154905080600883815481106128a6576128a661302f565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806128de576128de613019565b6001900381819060005260206000200160009055905550505050565b600061290583611409565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461294a90612f83565b90600052602060002090601f01602090048101928261296c57600085556129b2565b82601f1061298557805160ff19168380011785556129b2565b828001600101855582156129b2579182015b828111156129b2578251825591602001919060010190612997565b506129be9291506129c2565b5090565b5b808211156129be57600081556001016129c3565b600067ffffffffffffffff808411156129f2576129f2613045565b604051601f8501601f19908116603f01168101908282118183101715612a1a57612a1a613045565b81604052809350858152868686011115612a3357600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612a5e57600080fd5b611d69838335602085016129d7565b600060208284031215612a7f57600080fd5b8135611d698161305b565b60008060408385031215612a9d57600080fd5b8235612aa88161305b565b91506020830135612ab88161305b565b809150509250929050565b600080600060608486031215612ad857600080fd5b8335612ae38161305b565b92506020840135612af38161305b565b929592945050506040919091013590565b60008060008060808587031215612b1a57600080fd5b8435612b258161305b565b93506020850135612b358161305b565b925060408501359150606085013567ffffffffffffffff811115612b5857600080fd5b612b6487828801612a4d565b91505092959194509250565b60008060408385031215612b8357600080fd5b8235612b8e8161305b565b91506020830135612ab881613070565b600080600080600060a08688031215612bb657600080fd5b8535612bc18161305b565b9450602086013567ffffffffffffffff811115612bdd57600080fd5b612be988828901612a4d565b9450506040860135925060608601359150608086013560ff81168114612c0e57600080fd5b809150509295509295909350565b60008060408385031215612c2f57600080fd5b8235612c3a8161305b565b946020939093013593505050565b600060208284031215612c5a57600080fd5b8151611d6981613070565b600060208284031215612c7757600080fd5b8135611d698161307e565b600060208284031215612c9457600080fd5b8151611d698161307e565b600060208284031215612cb157600080fd5b8151611d698161305b565b600060208284031215612cce57600080fd5b813567ffffffffffffffff811115612ce557600080fd5b8201601f81018413612cf657600080fd5b6118af848235602084016129d7565b600060208284031215612d1757600080fd5b5035919050565b600080600060608486031215612d3357600080fd5b835192506020840151612d458161305b565b80925050604084015190509250925092565b60008151808452612d6f816020860160208601612f57565b601f01601f19169290920160200192915050565b60008151612d95818560208601612f57565b9290920192915050565b60008251612db1818460208701612f57565b9190910192915050565b60008351612dcd818460208801612f57565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845481600182811c915080831680612e0e57607f831692505b6020808410821415612e2e57634e487b7160e01b86526022600452602486fd5b818015612e425760018114612e5357612e80565b60ff19861689528489019650612e80565b60008b81526020902060005b86811015612e785781548b820152908501908301612e5f565b505084890196505b505050505050612e908185612d83565b95945050505050565b60006001600160a01b03808616835280851660208401525060606040830152612e906060830184612d57565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ef76080830184612d57565b9695505050505050565b602081526000611d696020830184612d57565b60008219821115612f2757612f27612fed565b500190565b600082612f3b57612f3b613003565b500490565b600082821015612f5257612f52612fed565b500390565b60005b83811015612f72578181015183820152602001612f5a565b838111156117105750506000910152565b600181811c90821680612f9757607f821691505b60208210811415612fb857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612fd257612fd2612fed565b5060010190565b600082612fe857612fe8613003565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461105157600080fd5b801515811461105157600080fd5b6001600160e01b03198116811461105157600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a164736f6c6343000807000a

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

0000000000000000000000007372d7fb769470ff57019404cbf6bc6515e39090

-----Decoded View---------------
Arg [0] : _oldContract (address): 0x7372D7fB769470ff57019404cbf6bC6515E39090

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007372d7fb769470ff57019404cbf6bc6515e39090


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.