ETH Price: $3,482.00 (+0.89%)

Contract

0xC709904B5EE5717ed35bfE6f59038D6c877b20Ad
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint Cub204076742024-07-28 21:15:11145 days ago1722201311IN
0xC709904B...c877b20Ad
0 ETH0.000414472.12115009
Set Approval For...190375172024-01-19 1:06:47337 days ago1705626407IN
0xC709904B...c877b20Ad
0 ETH0.0017581938.0100416
Set Approval For...189128522024-01-01 13:23:35354 days ago1704115415IN
0xC709904B...c877b20Ad
0 ETH0.0005297211.47277719
Safe Transfer Fr...189114172024-01-01 8:31:23354 days ago1704097883IN
0xC709904B...c877b20Ad
0 ETH0.000610989.49953506
Safe Transfer Fr...189057142023-12-31 13:19:11355 days ago1704028751IN
0xC709904B...c877b20Ad
0 ETH0.0009497913.74177123
Safe Transfer Fr...189049262023-12-31 10:40:11355 days ago1704019211IN
0xC709904B...c877b20Ad
0 ETH0.0008348412.08079078
Mint Cub188950252023-12-30 1:16:59357 days ago1703899019IN
0xC709904B...c877b20Ad
0 ETH0.0021006814.50797156
Mint Cub188530362023-12-24 3:43:59362 days ago1703389439IN
0xC709904B...c877b20Ad
0 ETH0.0089959118.98981841
Mint Cub188516962023-12-23 23:11:35363 days ago1703373095IN
0xC709904B...c877b20Ad
0 ETH0.0040866318.51660194
Mint Cub188383462023-12-22 2:14:35365 days ago1703211275IN
0xC709904B...c877b20Ad
0 ETH0.0054428924.66186018
Safe Transfer Fr...187624962023-12-11 10:53:59375 days ago1702292039IN
0xC709904B...c877b20Ad
0 ETH0.0017437425.22886814
Mint Cub187533502023-12-10 4:12:35376 days ago1702181555IN
0xC709904B...c877b20Ad
0 ETH0.00490722.23371322
Safe Transfer Fr...186398432023-11-24 6:40:59392 days ago1700808059IN
0xC709904B...c877b20Ad
0 ETH0.0017566719.11586598
Safe Transfer Fr...186396082023-11-24 5:53:23392 days ago1700805203IN
0xC709904B...c877b20Ad
0 ETH0.001205217.43718589
Mint Cub186070602023-11-19 16:31:23397 days ago1700411483IN
0xC709904B...c877b20Ad
0 ETH0.0055050722.37810034
Safe Transfer Fr...186006682023-11-18 19:01:59398 days ago1700334119IN
0xC709904B...c877b20Ad
0 ETH0.0019673328.46380833
Mint Cub184587822023-10-29 22:21:59418 days ago1698618119IN
0xC709904B...c877b20Ad
0 ETH0.0022988115.87637148
Set Approval For...184249912023-10-25 4:50:35422 days ago1698209435IN
0xC709904B...c877b20Ad
0 ETH0.0002628910.79936403
Mint Cub183476562023-10-14 9:13:35433 days ago1697274815IN
0xC709904B...c877b20Ad
0 ETH0.000645975.40594254
Mint Cub183476552023-10-14 9:13:23433 days ago1697274803IN
0xC709904B...c877b20Ad
0 ETH0.000666235.57547686
Mint Cub183476552023-10-14 9:13:23433 days ago1697274803IN
0xC709904B...c877b20Ad
0 ETH0.000666235.57547686
Mint Cub183476542023-10-14 9:13:11433 days ago1697274791IN
0xC709904B...c877b20Ad
0 ETH0.000679635.68768745
Mint Cub183476412023-10-14 9:10:35433 days ago1697274635IN
0xC709904B...c877b20Ad
0 ETH0.000679075.68294072
Mint Spirit183476402023-10-14 9:10:23433 days ago1697274623IN
0xC709904B...c877b20Ad
0 ETH0.000904245.79575773
Mint Cub183476402023-10-14 9:10:23433 days ago1697274623IN
0xC709904B...c877b20Ad
0 ETH0.000692555.79575773
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
204076742024-07-28 21:15:11145 days ago1722201311
0xC709904B...c877b20Ad
0 ETH
204076742024-07-28 21:15:11145 days ago1722201311
0xC709904B...c877b20Ad
0 ETH
195649132024-04-02 1:42:23263 days ago1712022143
0xC709904B...c877b20Ad
0 ETH
193030292024-02-25 7:12:47299 days ago1708845167
0xC709904B...c877b20Ad
0 ETH
189129302024-01-01 13:39:23354 days ago1704116363
0xC709904B...c877b20Ad
0 ETH
189129302024-01-01 13:39:23354 days ago1704116363
0xC709904B...c877b20Ad
0 ETH
188950252023-12-30 1:16:59357 days ago1703899019
0xC709904B...c877b20Ad
0 ETH
188950252023-12-30 1:16:59357 days ago1703899019
0xC709904B...c877b20Ad
0 ETH
188530362023-12-24 3:43:59362 days ago1703389439
0xC709904B...c877b20Ad
0 ETH
188530362023-12-24 3:43:59362 days ago1703389439
0xC709904B...c877b20Ad
0 ETH
188516962023-12-23 23:11:35363 days ago1703373095
0xC709904B...c877b20Ad
0 ETH
188516962023-12-23 23:11:35363 days ago1703373095
0xC709904B...c877b20Ad
0 ETH
188383782023-12-22 2:20:59365 days ago1703211659
0xC709904B...c877b20Ad
0 ETH
188383782023-12-22 2:20:59365 days ago1703211659
0xC709904B...c877b20Ad
0 ETH
188383782023-12-22 2:20:59365 days ago1703211659
0xC709904B...c877b20Ad
0 ETH
188383462023-12-22 2:14:35365 days ago1703211275
0xC709904B...c877b20Ad
0 ETH
188383462023-12-22 2:14:35365 days ago1703211275
0xC709904B...c877b20Ad
0 ETH
187533502023-12-10 4:12:35376 days ago1702181555
0xC709904B...c877b20Ad
0 ETH
187533502023-12-10 4:12:35376 days ago1702181555
0xC709904B...c877b20Ad
0 ETH
186070602023-11-19 16:31:23397 days ago1700411483
0xC709904B...c877b20Ad
0 ETH
186070602023-11-19 16:31:23397 days ago1700411483
0xC709904B...c877b20Ad
0 ETH
184999122023-11-04 16:38:23412 days ago1699115903
0xC709904B...c877b20Ad
0 ETH
184999122023-11-04 16:38:23412 days ago1699115903
0xC709904B...c877b20Ad
0 ETH
184999122023-11-04 16:38:23412 days ago1699115903
0xC709904B...c877b20Ad
0 ETH
184999122023-11-04 16:38:23412 days ago1699115903
0xC709904B...c877b20Ad
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KumaCub

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.12;

import "./ERC721ACustom.sol";
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import '@openzeppelin/contracts/utils/Strings.sol';


contract KumaCub is ERC721ACustom, Ownable {
    using Strings for uint128;

    // 1 = tribal / 2 = tech / 3 = astral / 4 = mutant / 5 = spirit
    struct FactionInfos {
        uint128 faction;
        uint128 factionIndex;
    }

    string public baseTokenURI;
    bool regularUri = false;
    bool public cubLive = false;
    uint256 public immutable maxSupply;

    IERC721 genesisContract;
    IERC1155 trackerContract;
    IERC20 pawContract;

    mapping(uint256 => FactionInfos) public faction;
    uint256 public maxSupplyPerFaction = 935;

    mapping(uint256 => uint256) public factionSupply;

    uint256 public breedCost = 900 ether;

    bool public spiritEventActive = false;
    uint256 public maxSpiritSupply = 260;
    uint256 public currentEventMaxSupply = 0;
    uint256 public currentEvent = 0;
    mapping(uint256 => mapping(address => uint256)) public currentEventClaimed;

    uint256 lastPawSplitId = 0;

    error NotLive();
    error NotEnoughGenesis();
    error NoTracker();
    error SpiritEventInactive();
    error WrongFaction();
    error MaxSupply();
    error AlreadyClaimed();

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _baseTokenURI,
        uint256 _maxSupply,
        address _genesisContract,
        address _trackerContract,
        address _pawContract
    ) ERC721ACustom(_name, _symbol){
        baseTokenURI = _baseTokenURI;
        maxSupply = _maxSupply;
        genesisContract = IERC721(_genesisContract);
        trackerContract = IERC1155(_trackerContract);
        pawContract = IERC20(_pawContract);
    }

    function mintCub(uint256 factionId, uint256 _quantity) external {
        if (!cubLive) revert NotLive();
        if (genesisContract.balanceOf(msg.sender) < 2) revert NotEnoughGenesis();
        if (factionId > 4) revert WrongFaction();
        if (factionSupply[factionId] + _quantity > maxSupplyPerFaction) revert MaxSupply();

        if (pawContract.transferFrom(msg.sender, address(this), breedCost * _quantity)) {
            for (uint i = 1; i <= _quantity; i++) {
                factionSupply[factionId] += 1;
                faction[totalSupply() + i] = FactionInfos(uint128(factionId), uint128(factionSupply[factionId]));
            }
            _safeMint(msg.sender, _quantity);
        }
    }

    function mintSpirit(uint256 _quantity) external {
        if (!spiritEventActive) revert SpiritEventInactive();
        if (genesisContract.balanceOf(msg.sender) < 2) revert NotEnoughGenesis();
        uint256 trackerBalance = trackerContract.balanceOf(msg.sender, 1);
        if (trackerBalance == 0) revert NoTracker();
        uint256 _factionSupply =  factionSupply[5];
        if (currentEventClaimed[currentEvent][msg.sender] + _quantity > trackerBalance) revert AlreadyClaimed();
        if (_factionSupply + _quantity > currentEventMaxSupply) revert MaxSupply();
        if (_factionSupply + _quantity > maxSpiritSupply) revert MaxSupply();

        if (pawContract.transferFrom(msg.sender, address(this), breedCost * _quantity)) {
            currentEventClaimed[currentEvent][msg.sender] += _quantity;
            for (uint i = 1; i <= _quantity; i++) {
                factionSupply[5] += 1;
                faction[totalSupply() + i] = FactionInfos(uint128(5), uint128(factionSupply[5]));
            }
            _safeMint(msg.sender, _quantity);
        }
    }

    function setCurrentEvent(uint256 _currentEvent, uint256 _maxSupply) external onlyOwner{
        currentEvent = _currentEvent;
        currentEventMaxSupply = _maxSupply;
    }

    function triggerSpiritEvent() external onlyOwner{
        spiritEventActive = !spiritEventActive;
    }

    function splitRewards() external onlyOwner {
        address a1 = genesisContract.ownerOf(2001);
        address a2 = genesisContract.ownerOf(2002);
        address a3 = genesisContract.ownerOf(2003);
        address a4 = genesisContract.ownerOf(2004);
        address a5 = genesisContract.ownerOf(2005);
        address a6 = genesisContract.ownerOf(2006);
        address a7 = genesisContract.ownerOf(2007);
        address a8 = genesisContract.ownerOf(2008);
        address a9 = genesisContract.ownerOf(2009);
        address a10 = genesisContract.ownerOf(2010);

        uint256 split = totalSupply() - lastPawSplitId;
        uint256 share = ((split * 10) * 1 ether) / 10;

        pawContract.transfer(a1, share);
        pawContract.transfer(a2, share);
        pawContract.transfer(a3, share);
        pawContract.transfer(a4, share);
        pawContract.transfer(a5, share);
        pawContract.transfer(a6, share);
        pawContract.transfer(a7, share);
        pawContract.transfer(a8, share);
        pawContract.transfer(a9, share);
        pawContract.transfer(a10, share);

        lastPawSplitId = totalSupply();
    }

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

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

    function toggleCubLive() external onlyOwner{
        cubLive = !cubLive;
    }

    function toggleRegularUri() external onlyOwner {
        regularUri = !regularUri;
    }

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

File 2 of 14 : 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 3 of 14 : 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 4 of 14 : 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 5 of 14 : 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);
}

File 6 of 14 : 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 7 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 14 : 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 12 of 14 : 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 13 of 14 : 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 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "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":"address","name":"_genesisContract","type":"address"},{"internalType":"address","name":"_trackerContract","type":"address"},{"internalType":"address","name":"_pawContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"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":"MaxSupply","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoTracker","type":"error"},{"inputs":[],"name":"NotEnoughGenesis","type":"error"},{"inputs":[],"name":"NotLive","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SpiritEventInactive","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"},{"inputs":[],"name":"WrongFaction","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":[],"name":"breedCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cubLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEvent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"currentEventClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEventMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"faction","outputs":[{"internalType":"uint128","name":"faction","type":"uint128"},{"internalType":"uint128","name":"factionIndex","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"factionSupply","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":[],"name":"maxSpiritSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyPerFaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"factionId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintCub","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintSpirit","outputs":[],"stateMutability":"nonpayable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"_currentEvent","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setCurrentEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spiritEventActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"splitRewards","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":"toggleCubLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleRegularUri","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":"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":"triggerSpiritEvent","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600a805461ffff191690556103a7600e556830ca024f987b9000006010556011805460ff191690556101046012556000601381905560148190556016553480156200004e57600080fd5b506040516200303538038062003035833981016040819052620000719162000303565b8651879087906200008a90600290602085019062000173565b508051620000a090600390602084019062000173565b5050600160005550620000b33362000121565b8451620000c890600990602088019062000173565b50608093909352600a80546001600160a01b03938416620100000262010000600160b01b0319909116179055600b80549183166001600160a01b0319928316179055600c80549290931691161790555062000413915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200018190620003d6565b90600052602060002090601f016020900481019282620001a55760008555620001f0565b82601f10620001c057805160ff1916838001178555620001f0565b82800160010185558215620001f0579182015b82811115620001f0578251825591602001919060010190620001d3565b50620001fe92915062000202565b5090565b5b80821115620001fe576000815560010162000203565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200024157600080fd5b81516001600160401b03808211156200025e576200025e62000219565b604051601f8301601f19908116603f0116810190828211818310171562000289576200028962000219565b81604052838152602092508683858801011115620002a657600080fd5b600091505b83821015620002ca5785820183015181830184015290820190620002ab565b83821115620002dc5760008385830101525b9695505050505050565b80516001600160a01b0381168114620002fe57600080fd5b919050565b600080600080600080600060e0888a0312156200031f57600080fd5b87516001600160401b03808211156200033757600080fd5b620003458b838c016200022f565b985060208a01519150808211156200035c57600080fd5b6200036a8b838c016200022f565b975060408a01519150808211156200038157600080fd5b50620003908a828b016200022f565b95505060608801519350620003a860808901620002e6565b9250620003b860a08901620002e6565b9150620003c860c08901620002e6565b905092959891949750929550565b600181811c90821680620003eb57607f821691505b602082108114156200040d57634e487b7160e01b600052602260045260246000fd5b50919050565b608051612c066200042f60003960006104de0152612c066000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c8063715018a611610130578063a5d40b3d116100b8578063d5abeb011161007c578063d5abeb01146104d9578063e985e9c514610500578063ee7013b81461053c578063f2fde38b14610545578063f5cfa5271461055857600080fd5b8063a5d40b3d14610490578063b1930223146104a3578063b88d4fde146104ab578063c87b56dd146104be578063d547cfb7146104d157600080fd5b8063893b4e52116100ff578063893b4e52146104495780638da5cb5b1461045b5780638e50e05d1461046c57806395d89b4114610475578063a22cb4651461047d57600080fd5b8063715018a6146103f957806375e6f714146104015780638462151c1461040957806385bd797e1461042957600080fd5b806342842e0e116101be57806355f804b31161018257806355f804b3146103a55780636352211e146103b8578063641a5ea5146103cb5780636f2bd9ee146103de57806370a08231146103e657600080fd5b806342842e0e14610319578063472a129f1461032c57806350750f25146103805780635289d12c1461038957806354559a901461039c57600080fd5b806318160ddd1161020557806318160ddd146102b457806323b872dd146102ca5780632bff64a4146102dd57806335ea39af146102e5578063366fb94b1461031057600080fd5b806301ffc9a71461023757806306fdde031461025f578063081812fc14610274578063095ea7b31461029f575b600080fd5b61024a6102453660046125f0565b610565565b60405190151581526020015b60405180910390f35b6102676105b7565b6040516102569190612665565b610287610282366004612678565b610649565b6040516001600160a01b039091168152602001610256565b6102b26102ad3660046126a6565b61068d565b005b6102bc61071b565b604051908152602001610256565b6102b26102d83660046126d2565b610729565b6102b2610734565b6102bc6102f3366004612713565b601560209081526000928352604080842090915290825290205481565b6102bc60135481565b6102b26103273660046126d2565b61077b565b61036061033a366004612678565b600d602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610256565b6102bc60145481565b6102b2610397366004612743565b610796565b6102bc60105481565b6102b26103b3366004612765565b6107cb565b6102876103c6366004612678565b610801565b6102b26103d9366004612678565b610813565b6102b2610bef565b6102bc6103f43660046127d7565b610c36565b6102b2610c85565b6102b2610cbb565b61041c6104173660046127d7565b611696565b60405161025691906127f4565b6102bc610437366004612678565b600f6020526000908152604090205481565b600a5461024a90610100900460ff1681565b6008546001600160a01b0316610287565b6102bc600e5481565b6102676117c1565b6102b261048b366004612846565b6117d0565b6102b261049e366004612743565b611866565b6102b2611af5565b6102b26104b936600461288a565b611b33565b6102676104cc366004612678565b611b84565b610267611c09565b6102bc7f000000000000000000000000000000000000000000000000000000000000000081565b61024a61050e36600461296a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102bc60125481565b6102b26105533660046127d7565b611c97565b60115461024a9060ff1681565b60006001600160e01b031982166380ac58cd60e01b148061059657506001600160e01b03198216635b5e139f60e01b145b806105b157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546105c690612998565b80601f01602080910402602001604051908101604052809291908181526020018280546105f290612998565b801561063f5780601f106106145761010080835404028352916020019161063f565b820191906000526020600020905b81548152906001019060200180831161062257829003601f168201915b5050505050905090565b600061065482611d32565b610671576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061069882610801565b9050806001600160a01b0316836001600160a01b031614156106cd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106ed57506106eb813361050e565b155b1561070b576040516367d9dca160e11b815260040160405180910390fd5b610716838383611d6b565b505050565b600154600054036000190190565b610716838383611dc7565b6008546001600160a01b031633146107675760405162461bcd60e51b815260040161075e906129d3565b60405180910390fd5b6011805460ff19811660ff90911615179055565b61071683838360405180602001604052806000815250611b33565b6008546001600160a01b031633146107c05760405162461bcd60e51b815260040161075e906129d3565b601491909155601355565b6008546001600160a01b031633146107f55760405162461bcd60e51b815260040161075e906129d3565b61071660098383612541565b600061080c82611fdd565b5192915050565b60115460ff1661083657604051630e92fce960e01b815260040160405180910390fd5b600a546040516370a0823160e01b81523360048201526002916201000090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a99190612a08565b10156108c857604051630c78271560e01b815260040160405180910390fd5b600b54604051627eeac760e11b81526000916001600160a01b03169062fdd58e906108fa903390600190600401612a21565b602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b9190612a08565b90508061095b5760405163256269ed60e21b815260040160405180910390fd5b7f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f361620454601454600090815260156020908152604080832033845290915290205482906109a7908590612a50565b11156109c657604051630c8d9eab60e31b815260040160405180910390fd5b6013546109d38483612a50565b11156109f257604051632cdb04a160e21b815260040160405180910390fd5b6012546109ff8483612a50565b1115610a1e57604051632cdb04a160e21b815260040160405180910390fd5b600c546010546001600160a01b03909116906323b872dd9033903090610a45908890612a68565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd9190612a87565b1561071657601454600090815260156020908152604080832033845290915281208054859290610aee908490612a50565b90915550600190505b838111610be45760056000908152600f6020527f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f3616204805460019290610b3c908490612a50565b90915550506040805180820190915260058082526000908152600f60209081527f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f3616204546001600160801b031690830152600d9083610b9761071b565b610ba19190612a50565b8152602080820192909252604001600020825192909101516001600160801b03908116600160801b02921691909117905580610bdc81612aa4565b915050610af7565b506107163384612106565b6008546001600160a01b03163314610c195760405162461bcd60e51b815260040161075e906129d3565b600a805461ff001981166101009182900460ff1615909102179055565b60006001600160a01b038216610c5f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610caf5760405162461bcd60e51b815260040161075e906129d3565b610cb96000612120565b565b6008546001600160a01b03163314610ce55760405162461bcd60e51b815260040161075e906129d3565b600a546040516331a9108f60e11b81526107d160048201526000916201000090046001600160a01b031690636352211e90602401602060405180830381865afa158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190612abf565b600a546040516331a9108f60e11b81526107d26004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd39190612abf565b600a546040516331a9108f60e11b81526107d36004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4c9190612abf565b600a546040516331a9108f60e11b81526107d46004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610ea1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec59190612abf565b600a546040516331a9108f60e11b81526107d56004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610f1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3e9190612abf565b600a546040516331a9108f60e11b81526107d66004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb79190612abf565b600a546040516331a9108f60e11b81526107d76004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa15801561100c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110309190612abf565b600a546040516331a9108f60e11b81526107d86004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015611085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a99190612abf565b600a546040516331a9108f60e11b81526107d96004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa1580156110fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111229190612abf565b600a546040516331a9108f60e11b81526107da6004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015611177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119b9190612abf565b905060006016546111aa61071b565b6111b49190612adc565b90506000600a6111c48382612a68565b6111d690670de0b6b3a7640000612a68565b6111e09190612b09565b600c5460405163a9059cbb60e01b81529192506001600160a01b03169063a9059cbb90611213908f908590600401612a21565b6020604051808303816000875af1158015611232573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112569190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90611289908e908590600401612a21565b6020604051808303816000875af11580156112a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112cc9190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906112ff908d908590600401612a21565b6020604051808303816000875af115801561131e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113429190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90611375908c908590600401612a21565b6020604051808303816000875af1158015611394573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b89190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906113eb908b908590600401612a21565b6020604051808303816000875af115801561140a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142e9190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90611461908a908590600401612a21565b6020604051808303816000875af1158015611480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a49190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906114d79089908590600401612a21565b6020604051808303816000875af11580156114f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151a9190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb9061154d9088908590600401612a21565b6020604051808303816000875af115801561156c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115909190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906115c39087908590600401612a21565b6020604051808303816000875af11580156115e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116069190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906116399086908590600401612a21565b6020604051808303816000875af1158015611658573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167c9190612a87565b5061168561071b565b601655505050505050505050505050565b606060006116a383610c36565b67ffffffffffffffff8111156116bb576116bb612874565b6040519080825280602002602001820160405280156116e4578160200160208202803683370190505b506000805491925080805b838110156117b657600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061175757506117ae565b80516001600160a01b03161561176c57805192505b876001600160a01b0316836001600160a01b031614156117ac578186858060010196508151811061179f5761179f612b1d565b6020026020010181815250505b505b6001016116ef565b509295945050505050565b6060600380546105c690612998565b6001600160a01b0382163314156117fa5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a54610100900460ff1661188e5760405163baf13b3f60e01b815260040160405180910390fd5b600a546040516370a0823160e01b81523360048201526002916201000090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156118dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119019190612a08565b101561192057604051630c78271560e01b815260040160405180910390fd5b600482111561194257604051632cb1dd1f60e01b815260040160405180910390fd5b600e546000838152600f602052604090205461195f908390612a50565b111561197e57604051632cdb04a160e21b815260040160405180910390fd5b600c546010546001600160a01b03909116906323b872dd90339030906119a5908690612a68565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156119f9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1d9190612a87565b15611af15760015b818111611ae6576000838152600f60205260408120805460019290611a4b908490612a50565b925050819055506040518060400160405280846001600160801b03168152602001600f6000868152602001908152602001600020546001600160801b0316815250600d600083611a9961071b565b611aa39190612a50565b8152602080820192909252604001600020825192909101516001600160801b03908116600160801b02921691909117905580611ade81612aa4565b915050611a25565b50611af13382612106565b5050565b6008546001600160a01b03163314611b1f5760405162461bcd60e51b815260040161075e906129d3565b600a805460ff19811660ff90911615179055565b611b3e848484611dc7565b6001600160a01b0383163b15158015611b605750611b5e84848484612172565b155b15611b7e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611b8f82611d32565b611bac57604051630a14c4b560e41b815260040160405180910390fd5b6000611bb661225b565b9050805160001415611bd75760405180602001604052806000815250611c02565b80611be18461226a565b604051602001611bf2929190612b33565b6040516020818303038152906040525b9392505050565b60098054611c1690612998565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4290612998565b8015611c8f5780601f10611c6457610100808354040283529160200191611c8f565b820191906000526020600020905b815481529060010190602001808311611c7257829003601f168201915b505050505081565b6008546001600160a01b03163314611cc15760405162461bcd60e51b815260040161075e906129d3565b6001600160a01b038116611d265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075e565b611d2f81612120565b50565b600081600111158015611d46575060005482105b80156105b1575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611dd282611fdd565b80519091506000906001600160a01b0316336001600160a01b03161480611e0057508151611e00903361050e565b80611e1b575033611e1084610649565b6001600160a01b0316145b905080611e3b57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611e705760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611e9757604051633a954ecd60e21b815260040160405180910390fd5b611ea76000848460000151611d6b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611f9357600054811015611f93578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040805160608101825260008082526020820181905291810191909152818060011115801561200d575060005481105b156120ed57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906120eb5780516001600160a01b031615612081579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156120e6579392505050565b612081565b505b604051636f96cda160e11b815260040160405180910390fd5b611af1828260405180602001604052806000815250612368565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121a7903390899088908890600401612b62565b6020604051808303816000875af19250505080156121e2575060408051601f3d908101601f191682019092526121df91810190612b9f565b60015b61223d573d808015612210576040519150601f19603f3d011682016040523d82523d6000602084013e612215565b606091505b508051612235576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600980546105c690612998565b60608161228e5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122b857806122a281612aa4565b91506122b19050600a83612b09565b9150612292565b60008167ffffffffffffffff8111156122d3576122d3612874565b6040519080825280601f01601f1916602001820160405280156122fd576020820181803683370190505b5090505b841561225357612312600183612adc565b915061231f600a86612bbc565b61232a906030612a50565b60f81b81838151811061233f5761233f612b1d565b60200101906001600160f81b031916908160001a905350612361600a86612b09565b9450612301565b61071683838360016000546001600160a01b03851661239957604051622e076360e81b815260040160405180910390fd5b836123b75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561246957506001600160a01b0387163b15155b156124f2575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46124ba6000888480600101955088612172565b6124d7576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561246f5782600054146124ed57600080fd5b612538565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156124f3575b50600055611fd6565b82805461254d90612998565b90600052602060002090601f01602090048101928261256f57600085556125b5565b82601f106125885782800160ff198235161785556125b5565b828001600101855582156125b5579182015b828111156125b557823582559160200191906001019061259a565b506125c19291506125c5565b5090565b5b808211156125c157600081556001016125c6565b6001600160e01b031981168114611d2f57600080fd5b60006020828403121561260257600080fd5b8135611c02816125da565b60005b83811015612628578181015183820152602001612610565b83811115611b7e5750506000910152565b6000815180845261265181602086016020860161260d565b601f01601f19169290920160200192915050565b602081526000611c026020830184612639565b60006020828403121561268a57600080fd5b5035919050565b6001600160a01b0381168114611d2f57600080fd5b600080604083850312156126b957600080fd5b82356126c481612691565b946020939093013593505050565b6000806000606084860312156126e757600080fd5b83356126f281612691565b9250602084013561270281612691565b929592945050506040919091013590565b6000806040838503121561272657600080fd5b82359150602083013561273881612691565b809150509250929050565b6000806040838503121561275657600080fd5b50508035926020909101359150565b6000806020838503121561277857600080fd5b823567ffffffffffffffff8082111561279057600080fd5b818501915085601f8301126127a457600080fd5b8135818111156127b357600080fd5b8660208285010111156127c557600080fd5b60209290920196919550909350505050565b6000602082840312156127e957600080fd5b8135611c0281612691565b6020808252825182820181905260009190848201906040850190845b8181101561282c57835183529284019291840191600101612810565b50909695505050505050565b8015158114611d2f57600080fd5b6000806040838503121561285957600080fd5b823561286481612691565b9150602083013561273881612838565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156128a057600080fd5b84356128ab81612691565b935060208501356128bb81612691565b925060408501359150606085013567ffffffffffffffff808211156128df57600080fd5b818701915087601f8301126128f357600080fd5b81358181111561290557612905612874565b604051601f8201601f19908116603f0116810190838211818310171561292d5761292d612874565b816040528281528a602084870101111561294657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561297d57600080fd5b823561298881612691565b9150602083013561273881612691565b600181811c908216806129ac57607f821691505b602082108114156129cd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612a1a57600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a6357612a63612a3a565b500190565b6000816000190483118215151615612a8257612a82612a3a565b500290565b600060208284031215612a9957600080fd5b8151611c0281612838565b6000600019821415612ab857612ab8612a3a565b5060010190565b600060208284031215612ad157600080fd5b8151611c0281612691565b600082821015612aee57612aee612a3a565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612b1857612b18612af3565b500490565b634e487b7160e01b600052603260045260246000fd5b60008351612b4581846020880161260d565b835190830190612b5981836020880161260d565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b9590830184612639565b9695505050505050565b600060208284031215612bb157600080fd5b8151611c02816125da565b600082612bcb57612bcb612af3565b50069056fea2646970667358221220b872cff460440076c5021d6a1742f7641cc3f84fda346d8f7dbce315816042db64736f6c634300080c003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000006cc8e06d647883868f2d3149b0ea0734fd67f3e400000000000000000000000054756b4533085cf959a3c6ef0747188a245f0a41000000000000000000000000ff94e2cea6191dd5eca3c09ff04da1f3043bc49600000000000000000000000000000000000000000000000000000000000000074b756d614375620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054b756d6143000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e68747470733a2f2f6b756d6176657273652e78797a2f6170692f6375622f0000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c8063715018a611610130578063a5d40b3d116100b8578063d5abeb011161007c578063d5abeb01146104d9578063e985e9c514610500578063ee7013b81461053c578063f2fde38b14610545578063f5cfa5271461055857600080fd5b8063a5d40b3d14610490578063b1930223146104a3578063b88d4fde146104ab578063c87b56dd146104be578063d547cfb7146104d157600080fd5b8063893b4e52116100ff578063893b4e52146104495780638da5cb5b1461045b5780638e50e05d1461046c57806395d89b4114610475578063a22cb4651461047d57600080fd5b8063715018a6146103f957806375e6f714146104015780638462151c1461040957806385bd797e1461042957600080fd5b806342842e0e116101be57806355f804b31161018257806355f804b3146103a55780636352211e146103b8578063641a5ea5146103cb5780636f2bd9ee146103de57806370a08231146103e657600080fd5b806342842e0e14610319578063472a129f1461032c57806350750f25146103805780635289d12c1461038957806354559a901461039c57600080fd5b806318160ddd1161020557806318160ddd146102b457806323b872dd146102ca5780632bff64a4146102dd57806335ea39af146102e5578063366fb94b1461031057600080fd5b806301ffc9a71461023757806306fdde031461025f578063081812fc14610274578063095ea7b31461029f575b600080fd5b61024a6102453660046125f0565b610565565b60405190151581526020015b60405180910390f35b6102676105b7565b6040516102569190612665565b610287610282366004612678565b610649565b6040516001600160a01b039091168152602001610256565b6102b26102ad3660046126a6565b61068d565b005b6102bc61071b565b604051908152602001610256565b6102b26102d83660046126d2565b610729565b6102b2610734565b6102bc6102f3366004612713565b601560209081526000928352604080842090915290825290205481565b6102bc60135481565b6102b26103273660046126d2565b61077b565b61036061033a366004612678565b600d602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610256565b6102bc60145481565b6102b2610397366004612743565b610796565b6102bc60105481565b6102b26103b3366004612765565b6107cb565b6102876103c6366004612678565b610801565b6102b26103d9366004612678565b610813565b6102b2610bef565b6102bc6103f43660046127d7565b610c36565b6102b2610c85565b6102b2610cbb565b61041c6104173660046127d7565b611696565b60405161025691906127f4565b6102bc610437366004612678565b600f6020526000908152604090205481565b600a5461024a90610100900460ff1681565b6008546001600160a01b0316610287565b6102bc600e5481565b6102676117c1565b6102b261048b366004612846565b6117d0565b6102b261049e366004612743565b611866565b6102b2611af5565b6102b26104b936600461288a565b611b33565b6102676104cc366004612678565b611b84565b610267611c09565b6102bc7f0000000000000000000000000000000000000000000000000000000000000fa081565b61024a61050e36600461296a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102bc60125481565b6102b26105533660046127d7565b611c97565b60115461024a9060ff1681565b60006001600160e01b031982166380ac58cd60e01b148061059657506001600160e01b03198216635b5e139f60e01b145b806105b157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546105c690612998565b80601f01602080910402602001604051908101604052809291908181526020018280546105f290612998565b801561063f5780601f106106145761010080835404028352916020019161063f565b820191906000526020600020905b81548152906001019060200180831161062257829003601f168201915b5050505050905090565b600061065482611d32565b610671576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061069882610801565b9050806001600160a01b0316836001600160a01b031614156106cd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106ed57506106eb813361050e565b155b1561070b576040516367d9dca160e11b815260040160405180910390fd5b610716838383611d6b565b505050565b600154600054036000190190565b610716838383611dc7565b6008546001600160a01b031633146107675760405162461bcd60e51b815260040161075e906129d3565b60405180910390fd5b6011805460ff19811660ff90911615179055565b61071683838360405180602001604052806000815250611b33565b6008546001600160a01b031633146107c05760405162461bcd60e51b815260040161075e906129d3565b601491909155601355565b6008546001600160a01b031633146107f55760405162461bcd60e51b815260040161075e906129d3565b61071660098383612541565b600061080c82611fdd565b5192915050565b60115460ff1661083657604051630e92fce960e01b815260040160405180910390fd5b600a546040516370a0823160e01b81523360048201526002916201000090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a99190612a08565b10156108c857604051630c78271560e01b815260040160405180910390fd5b600b54604051627eeac760e11b81526000916001600160a01b03169062fdd58e906108fa903390600190600401612a21565b602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b9190612a08565b90508061095b5760405163256269ed60e21b815260040160405180910390fd5b7f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f361620454601454600090815260156020908152604080832033845290915290205482906109a7908590612a50565b11156109c657604051630c8d9eab60e31b815260040160405180910390fd5b6013546109d38483612a50565b11156109f257604051632cdb04a160e21b815260040160405180910390fd5b6012546109ff8483612a50565b1115610a1e57604051632cdb04a160e21b815260040160405180910390fd5b600c546010546001600160a01b03909116906323b872dd9033903090610a45908890612a68565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd9190612a87565b1561071657601454600090815260156020908152604080832033845290915281208054859290610aee908490612a50565b90915550600190505b838111610be45760056000908152600f6020527f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f3616204805460019290610b3c908490612a50565b90915550506040805180820190915260058082526000908152600f60209081527f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f3616204546001600160801b031690830152600d9083610b9761071b565b610ba19190612a50565b8152602080820192909252604001600020825192909101516001600160801b03908116600160801b02921691909117905580610bdc81612aa4565b915050610af7565b506107163384612106565b6008546001600160a01b03163314610c195760405162461bcd60e51b815260040161075e906129d3565b600a805461ff001981166101009182900460ff1615909102179055565b60006001600160a01b038216610c5f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610caf5760405162461bcd60e51b815260040161075e906129d3565b610cb96000612120565b565b6008546001600160a01b03163314610ce55760405162461bcd60e51b815260040161075e906129d3565b600a546040516331a9108f60e11b81526107d160048201526000916201000090046001600160a01b031690636352211e90602401602060405180830381865afa158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190612abf565b600a546040516331a9108f60e11b81526107d26004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd39190612abf565b600a546040516331a9108f60e11b81526107d36004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4c9190612abf565b600a546040516331a9108f60e11b81526107d46004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610ea1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec59190612abf565b600a546040516331a9108f60e11b81526107d56004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610f1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3e9190612abf565b600a546040516331a9108f60e11b81526107d66004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015610f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb79190612abf565b600a546040516331a9108f60e11b81526107d76004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa15801561100c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110309190612abf565b600a546040516331a9108f60e11b81526107d86004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015611085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a99190612abf565b600a546040516331a9108f60e11b81526107d96004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa1580156110fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111229190612abf565b600a546040516331a9108f60e11b81526107da6004820152919250600091620100009091046001600160a01b031690636352211e90602401602060405180830381865afa158015611177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119b9190612abf565b905060006016546111aa61071b565b6111b49190612adc565b90506000600a6111c48382612a68565b6111d690670de0b6b3a7640000612a68565b6111e09190612b09565b600c5460405163a9059cbb60e01b81529192506001600160a01b03169063a9059cbb90611213908f908590600401612a21565b6020604051808303816000875af1158015611232573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112569190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90611289908e908590600401612a21565b6020604051808303816000875af11580156112a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112cc9190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906112ff908d908590600401612a21565b6020604051808303816000875af115801561131e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113429190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90611375908c908590600401612a21565b6020604051808303816000875af1158015611394573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b89190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906113eb908b908590600401612a21565b6020604051808303816000875af115801561140a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142e9190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90611461908a908590600401612a21565b6020604051808303816000875af1158015611480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a49190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906114d79089908590600401612a21565b6020604051808303816000875af11580156114f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151a9190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb9061154d9088908590600401612a21565b6020604051808303816000875af115801561156c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115909190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906115c39087908590600401612a21565b6020604051808303816000875af11580156115e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116069190612a87565b50600c5460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906116399086908590600401612a21565b6020604051808303816000875af1158015611658573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167c9190612a87565b5061168561071b565b601655505050505050505050505050565b606060006116a383610c36565b67ffffffffffffffff8111156116bb576116bb612874565b6040519080825280602002602001820160405280156116e4578160200160208202803683370190505b506000805491925080805b838110156117b657600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061175757506117ae565b80516001600160a01b03161561176c57805192505b876001600160a01b0316836001600160a01b031614156117ac578186858060010196508151811061179f5761179f612b1d565b6020026020010181815250505b505b6001016116ef565b509295945050505050565b6060600380546105c690612998565b6001600160a01b0382163314156117fa5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a54610100900460ff1661188e5760405163baf13b3f60e01b815260040160405180910390fd5b600a546040516370a0823160e01b81523360048201526002916201000090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156118dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119019190612a08565b101561192057604051630c78271560e01b815260040160405180910390fd5b600482111561194257604051632cb1dd1f60e01b815260040160405180910390fd5b600e546000838152600f602052604090205461195f908390612a50565b111561197e57604051632cdb04a160e21b815260040160405180910390fd5b600c546010546001600160a01b03909116906323b872dd90339030906119a5908690612a68565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156119f9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1d9190612a87565b15611af15760015b818111611ae6576000838152600f60205260408120805460019290611a4b908490612a50565b925050819055506040518060400160405280846001600160801b03168152602001600f6000868152602001908152602001600020546001600160801b0316815250600d600083611a9961071b565b611aa39190612a50565b8152602080820192909252604001600020825192909101516001600160801b03908116600160801b02921691909117905580611ade81612aa4565b915050611a25565b50611af13382612106565b5050565b6008546001600160a01b03163314611b1f5760405162461bcd60e51b815260040161075e906129d3565b600a805460ff19811660ff90911615179055565b611b3e848484611dc7565b6001600160a01b0383163b15158015611b605750611b5e84848484612172565b155b15611b7e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611b8f82611d32565b611bac57604051630a14c4b560e41b815260040160405180910390fd5b6000611bb661225b565b9050805160001415611bd75760405180602001604052806000815250611c02565b80611be18461226a565b604051602001611bf2929190612b33565b6040516020818303038152906040525b9392505050565b60098054611c1690612998565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4290612998565b8015611c8f5780601f10611c6457610100808354040283529160200191611c8f565b820191906000526020600020905b815481529060010190602001808311611c7257829003601f168201915b505050505081565b6008546001600160a01b03163314611cc15760405162461bcd60e51b815260040161075e906129d3565b6001600160a01b038116611d265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075e565b611d2f81612120565b50565b600081600111158015611d46575060005482105b80156105b1575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611dd282611fdd565b80519091506000906001600160a01b0316336001600160a01b03161480611e0057508151611e00903361050e565b80611e1b575033611e1084610649565b6001600160a01b0316145b905080611e3b57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611e705760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611e9757604051633a954ecd60e21b815260040160405180910390fd5b611ea76000848460000151611d6b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611f9357600054811015611f93578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040805160608101825260008082526020820181905291810191909152818060011115801561200d575060005481105b156120ed57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906120eb5780516001600160a01b031615612081579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156120e6579392505050565b612081565b505b604051636f96cda160e11b815260040160405180910390fd5b611af1828260405180602001604052806000815250612368565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906121a7903390899088908890600401612b62565b6020604051808303816000875af19250505080156121e2575060408051601f3d908101601f191682019092526121df91810190612b9f565b60015b61223d573d808015612210576040519150601f19603f3d011682016040523d82523d6000602084013e612215565b606091505b508051612235576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600980546105c690612998565b60608161228e5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122b857806122a281612aa4565b91506122b19050600a83612b09565b9150612292565b60008167ffffffffffffffff8111156122d3576122d3612874565b6040519080825280601f01601f1916602001820160405280156122fd576020820181803683370190505b5090505b841561225357612312600183612adc565b915061231f600a86612bbc565b61232a906030612a50565b60f81b81838151811061233f5761233f612b1d565b60200101906001600160f81b031916908160001a905350612361600a86612b09565b9450612301565b61071683838360016000546001600160a01b03851661239957604051622e076360e81b815260040160405180910390fd5b836123b75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561246957506001600160a01b0387163b15155b156124f2575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46124ba6000888480600101955088612172565b6124d7576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561246f5782600054146124ed57600080fd5b612538565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156124f3575b50600055611fd6565b82805461254d90612998565b90600052602060002090601f01602090048101928261256f57600085556125b5565b82601f106125885782800160ff198235161785556125b5565b828001600101855582156125b5579182015b828111156125b557823582559160200191906001019061259a565b506125c19291506125c5565b5090565b5b808211156125c157600081556001016125c6565b6001600160e01b031981168114611d2f57600080fd5b60006020828403121561260257600080fd5b8135611c02816125da565b60005b83811015612628578181015183820152602001612610565b83811115611b7e5750506000910152565b6000815180845261265181602086016020860161260d565b601f01601f19169290920160200192915050565b602081526000611c026020830184612639565b60006020828403121561268a57600080fd5b5035919050565b6001600160a01b0381168114611d2f57600080fd5b600080604083850312156126b957600080fd5b82356126c481612691565b946020939093013593505050565b6000806000606084860312156126e757600080fd5b83356126f281612691565b9250602084013561270281612691565b929592945050506040919091013590565b6000806040838503121561272657600080fd5b82359150602083013561273881612691565b809150509250929050565b6000806040838503121561275657600080fd5b50508035926020909101359150565b6000806020838503121561277857600080fd5b823567ffffffffffffffff8082111561279057600080fd5b818501915085601f8301126127a457600080fd5b8135818111156127b357600080fd5b8660208285010111156127c557600080fd5b60209290920196919550909350505050565b6000602082840312156127e957600080fd5b8135611c0281612691565b6020808252825182820181905260009190848201906040850190845b8181101561282c57835183529284019291840191600101612810565b50909695505050505050565b8015158114611d2f57600080fd5b6000806040838503121561285957600080fd5b823561286481612691565b9150602083013561273881612838565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156128a057600080fd5b84356128ab81612691565b935060208501356128bb81612691565b925060408501359150606085013567ffffffffffffffff808211156128df57600080fd5b818701915087601f8301126128f357600080fd5b81358181111561290557612905612874565b604051601f8201601f19908116603f0116810190838211818310171561292d5761292d612874565b816040528281528a602084870101111561294657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561297d57600080fd5b823561298881612691565b9150602083013561273881612691565b600181811c908216806129ac57607f821691505b602082108114156129cd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612a1a57600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a6357612a63612a3a565b500190565b6000816000190483118215151615612a8257612a82612a3a565b500290565b600060208284031215612a9957600080fd5b8151611c0281612838565b6000600019821415612ab857612ab8612a3a565b5060010190565b600060208284031215612ad157600080fd5b8151611c0281612691565b600082821015612aee57612aee612a3a565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612b1857612b18612af3565b500490565b634e487b7160e01b600052603260045260246000fd5b60008351612b4581846020880161260d565b835190830190612b5981836020880161260d565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b9590830184612639565b9695505050505050565b600060208284031215612bb157600080fd5b8151611c02816125da565b600082612bcb57612bcb612af3565b50069056fea2646970667358221220b872cff460440076c5021d6a1742f7641cc3f84fda346d8f7dbce315816042db64736f6c634300080c0033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000006cc8e06d647883868f2d3149b0ea0734fd67f3e400000000000000000000000054756b4533085cf959a3c6ef0747188a245f0a41000000000000000000000000ff94e2cea6191dd5eca3c09ff04da1f3043bc49600000000000000000000000000000000000000000000000000000000000000074b756d614375620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054b756d6143000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e68747470733a2f2f6b756d6176657273652e78797a2f6170692f6375622f0000

-----Decoded View---------------
Arg [0] : _name (string): KumaCub
Arg [1] : _symbol (string): KumaC
Arg [2] : _baseTokenURI (string): https://kumaverse.xyz/api/cub/
Arg [3] : _maxSupply (uint256): 4000
Arg [4] : _genesisContract (address): 0x6CC8e06D647883868f2d3149b0eA0734FD67f3e4
Arg [5] : _trackerContract (address): 0x54756b4533085cf959a3C6Ef0747188A245f0a41
Arg [6] : _pawContract (address): 0xFF94e2cea6191Dd5EcA3c09fF04da1f3043BC496

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000fa0
Arg [4] : 0000000000000000000000006cc8e06d647883868f2d3149b0ea0734fd67f3e4
Arg [5] : 00000000000000000000000054756b4533085cf959a3c6ef0747188a245f0a41
Arg [6] : 000000000000000000000000ff94e2cea6191dd5eca3c09ff04da1f3043bc496
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 4b756d6143756200000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 4b756d6143000000000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [12] : 68747470733a2f2f6b756d6176657273652e78797a2f6170692f6375622f0000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.