BNB Price: $720.29 (+1.02%)
Gas: 1 GWei
 

Overview

Max Total Supply

3,273,424Lifeform Cartoon AVATAR

Holders

2,655,732

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
CartoonAvatar

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : CartoonAvatar.sol
/***
* MIT License
* ===========
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
 __         __     ______   ______     ______   ______     ______     __    __    
/\ \       /\ \   /\  ___\ /\  ___\   /\  ___\ /\  __ \   /\  == \   /\ "-./  \   
\ \ \____  \ \ \  \ \  __\ \ \  __\   \ \  __\ \ \ \/\ \  \ \  __<   \ \ \-./\ \  
 \ \_____\  \ \_\  \ \_\    \ \_____\  \ \_\    \ \_____\  \ \_\ \_\  \ \_\ \ \_\ 
  \/_____/   \/_/   \/_/     \/_____/   \/_/     \/_____/   \/_/ /_/   \/_/  \/_/ 
                                                                                  
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/access/Ownable.sol";

import "../lib/ERC721A.sol";
import "./Interface/ICartoon721.sol";

contract CartoonAvatar is ERC721A, Ownable, ICartoon721 {

    using Strings for uint256;

    event eAddMinter(
        address minter,
        uint256 blockNum
    );
    event eRemoveMinter(
        address minter,
        uint256 blockNum
    );


    string public _baseUri;
    string public _metatype;
  
    mapping(uint256 => ICartoon721.ExtraInfo) public _extraInfo;
    mapping(address => bool) public _minters;

    modifier onlyMinter() {
        require(_minters[msg.sender], "must call by minter");
        _;
    }

    ////////////////////////////////////////////////////////////////////////
    constructor(string memory name,string memory symbol,string memory base, string memory metatype) 
        ERC721A(name, symbol) {
        _baseUri = base;
        _metatype = metatype; 
    }

    /**
     * @dev function to grant permission to a minter
     */
    function addMinter(address minter) public onlyOwner {

        _minters[minter] = true;

        emit eAddMinter(minter,block.number);
    }
    /**
     * @dev function to remove permission to a minter
     */
    function removeMinter(address minter) public onlyOwner {

        _minters[minter] = false;

        emit eRemoveMinter(minter,block.number);
    }

    /**
     * @dev function to set the metadata file type
     */
    function setMetaType(string memory metatype) public onlyOwner{
        _metatype = metatype;
    }

    /**
     * @dev function to set a base url of the metadata
     */
    function setBaseURI(string memory uri) public onlyOwner {
        _baseUri = uri;
    }

    /**
     * @dev function to get the minted number of the address.
     */
    function mintedNumber(address addr) external override view returns(uint256) {
        return _numberMinted(addr);
    }

     /**
     * @dev function to batch transfer tokens.
     * @param from The address that will transfer tokens.
     * @param to The address that will receive the tokens.
     * @param ids The token ids to be transfered.
     * - 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.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] memory ids, bytes memory data ) external override
    {
        for (uint256 i = 0; i < ids.length; ++i) {
            safeTransferFrom(from, to,ids[i],data);
        }
        emit TransferBatch(from, to, ids);
    }
    
    /**
     * @dev function to get the metadata url by tokenId
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), _metatype)) : "";
    }

    /**
     * @dev function to get the oership info by tokenId.
     */
    function getOwnershipOf(uint256 tokenId) public view  returns (TokenOwnership  memory) {
        return _ownerships[tokenId];
    }


   
    /**
     * @dev Function to mint tokens.
     * @param to The address that will receive the minted token.
     * @param mintRule The token info to mint.
     * @param stakeErc20 The token info to mint.
     * @param stakeAmount The token info to mint.
     */
    function mint(address to, address mintRule, address stakeErc20, uint256 stakeAmount) external override  onlyMinter returns (uint256 id) 
    {
        uint256 tokenId = _currentIndex;

        ICartoon721.ExtraInfo storage sInfo = _extraInfo[_currentIndex];
        sInfo.mintRule = mintRule;
        sInfo.stakeErc20 = stakeErc20;
        sInfo.stakeAmount = stakeAmount;
        sInfo.id = _currentIndex;
        
        _safeMint(to, 1, "");

        return tokenId;
    }

    /**
     * @dev Burns a specific ERC721 token.
     * @param tokenId uint256 id of the ERC721 token to be burned.
     */
    function burn(uint256 tokenId) external override  onlyMinter
    {
        require(
            _isApprovedOrOwner(tokenId),
            "caller is not owner nor approved"
        );

        _burn(tokenId);
    }

    /**
     * @dev The function returns the list of tokens info after the token ID(pageMax*offset)
     * @param offset page index
     * @param pageMax the max count of one page
     */
     function tokensInfoByPage(uint256 offset, uint256 pageMax ) public view returns (ICartoon721.ExtraInfo [] memory infos) {

        require(pageMax>0, "invalid page size!");
        
        uint256 balance = _currentIndex;
        uint256 maxCount = 0;
        if(balance <= pageMax){
            maxCount = balance;
        }
        else{
            maxCount = pageMax;
            uint256 pages = balance/pageMax;
        
            require(pages>=offset, "invalid page size!");

            if(pages == offset){
                maxCount = balance%pageMax;
                require(maxCount > 0, "invalid page size!");
            }
        }
       
        infos = new ICartoon721.ExtraInfo[](maxCount);

        uint256 tokenId = 0;
        for(uint i=0; i<maxCount; i++){
            tokenId = offset*pageMax+i;
            infos[i] = _extraInfo[tokenId];
        }

    }

     /**
     * @dev function to get the avatar extra info by tokenId
     */
    function getExtraInfo(uint256 tokenId) external override view returns (ICartoon721.ExtraInfo memory){
        return _extraInfo[tokenId];
    }

    /**
     * @dev IERC165-supportsInterface
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev _baseURI override
     */
    function _baseURI() internal view override returns (string memory) {
        return _baseUri;
    }

    /**
     * @dev function to check the approve state 
     */
    function _isApprovedOrOwner( uint256 tokenId) internal view virtual returns (bool ) {

        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        return isApprovedOrOwner;
    }

}

File 2 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// based https://github.com/chiru-labs/ERC721A/blob/ddd1197c6def61e320b650bd95882604d10c8da5/contracts/ERC721A.sol

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

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

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

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

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

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

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

File 3 of 13 : ICartoon721.sol
/***
* MIT License
* ===========
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
 __         __     ______   ______     ______   ______     ______     __    __    
/\ \       /\ \   /\  ___\ /\  ___\   /\  ___\ /\  __ \   /\  == \   /\ "-./  \   
\ \ \____  \ \ \  \ \  __\ \ \  __\   \ \  __\ \ \ \/\ \  \ \  __<   \ \ \-./\ \  
 \ \_____\  \ \_\  \ \_\    \ \_____\  \ \_\    \ \_____\  \ \_\ \_\  \ \_\ \ \_\ 
  \/_____/   \/_/   \/_/     \/_____/   \/_/     \/_____/   \/_/ /_/   \/_/  \/_/ 
                                                                                  
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.16;


interface ICartoon721  {

    event TransferBatch(address indexed from, address indexed to, uint256[]  ids);

    struct ExtraInfo {
        uint256 id;
        address mintRule;
        address stakeErc20;
        uint256 stakeAmount;
    }

    function getExtraInfo(uint256 tokenId) external view returns (ICartoon721.ExtraInfo memory);
    function mint(address to, address mintRule, address stakeErc20, uint256 stakeAmount) external returns (uint256 id) ;
    function burn(uint256 tokenId) external;
    function safeBatchTransferFrom(address from, address to, uint256[] memory ids , bytes memory data) external;
    function mintedNumber(address addr) external view returns(uint256);
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 6 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"base","type":"string"},{"internalType":"string","name":"metatype","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"}],"name":"eAddMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockNum","type":"uint256"}],"name":"eRemoveMinter","type":"event"},{"inputs":[],"name":"_baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_extraInfo","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"mintRule","type":"address"},{"internalType":"address","name":"stakeErc20","type":"address"},{"internalType":"uint256","name":"stakeAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_metatype","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getExtraInfo","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"mintRule","type":"address"},{"internalType":"address","name":"stakeErc20","type":"address"},{"internalType":"uint256","name":"stakeAmount","type":"uint256"}],"internalType":"struct ICartoon721.ExtraInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"mintRule","type":"address"},{"internalType":"address","name":"stakeErc20","type":"address"},{"internalType":"uint256","name":"stakeAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"mintedNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metatype","type":"string"}],"name":"setMetaType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"pageMax","type":"uint256"}],"name":"tokensInfoByPage","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"mintRule","type":"address"},{"internalType":"address","name":"stakeErc20","type":"address"},{"internalType":"uint256","name":"stakeAmount","type":"uint256"}],"internalType":"struct ICartoon721.ExtraInfo[]","name":"infos","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620026c7380380620026c78339810160408190526200003491620001b3565b83836002620000448382620002fb565b506003620000538282620002fb565b505050620000706200006a6200009860201b60201c565b6200009c565b60096200007e8382620002fb565b50600a6200008d8282620002fb565b5050505050620003c7565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200011657600080fd5b81516001600160401b0380821115620001335762000133620000ee565b604051601f8301601f19908116603f011681019082821181831017156200015e576200015e620000ee565b816040528381526020925086838588010111156200017b57600080fd5b600091505b838210156200019f578582018301518183018401529082019062000180565b600093810190920192909252949350505050565b60008060008060808587031215620001ca57600080fd5b84516001600160401b0380821115620001e257600080fd5b620001f08883890162000104565b955060208701519150808211156200020757600080fd5b620002158883890162000104565b945060408701519150808211156200022c57600080fd5b6200023a8883890162000104565b935060608701519150808211156200025157600080fd5b50620002608782880162000104565b91505092959194509250565b600181811c908216806200028157607f821691505b602082108103620002a257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002f657600081815260208120601f850160051c81016020861015620002d15750805b601f850160051c820191505b81811015620002f257828155600101620002dd565b5050505b505050565b81516001600160401b03811115620003175762000317620000ee565b6200032f816200032884546200026c565b84620002a8565b602080601f8311600181146200036757600084156200034e5750858301515b600019600386901b1c1916600185901b178555620002f2565b600085815260208120601f198616915b82811015620003985788860151825594840194600190910190840162000377565b5085821015620003b75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6122f080620003d76000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f578063b46d1e59116100a2578063c87b56dd11610071578063c87b56dd14610530578063e985e9c514610543578063ea9765d414610556578063f2fde38b1461056957600080fd5b8063b46d1e59146104e2578063b7913636146104ea578063b88d4fde146104fd578063c6133c0b1461051057600080fd5b80638da5cb5b116100de5780638da5cb5b146104a357806395d89b41146104b4578063983b2d56146104bc578063a22cb465146104cf57600080fd5b8063715018a6146103f657806381513892146103fe57806383318e3a1461041157806388b538151461048357600080fd5b80633575597d1161018757806352d8a4d11161015657806352d8a4d11461031257806355f804b3146103bd5780636352211e146103d057806370a08231146103e357600080fd5b80633575597d146102c15780633e63eb2a146102e457806342842e0e146102ec57806342966c68146102ff57600080fd5b806318160ddd116101c357806318160ddd1461027257806323b872dd1461028857806328cfbd461461029b5780633092afd5146102ae57600080fd5b806301ffc9a7146101f557806306fdde031461021d578063081812fc14610232578063095ea7b31461025d575b600080fd5b610208610203366004611a38565b61057c565b60405190151581526020015b60405180910390f35b61022561058d565b6040516102149190611aa5565b610245610240366004611ab8565b61061f565b6040516001600160a01b039091168152602001610214565b61027061026b366004611aed565b610663565b005b600154600054035b604051908152602001610214565b610270610296366004611b17565b6106f0565b6102706102a9366004611c10565b6106fb565b6102706102bc366004611cfa565b61078e565b6102086102cf366004611cfa565b600c6020526000908152604090205460ff1681565b6102256107f3565b6102706102fa366004611b17565b610881565b61027061030d366004611ab8565b61089c565b610387610320366004611ab8565b604080516060808201835260008083526020808401829052928401819052938452600482529282902082519384018352546001600160a01b0381168452600160a01b81046001600160401b031691840191909152600160e01b900460ff1615159082015290565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610214565b6102706103cb366004611d15565b610957565b6102456103de366004611ab8565b61096f565b61027a6103f1366004611cfa565b610981565b6102706109cf565b61027a61040c366004611d5d565b6109e3565b61045361041f366004611ab8565b600b60205260009081526040902080546001820154600283015460039093015491926001600160a01b039182169291169084565b60405161021494939291909384526001600160a01b03928316602085015291166040830152606082015260800190565b610496610491366004611ab8565b610ab1565b6040516102149190611da8565b6008546001600160a01b0316610245565b610225610b0c565b6102706104ca366004611cfa565b610b1b565b6102706104dd366004611de4565b610b7c565b610225610c11565b6102706104f8366004611d15565b610c1e565b61027061050b366004611e20565b610c32565b61052361051e366004611e7b565b610c6c565b6040516102149190611e9d565b61022561053e366004611ab8565b610e0a565b610208610551366004611f1a565b610ed8565b61027a610564366004611cfa565b610f06565b610270610577366004611cfa565b610f11565b600061058782610f87565b92915050565b60606002805461059c90611f4d565b80601f01602080910402602001604051908101604052809291908181526020018280546105c890611f4d565b80156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061062a82610fd7565b610647576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061066e8261096f565b9050806001600160a01b0316836001600160a01b0316036106a25760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106c257506106c08133610ed8565b155b156106e0576040516367d9dca160e11b815260040160405180910390fd5b6106eb838383611002565b505050565b6106eb83838361105e565b60005b825181101561073c5761072c858585848151811061071e5761071e611f87565b602002602001015185610c32565b61073581611fb3565b90506106fe565b50826001600160a01b0316846001600160a01b03167f47d7d96ed98eae6d3496e1174308c0072ff004cdbee7b0a623ebfd8a8adae284846040516107809190611fcc565b60405180910390a350505050565b610796611272565b6001600160a01b0381166000818152600c6020908152604091829020805460ff19169055815192835243908301527fc8cac3b429ef5cbb64deb4743b91b3d5230354a1d2eccbf9af4950bc21af529591015b60405180910390a150565b6009805461080090611f4d565b80601f016020809104026020016040519081016040528092919081815260200182805461082c90611f4d565b80156108795780601f1061084e57610100808354040283529160200191610879565b820191906000526020600020905b81548152906001019060200180831161085c57829003601f168201915b505050505081565b6106eb83838360405180602001604052806000815250610c32565b336000908152600c602052604090205460ff166108f65760405162461bcd60e51b815260206004820152601360248201527236bab9ba1031b0b63610313c9036b4b73a32b960691b60448201526064015b60405180910390fd5b6108ff816112cc565b61094b5760405162461bcd60e51b815260206004820181905260248201527f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656460448201526064016108ed565b61095481611328565b50565b61095f611272565b600961096b8282612052565b5050565b600061097a826114a4565b5192915050565b60006001600160a01b0382166109aa576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6109d7611272565b6109e160006115bd565b565b336000908152600c602052604081205460ff16610a385760405162461bcd60e51b815260206004820152601360248201527236bab9ba1031b0b63610313c9036b4b73a32b960691b60448201526064016108ed565b60008054808252600b60209081526040808420600180820180546001600160a01b03808d166001600160a01b031992831617909255600284018054928c169290911691909117905560038201889055855482558251938401909252938252919291610aa59189919061160f565b5090505b949350505050565b610ab96119e8565b506000908152600b602090815260409182902082516080810184528154815260018201546001600160a01b0390811693820193909352600282015490921692820192909252600390910154606082015290565b60606003805461059c90611f4d565b610b23611272565b6001600160a01b0381166000818152600c6020908152604091829020805460ff19166001179055815192835243908301527f97d43c024b420050312d1944c864cdd4183109e92852ae43cfc0dff357fa85c791016107e8565b336001600160a01b03831603610ba55760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a805461080090611f4d565b610c26611272565b600a61096b8282612052565b610c3d84848461105e565b610c498484848461161c565b610c66576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606060008211610c8e5760405162461bcd60e51b81526004016108ed90612111565b6000805490838211610ca1575080610d06565b50826000610caf8284612153565b905085811015610cd15760405162461bcd60e51b81526004016108ed90612111565b858103610d0457610ce28584612167565b915060008211610d045760405162461bcd60e51b81526004016108ed90612111565b505b806001600160401b03811115610d1e57610d1e611b53565b604051908082528060200260200182016040528015610d5757816020015b610d446119e8565b815260200190600190039081610d3c5790505b5092506000805b82811015610e005780610d71878961217b565b610d7b919061219a565b6000818152600b602090815260409182902082516080810184528154815260018201546001600160a01b03908116938201939093526002820154909216928201929092526003909101546060820152865191935090869083908110610de257610de2611f87565b60200260200101819052508080610df890611fb3565b915050610d5e565b5050505092915050565b6060610e1582610fd7565b610e795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108ed565b6000610e8361171b565b90506000815111610ea35760405180602001604052806000815250610ed1565b80610ead8461172a565b600a604051602001610ec1939291906121ad565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006105878261182a565b610f19611272565b6001600160a01b038116610f7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ed565b610954816115bd565b60006001600160e01b031982166380ac58cd60e01b1480610fb857506001600160e01b03198216635b5e139f60e01b145b8061058757506301ffc9a760e01b6001600160e01b0319831614610587565b6000805482108015610587575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611069826114a4565b80519091506000906001600160a01b0316336001600160a01b03161480611097575081516110979033610ed8565b806110b25750336110a78461061f565b6001600160a01b0316145b9050806110d257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146111075760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661112e57604051633a954ecd60e21b815260040160405180910390fd5b61113e6000848460000151611002565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166112285760005481101561122857825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6008546001600160a01b031633146109e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ed565b6000806112d8836114a4565b80519091506000906001600160a01b0316336001600160a01b03161480611306575081516113069033610ed8565b80610aa95750336113168561061f565b6001600160a01b031614949350505050565b6000611333826114a4565b90506113456000838360000151611002565b80516001600160a01b039081166000908152600560209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260049094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b191693909317905590850180835291205490911661145c5760005481101561145c57815160008281526004602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506001805481019055565b60408051606081018252600080825260208201819052918101829052905482908110156115a457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906115a25780516001600160a01b031615611539579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561159d579392505050565b611539565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6106eb838383600161187f565b60006001600160a01b0384163b1561171357604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061166090339089908890889060040161224d565b6020604051808303816000875af192505050801561169b575060408051601f3d908101601f191682019092526116989181019061228a565b60015b6116f9573d8080156116c9576040519150601f19603f3d011682016040523d82523d6000602084013e6116ce565b606091505b5080516000036116f1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610aa9565b506001610aa9565b60606009805461059c90611f4d565b6060816000036117515750506040805180820190915260018152600360fc1b602082015290565b8160005b811561177b578061176581611fb3565b91506117749050600a83612153565b9150611755565b6000816001600160401b0381111561179557611795611b53565b6040519080825280601f01601f1916602001820160405280156117bf576020820181803683370190505b5090505b8415610aa9576117d46001836122a7565b91506117e1600a86612167565b6117ec90603061219a565b60f81b81838151811061180157611801611f87565b60200101906001600160f81b031916908160001a905350611823600a86612153565b94506117c3565b60006001600160a01b038216611853576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b6000546001600160a01b0385166118a857604051622e076360e81b815260040160405180910390fd5b836000036118c95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156119df5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156119b557506119b3600088848861161c565b155b156119d3576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161195e565b5060005561126b565b60405180608001604052806000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081525090565b6001600160e01b03198116811461095457600080fd5b600060208284031215611a4a57600080fd5b8135610ed181611a22565b60005b83811015611a70578181015183820152602001611a58565b50506000910152565b60008151808452611a91816020860160208601611a55565b601f01601f19169290920160200192915050565b602081526000610ed16020830184611a79565b600060208284031215611aca57600080fd5b5035919050565b80356001600160a01b0381168114611ae857600080fd5b919050565b60008060408385031215611b0057600080fd5b611b0983611ad1565b946020939093013593505050565b600080600060608486031215611b2c57600080fd5b611b3584611ad1565b9250611b4360208501611ad1565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611b9157611b91611b53565b604052919050565b60006001600160401b03831115611bb257611bb2611b53565b611bc5601f8401601f1916602001611b69565b9050828152838383011115611bd957600080fd5b828260208301376000602084830101529392505050565b600082601f830112611c0157600080fd5b610ed183833560208501611b99565b60008060008060808587031215611c2657600080fd5b611c2f85611ad1565b93506020611c3e818701611ad1565b935060408601356001600160401b0380821115611c5a57600080fd5b818801915088601f830112611c6e57600080fd5b813581811115611c8057611c80611b53565b8060051b611c8f858201611b69565b918252838101850191858101908c841115611ca957600080fd5b948601945b83861015611cc757853582529486019490860190611cae565b97505050506060880135925080831115611ce057600080fd5b5050611cee87828801611bf0565b91505092959194509250565b600060208284031215611d0c57600080fd5b610ed182611ad1565b600060208284031215611d2757600080fd5b81356001600160401b03811115611d3d57600080fd5b8201601f81018413611d4e57600080fd5b610aa984823560208401611b99565b60008060008060808587031215611d7357600080fd5b611d7c85611ad1565b9350611d8a60208601611ad1565b9250611d9860408601611ad1565b9396929550929360600135925050565b815181526020808301516001600160a01b0390811691830191909152604080840151909116908201526060808301519082015260808101610587565b60008060408385031215611df757600080fd5b611e0083611ad1565b915060208301358015158114611e1557600080fd5b809150509250929050565b60008060008060808587031215611e3657600080fd5b611e3f85611ad1565b9350611e4d60208601611ad1565b92506040850135915060608501356001600160401b03811115611e6f57600080fd5b611cee87828801611bf0565b60008060408385031215611e8e57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015611f0e57611efb838551805182526020808201516001600160a01b039081169184019190915260408083015190911690830152606090810151910152565b9284019260809290920191600101611eb9565b50909695505050505050565b60008060408385031215611f2d57600080fd5b611f3683611ad1565b9150611f4460208401611ad1565b90509250929050565b600181811c90821680611f6157607f821691505b602082108103611f8157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611fc557611fc5611f9d565b5060010190565b6020808252825182820181905260009190848201906040850190845b81811015611f0e57835183529284019291840191600101611fe8565b601f8211156106eb57600081815260208120601f850160051c8101602086101561202b5750805b601f850160051c820191505b8181101561204a57828155600101612037565b505050505050565b81516001600160401b0381111561206b5761206b611b53565b61207f816120798454611f4d565b84612004565b602080601f8311600181146120b4576000841561209c5750858301515b600019600386901b1c1916600185901b17855561204a565b600085815260208120601f198616915b828110156120e3578886015182559484019460019091019084016120c4565b50858210156121015787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602080825260129082015271696e76616c696420706167652073697a652160701b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826121625761216261213d565b500490565b6000826121765761217661213d565b500690565b600081600019048311821515161561219557612195611f9d565b500290565b8082018082111561058757610587611f9d565b6000845160206121c08285838a01611a55565b8551918401916121d38184848a01611a55565b85549201916000906121e481611f4d565b600182811680156121fc57600181146122115761223d565b60ff198416875282151583028701945061223d565b896000528560002060005b848110156122355781548982015290830190870161221c565b505082870194505b50929a9950505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061228090830184611a79565b9695505050505050565b60006020828403121561229c57600080fd5b8151610ed181611a22565b8181038181111561058757610587611f9d56fea2646970667358221220e4707a31ddb6ce9c6935ef7ba3276f88127b02278e668e1998ba3b9d8dc52f5d64736f6c63430008100033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000174c696665666f726d20436172746f6f6e2041564154415200000000000000000000000000000000000000000000000000000000000000000000000000000000174c696665666f726d20436172746f6f6e20415641544152000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f697066732e6c696665666f726d2e63632f6273632d76322f636172746f6f6e2f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f578063b46d1e59116100a2578063c87b56dd11610071578063c87b56dd14610530578063e985e9c514610543578063ea9765d414610556578063f2fde38b1461056957600080fd5b8063b46d1e59146104e2578063b7913636146104ea578063b88d4fde146104fd578063c6133c0b1461051057600080fd5b80638da5cb5b116100de5780638da5cb5b146104a357806395d89b41146104b4578063983b2d56146104bc578063a22cb465146104cf57600080fd5b8063715018a6146103f657806381513892146103fe57806383318e3a1461041157806388b538151461048357600080fd5b80633575597d1161018757806352d8a4d11161015657806352d8a4d11461031257806355f804b3146103bd5780636352211e146103d057806370a08231146103e357600080fd5b80633575597d146102c15780633e63eb2a146102e457806342842e0e146102ec57806342966c68146102ff57600080fd5b806318160ddd116101c357806318160ddd1461027257806323b872dd1461028857806328cfbd461461029b5780633092afd5146102ae57600080fd5b806301ffc9a7146101f557806306fdde031461021d578063081812fc14610232578063095ea7b31461025d575b600080fd5b610208610203366004611a38565b61057c565b60405190151581526020015b60405180910390f35b61022561058d565b6040516102149190611aa5565b610245610240366004611ab8565b61061f565b6040516001600160a01b039091168152602001610214565b61027061026b366004611aed565b610663565b005b600154600054035b604051908152602001610214565b610270610296366004611b17565b6106f0565b6102706102a9366004611c10565b6106fb565b6102706102bc366004611cfa565b61078e565b6102086102cf366004611cfa565b600c6020526000908152604090205460ff1681565b6102256107f3565b6102706102fa366004611b17565b610881565b61027061030d366004611ab8565b61089c565b610387610320366004611ab8565b604080516060808201835260008083526020808401829052928401819052938452600482529282902082519384018352546001600160a01b0381168452600160a01b81046001600160401b031691840191909152600160e01b900460ff1615159082015290565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610214565b6102706103cb366004611d15565b610957565b6102456103de366004611ab8565b61096f565b61027a6103f1366004611cfa565b610981565b6102706109cf565b61027a61040c366004611d5d565b6109e3565b61045361041f366004611ab8565b600b60205260009081526040902080546001820154600283015460039093015491926001600160a01b039182169291169084565b60405161021494939291909384526001600160a01b03928316602085015291166040830152606082015260800190565b610496610491366004611ab8565b610ab1565b6040516102149190611da8565b6008546001600160a01b0316610245565b610225610b0c565b6102706104ca366004611cfa565b610b1b565b6102706104dd366004611de4565b610b7c565b610225610c11565b6102706104f8366004611d15565b610c1e565b61027061050b366004611e20565b610c32565b61052361051e366004611e7b565b610c6c565b6040516102149190611e9d565b61022561053e366004611ab8565b610e0a565b610208610551366004611f1a565b610ed8565b61027a610564366004611cfa565b610f06565b610270610577366004611cfa565b610f11565b600061058782610f87565b92915050565b60606002805461059c90611f4d565b80601f01602080910402602001604051908101604052809291908181526020018280546105c890611f4d565b80156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061062a82610fd7565b610647576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061066e8261096f565b9050806001600160a01b0316836001600160a01b0316036106a25760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106c257506106c08133610ed8565b155b156106e0576040516367d9dca160e11b815260040160405180910390fd5b6106eb838383611002565b505050565b6106eb83838361105e565b60005b825181101561073c5761072c858585848151811061071e5761071e611f87565b602002602001015185610c32565b61073581611fb3565b90506106fe565b50826001600160a01b0316846001600160a01b03167f47d7d96ed98eae6d3496e1174308c0072ff004cdbee7b0a623ebfd8a8adae284846040516107809190611fcc565b60405180910390a350505050565b610796611272565b6001600160a01b0381166000818152600c6020908152604091829020805460ff19169055815192835243908301527fc8cac3b429ef5cbb64deb4743b91b3d5230354a1d2eccbf9af4950bc21af529591015b60405180910390a150565b6009805461080090611f4d565b80601f016020809104026020016040519081016040528092919081815260200182805461082c90611f4d565b80156108795780601f1061084e57610100808354040283529160200191610879565b820191906000526020600020905b81548152906001019060200180831161085c57829003601f168201915b505050505081565b6106eb83838360405180602001604052806000815250610c32565b336000908152600c602052604090205460ff166108f65760405162461bcd60e51b815260206004820152601360248201527236bab9ba1031b0b63610313c9036b4b73a32b960691b60448201526064015b60405180910390fd5b6108ff816112cc565b61094b5760405162461bcd60e51b815260206004820181905260248201527f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656460448201526064016108ed565b61095481611328565b50565b61095f611272565b600961096b8282612052565b5050565b600061097a826114a4565b5192915050565b60006001600160a01b0382166109aa576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6109d7611272565b6109e160006115bd565b565b336000908152600c602052604081205460ff16610a385760405162461bcd60e51b815260206004820152601360248201527236bab9ba1031b0b63610313c9036b4b73a32b960691b60448201526064016108ed565b60008054808252600b60209081526040808420600180820180546001600160a01b03808d166001600160a01b031992831617909255600284018054928c169290911691909117905560038201889055855482558251938401909252938252919291610aa59189919061160f565b5090505b949350505050565b610ab96119e8565b506000908152600b602090815260409182902082516080810184528154815260018201546001600160a01b0390811693820193909352600282015490921692820192909252600390910154606082015290565b60606003805461059c90611f4d565b610b23611272565b6001600160a01b0381166000818152600c6020908152604091829020805460ff19166001179055815192835243908301527f97d43c024b420050312d1944c864cdd4183109e92852ae43cfc0dff357fa85c791016107e8565b336001600160a01b03831603610ba55760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a805461080090611f4d565b610c26611272565b600a61096b8282612052565b610c3d84848461105e565b610c498484848461161c565b610c66576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606060008211610c8e5760405162461bcd60e51b81526004016108ed90612111565b6000805490838211610ca1575080610d06565b50826000610caf8284612153565b905085811015610cd15760405162461bcd60e51b81526004016108ed90612111565b858103610d0457610ce28584612167565b915060008211610d045760405162461bcd60e51b81526004016108ed90612111565b505b806001600160401b03811115610d1e57610d1e611b53565b604051908082528060200260200182016040528015610d5757816020015b610d446119e8565b815260200190600190039081610d3c5790505b5092506000805b82811015610e005780610d71878961217b565b610d7b919061219a565b6000818152600b602090815260409182902082516080810184528154815260018201546001600160a01b03908116938201939093526002820154909216928201929092526003909101546060820152865191935090869083908110610de257610de2611f87565b60200260200101819052508080610df890611fb3565b915050610d5e565b5050505092915050565b6060610e1582610fd7565b610e795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108ed565b6000610e8361171b565b90506000815111610ea35760405180602001604052806000815250610ed1565b80610ead8461172a565b600a604051602001610ec1939291906121ad565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006105878261182a565b610f19611272565b6001600160a01b038116610f7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ed565b610954816115bd565b60006001600160e01b031982166380ac58cd60e01b1480610fb857506001600160e01b03198216635b5e139f60e01b145b8061058757506301ffc9a760e01b6001600160e01b0319831614610587565b6000805482108015610587575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611069826114a4565b80519091506000906001600160a01b0316336001600160a01b03161480611097575081516110979033610ed8565b806110b25750336110a78461061f565b6001600160a01b0316145b9050806110d257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146111075760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661112e57604051633a954ecd60e21b815260040160405180910390fd5b61113e6000848460000151611002565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166112285760005481101561122857825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6008546001600160a01b031633146109e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ed565b6000806112d8836114a4565b80519091506000906001600160a01b0316336001600160a01b03161480611306575081516113069033610ed8565b80610aa95750336113168561061f565b6001600160a01b031614949350505050565b6000611333826114a4565b90506113456000838360000151611002565b80516001600160a01b039081166000908152600560209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260049094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b191693909317905590850180835291205490911661145c5760005481101561145c57815160008281526004602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506001805481019055565b60408051606081018252600080825260208201819052918101829052905482908110156115a457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906115a25780516001600160a01b031615611539579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561159d579392505050565b611539565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6106eb838383600161187f565b60006001600160a01b0384163b1561171357604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061166090339089908890889060040161224d565b6020604051808303816000875af192505050801561169b575060408051601f3d908101601f191682019092526116989181019061228a565b60015b6116f9573d8080156116c9576040519150601f19603f3d011682016040523d82523d6000602084013e6116ce565b606091505b5080516000036116f1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610aa9565b506001610aa9565b60606009805461059c90611f4d565b6060816000036117515750506040805180820190915260018152600360fc1b602082015290565b8160005b811561177b578061176581611fb3565b91506117749050600a83612153565b9150611755565b6000816001600160401b0381111561179557611795611b53565b6040519080825280601f01601f1916602001820160405280156117bf576020820181803683370190505b5090505b8415610aa9576117d46001836122a7565b91506117e1600a86612167565b6117ec90603061219a565b60f81b81838151811061180157611801611f87565b60200101906001600160f81b031916908160001a905350611823600a86612153565b94506117c3565b60006001600160a01b038216611853576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b6000546001600160a01b0385166118a857604051622e076360e81b815260040160405180910390fd5b836000036118c95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156119df5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156119b557506119b3600088848861161c565b155b156119d3576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161195e565b5060005561126b565b60405180608001604052806000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081525090565b6001600160e01b03198116811461095457600080fd5b600060208284031215611a4a57600080fd5b8135610ed181611a22565b60005b83811015611a70578181015183820152602001611a58565b50506000910152565b60008151808452611a91816020860160208601611a55565b601f01601f19169290920160200192915050565b602081526000610ed16020830184611a79565b600060208284031215611aca57600080fd5b5035919050565b80356001600160a01b0381168114611ae857600080fd5b919050565b60008060408385031215611b0057600080fd5b611b0983611ad1565b946020939093013593505050565b600080600060608486031215611b2c57600080fd5b611b3584611ad1565b9250611b4360208501611ad1565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611b9157611b91611b53565b604052919050565b60006001600160401b03831115611bb257611bb2611b53565b611bc5601f8401601f1916602001611b69565b9050828152838383011115611bd957600080fd5b828260208301376000602084830101529392505050565b600082601f830112611c0157600080fd5b610ed183833560208501611b99565b60008060008060808587031215611c2657600080fd5b611c2f85611ad1565b93506020611c3e818701611ad1565b935060408601356001600160401b0380821115611c5a57600080fd5b818801915088601f830112611c6e57600080fd5b813581811115611c8057611c80611b53565b8060051b611c8f858201611b69565b918252838101850191858101908c841115611ca957600080fd5b948601945b83861015611cc757853582529486019490860190611cae565b97505050506060880135925080831115611ce057600080fd5b5050611cee87828801611bf0565b91505092959194509250565b600060208284031215611d0c57600080fd5b610ed182611ad1565b600060208284031215611d2757600080fd5b81356001600160401b03811115611d3d57600080fd5b8201601f81018413611d4e57600080fd5b610aa984823560208401611b99565b60008060008060808587031215611d7357600080fd5b611d7c85611ad1565b9350611d8a60208601611ad1565b9250611d9860408601611ad1565b9396929550929360600135925050565b815181526020808301516001600160a01b0390811691830191909152604080840151909116908201526060808301519082015260808101610587565b60008060408385031215611df757600080fd5b611e0083611ad1565b915060208301358015158114611e1557600080fd5b809150509250929050565b60008060008060808587031215611e3657600080fd5b611e3f85611ad1565b9350611e4d60208601611ad1565b92506040850135915060608501356001600160401b03811115611e6f57600080fd5b611cee87828801611bf0565b60008060408385031215611e8e57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015611f0e57611efb838551805182526020808201516001600160a01b039081169184019190915260408083015190911690830152606090810151910152565b9284019260809290920191600101611eb9565b50909695505050505050565b60008060408385031215611f2d57600080fd5b611f3683611ad1565b9150611f4460208401611ad1565b90509250929050565b600181811c90821680611f6157607f821691505b602082108103611f8157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611fc557611fc5611f9d565b5060010190565b6020808252825182820181905260009190848201906040850190845b81811015611f0e57835183529284019291840191600101611fe8565b601f8211156106eb57600081815260208120601f850160051c8101602086101561202b5750805b601f850160051c820191505b8181101561204a57828155600101612037565b505050505050565b81516001600160401b0381111561206b5761206b611b53565b61207f816120798454611f4d565b84612004565b602080601f8311600181146120b4576000841561209c5750858301515b600019600386901b1c1916600185901b17855561204a565b600085815260208120601f198616915b828110156120e3578886015182559484019460019091019084016120c4565b50858210156121015787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602080825260129082015271696e76616c696420706167652073697a652160701b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b6000826121625761216261213d565b500490565b6000826121765761217661213d565b500690565b600081600019048311821515161561219557612195611f9d565b500290565b8082018082111561058757610587611f9d565b6000845160206121c08285838a01611a55565b8551918401916121d38184848a01611a55565b85549201916000906121e481611f4d565b600182811680156121fc57600181146122115761223d565b60ff198416875282151583028701945061223d565b896000528560002060005b848110156122355781548982015290830190870161221c565b505082870194505b50929a9950505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061228090830184611a79565b9695505050505050565b60006020828403121561229c57600080fd5b8151610ed181611a22565b8181038181111561058757610587611f9d56fea2646970667358221220e4707a31ddb6ce9c6935ef7ba3276f88127b02278e668e1998ba3b9d8dc52f5d64736f6c63430008100033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000174c696665666f726d20436172746f6f6e2041564154415200000000000000000000000000000000000000000000000000000000000000000000000000000000174c696665666f726d20436172746f6f6e20415641544152000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f697066732e6c696665666f726d2e63632f6273632d76322f636172746f6f6e2f746f6b656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Lifeform Cartoon AVATAR
Arg [1] : symbol (string): Lifeform Cartoon AVATAR
Arg [2] : base (string): https://ipfs.lifeform.cc/bsc-v2/cartoon/token/
Arg [3] : metatype (string): .json

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [5] : 4c696665666f726d20436172746f6f6e20415641544152000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [7] : 4c696665666f726d20436172746f6f6e20415641544152000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [9] : 68747470733a2f2f697066732e6c696665666f726d2e63632f6273632d76322f
Arg [10] : 636172746f6f6e2f746f6b656e2f000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 2e6a736f6e000000000000000000000000000000000000000000000000000000


Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.