ETH Price: $3,711.57 (+3.27%)

Token

Cosmic Cats (COSMIC)
 

Overview

Max Total Supply

8,888 COSMIC

Holders

3,593

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
tooltimemax.eth
Balance
1 COSMIC
0x6Aed7c73F8da5bFc0eBf641b2D283F96EE141832
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

8,888 ✶ Cosmic Cats ✶ are setting their course for the $ETH blockchain! Merge Cosmic Cats with other popular NFT projects!

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CosmicCats

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./ERC721A.sol";
import "./CosmicVoucherSigner.sol";
import "./CosmicVoucher.sol";

// Cosmic Cats v1.3

contract CosmicCats is ERC721A, Ownable, CosmicVoucherSigner {  
    using Address for address;
    using SafeMath for uint256;

    // Sale Controls
    bool public presaleActive = false;
    bool public reducedPresaleActive = false;
    bool public saleActive = false;

    // Mint Price
    uint256 public price = 0.04 ether;
    uint256 public reducedPrice = 0.03 ether;

    uint public MAX_SUPPLY = 8888;
    uint public PUBLIC_SUPPLY = 8688;
    uint public GIFT_SUPPLY = 200;  // 200 Reserved For Collabs, Team & Giveaways

    // Create New TokenURI
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }

    // Team Addresses
    address public a1 = 0x65e682bDC103884c3Cb3e82288a9F65a8d80CA54; // Justin
    address public a2 = 0xC033fCAa2Eb544A9873A8BF94C353E7620d74f0f; // Dontblink
    address public a3 = 0x84B304015790df208B401DEf59ADd3685848A871; // Skelligore
    
    // Community Multisig Wallet Address
    address public a4 = 0xBF600B4339F3dBe86f70ad1B171FD4Da2D2BA841; // Community Wallet

    // Presale Address List
    mapping (uint => uint) public claimedVouchers;

    // Base Link That Leads To Metadata
    string public baseTokenURI;

    // Contract Construction
    constructor ( 
    string memory newBaseURI, 
    address voucherSigner,
    uint256 maxBatchSize_,
    uint256 collectionSize_ 
    ) 
    ERC721A ("Cosmic Cats", "COSMIC", maxBatchSize_, collectionSize_) 
    CosmicVoucherSigner(voucherSigner) {
        setBaseURI(newBaseURI);
    }

    // ================ Mint Functions ================ //

    // Minting Function
    function mintCosmicCats(uint256 _amount) external payable {
        uint256 supply = totalSupply();
        require( saleActive, "Public Sale Not Active" );
        require( _amount > 0 && _amount <= maxBatchSize, "Can't Mint More Than 10" );
        require( supply + _amount <= PUBLIC_SUPPLY, "Not Enough Supply" );
        require( msg.value == price * _amount, "Incorrect Amount Of ETH Sent" );
        _safeMint( msg.sender, _amount);
    }

    // Presale Minting
    function mintPresale(uint256 _amount, CosmicVoucher.Voucher calldata v) public payable {
        uint256 supply = totalSupply();
        require(presaleActive, "Private Sale Not Active");
        require(claimedVouchers[v.voucherId] + _amount <= 3, "Max 3 During Presale");
        require(_amount <= 3, "Can't Mint More Than 3");
        require(v.to == msg.sender, "You Are NOT Whitelisted");
        require(CosmicVoucher.validateVoucher(v, getVoucherSigner()), "Invalid Voucher");
        require( supply + _amount <= PUBLIC_SUPPLY, "Not Enough Supply" );
        require( msg.value == price * _amount,   "Incorrect Amount Of ETH Sent" );
        claimedVouchers[v.voucherId] += _amount;
        _safeMint( msg.sender, _amount);
    }

    // Presale Reduced Minting
    function mintReducedPresale(uint256 _amount, CosmicVoucher.Voucher calldata v) public payable {
        uint256 supply = totalSupply();
        require(reducedPresaleActive, "Reduced Private Sale Not Active");
        require(claimedVouchers[v.voucherId] + _amount <= 1, "Max 1 During Reduced Presale");
        require(v.voucherId >= 6000, "Not Eligible For Reduced Mint");
        require(_amount <= 1, "Can't Mint More Than 1");
        require(v.to == msg.sender, "You Are NOT Whitelisted");
        require(CosmicVoucher.validateVoucher(v, getVoucherSigner()), "Invalid Voucher");
        require( supply + _amount <= PUBLIC_SUPPLY, "Not Enough Supply" );
        require( msg.value == reducedPrice * _amount,   "Incorrect Amount Of ETH Sent" );
        claimedVouchers[v.voucherId] += _amount;
        _safeMint( msg.sender, _amount);
    }

    // Validate Voucher
    function validateVoucher(CosmicVoucher.Voucher calldata v) external view returns (bool) {
        return CosmicVoucher.validateVoucher(v, getVoucherSigner());
    }

    // ================ Only Owner Functions ================ //

    // Gift Function - Collabs & Giveaways
    function gift(address _to, uint256 _amount) external onlyOwner() {
        uint256 supply = totalSupply();
        require( supply + _amount <= MAX_SUPPLY, "Not Enough Supply" );
        _safeMint( _to, _amount );
    }

     // Incase ETH Price Rises Rapidly
    function setPrice(uint256 newPrice) public onlyOwner() {
        price = newPrice;
    }

    // Set New baseURI
    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }

    // ================ Sale Controls ================ //

    // Pre Sale On/Off
    function setPresaleActive(bool val) public onlyOwner {
        presaleActive = val;
    }

    // Reduced Pre Sale On/Off
    function setReducedPresaleActive(bool val) public onlyOwner {
        reducedPresaleActive = val;
    }

    // Public Sale On/Off
    function setSaleActive(bool val) public onlyOwner {
        saleActive = val;
    }

    // ================ Withdraw Functions ================ //

    // Team Withdraw Function
    function withdrawTeam() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);
        _widthdraw(a1, balance.mul(25).div(100)); // Justin
        _widthdraw(a2, balance.mul(25).div(100)); // Dontblink
        _widthdraw(a3, balance.mul(25).div(100)); // Skelligore
        _widthdraw(a4, address(this).balance); // Community Wallet
    }

    // Private Function -- Only Accesible By Contract
    function _widthdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    // Emergency Withdraw Function -- Sends to Multisig Wallet
    function emergencyWithdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        payable(a4).transfer(balance);
    }

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  uint256 private currentIndex = 0;

  uint256 internal immutable collectionSize;
  uint256 internal immutable maxBatchSize;

  // 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) private _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;

  /**
   * @dev
   * `maxBatchSize` refers to how much a minter can mint at a time.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

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

  /**
   * @dev See {IERC721Enumerable-tokenByIndex}.
   */
  function tokenByIndex(uint256 index) public view override returns (uint256) {
    require(index < totalSupply(), "ERC721A: global index out of bounds");
    return index;
  }

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i < numMintedSoFar; i++) {
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

  /**
   * @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 ||
      interfaceId == type(IERC721Enumerable).interfaceId ||
      super.supportsInterface(interfaceId);
  }

  /**
   * @dev See {IERC721-balanceOf}.
   */
  function balanceOf(address owner) public view override returns (uint256) {
    require(owner != address(0), "ERC721A: balance query for the zero address");
    return uint256(_addressData[owner].balance);
  }

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

  /**
   * @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)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

    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);
    require(to != owner, "ERC721A: approval to current owner");

    require(
      _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
      "ERC721A: approve caller is not owner nor approved for all"
    );

    _approve(to, tokenId, owner);
  }

  /**
   * @dev See {IERC721-getApproved}.
   */
  function getApproved(uint256 tokenId) public view override returns (address) {
    require(_exists(tokenId), "ERC721A: approved query for nonexistent token");

    return _tokenApprovals[tokenId];
  }

  /**
   * @dev See {IERC721-setApprovalForAll}.
   */
  function setApprovalForAll(address operator, bool approved) public override {
    require(operator != _msgSender(), "ERC721A: approve to caller");

    _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 override {
    _transfer(from, to, tokenId);
  }

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

  /**
   * @dev See {IERC721-safeTransferFrom}.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public override {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

  /**
   * @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 tokenId < currentIndex;
  }

  function _safeMint(address to, uint256 quantity) internal {
    _safeMint(to, quantity, "");
  }

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

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

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

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

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

    // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
    // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
    uint256 nextTokenId = tokenId + 1;
    if (_ownerships[nextTokenId].addr == address(0)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

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

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

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > collectionSize - 1) {
      endIndex = collectionSize - 1;
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

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

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   *
   * 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`.
   */
  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.
   *
   * 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` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

File 6 of 15 : CosmicVoucherSigner.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

abstract contract CosmicVoucherSigner is Ownable {

  address private _voucherSigner;

  event SetVoucherSigner(address prevVoucherSigner, address newVoucherSigner);

  function setVoucherSigner(address newVoucherSigner) public onlyOwner {
    require(newVoucherSigner != address(0), "Setting voucher signer to 0 address");
    _voucherSigner = newVoucherSigner;
    emit SetVoucherSigner(_voucherSigner, newVoucherSigner);
  }

  function getVoucherSigner() public view returns (address) {
    return _voucherSigner;
  }

  constructor(address voucherSigner) {
    setVoucherSigner(voucherSigner);
  }

}

File 7 of 15 : CosmicVoucher.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library CosmicVoucher {

  struct Sig {
    bytes32 r;
    bytes32 s;
    uint8 v;
  }

  struct Voucher {
    uint voucherId;
    address to;
    Sig sig;
  }

  function validateVoucher(Voucher calldata v, address signer)
    internal pure returns (bool)
  {
    bytes32 h1 = keccak256(abi.encodePacked(v.voucherId, v.to));
    bytes32 h2 = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", h1));
    return ecrecover(h2, v.sig.v, v.sig.r, v.sig.s) == signer;
  }

}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"address","name":"voucherSigner","type":"address"},{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"uint256","name":"collectionSize_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"prevVoucherSigner","type":"address"},{"indexed":false,"internalType":"address","name":"newVoucherSigner","type":"address"}],"name":"SetVoucherSigner","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":"GIFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"a4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedVouchers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVoucherSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintCosmicCats","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"components":[{"internalType":"uint256","name":"voucherId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct CosmicVoucher.Sig","name":"sig","type":"tuple"}],"internalType":"struct CosmicVoucher.Voucher","name":"v","type":"tuple"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"components":[{"internalType":"uint256","name":"voucherId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct CosmicVoucher.Sig","name":"sig","type":"tuple"}],"internalType":"struct CosmicVoucher.Voucher","name":"v","type":"tuple"}],"name":"mintReducedPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reducedPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reducedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setReducedPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVoucherSigner","type":"address"}],"name":"setVoucherSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"voucherId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct CosmicVoucher.Sig","name":"sig","type":"tuple"}],"internalType":"struct CosmicVoucher.Voucher","name":"v","type":"tuple"}],"name":"validateVoucher","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawTeam","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000805560006007556000600960146101000a81548160ff0219169083151502179055506000600960156101000a81548160ff0219169083151502179055506000600960166101000a81548160ff021916908315150217905550668e1bc9bf040000600a55666a94d74f430000600b556122b8600c556121f0600d5560c8600e557365e682bdc103884c3cb3e82288a9f65a8d80ca54600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c033fcaa2eb544a9873a8bf94c353e7620d74f0f601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507384b304015790df208b401def59add3685848a871601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073bf600b4339f3dbe86f70ad1b171fd4da2d2ba841601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620001e657600080fd5b50604051620067ff380380620067ff83398181016040528101906200020c919062000830565b826040518060400160405280600b81526020017f436f736d696320436174730000000000000000000000000000000000000000008152506040518060400160405280600681526020017f434f534d49430000000000000000000000000000000000000000000000000000815250848460008111620002c1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002b89062000ad3565b60405180910390fd5b6000821162000307576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002fe9062000a6d565b60405180910390fd5b83600190805190602001906200031f929190620006e0565b50826002908051906020019062000338929190620006e0565b508160a081815250508060808181525050505050506200036d620003616200039a60201b60201c565b620003a260201b60201c565b6200037e816200046860201b60201c565b5062000390846200060b60201b60201c565b5050505062000ca9565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004786200039a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200049e620006b660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620004f7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004ee9062000a8f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200056a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005619062000ab1565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6c61302b47e872d08552b17b5c3219414ee4a6e333af5955e372540f8dcc42bb600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826040516200060092919062000a40565b60405180910390a150565b6200061b6200039a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000641620006b660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200069a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006919062000a8f565b60405180910390fd5b8060149080519060200190620006b2929190620006e0565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620006ee9062000be1565b90600052602060002090601f0160209004810192826200071257600085556200075e565b82601f106200072d57805160ff19168380011785556200075e565b828001600101855582156200075e579182015b828111156200075d57825182559160200191906001019062000740565b5b5090506200076d919062000771565b5090565b5b808211156200078c57600081600090555060010162000772565b5090565b6000620007a7620007a18462000b29565b62000af5565b905082815260208101848484011115620007c057600080fd5b620007cd84828562000bab565b509392505050565b600081519050620007e68162000c75565b92915050565b600082601f830112620007fe57600080fd5b81516200081084826020860162000790565b91505092915050565b6000815190506200082a8162000c8f565b92915050565b600080600080608085870312156200084757600080fd5b600085015167ffffffffffffffff8111156200086257600080fd5b6200087087828801620007ec565b94505060206200088387828801620007d5565b9350506040620008968782880162000819565b9250506060620008a98782880162000819565b91505092959194509250565b620008c08162000b6d565b82525050565b6000620008d560278362000b5c565b91507f455243373231413a206d61782062617463682073697a65206d7573742062652060008301527f6e6f6e7a65726f000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006200093d60208362000b5c565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006200097f60238362000b5c565b91507f53657474696e6720766f7563686572207369676e657220746f2030206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000620009e7602e8362000b5c565b91507f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060008301527f6e6f6e7a65726f20737570706c790000000000000000000000000000000000006020830152604082019050919050565b600060408201905062000a576000830185620008b5565b62000a666020830184620008b5565b9392505050565b6000602082019050818103600083015262000a8881620008c6565b9050919050565b6000602082019050818103600083015262000aaa816200092e565b9050919050565b6000602082019050818103600083015262000acc8162000970565b9050919050565b6000602082019050818103600083015262000aee81620009d8565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171562000b1f5762000b1e62000c46565b5b8060405250919050565b600067ffffffffffffffff82111562000b475762000b4662000c46565b5b601f19601f8301169050602081019050919050565b600082825260208201905092915050565b600062000b7a8262000b81565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000bcb57808201518184015260208101905062000bae565b8381111562000bdb576000848401525b50505050565b6000600282049050600182168062000bfa57607f821691505b6020821081141562000c115762000c1062000c17565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000c808162000b6d565b811462000c8c57600080fd5b50565b62000c9a8162000ba1565b811462000ca657600080fd5b50565b60805160a051615b1e62000ce1600039600081816112770152818161309f015281816130c80152613888015260005050615b1e6000f3fe6080604052600436106102935760003560e01c8063715018a61161015a578063b88d4fde116100c1578063db2e21bc1161007a578063db2e21bc146109c9578063e57c58e5146109e0578063e985e9c514610a0b578063ee54abf214610a48578063f2fde38b14610a85578063f74ea41814610aae57610293565b8063b88d4fde146108cd578063bb51f32d146108f6578063c87b56dd1461090d578063cbce4c971461094a578063d547cfb714610973578063d7224ba01461099e57610293565b80639426eef8116101135780639426eef8146107cf57806395d89b41146107fa578063969e9d0c14610825578063a035b1fe14610850578063a22cb4651461087b578063af6e40d0146108a457610293565b8063715018a6146106e55780638342083a146106fc578063841718a6146107275780638da5cb5b1461075057806391b7f5ed1461077b578063929440bd146107a457610293565b80632a5cb760116101fe5780634f6ccce7116101b75780634f6ccce7146105af57806353135ca0146105ec57806355f804b3146106175780636352211e1461064057806368428a1b1461067d57806370a08231146106a857610293565b80632a5cb760146104bd5780632f745c59146104d957806332cb6b0c1461051657806337819e3f146105415780633f8121a21461055d57806342842e0e1461058657610293565b8063119552a111610250578063119552a1146103ab57806318160ddd146103d657806318623e121461040157806318cc50c81461042c5780631ea639011461046957806323b872dd1461049457610293565b806301ffc9a71461029857806306fdde03146102d5578063081812fc14610300578063088ce04f1461033d578063095ea7b3146103665780630aea4a331461038f575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba91906140db565b610ad9565b6040516102cc9190615039565b60405180910390f35b3480156102e157600080fd5b506102ea610c23565b6040516102f79190615099565b60405180910390f35b34801561030c57600080fd5b5061032760048036038101906103229190614197565b610cb5565b6040516103349190614fa9565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f91906140b2565b610d3a565b005b34801561037257600080fd5b5061038d60048036038101906103889190614076565b610dd3565b005b6103a960048036038101906103a491906141c0565b610eec565b005b3480156103b757600080fd5b506103c061119d565b6040516103cd9190614fa9565b60405180910390f35b3480156103e257600080fd5b506103eb6111c3565b6040516103f8919061551b565b60405180910390f35b34801561040d57600080fd5b506104166111cc565b6040516104239190615039565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e919061416e565b6111df565b6040516104609190615039565b60405180910390f35b34801561047557600080fd5b5061047e6111f9565b60405161048b919061551b565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b69190613f70565b6111ff565b005b6104d760048036038101906104d29190614197565b61120f565b005b3480156104e557600080fd5b5061050060048036038101906104fb9190614076565b611386565b60405161050d919061551b565b60405180910390f35b34801561052257600080fd5b5061052b611584565b604051610538919061551b565b60405180910390f35b61055b600480360381019061055691906141c0565b61158a565b005b34801561056957600080fd5b50610584600480360381019061057f91906140b2565b611884565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613f70565b61191d565b005b3480156105bb57600080fd5b506105d660048036038101906105d19190614197565b61193d565b6040516105e3919061551b565b60405180910390f35b3480156105f857600080fd5b50610601611990565b60405161060e9190615039565b60405180910390f35b34801561062357600080fd5b5061063e6004803603810190610639919061412d565b6119a3565b005b34801561064c57600080fd5b5061066760048036038101906106629190614197565b611a39565b6040516106749190614fa9565b60405180910390f35b34801561068957600080fd5b50610692611a4f565b60405161069f9190615039565b60405180910390f35b3480156106b457600080fd5b506106cf60048036038101906106ca9190613f0b565b611a62565b6040516106dc919061551b565b60405180910390f35b3480156106f157600080fd5b506106fa611b4b565b005b34801561070857600080fd5b50610711611bd3565b60405161071e919061551b565b60405180910390f35b34801561073357600080fd5b5061074e600480360381019061074991906140b2565b611bd9565b005b34801561075c57600080fd5b50610765611c72565b6040516107729190614fa9565b60405180910390f35b34801561078757600080fd5b506107a2600480360381019061079d9190614197565b611c9c565b005b3480156107b057600080fd5b506107b9611d22565b6040516107c6919061551b565b60405180910390f35b3480156107db57600080fd5b506107e4611d28565b6040516107f19190614fa9565b60405180910390f35b34801561080657600080fd5b5061080f611d4e565b60405161081c9190615099565b60405180910390f35b34801561083157600080fd5b5061083a611de0565b6040516108479190614fa9565b60405180910390f35b34801561085c57600080fd5b50610865611e06565b604051610872919061551b565b60405180910390f35b34801561088757600080fd5b506108a2600480360381019061089d919061403a565b611e0c565b005b3480156108b057600080fd5b506108cb60048036038101906108c69190613f0b565b611f8d565b005b3480156108d957600080fd5b506108f460048036038101906108ef9190613fbf565b612118565b005b34801561090257600080fd5b5061090b612174565b005b34801561091957600080fd5b50610934600480360381019061092f9190614197565b612327565b6040516109419190615099565b60405180910390f35b34801561095657600080fd5b50610971600480360381019061096c9190614076565b6123ce565b005b34801561097f57600080fd5b506109886124b5565b6040516109959190615099565b60405180910390f35b3480156109aa57600080fd5b506109b3612543565b6040516109c0919061551b565b60405180910390f35b3480156109d557600080fd5b506109de612549565b005b3480156109ec57600080fd5b506109f5612636565b604051610a029190614fa9565b60405180910390f35b348015610a1757600080fd5b50610a326004803603810190610a2d9190613f34565b612660565b604051610a3f9190615039565b60405180910390f35b348015610a5457600080fd5b50610a6f6004803603810190610a6a9190614197565b6126f4565b604051610a7c919061551b565b60405180910390f35b348015610a9157600080fd5b50610aac6004803603810190610aa79190613f0b565b61270c565b005b348015610aba57600080fd5b50610ac3612804565b604051610ad09190614fa9565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ba457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c0c57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c1c5750610c1b8261282a565b5b9050919050565b606060018054610c32906158b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5e906158b7565b8015610cab5780601f10610c8057610100808354040283529160200191610cab565b820191906000526020600020905b815481529060010190602001808311610c8e57829003601f168201915b5050505050905090565b6000610cc082612894565b610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf6906154bb565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610d426128a1565b73ffffffffffffffffffffffffffffffffffffffff16610d60611c72565b73ffffffffffffffffffffffffffffffffffffffff1614610db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dad906152db565b60405180910390fd5b80600960156101000a81548160ff02191690831515021790555050565b6000610dde82611a39565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e46906153bb565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e6e6128a1565b73ffffffffffffffffffffffffffffffffffffffff161480610e9d5750610e9c81610e976128a1565b612660565b5b610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed3906151fb565b60405180910390fd5b610ee78383836128a9565b505050565b6000610ef66111c3565b9050600960149054906101000a900460ff16610f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3e906152fb565b60405180910390fd5b600383601360008560000135815260200190815260200160002054610f6c919061565b565b1115610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa49061539b565b60405180910390fd5b6003831115610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe89061519b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1682602001602081019061101b9190613f0b565b73ffffffffffffffffffffffffffffffffffffffff1614611071576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611068906152bb565b60405180910390fd5b6110828261107d612636565b61295b565b6110c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b8906151db565b60405180910390fd5b600d5483826110d0919061565b565b1115611111576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111089061525b565b60405180910390fd5b82600a5461111f91906156e2565b3414611160576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111579061513b565b60405180910390fd5b8260136000846000013581526020019081526020016000206000828254611187919061565b565b925050819055506111983384612a74565b505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054905090565b600960159054906101000a900460ff1681565b60006111f2826111ed612636565b61295b565b9050919050565b600e5481565b61120a838383612a92565b505050565b60006112196111c3565b9050600960169054906101000a900460ff1661126a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112619061521b565b60405180910390fd5b60008211801561129a57507f00000000000000000000000000000000000000000000000000000000000000008211155b6112d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d0906153db565b60405180910390fd5b600d5482826112e8919061565b565b1115611329576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113209061525b565b60405180910390fd5b81600a5461133791906156e2565b3414611378576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136f9061513b565b60405180910390fd5b6113823383612a74565b5050565b600061139183611a62565b82106113d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c9906150db565b60405180910390fd5b60006113dc6111c3565b905060008060005b83811015611542576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146114d657806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561152e578684141561151f57819550505050505061157e565b838061152a906158e9565b9450505b50808061153a906158e9565b9150506113e4565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115759061547b565b60405180910390fd5b92915050565b600c5481565b60006115946111c3565b9050600960159054906101000a900460ff166115e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dc9061529b565b60405180910390fd5b60018360136000856000013581526020019081526020016000205461160a919061565b565b111561164b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611642906150bb565b60405180910390fd5b61177082600001351015611694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168b906154fb565b60405180910390fd5b60018311156116d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cf906151bb565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168260200160208101906117029190613f0b565b73ffffffffffffffffffffffffffffffffffffffff1614611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f906152bb565b60405180910390fd5b61176982611764612636565b61295b565b6117a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179f906151db565b60405180910390fd5b600d5483826117b7919061565b565b11156117f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ef9061525b565b60405180910390fd5b82600b5461180691906156e2565b3414611847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183e9061513b565b60405180910390fd5b826013600084600001358152602001908152602001600020600082825461186e919061565b565b9250508190555061187f3384612a74565b505050565b61188c6128a1565b73ffffffffffffffffffffffffffffffffffffffff166118aa611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f7906152db565b60405180910390fd5b80600960146101000a81548160ff02191690831515021790555050565b61193883838360405180602001604052806000815250612118565b505050565b60006119476111c3565b8210611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197f9061515b565b60405180910390fd5b819050919050565b600960149054906101000a900460ff1681565b6119ab6128a1565b73ffffffffffffffffffffffffffffffffffffffff166119c9611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a16906152db565b60405180910390fd5b8060149080519060200190611a35929190613cc5565b5050565b6000611a448261304b565b600001519050919050565b600960169054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca9061523b565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611b536128a1565b73ffffffffffffffffffffffffffffffffffffffff16611b71611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbe906152db565b60405180910390fd5b611bd1600061324e565b565b600d5481565b611be16128a1565b73ffffffffffffffffffffffffffffffffffffffff16611bff611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4c906152db565b60405180910390fd5b80600960166101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611ca46128a1565b73ffffffffffffffffffffffffffffffffffffffff16611cc2611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0f906152db565b60405180910390fd5b80600a8190555050565b600b5481565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060028054611d5d906158b7565b80601f0160208091040260200160405190810160405280929190818152602001828054611d89906158b7565b8015611dd65780601f10611dab57610100808354040283529160200191611dd6565b820191906000526020600020905b815481529060010190602001808311611db957829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b611e146128a1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e799061533b565b60405180910390fd5b8060066000611e8f6128a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f3c6128a1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f819190615039565b60405180910390a35050565b611f956128a1565b73ffffffffffffffffffffffffffffffffffffffff16611fb3611c72565b73ffffffffffffffffffffffffffffffffffffffff1614612009576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612000906152db565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612079576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120709061537b565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6c61302b47e872d08552b17b5c3219414ee4a6e333af5955e372540f8dcc42bb600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260405161210d929190614fc4565b60405180910390a150565b612123848484612a92565b61212f84848484613314565b61216e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121659061541b565b60405180910390fd5b50505050565b61217c6128a1565b73ffffffffffffffffffffffffffffffffffffffff1661219a611c72565b73ffffffffffffffffffffffffffffffffffffffff16146121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e7906152db565b60405180910390fd5b60004790506000811161220257600080fd5b612254600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661224f60646122416019866134ab90919063ffffffff16565b6134c190919063ffffffff16565b6134d7565b6122a6601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166122a160646122936019866134ab90919063ffffffff16565b6134c190919063ffffffff16565b6134d7565b6122f8601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166122f360646122e56019866134ab90919063ffffffff16565b6134c190919063ffffffff16565b6134d7565b612324601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16476134d7565b50565b606061233282612894565b612371576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123689061531b565b60405180910390fd5b600061237b613588565b9050600081511161239b57604051806020016040528060008152506123c6565b806123a58461361a565b6040516020016123b6929190614f1e565b6040516020818303038152906040525b915050919050565b6123d66128a1565b73ffffffffffffffffffffffffffffffffffffffff166123f4611c72565b73ffffffffffffffffffffffffffffffffffffffff161461244a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612441906152db565b60405180910390fd5b60006124546111c3565b9050600c548282612465919061565b565b11156124a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249d9061525b565b60405180910390fd5b6124b08383612a74565b505050565b601480546124c2906158b7565b80601f01602080910402602001604051908101604052809291908181526020018280546124ee906158b7565b801561253b5780601f106125105761010080835404028352916020019161253b565b820191906000526020600020905b81548152906001019060200180831161251e57829003601f168201915b505050505081565b60075481565b6125516128a1565b73ffffffffffffffffffffffffffffffffffffffff1661256f611c72565b73ffffffffffffffffffffffffffffffffffffffff16146125c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125bc906152db565b60405180910390fd5b6000479050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612632573d6000803e3d6000fd5b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60136020528060005260406000206000915090505481565b6127146128a1565b73ffffffffffffffffffffffffffffffffffffffff16612732611c72565b73ffffffffffffffffffffffffffffffffffffffff1614612788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277f906152db565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ef906150fb565b60405180910390fd5b6128018161324e565b50565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008083600001358460200160208101906129769190613f0b565b604051602001612987929190614f7d565b6040516020818303038152906040528051906020012090506000816040516020016129b29190614f42565b6040516020818303038152906040528051906020012090508373ffffffffffffffffffffffffffffffffffffffff166001828760400160400160208101906129fa91906141fc565b8860400160000135896040016020013560405160008152602001604052604051612a279493929190615054565b6020604051602081039080840390855afa158015612a49573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16149250505092915050565b612a8e8282604051806020016040528060008152506137c7565b5050565b6000612a9d8261304b565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612ac46128a1565b73ffffffffffffffffffffffffffffffffffffffff161480612b205750612ae96128a1565b73ffffffffffffffffffffffffffffffffffffffff16612b0884610cb5565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b3c5750612b3b8260000151612b366128a1565b612660565b5b905080612b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b759061535b565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be79061527b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c579061517b565b60405180910390fd5b612c6d8585856001613ca6565b612c7d60008484600001516128a9565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612ceb919061573c565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612d8f9190615615565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612e95919061565b565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612fdb57612f0b81612894565b15612fda576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130438686866001613cac565b505050505050565b613053613d4b565b61305c82612894565b61309b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130929061511b565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000083106130ff5760017f0000000000000000000000000000000000000000000000000000000000000000846130f29190615770565b6130fc919061565b565b90505b60008390505b81811061320d576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131f957809350505050613249565b5080806132059061588d565b915050613105565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132409061549b565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006133358473ffffffffffffffffffffffffffffffffffffffff16613cb2565b1561349e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261335e6128a1565b8786866040518563ffffffff1660e01b81526004016133809493929190614fed565b602060405180830381600087803b15801561339a57600080fd5b505af19250505080156133cb57506040513d601f19601f820116820180604052508101906133c89190614104565b60015b61344e573d80600081146133fb576040519150601f19603f3d011682016040523d82523d6000602084013e613400565b606091505b50600081511415613446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343d9061541b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134a3565b600190505b949350505050565b600081836134b991906156e2565b905092915050565b600081836134cf91906156b1565b905092915050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516134fd90614f68565b60006040518083038185875af1925050503d806000811461353a576040519150601f19603f3d011682016040523d82523d6000602084013e61353f565b606091505b5050905080613583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357a906153fb565b60405180910390fd5b505050565b606060148054613597906158b7565b80601f01602080910402602001604051908101604052809291908181526020018280546135c3906158b7565b80156136105780601f106135e557610100808354040283529160200191613610565b820191906000526020600020905b8154815290600101906020018083116135f357829003601f168201915b5050505050905090565b60606000821415613662576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506137c2565b600082905060005b6000821461369457808061367d906158e9565b915050600a8261368d91906156b1565b915061366a565b60008167ffffffffffffffff8111156136d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156137085781602001600182028036833780820191505090505b5090505b600085146137bb576001826137219190615770565b9150600a85613730919061596a565b603061373c919061565b565b60f81b818381518110613778577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856137b491906156b1565b945061370c565b8093505050505b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561383d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138349061545b565b60405180910390fd5b61384681612894565b15613886576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161387d9061543b565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008311156138e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e0906154db565b60405180910390fd5b6138f66000858386613ca6565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516139f39190615615565b6fffffffffffffffffffffffffffffffff168152602001858360200151613a1a9190615615565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613c8957818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c296000888488613314565b613c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5f9061541b565b60405180910390fd5b8180613c73906158e9565b9250508080613c81906158e9565b915050613bb8565b5080600081905550613c9e6000878588613cac565b505050505050565b50505050565b50505050565b600080823b905060008111915050919050565b828054613cd1906158b7565b90600052602060002090601f016020900481019282613cf35760008555613d3a565b82601f10613d0c57805160ff1916838001178555613d3a565b82800160010185558215613d3a579182015b82811115613d39578251825591602001919060010190613d1e565b5b509050613d479190613d85565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613d9e576000816000905550600101613d86565b5090565b6000613db5613db084615567565b615536565b905082815260208101848484011115613dcd57600080fd5b613dd884828561584b565b509392505050565b6000613df3613dee84615597565b615536565b905082815260208101848484011115613e0b57600080fd5b613e1684828561584b565b509392505050565b600081359050613e2d81615a75565b92915050565b600081359050613e4281615a8c565b92915050565b600081359050613e5781615aa3565b92915050565b600081519050613e6c81615aa3565b92915050565b600082601f830112613e8357600080fd5b8135613e93848260208601613da2565b91505092915050565b600082601f830112613ead57600080fd5b8135613ebd848260208601613de0565b91505092915050565b600060a08284031215613ed857600080fd5b81905092915050565b600081359050613ef081615aba565b92915050565b600081359050613f0581615ad1565b92915050565b600060208284031215613f1d57600080fd5b6000613f2b84828501613e1e565b91505092915050565b60008060408385031215613f4757600080fd5b6000613f5585828601613e1e565b9250506020613f6685828601613e1e565b9150509250929050565b600080600060608486031215613f8557600080fd5b6000613f9386828701613e1e565b9350506020613fa486828701613e1e565b9250506040613fb586828701613ee1565b9150509250925092565b60008060008060808587031215613fd557600080fd5b6000613fe387828801613e1e565b9450506020613ff487828801613e1e565b935050604061400587828801613ee1565b925050606085013567ffffffffffffffff81111561402257600080fd5b61402e87828801613e72565b91505092959194509250565b6000806040838503121561404d57600080fd5b600061405b85828601613e1e565b925050602061406c85828601613e33565b9150509250929050565b6000806040838503121561408957600080fd5b600061409785828601613e1e565b92505060206140a885828601613ee1565b9150509250929050565b6000602082840312156140c457600080fd5b60006140d284828501613e33565b91505092915050565b6000602082840312156140ed57600080fd5b60006140fb84828501613e48565b91505092915050565b60006020828403121561411657600080fd5b600061412484828501613e5d565b91505092915050565b60006020828403121561413f57600080fd5b600082013567ffffffffffffffff81111561415957600080fd5b61416584828501613e9c565b91505092915050565b600060a0828403121561418057600080fd5b600061418e84828501613ec6565b91505092915050565b6000602082840312156141a957600080fd5b60006141b784828501613ee1565b91505092915050565b60008060c083850312156141d357600080fd5b60006141e185828601613ee1565b92505060206141f285828601613ec6565b9150509250929050565b60006020828403121561420e57600080fd5b600061421c84828501613ef6565b91505092915050565b61422e816157a4565b82525050565b614245614240826157a4565b615932565b82525050565b614254816157b6565b82525050565b614263816157c2565b82525050565b61427a614275826157c2565b615944565b82525050565b600061428b826155c7565b61429581856155dd565b93506142a581856020860161585a565b6142ae81615a57565b840191505092915050565b60006142c4826155d2565b6142ce81856155f9565b93506142de81856020860161585a565b6142e781615a57565b840191505092915050565b60006142fd826155d2565b614307818561560a565b935061431781856020860161585a565b80840191505092915050565b6000614330601c836155f9565b91507f4d6178203120447572696e6720526564756365642050726573616c65000000006000830152602082019050919050565b60006143706022836155f9565b91507f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006143d6601c8361560a565b91507f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000830152601c82019050919050565b60006144166026836155f9565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061447c602a836155f9565b91507f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008301527f74656e7420746f6b656e000000000000000000000000000000000000000000006020830152604082019050919050565b60006144e2601c836155f9565b91507f496e636f727265637420416d6f756e74204f66204554482053656e74000000006000830152602082019050919050565b60006145226023836155f9565b91507f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008301527f6e647300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145886025836155f9565b91507f455243373231413a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145ee6016836155f9565b91507f43616e2774204d696e74204d6f7265205468616e2033000000000000000000006000830152602082019050919050565b600061462e6016836155f9565b91507f43616e2774204d696e74204d6f7265205468616e2031000000000000000000006000830152602082019050919050565b600061466e600f836155f9565b91507f496e76616c696420566f756368657200000000000000000000000000000000006000830152602082019050919050565b60006146ae6039836155f9565b91507f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006020830152604082019050919050565b60006147146016836155f9565b91507f5075626c69632053616c65204e6f7420416374697665000000000000000000006000830152602082019050919050565b6000614754602b836155f9565b91507f455243373231413a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b60006147ba6011836155f9565b91507f4e6f7420456e6f75676820537570706c790000000000000000000000000000006000830152602082019050919050565b60006147fa6026836155f9565b91507f455243373231413a207472616e736665722066726f6d20696e636f727265637460008301527f206f776e657200000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614860601f836155f9565b91507f5265647563656420507269766174652053616c65204e6f7420416374697665006000830152602082019050919050565b60006148a06017836155f9565b91507f596f7520417265204e4f542057686974656c69737465640000000000000000006000830152602082019050919050565b60006148e06020836155f9565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006149206017836155f9565b91507f507269766174652053616c65204e6f74204163746976650000000000000000006000830152602082019050919050565b6000614960602f836155f9565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006149c6601a836155f9565b91507f455243373231413a20617070726f766520746f2063616c6c65720000000000006000830152602082019050919050565b6000614a066032836155f9565b91507f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000614a6c6023836155f9565b91507f53657474696e6720766f7563686572207369676e657220746f2030206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ad26014836155f9565b91507f4d6178203320447572696e672050726573616c650000000000000000000000006000830152602082019050919050565b6000614b126022836155f9565b91507f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008301527f65720000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b786017836155f9565b91507f43616e2774204d696e74204d6f7265205468616e2031300000000000000000006000830152602082019050919050565b6000614bb86000836155ee565b9150600082019050919050565b6000614bd26010836155f9565b91507f5472616e73666572206661696c65642e000000000000000000000000000000006000830152602082019050919050565b6000614c126033836155f9565b91507f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008301527f6563656976657220696d706c656d656e746572000000000000000000000000006020830152604082019050919050565b6000614c78601d836155f9565b91507f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006000830152602082019050919050565b6000614cb86021836155f9565b91507f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d1e602e836155f9565b91507f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008301527f6f776e657220627920696e6465780000000000000000000000000000000000006020830152604082019050919050565b6000614d84602f836155f9565b91507f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008301527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614dea602d836155f9565b91507f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008301527f78697374656e7420746f6b656e000000000000000000000000000000000000006020830152604082019050919050565b6000614e506022836155f9565b91507f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008301527f67680000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614eb6601d836155f9565b91507f4e6f7420456c696769626c6520466f722052656475636564204d696e740000006000830152602082019050919050565b614ef281615834565b82525050565b614f09614f0482615834565b615960565b82525050565b614f188161583e565b82525050565b6000614f2a82856142f2565b9150614f3682846142f2565b91508190509392505050565b6000614f4d826143c9565b9150614f598284614269565b60208201915081905092915050565b6000614f7382614bab565b9150819050919050565b6000614f898285614ef8565b602082019150614f998284614234565b6014820191508190509392505050565b6000602082019050614fbe6000830184614225565b92915050565b6000604082019050614fd96000830185614225565b614fe66020830184614225565b9392505050565b60006080820190506150026000830187614225565b61500f6020830186614225565b61501c6040830185614ee9565b818103606083015261502e8184614280565b905095945050505050565b600060208201905061504e600083018461424b565b92915050565b6000608082019050615069600083018761425a565b6150766020830186614f0f565b615083604083018561425a565b615090606083018461425a565b95945050505050565b600060208201905081810360008301526150b381846142b9565b905092915050565b600060208201905081810360008301526150d481614323565b9050919050565b600060208201905081810360008301526150f481614363565b9050919050565b6000602082019050818103600083015261511481614409565b9050919050565b600060208201905081810360008301526151348161446f565b9050919050565b60006020820190508181036000830152615154816144d5565b9050919050565b6000602082019050818103600083015261517481614515565b9050919050565b600060208201905081810360008301526151948161457b565b9050919050565b600060208201905081810360008301526151b4816145e1565b9050919050565b600060208201905081810360008301526151d481614621565b9050919050565b600060208201905081810360008301526151f481614661565b9050919050565b60006020820190508181036000830152615214816146a1565b9050919050565b6000602082019050818103600083015261523481614707565b9050919050565b6000602082019050818103600083015261525481614747565b9050919050565b60006020820190508181036000830152615274816147ad565b9050919050565b60006020820190508181036000830152615294816147ed565b9050919050565b600060208201905081810360008301526152b481614853565b9050919050565b600060208201905081810360008301526152d481614893565b9050919050565b600060208201905081810360008301526152f4816148d3565b9050919050565b6000602082019050818103600083015261531481614913565b9050919050565b6000602082019050818103600083015261533481614953565b9050919050565b60006020820190508181036000830152615354816149b9565b9050919050565b60006020820190508181036000830152615374816149f9565b9050919050565b6000602082019050818103600083015261539481614a5f565b9050919050565b600060208201905081810360008301526153b481614ac5565b9050919050565b600060208201905081810360008301526153d481614b05565b9050919050565b600060208201905081810360008301526153f481614b6b565b9050919050565b6000602082019050818103600083015261541481614bc5565b9050919050565b6000602082019050818103600083015261543481614c05565b9050919050565b6000602082019050818103600083015261545481614c6b565b9050919050565b6000602082019050818103600083015261547481614cab565b9050919050565b6000602082019050818103600083015261549481614d11565b9050919050565b600060208201905081810360008301526154b481614d77565b9050919050565b600060208201905081810360008301526154d481614ddd565b9050919050565b600060208201905081810360008301526154f481614e43565b9050919050565b6000602082019050818103600083015261551481614ea9565b9050919050565b60006020820190506155306000830184614ee9565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561555d5761555c615a28565b5b8060405250919050565b600067ffffffffffffffff82111561558257615581615a28565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156155b2576155b1615a28565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000615620826157f8565b915061562b836157f8565b9250826fffffffffffffffffffffffffffffffff038211156156505761564f61599b565b5b828201905092915050565b600061566682615834565b915061567183615834565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156156a6576156a561599b565b5b828201905092915050565b60006156bc82615834565b91506156c783615834565b9250826156d7576156d66159ca565b5b828204905092915050565b60006156ed82615834565b91506156f883615834565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156157315761573061599b565b5b828202905092915050565b6000615747826157f8565b9150615752836157f8565b9250828210156157655761576461599b565b5b828203905092915050565b600061577b82615834565b915061578683615834565b9250828210156157995761579861599b565b5b828203905092915050565b60006157af82615814565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561587857808201518184015260208101905061585d565b83811115615887576000848401525b50505050565b600061589882615834565b915060008214156158ac576158ab61599b565b5b600182039050919050565b600060028204905060018216806158cf57607f821691505b602082108114156158e3576158e26159f9565b5b50919050565b60006158f482615834565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156159275761592661599b565b5b600182019050919050565b600061593d8261594e565b9050919050565b6000819050919050565b600061595982615a68565b9050919050565b6000819050919050565b600061597582615834565b915061598083615834565b9250826159905761598f6159ca565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615a7e816157a4565b8114615a8957600080fd5b50565b615a95816157b6565b8114615aa057600080fd5b50565b615aac816157cc565b8114615ab757600080fd5b50565b615ac381615834565b8114615ace57600080fd5b50565b615ada8161583e565b8114615ae557600080fd5b5056fea2646970667358221220ebdc80bc1c58272adc4e7b5ed154c343289be3736c7d3e2634766f151c137ca664736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000029038d11150dd77e6bf60aed1ab5fa660c0d03e9000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000022b8000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d633656564679706f335565326131577932694b4e77714763525073515834367467486f5356676738366233752f000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102935760003560e01c8063715018a61161015a578063b88d4fde116100c1578063db2e21bc1161007a578063db2e21bc146109c9578063e57c58e5146109e0578063e985e9c514610a0b578063ee54abf214610a48578063f2fde38b14610a85578063f74ea41814610aae57610293565b8063b88d4fde146108cd578063bb51f32d146108f6578063c87b56dd1461090d578063cbce4c971461094a578063d547cfb714610973578063d7224ba01461099e57610293565b80639426eef8116101135780639426eef8146107cf57806395d89b41146107fa578063969e9d0c14610825578063a035b1fe14610850578063a22cb4651461087b578063af6e40d0146108a457610293565b8063715018a6146106e55780638342083a146106fc578063841718a6146107275780638da5cb5b1461075057806391b7f5ed1461077b578063929440bd146107a457610293565b80632a5cb760116101fe5780634f6ccce7116101b75780634f6ccce7146105af57806353135ca0146105ec57806355f804b3146106175780636352211e1461064057806368428a1b1461067d57806370a08231146106a857610293565b80632a5cb760146104bd5780632f745c59146104d957806332cb6b0c1461051657806337819e3f146105415780633f8121a21461055d57806342842e0e1461058657610293565b8063119552a111610250578063119552a1146103ab57806318160ddd146103d657806318623e121461040157806318cc50c81461042c5780631ea639011461046957806323b872dd1461049457610293565b806301ffc9a71461029857806306fdde03146102d5578063081812fc14610300578063088ce04f1461033d578063095ea7b3146103665780630aea4a331461038f575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba91906140db565b610ad9565b6040516102cc9190615039565b60405180910390f35b3480156102e157600080fd5b506102ea610c23565b6040516102f79190615099565b60405180910390f35b34801561030c57600080fd5b5061032760048036038101906103229190614197565b610cb5565b6040516103349190614fa9565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f91906140b2565b610d3a565b005b34801561037257600080fd5b5061038d60048036038101906103889190614076565b610dd3565b005b6103a960048036038101906103a491906141c0565b610eec565b005b3480156103b757600080fd5b506103c061119d565b6040516103cd9190614fa9565b60405180910390f35b3480156103e257600080fd5b506103eb6111c3565b6040516103f8919061551b565b60405180910390f35b34801561040d57600080fd5b506104166111cc565b6040516104239190615039565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e919061416e565b6111df565b6040516104609190615039565b60405180910390f35b34801561047557600080fd5b5061047e6111f9565b60405161048b919061551b565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b69190613f70565b6111ff565b005b6104d760048036038101906104d29190614197565b61120f565b005b3480156104e557600080fd5b5061050060048036038101906104fb9190614076565b611386565b60405161050d919061551b565b60405180910390f35b34801561052257600080fd5b5061052b611584565b604051610538919061551b565b60405180910390f35b61055b600480360381019061055691906141c0565b61158a565b005b34801561056957600080fd5b50610584600480360381019061057f91906140b2565b611884565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613f70565b61191d565b005b3480156105bb57600080fd5b506105d660048036038101906105d19190614197565b61193d565b6040516105e3919061551b565b60405180910390f35b3480156105f857600080fd5b50610601611990565b60405161060e9190615039565b60405180910390f35b34801561062357600080fd5b5061063e6004803603810190610639919061412d565b6119a3565b005b34801561064c57600080fd5b5061066760048036038101906106629190614197565b611a39565b6040516106749190614fa9565b60405180910390f35b34801561068957600080fd5b50610692611a4f565b60405161069f9190615039565b60405180910390f35b3480156106b457600080fd5b506106cf60048036038101906106ca9190613f0b565b611a62565b6040516106dc919061551b565b60405180910390f35b3480156106f157600080fd5b506106fa611b4b565b005b34801561070857600080fd5b50610711611bd3565b60405161071e919061551b565b60405180910390f35b34801561073357600080fd5b5061074e600480360381019061074991906140b2565b611bd9565b005b34801561075c57600080fd5b50610765611c72565b6040516107729190614fa9565b60405180910390f35b34801561078757600080fd5b506107a2600480360381019061079d9190614197565b611c9c565b005b3480156107b057600080fd5b506107b9611d22565b6040516107c6919061551b565b60405180910390f35b3480156107db57600080fd5b506107e4611d28565b6040516107f19190614fa9565b60405180910390f35b34801561080657600080fd5b5061080f611d4e565b60405161081c9190615099565b60405180910390f35b34801561083157600080fd5b5061083a611de0565b6040516108479190614fa9565b60405180910390f35b34801561085c57600080fd5b50610865611e06565b604051610872919061551b565b60405180910390f35b34801561088757600080fd5b506108a2600480360381019061089d919061403a565b611e0c565b005b3480156108b057600080fd5b506108cb60048036038101906108c69190613f0b565b611f8d565b005b3480156108d957600080fd5b506108f460048036038101906108ef9190613fbf565b612118565b005b34801561090257600080fd5b5061090b612174565b005b34801561091957600080fd5b50610934600480360381019061092f9190614197565b612327565b6040516109419190615099565b60405180910390f35b34801561095657600080fd5b50610971600480360381019061096c9190614076565b6123ce565b005b34801561097f57600080fd5b506109886124b5565b6040516109959190615099565b60405180910390f35b3480156109aa57600080fd5b506109b3612543565b6040516109c0919061551b565b60405180910390f35b3480156109d557600080fd5b506109de612549565b005b3480156109ec57600080fd5b506109f5612636565b604051610a029190614fa9565b60405180910390f35b348015610a1757600080fd5b50610a326004803603810190610a2d9190613f34565b612660565b604051610a3f9190615039565b60405180910390f35b348015610a5457600080fd5b50610a6f6004803603810190610a6a9190614197565b6126f4565b604051610a7c919061551b565b60405180910390f35b348015610a9157600080fd5b50610aac6004803603810190610aa79190613f0b565b61270c565b005b348015610aba57600080fd5b50610ac3612804565b604051610ad09190614fa9565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ba457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c0c57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c1c5750610c1b8261282a565b5b9050919050565b606060018054610c32906158b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5e906158b7565b8015610cab5780601f10610c8057610100808354040283529160200191610cab565b820191906000526020600020905b815481529060010190602001808311610c8e57829003601f168201915b5050505050905090565b6000610cc082612894565b610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf6906154bb565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610d426128a1565b73ffffffffffffffffffffffffffffffffffffffff16610d60611c72565b73ffffffffffffffffffffffffffffffffffffffff1614610db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dad906152db565b60405180910390fd5b80600960156101000a81548160ff02191690831515021790555050565b6000610dde82611a39565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e46906153bb565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e6e6128a1565b73ffffffffffffffffffffffffffffffffffffffff161480610e9d5750610e9c81610e976128a1565b612660565b5b610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed3906151fb565b60405180910390fd5b610ee78383836128a9565b505050565b6000610ef66111c3565b9050600960149054906101000a900460ff16610f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3e906152fb565b60405180910390fd5b600383601360008560000135815260200190815260200160002054610f6c919061565b565b1115610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa49061539b565b60405180910390fd5b6003831115610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe89061519b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1682602001602081019061101b9190613f0b565b73ffffffffffffffffffffffffffffffffffffffff1614611071576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611068906152bb565b60405180910390fd5b6110828261107d612636565b61295b565b6110c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b8906151db565b60405180910390fd5b600d5483826110d0919061565b565b1115611111576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111089061525b565b60405180910390fd5b82600a5461111f91906156e2565b3414611160576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111579061513b565b60405180910390fd5b8260136000846000013581526020019081526020016000206000828254611187919061565b565b925050819055506111983384612a74565b505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054905090565b600960159054906101000a900460ff1681565b60006111f2826111ed612636565b61295b565b9050919050565b600e5481565b61120a838383612a92565b505050565b60006112196111c3565b9050600960169054906101000a900460ff1661126a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112619061521b565b60405180910390fd5b60008211801561129a57507f000000000000000000000000000000000000000000000000000000000000000a8211155b6112d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d0906153db565b60405180910390fd5b600d5482826112e8919061565b565b1115611329576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113209061525b565b60405180910390fd5b81600a5461133791906156e2565b3414611378576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136f9061513b565b60405180910390fd5b6113823383612a74565b5050565b600061139183611a62565b82106113d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c9906150db565b60405180910390fd5b60006113dc6111c3565b905060008060005b83811015611542576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146114d657806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561152e578684141561151f57819550505050505061157e565b838061152a906158e9565b9450505b50808061153a906158e9565b9150506113e4565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115759061547b565b60405180910390fd5b92915050565b600c5481565b60006115946111c3565b9050600960159054906101000a900460ff166115e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dc9061529b565b60405180910390fd5b60018360136000856000013581526020019081526020016000205461160a919061565b565b111561164b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611642906150bb565b60405180910390fd5b61177082600001351015611694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168b906154fb565b60405180910390fd5b60018311156116d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cf906151bb565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168260200160208101906117029190613f0b565b73ffffffffffffffffffffffffffffffffffffffff1614611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f906152bb565b60405180910390fd5b61176982611764612636565b61295b565b6117a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179f906151db565b60405180910390fd5b600d5483826117b7919061565b565b11156117f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ef9061525b565b60405180910390fd5b82600b5461180691906156e2565b3414611847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183e9061513b565b60405180910390fd5b826013600084600001358152602001908152602001600020600082825461186e919061565b565b9250508190555061187f3384612a74565b505050565b61188c6128a1565b73ffffffffffffffffffffffffffffffffffffffff166118aa611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f7906152db565b60405180910390fd5b80600960146101000a81548160ff02191690831515021790555050565b61193883838360405180602001604052806000815250612118565b505050565b60006119476111c3565b8210611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197f9061515b565b60405180910390fd5b819050919050565b600960149054906101000a900460ff1681565b6119ab6128a1565b73ffffffffffffffffffffffffffffffffffffffff166119c9611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a16906152db565b60405180910390fd5b8060149080519060200190611a35929190613cc5565b5050565b6000611a448261304b565b600001519050919050565b600960169054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca9061523b565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611b536128a1565b73ffffffffffffffffffffffffffffffffffffffff16611b71611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbe906152db565b60405180910390fd5b611bd1600061324e565b565b600d5481565b611be16128a1565b73ffffffffffffffffffffffffffffffffffffffff16611bff611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4c906152db565b60405180910390fd5b80600960166101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611ca46128a1565b73ffffffffffffffffffffffffffffffffffffffff16611cc2611c72565b73ffffffffffffffffffffffffffffffffffffffff1614611d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0f906152db565b60405180910390fd5b80600a8190555050565b600b5481565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060028054611d5d906158b7565b80601f0160208091040260200160405190810160405280929190818152602001828054611d89906158b7565b8015611dd65780601f10611dab57610100808354040283529160200191611dd6565b820191906000526020600020905b815481529060010190602001808311611db957829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b611e146128a1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e799061533b565b60405180910390fd5b8060066000611e8f6128a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f3c6128a1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f819190615039565b60405180910390a35050565b611f956128a1565b73ffffffffffffffffffffffffffffffffffffffff16611fb3611c72565b73ffffffffffffffffffffffffffffffffffffffff1614612009576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612000906152db565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612079576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120709061537b565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f6c61302b47e872d08552b17b5c3219414ee4a6e333af5955e372540f8dcc42bb600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260405161210d929190614fc4565b60405180910390a150565b612123848484612a92565b61212f84848484613314565b61216e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121659061541b565b60405180910390fd5b50505050565b61217c6128a1565b73ffffffffffffffffffffffffffffffffffffffff1661219a611c72565b73ffffffffffffffffffffffffffffffffffffffff16146121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e7906152db565b60405180910390fd5b60004790506000811161220257600080fd5b612254600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661224f60646122416019866134ab90919063ffffffff16565b6134c190919063ffffffff16565b6134d7565b6122a6601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166122a160646122936019866134ab90919063ffffffff16565b6134c190919063ffffffff16565b6134d7565b6122f8601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166122f360646122e56019866134ab90919063ffffffff16565b6134c190919063ffffffff16565b6134d7565b612324601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16476134d7565b50565b606061233282612894565b612371576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123689061531b565b60405180910390fd5b600061237b613588565b9050600081511161239b57604051806020016040528060008152506123c6565b806123a58461361a565b6040516020016123b6929190614f1e565b6040516020818303038152906040525b915050919050565b6123d66128a1565b73ffffffffffffffffffffffffffffffffffffffff166123f4611c72565b73ffffffffffffffffffffffffffffffffffffffff161461244a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612441906152db565b60405180910390fd5b60006124546111c3565b9050600c548282612465919061565b565b11156124a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249d9061525b565b60405180910390fd5b6124b08383612a74565b505050565b601480546124c2906158b7565b80601f01602080910402602001604051908101604052809291908181526020018280546124ee906158b7565b801561253b5780601f106125105761010080835404028352916020019161253b565b820191906000526020600020905b81548152906001019060200180831161251e57829003601f168201915b505050505081565b60075481565b6125516128a1565b73ffffffffffffffffffffffffffffffffffffffff1661256f611c72565b73ffffffffffffffffffffffffffffffffffffffff16146125c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125bc906152db565b60405180910390fd5b6000479050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612632573d6000803e3d6000fd5b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60136020528060005260406000206000915090505481565b6127146128a1565b73ffffffffffffffffffffffffffffffffffffffff16612732611c72565b73ffffffffffffffffffffffffffffffffffffffff1614612788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277f906152db565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ef906150fb565b60405180910390fd5b6128018161324e565b50565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008083600001358460200160208101906129769190613f0b565b604051602001612987929190614f7d565b6040516020818303038152906040528051906020012090506000816040516020016129b29190614f42565b6040516020818303038152906040528051906020012090508373ffffffffffffffffffffffffffffffffffffffff166001828760400160400160208101906129fa91906141fc565b8860400160000135896040016020013560405160008152602001604052604051612a279493929190615054565b6020604051602081039080840390855afa158015612a49573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16149250505092915050565b612a8e8282604051806020016040528060008152506137c7565b5050565b6000612a9d8261304b565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612ac46128a1565b73ffffffffffffffffffffffffffffffffffffffff161480612b205750612ae96128a1565b73ffffffffffffffffffffffffffffffffffffffff16612b0884610cb5565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b3c5750612b3b8260000151612b366128a1565b612660565b5b905080612b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b759061535b565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be79061527b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c579061517b565b60405180910390fd5b612c6d8585856001613ca6565b612c7d60008484600001516128a9565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612ceb919061573c565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612d8f9190615615565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612e95919061565b565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612fdb57612f0b81612894565b15612fda576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130438686866001613cac565b505050505050565b613053613d4b565b61305c82612894565b61309b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130929061511b565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000a83106130ff5760017f000000000000000000000000000000000000000000000000000000000000000a846130f29190615770565b6130fc919061565b565b90505b60008390505b81811061320d576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131f957809350505050613249565b5080806132059061588d565b915050613105565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132409061549b565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006133358473ffffffffffffffffffffffffffffffffffffffff16613cb2565b1561349e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261335e6128a1565b8786866040518563ffffffff1660e01b81526004016133809493929190614fed565b602060405180830381600087803b15801561339a57600080fd5b505af19250505080156133cb57506040513d601f19601f820116820180604052508101906133c89190614104565b60015b61344e573d80600081146133fb576040519150601f19603f3d011682016040523d82523d6000602084013e613400565b606091505b50600081511415613446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343d9061541b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134a3565b600190505b949350505050565b600081836134b991906156e2565b905092915050565b600081836134cf91906156b1565b905092915050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516134fd90614f68565b60006040518083038185875af1925050503d806000811461353a576040519150601f19603f3d011682016040523d82523d6000602084013e61353f565b606091505b5050905080613583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357a906153fb565b60405180910390fd5b505050565b606060148054613597906158b7565b80601f01602080910402602001604051908101604052809291908181526020018280546135c3906158b7565b80156136105780601f106135e557610100808354040283529160200191613610565b820191906000526020600020905b8154815290600101906020018083116135f357829003601f168201915b5050505050905090565b60606000821415613662576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506137c2565b600082905060005b6000821461369457808061367d906158e9565b915050600a8261368d91906156b1565b915061366a565b60008167ffffffffffffffff8111156136d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156137085781602001600182028036833780820191505090505b5090505b600085146137bb576001826137219190615770565b9150600a85613730919061596a565b603061373c919061565b565b60f81b818381518110613778577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856137b491906156b1565b945061370c565b8093505050505b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561383d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138349061545b565b60405180910390fd5b61384681612894565b15613886576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161387d9061543b565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000a8311156138e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e0906154db565b60405180910390fd5b6138f66000858386613ca6565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516139f39190615615565b6fffffffffffffffffffffffffffffffff168152602001858360200151613a1a9190615615565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613c8957818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c296000888488613314565b613c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5f9061541b565b60405180910390fd5b8180613c73906158e9565b9250508080613c81906158e9565b915050613bb8565b5080600081905550613c9e6000878588613cac565b505050505050565b50505050565b50505050565b600080823b905060008111915050919050565b828054613cd1906158b7565b90600052602060002090601f016020900481019282613cf35760008555613d3a565b82601f10613d0c57805160ff1916838001178555613d3a565b82800160010185558215613d3a579182015b82811115613d39578251825591602001919060010190613d1e565b5b509050613d479190613d85565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613d9e576000816000905550600101613d86565b5090565b6000613db5613db084615567565b615536565b905082815260208101848484011115613dcd57600080fd5b613dd884828561584b565b509392505050565b6000613df3613dee84615597565b615536565b905082815260208101848484011115613e0b57600080fd5b613e1684828561584b565b509392505050565b600081359050613e2d81615a75565b92915050565b600081359050613e4281615a8c565b92915050565b600081359050613e5781615aa3565b92915050565b600081519050613e6c81615aa3565b92915050565b600082601f830112613e8357600080fd5b8135613e93848260208601613da2565b91505092915050565b600082601f830112613ead57600080fd5b8135613ebd848260208601613de0565b91505092915050565b600060a08284031215613ed857600080fd5b81905092915050565b600081359050613ef081615aba565b92915050565b600081359050613f0581615ad1565b92915050565b600060208284031215613f1d57600080fd5b6000613f2b84828501613e1e565b91505092915050565b60008060408385031215613f4757600080fd5b6000613f5585828601613e1e565b9250506020613f6685828601613e1e565b9150509250929050565b600080600060608486031215613f8557600080fd5b6000613f9386828701613e1e565b9350506020613fa486828701613e1e565b9250506040613fb586828701613ee1565b9150509250925092565b60008060008060808587031215613fd557600080fd5b6000613fe387828801613e1e565b9450506020613ff487828801613e1e565b935050604061400587828801613ee1565b925050606085013567ffffffffffffffff81111561402257600080fd5b61402e87828801613e72565b91505092959194509250565b6000806040838503121561404d57600080fd5b600061405b85828601613e1e565b925050602061406c85828601613e33565b9150509250929050565b6000806040838503121561408957600080fd5b600061409785828601613e1e565b92505060206140a885828601613ee1565b9150509250929050565b6000602082840312156140c457600080fd5b60006140d284828501613e33565b91505092915050565b6000602082840312156140ed57600080fd5b60006140fb84828501613e48565b91505092915050565b60006020828403121561411657600080fd5b600061412484828501613e5d565b91505092915050565b60006020828403121561413f57600080fd5b600082013567ffffffffffffffff81111561415957600080fd5b61416584828501613e9c565b91505092915050565b600060a0828403121561418057600080fd5b600061418e84828501613ec6565b91505092915050565b6000602082840312156141a957600080fd5b60006141b784828501613ee1565b91505092915050565b60008060c083850312156141d357600080fd5b60006141e185828601613ee1565b92505060206141f285828601613ec6565b9150509250929050565b60006020828403121561420e57600080fd5b600061421c84828501613ef6565b91505092915050565b61422e816157a4565b82525050565b614245614240826157a4565b615932565b82525050565b614254816157b6565b82525050565b614263816157c2565b82525050565b61427a614275826157c2565b615944565b82525050565b600061428b826155c7565b61429581856155dd565b93506142a581856020860161585a565b6142ae81615a57565b840191505092915050565b60006142c4826155d2565b6142ce81856155f9565b93506142de81856020860161585a565b6142e781615a57565b840191505092915050565b60006142fd826155d2565b614307818561560a565b935061431781856020860161585a565b80840191505092915050565b6000614330601c836155f9565b91507f4d6178203120447572696e6720526564756365642050726573616c65000000006000830152602082019050919050565b60006143706022836155f9565b91507f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006143d6601c8361560a565b91507f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000830152601c82019050919050565b60006144166026836155f9565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061447c602a836155f9565b91507f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008301527f74656e7420746f6b656e000000000000000000000000000000000000000000006020830152604082019050919050565b60006144e2601c836155f9565b91507f496e636f727265637420416d6f756e74204f66204554482053656e74000000006000830152602082019050919050565b60006145226023836155f9565b91507f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008301527f6e647300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145886025836155f9565b91507f455243373231413a207472616e7366657220746f20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145ee6016836155f9565b91507f43616e2774204d696e74204d6f7265205468616e2033000000000000000000006000830152602082019050919050565b600061462e6016836155f9565b91507f43616e2774204d696e74204d6f7265205468616e2031000000000000000000006000830152602082019050919050565b600061466e600f836155f9565b91507f496e76616c696420566f756368657200000000000000000000000000000000006000830152602082019050919050565b60006146ae6039836155f9565b91507f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006020830152604082019050919050565b60006147146016836155f9565b91507f5075626c69632053616c65204e6f7420416374697665000000000000000000006000830152602082019050919050565b6000614754602b836155f9565b91507f455243373231413a2062616c616e636520717565727920666f7220746865207a60008301527f65726f20616464726573730000000000000000000000000000000000000000006020830152604082019050919050565b60006147ba6011836155f9565b91507f4e6f7420456e6f75676820537570706c790000000000000000000000000000006000830152602082019050919050565b60006147fa6026836155f9565b91507f455243373231413a207472616e736665722066726f6d20696e636f727265637460008301527f206f776e657200000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614860601f836155f9565b91507f5265647563656420507269766174652053616c65204e6f7420416374697665006000830152602082019050919050565b60006148a06017836155f9565b91507f596f7520417265204e4f542057686974656c69737465640000000000000000006000830152602082019050919050565b60006148e06020836155f9565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006149206017836155f9565b91507f507269766174652053616c65204e6f74204163746976650000000000000000006000830152602082019050919050565b6000614960602f836155f9565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006149c6601a836155f9565b91507f455243373231413a20617070726f766520746f2063616c6c65720000000000006000830152602082019050919050565b6000614a066032836155f9565b91507f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008301527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006020830152604082019050919050565b6000614a6c6023836155f9565b91507f53657474696e6720766f7563686572207369676e657220746f2030206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ad26014836155f9565b91507f4d6178203320447572696e672050726573616c650000000000000000000000006000830152602082019050919050565b6000614b126022836155f9565b91507f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008301527f65720000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b786017836155f9565b91507f43616e2774204d696e74204d6f7265205468616e2031300000000000000000006000830152602082019050919050565b6000614bb86000836155ee565b9150600082019050919050565b6000614bd26010836155f9565b91507f5472616e73666572206661696c65642e000000000000000000000000000000006000830152602082019050919050565b6000614c126033836155f9565b91507f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008301527f6563656976657220696d706c656d656e746572000000000000000000000000006020830152604082019050919050565b6000614c78601d836155f9565b91507f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006000830152602082019050919050565b6000614cb86021836155f9565b91507f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d1e602e836155f9565b91507f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008301527f6f776e657220627920696e6465780000000000000000000000000000000000006020830152604082019050919050565b6000614d84602f836155f9565b91507f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008301527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614dea602d836155f9565b91507f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008301527f78697374656e7420746f6b656e000000000000000000000000000000000000006020830152604082019050919050565b6000614e506022836155f9565b91507f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008301527f67680000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614eb6601d836155f9565b91507f4e6f7420456c696769626c6520466f722052656475636564204d696e740000006000830152602082019050919050565b614ef281615834565b82525050565b614f09614f0482615834565b615960565b82525050565b614f188161583e565b82525050565b6000614f2a82856142f2565b9150614f3682846142f2565b91508190509392505050565b6000614f4d826143c9565b9150614f598284614269565b60208201915081905092915050565b6000614f7382614bab565b9150819050919050565b6000614f898285614ef8565b602082019150614f998284614234565b6014820191508190509392505050565b6000602082019050614fbe6000830184614225565b92915050565b6000604082019050614fd96000830185614225565b614fe66020830184614225565b9392505050565b60006080820190506150026000830187614225565b61500f6020830186614225565b61501c6040830185614ee9565b818103606083015261502e8184614280565b905095945050505050565b600060208201905061504e600083018461424b565b92915050565b6000608082019050615069600083018761425a565b6150766020830186614f0f565b615083604083018561425a565b615090606083018461425a565b95945050505050565b600060208201905081810360008301526150b381846142b9565b905092915050565b600060208201905081810360008301526150d481614323565b9050919050565b600060208201905081810360008301526150f481614363565b9050919050565b6000602082019050818103600083015261511481614409565b9050919050565b600060208201905081810360008301526151348161446f565b9050919050565b60006020820190508181036000830152615154816144d5565b9050919050565b6000602082019050818103600083015261517481614515565b9050919050565b600060208201905081810360008301526151948161457b565b9050919050565b600060208201905081810360008301526151b4816145e1565b9050919050565b600060208201905081810360008301526151d481614621565b9050919050565b600060208201905081810360008301526151f481614661565b9050919050565b60006020820190508181036000830152615214816146a1565b9050919050565b6000602082019050818103600083015261523481614707565b9050919050565b6000602082019050818103600083015261525481614747565b9050919050565b60006020820190508181036000830152615274816147ad565b9050919050565b60006020820190508181036000830152615294816147ed565b9050919050565b600060208201905081810360008301526152b481614853565b9050919050565b600060208201905081810360008301526152d481614893565b9050919050565b600060208201905081810360008301526152f4816148d3565b9050919050565b6000602082019050818103600083015261531481614913565b9050919050565b6000602082019050818103600083015261533481614953565b9050919050565b60006020820190508181036000830152615354816149b9565b9050919050565b60006020820190508181036000830152615374816149f9565b9050919050565b6000602082019050818103600083015261539481614a5f565b9050919050565b600060208201905081810360008301526153b481614ac5565b9050919050565b600060208201905081810360008301526153d481614b05565b9050919050565b600060208201905081810360008301526153f481614b6b565b9050919050565b6000602082019050818103600083015261541481614bc5565b9050919050565b6000602082019050818103600083015261543481614c05565b9050919050565b6000602082019050818103600083015261545481614c6b565b9050919050565b6000602082019050818103600083015261547481614cab565b9050919050565b6000602082019050818103600083015261549481614d11565b9050919050565b600060208201905081810360008301526154b481614d77565b9050919050565b600060208201905081810360008301526154d481614ddd565b9050919050565b600060208201905081810360008301526154f481614e43565b9050919050565b6000602082019050818103600083015261551481614ea9565b9050919050565b60006020820190506155306000830184614ee9565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561555d5761555c615a28565b5b8060405250919050565b600067ffffffffffffffff82111561558257615581615a28565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156155b2576155b1615a28565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000615620826157f8565b915061562b836157f8565b9250826fffffffffffffffffffffffffffffffff038211156156505761564f61599b565b5b828201905092915050565b600061566682615834565b915061567183615834565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156156a6576156a561599b565b5b828201905092915050565b60006156bc82615834565b91506156c783615834565b9250826156d7576156d66159ca565b5b828204905092915050565b60006156ed82615834565b91506156f883615834565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156157315761573061599b565b5b828202905092915050565b6000615747826157f8565b9150615752836157f8565b9250828210156157655761576461599b565b5b828203905092915050565b600061577b82615834565b915061578683615834565b9250828210156157995761579861599b565b5b828203905092915050565b60006157af82615814565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561587857808201518184015260208101905061585d565b83811115615887576000848401525b50505050565b600061589882615834565b915060008214156158ac576158ab61599b565b5b600182039050919050565b600060028204905060018216806158cf57607f821691505b602082108114156158e3576158e26159f9565b5b50919050565b60006158f482615834565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156159275761592661599b565b5b600182019050919050565b600061593d8261594e565b9050919050565b6000819050919050565b600061595982615a68565b9050919050565b6000819050919050565b600061597582615834565b915061598083615834565b9250826159905761598f6159ca565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615a7e816157a4565b8114615a8957600080fd5b50565b615a95816157b6565b8114615aa057600080fd5b50565b615aac816157cc565b8114615ab757600080fd5b50565b615ac381615834565b8114615ace57600080fd5b50565b615ada8161583e565b8114615ae557600080fd5b5056fea2646970667358221220ebdc80bc1c58272adc4e7b5ed154c343289be3736c7d3e2634766f151c137ca664736f6c63430008000033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000029038d11150dd77e6bf60aed1ab5fa660c0d03e9000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000022b8000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d633656564679706f335565326131577932694b4e77714763525073515834367467486f5356676738366233752f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : newBaseURI (string): https://gateway.pinata.cloud/ipfs/Qmc6VVFypo3Ue2a1Wy2iKNwqGcRPsQX46tgHoSVgg86b3u/
Arg [1] : voucherSigner (address): 0x29038D11150dD77E6bF60aeD1ab5fA660C0d03E9
Arg [2] : maxBatchSize_ (uint256): 10
Arg [3] : collectionSize_ (uint256): 8888

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000029038d11150dd77e6bf60aed1ab5fa660c0d03e9
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 00000000000000000000000000000000000000000000000000000000000022b8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [5] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [6] : 732f516d633656564679706f335565326131577932694b4e7771476352507351
Arg [7] : 5834367467486f5356676738366233752f000000000000000000000000000000


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.