ETH Price: $2,949.25 (-0.22%)

Token

NOVA Sword (NOVASWORD)

Overview

Max Total Supply

1,000 NOVASWORD

Holders

159

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
5 NOVASWORD
0x658191594cdA88744d8158813029420dcf137A32
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
ApetimismLaunchpadNFT

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 160 runs

Other Settings:
default evmVersion
File 1 of 18 : ApetimismLaunchpadNFT.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol"; 
// import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";

interface IERC20 {
  function balanceOf(address account) external view returns (uint256);
  function transfer(address _to, uint256 _amount) external returns (bool);
  function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}

contract ApetimismLaunchpadNFT is ERC721AQueryable, Ownable, ReentrancyGuard /*, ERC2981*/ {
  event Received(address, uint);
  event RoundChanged(uint8);
  event TotalMintedChanged(uint256);

  //////////////
  // Constants
  //////////////

  string private ERR_INVALID_SIGNATURE = "Invalid sig";
  string private ERR_DUP_NONCE = "Dup nonce";
  string private ERR_UNMATCHED_ETHER = "Unmatched ether";
  string private ERR_HIT_MAXIMUM = "Hit maximum";
  string private ERR_INVALID_AMOUNT = "Invalid amount";
  string private ERR_RUN_OUT = "Run out";

  uint256 public constant MAX_SUPPLY = 1000;
  uint256 public constant START_TOKEN_ID = 1;
  string private constant TOKEN_NAME = "NOVA Sword";
  string private constant TOKEN_SYMBOL = "NOVASWORD";

  //////////////
  // Internal
  //////////////

  mapping(address => uint256) private _addressTokenMinted;
  mapping(address => mapping(uint8 => mapping(int16 => uint256))) private _addressTokenMintedInRoundByRole;
  mapping(address => mapping(int16 => uint256)) private _addressTokenMintedInRole;

  mapping(uint256 => uint8) private _nonces;

  uint16 private allowedRolesInRoundSetId = 0;
  uint16 private roundAllocationsSetId = 0;
  uint16 private roleAllocationsSetId = 0;

  /////////////////////
  // Public Variables
  /////////////////////

  address public signerAddress = 0x619Cf34345236B1A876c55501ed4208aCA8BD0eD;

  uint8 public currentRound = 0;
  bool public metadataFrozen = false;
  uint16 public maxMintPerTx = 1000;
  uint16 public maxMintPerAddress = 1000;

  string public baseURIExtended;
  bool public metdataHasExtension = true;

  mapping(int16 => uint256) mintPriceByRole;

  struct Role {
    uint8 round_id;
    int16 role_id;
    uint256 max_mint;
    uint256 mint_price;
    bool exists;
  }
  mapping(uint16 => mapping(uint8 => mapping(int16 => Role))) public allowedRolesInRound;
  mapping(uint16 => mapping(uint8 => uint16)) public allowedRolesInRoundCount;
  mapping(uint16 => mapping(uint8 => int16[])) public allowedRolesInRoundArr;
  uint8[] public availableAllowedRounds;
  uint8[] public availableRounds;
  mapping(uint16 => mapping(uint8 => uint256)) public roundAllocations;
  mapping(uint16 => mapping(int16 => uint256)) public roleAllocations;
  int16[] public availableRoles;
  mapping(uint8 => uint256) public totalMintedInRound;

  uint256 public totalRevenueShared = 0;

  address public currencyAddress;

  ////////////////
  // Parameters
  ////////////////

  struct RoleInRoundParams {
    uint8 round;
    int16 role;
    uint256 maxMint;
    uint256 mintPrice;
  }
  struct RoundAllocationParams {
    uint8 round;
    uint256 allocation;
  }
  struct RoleAllocationParams {
    int16 role;
    uint256 allocation;
  }

  ////////////////
  // Actual Code
  ////////////////

  constructor() ERC721A(TOKEN_NAME, TOKEN_SYMBOL) {
  }

  function _startTokenId() internal view virtual override returns (uint256) {
    return START_TOKEN_ID;
  }

  //////////////////////
  // Setters for Owner
  //////////////////////

  function setCurrentRound(uint8 round_) public onlyOwner {
    currentRound = round_;
    emit RoundChanged(round_);
  }

  function setMaxMintPerTx(uint16 count) public onlyOwner {
    maxMintPerTx = count;
  }

  function setMaxMintPerAddress(uint16 count) public onlyOwner {
    maxMintPerAddress = count;
  }

  function setBaseURI(string memory baseURI) public onlyOwner {
    require(!metadataFrozen, "Metadata frozen");
    baseURIExtended = baseURI;
  }

  function setMetadataHasExtension(bool hasExtension) public onlyOwner {
    metdataHasExtension = hasExtension;
  }

  function setCurrencyAddress(address addr) public onlyOwner {
    currencyAddress = addr;
  }

  function addAllowedRolesInRound(RoleInRoundParams[] memory params, bool replace) public onlyOwner {
    if (replace) {
      allowedRolesInRoundSetId++;
      delete availableAllowedRounds;
    }

    for (uint i = 0; i < params.length; i++) {
      addAllowedRoleInRound(
        params[i].round,
        params[i].role,
        params[i].maxMint,
        params[i].mintPrice,
        false
      );
    }
  }

  function addAllowedRoleInRound(uint8 round, int16 role, uint256 maxMint, uint256 mintPrice, bool replace) public onlyOwner {
    if (replace) {
      allowedRolesInRoundSetId++;
      delete availableAllowedRounds;
    }

    bool role_already_existed = allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].round_id = round;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].role_id = role;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].max_mint = maxMint;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].mint_price = mintPrice;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists = true;
    if (role_already_existed) // Role already existed
      return;
    allowedRolesInRoundCount[allowedRolesInRoundSetId][round]++;

    allowedRolesInRoundArr[allowedRolesInRoundSetId][round].push(role);

    bool found = false;
    for (uint8 i = 0; i < availableAllowedRounds.length; i++)
      if (availableAllowedRounds[i] == round)
        found = true;

    if (!found)
      availableAllowedRounds.push(round);
  }

  function removeAllowedRoleInRound(uint8 round, int16 role) public onlyOwner {
    require(allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists, "Role not existed");
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].round_id = 0;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].role_id = 0;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].max_mint = 0;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].mint_price = 0;
    allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists = false;
    allowedRolesInRoundCount[allowedRolesInRoundSetId][round]--;

    // Remove available role
    for (uint8 i = 0; i < allowedRolesInRoundArr[allowedRolesInRoundSetId][round].length; i++) {
      if (allowedRolesInRoundArr[allowedRolesInRoundSetId][round][i] == role) {
        removeArrayAtInt16Index(allowedRolesInRoundArr[allowedRolesInRoundSetId][round], i);
        break;
      }
    }

    if (allowedRolesInRoundCount[allowedRolesInRoundSetId][round] == 0) {
      // Remove available round
      for (uint8 i = 0; i < availableRounds.length; i++) {
        if (availableRounds[i] == round) {
          removeArrayAtUint8Index(availableRounds, i);
          break;
        }
      }
    }
  }

  function addRoundsAllocation(RoundAllocationParams[] memory params, bool replace) public onlyOwner {
    if (replace) {
      roundAllocationsSetId++;
      delete availableRounds;
    }

    for (uint i = 0; i < params.length; i++)
      addRoundAllocation(params[i].round, params[i].allocation, false);
  }

  function addRoundAllocation(uint8 round, uint256 allocation, bool replace) public onlyOwner {
    if (replace) {
      roundAllocationsSetId++;
      delete availableRounds;
    }
    
    roundAllocations[roundAllocationsSetId][round] = allocation;

    bool found = false;
    for (uint8 i = 0; i < availableRounds.length; i++)
      if (availableRounds[i] == round)
        found = true;

    if (!found)
      availableRounds.push(round);
  }

  function addRolesAllocation(RoleAllocationParams[] memory params, bool replace) public onlyOwner {
    if (replace) {
      roleAllocationsSetId++;
      delete availableRoles;
    }

    for (uint i = 0; i < params.length; i++)
      addRoleAllocation(params[i].role, params[i].allocation, false);
  }

  function addRoleAllocation(int16 role, uint256 allocation, bool replace) public onlyOwner {
    if (replace) {
      roleAllocationsSetId++;
      delete availableRoles;
    }

    roleAllocations[roleAllocationsSetId][role] = allocation;

    bool found = false;
    for (uint16 i = 0; i < availableRoles.length; i++)
      if (availableRoles[i] == role)
        found = true;

    if (!found)
      availableRoles.push(role);
  }

  function addRolesRounds(
    RoleInRoundParams[] memory _rolesInRound,
    bool _replaceRoleInRound,
    RoundAllocationParams[] memory _roundAllocations,
    bool _replaceRoundAllocations,
    RoleAllocationParams[] memory _roleAllocations,
    bool _replaceRoleAllocations
  ) public onlyOwner {
    addAllowedRolesInRound(_rolesInRound, _replaceRoleInRound);
    addRoundsAllocation(_roundAllocations, _replaceRoundAllocations);
    addRolesAllocation(_roleAllocations, _replaceRoleAllocations);
  }

  function freezeMetadata() public onlyOwner {
    metadataFrozen = true;
  }

  ////////////
  // Minting
  ////////////

  function mint(uint256 quantity, int16 role, uint16 apetimismFee, address apetimismAddress, uint256 nonce, uint8 v, bytes32 r, bytes32 s) external payable nonReentrant {
    require(currentRound != 0, "Not started");

    uint256 combined_nonce = nonce;
    if (role >= 0)
      combined_nonce = (nonce << 16) + uint16(role);

    require(_nonces[combined_nonce] == 0, ERR_DUP_NONCE);
    require(_recoverAddress(abi.encodePacked(combined_nonce, apetimismFee, apetimismAddress), v, r, s) == signerAddress, ERR_INVALID_SIGNATURE);

    bool is_public_round = allowedRolesInRound[allowedRolesInRoundSetId][currentRound][0].exists;
    int16 selected_role = 0;
    if (role >= 0)
      selected_role = role;

    if (!allowedRolesInRound[allowedRolesInRoundSetId][currentRound][selected_role].exists) {
      if (!is_public_round)
        require(false, "Not eligible");
      selected_role = 0;
    }

    require(quantity > 0, ERR_INVALID_AMOUNT);
    require(mintableLeft() >= quantity, ERR_RUN_OUT);
    if (role >= 0)
      require(maxMintableForTxForRole(msg.sender, role) >= quantity, ERR_HIT_MAXIMUM);
    else
      require(maxMintableForTxForRole(msg.sender, 0) >= quantity, ERR_HIT_MAXIMUM);

    uint256 cost = quantity * allowedRolesInRound[allowedRolesInRoundSetId][currentRound][selected_role].mint_price;
    _nonces[combined_nonce] = 1;

    if (currencyAddress != address(0)) {
      // Pay by Token
      require(msg.value == 0, ERR_UNMATCHED_ETHER);
    } else {
      require(msg.value == cost, ERR_UNMATCHED_ETHER);
    }

    _safeMint(msg.sender, quantity);

    totalMintedInRound[currentRound] = totalMintedInRound[currentRound] + quantity;

    _addressTokenMinted[msg.sender] = _addressTokenMinted[msg.sender] + quantity;
    _addressTokenMintedInRoundByRole[msg.sender][currentRound][selected_role] = _addressTokenMintedInRoundByRole[msg.sender][currentRound][selected_role] + quantity;
    if (selected_role >= 0)
      _addressTokenMintedInRole[msg.sender][selected_role] = _addressTokenMintedInRole[msg.sender][selected_role] + quantity;

    uint256 to_apetimism = cost * apetimismFee / 10000;
    if (currencyAddress != address(0)) {
      IERC20 tokenContract = IERC20(currencyAddress);
      tokenContract.transferFrom(msg.sender, address(this), cost);
      tokenContract.transfer(apetimismAddress, to_apetimism);
    } else {
      _transferEth(payable(apetimismAddress), to_apetimism);
    }
    totalRevenueShared = totalRevenueShared + to_apetimism;
  }

  function adminMintTo(address to, uint256 quantity) public onlyOwner {
    require(quantity > 0, ERR_INVALID_AMOUNT);
    require(mintableLeft() >= quantity, ERR_RUN_OUT);

    _safeMint(to, quantity);
  }

  //////////////
  // Apetimism
  //////////////

  function setCurrentRoundFromSignature(uint256 nonce, uint8 round, uint8 v, bytes32 r, bytes32 s) public {
    require(_nonces[nonce] == 0, ERR_DUP_NONCE);
    require(_recoverAddress(abi.encodePacked(nonce, round), v, r, s) == signerAddress, ERR_INVALID_SIGNATURE);

    _nonces[nonce] = 1;
    currentRound = round;
    emit RoundChanged(round);
  }

  function setSignerAddressFromSignature(uint256 nonce, address addr, uint8 v, bytes32 r, bytes32 s) public {
    require(_nonces[nonce] == 0, ERR_DUP_NONCE);
    require(_recoverAddress(abi.encodePacked(nonce, addr), v, r, s) == signerAddress, ERR_INVALID_SIGNATURE);

    _nonces[nonce] = 1;
    signerAddress = addr;
  }

  ////////////////
  // Transfering
  ////////////////

  function transfersFrom(
    address from,
    address to,
    uint256[] calldata tokenIds
  ) public virtual {
    for (uint i = 0; i < tokenIds.length; i++)
      transferFrom(from, to, tokenIds[i]);
  }

  function safeTransfersFrom(
    address from,
    address to,
    uint256[] calldata tokenIds
  ) public virtual {
    for (uint i = 0; i < tokenIds.length; i++)
      safeTransferFrom(from, to, tokenIds[i]);
  }

  function safeTransfersFrom(
    address from,
    address to,
    uint256[] calldata tokenIds,
    bytes memory _data
  ) public virtual {
    for (uint i = 0; i < tokenIds.length; i++)
      safeTransferFrom(from, to, tokenIds[i], _data);
  }

  /////////////////
  // Public Views
  /////////////////

  // function getAllAvailableRounds() public view returns (uint8[] memory) {
  //   uint256 len = availableRounds.length;
  //   uint8[] memory ret = new uint8[](len);
  //   for (uint i = 0; i < len; i++)
  //     ret[i] = availableRounds[i];
  //   return ret;
  // }

  function getAllowedRolesInRoundArr(uint8 round) public view returns (int16[] memory) {
    uint256 len = allowedRolesInRoundArr[allowedRolesInRoundSetId][round].length;
    int16[] memory ret = new int16[](len);
    for (uint i = 0; i < len; i++)
      ret[i] = allowedRolesInRoundArr[allowedRolesInRoundSetId][round][i];
    return ret;
  }

  // function getAllAvailableRoles() public view returns (int16[] memory) {
  //   uint256 len = availableRoles.length;
  //   int16[] memory ret = new int16[](len);
  //   for (uint i = 0; i < len; i++)
  //     ret[i] = availableRoles[i];
  //   return ret;
  // }

  function getAllAllowedRolesInRounds() public view returns (RoleInRoundParams[] memory) {
    uint256 len = 0;
    for (uint i = 0; i < availableAllowedRounds.length; i++)
      len += allowedRolesInRoundCount[allowedRolesInRoundSetId][ availableAllowedRounds[i] ];

    RoleInRoundParams[] memory ret = new RoleInRoundParams[](len);
    uint256 index = 0;
    for (uint i = 0; i < availableAllowedRounds.length; i++) {
      uint8 round = availableAllowedRounds[i];
      for (uint j = 0; j < allowedRolesInRoundCount[allowedRolesInRoundSetId][ availableAllowedRounds[i] ]; j++) {
        int16 role = allowedRolesInRoundArr[allowedRolesInRoundSetId][round][j];
        ret[index].round = round;
        ret[index].role = role;
        ret[index].maxMint = allowedRolesInRound[allowedRolesInRoundSetId][round][role].max_mint;
        ret[index].mintPrice = allowedRolesInRound[allowedRolesInRoundSetId][round][role].mint_price;
        index++;
      }
    }
    return ret;
  }

  function getAllRoundAllocations() public view returns (RoundAllocationParams[] memory) {
    uint256 len = availableRounds.length;
    RoundAllocationParams[] memory ret = new RoundAllocationParams[](len);
    for (uint i = 0; i < len; i++) {
      ret[i].round = availableRounds[i];
      ret[i].allocation = roundAllocations[roundAllocationsSetId][availableRounds[i]];
    }
    return ret;
  }

  function getAllRoleAllocations() public view returns (RoleAllocationParams[] memory) {
    uint256 len = availableRoles.length;
    RoleAllocationParams[] memory ret = new RoleAllocationParams[](len);
    for (uint i = 0; i < len; i++) {
      ret[i].role = availableRoles[i];
      ret[i].allocation = roleAllocations[roleAllocationsSetId][availableRoles[i]];
    }
    return ret;
  }

  function mintPriceForCurrentRoundForRole(int16 role) public view returns (uint256) {
    return allowedRolesInRound[allowedRolesInRoundSetId][currentRound][role].mint_price;
  }

  function maxMintableForRole(address addr, int16 role) public view virtual returns (uint256) {
    uint256 minted = _addressTokenMinted[addr];
    uint256 max_mint = 0;

    // Not yet started
    if (currentRound == 0)
      return 0;
    // Total minted in this round reach the maximum allocated
    if (totalMintedInRound[currentRound] >= roundAllocations[roundAllocationsSetId][currentRound])
      return 0;
    if (_addressTokenMintedInRole[addr][role] >= roleAllocations[roleAllocationsSetId][role])
      return 0;

    if (allowedRolesInRound[allowedRolesInRoundSetId][currentRound][role].exists)
      max_mint = allowedRolesInRound[allowedRolesInRoundSetId][currentRound][role].max_mint;

    // Hit the maximum per wallet
    if (minted >= maxMintPerAddress)
      return 0;
    // Cannot mint more for this round
    if (_addressTokenMintedInRoundByRole[addr][currentRound][role] >= max_mint)
      return 0;
    // Prevent underflow
    if (totalMintedInRound[currentRound] >= roundAllocations[roundAllocationsSetId][currentRound])
      return 0;
    // Cannot mint more than allocated for role
    if (_addressTokenMintedInRole[addr][role] >= roleAllocations[roleAllocationsSetId][role])
      return 0;

    uint256 wallet_quota_left = maxMintPerAddress - minted;
    uint256 round_quota_left = max_mint - _addressTokenMintedInRoundByRole[addr][currentRound][role];
    uint256 round_allocation_quota_left = roundAllocations[roundAllocationsSetId][currentRound] - totalMintedInRound[currentRound];
    uint256 role_quota_left = roleAllocations[roleAllocationsSetId][role] - _addressTokenMintedInRole[addr][role];

    return min(mintableLeft(), min(min(min(wallet_quota_left, round_quota_left), round_allocation_quota_left), role_quota_left));
  }

  function maxMintableForTxForRole(address addr, int16 role) public view virtual returns (uint256) {
    uint256 mintable = maxMintableForRole(addr, role);

    if (mintable > maxMintPerTx)
      return maxMintPerTx;

    return mintable;
  }

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(_exists(tokenId), 'nonexistent token');

    if (bytes(baseURIExtended).length == 0)
      return '';

    string memory extension = "";
    if (metdataHasExtension)
      extension = ".json";

    return string(abi.encodePacked(baseURIExtended, Strings.toString(tokenId), extension));
  }

  function totalMinted() public view returns (uint256) {
    return _totalMinted();
  }

  function mintableLeft() public view returns (uint256) {
    return MAX_SUPPLY - totalMinted();
  }

  ////////////
  // Helpers
  ////////////

  function removeArrayAtInt16Index(int16[] storage array, uint256 index) private {
    for (uint i = index; i < array.length - 1; i++)
      array[i] = array[i + 1];
    delete array[array.length - 1];
    array.pop();
  }

  function removeArrayAtUint8Index(uint8[] storage array, uint256 index) private {
    for (uint i = index; i < array.length - 1; i++)
      array[i] = array[i + 1];
    delete array[array.length - 1];
    array.pop();
  }

  function min(uint256 a, uint256 b) internal pure returns (uint256) {
    return a < b ? a : b;
  }

  function _recoverAddress(bytes memory data, uint8 v, bytes32 r, bytes32 s) private pure returns (address) {
    bytes32 msgHash = keccak256(data);
    bytes32 messageDigest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", msgHash));
    return ecrecover(messageDigest, v, r, s);
  }

  function _transferEth(address payable to, uint256 amount) internal {
    if (amount == 0)
      return;
    (bool sent,) = to.call{ value: amount }("");
    require(sent, "Ether not sent");
  }

  ////////////
  // ERC2981
  ////////////

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) {
    return super.supportsInterface(interfaceId) || ERC721A.supportsInterface(interfaceId);
  }

  // function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) {
  //   return super.supportsInterface(interfaceId) || ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
  // }

  // function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
  //   _setDefaultRoyalty(receiver, feeNumerator);
  // }

  // function deleteDefaultRoyalty() public onlyOwner {
  //   _deleteDefaultRoyalty();
  // }

  // function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) public onlyOwner {
  //   _setTokenRoyalty(tokenId, receiver, feeNumerator);
  // }

  // function resetTokenRoyalty(uint256 tokenId) public onlyOwner {
  //   _resetTokenRoyalty(tokenId);
  // }

  ///////////////
  // Withdrawal
  ///////////////

  function withdraw() public onlyOwner {
    uint256 balance = address(this).balance;
    _transferEth(payable(msg.sender), balance);
  }

  function withdrawToken(address tokenAddress) public onlyOwner {
    IERC20 tokenContract = IERC20(tokenAddress);
    tokenContract.transfer(msg.sender, tokenContract.balanceOf(address(this)));
  }

  /////////////
  // Fallback
  /////////////

  receive() external payable {
    emit Received(msg.sender, msg.value);
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 8 of 18 : 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);
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721A {
    using Address for address;
    using Strings for uint256;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

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

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

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

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

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

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

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

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

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

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

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

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"","type":"uint8"}],"name":"RoundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"TotalMintedChanged","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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addAllowedRoleInRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleInRoundParams[]","name":"params","type":"tuple[]"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addAllowedRolesInRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRoleAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleAllocationParams[]","name":"params","type":"tuple[]"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRolesAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleInRoundParams[]","name":"_rolesInRound","type":"tuple[]"},{"internalType":"bool","name":"_replaceRoleInRound","type":"bool"},{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoundAllocationParams[]","name":"_roundAllocations","type":"tuple[]"},{"internalType":"bool","name":"_replaceRoundAllocations","type":"bool"},{"components":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleAllocationParams[]","name":"_roleAllocations","type":"tuple[]"},{"internalType":"bool","name":"_replaceRoleAllocations","type":"bool"}],"name":"addRolesRounds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRoundAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoundAllocationParams[]","name":"params","type":"tuple[]"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRoundsAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"int16","name":"","type":"int16"}],"name":"allowedRolesInRound","outputs":[{"internalType":"uint8","name":"round_id","type":"uint8"},{"internalType":"int16","name":"role_id","type":"int16"},{"internalType":"uint256","name":"max_mint","type":"uint256"},{"internalType":"uint256","name":"mint_price","type":"uint256"},{"internalType":"bool","name":"exists","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedRolesInRoundArr","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"allowedRolesInRoundCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableAllowedRounds","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableRoles","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableRounds","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURIExtended","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllAllowedRolesInRounds","outputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleInRoundParams[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRoleAllocations","outputs":[{"components":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleAllocationParams[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRoundAllocations","outputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoundAllocationParams[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"round","type":"uint8"}],"name":"getAllowedRolesInRoundArr","outputs":[{"internalType":"int16[]","name":"","type":"int16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"int16","name":"role","type":"int16"}],"name":"maxMintableForRole","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"int16","name":"role","type":"int16"}],"name":"maxMintableForTxForRole","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metdataHasExtension","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint16","name":"apetimismFee","type":"uint16"},{"internalType":"address","name":"apetimismAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int16","name":"role","type":"int16"}],"name":"mintPriceForCurrentRoundForRole","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintableLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"}],"name":"removeAllowedRoleInRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"int16","name":"","type":"int16"}],"name":"roleAllocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"roundAllocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransfersFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"safeTransfersFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCurrencyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"round_","type":"uint8"}],"name":"setCurrentRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"setCurrentRoundFromSignature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"setMaxMintPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"hasExtension","type":"bool"}],"name":"setMetadataHasExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"setSignerAddressFromSignature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"totalMintedInRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRevenueShared","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"transfersFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052600b60808190526a496e76616c69642073696760a81b60a09081526200002e91600a919062000254565b5060408051808201909152600980825268447570206e6f6e636560b81b60209092019182526200006191600b9162000254565b5060408051808201909152600f8082526e2ab736b0ba31b432b21032ba3432b960891b60209092019182526200009a91600c9162000254565b5060408051808201909152600b8082526a486974206d6178696d756d60a81b6020909201918252620000cf91600d9162000254565b5060408051808201909152600e8082526d125b9d985b1a5908185b5bdd5b9d60921b602090920191825262000105918162000254565b5060408051808201909152600780825266149d5b881bdd5d60ca1b60209092019182526200013691600f9162000254565b507f03e803e80000619cf34345236b1a876c55501ed4208aca8bd0ed0000000000006014556016805460ff1916600117905560006021553480156200017a57600080fd5b50604080518082018252600a8152691393d5904814dddbdc9960b21b6020808301918252835180850190945260098452681393d59054d5d3d49160ba1b908401528151919291620001ce9160029162000254565b508051620001e490600390602084019062000254565b5050600160005550620001f73362000202565b600160095562000337565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200026290620002fa565b90600052602060002090601f016020900481019282620002865760008555620002d1565b82601f10620002a157805160ff1916838001178555620002d1565b82800160010185558215620002d1579182015b82811115620002d1578251825591602001919060010190620002b4565b50620002df929150620002e3565b5090565b5b80821115620002df5760008155600101620002e4565b600181811c908216806200030f57607f821691505b602082108114156200033157634e487b7160e01b600052602260045260246000fd5b50919050565b615e6180620003476000396000f3fe6080604052600436106104345760003560e01c80638462151c11610229578063bd8fc4a21161012e578063d0950e74116100b6578063e985e9c51161007a578063e985e9c514610e45578063f2fde38b14610e8e578063f5a4156c14610eae578063fb3cc6c214610ee6578063fe2e66f414610f0757600080fd5b8063d0950e7414610dbf578063d111515d14610ddf578063de7fcb1d14610df4578063e08c5e3214610e16578063e4d3d44814610e3057600080fd5b8063c87b56dd116100fd578063c87b56dd14610d07578063c9d4857914610d27578063cf502d0d14610d47578063d047d03814610d67578063d0667dd214610d9f57600080fd5b8063bd8fc4a214610c51578063be56844814610c8d578063bf65eb3414610cba578063c23dc68f14610cda57600080fd5b8063a13429a9116101b1578063b1ad048c11610180578063b1ad048c14610bb1578063b1e8dbaa14610bd1578063b6a7412114610bf1578063b88d4fde14610c11578063ba1402d314610c3157600080fd5b8063a13429a914610b43578063a22cb46514610b63578063a2309ff814610b83578063ac7dc68d14610b9c57600080fd5b80638a19c8bc116101f85780638a19c8bc14610a3b5780638da5cb5b14610a5c57806395d89b4114610a7a57806399a2557a14610a8f5780639e8cc8d314610aaf57600080fd5b80638462151c146109b957806387f65c91146109e657806389476069146109fb57806389b5a8c214610a1b57600080fd5b80633ccfd60b1161033a578063572849c4116102c257806370a082311161028657806370a0823114610922578063715018a614610942578063748a500a14610957578063796b89ec1461097957806379a2c3f81461099957600080fd5b8063572849c4146108595780635b7633d01461088e5780635bbb2177146108b55780636352211e146108e25780636e453d621461090257600080fd5b80633e9dbed0116103095780633e9dbed0146107af57806342842e0e146107d157806346830628146107f1578063500ea93b1461080757806355f804b31461083957600080fd5b80633ccfd60b146106fe5780633d6a5745146107135780633dd3802d146107335780633e8f18f01461075357600080fd5b80631a6d843e116103bd57806327854c151161038c57806327854c151461065c578063306279da1461068857806332ab9bbe146106a857806332cb6b0c146106c857806333ee7927146106de57600080fd5b80631a6d843e146105dc5780631c1cb323146105fc57806321120f7a1461061c57806323b872dd1461063c57600080fd5b8063081812fc11610404578063081812fc14610528578063095ea7b3146105605780630d23d6691461058257806318160ddd14610595578063183ab264146105bc57600080fd5b80620319df1461047857806301ffc9a7146104a357806306a7c8de146104d357806306fdde031461050657600080fd5b3661047357604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561048457600080fd5b5061048d610f27565b60405161049a9190614cc8565b60405180910390f35b3480156104af57600080fd5b506104c36104be366004614d30565b611094565b604051901515815260200161049a565b3480156104df57600080fd5b506104f36104ee366004614d4d565b6110b4565b60405160019190910b815260200161049a565b34801561051257600080fd5b5061051b6110eb565b60405161049a9190614dbe565b34801561053457600080fd5b50610548610543366004614d4d565b61117d565b6040516001600160a01b03909116815260200161049a565b34801561056c57600080fd5b5061058061057b366004614ded565b6111c1565b005b610580610590366004614e4c565b611248565b3480156105a157600080fd5b5060015460005403600019015b60405190815260200161049a565b3480156105c857600080fd5b506105806105d7366004614ec7565b6118bf565b3480156105e857600080fd5b506105806105f7366004614ef0565b61193d565b34801561060857600080fd5b50602254610548906001600160a01b031681565b34801561062857600080fd5b506104f3610637366004614f4b565b611db9565b34801561064857600080fd5b50610580610657366004614f87565b611e0c565b34801561066857600080fd5b506105ae610677366004614ec7565b602080526000908152604090205481565b34801561069457600080fd5b506105806106a3366004614fb3565b611e17565b3480156106b457600080fd5b506105806106c3366004615153565b611f53565b3480156106d457600080fd5b506105ae6103e881565b3480156106ea57600080fd5b506105806106f9366004615296565b611f9c565b34801561070a57600080fd5b50610580612074565b34801561071f57600080fd5b5061058061072e366004614ded565b6120ac565b34801561073f57600080fd5b5061058061074e366004615388565b612131565b34801561075f57600080fd5b506105ae61076e3660046153bd565b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff16835292815282822060019490940b82529290925290206002015490565b3480156107bb57600080fd5b506107c461223e565b60405161049a91906153d8565b3480156107dd57600080fd5b506105806107ec366004614f87565b61256e565b3480156107fd57600080fd5b506105ae60215481565b34801561081357600080fd5b50610827610822366004614d4d565b612589565b60405160ff909116815260200161049a565b34801561084557600080fd5b50610580610854366004615438565b6125bd565b34801561086557600080fd5b5060145461087b90600160f01b900461ffff1681565b60405161ffff909116815260200161049a565b34801561089a57600080fd5b5060145461054890600160301b90046001600160a01b031681565b3480156108c157600080fd5b506108d56108d0366004615480565b612646565b60405161049a919061553d565b3480156108ee57600080fd5b506105486108fd366004614d4d565b61270c565b34801561090e57600080fd5b5061058061091d36600461557f565b61271e565b34801561092e57600080fd5b506105ae61093d36600461559c565b61275b565b34801561094e57600080fd5b506105806127a9565b34801561096357600080fd5b5061096c6127df565b60405161049a91906155b7565b34801561098557600080fd5b5061058061099436600461559c565b61294c565b3480156109a557600080fd5b506105806109b43660046155fd565b612998565b3480156109c557600080fd5b506109d96109d436600461559c565b6129e5565b60405161049a9190615618565b3480156109f257600080fd5b506105ae600181565b348015610a0757600080fd5b50610580610a1636600461559c565b612b32565b348015610a2757600080fd5b50610580610a36366004615650565b612c5d565b348015610a4757600080fd5b5060145461082790600160d01b900460ff1681565b348015610a6857600080fd5b506008546001600160a01b0316610548565b348015610a8657600080fd5b5061051b612c9d565b348015610a9b57600080fd5b506109d9610aaa3660046156b0565b612cac565b348015610abb57600080fd5b50610b12610aca3660046156e3565b601860209081526000938452604080852082529284528284209052825290208054600180830154600284015460039094015460ff8085169561010090950490930b9391921685565b6040805160ff909616865260019490940b60208601529284019190915260608301521515608082015260a00161049a565b348015610b4f57600080fd5b50610580610b5e3660046157ac565b612e72565b348015610b6f57600080fd5b50610580610b7e3660046157e1565b612f49565b348015610b8f57600080fd5b50600054600019016105ae565b348015610ba857600080fd5b506105ae612fe4565b348015610bbd57600080fd5b506105ae610bcc36600461580d565b612ff8565b348015610bdd57600080fd5b50610827610bec366004614d4d565b613032565b348015610bfd57600080fd5b50610580610c0c3660046155fd565b613042565b348015610c1d57600080fd5b50610580610c2c366004615840565b61308e565b348015610c3d57600080fd5b50610580610c4c3660046158a7565b6130d8565b348015610c5d57600080fd5b5061087b610c6c3660046158e7565b601960209081526000928352604080842090915290825290205461ffff1681565b348015610c9957600080fd5b50610cad610ca8366004614ec7565b61323c565b60405161049a9190615911565b348015610cc657600080fd5b50610580610cd536600461594c565b613343565b348015610ce657600080fd5b50610cfa610cf5366004614d4d565b6134b4565b60405161049a919061596a565b348015610d1357600080fd5b5061051b610d22366004614d4d565b61356e565b348015610d3357600080fd5b50610580610d42366004615978565b61364f565b348015610d5357600080fd5b50610580610d62366004615650565b613745565b348015610d7357600080fd5b506105ae610d823660046158e7565b601d60209081526000928352604080842090915290825290205481565b348015610dab57600080fd5b50610580610dba3660046159a0565b613785565b348015610dcb57600080fd5b506105ae610dda36600461580d565b6137cd565b348015610deb57600080fd5b50610580613b76565b348015610e0057600080fd5b5060145461087b90600160e01b900461ffff1681565b348015610e2257600080fd5b506016546104c39060ff1681565b348015610e3c57600080fd5b5061051b613bb5565b348015610e5157600080fd5b506104c3610e60366004615a64565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e9a57600080fd5b50610580610ea936600461559c565b613c43565b348015610eba57600080fd5b506105ae610ec9366004615a8e565b601e60209081526000928352604080842090915290825290205481565b348015610ef257600080fd5b506014546104c390600160d81b900460ff1681565b348015610f1357600080fd5b50610580610f22366004615aaa565b613cdb565b601c546060906000816001600160401b03811115610f4757610f4761504c565b604051908082528060200260200182016040528015610f8c57816020015b6040805180820190915260008082526020820152815260200190600190039081610f655790505b50905060005b8281101561108d57601c8181548110610fad57610fad615ac6565b90600052602060002090602091828204019190069054906101000a900460ff16828281518110610fdf57610fdf615ac6565b60209081029190910181015160ff90921690915260145461ffff62010000909104166000908152601d90915260408120601c80549192918490811061102657611026615ac6565b90600052602060002090602091828204019190069054906101000a900460ff1660ff1660ff1681526020019081526020016000205482828151811061106d5761106d615ac6565b60209081029190910181015101528061108581615af2565b915050610f92565b5092915050565b600061109f82614002565b806110ae57506110ae82614002565b92915050565b601f81815481106110c457600080fd5b9060005260206000209060109182820401919006600202915054906101000a900460010b81565b6060600280546110fa90615b0d565b80601f016020809104026020016040519081016040528092919081815260200182805461112690615b0d565b80156111735780601f1061114857610100808354040283529160200191611173565b820191906000526020600020905b81548152906001019060200180831161115657829003601f168201915b5050505050905090565b600061118882614052565b6111a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111cc8261270c565b9050806001600160a01b0316836001600160a01b031614156112015760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146112385761121b8133610e60565b611238576040516367d9dca160e11b815260040160405180910390fd5b61124383838361408b565b505050565b600260095414156112a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955601454600160d01b900460ff166112ec5760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401611297565b836000600189900b1261130e5761130b61ffff8916601087901b615b48565b90505b600081815260136020526040902054600b9060ff16156113415760405162461bcd60e51b81526004016112979190615b60565b50601454604080516020810184905260f08a901b6001600160f01b03191691810191909152606088901b6001600160601b0319166042820152600160301b9091046001600160a01b0316906113aa906056016040516020818303038152906040528686866140e7565b6001600160a01b031614600a906113d45760405162461bcd60e51b81526004016112979190615b60565b5060145461ffff8116600090815260186020908152604080832060ff600160d01b9095048516845282528083208380529091528120600301549091169060018a900b811361141f5750885b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600186900b8452909152902060030154166114a0578161149c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401611297565b5060005b600e8b6114c05760405162461bcd60e51b81526004016112979190615b60565b508a6114ca612fe4565b1015600f906114ec5760405162461bcd60e51b81526004016112979190615b60565b5060008a60010b1261152b578a611503338c612ff8565b1015600d906115255760405162461bcd60e51b81526004016112979190615b60565b5061155b565b8a611537336000612ff8565b1015600d906115595760405162461bcd60e51b81526004016112979190615b60565b505b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600185900b83529052908120600201546115a1908d615be5565b6000858152601360205260409020805460ff191660011790556022549091506001600160a01b0316156115f557600c34156115ef5760405162461bcd60e51b81526004016112979190615b60565b50611619565b600c3482146116175760405162461bcd60e51b81526004016112979190615b60565b505b611623338d6141b2565b601454600160d01b900460ff166000908152602080526040902054611649908d90615b48565b601454600160d01b900460ff166000908152602080805260408083209390935533825260109052205461167d908d90615b48565b3360009081526010602090815260408083209390935560118152828220601454600160d01b900460ff1683528152828220600186900b8352905220546116c4908d90615b48565b336000908152601160209081526040808320601454600160d01b900460ff1684528252808320600187900b80855292528220929092551361174957336000908152601260209081526040808320600186900b8452909152902054611729908d90615b48565b336000908152601260209081526040808320600187900b84529091529020555b600061271061175c61ffff8d1684615be5565b6117669190615c1a565b6022549091506001600160a01b031615611890576022546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b039091169081906323b872dd90606401602060405180830381600087803b1580156117ce57600080fd5b505af11580156117e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118069190615c2e565b5060405163a9059cbb60e01b81526001600160a01b038c811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561185157600080fd5b505af1158015611865573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118899190615c2e565b505061189a565b61189a8a826141cc565b806021546118a89190615b48565b602155505060016009555050505050505050505050565b6008546001600160a01b031633146118e95760405162461bcd60e51b815260040161129790615c4b565b6014805460ff60d01b1916600160d01b60ff8416908102919091179091556040519081527f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f459060200160405180910390a150565b6008546001600160a01b031633146119675760405162461bcd60e51b815260040161129790615c4b565b80156119aa576014805461ffff1690600061198183615c80565b91906101000a81548161ffff021916908361ffff16021790555050601b60006119aa9190614be5565b600060186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008760ff1660ff16815260200190815260200160002060008660010b60010b815260200190815260200160002060030160009054906101000a900460ff1690508560186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055508460186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160016101000a81548161ffff021916908360010b61ffff1602179055508360186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b8152602001908152602001600020600101819055508260186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060020181905550600160186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060030160006101000a81548160ff0219169083151502179055508015611c4a5750611db2565b60145461ffff908116600090815260196020908152604080832060ff8b168452909152812080549092169190611c7f83615c80565b825461010092830a61ffff81810219909216928216029190911790925560145482166000908152601a6020908152604080832060ff8d16845282528220805460018101825590835290822060108204018054600f90921660020290930a80850219909116938a16029290921790559050805b601b5460ff82161015611d55578760ff16601b8260ff1681548110611d1857611d18615ac6565b60009182526020918290209181049091015460ff601f9092166101000a9004161415611d4357600191505b80611d4d81615ca2565b915050611cf1565b5080611daf57601b8054600181018255600091909152602081047f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc101805460ff808b16601f9094166101000a938402930219169190911790555b50505b5050505050565b601a6020528260005260406000206020528160005260406000208181548110611de157600080fd5b906000526020600020906010918282040191900660020292509250509054906101000a900460010b81565b611243838383614269565b600085815260136020526040902054600b9060ff1615611e4a5760405162461bcd60e51b81526004016112979190615b60565b50601460069054906101000a90046001600160a01b03166001600160a01b0316611ead8686604051602001611e9692919091825260f81b6001600160f81b031916602082015260210190565b6040516020818303038152906040528585856140e7565b6001600160a01b031614600a90611ed75760405162461bcd60e51b81526004016112979190615b60565b5060008581526013602052604090819020805460ff191660011790556014805460ff8716600160d01b0260ff60d01b19909116179055517f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f4590611f4490869060ff91909116815260200190565b60405180910390a15050505050565b60005b82811015611f9457611f828686868685818110611f7557611f75615ac6565b905060200201358561308e565b80611f8c81615af2565b915050611f56565b505050505050565b6008546001600160a01b03163314611fc65760405162461bcd60e51b815260040161129790615c4b565b80156120105760148054600160201b900461ffff16906004611fe783615c80565b91906101000a81548161ffff021916908361ffff16021790555050601f60006120109190614c0a565b60005b82518110156112435761206283828151811061203157612031615ac6565b60200260200101516000015184838151811061204f5761204f615ac6565b6020026020010151602001516000613343565b8061206c81615af2565b915050612013565b6008546001600160a01b0316331461209e5760405162461bcd60e51b815260040161129790615c4b565b476120a933826141cc565b50565b6008546001600160a01b031633146120d65760405162461bcd60e51b815260040161129790615c4b565b600e816120f65760405162461bcd60e51b81526004016112979190615b60565b5080612100612fe4565b1015600f906121225760405162461bcd60e51b81526004016112979190615b60565b5061212d82826141b2565b5050565b6008546001600160a01b0316331461215b5760405162461bcd60e51b815260040161129790615c4b565b801561219e576014805461ffff1690600061217583615c80565b91906101000a81548161ffff021916908361ffff16021790555050601b600061219e9190614be5565b60005b82518110156112435761222c8382815181106121bf576121bf615ac6565b6020026020010151600001518483815181106121dd576121dd615ac6565b6020026020010151602001518584815181106121fb576121fb615ac6565b60200260200101516040015186858151811061221957612219615ac6565b602002602001015160600151600061193d565b8061223681615af2565b9150506121a1565b60606000805b601b548110156122c85760145461ffff166000908152601960205260408120601b80549192918490811061227a5761227a615ac6565b600091825260208083208183040154601f9092166101000a90910460ff1683528201929092526040019020546122b49061ffff1683615b48565b9150806122c081615af2565b915050612244565b506000816001600160401b038111156122e3576122e361504c565b60405190808252806020026020018201604052801561233557816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816123015790505b5090506000805b601b54811015612565576000601b828154811061235b5761235b615ac6565b60009182526020808320908204015460ff601f9092166101000a90041691505b60145461ffff166000908152601960205260408120601b8054919291869081106123a7576123a7615ac6565b600091825260208083208183040154601f9092166101000a90910460ff16835282019290925260400190205461ffff168110156125505760145461ffff166000908152601a6020908152604080832060ff86168452909152812080548390811061241357612413615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b90508286868151811061244b5761244b615ac6565b60200260200101516000019060ff16908160ff16815250508086868151811061247657612476615ac6565b602090810291909101810151600192830b9082015260145461ffff16600090815260188252604080822060ff88168352835280822085850b835290925220015486518790879081106124ca576124ca615ac6565b60209081029190910181015160409081019290925260145461ffff1660009081526018825282812060ff871682528252828120600185900b82529091522060020154865187908790811061252057612520615ac6565b6020908102919091010151606001528461253981615af2565b95505050808061254890615af2565b91505061237b565b5050808061255d90615af2565b91505061233c565b50909392505050565b6112438383836040518060200160405280600081525061308e565b601b818154811061259957600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6008546001600160a01b031633146125e75760405162461bcd60e51b815260040161129790615c4b565b601454600160d81b900460ff16156126335760405162461bcd60e51b815260206004820152600f60248201526e26b2ba30b230ba3090333937bd32b760891b6044820152606401611297565b805161212d906015906020840190614c2f565b80516060906000816001600160401b038111156126655761266561504c565b6040519080825280602002602001820160405280156126b057816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816126835790505b50905060005b828114612704576126df8582815181106126d2576126d2615ac6565b60200260200101516134b4565b8282815181106126f1576126f1615ac6565b60209081029190910101526001016126b6565b509392505050565b600061271782614454565b5192915050565b6008546001600160a01b031633146127485760405162461bcd60e51b815260040161129790615c4b565b6016805460ff1916911515919091179055565b60006001600160a01b038216612784576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146127d35760405162461bcd60e51b815260040161129790615c4b565b6127dd6000614576565b565b601f546060906000816001600160401b038111156127ff576127ff61504c565b60405190808252806020026020018201604052801561284457816020015b604080518082019091526000808252602082015281526020019060019003908161281d5790505b50905060005b8281101561108d57601f818154811061286557612865615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061289a5761289a615ac6565b60209081029190910181015160019290920b909152601454600160201b900461ffff166000908152601e90915260408120601f8054919291849081106128e2576128e2615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b60010b60010b81526020019081526020016000205482828151811061292c5761292c615ac6565b60209081029190910181015101528061294481615af2565b91505061284a565b6008546001600160a01b031633146129765760405162461bcd60e51b815260040161129790615c4b565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146129c25760405162461bcd60e51b815260040161129790615c4b565b6014805461ffff909216600160f01b026001600160f01b03909216919091179055565b606060008060006129f58561275b565b90506000816001600160401b03811115612a1157612a1161504c565b604051908082528060200260200182016040528015612a3a578160200160208202803683370190505b509050612a60604080516060810182526000808252602082018190529181019190915290565b60015b838614612b2657600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250612ac957612b1e565b81516001600160a01b031615612ade57815194505b876001600160a01b0316856001600160a01b03161415612b1e5780838780600101985081518110612b1157612b11615ac6565b6020026020010181815250505b600101612a63565b50909695505050505050565b6008546001600160a01b03163314612b5c5760405162461bcd60e51b815260040161129790615c4b565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015612ba757600080fd5b505afa158015612bbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bdf9190615cc2565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612c2557600080fd5b505af1158015612c39573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112439190615c2e565b60005b81811015611db257612c8b8585858585818110612c7f57612c7f615ac6565b90506020020135611e0c565b80612c9581615af2565b915050612c60565b6060600380546110fa90615b0d565b6060818310612cce57604051631960ccad60e11b815260040160405180910390fd5b600080546001851015612ce057600194505b80841115612cec578093505b6000612cf78761275b565b905084861015612d165785850381811015612d10578091505b50612d1a565b5060005b6000816001600160401b03811115612d3457612d3461504c565b604051908082528060200260200182016040528015612d5d578160200160208202803683370190505b50905081612d70579350612e6b92505050565b6000612d7b886134b4565b905060008160400151612d8c575080515b885b888114158015612d9e5750848714155b15612e5f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350612e0257612e57565b82516001600160a01b031615612e1757825191505b8a6001600160a01b0316826001600160a01b03161415612e575780848880600101995081518110612e4a57612e4a615ac6565b6020026020010181815250505b600101612d8e565b50505092835250909150505b9392505050565b6008546001600160a01b03163314612e9c5760405162461bcd60e51b815260040161129790615c4b565b8015612ee5576014805462010000900461ffff16906002612ebc83615c80565b91906101000a81548161ffff021916908361ffff16021790555050601c6000612ee59190614be5565b60005b825181101561124357612f37838281518110612f0657612f06615ac6565b602002602001015160000151848381518110612f2457612f24615ac6565b60200260200101516020015160006130d8565b80612f4181615af2565b915050612ee8565b6001600160a01b038216331415612f735760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b6000805460001901612fdf906103e8615cdb565b60008061300584846137cd565b601454909150600160e01b900461ffff16811115612e6b575050601454600160e01b900461ffff166110ae565b601c818154811061259957600080fd5b6008546001600160a01b0316331461306c5760405162461bcd60e51b815260040161129790615c4b565b6014805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b613099848484614269565b6001600160a01b0383163b156130d2576130b5848484846145c8565b6130d2576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146131025760405162461bcd60e51b815260040161129790615c4b565b801561314b576014805462010000900461ffff1690600261312283615c80565b91906101000a81548161ffff021916908361ffff16021790555050601c600061314b9190614be5565b60145462010000900461ffff166000908152601d6020908152604080832060ff871684529091528120839055805b601c5460ff821610156131dd578460ff16601c8260ff16815481106131a0576131a0615ac6565b60009182526020918290209181049091015460ff601f9092166101000a90041614156131cb57600191505b806131d581615ca2565b915050613179565b50806130d257601c8054600181018255600091909152602081047f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101805460ff808816601f9094166101000a9384029302191691909117905550505050565b60145461ffff166000908152601a6020908152604080832060ff85168452909152812054606091816001600160401b0381111561327b5761327b61504c565b6040519080825280602002602001820160405280156132a4578160200160208202803683370190505b50905060005b828110156127045760145461ffff166000908152601a6020908152604080832060ff8916845290915290208054829081106132e7576132e7615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061331c5761331c615ac6565b602002602001019060010b908160010b81525050808061333b90615af2565b9150506132aa565b6008546001600160a01b0316331461336d5760405162461bcd60e51b815260040161129790615c4b565b80156133b75760148054600160201b900461ffff1690600461338e83615c80565b91906101000a81548161ffff021916908361ffff16021790555050601f60006133b79190614c0a565b601454600160201b900461ffff166000908152601e60209081526040808320600187900b84529091528120839055805b601f5461ffff8216101561344e578460010b601f8261ffff168154811061341057613410615ac6565b60009182526020909120601082040154600f9091166002026101000a900460010b141561343c57600191505b8061344681615c80565b9150506133e7565b50806130d257601f8054600181018255600091909152601081047fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701805461ffff8088166002600f909516949094026101000a9384029302191691909117905550505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101929092529060018310806134fa57506000548310155b156135055792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906135655792915050565b612e6b83614454565b606061357982614052565b6135b95760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401611297565b601580546135c690615b0d565b151590506135e257505060408051602081019091526000815290565b60408051602081019091526000815260165460ff161561361a5750604080518082019091526005815264173539b7b760d91b60208201525b6015613625846146bc565b8260405160200161363893929190615cf2565b604051602081830303815290604052915050919050565b600085815260136020526040902054600b9060ff16156136825760405162461bcd60e51b81526004016112979190615b60565b50601460069054906101000a90046001600160a01b03166001600160a01b03166136ce8686604051602001611e9692919091825260601b6001600160601b031916602082015260340190565b6001600160a01b031614600a906136f85760405162461bcd60e51b81526004016112979190615b60565b50505060009283525060136020526040909120805460ff19166001179055601480546001600160a01b03909216600160301b026601000000000000600160d01b0319909216919091179055565b60005b81811015611db257613773858585858581811061376757613767615ac6565b9050602002013561256e565b8061377d81615af2565b915050613748565b6008546001600160a01b031633146137af5760405162461bcd60e51b815260040161129790615c4b565b6137b98686612131565b6137c38484612e72565b611f948282611f9c565b6001600160a01b0382166000908152601060205260408120546014548290600160d01b900460ff16613804576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff16835292815282822054908052919020541061384d576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a16855260128452828520918552925290912054106138a7576000925050506110ae565b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600189900b84529091529020600301541615613925575060145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600187810b8452915291902001545b601454600160f01b900461ffff168210613944576000925050506110ae565b6001600160a01b0385166000908152601160209081526040808320601454600160d01b900460ff1684528252808320600188900b84529091529020548111613991576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff1683529281528282205490805291902054106139da576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a1685526012845282852091855292529091205410613a34576000925050506110ae565b601454600090613a50908490600160f01b900461ffff16615cdb565b6001600160a01b0387166000908152601160209081526040808320601454600160d01b900460ff168452825280832060018a900b845290915281205491925090613a9a9084615cdb565b601454600160d01b810460ff16600081815260208080526040808320546201000090950461ffff168352601d82528083209383529290529081205492935091613ae39190615cdb565b6001600160a01b038916600090815260126020908152604080832060018c900b80855290835281842054601454600160201b900461ffff168552601e845282852091855292528220549293509091613b3b9190615cdb565b9050613b69613b48612fe4565b613b64613b5e613b5888886147b9565b866147b9565b846147b9565b6147b9565b9998505050505050505050565b6008546001600160a01b03163314613ba05760405162461bcd60e51b815260040161129790615c4b565b6014805460ff60d81b1916600160d81b179055565b60158054613bc290615b0d565b80601f0160208091040260200160405190810160405280929190818152602001828054613bee90615b0d565b8015613c3b5780601f10613c1057610100808354040283529160200191613c3b565b820191906000526020600020905b815481529060010190602001808311613c1e57829003601f168201915b505050505081565b6008546001600160a01b03163314613c6d5760405162461bcd60e51b815260040161129790615c4b565b6001600160a01b038116613cd25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611297565b6120a981614576565b6008546001600160a01b03163314613d055760405162461bcd60e51b815260040161129790615c4b565b60145461ffff16600090815260186020908152604080832060ff8087168552908352818420600186900b85529092529091206003015416613d7b5760405162461bcd60e51b815260206004820152601060248201526f149bdb19481b9bdd08195e1a5cdd195960821b6044820152606401611297565b6014805461ffff908116600090815260186020818152604080842060ff8916808652908352818520600189810b808852918552838720805460ff1990811690915589548916885286865284882084895286528488208389528652848820805462ffff001916905589548916885286865284882084895286528488208389528652848820909101879055885488168752858552838720838852855283872082885285528387206002018790558854881687529484528286208287528452828620908652835281852060030180549094169093559454841683526019815284832091835252918220805490911691613e7083615d89565b91906101000a81548161ffff021916908361ffff1602179055505060005b60145461ffff166000908152601a6020908152604080832060ff80881685529252909120549082161015613f665760145461ffff166000908152601a6020908152604080832060ff808816855292529091208054600185900b928416908110613ef957613ef9615ac6565b60009182526020909120601082040154600f9091166002026101000a900460010b1415613f545760145461ffff166000908152601a6020908152604080832060ff80881685529252909120613f4f9183166147cf565b613f66565b80613f5e81615ca2565b915050613e8e565b5060145461ffff908116600090815260196020908152604080832060ff871684529091529020541661212d5760005b601c5460ff82161015611243578260ff16601c8260ff1681548110613fbc57613fbc615ac6565b60009182526020918290209181049091015460ff601f9092166101000a9004161415613ff057611243601c8260ff16614903565b80613ffa81615ca2565b915050613f95565b60006001600160e01b031982166380ac58cd60e01b148061403357506001600160e01b03198216635b5e139f60e01b145b806110ae57506301ffc9a760e01b6001600160e01b03198316146110ae565b600081600111158015614066575060005482105b80156110ae575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000808580519060200120905060008160405160200161413391907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8916918301919091526060820187905260808201869052915060019060a0016020604051602081039080840390855afa15801561419b573d6000803e3d6000fd5b50505060206040510351925050505b949350505050565b61212d828260405180602001604052806000815250614a26565b806141d5575050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614222576040519150601f19603f3d011682016040523d82523d6000602084013e614227565b606091505b50509050806112435760405162461bcd60e51b815260206004820152600e60248201526d115d1a195c881b9bdd081cd95b9d60921b6044820152606401611297565b600061427482614454565b9050836001600160a01b031681600001516001600160a01b0316146142ab5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806142c957506142c98533610e60565b806142e45750336142d98461117d565b6001600160a01b0316145b90508061430457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661432b57604051633a954ecd60e21b815260040160405180910390fd5b6143376000848761408b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661440b57600054821461440b57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db2565b6040805160608101825260008082526020820181905291810191909152818060011161455d5760005481101561455d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061455b5780516001600160a01b0316156144f2579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215614556579392505050565b6144f2565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906145fd903390899088908890600401615da7565b602060405180830381600087803b15801561461757600080fd5b505af1925050508015614647575060408051601f3d908101601f1916820190925261464491810190615de4565b60015b6146a2573d808015614675576040519150601f19603f3d011682016040523d82523d6000602084013e61467a565b606091505b50805161469a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506141aa565b6060816146e05750506040805180820190915260018152600360fc1b602082015290565b8160005b811561470a57806146f481615af2565b91506147039050600a83615c1a565b91506146e4565b6000816001600160401b038111156147245761472461504c565b6040519080825280601f01601f19166020018201604052801561474e576020820181803683370190505b5090505b84156141aa57614763600183615cdb565b9150614770600a86615e01565b61477b906030615b48565b60f81b81838151811061479057614790615ac6565b60200101906001600160f81b031916908160001a9053506147b2600a86615c1a565b9450614752565b60008183106147c85781612e6b565b5090919050565b805b82546147df90600190615cdb565b81101561487c57826147f2826001615b48565b8154811061480257614802615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b83828154811061483757614837615ac6565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908360010b61ffff160217905550808061487490615af2565b9150506147d1565b508154829061488d90600190615cdb565b8154811061489d5761489d615ac6565b90600052602060002090601091828204019190066002026101000a81549061ffff0219169055818054806148d3576148d3615e15565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b805b825461491390600190615cdb565b8110156149a55782614926826001615b48565b8154811061493657614936615ac6565b90600052602060002090602091828204019190069054906101000a900460ff1683828154811061496857614968615ac6565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550808061499d90615af2565b915050614905565b50815482906149b690600190615cdb565b815481106149c6576149c6615ac6565b90600052602060002090602091828204019190066101000a81549060ff0219169055818054806149f8576149f8615e15565b60019003818190600052602060002090602091828204019190066101000a81549060ff021916905590555050565b6000546001600160a01b038416614a4f57604051622e076360e81b815260040160405180910390fd5b82614a6d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15614b90575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b5960008784806001019550876145c8565b614b76576040516368d2bf6b60e11b815260040160405180910390fd5b808210614b0e578260005414614b8b57600080fd5b614bd5565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b91575b5060009081556130d29085838684565b50805460008255601f0160209004906000526020600020908101906120a99190614cb3565b50805460008255600f0160109004906000526020600020908101906120a99190614cb3565b828054614c3b90615b0d565b90600052602060002090601f016020900481019282614c5d5760008555614ca3565b82601f10614c7657805160ff1916838001178555614ca3565b82800160010185558215614ca3579182015b82811115614ca3578251825591602001919060010190614c88565b50614caf929150614cb3565b5090565b5b80821115614caf5760008155600101614cb4565b602080825282518282018190526000919060409081850190868401855b82811015614d0d578151805160ff168552860151868501529284019290850190600101614ce5565b5091979650505050505050565b6001600160e01b0319811681146120a957600080fd5b600060208284031215614d4257600080fd5b8135612e6b81614d1a565b600060208284031215614d5f57600080fd5b5035919050565b60005b83811015614d81578181015183820152602001614d69565b838111156130d25750506000910152565b60008151808452614daa816020860160208601614d66565b601f01601f19169290920160200192915050565b602081526000612e6b6020830184614d92565b80356001600160a01b0381168114614de857600080fd5b919050565b60008060408385031215614e0057600080fd5b614e0983614dd1565b946020939093013593505050565b8035600181900b8114614de857600080fd5b803561ffff81168114614de857600080fd5b803560ff81168114614de857600080fd5b600080600080600080600080610100898b031215614e6957600080fd5b88359750614e7960208a01614e17565b9650614e8760408a01614e29565b9550614e9560608a01614dd1565b945060808901359350614eaa60a08a01614e3b565b925060c0890135915060e089013590509295985092959890939650565b600060208284031215614ed957600080fd5b612e6b82614e3b565b80151581146120a957600080fd5b600080600080600060a08688031215614f0857600080fd5b614f1186614e3b565b9450614f1f60208701614e17565b935060408601359250606086013591506080860135614f3d81614ee2565b809150509295509295909350565b600080600060608486031215614f6057600080fd5b614f6984614e29565b9250614f7760208501614e3b565b9150604084013590509250925092565b600080600060608486031215614f9c57600080fd5b614fa584614dd1565b9250614f7760208501614dd1565b600080600080600060a08688031215614fcb57600080fd5b85359450614fdb60208701614e3b565b9350614fe960408701614e3b565b94979396509394606081013594506080013592915050565b60008083601f84011261501357600080fd5b5081356001600160401b0381111561502a57600080fd5b6020830191508360208260051b850101111561504557600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156150845761508461504c565b60405290565b604051608081016001600160401b03811182821017156150845761508461504c565b604051601f8201601f191681016001600160401b03811182821017156150d4576150d461504c565b604052919050565b60006001600160401b038311156150f5576150f561504c565b615108601f8401601f19166020016150ac565b905082815283838301111561511c57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261514457600080fd5b612e6b838335602085016150dc565b60008060008060006080868803121561516b57600080fd5b61517486614dd1565b945061518260208701614dd1565b935060408601356001600160401b038082111561519e57600080fd5b6151aa89838a01615001565b909550935060608801359150808211156151c357600080fd5b506151d088828901615133565b9150509295509295909350565b60006001600160401b038211156151f6576151f661504c565b5060051b60200190565b600082601f83011261521157600080fd5b81356020615226615221836151dd565b6150ac565b82815260069290921b8401810191818101908684111561524557600080fd5b8286015b8481101561528b57604081890312156152625760008081fd5b61526a615062565b61527382614e17565b81528185013585820152835291830191604001615249565b509695505050505050565b600080604083850312156152a957600080fd5b82356001600160401b038111156152bf57600080fd5b6152cb85828601615200565b92505060208301356152dc81614ee2565b809150509250929050565b600082601f8301126152f857600080fd5b81356020615308615221836151dd565b82815260079290921b8401810191818101908684111561532757600080fd5b8286015b8481101561528b57608081890312156153445760008081fd5b61534c61508a565b61535582614e3b565b8152615362858301614e17565b81860152604082810135908201526060808301359082015283529183019160800161532b565b6000806040838503121561539b57600080fd5b82356001600160401b038111156153b157600080fd5b6152cb858286016152e7565b6000602082840312156153cf57600080fd5b612e6b82614e17565b602080825282518282018190526000919060409081850190868401855b82811015614d0d578151805160ff16855286810151600190810b8887015286820151878701526060918201519186019190915260809094019391860191016153f5565b60006020828403121561544a57600080fd5b81356001600160401b0381111561546057600080fd5b8201601f8101841361547157600080fd5b6141aa848235602084016150dc565b6000602080838503121561549357600080fd5b82356001600160401b038111156154a957600080fd5b8301601f810185136154ba57600080fd5b80356154c8615221826151dd565b81815260059190911b820183019083810190878311156154e757600080fd5b928401925b82841015615505578335825292840192908401906154ec565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b6020808252825182820181905260009190848201906040850190845b81811015612b265761556c838551615510565b9284019260609290920191600101615559565b60006020828403121561559157600080fd5b8135612e6b81614ee2565b6000602082840312156155ae57600080fd5b612e6b82614dd1565b602080825282518282018190526000919060409081850190868401855b82811015614d0d5781518051600190810b865290870151878601529385019391860191016155d4565b60006020828403121561560f57600080fd5b612e6b82614e29565b6020808252825182820181905260009190848201906040850190845b81811015612b2657835183529284019291840191600101615634565b6000806000806060858703121561566657600080fd5b61566f85614dd1565b935061567d60208601614dd1565b925060408501356001600160401b0381111561569857600080fd5b6156a487828801615001565b95989497509550505050565b6000806000606084860312156156c557600080fd5b6156ce84614dd1565b95602085013595506040909401359392505050565b6000806000606084860312156156f857600080fd5b61570184614e29565b925061570f60208501614e3b565b915061571d60408501614e17565b90509250925092565b600082601f83011261573757600080fd5b81356020615747615221836151dd565b82815260069290921b8401810191818101908684111561576657600080fd5b8286015b8481101561528b57604081890312156157835760008081fd5b61578b615062565b61579482614e3b565b8152818501358582015283529183019160400161576a565b600080604083850312156157bf57600080fd5b82356001600160401b038111156157d557600080fd5b6152cb85828601615726565b600080604083850312156157f457600080fd5b6157fd83614dd1565b915060208301356152dc81614ee2565b6000806040838503121561582057600080fd5b61582983614dd1565b915061583760208401614e17565b90509250929050565b6000806000806080858703121561585657600080fd5b61585f85614dd1565b935061586d60208601614dd1565b92506040850135915060608501356001600160401b0381111561588f57600080fd5b61589b87828801615133565b91505092959194509250565b6000806000606084860312156158bc57600080fd5b6158c584614e3b565b92506020840135915060408401356158dc81614ee2565b809150509250925092565b600080604083850312156158fa57600080fd5b61590383614e29565b915061583760208401614e3b565b6020808252825182820181905260009190848201906040850190845b81811015612b26578351600190810b845293850193928501920161592d565b60008060006060848603121561596157600080fd5b6158c584614e17565b606081016110ae8284615510565b600080600080600060a0868803121561599057600080fd5b85359450614fdb60208701614dd1565b60008060008060008060c087890312156159b957600080fd5b86356001600160401b03808211156159d057600080fd5b6159dc8a838b016152e7565b9750602089013591506159ee82614ee2565b90955060408801359080821115615a0457600080fd5b615a108a838b01615726565b955060608901359150615a2282614ee2565b90935060808801359080821115615a3857600080fd5b50615a4589828a01615200565b92505060a0870135615a5681614ee2565b809150509295509295509295565b60008060408385031215615a7757600080fd5b615a8083614dd1565b915061583760208401614dd1565b60008060408385031215615aa157600080fd5b61582983614e29565b60008060408385031215615abd57600080fd5b61582983614e3b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415615b0657615b06615adc565b5060010190565b600181811c90821680615b2157607f821691505b60208210811415615b4257634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115615b5b57615b5b615adc565b500190565b6000602080835260008454615b7481615b0d565b80848701526040600180841660008114615b955760018114615ba957615bd7565b60ff19851689840152606089019550615bd7565b896000528660002060005b85811015615bcf5781548b8201860152908301908801615bb4565b8a0184019650505b509398975050505050505050565b6000816000190483118215151615615bff57615bff615adc565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615c2957615c29615c04565b500490565b600060208284031215615c4057600080fd5b8151612e6b81614ee2565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff80831681811415615c9857615c98615adc565b6001019392505050565b600060ff821660ff811415615cb957615cb9615adc565b60010192915050565b600060208284031215615cd457600080fd5b5051919050565b600082821015615ced57615ced615adc565b500390565b6000808554615d0081615b0d565b60018281168015615d185760018114615d2957615d58565b60ff19841687528287019450615d58565b8960005260208060002060005b85811015615d4f5781548a820152908401908201615d36565b50505082870194505b505050508451615d6c818360208901614d66565b8451910190615d7f818360208801614d66565b0195945050505050565b600061ffff821680615d9d57615d9d615adc565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615dda90830184614d92565b9695505050505050565b600060208284031215615df657600080fd5b8151612e6b81614d1a565b600082615e1057615e10615c04565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b0396fc4094856ff1b48192607e2bf265c828f313f5f42f57c6bffe922e7b04164736f6c63430008090033

Deployed Bytecode

0x6080604052600436106104345760003560e01c80638462151c11610229578063bd8fc4a21161012e578063d0950e74116100b6578063e985e9c51161007a578063e985e9c514610e45578063f2fde38b14610e8e578063f5a4156c14610eae578063fb3cc6c214610ee6578063fe2e66f414610f0757600080fd5b8063d0950e7414610dbf578063d111515d14610ddf578063de7fcb1d14610df4578063e08c5e3214610e16578063e4d3d44814610e3057600080fd5b8063c87b56dd116100fd578063c87b56dd14610d07578063c9d4857914610d27578063cf502d0d14610d47578063d047d03814610d67578063d0667dd214610d9f57600080fd5b8063bd8fc4a214610c51578063be56844814610c8d578063bf65eb3414610cba578063c23dc68f14610cda57600080fd5b8063a13429a9116101b1578063b1ad048c11610180578063b1ad048c14610bb1578063b1e8dbaa14610bd1578063b6a7412114610bf1578063b88d4fde14610c11578063ba1402d314610c3157600080fd5b8063a13429a914610b43578063a22cb46514610b63578063a2309ff814610b83578063ac7dc68d14610b9c57600080fd5b80638a19c8bc116101f85780638a19c8bc14610a3b5780638da5cb5b14610a5c57806395d89b4114610a7a57806399a2557a14610a8f5780639e8cc8d314610aaf57600080fd5b80638462151c146109b957806387f65c91146109e657806389476069146109fb57806389b5a8c214610a1b57600080fd5b80633ccfd60b1161033a578063572849c4116102c257806370a082311161028657806370a0823114610922578063715018a614610942578063748a500a14610957578063796b89ec1461097957806379a2c3f81461099957600080fd5b8063572849c4146108595780635b7633d01461088e5780635bbb2177146108b55780636352211e146108e25780636e453d621461090257600080fd5b80633e9dbed0116103095780633e9dbed0146107af57806342842e0e146107d157806346830628146107f1578063500ea93b1461080757806355f804b31461083957600080fd5b80633ccfd60b146106fe5780633d6a5745146107135780633dd3802d146107335780633e8f18f01461075357600080fd5b80631a6d843e116103bd57806327854c151161038c57806327854c151461065c578063306279da1461068857806332ab9bbe146106a857806332cb6b0c146106c857806333ee7927146106de57600080fd5b80631a6d843e146105dc5780631c1cb323146105fc57806321120f7a1461061c57806323b872dd1461063c57600080fd5b8063081812fc11610404578063081812fc14610528578063095ea7b3146105605780630d23d6691461058257806318160ddd14610595578063183ab264146105bc57600080fd5b80620319df1461047857806301ffc9a7146104a357806306a7c8de146104d357806306fdde031461050657600080fd5b3661047357604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561048457600080fd5b5061048d610f27565b60405161049a9190614cc8565b60405180910390f35b3480156104af57600080fd5b506104c36104be366004614d30565b611094565b604051901515815260200161049a565b3480156104df57600080fd5b506104f36104ee366004614d4d565b6110b4565b60405160019190910b815260200161049a565b34801561051257600080fd5b5061051b6110eb565b60405161049a9190614dbe565b34801561053457600080fd5b50610548610543366004614d4d565b61117d565b6040516001600160a01b03909116815260200161049a565b34801561056c57600080fd5b5061058061057b366004614ded565b6111c1565b005b610580610590366004614e4c565b611248565b3480156105a157600080fd5b5060015460005403600019015b60405190815260200161049a565b3480156105c857600080fd5b506105806105d7366004614ec7565b6118bf565b3480156105e857600080fd5b506105806105f7366004614ef0565b61193d565b34801561060857600080fd5b50602254610548906001600160a01b031681565b34801561062857600080fd5b506104f3610637366004614f4b565b611db9565b34801561064857600080fd5b50610580610657366004614f87565b611e0c565b34801561066857600080fd5b506105ae610677366004614ec7565b602080526000908152604090205481565b34801561069457600080fd5b506105806106a3366004614fb3565b611e17565b3480156106b457600080fd5b506105806106c3366004615153565b611f53565b3480156106d457600080fd5b506105ae6103e881565b3480156106ea57600080fd5b506105806106f9366004615296565b611f9c565b34801561070a57600080fd5b50610580612074565b34801561071f57600080fd5b5061058061072e366004614ded565b6120ac565b34801561073f57600080fd5b5061058061074e366004615388565b612131565b34801561075f57600080fd5b506105ae61076e3660046153bd565b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff16835292815282822060019490940b82529290925290206002015490565b3480156107bb57600080fd5b506107c461223e565b60405161049a91906153d8565b3480156107dd57600080fd5b506105806107ec366004614f87565b61256e565b3480156107fd57600080fd5b506105ae60215481565b34801561081357600080fd5b50610827610822366004614d4d565b612589565b60405160ff909116815260200161049a565b34801561084557600080fd5b50610580610854366004615438565b6125bd565b34801561086557600080fd5b5060145461087b90600160f01b900461ffff1681565b60405161ffff909116815260200161049a565b34801561089a57600080fd5b5060145461054890600160301b90046001600160a01b031681565b3480156108c157600080fd5b506108d56108d0366004615480565b612646565b60405161049a919061553d565b3480156108ee57600080fd5b506105486108fd366004614d4d565b61270c565b34801561090e57600080fd5b5061058061091d36600461557f565b61271e565b34801561092e57600080fd5b506105ae61093d36600461559c565b61275b565b34801561094e57600080fd5b506105806127a9565b34801561096357600080fd5b5061096c6127df565b60405161049a91906155b7565b34801561098557600080fd5b5061058061099436600461559c565b61294c565b3480156109a557600080fd5b506105806109b43660046155fd565b612998565b3480156109c557600080fd5b506109d96109d436600461559c565b6129e5565b60405161049a9190615618565b3480156109f257600080fd5b506105ae600181565b348015610a0757600080fd5b50610580610a1636600461559c565b612b32565b348015610a2757600080fd5b50610580610a36366004615650565b612c5d565b348015610a4757600080fd5b5060145461082790600160d01b900460ff1681565b348015610a6857600080fd5b506008546001600160a01b0316610548565b348015610a8657600080fd5b5061051b612c9d565b348015610a9b57600080fd5b506109d9610aaa3660046156b0565b612cac565b348015610abb57600080fd5b50610b12610aca3660046156e3565b601860209081526000938452604080852082529284528284209052825290208054600180830154600284015460039094015460ff8085169561010090950490930b9391921685565b6040805160ff909616865260019490940b60208601529284019190915260608301521515608082015260a00161049a565b348015610b4f57600080fd5b50610580610b5e3660046157ac565b612e72565b348015610b6f57600080fd5b50610580610b7e3660046157e1565b612f49565b348015610b8f57600080fd5b50600054600019016105ae565b348015610ba857600080fd5b506105ae612fe4565b348015610bbd57600080fd5b506105ae610bcc36600461580d565b612ff8565b348015610bdd57600080fd5b50610827610bec366004614d4d565b613032565b348015610bfd57600080fd5b50610580610c0c3660046155fd565b613042565b348015610c1d57600080fd5b50610580610c2c366004615840565b61308e565b348015610c3d57600080fd5b50610580610c4c3660046158a7565b6130d8565b348015610c5d57600080fd5b5061087b610c6c3660046158e7565b601960209081526000928352604080842090915290825290205461ffff1681565b348015610c9957600080fd5b50610cad610ca8366004614ec7565b61323c565b60405161049a9190615911565b348015610cc657600080fd5b50610580610cd536600461594c565b613343565b348015610ce657600080fd5b50610cfa610cf5366004614d4d565b6134b4565b60405161049a919061596a565b348015610d1357600080fd5b5061051b610d22366004614d4d565b61356e565b348015610d3357600080fd5b50610580610d42366004615978565b61364f565b348015610d5357600080fd5b50610580610d62366004615650565b613745565b348015610d7357600080fd5b506105ae610d823660046158e7565b601d60209081526000928352604080842090915290825290205481565b348015610dab57600080fd5b50610580610dba3660046159a0565b613785565b348015610dcb57600080fd5b506105ae610dda36600461580d565b6137cd565b348015610deb57600080fd5b50610580613b76565b348015610e0057600080fd5b5060145461087b90600160e01b900461ffff1681565b348015610e2257600080fd5b506016546104c39060ff1681565b348015610e3c57600080fd5b5061051b613bb5565b348015610e5157600080fd5b506104c3610e60366004615a64565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e9a57600080fd5b50610580610ea936600461559c565b613c43565b348015610eba57600080fd5b506105ae610ec9366004615a8e565b601e60209081526000928352604080842090915290825290205481565b348015610ef257600080fd5b506014546104c390600160d81b900460ff1681565b348015610f1357600080fd5b50610580610f22366004615aaa565b613cdb565b601c546060906000816001600160401b03811115610f4757610f4761504c565b604051908082528060200260200182016040528015610f8c57816020015b6040805180820190915260008082526020820152815260200190600190039081610f655790505b50905060005b8281101561108d57601c8181548110610fad57610fad615ac6565b90600052602060002090602091828204019190069054906101000a900460ff16828281518110610fdf57610fdf615ac6565b60209081029190910181015160ff90921690915260145461ffff62010000909104166000908152601d90915260408120601c80549192918490811061102657611026615ac6565b90600052602060002090602091828204019190069054906101000a900460ff1660ff1660ff1681526020019081526020016000205482828151811061106d5761106d615ac6565b60209081029190910181015101528061108581615af2565b915050610f92565b5092915050565b600061109f82614002565b806110ae57506110ae82614002565b92915050565b601f81815481106110c457600080fd5b9060005260206000209060109182820401919006600202915054906101000a900460010b81565b6060600280546110fa90615b0d565b80601f016020809104026020016040519081016040528092919081815260200182805461112690615b0d565b80156111735780601f1061114857610100808354040283529160200191611173565b820191906000526020600020905b81548152906001019060200180831161115657829003601f168201915b5050505050905090565b600061118882614052565b6111a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111cc8261270c565b9050806001600160a01b0316836001600160a01b031614156112015760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146112385761121b8133610e60565b611238576040516367d9dca160e11b815260040160405180910390fd5b61124383838361408b565b505050565b600260095414156112a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955601454600160d01b900460ff166112ec5760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401611297565b836000600189900b1261130e5761130b61ffff8916601087901b615b48565b90505b600081815260136020526040902054600b9060ff16156113415760405162461bcd60e51b81526004016112979190615b60565b50601454604080516020810184905260f08a901b6001600160f01b03191691810191909152606088901b6001600160601b0319166042820152600160301b9091046001600160a01b0316906113aa906056016040516020818303038152906040528686866140e7565b6001600160a01b031614600a906113d45760405162461bcd60e51b81526004016112979190615b60565b5060145461ffff8116600090815260186020908152604080832060ff600160d01b9095048516845282528083208380529091528120600301549091169060018a900b811361141f5750885b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600186900b8452909152902060030154166114a0578161149c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401611297565b5060005b600e8b6114c05760405162461bcd60e51b81526004016112979190615b60565b508a6114ca612fe4565b1015600f906114ec5760405162461bcd60e51b81526004016112979190615b60565b5060008a60010b1261152b578a611503338c612ff8565b1015600d906115255760405162461bcd60e51b81526004016112979190615b60565b5061155b565b8a611537336000612ff8565b1015600d906115595760405162461bcd60e51b81526004016112979190615b60565b505b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600185900b83529052908120600201546115a1908d615be5565b6000858152601360205260409020805460ff191660011790556022549091506001600160a01b0316156115f557600c34156115ef5760405162461bcd60e51b81526004016112979190615b60565b50611619565b600c3482146116175760405162461bcd60e51b81526004016112979190615b60565b505b611623338d6141b2565b601454600160d01b900460ff166000908152602080526040902054611649908d90615b48565b601454600160d01b900460ff166000908152602080805260408083209390935533825260109052205461167d908d90615b48565b3360009081526010602090815260408083209390935560118152828220601454600160d01b900460ff1683528152828220600186900b8352905220546116c4908d90615b48565b336000908152601160209081526040808320601454600160d01b900460ff1684528252808320600187900b80855292528220929092551361174957336000908152601260209081526040808320600186900b8452909152902054611729908d90615b48565b336000908152601260209081526040808320600187900b84529091529020555b600061271061175c61ffff8d1684615be5565b6117669190615c1a565b6022549091506001600160a01b031615611890576022546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b039091169081906323b872dd90606401602060405180830381600087803b1580156117ce57600080fd5b505af11580156117e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118069190615c2e565b5060405163a9059cbb60e01b81526001600160a01b038c811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561185157600080fd5b505af1158015611865573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118899190615c2e565b505061189a565b61189a8a826141cc565b806021546118a89190615b48565b602155505060016009555050505050505050505050565b6008546001600160a01b031633146118e95760405162461bcd60e51b815260040161129790615c4b565b6014805460ff60d01b1916600160d01b60ff8416908102919091179091556040519081527f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f459060200160405180910390a150565b6008546001600160a01b031633146119675760405162461bcd60e51b815260040161129790615c4b565b80156119aa576014805461ffff1690600061198183615c80565b91906101000a81548161ffff021916908361ffff16021790555050601b60006119aa9190614be5565b600060186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008760ff1660ff16815260200190815260200160002060008660010b60010b815260200190815260200160002060030160009054906101000a900460ff1690508560186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055508460186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160016101000a81548161ffff021916908360010b61ffff1602179055508360186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b8152602001908152602001600020600101819055508260186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060020181905550600160186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060030160006101000a81548160ff0219169083151502179055508015611c4a5750611db2565b60145461ffff908116600090815260196020908152604080832060ff8b168452909152812080549092169190611c7f83615c80565b825461010092830a61ffff81810219909216928216029190911790925560145482166000908152601a6020908152604080832060ff8d16845282528220805460018101825590835290822060108204018054600f90921660020290930a80850219909116938a16029290921790559050805b601b5460ff82161015611d55578760ff16601b8260ff1681548110611d1857611d18615ac6565b60009182526020918290209181049091015460ff601f9092166101000a9004161415611d4357600191505b80611d4d81615ca2565b915050611cf1565b5080611daf57601b8054600181018255600091909152602081047f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc101805460ff808b16601f9094166101000a938402930219169190911790555b50505b5050505050565b601a6020528260005260406000206020528160005260406000208181548110611de157600080fd5b906000526020600020906010918282040191900660020292509250509054906101000a900460010b81565b611243838383614269565b600085815260136020526040902054600b9060ff1615611e4a5760405162461bcd60e51b81526004016112979190615b60565b50601460069054906101000a90046001600160a01b03166001600160a01b0316611ead8686604051602001611e9692919091825260f81b6001600160f81b031916602082015260210190565b6040516020818303038152906040528585856140e7565b6001600160a01b031614600a90611ed75760405162461bcd60e51b81526004016112979190615b60565b5060008581526013602052604090819020805460ff191660011790556014805460ff8716600160d01b0260ff60d01b19909116179055517f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f4590611f4490869060ff91909116815260200190565b60405180910390a15050505050565b60005b82811015611f9457611f828686868685818110611f7557611f75615ac6565b905060200201358561308e565b80611f8c81615af2565b915050611f56565b505050505050565b6008546001600160a01b03163314611fc65760405162461bcd60e51b815260040161129790615c4b565b80156120105760148054600160201b900461ffff16906004611fe783615c80565b91906101000a81548161ffff021916908361ffff16021790555050601f60006120109190614c0a565b60005b82518110156112435761206283828151811061203157612031615ac6565b60200260200101516000015184838151811061204f5761204f615ac6565b6020026020010151602001516000613343565b8061206c81615af2565b915050612013565b6008546001600160a01b0316331461209e5760405162461bcd60e51b815260040161129790615c4b565b476120a933826141cc565b50565b6008546001600160a01b031633146120d65760405162461bcd60e51b815260040161129790615c4b565b600e816120f65760405162461bcd60e51b81526004016112979190615b60565b5080612100612fe4565b1015600f906121225760405162461bcd60e51b81526004016112979190615b60565b5061212d82826141b2565b5050565b6008546001600160a01b0316331461215b5760405162461bcd60e51b815260040161129790615c4b565b801561219e576014805461ffff1690600061217583615c80565b91906101000a81548161ffff021916908361ffff16021790555050601b600061219e9190614be5565b60005b82518110156112435761222c8382815181106121bf576121bf615ac6565b6020026020010151600001518483815181106121dd576121dd615ac6565b6020026020010151602001518584815181106121fb576121fb615ac6565b60200260200101516040015186858151811061221957612219615ac6565b602002602001015160600151600061193d565b8061223681615af2565b9150506121a1565b60606000805b601b548110156122c85760145461ffff166000908152601960205260408120601b80549192918490811061227a5761227a615ac6565b600091825260208083208183040154601f9092166101000a90910460ff1683528201929092526040019020546122b49061ffff1683615b48565b9150806122c081615af2565b915050612244565b506000816001600160401b038111156122e3576122e361504c565b60405190808252806020026020018201604052801561233557816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816123015790505b5090506000805b601b54811015612565576000601b828154811061235b5761235b615ac6565b60009182526020808320908204015460ff601f9092166101000a90041691505b60145461ffff166000908152601960205260408120601b8054919291869081106123a7576123a7615ac6565b600091825260208083208183040154601f9092166101000a90910460ff16835282019290925260400190205461ffff168110156125505760145461ffff166000908152601a6020908152604080832060ff86168452909152812080548390811061241357612413615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b90508286868151811061244b5761244b615ac6565b60200260200101516000019060ff16908160ff16815250508086868151811061247657612476615ac6565b602090810291909101810151600192830b9082015260145461ffff16600090815260188252604080822060ff88168352835280822085850b835290925220015486518790879081106124ca576124ca615ac6565b60209081029190910181015160409081019290925260145461ffff1660009081526018825282812060ff871682528252828120600185900b82529091522060020154865187908790811061252057612520615ac6565b6020908102919091010151606001528461253981615af2565b95505050808061254890615af2565b91505061237b565b5050808061255d90615af2565b91505061233c565b50909392505050565b6112438383836040518060200160405280600081525061308e565b601b818154811061259957600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6008546001600160a01b031633146125e75760405162461bcd60e51b815260040161129790615c4b565b601454600160d81b900460ff16156126335760405162461bcd60e51b815260206004820152600f60248201526e26b2ba30b230ba3090333937bd32b760891b6044820152606401611297565b805161212d906015906020840190614c2f565b80516060906000816001600160401b038111156126655761266561504c565b6040519080825280602002602001820160405280156126b057816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816126835790505b50905060005b828114612704576126df8582815181106126d2576126d2615ac6565b60200260200101516134b4565b8282815181106126f1576126f1615ac6565b60209081029190910101526001016126b6565b509392505050565b600061271782614454565b5192915050565b6008546001600160a01b031633146127485760405162461bcd60e51b815260040161129790615c4b565b6016805460ff1916911515919091179055565b60006001600160a01b038216612784576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146127d35760405162461bcd60e51b815260040161129790615c4b565b6127dd6000614576565b565b601f546060906000816001600160401b038111156127ff576127ff61504c565b60405190808252806020026020018201604052801561284457816020015b604080518082019091526000808252602082015281526020019060019003908161281d5790505b50905060005b8281101561108d57601f818154811061286557612865615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061289a5761289a615ac6565b60209081029190910181015160019290920b909152601454600160201b900461ffff166000908152601e90915260408120601f8054919291849081106128e2576128e2615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b60010b60010b81526020019081526020016000205482828151811061292c5761292c615ac6565b60209081029190910181015101528061294481615af2565b91505061284a565b6008546001600160a01b031633146129765760405162461bcd60e51b815260040161129790615c4b565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146129c25760405162461bcd60e51b815260040161129790615c4b565b6014805461ffff909216600160f01b026001600160f01b03909216919091179055565b606060008060006129f58561275b565b90506000816001600160401b03811115612a1157612a1161504c565b604051908082528060200260200182016040528015612a3a578160200160208202803683370190505b509050612a60604080516060810182526000808252602082018190529181019190915290565b60015b838614612b2657600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250612ac957612b1e565b81516001600160a01b031615612ade57815194505b876001600160a01b0316856001600160a01b03161415612b1e5780838780600101985081518110612b1157612b11615ac6565b6020026020010181815250505b600101612a63565b50909695505050505050565b6008546001600160a01b03163314612b5c5760405162461bcd60e51b815260040161129790615c4b565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015612ba757600080fd5b505afa158015612bbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bdf9190615cc2565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612c2557600080fd5b505af1158015612c39573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112439190615c2e565b60005b81811015611db257612c8b8585858585818110612c7f57612c7f615ac6565b90506020020135611e0c565b80612c9581615af2565b915050612c60565b6060600380546110fa90615b0d565b6060818310612cce57604051631960ccad60e11b815260040160405180910390fd5b600080546001851015612ce057600194505b80841115612cec578093505b6000612cf78761275b565b905084861015612d165785850381811015612d10578091505b50612d1a565b5060005b6000816001600160401b03811115612d3457612d3461504c565b604051908082528060200260200182016040528015612d5d578160200160208202803683370190505b50905081612d70579350612e6b92505050565b6000612d7b886134b4565b905060008160400151612d8c575080515b885b888114158015612d9e5750848714155b15612e5f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350612e0257612e57565b82516001600160a01b031615612e1757825191505b8a6001600160a01b0316826001600160a01b03161415612e575780848880600101995081518110612e4a57612e4a615ac6565b6020026020010181815250505b600101612d8e565b50505092835250909150505b9392505050565b6008546001600160a01b03163314612e9c5760405162461bcd60e51b815260040161129790615c4b565b8015612ee5576014805462010000900461ffff16906002612ebc83615c80565b91906101000a81548161ffff021916908361ffff16021790555050601c6000612ee59190614be5565b60005b825181101561124357612f37838281518110612f0657612f06615ac6565b602002602001015160000151848381518110612f2457612f24615ac6565b60200260200101516020015160006130d8565b80612f4181615af2565b915050612ee8565b6001600160a01b038216331415612f735760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b6000805460001901612fdf906103e8615cdb565b60008061300584846137cd565b601454909150600160e01b900461ffff16811115612e6b575050601454600160e01b900461ffff166110ae565b601c818154811061259957600080fd5b6008546001600160a01b0316331461306c5760405162461bcd60e51b815260040161129790615c4b565b6014805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b613099848484614269565b6001600160a01b0383163b156130d2576130b5848484846145c8565b6130d2576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146131025760405162461bcd60e51b815260040161129790615c4b565b801561314b576014805462010000900461ffff1690600261312283615c80565b91906101000a81548161ffff021916908361ffff16021790555050601c600061314b9190614be5565b60145462010000900461ffff166000908152601d6020908152604080832060ff871684529091528120839055805b601c5460ff821610156131dd578460ff16601c8260ff16815481106131a0576131a0615ac6565b60009182526020918290209181049091015460ff601f9092166101000a90041614156131cb57600191505b806131d581615ca2565b915050613179565b50806130d257601c8054600181018255600091909152602081047f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101805460ff808816601f9094166101000a9384029302191691909117905550505050565b60145461ffff166000908152601a6020908152604080832060ff85168452909152812054606091816001600160401b0381111561327b5761327b61504c565b6040519080825280602002602001820160405280156132a4578160200160208202803683370190505b50905060005b828110156127045760145461ffff166000908152601a6020908152604080832060ff8916845290915290208054829081106132e7576132e7615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061331c5761331c615ac6565b602002602001019060010b908160010b81525050808061333b90615af2565b9150506132aa565b6008546001600160a01b0316331461336d5760405162461bcd60e51b815260040161129790615c4b565b80156133b75760148054600160201b900461ffff1690600461338e83615c80565b91906101000a81548161ffff021916908361ffff16021790555050601f60006133b79190614c0a565b601454600160201b900461ffff166000908152601e60209081526040808320600187900b84529091528120839055805b601f5461ffff8216101561344e578460010b601f8261ffff168154811061341057613410615ac6565b60009182526020909120601082040154600f9091166002026101000a900460010b141561343c57600191505b8061344681615c80565b9150506133e7565b50806130d257601f8054600181018255600091909152601081047fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701805461ffff8088166002600f909516949094026101000a9384029302191691909117905550505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101929092529060018310806134fa57506000548310155b156135055792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906135655792915050565b612e6b83614454565b606061357982614052565b6135b95760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401611297565b601580546135c690615b0d565b151590506135e257505060408051602081019091526000815290565b60408051602081019091526000815260165460ff161561361a5750604080518082019091526005815264173539b7b760d91b60208201525b6015613625846146bc565b8260405160200161363893929190615cf2565b604051602081830303815290604052915050919050565b600085815260136020526040902054600b9060ff16156136825760405162461bcd60e51b81526004016112979190615b60565b50601460069054906101000a90046001600160a01b03166001600160a01b03166136ce8686604051602001611e9692919091825260601b6001600160601b031916602082015260340190565b6001600160a01b031614600a906136f85760405162461bcd60e51b81526004016112979190615b60565b50505060009283525060136020526040909120805460ff19166001179055601480546001600160a01b03909216600160301b026601000000000000600160d01b0319909216919091179055565b60005b81811015611db257613773858585858581811061376757613767615ac6565b9050602002013561256e565b8061377d81615af2565b915050613748565b6008546001600160a01b031633146137af5760405162461bcd60e51b815260040161129790615c4b565b6137b98686612131565b6137c38484612e72565b611f948282611f9c565b6001600160a01b0382166000908152601060205260408120546014548290600160d01b900460ff16613804576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff16835292815282822054908052919020541061384d576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a16855260128452828520918552925290912054106138a7576000925050506110ae565b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600189900b84529091529020600301541615613925575060145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600187810b8452915291902001545b601454600160f01b900461ffff168210613944576000925050506110ae565b6001600160a01b0385166000908152601160209081526040808320601454600160d01b900460ff1684528252808320600188900b84529091529020548111613991576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff1683529281528282205490805291902054106139da576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a1685526012845282852091855292529091205410613a34576000925050506110ae565b601454600090613a50908490600160f01b900461ffff16615cdb565b6001600160a01b0387166000908152601160209081526040808320601454600160d01b900460ff168452825280832060018a900b845290915281205491925090613a9a9084615cdb565b601454600160d01b810460ff16600081815260208080526040808320546201000090950461ffff168352601d82528083209383529290529081205492935091613ae39190615cdb565b6001600160a01b038916600090815260126020908152604080832060018c900b80855290835281842054601454600160201b900461ffff168552601e845282852091855292528220549293509091613b3b9190615cdb565b9050613b69613b48612fe4565b613b64613b5e613b5888886147b9565b866147b9565b846147b9565b6147b9565b9998505050505050505050565b6008546001600160a01b03163314613ba05760405162461bcd60e51b815260040161129790615c4b565b6014805460ff60d81b1916600160d81b179055565b60158054613bc290615b0d565b80601f0160208091040260200160405190810160405280929190818152602001828054613bee90615b0d565b8015613c3b5780601f10613c1057610100808354040283529160200191613c3b565b820191906000526020600020905b815481529060010190602001808311613c1e57829003601f168201915b505050505081565b6008546001600160a01b03163314613c6d5760405162461bcd60e51b815260040161129790615c4b565b6001600160a01b038116613cd25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611297565b6120a981614576565b6008546001600160a01b03163314613d055760405162461bcd60e51b815260040161129790615c4b565b60145461ffff16600090815260186020908152604080832060ff8087168552908352818420600186900b85529092529091206003015416613d7b5760405162461bcd60e51b815260206004820152601060248201526f149bdb19481b9bdd08195e1a5cdd195960821b6044820152606401611297565b6014805461ffff908116600090815260186020818152604080842060ff8916808652908352818520600189810b808852918552838720805460ff1990811690915589548916885286865284882084895286528488208389528652848820805462ffff001916905589548916885286865284882084895286528488208389528652848820909101879055885488168752858552838720838852855283872082885285528387206002018790558854881687529484528286208287528452828620908652835281852060030180549094169093559454841683526019815284832091835252918220805490911691613e7083615d89565b91906101000a81548161ffff021916908361ffff1602179055505060005b60145461ffff166000908152601a6020908152604080832060ff80881685529252909120549082161015613f665760145461ffff166000908152601a6020908152604080832060ff808816855292529091208054600185900b928416908110613ef957613ef9615ac6565b60009182526020909120601082040154600f9091166002026101000a900460010b1415613f545760145461ffff166000908152601a6020908152604080832060ff80881685529252909120613f4f9183166147cf565b613f66565b80613f5e81615ca2565b915050613e8e565b5060145461ffff908116600090815260196020908152604080832060ff871684529091529020541661212d5760005b601c5460ff82161015611243578260ff16601c8260ff1681548110613fbc57613fbc615ac6565b60009182526020918290209181049091015460ff601f9092166101000a9004161415613ff057611243601c8260ff16614903565b80613ffa81615ca2565b915050613f95565b60006001600160e01b031982166380ac58cd60e01b148061403357506001600160e01b03198216635b5e139f60e01b145b806110ae57506301ffc9a760e01b6001600160e01b03198316146110ae565b600081600111158015614066575060005482105b80156110ae575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000808580519060200120905060008160405160200161413391907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8916918301919091526060820187905260808201869052915060019060a0016020604051602081039080840390855afa15801561419b573d6000803e3d6000fd5b50505060206040510351925050505b949350505050565b61212d828260405180602001604052806000815250614a26565b806141d5575050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614222576040519150601f19603f3d011682016040523d82523d6000602084013e614227565b606091505b50509050806112435760405162461bcd60e51b815260206004820152600e60248201526d115d1a195c881b9bdd081cd95b9d60921b6044820152606401611297565b600061427482614454565b9050836001600160a01b031681600001516001600160a01b0316146142ab5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806142c957506142c98533610e60565b806142e45750336142d98461117d565b6001600160a01b0316145b90508061430457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661432b57604051633a954ecd60e21b815260040160405180910390fd5b6143376000848761408b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661440b57600054821461440b57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db2565b6040805160608101825260008082526020820181905291810191909152818060011161455d5760005481101561455d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061455b5780516001600160a01b0316156144f2579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215614556579392505050565b6144f2565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906145fd903390899088908890600401615da7565b602060405180830381600087803b15801561461757600080fd5b505af1925050508015614647575060408051601f3d908101601f1916820190925261464491810190615de4565b60015b6146a2573d808015614675576040519150601f19603f3d011682016040523d82523d6000602084013e61467a565b606091505b50805161469a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506141aa565b6060816146e05750506040805180820190915260018152600360fc1b602082015290565b8160005b811561470a57806146f481615af2565b91506147039050600a83615c1a565b91506146e4565b6000816001600160401b038111156147245761472461504c565b6040519080825280601f01601f19166020018201604052801561474e576020820181803683370190505b5090505b84156141aa57614763600183615cdb565b9150614770600a86615e01565b61477b906030615b48565b60f81b81838151811061479057614790615ac6565b60200101906001600160f81b031916908160001a9053506147b2600a86615c1a565b9450614752565b60008183106147c85781612e6b565b5090919050565b805b82546147df90600190615cdb565b81101561487c57826147f2826001615b48565b8154811061480257614802615ac6565b90600052602060002090601091828204019190066002029054906101000a900460010b83828154811061483757614837615ac6565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908360010b61ffff160217905550808061487490615af2565b9150506147d1565b508154829061488d90600190615cdb565b8154811061489d5761489d615ac6565b90600052602060002090601091828204019190066002026101000a81549061ffff0219169055818054806148d3576148d3615e15565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b805b825461491390600190615cdb565b8110156149a55782614926826001615b48565b8154811061493657614936615ac6565b90600052602060002090602091828204019190069054906101000a900460ff1683828154811061496857614968615ac6565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550808061499d90615af2565b915050614905565b50815482906149b690600190615cdb565b815481106149c6576149c6615ac6565b90600052602060002090602091828204019190066101000a81549060ff0219169055818054806149f8576149f8615e15565b60019003818190600052602060002090602091828204019190066101000a81549060ff021916905590555050565b6000546001600160a01b038416614a4f57604051622e076360e81b815260040160405180910390fd5b82614a6d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15614b90575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b5960008784806001019550876145c8565b614b76576040516368d2bf6b60e11b815260040160405180910390fd5b808210614b0e578260005414614b8b57600080fd5b614bd5565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b91575b5060009081556130d29085838684565b50805460008255601f0160209004906000526020600020908101906120a99190614cb3565b50805460008255600f0160109004906000526020600020908101906120a99190614cb3565b828054614c3b90615b0d565b90600052602060002090601f016020900481019282614c5d5760008555614ca3565b82601f10614c7657805160ff1916838001178555614ca3565b82800160010185558215614ca3579182015b82811115614ca3578251825591602001919060010190614c88565b50614caf929150614cb3565b5090565b5b80821115614caf5760008155600101614cb4565b602080825282518282018190526000919060409081850190868401855b82811015614d0d578151805160ff168552860151868501529284019290850190600101614ce5565b5091979650505050505050565b6001600160e01b0319811681146120a957600080fd5b600060208284031215614d4257600080fd5b8135612e6b81614d1a565b600060208284031215614d5f57600080fd5b5035919050565b60005b83811015614d81578181015183820152602001614d69565b838111156130d25750506000910152565b60008151808452614daa816020860160208601614d66565b601f01601f19169290920160200192915050565b602081526000612e6b6020830184614d92565b80356001600160a01b0381168114614de857600080fd5b919050565b60008060408385031215614e0057600080fd5b614e0983614dd1565b946020939093013593505050565b8035600181900b8114614de857600080fd5b803561ffff81168114614de857600080fd5b803560ff81168114614de857600080fd5b600080600080600080600080610100898b031215614e6957600080fd5b88359750614e7960208a01614e17565b9650614e8760408a01614e29565b9550614e9560608a01614dd1565b945060808901359350614eaa60a08a01614e3b565b925060c0890135915060e089013590509295985092959890939650565b600060208284031215614ed957600080fd5b612e6b82614e3b565b80151581146120a957600080fd5b600080600080600060a08688031215614f0857600080fd5b614f1186614e3b565b9450614f1f60208701614e17565b935060408601359250606086013591506080860135614f3d81614ee2565b809150509295509295909350565b600080600060608486031215614f6057600080fd5b614f6984614e29565b9250614f7760208501614e3b565b9150604084013590509250925092565b600080600060608486031215614f9c57600080fd5b614fa584614dd1565b9250614f7760208501614dd1565b600080600080600060a08688031215614fcb57600080fd5b85359450614fdb60208701614e3b565b9350614fe960408701614e3b565b94979396509394606081013594506080013592915050565b60008083601f84011261501357600080fd5b5081356001600160401b0381111561502a57600080fd5b6020830191508360208260051b850101111561504557600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156150845761508461504c565b60405290565b604051608081016001600160401b03811182821017156150845761508461504c565b604051601f8201601f191681016001600160401b03811182821017156150d4576150d461504c565b604052919050565b60006001600160401b038311156150f5576150f561504c565b615108601f8401601f19166020016150ac565b905082815283838301111561511c57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261514457600080fd5b612e6b838335602085016150dc565b60008060008060006080868803121561516b57600080fd5b61517486614dd1565b945061518260208701614dd1565b935060408601356001600160401b038082111561519e57600080fd5b6151aa89838a01615001565b909550935060608801359150808211156151c357600080fd5b506151d088828901615133565b9150509295509295909350565b60006001600160401b038211156151f6576151f661504c565b5060051b60200190565b600082601f83011261521157600080fd5b81356020615226615221836151dd565b6150ac565b82815260069290921b8401810191818101908684111561524557600080fd5b8286015b8481101561528b57604081890312156152625760008081fd5b61526a615062565b61527382614e17565b81528185013585820152835291830191604001615249565b509695505050505050565b600080604083850312156152a957600080fd5b82356001600160401b038111156152bf57600080fd5b6152cb85828601615200565b92505060208301356152dc81614ee2565b809150509250929050565b600082601f8301126152f857600080fd5b81356020615308615221836151dd565b82815260079290921b8401810191818101908684111561532757600080fd5b8286015b8481101561528b57608081890312156153445760008081fd5b61534c61508a565b61535582614e3b565b8152615362858301614e17565b81860152604082810135908201526060808301359082015283529183019160800161532b565b6000806040838503121561539b57600080fd5b82356001600160401b038111156153b157600080fd5b6152cb858286016152e7565b6000602082840312156153cf57600080fd5b612e6b82614e17565b602080825282518282018190526000919060409081850190868401855b82811015614d0d578151805160ff16855286810151600190810b8887015286820151878701526060918201519186019190915260809094019391860191016153f5565b60006020828403121561544a57600080fd5b81356001600160401b0381111561546057600080fd5b8201601f8101841361547157600080fd5b6141aa848235602084016150dc565b6000602080838503121561549357600080fd5b82356001600160401b038111156154a957600080fd5b8301601f810185136154ba57600080fd5b80356154c8615221826151dd565b81815260059190911b820183019083810190878311156154e757600080fd5b928401925b82841015615505578335825292840192908401906154ec565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b6020808252825182820181905260009190848201906040850190845b81811015612b265761556c838551615510565b9284019260609290920191600101615559565b60006020828403121561559157600080fd5b8135612e6b81614ee2565b6000602082840312156155ae57600080fd5b612e6b82614dd1565b602080825282518282018190526000919060409081850190868401855b82811015614d0d5781518051600190810b865290870151878601529385019391860191016155d4565b60006020828403121561560f57600080fd5b612e6b82614e29565b6020808252825182820181905260009190848201906040850190845b81811015612b2657835183529284019291840191600101615634565b6000806000806060858703121561566657600080fd5b61566f85614dd1565b935061567d60208601614dd1565b925060408501356001600160401b0381111561569857600080fd5b6156a487828801615001565b95989497509550505050565b6000806000606084860312156156c557600080fd5b6156ce84614dd1565b95602085013595506040909401359392505050565b6000806000606084860312156156f857600080fd5b61570184614e29565b925061570f60208501614e3b565b915061571d60408501614e17565b90509250925092565b600082601f83011261573757600080fd5b81356020615747615221836151dd565b82815260069290921b8401810191818101908684111561576657600080fd5b8286015b8481101561528b57604081890312156157835760008081fd5b61578b615062565b61579482614e3b565b8152818501358582015283529183019160400161576a565b600080604083850312156157bf57600080fd5b82356001600160401b038111156157d557600080fd5b6152cb85828601615726565b600080604083850312156157f457600080fd5b6157fd83614dd1565b915060208301356152dc81614ee2565b6000806040838503121561582057600080fd5b61582983614dd1565b915061583760208401614e17565b90509250929050565b6000806000806080858703121561585657600080fd5b61585f85614dd1565b935061586d60208601614dd1565b92506040850135915060608501356001600160401b0381111561588f57600080fd5b61589b87828801615133565b91505092959194509250565b6000806000606084860312156158bc57600080fd5b6158c584614e3b565b92506020840135915060408401356158dc81614ee2565b809150509250925092565b600080604083850312156158fa57600080fd5b61590383614e29565b915061583760208401614e3b565b6020808252825182820181905260009190848201906040850190845b81811015612b26578351600190810b845293850193928501920161592d565b60008060006060848603121561596157600080fd5b6158c584614e17565b606081016110ae8284615510565b600080600080600060a0868803121561599057600080fd5b85359450614fdb60208701614dd1565b60008060008060008060c087890312156159b957600080fd5b86356001600160401b03808211156159d057600080fd5b6159dc8a838b016152e7565b9750602089013591506159ee82614ee2565b90955060408801359080821115615a0457600080fd5b615a108a838b01615726565b955060608901359150615a2282614ee2565b90935060808801359080821115615a3857600080fd5b50615a4589828a01615200565b92505060a0870135615a5681614ee2565b809150509295509295509295565b60008060408385031215615a7757600080fd5b615a8083614dd1565b915061583760208401614dd1565b60008060408385031215615aa157600080fd5b61582983614e29565b60008060408385031215615abd57600080fd5b61582983614e3b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415615b0657615b06615adc565b5060010190565b600181811c90821680615b2157607f821691505b60208210811415615b4257634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115615b5b57615b5b615adc565b500190565b6000602080835260008454615b7481615b0d565b80848701526040600180841660008114615b955760018114615ba957615bd7565b60ff19851689840152606089019550615bd7565b896000528660002060005b85811015615bcf5781548b8201860152908301908801615bb4565b8a0184019650505b509398975050505050505050565b6000816000190483118215151615615bff57615bff615adc565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615c2957615c29615c04565b500490565b600060208284031215615c4057600080fd5b8151612e6b81614ee2565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff80831681811415615c9857615c98615adc565b6001019392505050565b600060ff821660ff811415615cb957615cb9615adc565b60010192915050565b600060208284031215615cd457600080fd5b5051919050565b600082821015615ced57615ced615adc565b500390565b6000808554615d0081615b0d565b60018281168015615d185760018114615d2957615d58565b60ff19841687528287019450615d58565b8960005260208060002060005b85811015615d4f5781548a820152908401908201615d36565b50505082870194505b505050508451615d6c818360208901614d66565b8451910190615d7f818360208801614d66565b0195945050505050565b600061ffff821680615d9d57615d9d615adc565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615dda90830184614d92565b9695505050505050565b600060208284031215615df657600080fd5b8151612e6b81614d1a565b600082615e1057615e10615c04565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b0396fc4094856ff1b48192607e2bf265c828f313f5f42f57c6bffe922e7b04164736f6c63430008090033

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

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