ETH Price: $2,666.01 (+2.10%)

Contract

0xF8e465C2Db4794A87B345414F47F00acCADDaCAB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint With Usd188828762023-12-28 8:19:23306 days ago1703751563IN
0xF8e465C2...cCADDaCAB
0 ETH0.0042754826.08627953
Set Usd Price184855762023-11-02 16:27:23362 days ago1698942443IN
0xF8e465C2...cCADDaCAB
0 ETH0.0016582235.84649981
Set Usd Price184855742023-11-02 16:26:59362 days ago1698942419IN
0xF8e465C2...cCADDaCAB
0 ETH0.0009922334.02837253
Set Usd Price184855722023-11-02 16:26:35362 days ago1698942395IN
0xF8e465C2...cCADDaCAB
0 ETH0.000985133.79782434
Set Usd Price184855672023-11-02 16:25:35362 days ago1698942335IN
0xF8e465C2...cCADDaCAB
0 ETH0.0010288935.30005869
Set Usd Price184855652023-11-02 16:25:11362 days ago1698942311IN
0xF8e465C2...cCADDaCAB
0 ETH0.0010178834.92233211
Set Usd Price184855562023-11-02 16:23:23362 days ago1698942203IN
0xF8e465C2...cCADDaCAB
0 ETH0.0011797940.51089839
Mint With Usd181689872023-09-19 9:12:23406 days ago1695114743IN
0xF8e465C2...cCADDaCAB
0 ETH0.0014021211.02775421
Mint With Usd181633222023-09-18 14:09:59407 days ago1695046199IN
0xF8e465C2...cCADDaCAB
0 ETH0.004193129.0693337
Set Usd Price181629142023-09-18 12:47:35407 days ago1695041255IN
0xF8e465C2...cCADDaCAB
0 ETH0.0004454215.28205723
Set Usd Price181629122023-09-18 12:47:11407 days ago1695041231IN
0xF8e465C2...cCADDaCAB
0 ETH0.0003985613.67419834
Set Usd Price181629102023-09-18 12:46:47407 days ago1695041207IN
0xF8e465C2...cCADDaCAB
0 ETH0.0004217914.47714625
Mint With Usd181163822023-09-11 23:27:11414 days ago1694474831IN
0xF8e465C2...cCADDaCAB
0 ETH0.001346159.33241211
Mint With Usd181128652023-09-11 11:38:23414 days ago1694432303IN
0xF8e465C2...cCADDaCAB
0 ETH0.0018150812.58334959
Mint With Usd181106642023-09-11 4:14:59415 days ago1694405699IN
0xF8e465C2...cCADDaCAB
0 ETH0.001200818.32483923
Mint With Usd180830822023-09-07 7:31:35419 days ago1694071895IN
0xF8e465C2...cCADDaCAB
0 ETH0.0014150211.15296849
Mint With Usd180246912023-08-30 3:18:23427 days ago1693365503IN
0xF8e465C2...cCADDaCAB
0 ETH0.002097416.53137912
Set Usd Price180206442023-08-29 13:43:23427 days ago1693316603IN
0xF8e465C2...cCADDaCAB
0 ETH0.0007890427.05992816
Set Default Toke...180120262023-08-28 8:43:11428 days ago1693212191IN
0xF8e465C2...cCADDaCAB
0 ETH0.0010696222.87423496
Set Default Toke...180120242023-08-28 8:42:47428 days ago1693212167IN
0xF8e465C2...cCADDaCAB
0 ETH0.0013443321.06678654
Set Default Toke...180120222023-08-28 8:42:23428 days ago1693212143IN
0xF8e465C2...cCADDaCAB
0 ETH0.0009748320.84721298
Set Default Toke...180120212023-08-28 8:42:11428 days ago1693212131IN
0xF8e465C2...cCADDaCAB
0 ETH0.0009896421.16929739
Set Default Toke...180120192023-08-28 8:41:47428 days ago1693212107IN
0xF8e465C2...cCADDaCAB
0 ETH0.0013591921.29565174
Set Default Toke...180120152023-08-28 8:40:59428 days ago1693212059IN
0xF8e465C2...cCADDaCAB
0 ETH0.0013543721.22806404
Mint With Usd179909252023-08-25 9:50:35431 days ago1692957035IN
0xF8e465C2...cCADDaCAB
0 ETH0.0023137516.82755727
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IceNFT

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 20 : IceNFT.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.18;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {Counters} from "@openzeppelin/contracts/utils/Counters.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract IceNFT is ERC721, AccessControl, ReentrancyGuard {
  using SafeERC20 for IERC20;
  using Counters for Counters.Counter;
  Counters.Counter public _tokenIds;

  enum NFTCardType {
    WEEK,
    MONTH,
    QUARTER,
    HALFYEAR,
    YEAR,
    LIFETIME
  }

  /// @dev deployer: default admin, grant roles
  /// @param _fundManager: manage the fund
  /// @param operator: manage the NFT
  constructor(address operator, address _fundManager) ERC721("Ice NFT", "ICE") {
    require(operator != address(0), "IceNFT: operator is the zero address");
    require(_fundManager != address(0), "IceNFT: fund manager is the zero address");
    _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    _grantRole(FUND_MANAGER_ROLE, _fundManager);
    _grantRole(OPERATOR_ROLE, operator);
    mintState = false;
    saveFlag = true;
    claimState = false;
    fundManager = _fundManager;
    lifetimeCardMaxSupply = 10000;
  }

  bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
  bytes32 public constant FUND_MANAGER_ROLE = keccak256("FUND_MANAGER_ROLE");

  mapping(address => bool) private blackList;

  mapping(NFTCardType => uint256) public usdPrice;
  mapping(NFTCardType => uint256) public ethPrice;
  mapping(NFTCardType => string) public cardTypeDefaultURI;
  mapping(uint256 => NFTCardType) public cardTypeOfTokenId;
  uint256 public lifetimeCardMaxSupply;
  uint256 public lifetimeCardCurrentSupply;
  address public usdToken; // usdt/usdc/...
  bool public mintState;
  bool public saveFlag;
  bool public claimState;
  bool private transferFlag;
  address public fundManager;

  // whitelist mint
  bool public whitelistMintState;
  bytes32 public whitelistMintMerkleRoot;
  NFTCardType public whitelistMintCardType;
  mapping(address => bool) public whitelistMintClaimed;
  // free mint
  uint256 public freeMintSupply;
  NFTCardType public freeMintCardType;
  bool public freeMintState;
  mapping(address => bool) public freeMintClaimed;

  mapping(address => uint256) public referralRewardEthAmount;
  mapping(address => uint256) public referralRewardUsdAmount;

  /// @dev mapping of users' address and their upline address,
  /// which means the value address that referred the key address.
  /// user should be invited by unique upline address,
  /// and user can invite many other addresses.
  mapping(address => address) public usersUpline;

  /// @dev mapping of users' address and their downlines' address,
  /// user may have invite many other addresses, so we use array to store them.
  /// And a counter to help us get the length of the array.
  mapping(address => address[]) public usersDownlines;

  /// @dev default reward rate is 20% for upline and 10% for upUpline
  uint8 public uplineRewardRate = 20;
  uint8 public upUplineRewardRate = 10;

  event SetRelationship(address indexed user, address indexed upline, address indexed upUpline);
  event Burn(uint256 tokenId);
  event Mint(address indexed to, NFTCardType indexed cardType, uint256 tokenId, string currency, uint256 price);
  event AllocateReward(address indexed user1, uint256 amount1, address indexed user2, uint256 amount2, string currency);
  event ClaimReward(address indexed user, uint256 amount, string currency);
  event Airdrop(address indexed to, NFTCardType indexed cardType, uint256 tokenId);

  modifier notBlackListed() {
    require(!blackList[msg.sender], "You are blacklisted");
    _;
  }

  modifier onlyAdmin() {
    require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin");
    _;
  }

  modifier onlyOperator() {
    require(hasRole(OPERATOR_ROLE, msg.sender), "Caller is not operator");
    _;
  }

  modifier onlyFundManager() {
    require(hasRole(FUND_MANAGER_ROLE, msg.sender), "Caller is not fund manager");
    _;
  }

  function addFundManagerRole(address _fundManager) external onlyAdmin {
    _grantRole(FUND_MANAGER_ROLE, _fundManager);
  }

  function removeFundManagerRole(address _fundManager) external onlyAdmin {
    revokeRole(FUND_MANAGER_ROLE, _fundManager);
  }

  function addOperatorRole(address operator) external onlyAdmin {
    _grantRole(OPERATOR_ROLE, operator);
  }

  function removeOperatorRole(address operator) external onlyAdmin {
    revokeRole(OPERATOR_ROLE, operator);
  }

  function transferOwnership(address newOwner) external onlyAdmin {
    grantRole(DEFAULT_ADMIN_ROLE, newOwner);
    revokeRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }

  function addBlackList(address a) external onlyOperator {
    blackList[a] = true;
  }

  function removeBlackList(address a) external onlyOperator {
    blackList[a] = false;
  }

  function setDefaultTokenURI(NFTCardType cardtype, string memory _tokenURI) external onlyOperator {
    cardTypeDefaultURI[cardtype] = _tokenURI;
  }

  function setEthPrice(NFTCardType cardType, uint256 price) external onlyOperator {
    ethPrice[cardType] = price;
  }

  function setUsdPrice(NFTCardType cardType, uint256 price) external onlyOperator {
    usdPrice[cardType] = price;
  }

  function setUsdTokenAddress(address _address) external onlyOperator {
    usdToken = _address;
  }

  function setFundManagerAddress(address _address) external onlyAdmin {
    fundManager = _address;
  }

  function setLifetimeCardMaxSupply(uint256 maxSupply) external onlyOperator {
    lifetimeCardMaxSupply = maxSupply;
  }

  function setWhitelistMerkleRoot(bytes32 _merkleRoot) external onlyOperator {
    whitelistMintMerkleRoot = _merkleRoot;
  }

  function setWhitelistMintCardType(NFTCardType _cardType) external onlyOperator {
    whitelistMintCardType = _cardType;
  }

  function setFreeMintSupply(uint256 _supply, NFTCardType _cardType) external onlyOperator {
    freeMintCardType = _cardType;
    freeMintSupply = _supply;
  }

  function airDrop(address to, NFTCardType cardType) external onlyOperator {
    _tokenIds.increment();
    uint256 tokenId = _tokenIds.current();
    _safeMint(to, tokenId);
    emit Airdrop(to, cardType, tokenId);
    cardTypeOfTokenId[tokenId] = cardType;
  }

  function burn(uint256 tokenId) external onlyOperator {
    _burn(tokenId);
    emit Burn(tokenId);
  }

  function flipMintState() external onlyOperator {
    require(usdToken != address(0), "USD Token address haven't set");
    mintState = !mintState;
  }

  function flipWhitelistMintState() external onlyOperator {
    require(whitelistMintMerkleRoot != bytes32(0), "Merkle root haven't set");
    whitelistMintState = !whitelistMintState;
  }

  function flipFreeMintState() external onlyOperator {
    freeMintState = !freeMintState;
  }

  function flipSaveState() external onlyOperator {
    saveFlag = !saveFlag;
  }

  function flipClaimState() external onlyOperator {
    claimState = !claimState;
  }

  function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
    return cardTypeDefaultURI[cardTypeOfTokenId[tokenId]];
  }

  function whitelistMint(bytes32[] calldata merkleProof) external payable {
    require(whitelistMintState, "Free mint haven't started");
    require(!whitelistMintClaimed[msg.sender], "Free mint already claimed");
    require(
      MerkleProof.verify(merkleProof, whitelistMintMerkleRoot, keccak256(abi.encodePacked(msg.sender))),
      "Invalid merkle proof"
    );

    if (whitelistMintCardType == NFTCardType.LIFETIME) {
      require(lifetimeCardMaxSupply >= lifetimeCardCurrentSupply, "Lifetime card sold out");
    }

    whitelistMintClaimed[msg.sender] = true;
    _tokenIds.increment();
    uint256 tokenId = _tokenIds.current();
    transferFlag = true;
    _safeMint(msg.sender, tokenId);
    emit Mint(msg.sender, whitelistMintCardType, tokenId, "eth", 0);
    cardTypeOfTokenId[tokenId] = whitelistMintCardType;
    transferFlag = false;

    if (whitelistMintCardType == NFTCardType.LIFETIME) {
      lifetimeCardCurrentSupply++;
    }
  }

  function freeMint() external payable {
    require(freeMintState, "Free mint haven't started");
    require(freeMintSupply > 0, "Free mint supply is zero");
    require(!freeMintClaimed[msg.sender], "Free mint already claimed");

    if (freeMintCardType == NFTCardType.LIFETIME) {
      require(lifetimeCardMaxSupply >= lifetimeCardCurrentSupply, "Lifetime card sold out");
    }

    freeMintClaimed[msg.sender] = true;
    freeMintSupply--;
    _tokenIds.increment();
    uint256 tokenId = _tokenIds.current();
    transferFlag = true;
    _safeMint(msg.sender, tokenId);
    emit Mint(msg.sender, freeMintCardType, tokenId, "eth", 0);
    cardTypeOfTokenId[tokenId] = freeMintCardType;
    transferFlag = false;

    if (freeMintCardType == NFTCardType.LIFETIME) {
      lifetimeCardCurrentSupply++;
    }
  }

  /// @dev mint NFT with ETH
  /// @param cardType NFT available duration
  /// @param referredBy referral address, only provide in the first time mint,
  ///   if no referral or have set referral relationship, set address(0) or caller's address
  /// @notice require mint state is true
  /// @notice require ETH sell price is not zero
  /// @notice if card type is lifetime, require lifetime card max supply is not reached
  /// @notice if card type is not lifetime, token can't transfer after mint
  function mint(NFTCardType cardType, address referredBy) external payable nonReentrant notBlackListed {
    require(mintState, "Mint haven't started");
    require(ethPrice[cardType] != 0, "ETH price haven't set");
    require(msg.value >= ethPrice[cardType], "Ether value sent is not correct");
    if (cardType == NFTCardType.LIFETIME) {
      require(lifetimeCardMaxSupply >= lifetimeCardCurrentSupply, "Lifetime card sold out");
    }

    _tokenIds.increment();
    uint256 tokenId = _tokenIds.current();
    transferFlag = true;
    _safeMint(msg.sender, tokenId);
    emit Mint(msg.sender, cardType, tokenId, "eth", ethPrice[cardType]);
    cardTypeOfTokenId[tokenId] = cardType;
    transferFlag = false;

    if (cardType == NFTCardType.LIFETIME) {
      lifetimeCardCurrentSupply++;
    }

    if (referredBy != address(0) && referredBy != msg.sender) {
      (address upline, ) = getReferralRelationship(msg.sender);
      if (upline == address(0)) {
        // only set referral relationship when user haven't had one
        setReferralRelationship(msg.sender, referredBy);
      }
    }
    _allocateEthReward(msg.value);
  }

  /// @dev mint NFT with USD
  /// @param cardType NFT available duration
  /// @param referredBy referral address, only provide in the first time mint,
  ///   if no referral or have set referral relationship, set address(0) or caller's address
  /// @param amount USD amount to pay for
  /// @notice require mint state is true
  /// @notice require USD token address is set
  /// @notice require USD sell price is not zero
  /// @notice if card type is lifetime, require lifetime card max supply is not reached
  /// @notice if card type is not lifetime, token can't transfer after mint
  function mintWithUsd(NFTCardType cardType, address referredBy, uint256 amount) external nonReentrant notBlackListed {
    require(mintState, "Mint haven't started");
    require(usdToken != address(0), "USD token address is not set");
    require(usdPrice[cardType] != 0, "USD price haven't set");
    require(amount >= usdPrice[cardType], "USD value sent is not correct");
    if (cardType == NFTCardType.LIFETIME) {
      require(lifetimeCardMaxSupply >= lifetimeCardCurrentSupply, "Lifetime card sold out");
    }

    IERC20(usdToken).safeTransferFrom(msg.sender, address(this), amount);

    _tokenIds.increment();
    uint256 tokenId = _tokenIds.current();
    transferFlag = true;
    _safeMint(msg.sender, tokenId);
    emit Mint(msg.sender, cardType, tokenId, "usd", usdPrice[cardType]);
    cardTypeOfTokenId[tokenId] = cardType;
    transferFlag = false;
    if (cardType == NFTCardType.LIFETIME) {
      lifetimeCardCurrentSupply++;
    }

    if (referredBy != address(0) && referredBy != msg.sender) {
      (address upline, ) = getReferralRelationship(msg.sender);
      if (upline == address(0)) {
        // only set referral relationship when user haven't had one
        setReferralRelationship(msg.sender, referredBy);
      }
    }
    _allocateERC20Reward(usdToken, amount);
  }

  function _allocateEthReward(uint256 amount) internal {
    (address upline, address upUpline) = getReferralRelationship(msg.sender);

    uint256 remains = 0;
    uint256 uplineReward = 0;
    uint256 upUplineReward = 0;
    if (upline != address(0)) {
      uplineReward = (amount * uplineRewardRate) / 100;
      referralRewardEthAmount[upline] += uplineReward;
      remains += uplineReward;
    }

    if (upUpline != address(0)) {
      upUplineReward = (amount * upUplineRewardRate) / 100;
      referralRewardEthAmount[upUpline] += upUplineReward;
      remains += upUplineReward;
    }

    emit AllocateReward(upline, uplineReward, upUpline, upUplineReward, "eth");

    if (saveFlag) {
      (bool success, ) = payable(fundManager).call{value: msg.value - remains}("");
      require(success, "Transfer to fund mananger address failed");
    }
  }

  function _allocateERC20Reward(address token, uint256 amount) internal {
    (address upline, address upUpline) = getReferralRelationship(msg.sender);
    uint256 remains = 0;
    uint256 uplineReward = 0;
    uint256 upUplinReward = 0;
    if (upline != address(0)) {
      uplineReward = (amount * uplineRewardRate) / 100;
      referralRewardUsdAmount[upline] += uplineReward;
      remains += uplineReward;
    }

    if (upUpline != address(0)) {
      upUplinReward = (amount * upUplineRewardRate) / 100;
      referralRewardUsdAmount[upUpline] += upUplinReward;
      remains += upUplinReward;
    }

    emit AllocateReward(upline, uplineReward, upUpline, upUplinReward, "usd");

    if (saveFlag) {
      IERC20(token).safeTransfer(fundManager, amount - remains);
    }
  }

  function setReferralRelationship(address user, address referredBy) internal {
    require(user != address(0), "Referral: user is zero address");
    require(referredBy != address(0), "Referral: referredBy is zero address");

    // check if user's upline is already set
    require(usersUpline[user] == address(0), "Referral: user's upline is already set");

    // check if cycle referral
    require(usersUpline[referredBy] != user, "Referral: cycle referral");

    // find upline's upline(referrer's referrer)
    address upUpline = usersUpline[referredBy];

    // set relationship
    usersUpline[user] = referredBy;
    usersDownlines[referredBy].push(user);

    emit SetRelationship(user, referredBy, upUpline);
  }

  function getReferralRelationship(address user) public view returns (address, address) {
    return (usersUpline[user], usersUpline[usersUpline[user]]);
  }

  function getReferralCount(address user) external view returns (uint256) {
    return (usersDownlines[user].length);
  }

  function setRewardRate(uint8 upline, uint8 upUpline) external onlyOperator {
    require(upline <= 100, "Referral: upline reward rate is over 100%");
    require(upUpline <= 100, "Referral: upline's upline reward rate is over 100%");

    uplineRewardRate = upline;
    upUplineRewardRate = upUpline;
  }

  function claimEthReward() external nonReentrant {
    require(claimState, "Claim haven't started");
    require(referralRewardEthAmount[msg.sender] > 0, "No reward to claim");
    require(address(this).balance >= referralRewardEthAmount[msg.sender], "Balance insufficient for reward");
    uint256 amount = referralRewardEthAmount[msg.sender];
    referralRewardEthAmount[msg.sender] = 0;

    (bool success, ) = payable(msg.sender).call{value: amount}("");
    require(success, "Transfer to fund mananger address failed");
    emit ClaimReward(msg.sender, amount, "eth");
  }

  function claimUsdReward() external nonReentrant {
    require(claimState, "Claim haven't started");
    require(referralRewardUsdAmount[msg.sender] > 0, "No reward to claim");
    require(
      IERC20(usdToken).balanceOf(address(this)) >= referralRewardUsdAmount[msg.sender],
      "Balance insufficient for reward"
    );

    uint256 amount = referralRewardUsdAmount[msg.sender];
    referralRewardUsdAmount[msg.sender] = 0;
    IERC20(usdToken).safeTransfer(msg.sender, amount);
    emit ClaimReward(msg.sender, amount, "usd");
  }

  function withdrawEth(address payable to, uint256 amount) external onlyFundManager {
    require(amount <= address(this).balance, "Not enough balance");
    (bool success, ) = to.call{value: amount}("");
    require(success, "Transfer to fund mananger address failed");
  }

  function withdrawERC20Token(address token, address to, uint256 amount) external onlyFundManager {
    require(amount <= IERC20(token).balanceOf(address(this)), "Not enough balance");
    IERC20(token).safeTransfer(to, amount);
  }

  function _burn(uint256 tokenId) internal override(ERC721) {
    super._burn(tokenId);
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 firstTokenId,
    uint256 batchSize
  ) internal override(ERC721) {
    require(transferFlag || cardTypeOfTokenId[firstTokenId] == NFTCardType.LIFETIME, "Token is not transferable");
    super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
  }

  function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 2 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 20 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 4 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 5 of 20 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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

File 7 of 20 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 8 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @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) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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);
}

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

pragma solidity ^0.8.0;

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

File 12 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 13 of 20 : 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 20 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 15 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 16 of 20 : 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 17 of 20 : 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 18 of 20 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 19 of 20 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _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);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"_fundManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"enum IceNFT.NFTCardType","name":"cardType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Airdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user1","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"user2","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount2","type":"uint256"},{"indexed":false,"internalType":"string","name":"currency","type":"string"}],"name":"AllocateReward","type":"event"},{"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":"uint256","name":"tokenId","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"currency","type":"string"}],"name":"ClaimReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"enum IceNFT.NFTCardType","name":"cardType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"currency","type":"string"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"upline","type":"address"},{"indexed":true,"internalType":"address","name":"upUpline","type":"address"}],"name":"SetRelationship","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUND_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenIds","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"addBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundManager","type":"address"}],"name":"addFundManagerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"addOperatorRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"enum IceNFT.NFTCardType","name":"cardType","type":"uint8"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"","type":"uint8"}],"name":"cardTypeDefaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardTypeOfTokenId","outputs":[{"internalType":"enum IceNFT.NFTCardType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimEthReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimUsdReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"","type":"uint8"}],"name":"ethPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipFreeMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaveState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freeMintCardType","outputs":[{"internalType":"enum IceNFT.NFTCardType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getReferralCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getReferralRelationship","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lifetimeCardCurrentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lifetimeCardMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"cardType","type":"uint8"},{"internalType":"address","name":"referredBy","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"cardType","type":"uint8"},{"internalType":"address","name":"referredBy","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintWithUsd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referralRewardEthAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referralRewardUsdAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"removeBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundManager","type":"address"}],"name":"removeFundManagerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"removeOperatorRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saveFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"cardtype","type":"uint8"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setDefaultTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"cardType","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setEthPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"enum IceNFT.NFTCardType","name":"_cardType","type":"uint8"}],"name":"setFreeMintSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setFundManagerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setLifetimeCardMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"upline","type":"uint8"},{"internalType":"uint8","name":"upUpline","type":"uint8"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"cardType","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setUsdPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setUsdTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"_cardType","type":"uint8"}],"name":"setWhitelistMintCardType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upUplineRewardRate","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uplineRewardRate","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum IceNFT.NFTCardType","name":"","type":"uint8"}],"name":"usdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"usersDownlines","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersUpline","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintCardType","outputs":[{"internalType":"enum IceNFT.NFTCardType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052601c805461ffff1916610a141790553480156200002057600080fd5b50604051620060a3380380620060a38339810160408190526200004391620002e2565b604051806040016040528060078152602001661258d94813919560ca1b8152506040518060400160405280600381526020016249434560e81b8152508160009081620000909190620003bf565b5060016200009f8282620003bf565b50506001600755506001600160a01b0382166200010f5760405162461bcd60e51b8152602060048201526024808201527f4963654e46543a206f70657261746f7220697320746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038116620001785760405162461bcd60e51b815260206004820152602860248201527f4963654e46543a2066756e64206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b606482015260840162000106565b6200018560003362000220565b620001b17f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f8262000220565b620001dd7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9298362000220565b6010805462ffffff60a01b1916600160a81b179055601180546001600160a01b039092166001600160a01b031990921691909117905550612710600e556200048b565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620002c15760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002803390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b80516001600160a01b0381168114620002dd57600080fd5b919050565b60008060408385031215620002f657600080fd5b6200030183620002c5565b91506200031160208401620002c5565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200034557607f821691505b6020821081036200036657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003ba57600081815260208120601f850160051c81016020861015620003955750805b601f850160051c820191505b81811015620003b657828155600101620003a1565b5050505b505050565b81516001600160401b03811115620003db57620003db6200031a565b620003f381620003ec845462000330565b846200036c565b602080601f8311600181146200042b5760008415620004125750858301515b600019600386901b1c1916600185901b178555620003b6565b600085815260208120601f198616915b828110156200045c578886015182559484019460019091019084016200043b565b50858210156200047b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b615c08806200049b6000396000f3fe60806040526004361061057d5760003560e01c80637c1db588116102d5578063c87b56dd11610184578063e4997dc5116100e1578063f263ed8411610095578063f5b541a61161006f578063f5b541a614611012578063f5c0202f14611046578063f897a22b1461106657600080fd5b8063f263ed8414610fb8578063f2fde38b14610fd8578063f3b606ab14610ff857600080fd5b8063e985e9c5116100c6578063e985e9c514610f39578063e9e7177514610f82578063ef16f6da14610f9857600080fd5b8063e4997dc514610ef9578063e57ff80814610f1957600080fd5b8063db94b1ff11610138578063e0ec7c361161011d578063e0ec7c3614610e9e578063e150007e14610ece578063e1ff489314610ee457600080fd5b8063db94b1ff14610e6f578063de512ca214610e8457600080fd5b8063d309cb8111610169578063d309cb8114610e08578063d514433414610e22578063d547741f14610e4f57600080fd5b8063c87b56dd14610dbb578063d1cc7a0514610ddb57600080fd5b8063a0a0c46511610232578063b88d4fde116101e6578063bedc09db116101cb578063bedc09db14610d64578063c051e38a14610d7a578063c0dfecbf14610d9b57600080fd5b8063b88d4fde14610d24578063bd32fb6614610d4457600080fd5b8063a22cb46511610217578063a22cb46514610ccd578063aa46a40014610ced578063b7928b1d14610d0457600080fd5b8063a0a0c46514610ca3578063a217fddf14610cb857600080fd5b8063922400ff1161028957806394975f731161026e57806394975f7314610c4d57806395d89b4114610c6d5780639a72580914610c8257600080fd5b8063922400ff14610c0c5780639478941c14610c2d57600080fd5b8063890b887f116102ba578063890b887f14610b785780638b77b8cf14610b9957806391d1485414610bc657600080fd5b80637c1db58814610b3857806387bafe6314610b5857600080fd5b80633ae2d9a11161043157806362baf18b1161038e57806375819a021161034257806378d23b7c1161032757806378d23b7c14610ac85780637adf373914610ae85780637bf75f6c14610b2557600080fd5b806375819a0214610a7857806376e5ae4f14610a9857600080fd5b80636d60e6c1116103735780636d60e6c114610a2d57806370a0823114610a4257806374d2577414610a6257600080fd5b806362baf18b146109ed5780636352211e14610a0d57600080fd5b806357d1b31b116103e55780635b70ea9f116103ca5780635b70ea9f146109985780635e1a4d42146109a05780636209ec2d146109cd57600080fd5b806357d1b31b1461096357806359c74f291461098357600080fd5b806342842e0e1161041657806342842e0e146108be57806342966c68146108de578063532e919b146108fe57600080fd5b80633ae2d9a11461087e57806340b5a0d61461089e57600080fd5b8063248a9ca3116104df5780632f2ff15d116104935780633169ce40116104785780633169ce401461082c57806336568abe1461084b578063372f657c1461086b57600080fd5b80632f2ff15d146107d85780632f83a6bc146107f857600080fd5b8063296b0466116104c4578063296b0466146107725780632a055ee1146107925780632ccb2bd9146107a757600080fd5b8063248a9ca3146106fe57806324acbd691461073c57600080fd5b8063082e2a72116105365780630ecb93c01161051b5780630ecb93c01461069e5780631b9a91a4146106be57806323b872dd146106de57600080fd5b8063082e2a7214610669578063095ea7b31461067e57600080fd5b80630523eb41116105675780630523eb411461060557806306fdde0314610627578063081812fc1461064957600080fd5b806202fbd21461058257806301ffc9a7146105d5575b600080fd5b34801561058e57600080fd5b506105b861059d36600461524e565b601a602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156105e157600080fd5b506105f56105f0366004615281565b611086565b60405190151581526020016105cc565b34801561061157600080fd5b506106256106203660046152b2565b611097565b005b34801561063357600080fd5b5061063c611133565b6040516105cc919061532c565b34801561065557600080fd5b506105b861066436600461533f565b6111c5565b34801561067557600080fd5b506106256111ec565b34801561068a57600080fd5b50610625610699366004615358565b6112b6565b3480156106aa57600080fd5b506106256106b936600461524e565b6113e7565b3480156106ca57600080fd5b506106256106d9366004615358565b611465565b3480156106ea57600080fd5b506106256106f9366004615376565b6115e7565b34801561070a57600080fd5b5061072e61071936600461533f565b60009081526006602052604090206001015490565b6040519081526020016105cc565b34801561074857600080fd5b5061072e61075736600461524e565b6001600160a01b03166000908152601b602052604090205490565b34801561077e57600080fd5b5061062561078d3660046152b2565b61165e565b34801561079e57600080fd5b506106256116cf565b3480156107b357600080fd5b50601c546107c690610100900460ff1681565b60405160ff90911681526020016105cc565b3480156107e457600080fd5b506106256107f33660046153b7565b611765565b34801561080457600080fd5b5061072e7f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f81565b34801561083857600080fd5b506016546105f590610100900460ff1681565b34801561085757600080fd5b506106256108663660046153b7565b61178a565b6106256108793660046153e7565b611816565b34801561088a57600080fd5b5061062561089936600461545c565b611b2a565b3480156108aa57600080fd5b5061063c6108b936600461545c565b611bab565b3480156108ca57600080fd5b506106256108d9366004615376565b611c45565b3480156108ea57600080fd5b506106256108f936600461533f565b611c60565b34801561090a57600080fd5b5061094361091936600461524e565b6001600160a01b039081166000908152601a60205260408082205483168083529120549092911690565b604080516001600160a01b039384168152929091166020830152016105cc565b34801561096f57600080fd5b5061062561097e366004615376565b611cf9565b34801561098f57600080fd5b50610625611e42565b610625611f15565b3480156109ac57600080fd5b5061072e6109bb36600461545c565b600a6020526000908152604090205481565b3480156109d957600080fd5b506011546105b8906001600160a01b031681565b3480156109f957600080fd5b50610625610a0836600461524e565b6121ca565b348015610a1957600080fd5b506105b8610a2836600461533f565b612268565b348015610a3957600080fd5b506106256122cd565b348015610a4e57600080fd5b5061072e610a5d36600461524e565b612363565b348015610a6e57600080fd5b5061072e60125481565b348015610a8457600080fd5b50610625610a9336600461524e565b6123fd565b348015610aa457600080fd5b506105f5610ab336600461524e565b60146020526000908152604090205460ff1681565b348015610ad457600080fd5b50610625610ae3366004615477565b612493565b348015610af457600080fd5b50610b18610b0336600461533f565b600d6020526000908152604090205460ff1681565b6040516105cc91906154ab565b610625610b333660046154d3565b6128d5565b348015610b4457600080fd5b50610625610b5336600461524e565b612c9a565b348015610b6457600080fd5b50610625610b733660046154ff565b612d38565b348015610b8457600080fd5b506010546105f590600160a81b900460ff1681565b348015610ba557600080fd5b5061072e610bb436600461524e565b60196020526000908152604090205481565b348015610bd257600080fd5b506105f5610be13660046153b7565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b348015610c1857600080fd5b506011546105f590600160a01b900460ff1681565b348015610c3957600080fd5b50610625610c4836600461524e565b612dbc565b348015610c5957600080fd5b50610625610c6836600461533f565b612e5a565b348015610c7957600080fd5b5061063c612eb9565b348015610c8e57600080fd5b506010546105f590600160b01b900460ff1681565b348015610caf57600080fd5b50610625612ec8565b348015610cc457600080fd5b5061072e600081565b348015610cd957600080fd5b50610625610ce8366004615539565b6130ef565b348015610cf957600080fd5b5060085461072e9081565b348015610d1057600080fd5b50610625610d1f36600461524e565b6130fa565b348015610d3057600080fd5b50610625610d3f3660046155f3565b613198565b348015610d5057600080fd5b50610625610d5f36600461533f565b613216565b348015610d7057600080fd5b5061072e600e5481565b348015610d8657600080fd5b506010546105f590600160a01b900460ff1681565b348015610da757600080fd5b506105b8610db6366004615358565b613275565b348015610dc757600080fd5b5061063c610dd636600461533f565b6132ad565b348015610de757600080fd5b5061072e610df636600461524e565b60186020526000908152604090205481565b348015610e1457600080fd5b50601654610b189060ff1681565b348015610e2e57600080fd5b5061072e610e3d36600461545c565b600b6020526000908152604090205481565b348015610e5b57600080fd5b50610625610e6a3660046153b7565b613385565b348015610e7b57600080fd5b506106256133aa565b348015610e9057600080fd5b50601354610b189060ff1681565b348015610eaa57600080fd5b506105f5610eb936600461524e565b60176020526000908152604090205460ff1681565b348015610eda57600080fd5b5061072e60155481565b348015610ef057600080fd5b50610625613421565b348015610f0557600080fd5b50610625610f1436600461524e565b613622565b348015610f2557600080fd5b50610625610f34366004615673565b61369d565b348015610f4557600080fd5b506105f5610f5436600461569f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610f8e57600080fd5b5061072e600f5481565b348015610fa457600080fd5b50610625610fb336600461524e565b6137a6565b348015610fc457600080fd5b50610625610fd33660046156bd565b613822565b348015610fe457600080fd5b50610625610ff336600461524e565b6138be565b34801561100457600080fd5b50601c546107c69060ff1681565b34801561101e57600080fd5b5061072e7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b34801561105257600080fd5b50610625611061366004615730565b613948565b34801561107257600080fd5b506010546105b8906001600160a01b031681565b600061109182613aba565b92915050565b336000908152600080516020615b93833981519152602052604090205460ff166110f65760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064015b60405180910390fd5b80600a600084600581111561110d5761110d615495565b600581111561111e5761111e615495565b81526020810191909152604001600020555050565b6060600080546111429061575a565b80601f016020809104026020016040519081016040528092919081815260200182805461116e9061575a565b80156111bb5780601f10611190576101008083540402835291602001916111bb565b820191906000526020600020905b81548152906001019060200180831161119e57829003601f168201915b5050505050905090565b60006111d082613af8565b506000908152600460205260409020546001600160a01b031690565b336000908152600080516020615b93833981519152602052604090205460ff166112465760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6012546112955760405162461bcd60e51b815260206004820152601760248201527f4d65726b6c6520726f6f7420686176656e27742073657400000000000000000060448201526064016110ed565b6011805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60006112c182612268565b9050806001600160a01b0316836001600160a01b03160361134a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016110ed565b336001600160a01b038216148061136657506113668133610f54565b6113d85760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016110ed565b6113e28383613b5c565b505050565b336000908152600080516020615b93833981519152602052604090205460ff166114415760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b3360009081527fb977339b0edb99917d2314ebb17319c5e910f915e6589ef573477baf813c3906602052604090205460ff166114e35760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f742066756e64206d616e6167657200000000000060448201526064016110ed565b478111156115335760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e6365000000000000000000000000000060448201526064016110ed565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611580576040519150601f19603f3d011682016040523d82523d6000602084013e611585565b606091505b50509050806113e25760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220746f2066756e64206d616e616e676572206164647265736044820152671cc819985a5b195960c21b60648201526084016110ed565b6115f13382613bca565b6116535760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b60648201526084016110ed565b6113e2838383613c49565b336000908152600080516020615b93833981519152602052604090205460ff166116b85760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b80600b600084600581111561110d5761110d615495565b336000908152600080516020615b93833981519152602052604090205460ff166117295760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b60008281526006602052604090206001015461178081613e36565b6113e28383613e40565b6001600160a01b03811633146118085760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016110ed565b6118128282613ee2565b5050565b601154600160a01b900460ff1661186f5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420686176656e277420737461727465640000000000000060448201526064016110ed565b3360009081526014602052604090205460ff16156118cf5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420616c726561647920636c61696d65640000000000000060448201526064016110ed565b611944828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120613f65565b6119905760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f6600000000000000000000000060448201526064016110ed565b600560135460ff1660058111156119a9576119a9615495565b03611a0257600f54600e541015611a025760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b336000908152601460205260409020805460ff19166001179055611a2a600880546001019055565b6000611a3560085490565b6010805460ff60b81b1916600160b81b1790559050611a543382613f7b565b60135460ff166005811115611a6b57611a6b615495565b336001600160a01b03167f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e9836000604051611aa7929190615794565b60405180910390a36013546000828152600d60205260409020805460ff9092169160ff19166001836005811115611ae057611ae0615495565b02179055506010805460ff60b81b19169055600560135460ff166005811115611b0b57611b0b615495565b036113e257600f8054906000611b20836157e2565b9190505550505050565b336000908152600080516020615b93833981519152602052604090205460ff16611b845760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6013805482919060ff19166001836005811115611ba357611ba3615495565b021790555050565b600c6020526000908152604090208054611bc49061575a565b80601f0160208091040260200160405190810160405280929190818152602001828054611bf09061575a565b8015611c3d5780601f10611c1257610100808354040283529160200191611c3d565b820191906000526020600020905b815481529060010190602001808311611c2057829003601f168201915b505050505081565b6113e283838360405180602001604052806000815250613198565b336000908152600080516020615b93833981519152602052604090205460ff16611cba5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b611cc381613f95565b6040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150565b3360009081527fb977339b0edb99917d2314ebb17319c5e910f915e6589ef573477baf813c3906602052604090205460ff16611d775760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f742066756e64206d616e6167657200000000000060448201526064016110ed565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611dbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddf91906157fb565b811115611e2e5760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e6365000000000000000000000000000060448201526064016110ed565b6113e26001600160a01b0384168383613f9e565b336000908152600080516020615b93833981519152602052604090205460ff16611e9c5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6010546001600160a01b0316611ef45760405162461bcd60e51b815260206004820152601d60248201527f55534420546f6b656e206164647265737320686176656e27742073657400000060448201526064016110ed565b6010805460ff60a01b198116600160a01b9182900460ff1615909102179055565b601654610100900460ff16611f6c5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420686176656e277420737461727465640000000000000060448201526064016110ed565b600060155411611fbe5760405162461bcd60e51b815260206004820152601860248201527f46726565206d696e7420737570706c79206973207a65726f000000000000000060448201526064016110ed565b3360009081526017602052604090205460ff161561201e5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420616c726561647920636c61696d65640000000000000060448201526064016110ed565b600560165460ff16600581111561203757612037615495565b0361209057600f54600e5410156120905760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b336000908152601760205260408120805460ff1916600117905560158054916120b883615814565b91905055506120cb600880546001019055565b60006120d660085490565b6010805460ff60b81b1916600160b81b17905590506120f53382613f7b565b60165460ff16600581111561210c5761210c615495565b336001600160a01b03167f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e9836000604051612148929190615794565b60405180910390a36016546000828152600d60205260409020805460ff9092169160ff1916600183600581111561218157612181615495565b02179055506010805460ff60b81b19169055600560165460ff1660058111156121ac576121ac615495565b036121c757600f80549060006121c1836157e2565b91905055505b50565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661223e5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f82613385565b6000818152600260205260408120546001600160a01b0316806110915760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016110ed565b336000908152600080516020615b93833981519152602052604090205460ff166123275760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601080547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff8116600160b01b9182900460ff1615909102179055565b60006001600160a01b0382166123e15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016110ed565b506001600160a01b031660009081526003602052604090205490565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff166124715760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61249b61402f565b3360009081526009602052604090205460ff16156124fb5760405162461bcd60e51b815260206004820152601360248201527f596f752061726520626c61636b6c69737465640000000000000000000000000060448201526064016110ed565b601054600160a01b900460ff166125545760405162461bcd60e51b815260206004820152601460248201527f4d696e7420686176656e2774207374617274656400000000000000000000000060448201526064016110ed565b6010546001600160a01b03166125ac5760405162461bcd60e51b815260206004820152601c60248201527f55534420746f6b656e2061646472657373206973206e6f74207365740000000060448201526064016110ed565b600a60008460058111156125c2576125c2615495565b60058111156125d3576125d3615495565b8152602001908152602001600020546000036126315760405162461bcd60e51b815260206004820152601560248201527f55534420707269636520686176656e277420736574000000000000000000000060448201526064016110ed565b600a600084600581111561264757612647615495565b600581111561265857612658615495565b8152602001908152602001600020548110156126b65760405162461bcd60e51b815260206004820152601d60248201527f5553442076616c75652073656e74206973206e6f7420636f727265637400000060448201526064016110ed565b60058360058111156126ca576126ca615495565b0361272357600f54600e5410156127235760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b60105461273b906001600160a01b0316333084614088565b612749600880546001019055565b600061275460085490565b6010805460ff60b81b1916600160b81b17905590506127733382613f7b565b83600581111561278557612785615495565b337f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e983600a60008960058111156127be576127be615495565b60058111156127cf576127cf615495565b8152602001908152602001600020546040516127ec92919061582b565b60405180910390a36000818152600d60205260409020805485919060ff1916600183600581111561281f5761281f615495565b02179055506010805460ff60b81b19169055600584600581111561284557612845615495565b0361286057600f805490600061285a836157e2565b91905055505b6001600160a01b0383161580159061288157506001600160a01b0383163314155b156128b457336000908152601a60205260408120546001600160a01b031690819052806128b2576128b233856140d9565b505b6010546128ca906001600160a01b031683614319565b506113e26001600755565b6128dd61402f565b3360009081526009602052604090205460ff161561293d5760405162461bcd60e51b815260206004820152601360248201527f596f752061726520626c61636b6c69737465640000000000000000000000000060448201526064016110ed565b601054600160a01b900460ff166129965760405162461bcd60e51b815260206004820152601460248201527f4d696e7420686176656e2774207374617274656400000000000000000000000060448201526064016110ed565b600b60008360058111156129ac576129ac615495565b60058111156129bd576129bd615495565b815260200190815260200160002054600003612a1b5760405162461bcd60e51b815260206004820152601560248201527f45544820707269636520686176656e277420736574000000000000000000000060448201526064016110ed565b600b6000836005811115612a3157612a31615495565b6005811115612a4257612a42615495565b815260200190815260200160002054341015612aa05760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016110ed565b6005826005811115612ab457612ab4615495565b03612b0d57600f54600e541015612b0d5760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b612b1b600880546001019055565b6000612b2660085490565b6010805460ff60b81b1916600160b81b1790559050612b453382613f7b565b826005811115612b5757612b57615495565b337f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e983600b6000886005811115612b9057612b90615495565b6005811115612ba157612ba1615495565b815260200190815260200160002054604051612bbe929190615794565b60405180910390a36000818152600d60205260409020805484919060ff19166001836005811115612bf157612bf1615495565b02179055506010805460ff60b81b191690556005836005811115612c1757612c17615495565b03612c3257600f8054906000612c2c836157e2565b91905055505b6001600160a01b03821615801590612c5357506001600160a01b0382163314155b15612c8657336000908152601a60205260408120546001600160a01b03169081905280612c8457612c8433846140d9565b505b612c8f346144aa565b506118126001600755565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16612d0e5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f82613e40565b336000908152600080516020615b93833981519152602052604090205460ff16612d925760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6016805482919060ff19166001836005811115612db157612db1615495565b021790555050601555565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16612e305760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92982613385565b336000908152600080516020615b93833981519152602052604090205460ff16612eb45760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b600e55565b6060600180546111429061575a565b612ed061402f565b601054600160b01b900460ff16612f295760405162461bcd60e51b815260206004820152601560248201527f436c61696d20686176656e27742073746172746564000000000000000000000060448201526064016110ed565b33600090815260186020526040902054612f855760405162461bcd60e51b815260206004820152601260248201527f4e6f2072657761726420746f20636c61696d000000000000000000000000000060448201526064016110ed565b33600090815260186020526040902054471015612fe45760405162461bcd60e51b815260206004820152601f60248201527f42616c616e636520696e73756666696369656e7420666f72207265776172640060448201526064016110ed565b33600081815260186020526040808220805490839055905190929083908381818185875af1925050503d8060008114613039576040519150601f19603f3d011682016040523d82523d6000602084013e61303e565b606091505b50509050806130a05760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220746f2066756e64206d616e616e676572206164647265736044820152671cc819985a5b195960c21b60648201526084016110ed565b336001600160a01b03167fd2301a68d6cb5a0838ce40003dbb09e5eb2659920c05aba729b36ded7249fca4836040516130d99190615854565b60405180910390a250506130ed6001600755565b565b6118123383836146cb565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661316e5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92982613e40565b6131a23383613bca565b6132045760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b60648201526084016110ed565b61321084848484614799565b50505050565b336000908152600080516020615b93833981519152602052604090205460ff166132705760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601255565b601b602052816000526040600020818154811061329157600080fd5b6000918252602090912001546001600160a01b03169150829050565b6000818152600d6020526040812054606091600c9160ff1660058111156132d6576132d6615495565b60058111156132e7576132e7615495565b815260200190815260200160002080546133009061575a565b80601f016020809104026020016040519081016040528092919081815260200182805461332c9061575a565b80156133795780601f1061334e57610100808354040283529160200191613379565b820191906000526020600020905b81548152906001019060200180831161335c57829003601f168201915b50505050509050919050565b6000828152600660205260409020600101546133a081613e36565b6113e28383613ee2565b336000908152600080516020615b93833981519152602052604090205460ff166134045760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6016805461ff001981166101009182900460ff1615909102179055565b61342961402f565b601054600160b01b900460ff166134825760405162461bcd60e51b815260206004820152601560248201527f436c61696d20686176656e27742073746172746564000000000000000000000060448201526064016110ed565b336000908152601960205260409020546134de5760405162461bcd60e51b815260206004820152601260248201527f4e6f2072657761726420746f20636c61696d000000000000000000000000000060448201526064016110ed565b33600090815260196020526040908190205460105491516370a0823160e01b815230600482015290916001600160a01b0316906370a0823190602401602060405180830381865afa158015613537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061355b91906157fb565b10156135a95760405162461bcd60e51b815260206004820152601f60248201527f42616c616e636520696e73756666696369656e7420666f72207265776172640060448201526064016110ed565b336000818152601960205260408120805491905560105490916135d6916001600160a01b03169083613f9e565b336001600160a01b03167fd2301a68d6cb5a0838ce40003dbb09e5eb2659920c05aba729b36ded7249fca48260405161360f919061587d565b60405180910390a2506130ed6001600755565b336000908152600080516020615b93833981519152602052604090205460ff1661367c5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6001600160a01b03166000908152600960205260409020805460ff19169055565b336000908152600080516020615b93833981519152602052604090205460ff166136f75760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b613705600880546001019055565b600061371060085490565b905061371c8382613f7b565b81600581111561372e5761372e615495565b836001600160a01b03167fd66a038ac0344e13284361ccebe60ba82b70472757e000bfc13155d8bb33858c8360405161376991815260200190565b60405180910390a36000818152600d60205260409020805483919060ff1916600183600581111561379c5761379c615495565b0217905550505050565b336000908152600080516020615b93833981519152602052604090205460ff166138005760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600080516020615b93833981519152602052604090205460ff1661387c5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b80600c600084600581111561389357613893615495565b60058111156138a4576138a4615495565b815260200190815260200160002090816113e291906158ec565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff166139325760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b61393d600082611765565b6121c7600033613385565b336000908152600080516020615b93833981519152602052604090205460ff166139a25760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b60648260ff161115613a1c5760405162461bcd60e51b815260206004820152602960248201527f526566657272616c3a2075706c696e652072657761726420726174652069732060448201527f6f7665722031303025000000000000000000000000000000000000000000000060648201526084016110ed565b60648160ff161115613a965760405162461bcd60e51b815260206004820152603260248201527f526566657272616c3a2075706c696e6527732075706c696e652072657761726460448201527f2072617465206973206f7665722031303025000000000000000000000000000060648201526084016110ed565b601c805460ff9283166101000261ffff199091169290931691909117919091179055565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480611091575061109182614817565b6000818152600260205260409020546001600160a01b03166121c75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016110ed565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613b9182612268565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080613bd683612268565b9050806001600160a01b0316846001600160a01b03161480613c1d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80613c415750836001600160a01b0316613c36846111c5565b6001600160a01b0316145b949350505050565b826001600160a01b0316613c5c82612268565b6001600160a01b031614613cc05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016110ed565b6001600160a01b038216613d225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016110ed565b613d2f83838360016148b2565b826001600160a01b0316613d4282612268565b6001600160a01b031614613da65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016110ed565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6121c7813361493d565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166118125760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613e9e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16156118125760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082613f7285846149b2565b14949350505050565b6118128282604051806020016040528060008152506149ff565b6121c781614a7d565b6040516001600160a01b0383166024820152604481018290526113e29084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152614b20565b6002600754036140815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016110ed565b6002600755565b6040516001600160a01b03808516602483015283166044820152606481018290526132109085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401613fe3565b6001600160a01b03821661412f5760405162461bcd60e51b815260206004820152601e60248201527f526566657272616c3a2075736572206973207a65726f2061646472657373000060448201526064016110ed565b6001600160a01b0381166141915760405162461bcd60e51b8152602060048201526024808201527f526566657272616c3a2072656665727265644279206973207a65726f206164646044820152637265737360e01b60648201526084016110ed565b6001600160a01b038281166000908152601a6020526040902054161561421f5760405162461bcd60e51b815260206004820152602660248201527f526566657272616c3a207573657227732075706c696e6520697320616c72656160448201527f647920736574000000000000000000000000000000000000000000000000000060648201526084016110ed565b6001600160a01b038181166000908152601a602052604090205481841691160361428b5760405162461bcd60e51b815260206004820152601860248201527f526566657272616c3a206379636c6520726566657272616c000000000000000060448201526064016110ed565b6001600160a01b038082166000818152601a602090815260408083205487861680855282852080546001600160a01b03199081168817909155868652601b855283862080546001810182559087529486209094018054909416811790935590519416938493927f7e19ccb8760f8f4327a0fca36f64d9031fc143abd2be199d610a776c58bb1e4491a4505050565b336000908152601a6020526040808220546001600160a01b03908116808452918320549192911690808084156143a657601c5460649061435c9060ff16886159ac565b61436691906159c3565b6001600160a01b0386166000908152601960205260408120805492945084929091906143939084906159e5565b909155506143a3905082846159e5565b92505b6001600160a01b0384161561441757601c546064906143cd90610100900460ff16886159ac565b6143d791906159c3565b6001600160a01b0385166000908152601960205260408120805492935083929091906144049084906159e5565b90915550614414905081846159e5565b92505b836001600160a01b0316856001600160a01b03167fd74bbd6b7d3812560152c5586b087e3d9bb642bcd8e66705c3dda3d51df59c64848460405161445c9291906159f8565b60405180910390a3601054600160a81b900460ff16156144a1576011546144a1906001600160a01b03166144908589615a27565b6001600160a01b038a169190613f9e565b50505050505050565b336000908152601a6020526040808220546001600160a01b039081168084529183205491929116908080841561453757601c546064906144ed9060ff16886159ac565b6144f791906159c3565b6001600160a01b0386166000908152601860205260408120805492945084929091906145249084906159e5565b90915550614534905082846159e5565b92505b6001600160a01b038416156145a857601c5460649061455e90610100900460ff16886159ac565b61456891906159c3565b6001600160a01b0385166000908152601860205260408120805492935083929091906145959084906159e5565b909155506145a5905081846159e5565b92505b836001600160a01b0316856001600160a01b03167fd74bbd6b7d3812560152c5586b087e3d9bb642bcd8e66705c3dda3d51df59c6484846040516145ed929190615a3a565b60405180910390a3601054600160a81b900460ff16156146c3576011546000906001600160a01b03166146208534615a27565b604051600081818185875af1925050503d806000811461465c576040519150601f19603f3d011682016040523d82523d6000602084013e614661565b606091505b50509050806144a15760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220746f2066756e64206d616e616e676572206164647265736044820152671cc819985a5b195960c21b60648201526084016110ed565b505050505050565b816001600160a01b0316836001600160a01b03160361472c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016110ed565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6147a4848484613c49565b6147b084848484614c08565b6132105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016110ed565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061487a57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061109157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614611091565b601054600160b81b900460ff16806148ec575060056000838152600d602052604090205460ff1660058111156148ea576148ea615495565b145b6149385760405162461bcd60e51b815260206004820152601960248201527f546f6b656e206973206e6f74207472616e7366657261626c650000000000000060448201526064016110ed565b613210565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166118125761497081614d54565b61497b836020614d66565b60405160200161498c929190615a69565b60408051601f198184030181529082905262461bcd60e51b82526110ed9160040161532c565b600081815b84518110156149f7576149e3828683815181106149d6576149d6615aea565b6020026020010151614f4e565b9150806149ef816157e2565b9150506149b7565b509392505050565b614a098383614f7d565b614a166000848484614c08565b6113e25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016110ed565b6000614a8882612268565b9050614a988160008460016148b2565b614aa182612268565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000614b75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166151169092919063ffffffff16565b9050805160001480614b96575080806020019051810190614b969190615b00565b6113e25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016110ed565b60006001600160a01b0384163b15614d4957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614c4c903390899088908890600401615b1d565b6020604051808303816000875af1925050508015614c87575060408051601f3d908101601f19168201909252614c8491810190615b59565b60015b614d2f573d808015614cb5576040519150601f19603f3d011682016040523d82523d6000602084013e614cba565b606091505b508051600003614d275760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016110ed565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613c41565b506001949350505050565b60606110916001600160a01b03831660145b60606000614d758360026159ac565b614d809060026159e5565b67ffffffffffffffff811115614d9857614d98615567565b6040519080825280601f01601f191660200182016040528015614dc2576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110614df957614df9615aea565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110614e4457614e44615aea565b60200101906001600160f81b031916908160001a9053506000614e688460026159ac565b614e739060016159e5565b90505b6001811115614ef8577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614eb457614eb4615aea565b1a60f81b828281518110614eca57614eca615aea565b60200101906001600160f81b031916908160001a90535060049490941c93614ef181615814565b9050614e76565b508315614f475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110ed565b9392505050565b6000818310614f6a576000828152602084905260409020614f47565b6000838152602083905260409020614f47565b6001600160a01b038216614fd35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016110ed565b6000818152600260205260409020546001600160a01b0316156150385760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110ed565b6150466000838360016148b2565b6000818152600260205260409020546001600160a01b0316156150ab5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110ed565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060613c41848460008585600080866001600160a01b0316858760405161513d9190615b76565b60006040518083038185875af1925050503d806000811461517a576040519150601f19603f3d011682016040523d82523d6000602084013e61517f565b606091505b50915091506151908783838761519b565b979650505050505050565b6060831561520a578251600003615203576001600160a01b0385163b6152035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016110ed565b5081613c41565b613c41838381511561521f5781518083602001fd5b8060405162461bcd60e51b81526004016110ed919061532c565b6001600160a01b03811681146121c757600080fd5b60006020828403121561526057600080fd5b8135614f4781615239565b6001600160e01b0319811681146121c757600080fd5b60006020828403121561529357600080fd5b8135614f478161526b565b8035600681106152ad57600080fd5b919050565b600080604083850312156152c557600080fd5b6152ce8361529e565b946020939093013593505050565b60005b838110156152f75781810151838201526020016152df565b50506000910152565b600081518084526153188160208601602086016152dc565b601f01601f19169290920160200192915050565b602081526000614f476020830184615300565b60006020828403121561535157600080fd5b5035919050565b6000806040838503121561536b57600080fd5b82356152ce81615239565b60008060006060848603121561538b57600080fd5b833561539681615239565b925060208401356153a681615239565b929592945050506040919091013590565b600080604083850312156153ca57600080fd5b8235915060208301356153dc81615239565b809150509250929050565b600080602083850312156153fa57600080fd5b823567ffffffffffffffff8082111561541257600080fd5b818501915085601f83011261542657600080fd5b81358181111561543557600080fd5b8660208260051b850101111561544a57600080fd5b60209290920196919550909350505050565b60006020828403121561546e57600080fd5b614f478261529e565b60008060006060848603121561548c57600080fd5b6153968461529e565b634e487b7160e01b600052602160045260246000fd5b60208101600683106154cd57634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156154e657600080fd5b6154ef8361529e565b915060208301356153dc81615239565b6000806040838503121561551257600080fd5b823591506155226020840161529e565b90509250929050565b80151581146121c757600080fd5b6000806040838503121561554c57600080fd5b823561555781615239565b915060208301356153dc8161552b565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561559857615598615567565b604051601f8501601f19908116603f011681019082821181831017156155c0576155c0615567565b816040528093508581528686860111156155d957600080fd5b858560208301376000602087830101525050509392505050565b6000806000806080858703121561560957600080fd5b843561561481615239565b9350602085013561562481615239565b925060408501359150606085013567ffffffffffffffff81111561564757600080fd5b8501601f8101871361565857600080fd5b6156678782356020840161557d565b91505092959194509250565b6000806040838503121561568657600080fd5b823561569181615239565b91506155226020840161529e565b600080604083850312156156b257600080fd5b82356154ef81615239565b600080604083850312156156d057600080fd5b6156d98361529e565b9150602083013567ffffffffffffffff8111156156f557600080fd5b8301601f8101851361570657600080fd5b6157158582356020840161557d565b9150509250929050565b803560ff811681146152ad57600080fd5b6000806040838503121561574357600080fd5b61574c8361571f565b91506155226020840161571f565b600181811c9082168061576e57607f821691505b60208210810361578e57634e487b7160e01b600052602260045260246000fd5b50919050565b8281526060602082015260006157bd6060830160038152620cae8d60eb1b602082015260400190565b90508260408301529392505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016157f4576157f46157cc565b5060010190565b60006020828403121561580d57600080fd5b5051919050565b600081615823576158236157cc565b506000190190565b8281526060602082015260006157bd6060830160038152621d5cd960ea1b602082015260400190565b818152604060208201526000614f476040830160038152620cae8d60eb1b602082015260400190565b818152604060208201526000614f476040830160038152621d5cd960ea1b602082015260400190565b601f8211156113e257600081815260208120601f850160051c810160208610156158cd5750805b601f850160051c820191505b818110156146c3578281556001016158d9565b815167ffffffffffffffff81111561590657615906615567565b61591a81615914845461575a565b846158a6565b602080601f83116001811461594f57600084156159375750858301515b600019600386901b1c1916600185901b1785556146c3565b600085815260208120601f198616915b8281101561597e5788860151825594840194600190910190840161595f565b508582101561599c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417611091576110916157cc565b6000826159e057634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115611091576110916157cc565b828152816020820152606060408201526000613c416060830160038152621d5cd960ea1b602082015260400190565b81810381811115611091576110916157cc565b828152816020820152606060408201526000613c416060830160038152620cae8d60eb1b602082015260400190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615aa18160178501602088016152dc565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351615ade8160288401602088016152dc565b01602801949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215615b1257600080fd5b8151614f478161552b565b60006001600160a01b03808716835280861660208401525083604083015260806060830152615b4f6080830184615300565b9695505050505050565b600060208284031215615b6b57600080fd5b8151614f478161526b565b60008251615b888184602087016152dc565b919091019291505056fe61f0f4fc423bfa88e8d2f029f9b768dd4a7c569ac8e600b83668449acadcfc5a43616c6c6572206973206e6f74206f70657261746f7200000000000000000000a26469706673582212203fddabe0426555f8e3ec2c9ea3ad7b412b4680086153c0e0e0d1d06ce52d915064736f6c6343000812003300000000000000000000000059a5a1ecb4ba72b3c2cdd5a060c7d5b9795216290000000000000000000000005448f4a4687d12aeec646ce9ede7cb63c1a13c86

Deployed Bytecode

0x60806040526004361061057d5760003560e01c80637c1db588116102d5578063c87b56dd11610184578063e4997dc5116100e1578063f263ed8411610095578063f5b541a61161006f578063f5b541a614611012578063f5c0202f14611046578063f897a22b1461106657600080fd5b8063f263ed8414610fb8578063f2fde38b14610fd8578063f3b606ab14610ff857600080fd5b8063e985e9c5116100c6578063e985e9c514610f39578063e9e7177514610f82578063ef16f6da14610f9857600080fd5b8063e4997dc514610ef9578063e57ff80814610f1957600080fd5b8063db94b1ff11610138578063e0ec7c361161011d578063e0ec7c3614610e9e578063e150007e14610ece578063e1ff489314610ee457600080fd5b8063db94b1ff14610e6f578063de512ca214610e8457600080fd5b8063d309cb8111610169578063d309cb8114610e08578063d514433414610e22578063d547741f14610e4f57600080fd5b8063c87b56dd14610dbb578063d1cc7a0514610ddb57600080fd5b8063a0a0c46511610232578063b88d4fde116101e6578063bedc09db116101cb578063bedc09db14610d64578063c051e38a14610d7a578063c0dfecbf14610d9b57600080fd5b8063b88d4fde14610d24578063bd32fb6614610d4457600080fd5b8063a22cb46511610217578063a22cb46514610ccd578063aa46a40014610ced578063b7928b1d14610d0457600080fd5b8063a0a0c46514610ca3578063a217fddf14610cb857600080fd5b8063922400ff1161028957806394975f731161026e57806394975f7314610c4d57806395d89b4114610c6d5780639a72580914610c8257600080fd5b8063922400ff14610c0c5780639478941c14610c2d57600080fd5b8063890b887f116102ba578063890b887f14610b785780638b77b8cf14610b9957806391d1485414610bc657600080fd5b80637c1db58814610b3857806387bafe6314610b5857600080fd5b80633ae2d9a11161043157806362baf18b1161038e57806375819a021161034257806378d23b7c1161032757806378d23b7c14610ac85780637adf373914610ae85780637bf75f6c14610b2557600080fd5b806375819a0214610a7857806376e5ae4f14610a9857600080fd5b80636d60e6c1116103735780636d60e6c114610a2d57806370a0823114610a4257806374d2577414610a6257600080fd5b806362baf18b146109ed5780636352211e14610a0d57600080fd5b806357d1b31b116103e55780635b70ea9f116103ca5780635b70ea9f146109985780635e1a4d42146109a05780636209ec2d146109cd57600080fd5b806357d1b31b1461096357806359c74f291461098357600080fd5b806342842e0e1161041657806342842e0e146108be57806342966c68146108de578063532e919b146108fe57600080fd5b80633ae2d9a11461087e57806340b5a0d61461089e57600080fd5b8063248a9ca3116104df5780632f2ff15d116104935780633169ce40116104785780633169ce401461082c57806336568abe1461084b578063372f657c1461086b57600080fd5b80632f2ff15d146107d85780632f83a6bc146107f857600080fd5b8063296b0466116104c4578063296b0466146107725780632a055ee1146107925780632ccb2bd9146107a757600080fd5b8063248a9ca3146106fe57806324acbd691461073c57600080fd5b8063082e2a72116105365780630ecb93c01161051b5780630ecb93c01461069e5780631b9a91a4146106be57806323b872dd146106de57600080fd5b8063082e2a7214610669578063095ea7b31461067e57600080fd5b80630523eb41116105675780630523eb411461060557806306fdde0314610627578063081812fc1461064957600080fd5b806202fbd21461058257806301ffc9a7146105d5575b600080fd5b34801561058e57600080fd5b506105b861059d36600461524e565b601a602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156105e157600080fd5b506105f56105f0366004615281565b611086565b60405190151581526020016105cc565b34801561061157600080fd5b506106256106203660046152b2565b611097565b005b34801561063357600080fd5b5061063c611133565b6040516105cc919061532c565b34801561065557600080fd5b506105b861066436600461533f565b6111c5565b34801561067557600080fd5b506106256111ec565b34801561068a57600080fd5b50610625610699366004615358565b6112b6565b3480156106aa57600080fd5b506106256106b936600461524e565b6113e7565b3480156106ca57600080fd5b506106256106d9366004615358565b611465565b3480156106ea57600080fd5b506106256106f9366004615376565b6115e7565b34801561070a57600080fd5b5061072e61071936600461533f565b60009081526006602052604090206001015490565b6040519081526020016105cc565b34801561074857600080fd5b5061072e61075736600461524e565b6001600160a01b03166000908152601b602052604090205490565b34801561077e57600080fd5b5061062561078d3660046152b2565b61165e565b34801561079e57600080fd5b506106256116cf565b3480156107b357600080fd5b50601c546107c690610100900460ff1681565b60405160ff90911681526020016105cc565b3480156107e457600080fd5b506106256107f33660046153b7565b611765565b34801561080457600080fd5b5061072e7f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f81565b34801561083857600080fd5b506016546105f590610100900460ff1681565b34801561085757600080fd5b506106256108663660046153b7565b61178a565b6106256108793660046153e7565b611816565b34801561088a57600080fd5b5061062561089936600461545c565b611b2a565b3480156108aa57600080fd5b5061063c6108b936600461545c565b611bab565b3480156108ca57600080fd5b506106256108d9366004615376565b611c45565b3480156108ea57600080fd5b506106256108f936600461533f565b611c60565b34801561090a57600080fd5b5061094361091936600461524e565b6001600160a01b039081166000908152601a60205260408082205483168083529120549092911690565b604080516001600160a01b039384168152929091166020830152016105cc565b34801561096f57600080fd5b5061062561097e366004615376565b611cf9565b34801561098f57600080fd5b50610625611e42565b610625611f15565b3480156109ac57600080fd5b5061072e6109bb36600461545c565b600a6020526000908152604090205481565b3480156109d957600080fd5b506011546105b8906001600160a01b031681565b3480156109f957600080fd5b50610625610a0836600461524e565b6121ca565b348015610a1957600080fd5b506105b8610a2836600461533f565b612268565b348015610a3957600080fd5b506106256122cd565b348015610a4e57600080fd5b5061072e610a5d36600461524e565b612363565b348015610a6e57600080fd5b5061072e60125481565b348015610a8457600080fd5b50610625610a9336600461524e565b6123fd565b348015610aa457600080fd5b506105f5610ab336600461524e565b60146020526000908152604090205460ff1681565b348015610ad457600080fd5b50610625610ae3366004615477565b612493565b348015610af457600080fd5b50610b18610b0336600461533f565b600d6020526000908152604090205460ff1681565b6040516105cc91906154ab565b610625610b333660046154d3565b6128d5565b348015610b4457600080fd5b50610625610b5336600461524e565b612c9a565b348015610b6457600080fd5b50610625610b733660046154ff565b612d38565b348015610b8457600080fd5b506010546105f590600160a81b900460ff1681565b348015610ba557600080fd5b5061072e610bb436600461524e565b60196020526000908152604090205481565b348015610bd257600080fd5b506105f5610be13660046153b7565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b348015610c1857600080fd5b506011546105f590600160a01b900460ff1681565b348015610c3957600080fd5b50610625610c4836600461524e565b612dbc565b348015610c5957600080fd5b50610625610c6836600461533f565b612e5a565b348015610c7957600080fd5b5061063c612eb9565b348015610c8e57600080fd5b506010546105f590600160b01b900460ff1681565b348015610caf57600080fd5b50610625612ec8565b348015610cc457600080fd5b5061072e600081565b348015610cd957600080fd5b50610625610ce8366004615539565b6130ef565b348015610cf957600080fd5b5060085461072e9081565b348015610d1057600080fd5b50610625610d1f36600461524e565b6130fa565b348015610d3057600080fd5b50610625610d3f3660046155f3565b613198565b348015610d5057600080fd5b50610625610d5f36600461533f565b613216565b348015610d7057600080fd5b5061072e600e5481565b348015610d8657600080fd5b506010546105f590600160a01b900460ff1681565b348015610da757600080fd5b506105b8610db6366004615358565b613275565b348015610dc757600080fd5b5061063c610dd636600461533f565b6132ad565b348015610de757600080fd5b5061072e610df636600461524e565b60186020526000908152604090205481565b348015610e1457600080fd5b50601654610b189060ff1681565b348015610e2e57600080fd5b5061072e610e3d36600461545c565b600b6020526000908152604090205481565b348015610e5b57600080fd5b50610625610e6a3660046153b7565b613385565b348015610e7b57600080fd5b506106256133aa565b348015610e9057600080fd5b50601354610b189060ff1681565b348015610eaa57600080fd5b506105f5610eb936600461524e565b60176020526000908152604090205460ff1681565b348015610eda57600080fd5b5061072e60155481565b348015610ef057600080fd5b50610625613421565b348015610f0557600080fd5b50610625610f1436600461524e565b613622565b348015610f2557600080fd5b50610625610f34366004615673565b61369d565b348015610f4557600080fd5b506105f5610f5436600461569f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610f8e57600080fd5b5061072e600f5481565b348015610fa457600080fd5b50610625610fb336600461524e565b6137a6565b348015610fc457600080fd5b50610625610fd33660046156bd565b613822565b348015610fe457600080fd5b50610625610ff336600461524e565b6138be565b34801561100457600080fd5b50601c546107c69060ff1681565b34801561101e57600080fd5b5061072e7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b34801561105257600080fd5b50610625611061366004615730565b613948565b34801561107257600080fd5b506010546105b8906001600160a01b031681565b600061109182613aba565b92915050565b336000908152600080516020615b93833981519152602052604090205460ff166110f65760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064015b60405180910390fd5b80600a600084600581111561110d5761110d615495565b600581111561111e5761111e615495565b81526020810191909152604001600020555050565b6060600080546111429061575a565b80601f016020809104026020016040519081016040528092919081815260200182805461116e9061575a565b80156111bb5780601f10611190576101008083540402835291602001916111bb565b820191906000526020600020905b81548152906001019060200180831161119e57829003601f168201915b5050505050905090565b60006111d082613af8565b506000908152600460205260409020546001600160a01b031690565b336000908152600080516020615b93833981519152602052604090205460ff166112465760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6012546112955760405162461bcd60e51b815260206004820152601760248201527f4d65726b6c6520726f6f7420686176656e27742073657400000000000000000060448201526064016110ed565b6011805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60006112c182612268565b9050806001600160a01b0316836001600160a01b03160361134a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016110ed565b336001600160a01b038216148061136657506113668133610f54565b6113d85760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016110ed565b6113e28383613b5c565b505050565b336000908152600080516020615b93833981519152602052604090205460ff166114415760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b3360009081527fb977339b0edb99917d2314ebb17319c5e910f915e6589ef573477baf813c3906602052604090205460ff166114e35760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f742066756e64206d616e6167657200000000000060448201526064016110ed565b478111156115335760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e6365000000000000000000000000000060448201526064016110ed565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611580576040519150601f19603f3d011682016040523d82523d6000602084013e611585565b606091505b50509050806113e25760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220746f2066756e64206d616e616e676572206164647265736044820152671cc819985a5b195960c21b60648201526084016110ed565b6115f13382613bca565b6116535760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b60648201526084016110ed565b6113e2838383613c49565b336000908152600080516020615b93833981519152602052604090205460ff166116b85760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b80600b600084600581111561110d5761110d615495565b336000908152600080516020615b93833981519152602052604090205460ff166117295760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b60008281526006602052604090206001015461178081613e36565b6113e28383613e40565b6001600160a01b03811633146118085760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016110ed565b6118128282613ee2565b5050565b601154600160a01b900460ff1661186f5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420686176656e277420737461727465640000000000000060448201526064016110ed565b3360009081526014602052604090205460ff16156118cf5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420616c726561647920636c61696d65640000000000000060448201526064016110ed565b611944828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120613f65565b6119905760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f6600000000000000000000000060448201526064016110ed565b600560135460ff1660058111156119a9576119a9615495565b03611a0257600f54600e541015611a025760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b336000908152601460205260409020805460ff19166001179055611a2a600880546001019055565b6000611a3560085490565b6010805460ff60b81b1916600160b81b1790559050611a543382613f7b565b60135460ff166005811115611a6b57611a6b615495565b336001600160a01b03167f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e9836000604051611aa7929190615794565b60405180910390a36013546000828152600d60205260409020805460ff9092169160ff19166001836005811115611ae057611ae0615495565b02179055506010805460ff60b81b19169055600560135460ff166005811115611b0b57611b0b615495565b036113e257600f8054906000611b20836157e2565b9190505550505050565b336000908152600080516020615b93833981519152602052604090205460ff16611b845760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6013805482919060ff19166001836005811115611ba357611ba3615495565b021790555050565b600c6020526000908152604090208054611bc49061575a565b80601f0160208091040260200160405190810160405280929190818152602001828054611bf09061575a565b8015611c3d5780601f10611c1257610100808354040283529160200191611c3d565b820191906000526020600020905b815481529060010190602001808311611c2057829003601f168201915b505050505081565b6113e283838360405180602001604052806000815250613198565b336000908152600080516020615b93833981519152602052604090205460ff16611cba5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b611cc381613f95565b6040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150565b3360009081527fb977339b0edb99917d2314ebb17319c5e910f915e6589ef573477baf813c3906602052604090205460ff16611d775760405162461bcd60e51b815260206004820152601a60248201527f43616c6c6572206973206e6f742066756e64206d616e6167657200000000000060448201526064016110ed565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611dbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddf91906157fb565b811115611e2e5760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e6365000000000000000000000000000060448201526064016110ed565b6113e26001600160a01b0384168383613f9e565b336000908152600080516020615b93833981519152602052604090205460ff16611e9c5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6010546001600160a01b0316611ef45760405162461bcd60e51b815260206004820152601d60248201527f55534420546f6b656e206164647265737320686176656e27742073657400000060448201526064016110ed565b6010805460ff60a01b198116600160a01b9182900460ff1615909102179055565b601654610100900460ff16611f6c5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420686176656e277420737461727465640000000000000060448201526064016110ed565b600060155411611fbe5760405162461bcd60e51b815260206004820152601860248201527f46726565206d696e7420737570706c79206973207a65726f000000000000000060448201526064016110ed565b3360009081526017602052604090205460ff161561201e5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420616c726561647920636c61696d65640000000000000060448201526064016110ed565b600560165460ff16600581111561203757612037615495565b0361209057600f54600e5410156120905760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b336000908152601760205260408120805460ff1916600117905560158054916120b883615814565b91905055506120cb600880546001019055565b60006120d660085490565b6010805460ff60b81b1916600160b81b17905590506120f53382613f7b565b60165460ff16600581111561210c5761210c615495565b336001600160a01b03167f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e9836000604051612148929190615794565b60405180910390a36016546000828152600d60205260409020805460ff9092169160ff1916600183600581111561218157612181615495565b02179055506010805460ff60b81b19169055600560165460ff1660058111156121ac576121ac615495565b036121c757600f80549060006121c1836157e2565b91905055505b50565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661223e5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f82613385565b6000818152600260205260408120546001600160a01b0316806110915760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016110ed565b336000908152600080516020615b93833981519152602052604090205460ff166123275760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601080547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff8116600160b01b9182900460ff1615909102179055565b60006001600160a01b0382166123e15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016110ed565b506001600160a01b031660009081526003602052604090205490565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff166124715760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61249b61402f565b3360009081526009602052604090205460ff16156124fb5760405162461bcd60e51b815260206004820152601360248201527f596f752061726520626c61636b6c69737465640000000000000000000000000060448201526064016110ed565b601054600160a01b900460ff166125545760405162461bcd60e51b815260206004820152601460248201527f4d696e7420686176656e2774207374617274656400000000000000000000000060448201526064016110ed565b6010546001600160a01b03166125ac5760405162461bcd60e51b815260206004820152601c60248201527f55534420746f6b656e2061646472657373206973206e6f74207365740000000060448201526064016110ed565b600a60008460058111156125c2576125c2615495565b60058111156125d3576125d3615495565b8152602001908152602001600020546000036126315760405162461bcd60e51b815260206004820152601560248201527f55534420707269636520686176656e277420736574000000000000000000000060448201526064016110ed565b600a600084600581111561264757612647615495565b600581111561265857612658615495565b8152602001908152602001600020548110156126b65760405162461bcd60e51b815260206004820152601d60248201527f5553442076616c75652073656e74206973206e6f7420636f727265637400000060448201526064016110ed565b60058360058111156126ca576126ca615495565b0361272357600f54600e5410156127235760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b60105461273b906001600160a01b0316333084614088565b612749600880546001019055565b600061275460085490565b6010805460ff60b81b1916600160b81b17905590506127733382613f7b565b83600581111561278557612785615495565b337f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e983600a60008960058111156127be576127be615495565b60058111156127cf576127cf615495565b8152602001908152602001600020546040516127ec92919061582b565b60405180910390a36000818152600d60205260409020805485919060ff1916600183600581111561281f5761281f615495565b02179055506010805460ff60b81b19169055600584600581111561284557612845615495565b0361286057600f805490600061285a836157e2565b91905055505b6001600160a01b0383161580159061288157506001600160a01b0383163314155b156128b457336000908152601a60205260408120546001600160a01b031690819052806128b2576128b233856140d9565b505b6010546128ca906001600160a01b031683614319565b506113e26001600755565b6128dd61402f565b3360009081526009602052604090205460ff161561293d5760405162461bcd60e51b815260206004820152601360248201527f596f752061726520626c61636b6c69737465640000000000000000000000000060448201526064016110ed565b601054600160a01b900460ff166129965760405162461bcd60e51b815260206004820152601460248201527f4d696e7420686176656e2774207374617274656400000000000000000000000060448201526064016110ed565b600b60008360058111156129ac576129ac615495565b60058111156129bd576129bd615495565b815260200190815260200160002054600003612a1b5760405162461bcd60e51b815260206004820152601560248201527f45544820707269636520686176656e277420736574000000000000000000000060448201526064016110ed565b600b6000836005811115612a3157612a31615495565b6005811115612a4257612a42615495565b815260200190815260200160002054341015612aa05760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016110ed565b6005826005811115612ab457612ab4615495565b03612b0d57600f54600e541015612b0d5760405162461bcd60e51b815260206004820152601660248201527f4c69666574696d65206361726420736f6c64206f75740000000000000000000060448201526064016110ed565b612b1b600880546001019055565b6000612b2660085490565b6010805460ff60b81b1916600160b81b1790559050612b453382613f7b565b826005811115612b5757612b57615495565b337f36f02c6a447f6f186470de1859c43cf0a852ed47ea550a3f9b61bc0a6d5244e983600b6000886005811115612b9057612b90615495565b6005811115612ba157612ba1615495565b815260200190815260200160002054604051612bbe929190615794565b60405180910390a36000818152600d60205260409020805484919060ff19166001836005811115612bf157612bf1615495565b02179055506010805460ff60b81b191690556005836005811115612c1757612c17615495565b03612c3257600f8054906000612c2c836157e2565b91905055505b6001600160a01b03821615801590612c5357506001600160a01b0382163314155b15612c8657336000908152601a60205260408120546001600160a01b03169081905280612c8457612c8433846140d9565b505b612c8f346144aa565b506118126001600755565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16612d0e5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f82613e40565b336000908152600080516020615b93833981519152602052604090205460ff16612d925760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6016805482919060ff19166001836005811115612db157612db1615495565b021790555050601555565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff16612e305760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92982613385565b336000908152600080516020615b93833981519152602052604090205460ff16612eb45760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b600e55565b6060600180546111429061575a565b612ed061402f565b601054600160b01b900460ff16612f295760405162461bcd60e51b815260206004820152601560248201527f436c61696d20686176656e27742073746172746564000000000000000000000060448201526064016110ed565b33600090815260186020526040902054612f855760405162461bcd60e51b815260206004820152601260248201527f4e6f2072657761726420746f20636c61696d000000000000000000000000000060448201526064016110ed565b33600090815260186020526040902054471015612fe45760405162461bcd60e51b815260206004820152601f60248201527f42616c616e636520696e73756666696369656e7420666f72207265776172640060448201526064016110ed565b33600081815260186020526040808220805490839055905190929083908381818185875af1925050503d8060008114613039576040519150601f19603f3d011682016040523d82523d6000602084013e61303e565b606091505b50509050806130a05760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220746f2066756e64206d616e616e676572206164647265736044820152671cc819985a5b195960c21b60648201526084016110ed565b336001600160a01b03167fd2301a68d6cb5a0838ce40003dbb09e5eb2659920c05aba729b36ded7249fca4836040516130d99190615854565b60405180910390a250506130ed6001600755565b565b6118123383836146cb565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff1661316e5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b6121c77f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92982613e40565b6131a23383613bca565b6132045760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b60648201526084016110ed565b61321084848484614799565b50505050565b336000908152600080516020615b93833981519152602052604090205460ff166132705760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601255565b601b602052816000526040600020818154811061329157600080fd5b6000918252602090912001546001600160a01b03169150829050565b6000818152600d6020526040812054606091600c9160ff1660058111156132d6576132d6615495565b60058111156132e7576132e7615495565b815260200190815260200160002080546133009061575a565b80601f016020809104026020016040519081016040528092919081815260200182805461332c9061575a565b80156133795780601f1061334e57610100808354040283529160200191613379565b820191906000526020600020905b81548152906001019060200180831161335c57829003601f168201915b50505050509050919050565b6000828152600660205260409020600101546133a081613e36565b6113e28383613ee2565b336000908152600080516020615b93833981519152602052604090205460ff166134045760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6016805461ff001981166101009182900460ff1615909102179055565b61342961402f565b601054600160b01b900460ff166134825760405162461bcd60e51b815260206004820152601560248201527f436c61696d20686176656e27742073746172746564000000000000000000000060448201526064016110ed565b336000908152601960205260409020546134de5760405162461bcd60e51b815260206004820152601260248201527f4e6f2072657761726420746f20636c61696d000000000000000000000000000060448201526064016110ed565b33600090815260196020526040908190205460105491516370a0823160e01b815230600482015290916001600160a01b0316906370a0823190602401602060405180830381865afa158015613537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061355b91906157fb565b10156135a95760405162461bcd60e51b815260206004820152601f60248201527f42616c616e636520696e73756666696369656e7420666f72207265776172640060448201526064016110ed565b336000818152601960205260408120805491905560105490916135d6916001600160a01b03169083613f9e565b336001600160a01b03167fd2301a68d6cb5a0838ce40003dbb09e5eb2659920c05aba729b36ded7249fca48260405161360f919061587d565b60405180910390a2506130ed6001600755565b336000908152600080516020615b93833981519152602052604090205460ff1661367c5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b6001600160a01b03166000908152600960205260409020805460ff19169055565b336000908152600080516020615b93833981519152602052604090205460ff166136f75760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b613705600880546001019055565b600061371060085490565b905061371c8382613f7b565b81600581111561372e5761372e615495565b836001600160a01b03167fd66a038ac0344e13284361ccebe60ba82b70472757e000bfc13155d8bb33858c8360405161376991815260200190565b60405180910390a36000818152600d60205260409020805483919060ff1916600183600581111561379c5761379c615495565b0217905550505050565b336000908152600080516020615b93833981519152602052604090205460ff166138005760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600080516020615b93833981519152602052604090205460ff1661387c5760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b80600c600084600581111561389357613893615495565b60058111156138a4576138a4615495565b815260200190815260200160002090816113e291906158ec565b3360009081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8602052604090205460ff166139325760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b60448201526064016110ed565b61393d600082611765565b6121c7600033613385565b336000908152600080516020615b93833981519152602052604090205460ff166139a25760405162461bcd60e51b81526020600482015260166024820152600080516020615bb383398151915260448201526064016110ed565b60648260ff161115613a1c5760405162461bcd60e51b815260206004820152602960248201527f526566657272616c3a2075706c696e652072657761726420726174652069732060448201527f6f7665722031303025000000000000000000000000000000000000000000000060648201526084016110ed565b60648160ff161115613a965760405162461bcd60e51b815260206004820152603260248201527f526566657272616c3a2075706c696e6527732075706c696e652072657761726460448201527f2072617465206973206f7665722031303025000000000000000000000000000060648201526084016110ed565b601c805460ff9283166101000261ffff199091169290931691909117919091179055565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480611091575061109182614817565b6000818152600260205260409020546001600160a01b03166121c75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016110ed565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613b9182612268565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080613bd683612268565b9050806001600160a01b0316846001600160a01b03161480613c1d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80613c415750836001600160a01b0316613c36846111c5565b6001600160a01b0316145b949350505050565b826001600160a01b0316613c5c82612268565b6001600160a01b031614613cc05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016110ed565b6001600160a01b038216613d225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016110ed565b613d2f83838360016148b2565b826001600160a01b0316613d4282612268565b6001600160a01b031614613da65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016110ed565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6121c7813361493d565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166118125760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613e9e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16156118125760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082613f7285846149b2565b14949350505050565b6118128282604051806020016040528060008152506149ff565b6121c781614a7d565b6040516001600160a01b0383166024820152604481018290526113e29084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152614b20565b6002600754036140815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016110ed565b6002600755565b6040516001600160a01b03808516602483015283166044820152606481018290526132109085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401613fe3565b6001600160a01b03821661412f5760405162461bcd60e51b815260206004820152601e60248201527f526566657272616c3a2075736572206973207a65726f2061646472657373000060448201526064016110ed565b6001600160a01b0381166141915760405162461bcd60e51b8152602060048201526024808201527f526566657272616c3a2072656665727265644279206973207a65726f206164646044820152637265737360e01b60648201526084016110ed565b6001600160a01b038281166000908152601a6020526040902054161561421f5760405162461bcd60e51b815260206004820152602660248201527f526566657272616c3a207573657227732075706c696e6520697320616c72656160448201527f647920736574000000000000000000000000000000000000000000000000000060648201526084016110ed565b6001600160a01b038181166000908152601a602052604090205481841691160361428b5760405162461bcd60e51b815260206004820152601860248201527f526566657272616c3a206379636c6520726566657272616c000000000000000060448201526064016110ed565b6001600160a01b038082166000818152601a602090815260408083205487861680855282852080546001600160a01b03199081168817909155868652601b855283862080546001810182559087529486209094018054909416811790935590519416938493927f7e19ccb8760f8f4327a0fca36f64d9031fc143abd2be199d610a776c58bb1e4491a4505050565b336000908152601a6020526040808220546001600160a01b03908116808452918320549192911690808084156143a657601c5460649061435c9060ff16886159ac565b61436691906159c3565b6001600160a01b0386166000908152601960205260408120805492945084929091906143939084906159e5565b909155506143a3905082846159e5565b92505b6001600160a01b0384161561441757601c546064906143cd90610100900460ff16886159ac565b6143d791906159c3565b6001600160a01b0385166000908152601960205260408120805492935083929091906144049084906159e5565b90915550614414905081846159e5565b92505b836001600160a01b0316856001600160a01b03167fd74bbd6b7d3812560152c5586b087e3d9bb642bcd8e66705c3dda3d51df59c64848460405161445c9291906159f8565b60405180910390a3601054600160a81b900460ff16156144a1576011546144a1906001600160a01b03166144908589615a27565b6001600160a01b038a169190613f9e565b50505050505050565b336000908152601a6020526040808220546001600160a01b039081168084529183205491929116908080841561453757601c546064906144ed9060ff16886159ac565b6144f791906159c3565b6001600160a01b0386166000908152601860205260408120805492945084929091906145249084906159e5565b90915550614534905082846159e5565b92505b6001600160a01b038416156145a857601c5460649061455e90610100900460ff16886159ac565b61456891906159c3565b6001600160a01b0385166000908152601860205260408120805492935083929091906145959084906159e5565b909155506145a5905081846159e5565b92505b836001600160a01b0316856001600160a01b03167fd74bbd6b7d3812560152c5586b087e3d9bb642bcd8e66705c3dda3d51df59c6484846040516145ed929190615a3a565b60405180910390a3601054600160a81b900460ff16156146c3576011546000906001600160a01b03166146208534615a27565b604051600081818185875af1925050503d806000811461465c576040519150601f19603f3d011682016040523d82523d6000602084013e614661565b606091505b50509050806144a15760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220746f2066756e64206d616e616e676572206164647265736044820152671cc819985a5b195960c21b60648201526084016110ed565b505050505050565b816001600160a01b0316836001600160a01b03160361472c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016110ed565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6147a4848484613c49565b6147b084848484614c08565b6132105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016110ed565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061487a57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061109157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614611091565b601054600160b81b900460ff16806148ec575060056000838152600d602052604090205460ff1660058111156148ea576148ea615495565b145b6149385760405162461bcd60e51b815260206004820152601960248201527f546f6b656e206973206e6f74207472616e7366657261626c650000000000000060448201526064016110ed565b613210565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166118125761497081614d54565b61497b836020614d66565b60405160200161498c929190615a69565b60408051601f198184030181529082905262461bcd60e51b82526110ed9160040161532c565b600081815b84518110156149f7576149e3828683815181106149d6576149d6615aea565b6020026020010151614f4e565b9150806149ef816157e2565b9150506149b7565b509392505050565b614a098383614f7d565b614a166000848484614c08565b6113e25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016110ed565b6000614a8882612268565b9050614a988160008460016148b2565b614aa182612268565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000614b75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166151169092919063ffffffff16565b9050805160001480614b96575080806020019051810190614b969190615b00565b6113e25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016110ed565b60006001600160a01b0384163b15614d4957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614c4c903390899088908890600401615b1d565b6020604051808303816000875af1925050508015614c87575060408051601f3d908101601f19168201909252614c8491810190615b59565b60015b614d2f573d808015614cb5576040519150601f19603f3d011682016040523d82523d6000602084013e614cba565b606091505b508051600003614d275760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016110ed565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613c41565b506001949350505050565b60606110916001600160a01b03831660145b60606000614d758360026159ac565b614d809060026159e5565b67ffffffffffffffff811115614d9857614d98615567565b6040519080825280601f01601f191660200182016040528015614dc2576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110614df957614df9615aea565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110614e4457614e44615aea565b60200101906001600160f81b031916908160001a9053506000614e688460026159ac565b614e739060016159e5565b90505b6001811115614ef8577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614eb457614eb4615aea565b1a60f81b828281518110614eca57614eca615aea565b60200101906001600160f81b031916908160001a90535060049490941c93614ef181615814565b9050614e76565b508315614f475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110ed565b9392505050565b6000818310614f6a576000828152602084905260409020614f47565b6000838152602083905260409020614f47565b6001600160a01b038216614fd35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016110ed565b6000818152600260205260409020546001600160a01b0316156150385760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110ed565b6150466000838360016148b2565b6000818152600260205260409020546001600160a01b0316156150ab5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110ed565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060613c41848460008585600080866001600160a01b0316858760405161513d9190615b76565b60006040518083038185875af1925050503d806000811461517a576040519150601f19603f3d011682016040523d82523d6000602084013e61517f565b606091505b50915091506151908783838761519b565b979650505050505050565b6060831561520a578251600003615203576001600160a01b0385163b6152035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016110ed565b5081613c41565b613c41838381511561521f5781518083602001fd5b8060405162461bcd60e51b81526004016110ed919061532c565b6001600160a01b03811681146121c757600080fd5b60006020828403121561526057600080fd5b8135614f4781615239565b6001600160e01b0319811681146121c757600080fd5b60006020828403121561529357600080fd5b8135614f478161526b565b8035600681106152ad57600080fd5b919050565b600080604083850312156152c557600080fd5b6152ce8361529e565b946020939093013593505050565b60005b838110156152f75781810151838201526020016152df565b50506000910152565b600081518084526153188160208601602086016152dc565b601f01601f19169290920160200192915050565b602081526000614f476020830184615300565b60006020828403121561535157600080fd5b5035919050565b6000806040838503121561536b57600080fd5b82356152ce81615239565b60008060006060848603121561538b57600080fd5b833561539681615239565b925060208401356153a681615239565b929592945050506040919091013590565b600080604083850312156153ca57600080fd5b8235915060208301356153dc81615239565b809150509250929050565b600080602083850312156153fa57600080fd5b823567ffffffffffffffff8082111561541257600080fd5b818501915085601f83011261542657600080fd5b81358181111561543557600080fd5b8660208260051b850101111561544a57600080fd5b60209290920196919550909350505050565b60006020828403121561546e57600080fd5b614f478261529e565b60008060006060848603121561548c57600080fd5b6153968461529e565b634e487b7160e01b600052602160045260246000fd5b60208101600683106154cd57634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156154e657600080fd5b6154ef8361529e565b915060208301356153dc81615239565b6000806040838503121561551257600080fd5b823591506155226020840161529e565b90509250929050565b80151581146121c757600080fd5b6000806040838503121561554c57600080fd5b823561555781615239565b915060208301356153dc8161552b565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561559857615598615567565b604051601f8501601f19908116603f011681019082821181831017156155c0576155c0615567565b816040528093508581528686860111156155d957600080fd5b858560208301376000602087830101525050509392505050565b6000806000806080858703121561560957600080fd5b843561561481615239565b9350602085013561562481615239565b925060408501359150606085013567ffffffffffffffff81111561564757600080fd5b8501601f8101871361565857600080fd5b6156678782356020840161557d565b91505092959194509250565b6000806040838503121561568657600080fd5b823561569181615239565b91506155226020840161529e565b600080604083850312156156b257600080fd5b82356154ef81615239565b600080604083850312156156d057600080fd5b6156d98361529e565b9150602083013567ffffffffffffffff8111156156f557600080fd5b8301601f8101851361570657600080fd5b6157158582356020840161557d565b9150509250929050565b803560ff811681146152ad57600080fd5b6000806040838503121561574357600080fd5b61574c8361571f565b91506155226020840161571f565b600181811c9082168061576e57607f821691505b60208210810361578e57634e487b7160e01b600052602260045260246000fd5b50919050565b8281526060602082015260006157bd6060830160038152620cae8d60eb1b602082015260400190565b90508260408301529392505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016157f4576157f46157cc565b5060010190565b60006020828403121561580d57600080fd5b5051919050565b600081615823576158236157cc565b506000190190565b8281526060602082015260006157bd6060830160038152621d5cd960ea1b602082015260400190565b818152604060208201526000614f476040830160038152620cae8d60eb1b602082015260400190565b818152604060208201526000614f476040830160038152621d5cd960ea1b602082015260400190565b601f8211156113e257600081815260208120601f850160051c810160208610156158cd5750805b601f850160051c820191505b818110156146c3578281556001016158d9565b815167ffffffffffffffff81111561590657615906615567565b61591a81615914845461575a565b846158a6565b602080601f83116001811461594f57600084156159375750858301515b600019600386901b1c1916600185901b1785556146c3565b600085815260208120601f198616915b8281101561597e5788860151825594840194600190910190840161595f565b508582101561599c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417611091576110916157cc565b6000826159e057634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115611091576110916157cc565b828152816020820152606060408201526000613c416060830160038152621d5cd960ea1b602082015260400190565b81810381811115611091576110916157cc565b828152816020820152606060408201526000613c416060830160038152620cae8d60eb1b602082015260400190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615aa18160178501602088016152dc565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351615ade8160288401602088016152dc565b01602801949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215615b1257600080fd5b8151614f478161552b565b60006001600160a01b03808716835280861660208401525083604083015260806060830152615b4f6080830184615300565b9695505050505050565b600060208284031215615b6b57600080fd5b8151614f478161526b565b60008251615b888184602087016152dc565b919091019291505056fe61f0f4fc423bfa88e8d2f029f9b768dd4a7c569ac8e600b83668449acadcfc5a43616c6c6572206973206e6f74206f70657261746f7200000000000000000000a26469706673582212203fddabe0426555f8e3ec2c9ea3ad7b412b4680086153c0e0e0d1d06ce52d915064736f6c63430008120033

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

00000000000000000000000059a5a1ecb4ba72b3c2cdd5a060c7d5b9795216290000000000000000000000005448f4a4687d12aeec646ce9ede7cb63c1a13c86

-----Decoded View---------------
Arg [0] : operator (address): 0x59A5a1ecb4ba72B3c2CDD5a060C7D5b979521629
Arg [1] : _fundManager (address): 0x5448f4a4687d12aeEc646CE9EdE7CB63C1a13C86

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000059a5a1ecb4ba72b3c2cdd5a060c7d5b979521629
Arg [1] : 0000000000000000000000005448f4a4687d12aeec646ce9ede7cb63c1a13c86


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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