ETH Price: $3,453.29 (+0.93%)
Gas: 9 Gwei

Cyber Roos (CYBERROOS)
 

Overview

TokenID

65

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
CyberRoos

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : CyberRoos.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./HOPS.sol";

/*
 * cyberroos.com 
 * @cyber_roos (Twitter)
 * Founder: @vaccarodoteth (Twitter)
 * Contract Author: @blockdaddyy (Twitter)
 * Devs: atreides.eth (front-end), yachovcohen.eth (discord)
 */

contract CyberRoos is ERC721A, Ownable, ReentrancyGuard {

    uint256 public gamifiedCap = 600;
    uint256 public saleCap = 500;

    uint256 public hopsCostToBox = 5000 ether; // Price to Box For a Roo (in $HOPS)

    uint256 public saleState; // 0 = Sale inactive, 1 = BOXING active, 2 = WL sale, 3 = WL + public sale , 4+ future proof

    uint256 public whitelistPrice = 0.059 ether; 
    uint256 public publicPrice = 0.069 ether;

    uint256 public maxPerWLWallet = 5;

    bytes32 public whitelistMerkleRoot;
    mapping(address => uint256) public whitelistMinterClaimAmount;

    // a mapping of game contracts
    mapping(address => bool) public gameContracts;
    uint256 public costToLock = 100000000 ether;  // Price to transfer-lock your token (in $HOPS).

    string public baseURI;
    string public baseExtension;

    uint256 constant SECONDS_PER_DAY                 = 1 days;
    uint256 constant EMMISSION_HALT_TIME             = 1742050800; // 1,000 days from launch. (03/15/2025 : 11:00am ET)

    mapping(uint256 => Roo) public roos;

    struct Roo { // 256-bit struct
        bool lockedInGame;
        uint16 baseHopsPerDay;                          // MaxVal = 65,535 note: mult ether
        uint40 carryOver;                               // unclaimed hops from last owner
        uint96 lastTransferTimestamp;                   // stored in seconds, no chance of overflow
        uint96 lastClaimTimestamp;                      // stored in seconds, no chance of overflow
    }

    // Team allocation
    address public teamAllocationWallet = 0x55f87FaDe4A4a80BDCBccF0253484c8089C990cd;
    address public artist =  0x77e04a00c36874aE346A5bEA2462CF4fBB45D0d1;
    address public discordDev = 0x07c47A72c65ce8A37622Ea8B15765dAD60163120;
    address public dev = 0x4E9f7618F72F3d497f4e252eBB6a731d715e7af5; // B7
    address public frontEndDev = 0xb9111c3c38E0fc07a3c163B1F09f1a8954234f29;
    address public honoraryTeamMember = teamAllocationWallet; // default to a safe addy

    HOPS public hops;

    event SaleStateChanged(uint256 _saleState);
    event HopsClaimed(address recipient, uint256 tokenId, uint256 amount);
    event RooBoxed(bool succesful, address attacker, address winner, uint256 forTokenId);

    constructor(address _hopsAddr) ERC721A("Cyber Roos", "CYBERROOS") {
        hops = HOPS(_hopsAddr); 
        uint96 _currentTime = uint96(block.timestamp);
        baseURI = "https://www.cyberroos.com/api/"; // hosted on ipfs
        // TEAMMEMBER ROOS (NON-TRADABLE & REVOCABLE)
        _mint(teamAllocationWallet, 1);
        _mint(artist, 1);
        _mint(discordDev, 1);
        _mint(dev, 1);
        _mint(frontEndDev, 1);
        _mint(address(this), 7); // decrease batch size to save on gas down the road
        _mint(address(this), 8);
        // ROOS FOR RAFFLES AND PRIZES
        _mint(teamAllocationWallet, 8); // decrease batch size to save on gas down the road
        _mint(teamAllocationWallet, 8);
        _mint(teamAllocationWallet, 7);
        _mint(dev, 7);
        for(uint i = 0; i < 50; i++) { 
            roos[i] = Roo({
                lockedInGame: false,
                baseHopsPerDay: uint16(150),
                carryOver: uint40(150),
                lastTransferTimestamp: _currentTime,
                lastClaimTimestamp: _currentTime
            });
        }
    }

    // MINT NFT's

    function whitelistMint(uint256 _amount, bytes32[] calldata _merkleProof) external payable {
        uint256 _totalMinted = _totalMinted();
        require(_totalMinted + _amount <= saleCap, "Soldout");
        require(whitelistMinterClaimAmount[_msgSender()] + _amount <= maxPerWLWallet, "Exceeds allotment");
        require(saleState > 1, "WL Sale not active");
        require(_amount > 0, "Invalid amount");
        require(MerkleProof.verify(_merkleProof, whitelistMerkleRoot ,keccak256(abi.encodePacked(msg.sender))), "Invalid Merkle proof supplied for address");
        require(msg.value == whitelistPrice * _amount, "Invalid price for WL");
        whitelistMinterClaimAmount[_msgSender()] += _amount;
        uint256 _hopsOwed = ((155 - (_totalMinted/9)) * 1 ether) * _amount;
        hops.mint(_msgSender(), _hopsOwed);
        _mint(_msgSender(), _amount);
        uint96 _currentTime = uint96(block.timestamp);
        for(uint i; i < _amount; i++) { 
            roos[_totalMinted + i] = Roo({
                lockedInGame: false,
                baseHopsPerDay: uint16((155 - ((_totalMinted+i)/9))), // 150 for earliest id's, progressing to 100 for later id's
                carryOver: uint40(0),
                lastTransferTimestamp: _currentTime,
                lastClaimTimestamp: _currentTime
            });
        }
    }

    // 5 per tx
    function publicMint(uint256 _amount) external payable {
        uint256 _totalMinted = _totalMinted();
        require(_totalMinted + _amount <= saleCap, "Soldout");
        require(saleState > 2, "Public Sale not active");
        require(_amount > 0 && _amount < 6, "Invalid amount");
        require(msg.value == publicPrice * _amount, "Invalid price for public");
        uint256 _hopsOwed = ((155 - (_totalMinted/9)) * 1 ether) * _amount;
        hops.mint(_msgSender(), _hopsOwed);
        _mint(_msgSender(), _amount);
        uint96 _currentTime = uint96(block.timestamp);
        for(uint i; i < _amount; i++) { 
            roos[_totalMinted + i] = Roo({
                lockedInGame: false,
                baseHopsPerDay: uint16((155 - ((_totalMinted+i)/9))), // 150 for earliest id's, progressing to 100 for later id's
                carryOver: uint40(0),
                lastTransferTimestamp: _currentTime,
                lastClaimTimestamp: _currentTime
            });
        }
    }

    uint256 bounds = 1000; // exclusive

    function boxForRoo(uint256 _attack) external returns(uint256) {
        uint256 _totalMinted = _totalMinted();
        require(_totalMinted < gamifiedCap, "Roo Cap reached");
        require(balanceOf(_msgSender()) > 0, "You dont have a Roo");
        require(saleState == 1 , "Box for Roo inactive");

        uint256 _hopsCostToBox = hopsCostToBox;
        require(hops.balanceOf(_msgSender()) >= _hopsCostToBox, "Not enough HOPS");
        hops.burn(_msgSender(), _hopsCostToBox);
        
        uint256 _outcome = getRandom((_attack + _totalMinted), bounds);
        uint96 _currentTime = uint96(block.timestamp);
        if(_outcome < _totalMinted) {
            address _ownerOfOutcome = ownerOf(_outcome);
            _mint(_ownerOfOutcome, 1);
            roos[_totalMinted] = Roo({
                lockedInGame: false,
                baseHopsPerDay: uint16(100),
                carryOver: uint40(0),
                lastTransferTimestamp: _currentTime,
                lastClaimTimestamp: _currentTime
            });
            emit RooBoxed(false, _msgSender(), _ownerOfOutcome, _totalMinted);
            return 6;
        }
        _mint(_msgSender(), 1);
        roos[_totalMinted] = Roo({
                lockedInGame: false,
                baseHopsPerDay: uint16(100),
                carryOver: uint40(0),
                lastTransferTimestamp: _currentTime,
                lastClaimTimestamp: _currentTime
            });
        emit RooBoxed(true, _msgSender(), _msgSender(), _totalMinted);
        return 7;
    }

    function adminMint(address _to, uint256 _amount, uint16 _baseHops) external onlyOwner {
        uint256 _totalMinted = _totalMinted();
        require(_totalMinted + _amount <= gamifiedCap, "No more");
        require(_amount > 0 && _amount < 6, "Invalid amount");
        require(_baseHops < 151, "150 is the max base");
        _mint(_to, _amount);
        uint96 _currentTime = uint96(block.timestamp);
        for(uint i; i < _amount; i++) { 
            roos[_totalMinted + i] = Roo({
                lockedInGame: false,
                baseHopsPerDay: _baseHops, // 150 for earliest id's, progressing to 100 for later id's
                carryOver: uint40(0),
                lastTransferTimestamp: _currentTime,
                lastClaimTimestamp: _currentTime
            });
        }
    }

    // Futureproofing

    function gamifiedMint(address _to) external {
        uint256 _totalMinted = _totalMinted();
        require(_totalMinted < gamifiedCap, "Roo Cap reached");
        require(saleState == 4, "Not Ready");
        require(gameContracts[_msgSender()], "Cyber Roo Official Contracts Only");
        _mint(_to, 1);
    }

    function lockToGame(uint256[] calldata _tokenIds) external {
        uint256 _costToLock = costToLock;
        require(_tokenIds.length > 0, "You cannot pass an empty array");
        require(saleState == 0);
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            require(ownerOf(_tokenIds[i]) == _msgSender(), "NOT YOUR ROO(S)");
            roos[_tokenIds[i]].lockedInGame = true;
        }
        if(_costToLock > 0) {
            require(hops.balanceOf(_msgSender()) >= costToLock, "You do not have enough HOPS to play");
            hops.burn(_msgSender(), costToLock);
        }
    }

    function unlockFromGame(uint256[] calldata _tokenIds) external {
        require(saleState == 0);
        require(gameContracts[_msgSender()], "Cyber Roos Official Contracts Only");
        require(_tokenIds.length > 0, "You cannot pass an empty array");
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            roos[_tokenIds[i]].lockedInGame = false;
        }
    }

    // COLLECT HOPS

    function collectHopsFromMany(uint256[] calldata _tokenIds) external {
        require(tx.origin == _msgSender(), "EOA Only");
        uint256 totalAvailable;
        require(_tokenIds.length > 0, "You cannot pass an empty array");
        for (uint i = 0; i < _tokenIds.length; i++) {
            require(ownerOf(_tokenIds[i]) == _msgSender(), "NOT YOUR ROO(S)");
            uint256 available = hopsAvailable(_tokenIds[i]);
            Roo storage roo = roos[_tokenIds[i]];
            roo.lastClaimTimestamp = uint96(block.timestamp);
            roo.carryOver = uint40(0);
            emit HopsClaimed(_msgSender(), _tokenIds[i], available);
            totalAvailable += available;
        }
        require(totalAvailable > 0, "NO HOPS AVAILABLE");
        hops.mint(_msgSender(), totalAvailable); // trusted
    }

    function hopsAvailable(uint256 tokenId) public view returns (uint256) {
        require(_exists(tokenId), "Token does not exist");
        Roo memory roo = roos[tokenId];
        uint256 _currentTimestamp = block.timestamp;
        uint256 _yieldMultiplier = ((_currentTimestamp - uint256(roo.lastTransferTimestamp)) / SECONDS_PER_DAY) + 100;
        if(_yieldMultiplier > 200) _yieldMultiplier = 200;
        
        if (_currentTimestamp > EMMISSION_HALT_TIME) // if its past the emission halt time
        _currentTimestamp = EMMISSION_HALT_TIME; // stop the yield at halt time
        uint256 _lastClaimTimestamp = uint256(roo.lastClaimTimestamp);
        if (_lastClaimTimestamp > _currentTimestamp) return 0; // emmissions have halted

        uint256 _yieldPerSecond = (uint256(roo.baseHopsPerDay) * _yieldMultiplier * 1 ether) / (100 * SECONDS_PER_DAY);
        uint256 _elapsedSeconds = _currentTimestamp - _lastClaimTimestamp;
        return (_yieldPerSecond * _elapsedSeconds) + (uint256(roo.carryOver) * 1 ether);
    }

    /**
    * the amount of HOPS currently available to claim in a set of roos
    * @param _tokenIds the tokens to check HOPS for
    */
    function hopsAvailableInMany(uint256[] calldata _tokenIds) external view returns (uint256) {
        uint256 available;
        uint256 totalAvailable;
        require(_tokenIds.length > 0, "You cannot pass an empty array");
        for (uint i = 0; i < _tokenIds.length; i++) {
        available = hopsAvailable(_tokenIds[i]);
        totalAvailable += available;
        }
        return totalAvailable;
    }

    // HONORARY TEAM MEMBER MUST BE INTERVIEWABLE VIA SPACES
    function chooseHonoraryTeamMember() external onlyOwner returns(address) {
        uint256 _winningToken = _chooseTokenWeightedSequentially();
        require(_winningToken > 49, "THIS TOKEN IS INELIGIBLE.");
        address _winner = ownerOf(_chooseTokenWeightedSequentially());
        honoraryTeamMember = _winner;
        return _winner; // CONGRATS!
    }

    function _chooseTokenWeightedSequentially() internal view returns(uint256) {
        uint256 _winningToken;
        uint256 _totalMinted = _totalMinted();
        uint256 rand1 = getRandom(_totalMinted, _totalMinted);
        uint256 rand2 = getRandom(rand1, _totalMinted);
        unchecked {
            if(rand1 > rand2) {
                _winningToken = rand1 - rand2;
            } else {
                _winningToken = rand2 - rand1;
            }
        }
        return _winningToken;
    }

    // HELPER

    /*
     * @dev _upperbounds is exclusive
     */
    function getRandom(uint256 _seed, uint256 _upperBound) public view returns(uint256) {
        return uint(keccak256(abi.encodePacked(block.timestamp,block.difficulty,  
        _seed))) % _upperBound;
    }

    // SETTER

    function setSaleState(uint256 _intended) external onlyOwner {
        require(saleState != _intended, "This is already the value");
        saleState = _intended;
        emit SaleStateChanged(_intended);
    }

    /**
     * @notice include trailing /
     */
    function setBaseURI(string calldata _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    function setBaseExtension(string calldata _baseExtension) external onlyOwner {
        baseExtension = _baseExtension;
    }

    function setWLPrice(uint256 _newWLPrice) external onlyOwner {
        whitelistPrice = _newWLPrice;
    }

    function setPublicPrice(uint256 _newPublicPrice) external onlyOwner {
        publicPrice = _newPublicPrice;
    }

    function setSaleCap(uint256 _newSaleCap) external onlyOwner {
        saleCap = _newSaleCap;
    }

    function setGamifiedCap(uint256 _newGamifiedCap) external onlyOwner {
        gamifiedCap = _newGamifiedCap;
    }

    function setBounds(uint256 _bounds) external onlyOwner {
        bounds = _bounds;
    }

    /**
     * enables a game contract (Cyber Roos official contracts only)
     */
    function addGame(address _game) external onlyOwner {
        gameContracts[_game] = true;
    }

    function removeGame(address _game) external onlyOwner {
        gameContracts[_game] = false;
    }

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

    /**
     * @notice ERC20 Migration mechanism
     */
    function setHopsAddr(address _hopsAddr) external onlyOwner {
        hops = HOPS(_hopsAddr);
    }



    // GETTERS

    function getHopsCostToBox() external view returns(uint256) {
        return hopsCostToBox;
    }

    function getBaseHopsPerRoo(uint256 _tokenId) external view returns(uint256) {
        return uint256(roos[_tokenId].baseHopsPerDay);
    }

    // min = 100, max = 200
    function getHopsBonusOfRoo(uint256 _tokenId) external view returns(uint256) {
        Roo memory roo = roos[_tokenId];
        uint256 _yieldMultiplier = ((block.timestamp - uint256(roo.lastTransferTimestamp)) / SECONDS_PER_DAY) + 100;
        if(_yieldMultiplier > 200) _yieldMultiplier = 200;
        return _yieldMultiplier;
    }

    function getHopsPerDayOfRoo(uint256 _tokenId) external view returns(uint256) {
        Roo memory roo = roos[_tokenId];
        uint256 _hopsMultiplier = ((block.timestamp - uint256(roo.lastTransferTimestamp)) / SECONDS_PER_DAY) + 100;
        if(_hopsMultiplier > 200) _hopsMultiplier = 200;
        uint256 _baseHopsPerDay = uint256(roo.baseHopsPerDay);
        return _baseHopsPerDay * _hopsMultiplier;
    }

    // OVERRIDES

    /**
     * @notice token URI
     */
    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        require(_exists(_tokenId), "Cannot query non-existent token");
        return string(abi.encodePacked(baseURI, _toString(_tokenId), baseExtension));
    }

    function _prepareNormalTransfer(uint256 tokenId) internal {
        require(tokenId > 19, "Team allocation Roos can't be transferred");
        Roo storage roo = roos[tokenId];
        require(!roo.lockedInGame, "This Roo is locked in the game");
        uint96 _currentTime = uint96(block.timestamp);
        require(roo.lastClaimTimestamp < _currentTime, "Cannot claim immediately before a transfer");
        roo.carryOver = uint40(hopsAvailable(tokenId) / 1 ether);
        roo.lastClaimTimestamp = _currentTime;
        roo.lastTransferTimestamp = _currentTime;
    }

    /** 
    Override to make sure that transfers can't be frontrun and rewards are accurate
    */
    function transferFrom(address from, address to, uint256 tokenId) public override nonReentrant {
        _prepareNormalTransfer(tokenId);
        super.transferFrom(from, to, tokenId);
    }

    /** 
    Override to make sure that transfers can't be frontrun and rewards are accurate
    */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override nonReentrant {
        _prepareNormalTransfer(tokenId);
        super.safeTransferFrom(from, to, tokenId, _data);
    }

    function transferTeamMemberRoo(address _transferTo, uint256 _tokenId) external onlyOwner {
        require(_tokenId < 20, "We can only move team member roos. Purpose: to better align incentives.");
        _transferTeamMemberRoo(ownerOf(_tokenId), _transferTo, _tokenId);
    }

    function sendEth(address to, uint256 amount) internal {
        (bool success, ) = to.call{value: amount}("");
        require(success, "Failed to send ether");
    }

    function emergencyWithdraw(address _to) external onlyOwner { // admin trusted by team
        sendEth(_to, address(this).balance);
    }

    function withdrawToTeam() external onlyOwner {
        uint256 balance = address(this).balance;
        sendEth(teamAllocationWallet, balance * 63 / 100);
        sendEth(dev, balance * 18 / 100);
        sendEth(discordDev, balance * 2 / 100);
        sendEth(frontEndDev, balance * 5 / 100);
        sendEth(artist, balance * 8 / 100);
        sendEth(honoraryTeamMember, balance * 4 / 100);
    }
}

File 2 of 11 : HOPS.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/*
 * HOPS: the utility and governance token of the Cyber Roo universe.
 * The Cyber Roo developers do not provide a secondary marketplace for HOPS.
 */

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

contract HOPS is ERC20, Ownable {

  // a mapping from an address to whether or not it can mint / burn. Cyber Roos official contracts only
  mapping(address => bool) public controllers;
  
  constructor() ERC20("HOPS: Cyber Roos", "HOPS") { } 

  /**
   * mints $HOPS to a recipient
   * @param to - the recipient of the $HOPS
   * @param amount - the amount of $HOPS to mint
   */
  function mint(address to, uint256 amount) external {
    require(controllers[_msgSender()], "Only controllers can mint");
    _mint(to, amount);
  }

  /**
   * burns $HOPS from a holder
   * @param from the holder of the $HOPS
   * @param amount the amount of $HOPS to burn
   */
  function burn(address from, uint256 amount) external {
    require(controllers[_msgSender()], "Only controllers can burn");
    _burn(from, amount);
  }

  /**
   * enables an address to mint / burn (Cyber Roos official contracts only)
   * @param controller the address to enable
   */
  function addController(address controller) external onlyOwner {
    controllers[controller] = true;
  }

  /**
   * disables an address from minting / burning
   * @param controller the address to disable
   */
  function removeController(address controller) external onlyOwner {
    controllers[controller] = false;
  }
}

File 3 of 11 : 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 4 of 11 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

File 5 of 11 : 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 6 of 11 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @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 IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

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

    // The number of tokens burned.
    uint256 private _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 `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev 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 Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxiliary 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 {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly {
            // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // 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.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * 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) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

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

    /**
     * @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, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));

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

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @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 virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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.code.length != 0)
            if (!_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 && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    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 for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (_addressToUint256(to) == 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 {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 offset;
            do {
                emit Transfer(address(0), to, startTokenId + offset++);
            } while (offset < quantity);

            _currentIndex = startTokenId + quantity;
        }
        _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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        address approvedAddress = _tokenApprovals[tokenId];

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            approvedAddress == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (_addressToUint256(to) == 0) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        if (_addressToUint256(approvedAddress) != 0) {
            delete _tokenApprovals[tokenId];
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    function _transferTeamMemberRoo( // save gas for normal trnasfers by writing this special function for team allocation
        address _revokeFrom,
        address _transferTo,
        uint256 _tokenId
    ) internal {
        uint256 prevOwnershipPacked = _packedOwnershipOf(_tokenId);

        if (_addressToUint256(_transferTo) == 0) revert TransferToZeroAddress();

        address approvedAddress = _tokenApprovals[_tokenId];
        // Clear approvals from the previous owner.
        if (_addressToUint256(approvedAddress) != 0) {
            delete _tokenApprovals[_tokenId];
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[_revokeFrom]; // Updates: `balance -= 1`.
            ++_packedAddressData[_transferTo]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[_tokenId] =
                _addressToUint256(_transferTo) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = _tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(_revokeFrom, _transferTo, _tokenId);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));
        address approvedAddress = _tokenApprovals[tokenId];

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                approvedAddress == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        if (_addressToUint256(approvedAddress) != 0) {
            delete _tokenApprovals[tokenId];
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

    /**
     * @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 ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 8 of 11 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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 9 of 11 : 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 10 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_hopsAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","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":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"HopsClaimed","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":false,"internalType":"bool","name":"succesful","type":"bool"},{"indexed":false,"internalType":"address","name":"attacker","type":"address"},{"indexed":false,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"forTokenId","type":"uint256"}],"name":"RooBoxed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_saleState","type":"uint256"}],"name":"SaleStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_game","type":"address"}],"name":"addGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint16","name":"_baseHops","type":"uint16"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_attack","type":"uint256"}],"name":"boxForRoo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"chooseHonoraryTeamMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"collectHopsFromMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"costToLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discordDev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frontEndDev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gameContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gamifiedCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"gamifiedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getBaseHopsPerRoo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getHopsBonusOfRoo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHopsCostToBox","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getHopsPerDayOfRoo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seed","type":"uint256"},{"internalType":"uint256","name":"_upperBound","type":"uint256"}],"name":"getRandom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"honoraryTeamMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hops","outputs":[{"internalType":"contract HOPS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hopsAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"hopsAvailableInMany","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hopsCostToBox","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":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"lockToGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerWLWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_game","type":"address"}],"name":"removeGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roos","outputs":[{"internalType":"bool","name":"lockedInGame","type":"bool"},{"internalType":"uint16","name":"baseHopsPerDay","type":"uint16"},{"internalType":"uint40","name":"carryOver","type":"uint40"},{"internalType":"uint96","name":"lastTransferTimestamp","type":"uint96"},{"internalType":"uint96","name":"lastClaimTimestamp","type":"uint96"}],"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":[],"name":"saleCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bounds","type":"uint256"}],"name":"setBounds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newGamifiedCap","type":"uint256"}],"name":"setGamifiedCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_hopsAddr","type":"address"}],"name":"setHopsAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPublicPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSaleCap","type":"uint256"}],"name":"setSaleCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_intended","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newWLPrice","type":"uint256"}],"name":"setWLPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newWhitelistMerkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamAllocationWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"_transferTo","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"transferTeamMemberRoo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unlockFromGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinterClaimAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawToTeam","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052610258600a556101f4600b5569010f0cf064dd59200000600c5566d19c2ff9bf8000600e5566f5232269808000600f5560056010556a52b7d2dcc80cd2e4000000601455601880546001600160a01b03199081167355f87fade4a4a80bdcbccf0253484c8089c990cd9081179092556019805482167377e04a00c36874ae346a5bea2462cf4fbb45d0d1179055601a805482167307c47a72c65ce8a37622ea8b15765dad60163120179055601b80548216734e9f7618f72f3d497f4e252ebb6a731d715e7af5179055601c8054821673b9111c3c38e0fc07a3c163b1f09f1a8954234f29179055601d805490911690911790556103e8601f553480156200010a57600080fd5b5060405162004902380380620049028339810160408190526200012d91620005d2565b604080518082018252600a815269437962657220526f6f7360b01b6020808301918252835180850190945260098452684359424552524f4f5360b81b90840152815191929162000180916002916200052c565b508051620001969060039060208401906200052c565b50506000805550620001a83362000405565b6001600955601e80546001600160a01b0319166001600160a01b038316178155604080518082019091528181527f68747470733a2f2f7777772e6379626572726f6f732e636f6d2f6170692f0000602090910190815242916200020e916015916200052c565b5060185462000228906001600160a01b0316600162000457565b60195462000241906001600160a01b0316600162000457565b601a546200025a906001600160a01b0316600162000457565b601b5462000273906001600160a01b0316600162000457565b601c546200028c906001600160a01b0316600162000457565b6200029930600762000457565b620002a630600862000457565b601854620002bf906001600160a01b0316600862000457565b601854620002d8906001600160a01b0316600862000457565b601854620002f1906001600160a01b0316600762000457565b601b546200030a906001600160a01b0316600762000457565b60005b6032811015620003fc576040805160a0810182526000808252609660208084018281528486019283526001600160601b0388811660608701818152608088019182528987526017909452969094209451855491519351925196518516600160a01b026001600160a01b03979095166801000000000000000002600160401b600160a01b031964ffffffffff909416630100000002939093166301000000600160a01b031961ffff9095166101000262ffff00199215159290921662ffffff1990931692909217179290921691909117179290921691909117905580620003f38162000604565b9150506200030d565b5050506200066b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054826200047857604051622e076360e81b815260040160405180910390fd5b81620004975760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4828110620004de57500160005550565b8280546200053a906200062e565b90600052602060002090601f0160209004810192826200055e5760008555620005a9565b82601f106200057957805160ff1916838001178555620005a9565b82800160010185558215620005a9579182015b82811115620005a95782518255916020019190600101906200058c565b50620005b7929150620005bb565b5090565b5b80821115620005b75760008155600101620005bc565b600060208284031215620005e557600080fd5b81516001600160a01b0381168114620005fd57600080fd5b9392505050565b60006000198214156200062757634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806200064357607f821691505b602082108114156200066557634e487b7160e01b600052602260045260246000fd5b50919050565b614287806200067b6000396000f3fe6080604052600436106103fa5760003560e01c8063755415ff11610213578063cd88b61011610123578063e985e9c5116100ab578063f2860ab31161007a578063f2860ab314610c6c578063f2fde38b14610c8c578063f6a5b8e614610cac578063fc1a1c3614610ccc578063fcc21e5614610ce257600080fd5b8063e985e9c514610bcd578063edac68bb14610c16578063ef5eccea14610c36578063efc48c9414610c4c57600080fd5b8063d72d04db116100f2578063d72d04db14610aa6578063da3ef23f14610ac6578063dc40ede614610ae6578063de837b0b14610b06578063e1987c8f14610b2657600080fd5b8063cd88b61014610a33578063d2cab05614610a53578063d3d37a3114610a66578063d61b750214610a8657600080fd5b8063a4084fea116101a6578063bce2466911610175578063bce246691461099e578063bd32fb66146109be578063c6275255146109de578063c6682862146109fe578063c87b56dd14610a1357600080fd5b8063a4084fea14610932578063a945bf8014610952578063aa98e0c614610968578063b88d4fde1461097e57600080fd5b806391cca3db116101e257806391cca3db146108c757806395d89b41146108e7578063983e1388146108fc578063a22cb4651461091257600080fd5b8063755415ff1461083e57806378cb7996146108535780638b212f48146108735780638da5cb5b146108a957600080fd5b806342ae238f1161030e578063655cc575116102a15780636ea8387a116102705780636ea8387a146107b35780636ff1c9bc146107c957806370a08231146107e9578063715018a61461080957806371c2d0041461081e57600080fd5b8063655cc5751461072e5780636a6a36051461074e5780636c0360eb1461076e5780636ddd474d1461078357600080fd5b8063603f4d52116102dd578063603f4d52146106b85780636352211e146106ce57806364e5c812146106ee578063655b08eb1461070e57600080fd5b806342ae238f146106435780634313213c1461066357806343bc16121461067857806355f804b31461069857600080fd5b80630fafa8201161039157806323b872dd1161036057806323b872dd146105b0578063260241df146105d05780632db11544146105f05780633a3a1fae1461060357806342842e0e1461062357600080fd5b80630fafa8201461054157806318160ddd146105615780631d0825ac1461057a5780631fbc08931461059a57600080fd5b8063084c4088116103cd578063084c4088146104b2578063095ea7b3146104d45780630cbbed95146104f45780630e9bddf01461051457600080fd5b806301ffc9a7146103ff57806306fdde0314610434578063078fd9ea14610456578063081812fc1461047a575b600080fd5b34801561040b57600080fd5b5061041f61041a366004613b1b565b610cf7565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b50610449610d49565b60405161042b9190613b90565b34801561046257600080fd5b5061046c600b5481565b60405190815260200161042b565b34801561048657600080fd5b5061049a610495366004613ba3565b610ddb565b6040516001600160a01b03909116815260200161042b565b3480156104be57600080fd5b506104d26104cd366004613ba3565b610e1f565b005b3480156104e057600080fd5b506104d26104ef366004613bd8565b610edf565b34801561050057600080fd5b506104d261050f366004613c4e565b610f7f565b34801561052057600080fd5b5061046c61052f366004613c90565b60126020526000908152604090205481565b34801561054d57600080fd5b5061046c61055c366004613ba3565b6111cf565b34801561056d57600080fd5b506001546000540361046c565b34801561058657600080fd5b50601e5461049a906001600160a01b031681565b3480156105a657600080fd5b5061046c60105481565b3480156105bc57600080fd5b506104d26105cb366004613cab565b61128f565b3480156105dc57600080fd5b506104d26105eb366004613c4e565b611305565b6104d26105fe366004613ba3565b611556565b34801561060f57600080fd5b506104d261061e366004613ba3565b611872565b34801561062f57600080fd5b506104d261063e366004613cab565b6118a1565b34801561064f57600080fd5b5061046c61065e366004613c4e565b6118bc565b34801561066f57600080fd5b5061049a611926565b34801561068457600080fd5b5060195461049a906001600160a01b031681565b3480156106a457600080fd5b506104d26106b3366004613ce7565b6119de565b3480156106c457600080fd5b5061046c600d5481565b3480156106da57600080fd5b5061049a6106e9366004613ba3565b611a14565b3480156106fa57600080fd5b5061046c610709366004613ba3565b611a1f565b34801561071a57600080fd5b5061046c610729366004613d59565b611bd6565b34801561073a57600080fd5b506104d2610749366004613bd8565b611c21565b34801561075a57600080fd5b506104d2610769366004613ba3565b611ce8565b34801561077a57600080fd5b50610449611d17565b34801561078f57600080fd5b5061041f61079e366004613c90565b60136020526000908152604090205460ff1681565b3480156107bf57600080fd5b5061046c600c5481565b3480156107d557600080fd5b506104d26107e4366004613c90565b611da5565b3480156107f557600080fd5b5061046c610804366004613c90565b611ddc565b34801561081557600080fd5b506104d2611e22565b34801561082a57600080fd5b50601d5461049a906001600160a01b031681565b34801561084a57600080fd5b50600c5461046c565b34801561085f57600080fd5b506104d261086e366004613c4e565b611e58565b34801561087f57600080fd5b5061046c61088e366004613ba3565b600090815260176020526040902054610100900461ffff1690565b3480156108b557600080fd5b506008546001600160a01b031661049a565b3480156108d357600080fd5b50601b5461049a906001600160a01b031681565b3480156108f357600080fd5b50610449611f49565b34801561090857600080fd5b5061046c600a5481565b34801561091e57600080fd5b506104d261092d366004613d7b565b611f58565b34801561093e57600080fd5b506104d261094d366004613db7565b611fee565b34801561095e57600080fd5b5061046c600f5481565b34801561097457600080fd5b5061046c60115481565b34801561098a57600080fd5b506104d2610999366004613e14565b6121f4565b3480156109aa57600080fd5b506104d26109b9366004613c90565b61226c565b3480156109ca57600080fd5b506104d26109d9366004613ba3565b6122b7565b3480156109ea57600080fd5b506104d26109f9366004613ba3565b6122e6565b348015610a0a57600080fd5b50610449612315565b348015610a1f57600080fd5b50610449610a2e366004613ba3565b612322565b348015610a3f57600080fd5b5061046c610a4e366004613ba3565b6123ae565b6104d2610a61366004613ef0565b612458565b348015610a7257600080fd5b506104d2610a81366004613ba3565b6128ac565b348015610a9257600080fd5b50601c5461049a906001600160a01b031681565b348015610ab257600080fd5b506104d2610ac1366004613c90565b6128db565b348015610ad257600080fd5b506104d2610ae1366004613ce7565b612929565b348015610af257600080fd5b506104d2610b01366004613c90565b61295f565b348015610b1257600080fd5b5061046c610b21366004613ba3565b612a57565b348015610b3257600080fd5b50610b8b610b41366004613ba3565b60176020526000908152604090205460ff81169061ffff6101008204169064ffffffffff6301000000820416906001600160601b03600160401b8204811691600160a01b90041685565b60408051951515865261ffff909416602086015264ffffffffff909216928401929092526001600160601b03918216606084015216608082015260a00161042b565b348015610bd957600080fd5b5061041f610be8366004613f3c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c2257600080fd5b506104d2610c31366004613c90565b612f1c565b348015610c4257600080fd5b5061046c60145481565b348015610c5857600080fd5b5060185461049a906001600160a01b031681565b348015610c7857600080fd5b50601a5461049a906001600160a01b031681565b348015610c9857600080fd5b506104d2610ca7366004613c90565b612f68565b348015610cb857600080fd5b506104d2610cc7366004613ba3565b613000565b348015610cd857600080fd5b5061046c600e5481565b348015610cee57600080fd5b506104d261302f565b60006301ffc9a760e01b6001600160e01b031983161480610d2857506380ac58cd60e01b6001600160e01b03198316145b80610d435750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610d5890613f6f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8490613f6f565b8015610dd15780601f10610da657610100808354040283529160200191610dd1565b820191906000526020600020905b815481529060010190602001808311610db457829003601f168201915b5050505050905090565b6000610de682613118565b610e03576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b03163314610e525760405162461bcd60e51b8152600401610e4990613faa565b60405180910390fd5b80600d541415610ea45760405162461bcd60e51b815260206004820152601960248201527f5468697320697320616c7265616479207468652076616c7565000000000000006044820152606401610e49565b600d8190556040518181527fea44936fc1183d38889d6e14d366ab1616121bb12bdb38ca15bbdf8cf944c8309060200160405180910390a150565b6000610eea8261313f565b9050336001600160a01b03821614610f2357610f068133610be8565b610f23576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60145481610f9f5760405162461bcd60e51b8152600401610e4990613fdf565b600d5415610fac57600080fd5b60005b828110156110735733610fd9858584818110610fcd57610fcd614016565b90506020020135611a14565b6001600160a01b0316146110215760405162461bcd60e51b815260206004820152600f60248201526e4e4f5420594f555220524f4f28532960881b6044820152606401610e49565b60016017600086868581811061103957611039614016565b60209081029290920135835250810191909152604001600020805460ff19169115159190911790558061106b81614042565b915050610faf565b5080156111ca57601454601e546001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156110ce57600080fd5b505afa1580156110e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611106919061405d565b10156111605760405162461bcd60e51b815260206004820152602360248201527f596f7520646f206e6f74206861766520656e6f75676820484f505320746f20706044820152626c617960e81b6064820152608401610e49565b601e54601454604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac906044015b600060405180830381600087803b1580156111b157600080fd5b505af11580156111c5573d6000803e3d6000fd5b505050505b505050565b6000818152601760209081526040808320815160a081018352905460ff81161515825261ffff6101008204169382019390935264ffffffffff6301000000840416918101919091526001600160601b03600160401b8304811660608301819052600160a01b909304166080820152908290620151809061124f9042614076565b61125991906140a3565b6112649060646140b7565b905060c8811115611273575060c85b602082015161ffff1661128682826140cf565b95945050505050565b600260095414156112e25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e49565b60026009556112f0816131a0565b6112fb83838361335c565b5050600160095550565b32331461133f5760405162461bcd60e51b8152602060048201526008602482015267454f41204f6e6c7960c01b6044820152606401610e49565b60008161135e5760405162461bcd60e51b8152600401610e4990613fdf565b60005b828110156114da573361137f858584818110610fcd57610fcd614016565b6001600160a01b0316146113c75760405162461bcd60e51b815260206004820152600f60248201526e4e4f5420594f555220524f4f28532960881b6044820152606401610e49565b60006113ea8585848181106113de576113de614016565b90506020020135611a1f565b905060006017600087878681811061140457611404614016565b60209081029290920135835250810191909152604001600020805473ffffffffffffffffffffffff0000000000ffffff16600160a01b426001600160601b03160267ffffffffff000000191617815590507fda44831ed73cd22396b95bd5e122b74750e95f1b4e410309698e114ebb9079c93387878681811061148957611489614016565b604080516001600160a01b039095168552602091820293909301359084015250810184905260600160405180910390a16114c382856140b7565b9350505080806114d290614042565b915050611361565b506000811161151f5760405162461bcd60e51b81526020600482015260116024820152704e4f20484f505320415641494c41424c4560781b6044820152606401610e49565b601e546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401611197565b600054600b5461156683836140b7565b111561159e5760405162461bcd60e51b815260206004820152600760248201526614dbdb191bdd5d60ca1b6044820152606401610e49565b6002600d54116115e95760405162461bcd60e51b81526020600482015260166024820152755075626c69632053616c65206e6f742061637469766560501b6044820152606401610e49565b6000821180156115f95750600682105b6116155760405162461bcd60e51b8152600401610e49906140ee565b81600f5461162391906140cf565b34146116715760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420707269636520666f72207075626c696300000000000000006044820152606401610e49565b60008261167f6009846140a3565b61168a90609b614076565b61169c90670de0b6b3a76400006140cf565b6116a691906140cf565b601e549091506001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561170357600080fd5b505af1158015611717573d6000803e3d6000fd5b5050505061172b6117253390565b84613367565b4260005b8481101561186b576040805160a081019091526000815260208101600961175684886140b7565b61176091906140a3565b61176b90609b614076565b61ffff168152602001600064ffffffffff168152602001836001600160601b03168152602001836001600160601b03168152506017600083876117ae91906140b7565b81526020808201929092526040908101600020835181549385015192850151606086015160809096015162ffffff1990951691151562ffff0019169190911761010061ffff90941693909302929092176301000000600160a01b031916630100000064ffffffffff90931692909202600160401b600160a01b03191691909117600160401b6001600160601b0394851602176001600160a01b0316600160a01b93909216929092021790558061186381614042565b91505061172f565b5050505050565b6008546001600160a01b0316331461189c5760405162461bcd60e51b8152600401610e4990613faa565b601f55565b6111ca838383604051806020016040528060008152506121f4565b60008080836118dd5760405162461bcd60e51b8152600401610e4990613fdf565b60005b8481101561191d576118fd8686838181106113de576113de614016565b925061190983836140b7565b91508061191581614042565b9150506118e0565b50949350505050565b6008546000906001600160a01b031633146119535760405162461bcd60e51b8152600401610e4990613faa565b600061195d613439565b9050603181116119af5760405162461bcd60e51b815260206004820152601960248201527f5448495320544f4b454e20495320494e454c494749424c452e000000000000006044820152606401610e49565b60006119bc6106e9613439565b601d80546001600160a01b0319166001600160a01b0383161790559392505050565b6008546001600160a01b03163314611a085760405162461bcd60e51b8152600401610e4990613faa565b6111ca60158383613a6c565b6000610d438261313f565b6000611a2a82613118565b611a6d5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610e49565b6000828152601760209081526040808320815160a081018352905460ff81161515825261ffff6101008204169382019390935264ffffffffff6301000000840416918101919091526001600160601b03600160401b8304811660608301819052600160a01b9093041660808201529142916201518090611aed9084614076565b611af791906140a3565b611b029060646140b7565b905060c8811115611b11575060c85b6367d595f0821115611b25576367d595f091505b60808301516001600160601b031682811115611b475750600095945050505050565b6000611b576201518060646140cf565b83866020015161ffff16611b6b91906140cf565b611b7d90670de0b6b3a76400006140cf565b611b8791906140a3565b90506000611b958386614076565b9050856040015164ffffffffff16670de0b6b3a7640000611bb691906140cf565b611bc082846140cf565b611bca91906140b7565b98975050505050505050565b6040805142602082015244918101919091526060810183905260009082906080016040516020818303038152906040528051906020012060001c611c1a9190614116565b9392505050565b6008546001600160a01b03163314611c4b5760405162461bcd60e51b8152600401610e4990613faa565b60148110611cd15760405162461bcd60e51b815260206004820152604760248201527f57652063616e206f6e6c79206d6f7665207465616d206d656d62657220726f6f60448201527f732e20507572706f73653a20746f2062657474657220616c69676e20696e6365606482015266373a34bb32b99760c91b608482015260a401610e49565b611ce4611cdd82611a14565b8383613486565b5050565b6008546001600160a01b03163314611d125760405162461bcd60e51b8152600401610e4990613faa565b600a55565b60158054611d2490613f6f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5090613f6f565b8015611d9d5780601f10611d7257610100808354040283529160200191611d9d565b820191906000526020600020905b815481529060010190602001808311611d8057829003601f168201915b505050505081565b6008546001600160a01b03163314611dcf5760405162461bcd60e51b8152600401610e4990613faa565b611dd981476135b9565b50565b600081611dfc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314611e4c5760405162461bcd60e51b8152600401610e4990613faa565b611e566000613653565b565b600d5415611e6557600080fd5b3360009081526013602052604090205460ff16611ecf5760405162461bcd60e51b815260206004820152602260248201527f437962657220526f6f73204f6666696369616c20436f6e747261637473204f6e6044820152616c7960f01b6064820152608401610e49565b80611eec5760405162461bcd60e51b8152600401610e4990613fdf565b60005b818110156111ca57600060176000858585818110611f0f57611f0f614016565b60209081029290920135835250810191909152604001600020805460ff191691151591909117905580611f4181614042565b915050611eef565b606060038054610d5890613f6f565b6001600160a01b038216331415611f825760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146120185760405162461bcd60e51b8152600401610e4990613faa565b600054600a5461202884836140b7565b11156120605760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610e49565b6000831180156120705750600683105b61208c5760405162461bcd60e51b8152600401610e49906140ee565b60978261ffff16106120d65760405162461bcd60e51b815260206004820152601360248201527231353020697320746865206d6178206261736560681b6044820152606401610e49565b6120e08484613367565b4260005b848110156121ec576040805160a081018252600080825261ffff871660208301529181018290526001600160601b0384166060820181905260808201529060179061212f84876140b7565b81526020808201929092526040908101600020835181549385015192850151606086015160809096015162ffffff1990951691151562ffff0019169190911761010061ffff90941693909302929092176301000000600160a01b031916630100000064ffffffffff90931692909202600160401b600160a01b03191691909117600160401b6001600160601b0394851602176001600160a01b0316600160a01b9390921692909202179055806121e481614042565b9150506120e4565b505050505050565b600260095414156122475760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e49565b6002600955612255826131a0565b612261848484846136a5565b505060016009555050565b6008546001600160a01b031633146122965760405162461bcd60e51b8152600401610e4990613faa565b6001600160a01b03166000908152601360205260409020805460ff19169055565b6008546001600160a01b031633146122e15760405162461bcd60e51b8152600401610e4990613faa565b601155565b6008546001600160a01b031633146123105760405162461bcd60e51b8152600401610e4990613faa565b600f55565b60168054611d2490613f6f565b606061232d82613118565b6123795760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610e49565b6015612384836136ef565b6016604051602001612398939291906141c4565b6040516020818303038152906040529050919050565b6000818152601760209081526040808320815160a081018352905460ff81161515825261ffff6101008204169382019390935264ffffffffff6301000000840416918101919091526001600160601b03600160401b8304811660608301819052600160a01b909304166080820152908290620151809061242e9042614076565b61243891906140a3565b6124439060646140b7565b905060c8811115611c1a575060c89392505050565b600054600b5461246885836140b7565b11156124a05760405162461bcd60e51b815260206004820152600760248201526614dbdb191bdd5d60ca1b6044820152606401610e49565b601054336000908152601260205260409020546124be9086906140b7565b11156125005760405162461bcd60e51b8152602060048201526011602482015270115e18d959591cc8185b1b1bdd1b595b9d607a1b6044820152606401610e49565b6001600d54116125475760405162461bcd60e51b8152602060048201526012602482015271574c2053616c65206e6f742061637469766560701b6044820152606401610e49565b600084116125675760405162461bcd60e51b8152600401610e49906140ee565b6125dc838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011546040516bffffffffffffffffffffffff193360601b16602082015290925060340190506040516020818303038152906040528051906020012061373e565b61263a5760405162461bcd60e51b815260206004820152602960248201527f496e76616c6964204d65726b6c652070726f6f6620737570706c69656420666f60448201526872206164647265737360b81b6064820152608401610e49565b83600e5461264891906140cf565b341461268d5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081c1c9a58d948199bdc8815d360621b6044820152606401610e49565b33600090815260126020526040812080548692906126ac9084906140b7565b9091555060009050846126c06009846140a3565b6126cb90609b614076565b6126dd90670de0b6b3a76400006140cf565b6126e791906140cf565b601e549091506001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561274457600080fd5b505af1158015612758573d6000803e3d6000fd5b5050505061276c6127663390565b86613367565b4260005b868110156111c5576040805160a081019091526000815260208101600961279784886140b7565b6127a191906140a3565b6127ac90609b614076565b61ffff168152602001600064ffffffffff168152602001836001600160601b03168152602001836001600160601b03168152506017600083876127ef91906140b7565b81526020808201929092526040908101600020835181549385015192850151606086015160809096015162ffffff1990951691151562ffff0019169190911761010061ffff90941693909302929092176301000000600160a01b031916630100000064ffffffffff90931692909202600160401b600160a01b03191691909117600160401b6001600160601b0394851602176001600160a01b0316600160a01b9390921692909202179055806128a481614042565b915050612770565b6008546001600160a01b031633146128d65760405162461bcd60e51b8152600401610e4990613faa565b600b55565b6008546001600160a01b031633146129055760405162461bcd60e51b8152600401610e4990613faa565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b6008546001600160a01b031633146129535760405162461bcd60e51b8152600401610e4990613faa565b6111ca60168383613a6c565b600054600a5481106129a55760405162461bcd60e51b815260206004820152600f60248201526e149bdbc810d85c081c995858da1959608a1b6044820152606401610e49565b600d546004146129e35760405162461bcd60e51b81526020600482015260096024820152684e6f7420526561647960b81b6044820152606401610e49565b3360009081526013602052604090205460ff16612a4c5760405162461bcd60e51b815260206004820152602160248201527f437962657220526f6f204f6666696369616c20436f6e747261637473204f6e6c6044820152607960f81b6064820152608401610e49565b611ce4826001613367565b600080612a6360005490565b9050600a548110612aa85760405162461bcd60e51b815260206004820152600f60248201526e149bdbc810d85c081c995858da1959608a1b6044820152606401610e49565b6000612ab333611ddc565b11612af65760405162461bcd60e51b8152602060048201526013602482015272596f7520646f6e742068617665206120526f6f60681b6044820152606401610e49565b600d54600114612b3f5760405162461bcd60e51b8152602060048201526014602482015273426f7820666f7220526f6f20696e61637469766560601b6044820152606401610e49565b600c54601e5481906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612b9557600080fd5b505afa158015612ba9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bcd919061405d565b1015612c0d5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f75676820484f505360881b6044820152606401610e49565b601e546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015612c6757600080fd5b505af1158015612c7b573d6000803e3d6000fd5b505050506000612c988386612c9091906140b7565b601f54611bd6565b90504283821015612de7576000612cae83611a14565b9050612cbb816001613367565b6040805160a0810182526000808252606460208084019182528385018381526001600160601b0388811660608701818152608088019182528d875260179094529685209551865494519251935197518216600160a01b026001600160a01b0398909216600160401b02600160401b600160a01b031964ffffffffff909516630100000002949094166301000000600160a01b031961ffff9094166101000262ffff00199215159290921662ffffff199096169590951717919091169290921717939093169290921790557f9345578182dfe4ecc9338ac4b667d7861a06ae532ca5e95629e0caf236ebc6eb90336040805192151583526001600160a01b039182166020840152908416908201526060810187905260800160405180910390a15060069695505050505050565b612df2336001613367565b6040805160a0810182526000808252606460208084019182528385018381526001600160601b0387811660608701818152608088019182528c87526017909452969094209451855493519151925196518516600160a01b026001600160a01b0397909516600160401b02600160401b600160a01b031964ffffffffff909416630100000002939093166301000000600160a01b031961ffff9093166101000262ffff00199215159290921662ffffff199095169490941717169190911717929092169190911790557f9345578182dfe4ecc9338ac4b667d7861a06ae532ca5e95629e0caf236ebc6eb600133336040805193151584526001600160a01b0392831660208501529116908201526060810186905260800160405180910390a150600795945050505050565b6008546001600160a01b03163314612f465760405162461bcd60e51b8152600401610e4990613faa565b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314612f925760405162461bcd60e51b8152600401610e4990613faa565b6001600160a01b038116612ff75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e49565b611dd981613653565b6008546001600160a01b0316331461302a5760405162461bcd60e51b8152600401610e4990613faa565b600e55565b6008546001600160a01b031633146130595760405162461bcd60e51b8152600401610e4990613faa565b6018544790613087906001600160a01b0316606461307884603f6140cf565b61308291906140a3565b6135b9565b601b546130a4906001600160a01b031660646130788460126140cf565b601a546130c1906001600160a01b031660646130788460026140cf565b601c546130de906001600160a01b031660646130788460056140cf565b6019546130fb906001600160a01b031660646130788460086140cf565b601d54611dd9906001600160a01b031660646130788460046140cf565b6000805482108015610d43575050600090815260046020526040902054600160e01b161590565b60008160005481101561318757600081815260046020526040902054600160e01b8116613185575b80611c1a575060001901600081815260046020526040902054613167565b505b604051636f96cda160e11b815260040160405180910390fd5b601381116132025760405162461bcd60e51b815260206004820152602960248201527f5465616d20616c6c6f636174696f6e20526f6f732063616e2774206265207472604482015268185b9cd9995c9c995960ba1b6064820152608401610e49565b6000818152601760205260409020805460ff16156132625760405162461bcd60e51b815260206004820152601e60248201527f5468697320526f6f206973206c6f636b656420696e207468652067616d6500006044820152606401610e49565b805442906001600160601b03808316600160a01b90920416106132da5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420636c61696d20696d6d6564696174656c79206265666f72652060448201526930903a3930b739b332b960b11b6064820152608401610e49565b670de0b6b3a76400006132ec84611a1f565b6132f691906140a3565b825473ffffffffffffffffffffffff0000000000ffffff16630100000064ffffffffff92909216919091026001600160a01b031617600160a01b6001600160601b039290921691820217600160401b600160a01b031916600160401b9190910217905550565b6111ca838383613754565b6000548261338757604051622e076360e81b815260040160405180910390fd5b816133a55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48281106133ec57500160005550565b600080600061344760005490565b905060006134558283611bd6565b905060006134638284611bd6565b90508082111561347757808203935061347d565b81810393505b50919392505050565b60006134918261313f565b9050826134b157604051633a954ecd60e21b815260040160405180910390fd5b6000828152600660205260409020546001600160a01b031680156134ec57600083815260066020526040902080546001600160a01b03191690555b6001600160a01b03858116600090815260056020908152604080832080546000190190559287168252828220805460010190558582526004905220600160e11b4260a01b861781179091558216613571576001830160008181526004602052604090205461356f57600054811461356f5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613606576040519150601f19603f3d011682016040523d82523d6000602084013e61360b565b606091505b50509050806111ca5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321032ba3432b960611b6044820152606401610e49565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6136b0848484613754565b6001600160a01b0383163b156136e9576136cc84848484613901565b6136e9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516080810191829052607f0190826030600a8206018353600a90045b801561372c57600183039250600a81066030018353600a900461370e565b50819003601f19909101908152919050565b60008261374b85846139f8565b14949350505050565b600061375f8261313f565b9050836001600160a01b0316816001600160a01b0316146137925760405162a1148160e81b815260040160405180910390fd5b6000828152600660205260408120546001600160a01b03908116919086163314806137c257506137c28633610be8565b806137d557506001600160a01b03821633145b9050806137f557604051632ce44b5f60e11b815260040160405180910390fd5b8461381357604051633a954ecd60e21b815260040160405180910390fd5b811561383657600084815260066020526040902080546001600160a01b03191690555b6001600160a01b03868116600090815260056020908152604080832080546000190190559288168252828220805460010190558682526004905220600160e11b4260a01b8717811790915583166138bb57600184016000818152600460205260409020546138b95760005481146138b95760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121ec565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906139369033908990889088906004016141f7565b602060405180830381600087803b15801561395057600080fd5b505af1925050508015613980575060408051601f3d908101601f1916820190925261397d91810190614234565b60015b6139db573d8080156139ae576040519150601f19603f3d011682016040523d82523d6000602084013e6139b3565b606091505b5080516139d3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600081815b8451811015613a64576000858281518110613a1a57613a1a614016565b60200260200101519050808311613a405760008381526020829052604090209250613a51565b600081815260208490526040902092505b5080613a5c81614042565b9150506139fd565b509392505050565b828054613a7890613f6f565b90600052602060002090601f016020900481019282613a9a5760008555613ae0565b82601f10613ab35782800160ff19823516178555613ae0565b82800160010185558215613ae0579182015b82811115613ae0578235825591602001919060010190613ac5565b50613aec929150613af0565b5090565b5b80821115613aec5760008155600101613af1565b6001600160e01b031981168114611dd957600080fd5b600060208284031215613b2d57600080fd5b8135611c1a81613b05565b60005b83811015613b53578181015183820152602001613b3b565b838111156136e95750506000910152565b60008151808452613b7c816020860160208601613b38565b601f01601f19169290920160200192915050565b602081526000611c1a6020830184613b64565b600060208284031215613bb557600080fd5b5035919050565b80356001600160a01b0381168114613bd357600080fd5b919050565b60008060408385031215613beb57600080fd5b613bf483613bbc565b946020939093013593505050565b60008083601f840112613c1457600080fd5b50813567ffffffffffffffff811115613c2c57600080fd5b6020830191508360208260051b8501011115613c4757600080fd5b9250929050565b60008060208385031215613c6157600080fd5b823567ffffffffffffffff811115613c7857600080fd5b613c8485828601613c02565b90969095509350505050565b600060208284031215613ca257600080fd5b611c1a82613bbc565b600080600060608486031215613cc057600080fd5b613cc984613bbc565b9250613cd760208501613bbc565b9150604084013590509250925092565b60008060208385031215613cfa57600080fd5b823567ffffffffffffffff80821115613d1257600080fd5b818501915085601f830112613d2657600080fd5b813581811115613d3557600080fd5b866020828501011115613d4757600080fd5b60209290920196919550909350505050565b60008060408385031215613d6c57600080fd5b50508035926020909101359150565b60008060408385031215613d8e57600080fd5b613d9783613bbc565b915060208301358015158114613dac57600080fd5b809150509250929050565b600080600060608486031215613dcc57600080fd5b613dd584613bbc565b925060208401359150604084013561ffff81168114613df357600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215613e2a57600080fd5b613e3385613bbc565b9350613e4160208601613bbc565b925060408501359150606085013567ffffffffffffffff80821115613e6557600080fd5b818701915087601f830112613e7957600080fd5b813581811115613e8b57613e8b613dfe565b604051601f8201601f19908116603f01168101908382118183101715613eb357613eb3613dfe565b816040528281528a6020848701011115613ecc57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060408486031215613f0557600080fd5b83359250602084013567ffffffffffffffff811115613f2357600080fd5b613f2f86828701613c02565b9497909650939450505050565b60008060408385031215613f4f57600080fd5b613f5883613bbc565b9150613f6660208401613bbc565b90509250929050565b600181811c90821680613f8357607f821691505b60208210811415613fa457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f596f752063616e6e6f74207061737320616e20656d7074792061727261790000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156140565761405661402c565b5060010190565b60006020828403121561406f57600080fd5b5051919050565b6000828210156140885761408861402c565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826140b2576140b261408d565b500490565b600082198211156140ca576140ca61402c565b500190565b60008160001904831182151516156140e9576140e961402c565b500290565b6020808252600e908201526d125b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b6000826141255761412561408d565b500690565b8054600090600181811c908083168061414457607f831692505b602080841082141561416657634e487b7160e01b600052602260045260246000fd5b81801561417a576001811461418b576141b8565b60ff198616895284890196506141b8565b60008881526020902060005b868110156141b05781548b820152908501908301614197565b505084890196505b50505050505092915050565b60006141d0828661412a565b84516141e0818360208901613b38565b6141ec8183018661412a565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061422a90830184613b64565b9695505050505050565b60006020828403121561424657600080fd5b8151611c1a81613b0556fea2646970667358221220d9277e8c8cb320d891e0b1a67c8bdb65ee0cffcc4c2d05bb79fc3a9b9a881fa664736f6c63430008090033000000000000000000000000fe772d045a54214d2607536b04821adf0ca397e0

Deployed Bytecode

0x6080604052600436106103fa5760003560e01c8063755415ff11610213578063cd88b61011610123578063e985e9c5116100ab578063f2860ab31161007a578063f2860ab314610c6c578063f2fde38b14610c8c578063f6a5b8e614610cac578063fc1a1c3614610ccc578063fcc21e5614610ce257600080fd5b8063e985e9c514610bcd578063edac68bb14610c16578063ef5eccea14610c36578063efc48c9414610c4c57600080fd5b8063d72d04db116100f2578063d72d04db14610aa6578063da3ef23f14610ac6578063dc40ede614610ae6578063de837b0b14610b06578063e1987c8f14610b2657600080fd5b8063cd88b61014610a33578063d2cab05614610a53578063d3d37a3114610a66578063d61b750214610a8657600080fd5b8063a4084fea116101a6578063bce2466911610175578063bce246691461099e578063bd32fb66146109be578063c6275255146109de578063c6682862146109fe578063c87b56dd14610a1357600080fd5b8063a4084fea14610932578063a945bf8014610952578063aa98e0c614610968578063b88d4fde1461097e57600080fd5b806391cca3db116101e257806391cca3db146108c757806395d89b41146108e7578063983e1388146108fc578063a22cb4651461091257600080fd5b8063755415ff1461083e57806378cb7996146108535780638b212f48146108735780638da5cb5b146108a957600080fd5b806342ae238f1161030e578063655cc575116102a15780636ea8387a116102705780636ea8387a146107b35780636ff1c9bc146107c957806370a08231146107e9578063715018a61461080957806371c2d0041461081e57600080fd5b8063655cc5751461072e5780636a6a36051461074e5780636c0360eb1461076e5780636ddd474d1461078357600080fd5b8063603f4d52116102dd578063603f4d52146106b85780636352211e146106ce57806364e5c812146106ee578063655b08eb1461070e57600080fd5b806342ae238f146106435780634313213c1461066357806343bc16121461067857806355f804b31461069857600080fd5b80630fafa8201161039157806323b872dd1161036057806323b872dd146105b0578063260241df146105d05780632db11544146105f05780633a3a1fae1461060357806342842e0e1461062357600080fd5b80630fafa8201461054157806318160ddd146105615780631d0825ac1461057a5780631fbc08931461059a57600080fd5b8063084c4088116103cd578063084c4088146104b2578063095ea7b3146104d45780630cbbed95146104f45780630e9bddf01461051457600080fd5b806301ffc9a7146103ff57806306fdde0314610434578063078fd9ea14610456578063081812fc1461047a575b600080fd5b34801561040b57600080fd5b5061041f61041a366004613b1b565b610cf7565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b50610449610d49565b60405161042b9190613b90565b34801561046257600080fd5b5061046c600b5481565b60405190815260200161042b565b34801561048657600080fd5b5061049a610495366004613ba3565b610ddb565b6040516001600160a01b03909116815260200161042b565b3480156104be57600080fd5b506104d26104cd366004613ba3565b610e1f565b005b3480156104e057600080fd5b506104d26104ef366004613bd8565b610edf565b34801561050057600080fd5b506104d261050f366004613c4e565b610f7f565b34801561052057600080fd5b5061046c61052f366004613c90565b60126020526000908152604090205481565b34801561054d57600080fd5b5061046c61055c366004613ba3565b6111cf565b34801561056d57600080fd5b506001546000540361046c565b34801561058657600080fd5b50601e5461049a906001600160a01b031681565b3480156105a657600080fd5b5061046c60105481565b3480156105bc57600080fd5b506104d26105cb366004613cab565b61128f565b3480156105dc57600080fd5b506104d26105eb366004613c4e565b611305565b6104d26105fe366004613ba3565b611556565b34801561060f57600080fd5b506104d261061e366004613ba3565b611872565b34801561062f57600080fd5b506104d261063e366004613cab565b6118a1565b34801561064f57600080fd5b5061046c61065e366004613c4e565b6118bc565b34801561066f57600080fd5b5061049a611926565b34801561068457600080fd5b5060195461049a906001600160a01b031681565b3480156106a457600080fd5b506104d26106b3366004613ce7565b6119de565b3480156106c457600080fd5b5061046c600d5481565b3480156106da57600080fd5b5061049a6106e9366004613ba3565b611a14565b3480156106fa57600080fd5b5061046c610709366004613ba3565b611a1f565b34801561071a57600080fd5b5061046c610729366004613d59565b611bd6565b34801561073a57600080fd5b506104d2610749366004613bd8565b611c21565b34801561075a57600080fd5b506104d2610769366004613ba3565b611ce8565b34801561077a57600080fd5b50610449611d17565b34801561078f57600080fd5b5061041f61079e366004613c90565b60136020526000908152604090205460ff1681565b3480156107bf57600080fd5b5061046c600c5481565b3480156107d557600080fd5b506104d26107e4366004613c90565b611da5565b3480156107f557600080fd5b5061046c610804366004613c90565b611ddc565b34801561081557600080fd5b506104d2611e22565b34801561082a57600080fd5b50601d5461049a906001600160a01b031681565b34801561084a57600080fd5b50600c5461046c565b34801561085f57600080fd5b506104d261086e366004613c4e565b611e58565b34801561087f57600080fd5b5061046c61088e366004613ba3565b600090815260176020526040902054610100900461ffff1690565b3480156108b557600080fd5b506008546001600160a01b031661049a565b3480156108d357600080fd5b50601b5461049a906001600160a01b031681565b3480156108f357600080fd5b50610449611f49565b34801561090857600080fd5b5061046c600a5481565b34801561091e57600080fd5b506104d261092d366004613d7b565b611f58565b34801561093e57600080fd5b506104d261094d366004613db7565b611fee565b34801561095e57600080fd5b5061046c600f5481565b34801561097457600080fd5b5061046c60115481565b34801561098a57600080fd5b506104d2610999366004613e14565b6121f4565b3480156109aa57600080fd5b506104d26109b9366004613c90565b61226c565b3480156109ca57600080fd5b506104d26109d9366004613ba3565b6122b7565b3480156109ea57600080fd5b506104d26109f9366004613ba3565b6122e6565b348015610a0a57600080fd5b50610449612315565b348015610a1f57600080fd5b50610449610a2e366004613ba3565b612322565b348015610a3f57600080fd5b5061046c610a4e366004613ba3565b6123ae565b6104d2610a61366004613ef0565b612458565b348015610a7257600080fd5b506104d2610a81366004613ba3565b6128ac565b348015610a9257600080fd5b50601c5461049a906001600160a01b031681565b348015610ab257600080fd5b506104d2610ac1366004613c90565b6128db565b348015610ad257600080fd5b506104d2610ae1366004613ce7565b612929565b348015610af257600080fd5b506104d2610b01366004613c90565b61295f565b348015610b1257600080fd5b5061046c610b21366004613ba3565b612a57565b348015610b3257600080fd5b50610b8b610b41366004613ba3565b60176020526000908152604090205460ff81169061ffff6101008204169064ffffffffff6301000000820416906001600160601b03600160401b8204811691600160a01b90041685565b60408051951515865261ffff909416602086015264ffffffffff909216928401929092526001600160601b03918216606084015216608082015260a00161042b565b348015610bd957600080fd5b5061041f610be8366004613f3c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c2257600080fd5b506104d2610c31366004613c90565b612f1c565b348015610c4257600080fd5b5061046c60145481565b348015610c5857600080fd5b5060185461049a906001600160a01b031681565b348015610c7857600080fd5b50601a5461049a906001600160a01b031681565b348015610c9857600080fd5b506104d2610ca7366004613c90565b612f68565b348015610cb857600080fd5b506104d2610cc7366004613ba3565b613000565b348015610cd857600080fd5b5061046c600e5481565b348015610cee57600080fd5b506104d261302f565b60006301ffc9a760e01b6001600160e01b031983161480610d2857506380ac58cd60e01b6001600160e01b03198316145b80610d435750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610d5890613f6f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8490613f6f565b8015610dd15780601f10610da657610100808354040283529160200191610dd1565b820191906000526020600020905b815481529060010190602001808311610db457829003601f168201915b5050505050905090565b6000610de682613118565b610e03576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b03163314610e525760405162461bcd60e51b8152600401610e4990613faa565b60405180910390fd5b80600d541415610ea45760405162461bcd60e51b815260206004820152601960248201527f5468697320697320616c7265616479207468652076616c7565000000000000006044820152606401610e49565b600d8190556040518181527fea44936fc1183d38889d6e14d366ab1616121bb12bdb38ca15bbdf8cf944c8309060200160405180910390a150565b6000610eea8261313f565b9050336001600160a01b03821614610f2357610f068133610be8565b610f23576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60145481610f9f5760405162461bcd60e51b8152600401610e4990613fdf565b600d5415610fac57600080fd5b60005b828110156110735733610fd9858584818110610fcd57610fcd614016565b90506020020135611a14565b6001600160a01b0316146110215760405162461bcd60e51b815260206004820152600f60248201526e4e4f5420594f555220524f4f28532960881b6044820152606401610e49565b60016017600086868581811061103957611039614016565b60209081029290920135835250810191909152604001600020805460ff19169115159190911790558061106b81614042565b915050610faf565b5080156111ca57601454601e546001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156110ce57600080fd5b505afa1580156110e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611106919061405d565b10156111605760405162461bcd60e51b815260206004820152602360248201527f596f7520646f206e6f74206861766520656e6f75676820484f505320746f20706044820152626c617960e81b6064820152608401610e49565b601e54601454604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac906044015b600060405180830381600087803b1580156111b157600080fd5b505af11580156111c5573d6000803e3d6000fd5b505050505b505050565b6000818152601760209081526040808320815160a081018352905460ff81161515825261ffff6101008204169382019390935264ffffffffff6301000000840416918101919091526001600160601b03600160401b8304811660608301819052600160a01b909304166080820152908290620151809061124f9042614076565b61125991906140a3565b6112649060646140b7565b905060c8811115611273575060c85b602082015161ffff1661128682826140cf565b95945050505050565b600260095414156112e25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e49565b60026009556112f0816131a0565b6112fb83838361335c565b5050600160095550565b32331461133f5760405162461bcd60e51b8152602060048201526008602482015267454f41204f6e6c7960c01b6044820152606401610e49565b60008161135e5760405162461bcd60e51b8152600401610e4990613fdf565b60005b828110156114da573361137f858584818110610fcd57610fcd614016565b6001600160a01b0316146113c75760405162461bcd60e51b815260206004820152600f60248201526e4e4f5420594f555220524f4f28532960881b6044820152606401610e49565b60006113ea8585848181106113de576113de614016565b90506020020135611a1f565b905060006017600087878681811061140457611404614016565b60209081029290920135835250810191909152604001600020805473ffffffffffffffffffffffff0000000000ffffff16600160a01b426001600160601b03160267ffffffffff000000191617815590507fda44831ed73cd22396b95bd5e122b74750e95f1b4e410309698e114ebb9079c93387878681811061148957611489614016565b604080516001600160a01b039095168552602091820293909301359084015250810184905260600160405180910390a16114c382856140b7565b9350505080806114d290614042565b915050611361565b506000811161151f5760405162461bcd60e51b81526020600482015260116024820152704e4f20484f505320415641494c41424c4560781b6044820152606401610e49565b601e546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401611197565b600054600b5461156683836140b7565b111561159e5760405162461bcd60e51b815260206004820152600760248201526614dbdb191bdd5d60ca1b6044820152606401610e49565b6002600d54116115e95760405162461bcd60e51b81526020600482015260166024820152755075626c69632053616c65206e6f742061637469766560501b6044820152606401610e49565b6000821180156115f95750600682105b6116155760405162461bcd60e51b8152600401610e49906140ee565b81600f5461162391906140cf565b34146116715760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420707269636520666f72207075626c696300000000000000006044820152606401610e49565b60008261167f6009846140a3565b61168a90609b614076565b61169c90670de0b6b3a76400006140cf565b6116a691906140cf565b601e549091506001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561170357600080fd5b505af1158015611717573d6000803e3d6000fd5b5050505061172b6117253390565b84613367565b4260005b8481101561186b576040805160a081019091526000815260208101600961175684886140b7565b61176091906140a3565b61176b90609b614076565b61ffff168152602001600064ffffffffff168152602001836001600160601b03168152602001836001600160601b03168152506017600083876117ae91906140b7565b81526020808201929092526040908101600020835181549385015192850151606086015160809096015162ffffff1990951691151562ffff0019169190911761010061ffff90941693909302929092176301000000600160a01b031916630100000064ffffffffff90931692909202600160401b600160a01b03191691909117600160401b6001600160601b0394851602176001600160a01b0316600160a01b93909216929092021790558061186381614042565b91505061172f565b5050505050565b6008546001600160a01b0316331461189c5760405162461bcd60e51b8152600401610e4990613faa565b601f55565b6111ca838383604051806020016040528060008152506121f4565b60008080836118dd5760405162461bcd60e51b8152600401610e4990613fdf565b60005b8481101561191d576118fd8686838181106113de576113de614016565b925061190983836140b7565b91508061191581614042565b9150506118e0565b50949350505050565b6008546000906001600160a01b031633146119535760405162461bcd60e51b8152600401610e4990613faa565b600061195d613439565b9050603181116119af5760405162461bcd60e51b815260206004820152601960248201527f5448495320544f4b454e20495320494e454c494749424c452e000000000000006044820152606401610e49565b60006119bc6106e9613439565b601d80546001600160a01b0319166001600160a01b0383161790559392505050565b6008546001600160a01b03163314611a085760405162461bcd60e51b8152600401610e4990613faa565b6111ca60158383613a6c565b6000610d438261313f565b6000611a2a82613118565b611a6d5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610e49565b6000828152601760209081526040808320815160a081018352905460ff81161515825261ffff6101008204169382019390935264ffffffffff6301000000840416918101919091526001600160601b03600160401b8304811660608301819052600160a01b9093041660808201529142916201518090611aed9084614076565b611af791906140a3565b611b029060646140b7565b905060c8811115611b11575060c85b6367d595f0821115611b25576367d595f091505b60808301516001600160601b031682811115611b475750600095945050505050565b6000611b576201518060646140cf565b83866020015161ffff16611b6b91906140cf565b611b7d90670de0b6b3a76400006140cf565b611b8791906140a3565b90506000611b958386614076565b9050856040015164ffffffffff16670de0b6b3a7640000611bb691906140cf565b611bc082846140cf565b611bca91906140b7565b98975050505050505050565b6040805142602082015244918101919091526060810183905260009082906080016040516020818303038152906040528051906020012060001c611c1a9190614116565b9392505050565b6008546001600160a01b03163314611c4b5760405162461bcd60e51b8152600401610e4990613faa565b60148110611cd15760405162461bcd60e51b815260206004820152604760248201527f57652063616e206f6e6c79206d6f7665207465616d206d656d62657220726f6f60448201527f732e20507572706f73653a20746f2062657474657220616c69676e20696e6365606482015266373a34bb32b99760c91b608482015260a401610e49565b611ce4611cdd82611a14565b8383613486565b5050565b6008546001600160a01b03163314611d125760405162461bcd60e51b8152600401610e4990613faa565b600a55565b60158054611d2490613f6f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5090613f6f565b8015611d9d5780601f10611d7257610100808354040283529160200191611d9d565b820191906000526020600020905b815481529060010190602001808311611d8057829003601f168201915b505050505081565b6008546001600160a01b03163314611dcf5760405162461bcd60e51b8152600401610e4990613faa565b611dd981476135b9565b50565b600081611dfc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314611e4c5760405162461bcd60e51b8152600401610e4990613faa565b611e566000613653565b565b600d5415611e6557600080fd5b3360009081526013602052604090205460ff16611ecf5760405162461bcd60e51b815260206004820152602260248201527f437962657220526f6f73204f6666696369616c20436f6e747261637473204f6e6044820152616c7960f01b6064820152608401610e49565b80611eec5760405162461bcd60e51b8152600401610e4990613fdf565b60005b818110156111ca57600060176000858585818110611f0f57611f0f614016565b60209081029290920135835250810191909152604001600020805460ff191691151591909117905580611f4181614042565b915050611eef565b606060038054610d5890613f6f565b6001600160a01b038216331415611f825760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146120185760405162461bcd60e51b8152600401610e4990613faa565b600054600a5461202884836140b7565b11156120605760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610e49565b6000831180156120705750600683105b61208c5760405162461bcd60e51b8152600401610e49906140ee565b60978261ffff16106120d65760405162461bcd60e51b815260206004820152601360248201527231353020697320746865206d6178206261736560681b6044820152606401610e49565b6120e08484613367565b4260005b848110156121ec576040805160a081018252600080825261ffff871660208301529181018290526001600160601b0384166060820181905260808201529060179061212f84876140b7565b81526020808201929092526040908101600020835181549385015192850151606086015160809096015162ffffff1990951691151562ffff0019169190911761010061ffff90941693909302929092176301000000600160a01b031916630100000064ffffffffff90931692909202600160401b600160a01b03191691909117600160401b6001600160601b0394851602176001600160a01b0316600160a01b9390921692909202179055806121e481614042565b9150506120e4565b505050505050565b600260095414156122475760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e49565b6002600955612255826131a0565b612261848484846136a5565b505060016009555050565b6008546001600160a01b031633146122965760405162461bcd60e51b8152600401610e4990613faa565b6001600160a01b03166000908152601360205260409020805460ff19169055565b6008546001600160a01b031633146122e15760405162461bcd60e51b8152600401610e4990613faa565b601155565b6008546001600160a01b031633146123105760405162461bcd60e51b8152600401610e4990613faa565b600f55565b60168054611d2490613f6f565b606061232d82613118565b6123795760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610e49565b6015612384836136ef565b6016604051602001612398939291906141c4565b6040516020818303038152906040529050919050565b6000818152601760209081526040808320815160a081018352905460ff81161515825261ffff6101008204169382019390935264ffffffffff6301000000840416918101919091526001600160601b03600160401b8304811660608301819052600160a01b909304166080820152908290620151809061242e9042614076565b61243891906140a3565b6124439060646140b7565b905060c8811115611c1a575060c89392505050565b600054600b5461246885836140b7565b11156124a05760405162461bcd60e51b815260206004820152600760248201526614dbdb191bdd5d60ca1b6044820152606401610e49565b601054336000908152601260205260409020546124be9086906140b7565b11156125005760405162461bcd60e51b8152602060048201526011602482015270115e18d959591cc8185b1b1bdd1b595b9d607a1b6044820152606401610e49565b6001600d54116125475760405162461bcd60e51b8152602060048201526012602482015271574c2053616c65206e6f742061637469766560701b6044820152606401610e49565b600084116125675760405162461bcd60e51b8152600401610e49906140ee565b6125dc838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011546040516bffffffffffffffffffffffff193360601b16602082015290925060340190506040516020818303038152906040528051906020012061373e565b61263a5760405162461bcd60e51b815260206004820152602960248201527f496e76616c6964204d65726b6c652070726f6f6620737570706c69656420666f60448201526872206164647265737360b81b6064820152608401610e49565b83600e5461264891906140cf565b341461268d5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081c1c9a58d948199bdc8815d360621b6044820152606401610e49565b33600090815260126020526040812080548692906126ac9084906140b7565b9091555060009050846126c06009846140a3565b6126cb90609b614076565b6126dd90670de0b6b3a76400006140cf565b6126e791906140cf565b601e549091506001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561274457600080fd5b505af1158015612758573d6000803e3d6000fd5b5050505061276c6127663390565b86613367565b4260005b868110156111c5576040805160a081019091526000815260208101600961279784886140b7565b6127a191906140a3565b6127ac90609b614076565b61ffff168152602001600064ffffffffff168152602001836001600160601b03168152602001836001600160601b03168152506017600083876127ef91906140b7565b81526020808201929092526040908101600020835181549385015192850151606086015160809096015162ffffff1990951691151562ffff0019169190911761010061ffff90941693909302929092176301000000600160a01b031916630100000064ffffffffff90931692909202600160401b600160a01b03191691909117600160401b6001600160601b0394851602176001600160a01b0316600160a01b9390921692909202179055806128a481614042565b915050612770565b6008546001600160a01b031633146128d65760405162461bcd60e51b8152600401610e4990613faa565b600b55565b6008546001600160a01b031633146129055760405162461bcd60e51b8152600401610e4990613faa565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b6008546001600160a01b031633146129535760405162461bcd60e51b8152600401610e4990613faa565b6111ca60168383613a6c565b600054600a5481106129a55760405162461bcd60e51b815260206004820152600f60248201526e149bdbc810d85c081c995858da1959608a1b6044820152606401610e49565b600d546004146129e35760405162461bcd60e51b81526020600482015260096024820152684e6f7420526561647960b81b6044820152606401610e49565b3360009081526013602052604090205460ff16612a4c5760405162461bcd60e51b815260206004820152602160248201527f437962657220526f6f204f6666696369616c20436f6e747261637473204f6e6c6044820152607960f81b6064820152608401610e49565b611ce4826001613367565b600080612a6360005490565b9050600a548110612aa85760405162461bcd60e51b815260206004820152600f60248201526e149bdbc810d85c081c995858da1959608a1b6044820152606401610e49565b6000612ab333611ddc565b11612af65760405162461bcd60e51b8152602060048201526013602482015272596f7520646f6e742068617665206120526f6f60681b6044820152606401610e49565b600d54600114612b3f5760405162461bcd60e51b8152602060048201526014602482015273426f7820666f7220526f6f20696e61637469766560601b6044820152606401610e49565b600c54601e5481906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612b9557600080fd5b505afa158015612ba9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bcd919061405d565b1015612c0d5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f75676820484f505360881b6044820152606401610e49565b601e546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015612c6757600080fd5b505af1158015612c7b573d6000803e3d6000fd5b505050506000612c988386612c9091906140b7565b601f54611bd6565b90504283821015612de7576000612cae83611a14565b9050612cbb816001613367565b6040805160a0810182526000808252606460208084019182528385018381526001600160601b0388811660608701818152608088019182528d875260179094529685209551865494519251935197518216600160a01b026001600160a01b0398909216600160401b02600160401b600160a01b031964ffffffffff909516630100000002949094166301000000600160a01b031961ffff9094166101000262ffff00199215159290921662ffffff199096169590951717919091169290921717939093169290921790557f9345578182dfe4ecc9338ac4b667d7861a06ae532ca5e95629e0caf236ebc6eb90336040805192151583526001600160a01b039182166020840152908416908201526060810187905260800160405180910390a15060069695505050505050565b612df2336001613367565b6040805160a0810182526000808252606460208084019182528385018381526001600160601b0387811660608701818152608088019182528c87526017909452969094209451855493519151925196518516600160a01b026001600160a01b0397909516600160401b02600160401b600160a01b031964ffffffffff909416630100000002939093166301000000600160a01b031961ffff9093166101000262ffff00199215159290921662ffffff199095169490941717169190911717929092169190911790557f9345578182dfe4ecc9338ac4b667d7861a06ae532ca5e95629e0caf236ebc6eb600133336040805193151584526001600160a01b0392831660208501529116908201526060810186905260800160405180910390a150600795945050505050565b6008546001600160a01b03163314612f465760405162461bcd60e51b8152600401610e4990613faa565b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314612f925760405162461bcd60e51b8152600401610e4990613faa565b6001600160a01b038116612ff75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e49565b611dd981613653565b6008546001600160a01b0316331461302a5760405162461bcd60e51b8152600401610e4990613faa565b600e55565b6008546001600160a01b031633146130595760405162461bcd60e51b8152600401610e4990613faa565b6018544790613087906001600160a01b0316606461307884603f6140cf565b61308291906140a3565b6135b9565b601b546130a4906001600160a01b031660646130788460126140cf565b601a546130c1906001600160a01b031660646130788460026140cf565b601c546130de906001600160a01b031660646130788460056140cf565b6019546130fb906001600160a01b031660646130788460086140cf565b601d54611dd9906001600160a01b031660646130788460046140cf565b6000805482108015610d43575050600090815260046020526040902054600160e01b161590565b60008160005481101561318757600081815260046020526040902054600160e01b8116613185575b80611c1a575060001901600081815260046020526040902054613167565b505b604051636f96cda160e11b815260040160405180910390fd5b601381116132025760405162461bcd60e51b815260206004820152602960248201527f5465616d20616c6c6f636174696f6e20526f6f732063616e2774206265207472604482015268185b9cd9995c9c995960ba1b6064820152608401610e49565b6000818152601760205260409020805460ff16156132625760405162461bcd60e51b815260206004820152601e60248201527f5468697320526f6f206973206c6f636b656420696e207468652067616d6500006044820152606401610e49565b805442906001600160601b03808316600160a01b90920416106132da5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420636c61696d20696d6d6564696174656c79206265666f72652060448201526930903a3930b739b332b960b11b6064820152608401610e49565b670de0b6b3a76400006132ec84611a1f565b6132f691906140a3565b825473ffffffffffffffffffffffff0000000000ffffff16630100000064ffffffffff92909216919091026001600160a01b031617600160a01b6001600160601b039290921691820217600160401b600160a01b031916600160401b9190910217905550565b6111ca838383613754565b6000548261338757604051622e076360e81b815260040160405180910390fd5b816133a55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48281106133ec57500160005550565b600080600061344760005490565b905060006134558283611bd6565b905060006134638284611bd6565b90508082111561347757808203935061347d565b81810393505b50919392505050565b60006134918261313f565b9050826134b157604051633a954ecd60e21b815260040160405180910390fd5b6000828152600660205260409020546001600160a01b031680156134ec57600083815260066020526040902080546001600160a01b03191690555b6001600160a01b03858116600090815260056020908152604080832080546000190190559287168252828220805460010190558582526004905220600160e11b4260a01b861781179091558216613571576001830160008181526004602052604090205461356f57600054811461356f5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613606576040519150601f19603f3d011682016040523d82523d6000602084013e61360b565b606091505b50509050806111ca5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321032ba3432b960611b6044820152606401610e49565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6136b0848484613754565b6001600160a01b0383163b156136e9576136cc84848484613901565b6136e9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516080810191829052607f0190826030600a8206018353600a90045b801561372c57600183039250600a81066030018353600a900461370e565b50819003601f19909101908152919050565b60008261374b85846139f8565b14949350505050565b600061375f8261313f565b9050836001600160a01b0316816001600160a01b0316146137925760405162a1148160e81b815260040160405180910390fd5b6000828152600660205260408120546001600160a01b03908116919086163314806137c257506137c28633610be8565b806137d557506001600160a01b03821633145b9050806137f557604051632ce44b5f60e11b815260040160405180910390fd5b8461381357604051633a954ecd60e21b815260040160405180910390fd5b811561383657600084815260066020526040902080546001600160a01b03191690555b6001600160a01b03868116600090815260056020908152604080832080546000190190559288168252828220805460010190558682526004905220600160e11b4260a01b8717811790915583166138bb57600184016000818152600460205260409020546138b95760005481146138b95760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121ec565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906139369033908990889088906004016141f7565b602060405180830381600087803b15801561395057600080fd5b505af1925050508015613980575060408051601f3d908101601f1916820190925261397d91810190614234565b60015b6139db573d8080156139ae576040519150601f19603f3d011682016040523d82523d6000602084013e6139b3565b606091505b5080516139d3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600081815b8451811015613a64576000858281518110613a1a57613a1a614016565b60200260200101519050808311613a405760008381526020829052604090209250613a51565b600081815260208490526040902092505b5080613a5c81614042565b9150506139fd565b509392505050565b828054613a7890613f6f565b90600052602060002090601f016020900481019282613a9a5760008555613ae0565b82601f10613ab35782800160ff19823516178555613ae0565b82800160010185558215613ae0579182015b82811115613ae0578235825591602001919060010190613ac5565b50613aec929150613af0565b5090565b5b80821115613aec5760008155600101613af1565b6001600160e01b031981168114611dd957600080fd5b600060208284031215613b2d57600080fd5b8135611c1a81613b05565b60005b83811015613b53578181015183820152602001613b3b565b838111156136e95750506000910152565b60008151808452613b7c816020860160208601613b38565b601f01601f19169290920160200192915050565b602081526000611c1a6020830184613b64565b600060208284031215613bb557600080fd5b5035919050565b80356001600160a01b0381168114613bd357600080fd5b919050565b60008060408385031215613beb57600080fd5b613bf483613bbc565b946020939093013593505050565b60008083601f840112613c1457600080fd5b50813567ffffffffffffffff811115613c2c57600080fd5b6020830191508360208260051b8501011115613c4757600080fd5b9250929050565b60008060208385031215613c6157600080fd5b823567ffffffffffffffff811115613c7857600080fd5b613c8485828601613c02565b90969095509350505050565b600060208284031215613ca257600080fd5b611c1a82613bbc565b600080600060608486031215613cc057600080fd5b613cc984613bbc565b9250613cd760208501613bbc565b9150604084013590509250925092565b60008060208385031215613cfa57600080fd5b823567ffffffffffffffff80821115613d1257600080fd5b818501915085601f830112613d2657600080fd5b813581811115613d3557600080fd5b866020828501011115613d4757600080fd5b60209290920196919550909350505050565b60008060408385031215613d6c57600080fd5b50508035926020909101359150565b60008060408385031215613d8e57600080fd5b613d9783613bbc565b915060208301358015158114613dac57600080fd5b809150509250929050565b600080600060608486031215613dcc57600080fd5b613dd584613bbc565b925060208401359150604084013561ffff81168114613df357600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215613e2a57600080fd5b613e3385613bbc565b9350613e4160208601613bbc565b925060408501359150606085013567ffffffffffffffff80821115613e6557600080fd5b818701915087601f830112613e7957600080fd5b813581811115613e8b57613e8b613dfe565b604051601f8201601f19908116603f01168101908382118183101715613eb357613eb3613dfe565b816040528281528a6020848701011115613ecc57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060408486031215613f0557600080fd5b83359250602084013567ffffffffffffffff811115613f2357600080fd5b613f2f86828701613c02565b9497909650939450505050565b60008060408385031215613f4f57600080fd5b613f5883613bbc565b9150613f6660208401613bbc565b90509250929050565b600181811c90821680613f8357607f821691505b60208210811415613fa457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f596f752063616e6e6f74207061737320616e20656d7074792061727261790000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156140565761405661402c565b5060010190565b60006020828403121561406f57600080fd5b5051919050565b6000828210156140885761408861402c565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826140b2576140b261408d565b500490565b600082198211156140ca576140ca61402c565b500190565b60008160001904831182151516156140e9576140e961402c565b500290565b6020808252600e908201526d125b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b6000826141255761412561408d565b500690565b8054600090600181811c908083168061414457607f831692505b602080841082141561416657634e487b7160e01b600052602260045260246000fd5b81801561417a576001811461418b576141b8565b60ff198616895284890196506141b8565b60008881526020902060005b868110156141b05781548b820152908501908301614197565b505084890196505b50505050505092915050565b60006141d0828661412a565b84516141e0818360208901613b38565b6141ec8183018661412a565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061422a90830184613b64565b9695505050505050565b60006020828403121561424657600080fd5b8151611c1a81613b0556fea2646970667358221220d9277e8c8cb320d891e0b1a67c8bdb65ee0cffcc4c2d05bb79fc3a9b9a881fa664736f6c63430008090033

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

000000000000000000000000fe772d045a54214d2607536b04821adf0ca397e0

-----Decoded View---------------
Arg [0] : _hopsAddr (address): 0xFe772d045A54214D2607536B04821aDF0CA397E0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000fe772d045a54214d2607536b04821adf0ca397e0


Loading...
Loading
[ 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.