ETH Price: $1,568.10 (+1.27%)
Gas: 0.44 Gwei
 

Overview

Max Total Supply

1,490 OWNK-M

Holders

1

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1,490 OWNK-M
0x21796ba19b1579f51d5177f56c656e8a2476e037
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:
GenesisOwnerKey

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : GenesisOwnerKey.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "erc721a/contracts/ERC721A.sol"; // Helper functions OpenZeppelin provides.
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

// Helper we wrote to encode in Base64
import "../libs/Base64.sol";
import "../interfaces/IGenesisOwnerKey.sol";

// Hardhat util for console output
//import "hardhat/console.sol";

contract GenesisOwnerKey is ERC721A, IGenesisOwnerKey, Ownable {
    struct GameProp {
        uint256 token_transaction;
        uint256 game_play;
    }

    using Strings for uint256;
    // A modifier to lock/unlock token transfer
    bool public locked;
    bool public tradingAllowed;
    address public nftPoolAddress;
    mapping(uint256 => GameProp) internal _gameProps;
    uint256 public maxOwnLimit = 2;

    string public tierName;
    string public tierImageURI;
    string public tierAnimationURL;
    string public tierExternalURL;

    uint256 public tierSupply;

    constructor(string memory name_, string memory symbol_)
        ERC721A(name_, symbol_)
    {}

    modifier notLocked() {
        require(!locked, "GenesisOwnerKey: can't operate - currently locked");
        _;
    }

    function _startTokenId() internal pure virtual override returns (uint256) {
        return 1;
    }

    function initialize(
        string calldata _tierName,
        string calldata _tierImageURI,
        uint256 _tierSupply
    ) external onlyOwner {
        tierName = _tierName;
        tierImageURI = _tierImageURI;
        tierSupply = _tierSupply;
    }

    // ---------------------------------------
    // -          External Functions         -
    // ---------------------------------------
    function setupPool(address nftpool) external onlyOwner {
        require(nftpool != address(0), "GenesisOwnerKey: ZERO_ADDRESS");
        nftPoolAddress = nftpool;
        emit SetupPool(msg.sender, nftpool);
    }

    function toggleLock() external onlyOwner {
        locked = !locked;
        emit Locked(msg.sender, locked);
    }

    function toggleTradingAllowed() external onlyOwner {
        tradingAllowed = !tradingAllowed;
        emit TradingAllowed(msg.sender, tradingAllowed);
    }

    function mint(address to, uint256 quantity) public onlyOwner {
        require(
            tierSupply == totalSupply() + quantity,
            "GenesisOwnerKey: The tier qunatity doesn't match"
        );
        _safeMint(to, quantity);
        emit Mint(_msgSender(), to, quantity);
    }

    // Batch minting to all tiers for gas optimization
    function mintToPool() external onlyOwner {
        require(
            nftPoolAddress != address(0),
            "GenesisOwnerKey: POOL_ZERO_ADDRESS"
        );
        require(tierSupply > 0, "GenesisOwnerKey: NOT_INITIALIZED");
        require(
            tierSupply > totalSupply(),
            "GenesisOwnerKey: ALREADY_MINT_TO_POOL"
        );
        uint256 mintAmount = tierSupply - totalSupply();

        _safeMint(nftPoolAddress, mintAmount);
        emit MintToPool(msg.sender, mintAmount);
    }

    function burn(uint256 tokenId) external onlyOwner {
        _burn(tokenId, true);
        emit Burn(_msgSender(), tokenId);
    }

    function setImage(string calldata _url) external onlyOwner {
        tierImageURI = _url;
        emit UpdateMetadataImage(_url);
    }

    function setAnimationUrls(string calldata _url) external onlyOwner {
        tierAnimationURL = _url;
        emit UpdateMetadataAnimationUrl(_url);
    }

    function setExternalUrls(string calldata _url) external onlyOwner {
        tierExternalURL = _url;
        emit UpdateMetadataExternalUrl(_url);
    }

    function setGameProp(
        uint256 tokenId,
        uint256 gameplay,
        uint256 tokentransaction
    ) external onlyOwner {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        _gameProps[tokenId].game_play = gameplay;
        _gameProps[tokenId].token_transaction = tokentransaction;
    }

    // ---------------------------------------
    // -          Public Functions           -
    // ---------------------------------------
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        GameProp memory gp = _gameProps[tokenId];
        string memory strTokenId = Strings.toString(tokenId);
        string memory s1 = string(
            abi.encodePacked(
                '{"name": "',
                name(),
                ": ",
                tierName,
                " #",
                strTokenId,
                '", "image": "',
                tierImageURI,
                '", "external_url": "',
                tierExternalURL,
                '", "animation_url": "',
                tierAnimationURL
            )
        );
        string memory s2 = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        s1,
                        '", "description": "PlayEstates Founding Member Token"',
                        ', "attributes": [',
                        '{ "trait_type": "Tier", "value": "',
                        tierName,
                        '"},',
                        '{ "trait_type": "ID", "value": "',
                        strTokenId,
                        '"},',
                        '{ "display_type": "number", "trait_type": "Game Play", "value": ',
                        Strings.toString(gp.game_play),
                        "},",
                        '{ "display_type": "number", "trait_type": "Token Transaction", "value": ',
                        Strings.toString(gp.token_transaction),
                        "}",
                        "]}"
                    )
                )
            )
        );

        string memory output = string(
            abi.encodePacked("data:application/json;base64,", s2)
        );
        return output;
    }

    function gamePlayOf(uint256 tokenId) public view returns (uint256) {
        return _gamePropOf(tokenId).game_play;
    }

    function tokenTransactionOf(uint256 tokenId) public view returns (uint256) {
        return _gamePropOf(tokenId).token_transaction;
    }

    // ---------------------------------------
    // -          Internal Functions         -
    // ---------------------------------------
    function _gamePropOf(uint256 tokenId)
        internal
        view
        returns (GameProp memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        GameProp memory gameprop = _gameProps[tokenId];
        return gameprop;
    }

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

    function setMaxOwnLimit(uint256 _maxLimit) public onlyOwner {
        maxOwnLimit = _maxLimit;
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256, /*startTokenId*/
        uint256 quantity
    ) internal virtual override {
        require(!locked, "GenesisOwnerKey: can't operate - currently locked");

        // Checking sender side
        if (from == address(0)) {
            // if minting, then return
            return;
        }
        // Checking receiver
        if (to == address(0)) {
            //if burning, then return
            return;
        }
        if (from == nftPoolAddress) {
            if (to != nftPoolAddress) {
                require(
                    balanceOf(to) + quantity <= maxOwnLimit,
                    "GenesisOwnerKey: Member Maximum Limit"
                );
            }
        } else {
            if (to != nftPoolAddress) {
                require(
                    tradingAllowed,
                    "GenesisOwnerKey: user transfer coming soon"
                );
                require(
                    balanceOf(to) + quantity <= maxOwnLimit,
                    "GenesisOwnerKey: Member Maximum Limit"
                );
            }
        }
    }

    // ---------------------------------------
    // -          Private Functions          -
    // ---------------------------------------
}

File 2 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721A {
    using Address for address;
    using Strings for uint256;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 15 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

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

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

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

        bytes memory table = TABLE;

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

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

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

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

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

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

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 7 of 15 : IGenesisOwnerKey.sol
//SPDX-License-Identifier: Unlicense
// Creator: Dai
pragma solidity ^0.8.4;

interface IGenesisOwnerKey {
    //Interface
    event Mint(address indexed operator, address indexed to, uint256 quantity);
    event Burn(address indexed operator, uint256 tokenID);
    event UpdateMetadataImage(string);
    event UpdateMetadataExternalUrl(string);
    event UpdateMetadataAnimationUrl(string);
    event SetupPool(address indexed operator, address pool);
    event Locked(address indexed operator, bool locked);
    event TradingAllowed(address indexed operator, bool allowed);
    event MintToPool(address indexed operator, uint256 quantity);
}

File 8 of 15 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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 11 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"locked","type":"bool"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"MintToPool","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":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"SetupPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"TradingAllowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"","type":"string"}],"name":"UpdateMetadataAnimationUrl","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"","type":"string"}],"name":"UpdateMetadataExternalUrl","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"","type":"string"}],"name":"UpdateMetadataImage","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"gamePlayOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tierName","type":"string"},{"internalType":"string","name":"_tierImageURI","type":"string"},{"internalType":"uint256","name":"_tierSupply","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOwnLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintToPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPoolAddress","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":[],"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":"string","name":"_url","type":"string"}],"name":"setAnimationUrls","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":"_url","type":"string"}],"name":"setExternalUrls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"gameplay","type":"uint256"},{"internalType":"uint256","name":"tokentransaction","type":"uint256"}],"name":"setGameProp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLimit","type":"uint256"}],"name":"setMaxOwnLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftpool","type":"address"}],"name":"setupPool","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":[],"name":"tierAnimationURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tierExternalURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tierImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tierName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tierSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleTradingAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenTransactionOf","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":[],"name":"tradingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"}]

60806040526002600b553480156200001657600080fd5b5060405162002d2f38038062002d2f83398101604081905262000039916200022e565b81518290829062000052906002906020850190620000d5565b50805162000068906003906020840190620000d5565b50506001600055506200007b3362000083565b5050620002e8565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000e39062000295565b90600052602060002090601f01602090048101928262000107576000855562000152565b82601f106200012257805160ff191683800117855562000152565b8280016001018555821562000152579182015b828111156200015257825182559160200191906001019062000135565b506200016092915062000164565b5090565b5b8082111562000160576000815560010162000165565b600082601f8301126200018c578081fd5b81516001600160401b0380821115620001a957620001a9620002d2565b604051601f8301601f19908116603f01168101908282118183101715620001d457620001d4620002d2565b81604052838152602092508683858801011115620001f0578485fd5b8491505b83821015620002135785820183015181830184015290820190620001f4565b838211156200022457848385830101525b9695505050505050565b6000806040838503121562000241578182fd5b82516001600160401b038082111562000258578384fd5b62000266868387016200017b565b935060208501519150808211156200027c578283fd5b506200028b858286016200017b565b9150509250929050565b600181811c90821680620002aa57607f821691505b60208210811415620002cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612a3780620002f86000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80636a0c10f91161013b578063aec2d3cb116100b8578063e78903af1161007c578063e78903af146104b7578063e985e9c5146104ca578063e9a6dba114610506578063f2fde38b14610519578063ff9413d81461052c57600080fd5b8063aec2d3cb14610457578063b119490e1461046a578063b88d4fde1461047d578063c87b56dd14610490578063cf309012146104a357600080fd5b80638eb625bc116100ff5780638eb625bc1461041957806394de6f911461042157806395d89b4114610429578063a22cb46514610431578063acbf20201461044457600080fd5b80636a0c10f9146103c757806370a08231146103da578063715018a6146103ed57806371adb5e6146103f55780638da5cb5b1461040857600080fd5b806342842e0e116101c9578063531aeb661161018d578063531aeb661461037c57806353371be01461038f578063549b9da5146103a35780635a7edc9d146103ac5780636352211e146103b457600080fd5b806342842e0e1461033357806342966c6814610346578063447b8c4c146103595780634a7df7861461036c5780635259450e1461037457600080fd5b806318160ddd1161021057806318160ddd146102eb5780632232c957146102fc57806323b872dd1461030557806336b22b4f1461031857806340c10f191461032057600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b55780630fa65aff146102ca575b600080fd5b61026061025b36600461221d565b610534565b60405190151581526020015b60405180910390f35b61027d610586565b60405161026c91906127c4565b61029d610298366004612304565b610618565b6040516001600160a01b03909116815260200161026c565b6102c86102c33660046121f4565b61065c565b005b6102dd6102d8366004612304565b6106e3565b60405190815260200161026c565b6102dd600154600054036000190190565b6102dd600b5481565b6102c86103133660046120ab565b6106f5565b6102c8610700565b6102c861032e3660046121f4565b610799565b6102c86103413660046120ab565b610897565b6102c8610354366004612304565b6108b2565b6102dd610367366004612304565b610920565b61027d610935565b61027d6109c3565b6102c861038a366004612058565b6109d0565b60085461026090600160a81b900460ff1681565b6102dd60105481565b61027d610aa0565b61029d6103c2366004612304565b610aad565b6102c86103d5366004612255565b610ab8565b6102dd6103e8366004612058565b610b2c565b6102c8610b7a565b6102c8610403366004612255565b610bb0565b6008546001600160a01b031661029d565b6102c8610c18565b61027d610dd1565b61027d610dde565b6102c861043f3660046121ba565b610ded565b6102c8610452366004612255565b610e7c565b6102c8610465366004612304565b610ee4565b6102c8610478366004612294565b610f13565b6102c861048b3660046120e6565b610f60565b61027d61049e366004612304565b610faa565b60085461026090600160a01b900460ff1681565b6102c86104c536600461231c565b6110b8565b6102606104d8366004612079565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60095461029d906001600160a01b031681565b6102c8610527366004612058565b611122565b6102c86111bd565b60006001600160e01b031982166380ac58cd60e01b148061056557506001600160e01b03198216635b5e139f60e01b145b8061058057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610595906128df565b80601f01602080910402602001604051908101604052809291908181526020018280546105c1906128df565b801561060e5780601f106105e35761010080835404028352916020019161060e565b820191906000526020600020905b8154815290600101906020018083116105f157829003601f168201915b5050505050905090565b600061062382611243565b610640576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061066782610aad565b9050806001600160a01b0316836001600160a01b0316141561069c5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146106d3576106b681336104d8565b6106d3576040516367d9dca160e11b815260040160405180910390fd5b6106de83838361127c565b505050565b60006106ee826112d8565b5192915050565b6106de83838361133c565b6008546001600160a01b031633146107335760405162461bcd60e51b815260040161072a906127d7565b60405180910390fd5b6008805460ff600160a81b808304821615810260ff60a81b19909316929092179283905560405133937faef734d6041f99698bd8ce0fe5f4f68e33fe33fbb02b3ed57d5d4798fb00049e9361078f939104161515815260200190565b60405180910390a2565b6008546001600160a01b031633146107c35760405162461bcd60e51b815260040161072a906127d7565b806107d5600154600054036000190190565b6107df9190612851565b601054146108485760405162461bcd60e51b815260206004820152603060248201527f47656e657369734f776e65724b65793a2054686520746965722071756e61746960448201526f0e8f240c8decae6dc4ee840dac2e8c6d60831b606482015260840161072a565b6108528282611524565b6040518181526001600160a01b0383169033907fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8906020015b60405180910390a35050565b6106de83838360405180602001604052806000815250610f60565b6008546001600160a01b031633146108dc5760405162461bcd60e51b815260040161072a906127d7565b6108e7816001611542565b60405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5906020015b60405180910390a250565b600061092b826112d8565b6020015192915050565b600e8054610942906128df565b80601f016020809104026020016040519081016040528092919081815260200182805461096e906128df565b80156109bb5780601f10610990576101008083540402835291602001916109bb565b820191906000526020600020905b81548152906001019060200180831161099e57829003601f168201915b505050505081565b600d8054610942906128df565b6008546001600160a01b031633146109fa5760405162461bcd60e51b815260040161072a906127d7565b6001600160a01b038116610a505760405162461bcd60e51b815260206004820152601d60248201527f47656e657369734f776e65724b65793a205a45524f5f41444452455353000000604482015260640161072a565b600980546001600160a01b0319166001600160a01b03831690811790915560405190815233907f31c6dffa9ca243b271025134d29cd08b651c1800c946e2dec8420b21ba1b887d90602001610915565b600c8054610942906128df565b60006106ee82611703565b6008546001600160a01b03163314610ae25760405162461bcd60e51b815260040161072a906127d7565b610aee600f8383611f5d565b507f07b682d781202ee67543d2a373f9898074661b6f7d702100700ea06a4eeec03c8282604051610b20929190612795565b60405180910390a15050565b60006001600160a01b038216610b55576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ba45760405162461bcd60e51b815260040161072a906127d7565b610bae6000611825565b565b6008546001600160a01b03163314610bda5760405162461bcd60e51b815260040161072a906127d7565b610be6600d8383611f5d565b507fc977a26c0e0693a41150ff793f17e3d3d17c285bf8d24e138d75c9a40d4990468282604051610b20929190612795565b6008546001600160a01b03163314610c425760405162461bcd60e51b815260040161072a906127d7565b6009546001600160a01b0316610ca55760405162461bcd60e51b815260206004820152602260248201527f47656e657369734f776e65724b65793a20504f4f4c5f5a45524f5f4144445245604482015261535360f01b606482015260840161072a565b600060105411610cf75760405162461bcd60e51b815260206004820181905260248201527f47656e657369734f776e65724b65793a204e4f545f494e495449414c495a4544604482015260640161072a565b610d08600154600054036000190190565b60105411610d665760405162461bcd60e51b815260206004820152602560248201527f47656e657369734f776e65724b65793a20414c52454144595f4d494e545f544f60448201526417d413d3d360da1b606482015260840161072a565b6000610d79600154600054036000190190565b601054610d86919061289c565b600954909150610d9f906001600160a01b031682611524565b60405181815233907f8f7f3a9ffb3e1e7213c2a6b382b480d930a82cbe1e50ac8d07c68f9ab602caed90602001610915565b600f8054610942906128df565b606060038054610595906128df565b6001600160a01b038216331415610e175760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910161088b565b6008546001600160a01b03163314610ea65760405162461bcd60e51b815260040161072a906127d7565b610eb2600e8383611f5d565b507fab82f6d6e19c2fbbbe36633ddd87ba12de5a6edb5a1897d54e98b77af78663e08282604051610b20929190612795565b6008546001600160a01b03163314610f0e5760405162461bcd60e51b815260040161072a906127d7565b600b55565b6008546001600160a01b03163314610f3d5760405162461bcd60e51b815260040161072a906127d7565b610f49600c8686611f5d565b50610f56600d8484611f5d565b5060105550505050565b610f6b84848461133c565b6001600160a01b0383163b15610fa457610f8784848484611877565b610fa4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fb582611243565b610fd257604051630a14c4b560e41b815260040160405180910390fd5b6000828152600a602090815260408083208151808301909252805482526001015491810191909152906110048461196f565b90506000611010610586565b600c83600d600f600e60405160200161102e96959493929190612639565b6040516020818303038152906040529050600061108882600c85611055886020015161196f565b88516110609061196f565b604051602001611074959493929190612427565b604051602081830303815290604052611a88565b905060008160405160200161109d9190612713565b60408051601f19818403018152919052979650505050505050565b6008546001600160a01b031633146110e25760405162461bcd60e51b815260040161072a906127d7565b6110eb83611243565b61110857604051630a14c4b560e41b815260040160405180910390fd5b6000928352600a6020526040909220600181019190915555565b6008546001600160a01b0316331461114c5760405162461bcd60e51b815260040161072a906127d7565b6001600160a01b0381166111b15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072a565b6111ba81611825565b50565b6008546001600160a01b031633146111e75760405162461bcd60e51b815260040161072a906127d7565b6008805460ff600160a01b808304821615810260ff60a01b19909316929092179283905560405133937fcaf46096bdd957e9271a7e46a00ff61870b80644805049e7ea814162a2b606bc9361078f939104161515815260200190565b600081600111158015611257575060005482105b8015610580575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60408051808201909152600080825260208201526112f582611243565b61131257604051630a14c4b560e41b815260040160405180910390fd5b506000908152600a6020908152604091829020825180840190935280548352600101549082015290565b600061134782611703565b9050836001600160a01b031681600001516001600160a01b03161461137e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061139c575061139c85336104d8565b806113b75750336113ac84610618565b6001600160a01b0316145b9050806113d757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166113fe57604051633a954ecd60e21b815260040160405180910390fd5b61140b8585856001611bfb565b6114176000848761127c565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166114eb5760005482146114eb57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206129e283398151915260405160405180910390a45050505050565b61153e828260405180602001604052806000815250611db0565b5050565b600061154d83611703565b805190915082156115b3576000336001600160a01b0383161480611576575061157682336104d8565b8061159157503361158686610618565b6001600160a01b0316145b9050806115b157604051632ce44b5f60e11b815260040160405180910390fd5b505b6115c1816000866001611bfb565b6115cd6000858361127c565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166116cb5760005482146116cb57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206129e2833981519152908390a4505060018054810190555050565b6040805160608101825260008082526020820181905291810191909152818060011161180c5760005481101561180c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061180a5780516001600160a01b0316156117a1579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611805579392505050565b6117a1565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118ac903390899088908890600401612758565b602060405180830381600087803b1580156118c657600080fd5b505af19250505080156118f6575060408051601f3d908101601f191682019092526118f391810190612239565b60015b611951573d808015611924576040519150601f19603f3d011682016040523d82523d6000602084013e611929565b606091505b508051611949576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816119935750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119bd57806119a78161291a565b91506119b69050600a83612869565b9150611997565b6000816001600160401b038111156119e557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a0f576020820181803683370190505b5090505b841561196757611a2460018361289c565b9150611a31600a86612935565b611a3c906030612851565b60f81b818381518110611a5f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a81600a86612869565b9450611a13565b805160609080611aa8575050604080516020810190915260008152919050565b60006003611ab7836002612851565b611ac19190612869565b611acc90600461287d565b90506000611adb826020612851565b6001600160401b03811115611b0057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b2a576020820181803683370190505b50905060006040518060600160405280604081526020016129a2604091399050600181016020830160005b86811015611bb6576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611b55565b506003860660018114611bd05760028114611be157611bed565b613d3d60f01b600119830152611bed565b603d60f81b6000198301525b505050918152949350505050565b600854600160a01b900460ff1615611c6f5760405162461bcd60e51b815260206004820152603160248201527f47656e657369734f776e65724b65793a2063616e2774206f706572617465202d6044820152700818dd5c9c995b9d1b1e481b1bd8dad959607a1b606482015260840161072a565b6001600160a01b038416611c8257610fa4565b6001600160a01b038316611c9557610fa4565b6009546001600160a01b0385811691161415611cfa576009546001600160a01b03848116911614611cf557600b5481611ccd85610b2c565b611cd79190612851565b1115611cf55760405162461bcd60e51b815260040161072a9061280c565b610fa4565b6009546001600160a01b03848116911614610fa457600854600160a81b900460ff16611d7b5760405162461bcd60e51b815260206004820152602a60248201527f47656e657369734f776e65724b65793a2075736572207472616e73666572206360448201526937b6b4b7339039b7b7b760b11b606482015260840161072a565b600b5481611d8885610b2c565b611d929190612851565b1115610fa45760405162461bcd60e51b815260040161072a9061280c565b6000546001600160a01b038416611dd957604051622e076360e81b815260040160405180910390fd5b82611df75760405163b562e8dd60e01b815260040160405180910390fd5b611e046000858386611bfb565b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15611f1a575b60405182906001600160a01b038816906000906000805160206129e2833981519152908290a4611ee36000878480600101955087611877565b611f00576040516368d2bf6b60e11b815260040160405180910390fd5b808210611eaa578260005414611f1557600080fd5b611f4d565b5b6040516001830192906001600160a01b038816906000906000805160206129e2833981519152908290a4808210611f1b575b506000908155610fa49085838684565b828054611f69906128df565b90600052602060002090601f016020900481019282611f8b5760008555611fd1565b82601f10611fa45782800160ff19823516178555611fd1565b82800160010185558215611fd1579182015b82811115611fd1578235825591602001919060010190611fb6565b50611fdd929150611fe1565b5090565b5b80821115611fdd5760008155600101611fe2565b80356001600160a01b038116811461200d57600080fd5b919050565b60008083601f840112612023578182fd5b5081356001600160401b03811115612039578182fd5b60208301915083602082850101111561205157600080fd5b9250929050565b600060208284031215612069578081fd5b61207282611ff6565b9392505050565b6000806040838503121561208b578081fd5b61209483611ff6565b91506120a260208401611ff6565b90509250929050565b6000806000606084860312156120bf578081fd5b6120c884611ff6565b92506120d660208501611ff6565b9150604084013590509250925092565b600080600080608085870312156120fb578081fd5b61210485611ff6565b935061211260208601611ff6565b92506040850135915060608501356001600160401b0380821115612134578283fd5b818701915087601f830112612147578283fd5b81358181111561215957612159612975565b604051601f8201601f19908116603f0116810190838211818310171561218157612181612975565b816040528281528a6020848701011115612199578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156121cc578182fd5b6121d583611ff6565b9150602083013580151581146121e9578182fd5b809150509250929050565b60008060408385031215612206578182fd5b61220f83611ff6565b946020939093013593505050565b60006020828403121561222e578081fd5b81356120728161298b565b60006020828403121561224a578081fd5b81516120728161298b565b60008060208385031215612267578182fd5b82356001600160401b0381111561227c578283fd5b61228885828601612012565b90969095509350505050565b6000806000806000606086880312156122ab578081fd5b85356001600160401b03808211156122c1578283fd5b6122cd89838a01612012565b909750955060208801359150808211156122e5578283fd5b506122f288828901612012565b96999598509660400135949350505050565b600060208284031215612315578081fd5b5035919050565b600080600060608486031215612330578283fd5b505081359360208301359350604090920135919050565b6000815180845261235f8160208601602086016128b3565b601f01601f19169290920160200192915050565b600081516123858185602086016128b3565b9290920192915050565b8054600090600181811c90808316806123a957607f831692505b60208084108214156123c957634e487b7160e01b86526022600452602486fd5b8180156123dd57600181146123ee5761241b565b60ff1986168952848901965061241b565b60008881526020902060005b868110156124135781548b8201529085019083016123fa565b505084890196505b50505050505092915050565b60008651612439818460208b016128b3565b7f222c20226465736372697074696f6e223a2022506c61794573746174657320469083019081527437bab73234b7339026b2b6b132b9102a37b5b2b71160591b6020820152702c202261747472696275746573223a205b60781b60358201527f7b202274726169745f74797065223a202254696572222c202276616c7565223a604682015261101160f11b60668201526124d6606882018861238f565b62089f4b60ea1b81527f7b202274726169745f74797065223a20224944222c202276616c7565223a20226003820152865190915061251b816023840160208a016128b3565b61262c61261e61261161260b6125ab61259d6125976125486023898b010162089f4b60ea1b815260030190565b7f7b2022646973706c61795f74797065223a20226e756d626572222c202274726181527f69745f74797065223a202247616d6520506c6179222c202276616c7565223a20602082015260400190565b8c612373565b611f4b60f21b815260020190565b7f7b2022646973706c61795f74797065223a20226e756d626572222c202274726181527f69745f74797065223a2022546f6b656e205472616e73616374696f6e222c202260208201526703b30b63ab2911d160c51b604082015260480190565b88612373565b607d60f81b815260010190565b615d7d60f01b815260020190565b9998505050505050505050565b693d913730b6b2911d101160b11b8152865160009061265f81600a850160208c016128b3565b6101d160f51b600a9184019182015261267b600c82018961238f565b905061202360f01b81528651612698816002840160208b016128b3565b6c1116101134b6b0b3b2911d101160991b600292909101918201526126c0600f82018761238f565b731116101132bc3a32b93730b62fbab936111d101160611b815290506126e9601482018661238f565b741116101130b734b6b0ba34b7b72fbab936111d101160591b8152905061262c601582018561238f565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161274b81601d8501602087016128b3565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061278b90830184612347565b9695505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006120726020830184612347565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526025908201527f47656e657369734f776e65724b65793a204d656d626572204d6178696d756d20604082015264131a5b5a5d60da1b606082015260800190565b6000821982111561286457612864612949565b500190565b6000826128785761287861295f565b500490565b600081600019048311821515161561289757612897612949565b500290565b6000828210156128ae576128ae612949565b500390565b60005b838110156128ce5781810151838201526020016128b6565b83811115610fa45750506000910152565b600181811c908216806128f357607f821691505b6020821081141561291457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561292e5761292e612949565b5060010190565b6000826129445761294461295f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146111ba57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220162b4774bfa46cdcc864fe7294165a77eb08b644b52ba011c6cfc1f5dc6f31e964736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001947656e65736973204f776e6572204b6579202d204d6f67756c0000000000000000000000000000000000000000000000000000000000000000000000000000064f574e4b2d4d0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c80636a0c10f91161013b578063aec2d3cb116100b8578063e78903af1161007c578063e78903af146104b7578063e985e9c5146104ca578063e9a6dba114610506578063f2fde38b14610519578063ff9413d81461052c57600080fd5b8063aec2d3cb14610457578063b119490e1461046a578063b88d4fde1461047d578063c87b56dd14610490578063cf309012146104a357600080fd5b80638eb625bc116100ff5780638eb625bc1461041957806394de6f911461042157806395d89b4114610429578063a22cb46514610431578063acbf20201461044457600080fd5b80636a0c10f9146103c757806370a08231146103da578063715018a6146103ed57806371adb5e6146103f55780638da5cb5b1461040857600080fd5b806342842e0e116101c9578063531aeb661161018d578063531aeb661461037c57806353371be01461038f578063549b9da5146103a35780635a7edc9d146103ac5780636352211e146103b457600080fd5b806342842e0e1461033357806342966c6814610346578063447b8c4c146103595780634a7df7861461036c5780635259450e1461037457600080fd5b806318160ddd1161021057806318160ddd146102eb5780632232c957146102fc57806323b872dd1461030557806336b22b4f1461031857806340c10f191461032057600080fd5b806301ffc9a71461024d57806306fdde0314610275578063081812fc1461028a578063095ea7b3146102b55780630fa65aff146102ca575b600080fd5b61026061025b36600461221d565b610534565b60405190151581526020015b60405180910390f35b61027d610586565b60405161026c91906127c4565b61029d610298366004612304565b610618565b6040516001600160a01b03909116815260200161026c565b6102c86102c33660046121f4565b61065c565b005b6102dd6102d8366004612304565b6106e3565b60405190815260200161026c565b6102dd600154600054036000190190565b6102dd600b5481565b6102c86103133660046120ab565b6106f5565b6102c8610700565b6102c861032e3660046121f4565b610799565b6102c86103413660046120ab565b610897565b6102c8610354366004612304565b6108b2565b6102dd610367366004612304565b610920565b61027d610935565b61027d6109c3565b6102c861038a366004612058565b6109d0565b60085461026090600160a81b900460ff1681565b6102dd60105481565b61027d610aa0565b61029d6103c2366004612304565b610aad565b6102c86103d5366004612255565b610ab8565b6102dd6103e8366004612058565b610b2c565b6102c8610b7a565b6102c8610403366004612255565b610bb0565b6008546001600160a01b031661029d565b6102c8610c18565b61027d610dd1565b61027d610dde565b6102c861043f3660046121ba565b610ded565b6102c8610452366004612255565b610e7c565b6102c8610465366004612304565b610ee4565b6102c8610478366004612294565b610f13565b6102c861048b3660046120e6565b610f60565b61027d61049e366004612304565b610faa565b60085461026090600160a01b900460ff1681565b6102c86104c536600461231c565b6110b8565b6102606104d8366004612079565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60095461029d906001600160a01b031681565b6102c8610527366004612058565b611122565b6102c86111bd565b60006001600160e01b031982166380ac58cd60e01b148061056557506001600160e01b03198216635b5e139f60e01b145b8061058057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610595906128df565b80601f01602080910402602001604051908101604052809291908181526020018280546105c1906128df565b801561060e5780601f106105e35761010080835404028352916020019161060e565b820191906000526020600020905b8154815290600101906020018083116105f157829003601f168201915b5050505050905090565b600061062382611243565b610640576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061066782610aad565b9050806001600160a01b0316836001600160a01b0316141561069c5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146106d3576106b681336104d8565b6106d3576040516367d9dca160e11b815260040160405180910390fd5b6106de83838361127c565b505050565b60006106ee826112d8565b5192915050565b6106de83838361133c565b6008546001600160a01b031633146107335760405162461bcd60e51b815260040161072a906127d7565b60405180910390fd5b6008805460ff600160a81b808304821615810260ff60a81b19909316929092179283905560405133937faef734d6041f99698bd8ce0fe5f4f68e33fe33fbb02b3ed57d5d4798fb00049e9361078f939104161515815260200190565b60405180910390a2565b6008546001600160a01b031633146107c35760405162461bcd60e51b815260040161072a906127d7565b806107d5600154600054036000190190565b6107df9190612851565b601054146108485760405162461bcd60e51b815260206004820152603060248201527f47656e657369734f776e65724b65793a2054686520746965722071756e61746960448201526f0e8f240c8decae6dc4ee840dac2e8c6d60831b606482015260840161072a565b6108528282611524565b6040518181526001600160a01b0383169033907fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8906020015b60405180910390a35050565b6106de83838360405180602001604052806000815250610f60565b6008546001600160a01b031633146108dc5760405162461bcd60e51b815260040161072a906127d7565b6108e7816001611542565b60405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5906020015b60405180910390a250565b600061092b826112d8565b6020015192915050565b600e8054610942906128df565b80601f016020809104026020016040519081016040528092919081815260200182805461096e906128df565b80156109bb5780601f10610990576101008083540402835291602001916109bb565b820191906000526020600020905b81548152906001019060200180831161099e57829003601f168201915b505050505081565b600d8054610942906128df565b6008546001600160a01b031633146109fa5760405162461bcd60e51b815260040161072a906127d7565b6001600160a01b038116610a505760405162461bcd60e51b815260206004820152601d60248201527f47656e657369734f776e65724b65793a205a45524f5f41444452455353000000604482015260640161072a565b600980546001600160a01b0319166001600160a01b03831690811790915560405190815233907f31c6dffa9ca243b271025134d29cd08b651c1800c946e2dec8420b21ba1b887d90602001610915565b600c8054610942906128df565b60006106ee82611703565b6008546001600160a01b03163314610ae25760405162461bcd60e51b815260040161072a906127d7565b610aee600f8383611f5d565b507f07b682d781202ee67543d2a373f9898074661b6f7d702100700ea06a4eeec03c8282604051610b20929190612795565b60405180910390a15050565b60006001600160a01b038216610b55576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ba45760405162461bcd60e51b815260040161072a906127d7565b610bae6000611825565b565b6008546001600160a01b03163314610bda5760405162461bcd60e51b815260040161072a906127d7565b610be6600d8383611f5d565b507fc977a26c0e0693a41150ff793f17e3d3d17c285bf8d24e138d75c9a40d4990468282604051610b20929190612795565b6008546001600160a01b03163314610c425760405162461bcd60e51b815260040161072a906127d7565b6009546001600160a01b0316610ca55760405162461bcd60e51b815260206004820152602260248201527f47656e657369734f776e65724b65793a20504f4f4c5f5a45524f5f4144445245604482015261535360f01b606482015260840161072a565b600060105411610cf75760405162461bcd60e51b815260206004820181905260248201527f47656e657369734f776e65724b65793a204e4f545f494e495449414c495a4544604482015260640161072a565b610d08600154600054036000190190565b60105411610d665760405162461bcd60e51b815260206004820152602560248201527f47656e657369734f776e65724b65793a20414c52454144595f4d494e545f544f60448201526417d413d3d360da1b606482015260840161072a565b6000610d79600154600054036000190190565b601054610d86919061289c565b600954909150610d9f906001600160a01b031682611524565b60405181815233907f8f7f3a9ffb3e1e7213c2a6b382b480d930a82cbe1e50ac8d07c68f9ab602caed90602001610915565b600f8054610942906128df565b606060038054610595906128df565b6001600160a01b038216331415610e175760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910161088b565b6008546001600160a01b03163314610ea65760405162461bcd60e51b815260040161072a906127d7565b610eb2600e8383611f5d565b507fab82f6d6e19c2fbbbe36633ddd87ba12de5a6edb5a1897d54e98b77af78663e08282604051610b20929190612795565b6008546001600160a01b03163314610f0e5760405162461bcd60e51b815260040161072a906127d7565b600b55565b6008546001600160a01b03163314610f3d5760405162461bcd60e51b815260040161072a906127d7565b610f49600c8686611f5d565b50610f56600d8484611f5d565b5060105550505050565b610f6b84848461133c565b6001600160a01b0383163b15610fa457610f8784848484611877565b610fa4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fb582611243565b610fd257604051630a14c4b560e41b815260040160405180910390fd5b6000828152600a602090815260408083208151808301909252805482526001015491810191909152906110048461196f565b90506000611010610586565b600c83600d600f600e60405160200161102e96959493929190612639565b6040516020818303038152906040529050600061108882600c85611055886020015161196f565b88516110609061196f565b604051602001611074959493929190612427565b604051602081830303815290604052611a88565b905060008160405160200161109d9190612713565b60408051601f19818403018152919052979650505050505050565b6008546001600160a01b031633146110e25760405162461bcd60e51b815260040161072a906127d7565b6110eb83611243565b61110857604051630a14c4b560e41b815260040160405180910390fd5b6000928352600a6020526040909220600181019190915555565b6008546001600160a01b0316331461114c5760405162461bcd60e51b815260040161072a906127d7565b6001600160a01b0381166111b15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072a565b6111ba81611825565b50565b6008546001600160a01b031633146111e75760405162461bcd60e51b815260040161072a906127d7565b6008805460ff600160a01b808304821615810260ff60a01b19909316929092179283905560405133937fcaf46096bdd957e9271a7e46a00ff61870b80644805049e7ea814162a2b606bc9361078f939104161515815260200190565b600081600111158015611257575060005482105b8015610580575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60408051808201909152600080825260208201526112f582611243565b61131257604051630a14c4b560e41b815260040160405180910390fd5b506000908152600a6020908152604091829020825180840190935280548352600101549082015290565b600061134782611703565b9050836001600160a01b031681600001516001600160a01b03161461137e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061139c575061139c85336104d8565b806113b75750336113ac84610618565b6001600160a01b0316145b9050806113d757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166113fe57604051633a954ecd60e21b815260040160405180910390fd5b61140b8585856001611bfb565b6114176000848761127c565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166114eb5760005482146114eb57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206129e283398151915260405160405180910390a45050505050565b61153e828260405180602001604052806000815250611db0565b5050565b600061154d83611703565b805190915082156115b3576000336001600160a01b0383161480611576575061157682336104d8565b8061159157503361158686610618565b6001600160a01b0316145b9050806115b157604051632ce44b5f60e11b815260040160405180910390fd5b505b6115c1816000866001611bfb565b6115cd6000858361127c565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166116cb5760005482146116cb57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206129e2833981519152908390a4505060018054810190555050565b6040805160608101825260008082526020820181905291810191909152818060011161180c5760005481101561180c57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061180a5780516001600160a01b0316156117a1579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611805579392505050565b6117a1565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906118ac903390899088908890600401612758565b602060405180830381600087803b1580156118c657600080fd5b505af19250505080156118f6575060408051601f3d908101601f191682019092526118f391810190612239565b60015b611951573d808015611924576040519150601f19603f3d011682016040523d82523d6000602084013e611929565b606091505b508051611949576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816119935750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119bd57806119a78161291a565b91506119b69050600a83612869565b9150611997565b6000816001600160401b038111156119e557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a0f576020820181803683370190505b5090505b841561196757611a2460018361289c565b9150611a31600a86612935565b611a3c906030612851565b60f81b818381518110611a5f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a81600a86612869565b9450611a13565b805160609080611aa8575050604080516020810190915260008152919050565b60006003611ab7836002612851565b611ac19190612869565b611acc90600461287d565b90506000611adb826020612851565b6001600160401b03811115611b0057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b2a576020820181803683370190505b50905060006040518060600160405280604081526020016129a2604091399050600181016020830160005b86811015611bb6576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611b55565b506003860660018114611bd05760028114611be157611bed565b613d3d60f01b600119830152611bed565b603d60f81b6000198301525b505050918152949350505050565b600854600160a01b900460ff1615611c6f5760405162461bcd60e51b815260206004820152603160248201527f47656e657369734f776e65724b65793a2063616e2774206f706572617465202d6044820152700818dd5c9c995b9d1b1e481b1bd8dad959607a1b606482015260840161072a565b6001600160a01b038416611c8257610fa4565b6001600160a01b038316611c9557610fa4565b6009546001600160a01b0385811691161415611cfa576009546001600160a01b03848116911614611cf557600b5481611ccd85610b2c565b611cd79190612851565b1115611cf55760405162461bcd60e51b815260040161072a9061280c565b610fa4565b6009546001600160a01b03848116911614610fa457600854600160a81b900460ff16611d7b5760405162461bcd60e51b815260206004820152602a60248201527f47656e657369734f776e65724b65793a2075736572207472616e73666572206360448201526937b6b4b7339039b7b7b760b11b606482015260840161072a565b600b5481611d8885610b2c565b611d929190612851565b1115610fa45760405162461bcd60e51b815260040161072a9061280c565b6000546001600160a01b038416611dd957604051622e076360e81b815260040160405180910390fd5b82611df75760405163b562e8dd60e01b815260040160405180910390fd5b611e046000858386611bfb565b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15611f1a575b60405182906001600160a01b038816906000906000805160206129e2833981519152908290a4611ee36000878480600101955087611877565b611f00576040516368d2bf6b60e11b815260040160405180910390fd5b808210611eaa578260005414611f1557600080fd5b611f4d565b5b6040516001830192906001600160a01b038816906000906000805160206129e2833981519152908290a4808210611f1b575b506000908155610fa49085838684565b828054611f69906128df565b90600052602060002090601f016020900481019282611f8b5760008555611fd1565b82601f10611fa45782800160ff19823516178555611fd1565b82800160010185558215611fd1579182015b82811115611fd1578235825591602001919060010190611fb6565b50611fdd929150611fe1565b5090565b5b80821115611fdd5760008155600101611fe2565b80356001600160a01b038116811461200d57600080fd5b919050565b60008083601f840112612023578182fd5b5081356001600160401b03811115612039578182fd5b60208301915083602082850101111561205157600080fd5b9250929050565b600060208284031215612069578081fd5b61207282611ff6565b9392505050565b6000806040838503121561208b578081fd5b61209483611ff6565b91506120a260208401611ff6565b90509250929050565b6000806000606084860312156120bf578081fd5b6120c884611ff6565b92506120d660208501611ff6565b9150604084013590509250925092565b600080600080608085870312156120fb578081fd5b61210485611ff6565b935061211260208601611ff6565b92506040850135915060608501356001600160401b0380821115612134578283fd5b818701915087601f830112612147578283fd5b81358181111561215957612159612975565b604051601f8201601f19908116603f0116810190838211818310171561218157612181612975565b816040528281528a6020848701011115612199578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156121cc578182fd5b6121d583611ff6565b9150602083013580151581146121e9578182fd5b809150509250929050565b60008060408385031215612206578182fd5b61220f83611ff6565b946020939093013593505050565b60006020828403121561222e578081fd5b81356120728161298b565b60006020828403121561224a578081fd5b81516120728161298b565b60008060208385031215612267578182fd5b82356001600160401b0381111561227c578283fd5b61228885828601612012565b90969095509350505050565b6000806000806000606086880312156122ab578081fd5b85356001600160401b03808211156122c1578283fd5b6122cd89838a01612012565b909750955060208801359150808211156122e5578283fd5b506122f288828901612012565b96999598509660400135949350505050565b600060208284031215612315578081fd5b5035919050565b600080600060608486031215612330578283fd5b505081359360208301359350604090920135919050565b6000815180845261235f8160208601602086016128b3565b601f01601f19169290920160200192915050565b600081516123858185602086016128b3565b9290920192915050565b8054600090600181811c90808316806123a957607f831692505b60208084108214156123c957634e487b7160e01b86526022600452602486fd5b8180156123dd57600181146123ee5761241b565b60ff1986168952848901965061241b565b60008881526020902060005b868110156124135781548b8201529085019083016123fa565b505084890196505b50505050505092915050565b60008651612439818460208b016128b3565b7f222c20226465736372697074696f6e223a2022506c61794573746174657320469083019081527437bab73234b7339026b2b6b132b9102a37b5b2b71160591b6020820152702c202261747472696275746573223a205b60781b60358201527f7b202274726169745f74797065223a202254696572222c202276616c7565223a604682015261101160f11b60668201526124d6606882018861238f565b62089f4b60ea1b81527f7b202274726169745f74797065223a20224944222c202276616c7565223a20226003820152865190915061251b816023840160208a016128b3565b61262c61261e61261161260b6125ab61259d6125976125486023898b010162089f4b60ea1b815260030190565b7f7b2022646973706c61795f74797065223a20226e756d626572222c202274726181527f69745f74797065223a202247616d6520506c6179222c202276616c7565223a20602082015260400190565b8c612373565b611f4b60f21b815260020190565b7f7b2022646973706c61795f74797065223a20226e756d626572222c202274726181527f69745f74797065223a2022546f6b656e205472616e73616374696f6e222c202260208201526703b30b63ab2911d160c51b604082015260480190565b88612373565b607d60f81b815260010190565b615d7d60f01b815260020190565b9998505050505050505050565b693d913730b6b2911d101160b11b8152865160009061265f81600a850160208c016128b3565b6101d160f51b600a9184019182015261267b600c82018961238f565b905061202360f01b81528651612698816002840160208b016128b3565b6c1116101134b6b0b3b2911d101160991b600292909101918201526126c0600f82018761238f565b731116101132bc3a32b93730b62fbab936111d101160611b815290506126e9601482018661238f565b741116101130b734b6b0ba34b7b72fbab936111d101160591b8152905061262c601582018561238f565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161274b81601d8501602087016128b3565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061278b90830184612347565b9695505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006120726020830184612347565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526025908201527f47656e657369734f776e65724b65793a204d656d626572204d6178696d756d20604082015264131a5b5a5d60da1b606082015260800190565b6000821982111561286457612864612949565b500190565b6000826128785761287861295f565b500490565b600081600019048311821515161561289757612897612949565b500290565b6000828210156128ae576128ae612949565b500390565b60005b838110156128ce5781810151838201526020016128b6565b83811115610fa45750506000910152565b600181811c908216806128f357607f821691505b6020821081141561291457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561292e5761292e612949565b5060010190565b6000826129445761294461295f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146111ba57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220162b4774bfa46cdcc864fe7294165a77eb08b644b52ba011c6cfc1f5dc6f31e964736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001947656e65736973204f776e6572204b6579202d204d6f67756c0000000000000000000000000000000000000000000000000000000000000000000000000000064f574e4b2d4d0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Genesis Owner Key - Mogul
Arg [1] : symbol_ (string): OWNK-M

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [3] : 47656e65736973204f776e6572204b6579202d204d6f67756c00000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 4f574e4b2d4d0000000000000000000000000000000000000000000000000000


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.