ETH Price: $3,274.11 (-4.00%)
Gas: 9 Gwei

Token

Beazt (BEAZT)
 

Overview

Max Total Supply

271 BEAZT

Holders

226

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BEAZT
0x3fdd895961ff1a00c5cb8773101ee7938b0192c2
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Beazt

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 14 : Beazt.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract Beazt is Ownable, EIP712, ERC721A {
    uint256 public TOTAL_SUPPLY = 4500;
    uint256 public MAX_QTY_PER_MINTER = 1;
    string private _tokenBaseURI;
    uint256 public privateSalesStartTime;
    uint256 public privateSalesEndTime;
    uint256 public publicSalesStartTime;
    bool public canTrain = false;
    uint256 public trainDurations = 432000; // 5 days * 24 hours * 60 mins * 60 sec
    mapping(address => uint256) public privateSalesMinterToTokenQty;
    mapping(address => uint256) public publicSalesMinterToTokenQty;
    mapping(uint256 => bool) public isTraining;
    mapping(uint256 => uint256) public startTrainTime;
    mapping(uint256 => bool) public isBeazt;

    bytes32 public constant WHITELIST_TYPEHASH =
        keccak256("Whitelist(address buyer,uint256 signedQty,uint256 nonce)");
    bytes32 public constant HUMAN_TYPEHASH =
        keccak256("Human(uint256 tokenId,bool isHuman)");
    address public whitelistSigner;

    modifier isPrivateSalesActive() {
        require(isPrivateSalesActivated(), "XPRIVATE");
        _;
    }

    modifier isPublicSalesActive() {
        require(isPublicSalesActivated(), "XPUBLIC");
        _;
    }

    modifier isSenderWhitelisted(
        uint256 _signedQty,
        uint256 _nonce,
        bytes memory _signature
    ) {
        require(
            getSigner(msg.sender, _signedQty, _nonce, _signature) ==
                whitelistSigner,
            "XWLIST"
        );
        _;
    }

    modifier onlyHuman(uint256 _tokenId, bytes memory _signature) {
        require(
            getSigner2(_tokenId, true, _signature) == whitelistSigner,
            "XHUMAN"
        );
        _;
    }

    constructor() ERC721A("Beazt", "BEAZT") EIP712("BEAZT", "1") {}

    function isPrivateSalesActivated() public view returns (bool) {
        return
            privateSalesStartTime > 0 &&
            privateSalesEndTime > 0 &&
            block.timestamp >= privateSalesStartTime &&
            block.timestamp <= privateSalesEndTime;
    }

    function isPublicSalesActivated() public view returns (bool) {
        return
            publicSalesStartTime > 0 && block.timestamp >= publicSalesStartTime;
    }

    function PRICE() public view returns (uint256) {
        if (isPublicSalesActivated()) return 0.0097 ether;
        return 0.0079 ether;
    }

    function privateSalesMint(
        uint256 _signedQty,
        uint256 _nonce,
        bytes memory _signature
    )
        external
        payable
        isPrivateSalesActive
        isSenderWhitelisted(_signedQty, _nonce, _signature)
    {
        require(totalSupply() < TOTAL_SUPPLY, ">LMT");
        require(privateSalesMinterToTokenQty[msg.sender] == 0, ">QTY");
        require(msg.value == PRICE(), "<$");
        privateSalesMinterToTokenQty[msg.sender] += 1;
        _safeMint(msg.sender, 1);
    }

    function publicSalesMint() external payable isPublicSalesActive {
        require(totalSupply() < TOTAL_SUPPLY, ">LMT");
        require(
            publicSalesMinterToTokenQty[msg.sender] + 1 <= MAX_QTY_PER_MINTER,
            ">QTY"
        );
        require(msg.value == PRICE(), "<$");
        publicSalesMinterToTokenQty[msg.sender] += 1;
        _safeMint(msg.sender, 1);
    }

    function gift(address[] calldata receivers) external onlyOwner {
        require(totalSupply() + receivers.length <= TOTAL_SUPPLY, ">LMT");

        for (uint256 i = 0; i < receivers.length; i++) {
            _safeMint(receivers[i], 1);
        }
    }

    function train(uint256 _tokenId, bytes memory _signature)
        external
        onlyHuman(_tokenId, _signature)
    {
        require(canTrain, "XSTART");
        require(ownerOf(_tokenId) == msg.sender, "XOWN");
        require(!isTraining[_tokenId], "ISTRAIN");
        require(!isBeazt[_tokenId], "ISBEAZT");
        isTraining[_tokenId] = true;
        startTrainTime[_tokenId] = block.timestamp;
    }

    function makeMeBeazt(uint256 _tokenId) external {
        require(ownerOf(_tokenId) == msg.sender, "XOWN");
        require(isTraining[_tokenId], "XTRAIN");
        require(
            startTrainTime[_tokenId] + trainDurations < block.timestamp,
            "XSTRONG"
        );
        isTraining[_tokenId] = false;
        isBeazt[_tokenId] = true;
    }

    function setPrivateSalesTime(uint256 _startTime, uint256 _endTime)
        external
        onlyOwner
    {
        require(_endTime >= _startTime, "TORDER");
        privateSalesStartTime = _startTime;
        privateSalesEndTime = _endTime;
    }

    function setPublicSalesTime(uint256 _startTime) external onlyOwner {
        publicSalesStartTime = _startTime;
    }

    function setTrainDurations(uint256 timeInSec) external onlyOwner {
        trainDurations = timeInSec;
    }

    function setCanTrain(bool _canTrain) external onlyOwner {
        canTrain = _canTrain;
    }

    function setWhitelistSigner(address _address) external onlyOwner {
        whitelistSigner = _address;
    }

    function getSigner(
        address _buyer,
        uint256 _signedQty,
        uint256 _nonce,
        bytes memory _signature
    ) public view returns (address) {
        bytes32 digest = _hashTypedDataV4(
            keccak256(
                abi.encode(WHITELIST_TYPEHASH, _buyer, _signedQty, _nonce)
            )
        );
        return ECDSA.recover(digest, _signature);
    }

    function getSigner2(
        uint256 _tokenId,
        bool _isHuman,
        bytes memory _signature
    ) public view returns (address) {
        bytes32 digest = _hashTypedDataV4(
            keccak256(abi.encode(HUMAN_TYPEHASH, _tokenId, _isHuman))
        );
        return ECDSA.recover(digest, _signature);
    }

    function withdrawAll() external onlyOwner {
        require(address(this).balance > 0, "ZERO");
        payable(msg.sender).transfer(address(this).balance);
    }

    function setBaseURI(string calldata URI) external onlyOwner {
        _tokenBaseURI = URI;
    }

    function _startTokenId() internal pure override(ERC721A) returns (uint256) {
        return 1;
    }

    function _baseURI()
        internal
        view
        override(ERC721A)
        returns (string memory)
    {
        return _tokenBaseURI;
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override(ERC721A) {
        require(!isTraining[startTokenId], "ISTRAIN");
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }
}

File 2 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

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

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

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

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

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

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

File 3 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 4 of 14 : 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 5 of 14 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 6 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

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

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

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

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

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

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

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

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

File 7 of 14 : 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 8 of 14 : 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 9 of 14 : 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 10 of 14 : 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 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"HUMAN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_QTY_PER_MINTER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"canTrain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"uint256","name":"_signedQty","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_isHuman","type":"bool"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"getSigner2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isBeazt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPrivateSalesActivated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSalesActivated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isTraining","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"makeMeBeazt","outputs":[],"stateMutability":"nonpayable","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":"privateSalesEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_signedQty","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"privateSalesMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateSalesMinterToTokenQty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSalesStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalesMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicSalesMinterToTokenQty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalesStartTime","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":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_canTrain","type":"bool"}],"name":"setCanTrain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setPrivateSalesTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setPublicSalesTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timeInSec","type":"uint256"}],"name":"setTrainDurations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setWhitelistSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"startTrainTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"train","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trainDurations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040526111946009556001600a55600f805460ff19169055620697806010553480156200002e57600080fd5b50604051806040016040528060058152602001641099585e9d60da1b81525060405180604001604052806005815260200164109150569560da1b81525060405180604001604052806005815260200164109150569560da1b815250604051806040016040528060018152602001603160f81b815250620000bd620000b76200017a60201b60201c565b6200017e565b815160209283012081519183019190912060c082815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810195909552608080860193909352308583015280518086039092018252939092019092528051908401209052610100528251620001579160039190850190620001ce565b5080516200016d906004906020840190620001ce565b50506001805550620002b0565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001dc9062000274565b90600052602060002090601f0160209004810192826200020057600085556200024b565b82601f106200021b57805160ff19168380011785556200024b565b828001600101855582156200024b579182015b828111156200024b5782518255916020019190600101906200022e565b50620002599291506200025d565b5090565b5b808211156200025957600081556001016200025e565b600181811c908216806200028957607f821691505b602082108103620002aa57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161364a620002f56000396000612725015260006127740152600061274f015260006126d4015260006126fc015261364a6000f3fe60806040526004361061031e5760003560e01c8063853828b6116101a5578063ae4384f1116100ec578063e16b881411610095578063edb2682d1161006f578063edb2682d146108df578063ef81b4d41461090c578063f006dafb1461092c578063f2fde38b1461094c57600080fd5b8063e16b881414610850578063e6c3819c14610880578063e985e9c51461089657600080fd5b8063c87b56dd116100c6578063c87b56dd146107f0578063cd5d497414610810578063d33814381461083057600080fd5b8063ae4384f1146107a6578063b35c0b02146107bb578063b88d4fde146107d057600080fd5b80638f7be8f21161014e5780639e43bed2116101285780639e43bed214610768578063a22cb46514610770578063ac501c411461079057600080fd5b80638f7be8f214610710578063902d55a51461073d57806395d89b411461075357600080fd5b80638d859f3e1161017f5780638d859f3e146106bd5780638d873bc9146106d25780638da5cb5b146106f257600080fd5b8063853828b61461067f5780638701177c146106945780638d32acc4146106aa57600080fd5b80634b0009ca116102695780636196ea94116102125780636c2e3555116101ec5780636c2e35551461062a57806370a082311461064a578063715018a61461066a57600080fd5b80636196ea94146105b65780636301dccf146105d65780636352211e1461060a57600080fd5b806356d058191161024357806356d05819146105665780635e1760c11461058057806360869d9b1461059657600080fd5b80634b0009ca146105065780634dbf4fb71461052657806355f804b31461054657600080fd5b806318160ddd116102cb57806342842e0e116102a557806342842e0e1461048557806344bed146146104a55780634a5bc3a0146104d257600080fd5b806318160ddd1461041857806323b872dd14610435578063248628b01461045557600080fd5b8063081812fc116102fc578063081812fc1461039e578063095ea7b3146103d6578063163e1e61146103f857600080fd5b806301be98ea1461032357806301ffc9a71461034c57806306fdde031461037c575b600080fd5b34801561032f57600080fd5b50610339600c5481565b6040519081526020015b60405180910390f35b34801561035857600080fd5b5061036c610367366004612ece565b61096c565b6040519015158152602001610343565b34801561038857600080fd5b50610391610a51565b6040516103439190612f61565b3480156103aa57600080fd5b506103be6103b9366004612f74565b610ae3565b6040516001600160a01b039091168152602001610343565b3480156103e257600080fd5b506103f66103f1366004612fa9565b610b40565b005b34801561040457600080fd5b506103f6610413366004612fd3565b610bff565b34801561042457600080fd5b506002546001540360001901610339565b34801561044157600080fd5b506103f6610450366004613048565b610d17565b34801561046157600080fd5b5061036c610470366004612f74565b60136020526000908152604090205460ff1681565b34801561049157600080fd5b506103f66104a0366004613048565b610d22565b3480156104b157600080fd5b506103396104c0366004613084565b60116020526000908152604090205481565b3480156104de57600080fd5b506103397f6b3c2b65f438c6108f7b2bbaecb5aa2f63231dcc21a1efab35ed4d3d1c997f4f81565b34801561051257600080fd5b506103f6610521366004612f74565b610d3d565b34801561053257600080fd5b506103f661054136600461309f565b610eb5565b34801561055257600080fd5b506103f66105613660046130c1565b610f6a565b34801561057257600080fd5b50600f5461036c9060ff1681565b34801561058c57600080fd5b50610339600d5481565b3480156105a257600080fd5b506103f66105b1366004612f74565b610fd0565b3480156105c257600080fd5b506103f66105d1366004613131565b61102f565b3480156105e257600080fd5b506103397f940a52669dc9fded2f965dea80d65bf40e8f29bcf1a4a3258a2c387da1b99cd981565b34801561061657600080fd5b506103be610625366004612f74565b6110ba565b34801561063657600080fd5b506103f6610645366004612f74565b6110cc565b34801561065657600080fd5b50610339610665366004613084565b61112b565b34801561067657600080fd5b506103f6611193565b34801561068b57600080fd5b506103f66111f9565b3480156106a057600080fd5b5061033960105481565b6103f66106b8366004613226565b6112d4565b3480156106c957600080fd5b506103396114e7565b3480156106de57600080fd5b506103f66106ed366004613276565b61150e565b3480156106fe57600080fd5b506000546001600160a01b03166103be565b34801561071c57600080fd5b5061033961072b366004613084565b60126020526000908152604090205481565b34801561074957600080fd5b5061033960095481565b34801561075f57600080fd5b5061039161173b565b6103f661174a565b34801561077c57600080fd5b506103f661078b3660046132bd565b6118f0565b34801561079c57600080fd5b50610339600a5481565b3480156107b257600080fd5b5061036c6119bc565b3480156107c757600080fd5b5061036c6119d6565b3480156107dc57600080fd5b506103f66107eb3660046132f0565b611a0a565b3480156107fc57600080fd5b5061039161080b366004612f74565b611a74565b34801561081c57600080fd5b506103be61082b366004613358565b611b11565b34801561083c57600080fd5b506103f661084b366004613084565b611b9a565b34801561085c57600080fd5b5061036c61086b366004612f74565b60156020526000908152604090205460ff1681565b34801561088c57600080fd5b50610339600e5481565b3480156108a257600080fd5b5061036c6108b13660046133a1565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108eb57600080fd5b506103396108fa366004612f74565b60146020526000908152604090205481565b34801561091857600080fd5b506016546103be906001600160a01b031681565b34801561093857600080fd5b506103be6109473660046133cb565b611c2e565b34801561095857600080fd5b506103f6610967366004613084565b611c8c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109ff57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610a609061340c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8c9061340c565b8015610ad95780601f10610aae57610100808354040283529160200191610ad9565b820191906000526020600020905b815481529060010190602001808311610abc57829003601f168201915b5050505050905090565b6000610aee82611d6b565b610b24576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610b4b826110ba565b9050806001600160a01b0316836001600160a01b031603610b98576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610bb85750610bb681336108b1565b155b15610bef576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bfa838383611dbd565b505050565b6000546001600160a01b03163314610c5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6009546002546001548391900360001901610c79919061348e565b1115610cc95760405162461bcd60e51b8152600401610c559060208082526004908201527f3e4c4d5400000000000000000000000000000000000000000000000000000000604082015260600190565b60005b81811015610bfa57610d05838383818110610ce957610ce96134a6565b9050602002016020810190610cfe9190613084565b6001611e31565b80610d0f816134d5565b915050610ccc565b610bfa838383611e4f565b610bfa83838360405180602001604052806000815250611a0a565b33610d47826110ba565b6001600160a01b031614610d9f5760405162461bcd60e51b8152600401610c559060208082526004908201527f584f574e00000000000000000000000000000000000000000000000000000000604082015260600190565b60008181526013602052604090205460ff16610dfd5760405162461bcd60e51b815260206004820152600660248201527f58545241494e00000000000000000000000000000000000000000000000000006044820152606401610c55565b6010546000828152601460205260409020544291610e1a9161348e565b10610e675760405162461bcd60e51b815260206004820152600760248201527f585354524f4e47000000000000000000000000000000000000000000000000006044820152606401610c55565b600090815260136020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00908116909155601590925290912080549091166001179055565b6000546001600160a01b03163314610f0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b81811015610f5f5760405162461bcd60e51b815260206004820152600660248201527f544f5244455200000000000000000000000000000000000000000000000000006044820152606401610c55565b600c91909155600d55565b6000546001600160a01b03163314610fc45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b610bfa600b8383612de9565b6000546001600160a01b0316331461102a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b600e55565b6000546001600160a01b031633146110895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60006110c582612127565b5192915050565b6000546001600160a01b031633146111265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b601055565b60006001600160a01b03821661116d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146111ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b6111f760006122bd565b565b6000546001600160a01b031633146112535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b600047116112a55760405162461bcd60e51b8152600401610c559060208082526004908201527f5a45524f00000000000000000000000000000000000000000000000000000000604082015260600190565b60405133904780156108fc02916000818181858888f193505050501580156112d1573d6000803e3d6000fd5b50565b6112dc6119d6565b6113285760405162461bcd60e51b815260206004820152600860248201527f58505249564154450000000000000000000000000000000000000000000000006044820152606401610c55565b6016548390839083906001600160a01b031661134633858585611b11565b6001600160a01b03161461139c5760405162461bcd60e51b815260206004820152600660248201527f58574c49535400000000000000000000000000000000000000000000000000006044820152606401610c55565b6009546002546001540360001901106113f95760405162461bcd60e51b8152600401610c559060208082526004908201527f3e4c4d5400000000000000000000000000000000000000000000000000000000604082015260600190565b33600090815260116020526040902054156114585760405162461bcd60e51b8152600401610c559060208082526004908201527f3e51545900000000000000000000000000000000000000000000000000000000604082015260600190565b6114606114e7565b34146114ae5760405162461bcd60e51b815260206004820152600260248201527f3c240000000000000000000000000000000000000000000000000000000000006044820152606401610c55565b3360009081526011602052604081208054600192906114ce90849061348e565b909155506114df9050336001611e31565b505050505050565b60006114f16119bc565b156115025750662276193e52400090565b50661c110215b9c00090565b601654829082906001600160a01b031661152a83600184611c2e565b6001600160a01b0316146115805760405162461bcd60e51b815260206004820152600660248201527f5848554d414e00000000000000000000000000000000000000000000000000006044820152606401610c55565b600f5460ff166115d25760405162461bcd60e51b815260206004820152600660248201527f58535441525400000000000000000000000000000000000000000000000000006044820152606401610c55565b336115dc856110ba565b6001600160a01b0316146116345760405162461bcd60e51b8152600401610c559060208082526004908201527f584f574e00000000000000000000000000000000000000000000000000000000604082015260600190565b60008481526013602052604090205460ff16156116935760405162461bcd60e51b815260206004820152600760248201527f4953545241494e000000000000000000000000000000000000000000000000006044820152606401610c55565b60008481526015602052604090205460ff16156116f25760405162461bcd60e51b815260206004820152600760248201527f49534245415a54000000000000000000000000000000000000000000000000006044820152606401610c55565b505050600090815260136020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560149091529020429055565b606060048054610a609061340c565b6117526119bc565b61179e5760405162461bcd60e51b815260206004820152600760248201527f585055424c4943000000000000000000000000000000000000000000000000006044820152606401610c55565b6009546002546001540360001901106117fb5760405162461bcd60e51b8152600401610c559060208082526004908201527f3e4c4d5400000000000000000000000000000000000000000000000000000000604082015260600190565b600a543360009081526012602052604090205461181990600161348e565b11156118695760405162461bcd60e51b8152600401610c559060208082526004908201527f3e51545900000000000000000000000000000000000000000000000000000000604082015260600190565b6118716114e7565b34146118bf5760405162461bcd60e51b815260206004820152600260248201527f3c240000000000000000000000000000000000000000000000000000000000006044820152606401610c55565b3360009081526012602052604081208054600192906118df90849061348e565b909155506111f79050336001611e31565b336001600160a01b03831603611932576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080600e541180156119d15750600e544210155b905090565b600080600c541180156119eb57506000600d54115b80156119f95750600c544210155b80156119d1575050600d5442111590565b611a15848484611e4f565b6001600160a01b0383163b15158015611a375750611a3584848484612325565b155b15611a6e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060611a7f82611d6b565b611ab5576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611abf61248e565b90508051600003611adf5760405180602001604052806000815250611b0a565b80611ae98461249d565b604051602001611afa9291906134ef565b6040516020818303038152906040525b9392505050565b604080517f940a52669dc9fded2f965dea80d65bf40e8f29bcf1a4a3258a2c387da1b99cd960208201526001600160a01b0386169181019190915260608101849052608081018390526000908190611b829060a0015b604051602081830303815290604052805190602001206125d2565b9050611b8e818461263b565b9150505b949350505050565b6000546001600160a01b03163314611bf45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b601680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b604080517f6b3c2b65f438c6108f7b2bbaecb5aa2f63231dcc21a1efab35ed4d3d1c997f4f602082015290810184905282151560608201526000908190611c7790608001611b67565b9050611c83818461263b565b95945050505050565b6000546001600160a01b03163314611ce65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b6001600160a01b038116611d625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c55565b6112d1816122bd565b600081600111158015611d7f575060015482105b8015610a4b5750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611e4b82826040518060200160405280600081525061265f565b5050565b6000611e5a82612127565b80519091506000906001600160a01b0316336001600160a01b03161480611e8857508151611e8890336108b1565b80611ea3575033611e9884610ae3565b6001600160a01b0316145b905080611edc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611f2b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611f6b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f78858585600161266c565b611f886000848460000151611dbd565b6001600160a01b03858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffff0000000000000000000000000000000000000000000000000000000016909417740100000000000000000000000000000000000000004290921691909102179092559086018083529120549091166120dd576001548110156120dd578251600082815260056020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528180600111158015612157575060015481105b1561228b57600081815260056020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161515918101829052906122895780516001600160a01b0316156121f5579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612284579392505050565b6121f5565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a029061237390339089908890889060040161351e565b6020604051808303816000875af19250505080156123cc575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526123c99181019061355a565b60015b612443573d8080156123fa576040519150601f19603f3d011682016040523d82523d6000602084013e6123ff565b606091505b50805160000361243b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611b92565b6060600b8054610a609061340c565b6060816000036124e057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561250a57806124f4816134d5565b91506125039050600a836135a6565b91506124e4565b60008167ffffffffffffffff8111156125255761252561314c565b6040519080825280601f01601f19166020018201604052801561254f576020820181803683370190505b5090505b8415611b92576125646001836135ba565b9150612571600a866135d1565b61257c90603061348e565b60f81b818381518110612591576125916134a6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125cb600a866135a6565b9450612553565b6000610a4b6125df6126d0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061264a85856127c2565b9150915061265781612830565b509392505050565b610bfa8383836001612a1c565b60008281526013602052604090205460ff16156126cb5760405162461bcd60e51b815260206004820152600760248201527f4953545241494e000000000000000000000000000000000000000000000000006044820152606401610c55565b611a6e565b60007f0000000000000000000000000000000000000000000000000000000000000000460361271e57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036127f85760208301516040840151606085015160001a6127ec87828585612c96565b94509450505050612829565b82516040036128215760208301516040840151612816868383612da1565b935093505050612829565b506000905060025b9250929050565b6000816004811115612844576128446135e5565b0361284c5750565b6001816004811115612860576128606135e5565b036128ad5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c55565b60028160048111156128c1576128c16135e5565b0361290e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c55565b6003816004811115612922576129226135e5565b036129955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c55565b60048160048111156129a9576129a96135e5565b036112d15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c55565b6001546001600160a01b038516612a5f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003612a99576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612aa6600086838761266c565b6001600160a01b038516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c01811690920217909155858452600590925290912080547fffffffff000000000000000000000000000000000000000000000000000000001690921774010000000000000000000000000000000000000000429092169190910217905580808501838015612ba757506001600160a01b0387163b15155b15612c48575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612bf86000888480600101955088612325565b612c2e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808203612bad578260015414612c4357600080fd5b612c8d565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203612c49575b50600155612120565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ccd5750600090506003612d98565b8460ff16601b14158015612ce557508460ff16601c14155b15612cf65750600090506004612d98565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d4a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116612d9157600060019250925050612d98565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612ddb87828885612c96565b935093505050935093915050565b828054612df59061340c565b90600052602060002090601f016020900481019282612e175760008555612e7b565b82601f10612e4e578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612e7b565b82800160010185558215612e7b579182015b82811115612e7b578235825591602001919060010190612e60565b50612e87929150612e8b565b5090565b5b80821115612e875760008155600101612e8c565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112d157600080fd5b600060208284031215612ee057600080fd5b8135611b0a81612ea0565b60005b83811015612f06578181015183820152602001612eee565b83811115611a6e5750506000910152565b60008151808452612f2f816020860160208601612eeb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611b0a6020830184612f17565b600060208284031215612f8657600080fd5b5035919050565b80356001600160a01b0381168114612fa457600080fd5b919050565b60008060408385031215612fbc57600080fd5b612fc583612f8d565b946020939093013593505050565b60008060208385031215612fe657600080fd5b823567ffffffffffffffff80821115612ffe57600080fd5b818501915085601f83011261301257600080fd5b81358181111561302157600080fd5b8660208260051b850101111561303657600080fd5b60209290920196919550909350505050565b60008060006060848603121561305d57600080fd5b61306684612f8d565b925061307460208501612f8d565b9150604084013590509250925092565b60006020828403121561309657600080fd5b611b0a82612f8d565b600080604083850312156130b257600080fd5b50508035926020909101359150565b600080602083850312156130d457600080fd5b823567ffffffffffffffff808211156130ec57600080fd5b818501915085601f83011261310057600080fd5b81358181111561310f57600080fd5b86602082850101111561303657600080fd5b80358015158114612fa457600080fd5b60006020828403121561314357600080fd5b611b0a82613121565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261318c57600080fd5b813567ffffffffffffffff808211156131a7576131a761314c565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156131ed576131ed61314c565b8160405283815286602085880101111561320657600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561323b57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561326057600080fd5b61326c8682870161317b565b9150509250925092565b6000806040838503121561328957600080fd5b82359150602083013567ffffffffffffffff8111156132a757600080fd5b6132b38582860161317b565b9150509250929050565b600080604083850312156132d057600080fd5b6132d983612f8d565b91506132e760208401613121565b90509250929050565b6000806000806080858703121561330657600080fd5b61330f85612f8d565b935061331d60208601612f8d565b925060408501359150606085013567ffffffffffffffff81111561334057600080fd5b61334c8782880161317b565b91505092959194509250565b6000806000806080858703121561336e57600080fd5b61337785612f8d565b93506020850135925060408501359150606085013567ffffffffffffffff81111561334057600080fd5b600080604083850312156133b457600080fd5b6133bd83612f8d565b91506132e760208401612f8d565b6000806000606084860312156133e057600080fd5b833592506133f060208501613121565b9150604084013567ffffffffffffffff81111561326057600080fd5b600181811c9082168061342057607f821691505b602082108103613459577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156134a1576134a161345f565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060001982036134e8576134e861345f565b5060010190565b60008351613501818460208801612eeb565b835190830190613515818360208801612eeb565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135506080830184612f17565b9695505050505050565b60006020828403121561356c57600080fd5b8151611b0a81612ea0565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826135b5576135b5613577565b500490565b6000828210156135cc576135cc61345f565b500390565b6000826135e0576135e0613577565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea26469706673582212207d99752a147a8a374699634a5aff949af956fd088c2cfe2f070214692c8be04a64736f6c634300080d0033

Deployed Bytecode

0x60806040526004361061031e5760003560e01c8063853828b6116101a5578063ae4384f1116100ec578063e16b881411610095578063edb2682d1161006f578063edb2682d146108df578063ef81b4d41461090c578063f006dafb1461092c578063f2fde38b1461094c57600080fd5b8063e16b881414610850578063e6c3819c14610880578063e985e9c51461089657600080fd5b8063c87b56dd116100c6578063c87b56dd146107f0578063cd5d497414610810578063d33814381461083057600080fd5b8063ae4384f1146107a6578063b35c0b02146107bb578063b88d4fde146107d057600080fd5b80638f7be8f21161014e5780639e43bed2116101285780639e43bed214610768578063a22cb46514610770578063ac501c411461079057600080fd5b80638f7be8f214610710578063902d55a51461073d57806395d89b411461075357600080fd5b80638d859f3e1161017f5780638d859f3e146106bd5780638d873bc9146106d25780638da5cb5b146106f257600080fd5b8063853828b61461067f5780638701177c146106945780638d32acc4146106aa57600080fd5b80634b0009ca116102695780636196ea94116102125780636c2e3555116101ec5780636c2e35551461062a57806370a082311461064a578063715018a61461066a57600080fd5b80636196ea94146105b65780636301dccf146105d65780636352211e1461060a57600080fd5b806356d058191161024357806356d05819146105665780635e1760c11461058057806360869d9b1461059657600080fd5b80634b0009ca146105065780634dbf4fb71461052657806355f804b31461054657600080fd5b806318160ddd116102cb57806342842e0e116102a557806342842e0e1461048557806344bed146146104a55780634a5bc3a0146104d257600080fd5b806318160ddd1461041857806323b872dd14610435578063248628b01461045557600080fd5b8063081812fc116102fc578063081812fc1461039e578063095ea7b3146103d6578063163e1e61146103f857600080fd5b806301be98ea1461032357806301ffc9a71461034c57806306fdde031461037c575b600080fd5b34801561032f57600080fd5b50610339600c5481565b6040519081526020015b60405180910390f35b34801561035857600080fd5b5061036c610367366004612ece565b61096c565b6040519015158152602001610343565b34801561038857600080fd5b50610391610a51565b6040516103439190612f61565b3480156103aa57600080fd5b506103be6103b9366004612f74565b610ae3565b6040516001600160a01b039091168152602001610343565b3480156103e257600080fd5b506103f66103f1366004612fa9565b610b40565b005b34801561040457600080fd5b506103f6610413366004612fd3565b610bff565b34801561042457600080fd5b506002546001540360001901610339565b34801561044157600080fd5b506103f6610450366004613048565b610d17565b34801561046157600080fd5b5061036c610470366004612f74565b60136020526000908152604090205460ff1681565b34801561049157600080fd5b506103f66104a0366004613048565b610d22565b3480156104b157600080fd5b506103396104c0366004613084565b60116020526000908152604090205481565b3480156104de57600080fd5b506103397f6b3c2b65f438c6108f7b2bbaecb5aa2f63231dcc21a1efab35ed4d3d1c997f4f81565b34801561051257600080fd5b506103f6610521366004612f74565b610d3d565b34801561053257600080fd5b506103f661054136600461309f565b610eb5565b34801561055257600080fd5b506103f66105613660046130c1565b610f6a565b34801561057257600080fd5b50600f5461036c9060ff1681565b34801561058c57600080fd5b50610339600d5481565b3480156105a257600080fd5b506103f66105b1366004612f74565b610fd0565b3480156105c257600080fd5b506103f66105d1366004613131565b61102f565b3480156105e257600080fd5b506103397f940a52669dc9fded2f965dea80d65bf40e8f29bcf1a4a3258a2c387da1b99cd981565b34801561061657600080fd5b506103be610625366004612f74565b6110ba565b34801561063657600080fd5b506103f6610645366004612f74565b6110cc565b34801561065657600080fd5b50610339610665366004613084565b61112b565b34801561067657600080fd5b506103f6611193565b34801561068b57600080fd5b506103f66111f9565b3480156106a057600080fd5b5061033960105481565b6103f66106b8366004613226565b6112d4565b3480156106c957600080fd5b506103396114e7565b3480156106de57600080fd5b506103f66106ed366004613276565b61150e565b3480156106fe57600080fd5b506000546001600160a01b03166103be565b34801561071c57600080fd5b5061033961072b366004613084565b60126020526000908152604090205481565b34801561074957600080fd5b5061033960095481565b34801561075f57600080fd5b5061039161173b565b6103f661174a565b34801561077c57600080fd5b506103f661078b3660046132bd565b6118f0565b34801561079c57600080fd5b50610339600a5481565b3480156107b257600080fd5b5061036c6119bc565b3480156107c757600080fd5b5061036c6119d6565b3480156107dc57600080fd5b506103f66107eb3660046132f0565b611a0a565b3480156107fc57600080fd5b5061039161080b366004612f74565b611a74565b34801561081c57600080fd5b506103be61082b366004613358565b611b11565b34801561083c57600080fd5b506103f661084b366004613084565b611b9a565b34801561085c57600080fd5b5061036c61086b366004612f74565b60156020526000908152604090205460ff1681565b34801561088c57600080fd5b50610339600e5481565b3480156108a257600080fd5b5061036c6108b13660046133a1565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108eb57600080fd5b506103396108fa366004612f74565b60146020526000908152604090205481565b34801561091857600080fd5b506016546103be906001600160a01b031681565b34801561093857600080fd5b506103be6109473660046133cb565b611c2e565b34801561095857600080fd5b506103f6610967366004613084565b611c8c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109ff57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610a609061340c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8c9061340c565b8015610ad95780601f10610aae57610100808354040283529160200191610ad9565b820191906000526020600020905b815481529060010190602001808311610abc57829003601f168201915b5050505050905090565b6000610aee82611d6b565b610b24576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610b4b826110ba565b9050806001600160a01b0316836001600160a01b031603610b98576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610bb85750610bb681336108b1565b155b15610bef576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bfa838383611dbd565b505050565b6000546001600160a01b03163314610c5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6009546002546001548391900360001901610c79919061348e565b1115610cc95760405162461bcd60e51b8152600401610c559060208082526004908201527f3e4c4d5400000000000000000000000000000000000000000000000000000000604082015260600190565b60005b81811015610bfa57610d05838383818110610ce957610ce96134a6565b9050602002016020810190610cfe9190613084565b6001611e31565b80610d0f816134d5565b915050610ccc565b610bfa838383611e4f565b610bfa83838360405180602001604052806000815250611a0a565b33610d47826110ba565b6001600160a01b031614610d9f5760405162461bcd60e51b8152600401610c559060208082526004908201527f584f574e00000000000000000000000000000000000000000000000000000000604082015260600190565b60008181526013602052604090205460ff16610dfd5760405162461bcd60e51b815260206004820152600660248201527f58545241494e00000000000000000000000000000000000000000000000000006044820152606401610c55565b6010546000828152601460205260409020544291610e1a9161348e565b10610e675760405162461bcd60e51b815260206004820152600760248201527f585354524f4e47000000000000000000000000000000000000000000000000006044820152606401610c55565b600090815260136020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00908116909155601590925290912080549091166001179055565b6000546001600160a01b03163314610f0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b81811015610f5f5760405162461bcd60e51b815260206004820152600660248201527f544f5244455200000000000000000000000000000000000000000000000000006044820152606401610c55565b600c91909155600d55565b6000546001600160a01b03163314610fc45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b610bfa600b8383612de9565b6000546001600160a01b0316331461102a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b600e55565b6000546001600160a01b031633146110895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60006110c582612127565b5192915050565b6000546001600160a01b031633146111265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b601055565b60006001600160a01b03821661116d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146111ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b6111f760006122bd565b565b6000546001600160a01b031633146112535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b600047116112a55760405162461bcd60e51b8152600401610c559060208082526004908201527f5a45524f00000000000000000000000000000000000000000000000000000000604082015260600190565b60405133904780156108fc02916000818181858888f193505050501580156112d1573d6000803e3d6000fd5b50565b6112dc6119d6565b6113285760405162461bcd60e51b815260206004820152600860248201527f58505249564154450000000000000000000000000000000000000000000000006044820152606401610c55565b6016548390839083906001600160a01b031661134633858585611b11565b6001600160a01b03161461139c5760405162461bcd60e51b815260206004820152600660248201527f58574c49535400000000000000000000000000000000000000000000000000006044820152606401610c55565b6009546002546001540360001901106113f95760405162461bcd60e51b8152600401610c559060208082526004908201527f3e4c4d5400000000000000000000000000000000000000000000000000000000604082015260600190565b33600090815260116020526040902054156114585760405162461bcd60e51b8152600401610c559060208082526004908201527f3e51545900000000000000000000000000000000000000000000000000000000604082015260600190565b6114606114e7565b34146114ae5760405162461bcd60e51b815260206004820152600260248201527f3c240000000000000000000000000000000000000000000000000000000000006044820152606401610c55565b3360009081526011602052604081208054600192906114ce90849061348e565b909155506114df9050336001611e31565b505050505050565b60006114f16119bc565b156115025750662276193e52400090565b50661c110215b9c00090565b601654829082906001600160a01b031661152a83600184611c2e565b6001600160a01b0316146115805760405162461bcd60e51b815260206004820152600660248201527f5848554d414e00000000000000000000000000000000000000000000000000006044820152606401610c55565b600f5460ff166115d25760405162461bcd60e51b815260206004820152600660248201527f58535441525400000000000000000000000000000000000000000000000000006044820152606401610c55565b336115dc856110ba565b6001600160a01b0316146116345760405162461bcd60e51b8152600401610c559060208082526004908201527f584f574e00000000000000000000000000000000000000000000000000000000604082015260600190565b60008481526013602052604090205460ff16156116935760405162461bcd60e51b815260206004820152600760248201527f4953545241494e000000000000000000000000000000000000000000000000006044820152606401610c55565b60008481526015602052604090205460ff16156116f25760405162461bcd60e51b815260206004820152600760248201527f49534245415a54000000000000000000000000000000000000000000000000006044820152606401610c55565b505050600090815260136020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560149091529020429055565b606060048054610a609061340c565b6117526119bc565b61179e5760405162461bcd60e51b815260206004820152600760248201527f585055424c4943000000000000000000000000000000000000000000000000006044820152606401610c55565b6009546002546001540360001901106117fb5760405162461bcd60e51b8152600401610c559060208082526004908201527f3e4c4d5400000000000000000000000000000000000000000000000000000000604082015260600190565b600a543360009081526012602052604090205461181990600161348e565b11156118695760405162461bcd60e51b8152600401610c559060208082526004908201527f3e51545900000000000000000000000000000000000000000000000000000000604082015260600190565b6118716114e7565b34146118bf5760405162461bcd60e51b815260206004820152600260248201527f3c240000000000000000000000000000000000000000000000000000000000006044820152606401610c55565b3360009081526012602052604081208054600192906118df90849061348e565b909155506111f79050336001611e31565b336001600160a01b03831603611932576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080600e541180156119d15750600e544210155b905090565b600080600c541180156119eb57506000600d54115b80156119f95750600c544210155b80156119d1575050600d5442111590565b611a15848484611e4f565b6001600160a01b0383163b15158015611a375750611a3584848484612325565b155b15611a6e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060611a7f82611d6b565b611ab5576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611abf61248e565b90508051600003611adf5760405180602001604052806000815250611b0a565b80611ae98461249d565b604051602001611afa9291906134ef565b6040516020818303038152906040525b9392505050565b604080517f940a52669dc9fded2f965dea80d65bf40e8f29bcf1a4a3258a2c387da1b99cd960208201526001600160a01b0386169181019190915260608101849052608081018390526000908190611b829060a0015b604051602081830303815290604052805190602001206125d2565b9050611b8e818461263b565b9150505b949350505050565b6000546001600160a01b03163314611bf45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b601680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b604080517f6b3c2b65f438c6108f7b2bbaecb5aa2f63231dcc21a1efab35ed4d3d1c997f4f602082015290810184905282151560608201526000908190611c7790608001611b67565b9050611c83818461263b565b95945050505050565b6000546001600160a01b03163314611ce65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c55565b6001600160a01b038116611d625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c55565b6112d1816122bd565b600081600111158015611d7f575060015482105b8015610a4b5750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611e4b82826040518060200160405280600081525061265f565b5050565b6000611e5a82612127565b80519091506000906001600160a01b0316336001600160a01b03161480611e8857508151611e8890336108b1565b80611ea3575033611e9884610ae3565b6001600160a01b0316145b905080611edc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611f2b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611f6b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f78858585600161266c565b611f886000848460000151611dbd565b6001600160a01b03858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffff0000000000000000000000000000000000000000000000000000000016909417740100000000000000000000000000000000000000004290921691909102179092559086018083529120549091166120dd576001548110156120dd578251600082815260056020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528180600111158015612157575060015481105b1561228b57600081815260056020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161515918101829052906122895780516001600160a01b0316156121f5579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612284579392505050565b6121f5565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a029061237390339089908890889060040161351e565b6020604051808303816000875af19250505080156123cc575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526123c99181019061355a565b60015b612443573d8080156123fa576040519150601f19603f3d011682016040523d82523d6000602084013e6123ff565b606091505b50805160000361243b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611b92565b6060600b8054610a609061340c565b6060816000036124e057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561250a57806124f4816134d5565b91506125039050600a836135a6565b91506124e4565b60008167ffffffffffffffff8111156125255761252561314c565b6040519080825280601f01601f19166020018201604052801561254f576020820181803683370190505b5090505b8415611b92576125646001836135ba565b9150612571600a866135d1565b61257c90603061348e565b60f81b818381518110612591576125916134a6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125cb600a866135a6565b9450612553565b6000610a4b6125df6126d0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061264a85856127c2565b9150915061265781612830565b509392505050565b610bfa8383836001612a1c565b60008281526013602052604090205460ff16156126cb5760405162461bcd60e51b815260206004820152600760248201527f4953545241494e000000000000000000000000000000000000000000000000006044820152606401610c55565b611a6e565b60007f0000000000000000000000000000000000000000000000000000000000000001460361271e57507fa70d7b7d752723c98828fe75b27980b7e78823b45de8731f7083ac304e506bc790565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f6aa325ed9fc3fecc62b5e6012afc06db47bee614f1cb678d600e2c86a2cc64fb828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036127f85760208301516040840151606085015160001a6127ec87828585612c96565b94509450505050612829565b82516040036128215760208301516040840151612816868383612da1565b935093505050612829565b506000905060025b9250929050565b6000816004811115612844576128446135e5565b0361284c5750565b6001816004811115612860576128606135e5565b036128ad5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c55565b60028160048111156128c1576128c16135e5565b0361290e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c55565b6003816004811115612922576129226135e5565b036129955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c55565b60048160048111156129a9576129a96135e5565b036112d15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c55565b6001546001600160a01b038516612a5f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003612a99576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612aa6600086838761266c565b6001600160a01b038516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c01811690920217909155858452600590925290912080547fffffffff000000000000000000000000000000000000000000000000000000001690921774010000000000000000000000000000000000000000429092169190910217905580808501838015612ba757506001600160a01b0387163b15155b15612c48575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612bf86000888480600101955088612325565b612c2e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808203612bad578260015414612c4357600080fd5b612c8d565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203612c49575b50600155612120565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ccd5750600090506003612d98565b8460ff16601b14158015612ce557508460ff16601c14155b15612cf65750600090506004612d98565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d4a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116612d9157600060019250925050612d98565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612ddb87828885612c96565b935093505050935093915050565b828054612df59061340c565b90600052602060002090601f016020900481019282612e175760008555612e7b565b82601f10612e4e578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612e7b565b82800160010185558215612e7b579182015b82811115612e7b578235825591602001919060010190612e60565b50612e87929150612e8b565b5090565b5b80821115612e875760008155600101612e8c565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112d157600080fd5b600060208284031215612ee057600080fd5b8135611b0a81612ea0565b60005b83811015612f06578181015183820152602001612eee565b83811115611a6e5750506000910152565b60008151808452612f2f816020860160208601612eeb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611b0a6020830184612f17565b600060208284031215612f8657600080fd5b5035919050565b80356001600160a01b0381168114612fa457600080fd5b919050565b60008060408385031215612fbc57600080fd5b612fc583612f8d565b946020939093013593505050565b60008060208385031215612fe657600080fd5b823567ffffffffffffffff80821115612ffe57600080fd5b818501915085601f83011261301257600080fd5b81358181111561302157600080fd5b8660208260051b850101111561303657600080fd5b60209290920196919550909350505050565b60008060006060848603121561305d57600080fd5b61306684612f8d565b925061307460208501612f8d565b9150604084013590509250925092565b60006020828403121561309657600080fd5b611b0a82612f8d565b600080604083850312156130b257600080fd5b50508035926020909101359150565b600080602083850312156130d457600080fd5b823567ffffffffffffffff808211156130ec57600080fd5b818501915085601f83011261310057600080fd5b81358181111561310f57600080fd5b86602082850101111561303657600080fd5b80358015158114612fa457600080fd5b60006020828403121561314357600080fd5b611b0a82613121565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261318c57600080fd5b813567ffffffffffffffff808211156131a7576131a761314c565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156131ed576131ed61314c565b8160405283815286602085880101111561320657600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561323b57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561326057600080fd5b61326c8682870161317b565b9150509250925092565b6000806040838503121561328957600080fd5b82359150602083013567ffffffffffffffff8111156132a757600080fd5b6132b38582860161317b565b9150509250929050565b600080604083850312156132d057600080fd5b6132d983612f8d565b91506132e760208401613121565b90509250929050565b6000806000806080858703121561330657600080fd5b61330f85612f8d565b935061331d60208601612f8d565b925060408501359150606085013567ffffffffffffffff81111561334057600080fd5b61334c8782880161317b565b91505092959194509250565b6000806000806080858703121561336e57600080fd5b61337785612f8d565b93506020850135925060408501359150606085013567ffffffffffffffff81111561334057600080fd5b600080604083850312156133b457600080fd5b6133bd83612f8d565b91506132e760208401612f8d565b6000806000606084860312156133e057600080fd5b833592506133f060208501613121565b9150604084013567ffffffffffffffff81111561326057600080fd5b600181811c9082168061342057607f821691505b602082108103613459577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156134a1576134a161345f565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060001982036134e8576134e861345f565b5060010190565b60008351613501818460208801612eeb565b835190830190613515818360208801612eeb565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135506080830184612f17565b9695505050505050565b60006020828403121561356c57600080fd5b8151611b0a81612ea0565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826135b5576135b5613577565b500490565b6000828210156135cc576135cc61345f565b500390565b6000826135e0576135e0613577565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea26469706673582212207d99752a147a8a374699634a5aff949af956fd088c2cfe2f070214692c8be04a64736f6c634300080d0033

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.