Address Details
contract

0x53F1d1AC2ae998A52BbdCd1Cbe2bb609250d7d47

Contract Name
StarNFT
Creator
0x7d6740–c9cfce at 0xe717fa–cdd05b
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
9010704
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
StarNFT




Optimization enabled
true
Compiler version
v0.8.10+commit.fc410830




Optimization runs
200
EVM Version
london




Verified at
2022-06-16T06:21:14.463898Z

contracts/StarNFT.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract StarNFT is Initializable, ContextUpgradeable, OwnableUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable, IERC721EnumerableUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;
    // auto increasement tokenids
    using CountersUpgradeable for CountersUpgradeable.Counter;
    CountersUpgradeable.Counter private tokenIds;

    // Token name
    string private _name;
    // Token symbol
    string private _symbol;
    // Token base uri
    string baseURI;
    // logic contract
    address logic;
    // Token struct
    struct Token {
        address owner;
        uint256 cateId;
        uint256 lastBlock;
    }

    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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


    // Mapping from token ID to owner address
    mapping (uint256 => Token) public tokenInfo;

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

    // Mapping from cate to token uri
    mapping (uint256 => string) public cateUri;
    
    function initialize(string memory name_, string memory symbol_) public initializer {
        __ERC721_init(name_, symbol_);
    }

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = tokenInfo[tokenId].owner;
        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");
        return bytes(baseURI).length > 0
            ? string(abi.encodePacked(baseURI, cateUri[tokenInfo[tokenId].cateId]))
            : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty 
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return baseURI;
    }

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

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

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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


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

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

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

    function mint(address owner, uint256 _cateId)  public onlyLogic returns (uint256) {
        tokenIds.increment();
        uint256 _tokenId = tokenIds.current();
        _safeMint(owner, _tokenId);
        tokenInfo[_tokenId].cateId = _cateId;
        tokenInfo[_tokenId].lastBlock = block.number;
        return _tokenId;
    }

    function massVerifyOwner(address owner, uint256[] memory _tokenIds) view public returns (bool) {
        for (uint256 i = 0 ; i < _tokenIds.length; i ++) {
            if (ownerOf(_tokenIds[i]) != owner) return false;
        }
       return true;
    }

    function massBurn(uint256[] memory _tokenIds) public onlyLogic {
        for (uint256 i = 0 ; i < _tokenIds.length; i ++) {
            _burn(_tokenIds[i]);
        }
    }

    function setCateURI(uint256 _cateId, string memory _cateUri) public virtual onlyLogic {
        require(bytes(_cateUri).length > 0, "uri is empty");
        cateUri[_cateId] = _cateUri;
    }
    
    function setLogic(address _logic) public virtual onlyOwner {
        require(address(0) != _logic);
        logic = _logic;
    }

    function setBaseURI(string memory _newBaseURI) public virtual onlyOwner {
        baseURI = _newBaseURI;
    }

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 tokenInfo[tokenId].owner != 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 = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

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

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

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

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

        _balances[to] += 1;
        tokenInfo[tokenId].owner = to;

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        tokenInfo[tokenId].owner = to;

        emit Transfer(from, to, tokenId);
    }

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

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

    modifier onlyLogic() {
        require(logic == _msgSender(), "ERC721: not allowed to access");
        _;
    }
    /**
     * @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 {
         if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }
    uint256[44] private __gap;
}
        

/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _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);
    }
    uint256[49] private __gap;
}
          

/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}
          

/_openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 IERC721ReceiverUpgradeable {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}
          

/_openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

/_openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

/_openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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);
}
          

/_openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

/_openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}
          

/_openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 CountersUpgradeable {
    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;
    }
}
          

/_openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

/_openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}
          

/_openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 IERC165Upgradeable {
    /**
     * @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);
}
          

Contract ABI

[{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"cateUri","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massBurn","inputs":[{"type":"uint256[]","name":"_tokenIds","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"massVerifyOwner","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256[]","name":"_tokenIds","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mint","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"_cateId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseURI","inputs":[{"type":"string","name":"_newBaseURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCateURI","inputs":[{"type":"uint256","name":"_cateId","internalType":"uint256"},{"type":"string","name":"_cateUri","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLogic","inputs":[{"type":"address","name":"_logic","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"cateId","internalType":"uint256"},{"type":"uint256","name":"lastBlock","internalType":"uint256"}],"name":"tokenInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b5061238b806100206000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063b1d7302611610097578063cc33c87511610071578063cc33c875146103a9578063cd846f1114610407578063e985e9c51461041a578063f2fde38b1461045657600080fd5b8063b1d7302614610370578063b88d4fde14610383578063c87b56dd1461039657600080fd5b80638da5cb5b116100d35780638da5cb5b1461033157806395d89b4114610342578063a22cb4651461034a578063adc84d2e1461035d57600080fd5b806370a0823114610303578063715018a614610316578063718570001461031e57600080fd5b806340c10f19116101665780634f69b862116101405780634f69b862146102b75780634f6ccce7146102ca57806355f804b3146102dd5780636352211e146102f057600080fd5b806340c10f191461027e57806342842e0e146102915780634cd88b76146102a457600080fd5b8063095ea7b3116101a2578063095ea7b31461023157806318160ddd1461024657806323b872dd146102585780632f745c591461026b57600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611b75565b610469565b60405190151581526020015b60405180910390f35b6101f96104bb565b6040516101e89190611be6565b610219610214366004611bf9565b61054d565b6040516001600160a01b0390911681526020016101e8565b61024461023f366004611c2e565b6105e7565b005b609e545b6040519081526020016101e8565b610244610266366004611c58565b6106fd565b61024a610279366004611c2e565b61072e565b61024a61028c366004611c2e565b6107c4565b61024461029f366004611c58565b61083a565b6102446102b2366004611d53565b610855565b6101dc6102c5366004611e37565b6108cc565b61024a6102d8366004611bf9565b610939565b6102446102eb366004611e7b565b6109cc565b6102196102fe366004611bf9565b610a0d565b61024a610311366004611eb0565b610a84565b610244610b0b565b61024461032c366004611eb0565b610b41565b6033546001600160a01b0316610219565b6101f9610ba0565b610244610358366004611ecb565b610baf565b61024461036b366004611f07565b610c74565b61024461037e366004611f44565b610cfd565b610244610391366004611f79565b610d67565b6101f96103a4366004611bf9565b610d9f565b6103e26103b7366004611bf9565b60a0602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b604080516001600160a01b0390941684526020840192909252908201526060016101e8565b6101f9610415366004611bf9565b610e8e565b6101dc610428366004611ff5565b6001600160a01b03918216600090815260a36020908152604080832093909416825291909152205460ff1690565b610244610464366004611eb0565b610f28565b60006001600160e01b031982166380ac58cd60e01b148061049a57506001600160e01b03198216635b5e139f60e01b145b806104b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060609880546104ca90612028565b80601f01602080910402602001604051908101604052809291908181526020018280546104f690612028565b80156105435780601f1061051857610100808354040283529160200191610543565b820191906000526020600020905b81548152906001019060200180831161052657829003601f168201915b5050505050905090565b600081815260a060205260408120546001600160a01b03166105cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815260a260205260409020546001600160a01b031690565b60006105f282610a0d565b9050806001600160a01b0316836001600160a01b031614156106605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105c2565b336001600160a01b038216148061067c575061067c8133610428565b6106ee5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105c2565b6106f88383610fc3565b505050565b6107073382611031565b6107235760405162461bcd60e51b81526004016105c290612063565b6106f8838383611128565b600061073983610a84565b821061079b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105c2565b506001600160a01b03919091166000908152609c60209081526040808320938352929052205490565b609b546000906001600160a01b031633146107f15760405162461bcd60e51b81526004016105c2906120b4565b6107ff609780546001019055565b600061080a60975490565b905061081684826112d3565b600081815260a0602052604090206001810184905543600290910155905092915050565b6106f883838360405180602001604052806000815250610d67565b600054610100900460ff168061086e575060005460ff16155b61088a5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff161580156108ac576000805461ffff19166101011790555b6108b683836112ed565b80156106f8576000805461ff0019169055505050565b6000805b825181101561092f57836001600160a01b03166109058483815181106108f8576108f8612139565b6020026020010151610a0d565b6001600160a01b03161461091d5760009150506104b5565b8061092781612165565b9150506108d0565b5060019392505050565b6000610944609e5490565b82106109a75760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105c2565b609e82815481106109ba576109ba612139565b90600052602060002001549050919050565b6033546001600160a01b031633146109f65760405162461bcd60e51b81526004016105c290612180565b8051610a0990609a906020840190611ac6565b5050565b600081815260a060205260408120546001600160a01b0316806104b55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105c2565b60006001600160a01b038216610aef5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105c2565b506001600160a01b0316600090815260a1602052604090205490565b6033546001600160a01b03163314610b355760405162461bcd60e51b81526004016105c290612180565b610b3f6000611366565b565b6033546001600160a01b03163314610b6b5760405162461bcd60e51b81526004016105c290612180565b6001600160a01b038116610b7e57600080fd5b609b80546001600160a01b0319166001600160a01b0392909216919091179055565b6060609980546104ca90612028565b6001600160a01b038216331415610c085760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c2565b33600081815260a3602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b609b546001600160a01b03163314610c9e5760405162461bcd60e51b81526004016105c2906120b4565b6000815111610cde5760405162461bcd60e51b815260206004820152600c60248201526b75726920697320656d70747960a01b60448201526064016105c2565b600082815260a46020908152604090912082516106f892840190611ac6565b609b546001600160a01b03163314610d275760405162461bcd60e51b81526004016105c2906120b4565b60005b8151811015610a0957610d55828281518110610d4857610d48612139565b60200260200101516113b8565b80610d5f81612165565b915050610d2a565b610d713383611031565b610d8d5760405162461bcd60e51b81526004016105c290612063565b610d998484848461146c565b50505050565b600081815260a060205260409020546060906001600160a01b0316610e1e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105c2565b6000609a8054610e2d90612028565b905011610e4957604051806020016040528060008152506104b5565b600082815260a06020908152604080832060010154835260a48252918290209151610e7992609a9290910161224f565b60405160208183030381529060405292915050565b60a46020526000908152604090208054610ea790612028565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed390612028565b8015610f205780601f10610ef557610100808354040283529160200191610f20565b820191906000526020600020905b815481529060010190602001808311610f0357829003601f168201915b505050505081565b6033546001600160a01b03163314610f525760405162461bcd60e51b81526004016105c290612180565b6001600160a01b038116610fb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c2565b610fc081611366565b50565b600081815260a26020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ff882610a0d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260a060205260408120546001600160a01b03166110aa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105c2565b60006110b583610a0d565b9050806001600160a01b0316846001600160a01b031614806110f05750836001600160a01b03166110e58461054d565b6001600160a01b0316145b8061112057506001600160a01b03808216600090815260a3602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661113b82610a0d565b6001600160a01b0316146111a35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105c2565b6001600160a01b0382166112055760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c2565b61121083838361149f565b61121b600082610fc3565b6001600160a01b038316600090815260a160205260408120805460019290611244908490612264565b90915550506001600160a01b038216600090815260a16020526040812080546001929061127290849061227b565b9091555050600081815260a0602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610a09828260405180602001604052806000815250611557565b600054610100900460ff1680611306575060005460ff16155b6113225760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff16158015611344576000805461ffff19166101011790555b61134c61158a565b6113546115f5565b61135c61158a565b6108b68383611655565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006113c382610a0d565b90506113d18160008461149f565b6113dc600083610fc3565b6001600160a01b038116600090815260a160205260408120805460019290611405908490612264565b9091555050600082815260a0602052604080822080546001600160a01b031916815560018101839055600201829055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611477848484611128565b611483848484846116ea565b610d995760405162461bcd60e51b81526004016105c290612293565b6001600160a01b0383166114fa576114f581609e80546000838152609f60205260408120829055600182018355919091527fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de60155565b61151d565b816001600160a01b0316836001600160a01b03161461151d5761151d83826117e8565b6001600160a01b038216611534576106f881611885565b826001600160a01b0316826001600160a01b0316146106f8576106f88282611934565b6115618383611978565b61156e60008484846116ea565b6106f85760405162461bcd60e51b81526004016105c290612293565b600054610100900460ff16806115a3575060005460ff16155b6115bf5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff161580156115e1576000805461ffff19166101011790555b8015610fc0576000805461ff001916905550565b600054610100900460ff168061160e575060005460ff16155b61162a5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff1615801561164c576000805461ffff19166101011790555b6115e133611366565b600054610100900460ff168061166e575060005460ff16155b61168a5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff161580156116ac576000805461ffff19166101011790555b82516116bf906098906020860190611ac6565b5081516116d3906099906020850190611ac6565b5080156106f8576000805461ff0019169055505050565b60006001600160a01b0384163b156117dd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061172e9033908990889088906004016122e5565b6020604051808303816000875af1925050508015611769575060408051601f3d908101601f1916820190925261176691810190612322565b60015b6117c3573d808015611797576040519150601f19603f3d011682016040523d82523d6000602084013e61179c565b606091505b5080516117bb5760405162461bcd60e51b81526004016105c290612293565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611120565b506001949350505050565b600060016117f584610a84565b6117ff9190612264565b6000838152609d6020526040902054909150808214611852576001600160a01b0384166000908152609c602090815260408083208584528252808320548484528184208190558352609d90915290208190555b506000918252609d602090815260408084208490556001600160a01b039094168352609c81528383209183525290812055565b609e5460009061189790600190612264565b6000838152609f6020526040812054609e80549394509092849081106118bf576118bf612139565b9060005260206000200154905080609e83815481106118e0576118e0612139565b6000918252602080832090910192909255828152609f9091526040808220849055858252812055609e8054806119185761191861233f565b6001900381819060005260206000200160009055905550505050565b600061193f83610a84565b6001600160a01b039093166000908152609c602090815260408083208684528252808320859055938252609d9052919091209190915550565b6001600160a01b0382166119ce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c2565b600081815260a060205260409020546001600160a01b031615611a335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c2565b611a3f6000838361149f565b6001600160a01b038216600090815260a160205260408120805460019290611a6890849061227b565b9091555050600081815260a0602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ad290612028565b90600052602060002090601f016020900481019282611af45760008555611b3a565b82601f10611b0d57805160ff1916838001178555611b3a565b82800160010185558215611b3a579182015b82811115611b3a578251825591602001919060010190611b1f565b50611b46929150611b4a565b5090565b5b80821115611b465760008155600101611b4b565b6001600160e01b031981168114610fc057600080fd5b600060208284031215611b8757600080fd5b8135611b9281611b5f565b9392505050565b6000815180845260005b81811015611bbf57602081850181015186830182015201611ba3565b81811115611bd1576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611b926020830184611b99565b600060208284031215611c0b57600080fd5b5035919050565b80356001600160a01b0381168114611c2957600080fd5b919050565b60008060408385031215611c4157600080fd5b611c4a83611c12565b946020939093013593505050565b600080600060608486031215611c6d57600080fd5b611c7684611c12565b9250611c8460208501611c12565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611cd357611cd3611c94565b604052919050565b600067ffffffffffffffff831115611cf557611cf5611c94565b611d08601f8401601f1916602001611caa565b9050828152838383011115611d1c57600080fd5b828260208301376000602084830101529392505050565b600082601f830112611d4457600080fd5b611b9283833560208501611cdb565b60008060408385031215611d6657600080fd5b823567ffffffffffffffff80821115611d7e57600080fd5b611d8a86838701611d33565b93506020850135915080821115611da057600080fd5b50611dad85828601611d33565b9150509250929050565b600082601f830112611dc857600080fd5b8135602067ffffffffffffffff821115611de457611de4611c94565b8160051b611df3828201611caa565b9283528481018201928281019087851115611e0d57600080fd5b83870192505b84831015611e2c57823582529183019190830190611e13565b979650505050505050565b60008060408385031215611e4a57600080fd5b611e5383611c12565b9150602083013567ffffffffffffffff811115611e6f57600080fd5b611dad85828601611db7565b600060208284031215611e8d57600080fd5b813567ffffffffffffffff811115611ea457600080fd5b61112084828501611d33565b600060208284031215611ec257600080fd5b611b9282611c12565b60008060408385031215611ede57600080fd5b611ee783611c12565b915060208301358015158114611efc57600080fd5b809150509250929050565b60008060408385031215611f1a57600080fd5b82359150602083013567ffffffffffffffff811115611f3857600080fd5b611dad85828601611d33565b600060208284031215611f5657600080fd5b813567ffffffffffffffff811115611f6d57600080fd5b61112084828501611db7565b60008060008060808587031215611f8f57600080fd5b611f9885611c12565b9350611fa660208601611c12565b925060408501359150606085013567ffffffffffffffff811115611fc957600080fd5b8501601f81018713611fda57600080fd5b611fe987823560208401611cdb565b91505092959194509250565b6000806040838503121561200857600080fd5b61201183611c12565b915061201f60208401611c12565b90509250929050565b600181811c9082168061203c57607f821691505b6020821081141561205d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f4552433732313a206e6f7420616c6c6f77656420746f20616363657373000000604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156121795761217961214f565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8054600090600181811c90808316806121cf57607f831692505b60208084108214156121f157634e487b7160e01b600052602260045260246000fd5b818015612205576001811461221657612243565b60ff19861689528489019650612243565b60008881526020902060005b8681101561223b5781548b820152908501908301612222565b505084890196505b50505050505092915050565b600061112061225e83866121b5565b846121b5565b6000828210156122765761227661214f565b500390565b6000821982111561228e5761228e61214f565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061231890830184611b99565b9695505050505050565b60006020828403121561233457600080fd5b8151611b9281611b5f565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220cd2d9db7710cde0dc18b4066558bf3ac8b4357bd7ecaf1e5b664ca8e1e63f24064736f6c634300080a0033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063b1d7302611610097578063cc33c87511610071578063cc33c875146103a9578063cd846f1114610407578063e985e9c51461041a578063f2fde38b1461045657600080fd5b8063b1d7302614610370578063b88d4fde14610383578063c87b56dd1461039657600080fd5b80638da5cb5b116100d35780638da5cb5b1461033157806395d89b4114610342578063a22cb4651461034a578063adc84d2e1461035d57600080fd5b806370a0823114610303578063715018a614610316578063718570001461031e57600080fd5b806340c10f19116101665780634f69b862116101405780634f69b862146102b75780634f6ccce7146102ca57806355f804b3146102dd5780636352211e146102f057600080fd5b806340c10f191461027e57806342842e0e146102915780634cd88b76146102a457600080fd5b8063095ea7b3116101a2578063095ea7b31461023157806318160ddd1461024657806323b872dd146102585780632f745c591461026b57600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611b75565b610469565b60405190151581526020015b60405180910390f35b6101f96104bb565b6040516101e89190611be6565b610219610214366004611bf9565b61054d565b6040516001600160a01b0390911681526020016101e8565b61024461023f366004611c2e565b6105e7565b005b609e545b6040519081526020016101e8565b610244610266366004611c58565b6106fd565b61024a610279366004611c2e565b61072e565b61024a61028c366004611c2e565b6107c4565b61024461029f366004611c58565b61083a565b6102446102b2366004611d53565b610855565b6101dc6102c5366004611e37565b6108cc565b61024a6102d8366004611bf9565b610939565b6102446102eb366004611e7b565b6109cc565b6102196102fe366004611bf9565b610a0d565b61024a610311366004611eb0565b610a84565b610244610b0b565b61024461032c366004611eb0565b610b41565b6033546001600160a01b0316610219565b6101f9610ba0565b610244610358366004611ecb565b610baf565b61024461036b366004611f07565b610c74565b61024461037e366004611f44565b610cfd565b610244610391366004611f79565b610d67565b6101f96103a4366004611bf9565b610d9f565b6103e26103b7366004611bf9565b60a0602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b604080516001600160a01b0390941684526020840192909252908201526060016101e8565b6101f9610415366004611bf9565b610e8e565b6101dc610428366004611ff5565b6001600160a01b03918216600090815260a36020908152604080832093909416825291909152205460ff1690565b610244610464366004611eb0565b610f28565b60006001600160e01b031982166380ac58cd60e01b148061049a57506001600160e01b03198216635b5e139f60e01b145b806104b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060609880546104ca90612028565b80601f01602080910402602001604051908101604052809291908181526020018280546104f690612028565b80156105435780601f1061051857610100808354040283529160200191610543565b820191906000526020600020905b81548152906001019060200180831161052657829003601f168201915b5050505050905090565b600081815260a060205260408120546001600160a01b03166105cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815260a260205260409020546001600160a01b031690565b60006105f282610a0d565b9050806001600160a01b0316836001600160a01b031614156106605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105c2565b336001600160a01b038216148061067c575061067c8133610428565b6106ee5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105c2565b6106f88383610fc3565b505050565b6107073382611031565b6107235760405162461bcd60e51b81526004016105c290612063565b6106f8838383611128565b600061073983610a84565b821061079b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105c2565b506001600160a01b03919091166000908152609c60209081526040808320938352929052205490565b609b546000906001600160a01b031633146107f15760405162461bcd60e51b81526004016105c2906120b4565b6107ff609780546001019055565b600061080a60975490565b905061081684826112d3565b600081815260a0602052604090206001810184905543600290910155905092915050565b6106f883838360405180602001604052806000815250610d67565b600054610100900460ff168061086e575060005460ff16155b61088a5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff161580156108ac576000805461ffff19166101011790555b6108b683836112ed565b80156106f8576000805461ff0019169055505050565b6000805b825181101561092f57836001600160a01b03166109058483815181106108f8576108f8612139565b6020026020010151610a0d565b6001600160a01b03161461091d5760009150506104b5565b8061092781612165565b9150506108d0565b5060019392505050565b6000610944609e5490565b82106109a75760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105c2565b609e82815481106109ba576109ba612139565b90600052602060002001549050919050565b6033546001600160a01b031633146109f65760405162461bcd60e51b81526004016105c290612180565b8051610a0990609a906020840190611ac6565b5050565b600081815260a060205260408120546001600160a01b0316806104b55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105c2565b60006001600160a01b038216610aef5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105c2565b506001600160a01b0316600090815260a1602052604090205490565b6033546001600160a01b03163314610b355760405162461bcd60e51b81526004016105c290612180565b610b3f6000611366565b565b6033546001600160a01b03163314610b6b5760405162461bcd60e51b81526004016105c290612180565b6001600160a01b038116610b7e57600080fd5b609b80546001600160a01b0319166001600160a01b0392909216919091179055565b6060609980546104ca90612028565b6001600160a01b038216331415610c085760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c2565b33600081815260a3602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b609b546001600160a01b03163314610c9e5760405162461bcd60e51b81526004016105c2906120b4565b6000815111610cde5760405162461bcd60e51b815260206004820152600c60248201526b75726920697320656d70747960a01b60448201526064016105c2565b600082815260a46020908152604090912082516106f892840190611ac6565b609b546001600160a01b03163314610d275760405162461bcd60e51b81526004016105c2906120b4565b60005b8151811015610a0957610d55828281518110610d4857610d48612139565b60200260200101516113b8565b80610d5f81612165565b915050610d2a565b610d713383611031565b610d8d5760405162461bcd60e51b81526004016105c290612063565b610d998484848461146c565b50505050565b600081815260a060205260409020546060906001600160a01b0316610e1e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105c2565b6000609a8054610e2d90612028565b905011610e4957604051806020016040528060008152506104b5565b600082815260a06020908152604080832060010154835260a48252918290209151610e7992609a9290910161224f565b60405160208183030381529060405292915050565b60a46020526000908152604090208054610ea790612028565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed390612028565b8015610f205780601f10610ef557610100808354040283529160200191610f20565b820191906000526020600020905b815481529060010190602001808311610f0357829003601f168201915b505050505081565b6033546001600160a01b03163314610f525760405162461bcd60e51b81526004016105c290612180565b6001600160a01b038116610fb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c2565b610fc081611366565b50565b600081815260a26020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ff882610a0d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260a060205260408120546001600160a01b03166110aa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105c2565b60006110b583610a0d565b9050806001600160a01b0316846001600160a01b031614806110f05750836001600160a01b03166110e58461054d565b6001600160a01b0316145b8061112057506001600160a01b03808216600090815260a3602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661113b82610a0d565b6001600160a01b0316146111a35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105c2565b6001600160a01b0382166112055760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c2565b61121083838361149f565b61121b600082610fc3565b6001600160a01b038316600090815260a160205260408120805460019290611244908490612264565b90915550506001600160a01b038216600090815260a16020526040812080546001929061127290849061227b565b9091555050600081815260a0602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610a09828260405180602001604052806000815250611557565b600054610100900460ff1680611306575060005460ff16155b6113225760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff16158015611344576000805461ffff19166101011790555b61134c61158a565b6113546115f5565b61135c61158a565b6108b68383611655565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006113c382610a0d565b90506113d18160008461149f565b6113dc600083610fc3565b6001600160a01b038116600090815260a160205260408120805460019290611405908490612264565b9091555050600082815260a0602052604080822080546001600160a01b031916815560018101839055600201829055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611477848484611128565b611483848484846116ea565b610d995760405162461bcd60e51b81526004016105c290612293565b6001600160a01b0383166114fa576114f581609e80546000838152609f60205260408120829055600182018355919091527fcfe2a20ff701a1f3e14f63bd70d6c6bc6fba8172ec6d5a505cdab3927c0a9de60155565b61151d565b816001600160a01b0316836001600160a01b03161461151d5761151d83826117e8565b6001600160a01b038216611534576106f881611885565b826001600160a01b0316826001600160a01b0316146106f8576106f88282611934565b6115618383611978565b61156e60008484846116ea565b6106f85760405162461bcd60e51b81526004016105c290612293565b600054610100900460ff16806115a3575060005460ff16155b6115bf5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff161580156115e1576000805461ffff19166101011790555b8015610fc0576000805461ff001916905550565b600054610100900460ff168061160e575060005460ff16155b61162a5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff1615801561164c576000805461ffff19166101011790555b6115e133611366565b600054610100900460ff168061166e575060005460ff16155b61168a5760405162461bcd60e51b81526004016105c2906120eb565b600054610100900460ff161580156116ac576000805461ffff19166101011790555b82516116bf906098906020860190611ac6565b5081516116d3906099906020850190611ac6565b5080156106f8576000805461ff0019169055505050565b60006001600160a01b0384163b156117dd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061172e9033908990889088906004016122e5565b6020604051808303816000875af1925050508015611769575060408051601f3d908101601f1916820190925261176691810190612322565b60015b6117c3573d808015611797576040519150601f19603f3d011682016040523d82523d6000602084013e61179c565b606091505b5080516117bb5760405162461bcd60e51b81526004016105c290612293565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611120565b506001949350505050565b600060016117f584610a84565b6117ff9190612264565b6000838152609d6020526040902054909150808214611852576001600160a01b0384166000908152609c602090815260408083208584528252808320548484528184208190558352609d90915290208190555b506000918252609d602090815260408084208490556001600160a01b039094168352609c81528383209183525290812055565b609e5460009061189790600190612264565b6000838152609f6020526040812054609e80549394509092849081106118bf576118bf612139565b9060005260206000200154905080609e83815481106118e0576118e0612139565b6000918252602080832090910192909255828152609f9091526040808220849055858252812055609e8054806119185761191861233f565b6001900381819060005260206000200160009055905550505050565b600061193f83610a84565b6001600160a01b039093166000908152609c602090815260408083208684528252808320859055938252609d9052919091209190915550565b6001600160a01b0382166119ce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c2565b600081815260a060205260409020546001600160a01b031615611a335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c2565b611a3f6000838361149f565b6001600160a01b038216600090815260a160205260408120805460019290611a6890849061227b565b9091555050600081815260a0602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ad290612028565b90600052602060002090601f016020900481019282611af45760008555611b3a565b82601f10611b0d57805160ff1916838001178555611b3a565b82800160010185558215611b3a579182015b82811115611b3a578251825591602001919060010190611b1f565b50611b46929150611b4a565b5090565b5b80821115611b465760008155600101611b4b565b6001600160e01b031981168114610fc057600080fd5b600060208284031215611b8757600080fd5b8135611b9281611b5f565b9392505050565b6000815180845260005b81811015611bbf57602081850181015186830182015201611ba3565b81811115611bd1576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611b926020830184611b99565b600060208284031215611c0b57600080fd5b5035919050565b80356001600160a01b0381168114611c2957600080fd5b919050565b60008060408385031215611c4157600080fd5b611c4a83611c12565b946020939093013593505050565b600080600060608486031215611c6d57600080fd5b611c7684611c12565b9250611c8460208501611c12565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611cd357611cd3611c94565b604052919050565b600067ffffffffffffffff831115611cf557611cf5611c94565b611d08601f8401601f1916602001611caa565b9050828152838383011115611d1c57600080fd5b828260208301376000602084830101529392505050565b600082601f830112611d4457600080fd5b611b9283833560208501611cdb565b60008060408385031215611d6657600080fd5b823567ffffffffffffffff80821115611d7e57600080fd5b611d8a86838701611d33565b93506020850135915080821115611da057600080fd5b50611dad85828601611d33565b9150509250929050565b600082601f830112611dc857600080fd5b8135602067ffffffffffffffff821115611de457611de4611c94565b8160051b611df3828201611caa565b9283528481018201928281019087851115611e0d57600080fd5b83870192505b84831015611e2c57823582529183019190830190611e13565b979650505050505050565b60008060408385031215611e4a57600080fd5b611e5383611c12565b9150602083013567ffffffffffffffff811115611e6f57600080fd5b611dad85828601611db7565b600060208284031215611e8d57600080fd5b813567ffffffffffffffff811115611ea457600080fd5b61112084828501611d33565b600060208284031215611ec257600080fd5b611b9282611c12565b60008060408385031215611ede57600080fd5b611ee783611c12565b915060208301358015158114611efc57600080fd5b809150509250929050565b60008060408385031215611f1a57600080fd5b82359150602083013567ffffffffffffffff811115611f3857600080fd5b611dad85828601611d33565b600060208284031215611f5657600080fd5b813567ffffffffffffffff811115611f6d57600080fd5b61112084828501611db7565b60008060008060808587031215611f8f57600080fd5b611f9885611c12565b9350611fa660208601611c12565b925060408501359150606085013567ffffffffffffffff811115611fc957600080fd5b8501601f81018713611fda57600080fd5b611fe987823560208401611cdb565b91505092959194509250565b6000806040838503121561200857600080fd5b61201183611c12565b915061201f60208401611c12565b90509250929050565b600181811c9082168061203c57607f821691505b6020821081141561205d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f4552433732313a206e6f7420616c6c6f77656420746f20616363657373000000604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156121795761217961214f565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8054600090600181811c90808316806121cf57607f831692505b60208084108214156121f157634e487b7160e01b600052602260045260246000fd5b818015612205576001811461221657612243565b60ff19861689528489019650612243565b60008881526020902060005b8681101561223b5781548b820152908501908301612222565b505084890196505b50505050505092915050565b600061112061225e83866121b5565b846121b5565b6000828210156122765761227661214f565b500390565b6000821982111561228e5761228e61214f565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061231890830184611b99565b9695505050505050565b60006020828403121561233457600080fd5b8151611b9281611b5f565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220cd2d9db7710cde0dc18b4066558bf3ac8b4357bd7ecaf1e5b664ca8e1e63f24064736f6c634300080a0033