ETH Price: $3,477.49 (+1.58%)
Gas: 11 Gwei

Token

Joey (JY)
 

Overview

Max Total Supply

5,500 JY

Holders

1,147

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 JY
0xbb0173c0e8d5919e0a6a4066a1c506b16748e2d1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Joey

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 100000 runs

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

pragma solidity ^0.8.9;

import "./abstracts/xRooStaking.sol";
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract Joey is ERC721A, Ownable, ReentrancyGuard {
    using Strings for uint256;

    event Incubated(uint64 indexed tokenId);
    event Unincubated(uint64 indexed tokenId);

    // ---------------------------------------- TOKEN VARIABLES --------------------------------------------------

    /**
     * Amount of seconds needed to incubate
     */
    uint64 public constant incubationTime = 12 weeks;

    /**
     * Max per transaction in the public/holder phase
     */
    uint64 public constant maxPerTransaction = 10;

    /**
     * The maximum supply for the token.
     * Will never exceed this supply.
     */
    uint64 public immutable maxSupply;

    /**
     * The wallet cap during the holderCapDuration
     */
    uint64 public walletCap = 3;

    /**
     * The quantity multiplier when using ROOLAH
     */
    uint64 public roolahMultiplier = 3;

    /**
     * The duration during which holders will have a wallet cap (post holderStart, in seconds)
     */
    uint64 public holderCapDuration;

    /**
     * The cost of minting (with a 3x multiplier) in ROOLAH
     *
     * @dev starts at 80 ROOLAH
     */
    uint256 public roolahCost = 80000000000000000000;

    /**
     * The cost of minting in ETH in the public mint
     *
     * @dev starts at 0.016942 ETH
     */
    uint256 public publicEthCost = 16942000000000000;

    /**
     * The cost of minting in ETH in the holder mint
     *
     * @dev starts at 0.01 ETH
     */
    uint256 public holderEthCost = 10000000000000000;

    /**
     * The start timestamp for minting with ROOLAH (UNIX SECONDS)
     */
    uint256 public roolahStart;

    /**
     * The start timestamp for holders (UNIX SECONDS)
     */
    uint256 public holderStart;

    /**
     * The start timestamp for the public mint (UNIX SECONDS)
     */
    uint256 public publicStart;

    /**
     * The ERC20 token contract that will be used
     * to pay to mint the token.
     */
    IERC20 public roolah;

    /**
     * The staking contract
     */
    xRooStaking public stakingContract;

    /**
     * The NFTX inventory staking xROO token
     */
    IERC20 public xROO;

    /**
     * The NFTX liquidity staking xROOWETH token
     */
    IERC20 public xROOWETH;

    /**
     * The NFTX vault token
     */
    IERC20 public ROO;

    /**
     * The RooTroop NFT
     */
    IERC721 public RooTroopNFT;

    /**
     * The baseURI for tokens
     */
    string private baseURI = "https://cc_nftstore.mypinata.cloud/ipfs/QmZDyvDm3W1q9259koCiQA3tBkNgwpdZxTY3ouRqvKKbD5/";

    /**
     * A mapping of token ID to time when incubation started (0 for never).
     */
    mapping(uint64 => uint256) public incubationTimestamp;

    /**
     * A mapping of token ID to time when incubation started (0 for never).
     */
    mapping(address => uint64) public numCappedMints;

    // ---------------------------------------- CONSTRUCTOR -------------------------------------------------------------

    /**
     * Deploys the contract and mints the first token to the deployer.
     *
     * @param _roolahMintStart - the start time of the ROOLAH mint (UNIX SECONDS)
     * @param _holderMintStart - the start time of the holder-only mint (UNIX SECONDS)
     * @param _publicMintStart - the start time of the public mint (UNIX SECONDS)
     * @param _walletCapDuration - the duration of wallet capping during the holder mint (UNIX SECONDS)
     * @param _roolahAddress - the address for the ROOLAH contract (payment token)
     * @param _stakingAddress - the address for xRooStaking
     * @param _rooTroopAddress - the address for RooTroopNFT
     * @param _xROOWETHAddress - the address for NFTX's xROOWETH
     * @param _xROOAddress - the address for NFTX's XROO
     * @param _ROOAddress - the address for NFTX's ROO vault token
     */
    constructor(
        uint64 _maxSupply,
        uint256 _roolahMintStart,
        uint256 _holderMintStart,
        uint256 _publicMintStart,
        uint64 _walletCapDuration,
        address _roolahAddress,
        address _stakingAddress,
        address _rooTroopAddress,
        address _xROOWETHAddress,
        address _xROOAddress,
        address _ROOAddress
    ) ERC721A("Joey", "JY") {
        maxSupply = _maxSupply;

        setAssociatedContracts(
            _roolahAddress,
            _stakingAddress,
            _rooTroopAddress,
            _xROOWETHAddress,
            _xROOAddress,
            _ROOAddress
        );

        setMintTimes(
            _roolahMintStart,
            _holderMintStart,
            _publicMintStart,
            _walletCapDuration
        );

        mintOwner(1, msg.sender, false);
    }

    // ------------------------------------------------ ADMINISTRATION LOGIC ------------------------------------------------

    /**
     * Sets the base URI for all immature tokens
     *
     * @dev be sure to terminate with a slash
     * @param uri - the target base uri (ex: 'https://google.com/')
     */
    function setBaseURI(string calldata uri) public onlyOwner {
        baseURI = uri;
    }

    /**
     * Sets the mint price
     *
     * @param _roolahMintCost - the mint cost for ROOLAH minting (with 18 decimal places).
     * @param _publicEthMintCost - the mint cost for ETH minting in public mint (GWEI)
     * @param _holderEthMintCost - the mint cost for ETH minting in holder mint (GWEI)
     * @param _roolahMultiplier - the quantity multiplier for using ROOLAH
     */
    function setMintPrice(
        uint256 _roolahMintCost,
        uint256 _holderEthMintCost,
        uint256 _publicEthMintCost,
        uint64 _roolahMultiplier
    ) external onlyOwner {
        roolahCost = _roolahMintCost;
        publicEthCost = _publicEthMintCost;
        holderEthCost = _holderEthMintCost;
        roolahMultiplier = _roolahMultiplier;
    }

    /**
     * Updates all mint times
     * @param _roolahMintStart - the start of the ROOLAH mint
     * @param _holderMintStart - the start of the holder-only mint
     * @param _walletCapDuration - the duration (in seconds) that the
     */
    function setMintTimes(
        uint256 _roolahMintStart,
        uint256 _holderMintStart,
        uint256 _publicMintStart,
        uint64 _walletCapDuration
    ) public onlyOwner {
        roolahStart = _roolahMintStart;
        holderStart = _holderMintStart;
        holderCapDuration = _walletCapDuration;
        publicStart = _publicMintStart;
    }

    function setAssociatedContracts(
        address _roolahAddress,
        address _stakingAddress,
        address _rooTroopAddress,
        address _xROOWETHAddress,
        address _xROOAddress,
        address _ROOAddress
    ) public onlyOwner {
        roolah = IERC20(_roolahAddress);
        stakingContract = xRooStaking(_stakingAddress);
        xROO = IERC20(_xROOAddress);
        xROOWETH = IERC20(_xROOWETHAddress);
        ROO = IERC20(_ROOAddress);
        RooTroopNFT = IERC721(_rooTroopAddress);
    }

    // ------------------------------------------------ URI LOGIC -------------------------------------------------

    /**
     * @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 override returns (string memory) {
        return baseURI;
    }

    // ------------------------------------------------ MINT LOGIC ------------------------------------------------

    /**
     * Allows the contract owner to mint for free and optionally incubate.
     *
     * @param _quantity - the number of tokens to mint
     * @param _autoIncubate - whether to automatically incubate minted tokens or not.
     * @param _to - the recipient.
     *
     * @dev Auto incubation as owner will bypass all waiting.
     */
    function mintOwner(
        uint64 _quantity,
        address _to,
        bool _autoIncubate
    ) public onlyOwner {
        uint64 offset = uint64(_currentIndex);

        // DISTRIBUTE THE TOKENS
        _safeMint(_to, _quantity);

        // INCUBATE
        if (_autoIncubate) {
            for (uint64 i; i < _quantity; i++) {
                _incubate(offset + i, true);
            }
        }
    }

    /**
     * Mints the given quantity of tokens provided it is possible to.
     * transfers the required number of ROOLAH from the user's wallet.
     *
     * @param _quantity - the number of tokens to mint
     * @param _autoIncubate - whether to automatically incubate minted tokens or not.
     */
    function mintROOLAH(uint64 _quantity, bool _autoIncubate)
        public
        nonReentrant
    {
        require(
            block.timestamp >= roolahStart && block.timestamp < holderStart,
            "Inactive"
        );
        uint256 remaining = maxSupply - _currentIndex;

        require(remaining > 0, "Mint over");
        require(_quantity >= 1, "Bad quantity");
        uint96 multipliedQuantity = roolahMultiplier * _quantity;

        require(multipliedQuantity <= remaining, "Not enough");
        uint64 offset = uint64(_currentIndex);

        roolah.transferFrom(msg.sender, address(this), _quantity * roolahCost);

        // DISTRIBUTE THE TOKENS
        _safeMint(msg.sender, multipliedQuantity);

        if (_autoIncubate) {
            for (uint64 i; i < multipliedQuantity; i++) {
                _incubate(offset + i, false);
            }
        }
    }

    /**
     * Mints the given quantity of tokens provided it is possible to.
     * Expects the appropriate amount of value transferred in ETH.
     *
     * @param _quantity - the number of tokens to mint
     * @param _autoIncubate - whether to automatically incubate minted tokens or not.
     */
    function mintETH(uint64 _quantity, bool _autoIncubate)
        public
        payable
        nonReentrant
    {
        require(block.timestamp >= holderStart, "Inactive");
        uint256 remaining = maxSupply - _currentIndex;

        require(remaining > 0, "Mint over");
        require(_quantity >= 1, "Bad quantity");
        require(_quantity <= remaining, "Not enough");
        uint256 cost = block.timestamp >= publicStart
            ? publicEthCost
            : holderEthCost;

        require(msg.value == _quantity * cost, "Bad value");
        uint64 offset = uint64(_currentIndex);

        if (block.timestamp < holderStart + holderCapDuration) {
            // IF CAPPED
            numCappedMints[msg.sender] += _quantity;
            require(numCappedMints[msg.sender] <= walletCap, "Exceeds limit");
        } else {
            require(_quantity <= maxPerTransaction, "Exceeds trans max");
        }

        require(
            (block.timestamp >= publicStart) || holdsEligibleToken(msg.sender),
            "Not holder"
        );

        // DISTRIBUTE THE TOKENS
        _safeMint(msg.sender, _quantity);

        // INCUBATE
        if (_autoIncubate) {
            for (uint64 i; i < _quantity; i++) {
                _incubate(offset + i, false);
            }
        }
    }

    // ------------------------------------------------ BURN LOGIC ------------------------------------------------

    /**
     * Burns the provided token id if you own it.
     * Reduces the supply by 1.
     *
     * @param tokenId - the ID of the token to be burned.
     */
    function burn(uint256 tokenId) public {
        require(ownerOf(tokenId) == msg.sender, "Not owner");

        _burn(tokenId);
    }

    // ------------------------------------------------ EXTERNAL INCUBATION LOGIC ------------------------------------------------

    /**
     * Checks to see if incubation is complete.
     * @return a boolean value indicating incubation completion.
     */
    function isMatured(uint64 _tokenId) external view returns (bool) {
        return _isMatured(_tokenId);
    }

    /**
     * Checks to see if a token is currently incubating.
     * @notice is false once the token has completed the incubation period.
     * @return a boolean value indicating the incubation status of the token.
     */
    function isIncubating(uint64 _tokenId) external view returns (bool) {
        return _isIncubating(_tokenId);
    }

    /**
     * Adds the given token to the incubator. The contract owner needn't wait for incubation to complete.
     * @param _tokenId the ID of the token to incubate.
     * @notice you must own the _tokenId provided to incubate.
     */
    function incubate(uint64 _tokenId) external {
        require(ownerOf(_tokenId) == msg.sender, "Not owner");
        require(incubationTimestamp[_tokenId] == 0, "Incubated");

        _incubate(_tokenId, msg.sender == owner());
    }

    /**
     * Removes the given token from the incubator.
     * @param _tokenId the ID of the token to unincubate.
     * @notice you must own the _tokenId provided to incubate. Will fail if the token is not incubating.
     */
    function unincubate(uint64 _tokenId) external {
        require(ownerOf(_tokenId) == msg.sender, "Not owner");
        require(_isIncubating(_tokenId), "Not incubated");

        _unincubate(_tokenId);
    }

    // ----------------------------------- INTERNAL INCUBATION LOGIC -----------------------------------

    /**
     * Checks to see if incubation is complete.
     * @return a boolean value indicating incubation completion.
     */
    function _isMatured(uint64 _tokenId) internal view returns (bool) {
        if (incubationTimestamp[_tokenId] == 0) return false;

        return
            (block.timestamp - incubationTimestamp[_tokenId]) >= incubationTime;
    }

    /**
     * Checks to see if a token is currently incubating.
     * @notice is false once the token has completed the incubation period.
     * @return a boolean value indicating the incubation status of the token.
     */
    function _isIncubating(uint64 _tokenId) internal view returns (bool) {
        if (_isMatured(_tokenId)) return false;
        return incubationTimestamp[_tokenId] != 0;
    }

    /**
     * Adds the given token to the incubator. The contract owner needn't wait for incubation to complete.
     * @param _tokenId the ID of the token to incubate.
     * @param _matureCompletely indicates if the token should be matured immediately
     * @dev does not check ownership/current incubation status
     */
    function _incubate(uint64 _tokenId, bool _matureCompletely) internal {
        incubationTimestamp[_tokenId] = _matureCompletely
            ? block.timestamp - incubationTime
            : block.timestamp;

        emit Incubated(_tokenId);
    }

    /**
     * Adds the given token to the incubator. The contract owner needn't wait for incubation to complete.
     * @param _tokenId the ID of the token to unincubate.
     * @dev does not check ownership/current incubation status.
     */
    function _unincubate(uint64 _tokenId) internal {
        incubationTimestamp[_tokenId] = 0;

        emit Unincubated(_tokenId);
    }

    /**
     * A handler to execute before transfering a token to another wallet.
     * @dev resets the incubation status on transfer.
     */
    function _beforeTokenTransfers(
        address,
        address,
        uint256 tokenId,
        uint256 amount
    ) internal override {
        // bulk transfers only happen on mint, and tokens minted are not incubated.
        if (amount == 1 && _isIncubating(uint64(tokenId)))
            _unincubate(uint64(tokenId));
    }

    // ------------------------------------------------ BALANCE STUFFS ------------------------------------------------

    /**
     * Indicates if a user holds a token that will allow access into
     * the gated mint.
     *
     * @param user - the user whose balances are being checked.
     */
    function holdsEligibleToken(address user) public view returns (bool) {
        (uint256 stake, , , , , ) = stakingContract.users(user);

        return
            (RooTroopNFT.balanceOf(user) > 0) ||
            (stake > 0) ||
            (ROO.balanceOf(user) > 0) ||
            (xROOWETH.balanceOf(user) > 0) ||
            (xROO.balanceOf(user) > 0);
    }

    /**
     * Withdraws balance in ROOLAH/ETH from the contract to the owner (sender).
     */
    function withdraw() external onlyOwner {
        roolah.transfer(msg.sender, roolah.balanceOf(address(this)));
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Trans failed");
    }

    // ----------------------------------------------- USEFUL STUFFS ---------------------------------------------

    /**
     * A helper function that will just spill out
     * any and all pertinent data for a frontend.
     */
    function dumpMintData()
        public
        view
        returns (
            uint64 _incubationTime,
            uint64 _maxPerTransaction,
            uint64 _maxSupply,
            uint64 _walletCap,
            uint64 _roolahMultiplier,
            uint64 _holderCapDuration,
            uint256 _roolahCost,
            uint256 _publicEthCost,
            uint256 _holderEthCost,
            uint256 _roolahStart,
            uint256 _holderStart,
            uint256 _publicStart
        )
    {
        return (
            incubationTime,
            maxPerTransaction,
            maxSupply,
            walletCap,
            roolahMultiplier,
            holderCapDuration,
            roolahCost,
            publicEthCost,
            holderEthCost,
            roolahStart,
            holderStart,
            publicStart
        );
    }

    /**
     * The receive function, does nothing
     */
    receive() external payable {
        // NOTHING TO SEE HERE
    }
}

File 2 of 15 : xRooStaking.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

abstract contract xRooStaking {
     struct UserData {
        uint256 stake;
        uint256 liquidity;
        uint256 lastTimestamp;
        int256 RTRewardModifier;
        int256 NFTXRewardModifier;
        uint256 NFTXRewardWithdrawn;
    }

    mapping(address => UserData) public users;
}

File 3 of 15 : ERC721A.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 ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _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 = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

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

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

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

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

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 {}
}

File 4 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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 5 of 15 : 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 6 of 15 : 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 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

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

File 12 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 15 : 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": 100000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint64","name":"_maxSupply","type":"uint64"},{"internalType":"uint256","name":"_roolahMintStart","type":"uint256"},{"internalType":"uint256","name":"_holderMintStart","type":"uint256"},{"internalType":"uint256","name":"_publicMintStart","type":"uint256"},{"internalType":"uint64","name":"_walletCapDuration","type":"uint64"},{"internalType":"address","name":"_roolahAddress","type":"address"},{"internalType":"address","name":"_stakingAddress","type":"address"},{"internalType":"address","name":"_rooTroopAddress","type":"address"},{"internalType":"address","name":"_xROOWETHAddress","type":"address"},{"internalType":"address","name":"_xROOAddress","type":"address"},{"internalType":"address","name":"_ROOAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"tokenId","type":"uint64"}],"name":"Incubated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"tokenId","type":"uint64"}],"name":"Unincubated","type":"event"},{"inputs":[],"name":"ROO","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RooTroopNFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dumpMintData","outputs":[{"internalType":"uint64","name":"_incubationTime","type":"uint64"},{"internalType":"uint64","name":"_maxPerTransaction","type":"uint64"},{"internalType":"uint64","name":"_maxSupply","type":"uint64"},{"internalType":"uint64","name":"_walletCap","type":"uint64"},{"internalType":"uint64","name":"_roolahMultiplier","type":"uint64"},{"internalType":"uint64","name":"_holderCapDuration","type":"uint64"},{"internalType":"uint256","name":"_roolahCost","type":"uint256"},{"internalType":"uint256","name":"_publicEthCost","type":"uint256"},{"internalType":"uint256","name":"_holderEthCost","type":"uint256"},{"internalType":"uint256","name":"_roolahStart","type":"uint256"},{"internalType":"uint256","name":"_holderStart","type":"uint256"},{"internalType":"uint256","name":"_publicStart","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":[],"name":"holderCapDuration","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holderEthCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holderStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"holdsEligibleToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"}],"name":"incubate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"incubationTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"incubationTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"}],"name":"isIncubating","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"}],"name":"isMatured","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_quantity","type":"uint64"},{"internalType":"bool","name":"_autoIncubate","type":"bool"}],"name":"mintETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_quantity","type":"uint64"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_autoIncubate","type":"bool"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_quantity","type":"uint64"},{"internalType":"bool","name":"_autoIncubate","type":"bool"}],"name":"mintROOLAH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCappedMints","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"publicEthCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roolah","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roolahCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roolahMultiplier","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roolahStart","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":"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":"address","name":"_roolahAddress","type":"address"},{"internalType":"address","name":"_stakingAddress","type":"address"},{"internalType":"address","name":"_rooTroopAddress","type":"address"},{"internalType":"address","name":"_xROOWETHAddress","type":"address"},{"internalType":"address","name":"_xROOAddress","type":"address"},{"internalType":"address","name":"_ROOAddress","type":"address"}],"name":"setAssociatedContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_roolahMintCost","type":"uint256"},{"internalType":"uint256","name":"_holderEthMintCost","type":"uint256"},{"internalType":"uint256","name":"_publicEthMintCost","type":"uint256"},{"internalType":"uint64","name":"_roolahMultiplier","type":"uint64"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_roolahMintStart","type":"uint256"},{"internalType":"uint256","name":"_holderMintStart","type":"uint256"},{"internalType":"uint256","name":"_publicMintStart","type":"uint256"},{"internalType":"uint64","name":"_walletCapDuration","type":"uint64"}],"name":"setMintTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"contract xRooStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"}],"name":"unincubate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletCap","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xROO","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xROOWETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

600a80546001600160801b031916680300000000000000031790556804563918244f400000600b55663c30a8c3c8e000600c55662386f26fc10000600d55610120604052605760a08181529062004dd060c0398051620000689160179160209091019062000828565b503480156200007657600080fd5b5060405162004e6738038062004e67833981016040819052620000999162000903565b604051806040016040528060048152602001634a6f657960e01b815250604051806040016040528060028152602001614a5960f01b8152508160029080519060200190620000e992919062000828565b508051620000ff90600390602084019062000828565b50506000805550620001113362000161565b60016009556001600160401b038b1660805262000133868686868686620001b3565b620001418a8a8a8a62000271565b620001506001336000620002f8565b505050505050505050505062000b3e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620002025760405162461bcd60e51b8152602060048201819052602482015260008051602062004e2783398151915260448201526064015b60405180910390fd5b601180546001600160a01b03199081166001600160a01b0398891617909155601280548216968816969096179095556013805486169287169290921790915560148054851692861692909217909155601580548416918516919091179055601680549092169216919091179055565b6008546001600160a01b03163314620002bc5760405162461bcd60e51b8152602060048201819052602482015260008051602062004e278339815191526044820152606401620001f9565b600e93909355600f91909155600a80546001600160401b03909316600160801b02600160801b600160c01b031990931692909217909155601055565b6008546001600160a01b03163314620003435760405162461bcd60e51b8152602060048201819052602482015260008051602062004e278339815191526044820152606401620001f9565b6000546200035b836001600160401b038616620003b5565b8115620003af5760005b846001600160401b0316816001600160401b03161015620003ad5762000398620003908284620009e1565b6001620003db565b80620003a48162000a0f565b91505062000365565b505b50505050565b620003d78282604051806020016040528060008152506200043f60201b60201c565b5050565b80620003e85742620003f7565b620003f7626ebe004262000a39565b6001600160401b03831660008181526018602052604080822093909355915190917f84f002dad74b53a9cf9855d4771f294d0046c45226df5c6786bde9d56e1bcc2891a25050565b6200044e838383600162000453565b505050565b6000546001600160a01b0385166200047d57604051622e076360e81b815260040160405180910390fd5b836200049c5760405163b562e8dd60e01b815260040160405180910390fd5b620004ab600086838762000624565b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801562000564575062000564876001600160a01b03166200064c60201b6200292e1760201c565b15620005e4575b60405182906001600160a01b0389169060009060008051602062004e47833981519152908290a46001820191620005a89060009089908862000652565b620005c6576040516368d2bf6b60e11b815260040160405180910390fd5b808214156200056b578260005414620005de57600080fd5b6200061a565b5b6040516001830192906001600160a01b0389169060009060008051602062004e47833981519152908290a480821415620005e5575b50600055620003ad565b8060011480156200063b57506200063b8262000753565b15620003af57620003af826200078c565b3b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200068990339089908890889060040162000a53565b602060405180830381600087803b158015620006a457600080fd5b505af1925050508015620006d7575060408051601f3d908101601f19168201909252620006d49181019062000ace565b60015b62000736573d80801562000708576040519150601f19603f3d011682016040523d82523d6000602084013e6200070d565b606091505b5080516200072e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006200076082620007d0565b156200076e57506000919050565b506001600160401b0316600090815260186020526040902054151590565b6001600160401b038116600081815260186020526040808220829055517f46e5fc148d602adff2f0d99809354a5f884762d541472d10ad3d084f3d41508d9190a250565b6001600160401b038116600090815260186020526040812054620007f657506000919050565b6001600160401b038216600090815260186020526040902054626ebe009062000820904262000a39565b101592915050565b828054620008369062000b01565b90600052602060002090601f0160209004810192826200085a5760008555620008a5565b82601f106200087557805160ff1916838001178555620008a5565b82800160010185558215620008a5579182015b82811115620008a557825182559160200191906001019062000888565b50620008b3929150620008b7565b5090565b5b80821115620008b35760008155600101620008b8565b80516001600160401b0381168114620008e657600080fd5b919050565b80516001600160a01b0381168114620008e657600080fd5b60008060008060008060008060008060006101608c8e0312156200092657600080fd5b620009318c620008ce565b9a5060208c0151995060408c0151985060608c015197506200095660808d01620008ce565b96506200096660a08d01620008eb565b95506200097660c08d01620008eb565b94506200098660e08d01620008eb565b9350620009976101008d01620008eb565b9250620009a86101208d01620008eb565b9150620009b96101408d01620008eb565b90509295989b509295989b9093969950565b634e487b7160e01b600052601160045260246000fd5b60006001600160401b0382811684821680830382111562000a065762000a06620009cb565b01949350505050565b60006001600160401b038281168082141562000a2f5762000a2f620009cb565b6001019392505050565b60008282101562000a4e5762000a4e620009cb565b500390565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b8281101562000aa25785810182015185820160a00152810162000a84565b8281111562000ab557600060a084870101525b5050601f01601f19169190910160a00195945050505050565b60006020828403121562000ae157600080fd5b81516001600160e01b03198116811462000afa57600080fd5b9392505050565b600181811c9082168062000b1657607f821691505b6020821081141562000b3857634e487b7160e01b600052602260045260246000fd5b50919050565b60805161426162000b6f6000396000818161093f01528181610a790152818161146c0152611e8501526142616000f3fe6080604052600436106103435760003560e01c8063607ee38e116101b0578063a5f4c6ff116100ec578063e7b1142d11610095578063ee99205c1161006f578063ee99205c14610a0c578063f1c1471414610a39578063f2fde38b14610b0a578063f30715d514610b2a57600080fd5b8063e7b1142d14610961578063e7d2250a14610996578063e985e9c5146109b657600080fd5b8063c87b56dd116100c6578063c87b56dd146108f7578063d526e13d14610917578063d5abeb011461092d57600080fd5b8063a5f4c6ff146108a1578063b88d4fde146108b7578063bc7f0bdf146108d757600080fd5b8063759ed5351161015957806395d89b411161013357806395d89b41146108365780639eb913b41461084b578063a22cb46514610861578063a544d99a1461088157600080fd5b8063759ed535146107c75780638da5cb5b146107de578063919ec3e01461080957600080fd5b8063703c009d1161018a578063703c009d1461076557806370a0823114610792578063715018a6146107b257600080fd5b8063607ee38e146107055780636352211e1461072557806365e9367f1461074557600080fd5b80633ccfd60b1161027f5780634b980d67116102285780635793d0af116102025780635793d0af1461065d57806358950c221461068a5780635efc2ffe146106ab5780635ffcdc77146106d857600080fd5b80634b980d671461061257806355f804b31461062757806356a7a22d1461064757600080fd5b806342842e0e1161025957806342842e0e146105b257806342966c68146105d25780634548dc48146105f257600080fd5b80633ccfd60b1461056a5780633ebcee4a1461057f578063427030e11461059f57600080fd5b806318160ddd116102ec5780631f9caa5e116102c65780631f9caa5e146104f457806323b872dd1461051457806329ee655c146105345780633016a9401461055457600080fd5b806318160ddd1461045e57806319e6a688146104775780631c46c9bb146104bd57600080fd5b8063095ea7b31161031d578063095ea7b3146103eb5780630eb9b9de1461040d57806316a73bde1461043a57600080fd5b806301ffc9a71461034f57806306fdde0314610384578063081812fc146103a657600080fd5b3661034a57005b600080fd5b34801561035b57600080fd5b5061036f61036a366004613a28565b610b4a565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b50610399610c2f565b60405161037b9190613abb565b3480156103b257600080fd5b506103c66103c1366004613ace565b610cc1565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161037b565b3480156103f757600080fd5b5061040b610406366004613b10565b610d2b565b005b34801561041957600080fd5b506011546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561044657600080fd5b50610450600f5481565b60405190815260200161037b565b34801561046a57600080fd5b5060015460005403610450565b34801561048357600080fd5b50600a546104a49068010000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161037b565b3480156104c957600080fd5b506104a46104d8366004613b3a565b60196020526000908152604090205467ffffffffffffffff1681565b34801561050057600080fd5b5061040b61050f366004613b6d565b610e12565b34801561052057600080fd5b5061040b61052f366004613bac565b610ef7565b34801561054057600080fd5b5061040b61054f366004613bf6565b610f02565b34801561056057600080fd5b50610450600d5481565b34801561057657600080fd5b5061040b610fed565b34801561058b57600080fd5b5061040b61059a366004613c3d565b611272565b61040b6105ad366004613c58565b61137b565b3480156105be57600080fd5b5061040b6105cd366004613bac565b6118e2565b3480156105de57600080fd5b5061040b6105ed366004613ace565b6118fd565b3480156105fe57600080fd5b5061036f61060d366004613b3a565b61198d565b34801561061e57600080fd5b506104a4600a81565b34801561063357600080fd5b5061040b610642366004613c8f565b611cfa565b34801561065357600080fd5b50610450600e5481565b34801561066957600080fd5b506015546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561069657600080fd5b50600a546104a49067ffffffffffffffff1681565b3480156106b757600080fd5b506014546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106e457600080fd5b506016546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561071157600080fd5b5061040b610720366004613c58565b611d87565b34801561073157600080fd5b506103c6610740366004613ace565b612175565b34801561075157600080fd5b5061040b610760366004613b6d565b612187565b34801561077157600080fd5b50610450610780366004613c3d565b60186020526000908152604090205481565b34801561079e57600080fd5b506104506107ad366004613b3a565b61225b565b3480156107be57600080fd5b5061040b6122dd565b3480156107d357600080fd5b506104a4626ebe0081565b3480156107ea57600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff166103c6565b34801561081557600080fd5b506013546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561084257600080fd5b5061039961236a565b34801561085757600080fd5b50610450600c5481565b34801561086d57600080fd5b5061040b61087c366004613d01565b612379565b34801561088d57600080fd5b5061040b61089c366004613c3d565b612460565b3480156108ad57600080fd5b5061045060105481565b3480156108c357600080fd5b5061040b6108d2366004613d4c565b6125c8565b3480156108e357600080fd5b5061040b6108f2366004613e46565b612639565b34801561090357600080fd5b50610399610912366004613ace565b61274e565b34801561092357600080fd5b50610450600b5481565b34801561093957600080fd5b506104a47f000000000000000000000000000000000000000000000000000000000000000081565b34801561096d57600080fd5b50600a546104a490700100000000000000000000000000000000900467ffffffffffffffff1681565b3480156109a257600080fd5b5061036f6109b1366004613c3d565b6127eb565b3480156109c257600080fd5b5061036f6109d1366004613eba565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a1857600080fd5b506012546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a4557600080fd5b50600a8054600b54600c54600d54600e54600f5460105460408051626ebe008152602081019990995267ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116918a019190915280881660608a0152680100000000000000008804811660808a015270010000000000000000000000000000000090970490961660a088015260c087019490945260e08601929092526101008501526101208401526101408301526101608201526101800161037b565b348015610b1657600080fd5b5061040b610b25366004613b3a565b6127f6565b348015610b3657600080fd5b5061036f610b45366004613c3d565b612923565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bdd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c2957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060028054610c3e90613eed565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6a90613eed565b8015610cb75780601f10610c8c57610100808354040283529160200191610cb7565b820191906000526020600020905b815481529060010190602001808311610c9a57829003601f168201915b5050505050905090565b6000610ccc82612934565b610d02576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d3682612175565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d9e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610dcb5750610dc981336109d1565b155b15610e02576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e0d838383612978565b505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314610e98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600e93909355600f91909155600a805467ffffffffffffffff909316700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff90931692909217909155601055565b610e0d8383836129f9565b60085473ffffffffffffffffffffffffffffffffffffffff163314610f83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b600054610f9a8367ffffffffffffffff8616612d6e565b8115610fe75760005b8467ffffffffffffffff168167ffffffffffffffff161015610fe557610fd3610fcc8284613f70565b6001612d8c565b80610fdd81613f9c565b915050610fa3565b505b50505050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461106e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b6011546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90339083906370a082319060240160206040518083038186803b1580156110e157600080fd5b505afa1580156110f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111199190613fc4565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b15801561118457600080fd5b505af1158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc9190613fdd565b50604051600090339047908381818185875af1925050503d80600081146111ff576040519150601f19603f3d011682016040523d82523d6000602084013e611204565b606091505b505090508061126f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5472616e73206661696c656400000000000000000000000000000000000000006044820152606401610e8f565b50565b3361128667ffffffffffffffff8316612175565b73ffffffffffffffffffffffffffffffffffffffff1614611303576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610e8f565b61130c81612ded565b611372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420696e63756261746564000000000000000000000000000000000000006044820152606401610e8f565b61126f81612e24565b600260095414156113e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e8f565b6002600955600f54421015611459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f496e6163746976650000000000000000000000000000000000000000000000006044820152606401610e8f565b600080546114919067ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016613ffa565b9050600081116114fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610e8f565b60018367ffffffffffffffff161015611572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f426164207175616e7469747900000000000000000000000000000000000000006044820152606401610e8f565b808367ffffffffffffffff1611156115e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610e8f565b60006010544210156115fa57600d546115fe565b600c545b90506116148167ffffffffffffffff8616614011565b341461167c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4261642076616c756500000000000000000000000000000000000000000000006044820152606401610e8f565b600054600a54600f546116ad91700100000000000000000000000000000000900467ffffffffffffffff169061404e565b4210156117855733600090815260196020526040812080548792906116dd90849067ffffffffffffffff16613f70565b82546101009290920a67ffffffffffffffff818102199093169183160217909155600a5433600090815260196020526040902054908216911611159050611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f45786365656473206c696d6974000000000000000000000000000000000000006044820152606401610e8f565b6117fa565b600a67ffffffffffffffff861611156117fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f45786365656473207472616e73206d61780000000000000000000000000000006044820152606401610e8f565b6010544210158061180f575061180f3361198d565b611875576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420686f6c646572000000000000000000000000000000000000000000006044820152606401610e8f565b611889338667ffffffffffffffff16612d6e565b83156118d65760005b8567ffffffffffffffff168167ffffffffffffffff1610156118d4576118c26118bb8284613f70565b6000612d8c565b806118cc81613f9c565b915050611892565b505b50506001600955505050565b610e0d838383604051806020016040528060008152506125c8565b3361190782612175565b73ffffffffffffffffffffffffffffffffffffffff1614611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610e8f565b61126f81612e69565b6012546040517fa87430ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152600092839291169063a87430ba9060240160c06040518083038186803b1580156119fc57600080fd5b505afa158015611a10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a349190614066565b50506016546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015295965060009590911693506370a082319250602401905060206040518083038186803b158015611aab57600080fd5b505afa158015611abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae39190613fc4565b1180611aef5750600081115b80611b9b57506015546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260009216906370a082319060240160206040518083038186803b158015611b6157600080fd5b505afa158015611b75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b999190613fc4565b115b80611c4757506014546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260009216906370a082319060240160206040518083038186803b158015611c0d57600080fd5b505afa158015611c21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c459190613fc4565b115b80611cf357506013546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260009216906370a082319060240160206040518083038186803b158015611cb957600080fd5b505afa158015611ccd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf19190613fc4565b115b9392505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314611d7b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b610e0d60178383613943565b60026009541415611df4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e8f565b6002600955600e544210801590611e0c5750600f5442105b611e72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f496e6163746976650000000000000000000000000000000000000000000000006044820152606401610e8f565b60008054611eaa9067ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016613ffa565b905060008111611f16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610e8f565b60018367ffffffffffffffff161015611f8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f426164207175616e7469747900000000000000000000000000000000000000006044820152606401610e8f565b600a54600090611fb290859068010000000000000000900467ffffffffffffffff166140b0565b67ffffffffffffffff16905081811115612028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610e8f565b600054601154600b5473ffffffffffffffffffffffffffffffffffffffff909116906323b872dd90339030906120689067ffffffffffffffff8b16614011565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401602060405180830381600087803b1580156120dc57600080fd5b505af11580156120f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121149190613fdd565b5061212d33836bffffffffffffffffffffffff16612d6e565b83156118d65760005b826bffffffffffffffffffffffff168167ffffffffffffffff1610156118d4576121636118bb8284613f70565b8061216d81613f9c565b915050612136565b6000612180826130fc565b5192915050565b60085473ffffffffffffffffffffffffffffffffffffffff163314612208576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b600b93909355600c55600d55600a805467ffffffffffffffff90921668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff82166122aa576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff16331461235e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b61236860006132ca565b565b606060038054610c3e90613eed565b73ffffffffffffffffffffffffffffffffffffffff82163314156123c9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3361247467ffffffffffffffff8316612175565b73ffffffffffffffffffffffffffffffffffffffff16146124f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610e8f565b67ffffffffffffffff811660009081526018602052604090205415612572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f496e6375626174656400000000000000000000000000000000000000000000006044820152606401610e8f565b61126f8161259560085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612d8c565b6125d38484846129f9565b73ffffffffffffffffffffffffffffffffffffffff83163b15158015612602575061260084848484613341565b155b15610fe7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60085473ffffffffffffffffffffffffffffffffffffffff1633146126ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b601180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff98891617909155601280548216968816969096179095556013805486169287169290921790915560148054851692861692909217909155601580548416918516919091179055601680549092169216919091179055565b606061275982612934565b61278f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006127996134c7565b90508051600014156127ba5760405180602001604052806000815250611cf3565b806127c4846134d6565b6040516020016127d59291906140e0565b6040516020818303038152906040529392505050565b6000610c2982612ded565b60085473ffffffffffffffffffffffffffffffffffffffff163314612877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b73ffffffffffffffffffffffffffffffffffffffff811661291a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e8f565b61126f816132ca565b6000610c2982613608565b3b151590565b6000805482108015610c295750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612a04826130fc565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612a4c57508151612a4c90336109d1565b80612a74575033612a5c84610cc1565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612aad576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612b16576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416612b63576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b70858585600161365f565b612b806000848460000151612978565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612d0d57600054811015612d0d578251600082815260046020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fe5565b612d88828260405180602001604052806000815250613681565b5050565b80612d975742612da4565b612da4626ebe0042613ffa565b67ffffffffffffffff831660008181526018602052604080822093909355915190917f84f002dad74b53a9cf9855d4771f294d0046c45226df5c6786bde9d56e1bcc2891a25050565b6000612df882613608565b15612e0557506000919050565b5067ffffffffffffffff16600090815260186020526040902054151590565b67ffffffffffffffff8116600081815260186020526040808220829055517f46e5fc148d602adff2f0d99809354a5f884762d541472d10ad3d084f3d41508d9190a250565b6000612e74826130fc565b9050612e888160000151600084600161365f565b612e986000838360000151612978565b805173ffffffffffffffffffffffffffffffffffffffff908116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000811667ffffffffffffffff9182167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0182161790915585518516845281842080547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff811670010000000000000000000000000000000091829004841660019081018516909202179091558651888652600490945282852080547c01000000000000000000000000000000000000000000000000000000009588167fffffffff0000000000000000000000000000000000000000000000000000000090911617740100000000000000000000000000000000000000004290941693909302929092177fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff169390931790559085018083529120549091166130a7576000548110156130a7578151600082815260046020908152604090912080549185015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b508051604051839160009173ffffffffffffffffffffffffffffffffffffffff909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506001805481019055565b604080516060810182526000808252602082018190529181019190915281600054811015613298576000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061329657805173ffffffffffffffffffffffffffffffffffffffff16156131d7579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215613291579392505050565b6131d7565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061339c903390899088908890600401614106565b602060405180830381600087803b1580156133b657600080fd5b505af1925050508015613404575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526134019181019061414f565b60015b613478573d808015613432576040519150601f19603f3d011682016040523d82523d6000602084013e613437565b606091505b508051613470576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b606060178054610c3e90613eed565b60608161351657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613540578061352a8161416c565b91506135399050600a836141d4565b915061351a565b60008167ffffffffffffffff81111561355b5761355b613d1d565b6040519080825280601f01601f191660200182016040528015613585576020820181803683370190505b5090505b84156134bf5761359a600183613ffa565b91506135a7600a866141e8565b6135b290603061404e565b60f81b8183815181106135c7576135c76141fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613601600a866141d4565b9450613589565b67ffffffffffffffff811660009081526018602052604081205461362e57506000919050565b67ffffffffffffffff8216600090815260186020526040902054626ebe00906136579042613ffa565b101592915050565b806001148015613673575061367382612ded565b15610fe757610fe782612e24565b610e0d838383600160005473ffffffffffffffffffffffffffffffffffffffff85166136d9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83613710576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61371d600086838761365f565b73ffffffffffffffffffffffffffffffffffffffff8516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c01811690920217909155858452600490925290912080547fffffffff000000000000000000000000000000000000000000000000000000001690921774010000000000000000000000000000000000000000429092169190910217905580808501838015613838575073ffffffffffffffffffffffffffffffffffffffff87163b15155b156138e7575b604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138966000888480600101955088613341565b6138cc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561383e5782600054146138e257600080fd5b61393a565b5b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156138e8575b50600055610fe5565b82805461394f90613eed565b90600052602060002090601f01602090048101928261397157600085556139d5565b82601f106139a8578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556139d5565b828001600101855582156139d5579182015b828111156139d55782358255916020019190600101906139ba565b506139e19291506139e5565b5090565b5b808211156139e157600081556001016139e6565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461126f57600080fd5b600060208284031215613a3a57600080fd5b8135611cf3816139fa565b60005b83811015613a60578181015183820152602001613a48565b83811115610fe75750506000910152565b60008151808452613a89816020860160208601613a45565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611cf36020830184613a71565b600060208284031215613ae057600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114613b0b57600080fd5b919050565b60008060408385031215613b2357600080fd5b613b2c83613ae7565b946020939093013593505050565b600060208284031215613b4c57600080fd5b611cf382613ae7565b803567ffffffffffffffff81168114613b0b57600080fd5b60008060008060808587031215613b8357600080fd5b843593506020850135925060408501359150613ba160608601613b55565b905092959194509250565b600080600060608486031215613bc157600080fd5b613bca84613ae7565b9250613bd860208501613ae7565b9150604084013590509250925092565b801515811461126f57600080fd5b600080600060608486031215613c0b57600080fd5b613c1484613b55565b9250613c2260208501613ae7565b91506040840135613c3281613be8565b809150509250925092565b600060208284031215613c4f57600080fd5b611cf382613b55565b60008060408385031215613c6b57600080fd5b613c7483613b55565b91506020830135613c8481613be8565b809150509250929050565b60008060208385031215613ca257600080fd5b823567ffffffffffffffff80821115613cba57600080fd5b818501915085601f830112613cce57600080fd5b813581811115613cdd57600080fd5b866020828501011115613cef57600080fd5b60209290920196919550909350505050565b60008060408385031215613d1457600080fd5b613c7483613ae7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215613d6257600080fd5b613d6b85613ae7565b9350613d7960208601613ae7565b925060408501359150606085013567ffffffffffffffff80821115613d9d57600080fd5b818701915087601f830112613db157600080fd5b813581811115613dc357613dc3613d1d565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613e0957613e09613d1d565b816040528281528a6020848701011115613e2257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060c08789031215613e5f57600080fd5b613e6887613ae7565b9550613e7660208801613ae7565b9450613e8460408801613ae7565b9350613e9260608801613ae7565b9250613ea060808801613ae7565b9150613eae60a08801613ae7565b90509295509295509295565b60008060408385031215613ecd57600080fd5b613ed683613ae7565b9150613ee460208401613ae7565b90509250929050565b600181811c90821680613f0157607f821691505b60208210811415613f3b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600067ffffffffffffffff808316818516808303821115613f9357613f93613f41565b01949350505050565b600067ffffffffffffffff80831681811415613fba57613fba613f41565b6001019392505050565b600060208284031215613fd657600080fd5b5051919050565b600060208284031215613fef57600080fd5b8151611cf381613be8565b60008282101561400c5761400c613f41565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561404957614049613f41565b500290565b6000821982111561406157614061613f41565b500190565b60008060008060008060c0878903121561407f57600080fd5b865195506020870151945060408701519350606087015192506080870151915060a087015190509295509295509295565b600067ffffffffffffffff808316818516818304811182151516156140d7576140d7613f41565b02949350505050565b600083516140f2818460208801613a45565b835190830190613f93818360208801613a45565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526141456080830184613a71565b9695505050505050565b60006020828403121561416157600080fd5b8151611cf3816139fa565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561419e5761419e613f41565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826141e3576141e36141a5565b500490565b6000826141f7576141f76141a5565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220389f1c3c637c5c010991307e3b0bc1ac98a5c42b1e8b573ed7b9a62d46e226f764736f6c6343000809003368747470733a2f2f63635f6e667473746f72652e6d7970696e6174612e636c6f75642f697066732f516d5a447976446d33573171393235396b6f436951413374426b4e677770645a785459336f755271764b4b6244352f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000000000157c00000000000000000000000000000000000000000000000000000000623160c000000000000000000000000000000000000000000000000000000000623225a0000000000000000000000000000000000000000000000000000000006233a1500000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000c6ca1e69bf227ecb34c44ca4c1ba63edd7deefd400000000000000000000000058c1ff9bba25f14cf23ea3c5b408da234a456d04000000000000000000000000928f072c009727fbad81bbf3aaa885f9fea65fcf000000000000000000000000270a76ea7c3505c7203ca5ebfc4eca4299ead71c000000000000000000000000d7df60f0857cfb0003f389ff338df50ba5c17fde0000000000000000000000002034437801b62ede275210f76e2d4e77d0198bff

Deployed Bytecode

0x6080604052600436106103435760003560e01c8063607ee38e116101b0578063a5f4c6ff116100ec578063e7b1142d11610095578063ee99205c1161006f578063ee99205c14610a0c578063f1c1471414610a39578063f2fde38b14610b0a578063f30715d514610b2a57600080fd5b8063e7b1142d14610961578063e7d2250a14610996578063e985e9c5146109b657600080fd5b8063c87b56dd116100c6578063c87b56dd146108f7578063d526e13d14610917578063d5abeb011461092d57600080fd5b8063a5f4c6ff146108a1578063b88d4fde146108b7578063bc7f0bdf146108d757600080fd5b8063759ed5351161015957806395d89b411161013357806395d89b41146108365780639eb913b41461084b578063a22cb46514610861578063a544d99a1461088157600080fd5b8063759ed535146107c75780638da5cb5b146107de578063919ec3e01461080957600080fd5b8063703c009d1161018a578063703c009d1461076557806370a0823114610792578063715018a6146107b257600080fd5b8063607ee38e146107055780636352211e1461072557806365e9367f1461074557600080fd5b80633ccfd60b1161027f5780634b980d67116102285780635793d0af116102025780635793d0af1461065d57806358950c221461068a5780635efc2ffe146106ab5780635ffcdc77146106d857600080fd5b80634b980d671461061257806355f804b31461062757806356a7a22d1461064757600080fd5b806342842e0e1161025957806342842e0e146105b257806342966c68146105d25780634548dc48146105f257600080fd5b80633ccfd60b1461056a5780633ebcee4a1461057f578063427030e11461059f57600080fd5b806318160ddd116102ec5780631f9caa5e116102c65780631f9caa5e146104f457806323b872dd1461051457806329ee655c146105345780633016a9401461055457600080fd5b806318160ddd1461045e57806319e6a688146104775780631c46c9bb146104bd57600080fd5b8063095ea7b31161031d578063095ea7b3146103eb5780630eb9b9de1461040d57806316a73bde1461043a57600080fd5b806301ffc9a71461034f57806306fdde0314610384578063081812fc146103a657600080fd5b3661034a57005b600080fd5b34801561035b57600080fd5b5061036f61036a366004613a28565b610b4a565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b50610399610c2f565b60405161037b9190613abb565b3480156103b257600080fd5b506103c66103c1366004613ace565b610cc1565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161037b565b3480156103f757600080fd5b5061040b610406366004613b10565b610d2b565b005b34801561041957600080fd5b506011546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561044657600080fd5b50610450600f5481565b60405190815260200161037b565b34801561046a57600080fd5b5060015460005403610450565b34801561048357600080fd5b50600a546104a49068010000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161037b565b3480156104c957600080fd5b506104a46104d8366004613b3a565b60196020526000908152604090205467ffffffffffffffff1681565b34801561050057600080fd5b5061040b61050f366004613b6d565b610e12565b34801561052057600080fd5b5061040b61052f366004613bac565b610ef7565b34801561054057600080fd5b5061040b61054f366004613bf6565b610f02565b34801561056057600080fd5b50610450600d5481565b34801561057657600080fd5b5061040b610fed565b34801561058b57600080fd5b5061040b61059a366004613c3d565b611272565b61040b6105ad366004613c58565b61137b565b3480156105be57600080fd5b5061040b6105cd366004613bac565b6118e2565b3480156105de57600080fd5b5061040b6105ed366004613ace565b6118fd565b3480156105fe57600080fd5b5061036f61060d366004613b3a565b61198d565b34801561061e57600080fd5b506104a4600a81565b34801561063357600080fd5b5061040b610642366004613c8f565b611cfa565b34801561065357600080fd5b50610450600e5481565b34801561066957600080fd5b506015546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561069657600080fd5b50600a546104a49067ffffffffffffffff1681565b3480156106b757600080fd5b506014546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b3480156106e457600080fd5b506016546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561071157600080fd5b5061040b610720366004613c58565b611d87565b34801561073157600080fd5b506103c6610740366004613ace565b612175565b34801561075157600080fd5b5061040b610760366004613b6d565b612187565b34801561077157600080fd5b50610450610780366004613c3d565b60186020526000908152604090205481565b34801561079e57600080fd5b506104506107ad366004613b3a565b61225b565b3480156107be57600080fd5b5061040b6122dd565b3480156107d357600080fd5b506104a4626ebe0081565b3480156107ea57600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff166103c6565b34801561081557600080fd5b506013546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b34801561084257600080fd5b5061039961236a565b34801561085757600080fd5b50610450600c5481565b34801561086d57600080fd5b5061040b61087c366004613d01565b612379565b34801561088d57600080fd5b5061040b61089c366004613c3d565b612460565b3480156108ad57600080fd5b5061045060105481565b3480156108c357600080fd5b5061040b6108d2366004613d4c565b6125c8565b3480156108e357600080fd5b5061040b6108f2366004613e46565b612639565b34801561090357600080fd5b50610399610912366004613ace565b61274e565b34801561092357600080fd5b50610450600b5481565b34801561093957600080fd5b506104a47f000000000000000000000000000000000000000000000000000000000000157c81565b34801561096d57600080fd5b50600a546104a490700100000000000000000000000000000000900467ffffffffffffffff1681565b3480156109a257600080fd5b5061036f6109b1366004613c3d565b6127eb565b3480156109c257600080fd5b5061036f6109d1366004613eba565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a1857600080fd5b506012546103c69073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a4557600080fd5b50600a8054600b54600c54600d54600e54600f5460105460408051626ebe008152602081019990995267ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000157c8116918a019190915280881660608a0152680100000000000000008804811660808a015270010000000000000000000000000000000090970490961660a088015260c087019490945260e08601929092526101008501526101208401526101408301526101608201526101800161037b565b348015610b1657600080fd5b5061040b610b25366004613b3a565b6127f6565b348015610b3657600080fd5b5061036f610b45366004613c3d565b612923565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bdd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c2957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060028054610c3e90613eed565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6a90613eed565b8015610cb75780601f10610c8c57610100808354040283529160200191610cb7565b820191906000526020600020905b815481529060010190602001808311610c9a57829003601f168201915b5050505050905090565b6000610ccc82612934565b610d02576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d3682612175565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d9e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610dcb5750610dc981336109d1565b155b15610e02576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e0d838383612978565b505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314610e98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600e93909355600f91909155600a805467ffffffffffffffff909316700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff90931692909217909155601055565b610e0d8383836129f9565b60085473ffffffffffffffffffffffffffffffffffffffff163314610f83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b600054610f9a8367ffffffffffffffff8616612d6e565b8115610fe75760005b8467ffffffffffffffff168167ffffffffffffffff161015610fe557610fd3610fcc8284613f70565b6001612d8c565b80610fdd81613f9c565b915050610fa3565b505b50505050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461106e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b6011546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90339083906370a082319060240160206040518083038186803b1580156110e157600080fd5b505afa1580156110f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111199190613fc4565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b15801561118457600080fd5b505af1158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc9190613fdd565b50604051600090339047908381818185875af1925050503d80600081146111ff576040519150601f19603f3d011682016040523d82523d6000602084013e611204565b606091505b505090508061126f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5472616e73206661696c656400000000000000000000000000000000000000006044820152606401610e8f565b50565b3361128667ffffffffffffffff8316612175565b73ffffffffffffffffffffffffffffffffffffffff1614611303576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610e8f565b61130c81612ded565b611372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420696e63756261746564000000000000000000000000000000000000006044820152606401610e8f565b61126f81612e24565b600260095414156113e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e8f565b6002600955600f54421015611459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f496e6163746976650000000000000000000000000000000000000000000000006044820152606401610e8f565b600080546114919067ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000157c16613ffa565b9050600081116114fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610e8f565b60018367ffffffffffffffff161015611572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f426164207175616e7469747900000000000000000000000000000000000000006044820152606401610e8f565b808367ffffffffffffffff1611156115e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610e8f565b60006010544210156115fa57600d546115fe565b600c545b90506116148167ffffffffffffffff8616614011565b341461167c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4261642076616c756500000000000000000000000000000000000000000000006044820152606401610e8f565b600054600a54600f546116ad91700100000000000000000000000000000000900467ffffffffffffffff169061404e565b4210156117855733600090815260196020526040812080548792906116dd90849067ffffffffffffffff16613f70565b82546101009290920a67ffffffffffffffff818102199093169183160217909155600a5433600090815260196020526040902054908216911611159050611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f45786365656473206c696d6974000000000000000000000000000000000000006044820152606401610e8f565b6117fa565b600a67ffffffffffffffff861611156117fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f45786365656473207472616e73206d61780000000000000000000000000000006044820152606401610e8f565b6010544210158061180f575061180f3361198d565b611875576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420686f6c646572000000000000000000000000000000000000000000006044820152606401610e8f565b611889338667ffffffffffffffff16612d6e565b83156118d65760005b8567ffffffffffffffff168167ffffffffffffffff1610156118d4576118c26118bb8284613f70565b6000612d8c565b806118cc81613f9c565b915050611892565b505b50506001600955505050565b610e0d838383604051806020016040528060008152506125c8565b3361190782612175565b73ffffffffffffffffffffffffffffffffffffffff1614611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610e8f565b61126f81612e69565b6012546040517fa87430ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152600092839291169063a87430ba9060240160c06040518083038186803b1580156119fc57600080fd5b505afa158015611a10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a349190614066565b50506016546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015295965060009590911693506370a082319250602401905060206040518083038186803b158015611aab57600080fd5b505afa158015611abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae39190613fc4565b1180611aef5750600081115b80611b9b57506015546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260009216906370a082319060240160206040518083038186803b158015611b6157600080fd5b505afa158015611b75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b999190613fc4565b115b80611c4757506014546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260009216906370a082319060240160206040518083038186803b158015611c0d57600080fd5b505afa158015611c21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c459190613fc4565b115b80611cf357506013546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260009216906370a082319060240160206040518083038186803b158015611cb957600080fd5b505afa158015611ccd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf19190613fc4565b115b9392505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314611d7b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b610e0d60178383613943565b60026009541415611df4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e8f565b6002600955600e544210801590611e0c5750600f5442105b611e72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f496e6163746976650000000000000000000000000000000000000000000000006044820152606401610e8f565b60008054611eaa9067ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000157c16613ffa565b905060008111611f16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d696e74206f76657200000000000000000000000000000000000000000000006044820152606401610e8f565b60018367ffffffffffffffff161015611f8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f426164207175616e7469747900000000000000000000000000000000000000006044820152606401610e8f565b600a54600090611fb290859068010000000000000000900467ffffffffffffffff166140b0565b67ffffffffffffffff16905081811115612028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f7420656e6f756768000000000000000000000000000000000000000000006044820152606401610e8f565b600054601154600b5473ffffffffffffffffffffffffffffffffffffffff909116906323b872dd90339030906120689067ffffffffffffffff8b16614011565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401602060405180830381600087803b1580156120dc57600080fd5b505af11580156120f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121149190613fdd565b5061212d33836bffffffffffffffffffffffff16612d6e565b83156118d65760005b826bffffffffffffffffffffffff168167ffffffffffffffff1610156118d4576121636118bb8284613f70565b8061216d81613f9c565b915050612136565b6000612180826130fc565b5192915050565b60085473ffffffffffffffffffffffffffffffffffffffff163314612208576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b600b93909355600c55600d55600a805467ffffffffffffffff90921668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff82166122aa576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff16331461235e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b61236860006132ca565b565b606060038054610c3e90613eed565b73ffffffffffffffffffffffffffffffffffffffff82163314156123c9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3361247467ffffffffffffffff8316612175565b73ffffffffffffffffffffffffffffffffffffffff16146124f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610e8f565b67ffffffffffffffff811660009081526018602052604090205415612572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f496e6375626174656400000000000000000000000000000000000000000000006044820152606401610e8f565b61126f8161259560085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612d8c565b6125d38484846129f9565b73ffffffffffffffffffffffffffffffffffffffff83163b15158015612602575061260084848484613341565b155b15610fe7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60085473ffffffffffffffffffffffffffffffffffffffff1633146126ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b601180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff98891617909155601280548216968816969096179095556013805486169287169290921790915560148054851692861692909217909155601580548416918516919091179055601680549092169216919091179055565b606061275982612934565b61278f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006127996134c7565b90508051600014156127ba5760405180602001604052806000815250611cf3565b806127c4846134d6565b6040516020016127d59291906140e0565b6040516020818303038152906040529392505050565b6000610c2982612ded565b60085473ffffffffffffffffffffffffffffffffffffffff163314612877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e8f565b73ffffffffffffffffffffffffffffffffffffffff811661291a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e8f565b61126f816132ca565b6000610c2982613608565b3b151590565b6000805482108015610c295750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612a04826130fc565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612a4c57508151612a4c90336109d1565b80612a74575033612a5c84610cc1565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612aad576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612b16576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416612b63576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b70858585600161365f565b612b806000848460000151612978565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612d0d57600054811015612d0d578251600082815260046020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fe5565b612d88828260405180602001604052806000815250613681565b5050565b80612d975742612da4565b612da4626ebe0042613ffa565b67ffffffffffffffff831660008181526018602052604080822093909355915190917f84f002dad74b53a9cf9855d4771f294d0046c45226df5c6786bde9d56e1bcc2891a25050565b6000612df882613608565b15612e0557506000919050565b5067ffffffffffffffff16600090815260186020526040902054151590565b67ffffffffffffffff8116600081815260186020526040808220829055517f46e5fc148d602adff2f0d99809354a5f884762d541472d10ad3d084f3d41508d9190a250565b6000612e74826130fc565b9050612e888160000151600084600161365f565b612e986000838360000151612978565b805173ffffffffffffffffffffffffffffffffffffffff908116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000811667ffffffffffffffff9182167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0182161790915585518516845281842080547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff811670010000000000000000000000000000000091829004841660019081018516909202179091558651888652600490945282852080547c01000000000000000000000000000000000000000000000000000000009588167fffffffff0000000000000000000000000000000000000000000000000000000090911617740100000000000000000000000000000000000000004290941693909302929092177fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff169390931790559085018083529120549091166130a7576000548110156130a7578151600082815260046020908152604090912080549185015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b508051604051839160009173ffffffffffffffffffffffffffffffffffffffff909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506001805481019055565b604080516060810182526000808252602082018190529181019190915281600054811015613298576000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061329657805173ffffffffffffffffffffffffffffffffffffffff16156131d7579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215613291579392505050565b6131d7565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061339c903390899088908890600401614106565b602060405180830381600087803b1580156133b657600080fd5b505af1925050508015613404575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526134019181019061414f565b60015b613478573d808015613432576040519150601f19603f3d011682016040523d82523d6000602084013e613437565b606091505b508051613470576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b606060178054610c3e90613eed565b60608161351657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613540578061352a8161416c565b91506135399050600a836141d4565b915061351a565b60008167ffffffffffffffff81111561355b5761355b613d1d565b6040519080825280601f01601f191660200182016040528015613585576020820181803683370190505b5090505b84156134bf5761359a600183613ffa565b91506135a7600a866141e8565b6135b290603061404e565b60f81b8183815181106135c7576135c76141fc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613601600a866141d4565b9450613589565b67ffffffffffffffff811660009081526018602052604081205461362e57506000919050565b67ffffffffffffffff8216600090815260186020526040902054626ebe00906136579042613ffa565b101592915050565b806001148015613673575061367382612ded565b15610fe757610fe782612e24565b610e0d838383600160005473ffffffffffffffffffffffffffffffffffffffff85166136d9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83613710576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61371d600086838761365f565b73ffffffffffffffffffffffffffffffffffffffff8516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c01811690920217909155858452600490925290912080547fffffffff000000000000000000000000000000000000000000000000000000001690921774010000000000000000000000000000000000000000429092169190910217905580808501838015613838575073ffffffffffffffffffffffffffffffffffffffff87163b15155b156138e7575b604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138966000888480600101955088613341565b6138cc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561383e5782600054146138e257600080fd5b61393a565b5b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156138e8575b50600055610fe5565b82805461394f90613eed565b90600052602060002090601f01602090048101928261397157600085556139d5565b82601f106139a8578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556139d5565b828001600101855582156139d5579182015b828111156139d55782358255916020019190600101906139ba565b506139e19291506139e5565b5090565b5b808211156139e157600081556001016139e6565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461126f57600080fd5b600060208284031215613a3a57600080fd5b8135611cf3816139fa565b60005b83811015613a60578181015183820152602001613a48565b83811115610fe75750506000910152565b60008151808452613a89816020860160208601613a45565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611cf36020830184613a71565b600060208284031215613ae057600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114613b0b57600080fd5b919050565b60008060408385031215613b2357600080fd5b613b2c83613ae7565b946020939093013593505050565b600060208284031215613b4c57600080fd5b611cf382613ae7565b803567ffffffffffffffff81168114613b0b57600080fd5b60008060008060808587031215613b8357600080fd5b843593506020850135925060408501359150613ba160608601613b55565b905092959194509250565b600080600060608486031215613bc157600080fd5b613bca84613ae7565b9250613bd860208501613ae7565b9150604084013590509250925092565b801515811461126f57600080fd5b600080600060608486031215613c0b57600080fd5b613c1484613b55565b9250613c2260208501613ae7565b91506040840135613c3281613be8565b809150509250925092565b600060208284031215613c4f57600080fd5b611cf382613b55565b60008060408385031215613c6b57600080fd5b613c7483613b55565b91506020830135613c8481613be8565b809150509250929050565b60008060208385031215613ca257600080fd5b823567ffffffffffffffff80821115613cba57600080fd5b818501915085601f830112613cce57600080fd5b813581811115613cdd57600080fd5b866020828501011115613cef57600080fd5b60209290920196919550909350505050565b60008060408385031215613d1457600080fd5b613c7483613ae7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215613d6257600080fd5b613d6b85613ae7565b9350613d7960208601613ae7565b925060408501359150606085013567ffffffffffffffff80821115613d9d57600080fd5b818701915087601f830112613db157600080fd5b813581811115613dc357613dc3613d1d565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613e0957613e09613d1d565b816040528281528a6020848701011115613e2257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060c08789031215613e5f57600080fd5b613e6887613ae7565b9550613e7660208801613ae7565b9450613e8460408801613ae7565b9350613e9260608801613ae7565b9250613ea060808801613ae7565b9150613eae60a08801613ae7565b90509295509295509295565b60008060408385031215613ecd57600080fd5b613ed683613ae7565b9150613ee460208401613ae7565b90509250929050565b600181811c90821680613f0157607f821691505b60208210811415613f3b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600067ffffffffffffffff808316818516808303821115613f9357613f93613f41565b01949350505050565b600067ffffffffffffffff80831681811415613fba57613fba613f41565b6001019392505050565b600060208284031215613fd657600080fd5b5051919050565b600060208284031215613fef57600080fd5b8151611cf381613be8565b60008282101561400c5761400c613f41565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561404957614049613f41565b500290565b6000821982111561406157614061613f41565b500190565b60008060008060008060c0878903121561407f57600080fd5b865195506020870151945060408701519350606087015192506080870151915060a087015190509295509295509295565b600067ffffffffffffffff808316818516818304811182151516156140d7576140d7613f41565b02949350505050565b600083516140f2818460208801613a45565b835190830190613f93818360208801613a45565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526141456080830184613a71565b9695505050505050565b60006020828403121561416157600080fd5b8151611cf3816139fa565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561419e5761419e613f41565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826141e3576141e36141a5565b500490565b6000826141f7576141f76141a5565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220389f1c3c637c5c010991307e3b0bc1ac98a5c42b1e8b573ed7b9a62d46e226f764736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000157c00000000000000000000000000000000000000000000000000000000623160c000000000000000000000000000000000000000000000000000000000623225a0000000000000000000000000000000000000000000000000000000006233a1500000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000c6ca1e69bf227ecb34c44ca4c1ba63edd7deefd400000000000000000000000058c1ff9bba25f14cf23ea3c5b408da234a456d04000000000000000000000000928f072c009727fbad81bbf3aaa885f9fea65fcf000000000000000000000000270a76ea7c3505c7203ca5ebfc4eca4299ead71c000000000000000000000000d7df60f0857cfb0003f389ff338df50ba5c17fde0000000000000000000000002034437801b62ede275210f76e2d4e77d0198bff

-----Decoded View---------------
Arg [0] : _maxSupply (uint64): 5500
Arg [1] : _roolahMintStart (uint256): 1647403200
Arg [2] : _holderMintStart (uint256): 1647453600
Arg [3] : _publicMintStart (uint256): 1647550800
Arg [4] : _walletCapDuration (uint64): 10800
Arg [5] : _roolahAddress (address): 0xC6cA1e69bf227eCB34c44CA4C1BA63EDD7DEefd4
Arg [6] : _stakingAddress (address): 0x58C1ff9bBA25f14Cf23EA3c5B408dA234a456D04
Arg [7] : _rooTroopAddress (address): 0x928f072C009727FbAd81bBF3aAa885f9fEa65fcf
Arg [8] : _xROOWETHAddress (address): 0x270a76ea7C3505c7203Ca5eBFc4eca4299EaD71c
Arg [9] : _xROOAddress (address): 0xd7df60f0857CFB0003F389FF338df50BA5C17FDe
Arg [10] : _ROOAddress (address): 0x2034437801b62EDe275210f76E2D4e77d0198BfF

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000157c
Arg [1] : 00000000000000000000000000000000000000000000000000000000623160c0
Arg [2] : 00000000000000000000000000000000000000000000000000000000623225a0
Arg [3] : 000000000000000000000000000000000000000000000000000000006233a150
Arg [4] : 0000000000000000000000000000000000000000000000000000000000002a30
Arg [5] : 000000000000000000000000c6ca1e69bf227ecb34c44ca4c1ba63edd7deefd4
Arg [6] : 00000000000000000000000058c1ff9bba25f14cf23ea3c5b408da234a456d04
Arg [7] : 000000000000000000000000928f072c009727fbad81bbf3aaa885f9fea65fcf
Arg [8] : 000000000000000000000000270a76ea7c3505c7203ca5ebfc4eca4299ead71c
Arg [9] : 000000000000000000000000d7df60f0857cfb0003f389ff338df50ba5c17fde
Arg [10] : 0000000000000000000000002034437801b62ede275210f76e2d4e77d0198bff


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

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