ETH Price: $3,401.46 (-2.01%)
Gas: 17 Gwei

Token

Untamed Degens (UDEGENS)
 

Overview

Max Total Supply

889 UDEGENS

Holders

215

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
memoblastingman.eth
Balance
4 UDEGENS
0x32130a7128E5E59430b26CFF4dE82EBB45B43852
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
UntamedDegens

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : UntamedDegens.sol
// SPDX-License-Identifier: BSD-3
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "operator-filter-registry/src/OperatorFilterer.sol";

import "../Common/ERC721/ERC721FQueryable.sol";
import "../Common/Royalties.sol";
import "../Common/Delegated.sol";

contract UntamedDegens is ERC721FQueryable, Royalties, OperatorFilterer, Delegated {
  using Strings for uint256;

  struct CollabConfig{
    uint64 ethPrice;
    uint8 maxFree;
    uint8 maxSupply;
    bool isEnabled;
    bool useTokenId;
  }

  bool public isBurnEnabled = false;
  uint256 public burnToMintQty = 0;
  string public tokenURIPrefix;
  string public tokenURISuffix;

  bool public IS_OS_ENABLED = true;
  bool public IS_PAUSED = true;
  uint16 public MAX_SUPPLY = 10000;

  mapping(address => CollabConfig) public collabs;


  modifier onlyAllowedOperator(address from) override {
    if (IS_OS_ENABLED && from != msg.sender) {
      _checkFilterOperator(msg.sender);
    }
    _;
  }

  modifier onlyAllowedOperatorApproval(address operator) override {
    if(IS_OS_ENABLED){
      _checkFilterOperator(operator);
    }
    _;
  }


  constructor()
    OperatorFilterer(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6, true)
    Royalties(msg.sender, 5, 100)
    ERC721F("Untamed Degens", "UDEGENS")
  {
    // GA
    collabs[address(0)] = CollabConfig(
      0.019 ether,
      0,
      1,
      true,
      false
    );
  }

  receive() external payable {}

  function withdraw() external onlyOwner {
    uint256 totalBalance = address(this).balance;
    require(totalBalance > 0, "No funds available");
    Address.sendValue(payable(owner()), totalBalance);
  }


  // payable - payable
  function collabMint(address collection, uint16 quantity, uint256 checkTokenId) external payable {
    require(!IS_PAUSED, "Sale is paused");
    require(totalSupply() + quantity < MAX_SUPPLY, "Mint/Order exceeds supply");
    
    CollabConfig memory collab = collabs[collection];
    require(collab.isEnabled, "Community mint is disabled");
    require(collab.maxSupply >= _numberMinted(msg.sender) + quantity, "Mint limit reached");

    bool isAllowed = collab.useTokenId ?
      IERC721(collection).ownerOf(checkTokenId) == msg.sender :
      IERC721(collection).balanceOf(msg.sender) > 0;
    require(isAllowed, "Wallet not authorized");

    ( , , uint256 totalValue) = calculateQuantities(collection, msg.sender, quantity);
    require(msg.value == totalValue, "Ether sent is not correct");

    _mint(msg.sender, quantity);
  }

  function mint(uint256 quantity) external payable {
    require(!IS_PAUSED, "Sale is paused");
    require(totalSupply() + quantity < MAX_SUPPLY, "Mint/Order exceeds supply");

    CollabConfig memory collab = collabs[address(0)];
    require(collab.isEnabled, "Public sale is closed");
    require(collab.maxSupply >= _numberMinted(msg.sender) + quantity, "Mint limit reached");

    ( , , uint256 totalValue) = calculateQuantities(address(0), msg.sender, uint16(quantity));
    require(msg.value == totalValue, "Ether sent is not correct");

    _mint(msg.sender, quantity);
  }

  function burn(uint256[] calldata tokenIds) external {
    require(isBurnEnabled, "burn is disabled");

    for(uint256 i = 0; i < tokenIds.length; ++i){
      _burn(tokenIds[i], true);
    }
  }

  function burnToMint(uint256[] calldata tokenIds) external {
    require(burnToMintQty > 0, "burnToMint is disabled");
    require(tokenIds.length > 0 && tokenIds.length % burnToMintQty == 0, "not a multiple");

    uint256 mintQty = tokenIds.length / burnToMintQty;
    require(totalSupply() + mintQty < MAX_SUPPLY, "mint/Order exceeds supply");

    for(uint256 i = 0; i < tokenIds.length; ++i){
      _burn(tokenIds[i], true);
    }

    _mint(msg.sender, mintQty);
  }


  // payable - onlyDelegates
  function burnFrom(uint16[] calldata tokenIds, address account) external payable onlyDelegates{
    if(!isApprovedForAll(account, address(this)))
      revert TransferCallerNotOwnerNorApproved();

    for(uint256 i = 0; i < tokenIds.length; ++i){
      require(ownerOf(tokenIds[i]) == account, "Owner mismatch");
      _burn(tokenIds[i]);
    }
  }

  function mintTo(uint16[] calldata quantities, address[] calldata recipients) external payable onlyDelegates{
    require(quantities.length == recipients.length, "Uneven request");

    uint16 quantity;
    address recipient;
    uint256 supply = totalSupply();
    for(uint256 i = 0; i < quantities.length; ++i){
      quantity = quantities[i];
      require(supply + quantity < MAX_SUPPLY, "Mint/Order exceeds supply");

      recipient = recipients[i];
      _mint(recipient, quantity);
      _packedAddressData[recipient].numberMinted -= quantity;
    }
  }


  // nonpayable - onlyDelegates
  function setBurnConfig(bool isBurnEnabled_, uint256 burnToMintQty_) external onlyDelegates {
    isBurnEnabled = isBurnEnabled_;
    burnToMintQty = burnToMintQty_;
  }

  function setCollab(address collection, CollabConfig calldata config) public onlyDelegates {
    collabs[collection] = config;
  }

  function setCollabs(address[] calldata collections, CollabConfig[] calldata configs) external onlyDelegates{
    for(uint256 i = 0; i < collections.length; ++i){
      setCollab(collections[i], configs[i]);
    }
  }

  function setMaxSupply(uint16 maxSupply) external onlyDelegates{
    MAX_SUPPLY = maxSupply;
  }

  function setOsStatus(bool isEnabled) external onlyDelegates{
    IS_OS_ENABLED = isEnabled;
  }

  function setPaused(bool isPaused) external onlyDelegates{
    IS_PAUSED = isPaused;
  }

  function setTokenURI( string calldata prefix, string calldata suffix ) external onlyDelegates{
    tokenURIPrefix = prefix;
    tokenURISuffix = suffix;
  }


  //nonpayable - onlyOwner
  function setDefaultRoyalty( address receiver, uint16 feeNumerator, uint16 feeDenominator ) external onlyOwner {
    _setDefaultRoyalty( receiver, feeNumerator, feeDenominator );
  }


  // view
  function calculateQuantities(address collection, address account, uint16 quantity) public view returns(uint16, uint16, uint256){
    CollabConfig memory collab = collabs[collection];

    uint16 free = 0;
    uint16 paid = quantity;
    uint16 minted = uint16(_numberMinted(account));
    if(collab.maxFree >= minted){
      free = collab.maxFree - minted;
      if(quantity > free){
        paid = quantity - free;
      }
      else{
        free = quantity;
        paid = 0;
      }
    }

    uint256 totalValue = collab.ethPrice * paid;
    return (free, paid, totalValue);
  }


  //view - IERC721Metadata
  function tokenURI( uint256 tokenId ) public view override(IERC721F, ERC721F) returns( string memory ){
    require(_exists(tokenId), "Genesis: query for nonexistent token");
    return string(abi.encodePacked(tokenURIPrefix, tokenId.toString(), tokenURISuffix));
  }


  // view - override
  function supportsInterface(bytes4 interfaceId) public view override(IERC721F, ERC721F, Royalties) returns(bool) {
    return ERC721F.supportsInterface(interfaceId)
      || Royalties.supportsInterface(interfaceId);
  }


  //OS overrides
  function approve(address operator, uint256 tokenId)
    public
    payable
    override(IERC721F, ERC721F)
    onlyAllowedOperatorApproval(operator)
  {
    super.approve(operator, tokenId);
  }

  function setApprovalForAll(address operator, bool approved)
    public
    override(IERC721F, ERC721F)
    onlyAllowedOperatorApproval(operator)
  {
    super.setApprovalForAll(operator, approved);
  }

  function safeTransferFrom(address from, address to, uint256 tokenId)
    public
    payable
    override(IERC721F, ERC721F) onlyAllowedOperator(from)
  {
    super.safeTransferFrom(from, to, tokenId);
  }

  function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
    public
    payable
    override(IERC721F, ERC721F)
    onlyAllowedOperator(from)
  {
    super.safeTransferFrom(from, to, tokenId, data);
  }

  function transferFrom(address from, address to, uint256 tokenId)
    public
    payable
    override(IERC721F, ERC721F)
    onlyAllowedOperator(from)
  {
    super.transferFrom(from, to, tokenId);
  }
}

File 2 of 17 : Royalties.sol
// SPDX-License-Identifier: BSD-3
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/interfaces/IERC2981.sol";

contract Royalties is IERC2981{
  struct Fraction{
    uint16 numerator;
    uint16 denominator;
  }

  struct Royalty{
    address receiver;
    Fraction fraction;
  }

  Royalty public defaultRoyalty;
  //mapping(uint => Royalty) public tokenRoyalties;

  constructor(address receiver, uint16 royaltyNum, uint16 royaltyDenom){
    _setDefaultRoyalty(receiver, royaltyNum, royaltyDenom);
  }

  //view: IERC2981
  /**
   * @dev See {IERC2981-royaltyInfo}.
   **/
  function royaltyInfo(uint256, uint256 _salePrice) public view virtual returns (address, uint256) {
    /*
    Royalty memory royalty = _tokenRoyaltyInfo[_tokenId];
    if (royalty.receiver == address(0)) {
        royalty = _defaultRoyaltyInfo;
    }
    */

    uint256 royaltyAmount = (_salePrice * defaultRoyalty.fraction.numerator) / defaultRoyalty.fraction.denominator;
    return (defaultRoyalty.receiver, royaltyAmount);
  }

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


  function _setDefaultRoyalty( address receiver, uint16 royaltyNum, uint16 royaltyDenom ) internal {
    defaultRoyalty.receiver = receiver;
    defaultRoyalty.fraction = Fraction(royaltyNum, royaltyDenom);
  }
}

File 3 of 17 : IERC721FQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721F.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721FQueryable is IERC721F {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 4 of 17 : IERC721F.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Whether the next tokenId is initialized.
        bool nextInitialized;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint16 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @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() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

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

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 5 of 17 : ERC721FQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721FQueryable.sol';
import './ERC721F.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721FQueryable is ERC721F, IERC721FQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 6 of 17 : ERC721F.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.9;

import "./IERC721F.sol";

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721F is IERC721F {
    struct OwnerData{
        uint64 balance;
        uint64 numberMinted;
        uint64 numberBurned;
        uint64 aux;
    }


    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }
    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID 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`
    // - [232..255] `extraData`
    mapping(uint256 => TokenOwnership) private _packedOwnerships;

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

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual 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 override 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 virtual 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 virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner].balance;
    }

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

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

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

    /**
     * Sets the auxiliary 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 virtual {
        _packedAddressData[owner].aux = aux;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    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: [ERC165](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.
    }

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

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

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return _unpackedOwnershipOf(tokenId).addr;
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _packedOwnerships[tokenId];
    }

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

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        TokenOwnership memory ownership = _unpackedOwnershipOf(tokenId);
        return uint256(bytes32(abi.encode(ownership)));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnershipOf(uint256 tokenId) private view returns (TokenOwnership memory ownership) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) {
                if (curr < _currentIndex) {
                    TokenOwnership memory unpacked = _packedOwnerships[curr];
                    // If not burned.
                    if (!unpacked.burned) {
                        while (unpacked.addr == address(0)) {
                            unpacked = _packedOwnerships[--curr];
                        }
                        return unpacked;
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

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

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            !_packedOwnerships[tokenId].burned; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        if(msgSender == owner)
            return true;

        if(msgSender == approvedAddress)
            return true;

        return false;
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        TokenOwnership memory prevOwnership = _unpackedOwnershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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].balance; // Updates: `balance -= 1`.
            ++_packedAddressData[to].balance; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = TokenOwnership(
                to,
                uint64(block.timestamp),
                false,
                true,
                prevOwnership.extraData
            );

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal returns (bool) {
        try ERC721F__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721F__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            _packedAddressData[to].balance += uint64(quantity);
            _packedAddressData[to].numberMinted += uint64(quantity);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = TokenOwnership(
                to,
                uint64(block.timestamp),
                false,
                quantity == 1,
                0
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            _packedAddressData[to].balance += uint64(quantity);
            _packedAddressData[to].numberMinted += uint64(quantity);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = TokenOwnership(
              to,
              uint64(block.timestamp),
              false,
              quantity == 1,
              0
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, "");
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

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

        address from = prevOwnership.addr;

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            --_packedAddressData[from].balance;
            ++_packedAddressData[from].numberBurned;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = TokenOwnership(
              address(0),
              uint64(block.timestamp),
              true,
              true,
              prevOwnership.extraData
            );

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

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint16 extraData) internal virtual {
        TokenOwnership storage packed = _packedOwnerships[index];
        if (packed.startTimestamp == 0) revert OwnershipNotInitializedForExtraData();

        _packedOwnerships[index].extraData = extraData;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}


    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @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 virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

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

File 7 of 17 : Delegated.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

contract Delegated is Ownable{
  mapping(address => bool) internal _delegates;

  modifier onlyContracts {
    require(_delegates[msg.sender], "Unauthorized delegate" );
    require(msg.sender.code.length > 0, "Non-contract delegate" );
    _;
  }

  modifier onlyDelegates {
    require(_delegates[msg.sender], "Unauthorized delegate" );
    _;
  }

  constructor()
    Ownable(){
    setDelegate(owner(), true);
  }

  //onlyOwner
  function isDelegate(address addr) external view onlyOwner returns(bool) {
    return _delegates[addr];
  }

  function setDelegate(address addr, bool isDelegate_) public onlyOwner {
    _delegates[addr] = isDelegate_;
  }

  function transferOwnership(address newOwner) public virtual override onlyOwner {
    setDelegate(newOwner, true);
    super.transferOwnership(newOwner);
  }
}

File 8 of 17 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 9 of 17 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 10 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 11 of 17 : 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 12 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 13 of 17 : 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 14 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 15 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 16 of 17 : 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 17 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"IS_OS_ENABLED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IS_PAUSED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"address","name":"account","type":"address"}],"name":"burnFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnToMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnToMintQty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"calculateQuantities","outputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint16","name":"quantity","type":"uint16"},{"internalType":"uint256","name":"checkTokenId","type":"uint256"}],"name":"collabMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collabs","outputs":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint8","name":"maxFree","type":"uint8"},{"internalType":"uint8","name":"maxSupply","type":"uint8"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"bool","name":"useTokenId","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"uint16","name":"numerator","type":"uint16"},{"internalType":"uint16","name":"denominator","type":"uint16"}],"internalType":"struct Royalties.Fraction","name":"fraction","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"bool","name":"nextInitialized","type":"bool"},{"internalType":"uint16","name":"extraData","type":"uint16"}],"internalType":"struct IERC721F.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"bool","name":"nextInitialized","type":"bool"},{"internalType":"uint16","name":"extraData","type":"uint16"}],"internalType":"struct IERC721F.TokenOwnership[]","name":"","type":"tuple[]"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"quantities","type":"uint16[]"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isBurnEnabled_","type":"bool"},{"internalType":"uint256","name":"burnToMintQty_","type":"uint256"}],"name":"setBurnConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint8","name":"maxFree","type":"uint8"},{"internalType":"uint8","name":"maxSupply","type":"uint8"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"bool","name":"useTokenId","type":"bool"}],"internalType":"struct UntamedDegens.CollabConfig","name":"config","type":"tuple"}],"name":"setCollab","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"collections","type":"address[]"},{"components":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint8","name":"maxFree","type":"uint8"},{"internalType":"uint8","name":"maxSupply","type":"uint8"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"bool","name":"useTokenId","type":"bool"}],"internalType":"struct UntamedDegens.CollabConfig[]","name":"configs","type":"tuple[]"}],"name":"setCollabs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint16","name":"feeNumerator","type":"uint16"},{"internalType":"uint16","name":"feeDenominator","type":"uint16"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"maxSupply","type":"uint16"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setOsStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPaused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"},{"internalType":"string","name":"suffix","type":"string"}],"name":"setTokenURI","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":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600c805460ff191690556000600d556010805463ffffffff191663271001011790553480156200003357600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb6600133600560646040518060400160405280600e81526020016d556e74616d656420446567656e7360901b8152506040518060400160405280600781526020016655444547454e5360c81b8152508160029080519060200190620000af92919062000470565b508051620000c590600390602084019062000470565b50600080555050600880546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff80841680835290831660209092018290526009805463ffffffff1916909117620100009092029190911790555050506daaeb6d7670e522a718067333cd4e3b1562000268578015620001b657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200019757600080fd5b505af1158015620001ac573d6000803e3d6000fd5b5050505062000268565b6001600160a01b03821615620002075760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200017c565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200024e57600080fd5b505af115801562000263573d6000803e3d6000fd5b505050505b506200027690503362000388565b620002956200028d600a546001600160a01b031690565b6001620003da565b6040805160a081018252664380663abb800081526000602080830182815260019484018581526060850195865260808501848152938052601190925292517f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b78054945192519551935115156b0100000000000000000000000260ff60581b199415156a01000000000000000000000260ff60501b1960ff9889166901000000000000000000021661ffff60481b199590981668010000000000000000026001600160481b03199097166001600160401b039490941693909317959095179290921694909417939093171617905562000552565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620003e46200040f565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b600a546001600160a01b031633146200046e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b8280546200047e9062000516565b90600052602060002090601f016020900481019282620004a25760008555620004ed565b82601f10620004bd57805160ff1916838001178555620004ed565b82800160010185558215620004ed579182015b82811115620004ed578251825591602001919060010190620004d0565b50620004fb929150620004ff565b5090565b5b80821115620004fb576000815560010162000500565b600181811c908216806200052b57607f821691505b6020821081036200054c57634e487b7160e01b600052602260045260246000fd5b50919050565b613ef480620005626000396000f3fe6080604052600436106102cd5760003560e01c80636352211e11610175578063b80f55c9116100dc578063d48ede9911610095578063e985e9c51161006f578063e985e9c51461096d578063ebc8b6b3146109b6578063f0798dbb146109d0578063f2fde38b146109f057600080fd5b8063d48ede9914610925578063d83d36df14610945578063dbbc853b1461095857600080fd5b8063b80f55c914610870578063b88d4fde14610890578063c0ac9983146108a3578063c23dc68f146108b8578063c7b6719d146108e5578063c87b56dd1461090557600080fd5b80638da5cb5b1161012e5780638da5cb5b146107d757806395d89b41146107f557806399a2557a1461080a578063a0712d681461082a578063a22cb4651461083d578063ae7bf4c81461085d57600080fd5b80636352211e146106c757806370a08231146106e7578063715018a6146107075780637885fdc71461071c578063813ccb98146107945780638462151c146107aa57600080fd5b806323b872dd116102345780633acc3898116101ed57806341f43434116101c757806341f434341461064557806342842e0e146106675780634a994eef1461067a5780635bbb21771461069a57600080fd5b80633acc3898146105cf5780633ccfd60b1461061057806341acc66a1461062557600080fd5b806323b872dd1461046c5780632a55205a1461047f5780633187fa5e146104be57806332cb6b0c146104de5780633386cc4e1461051257806336f0db011461053257600080fd5b8063095ea7b311610286578063095ea7b3146103c457806310baa74c146103d757806316c38b3c146103f657806318160ddd146104165780631c92d6e614610439578063211f9e2f1461044c57600080fd5b806301ffc9a7146102d957806306421c2f1461030e57806306fdde0314610330578063077796271461035257806307ebec2714610372578063081812fc1461038c57600080fd5b366102d457005b600080fd5b3480156102e557600080fd5b506102f96102f43660046132aa565b610a10565b60405190151581526020015b60405180910390f35b34801561031a57600080fd5b5061032e6103293660046132d9565b610a3c565b005b34801561033c57600080fd5b50610345610a94565b604051610305919061334c565b34801561035e57600080fd5b506102f961036d366004613374565b610b26565b34801561037e57600080fd5b50600c546102f99060ff1681565b34801561039857600080fd5b506103ac6103a7366004613391565b610b53565b6040516001600160a01b039091168152602001610305565b61032e6103d23660046133aa565b610b97565b3480156103e357600080fd5b506010546102f990610100900460ff1681565b34801561040257600080fd5b5061032e6104113660046133e4565b610bbc565b34801561042257600080fd5b50600154600054035b604051908152602001610305565b61032e610447366004613401565b610c05565b34801561045857600080fd5b5061032e6104673660046133e4565b610f67565b61032e61047a36600461343f565b610fa9565b34801561048b57600080fd5b5061049f61049a366004613480565b610fe5565b604080516001600160a01b039093168352602083019190915201610305565b3480156104ca57600080fd5b5061032e6104d93660046134e6565b611029565b3480156104ea57600080fd5b506010546104ff9062010000900461ffff1681565b60405161ffff9091168152602001610305565b34801561051e57600080fd5b5061032e61052d36600461357f565b6110c1565b34801561053e57600080fd5b5061059261054d366004613374565b6011602052600090815260409020546001600160401b0381169060ff600160401b8204811691600160481b8104821691600160501b8204811691600160581b90041685565b604080516001600160401b03909616865260ff9485166020870152939092169284019290925290151560608301521515608082015260a001610305565b3480156105db57600080fd5b506105ef6105ea3660046135c0565b611230565b6040805161ffff948516815293909216602084015290820152606001610305565b34801561061c57600080fd5b5061032e611337565b34801561063157600080fd5b5061032e610640366004613607565b6113a0565b34801561065157600080fd5b506103ac6daaeb6d7670e522a718067333cd4e81565b61032e61067536600461343f565b611401565b34801561068657600080fd5b5061032e610695366004613635565b611437565b3480156106a657600080fd5b506106ba6106b536600461357f565b61146a565b60405161030591906136b5565b3480156106d357600080fd5b506103ac6106e2366004613391565b61151c565b3480156106f357600080fd5b5061042b610702366004613374565b61152e565b34801561071357600080fd5b5061032e61157c565b34801561072857600080fd5b506008546040805180820190915260095461ffff80821683526201000090910416602082015261075f916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff9081166020808601919091529092015190911690820152606001610305565b3480156107a057600080fd5b5061042b600d5481565b3480156107b657600080fd5b506107ca6107c5366004613374565b611590565b60405161030591906136f7565b3480156107e357600080fd5b50600a546001600160a01b03166103ac565b34801561080157600080fd5b50610345611676565b34801561081657600080fd5b506107ca61082536600461372f565b611685565b61032e610838366004613391565b6117fe565b34801561084957600080fd5b5061032e610858366004613635565b611a1c565b61032e61086b366004613764565b611a3c565b34801561087c57600080fd5b5061032e61088b36600461357f565b611be2565b61032e61089e3660046137e5565b611c57565b3480156108af57600080fd5b50610345611c8e565b3480156108c457600080fd5b506108d86108d3366004613391565b611d1c565b60405161030591906138c4565b3480156108f157600080fd5b5061032e6109003660046138d2565b611d5f565b34801561091157600080fd5b50610345610920366004613391565b611da5565b34801561093157600080fd5b5061032e610940366004613931565b611e3d565b61032e610953366004613990565b611e85565b34801561096457600080fd5b50610345611fca565b34801561097957600080fd5b506102f96109883660046139e6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109c257600080fd5b506010546102f99060ff1681565b3480156109dc57600080fd5b5061032e6109eb366004613a14565b611fd7565b3480156109fc57600080fd5b5061032e610a0b366004613374565b61202a565b6000610a1b82612046565b80610a36575063152a902d60e11b6001600160e01b03198316145b92915050565b336000908152600b602052604090205460ff16610a745760405162461bcd60e51b8152600401610a6b90613a55565b60405180910390fd5b6010805461ffff909216620100000263ffff000019909216919091179055565b606060028054610aa390613a84565b80601f0160208091040260200160405190810160405280929190818152602001828054610acf90613a84565b8015610b1c5780601f10610af157610100808354040283529160200191610b1c565b820191906000526020600020905b815481529060010190602001808311610aff57829003601f168201915b5050505050905090565b6000610b30612094565b506001600160a01b0381166000908152600b602052604090205460ff165b919050565b6000610b5e826120ee565b610b7b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b601054829060ff1615610bad57610bad81612119565b610bb783836121d2565b505050565b336000908152600b602052604090205460ff16610beb5760405162461bcd60e51b8152600401610a6b90613a55565b601080549115156101000261ff0019909216919091179055565b601054610100900460ff1615610c4e5760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610a6b565b60105461ffff620100009091048116908316610c6d6001546000540390565b610c779190613ad4565b10610c945760405162461bcd60e51b8152600401610a6b90613aec565b6001600160a01b038316600090815260116020908152604091829020825160a08101845290546001600160401b038116825260ff600160401b8204811693830193909352600160481b8104831693820193909352600160501b83048216151560608201819052600160581b9093049091161515608082015290610d595760405162461bcd60e51b815260206004820152601a60248201527f436f6d6d756e697479206d696e742069732064697361626c65640000000000006044820152606401610a6b565b8261ffff16610d6733612272565b610d719190613ad4565b816040015160ff161015610dbc5760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610a6b565b60008160800151610e38576040516370a0823160e01b81523360048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa158015610e0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e329190613b23565b11610eae565b6040516331a9108f60e11b81526004810184905233906001600160a01b03871690636352211e90602401602060405180830381865afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea39190613b3c565b6001600160a01b0316145b905080610ef55760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d081b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610a6b565b6000610f02863387611230565b92505050803414610f515760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610a6b565b610f5f338661ffff1661229d565b505050505050565b336000908152600b602052604090205460ff16610f965760405162461bcd60e51b8152600401610a6b90613a55565b6010805460ff1916911515919091179055565b601054839060ff168015610fc657506001600160a01b0381163314155b15610fd457610fd433612119565b610fdf848484612448565b50505050565b6009546000908190819061ffff620100008204811691611006911686613b59565b6110109190613b8e565b6008546001600160a01b031693509150505b9250929050565b336000908152600b602052604090205460ff166110585760405162461bcd60e51b8152600401610a6b90613a55565b60005b838110156110ba576110aa85858381811061107857611078613ba2565b905060200201602081019061108d9190613374565b84848481811061109f5761109f613ba2565b905060a00201611fd7565b6110b381613bb8565b905061105b565b5050505050565b6000600d541161110c5760405162461bcd60e51b8152602060048201526016602482015275189d5c9b951bd35a5b9d081a5cc8191a5cd8589b195960521b6044820152606401610a6b565b80158015906111255750600d546111239082613bd1565b155b6111625760405162461bcd60e51b815260206004820152600e60248201526d6e6f742061206d756c7469706c6560901b6044820152606401610a6b565b600d546000906111729083613b8e565b60105490915062010000900461ffff16816111906001546000540390565b61119a9190613ad4565b106111e75760405162461bcd60e51b815260206004820152601960248201527f6d696e742f4f72646572206578636565647320737570706c79000000000000006044820152606401610a6b565b60005b828110156112255761121584848381811061120757611207613ba2565b905060200201356001612750565b61121e81613bb8565b90506111ea565b50610bb7338261229d565b6001600160a01b0383166000908152601160209081526040808320815160a08101835290546001600160401b038116825260ff600160401b8204811694830194909452600160481b8104841692820192909252600160501b8204831615156060820152600160581b90910490911615156080820152819081908185816112b589612272565b90508061ffff16846020015160ff16106113075780846020015160ff166112dc9190613be5565b92508261ffff168861ffff1611156112ff576112f88389613be5565b9150611307565b879250600091505b835160009061131b9061ffff851690613c08565b939b929a50506001600160401b03909216975095505050505050565b61133f612094565b47806113825760405162461bcd60e51b81526020600482015260126024820152714e6f2066756e647320617661696c61626c6560701b6044820152606401610a6b565b61139d611397600a546001600160a01b031690565b82612abd565b50565b6113a8612094565b600880546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff80841680835290831660209092018290526009805463ffffffff191690911762010000909202919091179055505050565b601054839060ff16801561141e57506001600160a01b0381163314155b1561142c5761142c33612119565b610fdf848484612bd6565b61143f612094565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6060816000816001600160401b03811115611487576114876137cf565b6040519080825280602002602001820160405280156114c057816020015b6114ad6131cd565b8152602001906001900390816114a55790505b50905060005b828114611513576114ee8686838181106114e2576114e2613ba2565b90506020020135611d1c565b82828151811061150057611500613ba2565b60209081029190910101526001016114c6565b50949350505050565b600061152782612bf1565b5192915050565b60006001600160a01b038216611557576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611584612094565b61158e6000612d26565b565b606060008060006115a08561152e565b90506000816001600160401b038111156115bc576115bc6137cf565b6040519080825280602002602001820160405280156115e5578160200160208202803683370190505b5090506115f06131cd565b60005b83861461166a5761160381612d78565b915081604001516116625781516001600160a01b03161561162357815194505b876001600160a01b0316856001600160a01b031603611662578083878060010198508151811061165557611655613ba2565b6020026020010181815250505b6001016115f3565b50909695505050505050565b606060038054610aa390613a84565b60608183106116a757604051631960ccad60e11b815260040160405180910390fd5b6000806116b360005490565b9050808411156116c1578093505b60006116cc8761152e565b9050848610156116eb57858503818110156116e5578091505b506116ef565b5060005b6000816001600160401b03811115611709576117096137cf565b604051908082528060200260200182016040528015611732578160200160208202803683370190505b509050816000036117485793506117f792505050565b600061175388611d1c565b905060008160400151611764575080515b885b8881141580156117765750848714155b156117eb5761178481612d78565b925082604001516117e35782516001600160a01b0316156117a457825191505b8a6001600160a01b0316826001600160a01b0316036117e357808488806001019950815181106117d6576117d6613ba2565b6020026020010181815250505b600101611766565b50505092835250909150505b9392505050565b601054610100900460ff16156118475760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610a6b565b60105462010000900461ffff16816118626001546000540390565b61186c9190613ad4565b106118895760405162461bcd60e51b8152600401610a6b90613aec565b60008052601160209081526040805160a0810182527f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b7546001600160401b038116825260ff600160401b8204811694830194909452600160481b8104841692820192909252600160501b82048316151560608201819052600160581b909204909216151560808301526119565760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81cd85b19481a5cc818db1bdcd959605a1b6044820152606401610a6b565b8161196033612272565b61196a9190613ad4565b816040015160ff1610156119b55760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610a6b565b60006119c360003385611230565b92505050803414611a125760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610a6b565b610bb7338461229d565b601054829060ff1615611a3257611a3281612119565b610bb78383612df9565b336000908152600b602052604090205460ff16611a6b5760405162461bcd60e51b8152600401610a6b90613a55565b828114611aab5760405162461bcd60e51b815260206004820152600e60248201526d155b995d995b881c995c5d595cdd60921b6044820152606401610a6b565b6000806000611abd6001546000540390565b905060005b86811015611bd857878782818110611adc57611adc613ba2565b9050602002016020810190611af191906132d9565b60105490945061ffff62010000909104811690611b1090861684613ad4565b10611b2d5760405162461bcd60e51b8152600401610a6b90613aec565b858582818110611b3f57611b3f613ba2565b9050602002016020810190611b549190613374565b9250611b64838561ffff1661229d565b6001600160a01b0383166000908152600560205260409020805461ffff86169190600890611ba3908490600160401b90046001600160401b0316613c37565b92506101000a8154816001600160401b0302191690836001600160401b0316021790555080611bd190613bb8565b9050611ac2565b5050505050505050565b600c5460ff16611c275760405162461bcd60e51b815260206004820152601060248201526f189d5c9b881a5cc8191a5cd8589b195960821b6044820152606401610a6b565b60005b81811015610bb757611c4783838381811061120757611207613ba2565b611c5081613bb8565b9050611c2a565b601054849060ff168015611c7457506001600160a01b0381163314155b15611c8257611c8233612119565b6110ba85858585612e65565b600e8054611c9b90613a84565b80601f0160208091040260200160405190810160405280929190818152602001828054611cc790613a84565b8015611d145780601f10611ce957610100808354040283529160200191611d14565b820191906000526020600020905b815481529060010190602001808311611cf757829003601f168201915b505050505081565b611d246131cd565b611d2c6131cd565b6000548310611d3b5792915050565b611d4483612d78565b9050806040015115611d565792915050565b6117f783612d78565b336000908152600b602052604090205460ff16611d8e5760405162461bcd60e51b8152600401610a6b90613a55565b600c805460ff191692151592909217909155600d55565b6060611db0826120ee565b611e085760405162461bcd60e51b8152602060048201526024808201527f47656e657369733a20717565727920666f72206e6f6e6578697374656e74207460448201526337b5b2b760e11b6064820152608401610a6b565b600e611e1383612ea9565b600f604051602001611e2793929190613cf0565b6040516020818303038152906040529050919050565b336000908152600b602052604090205460ff16611e6c5760405162461bcd60e51b8152600401610a6b90613a55565b611e78600e85856131fb565b506110ba600f83836131fb565b336000908152600b602052604090205460ff16611eb45760405162461bcd60e51b8152600401610a6b90613a55565b6001600160a01b038116600090815260076020908152604080832030845290915290205460ff16611ef857604051632ce44b5f60e11b815260040160405180910390fd5b60005b82811015610fdf57816001600160a01b0316611f40858584818110611f2257611f22613ba2565b9050602002016020810190611f3791906132d9565b61ffff1661151c565b6001600160a01b031614611f875760405162461bcd60e51b815260206004820152600e60248201526d09eeedccae440dad2e6dac2e8c6d60931b6044820152606401610a6b565b611fba848483818110611f9c57611f9c613ba2565b9050602002016020810190611fb191906132d9565b61ffff16612f3b565b611fc381613bb8565b9050611efb565b600f8054611c9b90613a84565b336000908152600b602052604090205460ff166120065760405162461bcd60e51b8152600401610a6b90613a55565b6001600160a01b03821660009081526011602052604090208190610fdf8282613d43565b612032612094565b61203d816001611437565b61139d81612f46565b60006301ffc9a760e01b6001600160e01b03198316148061207757506380ac58cd60e01b6001600160e01b03198316145b80610a365750506001600160e01b031916635b5e139f60e01b1490565b600a546001600160a01b0316331461158e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6b565b6000805482108015610a36575050600090815260046020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b1561139d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121aa9190613e27565b61139d57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a6b565b60006121dd8261151c565b9050336001600160a01b03821614612216576121f98133610988565b612216576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b60008054908290036122c25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0380841660008181526005602090815260408083208054600160401b6001600160401b038083168b01811667ffffffffffffffff198416811783900482168c0182169092026fffffffffffffffffffffffffffffffff1990931690911791909117909155815160a08101835285815242821681850190815281840186815260018b1460608401908152608084018881528b8952600490975294872092518354925191519551965161ffff16600160f01b026001600160f01b03971515600160e81b0260ff60e81b19971515600160e01b029790971661ffff60e01b1993909616600160a01b026001600160e01b031990941691909a1617919091171691909117919091179190911693909317909255908284019083908390600080516020613e9f8339815191528180a4600183015b81811461241e5780836000600080516020613e9f833981519152600080a46001016123f8565b508160000361243f57604051622e076360e81b815260040160405180910390fd5b60005550505050565b600061245382612bf1565b9050836001600160a01b031681600001516001600160a01b03161461248a5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546124a5818733612fbc565b6124d0576124b38633610988565b6124d057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166124f757604051633a954ecd60e21b815260040160405180910390fd5b801561250257600082555b6001600160a01b03808716600090815260056020908152604080832080546000196001600160401b0380831691909101811667ffffffffffffffff19928316179092558a861680865283862080548085166001908101861691909416179055835160a081018552908152428316818601908152818501878152606080840194855260808d81015161ffff9081169186019182528f8b52600490995296909820925183549251915194519651909716600160f01b026001600160f01b03961515600160e81b0260ff60e81b19951515600160e01b029590951661ffff60e01b1992909616600160a01b026001600160e01b0319909316979099169690961717949094169190911717169290921790915583015161271c5760018401600081815260046020526040812054600160a01b90046001600160401b0316900361271a57600054811461271a576040805160a08101825285516001600160a01b0390811682526020808801516001600160401b039081168285019081526000858701818152606087018281526080808e015161ffff908116918a019182528b8552600490975298909220965187549351915192519851909516600160f01b026001600160f01b03981515600160e81b0260ff60e81b19931515600160e01b029390931661ffff60e01b1992909516600160a01b026001600160e01b0319909416959096169490941791909117929092161717929092169190911790555b505b83856001600160a01b0316876001600160a01b0316600080516020613e9f83398151915260405160405180910390a4610f5f565b600061275b83612bf1565b805190915060008061277b86600090815260066020526040902080549091565b9150915084156127bb57612790818433612fbc565b6127bb5761279e8333610988565b6127bb57604051632ce44b5f60e11b815260040160405180910390fd5b80156127c657600082555b60056000846001600160a01b03166001600160a01b03168152602001908152602001600020600001600081819054906101000a90046001600160401b03166001900391906101000a8154816001600160401b0302191690836001600160401b0316021790555060056000846001600160a01b03166001600160a01b03168152602001908152602001600020600001601081819054906101000a90046001600160401b031660010191906101000a8154816001600160401b0302191690836001600160401b031602179055506040518060a0016040528060006001600160a01b03168152602001426001600160401b03168152602001600115158152602001600115158152602001856080015161ffff168152506004600088815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a8154816001600160401b0302191690836001600160401b03160217905550604082015181600001601c6101000a81548160ff021916908315150217905550606082015181600001601d6101000a81548160ff021916908315150217905550608082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050508360600151612a875760018601600081815260046020526040812054600160a01b90046001600160401b03169003612a85576000548114612a855760008181526004602090815260409182902087518154928901519389015160608a015160808b015161ffff16600160f01b026001600160f01b03911515600160e81b0260ff60e81b19931515600160e01b029390931661ffff60e01b196001600160401b03909816600160a01b026001600160e01b03199097166001600160a01b039095169490941795909517959095169190911717929092161790555b505b60405186906000906001600160a01b03861690600080516020613e9f833981519152908390a45050600180548101905550505050565b80471015612b0d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a6b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612b5a576040519150601f19603f3d011682016040523d82523d6000602084013e612b5f565b606091505b5050905080610bb75760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a6b565b610bb783838360405180602001604052806000815250611c57565b612bf96131cd565b81600054811015612d0d57600081815260046020908152604091829020825160a08101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b820460ff9081161515938201849052600160e81b83041615156060820152600160f01b90910461ffff16608082015290612d0b575b80516001600160a01b03166117f7575060001901600081815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b909104166080820152612c7d565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612d806131cd565b50600090815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b90910416608082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612e70848484610fa9565b6001600160a01b0383163b15610fdf57612e8c8484848461300a565b610fdf576040516368d2bf6b60e11b815260040160405180910390fd5b60606000612eb6836130f5565b60010190506000816001600160401b03811115612ed557612ed56137cf565b6040519080825280601f01601f191660200182016040528015612eff576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612f0957509392505050565b61139d816000612750565b612f4e612094565b6001600160a01b038116612fb35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a6b565b61139d81612d26565b6000826001600160a01b0316826001600160a01b031603612fdf575060016117f7565b836001600160a01b0316826001600160a01b031603613000575060016117f7565b5060009392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061303f903390899088908890600401613e44565b6020604051808303816000875af192505050801561307a575060408051601f3d908101601f1916820190925261307791810190613e81565b60015b6130d8573d8080156130a8576040519150601f19603f3d011682016040523d82523d6000602084013e6130ad565b606091505b5080516000036130d0576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106131345772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613160576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061317e57662386f26fc10000830492506010015b6305f5e1008310613196576305f5e100830492506008015b61271083106131aa57612710830492506004015b606483106131bc576064830492506002015b600a8310610a365760010192915050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b82805461320790613a84565b90600052602060002090601f016020900481019282613229576000855561326f565b82601f106132425782800160ff1982351617855561326f565b8280016001018555821561326f579182015b8281111561326f578235825591602001919060010190613254565b5061327b92915061327f565b5090565b5b8082111561327b5760008155600101613280565b6001600160e01b03198116811461139d57600080fd5b6000602082840312156132bc57600080fd5b81356117f781613294565b803561ffff81168114610b4e57600080fd5b6000602082840312156132eb57600080fd5b6117f7826132c7565b60005b8381101561330f5781810151838201526020016132f7565b83811115610fdf5750506000910152565b600081518084526133388160208601602086016132f4565b601f01601f19169290920160200192915050565b6020815260006117f76020830184613320565b6001600160a01b038116811461139d57600080fd5b60006020828403121561338657600080fd5b81356117f78161335f565b6000602082840312156133a357600080fd5b5035919050565b600080604083850312156133bd57600080fd5b82356133c88161335f565b946020939093013593505050565b801515811461139d57600080fd5b6000602082840312156133f657600080fd5b81356117f7816133d6565b60008060006060848603121561341657600080fd5b83356134218161335f565b925061342f602085016132c7565b9150604084013590509250925092565b60008060006060848603121561345457600080fd5b833561345f8161335f565b9250602084013561346f8161335f565b929592945050506040919091013590565b6000806040838503121561349357600080fd5b50508035926020909101359150565b60008083601f8401126134b457600080fd5b5081356001600160401b038111156134cb57600080fd5b6020830191508360208260051b850101111561102257600080fd5b600080600080604085870312156134fc57600080fd5b84356001600160401b038082111561351357600080fd5b61351f888389016134a2565b9096509450602087013591508082111561353857600080fd5b818701915087601f83011261354c57600080fd5b81358181111561355b57600080fd5b88602060a08302850101111561357057600080fd5b95989497505060200194505050565b6000806020838503121561359257600080fd5b82356001600160401b038111156135a857600080fd5b6135b4858286016134a2565b90969095509350505050565b6000806000606084860312156135d557600080fd5b83356135e08161335f565b925060208401356135f08161335f565b91506135fe604085016132c7565b90509250925092565b60008060006060848603121561361c57600080fd5b83356136278161335f565b92506135f0602085016132c7565b6000806040838503121561364857600080fd5b82356136538161335f565b91506020830135613663816133d6565b809150509250929050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260608082015115159083015260809081015161ffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561166a576136e483855161366e565b9284019260a092909201916001016136d1565b6020808252825182820181905260009190848201906040850190845b8181101561166a57835183529284019291840191600101613713565b60008060006060848603121561374457600080fd5b833561374f8161335f565b95602085013595506040909401359392505050565b6000806000806040858703121561377a57600080fd5b84356001600160401b038082111561379157600080fd5b61379d888389016134a2565b909650945060208701359150808211156137b657600080fd5b506137c3878288016134a2565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156137fb57600080fd5b84356138068161335f565b935060208501356138168161335f565b92506040850135915060608501356001600160401b038082111561383957600080fd5b818701915087601f83011261384d57600080fd5b81358181111561385f5761385f6137cf565b604051601f8201601f19908116603f01168101908382118183101715613887576138876137cf565b816040528281528a60208487010111156138a057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60a08101610a36828461366e565b600080604083850312156138e557600080fd5b82356133c8816133d6565b60008083601f84011261390257600080fd5b5081356001600160401b0381111561391957600080fd5b60208301915083602082850101111561102257600080fd5b6000806000806040858703121561394757600080fd5b84356001600160401b038082111561395e57600080fd5b61396a888389016138f0565b9096509450602087013591508082111561398357600080fd5b506137c3878288016138f0565b6000806000604084860312156139a557600080fd5b83356001600160401b038111156139bb57600080fd5b6139c7868287016134a2565b90945092505060208401356139db8161335f565b809150509250925092565b600080604083850312156139f957600080fd5b8235613a048161335f565b915060208301356136638161335f565b60008082840360c0811215613a2857600080fd5b8335613a338161335f565b925060a0601f1982011215613a4757600080fd5b506020830190509250929050565b602080825260159082015274556e617574686f72697a65642064656c656761746560581b604082015260600190565b600181811c90821680613a9857607f821691505b602082108103613ab857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613ae757613ae7613abe565b500190565b60208082526019908201527f4d696e742f4f72646572206578636565647320737570706c7900000000000000604082015260600190565b600060208284031215613b3557600080fd5b5051919050565b600060208284031215613b4e57600080fd5b81516117f78161335f565b6000816000190483118215151615613b7357613b73613abe565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613b9d57613b9d613b78565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201613bca57613bca613abe565b5060010190565b600082613be057613be0613b78565b500690565b600061ffff83811690831681811015613c0057613c00613abe565b039392505050565b60006001600160401b0380831681851681830481118215151615613c2e57613c2e613abe565b02949350505050565b60006001600160401b0383811690831681811015613c0057613c00613abe565b8054600090600181811c9080831680613c7157607f831692505b60208084108203613c9257634e487b7160e01b600052602260045260246000fd5b818015613ca65760018114613cb757613ce4565b60ff19861689528489019650613ce4565b60008881526020902060005b86811015613cdc5781548b820152908501908301613cc3565b505084890196505b50505050505092915050565b6000613cfc8286613c57565b8451613d0c8183602089016132f4565b613d1881830186613c57565b979650505050505050565b6000813560ff81168114610a3657600080fd5b60008135610a36816133d6565b81356001600160401b038116808214613d5b57600080fd5b825467ffffffffffffffff19811682178455915068ff0000000000000000613d8560208601613d23565b60401b16808268ffffffffffffffffff1985161717845569ff000000000000000000613db360408701613d23565b60481b168269ffffffffffffffffffff1985161782171784555050506060820135613ddd816133d6565b815460ff60501b191681151560501b60ff60501b1617825550613e23613e0560808401613d36565b82805460ff60581b191691151560581b60ff60581b16919091179055565b5050565b600060208284031215613e3957600080fd5b81516117f7816133d6565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e7790830184613320565b9695505050505050565b600060208284031215613e9357600080fd5b81516117f78161329456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204cfaedf3d4b86d885bd651ad6150002075bdfcf0f61a4435daef5e952a31deb564736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106102cd5760003560e01c80636352211e11610175578063b80f55c9116100dc578063d48ede9911610095578063e985e9c51161006f578063e985e9c51461096d578063ebc8b6b3146109b6578063f0798dbb146109d0578063f2fde38b146109f057600080fd5b8063d48ede9914610925578063d83d36df14610945578063dbbc853b1461095857600080fd5b8063b80f55c914610870578063b88d4fde14610890578063c0ac9983146108a3578063c23dc68f146108b8578063c7b6719d146108e5578063c87b56dd1461090557600080fd5b80638da5cb5b1161012e5780638da5cb5b146107d757806395d89b41146107f557806399a2557a1461080a578063a0712d681461082a578063a22cb4651461083d578063ae7bf4c81461085d57600080fd5b80636352211e146106c757806370a08231146106e7578063715018a6146107075780637885fdc71461071c578063813ccb98146107945780638462151c146107aa57600080fd5b806323b872dd116102345780633acc3898116101ed57806341f43434116101c757806341f434341461064557806342842e0e146106675780634a994eef1461067a5780635bbb21771461069a57600080fd5b80633acc3898146105cf5780633ccfd60b1461061057806341acc66a1461062557600080fd5b806323b872dd1461046c5780632a55205a1461047f5780633187fa5e146104be57806332cb6b0c146104de5780633386cc4e1461051257806336f0db011461053257600080fd5b8063095ea7b311610286578063095ea7b3146103c457806310baa74c146103d757806316c38b3c146103f657806318160ddd146104165780631c92d6e614610439578063211f9e2f1461044c57600080fd5b806301ffc9a7146102d957806306421c2f1461030e57806306fdde0314610330578063077796271461035257806307ebec2714610372578063081812fc1461038c57600080fd5b366102d457005b600080fd5b3480156102e557600080fd5b506102f96102f43660046132aa565b610a10565b60405190151581526020015b60405180910390f35b34801561031a57600080fd5b5061032e6103293660046132d9565b610a3c565b005b34801561033c57600080fd5b50610345610a94565b604051610305919061334c565b34801561035e57600080fd5b506102f961036d366004613374565b610b26565b34801561037e57600080fd5b50600c546102f99060ff1681565b34801561039857600080fd5b506103ac6103a7366004613391565b610b53565b6040516001600160a01b039091168152602001610305565b61032e6103d23660046133aa565b610b97565b3480156103e357600080fd5b506010546102f990610100900460ff1681565b34801561040257600080fd5b5061032e6104113660046133e4565b610bbc565b34801561042257600080fd5b50600154600054035b604051908152602001610305565b61032e610447366004613401565b610c05565b34801561045857600080fd5b5061032e6104673660046133e4565b610f67565b61032e61047a36600461343f565b610fa9565b34801561048b57600080fd5b5061049f61049a366004613480565b610fe5565b604080516001600160a01b039093168352602083019190915201610305565b3480156104ca57600080fd5b5061032e6104d93660046134e6565b611029565b3480156104ea57600080fd5b506010546104ff9062010000900461ffff1681565b60405161ffff9091168152602001610305565b34801561051e57600080fd5b5061032e61052d36600461357f565b6110c1565b34801561053e57600080fd5b5061059261054d366004613374565b6011602052600090815260409020546001600160401b0381169060ff600160401b8204811691600160481b8104821691600160501b8204811691600160581b90041685565b604080516001600160401b03909616865260ff9485166020870152939092169284019290925290151560608301521515608082015260a001610305565b3480156105db57600080fd5b506105ef6105ea3660046135c0565b611230565b6040805161ffff948516815293909216602084015290820152606001610305565b34801561061c57600080fd5b5061032e611337565b34801561063157600080fd5b5061032e610640366004613607565b6113a0565b34801561065157600080fd5b506103ac6daaeb6d7670e522a718067333cd4e81565b61032e61067536600461343f565b611401565b34801561068657600080fd5b5061032e610695366004613635565b611437565b3480156106a657600080fd5b506106ba6106b536600461357f565b61146a565b60405161030591906136b5565b3480156106d357600080fd5b506103ac6106e2366004613391565b61151c565b3480156106f357600080fd5b5061042b610702366004613374565b61152e565b34801561071357600080fd5b5061032e61157c565b34801561072857600080fd5b506008546040805180820190915260095461ffff80821683526201000090910416602082015261075f916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff9081166020808601919091529092015190911690820152606001610305565b3480156107a057600080fd5b5061042b600d5481565b3480156107b657600080fd5b506107ca6107c5366004613374565b611590565b60405161030591906136f7565b3480156107e357600080fd5b50600a546001600160a01b03166103ac565b34801561080157600080fd5b50610345611676565b34801561081657600080fd5b506107ca61082536600461372f565b611685565b61032e610838366004613391565b6117fe565b34801561084957600080fd5b5061032e610858366004613635565b611a1c565b61032e61086b366004613764565b611a3c565b34801561087c57600080fd5b5061032e61088b36600461357f565b611be2565b61032e61089e3660046137e5565b611c57565b3480156108af57600080fd5b50610345611c8e565b3480156108c457600080fd5b506108d86108d3366004613391565b611d1c565b60405161030591906138c4565b3480156108f157600080fd5b5061032e6109003660046138d2565b611d5f565b34801561091157600080fd5b50610345610920366004613391565b611da5565b34801561093157600080fd5b5061032e610940366004613931565b611e3d565b61032e610953366004613990565b611e85565b34801561096457600080fd5b50610345611fca565b34801561097957600080fd5b506102f96109883660046139e6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109c257600080fd5b506010546102f99060ff1681565b3480156109dc57600080fd5b5061032e6109eb366004613a14565b611fd7565b3480156109fc57600080fd5b5061032e610a0b366004613374565b61202a565b6000610a1b82612046565b80610a36575063152a902d60e11b6001600160e01b03198316145b92915050565b336000908152600b602052604090205460ff16610a745760405162461bcd60e51b8152600401610a6b90613a55565b60405180910390fd5b6010805461ffff909216620100000263ffff000019909216919091179055565b606060028054610aa390613a84565b80601f0160208091040260200160405190810160405280929190818152602001828054610acf90613a84565b8015610b1c5780601f10610af157610100808354040283529160200191610b1c565b820191906000526020600020905b815481529060010190602001808311610aff57829003601f168201915b5050505050905090565b6000610b30612094565b506001600160a01b0381166000908152600b602052604090205460ff165b919050565b6000610b5e826120ee565b610b7b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b601054829060ff1615610bad57610bad81612119565b610bb783836121d2565b505050565b336000908152600b602052604090205460ff16610beb5760405162461bcd60e51b8152600401610a6b90613a55565b601080549115156101000261ff0019909216919091179055565b601054610100900460ff1615610c4e5760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610a6b565b60105461ffff620100009091048116908316610c6d6001546000540390565b610c779190613ad4565b10610c945760405162461bcd60e51b8152600401610a6b90613aec565b6001600160a01b038316600090815260116020908152604091829020825160a08101845290546001600160401b038116825260ff600160401b8204811693830193909352600160481b8104831693820193909352600160501b83048216151560608201819052600160581b9093049091161515608082015290610d595760405162461bcd60e51b815260206004820152601a60248201527f436f6d6d756e697479206d696e742069732064697361626c65640000000000006044820152606401610a6b565b8261ffff16610d6733612272565b610d719190613ad4565b816040015160ff161015610dbc5760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610a6b565b60008160800151610e38576040516370a0823160e01b81523360048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa158015610e0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e329190613b23565b11610eae565b6040516331a9108f60e11b81526004810184905233906001600160a01b03871690636352211e90602401602060405180830381865afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea39190613b3c565b6001600160a01b0316145b905080610ef55760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d081b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610a6b565b6000610f02863387611230565b92505050803414610f515760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610a6b565b610f5f338661ffff1661229d565b505050505050565b336000908152600b602052604090205460ff16610f965760405162461bcd60e51b8152600401610a6b90613a55565b6010805460ff1916911515919091179055565b601054839060ff168015610fc657506001600160a01b0381163314155b15610fd457610fd433612119565b610fdf848484612448565b50505050565b6009546000908190819061ffff620100008204811691611006911686613b59565b6110109190613b8e565b6008546001600160a01b031693509150505b9250929050565b336000908152600b602052604090205460ff166110585760405162461bcd60e51b8152600401610a6b90613a55565b60005b838110156110ba576110aa85858381811061107857611078613ba2565b905060200201602081019061108d9190613374565b84848481811061109f5761109f613ba2565b905060a00201611fd7565b6110b381613bb8565b905061105b565b5050505050565b6000600d541161110c5760405162461bcd60e51b8152602060048201526016602482015275189d5c9b951bd35a5b9d081a5cc8191a5cd8589b195960521b6044820152606401610a6b565b80158015906111255750600d546111239082613bd1565b155b6111625760405162461bcd60e51b815260206004820152600e60248201526d6e6f742061206d756c7469706c6560901b6044820152606401610a6b565b600d546000906111729083613b8e565b60105490915062010000900461ffff16816111906001546000540390565b61119a9190613ad4565b106111e75760405162461bcd60e51b815260206004820152601960248201527f6d696e742f4f72646572206578636565647320737570706c79000000000000006044820152606401610a6b565b60005b828110156112255761121584848381811061120757611207613ba2565b905060200201356001612750565b61121e81613bb8565b90506111ea565b50610bb7338261229d565b6001600160a01b0383166000908152601160209081526040808320815160a08101835290546001600160401b038116825260ff600160401b8204811694830194909452600160481b8104841692820192909252600160501b8204831615156060820152600160581b90910490911615156080820152819081908185816112b589612272565b90508061ffff16846020015160ff16106113075780846020015160ff166112dc9190613be5565b92508261ffff168861ffff1611156112ff576112f88389613be5565b9150611307565b879250600091505b835160009061131b9061ffff851690613c08565b939b929a50506001600160401b03909216975095505050505050565b61133f612094565b47806113825760405162461bcd60e51b81526020600482015260126024820152714e6f2066756e647320617661696c61626c6560701b6044820152606401610a6b565b61139d611397600a546001600160a01b031690565b82612abd565b50565b6113a8612094565b600880546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff80841680835290831660209092018290526009805463ffffffff191690911762010000909202919091179055505050565b601054839060ff16801561141e57506001600160a01b0381163314155b1561142c5761142c33612119565b610fdf848484612bd6565b61143f612094565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6060816000816001600160401b03811115611487576114876137cf565b6040519080825280602002602001820160405280156114c057816020015b6114ad6131cd565b8152602001906001900390816114a55790505b50905060005b828114611513576114ee8686838181106114e2576114e2613ba2565b90506020020135611d1c565b82828151811061150057611500613ba2565b60209081029190910101526001016114c6565b50949350505050565b600061152782612bf1565b5192915050565b60006001600160a01b038216611557576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611584612094565b61158e6000612d26565b565b606060008060006115a08561152e565b90506000816001600160401b038111156115bc576115bc6137cf565b6040519080825280602002602001820160405280156115e5578160200160208202803683370190505b5090506115f06131cd565b60005b83861461166a5761160381612d78565b915081604001516116625781516001600160a01b03161561162357815194505b876001600160a01b0316856001600160a01b031603611662578083878060010198508151811061165557611655613ba2565b6020026020010181815250505b6001016115f3565b50909695505050505050565b606060038054610aa390613a84565b60608183106116a757604051631960ccad60e11b815260040160405180910390fd5b6000806116b360005490565b9050808411156116c1578093505b60006116cc8761152e565b9050848610156116eb57858503818110156116e5578091505b506116ef565b5060005b6000816001600160401b03811115611709576117096137cf565b604051908082528060200260200182016040528015611732578160200160208202803683370190505b509050816000036117485793506117f792505050565b600061175388611d1c565b905060008160400151611764575080515b885b8881141580156117765750848714155b156117eb5761178481612d78565b925082604001516117e35782516001600160a01b0316156117a457825191505b8a6001600160a01b0316826001600160a01b0316036117e357808488806001019950815181106117d6576117d6613ba2565b6020026020010181815250505b600101611766565b50505092835250909150505b9392505050565b601054610100900460ff16156118475760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610a6b565b60105462010000900461ffff16816118626001546000540390565b61186c9190613ad4565b106118895760405162461bcd60e51b8152600401610a6b90613aec565b60008052601160209081526040805160a0810182527f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b7546001600160401b038116825260ff600160401b8204811694830194909452600160481b8104841692820192909252600160501b82048316151560608201819052600160581b909204909216151560808301526119565760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81cd85b19481a5cc818db1bdcd959605a1b6044820152606401610a6b565b8161196033612272565b61196a9190613ad4565b816040015160ff1610156119b55760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610a6b565b60006119c360003385611230565b92505050803414611a125760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610a6b565b610bb7338461229d565b601054829060ff1615611a3257611a3281612119565b610bb78383612df9565b336000908152600b602052604090205460ff16611a6b5760405162461bcd60e51b8152600401610a6b90613a55565b828114611aab5760405162461bcd60e51b815260206004820152600e60248201526d155b995d995b881c995c5d595cdd60921b6044820152606401610a6b565b6000806000611abd6001546000540390565b905060005b86811015611bd857878782818110611adc57611adc613ba2565b9050602002016020810190611af191906132d9565b60105490945061ffff62010000909104811690611b1090861684613ad4565b10611b2d5760405162461bcd60e51b8152600401610a6b90613aec565b858582818110611b3f57611b3f613ba2565b9050602002016020810190611b549190613374565b9250611b64838561ffff1661229d565b6001600160a01b0383166000908152600560205260409020805461ffff86169190600890611ba3908490600160401b90046001600160401b0316613c37565b92506101000a8154816001600160401b0302191690836001600160401b0316021790555080611bd190613bb8565b9050611ac2565b5050505050505050565b600c5460ff16611c275760405162461bcd60e51b815260206004820152601060248201526f189d5c9b881a5cc8191a5cd8589b195960821b6044820152606401610a6b565b60005b81811015610bb757611c4783838381811061120757611207613ba2565b611c5081613bb8565b9050611c2a565b601054849060ff168015611c7457506001600160a01b0381163314155b15611c8257611c8233612119565b6110ba85858585612e65565b600e8054611c9b90613a84565b80601f0160208091040260200160405190810160405280929190818152602001828054611cc790613a84565b8015611d145780601f10611ce957610100808354040283529160200191611d14565b820191906000526020600020905b815481529060010190602001808311611cf757829003601f168201915b505050505081565b611d246131cd565b611d2c6131cd565b6000548310611d3b5792915050565b611d4483612d78565b9050806040015115611d565792915050565b6117f783612d78565b336000908152600b602052604090205460ff16611d8e5760405162461bcd60e51b8152600401610a6b90613a55565b600c805460ff191692151592909217909155600d55565b6060611db0826120ee565b611e085760405162461bcd60e51b8152602060048201526024808201527f47656e657369733a20717565727920666f72206e6f6e6578697374656e74207460448201526337b5b2b760e11b6064820152608401610a6b565b600e611e1383612ea9565b600f604051602001611e2793929190613cf0565b6040516020818303038152906040529050919050565b336000908152600b602052604090205460ff16611e6c5760405162461bcd60e51b8152600401610a6b90613a55565b611e78600e85856131fb565b506110ba600f83836131fb565b336000908152600b602052604090205460ff16611eb45760405162461bcd60e51b8152600401610a6b90613a55565b6001600160a01b038116600090815260076020908152604080832030845290915290205460ff16611ef857604051632ce44b5f60e11b815260040160405180910390fd5b60005b82811015610fdf57816001600160a01b0316611f40858584818110611f2257611f22613ba2565b9050602002016020810190611f3791906132d9565b61ffff1661151c565b6001600160a01b031614611f875760405162461bcd60e51b815260206004820152600e60248201526d09eeedccae440dad2e6dac2e8c6d60931b6044820152606401610a6b565b611fba848483818110611f9c57611f9c613ba2565b9050602002016020810190611fb191906132d9565b61ffff16612f3b565b611fc381613bb8565b9050611efb565b600f8054611c9b90613a84565b336000908152600b602052604090205460ff166120065760405162461bcd60e51b8152600401610a6b90613a55565b6001600160a01b03821660009081526011602052604090208190610fdf8282613d43565b612032612094565b61203d816001611437565b61139d81612f46565b60006301ffc9a760e01b6001600160e01b03198316148061207757506380ac58cd60e01b6001600160e01b03198316145b80610a365750506001600160e01b031916635b5e139f60e01b1490565b600a546001600160a01b0316331461158e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6b565b6000805482108015610a36575050600090815260046020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b1561139d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121aa9190613e27565b61139d57604051633b79c77360e21b81526001600160a01b0382166004820152602401610a6b565b60006121dd8261151c565b9050336001600160a01b03821614612216576121f98133610988565b612216576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b60008054908290036122c25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0380841660008181526005602090815260408083208054600160401b6001600160401b038083168b01811667ffffffffffffffff198416811783900482168c0182169092026fffffffffffffffffffffffffffffffff1990931690911791909117909155815160a08101835285815242821681850190815281840186815260018b1460608401908152608084018881528b8952600490975294872092518354925191519551965161ffff16600160f01b026001600160f01b03971515600160e81b0260ff60e81b19971515600160e01b029790971661ffff60e01b1993909616600160a01b026001600160e01b031990941691909a1617919091171691909117919091179190911693909317909255908284019083908390600080516020613e9f8339815191528180a4600183015b81811461241e5780836000600080516020613e9f833981519152600080a46001016123f8565b508160000361243f57604051622e076360e81b815260040160405180910390fd5b60005550505050565b600061245382612bf1565b9050836001600160a01b031681600001516001600160a01b03161461248a5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546124a5818733612fbc565b6124d0576124b38633610988565b6124d057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166124f757604051633a954ecd60e21b815260040160405180910390fd5b801561250257600082555b6001600160a01b03808716600090815260056020908152604080832080546000196001600160401b0380831691909101811667ffffffffffffffff19928316179092558a861680865283862080548085166001908101861691909416179055835160a081018552908152428316818601908152818501878152606080840194855260808d81015161ffff9081169186019182528f8b52600490995296909820925183549251915194519651909716600160f01b026001600160f01b03961515600160e81b0260ff60e81b19951515600160e01b029590951661ffff60e01b1992909616600160a01b026001600160e01b0319909316979099169690961717949094169190911717169290921790915583015161271c5760018401600081815260046020526040812054600160a01b90046001600160401b0316900361271a57600054811461271a576040805160a08101825285516001600160a01b0390811682526020808801516001600160401b039081168285019081526000858701818152606087018281526080808e015161ffff908116918a019182528b8552600490975298909220965187549351915192519851909516600160f01b026001600160f01b03981515600160e81b0260ff60e81b19931515600160e01b029390931661ffff60e01b1992909516600160a01b026001600160e01b0319909416959096169490941791909117929092161717929092169190911790555b505b83856001600160a01b0316876001600160a01b0316600080516020613e9f83398151915260405160405180910390a4610f5f565b600061275b83612bf1565b805190915060008061277b86600090815260066020526040902080549091565b9150915084156127bb57612790818433612fbc565b6127bb5761279e8333610988565b6127bb57604051632ce44b5f60e11b815260040160405180910390fd5b80156127c657600082555b60056000846001600160a01b03166001600160a01b03168152602001908152602001600020600001600081819054906101000a90046001600160401b03166001900391906101000a8154816001600160401b0302191690836001600160401b0316021790555060056000846001600160a01b03166001600160a01b03168152602001908152602001600020600001601081819054906101000a90046001600160401b031660010191906101000a8154816001600160401b0302191690836001600160401b031602179055506040518060a0016040528060006001600160a01b03168152602001426001600160401b03168152602001600115158152602001600115158152602001856080015161ffff168152506004600088815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a8154816001600160401b0302191690836001600160401b03160217905550604082015181600001601c6101000a81548160ff021916908315150217905550606082015181600001601d6101000a81548160ff021916908315150217905550608082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050508360600151612a875760018601600081815260046020526040812054600160a01b90046001600160401b03169003612a85576000548114612a855760008181526004602090815260409182902087518154928901519389015160608a015160808b015161ffff16600160f01b026001600160f01b03911515600160e81b0260ff60e81b19931515600160e01b029390931661ffff60e01b196001600160401b03909816600160a01b026001600160e01b03199097166001600160a01b039095169490941795909517959095169190911717929092161790555b505b60405186906000906001600160a01b03861690600080516020613e9f833981519152908390a45050600180548101905550505050565b80471015612b0d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a6b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612b5a576040519150601f19603f3d011682016040523d82523d6000602084013e612b5f565b606091505b5050905080610bb75760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a6b565b610bb783838360405180602001604052806000815250611c57565b612bf96131cd565b81600054811015612d0d57600081815260046020908152604091829020825160a08101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b820460ff9081161515938201849052600160e81b83041615156060820152600160f01b90910461ffff16608082015290612d0b575b80516001600160a01b03166117f7575060001901600081815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b909104166080820152612c7d565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612d806131cd565b50600090815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b90910416608082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612e70848484610fa9565b6001600160a01b0383163b15610fdf57612e8c8484848461300a565b610fdf576040516368d2bf6b60e11b815260040160405180910390fd5b60606000612eb6836130f5565b60010190506000816001600160401b03811115612ed557612ed56137cf565b6040519080825280601f01601f191660200182016040528015612eff576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612f0957509392505050565b61139d816000612750565b612f4e612094565b6001600160a01b038116612fb35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a6b565b61139d81612d26565b6000826001600160a01b0316826001600160a01b031603612fdf575060016117f7565b836001600160a01b0316826001600160a01b031603613000575060016117f7565b5060009392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061303f903390899088908890600401613e44565b6020604051808303816000875af192505050801561307a575060408051601f3d908101601f1916820190925261307791810190613e81565b60015b6130d8573d8080156130a8576040519150601f19603f3d011682016040523d82523d6000602084013e6130ad565b606091505b5080516000036130d0576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106131345772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613160576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061317e57662386f26fc10000830492506010015b6305f5e1008310613196576305f5e100830492506008015b61271083106131aa57612710830492506004015b606483106131bc576064830492506002015b600a8310610a365760010192915050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b82805461320790613a84565b90600052602060002090601f016020900481019282613229576000855561326f565b82601f106132425782800160ff1982351617855561326f565b8280016001018555821561326f579182015b8281111561326f578235825591602001919060010190613254565b5061327b92915061327f565b5090565b5b8082111561327b5760008155600101613280565b6001600160e01b03198116811461139d57600080fd5b6000602082840312156132bc57600080fd5b81356117f781613294565b803561ffff81168114610b4e57600080fd5b6000602082840312156132eb57600080fd5b6117f7826132c7565b60005b8381101561330f5781810151838201526020016132f7565b83811115610fdf5750506000910152565b600081518084526133388160208601602086016132f4565b601f01601f19169290920160200192915050565b6020815260006117f76020830184613320565b6001600160a01b038116811461139d57600080fd5b60006020828403121561338657600080fd5b81356117f78161335f565b6000602082840312156133a357600080fd5b5035919050565b600080604083850312156133bd57600080fd5b82356133c88161335f565b946020939093013593505050565b801515811461139d57600080fd5b6000602082840312156133f657600080fd5b81356117f7816133d6565b60008060006060848603121561341657600080fd5b83356134218161335f565b925061342f602085016132c7565b9150604084013590509250925092565b60008060006060848603121561345457600080fd5b833561345f8161335f565b9250602084013561346f8161335f565b929592945050506040919091013590565b6000806040838503121561349357600080fd5b50508035926020909101359150565b60008083601f8401126134b457600080fd5b5081356001600160401b038111156134cb57600080fd5b6020830191508360208260051b850101111561102257600080fd5b600080600080604085870312156134fc57600080fd5b84356001600160401b038082111561351357600080fd5b61351f888389016134a2565b9096509450602087013591508082111561353857600080fd5b818701915087601f83011261354c57600080fd5b81358181111561355b57600080fd5b88602060a08302850101111561357057600080fd5b95989497505060200194505050565b6000806020838503121561359257600080fd5b82356001600160401b038111156135a857600080fd5b6135b4858286016134a2565b90969095509350505050565b6000806000606084860312156135d557600080fd5b83356135e08161335f565b925060208401356135f08161335f565b91506135fe604085016132c7565b90509250925092565b60008060006060848603121561361c57600080fd5b83356136278161335f565b92506135f0602085016132c7565b6000806040838503121561364857600080fd5b82356136538161335f565b91506020830135613663816133d6565b809150509250929050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260608082015115159083015260809081015161ffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561166a576136e483855161366e565b9284019260a092909201916001016136d1565b6020808252825182820181905260009190848201906040850190845b8181101561166a57835183529284019291840191600101613713565b60008060006060848603121561374457600080fd5b833561374f8161335f565b95602085013595506040909401359392505050565b6000806000806040858703121561377a57600080fd5b84356001600160401b038082111561379157600080fd5b61379d888389016134a2565b909650945060208701359150808211156137b657600080fd5b506137c3878288016134a2565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156137fb57600080fd5b84356138068161335f565b935060208501356138168161335f565b92506040850135915060608501356001600160401b038082111561383957600080fd5b818701915087601f83011261384d57600080fd5b81358181111561385f5761385f6137cf565b604051601f8201601f19908116603f01168101908382118183101715613887576138876137cf565b816040528281528a60208487010111156138a057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60a08101610a36828461366e565b600080604083850312156138e557600080fd5b82356133c8816133d6565b60008083601f84011261390257600080fd5b5081356001600160401b0381111561391957600080fd5b60208301915083602082850101111561102257600080fd5b6000806000806040858703121561394757600080fd5b84356001600160401b038082111561395e57600080fd5b61396a888389016138f0565b9096509450602087013591508082111561398357600080fd5b506137c3878288016138f0565b6000806000604084860312156139a557600080fd5b83356001600160401b038111156139bb57600080fd5b6139c7868287016134a2565b90945092505060208401356139db8161335f565b809150509250925092565b600080604083850312156139f957600080fd5b8235613a048161335f565b915060208301356136638161335f565b60008082840360c0811215613a2857600080fd5b8335613a338161335f565b925060a0601f1982011215613a4757600080fd5b506020830190509250929050565b602080825260159082015274556e617574686f72697a65642064656c656761746560581b604082015260600190565b600181811c90821680613a9857607f821691505b602082108103613ab857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613ae757613ae7613abe565b500190565b60208082526019908201527f4d696e742f4f72646572206578636565647320737570706c7900000000000000604082015260600190565b600060208284031215613b3557600080fd5b5051919050565b600060208284031215613b4e57600080fd5b81516117f78161335f565b6000816000190483118215151615613b7357613b73613abe565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613b9d57613b9d613b78565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201613bca57613bca613abe565b5060010190565b600082613be057613be0613b78565b500690565b600061ffff83811690831681811015613c0057613c00613abe565b039392505050565b60006001600160401b0380831681851681830481118215151615613c2e57613c2e613abe565b02949350505050565b60006001600160401b0383811690831681811015613c0057613c00613abe565b8054600090600181811c9080831680613c7157607f831692505b60208084108203613c9257634e487b7160e01b600052602260045260246000fd5b818015613ca65760018114613cb757613ce4565b60ff19861689528489019650613ce4565b60008881526020902060005b86811015613cdc5781548b820152908501908301613cc3565b505084890196505b50505050505092915050565b6000613cfc8286613c57565b8451613d0c8183602089016132f4565b613d1881830186613c57565b979650505050505050565b6000813560ff81168114610a3657600080fd5b60008135610a36816133d6565b81356001600160401b038116808214613d5b57600080fd5b825467ffffffffffffffff19811682178455915068ff0000000000000000613d8560208601613d23565b60401b16808268ffffffffffffffffff1985161717845569ff000000000000000000613db360408701613d23565b60481b168269ffffffffffffffffffff1985161782171784555050506060820135613ddd816133d6565b815460ff60501b191681151560501b60ff60501b1617825550613e23613e0560808401613d36565b82805460ff60581b191691151560581b60ff60581b16919091179055565b5050565b600060208284031215613e3957600080fd5b81516117f7816133d6565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e7790830184613320565b9695505050505050565b600060208284031215613e9357600080fd5b81516117f78161329456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204cfaedf3d4b86d885bd651ad6150002075bdfcf0f61a4435daef5e952a31deb564736f6c634300080d0033

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

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