ETH Price: $3,413.50 (-6.53%)
Gas: 8.09 Gwei

Token

TimeoutOrigin (TOO)
 

Overview

Max Total Supply

8,192 TOO

Holders

868

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
aheyyeha.eth
Balance
2 TOO
0x1f455832e75555cd848958efa5e85f10899463d2
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:
Timeout

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Timeout.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import { Ownable } from "../lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import { ReentrancyGuard } from "../lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";
import "../lib/openzeppelin-contracts/contracts/token/common/ERC2981.sol";
import "../lib/ERC721A/contracts/ERC721A.sol";
import "../lib/ERC721A/contracts/extensions/ERC721AQueryable.sol";
import { DataLibrarry } from "./lib/DataLibrarry.sol";
import { FunctionLib } from "./lib/FunctionLib.sol";
import { ITimeout } from "./ITimeout.sol";
import { Address } from "../lib/openzeppelin-contracts/contracts/utils/Address.sol";
import { Strings } from "../lib/openzeppelin-contracts/contracts/utils/Strings.sol";
import { Base64 } from "../lib/openzeppelin-contracts/contracts/utils/Base64.sol";

/**
* @title Timeout
* @author chixx.eth & @mouradmki
* @notice ERC721A Royalties With fusion, claim for the genesis holder
*/
contract Timeout is ITimeout, ERC721A, ERC721AQueryable, Ownable, ERC2981, ReentrancyGuard {
  using Strings for uint256;
  uint256 public gameFunds;
  uint256 public claimFunds;

  uint16 public constant maxSupplyToMint = 8192;
  uint16 public constant supplyPremint = 2505;

  uint8 private constant maxMintPerWallet_phase03 = 2;
  uint8 private constant maxMintPerWallet_phase04 = 5;

  uint16 public indexMint = 2505;

  uint16 private indexEvolution1Blue;
  uint16 private indexEvolution1Pink;
  uint16 private indexEvolution2Blue;
  uint16 private indexEvolution2Pink;
  uint16 private indexEvolution3Blue;
  uint16 private indexEvolution3Pink;
  uint16 private indexEvolution4Blue;
  uint16 private indexEvolution4Pink;
  uint16 private indexEvolution5Blue;
  uint16 private indexEvolution5Pink;
  uint16 private indexEvolution6Blue;
  uint16 private indexEvolution6Pink;

  uint16 private constant maxSupplyEvolution1PinkAndBlue = 2048;
  uint16 private constant maxSupplyEvolution2PinkAndBlue = 1024;
  uint16 private constant maxSupplyEvolution3PinkAndBlue = 512;
  uint16 private constant maxSupplyEvolution4PinkAndBlue = 256;
  uint16 private constant maxSupplyEvolution5PinkAndBlue = 128;
  uint16 private constant maxSupplyEvolution6PinkAndBlue = 64;

  uint16 private constant portionForClaim = 1294;

  uint16 private index = 2506;
  uint16 private maxSupplyPrivateSale = 1901;
  uint16 private constant maxSupplyPremint = 2505;

  uint16 public phaseForClaim;

  address private WhiteListSigner = 0x99A7130dc775dB71E5252dE59F0f156DF1B96d89;

  string public baseURI = "ipfs://QmaCF1nHa7imHxox33rhXw6mMDu69PUWncpCVK7H1Kmc6B/";

  bool private isPremint;

  DataLibrarry.SalePhase public phase = DataLibrarry.SalePhase.Phase01;

  mapping(uint256 => DataLibrarry.Metadata) private metadatas;
  /**
  * @notice mapping for know for each phase if the tokenId have claim
  * @dev
  * {
  *   uint256 => phase
  *   addres => user address
  *   bool => isClaimed
  * }
  */
  mapping(uint256 => mapping(address => bool)) public isClaimed;
  mapping(address =>  bool) public isFreeMinted;
  mapping(address => uint16) private mintCountPhase03;
  mapping(address => uint16) private mintCountPhase04;

  event NewURI(string newURI, address updatedBy);
  event updatePhase(DataLibrarry.SalePhase phase);
  event updatePhaseForClaim(uint16 phase);
  event Receive(address sender, uint256 amount);
  event ClaimGame(uint256 tokenIdEvo7, address user, uint256 amountClaim);
  event Claim(address user, uint256 amount, uint16 phase);
  event Withdraw(uint256 amount);
  event WithdrawGameFunds(uint256 amount);
  event WithdrawClaimFunds(uint256 amount);

  constructor() ERC721A("TimeoutOrigin", "TOO") {
    _setDefaultRoyalty(address(this), 1500);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, IERC721A, ERC721A) returns (bool) {
    return interfaceId == type(IERC2981).interfaceId // interface ID for royalties
      || interfaceId == type(IERC165).interfaceId
      || interfaceId == 0x80ac58cd // interface ID for ERC721.
      || interfaceId == 0x5b5e139f // interface ID for ERC721Metadata.
      || super.supportsInterface(interfaceId);
  }

  modifier onlyPhase05() {
    require(phase == DataLibrarry.SalePhase.Phase05, "Invalid phase");
    _;
  }

  /**
  * @notice receive eth for royalties.
  */
  receive() external payable {
    uint256 value = msg.value;
    if(msg.sender == owner())
      gameFunds += value;
    else {
      gameFunds += value * 75 / 100;
      claimFunds += value * 25 / 100;
    }
    emit Receive(msg.sender, value);
  }

  /**
  * @notice withdraw the funds for the game.
  *
  * Requirements:
  *
  * - Only owner of contract can call this function
  */
  function withdrawGameFunds() external onlyOwner {
    (bool success, ) = payable(msg.sender).call{value: gameFunds}("");
    if (!success) revert FailToWithdraw();
    emit WithdrawGameFunds(gameFunds);
  }

  /**
  * @notice withdraw the funds for the claim.
  *
  * Requirements:
  *
  * - Only owner of contract can call this function
  */
  function withdrawClaimFunds() external onlyOwner {
    (bool success, ) = payable(msg.sender).call{value: claimFunds}("");
    if (!success) revert FailToWithdraw();
    emit WithdrawClaimFunds(claimFunds);
  }

  /**
  * @notice Returns the starting token ID.
  */
  function _startTokenId() internal view virtual override returns (uint256) {
    return 1;
  }

  /**
  * @notice set the phase for mint
  */
  function setPhase(DataLibrarry.SalePhase _phase)
    external
    onlyOwner
  {
    phase = _phase;
    emit updatePhase(_phase);
  }

  /**
  * @notice set the phase for claim
  */
  function setPhaseForClaim(uint8 newPhase)
    external
    onlyOwner
  {
    phaseForClaim = newPhase;
    emit updatePhaseForClaim(newPhase);
  }

  /**
  * @notice get if msg.sender has claim in the current phase
  */
  function hasClaimed() external view returns (bool) {
    return isClaimed[phaseForClaim][msg.sender];
  }

  /**
  * @notice updates the new token URI in contract.
  *
  * Emits a {NewURI} event.
  *
  * Requirements:
  *
  * - Only owner of contract can call this function
  **/
  function setBaseUri(string memory uri)
    external
    onlyOwner
  {
    baseURI = uri;
    emit NewURI(uri, msg.sender);
  }

  /**
  * @dev See {IERC721Metadata-tokenURI}.
  */
  function tokenURI(uint256 tokenId)
    public
    view
    override(ERC721A,IERC721A)
    returns(string memory)
  {
    if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
    DataLibrarry.Metadata memory datas = getMetadatas(tokenId);

    bytes memory json1 = abi.encodePacked(
      '{',
        '"name": "TimeOutOrigin #',tokenId.toString(),'"',',',
        '"image": ',
        '"',
        baseURI,
        uint256(datas.evolution).toString(),
        '-',
        uint256(datas.types).toString(),
        '.jpeg",'
    );
    bytes memory json = abi.encodePacked(
      json1,
      '"attributes": [{"trait_type": "Evolution","value": "',
      uint256(datas.evolution).toString(), '"},',
      '{"trait_type": "type","value": "',
      datas.types == 0 ? "B" : "A", '"}]',
      '}'
    );
    return string(
      abi.encodePacked(
        "data:application/json;base64,",
        Base64.encode(json)
      )
    );
  }

  /**
  * @notice premint mint 2505 for the owner.
  *
  * Requirements:
  *
  * - Only owner of contract can call this function
  **/
  function premint() external onlyOwner {
    if (isPremint) revert AlreadyUsePremint();
    if (phase != DataLibrarry.SalePhase.Phase01) revert InvalidPhase();
    _mint(msg.sender, supplyPremint);
    isPremint = true;
  }

  /**
  * @notice privatesalesmint mint on private sale.
  *
  * Requirements:
  *
  * - Only whitelisted address can mint
  **/
  function privatesalesmint(
    DataLibrarry.Coupon memory coupon,
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory count
  )
    external
  {
    if(phase != DataLibrarry.SalePhase.Phase02) revert InvalidPhase();
    if(isFreeMinted[msg.sender] == true) revert AlreadyUsePrivateSalesMint();
    FunctionLib.verifyCoupon(WhiteListSigner, coupon, couponType, count);
    if (couponType == DataLibrarry.CouponType.WhiteListSales)
      revert InvalidWhitelist();
    uint16 quantity;
    unchecked {
      quantity =
        (count.BasicCount * 2)
        + (count.UltrarareCount * 3)
        + (count.LegendaireCount * 4)
        + (count.eggCount * 2);
    }
    if (indexMint + quantity > maxSupplyPrivateSale + maxSupplyPremint) revert MaxSupplyPrivateSaleReach();
    _mint(msg.sender, quantity);
    unchecked {
      index += quantity;
      indexMint += quantity;
      isFreeMinted[msg.sender] = true;
    }
  }

  /**
  * @notice whitelistsalesmint mint on whitelist sale.
  *
  * Requirements:
  *
  * - Only whitelisted address can mint
  **/
  function whitelistsalesmint(
    uint16 quantityToMint,
    DataLibrarry.Coupon memory coupon,
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory count
  )
    external
  {
    if(phase != DataLibrarry.SalePhase.Phase03) revert InvalidPhase();
    FunctionLib.verifyCoupon(WhiteListSigner, coupon, couponType, count);
    if (mintCountPhase03[msg.sender] + quantityToMint > maxMintPerWallet_phase03)
      revert InvalidQuantity();
    if (indexMint + quantityToMint > maxSupplyToMint) revert MaxSupplyReach();
    _mint(msg.sender, quantityToMint);
    unchecked {
      mintCountPhase03[msg.sender] += quantityToMint;
      index += quantityToMint;
      indexMint += quantityToMint;
    }
  }

  /**
  * @notice mint on public sale.
  **/
  function mint(
    uint8 quantityToMint
  )
    external
  {
    if(phase !=  DataLibrarry.SalePhase.Phase04) revert InvalidPhase();
    if (mintCountPhase04[msg.sender] + quantityToMint > maxMintPerWallet_phase04
    ) revert InvalidQuantity();
    if (indexMint + quantityToMint > maxSupplyToMint) revert MaxSupplyReach();
    _mint(msg.sender, quantityToMint);
    unchecked { 
      mintCountPhase04[msg.sender] += quantityToMint;
      index += quantityToMint;
      indexMint += quantityToMint;
    }
  }

  /**
  * @notice get the metadata from a tokenId
  * @return data struct contain the metadata
  */
  function getMetadatas(uint256 tokenId) public view returns(DataLibrarry.Metadata memory data) {
    if (!_exists(tokenId)) revert QueryForNonExistantTokenId();
    if (metadatas[tokenId].evolution == 0) {
      if (tokenId % 2 == 0) {
        data.types = 0;
      } else {
        data.types = 1;
      }
      return data;
    }
    return metadatas[tokenId];
  }

  /**
  * @notice clacule a pseudo random number
  * @return uint8 0 or 1
  */
  function random() public view returns(uint8) {
    return
      uint8(uint256(keccak256(abi.encodePacked(
        block.difficulty, block.timestamp
      ))) % 2);
  }

  /**
  * @notice fusion 2 evo0 for evo1.
  *
  * Requirements:
  *
  * - need evo0 blue and evo0 pink
  **/
  function fusionEvo0(uint256 tokenId0, uint256 tokenId1) external onlyPhase05 {
    if (!_exists(tokenId0) || !_exists(tokenId1)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
      revert CallerNotOwnerOfTokenId();
    DataLibrarry.Metadata memory metadata;
    uint8 _random = random();
    if (metadatas[tokenId0].evolution != 0 || metadatas[tokenId1].evolution != 0)
      revert InvalidTokenIdsForFusion();
    else {
      uint8 metadata0 = uint8(tokenId0 % 2);
      uint8 metadata1 = uint8(tokenId1 % 2);
      if ((metadata0 == metadata1))
        revert InvalidTokenIdsForFusion();
      _random = FunctionLib.logicRandomEvo(
        _random, indexEvolution1Blue,
        indexEvolution1Pink,
        maxSupplyEvolution1PinkAndBlue
      );
      if (_random == 0) {
        metadata.types = 0;
        unchecked { ++indexEvolution1Blue; }
      }
      else {
        metadata.types = 1;
        unchecked { ++indexEvolution1Pink; }
      }
      metadata.evolution = 1;
      metadatas[index] = metadata;
      _burn(tokenId0);
      _burn(tokenId1);
      _mint(msg.sender, 1);
      unchecked { ++index; }
    }
  }

  /**
  * @notice fusion 2 evo1 for evo2.
  *
  * Requirements:
  *
  * - need evo1 blue and evo1 pink
  **/
  function fusionEvo1(uint256 tokenId0, uint256 tokenId1) external onlyPhase05 {
    if (!_exists(tokenId0) || !_exists(tokenId1)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
      revert CallerNotOwnerOfTokenId();
    DataLibrarry.Metadata memory metadata;
    uint8 _random = random();
    if ((metadatas[tokenId0].types == 0 && metadatas[tokenId1].types == 0)
      || (metadatas[tokenId0].types == 1 && metadatas[tokenId1].types == 1))
      revert InvalidTokenIdsForFusion();
    if (metadatas[tokenId0].evolution != 1 || metadatas[tokenId1].evolution != 1)
      revert InvalidTokenIdsForFusion();
    else {
      _random = FunctionLib.logicRandomEvo(
        _random, indexEvolution2Blue,
        indexEvolution2Pink,
        maxSupplyEvolution2PinkAndBlue
      );
      if (_random == 0) {
        metadata.types = 0;
        unchecked { ++indexEvolution2Blue; }
      }
      else {
        metadata.types = 1;
        unchecked { ++indexEvolution2Pink; }
      }
      metadata.evolution = 2;
      metadatas[index] = metadata;
      _burn(tokenId0);
      _burn(tokenId1);
      _mint(msg.sender, 1);
      unchecked { ++index; }
    }
  }

  /**
  * @notice fusion 2 evo2 for evo3.
  *
  * Requirements:
  *
  * - need evo2 blue and evo1 pink
  **/
  function fusionEvo2(uint256 tokenId0, uint256 tokenId1) external onlyPhase05 {
    if (!_exists(tokenId0) || !_exists(tokenId1)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
      revert CallerNotOwnerOfTokenId();
    DataLibrarry.Metadata memory metadata;
    uint8 _random = random();
    if ((metadatas[tokenId0].types == 0 && metadatas[tokenId1].types == 0)
      || (metadatas[tokenId0].types == 1 && metadatas[tokenId1].types == 1))
      revert InvalidTokenIdsForFusion();
    if (metadatas[tokenId0].evolution != 2 || metadatas[tokenId1].evolution != 2)
      revert InvalidTokenIdsForFusion();
    else {
      _random = FunctionLib.logicRandomEvo(
          _random,
          indexEvolution3Blue,
          indexEvolution3Pink,
          maxSupplyEvolution3PinkAndBlue
        );
        if (_random == 0) {
          metadata.types = 0;
          unchecked { ++indexEvolution3Blue; }
        }
        else {
          metadata.types = 1;
          unchecked { ++indexEvolution3Pink; }
        }
        metadata.evolution = 3;
        metadatas[index] = metadata;
        _burn(tokenId0);
        _burn(tokenId1);
        _mint(msg.sender, 1);
        unchecked { ++index; }
    }
  }

  /**
  * @notice fusion 2 evo3 for evo4.
  *
  * Requirements:
  *
  * - need evo3 blue and evo3 pink
  **/
  function fusionEvo3(uint256 tokenId0, uint256 tokenId1) external onlyPhase05{
    if (!_exists(tokenId0) || !_exists(tokenId1)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
      revert CallerNotOwnerOfTokenId();
    DataLibrarry.Metadata memory metadata;
    uint8 _random = random();
    if ((metadatas[tokenId0].types == 0 && metadatas[tokenId1].types == 0)
      || (metadatas[tokenId0].types == 1 && metadatas[tokenId1].types == 1))
      revert InvalidTokenIdsForFusion();
    if (metadatas[tokenId0].evolution != 3 || metadatas[tokenId1].evolution != 3)
      revert InvalidTokenIdsForFusion();
    else {
      _random = FunctionLib.logicRandomEvo(
        _random,
        indexEvolution4Blue,
        indexEvolution4Pink,
        maxSupplyEvolution4PinkAndBlue
      );
      if (_random == 0) {
        metadata.types = 0;
        unchecked { ++indexEvolution4Blue; }
      }
      else {
        metadata.types = 1;
        unchecked { ++indexEvolution4Pink; }
      }
      metadata.evolution = 4;
      metadatas[index] = metadata;
      _burn(tokenId0);
      _burn(tokenId1);
      _mint(msg.sender, 1);
      unchecked { ++index; }
    }
  }

  /**
  * @notice fusion 2 evo4 for evo5.
  *
  * Requirements:
  *
  * - need evo4 blue and evo4 pink
  **/
  function fusionEvo4(uint256 tokenId0, uint256 tokenId1) external onlyPhase05{
    if (!_exists(tokenId0) || !_exists(tokenId1)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
      revert CallerNotOwnerOfTokenId();
    DataLibrarry.Metadata memory metadata;
    uint8 _random = random();
    if ((metadatas[tokenId0].types == 0 && metadatas[tokenId1].types == 0)
      || (metadatas[tokenId0].types == 1 && metadatas[tokenId1].types == 1))
      revert InvalidTokenIdsForFusion();
    if (metadatas[tokenId0].evolution != 4 || metadatas[tokenId1].evolution != 4)
      revert InvalidTokenIdsForFusion();
    else {
      _random = FunctionLib.logicRandomEvo(
        _random,
        indexEvolution5Blue,
        indexEvolution5Pink,
        maxSupplyEvolution5PinkAndBlue
      );
      if (_random == 0) {
        metadata.types = 0;
        unchecked { ++indexEvolution5Blue; }
      }
      else {
        metadata.types = 1;
        unchecked { ++indexEvolution5Pink; }
      }
      metadata.evolution = 5;
      metadatas[index] = metadata;
      _burn(tokenId0);
      _burn(tokenId1);
      _mint(msg.sender, 1);
      unchecked { ++index; }
    }
  }

  /**
  * @notice fusion 2 evo5 for evo6.
  *
  * Requirements:
  *
  * - need evo5 blue and evo5 pink
  **/
  function fusionEvo5(uint256 tokenId0, uint256 tokenId1) external onlyPhase05{
    if (!_exists(tokenId0) || !_exists(tokenId1)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
      revert CallerNotOwnerOfTokenId();
    DataLibrarry.Metadata memory metadata;
    uint8 _random = random();
    if ((metadatas[tokenId0].types == 0 && metadatas[tokenId1].types == 0)
      || (metadatas[tokenId0].types == 1 && metadatas[tokenId1].types == 1))
      revert InvalidTokenIdsForFusion();
    if (metadatas[tokenId0].evolution != 5 || metadatas[tokenId1].evolution != 5)
      revert InvalidTokenIdsForFusion();
    else {
      _random = FunctionLib.logicRandomEvo(
        _random,
        indexEvolution6Blue,
        indexEvolution6Pink,
        maxSupplyEvolution6PinkAndBlue
      );
      if (_random == 0) {
        metadata.types = 0;
        unchecked { ++indexEvolution6Blue; }
      }
      else {
        metadata.types = 1;
        unchecked { ++indexEvolution6Pink; }
      }
      metadata.evolution = 6;
      metadatas[index] = metadata;
      _burn(tokenId0);
      _burn(tokenId1);
      _mint(msg.sender, 1);
      unchecked { ++index; }
    }
  }

  /**
  * @notice fusion 2 evo6 for evo7.
  *
  * Requirements:
  *
  * - need evo6 blue and evo6 pink
  **/
  function fusionEvo6(uint256 tokenId0, uint256 tokenId1) external onlyPhase05 {
    if (!_exists(tokenId0) || !_exists(tokenId1)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenId0) != msg.sender || ownerOf(tokenId1) != msg.sender)
      revert CallerNotOwnerOfTokenId();
    DataLibrarry.Metadata memory metadata;
    if ((metadatas[tokenId0].types == 0 && metadatas[tokenId1].types == 0)
      || (metadatas[tokenId0].types == 1 && metadatas[tokenId1].types == 1))
      revert InvalidTokenIdsForFusion();
    if (metadatas[tokenId0].evolution != 6 || metadatas[tokenId1].evolution != 6)
      revert InvalidTokenIdsForFusion();
    else {
      metadata.evolution = 7;
      metadata.types = 3;
      metadatas[index] = metadata;
      _burn(tokenId0);
      _burn(tokenId1);
      _mint(msg.sender, 1);
      unchecked { ++index; }
    }
   }

  /**
  * @notice claim 50% of the game funds.
  *
  * Requirements:
  *
  * - need evo7
  **/
  function claimGame(uint256 tokenIdEvo7) external nonReentrant() {
    if (Address.isContract(msg.sender)) revert SenderIsContract();
    if (!_exists(tokenIdEvo7)) revert QueryForNonExistantTokenId();
    if (ownerOf(tokenIdEvo7) != msg.sender) revert CallerNotOwnerOfTokenId();
    if (metadatas[tokenIdEvo7].evolution != 7) revert InvalidEvolution();
    gameFunds = gameFunds / 2;
    (bool success, ) = payable(address(msg.sender)).call{value: gameFunds}("");
    if (!success) revert FailToTransferGameFunds();
    _burn(tokenIdEvo7);
    emit ClaimGame(tokenIdEvo7, msg.sender, gameFunds);
  }

  /**
  * @notice claim for genesis holder.
  *
  * Requirements:
  *
  * - need to be whitelisted, snapchot
  **/
  function claim(
    DataLibrarry.Coupon memory coupon,
    DataLibrarry.CouponClaim memory couponClaim
  )
    external
    nonReentrant()
  {
    if (Address.isContract(msg.sender)) revert SenderIsContract();
    if (msg.sender != couponClaim.user) revert InvalidUser();
    if (isClaimed[phaseForClaim][msg.sender]) revert UserAlreadyClaimForThisPhase();
    if (couponClaim.phase != phaseForClaim) revert InvalidPhase();
    FunctionLib.verifyCouponForClaim(WhiteListSigner, coupon, couponClaim);
    uint256 portion = (couponClaim.legCount * 10)
      + (couponClaim.urEggCount * 6)
      + (couponClaim.urCount * 5)
      + (couponClaim.basicEggCount * 2)
      + (couponClaim.basicCount * 1);
    uint256 totalClaim = claimFunds / portionForClaim * portion;
    (bool success, ) = payable(address(msg.sender)).call{value: totalClaim}("");
    if (!success) revert FailToTransferClaimFunds();
    isClaimed[phaseForClaim][msg.sender] = true;
    emit Claim(msg.sender, totalClaim, phaseForClaim);
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 18 : 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 18 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 5 of 18 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.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 bit position of `extraData` in packed ownership.
    uint256 private constant BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with `_mintERC2309`.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309`
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // 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`
    // - [232..255] `extraData`
    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 (owner == address(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;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            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;
        ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA);
    }

    /**
     * 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 Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, BITMASK_ADDRESS)
            // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @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 Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`.
            result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ownerOf(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-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 {
        transferFrom(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.
     *
     * See {_mint}.
     *
     * 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 (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _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] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

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

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _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] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

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

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    /**
     * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`.
     */
    function _isOwnerOrApproved(
        address approvedAddress,
        address from,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
            from := and(from, BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, BITMASK_ADDRESS)
            // `msgSender == from || msgSender == approvedAddress`.
            result := or(eq(msgSender, from), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @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 transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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] = _packOwnershipData(
                to,
                BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

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

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

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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] = _packOwnershipData(
                from,
                (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // 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 Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @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 6 of 18 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *   - `extraData` = `0`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *   - `extraData` = `<Extra data when token was burned>`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     *   - `extraData` = `<Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 7 of 18 : DataLibrarry.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

library DataLibrarry {
  struct Coupon {
    bytes32 r;
    bytes32 s;
    uint8 v;
  }

  struct Metadata {
    uint8 evolution;
    uint8 types;
  }

  enum MetadataType {
    blue,
    pink
  }

  enum SalePhase {
    Phase01,
    Phase02,
    Phase03,
    Phase04,
    Phase05
  }

  enum CouponType {
    PrivateSales,
    WhiteListSales
  }

  struct CouponTypeCount {
    uint16 BasicCount;
    uint16 UltrarareCount;
    uint16 LegendaireCount;
    uint16 eggCount;
  }

  struct CouponClaim {
    address user;
    uint256 legCount;
    uint256 urEggCount;
    uint256 urCount;
    uint256 basicEggCount;
    uint256 basicCount;
    uint256 phase;
  }
}

File 8 of 18 : FunctionLib.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import { DataLibrarry } from "./DataLibrarry.sol";
import { ITimeout } from "../ITimeout.sol";

library FunctionLib {
  /**
  * @notice verifyCoupon verify the coupon
  * @dev hash the info and check if valid signature
  */
  function verifyCoupon(
    address signer,
    DataLibrarry.Coupon memory coupon,
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory couponTypeCount
  )
    internal
    view
  {
    bytes32 digest = getMessageHash(
      couponType,
      couponTypeCount
    );
    if (_isVerifiedCoupon(digest, coupon) != signer)
      revert ITimeout.InvalidCoupon();
  }

  function getMessageHash(
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory couponTypeCount
  )
    internal
    view
    returns(bytes32)
  {
    return keccak256(
      abi.encode(
        couponType,
        couponTypeCount.BasicCount,
        couponTypeCount.UltrarareCount,
        couponTypeCount.LegendaireCount,
        couponTypeCount.eggCount,
        msg.sender
      )
    );
  }

  function getMessageHashForAddress(
    DataLibrarry.CouponType couponType,
    DataLibrarry.CouponTypeCount memory couponTypeCount,
    address addressToEncode
  )
    internal
    pure
    returns(bytes32)
  {
    return keccak256(
      abi.encode(
        couponType,
        couponTypeCount.BasicCount,
        couponTypeCount.UltrarareCount,
        couponTypeCount.LegendaireCount,
        couponTypeCount.eggCount,
        addressToEncode
      )
    );
  }

  /**
  * @notice verifyCouponForClaim verify the coupon for claim
  * @dev hash the info and check if valid signature
  */
  function verifyCouponForClaim(
    address signer,
    DataLibrarry.Coupon memory coupon,
    DataLibrarry.CouponClaim memory couponClaim
  )
    internal
    pure
  {
    bytes32 digest = getMessageHashForClaim(couponClaim);
    if (_isVerifiedCoupon(digest, coupon) != signer)
      revert ITimeout.InvalidCoupon();
  }

  function getMessageHashForClaim(DataLibrarry.CouponClaim memory couponClaim)
    internal
    pure
    returns(bytes32)
  {
    return keccak256(
      abi.encode(
        couponClaim.user,
        couponClaim.legCount,
        couponClaim.urEggCount,
        couponClaim.urCount,
        couponClaim.basicEggCount,
        couponClaim.basicCount,
        couponClaim.phase
      )
    );
  }

  /**
  * @notice _isVerifiedCoupon verify the coupon
  * @return bool true or false if signature valid
  */
  function _isVerifiedCoupon(bytes32 digest, DataLibrarry.Coupon memory coupon)
    internal
    pure
    returns(address)
  {
    address signer = ecrecover(digest, coupon.v, coupon.r, coupon.s);
    return signer;
  }

  function logicRandomEvo(
    uint8 random,
    uint32 indexEvolutionBlue,
    uint32 indexEvolutionPink,
    uint32 maxSupplyEvo
  )
    internal
    pure
    returns(uint8)
  {
    if (random == 0) {
      if (indexEvolutionBlue > indexEvolutionPink) {
        uint32 plage = indexEvolutionBlue - indexEvolutionPink;
        if (plage > 4) {
          random = 1;
        }
      }
    } else {
      if (indexEvolutionBlue < indexEvolutionPink) {
        uint32 plage = indexEvolutionPink - indexEvolutionBlue;
        if (plage > 4) {
          random = 0;
        }
      }
    }
    if (indexEvolutionBlue >= maxSupplyEvo - 5 && indexEvolutionPink >= maxSupplyEvo - 5) {
      if (indexEvolutionBlue > indexEvolutionPink) {
        uint32 plage = indexEvolutionBlue - indexEvolutionPink;
        if (plage >= 1) {
          random = 1;
        }
      }
      if (indexEvolutionBlue < indexEvolutionPink) {
        uint32 plage = indexEvolutionPink - indexEvolutionBlue;
        if (plage >= 1) {
          random = 0;
        }
      }
    }
    return random;
  }
}

File 9 of 18 : ITimeout.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

interface ITimeout {
  // mint error

  error InvalidCoupon();

  error InvalidWhitelist();

  error InvalidQuantity();

  error QueryForNonExistantTokenId();

  error AlreadyUsePremint();

  error AlreadyUsePrivateSalesMint();

  error MaxSupplyPrivateSaleReach();

  error MaxSupplyReach();

  error InvalidPhase();


  // fusion error

  error CallerNotOwnerOfTokenId();

  error InvalidTokenIdsForFusion();

  // claim error

  error SenderIsContract();

  error InvalidEvolution();

  error ThisTokenIdAlreadyClaim();

  error FailToTransferGameFunds();

  error InvalidUser();

  error FailToTransferClaimFunds();

  error UserAlreadyClaimForThisPhase();

  // withdraw error

  error FailToWithdraw();
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 12 of 18 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 14 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 17 of 18 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.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();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    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;
        // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
        uint24 extraData;
    }

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

    // ==============================
    //            IERC2309
    // ==============================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
     * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 18 of 18 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyUsePremint","type":"error"},{"inputs":[],"name":"AlreadyUsePrivateSalesMint","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CallerNotOwnerOfTokenId","type":"error"},{"inputs":[],"name":"FailToTransferClaimFunds","type":"error"},{"inputs":[],"name":"FailToTransferGameFunds","type":"error"},{"inputs":[],"name":"FailToWithdraw","type":"error"},{"inputs":[],"name":"InvalidCoupon","type":"error"},{"inputs":[],"name":"InvalidEvolution","type":"error"},{"inputs":[],"name":"InvalidPhase","type":"error"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"InvalidTokenIdsForFusion","type":"error"},{"inputs":[],"name":"InvalidUser","type":"error"},{"inputs":[],"name":"InvalidWhitelist","type":"error"},{"inputs":[],"name":"MaxSupplyPrivateSaleReach","type":"error"},{"inputs":[],"name":"MaxSupplyReach","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"QueryForNonExistantTokenId","type":"error"},{"inputs":[],"name":"SenderIsContract","type":"error"},{"inputs":[],"name":"ThisTokenIdAlreadyClaim","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"UserAlreadyClaimForThisPhase","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"phase","type":"uint16"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenIdEvo7","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountClaim","type":"uint256"}],"name":"ClaimGame","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newURI","type":"string"},{"indexed":false,"internalType":"address","name":"updatedBy","type":"address"}],"name":"NewURI","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":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Receive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawClaimFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawGameFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum DataLibrarry.SalePhase","name":"phase","type":"uint8"}],"name":"updatePhase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"phase","type":"uint16"}],"name":"updatePhaseForClaim","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct DataLibrarry.Coupon","name":"coupon","type":"tuple"},{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"legCount","type":"uint256"},{"internalType":"uint256","name":"urEggCount","type":"uint256"},{"internalType":"uint256","name":"urCount","type":"uint256"},{"internalType":"uint256","name":"basicEggCount","type":"uint256"},{"internalType":"uint256","name":"basicCount","type":"uint256"},{"internalType":"uint256","name":"phase","type":"uint256"}],"internalType":"struct DataLibrarry.CouponClaim","name":"couponClaim","type":"tuple"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdEvo7","type":"uint256"}],"name":"claimGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo0","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo4","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo5","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId0","type":"uint256"},{"internalType":"uint256","name":"tokenId1","type":"uint256"}],"name":"fusionEvo6","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gameFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMetadatas","outputs":[{"components":[{"internalType":"uint8","name":"evolution","type":"uint8"},{"internalType":"uint8","name":"types","type":"uint8"}],"internalType":"struct DataLibrarry.Metadata","name":"data","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"indexMint","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFreeMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyToMint","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantityToMint","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum DataLibrarry.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseForClaim","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct DataLibrarry.Coupon","name":"coupon","type":"tuple"},{"internalType":"enum DataLibrarry.CouponType","name":"couponType","type":"uint8"},{"components":[{"internalType":"uint16","name":"BasicCount","type":"uint16"},{"internalType":"uint16","name":"UltrarareCount","type":"uint16"},{"internalType":"uint16","name":"LegendaireCount","type":"uint16"},{"internalType":"uint16","name":"eggCount","type":"uint16"}],"internalType":"struct DataLibrarry.CouponTypeCount","name":"count","type":"tuple"}],"name":"privatesalesmint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"random","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum DataLibrarry.SalePhase","name":"_phase","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newPhase","type":"uint8"}],"name":"setPhaseForClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyPremint","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantityToMint","type":"uint16"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct DataLibrarry.Coupon","name":"coupon","type":"tuple"},{"internalType":"enum DataLibrarry.CouponType","name":"couponType","type":"uint8"},{"components":[{"internalType":"uint16","name":"BasicCount","type":"uint16"},{"internalType":"uint16","name":"UltrarareCount","type":"uint16"},{"internalType":"uint16","name":"LegendaireCount","type":"uint16"},{"internalType":"uint16","name":"eggCount","type":"uint16"}],"internalType":"struct DataLibrarry.CouponTypeCount","name":"count","type":"tuple"}],"name":"whitelistsalesmint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawClaimFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawGameFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600e80546109c96303b684e560d11b0161ffff63ffffffff60d01b0119909116179055600f80546001600160a01b0319167399a7130dc775db71e5252de59f0f156df1b96d8917905560e060405260366080818152906200526d60a0398051620000729160109160209091019062000275565b506011805461ff00191690553480156200008b57600080fd5b50604080518082018252600d81526c2a34b6b2b7baba27b934b3b4b760991b602080830191825283518085019094526003845262544f4f60e81b908401528151919291620000dc9160029162000275565b508051620000f290600390602084019062000275565b505060016000555062000105336200011e565b6001600b5562000118306105dc62000170565b62000357565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620001e45760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200023c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001db565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b82805462000283906200031b565b90600052602060002090601f016020900481019282620002a75760008555620002f2565b82601f10620002c257805160ff1916838001178555620002f2565b82800160010185558215620002f2579182015b82811115620002f2578251825591602001919060010190620002d5565b506200030092915062000304565b5090565b5b8082111562000300576000815560010162000305565b600181811c908216806200033057607f821691505b6020821081036200035157634e487b7160e01b600052602260045260246000fd5b50919050565b614f0680620003676000396000f3fe60806040526004361061031d5760003560e01c8063715018a6116101ab578063b006751b116100f7578063c03afb5911610095578063d2ef07951161006f578063d2ef079514610aaa578063e985e9c514610ae5578063f2fde38b14610b05578063f93c853d14610b2557600080fd5b8063c03afb5914610a3d578063c23dc68f14610a5d578063c87b56dd14610a8a57600080fd5b8063b88d4fde116100d1578063b88d4fde146109bd578063b9199386146109dd578063bf670447146109fd578063bffb77d514610a1d57600080fd5b8063b006751b14610951578063b1a1c8e614610971578063b1c9fe6e1461099157600080fd5b8063937abd3711610164578063a0bcfc7f1161013e578063a0bcfc7f146108db578063a22cb465146108fb578063a96990cc1461091b578063ac3077731461093b57600080fd5b8063937abd371461088657806395d89b41146108a657806399a2557a146108bb57600080fd5b8063715018a6146107af5780637e60531e146107c45780638462151c146107e45780638acf70b2146108115780638da5cb5b146108275780639216b3701461084557600080fd5b806342842e0e1161026a5780635bbb2177116102235780636352211e116101fd5780636352211e1461073a5780636c0360eb1461075a5780636ecd23061461076f57806370a082311461078f57600080fd5b80635bbb2177146106b65780635d729df5146106e35780635ec01e4d1461071357600080fd5b806342842e0e1461061757806342bf085a1461063757806348a1e66b146106575780634a9928ad1461066c578063512735591461068157806356a281621461069657600080fd5b80631d82cc35116102d75780632a55205a116102b15780632a55205a1461055957806337b341b31461059857806339236bef146105ba57806340849c8e146105da57600080fd5b80631d82cc351461050357806323b872dd1461051957806324ec24e81461053957600080fd5b80621ca2d7146103fd57806301ffc9a71461043057806306fdde0314610460578063081812fc14610482578063095ea7b3146104ba57806318160ddd146104dc57600080fd5b366103f857346103356008546001600160a01b031690565b6001600160a01b031633036103615780600c600082825461035691906141f3565b909155506103bd9050565b606461036e82604b61420b565b6103789190614240565b600c600082825461038991906141f3565b909155506064905061039c82601961420b565b6103a69190614240565b600d60008282546103b791906141f3565b90915550505b60408051338152602081018390527fd6717f327e0cb88b4a97a7f67a453e9258252c34937ccbdd86de7cb840e7def3910160405180910390a1005b600080fd5b34801561040957600080fd5b50600e546104189061ffff1681565b60405161ffff90911681526020015b60405180910390f35b34801561043c57600080fd5b5061045061044b36600461426a565b610b3b565b6040519015158152602001610427565b34801561046c57600080fd5b50610475610bb7565b60405161042791906142df565b34801561048e57600080fd5b506104a261049d3660046142f2565b610c49565b6040516001600160a01b039091168152602001610427565b3480156104c657600080fd5b506104da6104d5366004614322565b610c8d565b005b3480156104e857600080fd5b5060015460005403600019015b604051908152602001610427565b34801561050f57600080fd5b506104186109c981565b34801561052557600080fd5b506104da61053436600461434c565b610d2d565b34801561054557600080fd5b506104da610554366004614388565b610ecf565b34801561056557600080fd5b50610579610574366004614388565b6111cc565b604080516001600160a01b039093168352602083019190915201610427565b3480156105a457600080fd5b50600e5461041890600160f01b900461ffff1681565b3480156105c657600080fd5b506104da6105d53660046142f2565b611278565b3480156105e657600080fd5b50600e54600160f01b900461ffff16600090815260136020908152604080832033845290915290205460ff16610450565b34801561062357600080fd5b506104da61063236600461434c565b611447565b34801561064357600080fd5b506104da61065236600461452b565b611467565b34801561066357600080fd5b506104da6115a8565b34801561067857600080fd5b506104da61162b565b34801561068d57600080fd5b506104da6116db565b3480156106a257600080fd5b506104da6106b1366004614388565b611780565b3480156106c257600080fd5b506106d66106d1366004614582565b6119d4565b6040516104279190614663565b3480156106ef57600080fd5b506104506106fe3660046146a5565b60146020526000908152604090205460ff1681565b34801561071f57600080fd5b50610728611aa1565b60405160ff9091168152602001610427565b34801561074657600080fd5b506104a26107553660046142f2565b611ae9565b34801561076657600080fd5b50610475611af4565b34801561077b57600080fd5b506104da61078a3660046146c0565b611b82565b34801561079b57600080fd5b506104f56107aa3660046146a5565b611cb5565b3480156107bb57600080fd5b506104da611d03565b3480156107d057600080fd5b506104da6107df366004614388565b611d17565b3480156107f057600080fd5b506108046107ff3660046146a5565b611fca565b60405161042791906146db565b34801561081d57600080fd5b506104f5600c5481565b34801561083357600080fd5b506008546001600160a01b03166104a2565b34801561085157600080fd5b506108656108603660046142f2565b6120d2565b60408051825160ff9081168252602093840151169281019290925201610427565b34801561089257600080fd5b506104da6108a1366004614713565b612180565b3480156108b257600080fd5b50610475612323565b3480156108c757600080fd5b506108046108d6366004614759565b612332565b3480156108e757600080fd5b506104da6108f63660046147e3565b6124b9565b34801561090757600080fd5b506104da61091636600461482b565b612506565b34801561092757600080fd5b506104da610936366004614388565b61259b565b34801561094757600080fd5b506104f5600d5481565b34801561095d57600080fd5b506104da61096c366004614388565b61284f565b34801561097d57600080fd5b506104da61098c366004614388565b612aeb565b34801561099d57600080fd5b506011546109b090610100900460ff1681565b604051610427919061487d565b3480156109c957600080fd5b506104da6109d8366004614897565b612d9f565b3480156109e957600080fd5b506104da6109f83660046146c0565b612de3565b348015610a0957600080fd5b506104da610a18366004614912565b612e3a565b348015610a2957600080fd5b506104da610a38366004614388565b613101565b348015610a4957600080fd5b506104da610a583660046149a5565b6133c3565b348015610a6957600080fd5b50610a7d610a783660046142f2565b613420565b60405161042791906149c6565b348015610a9657600080fd5b50610475610aa53660046142f2565b6134a8565b348015610ab657600080fd5b50610450610ac53660046149d4565b601360209081526000928352604080842090915290825290205460ff1681565b348015610af157600080fd5b50610450610b00366004614a00565b6135dd565b348015610b1157600080fd5b506104da610b203660046146a5565b61360b565b348015610b3157600080fd5b5061041861200081565b60006001600160e01b0319821663152a902d60e11b1480610b6c57506001600160e01b031982166301ffc9a760e01b145b80610b8757506380ac58cd60e01b6001600160e01b03198316145b80610ba25750635b5e139f60e01b6001600160e01b03198316145b80610bb15750610bb182613684565b92915050565b606060028054610bc690614a2a565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf290614a2a565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b5050505050905090565b6000610c54826136b9565b610c71576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c9882611ae9565b9050336001600160a01b03821614610cd157610cb481336135dd565b610cd1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d38826136ee565b9050836001600160a01b0316816001600160a01b031614610d6b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610d978187335b6001600160a01b039081169116811491141790565b610dc257610da586336135dd565b610dc257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610de957604051633a954ecd60e21b815260040160405180910390fd5b8015610df457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e8657600184016000818152600460205260408120549003610e84576000548114610e845760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6004601154610100900460ff166004811115610eed57610eed614867565b14610f135760405162461bcd60e51b8152600401610f0a90614a64565b60405180910390fd5b610f1c826136b9565b1580610f2e5750610f2c816136b9565b155b15610f4c57604051630cd4afff60e01b815260040160405180910390fd5b33610f5683611ae9565b6001600160a01b0316141580610f7d575033610f7182611ae9565b6001600160a01b031614155b15610f9b5760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000610fb9611aa1565b600085815260126020526040902054909150610100900460ff16158015610ff45750600083815260126020526040902054610100900460ff16155b80611038575060008481526012602052604090205460ff610100909104166001148015611038575060008381526012602052604090205460ff610100909104166001145b156110565760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff166005141580611089575060008381526012602052604090205460ff16600514155b156110a75760405163177fee8360e01b815260040160405180910390fd5b600e546110cc90829061ffff600160b01b8204811691600160c01b900416604061375d565b90508060ff1660000361110b5760006020830152600e8054600161ffff600160b01b808404821692909201160261ffff60b01b1990911617905561113d565b600160208301819052600e805461ffff600160c01b80830482169094011690920261ffff60c01b199092169190911790555b60068252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b61119483613899565b61119f3360016138a4565b600e8054600161ffff600160d01b808404821692909201160261ffff60d01b199091161790555b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112415750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611260906001600160601b03168761420b565b61126a9190614240565b915196919550909350505050565b6002600b54036112ca5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f0a565b6002600b55333b156112ef57604051631b67e63960e01b815260040160405180910390fd5b6112f8816136b9565b61131557604051630cd4afff60e01b815260040160405180910390fd5b3361131f82611ae9565b6001600160a01b0316146113465760405163fb0d26af60e01b815260040160405180910390fd5b60008181526012602052604090205460ff16600714611378576040516330be256360e11b815260040160405180910390fd5b6002600c546113879190614240565b600c81905560405160009133918381818185875af1925050503d80600081146113cc576040519150601f19603f3d011682016040523d82523d6000602084013e6113d1565b606091505b50509050806113f35760405163d558b6e760e01b815260040160405180910390fd5b6113fc82613899565b600c546040805184815233602082015280820192909252517fe553833251cb2736e49869c36df1254cb119b3e160ddee32ffc163a361a238699181900360600190a150506001600b55565b61146283838360405180602001604052806000815250612d9f565b505050565b6002601154610100900460ff16600481111561148557611485614867565b146114a35760405163268dbf6760e21b815260040160405180910390fd5b600f546114bb906001600160a01b0316848484613984565b336000908152601560205260409020546002906114dd90869061ffff16614a8b565b61ffff1611156115005760405163524f409b60e01b815260040160405180910390fd5b600e546120009061151690869061ffff16614a8b565b61ffff16111561153957604051632d7a008560e11b815260040160405180910390fd5b611547338561ffff166138a4565b5050336000908152601560205260409020805461ffff1980821661ffff9283168601831617909255600e805461ffff61ffff60d01b01198116600160d01b808304851688018516029485161790831693831693909317909401161790915550565b6115b06139d4565b60115460ff16156115d4576040516342f8c5cd60e01b815260040160405180910390fd5b6000601154610100900460ff1660048111156115f2576115f2614867565b146116105760405163268dbf6760e21b815260040160405180910390fd5b61161c336109c96138a4565b6011805460ff19166001179055565b6116336139d4565b600d5460405160009133918381818185875af1925050503d8060008114611676576040519150601f19603f3d011682016040523d82523d6000602084013e61167b565b606091505b505090508061169d576040516303e4130960e51b815260040160405180910390fd5b7ff06b968f376992cb39cae0430ac5abeac2afa77ecd69f95596944918de2d6ded600d546040516116d091815260200190565b60405180910390a150565b6116e36139d4565b600c5460405160009133918381818185875af1925050503d8060008114611726576040519150601f19603f3d011682016040523d82523d6000602084013e61172b565b606091505b505090508061174d576040516303e4130960e51b815260040160405180910390fd5b7f0ddd1e1f1feaf1334e0e43aa38b666f8a6aa56232e379578e4d627aee307737b600c546040516116d091815260200190565b6004601154610100900460ff16600481111561179e5761179e614867565b146117bb5760405162461bcd60e51b8152600401610f0a90614a64565b6117c4826136b9565b15806117d657506117d4816136b9565b155b156117f457604051630cd4afff60e01b815260040160405180910390fd5b336117fe83611ae9565b6001600160a01b031614158061182557503361181982611ae9565b6001600160a01b031614155b156118435760405163fb0d26af60e01b815260040160405180910390fd5b6040805180820190915260008082526020820152600083815260126020526040902054610100900460ff1615801561188f5750600082815260126020526040902054610100900460ff16155b806118d3575060008381526012602052604090205460ff6101009091041660011480156118d3575060008281526012602052604090205460ff610100909104166001145b156118f15760405163177fee8360e01b815260040160405180910390fd5b60008381526012602052604090205460ff166006141580611924575060008281526012602052604090205460ff16600614155b156119425760405163177fee8360e01b815260040160405180910390fd5b6007815260036020808301918252600e5461ffff600160d01b90910416600090815260129091526040902082518154925160ff9081166101000261ffff1990941691161791909117905561199583613899565b61199e82613899565b6119a93360016138a4565b600e8054600161ffff600160d01b808404821692909201160261ffff60d01b19909116179055505050565b80516060906000816001600160401b038111156119f3576119f36143bc565b604051908082528060200260200182016040528015611a4557816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181611a115790505b50905060005b828114611a9957611a74858281518110611a6757611a67614ab1565b6020026020010151613420565b828281518110611a8657611a86614ab1565b6020908102919091010152600101611a4b565b509392505050565b600060024442604051602001611ac1929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c611ae49190614ac7565b905090565b6000610bb1826136ee565b60108054611b0190614a2a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2d90614a2a565b8015611b7a5780601f10611b4f57610100808354040283529160200191611b7a565b820191906000526020600020905b815481529060010190602001808311611b5d57829003601f168201915b505050505081565b6003601154610100900460ff166004811115611ba057611ba0614867565b14611bbe5760405163268dbf6760e21b815260040160405180910390fd5b33600090815260166020526040902054600590611be39060ff84169061ffff16614a8b565b61ffff161115611c065760405163524f409b60e01b815260040160405180910390fd5b600e5461200090611c1f9060ff84169061ffff16614a8b565b61ffff161115611c4257604051632d7a008560e11b815260040160405180910390fd5b611c4f338260ff166138a4565b336000908152601660205260409020805461ffff1980821660ff9490941661ffff9283168101831694909417909255600e805461ffff61ffff60d01b01198116600160d01b80830485168701851602948516179083169383169390931790930116179055565b60006001600160a01b038216611cde576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611d0b6139d4565b611d156000613a2e565b565b6004601154610100900460ff166004811115611d3557611d35614867565b14611d525760405162461bcd60e51b8152600401610f0a90614a64565b611d5b826136b9565b1580611d6d5750611d6b816136b9565b155b15611d8b57604051630cd4afff60e01b815260040160405180910390fd5b33611d9583611ae9565b6001600160a01b0316141580611dbc575033611db082611ae9565b6001600160a01b031614155b15611dda5760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000611df8611aa1565b600085815260126020526040902054909150610100900460ff16158015611e335750600083815260126020526040902054610100900460ff16155b80611e77575060008481526012602052604090205460ff610100909104166001148015611e77575060008381526012602052604090205460ff610100909104166001145b15611e955760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff166004141580611ec8575060008381526012602052604090205460ff16600414155b15611ee65760405163177fee8360e01b815260040160405180910390fd5b600e54611f0b90829061ffff600160901b8204811691600160a01b900416608061375d565b90508060ff16600003611f4a5760006020830152600e8054600161ffff600160901b808404821692909201160261ffff60901b19909116179055611f7c565b600160208301819052600e805461ffff600160a01b80830482169094011690920261ffff60a01b199092169190911790555b60058252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b60606000806000611fda85611cb5565b90506000816001600160401b03811115611ff657611ff66143bc565b60405190808252806020026020018201604052801561201f578160200160208202803683370190505b50905061204c60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146120c65761205f81613a80565b915081604001516120be5781516001600160a01b03161561207f57815194505b876001600160a01b0316856001600160a01b0316036120be57808387806001019850815181106120b1576120b1614ab1565b6020026020010181815250505b60010161204f565b50909695505050505050565b60408051808201909152600080825260208201526120ef826136b9565b61210c57604051630cd4afff60e01b815260040160405180910390fd5b60008281526012602052604081205460ff16900361214f5761212f600283614ac7565b6000036121425760006020820152919050565b600160208201525b919050565b5060009081526012602090815260409182902082518084019093525460ff8082168452610100909104169082015290565b6001601154610100900460ff16600481111561219e5761219e614867565b146121bc5760405163268dbf6760e21b815260040160405180910390fd5b3360009081526014602052604090205460ff1615156001036121f1576040516319ed3b7b60e11b815260040160405180910390fd5b600f54612209906001600160a01b0316848484613984565b600182600181111561221d5761221d614867565b0361223b57604051635c4ff00360e11b815260040160405180910390fd5b6000816060015160020282604001516004028360200151600302846000015160020201010190506109c9600e601c9054906101000a900461ffff166122809190614a8b565b600e5461ffff9182169161229691849116614a8b565b61ffff1611156122b957604051632a8c358960e21b815260040160405180910390fd5b6122c7338261ffff166138a4565b600e805461ffff600160d01b80830482168501821602808216828416179094011661ffff1990931661ffff61ffff60d01b0119909116179190911790555050336000908152601460205260409020805460ff1916600117905550565b606060038054610bc690614a2a565b606081831061235457604051631960ccad60e11b815260040160405180910390fd5b60008061236060005490565b9050600185101561237057600194505b8084111561237c578093505b600061238787611cb5565b9050848610156123a657858503818110156123a0578091505b506123aa565b5060005b6000816001600160401b038111156123c4576123c46143bc565b6040519080825280602002602001820160405280156123ed578160200160208202803683370190505b509050816000036124035793506124b292505050565b600061240e88613420565b90506000816040015161241f575080515b885b8881141580156124315750848714155b156124a65761243f81613a80565b9250826040015161249e5782516001600160a01b03161561245f57825191505b8a6001600160a01b0316826001600160a01b03160361249e578084888060010199508151811061249157612491614ab1565b6020026020010181815250505b600101612421565b50505092835250909150505b9392505050565b6124c16139d4565b80516124d4906010906020840190614144565b507fc7908db8c8588ac430ee4efe758e7ba70a0d22e32a138b548fd0d34fa8a4839581336040516116d0929190614adb565b336001600160a01b0383160361252f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004601154610100900460ff1660048111156125b9576125b9614867565b146125d65760405162461bcd60e51b8152600401610f0a90614a64565b6125df826136b9565b15806125f157506125ef816136b9565b155b1561260f57604051630cd4afff60e01b815260040160405180910390fd5b3361261983611ae9565b6001600160a01b031614158061264057503361263482611ae9565b6001600160a01b031614155b1561265e5760405163fb0d26af60e01b815260040160405180910390fd5b6040805180820190915260008082526020820152600061267c611aa1565b600085815260126020526040902054909150610100900460ff161580156126b75750600083815260126020526040902054610100900460ff16155b806126fb575060008481526012602052604090205460ff6101009091041660011480156126fb575060008381526012602052604090205460ff610100909104166001145b156127195760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff16600214158061274c575060008381526012602052604090205460ff16600214155b1561276a5760405163177fee8360e01b815260040160405180910390fd5b600e5461279090829061ffff600160501b8204811691600160601b90041661020061375d565b90508060ff166000036127cf5760006020830152600e8054600161ffff600160501b808404821692909201160261ffff60501b19909116179055612801565b600160208301819052600e805461ffff600160601b80830482169094011690920261ffff60601b199092169190911790555b60038252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b6004601154610100900460ff16600481111561286d5761286d614867565b1461288a5760405162461bcd60e51b8152600401610f0a90614a64565b612893826136b9565b15806128a557506128a3816136b9565b155b156128c357604051630cd4afff60e01b815260040160405180910390fd5b336128cd83611ae9565b6001600160a01b03161415806128f45750336128e882611ae9565b6001600160a01b031614155b156129125760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000612930611aa1565b60008581526012602052604090205490915060ff16151580612962575060008381526012602052604090205460ff1615155b156129805760405163177fee8360e01b815260040160405180910390fd5b600061298d600286614ac7565b9050600061299c600286614ac7565b90508060ff168260ff16036129c45760405163177fee8360e01b815260040160405180910390fd5b600e546129ea90849061ffff62010000820481169164010000000090041661080061375d565b92508260ff16600003612a275760006020850152600e8054600161ffff62010000808404821692909201160263ffff000019909116179055612a5b565b600160208501819052600e805461ffff64010000000080830482169094011690920265ffff00000000199092169190911790555b60018452600e5461ffff600160d01b909104166000908152601260209081526040909120855181549287015160ff9081166101000261ffff19909416911617919091179055612aa986613899565b612ab285613899565b612abd3360016138a4565b5050600e8054600161ffff600160d01b808404821692909201160261ffff60d01b1990911617905550505050565b6004601154610100900460ff166004811115612b0957612b09614867565b14612b265760405162461bcd60e51b8152600401610f0a90614a64565b612b2f826136b9565b1580612b415750612b3f816136b9565b155b15612b5f57604051630cd4afff60e01b815260040160405180910390fd5b33612b6983611ae9565b6001600160a01b0316141580612b90575033612b8482611ae9565b6001600160a01b031614155b15612bae5760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000612bcc611aa1565b600085815260126020526040902054909150610100900460ff16158015612c075750600083815260126020526040902054610100900460ff16155b80612c4b575060008481526012602052604090205460ff610100909104166001148015612c4b575060008381526012602052604090205460ff610100909104166001145b15612c695760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff166003141580612c9c575060008381526012602052604090205460ff16600314155b15612cba5760405163177fee8360e01b815260040160405180910390fd5b600e54612ce090829061ffff600160701b8204811691600160801b90041661010061375d565b90508060ff16600003612d1f5760006020830152600e8054600161ffff600160701b808404821692909201160261ffff60701b19909116179055612d51565b600160208301819052600e805461ffff600160801b80830482169094011690920261ffff60801b199092169190911790555b60048252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b612daa848484610d2d565b6001600160a01b0383163b156111c657612dc684848484613abc565b6111c6576040516368d2bf6b60e11b815260040160405180910390fd5b612deb6139d4565b600e80546001600160f01b031660ff8316600160f01b8102919091179091556040519081527f9fae59ffe0f4afdf0a60db62802b902021c660224540fb521f9a8ffc19636655906020016116d0565b6002600b5403612e8c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f0a565b6002600b55333b15612eb157604051631b67e63960e01b815260040160405180910390fd5b80516001600160a01b03163314612edb5760405163fd684c3b60e01b815260040160405180910390fd5b600e54600160f01b900461ffff16600090815260136020908152604080832033845290915290205460ff1615612f2357604051627d5d6d60e11b815260040160405180910390fd5b600e5460c0820151600160f01b90910461ffff1614612f555760405163268dbf6760e21b815260040160405180910390fd5b600f54612f6c906001600160a01b03168383613ba4565b60008160a001516001612f7f919061420b565b6080830151612f8f90600261420b565b6060840151612f9f90600561420b565b6040850151612faf90600661420b565b6020860151612fbf90600a61420b565b612fc991906141f3565b612fd391906141f3565b612fdd91906141f3565b612fe791906141f3565b905060008161050e61ffff16600d546130009190614240565b61300a919061420b565b604051909150600090339083908381818185875af1925050503d806000811461304f576040519150601f19603f3d011682016040523d82523d6000602084013e613054565b606091505b50509050806130765760405163766c647960e01b815260040160405180910390fd5b600e805461ffff600160f01b91829004811660009081526013602090815260408083203380855290835292819020805460ff19166001179055945485519283529082018790529290920416918101919091527f0414118624d9fc11e875a6c6065d5664d0ff5d46ffd8ed732e125311fbc611a49060600160405180910390a150506001600b55505050565b6004601154610100900460ff16600481111561311f5761311f614867565b1461313c5760405162461bcd60e51b8152600401610f0a90614a64565b613145826136b9565b15806131575750613155816136b9565b155b1561317557604051630cd4afff60e01b815260040160405180910390fd5b3361317f83611ae9565b6001600160a01b03161415806131a657503361319a82611ae9565b6001600160a01b031614155b156131c45760405163fb0d26af60e01b815260040160405180910390fd5b604080518082019091526000808252602082015260006131e2611aa1565b600085815260126020526040902054909150610100900460ff1615801561321d5750600083815260126020526040902054610100900460ff16155b80613261575060008481526012602052604090205460ff610100909104166001148015613261575060008381526012602052604090205460ff610100909104166001145b1561327f5760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff1660011415806132b2575060008381526012602052604090205460ff16600114155b156132d05760405163177fee8360e01b815260040160405180910390fd5b600e546132f990829061ffff66010000000000008204811691600160401b90041661040061375d565b90508060ff1660000361333e5760006020830152600e8054600161ffff6601000000000000808404821692909201160267ffff00000000000019909116179055613375565b600160208301819052600e805461ffff600160401b80830482169094011690920269ffff0000000000000000199092169190911790555b60028252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b6133cb6139d4565b6011805482919061ff0019166101008360048111156133ec576133ec614867565b02179055507fcf3d8e53760202bc7465ebbdd1853b59f1d66307a4ae92f72a06333ae7bb8783816040516116d0919061487d565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061347957506000548310155b156134845792915050565b61348d83613a80565b905080604001511561349f5792915050565b6124b283613c61565b60606134b3826136b9565b6134d057604051630a14c4b560e41b815260040160405180910390fd5b60006134db836120d2565b905060006134e884613c96565b60106134fa846000015160ff16613c96565b61350a856020015160ff16613c96565b60405160200161351d9493929190614b21565b6040516020818303038152906040529050600081613541846000015160ff16613c96565b602085015160ff161561356d57604051806040016040528060018152602001604160f81b815250613588565b604051806040016040528060018152602001602160f91b8152505b60405160200161359a93929190614c73565b60405160208183030381529060405290506135b481613d96565b6040516020016135c49190614d4e565b6040516020818303038152906040529350505050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6136136139d4565b6001600160a01b0381166136785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f0a565b61368181613a2e565b50565b60006001600160e01b0319821663152a902d60e11b1480610bb157506301ffc9a760e01b6001600160e01b0319831614610bb1565b6000816001111580156136cd575060005482105b8015610bb1575050600090815260046020526040902054600160e01b161590565b60008180600111613744576000548110156137445760008181526004602052604081205490600160e01b82169003613742575b806000036124b2575060001901600081815260046020526040902054613721565b505b604051636f96cda160e11b815260040160405180910390fd5b60008460ff166000036137a7578263ffffffff168463ffffffff1611156137a257600061378a8486614d93565b905060048163ffffffff1611156137a057600195505b505b6137df565b8263ffffffff168463ffffffff1610156137df5760006137c78585614d93565b905060048163ffffffff1611156137dd57600095505b505b6137ea600583614d93565b63ffffffff168463ffffffff161015801561381b575061380b600583614d93565b63ffffffff168363ffffffff1610155b1561388e578263ffffffff168463ffffffff1611156138575760006138408486614d93565b905060018163ffffffff161061385557600195505b505b8263ffffffff168463ffffffff16101561388e5760006138778585614d93565b905060018163ffffffff161061388c57600095505b505b50835b949350505050565b613681816000613ee8565b6000546001600160a01b0383166138cd57604051622e076360e81b815260040160405180910390fd5b816000036138ee5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106139385760005550505050565b60006139908383614032565b9050846001600160a01b03166139a6828661407d565b6001600160a01b0316146139cd5760405163c73e16c160e01b815260040160405180910390fd5b5050505050565b6008546001600160a01b03163314611d155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f0a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610bb1906140fd565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613af1903390899088908890600401614db8565b6020604051808303816000875af1925050508015613b2c575060408051601f3d908101601f19168201909252613b2991810190614df5565b60015b613b8a573d808015613b5a576040519150601f19603f3d011682016040523d82523d6000602084013e613b5f565b606091505b508051600003613b82576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613891565b6000613c2482805160208083015160408085015160608087015160808089015160a0808b015160c0808d015189516001600160a01b03909d169b8d019b909b52978b01989098529389019490945287015285015283015260e082015260009061010001604051602081830303815290604052805190602001209050919050565b9050836001600160a01b0316613c3a828561407d565b6001600160a01b0316146111c65760405163c73e16c160e01b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152610bb1613c91836136ee565b6140fd565b606081600003613cbd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613ce75780613cd181614e12565b9150613ce09050600a83614240565b9150613cc1565b6000816001600160401b03811115613d0157613d016143bc565b6040519080825280601f01601f191660200182016040528015613d2b576020820181803683370190505b5090505b841561389157613d40600183614e2b565b9150613d4d600a86614ac7565b613d589060306141f3565b60f81b818381518110613d6d57613d6d614ab1565b60200101906001600160f81b031916908160001a905350613d8f600a86614240565b9450613d2f565b60608151600003613db557505060408051602081019091526000815290565b6000604051806060016040528060408152602001614e916040913990506000600384516002613de491906141f3565b613dee9190614240565b613df990600461420b565b6001600160401b03811115613e1057613e106143bc565b6040519080825280601f01601f191660200182016040528015613e3a576020820181803683370190505b509050600182016020820185865187015b80821015613ea6576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250613e4b565b5050600386510660018114613ec25760028114613ed557613edd565b603d6001830353603d6002830353613edd565b603d60018303535b509195945050505050565b6000613ef3836136ee565b905080600080613f1186600090815260066020526040902080549091565b915091508415613f5157613f26818433610d82565b613f5157613f3483336135dd565b613f5157604051632ce44b5f60e11b815260040160405180910390fd5b8015613f5c57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003613fea57600186016000818152600460205260408120549003613fe8576000548114613fe85760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b60008282600001518360200151846040015185606001513360405160200161405f96959493929190614e42565b60405160208183030381529060405280519060200120905092915050565b600080600184846040015185600001518660200151604051600081526020016040526040516140c8949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa1580156140ea573d6000803e3d6000fd5b5050604051601f19015195945050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b82805461415090614a2a565b90600052602060002090601f01602090048101928261417257600085556141b8565b82601f1061418b57805160ff19168380011785556141b8565b828001600101855582156141b8579182015b828111156141b857825182559160200191906001019061419d565b506141c49291506141c8565b5090565b5b808211156141c457600081556001016141c9565b634e487b7160e01b600052601160045260246000fd5b60008219821115614206576142066141dd565b500190565b6000816000190483118215151615614225576142256141dd565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261424f5761424f61422a565b500490565b6001600160e01b03198116811461368157600080fd5b60006020828403121561427c57600080fd5b81356124b281614254565b60005b838110156142a257818101518382015260200161428a565b838111156111c65750506000910152565b600081518084526142cb816020860160208601614287565b601f01601f19169290920160200192915050565b6020815260006124b260208301846142b3565b60006020828403121561430457600080fd5b5035919050565b80356001600160a01b038116811461214a57600080fd5b6000806040838503121561433557600080fd5b61433e8361430b565b946020939093013593505050565b60008060006060848603121561436157600080fd5b61436a8461430b565b92506143786020850161430b565b9150604084013590509250925092565b6000806040838503121561439b57600080fd5b50508035926020909101359150565b803561ffff8116811461214a57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156143f4576143f46143bc565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614422576144226143bc565b604052919050565b803560ff8116811461214a57600080fd5b60006060828403121561444d57600080fd5b604051606081018181106001600160401b038211171561446f5761446f6143bc565b806040525080915082358152602083013560208201526144916040840161442a565b60408201525092915050565b80356002811061214a57600080fd5b6000608082840312156144be57600080fd5b604051608081018181106001600160401b03821117156144e0576144e06143bc565b6040529050806144ef836143aa565b81526144fd602084016143aa565b602082015261450e604084016143aa565b604082015261451f606084016143aa565b60608201525092915050565b600080600080610120858703121561454257600080fd5b61454b856143aa565b935061455a866020870161443b565b92506145686080860161449d565b91506145778660a087016144ac565b905092959194509250565b6000602080838503121561459557600080fd5b82356001600160401b03808211156145ac57600080fd5b818501915085601f8301126145c057600080fd5b8135818111156145d2576145d26143bc565b8060051b91506145e38483016143fa565b81815291830184019184810190888411156145fd57600080fd5b938501935b8385101561461b57843582529385019390850190614602565b98975050505050505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156120c657614692838551614627565b928401926080929092019160010161467f565b6000602082840312156146b757600080fd5b6124b28261430b565b6000602082840312156146d257600080fd5b6124b28261442a565b6020808252825182820181905260009190848201906040850190845b818110156120c6578351835292840192918401916001016146f7565b6000806000610100848603121561472957600080fd5b614733858561443b565b92506147416060850161449d565b915061475085608086016144ac565b90509250925092565b60008060006060848603121561476e57600080fd5b6147778461430b565b95602085013595506040909401359392505050565b60006001600160401b038311156147a5576147a56143bc565b6147b8601f8401601f19166020016143fa565b90508281528383830111156147cc57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156147f557600080fd5b81356001600160401b0381111561480b57600080fd5b8201601f8101841361481c57600080fd5b6138918482356020840161478c565b6000806040838503121561483e57600080fd5b6148478361430b565b91506020830135801515811461485c57600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016005831061489157614891614867565b91905290565b600080600080608085870312156148ad57600080fd5b6148b68561430b565b93506148c46020860161430b565b92506040850135915060608501356001600160401b038111156148e657600080fd5b8501601f810187136148f757600080fd5b6149068782356020840161478c565b91505092959194509250565b60008082840361014081121561492757600080fd5b614931858561443b565b925060e0605f198201121561494557600080fd5b5061494e6143d2565b61495a6060850161430b565b81526080840135602082015260a0840135604082015260c0840135606082015260e0840135608082015261010084013560a082015261012084013560c0820152809150509250929050565b6000602082840312156149b757600080fd5b8135600581106124b257600080fd5b60808101610bb18284614627565b600080604083850312156149e757600080fd5b823591506149f76020840161430b565b90509250929050565b60008060408385031215614a1357600080fd5b614a1c8361430b565b91506149f76020840161430b565b600181811c90821680614a3e57607f821691505b602082108103614a5e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c496e76616c696420706861736560981b604082015260600190565b600061ffff808316818516808303821115614aa857614aa86141dd565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600082614ad657614ad661422a565b500690565b604081526000614aee60408301856142b3565b905060018060a01b03831660208301529392505050565b60008151614b17818560208601614287565b9290920192915050565b607b60f81b8152600060017f226e616d65223a202254696d654f75744f726967696e202300000000000000008184015286516020614b658260198701838c01614287565b601160f91b6019928601928301819052600b60fa1b601a8401526801134b6b0b3b2911d160bd1b601b8401526024830152875460259060009080861c86821680614bb057607f821691505b8582108103614bcd57634e487b7160e01b84526022600452602484fd5b808015614be15760018114614bf657614c27565b60ff1984168887015282880186019450614c27565b60008e81526020902060005b84811015614c1d5781548a8201890152908a01908801614c02565b5050858389010194505b50505050614c64614c51614c4b614c3e848d614b05565b602d60f81b815260010190565b8a614b05565b660b9a9c1959c88b60ca1b815260070190565b9b9a5050505050505050505050565b60008451614c85818460208901614287565b80830190507f2261747472696275746573223a205b7b2274726169745f74797065223a2022458152733b37b63aba34b7b71116113b30b63ab2911d101160611b60208201528451614cdd816034840160208901614287565b62089f4b60ea1b603492909101918201527f7b2274726169745f74797065223a202274797065222c2276616c7565223a202260378201528351614d27816057840160208801614287565b62227d5d60e81b60579290910191820152607d60f81b605a820152605b0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614d8681601d850160208701614287565b91909101601d0192915050565b600063ffffffff83811690831681811015614db057614db06141dd565b039392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614deb908301846142b3565b9695505050505050565b600060208284031215614e0757600080fd5b81516124b281614254565b600060018201614e2457614e246141dd565b5060010190565b600082821015614e3d57614e3d6141dd565b500390565b60c0810160028810614e5657614e56614867565b96815261ffff95861660208201529385166040850152918416606084015290921660808201526001600160a01b0390911660a0909101529056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204bf9171875730a95221058ca7b1f1bfc68d7373dca4da2376d1423d4bb7988b264736f6c634300080d0033697066733a2f2f516d614346316e486137696d48786f78333372685877366d4d447536395055576e637043564b3748314b6d6336422f

Deployed Bytecode

0x60806040526004361061031d5760003560e01c8063715018a6116101ab578063b006751b116100f7578063c03afb5911610095578063d2ef07951161006f578063d2ef079514610aaa578063e985e9c514610ae5578063f2fde38b14610b05578063f93c853d14610b2557600080fd5b8063c03afb5914610a3d578063c23dc68f14610a5d578063c87b56dd14610a8a57600080fd5b8063b88d4fde116100d1578063b88d4fde146109bd578063b9199386146109dd578063bf670447146109fd578063bffb77d514610a1d57600080fd5b8063b006751b14610951578063b1a1c8e614610971578063b1c9fe6e1461099157600080fd5b8063937abd3711610164578063a0bcfc7f1161013e578063a0bcfc7f146108db578063a22cb465146108fb578063a96990cc1461091b578063ac3077731461093b57600080fd5b8063937abd371461088657806395d89b41146108a657806399a2557a146108bb57600080fd5b8063715018a6146107af5780637e60531e146107c45780638462151c146107e45780638acf70b2146108115780638da5cb5b146108275780639216b3701461084557600080fd5b806342842e0e1161026a5780635bbb2177116102235780636352211e116101fd5780636352211e1461073a5780636c0360eb1461075a5780636ecd23061461076f57806370a082311461078f57600080fd5b80635bbb2177146106b65780635d729df5146106e35780635ec01e4d1461071357600080fd5b806342842e0e1461061757806342bf085a1461063757806348a1e66b146106575780634a9928ad1461066c578063512735591461068157806356a281621461069657600080fd5b80631d82cc35116102d75780632a55205a116102b15780632a55205a1461055957806337b341b31461059857806339236bef146105ba57806340849c8e146105da57600080fd5b80631d82cc351461050357806323b872dd1461051957806324ec24e81461053957600080fd5b80621ca2d7146103fd57806301ffc9a71461043057806306fdde0314610460578063081812fc14610482578063095ea7b3146104ba57806318160ddd146104dc57600080fd5b366103f857346103356008546001600160a01b031690565b6001600160a01b031633036103615780600c600082825461035691906141f3565b909155506103bd9050565b606461036e82604b61420b565b6103789190614240565b600c600082825461038991906141f3565b909155506064905061039c82601961420b565b6103a69190614240565b600d60008282546103b791906141f3565b90915550505b60408051338152602081018390527fd6717f327e0cb88b4a97a7f67a453e9258252c34937ccbdd86de7cb840e7def3910160405180910390a1005b600080fd5b34801561040957600080fd5b50600e546104189061ffff1681565b60405161ffff90911681526020015b60405180910390f35b34801561043c57600080fd5b5061045061044b36600461426a565b610b3b565b6040519015158152602001610427565b34801561046c57600080fd5b50610475610bb7565b60405161042791906142df565b34801561048e57600080fd5b506104a261049d3660046142f2565b610c49565b6040516001600160a01b039091168152602001610427565b3480156104c657600080fd5b506104da6104d5366004614322565b610c8d565b005b3480156104e857600080fd5b5060015460005403600019015b604051908152602001610427565b34801561050f57600080fd5b506104186109c981565b34801561052557600080fd5b506104da61053436600461434c565b610d2d565b34801561054557600080fd5b506104da610554366004614388565b610ecf565b34801561056557600080fd5b50610579610574366004614388565b6111cc565b604080516001600160a01b039093168352602083019190915201610427565b3480156105a457600080fd5b50600e5461041890600160f01b900461ffff1681565b3480156105c657600080fd5b506104da6105d53660046142f2565b611278565b3480156105e657600080fd5b50600e54600160f01b900461ffff16600090815260136020908152604080832033845290915290205460ff16610450565b34801561062357600080fd5b506104da61063236600461434c565b611447565b34801561064357600080fd5b506104da61065236600461452b565b611467565b34801561066357600080fd5b506104da6115a8565b34801561067857600080fd5b506104da61162b565b34801561068d57600080fd5b506104da6116db565b3480156106a257600080fd5b506104da6106b1366004614388565b611780565b3480156106c257600080fd5b506106d66106d1366004614582565b6119d4565b6040516104279190614663565b3480156106ef57600080fd5b506104506106fe3660046146a5565b60146020526000908152604090205460ff1681565b34801561071f57600080fd5b50610728611aa1565b60405160ff9091168152602001610427565b34801561074657600080fd5b506104a26107553660046142f2565b611ae9565b34801561076657600080fd5b50610475611af4565b34801561077b57600080fd5b506104da61078a3660046146c0565b611b82565b34801561079b57600080fd5b506104f56107aa3660046146a5565b611cb5565b3480156107bb57600080fd5b506104da611d03565b3480156107d057600080fd5b506104da6107df366004614388565b611d17565b3480156107f057600080fd5b506108046107ff3660046146a5565b611fca565b60405161042791906146db565b34801561081d57600080fd5b506104f5600c5481565b34801561083357600080fd5b506008546001600160a01b03166104a2565b34801561085157600080fd5b506108656108603660046142f2565b6120d2565b60408051825160ff9081168252602093840151169281019290925201610427565b34801561089257600080fd5b506104da6108a1366004614713565b612180565b3480156108b257600080fd5b50610475612323565b3480156108c757600080fd5b506108046108d6366004614759565b612332565b3480156108e757600080fd5b506104da6108f63660046147e3565b6124b9565b34801561090757600080fd5b506104da61091636600461482b565b612506565b34801561092757600080fd5b506104da610936366004614388565b61259b565b34801561094757600080fd5b506104f5600d5481565b34801561095d57600080fd5b506104da61096c366004614388565b61284f565b34801561097d57600080fd5b506104da61098c366004614388565b612aeb565b34801561099d57600080fd5b506011546109b090610100900460ff1681565b604051610427919061487d565b3480156109c957600080fd5b506104da6109d8366004614897565b612d9f565b3480156109e957600080fd5b506104da6109f83660046146c0565b612de3565b348015610a0957600080fd5b506104da610a18366004614912565b612e3a565b348015610a2957600080fd5b506104da610a38366004614388565b613101565b348015610a4957600080fd5b506104da610a583660046149a5565b6133c3565b348015610a6957600080fd5b50610a7d610a783660046142f2565b613420565b60405161042791906149c6565b348015610a9657600080fd5b50610475610aa53660046142f2565b6134a8565b348015610ab657600080fd5b50610450610ac53660046149d4565b601360209081526000928352604080842090915290825290205460ff1681565b348015610af157600080fd5b50610450610b00366004614a00565b6135dd565b348015610b1157600080fd5b506104da610b203660046146a5565b61360b565b348015610b3157600080fd5b5061041861200081565b60006001600160e01b0319821663152a902d60e11b1480610b6c57506001600160e01b031982166301ffc9a760e01b145b80610b8757506380ac58cd60e01b6001600160e01b03198316145b80610ba25750635b5e139f60e01b6001600160e01b03198316145b80610bb15750610bb182613684565b92915050565b606060028054610bc690614a2a565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf290614a2a565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b5050505050905090565b6000610c54826136b9565b610c71576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c9882611ae9565b9050336001600160a01b03821614610cd157610cb481336135dd565b610cd1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d38826136ee565b9050836001600160a01b0316816001600160a01b031614610d6b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610d978187335b6001600160a01b039081169116811491141790565b610dc257610da586336135dd565b610dc257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610de957604051633a954ecd60e21b815260040160405180910390fd5b8015610df457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e8657600184016000818152600460205260408120549003610e84576000548114610e845760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6004601154610100900460ff166004811115610eed57610eed614867565b14610f135760405162461bcd60e51b8152600401610f0a90614a64565b60405180910390fd5b610f1c826136b9565b1580610f2e5750610f2c816136b9565b155b15610f4c57604051630cd4afff60e01b815260040160405180910390fd5b33610f5683611ae9565b6001600160a01b0316141580610f7d575033610f7182611ae9565b6001600160a01b031614155b15610f9b5760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000610fb9611aa1565b600085815260126020526040902054909150610100900460ff16158015610ff45750600083815260126020526040902054610100900460ff16155b80611038575060008481526012602052604090205460ff610100909104166001148015611038575060008381526012602052604090205460ff610100909104166001145b156110565760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff166005141580611089575060008381526012602052604090205460ff16600514155b156110a75760405163177fee8360e01b815260040160405180910390fd5b600e546110cc90829061ffff600160b01b8204811691600160c01b900416604061375d565b90508060ff1660000361110b5760006020830152600e8054600161ffff600160b01b808404821692909201160261ffff60b01b1990911617905561113d565b600160208301819052600e805461ffff600160c01b80830482169094011690920261ffff60c01b199092169190911790555b60068252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b61119483613899565b61119f3360016138a4565b600e8054600161ffff600160d01b808404821692909201160261ffff60d01b199091161790555b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112415750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611260906001600160601b03168761420b565b61126a9190614240565b915196919550909350505050565b6002600b54036112ca5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f0a565b6002600b55333b156112ef57604051631b67e63960e01b815260040160405180910390fd5b6112f8816136b9565b61131557604051630cd4afff60e01b815260040160405180910390fd5b3361131f82611ae9565b6001600160a01b0316146113465760405163fb0d26af60e01b815260040160405180910390fd5b60008181526012602052604090205460ff16600714611378576040516330be256360e11b815260040160405180910390fd5b6002600c546113879190614240565b600c81905560405160009133918381818185875af1925050503d80600081146113cc576040519150601f19603f3d011682016040523d82523d6000602084013e6113d1565b606091505b50509050806113f35760405163d558b6e760e01b815260040160405180910390fd5b6113fc82613899565b600c546040805184815233602082015280820192909252517fe553833251cb2736e49869c36df1254cb119b3e160ddee32ffc163a361a238699181900360600190a150506001600b55565b61146283838360405180602001604052806000815250612d9f565b505050565b6002601154610100900460ff16600481111561148557611485614867565b146114a35760405163268dbf6760e21b815260040160405180910390fd5b600f546114bb906001600160a01b0316848484613984565b336000908152601560205260409020546002906114dd90869061ffff16614a8b565b61ffff1611156115005760405163524f409b60e01b815260040160405180910390fd5b600e546120009061151690869061ffff16614a8b565b61ffff16111561153957604051632d7a008560e11b815260040160405180910390fd5b611547338561ffff166138a4565b5050336000908152601560205260409020805461ffff1980821661ffff9283168601831617909255600e805461ffff61ffff60d01b01198116600160d01b808304851688018516029485161790831693831693909317909401161790915550565b6115b06139d4565b60115460ff16156115d4576040516342f8c5cd60e01b815260040160405180910390fd5b6000601154610100900460ff1660048111156115f2576115f2614867565b146116105760405163268dbf6760e21b815260040160405180910390fd5b61161c336109c96138a4565b6011805460ff19166001179055565b6116336139d4565b600d5460405160009133918381818185875af1925050503d8060008114611676576040519150601f19603f3d011682016040523d82523d6000602084013e61167b565b606091505b505090508061169d576040516303e4130960e51b815260040160405180910390fd5b7ff06b968f376992cb39cae0430ac5abeac2afa77ecd69f95596944918de2d6ded600d546040516116d091815260200190565b60405180910390a150565b6116e36139d4565b600c5460405160009133918381818185875af1925050503d8060008114611726576040519150601f19603f3d011682016040523d82523d6000602084013e61172b565b606091505b505090508061174d576040516303e4130960e51b815260040160405180910390fd5b7f0ddd1e1f1feaf1334e0e43aa38b666f8a6aa56232e379578e4d627aee307737b600c546040516116d091815260200190565b6004601154610100900460ff16600481111561179e5761179e614867565b146117bb5760405162461bcd60e51b8152600401610f0a90614a64565b6117c4826136b9565b15806117d657506117d4816136b9565b155b156117f457604051630cd4afff60e01b815260040160405180910390fd5b336117fe83611ae9565b6001600160a01b031614158061182557503361181982611ae9565b6001600160a01b031614155b156118435760405163fb0d26af60e01b815260040160405180910390fd5b6040805180820190915260008082526020820152600083815260126020526040902054610100900460ff1615801561188f5750600082815260126020526040902054610100900460ff16155b806118d3575060008381526012602052604090205460ff6101009091041660011480156118d3575060008281526012602052604090205460ff610100909104166001145b156118f15760405163177fee8360e01b815260040160405180910390fd5b60008381526012602052604090205460ff166006141580611924575060008281526012602052604090205460ff16600614155b156119425760405163177fee8360e01b815260040160405180910390fd5b6007815260036020808301918252600e5461ffff600160d01b90910416600090815260129091526040902082518154925160ff9081166101000261ffff1990941691161791909117905561199583613899565b61199e82613899565b6119a93360016138a4565b600e8054600161ffff600160d01b808404821692909201160261ffff60d01b19909116179055505050565b80516060906000816001600160401b038111156119f3576119f36143bc565b604051908082528060200260200182016040528015611a4557816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181611a115790505b50905060005b828114611a9957611a74858281518110611a6757611a67614ab1565b6020026020010151613420565b828281518110611a8657611a86614ab1565b6020908102919091010152600101611a4b565b509392505050565b600060024442604051602001611ac1929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c611ae49190614ac7565b905090565b6000610bb1826136ee565b60108054611b0190614a2a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2d90614a2a565b8015611b7a5780601f10611b4f57610100808354040283529160200191611b7a565b820191906000526020600020905b815481529060010190602001808311611b5d57829003601f168201915b505050505081565b6003601154610100900460ff166004811115611ba057611ba0614867565b14611bbe5760405163268dbf6760e21b815260040160405180910390fd5b33600090815260166020526040902054600590611be39060ff84169061ffff16614a8b565b61ffff161115611c065760405163524f409b60e01b815260040160405180910390fd5b600e5461200090611c1f9060ff84169061ffff16614a8b565b61ffff161115611c4257604051632d7a008560e11b815260040160405180910390fd5b611c4f338260ff166138a4565b336000908152601660205260409020805461ffff1980821660ff9490941661ffff9283168101831694909417909255600e805461ffff61ffff60d01b01198116600160d01b80830485168701851602948516179083169383169390931790930116179055565b60006001600160a01b038216611cde576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611d0b6139d4565b611d156000613a2e565b565b6004601154610100900460ff166004811115611d3557611d35614867565b14611d525760405162461bcd60e51b8152600401610f0a90614a64565b611d5b826136b9565b1580611d6d5750611d6b816136b9565b155b15611d8b57604051630cd4afff60e01b815260040160405180910390fd5b33611d9583611ae9565b6001600160a01b0316141580611dbc575033611db082611ae9565b6001600160a01b031614155b15611dda5760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000611df8611aa1565b600085815260126020526040902054909150610100900460ff16158015611e335750600083815260126020526040902054610100900460ff16155b80611e77575060008481526012602052604090205460ff610100909104166001148015611e77575060008381526012602052604090205460ff610100909104166001145b15611e955760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff166004141580611ec8575060008381526012602052604090205460ff16600414155b15611ee65760405163177fee8360e01b815260040160405180910390fd5b600e54611f0b90829061ffff600160901b8204811691600160a01b900416608061375d565b90508060ff16600003611f4a5760006020830152600e8054600161ffff600160901b808404821692909201160261ffff60901b19909116179055611f7c565b600160208301819052600e805461ffff600160a01b80830482169094011690920261ffff60a01b199092169190911790555b60058252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b60606000806000611fda85611cb5565b90506000816001600160401b03811115611ff657611ff66143bc565b60405190808252806020026020018201604052801561201f578160200160208202803683370190505b50905061204c60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146120c65761205f81613a80565b915081604001516120be5781516001600160a01b03161561207f57815194505b876001600160a01b0316856001600160a01b0316036120be57808387806001019850815181106120b1576120b1614ab1565b6020026020010181815250505b60010161204f565b50909695505050505050565b60408051808201909152600080825260208201526120ef826136b9565b61210c57604051630cd4afff60e01b815260040160405180910390fd5b60008281526012602052604081205460ff16900361214f5761212f600283614ac7565b6000036121425760006020820152919050565b600160208201525b919050565b5060009081526012602090815260409182902082518084019093525460ff8082168452610100909104169082015290565b6001601154610100900460ff16600481111561219e5761219e614867565b146121bc5760405163268dbf6760e21b815260040160405180910390fd5b3360009081526014602052604090205460ff1615156001036121f1576040516319ed3b7b60e11b815260040160405180910390fd5b600f54612209906001600160a01b0316848484613984565b600182600181111561221d5761221d614867565b0361223b57604051635c4ff00360e11b815260040160405180910390fd5b6000816060015160020282604001516004028360200151600302846000015160020201010190506109c9600e601c9054906101000a900461ffff166122809190614a8b565b600e5461ffff9182169161229691849116614a8b565b61ffff1611156122b957604051632a8c358960e21b815260040160405180910390fd5b6122c7338261ffff166138a4565b600e805461ffff600160d01b80830482168501821602808216828416179094011661ffff1990931661ffff61ffff60d01b0119909116179190911790555050336000908152601460205260409020805460ff1916600117905550565b606060038054610bc690614a2a565b606081831061235457604051631960ccad60e11b815260040160405180910390fd5b60008061236060005490565b9050600185101561237057600194505b8084111561237c578093505b600061238787611cb5565b9050848610156123a657858503818110156123a0578091505b506123aa565b5060005b6000816001600160401b038111156123c4576123c46143bc565b6040519080825280602002602001820160405280156123ed578160200160208202803683370190505b509050816000036124035793506124b292505050565b600061240e88613420565b90506000816040015161241f575080515b885b8881141580156124315750848714155b156124a65761243f81613a80565b9250826040015161249e5782516001600160a01b03161561245f57825191505b8a6001600160a01b0316826001600160a01b03160361249e578084888060010199508151811061249157612491614ab1565b6020026020010181815250505b600101612421565b50505092835250909150505b9392505050565b6124c16139d4565b80516124d4906010906020840190614144565b507fc7908db8c8588ac430ee4efe758e7ba70a0d22e32a138b548fd0d34fa8a4839581336040516116d0929190614adb565b336001600160a01b0383160361252f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004601154610100900460ff1660048111156125b9576125b9614867565b146125d65760405162461bcd60e51b8152600401610f0a90614a64565b6125df826136b9565b15806125f157506125ef816136b9565b155b1561260f57604051630cd4afff60e01b815260040160405180910390fd5b3361261983611ae9565b6001600160a01b031614158061264057503361263482611ae9565b6001600160a01b031614155b1561265e5760405163fb0d26af60e01b815260040160405180910390fd5b6040805180820190915260008082526020820152600061267c611aa1565b600085815260126020526040902054909150610100900460ff161580156126b75750600083815260126020526040902054610100900460ff16155b806126fb575060008481526012602052604090205460ff6101009091041660011480156126fb575060008381526012602052604090205460ff610100909104166001145b156127195760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff16600214158061274c575060008381526012602052604090205460ff16600214155b1561276a5760405163177fee8360e01b815260040160405180910390fd5b600e5461279090829061ffff600160501b8204811691600160601b90041661020061375d565b90508060ff166000036127cf5760006020830152600e8054600161ffff600160501b808404821692909201160261ffff60501b19909116179055612801565b600160208301819052600e805461ffff600160601b80830482169094011690920261ffff60601b199092169190911790555b60038252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b6004601154610100900460ff16600481111561286d5761286d614867565b1461288a5760405162461bcd60e51b8152600401610f0a90614a64565b612893826136b9565b15806128a557506128a3816136b9565b155b156128c357604051630cd4afff60e01b815260040160405180910390fd5b336128cd83611ae9565b6001600160a01b03161415806128f45750336128e882611ae9565b6001600160a01b031614155b156129125760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000612930611aa1565b60008581526012602052604090205490915060ff16151580612962575060008381526012602052604090205460ff1615155b156129805760405163177fee8360e01b815260040160405180910390fd5b600061298d600286614ac7565b9050600061299c600286614ac7565b90508060ff168260ff16036129c45760405163177fee8360e01b815260040160405180910390fd5b600e546129ea90849061ffff62010000820481169164010000000090041661080061375d565b92508260ff16600003612a275760006020850152600e8054600161ffff62010000808404821692909201160263ffff000019909116179055612a5b565b600160208501819052600e805461ffff64010000000080830482169094011690920265ffff00000000199092169190911790555b60018452600e5461ffff600160d01b909104166000908152601260209081526040909120855181549287015160ff9081166101000261ffff19909416911617919091179055612aa986613899565b612ab285613899565b612abd3360016138a4565b5050600e8054600161ffff600160d01b808404821692909201160261ffff60d01b1990911617905550505050565b6004601154610100900460ff166004811115612b0957612b09614867565b14612b265760405162461bcd60e51b8152600401610f0a90614a64565b612b2f826136b9565b1580612b415750612b3f816136b9565b155b15612b5f57604051630cd4afff60e01b815260040160405180910390fd5b33612b6983611ae9565b6001600160a01b0316141580612b90575033612b8482611ae9565b6001600160a01b031614155b15612bae5760405163fb0d26af60e01b815260040160405180910390fd5b60408051808201909152600080825260208201526000612bcc611aa1565b600085815260126020526040902054909150610100900460ff16158015612c075750600083815260126020526040902054610100900460ff16155b80612c4b575060008481526012602052604090205460ff610100909104166001148015612c4b575060008381526012602052604090205460ff610100909104166001145b15612c695760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff166003141580612c9c575060008381526012602052604090205460ff16600314155b15612cba5760405163177fee8360e01b815260040160405180910390fd5b600e54612ce090829061ffff600160701b8204811691600160801b90041661010061375d565b90508060ff16600003612d1f5760006020830152600e8054600161ffff600160701b808404821692909201160261ffff60701b19909116179055612d51565b600160208301819052600e805461ffff600160801b80830482169094011690920261ffff60801b199092169190911790555b60048252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b612daa848484610d2d565b6001600160a01b0383163b156111c657612dc684848484613abc565b6111c6576040516368d2bf6b60e11b815260040160405180910390fd5b612deb6139d4565b600e80546001600160f01b031660ff8316600160f01b8102919091179091556040519081527f9fae59ffe0f4afdf0a60db62802b902021c660224540fb521f9a8ffc19636655906020016116d0565b6002600b5403612e8c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f0a565b6002600b55333b15612eb157604051631b67e63960e01b815260040160405180910390fd5b80516001600160a01b03163314612edb5760405163fd684c3b60e01b815260040160405180910390fd5b600e54600160f01b900461ffff16600090815260136020908152604080832033845290915290205460ff1615612f2357604051627d5d6d60e11b815260040160405180910390fd5b600e5460c0820151600160f01b90910461ffff1614612f555760405163268dbf6760e21b815260040160405180910390fd5b600f54612f6c906001600160a01b03168383613ba4565b60008160a001516001612f7f919061420b565b6080830151612f8f90600261420b565b6060840151612f9f90600561420b565b6040850151612faf90600661420b565b6020860151612fbf90600a61420b565b612fc991906141f3565b612fd391906141f3565b612fdd91906141f3565b612fe791906141f3565b905060008161050e61ffff16600d546130009190614240565b61300a919061420b565b604051909150600090339083908381818185875af1925050503d806000811461304f576040519150601f19603f3d011682016040523d82523d6000602084013e613054565b606091505b50509050806130765760405163766c647960e01b815260040160405180910390fd5b600e805461ffff600160f01b91829004811660009081526013602090815260408083203380855290835292819020805460ff19166001179055945485519283529082018790529290920416918101919091527f0414118624d9fc11e875a6c6065d5664d0ff5d46ffd8ed732e125311fbc611a49060600160405180910390a150506001600b55505050565b6004601154610100900460ff16600481111561311f5761311f614867565b1461313c5760405162461bcd60e51b8152600401610f0a90614a64565b613145826136b9565b15806131575750613155816136b9565b155b1561317557604051630cd4afff60e01b815260040160405180910390fd5b3361317f83611ae9565b6001600160a01b03161415806131a657503361319a82611ae9565b6001600160a01b031614155b156131c45760405163fb0d26af60e01b815260040160405180910390fd5b604080518082019091526000808252602082015260006131e2611aa1565b600085815260126020526040902054909150610100900460ff1615801561321d5750600083815260126020526040902054610100900460ff16155b80613261575060008481526012602052604090205460ff610100909104166001148015613261575060008381526012602052604090205460ff610100909104166001145b1561327f5760405163177fee8360e01b815260040160405180910390fd5b60008481526012602052604090205460ff1660011415806132b2575060008381526012602052604090205460ff16600114155b156132d05760405163177fee8360e01b815260040160405180910390fd5b600e546132f990829061ffff66010000000000008204811691600160401b90041661040061375d565b90508060ff1660000361333e5760006020830152600e8054600161ffff6601000000000000808404821692909201160267ffff00000000000019909116179055613375565b600160208301819052600e805461ffff600160401b80830482169094011690920269ffff0000000000000000199092169190911790555b60028252600e5461ffff600160d01b909104166000908152601260209081526040909120835181549285015160ff9081166101000261ffff1990941691161791909117905561118b84613899565b6133cb6139d4565b6011805482919061ff0019166101008360048111156133ec576133ec614867565b02179055507fcf3d8e53760202bc7465ebbdd1853b59f1d66307a4ae92f72a06333ae7bb8783816040516116d0919061487d565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061347957506000548310155b156134845792915050565b61348d83613a80565b905080604001511561349f5792915050565b6124b283613c61565b60606134b3826136b9565b6134d057604051630a14c4b560e41b815260040160405180910390fd5b60006134db836120d2565b905060006134e884613c96565b60106134fa846000015160ff16613c96565b61350a856020015160ff16613c96565b60405160200161351d9493929190614b21565b6040516020818303038152906040529050600081613541846000015160ff16613c96565b602085015160ff161561356d57604051806040016040528060018152602001604160f81b815250613588565b604051806040016040528060018152602001602160f91b8152505b60405160200161359a93929190614c73565b60405160208183030381529060405290506135b481613d96565b6040516020016135c49190614d4e565b6040516020818303038152906040529350505050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6136136139d4565b6001600160a01b0381166136785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f0a565b61368181613a2e565b50565b60006001600160e01b0319821663152a902d60e11b1480610bb157506301ffc9a760e01b6001600160e01b0319831614610bb1565b6000816001111580156136cd575060005482105b8015610bb1575050600090815260046020526040902054600160e01b161590565b60008180600111613744576000548110156137445760008181526004602052604081205490600160e01b82169003613742575b806000036124b2575060001901600081815260046020526040902054613721565b505b604051636f96cda160e11b815260040160405180910390fd5b60008460ff166000036137a7578263ffffffff168463ffffffff1611156137a257600061378a8486614d93565b905060048163ffffffff1611156137a057600195505b505b6137df565b8263ffffffff168463ffffffff1610156137df5760006137c78585614d93565b905060048163ffffffff1611156137dd57600095505b505b6137ea600583614d93565b63ffffffff168463ffffffff161015801561381b575061380b600583614d93565b63ffffffff168363ffffffff1610155b1561388e578263ffffffff168463ffffffff1611156138575760006138408486614d93565b905060018163ffffffff161061385557600195505b505b8263ffffffff168463ffffffff16101561388e5760006138778585614d93565b905060018163ffffffff161061388c57600095505b505b50835b949350505050565b613681816000613ee8565b6000546001600160a01b0383166138cd57604051622e076360e81b815260040160405180910390fd5b816000036138ee5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106139385760005550505050565b60006139908383614032565b9050846001600160a01b03166139a6828661407d565b6001600160a01b0316146139cd5760405163c73e16c160e01b815260040160405180910390fd5b5050505050565b6008546001600160a01b03163314611d155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f0a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610bb1906140fd565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613af1903390899088908890600401614db8565b6020604051808303816000875af1925050508015613b2c575060408051601f3d908101601f19168201909252613b2991810190614df5565b60015b613b8a573d808015613b5a576040519150601f19603f3d011682016040523d82523d6000602084013e613b5f565b606091505b508051600003613b82576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613891565b6000613c2482805160208083015160408085015160608087015160808089015160a0808b015160c0808d015189516001600160a01b03909d169b8d019b909b52978b01989098529389019490945287015285015283015260e082015260009061010001604051602081830303815290604052805190602001209050919050565b9050836001600160a01b0316613c3a828561407d565b6001600160a01b0316146111c65760405163c73e16c160e01b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152610bb1613c91836136ee565b6140fd565b606081600003613cbd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613ce75780613cd181614e12565b9150613ce09050600a83614240565b9150613cc1565b6000816001600160401b03811115613d0157613d016143bc565b6040519080825280601f01601f191660200182016040528015613d2b576020820181803683370190505b5090505b841561389157613d40600183614e2b565b9150613d4d600a86614ac7565b613d589060306141f3565b60f81b818381518110613d6d57613d6d614ab1565b60200101906001600160f81b031916908160001a905350613d8f600a86614240565b9450613d2f565b60608151600003613db557505060408051602081019091526000815290565b6000604051806060016040528060408152602001614e916040913990506000600384516002613de491906141f3565b613dee9190614240565b613df990600461420b565b6001600160401b03811115613e1057613e106143bc565b6040519080825280601f01601f191660200182016040528015613e3a576020820181803683370190505b509050600182016020820185865187015b80821015613ea6576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250613e4b565b5050600386510660018114613ec25760028114613ed557613edd565b603d6001830353603d6002830353613edd565b603d60018303535b509195945050505050565b6000613ef3836136ee565b905080600080613f1186600090815260066020526040902080549091565b915091508415613f5157613f26818433610d82565b613f5157613f3483336135dd565b613f5157604051632ce44b5f60e11b815260040160405180910390fd5b8015613f5c57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003613fea57600186016000818152600460205260408120549003613fe8576000548114613fe85760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b60008282600001518360200151846040015185606001513360405160200161405f96959493929190614e42565b60405160208183030381529060405280519060200120905092915050565b600080600184846040015185600001518660200151604051600081526020016040526040516140c8949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa1580156140ea573d6000803e3d6000fd5b5050604051601f19015195945050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b82805461415090614a2a565b90600052602060002090601f01602090048101928261417257600085556141b8565b82601f1061418b57805160ff19168380011785556141b8565b828001600101855582156141b8579182015b828111156141b857825182559160200191906001019061419d565b506141c49291506141c8565b5090565b5b808211156141c457600081556001016141c9565b634e487b7160e01b600052601160045260246000fd5b60008219821115614206576142066141dd565b500190565b6000816000190483118215151615614225576142256141dd565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261424f5761424f61422a565b500490565b6001600160e01b03198116811461368157600080fd5b60006020828403121561427c57600080fd5b81356124b281614254565b60005b838110156142a257818101518382015260200161428a565b838111156111c65750506000910152565b600081518084526142cb816020860160208601614287565b601f01601f19169290920160200192915050565b6020815260006124b260208301846142b3565b60006020828403121561430457600080fd5b5035919050565b80356001600160a01b038116811461214a57600080fd5b6000806040838503121561433557600080fd5b61433e8361430b565b946020939093013593505050565b60008060006060848603121561436157600080fd5b61436a8461430b565b92506143786020850161430b565b9150604084013590509250925092565b6000806040838503121561439b57600080fd5b50508035926020909101359150565b803561ffff8116811461214a57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156143f4576143f46143bc565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614422576144226143bc565b604052919050565b803560ff8116811461214a57600080fd5b60006060828403121561444d57600080fd5b604051606081018181106001600160401b038211171561446f5761446f6143bc565b806040525080915082358152602083013560208201526144916040840161442a565b60408201525092915050565b80356002811061214a57600080fd5b6000608082840312156144be57600080fd5b604051608081018181106001600160401b03821117156144e0576144e06143bc565b6040529050806144ef836143aa565b81526144fd602084016143aa565b602082015261450e604084016143aa565b604082015261451f606084016143aa565b60608201525092915050565b600080600080610120858703121561454257600080fd5b61454b856143aa565b935061455a866020870161443b565b92506145686080860161449d565b91506145778660a087016144ac565b905092959194509250565b6000602080838503121561459557600080fd5b82356001600160401b03808211156145ac57600080fd5b818501915085601f8301126145c057600080fd5b8135818111156145d2576145d26143bc565b8060051b91506145e38483016143fa565b81815291830184019184810190888411156145fd57600080fd5b938501935b8385101561461b57843582529385019390850190614602565b98975050505050505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156120c657614692838551614627565b928401926080929092019160010161467f565b6000602082840312156146b757600080fd5b6124b28261430b565b6000602082840312156146d257600080fd5b6124b28261442a565b6020808252825182820181905260009190848201906040850190845b818110156120c6578351835292840192918401916001016146f7565b6000806000610100848603121561472957600080fd5b614733858561443b565b92506147416060850161449d565b915061475085608086016144ac565b90509250925092565b60008060006060848603121561476e57600080fd5b6147778461430b565b95602085013595506040909401359392505050565b60006001600160401b038311156147a5576147a56143bc565b6147b8601f8401601f19166020016143fa565b90508281528383830111156147cc57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156147f557600080fd5b81356001600160401b0381111561480b57600080fd5b8201601f8101841361481c57600080fd5b6138918482356020840161478c565b6000806040838503121561483e57600080fd5b6148478361430b565b91506020830135801515811461485c57600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016005831061489157614891614867565b91905290565b600080600080608085870312156148ad57600080fd5b6148b68561430b565b93506148c46020860161430b565b92506040850135915060608501356001600160401b038111156148e657600080fd5b8501601f810187136148f757600080fd5b6149068782356020840161478c565b91505092959194509250565b60008082840361014081121561492757600080fd5b614931858561443b565b925060e0605f198201121561494557600080fd5b5061494e6143d2565b61495a6060850161430b565b81526080840135602082015260a0840135604082015260c0840135606082015260e0840135608082015261010084013560a082015261012084013560c0820152809150509250929050565b6000602082840312156149b757600080fd5b8135600581106124b257600080fd5b60808101610bb18284614627565b600080604083850312156149e757600080fd5b823591506149f76020840161430b565b90509250929050565b60008060408385031215614a1357600080fd5b614a1c8361430b565b91506149f76020840161430b565b600181811c90821680614a3e57607f821691505b602082108103614a5e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c496e76616c696420706861736560981b604082015260600190565b600061ffff808316818516808303821115614aa857614aa86141dd565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600082614ad657614ad661422a565b500690565b604081526000614aee60408301856142b3565b905060018060a01b03831660208301529392505050565b60008151614b17818560208601614287565b9290920192915050565b607b60f81b8152600060017f226e616d65223a202254696d654f75744f726967696e202300000000000000008184015286516020614b658260198701838c01614287565b601160f91b6019928601928301819052600b60fa1b601a8401526801134b6b0b3b2911d160bd1b601b8401526024830152875460259060009080861c86821680614bb057607f821691505b8582108103614bcd57634e487b7160e01b84526022600452602484fd5b808015614be15760018114614bf657614c27565b60ff1984168887015282880186019450614c27565b60008e81526020902060005b84811015614c1d5781548a8201890152908a01908801614c02565b5050858389010194505b50505050614c64614c51614c4b614c3e848d614b05565b602d60f81b815260010190565b8a614b05565b660b9a9c1959c88b60ca1b815260070190565b9b9a5050505050505050505050565b60008451614c85818460208901614287565b80830190507f2261747472696275746573223a205b7b2274726169745f74797065223a2022458152733b37b63aba34b7b71116113b30b63ab2911d101160611b60208201528451614cdd816034840160208901614287565b62089f4b60ea1b603492909101918201527f7b2274726169745f74797065223a202274797065222c2276616c7565223a202260378201528351614d27816057840160208801614287565b62227d5d60e81b60579290910191820152607d60f81b605a820152605b0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614d8681601d850160208701614287565b91909101601d0192915050565b600063ffffffff83811690831681811015614db057614db06141dd565b039392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614deb908301846142b3565b9695505050505050565b600060208284031215614e0757600080fd5b81516124b281614254565b600060018201614e2457614e246141dd565b5060010190565b600082821015614e3d57614e3d6141dd565b500390565b60c0810160028810614e5657614e56614867565b96815261ffff95861660208201529385166040850152918416606084015290921660808201526001600160a01b0390911660a0909101529056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204bf9171875730a95221058ca7b1f1bfc68d7373dca4da2376d1423d4bb7988b264736f6c634300080d0033

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

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