ETH Price: $3,612.80 (-2.15%)

Token

Crypto Tech Women (CTW)
 

Overview

Max Total Supply

8,831 CTW

Holders

3,735

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
badmans.eth
Balance
2 CTW
0x975d07636e8ca4d78f77ef86cdbd5f8cb3923b8e
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The ‘Crypto Tech Women’ project is an NFT collection of 8,888 ERC-721 tokens stored on the Ethereum Blockchain.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoTechWomen

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 100 runs

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

pragma solidity 0.8.11;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";

contract CryptoTechWomen is ERC721, Ownable, ReentrancyGuard, Pausable {

    using Math for uint256;

    mapping(address => uint8) public preSaleMinted; // Amounts of minted tokens by users on the presale

    uint256 public publicSaleDate;  // Timestamp of public sale start date
    uint16 public totalSupply;  // Current amount of minted tokens
    uint16 public mintCounter;  // The next token ID to be minted (not equal to totalSupply because of the give away)
    uint16 public bpsToDonationFund;    // The number of BPs to be send to the Donation Fund after the milestone reached
    uint16 public airdropCounter; // Current amount of airdropped tokens
    address public donationFundAddress; // The Donation Fund address
    address public communityFundAddress;    // The Community Fund address
    string public baseURI;  // Base URI for tokens
    string public contractURI;  // Contract URI

    bool public uriSet; // If base URI set or not


    uint256 constant public publicSalePrice = 0.07 ether;   // Token price at the public sale stage
    uint256 constant public preSalePrice = 0.06 ether;  // Token price at the pre sale stage
    uint16 public maxTotalSupply = 8888;   // Max amount of tokens available for mint in total
    uint16 constant public preSaleTokenLimit = 7000;    // Max amount of tokens available for mint at the pre sale
    uint8 constant public preSaleLimitPerUser = 2;  // Max amount of tokens available for mint at the pre sale per address
    uint8 public amountForGiveAway = 150;  // Amount of tokens reserved for give away
    uint8 constant public publicSaleLimitPerTx = 10;    // Max amount of tokens available for mint at the public sale per transaction

    uint16 constant private BPS_BASE = 10000;   // Max amount of base points (1/10000)

    bytes32 public merkleRoot;    // Merkle root for the whitelist

    Milestone[] public milestones;  // Milestones of the sale

    struct Milestone {
        uint16 triggerId;   // ID when the milestone is triggered
        bool eventEmitted;  // If event was emmited or not
    }

    event PreSaleMint(address user, uint256 amount);
    event PublicSaleMint(address user, uint256 amount);
    event SoldOut();
    event MilestoneReached(uint256 triggerId);
    event GiveAway(address[] addresses);
    
    /*
    * @param _name The name of the NFT
    * @param _symbol The symbol of the NFT
    * @param _contractURI The contract URI
    * @param _merkleRoot Merkle root for the whitelist
    * @param _publicSaleDate Timestamp of the public sale stage date
    * @param _donationFundAddress The Donation Fund address
    * @param _communityFundAddress The Community Fund address
    * @param _bpsToDonationFund Amount of BPs for the Donation Fund
    * @param _triggerIds Trigger IDs for milestones
    */
    constructor (
        string memory _name, 
        string memory _symbol, 
        string memory _contractURI,
        bytes32 _merkleRoot,
        uint256 _publicSaleDate,
        address _donationFundAddress,
        address _communityFundAddress,
        uint16 _bpsToDonationFund,
        uint16[] memory _triggerIds,
        string memory _prerevealUri
    ) 
        ERC721(_name, _symbol) 
    {
        require(_publicSaleDate > 0, "invalid publicSaleDate");
        require(uint256(_merkleRoot) > 0, "invalid MerkleRoot");
        require(_donationFundAddress != address(0), "donationFundAddress is 0");
        require(_communityFundAddress != address(0), "communityFundAddress is 0");
        require(_bpsToDonationFund <= BPS_BASE, "invalid bpsToDonationFund");
        merkleRoot = _merkleRoot;
        publicSaleDate = _publicSaleDate;
        donationFundAddress = _donationFundAddress;
        communityFundAddress = _communityFundAddress;
        bpsToDonationFund = _bpsToDonationFund;
        contractURI = _contractURI;
        for (uint256 i; i < _triggerIds.length; i++) {
            milestones.push(Milestone(_triggerIds[i], false));
        }
        baseURI = _prerevealUri;
    }

    /*
    * @notice Distrubites specified amounts of ETH to the Donation Fund and the Community Fund
    * @dev Only owner can call it
    * @param _amountToDonationFund Amount of ETH for the Donation Fund
    * @param _amountToCommunityFund Amount of ETH for the Community Fund
    */
    function distributeFunds(uint256 _amountToDonationFund, uint256 _amountToCommunityFund) external onlyOwner {
        uint256 balance = address(this).balance;
        require(_amountToDonationFund + _amountToCommunityFund <= balance, "not enough balance");
        _sendETH(payable(donationFundAddress), _amountToDonationFund);
        _sendETH(payable(communityFundAddress), _amountToCommunityFund);
    }

    /*
    * @notice Sets amount of BPs for the Donation Fund
    * @dev Only owner can call it
    * @param _bpsToDonationFund Amount of BPs
    */
    function setBpsToDonationFund(uint16 _bpsToDonationFund) external onlyOwner {
        require(_bpsToDonationFund <= BPS_BASE, "incorrect bpsToDonationFund");
        bpsToDonationFund = _bpsToDonationFund;
    }

    /*
    * @notice Sets Merkle root
    * @dev Only owner can call it
    * @param _newRoot New Merkle root
    */
    function setMerkleRoot(bytes32 _newRoot) external onlyOwner {
        merkleRoot = _newRoot;
    }

    /*
    * @notice Sets the Donation Fund Address
    * @dev Only owner can call it
    * @param _donationFundAddress The new address of the Donation Fund
    */
    function setDonationFundAddress(address _donationFundAddress) external onlyOwner {
        require(_donationFundAddress != address(0), "donationFundAddress is 0");
        donationFundAddress = _donationFundAddress;
    }

    /*
    * @notice Sets the Community Fund Address
    * @dev Only owner can call it
    * @param _communityFundAddress The new address of the Commmunity Fund
    */
    function setCommunityFundAddress(address _communityFundAddress) external onlyOwner {
        require(_communityFundAddress != address(0), "communityFundAddress is 0");
        communityFundAddress = _communityFundAddress;
    }

    /*
    * @notice Sets the timestamp of the public sale start date
    * @dev Only owner can call it
    * @param _publicSaleDate Timestamp of the public sale start date
    */
    function setPublicSaleDate(uint256 _publicSaleDate) external onlyOwner {
        require(_publicSaleDate > 0, "incorrect publicSaleDate");
        publicSaleDate = _publicSaleDate;
    }

    /*
    * @notice Pauses contract
    * @dev Only owner can call it
    */
    function pause() external onlyOwner whenNotPaused {
        _pause();
    }

    /*
    * @notice Unpauses contract
    * @dev Only owner can call it
    */
    function unpause() external onlyOwner whenPaused {
        _unpause();
    }

    /*
    * @notice Mints specified amount of tokens on the pre sale and registrates 
    * the user if correct MerkleProof was submitted. Must be called if the 
    * user isn't registered yet (didn't mint tokens)
    * @dev Non reentrant
    * @param _amount Amount of tokens to mint
    * @param _proof Merkle proof for the user
    */
    function preSaleMint(
        uint256 _amount, 
        bytes32[] memory _proof
    ) 
        external 
        payable 
        nonReentrant
        whenNotPaused
    {
        require(preSaleMinted[_msgSender()] == 0, "already registered");
        require(_verify(_leaf(_msgSender()), _proof), "incorrect proof");
        _preSaleMint(_amount);
    }

    /*
    * @notice Mints specified amount of tokens on the pre sale. Must be called 
    * if the user already registered (already did mint tokens)
    * @dev Non reentrant
    * @param _amount Amount of tokens to mint
    */
    function preSaleMint(uint256 _amount) external payable nonReentrant whenNotPaused {
        require(preSaleMinted[_msgSender()] > 0, "not registered");
        _preSaleMint(_amount);
    }

    /*
    * @notice Mints specified amount of tokens on the public sale
    * @dev Non reentrant. Emits PublicSaleMint event
    * @param _amount Amount of tokens to mint
    */
    function publicSaleMint(uint256 _amount) external payable nonReentrant whenNotPaused {
        require(block.timestamp >= publicSaleDate, "public sale isn't started");
        require(_amount > 0 && _amount <= publicSaleLimitPerTx, "invalid amount");
        uint256 maxTotalSupply_ = maxTotalSupply;
        uint256 totalSupply_ = totalSupply;
        require(totalSupply_ + _amount <= maxTotalSupply_, "already sold out");
        require(mintCounter + _amount <= maxTotalSupply_ - amountForGiveAway, "the rest is reserved");
        _buyAndRefund(totalSupply_, _amount, publicSalePrice);
        if (totalSupply_ + _amount == maxTotalSupply_) emit SoldOut();
        emit PublicSaleMint(_msgSender(), _amount);
    }

    /*
    * @notice Mints specified IDs to specified addresses
    * @dev Only owner can call it. Lengths of arrays must be equal. 
    * @param _accounts The list of addresses to mint tokens to
    */
    function giveaway(address[] memory _accounts) external onlyOwner {
        uint256 maxTotSup = maxTotalSupply;
        uint256 currentTotalSupply = totalSupply;
        require(airdropCounter + _accounts.length <= amountForGiveAway, "limit for airdrop exceeded");
        require(currentTotalSupply + _accounts.length <= maxTotSup, "maxTotalSupply exceeded");
        uint256 counter = currentTotalSupply;
        for (uint256 i; i < _accounts.length; i++) {
            _safeMint(_accounts[i], counter);
            counter++;
        }
        airdropCounter += uint16(_accounts.length);
        totalSupply += uint16(_accounts.length);
        if (currentTotalSupply + _accounts.length == maxTotSup) emit SoldOut();  // emit SoldOut in case some tokens were airdropped after the sale
        emit GiveAway(_accounts);
    }

    /*
    * @notice Sets base URI for tokens
    * @dev Only owner can call it
    * @param _newBaseURI The new base URI
    */
    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
        uriSet = true;
    }

    /*
    * @notice Withdraws specified amount of ETH to specified address
    * @dev Only owner can call it
    * @param _to The address of ETH receiver
    * @param _amount The amount of ETH to withdraw
    */
    function withdrawTo(address payable _to, uint256 _amount) external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance >= _amount, "unsufficient balance");
        _sendETH(_to, _amount);
    }

    /*
    * @dev The main logic for the pre sale mint. Emits PreSaleMint event
    * @param _amount The amount of tokens 
    */
    function _preSaleMint(uint256 _amount) private {
        require(block.timestamp < publicSaleDate, "presale stage finished");
        require(_amount > 0, "invalid amount");
        require(preSaleMinted[_msgSender()] + _amount <= preSaleLimitPerUser, "limit per user exceeded");
        uint256 totalSupply_ = totalSupply;
        require(totalSupply_ + _amount <= preSaleTokenLimit, "presale token limit exceeded");
        _buyAndRefund(totalSupply_, _amount, preSalePrice);
        preSaleMinted[_msgSender()] += uint8(_amount);
        emit PreSaleMint(_msgSender(), _amount);
    }

    /*
    * @dev Mints tokens for the user and refunds ETH if too much was passed
    * @param _amount The amount of tokens 
    * @param _price The price for each token 
    */
    function _buyAndRefund(uint256 _totalSupply, uint256 _amount, uint256 _price) internal {
        uint256 totalCost = _amount * _price;
        require(msg.value >= totalCost, "not enough funds");
        for (uint256 i; i < _amount; i++) {
            _safeMint(_msgSender(), _totalSupply + i);
        }
        totalSupply += uint16(_amount);
        mintCounter += uint16(_amount);
        _checkMilestones(_totalSupply, _amount, _price);
        uint256 refund = msg.value - totalCost;
        if (refund > 0) {
            _sendETH(payable(_msgSender()), refund);
        }
    }

    /*
    * @dev Checks if a milestone was reached, do some logic if it was. 
    * Emits MilestoneReached event
    * @param _amount Amount of tokens to buy
    * @param _oldMintCounter The mint counter 
    * @param _price The current price of the stage 
    */
    function _checkMilestones(uint256 _oldMintCounter, uint256 _amount, uint256 _price) private {
        Milestone memory milestone = milestones[0];
        if (_oldMintCounter + _amount >= milestone.triggerId) {
            uint256 countAfterTrigger = Math.min(_oldMintCounter + _amount - milestone.triggerId, _amount);
            uint256 toPay = bpsToDonationFund * countAfterTrigger * _price / BPS_BASE;
            _sendETH(payable(donationFundAddress), toPay);
            if (!milestone.eventEmitted) {
                emit MilestoneReached(milestone.triggerId);
                milestones[0].eventEmitted = true;
            }
        } 
        milestone = milestones[1];
        if (
            !milestone.eventEmitted &&
            _oldMintCounter + _amount >= milestone.triggerId
        ) {
            emit MilestoneReached(milestone.triggerId);
            milestones[1].eventEmitted = true;
        }
    }

    /*
    * @dev sends ETH to the specified address
    * @param _to The receiver
    * @param _amount The amount of ETH to send 
    */
    function _sendETH(address payable _to, uint256 _amount) internal {
        (bool success, ) = _to.call{value: _amount}("");
        require(success, "send ETH failed");
    }

    /*
    * @dev Returns the base URI
    */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (!uriSet) return _baseURI();
        return ERC721.tokenURI(tokenId);
    }

    function setUriSet(bool status) external {
        uriSet = status;
    }


    /*
    * @dev Returns the leaf for Merkle tree
    * @param _account Address of the user
    * @param _userId ID of the user
    */
    function _leaf(address _account)
    internal pure returns (bytes32)
    {
        return keccak256(abi.encodePacked(_account));
    }

    /*
    * @dev Verifies if the proof is valid or not
    * @param _leaf The leaf for the user
    * @param _proof Proof for the user
    */
    function _verify(bytes32 _leaf, bytes32[] memory _proof)
    internal view returns (bool)
    {
        return MerkleProof.verify(_proof, merkleRoot, _leaf);
    }

    /*
    * @dev receive() function to let the contract accept ETH
    */
    receive() external payable{}

}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: 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 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);

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

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

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

        emit Transfer(owner, address(0), 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.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 : 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 4 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

File 8 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 9 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 10 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 11 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);
    }

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

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

File 12 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 13 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 14 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 15 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_publicSaleDate","type":"uint256"},{"internalType":"address","name":"_donationFundAddress","type":"address"},{"internalType":"address","name":"_communityFundAddress","type":"address"},{"internalType":"uint16","name":"_bpsToDonationFund","type":"uint16"},{"internalType":"uint16[]","name":"_triggerIds","type":"uint16[]"},{"internalType":"string","name":"_prerevealUri","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":"address[]","name":"addresses","type":"address[]"}],"name":"GiveAway","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"triggerId","type":"uint256"}],"name":"MilestoneReached","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PreSaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PublicSaleMint","type":"event"},{"anonymous":false,"inputs":[],"name":"SoldOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"airdropCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForGiveAway","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bpsToDonationFund","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityFundAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountToDonationFund","type":"uint256"},{"internalType":"uint256","name":"_amountToCommunityFund","type":"uint256"}],"name":"distributeFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"donationFundAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"milestones","outputs":[{"internalType":"uint16","name":"triggerId","type":"uint16"},{"internalType":"bool","name":"eventEmitted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleLimitPerUser","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleMinted","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleTokenLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleLimitPerTx","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_bpsToDonationFund","type":"uint16"}],"name":"setBpsToDonationFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_communityFundAddress","type":"address"}],"name":"setCommunityFundAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_donationFundAddress","type":"address"}],"name":"setDonationFundAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleDate","type":"uint256"}],"name":"setPublicSaleDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setUriSet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600f805463ffffff001916639622b8001790553480156200002457600080fd5b5060405162003b9738038062003b97833981016040819052620000479162000616565b89518a908a9062000060906000906020850190620003d1565b50805162000076906001906020840190620003d1565b505050620000936200008d6200037b60201b60201c565b6200037f565b60016007556008805460ff1916905585620000f55760405162461bcd60e51b815260206004820152601660248201527f696e76616c6964207075626c696353616c65446174650000000000000000000060448201526064015b60405180910390fd5b86620001395760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a590813595c9adb19549bdbdd60721b6044820152606401620000ec565b6001600160a01b038516620001915760405162461bcd60e51b815260206004820152601860248201527f646f6e6174696f6e46756e6441646472657373206973203000000000000000006044820152606401620000ec565b6001600160a01b038416620001e95760405162461bcd60e51b815260206004820152601960248201527f636f6d6d756e69747946756e64416464726573732069732030000000000000006044820152606401620000ec565b61271061ffff84161115620002415760405162461bcd60e51b815260206004820152601960248201527f696e76616c696420627073546f446f6e6174696f6e46756e64000000000000006044820152606401620000ec565b6010879055600a869055600b8054600c80546001600160a01b0319166001600160a01b038881169190911790915563ffff000160201b600160e01b0319909116680100000000000000009188169190910261ffff60201b19161764010000000061ffff8616021790558751620002bf90600e9060208b0190620003d1565b5060005b8251811015620003545760116040518060400160405280858481518110620002ef57620002ef62000744565b60209081029190910181015161ffff9081168352600092820183905284546001810186559483529181902083519401805493909101511515620100000262ffffff199093169390911692909217179055806200034b816200075a565b915050620002c3565b5080516200036a90600d906020840190620003d1565b5050505050505050505050620007c1565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620003df9062000784565b90600052602060002090601f0160209004810192826200040357600085556200044e565b82601f106200041e57805160ff19168380011785556200044e565b828001600101855582156200044e579182015b828111156200044e57825182559160200191906001019062000431565b506200045c92915062000460565b5090565b5b808211156200045c576000815560010162000461565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004b857620004b862000477565b604052919050565b600082601f830112620004d257600080fd5b81516001600160401b03811115620004ee57620004ee62000477565b602062000504601f8301601f191682016200048d565b82815285828487010111156200051957600080fd5b60005b83811015620005395785810183015182820184015282016200051c565b838111156200054b5760008385840101525b5095945050505050565b80516001600160a01b03811681146200056d57600080fd5b919050565b805161ffff811681146200056d57600080fd5b600082601f8301126200059757600080fd5b815160206001600160401b03821115620005b557620005b562000477565b8160051b620005c68282016200048d565b9283528481018201928281019087851115620005e157600080fd5b83870192505b848310156200060b57620005fb8362000572565b82529183019190830190620005e7565b979650505050505050565b6000806000806000806000806000806101408b8d0312156200063757600080fd5b8a516001600160401b03808211156200064f57600080fd5b6200065d8e838f01620004c0565b9b5060208d01519150808211156200067457600080fd5b620006828e838f01620004c0565b9a5060408d01519150808211156200069957600080fd5b620006a78e838f01620004c0565b995060608d0151985060808d01519750620006c560a08e0162000555565b9650620006d560c08e0162000555565b9550620006e560e08e0162000572565b94506101008d0151915080821115620006fd57600080fd5b6200070b8e838f0162000585565b93506101208d01519150808211156200072357600080fd5b50620007328d828e01620004c0565b9150509295989b9194979a5092959850565b634e487b7160e01b600052603260045260246000fd5b60006000198214156200077d57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806200079957607f821691505b60208210811415620007bb57634e487b7160e01b600052602260045260246000fd5b50919050565b6133c680620007d16000396000f3fe6080604052600436106102c35760003560e01c80636c0360eb11610170578063b3ab66b0116100cc578063e757c17d11610085578063e757c17d1461084d578063e89e4ed614610868578063e8a3d485146108a2578063e985e9c5146108b7578063eced3873146108d7578063eea87c3b146108ed578063f2fde38b1461091457600080fd5b8063b3ab66b014610796578063b709c0c9146107a9578063b88d4fde146107c9578063b9d87e88146107e9578063c87b56dd14610817578063e18135d21461083757600080fd5b80638da5cb5b116101295780638da5cb5b146106cf5780638f95ef6b146106e457806395d89b41146107045780639b6860c814610719578063a22cb46514610734578063a4bf3c8f14610754578063a82734c51461077457600080fd5b80636c0360eb1461063d57806370a0823114610652578063715018a6146106725780637835c635146106875780637cb647591461069a5780638456cb59146106ba57600080fd5b80633f4ba83a1161021f57806350a3a728116101d857806350a3a72814610566578063529be43b1461058057806355f804b3146105b05780635c975abb146105d05780636352211e146105e857806366a27f5514610608578063681453661461062857600080fd5b80633f4ba83a146104bc57806342842e0e146104d157806342e267b6146104f157806346aa52ce14610512578063482769f3146105335780634c220f6e1461055357600080fd5b80631dc03bce1161027c5780631dc03bce146103ce578063205c2878146103f157806323b872dd1461041157806328d46df0146104315780632a8ce97e146104515780632ab4d052146104785780632eb4a7ab1461049857600080fd5b806301ffc9a7146102cf57806306fdde0314610304578063081812fc14610326578063095ea7b31461035e5780630e54a8831461038057806318160ddd146103a057600080fd5b366102ca57005b600080fd5b3480156102db57600080fd5b506102ef6102ea366004612b1f565b610934565b60405190151581526020015b60405180910390f35b34801561031057600080fd5b50610319610986565b6040516102fb9190612b94565b34801561033257600080fd5b50610346610341366004612ba7565b610a18565b6040516001600160a01b0390911681526020016102fb565b34801561036a57600080fd5b5061037e610379366004612bd5565b610aa5565b005b34801561038c57600080fd5b5061037e61039b366004612ba7565b610bb6565b3480156103ac57600080fd5b50600b546103bb9061ffff1681565b60405161ffff90911681526020016102fb565b3480156103da57600080fd5b50600b546103bb90640100000000900461ffff1681565b3480156103fd57600080fd5b5061037e61040c366004612bd5565b610c35565b34801561041d57600080fd5b5061037e61042c366004612c01565b610cb6565b34801561043d57600080fd5b5061037e61044c366004612cab565b610ce7565b34801561045d57600080fd5b50610466600281565b60405160ff90911681526020016102fb565b34801561048457600080fd5b50600f546103bb90610100900461ffff1681565b3480156104a457600080fd5b506104ae60105481565b6040519081526020016102fb565b3480156104c857600080fd5b5061037e610f30565b3480156104dd57600080fd5b5061037e6104ec366004612c01565b610f8b565b3480156104fd57600080fd5b50600f54610466906301000000900460ff1681565b34801561051e57600080fd5b50600b546103bb9062010000900461ffff1681565b34801561053f57600080fd5b5061037e61054e366004612d49565b610fa6565b61037e610561366004612d6b565b611057565b34801561057257600080fd5b50600f546102ef9060ff1681565b34801561058c57600080fd5b5061046661059b366004612e07565b60096020526000908152604090205460ff1681565b3480156105bc57600080fd5b5061037e6105cb366004612e7b565b611188565b3480156105dc57600080fd5b5060085460ff166102ef565b3480156105f457600080fd5b50610346610603366004612ba7565b6111db565b34801561061457600080fd5b5061037e610623366004612e07565b611252565b34801561063457600080fd5b50610466600a81565b34801561064957600080fd5b506103196112f5565b34801561065e57600080fd5b506104ae61066d366004612e07565b611383565b34801561067e57600080fd5b5061037e61140a565b61037e610695366004612ba7565b611443565b3480156106a657600080fd5b5061037e6106b5366004612ba7565b6114ef565b3480156106c657600080fd5b5061037e611523565b3480156106db57600080fd5b5061034661157d565b3480156106f057600080fd5b50600c54610346906001600160a01b031681565b34801561071057600080fd5b5061031961158c565b34801561072557600080fd5b506104ae66f8b0a10e47000081565b34801561074057600080fd5b5061037e61074f366004612ed8565b61159b565b34801561076057600080fd5b5061037e61076f366004612e07565b61165c565b34801561078057600080fd5b50600b546103bb90600160301b900461ffff1681565b61037e6107a4366004612ba7565b611708565b3480156107b557600080fd5b5061037e6107c4366004612f0d565b61193b565b3480156107d557600080fd5b5061037e6107e4366004612f31565b6119e4565b3480156107f557600080fd5b5061037e610804366004612fb0565b600f805460ff1916911515919091179055565b34801561082357600080fd5b50610319610832366004612ba7565b611a1c565b34801561084357600080fd5b506103bb611b5881565b34801561085957600080fd5b506104ae66d529ae9e86000081565b34801561087457600080fd5b50610888610883366004612ba7565b611a3a565b6040805161ffff90931683529015156020830152016102fb565b3480156108ae57600080fd5b50610319611a69565b3480156108c357600080fd5b506102ef6108d2366004612fcb565b611a76565b3480156108e357600080fd5b506104ae600a5481565b3480156108f957600080fd5b50600b5461034690600160401b90046001600160a01b031681565b34801561092057600080fd5b5061037e61092f366004612e07565b611aa4565b60006001600160e01b031982166380ac58cd60e01b148061096557506001600160e01b03198216635b5e139f60e01b145b8061098057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461099590613004565b80601f01602080910402602001604051908101604052809291908181526020018280546109c190613004565b8015610a0e5780601f106109e357610100808354040283529160200191610a0e565b820191906000526020600020905b8154815290600101906020018083116109f157829003601f168201915b5050505050905090565b6000610a2382611b44565b610a895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ab0826111db565b9050806001600160a01b0316836001600160a01b03161415610b1e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a80565b336001600160a01b0382161480610b3a5750610b3a8133611a76565b610ba75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a80565b610bb18383611b61565b505050565b33610bbf61157d565b6001600160a01b031614610be55760405162461bcd60e51b8152600401610a809061303f565b60008111610c305760405162461bcd60e51b8152602060048201526018602482015277696e636f7272656374207075626c696353616c654461746560401b6044820152606401610a80565b600a55565b33610c3e61157d565b6001600160a01b031614610c645760405162461bcd60e51b8152600401610a809061303f565b4781811015610cac5760405162461bcd60e51b8152602060048201526014602482015273756e73756666696369656e742062616c616e636560601b6044820152606401610a80565b610bb18383611bcf565b610cc03382611c64565b610cdc5760405162461bcd60e51b8152600401610a8090613074565b610bb1838383611d2e565b33610cf061157d565b6001600160a01b031614610d165760405162461bcd60e51b8152600401610a809061303f565b600f54600b548251610100830461ffff9081169381841693630100000090910460ff1692610d4d929091600160301b9004166130db565b1115610d9b5760405162461bcd60e51b815260206004820152601a60248201527f6c696d697420666f722061697264726f702065786365656465640000000000006044820152606401610a80565b81835182610da991906130db565b1115610df15760405162461bcd60e51b81526020600482015260176024820152761b585e151bdd185b14dd5c1c1b1e48195e18d959591959604a1b6044820152606401610a80565b8060005b8451811015610e4157610e21858281518110610e1357610e136130f3565b602002602001015183611ece565b81610e2b81613109565b9250508080610e3990613109565b915050610df5565b508351600b8054600690610e61908490600160301b900461ffff16613124565b92506101000a81548161ffff021916908361ffff1602179055508351600b60008282829054906101000a900461ffff16610e9b9190613124565b92506101000a81548161ffff021916908361ffff16021790555082845183610ec391906130db565b1415610ef3576040517f52df9fe5b9c9a7b0b4fdc2c9f89387959e35e4209c2a8d133a2b8165edad2a0490600090a15b7f2071fd8d86fe3391ede810f741226b4ccde0e24388376f403dd0009cfeebd02884604051610f22919061314a565b60405180910390a150505050565b33610f3961157d565b6001600160a01b031614610f5f5760405162461bcd60e51b8152600401610a809061303f565b60085460ff16610f815760405162461bcd60e51b8152600401610a8090613197565b610f89611eec565b565b610bb1838383604051806020016040528060008152506119e4565b33610faf61157d565b6001600160a01b031614610fd55760405162461bcd60e51b8152600401610a809061303f565b4780610fe183856130db565b11156110245760405162461bcd60e51b81526020600482015260126024820152716e6f7420656e6f7567682062616c616e636560701b6044820152606401610a80565b600b5461104190600160401b90046001600160a01b031684611bcf565b600c54610bb1906001600160a01b031683611bcf565b6002600754141561107a5760405162461bcd60e51b8152600401610a80906131c5565b600260075560085460ff16156110a25760405162461bcd60e51b8152600401610a80906131fc565b3360009081526009602052604090205460ff16156110f75760405162461bcd60e51b8152602060048201526012602482015271185b1c9958591e481c9959da5cdd195c995960721b6044820152606401610a80565b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206111389082611f58565b6111765760405162461bcd60e51b815260206004820152600f60248201526e34b731b7b93932b1ba10383937b7b360891b6044820152606401610a80565b61117f82611f6e565b50506001600755565b3361119161157d565b6001600160a01b0316146111b75760405162461bcd60e51b8152600401610a809061303f565b80516111ca90600d906020840190612a70565b5050600f805460ff19166001179055565b6000818152600260205260408120546001600160a01b0316806109805760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a80565b3361125b61157d565b6001600160a01b0316146112815760405162461bcd60e51b8152600401610a809061303f565b6001600160a01b0381166112d35760405162461bcd60e51b81526020600482015260196024820152780636f6d6d756e69747946756e6441646472657373206973203603c1b6044820152606401610a80565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600d805461130290613004565b80601f016020809104026020016040519081016040528092919081815260200182805461132e90613004565b801561137b5780601f106113505761010080835404028352916020019161137b565b820191906000526020600020905b81548152906001019060200180831161135e57829003601f168201915b505050505081565b60006001600160a01b0382166113ee5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a80565b506001600160a01b031660009081526003602052604090205490565b3361141361157d565b6001600160a01b0316146114395760405162461bcd60e51b8152600401610a809061303f565b610f89600061213c565b600260075414156114665760405162461bcd60e51b8152600401610a80906131c5565b600260075560085460ff161561148e5760405162461bcd60e51b8152600401610a80906131fc565b3360009081526009602052604090205460ff166114de5760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd081c9959da5cdd195c995960921b6044820152606401610a80565b6114e781611f6e565b506001600755565b336114f861157d565b6001600160a01b03161461151e5760405162461bcd60e51b8152600401610a809061303f565b601055565b3361152c61157d565b6001600160a01b0316146115525760405162461bcd60e51b8152600401610a809061303f565b60085460ff16156115755760405162461bcd60e51b8152600401610a80906131fc565b610f8961218e565b6006546001600160a01b031690565b60606001805461099590613004565b6001600160a01b0382163314156115f05760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a80565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3361166561157d565b6001600160a01b03161461168b5760405162461bcd60e51b8152600401610a809061303f565b6001600160a01b0381166116dc5760405162461bcd60e51b81526020600482015260186024820152770646f6e6174696f6e46756e644164647265737320697320360441b6044820152606401610a80565b600b80546001600160a01b03909216600160401b02600160401b600160e01b0319909216919091179055565b6002600754141561172b5760405162461bcd60e51b8152600401610a80906131c5565b600260075560085460ff16156117535760405162461bcd60e51b8152600401610a80906131fc565b600a544210156117a15760405162461bcd60e51b81526020600482015260196024820152781c1d589b1a58c81cd85b19481a5cdb89dd081cdd185c9d1959603a1b6044820152606401610a80565b6000811180156117b25750600a8111155b6117ce5760405162461bcd60e51b8152600401610a8090613226565b600f54600b5461ffff61010090920482169116816117ec84836130db565b111561182d5760405162461bcd60e51b815260206004820152601060248201526f185b1c9958591e481cdbdb19081bdd5d60821b6044820152606401610a80565b600f54611844906301000000900460ff168361324e565b600b5461185c90859062010000900461ffff166130db565b11156118a15760405162461bcd60e51b81526020600482015260146024820152731d1a19481c995cdd081a5cc81c995cd95c9d995960621b6044820152606401610a80565b6118b3818466f8b0a10e4700006121e6565b816118be84836130db565b14156118ee576040517f52df9fe5b9c9a7b0b4fdc2c9f89387959e35e4209c2a8d133a2b8165edad2a0490600090a15b7f239739eec2dbaccb604ff1de6462a5eccd5f3148924696dd88f04d636ff582b533604080516001600160a01b039092168252602082018690520160405180910390a15050600160075550565b3361194461157d565b6001600160a01b03161461196a5760405162461bcd60e51b8152600401610a809061303f565b61271061ffff821611156119c05760405162461bcd60e51b815260206004820152601b60248201527f696e636f727265637420627073546f446f6e6174696f6e46756e6400000000006044820152606401610a80565b600b805461ffff9092166401000000000265ffff0000000019909216919091179055565b6119ee3383611c64565b611a0a5760405162461bcd60e51b8152600401610a8090613074565b611a1684848484612304565b50505050565b600f5460609060ff16611a3157610980612337565b61098082612346565b60118181548110611a4a57600080fd5b60009182526020909120015461ffff8116915062010000900460ff1682565b600e805461130290613004565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33611aad61157d565b6001600160a01b031614611ad35760405162461bcd60e51b8152600401610a809061303f565b6001600160a01b038116611b385760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a80565b611b418161213c565b50565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b96826111db565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611c1c576040519150601f19603f3d011682016040523d82523d6000602084013e611c21565b606091505b5050905080610bb15760405162461bcd60e51b815260206004820152600f60248201526e1cd95b99081155120819985a5b1959608a1b6044820152606401610a80565b6000611c6f82611b44565b611cd05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a80565b6000611cdb836111db565b9050806001600160a01b0316846001600160a01b03161480611d165750836001600160a01b0316611d0b84610a18565b6001600160a01b0316145b80611d265750611d268185611a76565b949350505050565b826001600160a01b0316611d41826111db565b6001600160a01b031614611da95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a80565b6001600160a01b038216611e0b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a80565b611e16600082611b61565b6001600160a01b0383166000908152600360205260408120805460019290611e3f90849061324e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e6d9084906130db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611ee8828260405180602001604052806000815250612410565b5050565b60085460ff16611f0e5760405162461bcd60e51b8152600401610a8090613197565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611f678260105485612443565b9392505050565b600a544210611fb85760405162461bcd60e51b81526020600482015260166024820152751c1c995cd85b19481cdd1859d948199a5b9a5cda195960521b6044820152606401610a80565b60008111611fd85760405162461bcd60e51b8152600401610a8090613226565b33600090815260096020526040902054600290611ff990839060ff166130db565b11156120415760405162461bcd60e51b81526020600482015260176024820152761b1a5b5a5d081c195c881d5cd95c88195e18d959591959604a1b6044820152606401610a80565b600b5461ffff16611b5861205583836130db565b11156120a35760405162461bcd60e51b815260206004820152601c60248201527f70726573616c6520746f6b656e206c696d6974206578636565646564000000006044820152606401610a80565b6120b5818366d529ae9e8600006121e6565b33600090815260096020526040812080548492906120d790849060ff16613265565b92506101000a81548160ff021916908360ff1602179055507f4c4aacb77138163adee65ce2fc6ebc1c7111049703ca6a69485495b46c9393586121173390565b604080516001600160a01b039092168252602082018590520160405180910390a15050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff16156121b15760405162461bcd60e51b8152600401610a80906131fc565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f3b3390565b60006121f2828461328a565b9050803410156122375760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b6044820152606401610a80565b60005b83811015612267576122553361225083886130db565b611ece565b8061225f81613109565b91505061223a565b50600b805484919060009061228190849061ffff16613124565b92506101000a81548161ffff021916908361ffff16021790555082600b60028282829054906101000a900461ffff166122ba9190613124565b92506101000a81548161ffff021916908361ffff1602179055506122df8484846124f2565b60006122eb823461324e565b905080156122fd576122fd3382611bcf565b5050505050565b61230f848484611d2e565b61231b8484848461272c565b611a165760405162461bcd60e51b8152600401610a80906132a9565b6060600d805461099590613004565b606061235182611b44565b6123b55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a80565b60006123bf612337565b905060008151116123df5760405180602001604052806000815250611f67565b806123e98461282a565b6040516020016123fa9291906132fb565b6040516020818303038152906040529392505050565b61241a8383612927565b612427600084848461272c565b610bb15760405162461bcd60e51b8152600401610a80906132a9565b600081815b85518110156124e7576000868281518110612465576124656130f3565b602002602001015190508083116124a75760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506124d4565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806124df81613109565b915050612448565b509092149392505050565b60006011600081548110612508576125086130f3565b60009182526020918290206040805180820190915291015461ffff81168083526201000090910460ff16151592820192909252915061254784866130db565b1061264d5780516000906125739061ffff1661256386886130db565b61256d919061324e565b85612a5a565b600b54909150600090612710908590612599908590640100000000900461ffff1661328a565b6125a3919061328a565b6125ad9190613337565b600b549091506125cd90600160401b90046001600160a01b031682611bcf565b826020015161264a57825160405161ffff90911681527f25fcf68a4a87624d7edc6ca2f4f2cd6975c31a3133784e8e8e7942fa65974f6c9060200160405180910390a160016011600081548110612626576126266130f3565b60009182526020909120018054911515620100000262ff0000199092169190911790555b50505b6011600181548110612661576126616130f3565b60009182526020918290206040805180820190915291015461ffff8116825262010000900460ff16158015928201839052909250906126ae5750805161ffff166126ab84866130db565b10155b15611a1657805160405161ffff90911681527f25fcf68a4a87624d7edc6ca2f4f2cd6975c31a3133784e8e8e7942fa65974f6c9060200160405180910390a160016011600181548110612703576127036130f3565b60009182526020909120018054911515620100000262ff00001990921691909117905550505050565b60006001600160a01b0384163b1561281f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061277090339089908890889060040161334b565b6020604051808303816000875af19250505080156127ab575060408051601f3d908101601f191682019092526127a891810190613388565b60015b612805573d8080156127d9576040519150601f19603f3d011682016040523d82523d6000602084013e6127de565b606091505b5080516127fd5760405162461bcd60e51b8152600401610a80906132a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d26565b506001949350505050565b60608161284e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612878578061286281613109565b91506128719050600a83613337565b9150612852565b6000816001600160401b0381111561289257612892612c42565b6040519080825280601f01601f1916602001820160405280156128bc576020820181803683370190505b5090505b8415611d26576128d160018361324e565b91506128de600a866133a5565b6128e99060306130db565b60f81b8183815181106128fe576128fe6130f3565b60200101906001600160f81b031916908160001a905350612920600a86613337565b94506128c0565b6001600160a01b03821661297d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a80565b61298681611b44565b156129d35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a80565b6001600160a01b03821660009081526003602052604081208054600192906129fc9084906130db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310612a695781611f67565b5090919050565b828054612a7c90613004565b90600052602060002090601f016020900481019282612a9e5760008555612ae4565b82601f10612ab757805160ff1916838001178555612ae4565b82800160010185558215612ae4579182015b82811115612ae4578251825591602001919060010190612ac9565b50612af0929150612af4565b5090565b5b80821115612af05760008155600101612af5565b6001600160e01b031981168114611b4157600080fd5b600060208284031215612b3157600080fd5b8135611f6781612b09565b60005b83811015612b57578181015183820152602001612b3f565b83811115611a165750506000910152565b60008151808452612b80816020860160208601612b3c565b601f01601f19169290920160200192915050565b602081526000611f676020830184612b68565b600060208284031215612bb957600080fd5b5035919050565b6001600160a01b0381168114611b4157600080fd5b60008060408385031215612be857600080fd5b8235612bf381612bc0565b946020939093013593505050565b600080600060608486031215612c1657600080fd5b8335612c2181612bc0565b92506020840135612c3181612bc0565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612c8057612c80612c42565b604052919050565b60006001600160401b03821115612ca157612ca1612c42565b5060051b60200190565b60006020808385031215612cbe57600080fd5b82356001600160401b03811115612cd457600080fd5b8301601f81018513612ce557600080fd5b8035612cf8612cf382612c88565b612c58565b81815260059190911b82018301908381019087831115612d1757600080fd5b928401925b82841015612d3e578335612d2f81612bc0565b82529284019290840190612d1c565b979650505050505050565b60008060408385031215612d5c57600080fd5b50508035926020909101359150565b60008060408385031215612d7e57600080fd5b823591506020808401356001600160401b03811115612d9c57600080fd5b8401601f81018613612dad57600080fd5b8035612dbb612cf382612c88565b81815260059190911b82018301908381019088831115612dda57600080fd5b928401925b82841015612df857833582529284019290840190612ddf565b80955050505050509250929050565b600060208284031215612e1957600080fd5b8135611f6781612bc0565b60006001600160401b03831115612e3d57612e3d612c42565b612e50601f8401601f1916602001612c58565b9050828152838383011115612e6457600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e8d57600080fd5b81356001600160401b03811115612ea357600080fd5b8201601f81018413612eb457600080fd5b611d2684823560208401612e24565b80358015158114612ed357600080fd5b919050565b60008060408385031215612eeb57600080fd5b8235612ef681612bc0565b9150612f0460208401612ec3565b90509250929050565b600060208284031215612f1f57600080fd5b813561ffff81168114611f6757600080fd5b60008060008060808587031215612f4757600080fd5b8435612f5281612bc0565b93506020850135612f6281612bc0565b92506040850135915060608501356001600160401b03811115612f8457600080fd5b8501601f81018713612f9557600080fd5b612fa487823560208401612e24565b91505092959194509250565b600060208284031215612fc257600080fd5b611f6782612ec3565b60008060408385031215612fde57600080fd5b8235612fe981612bc0565b91506020830135612ff981612bc0565b809150509250929050565b600181811c9082168061301857607f821691505b6020821081141561303957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156130ee576130ee6130c5565b500190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561311d5761311d6130c5565b5060010190565b600061ffff808316818516808303821115613141576131416130c5565b01949350505050565b6020808252825182820181905260009190848201906040850190845b8181101561318b5783516001600160a01b031683529284019291840191600101613166565b50909695505050505050565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b600082821015613260576132606130c5565b500390565b600060ff821660ff84168060ff03821115613282576132826130c5565b019392505050565b60008160001904831182151516156132a4576132a46130c5565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000835161330d818460208801612b3c565b835190830190613141818360208801612b3c565b634e487b7160e01b600052601260045260246000fd5b60008261334657613346613321565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061337e90830184612b68565b9695505050505050565b60006020828403121561339a57600080fd5b8151611f6781612b09565b6000826133b4576133b4613321565b50069056fea164736f6c634300080b000a0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0e0e911ecfd89889db13808bd914de3605b92d063234b13f1352c47c8b1ef79b000000000000000000000000000000000000000000000000000000000621a5c90000000000000000000000000ca451e4ea3fc0920ffc2cb2819a175168b8c36810000000000000000000000006d3e69349072565f81ac838e9b6dd251b462527500000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000000000000000001143727970746f205465636820576f6d656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034354570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d614a466a787a4a6e53626a43706637663152466a6953687335536b42486d374648637564796a5957514b374c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000de40000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d50426f583931395278526d4466326743414b7a45794e6831315976695a594269665876754153436b4451435a0000000000000000000000

Deployed Bytecode

0x6080604052600436106102c35760003560e01c80636c0360eb11610170578063b3ab66b0116100cc578063e757c17d11610085578063e757c17d1461084d578063e89e4ed614610868578063e8a3d485146108a2578063e985e9c5146108b7578063eced3873146108d7578063eea87c3b146108ed578063f2fde38b1461091457600080fd5b8063b3ab66b014610796578063b709c0c9146107a9578063b88d4fde146107c9578063b9d87e88146107e9578063c87b56dd14610817578063e18135d21461083757600080fd5b80638da5cb5b116101295780638da5cb5b146106cf5780638f95ef6b146106e457806395d89b41146107045780639b6860c814610719578063a22cb46514610734578063a4bf3c8f14610754578063a82734c51461077457600080fd5b80636c0360eb1461063d57806370a0823114610652578063715018a6146106725780637835c635146106875780637cb647591461069a5780638456cb59146106ba57600080fd5b80633f4ba83a1161021f57806350a3a728116101d857806350a3a72814610566578063529be43b1461058057806355f804b3146105b05780635c975abb146105d05780636352211e146105e857806366a27f5514610608578063681453661461062857600080fd5b80633f4ba83a146104bc57806342842e0e146104d157806342e267b6146104f157806346aa52ce14610512578063482769f3146105335780634c220f6e1461055357600080fd5b80631dc03bce1161027c5780631dc03bce146103ce578063205c2878146103f157806323b872dd1461041157806328d46df0146104315780632a8ce97e146104515780632ab4d052146104785780632eb4a7ab1461049857600080fd5b806301ffc9a7146102cf57806306fdde0314610304578063081812fc14610326578063095ea7b31461035e5780630e54a8831461038057806318160ddd146103a057600080fd5b366102ca57005b600080fd5b3480156102db57600080fd5b506102ef6102ea366004612b1f565b610934565b60405190151581526020015b60405180910390f35b34801561031057600080fd5b50610319610986565b6040516102fb9190612b94565b34801561033257600080fd5b50610346610341366004612ba7565b610a18565b6040516001600160a01b0390911681526020016102fb565b34801561036a57600080fd5b5061037e610379366004612bd5565b610aa5565b005b34801561038c57600080fd5b5061037e61039b366004612ba7565b610bb6565b3480156103ac57600080fd5b50600b546103bb9061ffff1681565b60405161ffff90911681526020016102fb565b3480156103da57600080fd5b50600b546103bb90640100000000900461ffff1681565b3480156103fd57600080fd5b5061037e61040c366004612bd5565b610c35565b34801561041d57600080fd5b5061037e61042c366004612c01565b610cb6565b34801561043d57600080fd5b5061037e61044c366004612cab565b610ce7565b34801561045d57600080fd5b50610466600281565b60405160ff90911681526020016102fb565b34801561048457600080fd5b50600f546103bb90610100900461ffff1681565b3480156104a457600080fd5b506104ae60105481565b6040519081526020016102fb565b3480156104c857600080fd5b5061037e610f30565b3480156104dd57600080fd5b5061037e6104ec366004612c01565b610f8b565b3480156104fd57600080fd5b50600f54610466906301000000900460ff1681565b34801561051e57600080fd5b50600b546103bb9062010000900461ffff1681565b34801561053f57600080fd5b5061037e61054e366004612d49565b610fa6565b61037e610561366004612d6b565b611057565b34801561057257600080fd5b50600f546102ef9060ff1681565b34801561058c57600080fd5b5061046661059b366004612e07565b60096020526000908152604090205460ff1681565b3480156105bc57600080fd5b5061037e6105cb366004612e7b565b611188565b3480156105dc57600080fd5b5060085460ff166102ef565b3480156105f457600080fd5b50610346610603366004612ba7565b6111db565b34801561061457600080fd5b5061037e610623366004612e07565b611252565b34801561063457600080fd5b50610466600a81565b34801561064957600080fd5b506103196112f5565b34801561065e57600080fd5b506104ae61066d366004612e07565b611383565b34801561067e57600080fd5b5061037e61140a565b61037e610695366004612ba7565b611443565b3480156106a657600080fd5b5061037e6106b5366004612ba7565b6114ef565b3480156106c657600080fd5b5061037e611523565b3480156106db57600080fd5b5061034661157d565b3480156106f057600080fd5b50600c54610346906001600160a01b031681565b34801561071057600080fd5b5061031961158c565b34801561072557600080fd5b506104ae66f8b0a10e47000081565b34801561074057600080fd5b5061037e61074f366004612ed8565b61159b565b34801561076057600080fd5b5061037e61076f366004612e07565b61165c565b34801561078057600080fd5b50600b546103bb90600160301b900461ffff1681565b61037e6107a4366004612ba7565b611708565b3480156107b557600080fd5b5061037e6107c4366004612f0d565b61193b565b3480156107d557600080fd5b5061037e6107e4366004612f31565b6119e4565b3480156107f557600080fd5b5061037e610804366004612fb0565b600f805460ff1916911515919091179055565b34801561082357600080fd5b50610319610832366004612ba7565b611a1c565b34801561084357600080fd5b506103bb611b5881565b34801561085957600080fd5b506104ae66d529ae9e86000081565b34801561087457600080fd5b50610888610883366004612ba7565b611a3a565b6040805161ffff90931683529015156020830152016102fb565b3480156108ae57600080fd5b50610319611a69565b3480156108c357600080fd5b506102ef6108d2366004612fcb565b611a76565b3480156108e357600080fd5b506104ae600a5481565b3480156108f957600080fd5b50600b5461034690600160401b90046001600160a01b031681565b34801561092057600080fd5b5061037e61092f366004612e07565b611aa4565b60006001600160e01b031982166380ac58cd60e01b148061096557506001600160e01b03198216635b5e139f60e01b145b8061098057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461099590613004565b80601f01602080910402602001604051908101604052809291908181526020018280546109c190613004565b8015610a0e5780601f106109e357610100808354040283529160200191610a0e565b820191906000526020600020905b8154815290600101906020018083116109f157829003601f168201915b5050505050905090565b6000610a2382611b44565b610a895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ab0826111db565b9050806001600160a01b0316836001600160a01b03161415610b1e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a80565b336001600160a01b0382161480610b3a5750610b3a8133611a76565b610ba75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a80565b610bb18383611b61565b505050565b33610bbf61157d565b6001600160a01b031614610be55760405162461bcd60e51b8152600401610a809061303f565b60008111610c305760405162461bcd60e51b8152602060048201526018602482015277696e636f7272656374207075626c696353616c654461746560401b6044820152606401610a80565b600a55565b33610c3e61157d565b6001600160a01b031614610c645760405162461bcd60e51b8152600401610a809061303f565b4781811015610cac5760405162461bcd60e51b8152602060048201526014602482015273756e73756666696369656e742062616c616e636560601b6044820152606401610a80565b610bb18383611bcf565b610cc03382611c64565b610cdc5760405162461bcd60e51b8152600401610a8090613074565b610bb1838383611d2e565b33610cf061157d565b6001600160a01b031614610d165760405162461bcd60e51b8152600401610a809061303f565b600f54600b548251610100830461ffff9081169381841693630100000090910460ff1692610d4d929091600160301b9004166130db565b1115610d9b5760405162461bcd60e51b815260206004820152601a60248201527f6c696d697420666f722061697264726f702065786365656465640000000000006044820152606401610a80565b81835182610da991906130db565b1115610df15760405162461bcd60e51b81526020600482015260176024820152761b585e151bdd185b14dd5c1c1b1e48195e18d959591959604a1b6044820152606401610a80565b8060005b8451811015610e4157610e21858281518110610e1357610e136130f3565b602002602001015183611ece565b81610e2b81613109565b9250508080610e3990613109565b915050610df5565b508351600b8054600690610e61908490600160301b900461ffff16613124565b92506101000a81548161ffff021916908361ffff1602179055508351600b60008282829054906101000a900461ffff16610e9b9190613124565b92506101000a81548161ffff021916908361ffff16021790555082845183610ec391906130db565b1415610ef3576040517f52df9fe5b9c9a7b0b4fdc2c9f89387959e35e4209c2a8d133a2b8165edad2a0490600090a15b7f2071fd8d86fe3391ede810f741226b4ccde0e24388376f403dd0009cfeebd02884604051610f22919061314a565b60405180910390a150505050565b33610f3961157d565b6001600160a01b031614610f5f5760405162461bcd60e51b8152600401610a809061303f565b60085460ff16610f815760405162461bcd60e51b8152600401610a8090613197565b610f89611eec565b565b610bb1838383604051806020016040528060008152506119e4565b33610faf61157d565b6001600160a01b031614610fd55760405162461bcd60e51b8152600401610a809061303f565b4780610fe183856130db565b11156110245760405162461bcd60e51b81526020600482015260126024820152716e6f7420656e6f7567682062616c616e636560701b6044820152606401610a80565b600b5461104190600160401b90046001600160a01b031684611bcf565b600c54610bb1906001600160a01b031683611bcf565b6002600754141561107a5760405162461bcd60e51b8152600401610a80906131c5565b600260075560085460ff16156110a25760405162461bcd60e51b8152600401610a80906131fc565b3360009081526009602052604090205460ff16156110f75760405162461bcd60e51b8152602060048201526012602482015271185b1c9958591e481c9959da5cdd195c995960721b6044820152606401610a80565b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206111389082611f58565b6111765760405162461bcd60e51b815260206004820152600f60248201526e34b731b7b93932b1ba10383937b7b360891b6044820152606401610a80565b61117f82611f6e565b50506001600755565b3361119161157d565b6001600160a01b0316146111b75760405162461bcd60e51b8152600401610a809061303f565b80516111ca90600d906020840190612a70565b5050600f805460ff19166001179055565b6000818152600260205260408120546001600160a01b0316806109805760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a80565b3361125b61157d565b6001600160a01b0316146112815760405162461bcd60e51b8152600401610a809061303f565b6001600160a01b0381166112d35760405162461bcd60e51b81526020600482015260196024820152780636f6d6d756e69747946756e6441646472657373206973203603c1b6044820152606401610a80565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600d805461130290613004565b80601f016020809104026020016040519081016040528092919081815260200182805461132e90613004565b801561137b5780601f106113505761010080835404028352916020019161137b565b820191906000526020600020905b81548152906001019060200180831161135e57829003601f168201915b505050505081565b60006001600160a01b0382166113ee5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a80565b506001600160a01b031660009081526003602052604090205490565b3361141361157d565b6001600160a01b0316146114395760405162461bcd60e51b8152600401610a809061303f565b610f89600061213c565b600260075414156114665760405162461bcd60e51b8152600401610a80906131c5565b600260075560085460ff161561148e5760405162461bcd60e51b8152600401610a80906131fc565b3360009081526009602052604090205460ff166114de5760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd081c9959da5cdd195c995960921b6044820152606401610a80565b6114e781611f6e565b506001600755565b336114f861157d565b6001600160a01b03161461151e5760405162461bcd60e51b8152600401610a809061303f565b601055565b3361152c61157d565b6001600160a01b0316146115525760405162461bcd60e51b8152600401610a809061303f565b60085460ff16156115755760405162461bcd60e51b8152600401610a80906131fc565b610f8961218e565b6006546001600160a01b031690565b60606001805461099590613004565b6001600160a01b0382163314156115f05760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a80565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3361166561157d565b6001600160a01b03161461168b5760405162461bcd60e51b8152600401610a809061303f565b6001600160a01b0381166116dc5760405162461bcd60e51b81526020600482015260186024820152770646f6e6174696f6e46756e644164647265737320697320360441b6044820152606401610a80565b600b80546001600160a01b03909216600160401b02600160401b600160e01b0319909216919091179055565b6002600754141561172b5760405162461bcd60e51b8152600401610a80906131c5565b600260075560085460ff16156117535760405162461bcd60e51b8152600401610a80906131fc565b600a544210156117a15760405162461bcd60e51b81526020600482015260196024820152781c1d589b1a58c81cd85b19481a5cdb89dd081cdd185c9d1959603a1b6044820152606401610a80565b6000811180156117b25750600a8111155b6117ce5760405162461bcd60e51b8152600401610a8090613226565b600f54600b5461ffff61010090920482169116816117ec84836130db565b111561182d5760405162461bcd60e51b815260206004820152601060248201526f185b1c9958591e481cdbdb19081bdd5d60821b6044820152606401610a80565b600f54611844906301000000900460ff168361324e565b600b5461185c90859062010000900461ffff166130db565b11156118a15760405162461bcd60e51b81526020600482015260146024820152731d1a19481c995cdd081a5cc81c995cd95c9d995960621b6044820152606401610a80565b6118b3818466f8b0a10e4700006121e6565b816118be84836130db565b14156118ee576040517f52df9fe5b9c9a7b0b4fdc2c9f89387959e35e4209c2a8d133a2b8165edad2a0490600090a15b7f239739eec2dbaccb604ff1de6462a5eccd5f3148924696dd88f04d636ff582b533604080516001600160a01b039092168252602082018690520160405180910390a15050600160075550565b3361194461157d565b6001600160a01b03161461196a5760405162461bcd60e51b8152600401610a809061303f565b61271061ffff821611156119c05760405162461bcd60e51b815260206004820152601b60248201527f696e636f727265637420627073546f446f6e6174696f6e46756e6400000000006044820152606401610a80565b600b805461ffff9092166401000000000265ffff0000000019909216919091179055565b6119ee3383611c64565b611a0a5760405162461bcd60e51b8152600401610a8090613074565b611a1684848484612304565b50505050565b600f5460609060ff16611a3157610980612337565b61098082612346565b60118181548110611a4a57600080fd5b60009182526020909120015461ffff8116915062010000900460ff1682565b600e805461130290613004565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33611aad61157d565b6001600160a01b031614611ad35760405162461bcd60e51b8152600401610a809061303f565b6001600160a01b038116611b385760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a80565b611b418161213c565b50565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b96826111db565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611c1c576040519150601f19603f3d011682016040523d82523d6000602084013e611c21565b606091505b5050905080610bb15760405162461bcd60e51b815260206004820152600f60248201526e1cd95b99081155120819985a5b1959608a1b6044820152606401610a80565b6000611c6f82611b44565b611cd05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a80565b6000611cdb836111db565b9050806001600160a01b0316846001600160a01b03161480611d165750836001600160a01b0316611d0b84610a18565b6001600160a01b0316145b80611d265750611d268185611a76565b949350505050565b826001600160a01b0316611d41826111db565b6001600160a01b031614611da95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a80565b6001600160a01b038216611e0b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a80565b611e16600082611b61565b6001600160a01b0383166000908152600360205260408120805460019290611e3f90849061324e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e6d9084906130db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611ee8828260405180602001604052806000815250612410565b5050565b60085460ff16611f0e5760405162461bcd60e51b8152600401610a8090613197565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611f678260105485612443565b9392505050565b600a544210611fb85760405162461bcd60e51b81526020600482015260166024820152751c1c995cd85b19481cdd1859d948199a5b9a5cda195960521b6044820152606401610a80565b60008111611fd85760405162461bcd60e51b8152600401610a8090613226565b33600090815260096020526040902054600290611ff990839060ff166130db565b11156120415760405162461bcd60e51b81526020600482015260176024820152761b1a5b5a5d081c195c881d5cd95c88195e18d959591959604a1b6044820152606401610a80565b600b5461ffff16611b5861205583836130db565b11156120a35760405162461bcd60e51b815260206004820152601c60248201527f70726573616c6520746f6b656e206c696d6974206578636565646564000000006044820152606401610a80565b6120b5818366d529ae9e8600006121e6565b33600090815260096020526040812080548492906120d790849060ff16613265565b92506101000a81548160ff021916908360ff1602179055507f4c4aacb77138163adee65ce2fc6ebc1c7111049703ca6a69485495b46c9393586121173390565b604080516001600160a01b039092168252602082018590520160405180910390a15050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff16156121b15760405162461bcd60e51b8152600401610a80906131fc565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f3b3390565b60006121f2828461328a565b9050803410156122375760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b6044820152606401610a80565b60005b83811015612267576122553361225083886130db565b611ece565b8061225f81613109565b91505061223a565b50600b805484919060009061228190849061ffff16613124565b92506101000a81548161ffff021916908361ffff16021790555082600b60028282829054906101000a900461ffff166122ba9190613124565b92506101000a81548161ffff021916908361ffff1602179055506122df8484846124f2565b60006122eb823461324e565b905080156122fd576122fd3382611bcf565b5050505050565b61230f848484611d2e565b61231b8484848461272c565b611a165760405162461bcd60e51b8152600401610a80906132a9565b6060600d805461099590613004565b606061235182611b44565b6123b55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a80565b60006123bf612337565b905060008151116123df5760405180602001604052806000815250611f67565b806123e98461282a565b6040516020016123fa9291906132fb565b6040516020818303038152906040529392505050565b61241a8383612927565b612427600084848461272c565b610bb15760405162461bcd60e51b8152600401610a80906132a9565b600081815b85518110156124e7576000868281518110612465576124656130f3565b602002602001015190508083116124a75760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506124d4565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806124df81613109565b915050612448565b509092149392505050565b60006011600081548110612508576125086130f3565b60009182526020918290206040805180820190915291015461ffff81168083526201000090910460ff16151592820192909252915061254784866130db565b1061264d5780516000906125739061ffff1661256386886130db565b61256d919061324e565b85612a5a565b600b54909150600090612710908590612599908590640100000000900461ffff1661328a565b6125a3919061328a565b6125ad9190613337565b600b549091506125cd90600160401b90046001600160a01b031682611bcf565b826020015161264a57825160405161ffff90911681527f25fcf68a4a87624d7edc6ca2f4f2cd6975c31a3133784e8e8e7942fa65974f6c9060200160405180910390a160016011600081548110612626576126266130f3565b60009182526020909120018054911515620100000262ff0000199092169190911790555b50505b6011600181548110612661576126616130f3565b60009182526020918290206040805180820190915291015461ffff8116825262010000900460ff16158015928201839052909250906126ae5750805161ffff166126ab84866130db565b10155b15611a1657805160405161ffff90911681527f25fcf68a4a87624d7edc6ca2f4f2cd6975c31a3133784e8e8e7942fa65974f6c9060200160405180910390a160016011600181548110612703576127036130f3565b60009182526020909120018054911515620100000262ff00001990921691909117905550505050565b60006001600160a01b0384163b1561281f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061277090339089908890889060040161334b565b6020604051808303816000875af19250505080156127ab575060408051601f3d908101601f191682019092526127a891810190613388565b60015b612805573d8080156127d9576040519150601f19603f3d011682016040523d82523d6000602084013e6127de565b606091505b5080516127fd5760405162461bcd60e51b8152600401610a80906132a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d26565b506001949350505050565b60608161284e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612878578061286281613109565b91506128719050600a83613337565b9150612852565b6000816001600160401b0381111561289257612892612c42565b6040519080825280601f01601f1916602001820160405280156128bc576020820181803683370190505b5090505b8415611d26576128d160018361324e565b91506128de600a866133a5565b6128e99060306130db565b60f81b8183815181106128fe576128fe6130f3565b60200101906001600160f81b031916908160001a905350612920600a86613337565b94506128c0565b6001600160a01b03821661297d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a80565b61298681611b44565b156129d35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a80565b6001600160a01b03821660009081526003602052604081208054600192906129fc9084906130db565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310612a695781611f67565b5090919050565b828054612a7c90613004565b90600052602060002090601f016020900481019282612a9e5760008555612ae4565b82601f10612ab757805160ff1916838001178555612ae4565b82800160010185558215612ae4579182015b82811115612ae4578251825591602001919060010190612ac9565b50612af0929150612af4565b5090565b5b80821115612af05760008155600101612af5565b6001600160e01b031981168114611b4157600080fd5b600060208284031215612b3157600080fd5b8135611f6781612b09565b60005b83811015612b57578181015183820152602001612b3f565b83811115611a165750506000910152565b60008151808452612b80816020860160208601612b3c565b601f01601f19169290920160200192915050565b602081526000611f676020830184612b68565b600060208284031215612bb957600080fd5b5035919050565b6001600160a01b0381168114611b4157600080fd5b60008060408385031215612be857600080fd5b8235612bf381612bc0565b946020939093013593505050565b600080600060608486031215612c1657600080fd5b8335612c2181612bc0565b92506020840135612c3181612bc0565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612c8057612c80612c42565b604052919050565b60006001600160401b03821115612ca157612ca1612c42565b5060051b60200190565b60006020808385031215612cbe57600080fd5b82356001600160401b03811115612cd457600080fd5b8301601f81018513612ce557600080fd5b8035612cf8612cf382612c88565b612c58565b81815260059190911b82018301908381019087831115612d1757600080fd5b928401925b82841015612d3e578335612d2f81612bc0565b82529284019290840190612d1c565b979650505050505050565b60008060408385031215612d5c57600080fd5b50508035926020909101359150565b60008060408385031215612d7e57600080fd5b823591506020808401356001600160401b03811115612d9c57600080fd5b8401601f81018613612dad57600080fd5b8035612dbb612cf382612c88565b81815260059190911b82018301908381019088831115612dda57600080fd5b928401925b82841015612df857833582529284019290840190612ddf565b80955050505050509250929050565b600060208284031215612e1957600080fd5b8135611f6781612bc0565b60006001600160401b03831115612e3d57612e3d612c42565b612e50601f8401601f1916602001612c58565b9050828152838383011115612e6457600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e8d57600080fd5b81356001600160401b03811115612ea357600080fd5b8201601f81018413612eb457600080fd5b611d2684823560208401612e24565b80358015158114612ed357600080fd5b919050565b60008060408385031215612eeb57600080fd5b8235612ef681612bc0565b9150612f0460208401612ec3565b90509250929050565b600060208284031215612f1f57600080fd5b813561ffff81168114611f6757600080fd5b60008060008060808587031215612f4757600080fd5b8435612f5281612bc0565b93506020850135612f6281612bc0565b92506040850135915060608501356001600160401b03811115612f8457600080fd5b8501601f81018713612f9557600080fd5b612fa487823560208401612e24565b91505092959194509250565b600060208284031215612fc257600080fd5b611f6782612ec3565b60008060408385031215612fde57600080fd5b8235612fe981612bc0565b91506020830135612ff981612bc0565b809150509250929050565b600181811c9082168061301857607f821691505b6020821081141561303957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156130ee576130ee6130c5565b500190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561311d5761311d6130c5565b5060010190565b600061ffff808316818516808303821115613141576131416130c5565b01949350505050565b6020808252825182820181905260009190848201906040850190845b8181101561318b5783516001600160a01b031683529284019291840191600101613166565b50909695505050505050565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b600082821015613260576132606130c5565b500390565b600060ff821660ff84168060ff03821115613282576132826130c5565b019392505050565b60008160001904831182151516156132a4576132a46130c5565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000835161330d818460208801612b3c565b835190830190613141818360208801612b3c565b634e487b7160e01b600052601260045260246000fd5b60008261334657613346613321565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061337e90830184612b68565b9695505050505050565b60006020828403121561339a57600080fd5b8151611f6781612b09565b6000826133b4576133b4613321565b50069056fea164736f6c634300080b000a

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

0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0e0e911ecfd89889db13808bd914de3605b92d063234b13f1352c47c8b1ef79b000000000000000000000000000000000000000000000000000000000621a5c90000000000000000000000000ca451e4ea3fc0920ffc2cb2819a175168b8c36810000000000000000000000006d3e69349072565f81ac838e9b6dd251b462527500000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000000000000000000000000000000000000000001143727970746f205465636820576f6d656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034354570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d614a466a787a4a6e53626a43706637663152466a6953687335536b42486d374648637564796a5957514b374c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000de40000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d50426f583931395278526d4466326743414b7a45794e6831315976695a594269665876754153436b4451435a0000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Crypto Tech Women
Arg [1] : _symbol (string): CTW
Arg [2] : _contractURI (string): https://gateway.pinata.cloud/ipfs/QmaJFjxzJnSbjCpf7f1RFjiShs5SkBHm7FHcudyjYWQK7L
Arg [3] : _merkleRoot (bytes32): 0xe0e911ecfd89889db13808bd914de3605b92d063234b13f1352c47c8b1ef79b0
Arg [4] : _publicSaleDate (uint256): 1645894800
Arg [5] : _donationFundAddress (address): 0xcA451E4ea3fC0920FFC2cB2819a175168B8C3681
Arg [6] : _communityFundAddress (address): 0x6D3E69349072565f81AC838e9b6dd251B4625275
Arg [7] : _bpsToDonationFund (uint16): 250
Arg [8] : _triggerIds (uint16[]): 3556,8000
Arg [9] : _prerevealUri (string): ipfs://QmPBoX919RxRmDf2gCAKzEyNh11YviZYBifXvuASCkDQCZ

-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : e0e911ecfd89889db13808bd914de3605b92d063234b13f1352c47c8b1ef79b0
Arg [4] : 00000000000000000000000000000000000000000000000000000000621a5c90
Arg [5] : 000000000000000000000000ca451e4ea3fc0920ffc2cb2819a175168b8c3681
Arg [6] : 0000000000000000000000006d3e69349072565f81ac838e9b6dd251b4625275
Arg [7] : 00000000000000000000000000000000000000000000000000000000000000fa
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [9] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [11] : 43727970746f205465636820576f6d656e000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [13] : 4354570000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [15] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [16] : 732f516d614a466a787a4a6e53626a43706637663152466a6953687335536b42
Arg [17] : 486d374648637564796a5957514b374c00000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000de4
Arg [20] : 0000000000000000000000000000000000000000000000000000000000001f40
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [22] : 697066733a2f2f516d50426f583931395278526d4466326743414b7a45794e68
Arg [23] : 31315976695a594269665876754153436b4451435a0000000000000000000000


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

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