ETH Price: $3,434.87 (+2.49%)
Gas: 4 Gwei

Token

Cosmic Poem (CP)
 

Overview

Max Total Supply

333 CP

Holders

183

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 CP
0xdd946f8e906ded658405b35b80e240c221e322f0
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Cosmic Poems by Poette are a collection of 333 1/1 poems on the blockchain. Each poem has been uniquely channeled through the cosmos, typewritten, and photographed with organic materials, body parts, and cosmic lighting.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CosmicPoem

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./extensions/ERC721ABurnable.sol";
import "./ERC721A.sol";

contract CosmicPoem is Ownable, ERC721A, ERC721ABurnable {
    enum ContractStatus {
        Paused,
        Public,
        AllowList
    }

    enum PoemType {
        Regular,
        Intuitive,
        Puzzle
    }

    struct SpecialPoem {
        // The address of the claimer.
        // Or Puzzle Key if not claimed yet.
        address addr;
        PoemType poemType;
        uint64 claimedTimestamp;
        bool claimed;
    }

    ContractStatus public contractStatus = ContractStatus.Paused;
    uint256 public immutable maxPerAddressDuringMint = 2;
    uint256 public immutable amountForDevs = 9;
    uint256 public immutable collectionSize = 333;
    uint256 public immutable amountForIntuitives = 33;
    uint256 public immutable amountForPuzzles = 3;
    uint256 public salePrice = 0.083 ether;

    bool public isIntuitivePoemsSet = false;
    bool public isPuzzlePoemsSet = false;

    string private _baseTokenURI;

    mapping(address => uint256) public allowlist;
    mapping(uint256 => SpecialPoem) private specialPoems;

    constructor() ERC721A("Cosmic Poem", "CP") {}

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    modifier callerIsTokenOwner(uint256 tokenId) {
        require(ownershipOf(tokenId).addr == msg.sender, "Not owner of token");
        _;
    }

    modifier tokenInBounds(uint256 tokenId) {
        require(tokenId < collectionSize, "Token is out of bounds");
        _;
    }

    modifier allPoemsMinted() {
        require(
            totalMinted() == collectionSize,
            "Not all poems are minted yet"
        );
        _;
    }

    function setContractStatus(ContractStatus status) external onlyOwner {
        contractStatus = status;
    }

    function setMintPrice(uint256 price) external onlyOwner {
        salePrice = price;
    }

    function seedAllowList(address[] memory addresses, uint256 numSlot)
        external
        onlyOwner
    {
        for (uint256 i = 0; i < addresses.length; i++) {
            allowlist[addresses[i]] = numSlot;
        }
    }

    function allowListMint(uint256 quantity) external payable callerIsUser {
        require(
            contractStatus == ContractStatus.AllowList,
            "allowlist sale has not begun yet"
        );
        require(allowlist[msg.sender] > 0, "not eligible for allowlist mint");
        require(quantity <= allowlist[msg.sender], "can not mint this many");
        require(
            totalMinted() + quantity <= collectionSize,
            "reached max supply"
        );
        require(msg.value >= salePrice * quantity, "need to send more ETH.");
        allowlist[msg.sender] -= quantity;
        _safeMint(msg.sender, quantity);
    }

    function publicSaleMint(uint256 quantity) external payable callerIsUser {
        require(
            contractStatus == ContractStatus.Public,
            "public sale has not begun yet"
        );
        require(
            totalMinted() + quantity <= collectionSize,
            "reached max supply"
        );
        require(
            numberMinted(msg.sender) + quantity <= maxPerAddressDuringMint,
            "can not mint this many"
        );
        require(msg.value >= salePrice * quantity, "need to send more ETH.");
        _safeMint(msg.sender, quantity);
    }

    function devMint(uint256 quantity) external onlyOwner {
        require(
            totalMinted() + quantity <= amountForDevs,
            "too many already minted before dev mint"
        );
        _safeMint(msg.sender, quantity);
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function withdrawMoney() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function numberMinted(address owner) public view returns (uint256) {
        return _numberMinted(owner);
    }

    function numberBurned(address owner) public view returns (uint256) {
        return _numberBurned(owner);
    }

    function numberClaimed(address owner) public view returns (uint256) {
        return _numberClaimed(owner);
    }

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

    function getOwnershipData(uint256 tokenId)
        external
        view
        returns (TokenOwnership memory)
    {
        return ownershipOf(tokenId);
    }

    function seedIntuitivePoems(uint256[] memory poems)
        external
        onlyOwner
        allPoemsMinted
    {
        require(poems.length == amountForIntuitives, "Not enough poems to set");
        require(!isIntuitivePoemsSet, "Intuive Poems have already been set");
        for (uint256 i = 0; i < poems.length; i++) {
            setSpecialPoem(poems[i], PoemType.Intuitive, address(0));
        }
        isIntuitivePoemsSet = true;
    }

    function seedPuzzlePoems(uint256[] memory poems, address[] memory addresses)
        external
        onlyOwner
        allPoemsMinted
    {
        require(
            poems.length == addresses.length,
            "Poems do not match addresses length"
        );
        require(poems.length == amountForPuzzles, "Not enough poems to set");
        require(!isPuzzlePoemsSet, "Puzzles have already been set");
        for (uint256 i = 0; i < poems.length; i++) {
            setSpecialPoem(poems[i], PoemType.Puzzle, addresses[i]);
        }
        isPuzzlePoemsSet = true;
    }

    function setSpecialPoem(
        uint256 tokenId,
        PoemType poemType,
        address addr
    ) private tokenInBounds(tokenId) {
        SpecialPoem storage poem = specialPoems[tokenId];
        require(poem.poemType == PoemType.Regular, "Poem is already set");
        poem.addr = addr;
        poem.poemType = poemType;
    }

    function claimIntuitivePoem(uint256 tokenId)
        external
        allPoemsMinted
        callerIsTokenOwner(tokenId)
    {
        SpecialPoem storage poem = specialPoems[tokenId];
        require(
            poem.poemType == PoemType.Intuitive,
            "Poem is not correct type"
        );
        require(!poem.claimed, "Poem has already been claimed");

        setSpecialPoemClaimed(poem);
    }

    function claimPuzzlePoem(uint256 tokenId, bytes32 _solution)
        external
        allPoemsMinted
        callerIsTokenOwner(tokenId)
    {
        SpecialPoem storage poem = specialPoems[tokenId];
        require(poem.poemType == PoemType.Puzzle, "Poem is not correct type");
        require(!poem.claimed, "Poem has already been claimed");
        require(
            address(uint160(uint256(keccak256(abi.encodePacked(_solution))))) ==
                poem.addr,
            "Incorrect answer"
        );

        setSpecialPoemClaimed(poem);
    }

    function setSpecialPoemClaimed(SpecialPoem storage poem) private {
        poem.addr = msg.sender;
        poem.claimed = true;
        poem.claimedTimestamp = uint64(block.timestamp);
        _addNumberClaimed(msg.sender, 1);
    }

    function getSpecialPoem(uint256 tokenId)
        external
        view
        allPoemsMinted
        tokenInBounds(tokenId)
        returns (SpecialPoem memory poem)
    {
        poem = specialPoems[tokenId];
        require(poem.poemType != PoemType.Regular, "Poem is not special");
        return poem;
    }

    function listIntuitivePoems() external view returns (uint256[] memory) {
        require(isIntuitivePoemsSet, "Intuitive Poems have not been set yet");
        uint256[] memory result = new uint256[](amountForIntuitives);
        uint256 counter = 0;
        for (uint256 i = 0; i < totalMinted(); i++) {
            SpecialPoem memory poem = specialPoems[i];
            if (poem.poemType == PoemType.Intuitive) {
                result[counter] = i;
                counter++;
            }
            if (counter == amountForIntuitives) break;
        }
        return result;
    }

    function listPuzzlePoems() external view returns (uint256[] memory) {
        require(isPuzzlePoemsSet, "Puzzles have not been set yet");
        uint256[] memory result = new uint256[](amountForPuzzles);
        uint256 counter = 0;
        for (uint256 i = 0; i < totalMinted(); i++) {
            SpecialPoem memory poem = specialPoems[i];
            if (poem.poemType == PoemType.Puzzle) {
                result[counter] = i;
                counter++;
            }
            if (counter == amountForPuzzles) break;
        }
        return result;
    }
}

File 2 of 12 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../ERC721A.sol';
import '@openzeppelin/contracts/utils/Context.sol';

/**
 * @title ERC721A Burnable Token
 * @dev ERC721A Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is Context, ERC721A {

    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();

        _burn(tokenId);
    }
}

File 3 of 12 : 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/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 ClaimedQueryForZeroAddress();
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;
        // Keeps track of claim count with minimal overhead for tokenmoics.
        uint64 numberClaimed;
    }

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

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

    // the number of tokens claimed.
    uint256 internal _claimCounter;

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

    /**
     * @dev
     * `maxBatchSize` refers to how much a minter can mint at a time.
     * `collectionSize_` refers to how many tokens are in the collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _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();
        }
    }

    /**
     * Returns the total amount of tokens burned in the contract.
     */
     function totalBurned() public view returns (uint256) {
         return _burnCounter;
     }

     /**
     * Returns the total amount of tokens claimed in the contract.
     */
     function totalClaimed() public view returns (uint256) {
         return _claimCounter;
     }

    /**
     * @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 number of tokens claimed by `owner`.
     */
    function _numberClaimed(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert ClaimedQueryForZeroAddress();
        return uint256(_addressData[owner].numberClaimed);
    }

    /**
     * Sets the number of claimed tokens for `owner`.
     */
    function _addNumberClaimed(address owner, uint64 amount) internal {
        unchecked {
            _addressData[owner].numberClaimed += amount;
            
            _claimCounter++;
        }
    }

    /**
     * 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
        virtual
        override
    {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (
            to.isContract() &&
            !_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 4 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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":"BurnedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ClaimedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForDevs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForIntuitives","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForPuzzles","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimIntuitivePoem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"_solution","type":"bytes32"}],"name":"claimPuzzlePoem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractStatus","outputs":[{"internalType":"enum CosmicPoem.ContractStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSpecialPoem","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"enum CosmicPoem.PoemType","name":"poemType","type":"uint8"},{"internalType":"uint64","name":"claimedTimestamp","type":"uint64"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct CosmicPoem.SpecialPoem","name":"poem","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isIntuitivePoemsSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPuzzlePoemsSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listIntuitivePoems","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listPuzzlePoems","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddressDuringMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"numSlot","type":"uint256"}],"name":"seedAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"poems","type":"uint256[]"}],"name":"seedIntuitivePoems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"poems","type":"uint256[]"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"seedPuzzlePoems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum CosmicPoem.ContractStatus","name":"status","type":"uint8"}],"name":"setContractStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610120604052600a805460ff191690556002608052600960a05261014d60c052602160e052600361010052670126e00f6c5b8000600b55600c805461ffff191690553480156200004e57600080fd5b506040518060400160405280600b81526020016a436f736d696320506f656d60a81b81525060405180604001604052806002815260200161043560f41b815250620000a8620000a2620000e160201b60201c565b620000e5565b8151620000bd90600490602085019062000135565b508051620000d390600590602084019062000135565b505060006001555062000218565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200014390620001db565b90600052602060002090601f016020900481019282620001675760008555620001b2565b82601f106200018257805160ff1916838001178555620001b2565b82800160010185558215620001b2579182015b82811115620001b257825182559160200191906001019062000195565b50620001c0929150620001c4565b5090565b5b80821115620001c05760008155600101620001c5565b600181811c90821680620001f057607f821691505b602082108114156200021257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051613e89620002d4600039600081816104b0015281816120600152818161263d01526127890152600081816105b701528181610b3001528181610c7c01526112c10152600081816105830152818161124b015281816113ff015281816117f1015281816118ff01528181611b7f01528181611bf601528181611f730152818161224d0152612ea20152600081816109d80152610f650152600081816106f301526122cf0152613e896000f3fe6080604052600436106103295760003560e01c806379995c11116101a5578063b3ab66b0116100ec578063dc33e68111610095578063f4a0a5281161006f578063f4a0a52814610990578063f51f96dd146109b0578063fbe1aa51146109c6578063fe732b91146109fa57600080fd5b8063dc33e68114610907578063e985e9c514610927578063f2fde38b1461097057600080fd5b8063c87b56dd116100c6578063c87b56dd146108bd578063d54ad2a1146108dd578063d89135cd146108f257600080fd5b8063b3ab66b014610863578063b88d4fde14610876578063c6ee20d21461089657600080fd5b806395d89b411161014e578063a7cd52cb11610128578063a7cd52cb14610801578063ac4460021461082e578063ad5100141461084357600080fd5b806395d89b41146107b7578063a22cb465146107cc578063a2309ff8146107ec57600080fd5b80638da5cb5b1161017f5780638da5cb5b146107155780639231ab2a1461073357806394acd1aa1461078a57600080fd5b806379995c11146106ae57806386268a67146106c15780638bc35c2f146106e157600080fd5b8063391dd9791161027457806355f804b31161021d5780636958627a116101f75780636958627a14610639578063706f8ece1461065957806370a0823114610679578063715018a61461069957600080fd5b806355f804b3146105d95780635d2ece89146105f95780636352211e1461061957600080fd5b806342966c681161024e57806342966c681461055157806345c0f533146105715780634c646c9d146105a557600080fd5b8063391dd979146104f25780633cd3d9fb1461051157806342842e0e1461053157600080fd5b806318160ddd116102d65780633099b2d8116102b05780633099b2d8146104845780633452a41d1461049e578063375a069a146104d257600080fd5b806318160ddd1461042157806323b872dd146104445780632478d6391461046457600080fd5b8063081812fc11610307578063081812fc146103a7578063095ea7b3146103df57806311f706ec1461040157600080fd5b806301ffc9a71461032e5780630499a5ac1461036357806306fdde0314610385575b600080fd5b34801561033a57600080fd5b5061034e6103493660046136b3565b610a0f565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b50610378610aac565b60405161035a91906136d0565b34801561039157600080fd5b5061039a610cc3565b60405161035a919061376c565b3480156103b357600080fd5b506103c76103c236600461377f565b610d55565b6040516001600160a01b03909116815260200161035a565b3480156103eb57600080fd5b506103ff6103fa3660046137b4565b610db2565b005b34801561040d57600080fd5b506103ff61041c3660046137de565b610e72565b34801561042d57600080fd5b50600254600154035b60405190815260200161035a565b34801561045057600080fd5b506103ff61045f3660046137ff565b610ef3565b34801561047057600080fd5b5061043661047f36600461383b565b610efe565b34801561049057600080fd5b50600c5461034e9060ff1681565b3480156104aa57600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000081565b3480156104de57600080fd5b506103ff6104ed36600461377f565b610f09565b3480156104fe57600080fd5b50600c5461034e90610100900460ff1681565b34801561051d57600080fd5b5061043661052c36600461383b565b611018565b34801561053d57600080fd5b506103ff61054c3660046137ff565b611023565b34801561055d57600080fd5b506103ff61056c36600461377f565b61103e565b34801561057d57600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000081565b3480156105b157600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000081565b3480156105e557600080fd5b506103ff6105f4366004613856565b6110bb565b34801561060557600080fd5b506103ff6106143660046139a5565b611121565b34801561062557600080fd5b506103c761063436600461377f565b6111dd565b34801561064557600080fd5b506103ff610654366004613a45565b6111ef565b34801561066557600080fd5b506103ff61067436600461377f565b6113fd565b34801561068557600080fd5b5061043661069436600461383b565b6115b1565b3480156106a557600080fd5b506103ff611619565b6103ff6106bc36600461377f565b61167f565b3480156106cd57600080fd5b506103ff6106dc366004613a7a565b6118fd565b3480156106ed57600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000081565b34801561072157600080fd5b506000546001600160a01b03166103c7565b34801561073f57600080fd5b5061075361074e36600461377f565b611b33565b6040805182516001600160a01b0316815260208084015167ffffffffffffffff16908201529181015115159082015260600161035a565b34801561079657600080fd5b506107aa6107a536600461377f565b611b59565b60405161035a9190613ad0565b3480156107c357600080fd5b5061039a611d57565b3480156107d857600080fd5b506103ff6107e7366004613b1d565b611d66565b3480156107f857600080fd5b50610436611e15565b34801561080d57600080fd5b5061043661081c36600461383b565b600e6020526000908152604090205481565b34801561083a57600080fd5b506103ff611e25565b34801561084f57600080fd5b506103ff61085e366004613b59565b611f17565b6103ff61087136600461377f565b612196565b34801561088257600080fd5b506103ff610891366004613bbd565b6123ad565b3480156108a257600080fd5b50600a546108b09060ff1681565b60405161035a9190613c7d565b3480156108c957600080fd5b5061039a6108d836600461377f565b6123f8565b3480156108e957600080fd5b50600354610436565b3480156108fe57600080fd5b50600254610436565b34801561091357600080fd5b5061043661092236600461383b565b612496565b34801561093357600080fd5b5061034e610942366004613c90565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561097c57600080fd5b506103ff61098b36600461383b565b6124a1565b34801561099c57600080fd5b506103ff6109ab36600461377f565b612580565b3480156109bc57600080fd5b50610436600b5481565b3480156109d257600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000081565b348015610a0657600080fd5b506103786125df565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a7257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610aa657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600c5460609060ff16610b2c5760405162461bcd60e51b815260206004820152602560248201527f496e7475697469766520506f656d732068617665206e6f74206265656e20736560448201527f742079657400000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff811115610b6757610b676138c8565b604051908082528060200260200182016040528015610b90578160200160208202803683370190505b5090506000805b610b9f611e15565b811015610cbb576000818152600f6020908152604080832081516080810190925280546001600160a01b03811683529192909190830190600160a01b900460ff166002811115610bf157610bf1613a9c565b6002811115610c0257610c02613a9c565b81529054600160a81b810467ffffffffffffffff166020830152600160e81b900460ff1615156040909101529050600181602001516002811115610c4857610c48613a9c565b1415610c7a5781848481518110610c6157610c61613cc3565b602090810291909101015282610c7681613cef565b9350505b7f0000000000000000000000000000000000000000000000000000000000000000831415610ca85750610cbb565b5080610cb381613cef565b915050610b97565b509092915050565b606060048054610cd290613d0a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfe90613d0a565b8015610d4b5780601f10610d2057610100808354040283529160200191610d4b565b820191906000526020600020905b815481529060010190602001808311610d2e57829003601f168201915b5050505050905090565b6000610d60826127c8565b610d96576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610dbd826111dd565b9050806001600160a01b0316836001600160a01b03161415610e0b576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610e2b5750610e298133610942565b155b15610e62576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e6d8383836127f4565b505050565b6000546001600160a01b03163314610ecc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b600a805482919060ff19166001836002811115610eeb57610eeb613a9c565b021790555050565b610e6d83838361285d565b6000610aa682612aa6565b6000546001600160a01b03163314610f635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000000081610f8d611e15565b610f979190613d3f565b111561100b5760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f7265206460448201527f6576206d696e74000000000000000000000000000000000000000000000000006064820152608401610b23565b6110153382612b22565b50565b6000610aa682612b40565b610e6d838383604051806020016040528060008152506123ad565b600061104982612baf565b80519091506000906001600160a01b0316336001600160a01b03161480611077575081516110779033610942565b8061109257503361108784610d55565b6001600160a01b0316145b9050806110b257604051632ce44b5f60e11b815260040160405180910390fd5b610e6d83612ce4565b6000546001600160a01b031633146111155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b610e6d600d8383613604565b6000546001600160a01b0316331461117b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b60005b8251811015610e6d5781600e600085848151811061119e5761119e613cc3565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806111d590613cef565b91505061117e565b60006111e882612baf565b5192915050565b6000546001600160a01b031633146112495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b7f0000000000000000000000000000000000000000000000000000000000000000611272611e15565b146112bf5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000000081511461132f5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820706f656d7320746f207365740000000000000000006044820152606401610b23565b600c5460ff16156113a85760405162461bcd60e51b815260206004820152602360248201527f496e747569766520506f656d73206861766520616c7265616479206265656e2060448201527f73657400000000000000000000000000000000000000000000000000000000006064820152608401610b23565b60005b81518110156113ec576113da8282815181106113c9576113c9613cc3565b602002602001015160016000612e9f565b806113e481613cef565b9150506113ab565b5050600c805460ff19166001179055565b7f0000000000000000000000000000000000000000000000000000000000000000611426611e15565b146114735760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b803361147e82612baf565b516001600160a01b0316146114d55760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610b23565b6000828152600f6020526040902060018154600160a01b900460ff16600281111561150257611502613a9c565b1461154f5760405162461bcd60e51b815260206004820152601860248201527f506f656d206973206e6f7420636f7272656374207479706500000000000000006044820152606401610b23565b8054600160e81b900460ff16156115a85760405162461bcd60e51b815260206004820152601d60248201527f506f656d2068617320616c7265616479206265656e20636c61696d65640000006044820152606401610b23565b610e6d81612ffc565b60006001600160a01b0382166115f3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146116735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b61167d60006130ef565b565b3233146116ce5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b23565b6002600a5460ff1660028111156116e7576116e7613a9c565b146117345760405162461bcd60e51b815260206004820181905260248201527f616c6c6f776c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610b23565b336000908152600e60205260409020546117905760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610b23565b336000908152600e60205260409020548111156117ef5760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000000081611819611e15565b6118239190613d3f565b11156118715760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b23565b80600b5461187f9190613d57565b3410156118ce5760405162461bcd60e51b815260206004820152601660248201527f6e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b23565b336000908152600e6020526040812080548392906118ed908490613d76565b9091555061101590503382612b22565b7f0000000000000000000000000000000000000000000000000000000000000000611926611e15565b146119735760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b813361197e82612baf565b516001600160a01b0316146119d55760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610b23565b6000838152600f6020526040902060028154600160a01b900460ff166002811115611a0257611a02613a9c565b14611a4f5760405162461bcd60e51b815260206004820152601860248201527f506f656d206973206e6f7420636f7272656374207479706500000000000000006044820152606401610b23565b8054600160e81b900460ff1615611aa85760405162461bcd60e51b815260206004820152601d60248201527f506f656d2068617320616c7265616479206265656e20636c61696d65640000006044820152606401610b23565b805460408051602080820187905282518083038201815291830190925280519101206001600160a01b03908116911614611b245760405162461bcd60e51b815260206004820152601060248201527f496e636f727265637420616e73776572000000000000000000000000000000006044820152606401610b23565b611b2d81612ffc565b50505050565b6040805160608101825260008082526020820181905291810191909152610aa682612baf565b6040805160808101825260008082526020820181905291810182905260608101919091527f0000000000000000000000000000000000000000000000000000000000000000611ba6611e15565b14611bf35760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b817f00000000000000000000000000000000000000000000000000000000000000008110611c635760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206f7574206f6620626f756e6473000000000000000000006044820152606401610b23565b6000838152600f602090815260409182902082516080810190935280546001600160a01b03811684529091830190600160a01b900460ff166002811115611cac57611cac613a9c565b6002811115611cbd57611cbd613a9c565b81529054600160a81b810467ffffffffffffffff166020830152600160e81b900460ff1615156040909101529150600082602001516002811115611d0357611d03613a9c565b1415611d515760405162461bcd60e51b815260206004820152601360248201527f506f656d206973206e6f74207370656369616c000000000000000000000000006044820152606401610b23565b50919050565b606060058054610cd290613d0a565b6001600160a01b038216331415611da9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000611e2060015490565b905090565b6000546001600160a01b03163314611e7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b604051600090339047908381818185875af1925050503d8060008114611ec1576040519150601f19603f3d011682016040523d82523d6000602084013e611ec6565b606091505b50509050806110155760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b23565b6000546001600160a01b03163314611f715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b7f0000000000000000000000000000000000000000000000000000000000000000611f9a611e15565b14611fe75760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b805182511461205e5760405162461bcd60e51b815260206004820152602360248201527f506f656d7320646f206e6f74206d6174636820616464726573736573206c656e60448201527f67746800000000000000000000000000000000000000000000000000000000006064820152608401610b23565b7f00000000000000000000000000000000000000000000000000000000000000008251146120ce5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820706f656d7320746f207365740000000000000000006044820152606401610b23565b600c54610100900460ff16156121265760405162461bcd60e51b815260206004820152601d60248201527f50757a7a6c6573206861766520616c7265616479206265656e207365740000006044820152606401610b23565b60005b82518110156121825761217083828151811061214757612147613cc3565b6020026020010151600284848151811061216357612163613cc3565b6020026020010151612e9f565b8061217a81613cef565b915050612129565b5050600c805461ff00191661010017905550565b3233146121e55760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b23565b6001600a5460ff1660028111156121fe576121fe613a9c565b1461224b5760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e207965740000006044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000000081612275611e15565b61227f9190613d3f565b11156122cd5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b23565b7f0000000000000000000000000000000000000000000000000000000000000000816122f833612496565b6123029190613d3f565b11156123505760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610b23565b80600b5461235e9190613d57565b34101561100b5760405162461bcd60e51b815260206004820152601660248201527f6e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b23565b6123b884848461285d565b6001600160a01b0383163b151580156123da57506123d88484848461314c565b155b15611b2d576040516368d2bf6b60e11b815260040160405180910390fd5b6060612403826127c8565b612439576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612443613235565b9050805160001415612464576040518060200160405280600081525061248f565b8061246e84613244565b60405160200161247f929190613d8d565b6040516020818303038152906040525b9392505050565b6000610aa682613376565b6000546001600160a01b031633146124fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b6001600160a01b0381166125775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b23565b611015816130ef565b6000546001600160a01b031633146125da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b600b55565b600c54606090610100900460ff166126395760405162461bcd60e51b815260206004820152601d60248201527f50757a7a6c65732068617665206e6f74206265656e20736574207965740000006044820152606401610b23565b60007f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff811115612674576126746138c8565b60405190808252806020026020018201604052801561269d578160200160208202803683370190505b5090506000805b6126ac611e15565b811015610cbb576000818152600f6020908152604080832081516080810190925280546001600160a01b03811683529192909190830190600160a01b900460ff1660028111156126fe576126fe613a9c565b600281111561270f5761270f613a9c565b81529054600160a81b810467ffffffffffffffff166020830152600160e81b900460ff161515604090910152905060028160200151600281111561275557612755613a9c565b1415612787578184848151811061276e5761276e613cc3565b60209081029190910101528261278381613cef565b9350505b7f00000000000000000000000000000000000000000000000000000000000000008314156127b55750610cbb565b50806127c081613cef565b9150506126a4565b600060015482108015610aa6575050600090815260066020526040902054600160e01b900460ff161590565b600082815260086020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061286882612baf565b80519091506000906001600160a01b0316336001600160a01b03161480612896575081516128969033610942565b806128b15750336128a684610d55565b6001600160a01b0316145b9050806128d157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612920576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612960576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61297060008484600001516127f4565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612a5c57600154811015612a5c578251600082815260066020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60006001600160a01b038216612ae8576040517f21af468d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b612b3c8282604051806020016040528060008152506133ea565b5050565b60006001600160a01b038216612b82576040517f203fcd5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054600160c01b900467ffffffffffffffff1690565b604080516060810182526000808252602082018190529181019190915281600154811015612cb257600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612cb05780516001600160a01b031615612c46579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612cab579392505050565b612c46565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612cef82612baf565b9050612d0160008383600001516127f4565b80516001600160a01b039081166000908152600760209081526040808320805467ffffffffffffffff19811667ffffffffffffffff9182166000190182161790915585518516845281842080547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff81167001000000000000000000000000000000009182900484166001908101851690920217909155865188865260069094528285208054600160e01b9588166001600160e01b031990911617600160a01b4290941693909302929092177fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff16939093179055908501808352912054909116612e5657600154811015612e56578151600082815260066020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600280546001019055565b827f00000000000000000000000000000000000000000000000000000000000000008110612f0f5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206f7574206f6620626f756e6473000000000000000000006044820152606401610b23565b6000848152600f60205260408120908154600160a01b900460ff166002811115612f3b57612f3b613a9c565b14612f885760405162461bcd60e51b815260206004820152601360248201527f506f656d20697320616c726561647920736574000000000000000000000000006044820152606401610b23565b80546001600160a01b03841673ffffffffffffffffffffffffffffffffffffffff19821681178355859183917fffffffffffffffffffffff00000000000000000000000000000000000000000090911617600160a01b836002811115612ff057612ff0613a9c565b02179055505050505050565b805467ffffffffffffffff4216600160a81b027fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff7fffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff339081167fffff00ffffffffffffffffff000000000000000000000000000000000000000090941693909317600160e81b17161782556110159060016001600160a01b039091166000908152600760205260409020805467ffffffffffffffff600160c01b80830482169094011690920277ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055600380546001019055565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613181903390899088908890600401613dbc565b6020604051808303816000875af19250505080156131bc575060408051601f3d908101601f191682019092526131b991810190613df8565b60015b613217573d8080156131ea576040519150601f19603f3d011682016040523d82523d6000602084013e6131ef565b606091505b50805161320f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600d8054610cd290613d0a565b60608161328457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156132ae578061329881613cef565b91506132a79050600a83613e2b565b9150613288565b60008167ffffffffffffffff8111156132c9576132c96138c8565b6040519080825280601f01601f1916602001820160405280156132f3576020820181803683370190505b5090505b841561322d57613308600183613d76565b9150613315600a86613e3f565b613320906030613d3f565b60f81b81838151811061333557613335613cc3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061336f600a86613e2b565b94506132f7565b60006001600160a01b0382166133b8576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205468010000000000000000900467ffffffffffffffff1690565b610e6d838383600180546001600160a01b038516613434576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8361346b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260076020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561352c57506001600160a01b0387163b15155b156135b5575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461357d600088848060010195508861314c565b61359a576040516368d2bf6b60e11b815260040160405180910390fd5b808214156135325782600154146135b057600080fd5b6135fb565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156135b6575b50600155612a9f565b82805461361090613d0a565b90600052602060002090601f0160209004810192826136325760008555613678565b82601f1061364b5782800160ff19823516178555613678565b82800160010185558215613678579182015b8281111561367857823582559160200191906001019061365d565b50613684929150613688565b5090565b5b808211156136845760008155600101613689565b6001600160e01b03198116811461101557600080fd5b6000602082840312156136c557600080fd5b813561248f8161369d565b6020808252825182820181905260009190848201906040850190845b81811015613708578351835292840192918401916001016136ec565b50909695505050505050565b60005b8381101561372f578181015183820152602001613717565b83811115611b2d5750506000910152565b60008151808452613758816020860160208601613714565b601f01601f19169290920160200192915050565b60208152600061248f6020830184613740565b60006020828403121561379157600080fd5b5035919050565b80356001600160a01b03811681146137af57600080fd5b919050565b600080604083850312156137c757600080fd5b6137d083613798565b946020939093013593505050565b6000602082840312156137f057600080fd5b81356003811061248f57600080fd5b60008060006060848603121561381457600080fd5b61381d84613798565b925061382b60208501613798565b9150604084013590509250925092565b60006020828403121561384d57600080fd5b61248f82613798565b6000806020838503121561386957600080fd5b823567ffffffffffffffff8082111561388157600080fd5b818501915085601f83011261389557600080fd5b8135818111156138a457600080fd5b8660208285010111156138b657600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613907576139076138c8565b604052919050565b600067ffffffffffffffff821115613929576139296138c8565b5060051b60200190565b600082601f83011261394457600080fd5b813560206139596139548361390f565b6138de565b82815260059290921b8401810191818101908684111561397857600080fd5b8286015b8481101561399a5761398d81613798565b835291830191830161397c565b509695505050505050565b600080604083850312156139b857600080fd5b823567ffffffffffffffff8111156139cf57600080fd5b6139db85828601613933565b95602094909401359450505050565b600082601f8301126139fb57600080fd5b81356020613a0b6139548361390f565b82815260059290921b84018101918181019086841115613a2a57600080fd5b8286015b8481101561399a5780358352918301918301613a2e565b600060208284031215613a5757600080fd5b813567ffffffffffffffff811115613a6e57600080fd5b61322d848285016139ea565b60008060408385031215613a8d57600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b6003811061101557634e487b7160e01b600052602160045260246000fd5b81516001600160a01b0316815260208201516080820190613af081613ab2565b8060208401525067ffffffffffffffff604084015116604083015260608301511515606083015292915050565b60008060408385031215613b3057600080fd5b613b3983613798565b915060208301358015158114613b4e57600080fd5b809150509250929050565b60008060408385031215613b6c57600080fd5b823567ffffffffffffffff80821115613b8457600080fd5b613b90868387016139ea565b93506020850135915080821115613ba657600080fd5b50613bb385828601613933565b9150509250929050565b60008060008060808587031215613bd357600080fd5b613bdc85613798565b93506020613beb818701613798565b935060408601359250606086013567ffffffffffffffff80821115613c0f57600080fd5b818801915088601f830112613c2357600080fd5b813581811115613c3557613c356138c8565b613c47601f8201601f191685016138de565b91508082528984828501011115613c5d57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60208101613c8a83613ab2565b91905290565b60008060408385031215613ca357600080fd5b613cac83613798565b9150613cba60208401613798565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613d0357613d03613cd9565b5060010190565b600181811c90821680613d1e57607f821691505b60208210811415611d5157634e487b7160e01b600052602260045260246000fd5b60008219821115613d5257613d52613cd9565b500190565b6000816000190483118215151615613d7157613d71613cd9565b500290565b600082821015613d8857613d88613cd9565b500390565b60008351613d9f818460208801613714565b835190830190613db3818360208801613714565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613dee6080830184613740565b9695505050505050565b600060208284031215613e0a57600080fd5b815161248f8161369d565b634e487b7160e01b600052601260045260246000fd5b600082613e3a57613e3a613e15565b500490565b600082613e4e57613e4e613e15565b50069056fea2646970667358221220b804debfb848b07519ed3af39ec95529e26d78acc3d4266423a641a17826acd664736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106103295760003560e01c806379995c11116101a5578063b3ab66b0116100ec578063dc33e68111610095578063f4a0a5281161006f578063f4a0a52814610990578063f51f96dd146109b0578063fbe1aa51146109c6578063fe732b91146109fa57600080fd5b8063dc33e68114610907578063e985e9c514610927578063f2fde38b1461097057600080fd5b8063c87b56dd116100c6578063c87b56dd146108bd578063d54ad2a1146108dd578063d89135cd146108f257600080fd5b8063b3ab66b014610863578063b88d4fde14610876578063c6ee20d21461089657600080fd5b806395d89b411161014e578063a7cd52cb11610128578063a7cd52cb14610801578063ac4460021461082e578063ad5100141461084357600080fd5b806395d89b41146107b7578063a22cb465146107cc578063a2309ff8146107ec57600080fd5b80638da5cb5b1161017f5780638da5cb5b146107155780639231ab2a1461073357806394acd1aa1461078a57600080fd5b806379995c11146106ae57806386268a67146106c15780638bc35c2f146106e157600080fd5b8063391dd9791161027457806355f804b31161021d5780636958627a116101f75780636958627a14610639578063706f8ece1461065957806370a0823114610679578063715018a61461069957600080fd5b806355f804b3146105d95780635d2ece89146105f95780636352211e1461061957600080fd5b806342966c681161024e57806342966c681461055157806345c0f533146105715780634c646c9d146105a557600080fd5b8063391dd979146104f25780633cd3d9fb1461051157806342842e0e1461053157600080fd5b806318160ddd116102d65780633099b2d8116102b05780633099b2d8146104845780633452a41d1461049e578063375a069a146104d257600080fd5b806318160ddd1461042157806323b872dd146104445780632478d6391461046457600080fd5b8063081812fc11610307578063081812fc146103a7578063095ea7b3146103df57806311f706ec1461040157600080fd5b806301ffc9a71461032e5780630499a5ac1461036357806306fdde0314610385575b600080fd5b34801561033a57600080fd5b5061034e6103493660046136b3565b610a0f565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b50610378610aac565b60405161035a91906136d0565b34801561039157600080fd5b5061039a610cc3565b60405161035a919061376c565b3480156103b357600080fd5b506103c76103c236600461377f565b610d55565b6040516001600160a01b03909116815260200161035a565b3480156103eb57600080fd5b506103ff6103fa3660046137b4565b610db2565b005b34801561040d57600080fd5b506103ff61041c3660046137de565b610e72565b34801561042d57600080fd5b50600254600154035b60405190815260200161035a565b34801561045057600080fd5b506103ff61045f3660046137ff565b610ef3565b34801561047057600080fd5b5061043661047f36600461383b565b610efe565b34801561049057600080fd5b50600c5461034e9060ff1681565b3480156104aa57600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000381565b3480156104de57600080fd5b506103ff6104ed36600461377f565b610f09565b3480156104fe57600080fd5b50600c5461034e90610100900460ff1681565b34801561051d57600080fd5b5061043661052c36600461383b565b611018565b34801561053d57600080fd5b506103ff61054c3660046137ff565b611023565b34801561055d57600080fd5b506103ff61056c36600461377f565b61103e565b34801561057d57600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000014d81565b3480156105b157600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000002181565b3480156105e557600080fd5b506103ff6105f4366004613856565b6110bb565b34801561060557600080fd5b506103ff6106143660046139a5565b611121565b34801561062557600080fd5b506103c761063436600461377f565b6111dd565b34801561064557600080fd5b506103ff610654366004613a45565b6111ef565b34801561066557600080fd5b506103ff61067436600461377f565b6113fd565b34801561068557600080fd5b5061043661069436600461383b565b6115b1565b3480156106a557600080fd5b506103ff611619565b6103ff6106bc36600461377f565b61167f565b3480156106cd57600080fd5b506103ff6106dc366004613a7a565b6118fd565b3480156106ed57600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000281565b34801561072157600080fd5b506000546001600160a01b03166103c7565b34801561073f57600080fd5b5061075361074e36600461377f565b611b33565b6040805182516001600160a01b0316815260208084015167ffffffffffffffff16908201529181015115159082015260600161035a565b34801561079657600080fd5b506107aa6107a536600461377f565b611b59565b60405161035a9190613ad0565b3480156107c357600080fd5b5061039a611d57565b3480156107d857600080fd5b506103ff6107e7366004613b1d565b611d66565b3480156107f857600080fd5b50610436611e15565b34801561080d57600080fd5b5061043661081c36600461383b565b600e6020526000908152604090205481565b34801561083a57600080fd5b506103ff611e25565b34801561084f57600080fd5b506103ff61085e366004613b59565b611f17565b6103ff61087136600461377f565b612196565b34801561088257600080fd5b506103ff610891366004613bbd565b6123ad565b3480156108a257600080fd5b50600a546108b09060ff1681565b60405161035a9190613c7d565b3480156108c957600080fd5b5061039a6108d836600461377f565b6123f8565b3480156108e957600080fd5b50600354610436565b3480156108fe57600080fd5b50600254610436565b34801561091357600080fd5b5061043661092236600461383b565b612496565b34801561093357600080fd5b5061034e610942366004613c90565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561097c57600080fd5b506103ff61098b36600461383b565b6124a1565b34801561099c57600080fd5b506103ff6109ab36600461377f565b612580565b3480156109bc57600080fd5b50610436600b5481565b3480156109d257600080fd5b506104367f000000000000000000000000000000000000000000000000000000000000000981565b348015610a0657600080fd5b506103786125df565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a7257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610aa657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600c5460609060ff16610b2c5760405162461bcd60e51b815260206004820152602560248201527f496e7475697469766520506f656d732068617665206e6f74206265656e20736560448201527f742079657400000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000002167ffffffffffffffff811115610b6757610b676138c8565b604051908082528060200260200182016040528015610b90578160200160208202803683370190505b5090506000805b610b9f611e15565b811015610cbb576000818152600f6020908152604080832081516080810190925280546001600160a01b03811683529192909190830190600160a01b900460ff166002811115610bf157610bf1613a9c565b6002811115610c0257610c02613a9c565b81529054600160a81b810467ffffffffffffffff166020830152600160e81b900460ff1615156040909101529050600181602001516002811115610c4857610c48613a9c565b1415610c7a5781848481518110610c6157610c61613cc3565b602090810291909101015282610c7681613cef565b9350505b7f0000000000000000000000000000000000000000000000000000000000000021831415610ca85750610cbb565b5080610cb381613cef565b915050610b97565b509092915050565b606060048054610cd290613d0a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfe90613d0a565b8015610d4b5780601f10610d2057610100808354040283529160200191610d4b565b820191906000526020600020905b815481529060010190602001808311610d2e57829003601f168201915b5050505050905090565b6000610d60826127c8565b610d96576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610dbd826111dd565b9050806001600160a01b0316836001600160a01b03161415610e0b576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610e2b5750610e298133610942565b155b15610e62576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e6d8383836127f4565b505050565b6000546001600160a01b03163314610ecc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b600a805482919060ff19166001836002811115610eeb57610eeb613a9c565b021790555050565b610e6d83838361285d565b6000610aa682612aa6565b6000546001600160a01b03163314610f635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000000981610f8d611e15565b610f979190613d3f565b111561100b5760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f7265206460448201527f6576206d696e74000000000000000000000000000000000000000000000000006064820152608401610b23565b6110153382612b22565b50565b6000610aa682612b40565b610e6d838383604051806020016040528060008152506123ad565b600061104982612baf565b80519091506000906001600160a01b0316336001600160a01b03161480611077575081516110779033610942565b8061109257503361108784610d55565b6001600160a01b0316145b9050806110b257604051632ce44b5f60e11b815260040160405180910390fd5b610e6d83612ce4565b6000546001600160a01b031633146111155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b610e6d600d8383613604565b6000546001600160a01b0316331461117b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b60005b8251811015610e6d5781600e600085848151811061119e5761119e613cc3565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806111d590613cef565b91505061117e565b60006111e882612baf565b5192915050565b6000546001600160a01b031633146112495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000014d611272611e15565b146112bf5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000002181511461132f5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820706f656d7320746f207365740000000000000000006044820152606401610b23565b600c5460ff16156113a85760405162461bcd60e51b815260206004820152602360248201527f496e747569766520506f656d73206861766520616c7265616479206265656e2060448201527f73657400000000000000000000000000000000000000000000000000000000006064820152608401610b23565b60005b81518110156113ec576113da8282815181106113c9576113c9613cc3565b602002602001015160016000612e9f565b806113e481613cef565b9150506113ab565b5050600c805460ff19166001179055565b7f000000000000000000000000000000000000000000000000000000000000014d611426611e15565b146114735760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b803361147e82612baf565b516001600160a01b0316146114d55760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610b23565b6000828152600f6020526040902060018154600160a01b900460ff16600281111561150257611502613a9c565b1461154f5760405162461bcd60e51b815260206004820152601860248201527f506f656d206973206e6f7420636f7272656374207479706500000000000000006044820152606401610b23565b8054600160e81b900460ff16156115a85760405162461bcd60e51b815260206004820152601d60248201527f506f656d2068617320616c7265616479206265656e20636c61696d65640000006044820152606401610b23565b610e6d81612ffc565b60006001600160a01b0382166115f3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146116735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b61167d60006130ef565b565b3233146116ce5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b23565b6002600a5460ff1660028111156116e7576116e7613a9c565b146117345760405162461bcd60e51b815260206004820181905260248201527f616c6c6f776c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610b23565b336000908152600e60205260409020546117905760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610b23565b336000908152600e60205260409020548111156117ef5760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000014d81611819611e15565b6118239190613d3f565b11156118715760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b23565b80600b5461187f9190613d57565b3410156118ce5760405162461bcd60e51b815260206004820152601660248201527f6e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b23565b336000908152600e6020526040812080548392906118ed908490613d76565b9091555061101590503382612b22565b7f000000000000000000000000000000000000000000000000000000000000014d611926611e15565b146119735760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b813361197e82612baf565b516001600160a01b0316146119d55760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610b23565b6000838152600f6020526040902060028154600160a01b900460ff166002811115611a0257611a02613a9c565b14611a4f5760405162461bcd60e51b815260206004820152601860248201527f506f656d206973206e6f7420636f7272656374207479706500000000000000006044820152606401610b23565b8054600160e81b900460ff1615611aa85760405162461bcd60e51b815260206004820152601d60248201527f506f656d2068617320616c7265616479206265656e20636c61696d65640000006044820152606401610b23565b805460408051602080820187905282518083038201815291830190925280519101206001600160a01b03908116911614611b245760405162461bcd60e51b815260206004820152601060248201527f496e636f727265637420616e73776572000000000000000000000000000000006044820152606401610b23565b611b2d81612ffc565b50505050565b6040805160608101825260008082526020820181905291810191909152610aa682612baf565b6040805160808101825260008082526020820181905291810182905260608101919091527f000000000000000000000000000000000000000000000000000000000000014d611ba6611e15565b14611bf35760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b817f000000000000000000000000000000000000000000000000000000000000014d8110611c635760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206f7574206f6620626f756e6473000000000000000000006044820152606401610b23565b6000838152600f602090815260409182902082516080810190935280546001600160a01b03811684529091830190600160a01b900460ff166002811115611cac57611cac613a9c565b6002811115611cbd57611cbd613a9c565b81529054600160a81b810467ffffffffffffffff166020830152600160e81b900460ff1615156040909101529150600082602001516002811115611d0357611d03613a9c565b1415611d515760405162461bcd60e51b815260206004820152601360248201527f506f656d206973206e6f74207370656369616c000000000000000000000000006044820152606401610b23565b50919050565b606060058054610cd290613d0a565b6001600160a01b038216331415611da9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000611e2060015490565b905090565b6000546001600160a01b03163314611e7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b604051600090339047908381818185875af1925050503d8060008114611ec1576040519150601f19603f3d011682016040523d82523d6000602084013e611ec6565b606091505b50509050806110155760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b23565b6000546001600160a01b03163314611f715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000014d611f9a611e15565b14611fe75760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420616c6c20706f656d7320617265206d696e74656420796574000000006044820152606401610b23565b805182511461205e5760405162461bcd60e51b815260206004820152602360248201527f506f656d7320646f206e6f74206d6174636820616464726573736573206c656e60448201527f67746800000000000000000000000000000000000000000000000000000000006064820152608401610b23565b7f00000000000000000000000000000000000000000000000000000000000000038251146120ce5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820706f656d7320746f207365740000000000000000006044820152606401610b23565b600c54610100900460ff16156121265760405162461bcd60e51b815260206004820152601d60248201527f50757a7a6c6573206861766520616c7265616479206265656e207365740000006044820152606401610b23565b60005b82518110156121825761217083828151811061214757612147613cc3565b6020026020010151600284848151811061216357612163613cc3565b6020026020010151612e9f565b8061217a81613cef565b915050612129565b5050600c805461ff00191661010017905550565b3233146121e55760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b23565b6001600a5460ff1660028111156121fe576121fe613a9c565b1461224b5760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e207965740000006044820152606401610b23565b7f000000000000000000000000000000000000000000000000000000000000014d81612275611e15565b61227f9190613d3f565b11156122cd5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b23565b7f0000000000000000000000000000000000000000000000000000000000000002816122f833612496565b6123029190613d3f565b11156123505760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610b23565b80600b5461235e9190613d57565b34101561100b5760405162461bcd60e51b815260206004820152601660248201527f6e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b23565b6123b884848461285d565b6001600160a01b0383163b151580156123da57506123d88484848461314c565b155b15611b2d576040516368d2bf6b60e11b815260040160405180910390fd5b6060612403826127c8565b612439576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612443613235565b9050805160001415612464576040518060200160405280600081525061248f565b8061246e84613244565b60405160200161247f929190613d8d565b6040516020818303038152906040525b9392505050565b6000610aa682613376565b6000546001600160a01b031633146124fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b6001600160a01b0381166125775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b23565b611015816130ef565b6000546001600160a01b031633146125da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b23565b600b55565b600c54606090610100900460ff166126395760405162461bcd60e51b815260206004820152601d60248201527f50757a7a6c65732068617665206e6f74206265656e20736574207965740000006044820152606401610b23565b60007f000000000000000000000000000000000000000000000000000000000000000367ffffffffffffffff811115612674576126746138c8565b60405190808252806020026020018201604052801561269d578160200160208202803683370190505b5090506000805b6126ac611e15565b811015610cbb576000818152600f6020908152604080832081516080810190925280546001600160a01b03811683529192909190830190600160a01b900460ff1660028111156126fe576126fe613a9c565b600281111561270f5761270f613a9c565b81529054600160a81b810467ffffffffffffffff166020830152600160e81b900460ff161515604090910152905060028160200151600281111561275557612755613a9c565b1415612787578184848151811061276e5761276e613cc3565b60209081029190910101528261278381613cef565b9350505b7f00000000000000000000000000000000000000000000000000000000000000038314156127b55750610cbb565b50806127c081613cef565b9150506126a4565b600060015482108015610aa6575050600090815260066020526040902054600160e01b900460ff161590565b600082815260086020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061286882612baf565b80519091506000906001600160a01b0316336001600160a01b03161480612896575081516128969033610942565b806128b15750336128a684610d55565b6001600160a01b0316145b9050806128d157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612920576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612960576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61297060008484600001516127f4565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612a5c57600154811015612a5c578251600082815260066020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60006001600160a01b038216612ae8576040517f21af468d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b612b3c8282604051806020016040528060008152506133ea565b5050565b60006001600160a01b038216612b82576040517f203fcd5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054600160c01b900467ffffffffffffffff1690565b604080516060810182526000808252602082018190529181019190915281600154811015612cb257600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612cb05780516001600160a01b031615612c46579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612cab579392505050565b612c46565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612cef82612baf565b9050612d0160008383600001516127f4565b80516001600160a01b039081166000908152600760209081526040808320805467ffffffffffffffff19811667ffffffffffffffff9182166000190182161790915585518516845281842080547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff81167001000000000000000000000000000000009182900484166001908101851690920217909155865188865260069094528285208054600160e01b9588166001600160e01b031990911617600160a01b4290941693909302929092177fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff16939093179055908501808352912054909116612e5657600154811015612e56578151600082815260066020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600280546001019055565b827f000000000000000000000000000000000000000000000000000000000000014d8110612f0f5760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206973206f7574206f6620626f756e6473000000000000000000006044820152606401610b23565b6000848152600f60205260408120908154600160a01b900460ff166002811115612f3b57612f3b613a9c565b14612f885760405162461bcd60e51b815260206004820152601360248201527f506f656d20697320616c726561647920736574000000000000000000000000006044820152606401610b23565b80546001600160a01b03841673ffffffffffffffffffffffffffffffffffffffff19821681178355859183917fffffffffffffffffffffff00000000000000000000000000000000000000000090911617600160a01b836002811115612ff057612ff0613a9c565b02179055505050505050565b805467ffffffffffffffff4216600160a81b027fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff7fffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff339081167fffff00ffffffffffffffffff000000000000000000000000000000000000000090941693909317600160e81b17161782556110159060016001600160a01b039091166000908152600760205260409020805467ffffffffffffffff600160c01b80830482169094011690920277ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055600380546001019055565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613181903390899088908890600401613dbc565b6020604051808303816000875af19250505080156131bc575060408051601f3d908101601f191682019092526131b991810190613df8565b60015b613217573d8080156131ea576040519150601f19603f3d011682016040523d82523d6000602084013e6131ef565b606091505b50805161320f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600d8054610cd290613d0a565b60608161328457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156132ae578061329881613cef565b91506132a79050600a83613e2b565b9150613288565b60008167ffffffffffffffff8111156132c9576132c96138c8565b6040519080825280601f01601f1916602001820160405280156132f3576020820181803683370190505b5090505b841561322d57613308600183613d76565b9150613315600a86613e3f565b613320906030613d3f565b60f81b81838151811061333557613335613cc3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061336f600a86613e2b565b94506132f7565b60006001600160a01b0382166133b8576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205468010000000000000000900467ffffffffffffffff1690565b610e6d838383600180546001600160a01b038516613434576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8361346b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260076020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561352c57506001600160a01b0387163b15155b156135b5575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461357d600088848060010195508861314c565b61359a576040516368d2bf6b60e11b815260040160405180910390fd5b808214156135325782600154146135b057600080fd5b6135fb565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156135b6575b50600155612a9f565b82805461361090613d0a565b90600052602060002090601f0160209004810192826136325760008555613678565b82601f1061364b5782800160ff19823516178555613678565b82800160010185558215613678579182015b8281111561367857823582559160200191906001019061365d565b50613684929150613688565b5090565b5b808211156136845760008155600101613689565b6001600160e01b03198116811461101557600080fd5b6000602082840312156136c557600080fd5b813561248f8161369d565b6020808252825182820181905260009190848201906040850190845b81811015613708578351835292840192918401916001016136ec565b50909695505050505050565b60005b8381101561372f578181015183820152602001613717565b83811115611b2d5750506000910152565b60008151808452613758816020860160208601613714565b601f01601f19169290920160200192915050565b60208152600061248f6020830184613740565b60006020828403121561379157600080fd5b5035919050565b80356001600160a01b03811681146137af57600080fd5b919050565b600080604083850312156137c757600080fd5b6137d083613798565b946020939093013593505050565b6000602082840312156137f057600080fd5b81356003811061248f57600080fd5b60008060006060848603121561381457600080fd5b61381d84613798565b925061382b60208501613798565b9150604084013590509250925092565b60006020828403121561384d57600080fd5b61248f82613798565b6000806020838503121561386957600080fd5b823567ffffffffffffffff8082111561388157600080fd5b818501915085601f83011261389557600080fd5b8135818111156138a457600080fd5b8660208285010111156138b657600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613907576139076138c8565b604052919050565b600067ffffffffffffffff821115613929576139296138c8565b5060051b60200190565b600082601f83011261394457600080fd5b813560206139596139548361390f565b6138de565b82815260059290921b8401810191818101908684111561397857600080fd5b8286015b8481101561399a5761398d81613798565b835291830191830161397c565b509695505050505050565b600080604083850312156139b857600080fd5b823567ffffffffffffffff8111156139cf57600080fd5b6139db85828601613933565b95602094909401359450505050565b600082601f8301126139fb57600080fd5b81356020613a0b6139548361390f565b82815260059290921b84018101918181019086841115613a2a57600080fd5b8286015b8481101561399a5780358352918301918301613a2e565b600060208284031215613a5757600080fd5b813567ffffffffffffffff811115613a6e57600080fd5b61322d848285016139ea565b60008060408385031215613a8d57600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b6003811061101557634e487b7160e01b600052602160045260246000fd5b81516001600160a01b0316815260208201516080820190613af081613ab2565b8060208401525067ffffffffffffffff604084015116604083015260608301511515606083015292915050565b60008060408385031215613b3057600080fd5b613b3983613798565b915060208301358015158114613b4e57600080fd5b809150509250929050565b60008060408385031215613b6c57600080fd5b823567ffffffffffffffff80821115613b8457600080fd5b613b90868387016139ea565b93506020850135915080821115613ba657600080fd5b50613bb385828601613933565b9150509250929050565b60008060008060808587031215613bd357600080fd5b613bdc85613798565b93506020613beb818701613798565b935060408601359250606086013567ffffffffffffffff80821115613c0f57600080fd5b818801915088601f830112613c2357600080fd5b813581811115613c3557613c356138c8565b613c47601f8201601f191685016138de565b91508082528984828501011115613c5d57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60208101613c8a83613ab2565b91905290565b60008060408385031215613ca357600080fd5b613cac83613798565b9150613cba60208401613798565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613d0357613d03613cd9565b5060010190565b600181811c90821680613d1e57607f821691505b60208210811415611d5157634e487b7160e01b600052602260045260246000fd5b60008219821115613d5257613d52613cd9565b500190565b6000816000190483118215151615613d7157613d71613cd9565b500290565b600082821015613d8857613d88613cd9565b500390565b60008351613d9f818460208801613714565b835190830190613db3818360208801613714565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613dee6080830184613740565b9695505050505050565b600060208284031215613e0a57600080fd5b815161248f8161369d565b634e487b7160e01b600052601260045260246000fd5b600082613e3a57613e3a613e15565b500490565b600082613e4e57613e4e613e15565b50069056fea2646970667358221220b804debfb848b07519ed3af39ec95529e26d78acc3d4266423a641a17826acd664736f6c634300080a0033

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.