ETH Price: $2,429.64 (-1.51%)
 

Overview

Max Total Supply

2,010 KUMA

Holders

681

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
heian.eth
Balance
1 KUMA
0xd4bBc1B0cbd2Df8052939CA02EdaA0197b8FACc9
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Kumaverse is an alternate universe of dystopian Earth where humans live side-by-side with Kumas, an extraterrestrial species which is on the brink of extinction. Kumas are intelligent bear-like creatures who easily adapt to their surroundings..

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KumaVerse

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : KumaVerse.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./ERC721ACustom.sol";
import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';
import "./Interfaces.sol";

/// @title Kumaverse NFT contract
/// @author agonist (https://github.com/agonist)
contract KumaVerse is ERC721ACustom, Ownable {

    struct KumaHistory {
        string name;
        string lore;
    }

    uint256 public immutable maxSupply;
    uint256 public maxMintAtOnce;
    uint256 public maxMintWhitelist;
    uint256 public price = 0.05 ether;
    uint256 public changeLorePrice = 10 ** 18;
    bool public trackerSaleActive;
    bool public presaleActive;
    bool public saleActive;
    string public baseTokenURI;
    bytes32 public whitelistMerkleRoot = 0x0;
    bool private ancestorUnlocked;

    mapping(address => uint256) public claimed;
    mapping(address => uint256) public claimedTracker;
    mapping(address => bool) public trackerFreeClaimed;

    mapping(uint256 => KumaHistory) public kumaHistories;

    IERC1155 trackerContract;
    IPaw pawContract;

    constructor(
        string memory name_,
        string memory symbol_,
        string memory baseTokenURI_,
        uint256 maxSupply_,
        uint256 maxMintAtOnce_,
        uint256 maxMintWhitelist_,
        address trackerContract_
    ) ERC721ACustom(name_, symbol_){
        baseTokenURI = baseTokenURI_;
        maxSupply = maxSupply_;
        maxMintAtOnce = maxMintAtOnce_;
        maxMintWhitelist = maxMintWhitelist_;
        trackerContract = IERC1155(trackerContract_);
    }

    function mint(
        uint256 _quantity
    ) external payable {
        require(saleActive, "Sale inactive");
        require(totalSupply() + _quantity <= maxSupply, "Mint exceed max supply");
        require(_quantity <= maxMintAtOnce, "Max mint exceeded");
        require(price * _quantity == msg.value, "Value sent is incorrect");

        _safeMint(msg.sender, _quantity);
        pawContract.updateReward(msg.sender);
    }

    function mintPresale(uint256 _quantity, bytes32[] calldata _merkleProof) external payable {
        require(presaleActive, "Presale inactive");
        require(totalSupply() + _quantity <= maxSupply, "Mint exceed max supply");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, whitelistMerkleRoot, leaf), "Not whitelisted");
        require(claimed[msg.sender] + _quantity <= maxMintWhitelist, "Whitelist mint exceeded");
        require(price * _quantity == msg.value, "Value sent is incorrect");

        claimed[msg.sender] += _quantity;
        _safeMint(msg.sender, _quantity);
        pawContract.updateReward(msg.sender);
    }

    function mintTracker(uint256 _quantity) external payable {
        require(trackerSaleActive, "TrackerSale inactive");
        require(totalSupply() + _quantity <= maxSupply, "Mint exceed max supply");

        uint256 trackerBalance = trackerContract.balanceOf(msg.sender, 1);

        require(trackerBalance > 0, "You don't own a tracker");
        require(claimedTracker[msg.sender] + _quantity <= trackerBalance * 2, "Tracker mint exceeded");
        require(price * _quantity == msg.value, "Value sent is incorrect");

        uint256 trackerExtra = 0;
        if (trackerBalance > 0) {
            if (!trackerFreeClaimed[msg.sender]) {
                trackerExtra += trackerBalance;
                trackerFreeClaimed[msg.sender] = true;
            }
        }
        claimedTracker[msg.sender] += _quantity;
        _safeMint(msg.sender, _quantity + trackerExtra);
        pawContract.updateReward(msg.sender);
    }

    function claimFreeKuma() external {
        require(trackerSaleActive, "TrackerSale inactive");
        require(!trackerFreeClaimed[msg.sender], "Already claimed");
        uint256 trackerBalance = trackerContract.balanceOf(msg.sender, 1);
        require(trackerBalance > 0, "You don't own a tracker");
        require(totalSupply() + trackerBalance <= maxSupply, "Mint exceed max supply");

        trackerFreeClaimed[msg.sender] = true;
        _safeMint(msg.sender, trackerBalance);
        pawContract.updateReward(msg.sender);
    }

    /// @notice Check if someone is whitelisted
    function isWhitelisted(bytes32[] calldata _merkleProof, address _address) external view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_address));
        return MerkleProof.verify(_merkleProof, whitelistMerkleRoot, leaf);
    }

    function changeLore(uint256 _id, string calldata _lore) external {
        require(this.ownerOf(_id) == msg.sender, "You are not the owner");
        require(pawContract.transferFrom(msg.sender, address(this), changeLorePrice), "PAW transfer failed");

        kumaHistories[_id].lore = _lore;
    }

    function renameKuma(uint256 _id, string calldata _newName) external {
        require(this.ownerOf(_id) == msg.sender, "You are not the owner");
        require(pawContract.transferFrom(msg.sender, address(this), changeLorePrice), "PAW transfer failed");

        kumaHistories[_id].name = _newName;
    }

    function updateHistory(uint256 _id, string calldata _newName, string calldata _lore) external {
        require(this.ownerOf(_id) == msg.sender, "You are not the owner");
        require(pawContract.transferFrom(msg.sender, address(this), changeLorePrice * 2), "PAW transfer failed");

        kumaHistories[_id] = KumaHistory(_newName, _lore);
    }

    // ADMIN

    /// @notice mint 10 extra NFTs that are the Ancestors that will be auctioned by the project.
    /// to use only after soldout
    function unlockAncestors() external onlyOwner {
        require(!ancestorUnlocked, "Ancestor already unlocked");
        _safeMint(msg.sender, 10);
        pawContract.updateReward(msg.sender);
        ancestorUnlocked = true;
    }

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

    function togglePresale() external onlyOwner {
        presaleActive = !presaleActive;
    }

    function toggleTrackerSale() external onlyOwner {
        trackerSaleActive = !trackerSaleActive;
    }

    /// @notice for marketing / team
    /// @param _quantity Amount to mint
    function reserve(uint256 _quantity) external onlyOwner {
        require(totalSupply() + _quantity <= maxSupply, "Mint exceed max supply");
        _safeMint(msg.sender, _quantity);
        pawContract.updateReward(msg.sender);
    }

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

    function setBaseURI(
        string calldata _baseTokenURI
    ) external onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    function setWhitelistMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        whitelistMerkleRoot = _merkleRoot;
    }

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

    function _yieldTransferHook(address _from, address _to) internal {
        pawContract.updateReward(_from);
        pawContract.updateReward(_to);
    }

    function transferFrom(address from_, address to_, uint256 tokenId_) public override {
        _yieldTransferHook(from_, to_);
        _transfer(from_, to_, tokenId_);
    }

    function safeTransferFrom(address from_, address to_, uint256 tokenId_, bytes memory data_) public override {
        _yieldTransferHook(from_, to_);
        ERC721ACustom.safeTransferFrom(from_, to_, tokenId_, data_);
    }

    function setChangeLorePrice(uint256 _price) external onlyOwner {
        changeLorePrice = _price ** 18;
    }

    function setPaw(address _address) public onlyOwner {
        pawContract = IPaw(_address);
    }

    function setTracker(address _address) public onlyOwner {
        trackerContract = IERC1155(_address);
    }

    function withdraw() public onlyOwner {
        address payable to = payable(msg.sender);
        to.transfer(address(this).balance);
    }

    function withdrawPaw() external onlyOwner {
        uint256 balance = pawContract.balanceOf(address(this));
        pawContract.transfer(msg.sender, balance);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 16 : ERC721ACustom.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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 _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721ACustom 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_;
        _currentIndex = _startTokenId();
    }

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

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

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

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

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        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 (_startTokenId() <= curr && 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 = ERC721ACustom.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 (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    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;
        uint256 end = updatedIndex + quantity;

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

    /**
     * @dev 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
    ) internal {
        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 contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

    /// @dev Returns the tokenIds of the address. O(totalSupply) in complexity.
    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
    unchecked {
        uint256[] memory a = new uint256[](balanceOf(owner));
        uint256 end = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;
        for (uint256 i; i < end; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.burned) {
                continue;
            }
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                a[tokenIdsIdx++] = i;
            }
        }
        return a;
    }
    }
}

File 5 of 16 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 6 of 16 : Interfaces.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';

interface IPaw is IERC20 {
    function updateReward(address _address) external;
}

interface IKumaVerse is IERC721 {

}

interface IKumaTracker is IERC1155 {}

File 7 of 16 : 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 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 9 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 16 : 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 11 of 16 : 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 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 16 : 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 15 of 16 : 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 16 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseTokenURI_","type":"string"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"maxMintAtOnce_","type":"uint256"},{"internalType":"uint256","name":"maxMintWhitelist_","type":"uint256"},{"internalType":"address","name":"trackerContract_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_lore","type":"string"}],"name":"changeLore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeLorePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFreeKuma","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedTracker","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"kumaHistories","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"lore","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAtOnce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintTracker","outputs":[],"stateMutability":"payable","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":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"}],"name":"renameKuma","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"reserve","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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setChangeLorePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setPaw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleTrackerSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"trackerFreeClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trackerSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockAncestors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"},{"internalType":"string","name":"_lore","type":"string"}],"name":"updateHistory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawPaw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405266b1a2bc2ec50000600b55670de0b6b3a7640000600c556000600f553480156200002d57600080fd5b5060405162003b3138038062003b318339810160408190526200005091620002a5565b8651879087906200006990600290602085019062000132565b5080516200007f90600390602084019062000132565b50506001600055506200009233620000e0565b8451620000a790600e90602088019062000132565b50608093909352600991909155600a55601580546001600160a01b0319166001600160a01b0390921691909117905550620003b5915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001409062000378565b90600052602060002090601f016020900481019282620001645760008555620001af565b82601f106200017f57805160ff1916838001178555620001af565b82800160010185558215620001af579182015b82811115620001af57825182559160200191906001019062000192565b50620001bd929150620001c1565b5090565b5b80821115620001bd5760008155600101620001c2565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020057600080fd5b81516001600160401b03808211156200021d576200021d620001d8565b604051601f8301601f19908116603f01168101908282118183101715620002485762000248620001d8565b816040528381526020925086838588010111156200026557600080fd5b600091505b838210156200028957858201830151818301840152908201906200026a565b838211156200029b5760008385830101525b9695505050505050565b600080600080600080600060e0888a031215620002c157600080fd5b87516001600160401b0380821115620002d957600080fd5b620002e78b838c01620001ee565b985060208a0151915080821115620002fe57600080fd5b6200030c8b838c01620001ee565b975060408a01519150808211156200032357600080fd5b50620003328a828b01620001ee565b60608a015160808b015160a08c015160c08d01519399509197509550935090506001600160a01b03811681146200036857600080fd5b8091505092959891949750929550565b600181811c908216806200038d57607f821691505b60208210811415620003af57634e487b7160e01b600052602260045260246000fd5b50919050565b60805161373d620003f46000396000818161088901528181610b4801528181610ff401528181611128015281816118660152611cff015261373d6000f3fe6080604052600436106102ff5760003560e01c80637d8966e411610190578063aa98e0c6116100dc578063d547cfb711610095578063e0a689811161006f578063e0a68981146108cb578063e985e9c5146108eb578063f2fde38b1461090b578063fd6552851461092b57600080fd5b8063d547cfb714610862578063d5abeb0114610877578063debefaa6146108ab57600080fd5b8063aa98e0c6146107aa578063b1f49202146107c0578063b88d4fde146107d5578063bd32fb66146107f5578063c87b56dd14610815578063c884ef831461083557600080fd5b8063932041c011610149578063a035b1fe11610123578063a035b1fe1461074b578063a0712d6814610761578063a22cb46514610774578063a759a7c81461079457600080fd5b8063932041c0146106e857806395243ee21461070857806395d89b411461073657600080fd5b80637d8966e41461062857806380a15a161461063d578063819b25ba1461065d5780638462151c1461067d5780638da5cb5b146106aa57806391abf76c146106c857600080fd5b80633ccfd60b1161024f57806361cd008911610208578063698390b1116101e2578063698390b1146105a35780636d6e8185146105c357806370a08231146105f3578063715018a61461061357600080fd5b806361cd00891461054e5780636352211e1461056357806368428a1b1461058357600080fd5b80633ccfd60b1461049357806342842e0e146104a85780634c786d1d146104c857806353135ca0146104f557806355f804b314610514578063593d59a41461053457600080fd5b806318160ddd116102bc57806324b529781161029657806324b52978146104355780632bac99a314610448578063343937431461046857806334ea1ca61461047d57600080fd5b806318160ddd146103dd5780632114bb5a1461040057806323b872dd1461041557600080fd5b806301ffc9a71461030457806306fdde0314610339578063081812fc1461035b578063095ea7b3146103935780630c0a6b5e146103b557806314ee7bf6146103c8575b600080fd5b34801561031057600080fd5b5061032461031f366004612dfa565b610941565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b5061034e610993565b6040516103309190612e6f565b34801561036757600080fd5b5061037b610376366004612e82565b610a25565b6040516001600160a01b039091168152602001610330565b34801561039f57600080fd5b506103b36103ae366004612eb0565b610a69565b005b6103b36103c3366004612f27565b610af7565b3480156103d457600080fd5b506103b3610d7a565b3480156103e957600080fd5b506103f2610e8b565b604051908152602001610330565b34801561040c57600080fd5b506103b3610e99565b34801561042157600080fd5b506103b3610430366004612f72565b6110c8565b6103b3610443366004612e82565b6110dd565b34801561045457600080fd5b506103b3610463366004612ff4565b6113ae565b34801561047457600080fd5b506103b36115a6565b34801561048957600080fd5b506103f2600c5481565b34801561049f57600080fd5b506103b36115ed565b3480156104b457600080fd5b506103b36104c3366004612f72565b611645565b3480156104d457600080fd5b506103f26104e336600461306d565b60126020526000908152604090205481565b34801561050157600080fd5b50600d5461032490610100900460ff1681565b34801561052057600080fd5b506103b361052f36600461308a565b611660565b34801561054057600080fd5b50600d546103249060ff1681565b34801561055a57600080fd5b506103b3611696565b34801561056f57600080fd5b5061037b61057e366004612e82565b6116d4565b34801561058f57600080fd5b50600d546103249062010000900460ff1681565b3480156105af57600080fd5b506103b36105be366004612e82565b6116e6565b3480156105cf57600080fd5b506103246105de36600461306d565b60136020526000908152604090205460ff1681565b3480156105ff57600080fd5b506103f261060e36600461306d565b611721565b34801561061f57600080fd5b506103b361176f565b34801561063457600080fd5b506103b36117a5565b34801561064957600080fd5b506103b361065836600461306d565b6117ee565b34801561066957600080fd5b506103b3610678366004612e82565b61183a565b34801561068957600080fd5b5061069d61069836600461306d565b6118c0565b60405161033091906130cb565b3480156106b657600080fd5b506008546001600160a01b031661037b565b3480156106d457600080fd5b506103b36106e336600461306d565b6119e9565b3480156106f457600080fd5b506103b361070336600461310f565b611a35565b34801561071457600080fd5b50610728610723366004612e82565b611b7a565b60405161033092919061314d565b34801561074257600080fd5b5061034e611ca6565b34801561075757600080fd5b506103f2600b5481565b6103b361076f366004612e82565b611cb5565b34801561078057600080fd5b506103b361078f366004613180565b611dc1565b3480156107a057600080fd5b506103f2600a5481565b3480156107b657600080fd5b506103f2600f5481565b3480156107cc57600080fd5b506103b3611e57565b3480156107e157600080fd5b506103b36107f03660046131cf565b611f4b565b34801561080157600080fd5b506103b3610810366004612e82565b611f61565b34801561082157600080fd5b5061034e610830366004612e82565b611f90565b34801561084157600080fd5b506103f261085036600461306d565b60116020526000908152604090205481565b34801561086e57600080fd5b5061034e612015565b34801561088357600080fd5b506103f27f000000000000000000000000000000000000000000000000000000000000000081565b3480156108b757600080fd5b506103246108c63660046132ae565b6120a3565b3480156108d757600080fd5b506103b36108e636600461310f565b612129565b3480156108f757600080fd5b50610324610906366004613304565b612265565b34801561091757600080fd5b506103b361092636600461306d565b612293565b34801561093757600080fd5b506103f260095481565b60006001600160e01b031982166380ac58cd60e01b148061097257506001600160e01b03198216635b5e139f60e01b145b8061098d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546109a290613332565b80601f01602080910402602001604051908101604052809291908181526020018280546109ce90613332565b8015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b5050505050905090565b6000610a308261232e565b610a4d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a74826116d4565b9050806001600160a01b0316836001600160a01b03161415610aa95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ac95750610ac78133612265565b155b15610ae7576040516367d9dca160e11b815260040160405180910390fd5b610af2838383612367565b505050565b600d54610100900460ff16610b465760405162461bcd60e51b815260206004820152601060248201526f50726573616c6520696e61637469766560801b60448201526064015b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000083610b70610e8b565b610b7a9190613383565b1115610b985760405162461bcd60e51b8152600401610b3d9061339b565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610c1283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f5491508490506123c3565b610c505760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610b3d565b600a5433600090815260116020526040902054610c6e908690613383565b1115610cbc5760405162461bcd60e51b815260206004820152601760248201527f57686974656c697374206d696e742065786365656465640000000000000000006044820152606401610b3d565b3484600b54610ccb91906133cb565b14610ce85760405162461bcd60e51b8152600401610b3d906133ea565b3360009081526011602052604081208054869290610d07908490613383565b90915550610d17905033856123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b158015610d5c57600080fd5b505af1158015610d70573d6000803e3d6000fd5b5050505050505050565b6008546001600160a01b03163314610da45760405162461bcd60e51b8152600401610b3d90613421565b6016546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610ded573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e119190613456565b60165460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610e63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e87919061346f565b5050565b600154600054036000190190565b600d5460ff16610ee25760405162461bcd60e51b8152602060048201526014602482015273547261636b657253616c6520696e61637469766560601b6044820152606401610b3d565b3360009081526013602052604090205460ff1615610f345760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610b3d565b601554604051627eeac760e11b8152336004820152600160248201526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610f82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa69190613456565b905060008111610ff25760405162461bcd60e51b81526020600482015260176024820152762cb7ba903237b713ba1037bbb71030903a3930b1b5b2b960491b6044820152606401610b3d565b7f00000000000000000000000000000000000000000000000000000000000000008161101c610e8b565b6110269190613383565b11156110445760405162461bcd60e51b8152600401610b3d9061339b565b336000818152601360205260409020805460ff1916600117905561106890826123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b1580156110ad57600080fd5b505af11580156110c1573d6000803e3d6000fd5b5050505050565b6110d283836123f3565b610af28383836124b5565b600d5460ff166111265760405162461bcd60e51b8152602060048201526014602482015273547261636b657253616c6520696e61637469766560601b6044820152606401610b3d565b7f000000000000000000000000000000000000000000000000000000000000000081611150610e8b565b61115a9190613383565b11156111785760405162461bcd60e51b8152600401610b3d9061339b565b601554604051627eeac760e11b8152336004820152600160248201526000916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156111c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ea9190613456565b9050600081116112365760405162461bcd60e51b81526020600482015260176024820152762cb7ba903237b713ba1037bbb71030903a3930b1b5b2b960491b6044820152606401610b3d565b6112418160026133cb565b3360009081526012602052604090205461125c908490613383565b11156112a25760405162461bcd60e51b8152602060048201526015602482015274151c9858dad95c881b5a5b9d08195e18d959591959605a1b6044820152606401610b3d565b3482600b546112b191906133cb565b146112ce5760405162461bcd60e51b8152600401610b3d906133ea565b60008115611314573360009081526013602052604090205460ff16611314576112f78282613383565b336000908152601360205260409020805460ff1916600117905590505b3360009081526012602052604081208054859290611333908490613383565b9091555061134c9050336113478386613383565b6123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b15801561139157600080fd5b505af11580156113a5573d6000803e3d6000fd5b50505050505050565b6040516331a9108f60e11b81526004810186905233903090636352211e90602401602060405180830381865afa1580156113ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611410919061348c565b6001600160a01b0316146114365760405162461bcd60e51b8152600401610b3d906134a9565b601654600c546001600160a01b03909116906323b872dd903390309061145d9060026133cb565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156114b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d5919061346f565b6114f15760405162461bcd60e51b8152600401610b3d906134d8565b6040805160606020601f87018190040282018101835291810185815290918291908790879081908501838280828437600092019190915250505090825250604080516020601f86018190048102820181019092528481529181019190859085908190840183828082843760009201829052509390945250508781526014602090815260409091208351805191935061158d928492910190612cd7565b506020828101518051610d709260018501920190612cd7565b6008546001600160a01b031633146115d05760405162461bcd60e51b8152600401610b3d90613421565b600d805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b031633146116175760405162461bcd60e51b8152600401610b3d90613421565b604051339081904780156108fc02916000818181858888f19350505050158015610e87573d6000803e3d6000fd5b610af283838360405180602001604052806000815250611f4b565b6008546001600160a01b0316331461168a5760405162461bcd60e51b8152600401610b3d90613421565b610af2600e8383612d5b565b6008546001600160a01b031633146116c05760405162461bcd60e51b8152600401610b3d90613421565b600d805460ff19811660ff90911615179055565b60006116df826126c6565b5192915050565b6008546001600160a01b031633146117105760405162461bcd60e51b8152600401610b3d90613421565b61171b6012826135e9565b600c5550565b60006001600160a01b03821661174a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146117995760405162461bcd60e51b8152600401610b3d90613421565b6117a360006127ed565b565b6008546001600160a01b031633146117cf5760405162461bcd60e51b8152600401610b3d90613421565b600d805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b031633146118185760405162461bcd60e51b8152600401610b3d90613421565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146118645760405162461bcd60e51b8152600401610b3d90613421565b7f00000000000000000000000000000000000000000000000000000000000000008161188e610e8b565b6118989190613383565b11156118b65760405162461bcd60e51b8152600401610b3d9061339b565b61106833826123d9565b606060006118cd83611721565b6001600160401b038111156118e4576118e46131b9565b60405190808252806020026020018201604052801561190d578160200160208202803683370190505b506000805491925080805b838110156119de57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061197f57506119d6565b80516001600160a01b03161561199457805192505b876001600160a01b0316836001600160a01b031614156119d457818685806001019650815181106119c7576119c76135f8565b6020026020010181815250505b505b600101611918565b509295945050505050565b6008546001600160a01b03163314611a135760405162461bcd60e51b8152600401610b3d90613421565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6040516331a9108f60e11b81526004810184905233903090636352211e90602401602060405180830381865afa158015611a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a97919061348c565b6001600160a01b031614611abd5760405162461bcd60e51b8152600401610b3d906134a9565b601654600c546040516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611b18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3c919061346f565b611b585760405162461bcd60e51b8152600401610b3d906134d8565b6000838152601460205260409020611b74906001018383612d5b565b50505050565b601460205260009081526040902080548190611b9590613332565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc190613332565b8015611c0e5780601f10611be357610100808354040283529160200191611c0e565b820191906000526020600020905b815481529060010190602001808311611bf157829003601f168201915b505050505090806001018054611c2390613332565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4f90613332565b8015611c9c5780601f10611c7157610100808354040283529160200191611c9c565b820191906000526020600020905b815481529060010190602001808311611c7f57829003601f168201915b5050505050905082565b6060600380546109a290613332565b600d5462010000900460ff16611cfd5760405162461bcd60e51b815260206004820152600d60248201526c53616c6520696e61637469766560981b6044820152606401610b3d565b7f000000000000000000000000000000000000000000000000000000000000000081611d27610e8b565b611d319190613383565b1115611d4f5760405162461bcd60e51b8152600401610b3d9061339b565b600954811115611d955760405162461bcd60e51b815260206004820152601160248201527013585e081b5a5b9d08195e18d959591959607a1b6044820152606401610b3d565b3481600b54611da491906133cb565b146118b65760405162461bcd60e51b8152600401610b3d906133ea565b6001600160a01b038216331415611deb5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611e815760405162461bcd60e51b8152600401610b3d90613421565b60105460ff1615611ed45760405162461bcd60e51b815260206004820152601960248201527f416e636573746f7220616c726561647920756e6c6f636b6564000000000000006044820152606401610b3d565b611edf33600a6123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b158015611f2457600080fd5b505af1158015611f38573d6000803e3d6000fd5b50506010805460ff191660011790555050565b611f5584846123f3565b611b748484848461283f565b6008546001600160a01b03163314611f8b5760405162461bcd60e51b8152600401610b3d90613421565b600f55565b6060611f9b8261232e565b611fb857604051630a14c4b560e41b815260040160405180910390fd5b6000611fc261288a565b9050805160001415611fe3576040518060200160405280600081525061200e565b80611fed84612899565b604051602001611ffe92919061360e565b6040516020818303038152906040525b9392505050565b600e805461202290613332565b80601f016020809104026020016040519081016040528092919081815260200182805461204e90613332565b801561209b5780601f106120705761010080835404028352916020019161209b565b820191906000526020600020905b81548152906001019060200180831161207e57829003601f168201915b505050505081565b6040516bffffffffffffffffffffffff19606083901b166020820152600090819060340160405160208183030381529060405280519060200120905061212085858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f5491508490506123c3565b95945050505050565b6040516331a9108f60e11b81526004810184905233903090636352211e90602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061348c565b6001600160a01b0316146121b15760405162461bcd60e51b8152600401610b3d906134a9565b601654600c546040516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561220c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612230919061346f565b61224c5760405162461bcd60e51b8152600401610b3d906134d8565b6000838152601460205260409020611b74908383612d5b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b031633146122bd5760405162461bcd60e51b8152600401610b3d90613421565b6001600160a01b0381166123225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b3d565b61232b816127ed565b50565b600081600111158015612342575060005482105b801561098d575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000826123d0858461299e565b14949350505050565b610e87828260405180602001604052806000815250612a12565b60165460405163632447c960e01b81526001600160a01b0384811660048301529091169063632447c990602401600060405180830381600087803b15801561243a57600080fd5b505af115801561244e573d6000803e3d6000fd5b505060165460405163632447c960e01b81526001600160a01b038581166004830152909116925063632447c99150602401600060405180830381600087803b15801561249957600080fd5b505af11580156124ad573d6000803e3d6000fd5b505050505050565b60006124c0826126c6565b80519091506000906001600160a01b0316336001600160a01b031614806124ee575081516124ee9033612265565b806125095750336124fe84610a25565b6001600160a01b0316145b90508061252957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461255e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661258557604051633a954ecd60e21b815260040160405180910390fd5b6125956000848460000151612367565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661267f5760005481101561267f57825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110c1565b604080516060810182526000808252602082018190529181019190915281806001111580156126f6575060005481105b156127d457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127d25780516001600160a01b031615612769579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156127cd579392505050565b612769565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61284a8484846124b5565b6001600160a01b0383163b1515801561286c575061286a84848484612a1f565b155b15611b74576040516368d2bf6b60e11b815260040160405180910390fd5b6060600e80546109a290613332565b6060816128bd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128e757806128d18161363d565b91506128e09050600a8361366e565b91506128c1565b6000816001600160401b03811115612901576129016131b9565b6040519080825280601f01601f19166020018201604052801561292b576020820181803683370190505b5090505b841561299657612940600183613682565b915061294d600a86613699565b612958906030613383565b60f81b81838151811061296d5761296d6135f8565b60200101906001600160f81b031916908160001a90535061298f600a8661366e565b945061292f565b949350505050565b600081815b8451811015612a0a5760008582815181106129c0576129c06135f8565b602002602001015190508083116129e657600083815260208290526040902092506129f7565b600081815260208490526040902092505b5080612a028161363d565b9150506129a3565b509392505050565b610af28383836001612b07565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612a549033908990889088906004016136ad565b6020604051808303816000875af1925050508015612a8f575060408051601f3d908101601f19168201909252612a8c918101906136ea565b60015b612aea573d808015612abd576040519150601f19603f3d011682016040523d82523d6000602084013e612ac2565b606091505b508051612ae2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000546001600160a01b038516612b3057604051622e076360e81b815260040160405180910390fd5b83612b4e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612bff57506001600160a01b0387163b15155b15612c88575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612c506000888480600101955088612a1f565b612c6d576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612c05578260005414612c8357600080fd5b612cce565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612c89575b506000556110c1565b828054612ce390613332565b90600052602060002090601f016020900481019282612d055760008555612d4b565b82601f10612d1e57805160ff1916838001178555612d4b565b82800160010185558215612d4b579182015b82811115612d4b578251825591602001919060010190612d30565b50612d57929150612dcf565b5090565b828054612d6790613332565b90600052602060002090601f016020900481019282612d895760008555612d4b565b82601f10612da25782800160ff19823516178555612d4b565b82800160010185558215612d4b579182015b82811115612d4b578235825591602001919060010190612db4565b5b80821115612d575760008155600101612dd0565b6001600160e01b03198116811461232b57600080fd5b600060208284031215612e0c57600080fd5b813561200e81612de4565b60005b83811015612e32578181015183820152602001612e1a565b83811115611b745750506000910152565b60008151808452612e5b816020860160208601612e17565b601f01601f19169290920160200192915050565b60208152600061200e6020830184612e43565b600060208284031215612e9457600080fd5b5035919050565b6001600160a01b038116811461232b57600080fd5b60008060408385031215612ec357600080fd5b8235612ece81612e9b565b946020939093013593505050565b60008083601f840112612eee57600080fd5b5081356001600160401b03811115612f0557600080fd5b6020830191508360208260051b8501011115612f2057600080fd5b9250929050565b600080600060408486031215612f3c57600080fd5b8335925060208401356001600160401b03811115612f5957600080fd5b612f6586828701612edc565b9497909650939450505050565b600080600060608486031215612f8757600080fd5b8335612f9281612e9b565b92506020840135612fa281612e9b565b929592945050506040919091013590565b60008083601f840112612fc557600080fd5b5081356001600160401b03811115612fdc57600080fd5b602083019150836020828501011115612f2057600080fd5b60008060008060006060868803121561300c57600080fd5b8535945060208601356001600160401b038082111561302a57600080fd5b61303689838a01612fb3565b9096509450604088013591508082111561304f57600080fd5b5061305c88828901612fb3565b969995985093965092949392505050565b60006020828403121561307f57600080fd5b813561200e81612e9b565b6000806020838503121561309d57600080fd5b82356001600160401b038111156130b357600080fd5b6130bf85828601612fb3565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015613103578351835292840192918401916001016130e7565b50909695505050505050565b60008060006040848603121561312457600080fd5b8335925060208401356001600160401b0381111561314157600080fd5b612f6586828701612fb3565b6040815260006131606040830185612e43565b82810360208401526121208185612e43565b801515811461232b57600080fd5b6000806040838503121561319357600080fd5b823561319e81612e9b565b915060208301356131ae81613172565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156131e557600080fd5b84356131f081612e9b565b9350602085013561320081612e9b565b92506040850135915060608501356001600160401b038082111561322357600080fd5b818701915087601f83011261323757600080fd5b813581811115613249576132496131b9565b604051601f8201601f19908116603f01168101908382118183101715613271576132716131b9565b816040528281528a602084870101111561328a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000604084860312156132c357600080fd5b83356001600160401b038111156132d957600080fd5b6132e586828701612edc565b90945092505060208401356132f981612e9b565b809150509250925092565b6000806040838503121561331757600080fd5b823561332281612e9b565b915060208301356131ae81612e9b565b600181811c9082168061334657607f821691505b6020821081141561336757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156133965761339661336d565b500190565b6020808252601690820152754d696e7420657863656564206d617820737570706c7960501b604082015260600190565b60008160001904831182151516156133e5576133e561336d565b500290565b60208082526017908201527f56616c75652073656e7420697320696e636f7272656374000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561346857600080fd5b5051919050565b60006020828403121561348157600080fd5b815161200e81613172565b60006020828403121561349e57600080fd5b815161200e81612e9b565b6020808252601590820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604082015260600190565b602080825260139082015272141055c81d1c985b9cd9995c8819985a5b1959606a1b604082015260600190565b600181815b808511156135405781600019048211156135265761352661336d565b8085161561353357918102915b93841c939080029061350a565b509250929050565b6000826135575750600161098d565b816135645750600061098d565b816001811461357a5760028114613584576135a0565b600191505061098d565b60ff8411156135955761359561336d565b50506001821b61098d565b5060208310610133831016604e8410600b84101617156135c3575081810a61098d565b6135cd8383613505565b80600019048211156135e1576135e161336d565b029392505050565b600061200e60ff841683613548565b634e487b7160e01b600052603260045260246000fd5b60008351613620818460208801612e17565b835190830190613634818360208801612e17565b01949350505050565b60006000198214156136515761365161336d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261367d5761367d613658565b500490565b6000828210156136945761369461336d565b500390565b6000826136a8576136a8613658565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136e090830184612e43565b9695505050505050565b6000602082840312156136fc57600080fd5b815161200e81612de456fea26469706673582212203a6e8fcee05f6d01f7abbd0645d3c1a1d35377cfce2edef75db0fd4e244426ed64736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000054756b4533085cf959a3c6ef0747188a245f0a4100000000000000000000000000000000000000000000000000000000000000094b756d615665727365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b554d4100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6b756d6176657273652e78797a2f6170692f6b756d612f00

Deployed Bytecode

0x6080604052600436106102ff5760003560e01c80637d8966e411610190578063aa98e0c6116100dc578063d547cfb711610095578063e0a689811161006f578063e0a68981146108cb578063e985e9c5146108eb578063f2fde38b1461090b578063fd6552851461092b57600080fd5b8063d547cfb714610862578063d5abeb0114610877578063debefaa6146108ab57600080fd5b8063aa98e0c6146107aa578063b1f49202146107c0578063b88d4fde146107d5578063bd32fb66146107f5578063c87b56dd14610815578063c884ef831461083557600080fd5b8063932041c011610149578063a035b1fe11610123578063a035b1fe1461074b578063a0712d6814610761578063a22cb46514610774578063a759a7c81461079457600080fd5b8063932041c0146106e857806395243ee21461070857806395d89b411461073657600080fd5b80637d8966e41461062857806380a15a161461063d578063819b25ba1461065d5780638462151c1461067d5780638da5cb5b146106aa57806391abf76c146106c857600080fd5b80633ccfd60b1161024f57806361cd008911610208578063698390b1116101e2578063698390b1146105a35780636d6e8185146105c357806370a08231146105f3578063715018a61461061357600080fd5b806361cd00891461054e5780636352211e1461056357806368428a1b1461058357600080fd5b80633ccfd60b1461049357806342842e0e146104a85780634c786d1d146104c857806353135ca0146104f557806355f804b314610514578063593d59a41461053457600080fd5b806318160ddd116102bc57806324b529781161029657806324b52978146104355780632bac99a314610448578063343937431461046857806334ea1ca61461047d57600080fd5b806318160ddd146103dd5780632114bb5a1461040057806323b872dd1461041557600080fd5b806301ffc9a71461030457806306fdde0314610339578063081812fc1461035b578063095ea7b3146103935780630c0a6b5e146103b557806314ee7bf6146103c8575b600080fd5b34801561031057600080fd5b5061032461031f366004612dfa565b610941565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b5061034e610993565b6040516103309190612e6f565b34801561036757600080fd5b5061037b610376366004612e82565b610a25565b6040516001600160a01b039091168152602001610330565b34801561039f57600080fd5b506103b36103ae366004612eb0565b610a69565b005b6103b36103c3366004612f27565b610af7565b3480156103d457600080fd5b506103b3610d7a565b3480156103e957600080fd5b506103f2610e8b565b604051908152602001610330565b34801561040c57600080fd5b506103b3610e99565b34801561042157600080fd5b506103b3610430366004612f72565b6110c8565b6103b3610443366004612e82565b6110dd565b34801561045457600080fd5b506103b3610463366004612ff4565b6113ae565b34801561047457600080fd5b506103b36115a6565b34801561048957600080fd5b506103f2600c5481565b34801561049f57600080fd5b506103b36115ed565b3480156104b457600080fd5b506103b36104c3366004612f72565b611645565b3480156104d457600080fd5b506103f26104e336600461306d565b60126020526000908152604090205481565b34801561050157600080fd5b50600d5461032490610100900460ff1681565b34801561052057600080fd5b506103b361052f36600461308a565b611660565b34801561054057600080fd5b50600d546103249060ff1681565b34801561055a57600080fd5b506103b3611696565b34801561056f57600080fd5b5061037b61057e366004612e82565b6116d4565b34801561058f57600080fd5b50600d546103249062010000900460ff1681565b3480156105af57600080fd5b506103b36105be366004612e82565b6116e6565b3480156105cf57600080fd5b506103246105de36600461306d565b60136020526000908152604090205460ff1681565b3480156105ff57600080fd5b506103f261060e36600461306d565b611721565b34801561061f57600080fd5b506103b361176f565b34801561063457600080fd5b506103b36117a5565b34801561064957600080fd5b506103b361065836600461306d565b6117ee565b34801561066957600080fd5b506103b3610678366004612e82565b61183a565b34801561068957600080fd5b5061069d61069836600461306d565b6118c0565b60405161033091906130cb565b3480156106b657600080fd5b506008546001600160a01b031661037b565b3480156106d457600080fd5b506103b36106e336600461306d565b6119e9565b3480156106f457600080fd5b506103b361070336600461310f565b611a35565b34801561071457600080fd5b50610728610723366004612e82565b611b7a565b60405161033092919061314d565b34801561074257600080fd5b5061034e611ca6565b34801561075757600080fd5b506103f2600b5481565b6103b361076f366004612e82565b611cb5565b34801561078057600080fd5b506103b361078f366004613180565b611dc1565b3480156107a057600080fd5b506103f2600a5481565b3480156107b657600080fd5b506103f2600f5481565b3480156107cc57600080fd5b506103b3611e57565b3480156107e157600080fd5b506103b36107f03660046131cf565b611f4b565b34801561080157600080fd5b506103b3610810366004612e82565b611f61565b34801561082157600080fd5b5061034e610830366004612e82565b611f90565b34801561084157600080fd5b506103f261085036600461306d565b60116020526000908152604090205481565b34801561086e57600080fd5b5061034e612015565b34801561088357600080fd5b506103f27f00000000000000000000000000000000000000000000000000000000000007d081565b3480156108b757600080fd5b506103246108c63660046132ae565b6120a3565b3480156108d757600080fd5b506103b36108e636600461310f565b612129565b3480156108f757600080fd5b50610324610906366004613304565b612265565b34801561091757600080fd5b506103b361092636600461306d565b612293565b34801561093757600080fd5b506103f260095481565b60006001600160e01b031982166380ac58cd60e01b148061097257506001600160e01b03198216635b5e139f60e01b145b8061098d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546109a290613332565b80601f01602080910402602001604051908101604052809291908181526020018280546109ce90613332565b8015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b5050505050905090565b6000610a308261232e565b610a4d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a74826116d4565b9050806001600160a01b0316836001600160a01b03161415610aa95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ac95750610ac78133612265565b155b15610ae7576040516367d9dca160e11b815260040160405180910390fd5b610af2838383612367565b505050565b600d54610100900460ff16610b465760405162461bcd60e51b815260206004820152601060248201526f50726573616c6520696e61637469766560801b60448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000007d083610b70610e8b565b610b7a9190613383565b1115610b985760405162461bcd60e51b8152600401610b3d9061339b565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610c1283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f5491508490506123c3565b610c505760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610b3d565b600a5433600090815260116020526040902054610c6e908690613383565b1115610cbc5760405162461bcd60e51b815260206004820152601760248201527f57686974656c697374206d696e742065786365656465640000000000000000006044820152606401610b3d565b3484600b54610ccb91906133cb565b14610ce85760405162461bcd60e51b8152600401610b3d906133ea565b3360009081526011602052604081208054869290610d07908490613383565b90915550610d17905033856123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b158015610d5c57600080fd5b505af1158015610d70573d6000803e3d6000fd5b5050505050505050565b6008546001600160a01b03163314610da45760405162461bcd60e51b8152600401610b3d90613421565b6016546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610ded573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e119190613456565b60165460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610e63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e87919061346f565b5050565b600154600054036000190190565b600d5460ff16610ee25760405162461bcd60e51b8152602060048201526014602482015273547261636b657253616c6520696e61637469766560601b6044820152606401610b3d565b3360009081526013602052604090205460ff1615610f345760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610b3d565b601554604051627eeac760e11b8152336004820152600160248201526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610f82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa69190613456565b905060008111610ff25760405162461bcd60e51b81526020600482015260176024820152762cb7ba903237b713ba1037bbb71030903a3930b1b5b2b960491b6044820152606401610b3d565b7f00000000000000000000000000000000000000000000000000000000000007d08161101c610e8b565b6110269190613383565b11156110445760405162461bcd60e51b8152600401610b3d9061339b565b336000818152601360205260409020805460ff1916600117905561106890826123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b1580156110ad57600080fd5b505af11580156110c1573d6000803e3d6000fd5b5050505050565b6110d283836123f3565b610af28383836124b5565b600d5460ff166111265760405162461bcd60e51b8152602060048201526014602482015273547261636b657253616c6520696e61637469766560601b6044820152606401610b3d565b7f00000000000000000000000000000000000000000000000000000000000007d081611150610e8b565b61115a9190613383565b11156111785760405162461bcd60e51b8152600401610b3d9061339b565b601554604051627eeac760e11b8152336004820152600160248201526000916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156111c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ea9190613456565b9050600081116112365760405162461bcd60e51b81526020600482015260176024820152762cb7ba903237b713ba1037bbb71030903a3930b1b5b2b960491b6044820152606401610b3d565b6112418160026133cb565b3360009081526012602052604090205461125c908490613383565b11156112a25760405162461bcd60e51b8152602060048201526015602482015274151c9858dad95c881b5a5b9d08195e18d959591959605a1b6044820152606401610b3d565b3482600b546112b191906133cb565b146112ce5760405162461bcd60e51b8152600401610b3d906133ea565b60008115611314573360009081526013602052604090205460ff16611314576112f78282613383565b336000908152601360205260409020805460ff1916600117905590505b3360009081526012602052604081208054859290611333908490613383565b9091555061134c9050336113478386613383565b6123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b15801561139157600080fd5b505af11580156113a5573d6000803e3d6000fd5b50505050505050565b6040516331a9108f60e11b81526004810186905233903090636352211e90602401602060405180830381865afa1580156113ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611410919061348c565b6001600160a01b0316146114365760405162461bcd60e51b8152600401610b3d906134a9565b601654600c546001600160a01b03909116906323b872dd903390309061145d9060026133cb565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156114b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d5919061346f565b6114f15760405162461bcd60e51b8152600401610b3d906134d8565b6040805160606020601f87018190040282018101835291810185815290918291908790879081908501838280828437600092019190915250505090825250604080516020601f86018190048102820181019092528481529181019190859085908190840183828082843760009201829052509390945250508781526014602090815260409091208351805191935061158d928492910190612cd7565b506020828101518051610d709260018501920190612cd7565b6008546001600160a01b031633146115d05760405162461bcd60e51b8152600401610b3d90613421565b600d805461ff001981166101009182900460ff1615909102179055565b6008546001600160a01b031633146116175760405162461bcd60e51b8152600401610b3d90613421565b604051339081904780156108fc02916000818181858888f19350505050158015610e87573d6000803e3d6000fd5b610af283838360405180602001604052806000815250611f4b565b6008546001600160a01b0316331461168a5760405162461bcd60e51b8152600401610b3d90613421565b610af2600e8383612d5b565b6008546001600160a01b031633146116c05760405162461bcd60e51b8152600401610b3d90613421565b600d805460ff19811660ff90911615179055565b60006116df826126c6565b5192915050565b6008546001600160a01b031633146117105760405162461bcd60e51b8152600401610b3d90613421565b61171b6012826135e9565b600c5550565b60006001600160a01b03821661174a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146117995760405162461bcd60e51b8152600401610b3d90613421565b6117a360006127ed565b565b6008546001600160a01b031633146117cf5760405162461bcd60e51b8152600401610b3d90613421565b600d805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b031633146118185760405162461bcd60e51b8152600401610b3d90613421565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146118645760405162461bcd60e51b8152600401610b3d90613421565b7f00000000000000000000000000000000000000000000000000000000000007d08161188e610e8b565b6118989190613383565b11156118b65760405162461bcd60e51b8152600401610b3d9061339b565b61106833826123d9565b606060006118cd83611721565b6001600160401b038111156118e4576118e46131b9565b60405190808252806020026020018201604052801561190d578160200160208202803683370190505b506000805491925080805b838110156119de57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061197f57506119d6565b80516001600160a01b03161561199457805192505b876001600160a01b0316836001600160a01b031614156119d457818685806001019650815181106119c7576119c76135f8565b6020026020010181815250505b505b600101611918565b509295945050505050565b6008546001600160a01b03163314611a135760405162461bcd60e51b8152600401610b3d90613421565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6040516331a9108f60e11b81526004810184905233903090636352211e90602401602060405180830381865afa158015611a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a97919061348c565b6001600160a01b031614611abd5760405162461bcd60e51b8152600401610b3d906134a9565b601654600c546040516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611b18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3c919061346f565b611b585760405162461bcd60e51b8152600401610b3d906134d8565b6000838152601460205260409020611b74906001018383612d5b565b50505050565b601460205260009081526040902080548190611b9590613332565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc190613332565b8015611c0e5780601f10611be357610100808354040283529160200191611c0e565b820191906000526020600020905b815481529060010190602001808311611bf157829003601f168201915b505050505090806001018054611c2390613332565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4f90613332565b8015611c9c5780601f10611c7157610100808354040283529160200191611c9c565b820191906000526020600020905b815481529060010190602001808311611c7f57829003601f168201915b5050505050905082565b6060600380546109a290613332565b600d5462010000900460ff16611cfd5760405162461bcd60e51b815260206004820152600d60248201526c53616c6520696e61637469766560981b6044820152606401610b3d565b7f00000000000000000000000000000000000000000000000000000000000007d081611d27610e8b565b611d319190613383565b1115611d4f5760405162461bcd60e51b8152600401610b3d9061339b565b600954811115611d955760405162461bcd60e51b815260206004820152601160248201527013585e081b5a5b9d08195e18d959591959607a1b6044820152606401610b3d565b3481600b54611da491906133cb565b146118b65760405162461bcd60e51b8152600401610b3d906133ea565b6001600160a01b038216331415611deb5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611e815760405162461bcd60e51b8152600401610b3d90613421565b60105460ff1615611ed45760405162461bcd60e51b815260206004820152601960248201527f416e636573746f7220616c726561647920756e6c6f636b6564000000000000006044820152606401610b3d565b611edf33600a6123d9565b60165460405163632447c960e01b81523360048201526001600160a01b039091169063632447c990602401600060405180830381600087803b158015611f2457600080fd5b505af1158015611f38573d6000803e3d6000fd5b50506010805460ff191660011790555050565b611f5584846123f3565b611b748484848461283f565b6008546001600160a01b03163314611f8b5760405162461bcd60e51b8152600401610b3d90613421565b600f55565b6060611f9b8261232e565b611fb857604051630a14c4b560e41b815260040160405180910390fd5b6000611fc261288a565b9050805160001415611fe3576040518060200160405280600081525061200e565b80611fed84612899565b604051602001611ffe92919061360e565b6040516020818303038152906040525b9392505050565b600e805461202290613332565b80601f016020809104026020016040519081016040528092919081815260200182805461204e90613332565b801561209b5780601f106120705761010080835404028352916020019161209b565b820191906000526020600020905b81548152906001019060200180831161207e57829003601f168201915b505050505081565b6040516bffffffffffffffffffffffff19606083901b166020820152600090819060340160405160208183030381529060405280519060200120905061212085858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f5491508490506123c3565b95945050505050565b6040516331a9108f60e11b81526004810184905233903090636352211e90602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061348c565b6001600160a01b0316146121b15760405162461bcd60e51b8152600401610b3d906134a9565b601654600c546040516323b872dd60e01b815233600482015230602482015260448101919091526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561220c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612230919061346f565b61224c5760405162461bcd60e51b8152600401610b3d906134d8565b6000838152601460205260409020611b74908383612d5b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b031633146122bd5760405162461bcd60e51b8152600401610b3d90613421565b6001600160a01b0381166123225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b3d565b61232b816127ed565b50565b600081600111158015612342575060005482105b801561098d575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000826123d0858461299e565b14949350505050565b610e87828260405180602001604052806000815250612a12565b60165460405163632447c960e01b81526001600160a01b0384811660048301529091169063632447c990602401600060405180830381600087803b15801561243a57600080fd5b505af115801561244e573d6000803e3d6000fd5b505060165460405163632447c960e01b81526001600160a01b038581166004830152909116925063632447c99150602401600060405180830381600087803b15801561249957600080fd5b505af11580156124ad573d6000803e3d6000fd5b505050505050565b60006124c0826126c6565b80519091506000906001600160a01b0316336001600160a01b031614806124ee575081516124ee9033612265565b806125095750336124fe84610a25565b6001600160a01b0316145b90508061252957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461255e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661258557604051633a954ecd60e21b815260040160405180910390fd5b6125956000848460000151612367565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661267f5760005481101561267f57825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110c1565b604080516060810182526000808252602082018190529181019190915281806001111580156126f6575060005481105b156127d457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127d25780516001600160a01b031615612769579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156127cd579392505050565b612769565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61284a8484846124b5565b6001600160a01b0383163b1515801561286c575061286a84848484612a1f565b155b15611b74576040516368d2bf6b60e11b815260040160405180910390fd5b6060600e80546109a290613332565b6060816128bd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128e757806128d18161363d565b91506128e09050600a8361366e565b91506128c1565b6000816001600160401b03811115612901576129016131b9565b6040519080825280601f01601f19166020018201604052801561292b576020820181803683370190505b5090505b841561299657612940600183613682565b915061294d600a86613699565b612958906030613383565b60f81b81838151811061296d5761296d6135f8565b60200101906001600160f81b031916908160001a90535061298f600a8661366e565b945061292f565b949350505050565b600081815b8451811015612a0a5760008582815181106129c0576129c06135f8565b602002602001015190508083116129e657600083815260208290526040902092506129f7565b600081815260208490526040902092505b5080612a028161363d565b9150506129a3565b509392505050565b610af28383836001612b07565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612a549033908990889088906004016136ad565b6020604051808303816000875af1925050508015612a8f575060408051601f3d908101601f19168201909252612a8c918101906136ea565b60015b612aea573d808015612abd576040519150601f19603f3d011682016040523d82523d6000602084013e612ac2565b606091505b508051612ae2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000546001600160a01b038516612b3057604051622e076360e81b815260040160405180910390fd5b83612b4e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612bff57506001600160a01b0387163b15155b15612c88575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612c506000888480600101955088612a1f565b612c6d576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612c05578260005414612c8357600080fd5b612cce565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612c89575b506000556110c1565b828054612ce390613332565b90600052602060002090601f016020900481019282612d055760008555612d4b565b82601f10612d1e57805160ff1916838001178555612d4b565b82800160010185558215612d4b579182015b82811115612d4b578251825591602001919060010190612d30565b50612d57929150612dcf565b5090565b828054612d6790613332565b90600052602060002090601f016020900481019282612d895760008555612d4b565b82601f10612da25782800160ff19823516178555612d4b565b82800160010185558215612d4b579182015b82811115612d4b578235825591602001919060010190612db4565b5b80821115612d575760008155600101612dd0565b6001600160e01b03198116811461232b57600080fd5b600060208284031215612e0c57600080fd5b813561200e81612de4565b60005b83811015612e32578181015183820152602001612e1a565b83811115611b745750506000910152565b60008151808452612e5b816020860160208601612e17565b601f01601f19169290920160200192915050565b60208152600061200e6020830184612e43565b600060208284031215612e9457600080fd5b5035919050565b6001600160a01b038116811461232b57600080fd5b60008060408385031215612ec357600080fd5b8235612ece81612e9b565b946020939093013593505050565b60008083601f840112612eee57600080fd5b5081356001600160401b03811115612f0557600080fd5b6020830191508360208260051b8501011115612f2057600080fd5b9250929050565b600080600060408486031215612f3c57600080fd5b8335925060208401356001600160401b03811115612f5957600080fd5b612f6586828701612edc565b9497909650939450505050565b600080600060608486031215612f8757600080fd5b8335612f9281612e9b565b92506020840135612fa281612e9b565b929592945050506040919091013590565b60008083601f840112612fc557600080fd5b5081356001600160401b03811115612fdc57600080fd5b602083019150836020828501011115612f2057600080fd5b60008060008060006060868803121561300c57600080fd5b8535945060208601356001600160401b038082111561302a57600080fd5b61303689838a01612fb3565b9096509450604088013591508082111561304f57600080fd5b5061305c88828901612fb3565b969995985093965092949392505050565b60006020828403121561307f57600080fd5b813561200e81612e9b565b6000806020838503121561309d57600080fd5b82356001600160401b038111156130b357600080fd5b6130bf85828601612fb3565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015613103578351835292840192918401916001016130e7565b50909695505050505050565b60008060006040848603121561312457600080fd5b8335925060208401356001600160401b0381111561314157600080fd5b612f6586828701612fb3565b6040815260006131606040830185612e43565b82810360208401526121208185612e43565b801515811461232b57600080fd5b6000806040838503121561319357600080fd5b823561319e81612e9b565b915060208301356131ae81613172565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156131e557600080fd5b84356131f081612e9b565b9350602085013561320081612e9b565b92506040850135915060608501356001600160401b038082111561322357600080fd5b818701915087601f83011261323757600080fd5b813581811115613249576132496131b9565b604051601f8201601f19908116603f01168101908382118183101715613271576132716131b9565b816040528281528a602084870101111561328a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000604084860312156132c357600080fd5b83356001600160401b038111156132d957600080fd5b6132e586828701612edc565b90945092505060208401356132f981612e9b565b809150509250925092565b6000806040838503121561331757600080fd5b823561332281612e9b565b915060208301356131ae81612e9b565b600181811c9082168061334657607f821691505b6020821081141561336757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156133965761339661336d565b500190565b6020808252601690820152754d696e7420657863656564206d617820737570706c7960501b604082015260600190565b60008160001904831182151516156133e5576133e561336d565b500290565b60208082526017908201527f56616c75652073656e7420697320696e636f7272656374000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561346857600080fd5b5051919050565b60006020828403121561348157600080fd5b815161200e81613172565b60006020828403121561349e57600080fd5b815161200e81612e9b565b6020808252601590820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604082015260600190565b602080825260139082015272141055c81d1c985b9cd9995c8819985a5b1959606a1b604082015260600190565b600181815b808511156135405781600019048211156135265761352661336d565b8085161561353357918102915b93841c939080029061350a565b509250929050565b6000826135575750600161098d565b816135645750600061098d565b816001811461357a5760028114613584576135a0565b600191505061098d565b60ff8411156135955761359561336d565b50506001821b61098d565b5060208310610133831016604e8410600b84101617156135c3575081810a61098d565b6135cd8383613505565b80600019048211156135e1576135e161336d565b029392505050565b600061200e60ff841683613548565b634e487b7160e01b600052603260045260246000fd5b60008351613620818460208801612e17565b835190830190613634818360208801612e17565b01949350505050565b60006000198214156136515761365161336d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261367d5761367d613658565b500490565b6000828210156136945761369461336d565b500390565b6000826136a8576136a8613658565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136e090830184612e43565b9695505050505050565b6000602082840312156136fc57600080fd5b815161200e81612de456fea26469706673582212203a6e8fcee05f6d01f7abbd0645d3c1a1d35377cfce2edef75db0fd4e244426ed64736f6c634300080a0033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000054756b4533085cf959a3c6ef0747188a245f0a4100000000000000000000000000000000000000000000000000000000000000094b756d615665727365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b554d4100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6b756d6176657273652e78797a2f6170692f6b756d612f00

-----Decoded View---------------
Arg [0] : name_ (string): KumaVerse
Arg [1] : symbol_ (string): KUMA
Arg [2] : baseTokenURI_ (string): https://kumaverse.xyz/api/kuma/
Arg [3] : maxSupply_ (uint256): 2000
Arg [4] : maxMintAtOnce_ (uint256): 10
Arg [5] : maxMintWhitelist_ (uint256): 2
Arg [6] : trackerContract_ (address): 0x54756b4533085cf959a3C6Ef0747188A245f0a41

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 00000000000000000000000054756b4533085cf959a3c6ef0747188a245f0a41
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 4b756d6156657273650000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 4b554d4100000000000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [12] : 68747470733a2f2f6b756d6176657273652e78797a2f6170692f6b756d612f00


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

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