ETH Price: $3,139.28 (+3.72%)

WhattyClub (WHATTY)
 

Overview

TokenID

1929

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Whalecome to the deepest club where 10,000 randomly generated unique Whatty whales have fun! [Live minting here!](https://whatty.club/) [Official Website](https://whatty.club/) │ [Discord](https://discord.gg/nScGRAexmK) │ [Twitter](https://twitter.com/WhattyClub) Project...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WhattyClub

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1500 runs

Other Settings:
default evmVersion
File 1 of 15 : WhattyClub.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./WithdrawFairly.sol";

contract WhattyClub is ERC721, Ownable, WithdrawFairly {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdTracker;
    Counters.Counter private _burnedTracker;

    uint256 public constant MAX_ELEMENTS = 10000;
    uint256 public constant RESERVE_NFT = 50;
    uint256 public constant PRICE = 0.06 ether;
    uint256 public constant WHITELIST_MINT_MAX = 10;
    uint256 public constant PRESALE_MINT_MAX = 10;
    uint256 public constant PUBLICSALE_MINT_MAX = 5;
    uint256 public constant START_AT = 1;

    uint256 private constant HASH_SIGN_WHITELIST = 745112421052;
    uint256 private constant HASH_SIGN_PRESALE = 23157425452;

    uint256 public whitelistSalesStart = 1635022800; // 2021-10-23 at 21:00:00 UTC
    uint256 public preSalesStart = 1635109200; // 2021-10-24 at 21:00:00 UTC
    uint256 public publicSalesStart = 1635195600; // 2021-10-25 at 21:00:00 UTC

    string public baseTokenURI;
    bool public emergencyPause = false;

    mapping(address => uint256) private balanceWhitelist;
    mapping(address => uint256) private balancePresales;
    mapping(uint256 => bool) private signatureIds;

    event EventWhitelistSaleStartChange(uint256 _date);
    event EventPreSaleStartChange(uint256 _date);
    event EventPublicSaleStartChange(uint256 _date);
    event EventMint(uint256 _totalSupply);

    constructor(string memory baseURI) ERC721("WhattyClub", "WHATTY") WithdrawFairly() {
        setBaseURI(baseURI);
    }

    //******************************************************//
    //                     Modifier                         //
    //******************************************************//
    modifier whitelistIsOpen {
        require(totalMinted() <= MAX_ELEMENTS, "Sold out!");
        if (_msgSender() != owner()) {
            require(whitelistSalesIsOpen(), "Whitelist Sales not open");
            require(!emergencyPause, "It's an emergency!..");
        }
        _;
    }
    modifier preIsOpen {
        require(totalMinted() <= MAX_ELEMENTS, "Sold out!");
        if (_msgSender() != owner()) {
            require(preSalesIsOpen(), "PreSales not open");
            require(!emergencyPause, "It's an emergency!..");
        }
        _;
    }
    modifier publicIsOpen {
        require(totalMinted() <= MAX_ELEMENTS, "Sold out!");
        if (_msgSender() != owner()) {
            require(publicSalesIsOpen(), "PublicSales not open");
            require(!emergencyPause, "It's an emergency!..");
        }
        _;
    }

    //******************************************************//
    //                      Mint                            //
    //******************************************************//
    function whitelistSalesMint(uint256 _count, uint256 _max, bytes memory _signature) public payable whitelistIsOpen{

        address wallet = _msgSender();
        uint256 total = totalMinted();

        require(_count <= WHITELIST_MINT_MAX && _count <= _max, "Exceeds number");
        require(total + _count <= MAX_ELEMENTS, "Max limit");
        require(msg.value >= price(_count), "Value below price");

        require(balanceWhitelist[wallet] + _count <= _max, "Max minted");
        require(whitelistSalesSignature(wallet,_count,_max,_signature) == owner(), "Not allowed to mint");

        balanceWhitelist[wallet] += _count;

        for (uint256 i = 0; i < _count; i++) {
            _mintAnElement(wallet);
        }

        emit EventMint(totalMinted());
    }
    function whitelistSalesSignature(address _wallet, uint256 _count, uint256 _max, bytes memory _signature) public pure returns(address){
        return ECDSA.recover(keccak256(abi.encode(_wallet, _count, _max, HASH_SIGN_WHITELIST)), _signature);
    }
    function getBalanceWhitelist(address wallet) public view returns(uint256){
        return balanceWhitelist[wallet];
    }

    function preSalesMint(uint256 _count, uint256 _signatureId, bytes memory _signature) public payable preIsOpen{

        address wallet = _msgSender();
        uint256 total = totalMinted();

        require(_count <= PRESALE_MINT_MAX, "Exceeds number");
        require(total + _count <= MAX_ELEMENTS, "Max limit");
        require(msg.value >= price(_count), "Value below price");

        require(balancePresales[wallet] + _count <= PRESALE_MINT_MAX, "Max minted");
        require(signatureIds[_signatureId] == false, "Signature already used");
        require(preSalesSignature(wallet,_count,_signatureId,_signature) == owner(), "Not allowed to mint");

        signatureIds[_signatureId] = true;
        balancePresales[wallet] += _count;

        for (uint256 i = 0; i < _count; i++) {
            _mintAnElement(wallet);
        }

        emit EventMint(totalMinted());
    }
    function preSalesSignature(address _wallet, uint256 _count, uint256 _signatureId, bytes memory _signature) public pure returns(address){
        return ECDSA.recover(keccak256(abi.encode(_wallet, _count, _signatureId, HASH_SIGN_PRESALE)), _signature);
    }
    function signatureIdUsed(uint256 _signatureId) public view returns(bool){
        return signatureIds[_signatureId];
    }
    function getBalancePresales(address wallet) public view returns(uint256){
        return balancePresales[wallet];
    }

    function publicSalesMint(uint256 _count) public payable publicIsOpen {

        address wallet = _msgSender();
        uint256 total = totalMinted();

        require(_count <= PUBLICSALE_MINT_MAX, "Exceeds number");
        require(total + _count <= MAX_ELEMENTS, "Max limit");
        require(msg.value >= price(_count), "Value below price");

        for (uint256 i = 0; i < _count; i++) {
            _mintAnElement(wallet);
        }

        emit EventMint(totalMinted());
    }

    function _mintAnElement(address _to) private{
        uint256 token = totalMinted() + START_AT;
        _tokenIdTracker.increment();
        _safeMint(_to, token);
    }

    //******************************************************//
    //                      Base                            //
    //******************************************************//
    function totalSupply() public view returns (uint256) {
        return _tokenIdTracker.current() - _burnedTracker.current();
    }
    function totalMinted() public view returns (uint256) {
        return _tokenIdTracker.current();
    }
    function price(uint256 _count) public pure returns (uint256) {
        return PRICE.mul(_count);
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }
    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }
    function walletOfOwner(address _owner) external view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        uint256 key = 0;
        uint256[] memory tokensId = new uint256[](tokenCount);

        for (uint256 i = START_AT; i <= totalMinted(); i++) {
            if(rawOwnerOf(i) == _owner){
                tokensId[key] = i;
                key++;

                if(key == tokenCount){
                    break;
                }
            }
        }
        return tokensId;
    }
    function reserve(uint256 _count) public onlyOwner {
        uint256 total = totalMinted();
        require(total + _count <= RESERVE_NFT, "Exceeded");

        for (uint256 i = 0; i < _count; i++) {
            _mintAnElement(_msgSender());
        }
    }

    //******************************************************//
    //                      States                          //
    //******************************************************//
    function whitelistSalesIsOpen() public view returns (bool){
        return block.timestamp >= whitelistSalesStart && block.timestamp < preSalesStart;
    }
    function preSalesIsOpen() public view returns (bool){
        return block.timestamp >= preSalesStart && block.timestamp < publicSalesStart;
    }
    function publicSalesIsOpen() public view returns (bool){
        return block.timestamp >= publicSalesStart;
    }

    //******************************************************//
    //                      Setters                         //
    //******************************************************//
    function setWhitelistSalesStart(uint256 _start) public onlyOwner {
        whitelistSalesStart = _start;
        emit EventWhitelistSaleStartChange(whitelistSalesStart);
    }
    function setPreSalesStart(uint256 _start) public onlyOwner {
        preSalesStart = _start;
        emit EventPreSaleStartChange(preSalesStart);
    }
    function setPublicSalesStart(uint256 _start) public onlyOwner {
        publicSalesStart = _start;
        emit EventPublicSaleStartChange(publicSalesStart);
    }
    function dontPressThisButton(bool _pause) public onlyOwner {
        emergencyPause = _pause;
    }

    //******************************************************//
    //                      Burn                            //
    //******************************************************//
    function burn(uint256 tokenId) public virtual {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "Not owner nor approved");
        _burnedTracker.increment();
        _burn(tokenId);
    }

}

File 2 of 15 : ERC721.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/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev Edit for rawOwnerOf token
     */
    function rawOwnerOf(uint256 tokenId) public view returns (address) {
        return _owners[tokenId];
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        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 virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: 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 virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);
        address to = address(0);

        _beforeTokenTransfer(owner, to, tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, to, tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

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

contract WithdrawFairly is Ownable {
    using SafeMath for uint256;

    struct Part {
        address wallet;
        uint256 salePart;
        uint256 royaltiesPart;
    }

    Part[] public parts;

    constructor(){
        parts.push(Part(0x764789dF2592764EeF2408E9524C4eCadDCb31C9, 50, 0)); // creator
        parts.push(Part(0x8a73c4777163c467b2eee9cd6858B2A56D376B70, 0, 50)); // creator
        parts.push(Part(0xcBCc84766F2950CF867f42D766c43fB2D2Ba3256, 50, 50)); // dev
    }

    function withdrawSales() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Sales Balance = 0");

        for(uint8 i = 0; i < parts.length; i++){
            if(parts[i].salePart > 0){
                _withdraw(parts[i].wallet, balance.mul(parts[i].salePart).div(100));
            }
        }

        _withdraw(owner(), address(this).balance);
    }

    function withdrawRoyalties() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Contract Balance = 0");

        for(uint8 i = 0; i < parts.length; i++){
            if(parts[i].royaltiesPart > 0){
                _withdraw(parts[i].wallet, balance.mul(parts[i].royaltiesPart).div(100));
            }
        }

        _withdraw(owner(), address(this).balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    receive() external payable {}

}

File 4 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

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 6 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 7 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 8 of 15 : Address.sol
// SPDX-License-Identifier: MIT

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 9 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 of 15 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

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 12 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return recover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return recover(hash, r, vs);
        } else {
            revert("ECDSA: invalid signature length");
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(
            uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
            "ECDSA: invalid signature 's' value"
        );
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 13 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

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 14 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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 no longer needed starting with Solidity 0.8. 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;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"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":false,"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"EventMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_date","type":"uint256"}],"name":"EventPreSaleStartChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_date","type":"uint256"}],"name":"EventPublicSaleStartChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_date","type":"uint256"}],"name":"EventWhitelistSaleStartChange","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_MINT_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLICSALE_MINT_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_NFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_AT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"dontPressThisButton","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getBalancePresales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getBalanceWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"parts","outputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"salePart","type":"uint256"},{"internalType":"uint256","name":"royaltiesPart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalesIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_signatureId","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"preSalesMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_signatureId","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"preSalesSignature","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"preSalesStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"publicSalesIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"publicSalesMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalesStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rawOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"reserve","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":[{"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":"uint256","name":"_start","type":"uint256"}],"name":"setPreSalesStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"}],"name":"setPublicSalesStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"}],"name":"setWhitelistSalesStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_signatureId","type":"uint256"}],"name":"signatureIdUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSalesIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"whitelistSalesMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"whitelistSalesSignature","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"whitelistSalesStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405263617477d0600a55636175c950600b556361771ad0600c55600e805460ff191690553480156200003357600080fd5b5060405162003ecc38038062003ecc833981016040819052620000569162000473565b604080518082018252600a8152692bb430ba3a3ca1b63ab160b11b60208083019182528351808501909452600684526557484154545960d01b908401528151919291620000a691600091620003b7565b508051620000bc906001906020840190620003b7565b505050620000d9620000d3620002e960201b60201c565b620002ed565b6007604051806060016040528073764789df2592764eef2408e9524c4ecaddcb31c96001600160a01b03168152602001603281526020016000815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155505060076040518060600160405280738a73c4777163c467b2eee9cd6858b2a56d376b706001600160a01b03168152602001600081526020016032815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550602082015181600101556040820151816002015550506007604051806060016040528073cbcc84766f2950cf867f42d766c43fb2d2ba32566001600160a01b03168152602001603281526020016032815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010155604082015181600201555050620002e2816200033f60201b60201c565b506200058c565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b031633146200039e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620003b390600d906020840190620003b7565b5050565b828054620003c5906200054f565b90600052602060002090601f016020900481019282620003e9576000855562000434565b82601f106200040457805160ff191683800117855562000434565b8280016001018555821562000434579182015b828111156200043457825182559160200191906001019062000417565b506200044292915062000446565b5090565b5b8082111562000442576000815560010162000447565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200048757600080fd5b82516001600160401b03808211156200049f57600080fd5b818501915085601f830112620004b457600080fd5b815181811115620004c957620004c96200045d565b604051601f8201601f19908116603f01168101908382118183101715620004f457620004f46200045d565b8160405282815288868487010111156200050d57600080fd5b600093505b8284101562000531578484018601518185018701529285019262000512565b82841115620005435760008684830101525b98975050505050505050565b600181811c908216806200056457607f821691505b602082108114156200058657634e487b7160e01b600052602260045260246000fd5b50919050565b613930806200059c6000396000f3fe6080604052600436106103595760003560e01c80637f81be69116101bb578063b88d4fde116100f7578063c9eb466211610095578063dd08898f1161006f578063dd08898f14610969578063e985e9c51461097f578063f1746cf3146109c8578063f2fde38b146109de57600080fd5b8063c9eb4662146108df578063ccd4788414610924578063d547cfb71461095457600080fd5b8063c08563ed116100d1578063c08563ed14610861578063c3b0e39214610874578063c485352b14610889578063c87b56dd146108bf57600080fd5b8063b88d4fde146107f6578063bb38a36014610816578063bf7b766d1461084c57600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb465146107ae578063a2309ff8146107ce578063a2c1181e146107e3578063a80c9a70146104fb57600080fd5b806395d89b4114610763578063992db010146107785780639bbce9751461079857600080fd5b80638d007f69116101955780638d007f69146107155780638d859f3e1461072a5780638da5cb5b1461074557600080fd5b80637f81be691461069f578063819b25ba146106d557806384999527146106f557600080fd5b80632cdd74e9116102955780634d192b831161023357806357e721f51161020d57806357e721f5146106355780636352211e1461064a57806370a082311461066a578063715018a61461068a57600080fd5b80634d192b83146105e857806351858e27146105fb57806355f804b31461061557600080fd5b806337369b221161026f57806337369b221461056657806342842e0e1461057b57806342966c681461059b578063438b6300146105bb57600080fd5b80632cdd74e9146105105780633449e83b146105305780633502a7161461055057600080fd5b80631c8d245e1161030257806321c34fcb116102dc57806321c34fcb146104a657806323b872dd146104bb57806326a49e37146104db5780632b03a4aa146104fb57600080fd5b80631c8d245e14610459578063212156141461046e57806321be2eb11461048e57600080fd5b8063081812fc11610333578063081812fc146103f4578063095ea7b31461041457806318160ddd1461043657600080fd5b806301ffc9a71461036557806305dd36841461039a57806306fdde03146103d257600080fd5b3661036057005b600080fd5b34801561037157600080fd5b5061038561038036600461334e565b6109fe565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103ba6103b5366004613433565b610a9b565b6040516001600160a01b039091168152602001610391565b3480156103de57600080fd5b506103e7610af8565b60405161039191906134ec565b34801561040057600080fd5b506103ba61040f3660046134ff565b610b8a565b34801561042057600080fd5b5061043461042f366004613518565b610c35565b005b34801561044257600080fd5b5061044b610d85565b604051908152602001610391565b34801561046557600080fd5b5061044b600581565b34801561047a57600080fd5b506104346104893660046134ff565b610da2565b34801561049a57600080fd5b50600c54421015610385565b3480156104b257600080fd5b50610434610e38565b3480156104c757600080fd5b506104346104d6366004613542565b610fd9565b3480156104e757600080fd5b5061044b6104f63660046134ff565b611061565b34801561050757600080fd5b5061044b600a81565b34801561051c57600080fd5b5061043461052b3660046134ff565b611074565b34801561053c57600080fd5b506103ba61054b366004613433565b611103565b34801561055c57600080fd5b5061044b61271081565b34801561057257600080fd5b5061043461113d565b34801561058757600080fd5b50610434610596366004613542565b6112b4565b3480156105a757600080fd5b506104346105b63660046134ff565b6112cf565b3480156105c757600080fd5b506105db6105d636600461357e565b61133b565b6040516103919190613599565b6104346105f63660046134ff565b611418565b34801561060757600080fd5b50600e546103859060ff1681565b34801561062157600080fd5b506104346106303660046135dd565b611677565b34801561064157600080fd5b506103856116e8565b34801561065657600080fd5b506103ba6106653660046134ff565b611700565b34801561067657600080fd5b5061044b61068536600461357e565b61178b565b34801561069657600080fd5b50610434611825565b3480156106ab57600080fd5b506103ba6106ba3660046134ff565b6000908152600260205260409020546001600160a01b031690565b3480156106e157600080fd5b506104346106f03660046134ff565b61188b565b34801561070157600080fd5b506104346107103660046134ff565b611971565b34801561072157600080fd5b5061044b603281565b34801561073657600080fd5b5061044b66d529ae9e86000081565b34801561075157600080fd5b506006546001600160a01b03166103ba565b34801561076f57600080fd5b506103e7611a00565b34801561078457600080fd5b50610434610793366004613636565b611a0f565b3480156107a457600080fd5b5061044b600b5481565b3480156107ba57600080fd5b506104346107c9366004613651565b611a7c565b3480156107da57600080fd5b5061044b611b41565b6104346107f1366004613684565b611b4c565b34801561080257600080fd5b506104346108113660046136d4565b611ecb565b34801561082257600080fd5b5061044b61083136600461357e565b6001600160a01b03166000908152600f602052604090205490565b34801561085857600080fd5b5061044b600181565b61043461086f366004613684565b611f59565b34801561088057600080fd5b50610385612301565b34801561089557600080fd5b5061044b6108a436600461357e565b6001600160a01b031660009081526010602052604090205490565b3480156108cb57600080fd5b506103e76108da3660046134ff565b612319565b3480156108eb57600080fd5b506108ff6108fa3660046134ff565b612402565b604080516001600160a01b039094168452602084019290925290820152606001610391565b34801561093057600080fd5b5061038561093f3660046134ff565b60009081526011602052604090205460ff1690565b34801561096057600080fd5b506103e761243f565b34801561097557600080fd5b5061044b600c5481565b34801561098b57600080fd5b5061038561099a366004613724565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109d457600080fd5b5061044b600a5481565b3480156109ea57600080fd5b506104346109f936600461357e565b6124cd565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a6157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a9557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b604080516001600160a01b0386166020820152908101849052606081018390526405644a452c6080820152600090610aed9060a0015b60405160208183030381529060405280519060200120836125ac565b90505b949350505050565b606060008054610b079061374e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b339061374e565b8015610b805780601f10610b5557610100808354040283529160200191610b80565b820191906000526020600020905b815481529060010190602001808311610b6357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c195760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c4082611700565b9050806001600160a01b0316836001600160a01b03161415610cca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c10565b336001600160a01b0382161480610d0457506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610d765760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c10565b610d808383612650565b505050565b6000610d9060095490565b600854610d9d919061379f565b905090565b6006546001600160a01b03163314610dfc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600b8190556040518181527f509cf79c87992b99aa6dd19330ff42f36cf75a1b84bc9c8ce31094fcfaf16045906020015b60405180910390a150565b6006546001600160a01b03163314610e925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b4780610ee05760405162461bcd60e51b815260206004820152601460248201527f436f6e74726163742042616c616e6365203d20300000000000000000000000006044820152606401610c10565b60005b60075460ff82161015610fba57600060078260ff1681548110610f0857610f086137b6565b9060005260206000209060030201600201541115610fa857610fa860078260ff1681548110610f3957610f396137b6565b906000526020600020906003020160000160009054906101000a90046001600160a01b0316610fa36064610f9d60078660ff1681548110610f7c57610f7c6137b6565b906000526020600020906003020160020154876126cb90919063ffffffff16565b906126d7565b6126e3565b80610fb2816137cc565b915050610ee3565b50610fd6610fd06006546001600160a01b031690565b476126e3565b50565b610fe4335b82612786565b6110565760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c10565b610d8083838361288a565b6000610a9566d529ae9e860000836126cb565b6006546001600160a01b031633146110ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600c8190556040518181527fb1310ac306da4154533ab0ed626b50b5a136ccd3bce4cc8ed19a41511bf8ffd090602001610e2d565b604080516001600160a01b03861660208201529081018490526060810183905264ad7c2942bc6080820152600090610aed9060a001610ad1565b6006546001600160a01b031633146111975760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b47806111e55760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610c10565b60005b60075460ff82161015610fba57600060078260ff168154811061120d5761120d6137b6565b90600052602060002090600302016001015411156112a2576112a260078260ff168154811061123e5761123e6137b6565b906000526020600020906003020160000160009054906101000a90046001600160a01b0316610fa36064610f9d60078660ff1681548110611281576112816137b6565b906000526020600020906003020160010154876126cb90919063ffffffff16565b806112ac816137cc565b9150506111e8565b610d8083838360405180602001604052806000815250611ecb565b6112d833610fde565b6113245760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610c10565b611332600980546001019055565b610fd681612a64565b606060006113488361178b565b90506000808267ffffffffffffffff81111561136657611366613387565b60405190808252806020026020018201604052801561138f578160200160208202803683370190505b50905060015b61139d611b41565b811161140f576000818152600260205260409020546001600160a01b03878116911614156113fd57808284815181106113d8576113d86137b6565b6020908102919091010152826113ed816137ec565b935050838314156113fd5761140f565b80611407816137ec565b915050611395565b50949350505050565b612710611423611b41565b111561145d5760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610c10565b6006546001600160a01b0316331461151457600c544210156114c15760405162461bcd60e51b815260206004820152601460248201527f5075626c696353616c6573206e6f74206f70656e0000000000000000000000006044820152606401610c10565b600e5460ff16156115145760405162461bcd60e51b815260206004820152601460248201527f4974277320616e20656d657267656e6379212e2e0000000000000000000000006044820152606401610c10565b33600061151f611b41565b905060058311156115725760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610c10565b61271061157f8483613807565b11156115b95760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610c10565b6115c283611061565b3410156116115760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610c10565b60005b838110156116375761162583612b11565b8061162f816137ec565b915050611614565b507fd52f684d5fe81c633b063a2e3975d7bcbea5aca6587537532a9803a2a1907558611661611b41565b60405190815260200160405180910390a1505050565b6006546001600160a01b031633146116d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b80516116e490600d90602084019061329f565b5050565b6000600b544210158015610d9d575050600c54421090565b6000818152600260205260408120546001600160a01b031680610a955760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c10565b60006001600160a01b0382166118095760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c10565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461187f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b6118896000612b41565b565b6006546001600160a01b031633146118e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b60006118ef611b41565b905060326118fd8383613807565b111561194b5760405162461bcd60e51b815260206004820152600860248201527f45786365656465640000000000000000000000000000000000000000000000006044820152606401610c10565b60005b82811015610d805761195f33612b11565b80611969816137ec565b91505061194e565b6006546001600160a01b031633146119cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600a8190556040518181527fbd1129991c474768201cb8aafaf4efebe1ce7a3cc0618327085b1313e031100990602001610e2d565b606060018054610b079061374e565b6006546001600160a01b03163314611a695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600e805460ff1916911515919091179055565b6001600160a01b038216331415611ad55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c10565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610d9d60085490565b612710611b57611b41565b1115611b915760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610c10565b6006546001600160a01b03163314611c4a57611bab612301565b611bf75760405162461bcd60e51b815260206004820152601860248201527f57686974656c6973742053616c6573206e6f74206f70656e00000000000000006044820152606401610c10565b600e5460ff1615611c4a5760405162461bcd60e51b815260206004820152601460248201527f4974277320616e20656d657267656e6379212e2e0000000000000000000000006044820152606401610c10565b336000611c55611b41565b9050600a8511158015611c685750838511155b611cb45760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610c10565b612710611cc18683613807565b1115611cfb5760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610c10565b611d0485611061565b341015611d535760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610c10565b6001600160a01b0382166000908152600f60205260409020548490611d79908790613807565b1115611dc75760405162461bcd60e51b815260206004820152600a60248201527f4d6178206d696e746564000000000000000000000000000000000000000000006044820152606401610c10565b6006546001600160a01b0316611ddf83878787611103565b6001600160a01b031614611e355760405162461bcd60e51b815260206004820152601360248201527f4e6f7420616c6c6f77656420746f206d696e74000000000000000000000000006044820152606401610c10565b6001600160a01b0382166000908152600f602052604081208054879290611e5d908490613807565b90915550600090505b85811015611e8957611e7783612b11565b80611e81816137ec565b915050611e66565b507fd52f684d5fe81c633b063a2e3975d7bcbea5aca6587537532a9803a2a1907558611eb3611b41565b60405190815260200160405180910390a15050505050565b611ed53383612786565b611f475760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c10565b611f5384848484612ba0565b50505050565b612710611f64611b41565b1115611f9e5760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610c10565b6006546001600160a01b0316331461205757611fb86116e8565b6120045760405162461bcd60e51b815260206004820152601160248201527f50726553616c6573206e6f74206f70656e0000000000000000000000000000006044820152606401610c10565b600e5460ff16156120575760405162461bcd60e51b815260206004820152601460248201527f4974277320616e20656d657267656e6379212e2e0000000000000000000000006044820152606401610c10565b336000612062611b41565b9050600a8511156120b55760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610c10565b6127106120c28683613807565b11156120fc5760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610c10565b61210585611061565b3410156121545760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610c10565b6001600160a01b038216600090815260106020526040902054600a9061217b908790613807565b11156121c95760405162461bcd60e51b815260206004820152600a60248201527f4d6178206d696e746564000000000000000000000000000000000000000000006044820152606401610c10565b60008481526011602052604090205460ff16156122285760405162461bcd60e51b815260206004820152601660248201527f5369676e617475726520616c72656164792075736564000000000000000000006044820152606401610c10565b6006546001600160a01b031661224083878787610a9b565b6001600160a01b0316146122965760405162461bcd60e51b815260206004820152601360248201527f4e6f7420616c6c6f77656420746f206d696e74000000000000000000000000006044820152606401610c10565b6000848152601160209081526040808320805460ff191660011790556001600160a01b03851683526010909152812080548792906122d5908490613807565b90915550600090505b85811015611e89576122ef83612b11565b806122f9816137ec565b9150506122de565b6000600a544210158015610d9d575050600b54421090565b6000818152600260205260409020546060906001600160a01b03166123a65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c10565b60006123b0612c29565b905060008151116123d057604051806020016040528060008152506123fb565b806123da84612c38565b6040516020016123eb92919061381f565b6040516020818303038152906040525b9392505050565b6007818154811061241257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116925083565b600d805461244c9061374e565b80601f01602080910402602001604051908101604052809291908181526020018280546124789061374e565b80156124c55780601f1061249a576101008083540402835291602001916124c5565b820191906000526020600020905b8154815290600101906020018083116124a857829003601f168201915b505050505081565b6006546001600160a01b031633146125275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b6001600160a01b0381166125a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c10565b610fd681612b41565b60008151604114156125e05760208201516040830151606084015160001a6125d686828585612d6a565b9350505050610a95565b81516040141561260857602082015160408301516125ff858383612f0a565b92505050610a95565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c10565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061269282611700565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006123fb828461384e565b60006123fb8284613883565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612730576040519150601f19603f3d011682016040523d82523d6000602084013e612735565b606091505b5050905080610d805760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610c10565b6000818152600260205260408120546001600160a01b03166128105760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c10565b600061281b83611700565b9050806001600160a01b0316846001600160a01b031614806128565750836001600160a01b031661284b84610b8a565b6001600160a01b0316145b80610af057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610af0565b826001600160a01b031661289d82611700565b6001600160a01b0316146129195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c10565b6001600160a01b0382166129945760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c10565b61299f600082612650565b6001600160a01b03831660009081526003602052604081208054600192906129c890849061379f565b90915550506001600160a01b03821660009081526003602052604081208054600192906129f6908490613807565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612a6f82611700565b90506000612a7e600084612650565b6001600160a01b0382166000908152600360205260408120805460019290612aa790849061379f565b9091555050600083815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff191690555184916001600160a01b0384811692908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001612b1d611b41565b612b279190613807565b9050612b37600880546001019055565b6116e48282612f4d565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612bab84848461288a565b612bb784848484612f67565b611f535760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c10565b6060600d8054610b079061374e565b606081612c7857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612ca25780612c8c816137ec565b9150612c9b9050600a83613883565b9150612c7c565b60008167ffffffffffffffff811115612cbd57612cbd613387565b6040519080825280601f01601f191660200182016040528015612ce7576020820181803683370190505b5090505b8415610af057612cfc60018361379f565b9150612d09600a86613897565b612d14906030613807565b60f81b818381518110612d2957612d296137b6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d63600a86613883565b9450612ceb565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612de75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c10565b8360ff16601b1480612dfc57508360ff16601c145b612e535760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c10565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612ea7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610aed5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c10565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612f4386828785612d6a565b9695505050505050565b6116e48282604051806020016040528060008152506130c7565b60006001600160a01b0384163b156130bf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fab9033908990889088906004016138ab565b602060405180830381600087803b158015612fc557600080fd5b505af1925050508015612ff5575060408051601f3d908101601f19168201909252612ff2918101906138dd565b60015b6130a5573d808015613023576040519150601f19603f3d011682016040523d82523d6000602084013e613028565b606091505b50805161309d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c10565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610af0565b506001610af0565b6130d18383613150565b6130de6000848484612f67565b610d805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c10565b6001600160a01b0382166131a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c10565b6000818152600260205260409020546001600160a01b03161561320b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c10565b6001600160a01b0382166000908152600360205260408120805460019290613234908490613807565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546132ab9061374e565b90600052602060002090601f0160209004810192826132cd5760008555613313565b82601f106132e657805160ff1916838001178555613313565b82800160010185558215613313579182015b828111156133135782518255916020019190600101906132f8565b5061331f929150613323565b5090565b5b8082111561331f5760008155600101613324565b6001600160e01b031981168114610fd657600080fd5b60006020828403121561336057600080fd5b81356123fb81613338565b80356001600160a01b038116811461338257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156133b8576133b8613387565b604051601f8501601f19908116603f011681019082821181831017156133e0576133e0613387565b816040528093508581528686860111156133f957600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261342457600080fd5b6123fb8383356020850161339d565b6000806000806080858703121561344957600080fd5b6134528561336b565b93506020850135925060408501359150606085013567ffffffffffffffff81111561347c57600080fd5b61348887828801613413565b91505092959194509250565b60005b838110156134af578181015183820152602001613497565b83811115611f535750506000910152565b600081518084526134d8816020860160208601613494565b601f01601f19169290920160200192915050565b6020815260006123fb60208301846134c0565b60006020828403121561351157600080fd5b5035919050565b6000806040838503121561352b57600080fd5b6135348361336b565b946020939093013593505050565b60008060006060848603121561355757600080fd5b6135608461336b565b925061356e6020850161336b565b9150604084013590509250925092565b60006020828403121561359057600080fd5b6123fb8261336b565b6020808252825182820181905260009190848201906040850190845b818110156135d1578351835292840192918401916001016135b5565b50909695505050505050565b6000602082840312156135ef57600080fd5b813567ffffffffffffffff81111561360657600080fd5b8201601f8101841361361757600080fd5b610af08482356020840161339d565b8035801515811461338257600080fd5b60006020828403121561364857600080fd5b6123fb82613626565b6000806040838503121561366457600080fd5b61366d8361336b565b915061367b60208401613626565b90509250929050565b60008060006060848603121561369957600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156136be57600080fd5b6136ca86828701613413565b9150509250925092565b600080600080608085870312156136ea57600080fd5b6136f38561336b565b93506137016020860161336b565b925060408501359150606085013567ffffffffffffffff81111561347c57600080fd5b6000806040838503121561373757600080fd5b6137408361336b565b915061367b6020840161336b565b600181811c9082168061376257607f821691505b6020821081141561378357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156137b1576137b1613789565b500390565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8114156137e3576137e3613789565b60010192915050565b600060001982141561380057613800613789565b5060010190565b6000821982111561381a5761381a613789565b500190565b60008351613831818460208801613494565b835190830190613845818360208801613494565b01949350505050565b600081600019048311821515161561386857613868613789565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826138925761389261386d565b500490565b6000826138a6576138a661386d565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f4360808301846134c0565b6000602082840312156138ef57600080fd5b81516123fb8161333856fea2646970667358221220dd0bad6e69c8ba5d7bf1f9f4bb912e229ae2b3adc52a936e9f2028e7971418c964736f6c634300080900330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6170692e7768617474792e636c75622f7768617474792f00

Deployed Bytecode

0x6080604052600436106103595760003560e01c80637f81be69116101bb578063b88d4fde116100f7578063c9eb466211610095578063dd08898f1161006f578063dd08898f14610969578063e985e9c51461097f578063f1746cf3146109c8578063f2fde38b146109de57600080fd5b8063c9eb4662146108df578063ccd4788414610924578063d547cfb71461095457600080fd5b8063c08563ed116100d1578063c08563ed14610861578063c3b0e39214610874578063c485352b14610889578063c87b56dd146108bf57600080fd5b8063b88d4fde146107f6578063bb38a36014610816578063bf7b766d1461084c57600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb465146107ae578063a2309ff8146107ce578063a2c1181e146107e3578063a80c9a70146104fb57600080fd5b806395d89b4114610763578063992db010146107785780639bbce9751461079857600080fd5b80638d007f69116101955780638d007f69146107155780638d859f3e1461072a5780638da5cb5b1461074557600080fd5b80637f81be691461069f578063819b25ba146106d557806384999527146106f557600080fd5b80632cdd74e9116102955780634d192b831161023357806357e721f51161020d57806357e721f5146106355780636352211e1461064a57806370a082311461066a578063715018a61461068a57600080fd5b80634d192b83146105e857806351858e27146105fb57806355f804b31461061557600080fd5b806337369b221161026f57806337369b221461056657806342842e0e1461057b57806342966c681461059b578063438b6300146105bb57600080fd5b80632cdd74e9146105105780633449e83b146105305780633502a7161461055057600080fd5b80631c8d245e1161030257806321c34fcb116102dc57806321c34fcb146104a657806323b872dd146104bb57806326a49e37146104db5780632b03a4aa146104fb57600080fd5b80631c8d245e14610459578063212156141461046e57806321be2eb11461048e57600080fd5b8063081812fc11610333578063081812fc146103f4578063095ea7b31461041457806318160ddd1461043657600080fd5b806301ffc9a71461036557806305dd36841461039a57806306fdde03146103d257600080fd5b3661036057005b600080fd5b34801561037157600080fd5b5061038561038036600461334e565b6109fe565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103ba6103b5366004613433565b610a9b565b6040516001600160a01b039091168152602001610391565b3480156103de57600080fd5b506103e7610af8565b60405161039191906134ec565b34801561040057600080fd5b506103ba61040f3660046134ff565b610b8a565b34801561042057600080fd5b5061043461042f366004613518565b610c35565b005b34801561044257600080fd5b5061044b610d85565b604051908152602001610391565b34801561046557600080fd5b5061044b600581565b34801561047a57600080fd5b506104346104893660046134ff565b610da2565b34801561049a57600080fd5b50600c54421015610385565b3480156104b257600080fd5b50610434610e38565b3480156104c757600080fd5b506104346104d6366004613542565b610fd9565b3480156104e757600080fd5b5061044b6104f63660046134ff565b611061565b34801561050757600080fd5b5061044b600a81565b34801561051c57600080fd5b5061043461052b3660046134ff565b611074565b34801561053c57600080fd5b506103ba61054b366004613433565b611103565b34801561055c57600080fd5b5061044b61271081565b34801561057257600080fd5b5061043461113d565b34801561058757600080fd5b50610434610596366004613542565b6112b4565b3480156105a757600080fd5b506104346105b63660046134ff565b6112cf565b3480156105c757600080fd5b506105db6105d636600461357e565b61133b565b6040516103919190613599565b6104346105f63660046134ff565b611418565b34801561060757600080fd5b50600e546103859060ff1681565b34801561062157600080fd5b506104346106303660046135dd565b611677565b34801561064157600080fd5b506103856116e8565b34801561065657600080fd5b506103ba6106653660046134ff565b611700565b34801561067657600080fd5b5061044b61068536600461357e565b61178b565b34801561069657600080fd5b50610434611825565b3480156106ab57600080fd5b506103ba6106ba3660046134ff565b6000908152600260205260409020546001600160a01b031690565b3480156106e157600080fd5b506104346106f03660046134ff565b61188b565b34801561070157600080fd5b506104346107103660046134ff565b611971565b34801561072157600080fd5b5061044b603281565b34801561073657600080fd5b5061044b66d529ae9e86000081565b34801561075157600080fd5b506006546001600160a01b03166103ba565b34801561076f57600080fd5b506103e7611a00565b34801561078457600080fd5b50610434610793366004613636565b611a0f565b3480156107a457600080fd5b5061044b600b5481565b3480156107ba57600080fd5b506104346107c9366004613651565b611a7c565b3480156107da57600080fd5b5061044b611b41565b6104346107f1366004613684565b611b4c565b34801561080257600080fd5b506104346108113660046136d4565b611ecb565b34801561082257600080fd5b5061044b61083136600461357e565b6001600160a01b03166000908152600f602052604090205490565b34801561085857600080fd5b5061044b600181565b61043461086f366004613684565b611f59565b34801561088057600080fd5b50610385612301565b34801561089557600080fd5b5061044b6108a436600461357e565b6001600160a01b031660009081526010602052604090205490565b3480156108cb57600080fd5b506103e76108da3660046134ff565b612319565b3480156108eb57600080fd5b506108ff6108fa3660046134ff565b612402565b604080516001600160a01b039094168452602084019290925290820152606001610391565b34801561093057600080fd5b5061038561093f3660046134ff565b60009081526011602052604090205460ff1690565b34801561096057600080fd5b506103e761243f565b34801561097557600080fd5b5061044b600c5481565b34801561098b57600080fd5b5061038561099a366004613724565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109d457600080fd5b5061044b600a5481565b3480156109ea57600080fd5b506104346109f936600461357e565b6124cd565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a6157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a9557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b604080516001600160a01b0386166020820152908101849052606081018390526405644a452c6080820152600090610aed9060a0015b60405160208183030381529060405280519060200120836125ac565b90505b949350505050565b606060008054610b079061374e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b339061374e565b8015610b805780601f10610b5557610100808354040283529160200191610b80565b820191906000526020600020905b815481529060010190602001808311610b6357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c195760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c4082611700565b9050806001600160a01b0316836001600160a01b03161415610cca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c10565b336001600160a01b0382161480610d0457506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610d765760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c10565b610d808383612650565b505050565b6000610d9060095490565b600854610d9d919061379f565b905090565b6006546001600160a01b03163314610dfc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600b8190556040518181527f509cf79c87992b99aa6dd19330ff42f36cf75a1b84bc9c8ce31094fcfaf16045906020015b60405180910390a150565b6006546001600160a01b03163314610e925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b4780610ee05760405162461bcd60e51b815260206004820152601460248201527f436f6e74726163742042616c616e6365203d20300000000000000000000000006044820152606401610c10565b60005b60075460ff82161015610fba57600060078260ff1681548110610f0857610f086137b6565b9060005260206000209060030201600201541115610fa857610fa860078260ff1681548110610f3957610f396137b6565b906000526020600020906003020160000160009054906101000a90046001600160a01b0316610fa36064610f9d60078660ff1681548110610f7c57610f7c6137b6565b906000526020600020906003020160020154876126cb90919063ffffffff16565b906126d7565b6126e3565b80610fb2816137cc565b915050610ee3565b50610fd6610fd06006546001600160a01b031690565b476126e3565b50565b610fe4335b82612786565b6110565760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c10565b610d8083838361288a565b6000610a9566d529ae9e860000836126cb565b6006546001600160a01b031633146110ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600c8190556040518181527fb1310ac306da4154533ab0ed626b50b5a136ccd3bce4cc8ed19a41511bf8ffd090602001610e2d565b604080516001600160a01b03861660208201529081018490526060810183905264ad7c2942bc6080820152600090610aed9060a001610ad1565b6006546001600160a01b031633146111975760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b47806111e55760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610c10565b60005b60075460ff82161015610fba57600060078260ff168154811061120d5761120d6137b6565b90600052602060002090600302016001015411156112a2576112a260078260ff168154811061123e5761123e6137b6565b906000526020600020906003020160000160009054906101000a90046001600160a01b0316610fa36064610f9d60078660ff1681548110611281576112816137b6565b906000526020600020906003020160010154876126cb90919063ffffffff16565b806112ac816137cc565b9150506111e8565b610d8083838360405180602001604052806000815250611ecb565b6112d833610fde565b6113245760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610c10565b611332600980546001019055565b610fd681612a64565b606060006113488361178b565b90506000808267ffffffffffffffff81111561136657611366613387565b60405190808252806020026020018201604052801561138f578160200160208202803683370190505b50905060015b61139d611b41565b811161140f576000818152600260205260409020546001600160a01b03878116911614156113fd57808284815181106113d8576113d86137b6565b6020908102919091010152826113ed816137ec565b935050838314156113fd5761140f565b80611407816137ec565b915050611395565b50949350505050565b612710611423611b41565b111561145d5760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610c10565b6006546001600160a01b0316331461151457600c544210156114c15760405162461bcd60e51b815260206004820152601460248201527f5075626c696353616c6573206e6f74206f70656e0000000000000000000000006044820152606401610c10565b600e5460ff16156115145760405162461bcd60e51b815260206004820152601460248201527f4974277320616e20656d657267656e6379212e2e0000000000000000000000006044820152606401610c10565b33600061151f611b41565b905060058311156115725760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610c10565b61271061157f8483613807565b11156115b95760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610c10565b6115c283611061565b3410156116115760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610c10565b60005b838110156116375761162583612b11565b8061162f816137ec565b915050611614565b507fd52f684d5fe81c633b063a2e3975d7bcbea5aca6587537532a9803a2a1907558611661611b41565b60405190815260200160405180910390a1505050565b6006546001600160a01b031633146116d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b80516116e490600d90602084019061329f565b5050565b6000600b544210158015610d9d575050600c54421090565b6000818152600260205260408120546001600160a01b031680610a955760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c10565b60006001600160a01b0382166118095760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c10565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461187f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b6118896000612b41565b565b6006546001600160a01b031633146118e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b60006118ef611b41565b905060326118fd8383613807565b111561194b5760405162461bcd60e51b815260206004820152600860248201527f45786365656465640000000000000000000000000000000000000000000000006044820152606401610c10565b60005b82811015610d805761195f33612b11565b80611969816137ec565b91505061194e565b6006546001600160a01b031633146119cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600a8190556040518181527fbd1129991c474768201cb8aafaf4efebe1ce7a3cc0618327085b1313e031100990602001610e2d565b606060018054610b079061374e565b6006546001600160a01b03163314611a695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b600e805460ff1916911515919091179055565b6001600160a01b038216331415611ad55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c10565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610d9d60085490565b612710611b57611b41565b1115611b915760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610c10565b6006546001600160a01b03163314611c4a57611bab612301565b611bf75760405162461bcd60e51b815260206004820152601860248201527f57686974656c6973742053616c6573206e6f74206f70656e00000000000000006044820152606401610c10565b600e5460ff1615611c4a5760405162461bcd60e51b815260206004820152601460248201527f4974277320616e20656d657267656e6379212e2e0000000000000000000000006044820152606401610c10565b336000611c55611b41565b9050600a8511158015611c685750838511155b611cb45760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610c10565b612710611cc18683613807565b1115611cfb5760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610c10565b611d0485611061565b341015611d535760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610c10565b6001600160a01b0382166000908152600f60205260409020548490611d79908790613807565b1115611dc75760405162461bcd60e51b815260206004820152600a60248201527f4d6178206d696e746564000000000000000000000000000000000000000000006044820152606401610c10565b6006546001600160a01b0316611ddf83878787611103565b6001600160a01b031614611e355760405162461bcd60e51b815260206004820152601360248201527f4e6f7420616c6c6f77656420746f206d696e74000000000000000000000000006044820152606401610c10565b6001600160a01b0382166000908152600f602052604081208054879290611e5d908490613807565b90915550600090505b85811015611e8957611e7783612b11565b80611e81816137ec565b915050611e66565b507fd52f684d5fe81c633b063a2e3975d7bcbea5aca6587537532a9803a2a1907558611eb3611b41565b60405190815260200160405180910390a15050505050565b611ed53383612786565b611f475760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c10565b611f5384848484612ba0565b50505050565b612710611f64611b41565b1115611f9e5760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610c10565b6006546001600160a01b0316331461205757611fb86116e8565b6120045760405162461bcd60e51b815260206004820152601160248201527f50726553616c6573206e6f74206f70656e0000000000000000000000000000006044820152606401610c10565b600e5460ff16156120575760405162461bcd60e51b815260206004820152601460248201527f4974277320616e20656d657267656e6379212e2e0000000000000000000000006044820152606401610c10565b336000612062611b41565b9050600a8511156120b55760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610c10565b6127106120c28683613807565b11156120fc5760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610c10565b61210585611061565b3410156121545760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610c10565b6001600160a01b038216600090815260106020526040902054600a9061217b908790613807565b11156121c95760405162461bcd60e51b815260206004820152600a60248201527f4d6178206d696e746564000000000000000000000000000000000000000000006044820152606401610c10565b60008481526011602052604090205460ff16156122285760405162461bcd60e51b815260206004820152601660248201527f5369676e617475726520616c72656164792075736564000000000000000000006044820152606401610c10565b6006546001600160a01b031661224083878787610a9b565b6001600160a01b0316146122965760405162461bcd60e51b815260206004820152601360248201527f4e6f7420616c6c6f77656420746f206d696e74000000000000000000000000006044820152606401610c10565b6000848152601160209081526040808320805460ff191660011790556001600160a01b03851683526010909152812080548792906122d5908490613807565b90915550600090505b85811015611e89576122ef83612b11565b806122f9816137ec565b9150506122de565b6000600a544210158015610d9d575050600b54421090565b6000818152600260205260409020546060906001600160a01b03166123a65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c10565b60006123b0612c29565b905060008151116123d057604051806020016040528060008152506123fb565b806123da84612c38565b6040516020016123eb92919061381f565b6040516020818303038152906040525b9392505050565b6007818154811061241257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116925083565b600d805461244c9061374e565b80601f01602080910402602001604051908101604052809291908181526020018280546124789061374e565b80156124c55780601f1061249a576101008083540402835291602001916124c5565b820191906000526020600020905b8154815290600101906020018083116124a857829003601f168201915b505050505081565b6006546001600160a01b031633146125275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c10565b6001600160a01b0381166125a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c10565b610fd681612b41565b60008151604114156125e05760208201516040830151606084015160001a6125d686828585612d6a565b9350505050610a95565b81516040141561260857602082015160408301516125ff858383612f0a565b92505050610a95565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c10565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061269282611700565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006123fb828461384e565b60006123fb8284613883565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612730576040519150601f19603f3d011682016040523d82523d6000602084013e612735565b606091505b5050905080610d805760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610c10565b6000818152600260205260408120546001600160a01b03166128105760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c10565b600061281b83611700565b9050806001600160a01b0316846001600160a01b031614806128565750836001600160a01b031661284b84610b8a565b6001600160a01b0316145b80610af057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610af0565b826001600160a01b031661289d82611700565b6001600160a01b0316146129195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c10565b6001600160a01b0382166129945760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c10565b61299f600082612650565b6001600160a01b03831660009081526003602052604081208054600192906129c890849061379f565b90915550506001600160a01b03821660009081526003602052604081208054600192906129f6908490613807565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612a6f82611700565b90506000612a7e600084612650565b6001600160a01b0382166000908152600360205260408120805460019290612aa790849061379f565b9091555050600083815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff191690555184916001600160a01b0384811692908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001612b1d611b41565b612b279190613807565b9050612b37600880546001019055565b6116e48282612f4d565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612bab84848461288a565b612bb784848484612f67565b611f535760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c10565b6060600d8054610b079061374e565b606081612c7857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612ca25780612c8c816137ec565b9150612c9b9050600a83613883565b9150612c7c565b60008167ffffffffffffffff811115612cbd57612cbd613387565b6040519080825280601f01601f191660200182016040528015612ce7576020820181803683370190505b5090505b8415610af057612cfc60018361379f565b9150612d09600a86613897565b612d14906030613807565b60f81b818381518110612d2957612d296137b6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d63600a86613883565b9450612ceb565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612de75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c10565b8360ff16601b1480612dfc57508360ff16601c145b612e535760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c10565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612ea7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610aed5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c10565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612f4386828785612d6a565b9695505050505050565b6116e48282604051806020016040528060008152506130c7565b60006001600160a01b0384163b156130bf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fab9033908990889088906004016138ab565b602060405180830381600087803b158015612fc557600080fd5b505af1925050508015612ff5575060408051601f3d908101601f19168201909252612ff2918101906138dd565b60015b6130a5573d808015613023576040519150601f19603f3d011682016040523d82523d6000602084013e613028565b606091505b50805161309d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c10565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610af0565b506001610af0565b6130d18383613150565b6130de6000848484612f67565b610d805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c10565b6001600160a01b0382166131a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c10565b6000818152600260205260409020546001600160a01b03161561320b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c10565b6001600160a01b0382166000908152600360205260408120805460019290613234908490613807565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546132ab9061374e565b90600052602060002090601f0160209004810192826132cd5760008555613313565b82601f106132e657805160ff1916838001178555613313565b82800160010185558215613313579182015b828111156133135782518255916020019190600101906132f8565b5061331f929150613323565b5090565b5b8082111561331f5760008155600101613324565b6001600160e01b031981168114610fd657600080fd5b60006020828403121561336057600080fd5b81356123fb81613338565b80356001600160a01b038116811461338257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156133b8576133b8613387565b604051601f8501601f19908116603f011681019082821181831017156133e0576133e0613387565b816040528093508581528686860111156133f957600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261342457600080fd5b6123fb8383356020850161339d565b6000806000806080858703121561344957600080fd5b6134528561336b565b93506020850135925060408501359150606085013567ffffffffffffffff81111561347c57600080fd5b61348887828801613413565b91505092959194509250565b60005b838110156134af578181015183820152602001613497565b83811115611f535750506000910152565b600081518084526134d8816020860160208601613494565b601f01601f19169290920160200192915050565b6020815260006123fb60208301846134c0565b60006020828403121561351157600080fd5b5035919050565b6000806040838503121561352b57600080fd5b6135348361336b565b946020939093013593505050565b60008060006060848603121561355757600080fd5b6135608461336b565b925061356e6020850161336b565b9150604084013590509250925092565b60006020828403121561359057600080fd5b6123fb8261336b565b6020808252825182820181905260009190848201906040850190845b818110156135d1578351835292840192918401916001016135b5565b50909695505050505050565b6000602082840312156135ef57600080fd5b813567ffffffffffffffff81111561360657600080fd5b8201601f8101841361361757600080fd5b610af08482356020840161339d565b8035801515811461338257600080fd5b60006020828403121561364857600080fd5b6123fb82613626565b6000806040838503121561366457600080fd5b61366d8361336b565b915061367b60208401613626565b90509250929050565b60008060006060848603121561369957600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156136be57600080fd5b6136ca86828701613413565b9150509250925092565b600080600080608085870312156136ea57600080fd5b6136f38561336b565b93506137016020860161336b565b925060408501359150606085013567ffffffffffffffff81111561347c57600080fd5b6000806040838503121561373757600080fd5b6137408361336b565b915061367b6020840161336b565b600181811c9082168061376257607f821691505b6020821081141561378357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156137b1576137b1613789565b500390565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8114156137e3576137e3613789565b60010192915050565b600060001982141561380057613800613789565b5060010190565b6000821982111561381a5761381a613789565b500190565b60008351613831818460208801613494565b835190830190613845818360208801613494565b01949350505050565b600081600019048311821515161561386857613868613789565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826138925761389261386d565b500490565b6000826138a6576138a661386d565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f4360808301846134c0565b6000602082840312156138ef57600080fd5b81516123fb8161333856fea2646970667358221220dd0bad6e69c8ba5d7bf1f9f4bb912e229ae2b3adc52a936e9f2028e7971418c964736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6170692e7768617474792e636c75622f7768617474792f00

-----Decoded View---------------
Arg [0] : baseURI (string): https://api.whatty.club/whatty/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [2] : 68747470733a2f2f6170692e7768617474792e636c75622f7768617474792f00


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

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