ETH Price: $2,426.79 (-1.39%)
Gas: 1.95 Gwei
 

Overview

TokenID

4943

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

9999 hand drawn luftballons, wafting over the wall. An experimental airdrop community with a contract that supports token splitting.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Luftballons

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 20 runs

Other Settings:
default evmVersion
File 1 of 29 : Luftballons.sol
// SPDX-License-Identifier: MIT
// ERC721AirdropTarget Contracts v4.0.0
// Creator: Chance Santana-Wees

pragma solidity ^0.8.11;

import './ERC721A.sol';
import './ERC721AirdropTarget.sol';
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract Luftballons is ERC721AirdropTarget, ERC2981, ERC721A {
    IERC721 constant gmDAO = IERC721(0x36F4D96Fe0D4Eb33cdC2dC6C0bCA15b9Cdd0d648);
    mapping(uint256 => bool) private gmTokenMinted;
    uint256 private reservedMinted = 0;

    string private baseURI = "https://luftballons.mypinata.cloud/ipfs/QmXXo2pCyi5GF2fFrbZVUzRHRmDkhR4WQKFwALEmiFrYqB/";
    string private _contractURI = "https://luftballons.mypinata.cloud/ipfs/QmdQ71dZRdSdfiwx5tbuH2HKJBd7PEyfkSqzxWRr4fFUNg";

    ERC20Spendable public LuftToken;
    mapping(address => uint256) public customLuftPricePerNFT;
    mapping(uint256 => uint256) public claimedLuft;

    uint256 startBlock;
    uint256 spentLuft;

    event LuftClaimed(uint256[] tokenIDs, address claimant, uint256 quantityHarvested);
    event LuftSpent(address collection, address spender, uint256 nftID, uint256 luft, uint256 nftQuantity);

    constructor()
        ERC721AirdropTarget()
        ERC721A("9999 Luftballons", "LUFTBALLONS")
    {
        _setDefaultRoyalty(owner(), 1000);
        _safeMint(owner(), 25);
        startBlock = block.number;
        LuftToken = new ERC20Spendable("Luft", "LUFT");
    }

    function _claimableLuft() internal view returns (uint256) {
        return (block.number - startBlock) * TokensPerblock;
    }

    function setCustomNFTPrice(address collection, uint256 tokenPrice) external {
        require(Ownable(collection).owner() == _msgSender(), "Not Detectable as Collection Owner");
        customLuftPricePerNFT[collection] = tokenPrice;
    }

    function _beforeHarvestERC721(address collection, uint256 tokenID) internal override {
        uint256 luftSpent = LuftPerNFT(collection);
        LuftToken.spend(_msgSender(), luftSpent);
        emit LuftSpent(collection, _msgSender(), tokenID, luftSpent, 1);
    }

    function _beforeHarvestERC1155(address collection, uint256 tokenID, uint256 quantity) internal override { 
        uint256 luftSpent = LuftPerNFT(collection) * quantity;
        LuftToken.spend(_msgSender(), luftSpent);
        emit LuftSpent(collection, _msgSender(), tokenID, luftSpent, 1);
    }

    function LuftPerNFT(address collection) public view returns (uint256) {
        if(customLuftPricePerNFT[collection] > 0) 
            return customLuftPricePerNFT[collection];

        uint benchmarkBlock = (100*(block.number/100));
        if(benchmarkBlock < startBlock) 
            benchmarkBlock = startBlock;

        uint benchmarkTotal = (benchmarkBlock - startBlock) * TokensPerblock;
        uint availableTokens = benchmarkTotal - spentLuft;

        if(availableTokens < 1000 ether)
            return 1 ether;
        else if(availableTokens > 100_000 ether)
            return 100 ether;
        else
            return availableTokens / 1000;
    }

    function claimableLuft(uint256[] memory tokenIDs) public view returns (uint256) {
        uint256 claimable = _claimableLuft();
        uint256 claimed = 0;
        for(uint i = 0; i < tokenIDs.length; i++) {
            claimed += claimable - claimedLuft[tokenIDs[i]];
        }
        return claimed;
    }

    function claimLuft(uint256[] memory tokenIDs) public {
        uint256 claimable = _claimableLuft();
        uint256 claimed = 0;
        for(uint i = 0; i < tokenIDs.length; i++) {
            require(ownerOf(tokenIDs[i]) == _msgSender(), "Not owner of TokenID");
            claimed += claimable - claimedLuft[tokenIDs[i]];
            claimedLuft[tokenIDs[i]] = claimable;
        }
        emit LuftClaimed(tokenIDs, _msgSender(), claimed);
        LuftToken.mint(_msgSender(), claimed);
    }

    function mint(address to, uint256 quantity) external {
        require(_numberMinted(_msgSenderERC721A()) + quantity < 3, "Don't be greedy.");
        require(totalSupply() + quantity < 9000, "Exceeds Unreserved Supply");
        require(totalSupply() + quantity < 10000, "Exceeds Max Supply");
        _safeMint(to,quantity);
    }
    
    function mint3_gmdao(uint256 gm_tokenID) external {
        require(!gmTokenMinted[gm_tokenID], "Allocation Minted");
        require(reservedMinted < 999, "No more reserved");
        require(totalSupply() + 3 < 10000, "Exceeds Max Supply");
        address to = gmDAO.ownerOf(gm_tokenID);
        gmTokenMinted[gm_tokenID] = true;
        reservedMinted += 3;
        _safeMint(to,3);
    }

    function setContractURI(string memory uri) external onlyOwner {
        _contractURI = uri;
    }

    function setBaseURI(string memory uri) external onlyOwner {
        baseURI = uri;
    }

    function setDefaultRoyalty(uint96 basisPoints) external onlyOwner {
        _setDefaultRoyalty(owner(), basisPoints);
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    /**
     * @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 override returns (string memory) {
        return baseURI;
    }

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override(ERC721A, ERC721AirdropTarget) returns (address) {
        return super.ownerOf(tokenId);
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function maxSupply() public pure override(ERC721AirdropTarget) returns (uint256) {
        return 9999;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721AirdropTarget, ERC2981, ERC721A) returns (bool) {
        return super.supportsInterface(interfaceId); 
    }
}

File 2 of 29 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 3 of 29 : ERC721AirdropTarget.sol
// SPDX-License-Identifier: MIT
// ERC721AirdropTarget Contracts v4.0.0
// Creator: Chance Santana-Wees

pragma solidity ^0.8.11;

import './IERC721AirdropTarget.sol';
import './ERC20Spendable.sol';
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract ERC721AirdropTarget is Ownable, ERC165, IERC721, IERC1155Receiver, IERC721Receiver, IERC721AirdropTarget {
    uint256 constant TokensPerblock = 1.75e-4 ether;

    address[] public availableAirdrops;
    mapping(address => uint256) public airdroppedQuantity;
    mapping(address => mapping(uint256 => uint256)) public claimedQuantities;
    mapping(address => uint256) totalClaimed;

    uint mutex = 1;
    modifier reentrancyGuard {
        require(mutex == 1);
        mutex = 2;
        _;
        mutex = 1;
    }

    function onERC721Received(address,address,uint256,bytes calldata) public pure returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }

    function onERC1155Received(address,address,uint256,uint256,bytes calldata) public pure returns (bytes4) {
        return IERC1155Receiver.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(address,address,uint256[] calldata,uint256[] calldata, bytes calldata) public pure returns (bytes4) {
        return IERC1155Receiver.onERC1155BatchReceived.selector;
    }

    function _beforeHarvestERC721(address collection, uint256 tokenID) internal virtual;
    function _beforeHarvestERC1155(address collection, uint256 tokenID, uint256 quantity) internal virtual;

    function harvestERC721Airdrop(address collection, uint256 tokenID) external {
        _beforeHarvestERC721(collection, tokenID);
        IERC721(collection).safeTransferFrom(address(this), _msgSender(), tokenID);
        emit ERC721AirdropHarvested(collection, _msgSender(), tokenID);
    }

    function harvestERC1155Airdrop(address collection, uint256 tokenID, uint256 quantity) external {
        _beforeHarvestERC1155(collection, tokenID, quantity);
        IERC1155(collection).safeTransferFrom(address(this), _msgSender(), tokenID, quantity, "");
        emit ERC1155AirdropHarvested(collection, _msgSender(), tokenID, quantity);
    }

    function noticeAirdrop(address tokenAddress) external {
        IERC20 token = IERC20(tokenAddress);
        uint256 balance = token.balanceOf(address(this)) + totalClaimed[tokenAddress];
        if(airdroppedQuantity[tokenAddress] == 0 && balance > 0) {
            availableAirdrops.push(tokenAddress);
        }
        airdroppedQuantity[tokenAddress] = balance;
    }
    
    function pullAirdrop(address tokenAddress, uint256 quantity) external {
        IERC20 token = IERC20(tokenAddress);
        token.transferFrom(_msgSender(), address(this), quantity);
        if(airdroppedQuantity[tokenAddress] == 0) {
            availableAirdrops.push(tokenAddress);
        }
        airdroppedQuantity[tokenAddress] += quantity;
    }

    function claimableAirdrops(address airdropToken, uint256 tokenID) public view returns (uint256){
        uint256 claimed = claimedQuantities[airdropToken][tokenID];
        uint256 claimable = airdroppedQuantity[airdropToken] / maxSupply();
        return claimable - claimed;
    }

    function harvestAirdrops(address[] memory airdropTokens, uint256[] memory tokenIDs) public reentrancyGuard {
        uint256 allClaimed = 0;
        for(uint a = 0; a < airdropTokens.length; a++) {
            require(airdroppedQuantity[airdropTokens[a]] > 0, "Airdrop not found");
            uint totalClaimable;
            for(uint t = 0; t < tokenIDs.length; t++) {
                require(ownerOf(tokenIDs[t]) == _msgSender(), "Not owner of TokenID");
                uint256 claimable = claimableAirdrops(airdropTokens[a], tokenIDs[t]);
                if(claimable > 0) {
                    claimedQuantities[airdropTokens[a]][tokenIDs[t]] += claimable;
                    totalClaimed[airdropTokens[a]] += claimable;
                    totalClaimable += claimable;
                }
            }
            IERC20(airdropTokens[a]).transfer(_msgSender(),totalClaimable);
            allClaimed += totalClaimable;
            emit ERC20AirdropHarvested(airdropTokens[a], _msgSender(), tokenIDs, totalClaimable);
        }

        require(allClaimed > 0, "No tokens harvested");
    }

    function maxSupply() public view virtual returns (uint256);
    function ownerOf(uint256 tokenId) public view virtual returns (address);

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165,IERC165) returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == type(IERC721AirdropTarget).interfaceId ||
            interfaceId == type(IERC721Receiver).interfaceId ||
            interfaceId == type(IERC1155Receiver).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 4 of 29 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

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

    // The number of tokens burned.
    uint256 private _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 `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

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

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view virtual returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly {
            // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // 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.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * 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) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

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

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

    /**
     * @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 Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));

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

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    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 for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (_addressToUint256(to) == 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 {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 offset;
            do {
                emit Transfer(address(0), to, startTokenId + offset++);
            } while (offset < quantity);

            _currentIndex = startTokenId + quantity;
        }
        _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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        address approvedAddress = _tokenApprovals[tokenId];

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            approvedAddress == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (_addressToUint256(to) == 0) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        if (_addressToUint256(approvedAddress) != 0) {
            delete _tokenApprovals[tokenId];
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));
        address approvedAddress = _tokenApprovals[tokenId];

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                approvedAddress == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        if (_addressToUint256(approvedAddress) != 0) {
            delete _tokenApprovals[tokenId];
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

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

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

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

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 5 of 29 : 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 29 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 29 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 8 of 29 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 29 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 10 of 29 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 11 of 29 : 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 12 of 29 : ERC20Spendable.sol
// SPDX-License-Identifier: MIT
// ERC721AirdropTarget Contracts v4.0.0
// Creator: Chance Santana-Wees

pragma solidity ^0.8.11;

import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol";

contract ERC20Spendable is ERC20PresetMinterPauser {

    constructor(string memory name, string memory symbol) ERC20PresetMinterPauser(name, symbol) {}

    function spend(address spender, uint256 amount) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to spend");
        _burn(spender, amount);
    }
}

File 13 of 29 : IERC721AirdropTarget.sol
// SPDX-License-Identifier: MIT
// ERC721AirdropTarget Contracts v4.0.0
// Creator: Chance Santana-Wees

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";

interface IERC721AirdropTarget is IERC1155Receiver, IERC721Receiver {
    event ERC20AirdropHarvested(address token, address claimant, uint256[] claimIDs, uint256 totalClaimed);
    event ERC721AirdropHarvested(address collection, address claimant, uint256 nftID);
    event ERC1155AirdropHarvested(address collection, address claimant, uint256 nftID, uint256 quantity);

    function harvestERC721Airdrop(address collection, uint256 tokenID) external;

    function harvestERC1155Airdrop(address collection, uint256 tokenID, uint quantity) external;

    function noticeAirdrop(address tokenAddress) external;
    
    function pullAirdrop(address tokenAddress, uint256 quantity) external;

    function claimableAirdrops(address airdropToken, uint256 tokenID) external view returns (uint256);

    function harvestAirdrops(address[] memory airdropTokens, uint256[] memory tokenIDs) external;
}

File 14 of 29 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721 {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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 15 of 29 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 16 of 29 : ERC20PresetMinterPauser.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/presets/ERC20PresetMinterPauser.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../extensions/ERC20Burnable.sol";
import "../extensions/ERC20Pausable.sol";
import "../../../access/AccessControlEnumerable.sol";
import "../../../utils/Context.sol";

/**
 * @dev {ERC20} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 *
 * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._
 */
contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the
     * account that deploys the contract.
     *
     * See {ERC20-constructor}.
     */
    constructor(string memory name, string memory symbol) ERC20(name, symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Creates `amount` new tokens for `to`.
     *
     * See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to, uint256 amount) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint");
        _mint(to, amount);
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause");
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause");
        _unpause();
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override(ERC20, ERC20Pausable) {
        super._beforeTokenTransfer(from, to, amount);
    }
}

File 17 of 29 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 29 : 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 19 of 29 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 20 of 29 : ERC20Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

File 21 of 29 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 22 of 29 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 23 of 29 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 24 of 29 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 25 of 29 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 26 of 29 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 27 of 29 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 28 of 29 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 29 of 29 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"address","name":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ERC1155AirdropHarvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"claimant","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"claimIDs","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"totalClaimed","type":"uint256"}],"name":"ERC20AirdropHarvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"address","name":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"}],"name":"ERC721AirdropHarvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantityHarvested","type":"uint256"}],"name":"LuftClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"luft","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftQuantity","type":"uint256"}],"name":"LuftSpent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"LuftPerNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LuftToken","outputs":[{"internalType":"contract ERC20Spendable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"airdroppedQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableAirdrops","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"claimLuft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"airdropToken","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"claimableAirdrops","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"claimableLuft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedLuft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedQuantities","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"customLuftPricePerNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"airdropTokens","type":"address[]"},{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"harvestAirdrops","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"harvestERC1155Airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"harvestERC721Airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gm_tokenID","type":"uint256"}],"name":"mint3_gmdao","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"noticeAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"pullAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"setCustomNFTPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"basisPoints","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6001600555600060115561010060405260576080818152906200528760a039805162000034916012916020909101906200058f565b50604051806080016040528060568152602001620052de60569139805162000065916013916020909101906200058f565b503480156200007357600080fd5b506040518060400160405280601081526020016f39393939204c75667462616c6c6f6e7360801b8152506040518060400160405280600b81526020016a4c55465442414c4c4f4e5360a81b815250620000db620000d5620001d360201b60201c565b620001d7565b8151620000f090600a9060208501906200058f565b5080516200010690600b9060208401906200058f565b506001600855505060005462000128906001600160a01b03166103e862000227565b620001476200013f6000546001600160a01b031690565b60196200032c565b4360175560405162000159906200061e565b6040808252600490820181905263131d599d60e21b6060830152608060208301819052820152631315519560e21b60a082015260c001604051809103906000f080158015620001ac573d6000803e3d6000fd5b50601480546001600160a01b0319166001600160a01b03929092169190911790556200072e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b03821611156200029b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002f35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000292565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6200034e8282604051806020016040528060008152506200035260201b60201c565b5050565b6200035e8383620003c9565b6001600160a01b0383163b15620003c4576008548281035b60018101906200038c906000908790866200049e565b620003aa576040516368d2bf6b60e11b815260040160405180910390fd5b81811062000376578160085414620003c157600080fd5b50505b505050565b60085482620003ea57604051622e076360e81b815260040160405180910390fd5b81620004095760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600d602090815260408083208054680100000000000000018702019055838352600c90915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48281106200045057500160085550565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620004d590339089908890889060040162000643565b6020604051808303816000875af192505050801562000513575060408051601f3d908101601f191682019092526200051091810190620006be565b60015b62000572573d80801562000544576040519150601f19603f3d011682016040523d82523d6000602084013e62000549565b606091505b5080516200056a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b8280546200059d90620006f1565b90600052602060002090601f016020900481019282620005c157600085556200060c565b82601f10620005dc57805160ff19168380011785556200060c565b828001600101855582156200060c579182015b828111156200060c578251825591602001919060010190620005ef565b506200061a9291506200062c565b5090565b611d1b806200356c83390190565b5b808211156200061a57600081556001016200062d565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006925785810182015185820160a00152810162000674565b82811115620006a557600060a084870101525b5050601f01601f19169190910160a00195945050505050565b600060208284031215620006d157600080fd5b81516001600160e01b031981168114620006ea57600080fd5b9392505050565b600181811c908216806200070657607f821691505b602082108114156200072857634e487b7160e01b600052602260045260246000fd5b50919050565b612e2e806200073e6000396000f3fe608060405234801561001057600080fd5b50600436106102145760003560e01c806370a082311161012157806370a0823114610431578063715018a6146104445780637a08b7061461044c5780638da5cb5b1461047757806390094daa1461047f578063938e3d7b1461049f57806395d89b41146104b2578063a166ea22146104ba578063a22cb465146104cd578063b7fd51c7146104e0578063b88d4fde146104f3578063bc197c8114610506578063c1cd1d7514610528578063c30c31531461053b578063c87b56dd1461054e578063d5abeb0114610561578063d6948b7514610569578063e427b9a61461057c578063e8a3d4851461058f578063e985e9c514610597578063f23a6e61146105d3578063f2fde38b146105f357600080fd5b806301ffc9a71461021957806306fdde0314610241578063081812fc14610256578063095ea7b314610276578063150b7a021461028b57806318160ddd146102c357806323b872dd146102d95780632a55205a146102ec5780633af1169a1461030d57806340c10f191461032057806341c88fe11461033357806342842e0e1461034657806344cb375014610359578063453af4501461036c57806346dafd4a1461038c57806355a3e0541461039f57806355f804b3146103b2578063575572cc146103c55780635df6954c146103d85780635f0382a6146103eb5780636352211e146103fe5780636c50c96914610411575b600080fd5b61022c610227366004612327565b610606565b60405190151581526020015b60405180910390f35b610249610617565b604051610238919061239c565b6102696102643660046123af565b6106a9565b60405161023891906123c8565b6102896102843660046123f1565b6106ed565b005b6102aa61029936600461245e565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610238565b6102cb61078d565b604051908152602001610238565b6102896102e73660046124d0565b61079b565b6102ff6102fa366004612511565b6107ab565b604051610238929190612533565b6102cb61031b3660046123f1565b610859565b61028961032e3660046123f1565b6108b9565b610289610341366004612620565b6109c8565b6102896103543660046124d0565b610d61565b601454610269906001600160a01b031681565b6102cb61037a3660046126e1565b60026020526000908152604090205481565b61028961039a3660046123f1565b610d7c565b6102896103ad3660046126e1565b610e2d565b6102896103c0366004612755565b610f4f565b6102896103d33660046123f1565b610f91565b6102696103e63660046123af565b61107a565b6102cb6103f93660046126e1565b6110a4565b61026961040c3660046123af565b611190565b6102cb61041f3660046123af565b60166020526000908152604090205481565b6102cb61043f3660046126e1565b61119b565b6102896111e0565b6102cb61045a3660046123f1565b600360209081526000928352604080842090915290825290205481565b61026961121b565b6102cb61048d3660046126e1565b60156020526000908152604090205481565b6102896104ad366004612755565b61122a565b61024961126c565b6102896104c83660046123f1565b61127b565b6102896104db3660046127ab565b61138b565b6102896104ee3660046123af565b611421565b6102896105013660046127e4565b6115a6565b6102aa6105143660046128a7565b63bc197c8160e01b98975050505050505050565b6102cb610536366004612965565b6115f0565b610289610549366004612999565b611668565b61024961055c3660046123af565b611752565b61270f6102cb565b6102896105773660046129ce565b6117d7565b61028961058a366004612965565b61181a565b6102496119a3565b61022c6105a53660046129f7565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205460ff1690565b6102aa6105e1366004612a25565b63f23a6e6160e01b9695505050505050565b6102896106013660046126e1565b6119b2565b600061061182611a4f565b92915050565b6060600a805461062690612aa0565b80601f016020809104026020016040519081016040528092919081815260200182805461065290612aa0565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482611a9d565b6106d1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600e60205260409020546001600160a01b031690565b60006106f882611ad2565b9050336001600160a01b038216146107315761071481336105a5565b610731576040516367d9dca160e11b815260040160405180910390fd5b6000828152600e602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600954600854036000190190565b6107a6838383611b3b565b505050565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108205750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061083f906001600160601b031687612af1565b6108499190612b10565b91519350909150505b9250929050565b6001600160a01b03821660009081526003602090815260408083208484529091528120548161270f6001600160a01b0386166000908152600260205260409020546108a49190612b10565b90506108b08282612b32565b95945050505050565b336000908152600d602052604090819020546003916108e39184911c6001600160401b0316612b49565b106109285760405162461bcd60e51b815260206004820152601060248201526f2237b713ba1031329033b932b2b23c9760811b60448201526064015b60405180910390fd5b6123288161093461078d565b61093e9190612b49565b106109875760405162461bcd60e51b81526020600482015260196024820152784578636565647320556e726573657276656420537570706c7960381b604482015260640161091f565b6127108161099361078d565b61099d9190612b49565b106109ba5760405162461bcd60e51b815260040161091f90612b61565b6109c48282611ceb565b5050565b6005546001146109d757600080fd5b60026005556000805b8351811015610d1057600060026000868481518110610a0157610a01612b8d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205411610a6b5760405162461bcd60e51b8152602060048201526011602482015270105a5c991c9bdc081b9bdd08199bdd5b99607a1b604482015260640161091f565b6000805b8451811015610c0357336001600160a01b0316610aa4868381518110610a9757610a97612b8d565b6020026020010151611190565b6001600160a01b031614610aca5760405162461bcd60e51b815260040161091f90612ba3565b6000610b08878581518110610ae157610ae1612b8d565b6020026020010151878481518110610afb57610afb612b8d565b6020026020010151610859565b90508015610bf0578060036000898781518110610b2757610b27612b8d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000888581518110610b6357610b63612b8d565b602002602001015181526020019081526020016000206000828254610b889190612b49565b925050819055508060046000898781518110610ba657610ba6612b8d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254610bdd9190612b49565b90915550610bed90508184612b49565b92505b5080610bfb81612bd1565b915050610a6f565b50848281518110610c1657610c16612b8d565b60200260200101516001600160a01b031663a9059cbb610c333390565b836040518363ffffffff1660e01b8152600401610c51929190612533565b6020604051808303816000875af1158015610c70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c949190612bec565b50610c9f8184612b49565b92507fbeda198b40cfd4a860ffc5410ee986675f05f0b89560071ea7def4bedcdac2de858381518110610cd457610cd4612b8d565b6020026020010151610ce33390565b8684604051610cf59493929190612c44565b60405180910390a15080610d0881612bd1565b9150506109e0565b5060008111610d575760405162461bcd60e51b8152602060048201526013602482015272139bc81d1bdad95b9cc81a185c9d995cdd1959606a1b604482015260640161091f565b5050600160055550565b6107a6838383604051806020016040528060008152506115a6565b610d868282611d05565b604051632142170760e11b81526001600160a01b038316906342842e0e90610db690309033908690600401612c81565b600060405180830381600087803b158015610dd057600080fd5b505af1158015610de4573d6000803e3d6000fd5b505050507f2ac1d10e7b3119148ccb59f6c9cd01144807e72ee1c3f3a82ec0f11b89513ed282610e113390565b83604051610e2193929190612c81565b60405180910390a15050565b6001600160a01b03811660008181526004602081905260408083205490516370a0823160e01b8152859491926370a0823191610e6b913091016123c8565b602060405180830381865afa158015610e88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eac9190612ca5565b610eb69190612b49565b6001600160a01b038416600090815260026020526040902054909150158015610edf5750600081115b15610f2f576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0390921660009081526002602052604090209190915550565b33610f5861121b565b6001600160a01b031614610f7e5760405162461bcd60e51b815260040161091f90612cbe565b80516109c4906012906020840190612278565b336001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffd9190612cf3565b6001600160a01b03161461105e5760405162461bcd60e51b815260206004820152602260248201527f4e6f742044657465637461626c6520617320436f6c6c656374696f6e204f776e60448201526132b960f11b606482015260840161091f565b6001600160a01b03909116600090815260156020526040902055565b6001818154811061108a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b038116600090815260156020526040812054156110de57506001600160a01b031660009081526015602052604090205490565b60006110eb606443612b10565b6110f6906064612af1565b905060175481101561110757506017545b6000659f295cd5f0006017548361111e9190612b32565b6111289190612af1565b905060006018548261113a9190612b32565b9050683635c9adc5dea0000081101561115f5750670de0b6b3a7640000949350505050565b69152d02c7e14af6800000811115611184575068056bc75e2d63100000949350505050565b6108b06103e882612b10565b600061061182611db3565b6000816111bb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600d60205260409020546001600160401b031690565b336111e961121b565b6001600160a01b03161461120f5760405162461bcd60e51b815260040161091f90612cbe565b6112196000611dbe565b565b6000546001600160a01b031690565b3361123361121b565b6001600160a01b0316146112595760405162461bcd60e51b815260040161091f90612cbe565b80516109c4906013906020840190612278565b6060600b805461062690612aa0565b6040516323b872dd60e01b815282906001600160a01b038216906323b872dd906112ad90339030908790600401612c81565b6020604051808303816000875af11580156112cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f09190612bec565b506001600160a01b038316600090815260026020526040902054611359576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0385161790555b6001600160a01b03831660009081526002602052604081208054849290611381908490612b49565b9091555050505050565b6001600160a01b0382163314156113b55760405163b06307db60e01b815260040160405180910390fd5b336000818152600f602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008181526010602052604090205460ff16156114745760405162461bcd60e51b8152602060048201526011602482015270105b1b1bd8d85d1a5bdb88135a5b9d1959607a1b604482015260640161091f565b6103e7601154106114ba5760405162461bcd60e51b815260206004820152601060248201526f139bc81b5bdc99481c995cd95c9d995960821b604482015260640161091f565b6127106114c561078d565b6114d0906003612b49565b106114ed5760405162461bcd60e51b815260040161091f90612b61565b6040516331a9108f60e11b8152600481018290526000907336f4d96fe0d4eb33cdc2dc6c0bca15b9cdd0d64890636352211e90602401602060405180830381865afa158015611540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115649190612cf3565b6000838152601060205260408120805460ff1916600117905560118054929350600392909190611595908490612b49565b909155506109c49050816003611ceb565b6115b1848484611b3b565b6001600160a01b0383163b156115ea576115cd84848484611e0e565b6115ea576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000806115fb611ef7565b90506000805b8451811015611660576016600086838151811061162057611620612b8d565b6020026020010151815260200190815260200160002054836116429190612b32565b61164c9083612b49565b91508061165881612bd1565b915050611601565b509392505050565b611673838383611f1d565b60408051637921219560e11b8152306004820152336024820152604481018490526064810183905260a06084820152600060a4820181905291516001600160a01b0386169263f242432a9260c4808201939182900301818387803b1580156116da57600080fd5b505af11580156116ee573d6000803e3d6000fd5b505050507f7f0abde2c4567a97b09c1cb7f2061390860a0323b98efe3007d387db091b13c88361171b3390565b604080516001600160a01b0393841681529290911660208301528101849052606081018390526080015b60405180910390a1505050565b606061175d82611a9d565b61177a57604051630a14c4b560e41b815260040160405180910390fd5b6000611784611fe4565b90508051600014156117a557604051806020016040528060008152506117d0565b806117af84611ff3565b6040516020016117c0929190612d10565b6040516020818303038152906040525b9392505050565b336117e061121b565b6001600160a01b0316146118065760405162461bcd60e51b815260040161091f90612cbe565b61181761181161121b565b82612042565b50565b6000611824611ef7565b90506000805b835181101561190057336001600160a01b0316611852858381518110610a9757610a97612b8d565b6001600160a01b0316146118785760405162461bcd60e51b815260040161091f90612ba3565b6016600085838151811061188e5761188e612b8d565b6020026020010151815260200190815260200160002054836118b09190612b32565b6118ba9083612b49565b915082601660008684815181106118d3576118d3612b8d565b602002602001015181526020019081526020016000208190555080806118f890612bd1565b91505061182a565b507f633a26af36e0ee972ce309204b182f53c8e547c876d548edb7827e3da2d448d283338360405161193493929190612d3f565b60405180910390a16014546001600160a01b03166340c10f1933836040518363ffffffff1660e01b815260040161196c929190612533565b600060405180830381600087803b15801561198657600080fd5b505af115801561199a573d6000803e3d6000fd5b50505050505050565b60606013805461062690612aa0565b336119bb61121b565b6001600160a01b0316146119e15760405162461bcd60e51b815260040161091f90612cbe565b6001600160a01b038116611a465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161091f565b61181781611dbe565b60006301ffc9a760e01b6001600160e01b031983161480611a8057506380ac58cd60e01b6001600160e01b03198316145b806106115750506001600160e01b031916635b5e139f60e01b1490565b600081600111158015611ab1575060085482105b80156106115750506000908152600c6020526040902054600160e01b161590565b60008180600111611b2257600854811015611b22576000818152600c6020526040902054600160e01b8116611b20575b806117d05750600019016000818152600c6020526040902054611b02565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611b4682611ad2565b9050836001600160a01b0316816001600160a01b031614611b795760405162a1148160e81b815260040160405180910390fd5b6000828152600e60205260408120546001600160a01b0390811691908616331480611ba95750611ba986336105a5565b80611bbc57506001600160a01b03821633145b905080611bdc57604051632ce44b5f60e11b815260040160405180910390fd5b84611bfa57604051633a954ecd60e21b815260040160405180910390fd5b8115611c1d576000848152600e6020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600d602090815260408083208054600019019055928816825282822080546001019055868252600c905220600160e11b4260a01b871781179091558316611ca257600184016000818152600c6020526040902054611ca0576008548114611ca0576000818152600c602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6109c482826040518060200160405280600081525061213b565b6000611d10836110a4565b60145460405163af7d6ca360e01b81529192506001600160a01b03169063af7d6ca390611d439033908590600401612533565b600060405180830381600087803b158015611d5d57600080fd5b505af1158015611d71573d6000803e3d6000fd5b505050507fb84b2bc23c00e3451d24a93b30b2487adc8e8234705396c22ea092375db2b71d83611d9e3390565b84846001604051611745959493929190612d6d565b600061061182611ad2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e43903390899088908890600401612d9e565b6020604051808303816000875af1925050508015611e7e575060408051601f3d908101601f19168201909252611e7b91810190612ddb565b60015b611ed9573d808015611eac576040519150601f19603f3d011682016040523d82523d6000602084013e611eb1565b606091505b508051611ed1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000659f295cd5f00060175443611f0e9190612b32565b611f189190612af1565b905090565b600081611f29856110a4565b611f339190612af1565b60145460405163af7d6ca360e01b81529192506001600160a01b03169063af7d6ca390611f669033908590600401612533565b600060405180830381600087803b158015611f8057600080fd5b505af1158015611f94573d6000803e3d6000fd5b505050507fb84b2bc23c00e3451d24a93b30b2487adc8e8234705396c22ea092375db2b71d84611fc13390565b85846001604051611fd6959493929190612d6d565b60405180910390a150505050565b60606012805461062690612aa0565b604080516080810191829052607f0190826030600a8206018353600a90045b801561203057600183039250600a81066030018353600a9004612012565b50819003601f19909101908152919050565b6127106001600160601b03821611156120b05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161091f565b6001600160a01b0382166121025760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b604482015260640161091f565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b61214583836121a8565b6001600160a01b0383163b156107a6576008548281035b61216f6000868380600101945086611e0e565b61218c576040516368d2bf6b60e11b815260040160405180910390fd5b81811061215c5781600854146121a157600080fd5b5050505050565b600854826121c857604051622e076360e81b815260040160405180910390fd5b816121e65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600d6020908152604080832080546001600160401b018702019055838352600c90915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a482811061222b57500160085550565b82805461228490612aa0565b90600052602060002090601f0160209004810192826122a657600085556122ec565b82601f106122bf57805160ff19168380011785556122ec565b828001600101855582156122ec579182015b828111156122ec5782518255916020019190600101906122d1565b506122f89291506122fc565b5090565b5b808211156122f857600081556001016122fd565b6001600160e01b03198116811461181757600080fd5b60006020828403121561233957600080fd5b81356117d081612311565b60005b8381101561235f578181015183820152602001612347565b838111156115ea5750506000910152565b60008151808452612388816020860160208601612344565b601f01601f19169290920160200192915050565b6020815260006117d06020830184612370565b6000602082840312156123c157600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b038116811461181757600080fd5b6000806040838503121561240457600080fd5b823561240f816123dc565b946020939093013593505050565b60008083601f84011261242f57600080fd5b5081356001600160401b0381111561244657600080fd5b60208301915083602082850101111561085257600080fd5b60008060008060006080868803121561247657600080fd5b8535612481816123dc565b94506020860135612491816123dc565b93506040860135925060608601356001600160401b038111156124b357600080fd5b6124bf8882890161241d565b969995985093965092949392505050565b6000806000606084860312156124e557600080fd5b83356124f0816123dc565b92506020840135612500816123dc565b929592945050506040919091013590565b6000806040838503121561252457600080fd5b50508035926020909101359150565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561258a5761258a61254c565b604052919050565b60006001600160401b038211156125ab576125ab61254c565b5060051b60200190565b600082601f8301126125c657600080fd5b813560206125db6125d683612592565b612562565b82815260059290921b840181019181810190868411156125fa57600080fd5b8286015b8481101561261557803583529183019183016125fe565b509695505050505050565b6000806040838503121561263357600080fd5b82356001600160401b038082111561264a57600080fd5b818501915085601f83011261265e57600080fd5b8135602061266e6125d683612592565b82815260059290921b8401810191818101908984111561268d57600080fd5b948201945b838610156126b45785356126a5816123dc565b82529482019490820190612692565b965050860135925050808211156126ca57600080fd5b506126d7858286016125b5565b9150509250929050565b6000602082840312156126f357600080fd5b81356117d0816123dc565b60006001600160401b038311156127175761271761254c565b61272a601f8401601f1916602001612562565b905082815283838301111561273e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561276757600080fd5b81356001600160401b0381111561277d57600080fd5b8201601f8101841361278e57600080fd5b611eef848235602084016126fe565b801515811461181757600080fd5b600080604083850312156127be57600080fd5b82356127c9816123dc565b915060208301356127d98161279d565b809150509250929050565b600080600080608085870312156127fa57600080fd5b8435612805816123dc565b93506020850135612815816123dc565b92506040850135915060608501356001600160401b0381111561283757600080fd5b8501601f8101871361284857600080fd5b612857878235602084016126fe565b91505092959194509250565b60008083601f84011261287557600080fd5b5081356001600160401b0381111561288c57600080fd5b6020830191508360208260051b850101111561085257600080fd5b60008060008060008060008060a0898b0312156128c357600080fd5b88356128ce816123dc565b975060208901356128de816123dc565b965060408901356001600160401b03808211156128fa57600080fd5b6129068c838d01612863565b909850965060608b013591508082111561291f57600080fd5b61292b8c838d01612863565b909650945060808b013591508082111561294457600080fd5b506129518b828c0161241d565b999c989b5096995094979396929594505050565b60006020828403121561297757600080fd5b81356001600160401b0381111561298d57600080fd5b611eef848285016125b5565b6000806000606084860312156129ae57600080fd5b83356129b9816123dc565b95602085013595506040909401359392505050565b6000602082840312156129e057600080fd5b81356001600160601b03811681146117d057600080fd5b60008060408385031215612a0a57600080fd5b8235612a15816123dc565b915060208301356127d9816123dc565b60008060008060008060a08789031215612a3e57600080fd5b8635612a49816123dc565b95506020870135612a59816123dc565b9450604087013593506060870135925060808701356001600160401b03811115612a8257600080fd5b612a8e89828a0161241d565b979a9699509497509295939492505050565b600181811c90821680612ab457607f821691505b60208210811415612ad557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612b0b57612b0b612adb565b500290565b600082612b2d57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612b4457612b44612adb565b500390565b60008219821115612b5c57612b5c612adb565b500190565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260149082015273139bdd081bdddb995c881bd988151bdad95b925160621b604082015260600190565b6000600019821415612be557612be5612adb565b5060010190565b600060208284031215612bfe57600080fd5b81516117d08161279d565b600081518084526020808501945080840160005b83811015612c3957815187529582019590820190600101612c1d565b509495945050505050565b6001600160a01b03858116825284166020820152608060408201819052600090612c7090830185612c09565b905082606083015295945050505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215612cb757600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612d0557600080fd5b81516117d0816123dc565b60008351612d22818460208801612344565b835190830190612d36818360208801612344565b01949350505050565b606081526000612d526060830186612c09565b6001600160a01b039490941660208301525060400152919050565b6001600160a01b03958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612dd190830184612370565b9695505050505050565b600060208284031215612ded57600080fd5b81516117d08161231156fea26469706673582212202acee978b9daf7f387710cfeba0d8d0986c03c4c83df0505b829a643ae040b1264736f6c634300080b003360806040523480156200001157600080fd5b5060405162001d1b38038062001d1b8339810160408190526200003491620003ba565b8181818181600590805190602001906200005092919062000247565b5080516200006690600690602084019062000247565b50506007805460ff191690555062000080600033620000e2565b620000ac7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000e2565b620000d87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620000e2565b5050505062000461565b620000ee8282620000f2565b5050565b6200010982826200013560201b620008ab1760201c565b6000828152600160209081526040909120620001309183906200092f620001d5821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000ee576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001913390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620001ec836001600160a01b038416620001f5565b90505b92915050565b60008181526001830160205260408120546200023e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001ef565b506000620001ef565b828054620002559062000424565b90600052602060002090601f016020900481019282620002795760008555620002c4565b82601f106200029457805160ff1916838001178555620002c4565b82800160010185558215620002c4579182015b82811115620002c4578251825591602001919060010190620002a7565b50620002d2929150620002d6565b5090565b5b80821115620002d25760008155600101620002d7565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031557600080fd5b81516001600160401b0380821115620003325762000332620002ed565b604051601f8301601f19908116603f011681019082821181831017156200035d576200035d620002ed565b816040528381526020925086838588010111156200037a57600080fd5b600091505b838210156200039e57858201830151818301840152908201906200037f565b83821115620003b05760008385830101525b9695505050505050565b60008060408385031215620003ce57600080fd5b82516001600160401b0380821115620003e657600080fd5b620003f48683870162000303565b935060208501519150808211156200040b57600080fd5b506200041a8582860162000303565b9150509250929050565b600181811c908216806200043957607f821691505b602082108114156200045b57634e487b7160e01b600052602260045260246000fd5b50919050565b6118aa80620004716000396000f3fe608060405234801561001057600080fd5b506004361061015f5760003560e01c806301ffc9a71461016457806306fdde031461018c578063095ea7b3146101a157806318160ddd146101b457806323b872dd146101c6578063248a9ca3146101d95780632f2ff15d146101ec578063313ce5671461020157806336568abe1461021057806339509351146102235780633f4ba83a1461023657806340c10f191461023e57806342966c68146102515780635c975abb1461026457806370a082311461026f57806379cc6790146102985780638456cb59146102ab5780639010d07c146102b357806391d14854146102d357806395d89b41146102e6578063a217fddf146102ee578063a457c2d7146102f6578063a9059cbb14610309578063af7d6ca31461031c578063ca15c8731461032f578063d539139314610342578063d547741f14610357578063dd62ed3e1461036a578063e63ab1e91461037d575b600080fd5b6101776101723660046114c2565b610392565b60405190151581526020015b60405180910390f35b6101946103bd565b6040516101839190611518565b6101776101af366004611567565b61044f565b6004545b604051908152602001610183565b6101776101d4366004611591565b610467565b6101b86101e73660046115cd565b61048b565b6101ff6101fa3660046115e6565b6104a0565b005b60405160128152602001610183565b6101ff61021e3660046115e6565b6104c1565b610177610231366004611567565b610544565b6101ff610566565b6101ff61024c366004611567565b6105e4565b6101ff61025f3660046115cd565b61065f565b60075460ff16610177565b6101b861027d366004611612565b6001600160a01b031660009081526002602052604090205490565b6101ff6102a6366004611567565b61066c565b6101ff610681565b6102c66102c136600461162d565b6106fb565b604051610183919061164f565b6101776102e13660046115e6565b61071a565b610194610743565b6101b8600081565b610177610304366004611567565b610752565b610177610317366004611567565b6107cd565b6101ff61032a366004611567565b6107db565b6101b861033d3660046115cd565b61084d565b6101b860008051602061183583398151915281565b6101ff6103653660046115e6565b610864565b6101b8610378366004611663565b610880565b6101b860008051602061181583398151915281565b60006001600160e01b03198216635a05180f60e01b14806103b757506103b782610944565b92915050565b6060600580546103cc9061168d565b80601f01602080910402602001604051908101604052809291908181526020018280546103f89061168d565b80156104455780601f1061041a57610100808354040283529160200191610445565b820191906000526020600020905b81548152906001019060200180831161042857829003601f168201915b5050505050905090565b60003361045d818585610979565b5060019392505050565b600033610475858285610a9d565b610480858585610b17565b506001949350505050565b60009081526020819052604090206001015490565b6104a98261048b565b6104b281610cde565b6104bc8383610ce8565b505050565b6001600160a01b03811633146105365760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6105408282610d0a565b5050565b60003361045d8185856105578383610880565b61056191906116de565b610979565b61057e6000805160206118158339815191523361071a565b6105da5760405162461bcd60e51b815260206004820152603960248201526000805160206117f583398151915260448201527876652070617573657220726f6c6520746f20756e706175736560381b606482015260840161052d565b6105e2610d2c565b565b6105fc6000805160206118358339815191523361071a565b6106555760405162461bcd60e51b815260206004820152603660248201526000805160206117f58339815191526044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b606482015260840161052d565b6105408282610db9565b6106693382610e92565b50565b610677823383610a9d565b6105408282610e92565b6106996000805160206118158339815191523361071a565b6106f35760405162461bcd60e51b815260206004820152603760248201526000805160206117f583398151915260448201527676652070617573657220726f6c6520746f20706175736560481b606482015260840161052d565b6105e2610fda565b60008281526001602052604081206107139083611055565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600680546103cc9061168d565b600033816107608286610880565b9050838110156107c05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161052d565b6104808286868403610979565b60003361045d818585610b17565b6107f36000805160206118358339815191523361071a565b6106775760405162461bcd60e51b815260206004820152603760248201526000805160206117f58339815191526044820152761d99481b5a5b9d195c881c9bdb19481d1bc81cdc195b99604a1b606482015260840161052d565b60008181526001602052604081206103b790611061565b61086d8261048b565b61087681610cde565b6104bc8383610d0a565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6108b5828261071a565b610540576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556108eb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610713836001600160a01b03841661106b565b60006001600160e01b03198216637965db0b60e01b14806103b757506301ffc9a760e01b6001600160e01b03198316146103b7565b6001600160a01b0383166109db5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161052d565b6001600160a01b038216610a3c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161052d565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610aa98484610880565b90506000198114610b115781811015610b045760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161052d565b610b118484848403610979565b50505050565b6001600160a01b038316610b7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161052d565b6001600160a01b038216610bdd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161052d565b610be88383836110ba565b6001600160a01b03831660009081526002602052604090205481811015610c605760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161052d565b6001600160a01b03808516600090815260026020526040808220858503905591851681529081208054849290610c979084906116de565b92505081905550826001600160a01b0316846001600160a01b031660008051602061185583398151915284604051610cd191815260200190565b60405180910390a3610b11565b61066981336110c5565b610cf282826108ab565b60008281526001602052604090206104bc908261092f565b610d148282611129565b60008281526001602052604090206104bc908261118e565b60075460ff16610d755760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161052d565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051610daf919061164f565b60405180910390a1565b6001600160a01b038216610e0f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161052d565b610e1b600083836110ba565b8060046000828254610e2d91906116de565b90915550506001600160a01b03821660009081526002602052604081208054839290610e5a9084906116de565b90915550506040518181526001600160a01b038316906000906000805160206118558339815191529060200160405180910390a35050565b6001600160a01b038216610ef25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161052d565b610efe826000836110ba565b6001600160a01b03821660009081526002602052604090205481811015610f725760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161052d565b6001600160a01b0383166000908152600260205260408120838303905560048054849290610fa19084906116f6565b90915550506040518281526000906001600160a01b038516906000805160206118558339815191529060200160405180910390a3505050565b60075460ff16156110205760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161052d565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610da23390565b600061071383836111a3565b60006103b7825490565b60008181526001830160205260408120546110b2575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556103b7565b5060006103b7565b6104bc8383836111cd565b6110cf828261071a565b610540576110e7816001600160a01b03166014611233565b6110f2836020611233565b60405160200161110392919061170d565b60408051601f198184030181529082905262461bcd60e51b825261052d91600401611518565b611133828261071a565b15610540576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610713836001600160a01b0384166113cf565b60008260000182815481106111ba576111ba61177c565b9060005260206000200154905092915050565b60075460ff16156104bc5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b606482015260840161052d565b60606000611242836002611792565b61124d9060026116de565b67ffffffffffffffff811115611265576112656117b1565b6040519080825280601f01601f19166020018201604052801561128f576020820181803683370190505b509050600360fc1b816000815181106112aa576112aa61177c565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106112d9576112d961177c565b60200101906001600160f81b031916908160001a90535060006112fd846002611792565b6113089060016116de565b90505b6001811115611380576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061133c5761133c61177c565b1a60f81b8282815181106113525761135261177c565b60200101906001600160f81b031916908160001a90535060049490941c93611379816117c7565b905061130b565b5083156107135760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161052d565b600081815260018301602052604081205480156114b85760006113f36001836116f6565b8554909150600090611407906001906116f6565b905081811461146c5760008660000182815481106114275761142761177c565b906000526020600020015490508087600001848154811061144a5761144a61177c565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061147d5761147d6117de565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506103b7565b60009150506103b7565b6000602082840312156114d457600080fd5b81356001600160e01b03198116811461071357600080fd5b60005b838110156115075781810151838201526020016114ef565b83811115610b115750506000910152565b60208152600082518060208401526115378160408501602087016114ec565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461156257600080fd5b919050565b6000806040838503121561157a57600080fd5b6115838361154b565b946020939093013593505050565b6000806000606084860312156115a657600080fd5b6115af8461154b565b92506115bd6020850161154b565b9150604084013590509250925092565b6000602082840312156115df57600080fd5b5035919050565b600080604083850312156115f957600080fd5b823591506116096020840161154b565b90509250929050565b60006020828403121561162457600080fd5b6107138261154b565b6000806040838503121561164057600080fd5b50508035926020909101359150565b6001600160a01b0391909116815260200190565b6000806040838503121561167657600080fd5b61167f8361154b565b91506116096020840161154b565b600181811c908216806116a157607f821691505b602082108114156116c257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156116f1576116f16116c8565b500190565b600082821015611708576117086116c8565b500390565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161173f8160178501602088016114ec565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117708160288401602088016114ec565b01602801949350505050565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156117ac576117ac6116c8565b500290565b634e487b7160e01b600052604160045260246000fd5b6000816117d6576117d66116c8565b506000190190565b634e487b7160e01b600052603160045260246000fdfe45524332305072657365744d696e7465725061757365723a206d75737420686165d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122047426842fbc191a05e6ce7a427f5ba1dd9a948a0cf207b2640935587e8eb7b2a64736f6c634300080b003368747470733a2f2f6c75667462616c6c6f6e732e6d7970696e6174612e636c6f75642f697066732f516d58586f327043796935474632664672625a56557a5248526d446b68523457514b4677414c456d6946725971422f68747470733a2f2f6c75667462616c6c6f6e732e6d7970696e6174612e636c6f75642f697066732f516d64513731645a5264536466697778357462754832484b4a426437504579666b53717a78575272346646554e67

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102145760003560e01c806370a082311161012157806370a0823114610431578063715018a6146104445780637a08b7061461044c5780638da5cb5b1461047757806390094daa1461047f578063938e3d7b1461049f57806395d89b41146104b2578063a166ea22146104ba578063a22cb465146104cd578063b7fd51c7146104e0578063b88d4fde146104f3578063bc197c8114610506578063c1cd1d7514610528578063c30c31531461053b578063c87b56dd1461054e578063d5abeb0114610561578063d6948b7514610569578063e427b9a61461057c578063e8a3d4851461058f578063e985e9c514610597578063f23a6e61146105d3578063f2fde38b146105f357600080fd5b806301ffc9a71461021957806306fdde0314610241578063081812fc14610256578063095ea7b314610276578063150b7a021461028b57806318160ddd146102c357806323b872dd146102d95780632a55205a146102ec5780633af1169a1461030d57806340c10f191461032057806341c88fe11461033357806342842e0e1461034657806344cb375014610359578063453af4501461036c57806346dafd4a1461038c57806355a3e0541461039f57806355f804b3146103b2578063575572cc146103c55780635df6954c146103d85780635f0382a6146103eb5780636352211e146103fe5780636c50c96914610411575b600080fd5b61022c610227366004612327565b610606565b60405190151581526020015b60405180910390f35b610249610617565b604051610238919061239c565b6102696102643660046123af565b6106a9565b60405161023891906123c8565b6102896102843660046123f1565b6106ed565b005b6102aa61029936600461245e565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610238565b6102cb61078d565b604051908152602001610238565b6102896102e73660046124d0565b61079b565b6102ff6102fa366004612511565b6107ab565b604051610238929190612533565b6102cb61031b3660046123f1565b610859565b61028961032e3660046123f1565b6108b9565b610289610341366004612620565b6109c8565b6102896103543660046124d0565b610d61565b601454610269906001600160a01b031681565b6102cb61037a3660046126e1565b60026020526000908152604090205481565b61028961039a3660046123f1565b610d7c565b6102896103ad3660046126e1565b610e2d565b6102896103c0366004612755565b610f4f565b6102896103d33660046123f1565b610f91565b6102696103e63660046123af565b61107a565b6102cb6103f93660046126e1565b6110a4565b61026961040c3660046123af565b611190565b6102cb61041f3660046123af565b60166020526000908152604090205481565b6102cb61043f3660046126e1565b61119b565b6102896111e0565b6102cb61045a3660046123f1565b600360209081526000928352604080842090915290825290205481565b61026961121b565b6102cb61048d3660046126e1565b60156020526000908152604090205481565b6102896104ad366004612755565b61122a565b61024961126c565b6102896104c83660046123f1565b61127b565b6102896104db3660046127ab565b61138b565b6102896104ee3660046123af565b611421565b6102896105013660046127e4565b6115a6565b6102aa6105143660046128a7565b63bc197c8160e01b98975050505050505050565b6102cb610536366004612965565b6115f0565b610289610549366004612999565b611668565b61024961055c3660046123af565b611752565b61270f6102cb565b6102896105773660046129ce565b6117d7565b61028961058a366004612965565b61181a565b6102496119a3565b61022c6105a53660046129f7565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205460ff1690565b6102aa6105e1366004612a25565b63f23a6e6160e01b9695505050505050565b6102896106013660046126e1565b6119b2565b600061061182611a4f565b92915050565b6060600a805461062690612aa0565b80601f016020809104026020016040519081016040528092919081815260200182805461065290612aa0565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482611a9d565b6106d1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600e60205260409020546001600160a01b031690565b60006106f882611ad2565b9050336001600160a01b038216146107315761071481336105a5565b610731576040516367d9dca160e11b815260040160405180910390fd5b6000828152600e602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600954600854036000190190565b6107a6838383611b3b565b505050565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108205750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061083f906001600160601b031687612af1565b6108499190612b10565b91519350909150505b9250929050565b6001600160a01b03821660009081526003602090815260408083208484529091528120548161270f6001600160a01b0386166000908152600260205260409020546108a49190612b10565b90506108b08282612b32565b95945050505050565b336000908152600d602052604090819020546003916108e39184911c6001600160401b0316612b49565b106109285760405162461bcd60e51b815260206004820152601060248201526f2237b713ba1031329033b932b2b23c9760811b60448201526064015b60405180910390fd5b6123288161093461078d565b61093e9190612b49565b106109875760405162461bcd60e51b81526020600482015260196024820152784578636565647320556e726573657276656420537570706c7960381b604482015260640161091f565b6127108161099361078d565b61099d9190612b49565b106109ba5760405162461bcd60e51b815260040161091f90612b61565b6109c48282611ceb565b5050565b6005546001146109d757600080fd5b60026005556000805b8351811015610d1057600060026000868481518110610a0157610a01612b8d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205411610a6b5760405162461bcd60e51b8152602060048201526011602482015270105a5c991c9bdc081b9bdd08199bdd5b99607a1b604482015260640161091f565b6000805b8451811015610c0357336001600160a01b0316610aa4868381518110610a9757610a97612b8d565b6020026020010151611190565b6001600160a01b031614610aca5760405162461bcd60e51b815260040161091f90612ba3565b6000610b08878581518110610ae157610ae1612b8d565b6020026020010151878481518110610afb57610afb612b8d565b6020026020010151610859565b90508015610bf0578060036000898781518110610b2757610b27612b8d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000888581518110610b6357610b63612b8d565b602002602001015181526020019081526020016000206000828254610b889190612b49565b925050819055508060046000898781518110610ba657610ba6612b8d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254610bdd9190612b49565b90915550610bed90508184612b49565b92505b5080610bfb81612bd1565b915050610a6f565b50848281518110610c1657610c16612b8d565b60200260200101516001600160a01b031663a9059cbb610c333390565b836040518363ffffffff1660e01b8152600401610c51929190612533565b6020604051808303816000875af1158015610c70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c949190612bec565b50610c9f8184612b49565b92507fbeda198b40cfd4a860ffc5410ee986675f05f0b89560071ea7def4bedcdac2de858381518110610cd457610cd4612b8d565b6020026020010151610ce33390565b8684604051610cf59493929190612c44565b60405180910390a15080610d0881612bd1565b9150506109e0565b5060008111610d575760405162461bcd60e51b8152602060048201526013602482015272139bc81d1bdad95b9cc81a185c9d995cdd1959606a1b604482015260640161091f565b5050600160055550565b6107a6838383604051806020016040528060008152506115a6565b610d868282611d05565b604051632142170760e11b81526001600160a01b038316906342842e0e90610db690309033908690600401612c81565b600060405180830381600087803b158015610dd057600080fd5b505af1158015610de4573d6000803e3d6000fd5b505050507f2ac1d10e7b3119148ccb59f6c9cd01144807e72ee1c3f3a82ec0f11b89513ed282610e113390565b83604051610e2193929190612c81565b60405180910390a15050565b6001600160a01b03811660008181526004602081905260408083205490516370a0823160e01b8152859491926370a0823191610e6b913091016123c8565b602060405180830381865afa158015610e88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eac9190612ca5565b610eb69190612b49565b6001600160a01b038416600090815260026020526040902054909150158015610edf5750600081115b15610f2f576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0390921660009081526002602052604090209190915550565b33610f5861121b565b6001600160a01b031614610f7e5760405162461bcd60e51b815260040161091f90612cbe565b80516109c4906012906020840190612278565b336001600160a01b0316826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffd9190612cf3565b6001600160a01b03161461105e5760405162461bcd60e51b815260206004820152602260248201527f4e6f742044657465637461626c6520617320436f6c6c656374696f6e204f776e60448201526132b960f11b606482015260840161091f565b6001600160a01b03909116600090815260156020526040902055565b6001818154811061108a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b038116600090815260156020526040812054156110de57506001600160a01b031660009081526015602052604090205490565b60006110eb606443612b10565b6110f6906064612af1565b905060175481101561110757506017545b6000659f295cd5f0006017548361111e9190612b32565b6111289190612af1565b905060006018548261113a9190612b32565b9050683635c9adc5dea0000081101561115f5750670de0b6b3a7640000949350505050565b69152d02c7e14af6800000811115611184575068056bc75e2d63100000949350505050565b6108b06103e882612b10565b600061061182611db3565b6000816111bb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600d60205260409020546001600160401b031690565b336111e961121b565b6001600160a01b03161461120f5760405162461bcd60e51b815260040161091f90612cbe565b6112196000611dbe565b565b6000546001600160a01b031690565b3361123361121b565b6001600160a01b0316146112595760405162461bcd60e51b815260040161091f90612cbe565b80516109c4906013906020840190612278565b6060600b805461062690612aa0565b6040516323b872dd60e01b815282906001600160a01b038216906323b872dd906112ad90339030908790600401612c81565b6020604051808303816000875af11580156112cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f09190612bec565b506001600160a01b038316600090815260026020526040902054611359576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0385161790555b6001600160a01b03831660009081526002602052604081208054849290611381908490612b49565b9091555050505050565b6001600160a01b0382163314156113b55760405163b06307db60e01b815260040160405180910390fd5b336000818152600f602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008181526010602052604090205460ff16156114745760405162461bcd60e51b8152602060048201526011602482015270105b1b1bd8d85d1a5bdb88135a5b9d1959607a1b604482015260640161091f565b6103e7601154106114ba5760405162461bcd60e51b815260206004820152601060248201526f139bc81b5bdc99481c995cd95c9d995960821b604482015260640161091f565b6127106114c561078d565b6114d0906003612b49565b106114ed5760405162461bcd60e51b815260040161091f90612b61565b6040516331a9108f60e11b8152600481018290526000907336f4d96fe0d4eb33cdc2dc6c0bca15b9cdd0d64890636352211e90602401602060405180830381865afa158015611540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115649190612cf3565b6000838152601060205260408120805460ff1916600117905560118054929350600392909190611595908490612b49565b909155506109c49050816003611ceb565b6115b1848484611b3b565b6001600160a01b0383163b156115ea576115cd84848484611e0e565b6115ea576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000806115fb611ef7565b90506000805b8451811015611660576016600086838151811061162057611620612b8d565b6020026020010151815260200190815260200160002054836116429190612b32565b61164c9083612b49565b91508061165881612bd1565b915050611601565b509392505050565b611673838383611f1d565b60408051637921219560e11b8152306004820152336024820152604481018490526064810183905260a06084820152600060a4820181905291516001600160a01b0386169263f242432a9260c4808201939182900301818387803b1580156116da57600080fd5b505af11580156116ee573d6000803e3d6000fd5b505050507f7f0abde2c4567a97b09c1cb7f2061390860a0323b98efe3007d387db091b13c88361171b3390565b604080516001600160a01b0393841681529290911660208301528101849052606081018390526080015b60405180910390a1505050565b606061175d82611a9d565b61177a57604051630a14c4b560e41b815260040160405180910390fd5b6000611784611fe4565b90508051600014156117a557604051806020016040528060008152506117d0565b806117af84611ff3565b6040516020016117c0929190612d10565b6040516020818303038152906040525b9392505050565b336117e061121b565b6001600160a01b0316146118065760405162461bcd60e51b815260040161091f90612cbe565b61181761181161121b565b82612042565b50565b6000611824611ef7565b90506000805b835181101561190057336001600160a01b0316611852858381518110610a9757610a97612b8d565b6001600160a01b0316146118785760405162461bcd60e51b815260040161091f90612ba3565b6016600085838151811061188e5761188e612b8d565b6020026020010151815260200190815260200160002054836118b09190612b32565b6118ba9083612b49565b915082601660008684815181106118d3576118d3612b8d565b602002602001015181526020019081526020016000208190555080806118f890612bd1565b91505061182a565b507f633a26af36e0ee972ce309204b182f53c8e547c876d548edb7827e3da2d448d283338360405161193493929190612d3f565b60405180910390a16014546001600160a01b03166340c10f1933836040518363ffffffff1660e01b815260040161196c929190612533565b600060405180830381600087803b15801561198657600080fd5b505af115801561199a573d6000803e3d6000fd5b50505050505050565b60606013805461062690612aa0565b336119bb61121b565b6001600160a01b0316146119e15760405162461bcd60e51b815260040161091f90612cbe565b6001600160a01b038116611a465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161091f565b61181781611dbe565b60006301ffc9a760e01b6001600160e01b031983161480611a8057506380ac58cd60e01b6001600160e01b03198316145b806106115750506001600160e01b031916635b5e139f60e01b1490565b600081600111158015611ab1575060085482105b80156106115750506000908152600c6020526040902054600160e01b161590565b60008180600111611b2257600854811015611b22576000818152600c6020526040902054600160e01b8116611b20575b806117d05750600019016000818152600c6020526040902054611b02565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611b4682611ad2565b9050836001600160a01b0316816001600160a01b031614611b795760405162a1148160e81b815260040160405180910390fd5b6000828152600e60205260408120546001600160a01b0390811691908616331480611ba95750611ba986336105a5565b80611bbc57506001600160a01b03821633145b905080611bdc57604051632ce44b5f60e11b815260040160405180910390fd5b84611bfa57604051633a954ecd60e21b815260040160405180910390fd5b8115611c1d576000848152600e6020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600d602090815260408083208054600019019055928816825282822080546001019055868252600c905220600160e11b4260a01b871781179091558316611ca257600184016000818152600c6020526040902054611ca0576008548114611ca0576000818152600c602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6109c482826040518060200160405280600081525061213b565b6000611d10836110a4565b60145460405163af7d6ca360e01b81529192506001600160a01b03169063af7d6ca390611d439033908590600401612533565b600060405180830381600087803b158015611d5d57600080fd5b505af1158015611d71573d6000803e3d6000fd5b505050507fb84b2bc23c00e3451d24a93b30b2487adc8e8234705396c22ea092375db2b71d83611d9e3390565b84846001604051611745959493929190612d6d565b600061061182611ad2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611e43903390899088908890600401612d9e565b6020604051808303816000875af1925050508015611e7e575060408051601f3d908101601f19168201909252611e7b91810190612ddb565b60015b611ed9573d808015611eac576040519150601f19603f3d011682016040523d82523d6000602084013e611eb1565b606091505b508051611ed1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000659f295cd5f00060175443611f0e9190612b32565b611f189190612af1565b905090565b600081611f29856110a4565b611f339190612af1565b60145460405163af7d6ca360e01b81529192506001600160a01b03169063af7d6ca390611f669033908590600401612533565b600060405180830381600087803b158015611f8057600080fd5b505af1158015611f94573d6000803e3d6000fd5b505050507fb84b2bc23c00e3451d24a93b30b2487adc8e8234705396c22ea092375db2b71d84611fc13390565b85846001604051611fd6959493929190612d6d565b60405180910390a150505050565b60606012805461062690612aa0565b604080516080810191829052607f0190826030600a8206018353600a90045b801561203057600183039250600a81066030018353600a9004612012565b50819003601f19909101908152919050565b6127106001600160601b03821611156120b05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161091f565b6001600160a01b0382166121025760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b604482015260640161091f565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b61214583836121a8565b6001600160a01b0383163b156107a6576008548281035b61216f6000868380600101945086611e0e565b61218c576040516368d2bf6b60e11b815260040160405180910390fd5b81811061215c5781600854146121a157600080fd5b5050505050565b600854826121c857604051622e076360e81b815260040160405180910390fd5b816121e65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600d6020908152604080832080546001600160401b018702019055838352600c90915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a482811061222b57500160085550565b82805461228490612aa0565b90600052602060002090601f0160209004810192826122a657600085556122ec565b82601f106122bf57805160ff19168380011785556122ec565b828001600101855582156122ec579182015b828111156122ec5782518255916020019190600101906122d1565b506122f89291506122fc565b5090565b5b808211156122f857600081556001016122fd565b6001600160e01b03198116811461181757600080fd5b60006020828403121561233957600080fd5b81356117d081612311565b60005b8381101561235f578181015183820152602001612347565b838111156115ea5750506000910152565b60008151808452612388816020860160208601612344565b601f01601f19169290920160200192915050565b6020815260006117d06020830184612370565b6000602082840312156123c157600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b038116811461181757600080fd5b6000806040838503121561240457600080fd5b823561240f816123dc565b946020939093013593505050565b60008083601f84011261242f57600080fd5b5081356001600160401b0381111561244657600080fd5b60208301915083602082850101111561085257600080fd5b60008060008060006080868803121561247657600080fd5b8535612481816123dc565b94506020860135612491816123dc565b93506040860135925060608601356001600160401b038111156124b357600080fd5b6124bf8882890161241d565b969995985093965092949392505050565b6000806000606084860312156124e557600080fd5b83356124f0816123dc565b92506020840135612500816123dc565b929592945050506040919091013590565b6000806040838503121561252457600080fd5b50508035926020909101359150565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561258a5761258a61254c565b604052919050565b60006001600160401b038211156125ab576125ab61254c565b5060051b60200190565b600082601f8301126125c657600080fd5b813560206125db6125d683612592565b612562565b82815260059290921b840181019181810190868411156125fa57600080fd5b8286015b8481101561261557803583529183019183016125fe565b509695505050505050565b6000806040838503121561263357600080fd5b82356001600160401b038082111561264a57600080fd5b818501915085601f83011261265e57600080fd5b8135602061266e6125d683612592565b82815260059290921b8401810191818101908984111561268d57600080fd5b948201945b838610156126b45785356126a5816123dc565b82529482019490820190612692565b965050860135925050808211156126ca57600080fd5b506126d7858286016125b5565b9150509250929050565b6000602082840312156126f357600080fd5b81356117d0816123dc565b60006001600160401b038311156127175761271761254c565b61272a601f8401601f1916602001612562565b905082815283838301111561273e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561276757600080fd5b81356001600160401b0381111561277d57600080fd5b8201601f8101841361278e57600080fd5b611eef848235602084016126fe565b801515811461181757600080fd5b600080604083850312156127be57600080fd5b82356127c9816123dc565b915060208301356127d98161279d565b809150509250929050565b600080600080608085870312156127fa57600080fd5b8435612805816123dc565b93506020850135612815816123dc565b92506040850135915060608501356001600160401b0381111561283757600080fd5b8501601f8101871361284857600080fd5b612857878235602084016126fe565b91505092959194509250565b60008083601f84011261287557600080fd5b5081356001600160401b0381111561288c57600080fd5b6020830191508360208260051b850101111561085257600080fd5b60008060008060008060008060a0898b0312156128c357600080fd5b88356128ce816123dc565b975060208901356128de816123dc565b965060408901356001600160401b03808211156128fa57600080fd5b6129068c838d01612863565b909850965060608b013591508082111561291f57600080fd5b61292b8c838d01612863565b909650945060808b013591508082111561294457600080fd5b506129518b828c0161241d565b999c989b5096995094979396929594505050565b60006020828403121561297757600080fd5b81356001600160401b0381111561298d57600080fd5b611eef848285016125b5565b6000806000606084860312156129ae57600080fd5b83356129b9816123dc565b95602085013595506040909401359392505050565b6000602082840312156129e057600080fd5b81356001600160601b03811681146117d057600080fd5b60008060408385031215612a0a57600080fd5b8235612a15816123dc565b915060208301356127d9816123dc565b60008060008060008060a08789031215612a3e57600080fd5b8635612a49816123dc565b95506020870135612a59816123dc565b9450604087013593506060870135925060808701356001600160401b03811115612a8257600080fd5b612a8e89828a0161241d565b979a9699509497509295939492505050565b600181811c90821680612ab457607f821691505b60208210811415612ad557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612b0b57612b0b612adb565b500290565b600082612b2d57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612b4457612b44612adb565b500390565b60008219821115612b5c57612b5c612adb565b500190565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260149082015273139bdd081bdddb995c881bd988151bdad95b925160621b604082015260600190565b6000600019821415612be557612be5612adb565b5060010190565b600060208284031215612bfe57600080fd5b81516117d08161279d565b600081518084526020808501945080840160005b83811015612c3957815187529582019590820190600101612c1d565b509495945050505050565b6001600160a01b03858116825284166020820152608060408201819052600090612c7090830185612c09565b905082606083015295945050505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215612cb757600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612d0557600080fd5b81516117d0816123dc565b60008351612d22818460208801612344565b835190830190612d36818360208801612344565b01949350505050565b606081526000612d526060830186612c09565b6001600160a01b039490941660208301525060400152919050565b6001600160a01b03958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612dd190830184612370565b9695505050505050565b600060208284031215612ded57600080fd5b81516117d08161231156fea26469706673582212202acee978b9daf7f387710cfeba0d8d0986c03c4c83df0505b829a643ae040b1264736f6c634300080b0033

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

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