ETH Price: $3,434.85 (-1.49%)

Token

BoringNakas (BNAKA)
 

Overview

Max Total Supply

14,405 BNAKA

Holders

2,348

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BNAKA
0xbaf6be60d260d9fcf140ee3954daa25e195cf81d
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:
BoringNakas

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : BoringNakas.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import {UpdatableOperatorFilterer} from "operator-filter-registry/src/UpdatableOperatorFilterer.sol";
import {RevokableDefaultOperatorFilterer} from "operator-filter-registry/src/RevokableDefaultOperatorFilterer.sol";
import "./ERC721R.sol";
import "./lib/PunkVerify.sol";

contract BoringNakas is ERC721r, ERC2981, PunkVerify, Ownable, ReentrancyGuard, RevokableDefaultOperatorFilterer {
    using Strings for uint256; //allows for uint256var.tostring()

    address public constant BPUNKS  = 0x8Ce578bad214D59aEFAFB49bd20408E81271796F;

    uint256 public MAX_MINT_PER_WALLET_SALE = 10;
    uint256 public MAX_MINT_PER_TX = 10;
    uint256 public price = 0.008 ether;
    uint256 public mintCount;
    uint256 public claimCount;

    string private baseURI;

    bool public mintEnabled = false;
    bool public claimEnabled = false;

    mapping(address => uint256) public users;
    mapping(uint256 => bool) public claimed;

    constructor() ERC721r("BoringNakas", "BNAKA", 20_000) PunkVerify(0xC3AA9bc72Bd623168860a1e5c6a4530d3D80456c, 0x00000000000076A84feF008CDAbe6409d2FE638B) {
        _setDefaultRoyalty(0x57220b0f5335A054014808Be12457CD049B3867E, 690);
    }

    function mintSale(uint256 _amount) public payable {
        require(mintEnabled, "Sale is not enabled");
        require(price * _amount <= msg.value, "Not enough ETH");
        require(_amount <= MAX_MINT_PER_TX, "Too many per TX");
        require(mintCount + _amount <= 10000, "Not enough Nakas left for public mint");
        require(users[msg.sender] + _amount <= MAX_MINT_PER_WALLET_SALE,"Exceeds max mint limit per wallet");
        require(msg.sender == tx.origin, "No contracts");
        users[msg.sender] += _amount;
        mintCount += _amount;
        _mintRandomly(msg.sender, _amount);
    }

    function claim(uint256[] calldata punkIds) public {
        require(claimEnabled, "Claim is not enabled");
        uint256 numTokens = punkIds.length;
        require(claimCount + numTokens  <= 10000, "Not enough Nakas left to claim");
        for (uint256 i = 0; i < numTokens; i++) {
            uint256 punkId = punkIds[i];
            require(!claimed[punkId], "Punk already claimed their naka");
            bool boringHolder = verifyTokenOwner(BPUNKS,punkId);
            require(boringHolder, "You don't own this BoringPunk");
            claimed[punkId] = true;
        }
        claimCount += numTokens;
        _mintRandomly(msg.sender, numTokens);
    }

    function checkClaim(uint256 punkId) public view returns (bool) {
        return claimed[punkId];
    }

    function burnBoringBurn(uint256 tokenId) public virtual {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "Not your BoringNaka to burn.");
        _burn(tokenId);
    }

    /// ============ INTERNAL ============
    function _mintRandomly(address to, uint256 amount) internal {
        _mintRandom(to, amount);
    }

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

    /// ============ ONLY OWNER ============
    function setBaseURI(string calldata _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    function toggleSale() external onlyOwner {
        mintEnabled = !mintEnabled;
    }

    function toggleClaim() external onlyOwner {
        claimEnabled = !claimEnabled;
    }

    function setMaxMintPerWalletSale(uint256 _limit) external onlyOwner {
        require(MAX_MINT_PER_WALLET_SALE != _limit, "New limit is the same as the existing one");
        MAX_MINT_PER_WALLET_SALE = _limit;
    }

    function setMaxMintPerTx(uint256 _limit) external onlyOwner {
        require(MAX_MINT_PER_TX != _limit, "New limit is the same as the existing one");
        MAX_MINT_PER_TX = _limit;
    }

    function setPrice(uint256 price_) external onlyOwner {
        price = price_;
    }

    function setRoyalty(address wallet, uint96 perc) external onlyOwner {
        _setDefaultRoyalty(wallet, perc);
    }

    function reserve(address to, uint256 tokenId) external onlyOwner {
        require(_ownerOf(tokenId) == address(0), "Token has been minted.");
        require(mintCount + 1 <= 10000, "Not enough Nakas left to reserve");
        mintCount++;
        _mintAtIndex(to, tokenId);
    }

    function withdraw() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

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

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        ERC721r._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }

    /// ============ OPERATOR FILTER REGISTRY ============
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
    public
    override
    onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function owner() public view override(UpdatableOperatorFilterer, Ownable) returns (address) {
        return Ownable.owner();
    }
}

File 2 of 21 : PunkVerify.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface WarmInterface {
    function ownerOf(
        address contractAddress,
        uint256 tokenId
    ) external view returns (address);
}

interface DelegateCashInterface {
    function checkDelegateForToken(
        address delegate,
        address vault,
        address contract_,
        uint256 tokenId
    ) external view returns (bool);
}

error ZeroAddressCheck();

/**
 * @title PunkVerify - check for token ownership via contract, warm wallet and delegate cash
 * Warm Wallet https://github.com/wenewlabs/public/tree/main/HotWalletProxy
 * Delegate.cash https://github.com/delegatecash/delegation-registry
 */
contract PunkVerify {
    address public immutable WARM_WALLET_CONTRACT;
    address public immutable DELEGATE_CASH_CONTRACT;

    constructor(address _warmWalletContract, address _delegateCashContract) {
        if (
            _warmWalletContract == address(0) ||
            _delegateCashContract == address(0)
        ) revert ZeroAddressCheck();
        WARM_WALLET_CONTRACT = _warmWalletContract;
        DELEGATE_CASH_CONTRACT = _delegateCashContract;
    }

    /**
     * @notice verify contract token based claim using warm wallet and delegate cash
     * @param tokenContract the smart contract address of the token
     * @param tokenId the tokenId
     * @return bool token ownership check
     */
    function verifyTokenOwner(
        address tokenContract,
        uint256 tokenId
    ) internal view returns (bool) {
        address tokenOwner = IERC721(tokenContract).ownerOf(tokenId);
        if (tokenOwner == address(0)) revert ZeroAddressCheck();
        // 1. check contract token owner
        // 2. check warm wallet delegation - ownerOf()
        //      all delegation
        //      is a mapping of token owner's wallet to hot wallet
        //      coldWalletToHotWallet[owner].walletAddress
        // 3. check delegate.cash delegation - checkDelegateForToken()
        //      checks three forms of delegation all, contract, and contract/token id
        return (
            (msg.sender == tokenOwner ||
                msg.sender ==
                WarmInterface(WARM_WALLET_CONTRACT).ownerOf(
                    tokenContract,
                    tokenId
                ) ||
                DelegateCashInterface(DELEGATE_CASH_CONTRACT)
                    .checkDelegateForToken(
                        msg.sender,
                        tokenOwner,
                        tokenContract,
                        tokenId
                    ))
        );
    }

}

File 3 of 21 : ERC721R.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.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, but not including the Enumerable extension. This does random batch minting.
 */
abstract contract ERC721r is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint => uint) private _availableTokens;
    uint256 private _numAvailableTokens;
    uint256 immutable _maxSupply;
    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_, uint maxSupply_) {
        _name = name_;
        _symbol = symbol_;
        _maxSupply = maxSupply_;
        _numAvailableTokens = maxSupply_;
    }

    /**
     * @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);
    }

    function totalSupply() public view virtual returns (uint256) {
        return _maxSupply - _numAvailableTokens;
    }

    function maxSupply() public view virtual returns (uint256) {
        return _maxSupply;
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

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

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

    /**
     * @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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

    function _mintIdWithoutBalanceUpdate(address to, uint256 tokenId) private {
        _beforeTokenTransfer(address(0), to, tokenId);

        _owners[tokenId] = to;

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

    function _mintRandom(address to, uint _numToMint) internal virtual {
        require(_msgSender() == tx.origin, "Contracts cannot mint");
        require(to != address(0), "ERC721: mint to the zero address");
        require(_numToMint > 0, "ERC721r: need to mint at least one token");

        // TODO: Probably don't need this as it will underflow and revert automatically in this case
        require(_numAvailableTokens >= _numToMint, "ERC721r: minting more tokens than available");

        uint updatedNumAvailableTokens = _numAvailableTokens;
        for (uint256 i; i < _numToMint; ++i) {// Do this ++ unchecked?
            uint256 tokenId = getRandomAvailableTokenId(to, updatedNumAvailableTokens);

            _mintIdWithoutBalanceUpdate(to, tokenId);

            --updatedNumAvailableTokens;
        }

        _numAvailableTokens = updatedNumAvailableTokens;
        _balances[to] += _numToMint;
    }

    function getRandomAvailableTokenId(address to, uint updatedNumAvailableTokens)
    internal
    returns (uint256)
    {
        uint256 randomNum = uint256(
            keccak256(
                abi.encode(
                    to,
                    tx.gasprice,
                    block.number,
                    block.timestamp,
                    blockhash(block.number - 1),
                    address(this),
                    updatedNumAvailableTokens
                )
            )
        );
        uint256 randomIndex = randomNum % updatedNumAvailableTokens;
        return getAvailableTokenAtIndex(randomIndex, updatedNumAvailableTokens);
    }

    // Implements https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle. Code taken from CryptoPhunksV2
    function getAvailableTokenAtIndex(uint256 indexToUse, uint updatedNumAvailableTokens)
    internal
    returns (uint256)
    {
        uint256 valAtIndex = _availableTokens[indexToUse];
        uint256 result;
        if (valAtIndex == 0) {
            // This means the index itself is still an available token
            result = indexToUse;
        } else {
            // This means the index itself is not an available token, but the val at that index is.
            result = valAtIndex;
        }

        uint256 lastIndex = updatedNumAvailableTokens - 1;
        uint256 lastValInArray = _availableTokens[lastIndex];
        if (indexToUse != lastIndex) {
            // Replace the value at indexToUse, now that it's been used.
            // Replace it with the data from the last index in the array, since we are going to decrease the array size afterwards.
            if (lastValInArray == 0) {
                // This means the index itself is still an available token
                _availableTokens[indexToUse] = lastIndex;
            } else {
                // This means the index itself is not an available token, but the val at that index is.
                _availableTokens[indexToUse] = lastValInArray;
            }
        }
        if (lastValInArray != 0) {
            // Gas refund courtsey of @dievardump
            delete _availableTokens[lastIndex];
        }

        return result;
    }

    // Not as good as minting a specific tokenId, but will behave the same at the start
    // allowing you to explicitly mint some tokens at launch.
    function _mintAtIndex(address to, uint index) internal virtual {
        require(_msgSender() == tx.origin, "Contracts cannot mint");
        require(to != address(0), "ERC721: mint to the zero address");
        require(_numAvailableTokens >= 1, "ERC721r: minting more tokens than available");

        uint tokenId = getAvailableTokenAtIndex(index, _numAvailableTokens);
        --_numAvailableTokens;

        _mintIdWithoutBalanceUpdate(to, tokenId);

        _balances[to] += 1;
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    function _burn(uint256 tokenId) internal virtual {
        address owner = _ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        _balances[owner] -= 1;

        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }
}

File 4 of 21 : RevokableDefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {RevokableOperatorFilterer} from "./RevokableOperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION, CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  RevokableDefaultOperatorFilterer
 * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription.
 *         Note that OpenSea will disable creator earnings enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 */

abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor()
        RevokableOperatorFilterer(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS, CANONICAL_CORI_SUBSCRIPTION, true)
    {}
}

File 5 of 21 : UpdatableOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  UpdatableOperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the
 *         OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address,
 *         which will bypass registry checks.
 *         Note that OpenSea will still disable creator earnings enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract UpdatableOperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);
    /// @dev Emitted when someone other than the owner is trying to call an only owner function.
    error OnlyOwner();

    event OperatorFilterRegistryAddressUpdated(address newRegistry);

    IOperatorFilterRegistry public operatorFilterRegistry;

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) {
        IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry);
        operatorFilterRegistry = registry;
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(registry).code.length > 0) {
            if (subscribe) {
                registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    registry.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if the operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be bypassed. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public virtual {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
        emit OperatorFilterRegistryAddressUpdated(newRegistry);
    }

    /**
     * @dev Assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract.
     */
    function owner() public view virtual returns (address);

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        IOperatorFilterRegistry registry = operatorFilterRegistry;
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(registry) != address(0) && address(registry).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!registry.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 21 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 10 of 21 : 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 11 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 12 of 21 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 13 of 21 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 14 of 21 : RevokableOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {UpdatableOperatorFilterer} from "./UpdatableOperatorFilterer.sol";
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  RevokableOperatorFilterer
 * @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The
 *         Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at
 *         any point. As implemented, this abstract contract allows the contract owner to permanently skip the
 *         OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry
 *         address cannot be further updated.
 *         Note that OpenSea will still disable creator earnings enforcement if filtered operators begin fulfilling orders
 *         on-chain, eg, if the registry is revoked or bypassed.
 */
abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer {
    /// @dev Emitted when the registry has already been revoked.
    error RegistryHasBeenRevoked();
    /// @dev Emitted when the initial registry address is attempted to be set to the zero address.
    error InitialRegistryAddressCannotBeZeroAddress();

    event OperatorFilterRegistryRevoked();

    bool public isOperatorFilterRegistryRevoked;

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe)
        UpdatableOperatorFilterer(_registry, subscriptionOrRegistrantToCopy, subscribe)
    {
        // don't allow creating a contract with a permanently revoked registry
        if (_registry == address(0)) {
            revert InitialRegistryAddressCannotBeZeroAddress();
        }
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public override {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        // if registry has been revoked, do not allow further updates
        if (isOperatorFilterRegistryRevoked) {
            revert RegistryHasBeenRevoked();
        }

        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
        emit OperatorFilterRegistryAddressUpdated(newRegistry);
    }

    /**
     * @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner.
     */
    function revokeOperatorFilterRegistry() public {
        if (msg.sender != owner()) {
            revert OnlyOwner();
        }
        // if registry has been revoked, do not allow further updates
        if (isOperatorFilterRegistryRevoked) {
            revert RegistryHasBeenRevoked();
        }

        // set to zero address to bypass checks
        operatorFilterRegistry = IOperatorFilterRegistry(address(0));
        isOperatorFilterRegistryRevoked = true;
        emit OperatorFilterRegistryRevoked();
    }
}

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

pragma solidity ^0.8.0;

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

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

File 17 of 21 : 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 18 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 19 of 21 : 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 20 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 21 of 21 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InitialRegistryAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RegistryHasBeenRevoked","type":"error"},{"inputs":[],"name":"ZeroAddressCheck","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":false,"internalType":"address","name":"newRegistry","type":"address"}],"name":"OperatorFilterRegistryAddressUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"OperatorFilterRegistryRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BPUNKS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELEGATE_CASH_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_WALLET_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WARM_WALLET_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"burnBoringBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"punkId","type":"uint256"}],"name":"checkClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"punkIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxMintPerWalletSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint96","name":"perc","type":"uint96"}],"name":"setRoyalty","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":"toggleClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052600a600d819055600e55661c6bf526340000600f556013805461ffff1916905534801562000030575f80fd5b506daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb6600182828273c3aa9bc72bd623168860a1e5c6a4530d3d80456c6d76a84fef008cdabe6409d2fe638b6040518060400160405280600b81526020016a426f72696e674e616b617360a81b81525060405180604001604052806005815260200164424e414b4160d81b815250614e20825f9081620000d39190620004cf565b506001620000e28382620004cf565b50608081905260035550506001600160a01b03821615806200010b57506001600160a01b038116155b156200012a576040516399676b1160e01b815260040160405180910390fd5b6001600160a01b0391821660a0521660c0526200014733620002d9565b6001600b55600c80546001600160a01b0319166001600160a01b03851690811790915583903b156200027b578115620001df57604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b5f604051808303815f87803b158015620001c2575f80fd5b505af1158015620001d5573d5f803e3d5ffd5b505050506200027b565b6001600160a01b03831615620002245760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af290390604401620001aa565b604051632210724360e11b81523060048201526001600160a01b03821690634420e486906024015f604051808303815f87803b15801562000263575f80fd5b505af115801562000276573d5f803e3d5ffd5b505050505b5050506001600160a01b0384169050620002a85760405163c49d17ad60e01b815260040160405180910390fd5b505050620002d37357220b0f5335a054014808be12457cd049b3867e6102b26200032a60201b60201c565b62000597565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b03821611156200039e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003f65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000395565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200045857607f821691505b6020821081036200047757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620004ca575f81815260208120601f850160051c81016020861015620004a55750805b601f850160051c820191505b81811015620004c657828155600101620004b1565b5050505b505050565b81516001600160401b03811115620004eb57620004eb6200042f565b6200050381620004fc845462000443565b846200047d565b602080601f83116001811462000539575f8415620005215750858301515b5f19600386901b1c1916600185901b178555620004c6565b5f85815260208120601f198616915b82811015620005695788860151825594840194600190910190840162000548565b50858210156200058757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c0516130f8620005d75f395f818161080e0152611baa01525f818161042d0152611af201525f818161078c01526109e401526130f85ff3fe60806040526004361061028b575f3560e01c80638da5cb5b11610155578063b8d1e532116100be578063dbe7e3bd11610078578063dbe7e3bd146107b0578063e3483a77146107de578063e454fa7d146107fd578063e985e9c514610830578063ecba222a1461084f578063f2fde38b1461086f575f80fd5b8063b8d1e532146106f4578063c87b56dd14610713578063cc47a40b14610732578063d112974514610751578063d123973014610765578063d5abeb011461077e575f80fd5b80639659867e1161010f5780639659867e14610642578063a035b1fe14610657578063a22cb4651461066c578063a87430ba1461068b578063b0ccc31e146106b6578063b88d4fde146106d5575f80fd5b80638da5cb5b146105a85780638ecad721146105bc5780638f2fc60b146105d1578063900f187a146105f057806391b7f5ed1461060f57806395d89b411461062e575f80fd5b806342842e0e116101f75780636ba4c138116101b15780636ba4c1381461050657806370a0823114610525578063715018a6146105445780637ac2df64146105585780637d8966e41461057f5780638da4d3c914610593575f80fd5b806342842e0e146104635780634875bccb1461048257806355f804b3146104955780635ef9432a146104b4578063616cdb1e146104c85780636352211e146104e7575f80fd5b80631ae10082116102485780631ae100821461038c57806323b872dd146103a15780632866ed21146103c05780632a55205a146103de5780632cd5859e1461041c5780633ccfd60b1461044f575f80fd5b806301ffc9a71461028f57806306fdde03146102c3578063081812fc146102e4578063095ea7b31461031b5780631681d1581461033c57806318160ddd1461036a575b5f80fd5b34801561029a575f80fd5b506102ae6102a93660046128da565b61088e565b60405190151581526020015b60405180910390f35b3480156102ce575f80fd5b506102d761089e565b6040516102ba9190612942565b3480156102ef575f80fd5b506103036102fe366004612954565b61092d565b6040516001600160a01b0390911681526020016102ba565b348015610326575f80fd5b5061033a61033536600461297f565b6109c5565b005b348015610347575f80fd5b506102ae610356366004612954565b5f9081526015602052604090205460ff1690565b348015610375575f80fd5b5061037e6109de565b6040519081526020016102ba565b348015610397575f80fd5b5061037e600d5481565b3480156103ac575f80fd5b5061033a6103bb3660046129a9565b610a12565b3480156103cb575f80fd5b506013546102ae90610100900460ff1681565b3480156103e9575f80fd5b506103fd6103f83660046129e7565b610a3d565b604080516001600160a01b0390931683526020830191909152016102ba565b348015610427575f80fd5b506103037f000000000000000000000000000000000000000000000000000000000000000081565b34801561045a575f80fd5b5061033a610ae7565b34801561046e575f80fd5b5061033a61047d3660046129a9565b610ba1565b61033a610490366004612954565b610bc6565b3480156104a0575f80fd5b5061033a6104af366004612a07565b610e06565b3480156104bf575f80fd5b5061033a610e42565b3480156104d3575f80fd5b5061033a6104e2366004612954565b610ee6565b3480156104f2575f80fd5b50610303610501366004612954565b610f3b565b348015610511575f80fd5b5061033a610520366004612a73565b610fb1565b348015610530575f80fd5b5061037e61053f366004612ad0565b6111a6565b34801561054f575f80fd5b5061033a61122b565b348015610563575f80fd5b50610303738ce578bad214d59aefafb49bd20408e81271796f81565b34801561058a575f80fd5b5061033a611265565b34801561059e575f80fd5b5061037e60115481565b3480156105b3575f80fd5b506103036112a8565b3480156105c7575f80fd5b5061037e600e5481565b3480156105dc575f80fd5b5061033a6105eb366004612aeb565b6112bb565b3480156105fb575f80fd5b5061033a61060a366004612954565b6112f8565b34801561061a575f80fd5b5061033a610629366004612954565b61134d565b348015610639575f80fd5b506102d7611381565b34801561064d575f80fd5b5061037e60105481565b348015610662575f80fd5b5061037e600f5481565b348015610677575f80fd5b5061033a610686366004612b3a565b611390565b348015610696575f80fd5b5061037e6106a5366004612ad0565b60146020525f908152604090205481565b3480156106c1575f80fd5b50600c54610303906001600160a01b031681565b3480156106e0575f80fd5b5061033a6106ef366004612b7a565b6113a4565b3480156106ff575f80fd5b5061033a61070e366004612ad0565b6113d1565b34801561071e575f80fd5b506102d761072d366004612954565b611489565b34801561073d575f80fd5b5061033a61074c36600461297f565b611560565b34801561075c575f80fd5b5061033a61166a565b348015610770575f80fd5b506013546102ae9060ff1681565b348015610789575f80fd5b507f000000000000000000000000000000000000000000000000000000000000000061037e565b3480156107bb575f80fd5b506102ae6107ca366004612954565b60156020525f908152604090205460ff1681565b3480156107e9575f80fd5b5061033a6107f8366004612954565b6116b6565b348015610808575f80fd5b506103037f000000000000000000000000000000000000000000000000000000000000000081565b34801561083b575f80fd5b506102ae61084a366004612c53565b611716565b34801561085a575f80fd5b50600c546102ae90600160a01b900460ff1681565b34801561087a575f80fd5b5061033a610889366004612ad0565b611743565b5f610898826117e0565b92915050565b60605f80546108ac90612c7f565b80601f01602080910402602001604051908101604052809291908181526020018280546108d890612c7f565b80156109235780601f106108fa57610100808354040283529160200191610923565b820191905f5260205f20905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b5f818152600460205260408120546001600160a01b03166109aa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b505f908152600660205260409020546001600160a01b031690565b816109cf81611804565b6109d983836118c3565b505050565b5f6003547f0000000000000000000000000000000000000000000000000000000000000000610a0d9190612ccb565b905090565b826001600160a01b0381163314610a2c57610a2c33611804565b610a378484846119d2565b50505050565b5f8281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ab15750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610acf906001600160601b031687612cde565b610ad99190612d09565b915196919550909350505050565b33610af06112a8565b6001600160a01b031614610b165760405162461bcd60e51b81526004016109a190612d1c565b6040515f90339047908381818185875af1925050503d805f8114610b55576040519150601f19603f3d011682016040523d82523d5f602084013e610b5a565b606091505b5050905080610b9e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109a1565b50565b826001600160a01b0381163314610bbb57610bbb33611804565b610a37848484611a02565b60135460ff16610c0e5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a5cc81b9bdd08195b98589b1959606a1b60448201526064016109a1565b3481600f54610c1d9190612cde565b1115610c5c5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016109a1565b600e54811115610ca05760405162461bcd60e51b815260206004820152600f60248201526e0a8dede40dac2dcf240e0cae440a8b608b1b60448201526064016109a1565b61271081601054610cb19190612d51565b1115610d0d5760405162461bcd60e51b815260206004820152602560248201527f4e6f7420656e6f756768204e616b6173206c65667420666f72207075626c6963604482015264081b5a5b9d60da1b60648201526084016109a1565b600d54335f90815260146020526040902054610d2a908390612d51565b1115610d825760405162461bcd60e51b815260206004820152602160248201527f45786365656473206d6178206d696e74206c696d6974207065722077616c6c656044820152601d60fa1b60648201526084016109a1565b333214610dc05760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016109a1565b335f9081526014602052604081208054839290610dde908490612d51565b925050819055508060105f828254610df69190612d51565b90915550610b9e90503382611a1c565b33610e0f6112a8565b6001600160a01b031614610e355760405162461bcd60e51b81526004016109a190612d1c565b60126109d9828483612db1565b610e4a6112a8565b6001600160a01b0316336001600160a01b031614610e7b57604051635fc483c560e01b815260040160405180910390fd5b600c54600160a01b900460ff1615610ea657604051631551a48f60e11b815260040160405180910390fd5b600c80546001600160a81b031916600160a01b1790556040517f51e2d870cc2e10853e38dc06fcdae46ad3c3f588f326608803dac6204541ad16905f90a1565b33610eef6112a8565b6001600160a01b031614610f155760405162461bcd60e51b81526004016109a190612d1c565b80600e5403610f365760405162461bcd60e51b81526004016109a190612e6c565b600e55565b5f818152600460205260408120546001600160a01b0316806108985760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a1565b601354610100900460ff16610fff5760405162461bcd60e51b815260206004820152601460248201527310db185a5b481a5cc81b9bdd08195b98589b195960621b60448201526064016109a1565b601154819061271090611013908390612d51565b11156110615760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f756768204e616b6173206c65667420746f20636c61696d000060448201526064016109a1565b5f5b81811015611184575f84848381811061107e5761107e612eb5565b602090810292909201355f81815260159093526040909220549192505060ff16156110eb5760405162461bcd60e51b815260206004820152601f60248201527f50756e6b20616c726561647920636c61696d6564207468656972206e616b610060448201526064016109a1565b5f61110a738ce578bad214d59aefafb49bd20408e81271796f83611a26565b9050806111595760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f6e2774206f776e207468697320426f72696e6750756e6b00000060448201526064016109a1565b505f908152601560205260409020805460ff191660011790558061117c81612ec9565b915050611063565b508060115f8282546111969190612d51565b909155506109d990503382611a1c565b5f6001600160a01b0382166112105760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a1565b506001600160a01b03165f9081526005602052604090205490565b336112346112a8565b6001600160a01b03161461125a5760405162461bcd60e51b81526004016109a190612d1c565b6112635f611c1b565b565b3361126e6112a8565b6001600160a01b0316146112945760405162461bcd60e51b81526004016109a190612d1c565b6013805460ff19811660ff90911615179055565b5f610a0d600a546001600160a01b031690565b336112c46112a8565b6001600160a01b0316146112ea5760405162461bcd60e51b81526004016109a190612d1c565b6112f48282611c6c565b5050565b336113016112a8565b6001600160a01b0316146113275760405162461bcd60e51b81526004016109a190612d1c565b80600d54036113485760405162461bcd60e51b81526004016109a190612e6c565b600d55565b336113566112a8565b6001600160a01b03161461137c5760405162461bcd60e51b81526004016109a190612d1c565b600f55565b6060600180546108ac90612c7f565b8161139a81611804565b6109d98383611d69565b836001600160a01b03811633146113be576113be33611804565b6113ca85858585611d74565b5050505050565b6113d96112a8565b6001600160a01b0316336001600160a01b03161461140a57604051635fc483c560e01b815260040160405180910390fd5b600c54600160a01b900460ff161561143557604051631551a48f60e11b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de4769060200160405180910390a150565b5f818152600460205260409020546060906001600160a01b03166115075760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109a1565b5f611510611da6565b90505f81511161152e5760405180602001604052805f815250611559565b8061153884611db5565b604051602001611549929190612ee1565b6040516020818303038152906040525b9392505050565b336115696112a8565b6001600160a01b03161461158f5760405162461bcd60e51b81526004016109a190612d1c565b5f818152600460205260409020546001600160a01b0316156115ec5760405162461bcd60e51b81526020600482015260166024820152752a37b5b2b7103430b9903132b2b71036b4b73a32b21760511b60448201526064016109a1565b61271060105460016115fe9190612d51565b111561164c5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f756768204e616b6173206c65667420746f207265736572766560448201526064016109a1565b60108054905f61165b83612ec9565b91905055506112f48282611eb2565b336116736112a8565b6001600160a01b0316146116995760405162461bcd60e51b81526004016109a190612d1c565b6013805461ff001981166101009182900460ff1615909102179055565b6116c1335b82611fcf565b61170d5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420796f757220426f72696e674e616b6120746f206275726e2e0000000060448201526064016109a1565b610b9e8161209c565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b3361174c6112a8565b6001600160a01b0316146117725760405162461bcd60e51b81526004016109a190612d1c565b6001600160a01b0381166117d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a1565b610b9e81611c1b565b5f6001600160e01b0319821663152a902d60e11b14806108985750610898826120b5565b600c546001600160a01b0316801580159061182857505f816001600160a01b03163b115b156112f457604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015611877573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061189b9190612f1f565b6112f457604051633b79c77360e21b81526001600160a01b03831660048201526024016109a1565b5f6118cd82610f3b565b9050806001600160a01b0316836001600160a01b03160361193a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a1565b336001600160a01b038216148061195657506119568133611716565b6119c85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a1565b6109d98383612104565b6119db336116bb565b6119f75760405162461bcd60e51b81526004016109a190612f3a565b6109d9838383612171565b6109d983838360405180602001604052805f8152506113a4565b6112f48282612309565b6040516331a9108f60e11b8152600481018290525f9081906001600160a01b03851690636352211e90602401602060405180830381865afa158015611a6d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a919190612f8b565b90506001600160a01b038116611aba576040516399676b1160e01b815260040160405180910390fd5b336001600160a01b0382161480611b7057506040516307ca74b760e21b81526001600160a01b038581166004830152602482018590527f00000000000000000000000000000000000000000000000000000000000000001690631f29d2dc90604401602060405180830381865afa158015611b37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b5b9190612f8b565b6001600160a01b0316336001600160a01b0316145b80611c135750604051631574d39f60e31b81523360048201526001600160a01b0382811660248301528581166044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063aba69cf890608401602060405180830381865afa158015611bef573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c139190612f1f565b949350505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b0382161115611cda5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109a1565b6001600160a01b038216611d305760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109a1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6112f4338383612496565b611d7e3383611fcf565b611d9a5760405162461bcd60e51b81526004016109a190612f3a565b610a3784848484612563565b6060601280546108ac90612c7f565b6060815f03611ddb5750506040805180820190915260018152600360fc1b602082015290565b815f5b8115611e045780611dee81612ec9565b9150611dfd9050600a83612d09565b9150611dde565b5f8167ffffffffffffffff811115611e1e57611e1e612b66565b6040519080825280601f01601f191660200182016040528015611e48576020820181803683370190505b5090505b8415611c1357611e5d600183612ccb565b9150611e6a600a86612fa6565b611e75906030612d51565b60f81b818381518110611e8a57611e8a612eb5565b60200101906001600160f81b03191690815f1a905350611eab600a86612d09565b9450611e4c565b333214611ef95760405162461bcd60e51b815260206004820152601560248201527410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b60448201526064016109a1565b6001600160a01b038216611f4f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b60016003541015611f725760405162461bcd60e51b81526004016109a190612fb9565b5f611f7f82600354612596565b905060035f8154611f8f90613004565b90915550611f9d8382612627565b6001600160a01b0383165f908152600560205260408120805460019290611fc5908490612d51565b9091555050505050565b5f818152600460205260408120546001600160a01b03166120475760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a1565b5f61205183610f3b565b9050806001600160a01b0316846001600160a01b0316148061208c5750836001600160a01b03166120818461092d565b6001600160a01b0316145b80611c135750611c138185611716565b6120a58161267f565b5f90815260096020526040812055565b5f6001600160e01b031982166380ac58cd60e01b14806120e557506001600160e01b03198216635b5e139f60e01b145b8061089857506301ffc9a760e01b6001600160e01b0319831614610898565b5f81815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061213882610f3b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b031661218482610f3b565b6001600160a01b0316146121e85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109a1565b6001600160a01b03821661224a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a1565b6122545f82612104565b6001600160a01b0383165f90815260056020526040812080546001929061227c908490612ccb565b90915550506001600160a01b0382165f9081526005602052604081208054600192906122a9908490612d51565b90915550505f8181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b3332146123505760405162461bcd60e51b815260206004820152601560248201527410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b60448201526064016109a1565b6001600160a01b0382166123a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b5f81116124065760405162461bcd60e51b815260206004820152602860248201527f455243373231723a206e65656420746f206d696e74206174206c65617374206f6044820152673732903a37b5b2b760c11b60648201526084016109a1565b8060035410156124285760405162461bcd60e51b81526004016109a190612fb9565b6003545f5b82811015612469575f612440858461273f565b905061244c8582612627565b61245583613004565b9250508061246290612ec9565b905061242d565b5060038190556001600160a01b0383165f9081526005602052604081208054849290611fc5908490612d51565b816001600160a01b0316836001600160a01b0316036124f75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a1565b6001600160a01b038381165f81815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61256e848484612171565b61257a848484846127c8565b610a375760405162461bcd60e51b81526004016109a190613019565b5f82815260026020526040812054818181036125b35750836125b6565b50805b5f6125c2600186612ccb565b5f8181526002602052604090205490915086821461260757805f036125f6575f878152600260205260409020829055612607565b5f8781526002602052604090208190555b801561261c575f828152600260205260408120555b509095945050505050565b5f8181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f818152600460205260409020546001600160a01b031661269f82610f3b565b5f83815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005909152812080549293506001929091906126e6908490612ccb565b90915550505f8281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b5f80833a4342612750600183612ccb565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a08201523060c082015260e081018490526101000160408051601f19818403018152919052805160209091012090505f6127b38483612fa6565b90506127bf8185612596565b95945050505050565b5f6001600160a01b0384163b156128ba57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061280b90339089908890889060040161306b565b6020604051808303815f875af1925050508015612845575060408051601f3d908101601f19168201909252612842918101906130a7565b60015b6128a0573d808015612872576040519150601f19603f3d011682016040523d82523d5f602084013e612877565b606091505b5080515f036128985760405162461bcd60e51b81526004016109a190613019565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c13565b506001949350505050565b6001600160e01b031981168114610b9e575f80fd5b5f602082840312156128ea575f80fd5b8135611559816128c5565b5f5b8381101561290f5781810151838201526020016128f7565b50505f910152565b5f815180845261292e8160208601602086016128f5565b601f01601f19169290920160200192915050565b602081525f6115596020830184612917565b5f60208284031215612964575f80fd5b5035919050565b6001600160a01b0381168114610b9e575f80fd5b5f8060408385031215612990575f80fd5b823561299b8161296b565b946020939093013593505050565b5f805f606084860312156129bb575f80fd5b83356129c68161296b565b925060208401356129d68161296b565b929592945050506040919091013590565b5f80604083850312156129f8575f80fd5b50508035926020909101359150565b5f8060208385031215612a18575f80fd5b823567ffffffffffffffff80821115612a2f575f80fd5b818501915085601f830112612a42575f80fd5b813581811115612a50575f80fd5b866020828501011115612a61575f80fd5b60209290920196919550909350505050565b5f8060208385031215612a84575f80fd5b823567ffffffffffffffff80821115612a9b575f80fd5b818501915085601f830112612aae575f80fd5b813581811115612abc575f80fd5b8660208260051b8501011115612a61575f80fd5b5f60208284031215612ae0575f80fd5b81356115598161296b565b5f8060408385031215612afc575f80fd5b8235612b078161296b565b915060208301356001600160601b0381168114612b22575f80fd5b809150509250929050565b8015158114610b9e575f80fd5b5f8060408385031215612b4b575f80fd5b8235612b568161296b565b91506020830135612b2281612b2d565b634e487b7160e01b5f52604160045260245ffd5b5f805f8060808587031215612b8d575f80fd5b8435612b988161296b565b93506020850135612ba88161296b565b925060408501359150606085013567ffffffffffffffff80821115612bcb575f80fd5b818701915087601f830112612bde575f80fd5b813581811115612bf057612bf0612b66565b604051601f8201601f19908116603f01168101908382118183101715612c1857612c18612b66565b816040528281528a6020848701011115612c30575f80fd5b826020860160208301375f60208483010152809550505050505092959194509250565b5f8060408385031215612c64575f80fd5b8235612c6f8161296b565b91506020830135612b228161296b565b600181811c90821680612c9357607f821691505b602082108103612cb157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561089857610898612cb7565b808202811582820484141761089857610898612cb7565b634e487b7160e01b5f52601260045260245ffd5b5f82612d1757612d17612cf5565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8082018082111561089857610898612cb7565b601f8211156109d9575f81815260208120601f850160051c81016020861015612d8a5750805b601f850160051c820191505b81811015612da957828155600101612d96565b505050505050565b67ffffffffffffffff831115612dc957612dc9612b66565b612ddd83612dd78354612c7f565b83612d64565b5f601f841160018114612e0e575f8515612df75750838201355b5f19600387901b1c1916600186901b1783556113ca565b5f83815260209020601f19861690835b82811015612e3e5786850135825560209485019460019092019101612e1e565b5086821015612e5a575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526029908201527f4e6577206c696d6974206973207468652073616d6520617320746865206578696040820152687374696e67206f6e6560b81b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b5f60018201612eda57612eda612cb7565b5060010190565b5f8351612ef28184602088016128f5565b835190830190612f068183602088016128f5565b64173539b7b760d91b9101908152600501949350505050565b5f60208284031215612f2f575f80fd5b815161155981612b2d565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b5f60208284031215612f9b575f80fd5b81516115598161296b565b5f82612fb457612fb4612cf5565b500690565b6020808252602b908201527f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686160408201526a6e20617661696c61626c6560a81b606082015260800190565b5f8161301257613012612cb7565b505f190190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061309d90830184612917565b9695505050505050565b5f602082840312156130b7575f80fd5b8151611559816128c556fea2646970667358221220f94590a56c7167c5007b8d6f6dcdee8a82798f63795067ee6800c4bab2a4fc2864736f6c63430008140033

Deployed Bytecode

0x60806040526004361061028b575f3560e01c80638da5cb5b11610155578063b8d1e532116100be578063dbe7e3bd11610078578063dbe7e3bd146107b0578063e3483a77146107de578063e454fa7d146107fd578063e985e9c514610830578063ecba222a1461084f578063f2fde38b1461086f575f80fd5b8063b8d1e532146106f4578063c87b56dd14610713578063cc47a40b14610732578063d112974514610751578063d123973014610765578063d5abeb011461077e575f80fd5b80639659867e1161010f5780639659867e14610642578063a035b1fe14610657578063a22cb4651461066c578063a87430ba1461068b578063b0ccc31e146106b6578063b88d4fde146106d5575f80fd5b80638da5cb5b146105a85780638ecad721146105bc5780638f2fc60b146105d1578063900f187a146105f057806391b7f5ed1461060f57806395d89b411461062e575f80fd5b806342842e0e116101f75780636ba4c138116101b15780636ba4c1381461050657806370a0823114610525578063715018a6146105445780637ac2df64146105585780637d8966e41461057f5780638da4d3c914610593575f80fd5b806342842e0e146104635780634875bccb1461048257806355f804b3146104955780635ef9432a146104b4578063616cdb1e146104c85780636352211e146104e7575f80fd5b80631ae10082116102485780631ae100821461038c57806323b872dd146103a15780632866ed21146103c05780632a55205a146103de5780632cd5859e1461041c5780633ccfd60b1461044f575f80fd5b806301ffc9a71461028f57806306fdde03146102c3578063081812fc146102e4578063095ea7b31461031b5780631681d1581461033c57806318160ddd1461036a575b5f80fd5b34801561029a575f80fd5b506102ae6102a93660046128da565b61088e565b60405190151581526020015b60405180910390f35b3480156102ce575f80fd5b506102d761089e565b6040516102ba9190612942565b3480156102ef575f80fd5b506103036102fe366004612954565b61092d565b6040516001600160a01b0390911681526020016102ba565b348015610326575f80fd5b5061033a61033536600461297f565b6109c5565b005b348015610347575f80fd5b506102ae610356366004612954565b5f9081526015602052604090205460ff1690565b348015610375575f80fd5b5061037e6109de565b6040519081526020016102ba565b348015610397575f80fd5b5061037e600d5481565b3480156103ac575f80fd5b5061033a6103bb3660046129a9565b610a12565b3480156103cb575f80fd5b506013546102ae90610100900460ff1681565b3480156103e9575f80fd5b506103fd6103f83660046129e7565b610a3d565b604080516001600160a01b0390931683526020830191909152016102ba565b348015610427575f80fd5b506103037f000000000000000000000000c3aa9bc72bd623168860a1e5c6a4530d3d80456c81565b34801561045a575f80fd5b5061033a610ae7565b34801561046e575f80fd5b5061033a61047d3660046129a9565b610ba1565b61033a610490366004612954565b610bc6565b3480156104a0575f80fd5b5061033a6104af366004612a07565b610e06565b3480156104bf575f80fd5b5061033a610e42565b3480156104d3575f80fd5b5061033a6104e2366004612954565b610ee6565b3480156104f2575f80fd5b50610303610501366004612954565b610f3b565b348015610511575f80fd5b5061033a610520366004612a73565b610fb1565b348015610530575f80fd5b5061037e61053f366004612ad0565b6111a6565b34801561054f575f80fd5b5061033a61122b565b348015610563575f80fd5b50610303738ce578bad214d59aefafb49bd20408e81271796f81565b34801561058a575f80fd5b5061033a611265565b34801561059e575f80fd5b5061037e60115481565b3480156105b3575f80fd5b506103036112a8565b3480156105c7575f80fd5b5061037e600e5481565b3480156105dc575f80fd5b5061033a6105eb366004612aeb565b6112bb565b3480156105fb575f80fd5b5061033a61060a366004612954565b6112f8565b34801561061a575f80fd5b5061033a610629366004612954565b61134d565b348015610639575f80fd5b506102d7611381565b34801561064d575f80fd5b5061037e60105481565b348015610662575f80fd5b5061037e600f5481565b348015610677575f80fd5b5061033a610686366004612b3a565b611390565b348015610696575f80fd5b5061037e6106a5366004612ad0565b60146020525f908152604090205481565b3480156106c1575f80fd5b50600c54610303906001600160a01b031681565b3480156106e0575f80fd5b5061033a6106ef366004612b7a565b6113a4565b3480156106ff575f80fd5b5061033a61070e366004612ad0565b6113d1565b34801561071e575f80fd5b506102d761072d366004612954565b611489565b34801561073d575f80fd5b5061033a61074c36600461297f565b611560565b34801561075c575f80fd5b5061033a61166a565b348015610770575f80fd5b506013546102ae9060ff1681565b348015610789575f80fd5b507f0000000000000000000000000000000000000000000000000000000000004e2061037e565b3480156107bb575f80fd5b506102ae6107ca366004612954565b60156020525f908152604090205460ff1681565b3480156107e9575f80fd5b5061033a6107f8366004612954565b6116b6565b348015610808575f80fd5b506103037f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b81565b34801561083b575f80fd5b506102ae61084a366004612c53565b611716565b34801561085a575f80fd5b50600c546102ae90600160a01b900460ff1681565b34801561087a575f80fd5b5061033a610889366004612ad0565b611743565b5f610898826117e0565b92915050565b60605f80546108ac90612c7f565b80601f01602080910402602001604051908101604052809291908181526020018280546108d890612c7f565b80156109235780601f106108fa57610100808354040283529160200191610923565b820191905f5260205f20905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b5f818152600460205260408120546001600160a01b03166109aa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b505f908152600660205260409020546001600160a01b031690565b816109cf81611804565b6109d983836118c3565b505050565b5f6003547f0000000000000000000000000000000000000000000000000000000000004e20610a0d9190612ccb565b905090565b826001600160a01b0381163314610a2c57610a2c33611804565b610a378484846119d2565b50505050565b5f8281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ab15750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610acf906001600160601b031687612cde565b610ad99190612d09565b915196919550909350505050565b33610af06112a8565b6001600160a01b031614610b165760405162461bcd60e51b81526004016109a190612d1c565b6040515f90339047908381818185875af1925050503d805f8114610b55576040519150601f19603f3d011682016040523d82523d5f602084013e610b5a565b606091505b5050905080610b9e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109a1565b50565b826001600160a01b0381163314610bbb57610bbb33611804565b610a37848484611a02565b60135460ff16610c0e5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a5cc81b9bdd08195b98589b1959606a1b60448201526064016109a1565b3481600f54610c1d9190612cde565b1115610c5c5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016109a1565b600e54811115610ca05760405162461bcd60e51b815260206004820152600f60248201526e0a8dede40dac2dcf240e0cae440a8b608b1b60448201526064016109a1565b61271081601054610cb19190612d51565b1115610d0d5760405162461bcd60e51b815260206004820152602560248201527f4e6f7420656e6f756768204e616b6173206c65667420666f72207075626c6963604482015264081b5a5b9d60da1b60648201526084016109a1565b600d54335f90815260146020526040902054610d2a908390612d51565b1115610d825760405162461bcd60e51b815260206004820152602160248201527f45786365656473206d6178206d696e74206c696d6974207065722077616c6c656044820152601d60fa1b60648201526084016109a1565b333214610dc05760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016109a1565b335f9081526014602052604081208054839290610dde908490612d51565b925050819055508060105f828254610df69190612d51565b90915550610b9e90503382611a1c565b33610e0f6112a8565b6001600160a01b031614610e355760405162461bcd60e51b81526004016109a190612d1c565b60126109d9828483612db1565b610e4a6112a8565b6001600160a01b0316336001600160a01b031614610e7b57604051635fc483c560e01b815260040160405180910390fd5b600c54600160a01b900460ff1615610ea657604051631551a48f60e11b815260040160405180910390fd5b600c80546001600160a81b031916600160a01b1790556040517f51e2d870cc2e10853e38dc06fcdae46ad3c3f588f326608803dac6204541ad16905f90a1565b33610eef6112a8565b6001600160a01b031614610f155760405162461bcd60e51b81526004016109a190612d1c565b80600e5403610f365760405162461bcd60e51b81526004016109a190612e6c565b600e55565b5f818152600460205260408120546001600160a01b0316806108985760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a1565b601354610100900460ff16610fff5760405162461bcd60e51b815260206004820152601460248201527310db185a5b481a5cc81b9bdd08195b98589b195960621b60448201526064016109a1565b601154819061271090611013908390612d51565b11156110615760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f756768204e616b6173206c65667420746f20636c61696d000060448201526064016109a1565b5f5b81811015611184575f84848381811061107e5761107e612eb5565b602090810292909201355f81815260159093526040909220549192505060ff16156110eb5760405162461bcd60e51b815260206004820152601f60248201527f50756e6b20616c726561647920636c61696d6564207468656972206e616b610060448201526064016109a1565b5f61110a738ce578bad214d59aefafb49bd20408e81271796f83611a26565b9050806111595760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f6e2774206f776e207468697320426f72696e6750756e6b00000060448201526064016109a1565b505f908152601560205260409020805460ff191660011790558061117c81612ec9565b915050611063565b508060115f8282546111969190612d51565b909155506109d990503382611a1c565b5f6001600160a01b0382166112105760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a1565b506001600160a01b03165f9081526005602052604090205490565b336112346112a8565b6001600160a01b03161461125a5760405162461bcd60e51b81526004016109a190612d1c565b6112635f611c1b565b565b3361126e6112a8565b6001600160a01b0316146112945760405162461bcd60e51b81526004016109a190612d1c565b6013805460ff19811660ff90911615179055565b5f610a0d600a546001600160a01b031690565b336112c46112a8565b6001600160a01b0316146112ea5760405162461bcd60e51b81526004016109a190612d1c565b6112f48282611c6c565b5050565b336113016112a8565b6001600160a01b0316146113275760405162461bcd60e51b81526004016109a190612d1c565b80600d54036113485760405162461bcd60e51b81526004016109a190612e6c565b600d55565b336113566112a8565b6001600160a01b03161461137c5760405162461bcd60e51b81526004016109a190612d1c565b600f55565b6060600180546108ac90612c7f565b8161139a81611804565b6109d98383611d69565b836001600160a01b03811633146113be576113be33611804565b6113ca85858585611d74565b5050505050565b6113d96112a8565b6001600160a01b0316336001600160a01b03161461140a57604051635fc483c560e01b815260040160405180910390fd5b600c54600160a01b900460ff161561143557604051631551a48f60e11b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de4769060200160405180910390a150565b5f818152600460205260409020546060906001600160a01b03166115075760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109a1565b5f611510611da6565b90505f81511161152e5760405180602001604052805f815250611559565b8061153884611db5565b604051602001611549929190612ee1565b6040516020818303038152906040525b9392505050565b336115696112a8565b6001600160a01b03161461158f5760405162461bcd60e51b81526004016109a190612d1c565b5f818152600460205260409020546001600160a01b0316156115ec5760405162461bcd60e51b81526020600482015260166024820152752a37b5b2b7103430b9903132b2b71036b4b73a32b21760511b60448201526064016109a1565b61271060105460016115fe9190612d51565b111561164c5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f756768204e616b6173206c65667420746f207265736572766560448201526064016109a1565b60108054905f61165b83612ec9565b91905055506112f48282611eb2565b336116736112a8565b6001600160a01b0316146116995760405162461bcd60e51b81526004016109a190612d1c565b6013805461ff001981166101009182900460ff1615909102179055565b6116c1335b82611fcf565b61170d5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420796f757220426f72696e674e616b6120746f206275726e2e0000000060448201526064016109a1565b610b9e8161209c565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b3361174c6112a8565b6001600160a01b0316146117725760405162461bcd60e51b81526004016109a190612d1c565b6001600160a01b0381166117d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a1565b610b9e81611c1b565b5f6001600160e01b0319821663152a902d60e11b14806108985750610898826120b5565b600c546001600160a01b0316801580159061182857505f816001600160a01b03163b115b156112f457604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015611877573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061189b9190612f1f565b6112f457604051633b79c77360e21b81526001600160a01b03831660048201526024016109a1565b5f6118cd82610f3b565b9050806001600160a01b0316836001600160a01b03160361193a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a1565b336001600160a01b038216148061195657506119568133611716565b6119c85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a1565b6109d98383612104565b6119db336116bb565b6119f75760405162461bcd60e51b81526004016109a190612f3a565b6109d9838383612171565b6109d983838360405180602001604052805f8152506113a4565b6112f48282612309565b6040516331a9108f60e11b8152600481018290525f9081906001600160a01b03851690636352211e90602401602060405180830381865afa158015611a6d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a919190612f8b565b90506001600160a01b038116611aba576040516399676b1160e01b815260040160405180910390fd5b336001600160a01b0382161480611b7057506040516307ca74b760e21b81526001600160a01b038581166004830152602482018590527f000000000000000000000000c3aa9bc72bd623168860a1e5c6a4530d3d80456c1690631f29d2dc90604401602060405180830381865afa158015611b37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b5b9190612f8b565b6001600160a01b0316336001600160a01b0316145b80611c135750604051631574d39f60e31b81523360048201526001600160a01b0382811660248301528581166044830152606482018590527f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b169063aba69cf890608401602060405180830381865afa158015611bef573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c139190612f1f565b949350505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b0382161115611cda5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109a1565b6001600160a01b038216611d305760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109a1565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6112f4338383612496565b611d7e3383611fcf565b611d9a5760405162461bcd60e51b81526004016109a190612f3a565b610a3784848484612563565b6060601280546108ac90612c7f565b6060815f03611ddb5750506040805180820190915260018152600360fc1b602082015290565b815f5b8115611e045780611dee81612ec9565b9150611dfd9050600a83612d09565b9150611dde565b5f8167ffffffffffffffff811115611e1e57611e1e612b66565b6040519080825280601f01601f191660200182016040528015611e48576020820181803683370190505b5090505b8415611c1357611e5d600183612ccb565b9150611e6a600a86612fa6565b611e75906030612d51565b60f81b818381518110611e8a57611e8a612eb5565b60200101906001600160f81b03191690815f1a905350611eab600a86612d09565b9450611e4c565b333214611ef95760405162461bcd60e51b815260206004820152601560248201527410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b60448201526064016109a1565b6001600160a01b038216611f4f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b60016003541015611f725760405162461bcd60e51b81526004016109a190612fb9565b5f611f7f82600354612596565b905060035f8154611f8f90613004565b90915550611f9d8382612627565b6001600160a01b0383165f908152600560205260408120805460019290611fc5908490612d51565b9091555050505050565b5f818152600460205260408120546001600160a01b03166120475760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a1565b5f61205183610f3b565b9050806001600160a01b0316846001600160a01b0316148061208c5750836001600160a01b03166120818461092d565b6001600160a01b0316145b80611c135750611c138185611716565b6120a58161267f565b5f90815260096020526040812055565b5f6001600160e01b031982166380ac58cd60e01b14806120e557506001600160e01b03198216635b5e139f60e01b145b8061089857506301ffc9a760e01b6001600160e01b0319831614610898565b5f81815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061213882610f3b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b031661218482610f3b565b6001600160a01b0316146121e85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109a1565b6001600160a01b03821661224a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a1565b6122545f82612104565b6001600160a01b0383165f90815260056020526040812080546001929061227c908490612ccb565b90915550506001600160a01b0382165f9081526005602052604081208054600192906122a9908490612d51565b90915550505f8181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b3332146123505760405162461bcd60e51b815260206004820152601560248201527410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b60448201526064016109a1565b6001600160a01b0382166123a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b5f81116124065760405162461bcd60e51b815260206004820152602860248201527f455243373231723a206e65656420746f206d696e74206174206c65617374206f6044820152673732903a37b5b2b760c11b60648201526084016109a1565b8060035410156124285760405162461bcd60e51b81526004016109a190612fb9565b6003545f5b82811015612469575f612440858461273f565b905061244c8582612627565b61245583613004565b9250508061246290612ec9565b905061242d565b5060038190556001600160a01b0383165f9081526005602052604081208054849290611fc5908490612d51565b816001600160a01b0316836001600160a01b0316036124f75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a1565b6001600160a01b038381165f81815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61256e848484612171565b61257a848484846127c8565b610a375760405162461bcd60e51b81526004016109a190613019565b5f82815260026020526040812054818181036125b35750836125b6565b50805b5f6125c2600186612ccb565b5f8181526002602052604090205490915086821461260757805f036125f6575f878152600260205260409020829055612607565b5f8781526002602052604090208190555b801561261c575f828152600260205260408120555b509095945050505050565b5f8181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f818152600460205260409020546001600160a01b031661269f82610f3b565b5f83815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005909152812080549293506001929091906126e6908490612ccb565b90915550505f8281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b5f80833a4342612750600183612ccb565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a08201523060c082015260e081018490526101000160408051601f19818403018152919052805160209091012090505f6127b38483612fa6565b90506127bf8185612596565b95945050505050565b5f6001600160a01b0384163b156128ba57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061280b90339089908890889060040161306b565b6020604051808303815f875af1925050508015612845575060408051601f3d908101601f19168201909252612842918101906130a7565b60015b6128a0573d808015612872576040519150601f19603f3d011682016040523d82523d5f602084013e612877565b606091505b5080515f036128985760405162461bcd60e51b81526004016109a190613019565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c13565b506001949350505050565b6001600160e01b031981168114610b9e575f80fd5b5f602082840312156128ea575f80fd5b8135611559816128c5565b5f5b8381101561290f5781810151838201526020016128f7565b50505f910152565b5f815180845261292e8160208601602086016128f5565b601f01601f19169290920160200192915050565b602081525f6115596020830184612917565b5f60208284031215612964575f80fd5b5035919050565b6001600160a01b0381168114610b9e575f80fd5b5f8060408385031215612990575f80fd5b823561299b8161296b565b946020939093013593505050565b5f805f606084860312156129bb575f80fd5b83356129c68161296b565b925060208401356129d68161296b565b929592945050506040919091013590565b5f80604083850312156129f8575f80fd5b50508035926020909101359150565b5f8060208385031215612a18575f80fd5b823567ffffffffffffffff80821115612a2f575f80fd5b818501915085601f830112612a42575f80fd5b813581811115612a50575f80fd5b866020828501011115612a61575f80fd5b60209290920196919550909350505050565b5f8060208385031215612a84575f80fd5b823567ffffffffffffffff80821115612a9b575f80fd5b818501915085601f830112612aae575f80fd5b813581811115612abc575f80fd5b8660208260051b8501011115612a61575f80fd5b5f60208284031215612ae0575f80fd5b81356115598161296b565b5f8060408385031215612afc575f80fd5b8235612b078161296b565b915060208301356001600160601b0381168114612b22575f80fd5b809150509250929050565b8015158114610b9e575f80fd5b5f8060408385031215612b4b575f80fd5b8235612b568161296b565b91506020830135612b2281612b2d565b634e487b7160e01b5f52604160045260245ffd5b5f805f8060808587031215612b8d575f80fd5b8435612b988161296b565b93506020850135612ba88161296b565b925060408501359150606085013567ffffffffffffffff80821115612bcb575f80fd5b818701915087601f830112612bde575f80fd5b813581811115612bf057612bf0612b66565b604051601f8201601f19908116603f01168101908382118183101715612c1857612c18612b66565b816040528281528a6020848701011115612c30575f80fd5b826020860160208301375f60208483010152809550505050505092959194509250565b5f8060408385031215612c64575f80fd5b8235612c6f8161296b565b91506020830135612b228161296b565b600181811c90821680612c9357607f821691505b602082108103612cb157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561089857610898612cb7565b808202811582820484141761089857610898612cb7565b634e487b7160e01b5f52601260045260245ffd5b5f82612d1757612d17612cf5565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8082018082111561089857610898612cb7565b601f8211156109d9575f81815260208120601f850160051c81016020861015612d8a5750805b601f850160051c820191505b81811015612da957828155600101612d96565b505050505050565b67ffffffffffffffff831115612dc957612dc9612b66565b612ddd83612dd78354612c7f565b83612d64565b5f601f841160018114612e0e575f8515612df75750838201355b5f19600387901b1c1916600186901b1783556113ca565b5f83815260209020601f19861690835b82811015612e3e5786850135825560209485019460019092019101612e1e565b5086821015612e5a575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526029908201527f4e6577206c696d6974206973207468652073616d6520617320746865206578696040820152687374696e67206f6e6560b81b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b5f60018201612eda57612eda612cb7565b5060010190565b5f8351612ef28184602088016128f5565b835190830190612f068183602088016128f5565b64173539b7b760d91b9101908152600501949350505050565b5f60208284031215612f2f575f80fd5b815161155981612b2d565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b5f60208284031215612f9b575f80fd5b81516115598161296b565b5f82612fb457612fb4612cf5565b500690565b6020808252602b908201527f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686160408201526a6e20617661696c61626c6560a81b606082015260800190565b5f8161301257613012612cb7565b505f190190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061309d90830184612917565b9695505050505050565b5f602082840312156130b7575f80fd5b8151611559816128c556fea2646970667358221220f94590a56c7167c5007b8d6f6dcdee8a82798f63795067ee6800c4bab2a4fc2864736f6c63430008140033

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.