ETH Price: $2,637.26 (+7.95%)
 

Overview

Max Total Supply

5,300 PF

Holders

1,667

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 PF
0x55edb1a21f968514f9e7fa5cd371286c512abc08
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A collection of 5,300 unique companions that will lead you on a majestic adventure into the metaverse. The journey starts with good karma, phunkadelic threads, psychedelic surprises and so much more that you will discover on your trip.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
PhunkyFungi

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : PhunkyFungi.sol
/*
The Phunky Fungi Collection
https://phunkyfungi.io
Twitter @PhunkyFungi

Crafted with love by
Fueled on Bacon
https://fueledonbacon.com
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./MultiSigOwnable.sol";
import "./ERC721A.sol";

contract PhunkyFungi is ERC721A, MultisigOwnable {
    using Strings for uint256;

    address private immutable _revenueRecipient;
    
    bytes32 private _presaleMerkleRoot;
    bytes32 private _collabMerkleRoot;

    mapping(address=>uint) private _presaleClaimed;
    mapping(address=>bool) private _collabClaimed;

    string private _baseUri;
    string private _placeholderURI;
    
    bool public listsFinalized    = false;
    bool public metadataFinalized = false;
    bool public timesFinalized    = false;
    bool public airdropped        = false;
    bool public revealed          = false;

    bool private _overrideCollab  = false;
    bool private _overridePresale = false;
    bool private _overridePublic  = false;

    uint public constant PRESALE_LIMIT   = 3;
    uint public constant PUBLIC_LIMIT    = 5;
    uint public constant COLLECTION_SIZE = 9200;
    uint public constant PRESALE_PRICE   = 0.098 ether;
    uint public constant PUBLIC_PRICE    = 0.125 ether;
    uint public constant TEAM_AIRDROP_LIMIT = 100;

    uint public presaleStart = 1647097200; // 2022-03-12 10:00am EST
    uint public presaleEnd   = 1647104400; // 2022-03-12 12:00pm EST
    uint public collabStart  = 1647099000; // 2022-03-12 10:30am EST
    uint public collabEnd    = 1647104400; // 2022-03-12 12:00pm EST
    uint public publicStart  = 1647104400; // 2022-03-12 12:00pm EST

    constructor(
        address revenueRecipient,
        bytes32 presaleMerkleRoot,
        bytes32 collabMerkleRoot,
        string memory placeholderURI
    )
        ERC721A("PhunkyFungi", "PF")
    {
        _revenueRecipient  = revenueRecipient;
        _presaleMerkleRoot = presaleMerkleRoot;
        _collabMerkleRoot  = collabMerkleRoot;
        _placeholderURI    = placeholderURI;
    }

    /// @notice the initial 100 tokens will be minted to the team vault for use in giveaways and collaborations.
    function airdrop(address to, uint quantity) external onlyOwner {
        require(airdropped == false, "ALREADY_AIRDROPPED");
        require(quantity <= TEAM_AIRDROP_LIMIT, "EXCEEDS_AIRDROP_LIMIT");
        airdropped = true;
        _safeMint(to, quantity);
    }
    
    function isCollabSaleActive() public view returns(bool){
        if(_overrideCollab){
            return true;
        }
        return block.timestamp > collabStart && block.timestamp < collabEnd;
    }

    function isPresaleActive() public view returns(bool){
        if(_overridePresale){
            return true;
        }
        return block.timestamp > presaleStart && block.timestamp < presaleEnd;
    }

    function isPublicSaleActive() public view returns(bool){
        if(_overridePublic){
            return true;
        }
        return block.timestamp > publicStart;
    }

    function setPresaleMerkleRoot(bytes32 root) external onlyOwner {
        require(listsFinalized == false, "LIST_FINALIZED");
        _presaleMerkleRoot = root;
    }

    function setCollabMerkleRoot(bytes32 root) external onlyOwner {
        require(listsFinalized == false, "LIST_FINALIZED");
        _collabMerkleRoot = root;
    }

    function setPresaleTimes(
        uint _presaleStartTime,
        uint _presaleEndTime
    ) onlyOwner external {
        require(timesFinalized == false, "TIMES_FINALIZED");
        presaleStart = _presaleStartTime;
        presaleEnd   = _presaleEndTime;
    }

    function setCollabSaleTimes(
        uint _collabStartTime,
        uint _collabEndTime
    ) onlyOwner external {
        require(timesFinalized == false, "TIMES_FINALIZED");
        collabStart = _collabStartTime;
        collabEnd   = _collabEndTime;
    }

    function setPublicSaleTimes(
        uint _publicStartTime
    ) onlyOwner external {
        require(timesFinalized == false, "TIMES_FINALIZED");
        publicStart = _publicStartTime;
    }

    function toggleReveal() external onlyOwner {
        require(metadataFinalized == false, "METADATA_FINALIZED");
        revealed = !revealed;
    }

    function toggleCollab() external onlyOwner {
        require(timesFinalized == false, "TIMES_FINALIZED");
        _overrideCollab = !_overrideCollab;
    }

    function togglePresale() external onlyOwner {
        require(timesFinalized == false, "TIMES_FINALIZED");
        _overridePresale = !_overridePresale;
    }

    function togglePublic() external onlyOwner {
        require(timesFinalized == false, "TIMES_FINALIZED");
        _overridePublic = !_overridePublic;
    }

    function finalizeMetadata() external onlyOwner {
        require(metadataFinalized == false, "METADATA_FINALIZED");
        metadataFinalized = true;
    }

    function finalizeTimes() external onlyOwner {
        require(timesFinalized == false, "TIMES_FINALIZED");
        timesFinalized = true;
    }

    function finalizeLists() external onlyOwner {
        require(listsFinalized == false, "LIST_FINALIZED");
        listsFinalized = true;
    }
    
    function setBaseURI(string memory baseUri) external onlyOwner {
        require(metadataFinalized == false, "METADATA_FINALIZED");
        _baseUri = baseUri;
    }

    function setPlaceholderURI(string memory placeholderUri) external onlyOwner {
        require(metadataFinalized == false, "METADATA_FINALIZED");
        _placeholderURI = placeholderUri;
    }

    /// @dev override base uri. It will be combined with token ID
    function _baseURI() internal view override returns (string memory) {
        return _baseUri;
    }

    /// @notice Withdraw's contract's balance to the withdrawal address
    function withdraw() external {
        uint256 balance = address(this).balance;
        require(balance > 0, "NO_BALANCE");

        (bool success, ) = payable(_revenueRecipient).call{ value: balance }("");
        require(success, "WITHDRAW_FAILED");
    }

    function _verifyList(bytes32[] calldata _merkleProof, bytes32 root, address addr) internal view returns(bool) {
        return (MerkleProof.verify(_merkleProof, root, keccak256(abi.encodePacked(addr))) == true);
    }

    function verifyPresale(bytes32[] calldata _merkleProof, address addr) public view returns(bool) {
       return _verifyList(_merkleProof, _presaleMerkleRoot, addr);
    }

    function verifyCollab(bytes32[] calldata _merkleProof, address addr) public view returns(bool) {
       return _verifyList(_merkleProof, _collabMerkleRoot, addr);
    }
    
    /// @notice each address on the collaboration list may mint 1 token at the collab sale price
    function collabMint(bytes32[] calldata _merkleProof) external payable {
        require(isCollabSaleActive(), "COLLAB_SALE_INACTIVE");
        require(_collabClaimed[msg.sender] == false, "1_TOKEN_LIMIT");
        require(totalSupply() < COLLECTION_SIZE, "EXCEEDS_COLLECTION_SIZE");
        require(verifyCollab(_merkleProof, msg.sender), "COLLAB_NOT_VERIFIED");
        require(msg.value >= PRESALE_PRICE, "VALUE_TOO_LOW");
        _collabClaimed[msg.sender] = true;

        _safeMint(msg.sender, 1);
    }
    
    /// @notice each address on the presale list may mint up to 3 tokens at the presale price
    function presaleMint(bytes32[] calldata _merkleProof, uint quantity) external payable {
        require(isPresaleActive(), "PRESALE_INACTIVE");
        require(verifyPresale(_merkleProof, msg.sender), "PRESALE_NOT_VERIFIED");
        require(totalSupply() + quantity <= COLLECTION_SIZE, "EXCEEDS_COLLECTION_SIZE");
        require(_presaleClaimed[msg.sender] + quantity <= PRESALE_LIMIT, "3_TOKEN_LIMIT");
        uint cost;
        cost = quantity * PRESALE_PRICE;
        require(msg.value >= cost, "VALUE_TOO_LOW");
        _presaleClaimed[msg.sender] += quantity;

        _safeMint(msg.sender, quantity);
    }

    /// @notice may mint up to 5 tokens per transaction at the public sale price.
    function mint(uint quantity) external payable {
        require(isPublicSaleActive(), "PUBLIC_SALE_INACTIVE");
        require(quantity <= PUBLIC_LIMIT, "5_TOKEN_LIMIT");
        require(totalSupply() + quantity <= COLLECTION_SIZE, "EXCEEDS_COLLECTION_SIZE");
        uint cost;
        cost = quantity * PUBLIC_PRICE;
        require(msg.value >= cost, "VALUE_TOO_LOW");

        _safeMint(msg.sender, quantity);
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        require(_exists(id), "INVALID_ID");

        return revealed
            ? string(abi.encodePacked(_baseURI(), id.toString(), ".json"))
            : _placeholderURI;
    }
}

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

// Fork of ERC721A.sol (it's not the same one as on npm package erc721a because this one has extension methods removed)

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error 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 and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes 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;
    }

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

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

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(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 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;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

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

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

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            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 address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 3 of 14 : MultiSigOwnable.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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

/*
Opensea only allows EOAs to make changes to collections,
which makes it impossible to use multisigs to secure these NFT contracts
since when you want to make changes you need to transfer ownership to an EOA, who can rug.

This contract establishes a second owner that can change the EOA owner,
this way a multisig can give ownership to an EOA and later claim it back.
*/
abstract contract MultisigOwnable is Ownable {
    address public realOwner;

    constructor() {
        realOwner = msg.sender;
    }

    modifier onlyRealOwner() {
        require(realOwner == msg.sender, "MultisigOwnable: caller is not the real owner");
        _;
    }

    function transferRealOwnership(address newRealOwner) public onlyRealOwner {
        realOwner = newRealOwner;
    }

    function transferLowerOwnership(address newOwner) public onlyRealOwner {
        _transferOwnership(newOwner);
    }
}

File 4 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 14 : 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 7 of 14 : 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 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 14 : 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 13 of 14 : 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 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"revenueRecipient","type":"address"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"collabMerkleRoot","type":"bytes32"},{"internalType":"string","name":"placeholderURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COLLECTION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_AIRDROP_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collabEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"collabMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"collabStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeLists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeTimes","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":"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":"isCollabSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listsFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"realOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setCollabMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collabStartTime","type":"uint256"},{"internalType":"uint256","name":"_collabEndTime","type":"uint256"}],"name":"setCollabSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"placeholderUri","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_presaleEndTime","type":"uint256"}],"name":"setPresaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicStartTime","type":"uint256"}],"name":"setPublicSaleTimes","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":[],"name":"timesFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleCollab","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferLowerOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRealOwner","type":"address"}],"name":"transferRealOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"addr","type":"address"}],"name":"verifyCollab","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"addr","type":"address"}],"name":"verifyPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052601080546001600160401b031916905563622cb57060115563622cd190601281905563622cbc7860135560148190556015553480156200004357600080fd5b506040516200308e3803806200308e83398101604081905262000066916200024b565b6040518060400160405280600b81526020016a5068756e6b7946756e676960a81b81525060405180604001604052806002815260200161282360f11b8152508160029080519060200190620000bd9291906200018f565b508051620000d39060039060208401906200018f565b505050620000f0620000ea6200013960201b60201c565b6200013d565b600980546001600160a01b031916331790556001600160a01b038416608052600a839055600b82905580516200012e90600f9060208401906200018f565b50505050506200039a565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019d906200035d565b90600052602060002090601f016020900481019282620001c157600085556200020c565b82601f10620001dc57805160ff19168380011785556200020c565b828001600101855582156200020c579182015b828111156200020c578251825591602001919060010190620001ef565b506200021a9291506200021e565b5090565b5b808211156200021a57600081556001016200021f565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156200026257600080fd5b84516001600160a01b03811681146200027a57600080fd5b602086810151604088015160608901519397509095509350906001600160401b0380821115620002a957600080fd5b818801915088601f830112620002be57600080fd5b815181811115620002d357620002d362000235565b604051601f8201601f19908116603f01168101908382118183101715620002fe57620002fe62000235565b816040528281528b868487010111156200031757600080fd5b600093505b828410156200033b57848401860151818501870152928501926200031c565b828411156200034d5760008684830101525b989b979a50959850505050505050565b600181811c908216806200037257607f821691505b602082108114156200039457634e487b7160e01b600052602260045260246000fd5b50919050565b608051612cd8620003b66000396000610e3c0152612cd86000f3fe6080604052600436106103975760003560e01c806362dc6e21116101dc578063a5f4c6ff11610102578063d8258d95116100a0578063f4a560a51161006f578063f4a560a5146109fa578063f86e387a14610a0f578063fbb80e0b14610a2f578063fde5f54814610a4557600080fd5b8063d8258d9514610965578063de8801e51461097b578063e985e9c514610991578063f2fde38b146109da57600080fd5b8063c4998ffa116100dc578063c4998ffa146108fa578063c87b56dd14610910578063cf9f8e2114610930578063d4dd7b811461095057600080fd5b8063a5f4c6ff146108af578063a67d9c5e146108c5578063b88d4fde146108da57600080fd5b80638da5cb5b1161017a57806395d89b411161014957806395d89b4114610852578063981d877114610867578063a0712d681461087c578063a22cb4651461088f57600080fd5b80638da5cb5b146107d557806391943708146107f357806392e83e9b14610812578063952bd0741461083257600080fd5b8063715018a6116101b6578063715018a614610776578063767570e61461078b578063855214ce146107a05780638ba4cc3c146107b557600080fd5b806362dc6e211461071a5780636352211e1461073657806370a082311461075657600080fd5b8063305ac367116102c15780634e50b9191161025f57806356f07a3e1161022e57806356f07a3e146106bf5780635b8ad429146106d457806360d938dc146106e9578063611f3f10146106fe57600080fd5b80634e50b9191461063d578063509c197a1461065d578063518302271461067d57806355f804b31461069f57600080fd5b80633ccfd60b1161029b5780633ccfd60b146105d557806342842e0e146105ea5780634704b6771461060a5780634985a7261461061d57600080fd5b8063305ac3671461058657806334393743146105a05780633574a2dd146105b557600080fd5b80631aee3f9111610339578063229f3e2911610308578063229f3e291461051057806323b872dd1461052657806328d7b276146105465780632cff67701461056657600080fd5b80631aee3f91146104b15780631d20239e146104c65780631df270f3146104db5780631e84c413146104fb57600080fd5b8063095ea7b311610375578063095ea7b31461042b57806309af3f9a1461044d57806318160ddd1461046d57806319cc02aa1461049057600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612550565b610a58565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610aaa565b6040516103c891906125cc565b3480156103ff57600080fd5b5061041361040e3660046125df565b610b3c565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b610446366004612614565b610b80565b005b34801561045957600080fd5b5061044b61046836600461263e565b610c0e565b34801561047957600080fd5b50600154600054035b6040519081526020016103c8565b34801561049c57600080fd5b506010546103bc906301000000900460ff1681565b3480156104bd57600080fd5b50610482600381565b3480156104d257600080fd5b50610482606481565b3480156104e757600080fd5b50600954610413906001600160a01b031681565b34801561050757600080fd5b506103bc610c4d565b34801561051c57600080fd5b5061048260125481565b34801561053257600080fd5b5061044b610541366004612659565b610c71565b34801561055257600080fd5b5061044b6105613660046125df565b610c7c565b34801561057257600080fd5b5061044b61058136600461263e565b610cce565b34801561059257600080fd5b506010546103bc9060ff1681565b3480156105ac57600080fd5b5061044b610d1a565b3480156105c157600080fd5b5061044b6105d0366004612720565b610d94565b3480156105e157600080fd5b5061044b610dfd565b3480156105f657600080fd5b5061044b610605366004612659565b610eed565b61044b6106183660046127b3565b610f08565b34801561062957600080fd5b5061044b6106383660046125df565b61106c565b34801561064957600080fd5b506103bc6106583660046127f4565b6110c4565b34801561066957600080fd5b5061044b610678366004612847565b6110dc565b34801561068957600080fd5b506010546103bc90640100000000900460ff1681565b3480156106ab57600080fd5b5061044b6106ba366004612720565b61113a565b3480156106cb57600080fd5b5061044b61119f565b3480156106e057600080fd5b5061044b611205565b3480156106f557600080fd5b506103bc61127a565b34801561070a57600080fd5b506104826701bc16d674ec800081565b34801561072657600080fd5b5061048267015c2a7b13fd000081565b34801561074257600080fd5b506104136107513660046125df565b6112af565b34801561076257600080fd5b5061048261077136600461263e565b6112c1565b34801561078257600080fd5b5061044b61130f565b34801561079757600080fd5b506103bc611345565b3480156107ac57600080fd5b5061044b611377565b3480156107c157600080fd5b5061044b6107d0366004612614565b6113ef565b3480156107e157600080fd5b506008546001600160a01b0316610413565b3480156107ff57600080fd5b506010546103bc90610100900460ff1681565b34801561081e57600080fd5b5061044b61082d3660046125df565b6114ce565b34801561083e57600080fd5b5061044b61084d366004612847565b611520565b34801561085e57600080fd5b506103e661157e565b34801561087357600080fd5b5061044b61158d565b61044b61088a3660046125df565b611605565b34801561089b57600080fd5b5061044b6108aa366004612869565b61170a565b3480156108bb57600080fd5b5061048260155481565b3480156108d157600080fd5b50610482600581565b3480156108e657600080fd5b5061044b6108f53660046128a5565b6117a0565b34801561090657600080fd5b5061048260145481565b34801561091c57600080fd5b506103e661092b3660046125df565b6117da565b34801561093c57600080fd5b506010546103bc9062010000900460ff1681565b34801561095c57600080fd5b5061044b6118f7565b34801561097157600080fd5b506104826123f081565b34801561098757600080fd5b5061048260115481565b34801561099d57600080fd5b506103bc6109ac366004612920565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109e657600080fd5b5061044b6109f536600461263e565b611953565b348015610a0657600080fd5b5061044b6119e2565b348015610a1b57600080fd5b506103bc610a2a3660046127f4565b611a45565b348015610a3b57600080fd5b5061048260135481565b61044b610a53366004612953565b611a55565b60006001600160e01b031982166380ac58cd60e01b1480610a8957506001600160e01b03198216635b5e139f60e01b145b80610aa457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610ab99061299e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae59061299e565b8015610b325780601f10610b0757610100808354040283529160200191610b32565b820191906000526020600020905b815481529060010190602001808311610b1557829003601f168201915b5050505050905090565b6000610b4782611be4565b610b64576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b8b826112af565b9050806001600160a01b0316836001600160a01b03161415610bc05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610be05750610bde81336109ac565b155b15610bfe576040516367d9dca160e11b815260040160405180910390fd5b610c09838383611c0f565b505050565b6009546001600160a01b03163314610c415760405162461bcd60e51b8152600401610c38906129d9565b60405180910390fd5b610c4a81611c6b565b50565b601054600090600160381b900460ff1615610c685750600190565b50601554421190565b610c09838383611cbd565b6008546001600160a01b03163314610ca65760405162461bcd60e51b8152600401610c3890612a26565b60105460ff1615610cc95760405162461bcd60e51b8152600401610c3890612a5b565b600a55565b6009546001600160a01b03163314610cf85760405162461bcd60e51b8152600401610c38906129d9565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610d445760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff1615610d6d5760405162461bcd60e51b8152600401610c3890612a83565b6010805466ff00000000000019811666010000000000009182900460ff1615909102179055565b6008546001600160a01b03163314610dbe5760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff1615610de65760405162461bcd60e51b8152600401610c3890612aac565b8051610df990600f9060208401906124a1565b5050565b4780610e385760405162461bcd60e51b815260206004820152600a6024820152694e4f5f42414c414e434560b01b6044820152606401610c38565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ea5576040519150601f19603f3d011682016040523d82523d6000602084013e610eaa565b606091505b5050905080610df95760405162461bcd60e51b815260206004820152600f60248201526e15d2551211149055d7d19052531151608a1b6044820152606401610c38565b610c09838383604051806020016040528060008152506117a0565b610f10611345565b610f535760405162461bcd60e51b8152602060048201526014602482015273434f4c4c41425f53414c455f494e41435449564560601b6044820152606401610c38565b336000908152600d602052604090205460ff1615610fa35760405162461bcd60e51b815260206004820152600d60248201526c0c57d513d2d15397d312535255609a1b6044820152606401610c38565b6123f0610fb36001546000540390565b10610fd05760405162461bcd60e51b8152600401610c3890612ad8565b610fdb8282336110c4565b61101d5760405162461bcd60e51b815260206004820152601360248201527210d3d313105097d393d517d591549251925151606a1b6044820152606401610c38565b67015c2a7b13fd00003410156110455760405162461bcd60e51b8152600401610c3890612b0f565b336000818152600d60205260409020805460ff19166001908117909155610df99190611ed1565b6008546001600160a01b031633146110965760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156110bf5760405162461bcd60e51b8152600401610c3890612a83565b601555565b60006110d48484600b5485611eeb565b949350505050565b6008546001600160a01b031633146111065760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff161561112f5760405162461bcd60e51b8152600401610c3890612a83565b601391909155601455565b6008546001600160a01b031633146111645760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff161561118c5760405162461bcd60e51b8152600401610c3890612aac565b8051610df990600e9060208401906124a1565b6008546001600160a01b031633146111c95760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156111f25760405162461bcd60e51b8152600401610c3890612a83565b6010805462ff0000191662010000179055565b6008546001600160a01b0316331461122f5760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff16156112575760405162461bcd60e51b8152600401610c3890612aac565b6010805464ff000000001981166401000000009182900460ff1615909102179055565b6010546000906601000000000000900460ff16156112985750600190565b601154421180156112aa575060125442105b905090565b60006112ba82611f6f565b5192915050565b60006001600160a01b0382166112ea576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146113395760405162461bcd60e51b8152600401610c3890612a26565b6113436000611c6b565b565b60105460009065010000000000900460ff16156113625750600190565b601354421180156112aa575050601454421090565b6008546001600160a01b031633146113a15760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156113ca5760405162461bcd60e51b8152600401610c3890612a83565b6010805465ff0000000000198116650100000000009182900460ff1615909102179055565b6008546001600160a01b031633146114195760405162461bcd60e51b8152600401610c3890612a26565b6010546301000000900460ff16156114685760405162461bcd60e51b81526020600482015260126024820152711053149150511657d05254911493d414115160721b6044820152606401610c38565b60648111156114b15760405162461bcd60e51b8152602060048201526015602482015274115610d1515114d7d05254911493d417d312535255605a1b6044820152606401610c38565b6010805463ff00000019166301000000179055610df98282611ed1565b6008546001600160a01b031633146114f85760405162461bcd60e51b8152600401610c3890612a26565b60105460ff161561151b5760405162461bcd60e51b8152600401610c3890612a5b565b600b55565b6008546001600160a01b0316331461154a5760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156115735760405162461bcd60e51b8152600401610c3890612a83565b601191909155601255565b606060038054610ab99061299e565b6008546001600160a01b031633146115b75760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156115e05760405162461bcd60e51b8152600401610c3890612a83565b6010805467ff00000000000000198116600160381b9182900460ff1615909102179055565b61160d610c4d565b6116505760405162461bcd60e51b81526020600482015260146024820152735055424c49435f53414c455f494e41435449564560601b6044820152606401610c38565b60058111156116915760405162461bcd60e51b815260206004820152600d60248201526c0d57d513d2d15397d312535255609a1b6044820152606401610c38565b6123f0816116a26001546000540390565b6116ac9190612b4c565b11156116ca5760405162461bcd60e51b8152600401610c3890612ad8565b60006116de6701bc16d674ec800083612b64565b9050803410156117005760405162461bcd60e51b8152600401610c3890612b0f565b610df93383611ed1565b6001600160a01b0382163314156117345760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117ab848484611cbd565b6117b784848484612088565b6117d4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606117e582611be4565b61181e5760405162461bcd60e51b815260206004820152600a6024820152691253959053125117d25160b21b6044820152606401610c38565b601054640100000000900460ff166118c057600f805461183d9061299e565b80601f01602080910402602001604051908101604052809291908181526020018280546118699061299e565b80156118b65780601f1061188b576101008083540402835291602001916118b6565b820191906000526020600020905b81548152906001019060200180831161189957829003601f168201915b5050505050610aa4565b6118c8612193565b6118d1836121a2565b6040516020016118e2929190612b83565b60405160208183030381529060405292915050565b6008546001600160a01b031633146119215760405162461bcd60e51b8152600401610c3890612a26565b60105460ff16156119445760405162461bcd60e51b8152600401610c3890612a5b565b6010805460ff19166001179055565b6008546001600160a01b0316331461197d5760405162461bcd60e51b8152600401610c3890612a26565b6001600160a01b038116610c415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c38565b6008546001600160a01b03163314611a0c5760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff1615611a345760405162461bcd60e51b8152600401610c3890612aac565b6010805461ff001916610100179055565b60006110d48484600a5485611eeb565b611a5d61127a565b611a9c5760405162461bcd60e51b815260206004820152601060248201526f50524553414c455f494e41435449564560801b6044820152606401610c38565b611aa7838333611a45565b611aea5760405162461bcd60e51b815260206004820152601460248201527314149154d0531157d393d517d59154925192515160621b6044820152606401610c38565b6123f081611afb6001546000540390565b611b059190612b4c565b1115611b235760405162461bcd60e51b8152600401610c3890612ad8565b336000908152600c6020526040902054600390611b41908390612b4c565b1115611b7f5760405162461bcd60e51b815260206004820152600d60248201526c0cd7d513d2d15397d312535255609a1b6044820152606401610c38565b6000611b9367015c2a7b13fd000083612b64565b905080341015611bb55760405162461bcd60e51b8152600401610c3890612b0f565b336000908152600c602052604081208054849290611bd4908490612b4c565b909155506117d490503383611ed1565b6000805482108015610aa4575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611cc882611f6f565b80519091506000906001600160a01b0316336001600160a01b03161480611cf657508151611cf690336109ac565b80611d11575033611d0684610b3c565b6001600160a01b0316145b905080611d3157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611d665760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d8d57604051633a954ecd60e21b815260040160405180910390fd5b611d9d6000848460000151611c0f565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611e8757600054811015611e8757825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610df982826040518060200160405280600081525061229f565b6000611f60858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff19606088901b1660208201528792506034019050604051602081830303815290604052805190602001206122ac565b15156001149050949350505050565b604080516060810182526000808252602082018190529181018290529054829081101561206f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061206d5780516001600160a01b031615612004579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612068579392505050565b612004565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0384163b1561218b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120cc903390899088908890600401612bc2565b602060405180830381600087803b1580156120e657600080fd5b505af1925050508015612116575060408051601f3d908101601f1916820190925261211391810190612bff565b60015b612171573d808015612144576040519150601f19603f3d011682016040523d82523d6000602084013e612149565b606091505b508051612169576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110d4565b5060016110d4565b6060600e8054610ab99061299e565b6060816121c65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121f057806121da81612c1c565b91506121e99050600a83612c4d565b91506121ca565b6000816001600160401b0381111561220a5761220a612695565b6040519080825280601f01601f191660200182016040528015612234576020820181803683370190505b5090505b84156110d457612249600183612c61565b9150612256600a86612c78565b612261906030612b4c565b60f81b81838151811061227657612276612c8c565b60200101906001600160f81b031916908160001a905350612298600a86612c4d565b9450612238565b610c0983838360016122c2565b6000826122b9858461242d565b14949350505050565b6000546001600160a01b0385166122eb57604051622e076360e81b815260040160405180910390fd5b836123095760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156124245760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156123fa57506123f86000888488612088565b155b15612418576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016123a3565b50600055611eca565b600081815b845181101561249957600085828151811061244f5761244f612c8c565b602002602001015190508083116124755760008381526020829052604090209250612486565b600081815260208490526040902092505b508061249181612c1c565b915050612432565b509392505050565b8280546124ad9061299e565b90600052602060002090601f0160209004810192826124cf5760008555612515565b82601f106124e857805160ff1916838001178555612515565b82800160010185558215612515579182015b828111156125155782518255916020019190600101906124fa565b50612521929150612525565b5090565b5b808211156125215760008155600101612526565b6001600160e01b031981168114610c4a57600080fd5b60006020828403121561256257600080fd5b813561256d8161253a565b9392505050565b60005b8381101561258f578181015183820152602001612577565b838111156117d45750506000910152565b600081518084526125b8816020860160208601612574565b601f01601f19169290920160200192915050565b60208152600061256d60208301846125a0565b6000602082840312156125f157600080fd5b5035919050565b80356001600160a01b038116811461260f57600080fd5b919050565b6000806040838503121561262757600080fd5b612630836125f8565b946020939093013593505050565b60006020828403121561265057600080fd5b61256d826125f8565b60008060006060848603121561266e57600080fd5b612677846125f8565b9250612685602085016125f8565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156126c5576126c5612695565b604051601f8501601f19908116603f011681019082821181831017156126ed576126ed612695565b8160405280935085815286868601111561270657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561273257600080fd5b81356001600160401b0381111561274857600080fd5b8201601f8101841361275957600080fd5b6110d4848235602084016126ab565b60008083601f84011261277a57600080fd5b5081356001600160401b0381111561279157600080fd5b6020830191508360208260051b85010111156127ac57600080fd5b9250929050565b600080602083850312156127c657600080fd5b82356001600160401b038111156127dc57600080fd5b6127e885828601612768565b90969095509350505050565b60008060006040848603121561280957600080fd5b83356001600160401b0381111561281f57600080fd5b61282b86828701612768565b909450925061283e9050602085016125f8565b90509250925092565b6000806040838503121561285a57600080fd5b50508035926020909101359150565b6000806040838503121561287c57600080fd5b612885836125f8565b91506020830135801515811461289a57600080fd5b809150509250929050565b600080600080608085870312156128bb57600080fd5b6128c4856125f8565b93506128d2602086016125f8565b92506040850135915060608501356001600160401b038111156128f457600080fd5b8501601f8101871361290557600080fd5b612914878235602084016126ab565b91505092959194509250565b6000806040838503121561293357600080fd5b61293c836125f8565b915061294a602084016125f8565b90509250929050565b60008060006040848603121561296857600080fd5b83356001600160401b0381111561297e57600080fd5b61298a86828701612768565b909790965060209590950135949350505050565b600181811c908216806129b257607f821691505b602082108114156129d357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4d756c74697369674f776e61626c653a2063616c6c6572206973206e6f74207460408201526c3432903932b0b61037bbb732b960991b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d131254d517d1925390531256915160921b604082015260600190565b6020808252600f908201526e1512535154d7d19253905312569151608a1b604082015260600190565b602080825260129082015271135155105110551057d1925390531256915160721b604082015260600190565b60208082526017908201527f455843454544535f434f4c4c454354494f4e5f53495a45000000000000000000604082015260600190565b6020808252600d908201526c56414c55455f544f4f5f4c4f5760981b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b5f57612b5f612b36565b500190565b6000816000190483118215151615612b7e57612b7e612b36565b500290565b60008351612b95818460208801612574565b835190830190612ba9818360208801612574565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bf5908301846125a0565b9695505050505050565b600060208284031215612c1157600080fd5b815161256d8161253a565b6000600019821415612c3057612c30612b36565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612c5c57612c5c612c37565b500490565b600082821015612c7357612c73612b36565b500390565b600082612c8757612c87612c37565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220e73f07208448f56a4efd7349c4080bc956308857f5245167eab9a8ac2c770dac64736f6c63430008090033000000000000000000000000e753f1f67f610ad9f98c441873dc54a0972015909baea82a9cbb97cac9de16e8130fd5cbe8e23805220f6e89a0af7a64661874e6fb35f79b945e2daf7bc2a8eab11797f7969d23a1f677cc8097495a152354a66000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d55646e663761416e34647652484c664474716854424b52696a4c6169733779534d7663577a3362574c51435a0000000000000000000000

Deployed Bytecode

0x6080604052600436106103975760003560e01c806362dc6e21116101dc578063a5f4c6ff11610102578063d8258d95116100a0578063f4a560a51161006f578063f4a560a5146109fa578063f86e387a14610a0f578063fbb80e0b14610a2f578063fde5f54814610a4557600080fd5b8063d8258d9514610965578063de8801e51461097b578063e985e9c514610991578063f2fde38b146109da57600080fd5b8063c4998ffa116100dc578063c4998ffa146108fa578063c87b56dd14610910578063cf9f8e2114610930578063d4dd7b811461095057600080fd5b8063a5f4c6ff146108af578063a67d9c5e146108c5578063b88d4fde146108da57600080fd5b80638da5cb5b1161017a57806395d89b411161014957806395d89b4114610852578063981d877114610867578063a0712d681461087c578063a22cb4651461088f57600080fd5b80638da5cb5b146107d557806391943708146107f357806392e83e9b14610812578063952bd0741461083257600080fd5b8063715018a6116101b6578063715018a614610776578063767570e61461078b578063855214ce146107a05780638ba4cc3c146107b557600080fd5b806362dc6e211461071a5780636352211e1461073657806370a082311461075657600080fd5b8063305ac367116102c15780634e50b9191161025f57806356f07a3e1161022e57806356f07a3e146106bf5780635b8ad429146106d457806360d938dc146106e9578063611f3f10146106fe57600080fd5b80634e50b9191461063d578063509c197a1461065d578063518302271461067d57806355f804b31461069f57600080fd5b80633ccfd60b1161029b5780633ccfd60b146105d557806342842e0e146105ea5780634704b6771461060a5780634985a7261461061d57600080fd5b8063305ac3671461058657806334393743146105a05780633574a2dd146105b557600080fd5b80631aee3f9111610339578063229f3e2911610308578063229f3e291461051057806323b872dd1461052657806328d7b276146105465780632cff67701461056657600080fd5b80631aee3f91146104b15780631d20239e146104c65780631df270f3146104db5780631e84c413146104fb57600080fd5b8063095ea7b311610375578063095ea7b31461042b57806309af3f9a1461044d57806318160ddd1461046d57806319cc02aa1461049057600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612550565b610a58565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610aaa565b6040516103c891906125cc565b3480156103ff57600080fd5b5061041361040e3660046125df565b610b3c565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b610446366004612614565b610b80565b005b34801561045957600080fd5b5061044b61046836600461263e565b610c0e565b34801561047957600080fd5b50600154600054035b6040519081526020016103c8565b34801561049c57600080fd5b506010546103bc906301000000900460ff1681565b3480156104bd57600080fd5b50610482600381565b3480156104d257600080fd5b50610482606481565b3480156104e757600080fd5b50600954610413906001600160a01b031681565b34801561050757600080fd5b506103bc610c4d565b34801561051c57600080fd5b5061048260125481565b34801561053257600080fd5b5061044b610541366004612659565b610c71565b34801561055257600080fd5b5061044b6105613660046125df565b610c7c565b34801561057257600080fd5b5061044b61058136600461263e565b610cce565b34801561059257600080fd5b506010546103bc9060ff1681565b3480156105ac57600080fd5b5061044b610d1a565b3480156105c157600080fd5b5061044b6105d0366004612720565b610d94565b3480156105e157600080fd5b5061044b610dfd565b3480156105f657600080fd5b5061044b610605366004612659565b610eed565b61044b6106183660046127b3565b610f08565b34801561062957600080fd5b5061044b6106383660046125df565b61106c565b34801561064957600080fd5b506103bc6106583660046127f4565b6110c4565b34801561066957600080fd5b5061044b610678366004612847565b6110dc565b34801561068957600080fd5b506010546103bc90640100000000900460ff1681565b3480156106ab57600080fd5b5061044b6106ba366004612720565b61113a565b3480156106cb57600080fd5b5061044b61119f565b3480156106e057600080fd5b5061044b611205565b3480156106f557600080fd5b506103bc61127a565b34801561070a57600080fd5b506104826701bc16d674ec800081565b34801561072657600080fd5b5061048267015c2a7b13fd000081565b34801561074257600080fd5b506104136107513660046125df565b6112af565b34801561076257600080fd5b5061048261077136600461263e565b6112c1565b34801561078257600080fd5b5061044b61130f565b34801561079757600080fd5b506103bc611345565b3480156107ac57600080fd5b5061044b611377565b3480156107c157600080fd5b5061044b6107d0366004612614565b6113ef565b3480156107e157600080fd5b506008546001600160a01b0316610413565b3480156107ff57600080fd5b506010546103bc90610100900460ff1681565b34801561081e57600080fd5b5061044b61082d3660046125df565b6114ce565b34801561083e57600080fd5b5061044b61084d366004612847565b611520565b34801561085e57600080fd5b506103e661157e565b34801561087357600080fd5b5061044b61158d565b61044b61088a3660046125df565b611605565b34801561089b57600080fd5b5061044b6108aa366004612869565b61170a565b3480156108bb57600080fd5b5061048260155481565b3480156108d157600080fd5b50610482600581565b3480156108e657600080fd5b5061044b6108f53660046128a5565b6117a0565b34801561090657600080fd5b5061048260145481565b34801561091c57600080fd5b506103e661092b3660046125df565b6117da565b34801561093c57600080fd5b506010546103bc9062010000900460ff1681565b34801561095c57600080fd5b5061044b6118f7565b34801561097157600080fd5b506104826123f081565b34801561098757600080fd5b5061048260115481565b34801561099d57600080fd5b506103bc6109ac366004612920565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109e657600080fd5b5061044b6109f536600461263e565b611953565b348015610a0657600080fd5b5061044b6119e2565b348015610a1b57600080fd5b506103bc610a2a3660046127f4565b611a45565b348015610a3b57600080fd5b5061048260135481565b61044b610a53366004612953565b611a55565b60006001600160e01b031982166380ac58cd60e01b1480610a8957506001600160e01b03198216635b5e139f60e01b145b80610aa457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610ab99061299e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae59061299e565b8015610b325780601f10610b0757610100808354040283529160200191610b32565b820191906000526020600020905b815481529060010190602001808311610b1557829003601f168201915b5050505050905090565b6000610b4782611be4565b610b64576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b8b826112af565b9050806001600160a01b0316836001600160a01b03161415610bc05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610be05750610bde81336109ac565b155b15610bfe576040516367d9dca160e11b815260040160405180910390fd5b610c09838383611c0f565b505050565b6009546001600160a01b03163314610c415760405162461bcd60e51b8152600401610c38906129d9565b60405180910390fd5b610c4a81611c6b565b50565b601054600090600160381b900460ff1615610c685750600190565b50601554421190565b610c09838383611cbd565b6008546001600160a01b03163314610ca65760405162461bcd60e51b8152600401610c3890612a26565b60105460ff1615610cc95760405162461bcd60e51b8152600401610c3890612a5b565b600a55565b6009546001600160a01b03163314610cf85760405162461bcd60e51b8152600401610c38906129d9565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610d445760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff1615610d6d5760405162461bcd60e51b8152600401610c3890612a83565b6010805466ff00000000000019811666010000000000009182900460ff1615909102179055565b6008546001600160a01b03163314610dbe5760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff1615610de65760405162461bcd60e51b8152600401610c3890612aac565b8051610df990600f9060208401906124a1565b5050565b4780610e385760405162461bcd60e51b815260206004820152600a6024820152694e4f5f42414c414e434560b01b6044820152606401610c38565b60007f000000000000000000000000e753f1f67f610ad9f98c441873dc54a0972015906001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ea5576040519150601f19603f3d011682016040523d82523d6000602084013e610eaa565b606091505b5050905080610df95760405162461bcd60e51b815260206004820152600f60248201526e15d2551211149055d7d19052531151608a1b6044820152606401610c38565b610c09838383604051806020016040528060008152506117a0565b610f10611345565b610f535760405162461bcd60e51b8152602060048201526014602482015273434f4c4c41425f53414c455f494e41435449564560601b6044820152606401610c38565b336000908152600d602052604090205460ff1615610fa35760405162461bcd60e51b815260206004820152600d60248201526c0c57d513d2d15397d312535255609a1b6044820152606401610c38565b6123f0610fb36001546000540390565b10610fd05760405162461bcd60e51b8152600401610c3890612ad8565b610fdb8282336110c4565b61101d5760405162461bcd60e51b815260206004820152601360248201527210d3d313105097d393d517d591549251925151606a1b6044820152606401610c38565b67015c2a7b13fd00003410156110455760405162461bcd60e51b8152600401610c3890612b0f565b336000818152600d60205260409020805460ff19166001908117909155610df99190611ed1565b6008546001600160a01b031633146110965760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156110bf5760405162461bcd60e51b8152600401610c3890612a83565b601555565b60006110d48484600b5485611eeb565b949350505050565b6008546001600160a01b031633146111065760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff161561112f5760405162461bcd60e51b8152600401610c3890612a83565b601391909155601455565b6008546001600160a01b031633146111645760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff161561118c5760405162461bcd60e51b8152600401610c3890612aac565b8051610df990600e9060208401906124a1565b6008546001600160a01b031633146111c95760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156111f25760405162461bcd60e51b8152600401610c3890612a83565b6010805462ff0000191662010000179055565b6008546001600160a01b0316331461122f5760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff16156112575760405162461bcd60e51b8152600401610c3890612aac565b6010805464ff000000001981166401000000009182900460ff1615909102179055565b6010546000906601000000000000900460ff16156112985750600190565b601154421180156112aa575060125442105b905090565b60006112ba82611f6f565b5192915050565b60006001600160a01b0382166112ea576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146113395760405162461bcd60e51b8152600401610c3890612a26565b6113436000611c6b565b565b60105460009065010000000000900460ff16156113625750600190565b601354421180156112aa575050601454421090565b6008546001600160a01b031633146113a15760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156113ca5760405162461bcd60e51b8152600401610c3890612a83565b6010805465ff0000000000198116650100000000009182900460ff1615909102179055565b6008546001600160a01b031633146114195760405162461bcd60e51b8152600401610c3890612a26565b6010546301000000900460ff16156114685760405162461bcd60e51b81526020600482015260126024820152711053149150511657d05254911493d414115160721b6044820152606401610c38565b60648111156114b15760405162461bcd60e51b8152602060048201526015602482015274115610d1515114d7d05254911493d417d312535255605a1b6044820152606401610c38565b6010805463ff00000019166301000000179055610df98282611ed1565b6008546001600160a01b031633146114f85760405162461bcd60e51b8152600401610c3890612a26565b60105460ff161561151b5760405162461bcd60e51b8152600401610c3890612a5b565b600b55565b6008546001600160a01b0316331461154a5760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156115735760405162461bcd60e51b8152600401610c3890612a83565b601191909155601255565b606060038054610ab99061299e565b6008546001600160a01b031633146115b75760405162461bcd60e51b8152600401610c3890612a26565b60105462010000900460ff16156115e05760405162461bcd60e51b8152600401610c3890612a83565b6010805467ff00000000000000198116600160381b9182900460ff1615909102179055565b61160d610c4d565b6116505760405162461bcd60e51b81526020600482015260146024820152735055424c49435f53414c455f494e41435449564560601b6044820152606401610c38565b60058111156116915760405162461bcd60e51b815260206004820152600d60248201526c0d57d513d2d15397d312535255609a1b6044820152606401610c38565b6123f0816116a26001546000540390565b6116ac9190612b4c565b11156116ca5760405162461bcd60e51b8152600401610c3890612ad8565b60006116de6701bc16d674ec800083612b64565b9050803410156117005760405162461bcd60e51b8152600401610c3890612b0f565b610df93383611ed1565b6001600160a01b0382163314156117345760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117ab848484611cbd565b6117b784848484612088565b6117d4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606117e582611be4565b61181e5760405162461bcd60e51b815260206004820152600a6024820152691253959053125117d25160b21b6044820152606401610c38565b601054640100000000900460ff166118c057600f805461183d9061299e565b80601f01602080910402602001604051908101604052809291908181526020018280546118699061299e565b80156118b65780601f1061188b576101008083540402835291602001916118b6565b820191906000526020600020905b81548152906001019060200180831161189957829003601f168201915b5050505050610aa4565b6118c8612193565b6118d1836121a2565b6040516020016118e2929190612b83565b60405160208183030381529060405292915050565b6008546001600160a01b031633146119215760405162461bcd60e51b8152600401610c3890612a26565b60105460ff16156119445760405162461bcd60e51b8152600401610c3890612a5b565b6010805460ff19166001179055565b6008546001600160a01b0316331461197d5760405162461bcd60e51b8152600401610c3890612a26565b6001600160a01b038116610c415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c38565b6008546001600160a01b03163314611a0c5760405162461bcd60e51b8152600401610c3890612a26565b601054610100900460ff1615611a345760405162461bcd60e51b8152600401610c3890612aac565b6010805461ff001916610100179055565b60006110d48484600a5485611eeb565b611a5d61127a565b611a9c5760405162461bcd60e51b815260206004820152601060248201526f50524553414c455f494e41435449564560801b6044820152606401610c38565b611aa7838333611a45565b611aea5760405162461bcd60e51b815260206004820152601460248201527314149154d0531157d393d517d59154925192515160621b6044820152606401610c38565b6123f081611afb6001546000540390565b611b059190612b4c565b1115611b235760405162461bcd60e51b8152600401610c3890612ad8565b336000908152600c6020526040902054600390611b41908390612b4c565b1115611b7f5760405162461bcd60e51b815260206004820152600d60248201526c0cd7d513d2d15397d312535255609a1b6044820152606401610c38565b6000611b9367015c2a7b13fd000083612b64565b905080341015611bb55760405162461bcd60e51b8152600401610c3890612b0f565b336000908152600c602052604081208054849290611bd4908490612b4c565b909155506117d490503383611ed1565b6000805482108015610aa4575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611cc882611f6f565b80519091506000906001600160a01b0316336001600160a01b03161480611cf657508151611cf690336109ac565b80611d11575033611d0684610b3c565b6001600160a01b0316145b905080611d3157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611d665760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d8d57604051633a954ecd60e21b815260040160405180910390fd5b611d9d6000848460000151611c0f565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611e8757600054811015611e8757825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610df982826040518060200160405280600081525061229f565b6000611f60858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff19606088901b1660208201528792506034019050604051602081830303815290604052805190602001206122ac565b15156001149050949350505050565b604080516060810182526000808252602082018190529181018290529054829081101561206f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061206d5780516001600160a01b031615612004579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612068579392505050565b612004565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0384163b1561218b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120cc903390899088908890600401612bc2565b602060405180830381600087803b1580156120e657600080fd5b505af1925050508015612116575060408051601f3d908101601f1916820190925261211391810190612bff565b60015b612171573d808015612144576040519150601f19603f3d011682016040523d82523d6000602084013e612149565b606091505b508051612169576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110d4565b5060016110d4565b6060600e8054610ab99061299e565b6060816121c65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121f057806121da81612c1c565b91506121e99050600a83612c4d565b91506121ca565b6000816001600160401b0381111561220a5761220a612695565b6040519080825280601f01601f191660200182016040528015612234576020820181803683370190505b5090505b84156110d457612249600183612c61565b9150612256600a86612c78565b612261906030612b4c565b60f81b81838151811061227657612276612c8c565b60200101906001600160f81b031916908160001a905350612298600a86612c4d565b9450612238565b610c0983838360016122c2565b6000826122b9858461242d565b14949350505050565b6000546001600160a01b0385166122eb57604051622e076360e81b815260040160405180910390fd5b836123095760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156124245760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156123fa57506123f86000888488612088565b155b15612418576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016123a3565b50600055611eca565b600081815b845181101561249957600085828151811061244f5761244f612c8c565b602002602001015190508083116124755760008381526020829052604090209250612486565b600081815260208490526040902092505b508061249181612c1c565b915050612432565b509392505050565b8280546124ad9061299e565b90600052602060002090601f0160209004810192826124cf5760008555612515565b82601f106124e857805160ff1916838001178555612515565b82800160010185558215612515579182015b828111156125155782518255916020019190600101906124fa565b50612521929150612525565b5090565b5b808211156125215760008155600101612526565b6001600160e01b031981168114610c4a57600080fd5b60006020828403121561256257600080fd5b813561256d8161253a565b9392505050565b60005b8381101561258f578181015183820152602001612577565b838111156117d45750506000910152565b600081518084526125b8816020860160208601612574565b601f01601f19169290920160200192915050565b60208152600061256d60208301846125a0565b6000602082840312156125f157600080fd5b5035919050565b80356001600160a01b038116811461260f57600080fd5b919050565b6000806040838503121561262757600080fd5b612630836125f8565b946020939093013593505050565b60006020828403121561265057600080fd5b61256d826125f8565b60008060006060848603121561266e57600080fd5b612677846125f8565b9250612685602085016125f8565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156126c5576126c5612695565b604051601f8501601f19908116603f011681019082821181831017156126ed576126ed612695565b8160405280935085815286868601111561270657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561273257600080fd5b81356001600160401b0381111561274857600080fd5b8201601f8101841361275957600080fd5b6110d4848235602084016126ab565b60008083601f84011261277a57600080fd5b5081356001600160401b0381111561279157600080fd5b6020830191508360208260051b85010111156127ac57600080fd5b9250929050565b600080602083850312156127c657600080fd5b82356001600160401b038111156127dc57600080fd5b6127e885828601612768565b90969095509350505050565b60008060006040848603121561280957600080fd5b83356001600160401b0381111561281f57600080fd5b61282b86828701612768565b909450925061283e9050602085016125f8565b90509250925092565b6000806040838503121561285a57600080fd5b50508035926020909101359150565b6000806040838503121561287c57600080fd5b612885836125f8565b91506020830135801515811461289a57600080fd5b809150509250929050565b600080600080608085870312156128bb57600080fd5b6128c4856125f8565b93506128d2602086016125f8565b92506040850135915060608501356001600160401b038111156128f457600080fd5b8501601f8101871361290557600080fd5b612914878235602084016126ab565b91505092959194509250565b6000806040838503121561293357600080fd5b61293c836125f8565b915061294a602084016125f8565b90509250929050565b60008060006040848603121561296857600080fd5b83356001600160401b0381111561297e57600080fd5b61298a86828701612768565b909790965060209590950135949350505050565b600181811c908216806129b257607f821691505b602082108114156129d357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4d756c74697369674f776e61626c653a2063616c6c6572206973206e6f74207460408201526c3432903932b0b61037bbb732b960991b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d131254d517d1925390531256915160921b604082015260600190565b6020808252600f908201526e1512535154d7d19253905312569151608a1b604082015260600190565b602080825260129082015271135155105110551057d1925390531256915160721b604082015260600190565b60208082526017908201527f455843454544535f434f4c4c454354494f4e5f53495a45000000000000000000604082015260600190565b6020808252600d908201526c56414c55455f544f4f5f4c4f5760981b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b5f57612b5f612b36565b500190565b6000816000190483118215151615612b7e57612b7e612b36565b500290565b60008351612b95818460208801612574565b835190830190612ba9818360208801612574565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bf5908301846125a0565b9695505050505050565b600060208284031215612c1157600080fd5b815161256d8161253a565b6000600019821415612c3057612c30612b36565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612c5c57612c5c612c37565b500490565b600082821015612c7357612c73612b36565b500390565b600082612c8757612c87612c37565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220e73f07208448f56a4efd7349c4080bc956308857f5245167eab9a8ac2c770dac64736f6c63430008090033

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

000000000000000000000000e753f1f67f610ad9f98c441873dc54a0972015909baea82a9cbb97cac9de16e8130fd5cbe8e23805220f6e89a0af7a64661874e6fb35f79b945e2daf7bc2a8eab11797f7969d23a1f677cc8097495a152354a66000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d55646e663761416e34647652484c664474716854424b52696a4c6169733779534d7663577a3362574c51435a0000000000000000000000

-----Decoded View---------------
Arg [0] : revenueRecipient (address): 0xe753f1F67F610aD9f98C441873dC54A097201590
Arg [1] : presaleMerkleRoot (bytes32): 0x9baea82a9cbb97cac9de16e8130fd5cbe8e23805220f6e89a0af7a64661874e6
Arg [2] : collabMerkleRoot (bytes32): 0xfb35f79b945e2daf7bc2a8eab11797f7969d23a1f677cc8097495a152354a660
Arg [3] : placeholderURI (string): ipfs://QmUdnf7aAn4dvRHLfDtqhTBKRijLais7ySMvcWz3bWLQCZ

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000e753f1f67f610ad9f98c441873dc54a097201590
Arg [1] : 9baea82a9cbb97cac9de16e8130fd5cbe8e23805220f6e89a0af7a64661874e6
Arg [2] : fb35f79b945e2daf7bc2a8eab11797f7969d23a1f677cc8097495a152354a660
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [5] : 697066733a2f2f516d55646e663761416e34647652484c664474716854424b52
Arg [6] : 696a4c6169733779534d7663577a3362574c51435a0000000000000000000000


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.