ETH Price: $3,349.83 (-2.01%)

Token

Mood Flippers (MOODFLIPPERS)
 

Overview

Max Total Supply

5,000 MOODFLIPPERS

Holders

2,416

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 MOODFLIPPERS
0x77fd9368886f69ebb16fadc7f7e7c62e7e9b9eb2
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:
MoodFlippers

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.9;

/**
                                  :+*****+-    :+*****+-
                                -%+:     .=%==%+:     .=%+
                               *#.          *#.          *%
                              :@.     +@@%:  .    =@@@-   %=
                              -@      *@@@:       *@@@+   #+
                               %+       .   -+     .:.   -@.
                               .#*:       .+%##:       .+%:
             :-==++++++++++++++++#@%*+++*%@%++#@%*+++*%@%++++++++++++++++==-:.
        .=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#=.
      -#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%=
    -%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-
   *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
 +@@@@@@@@@@@@@@@@@@@@@@@@@@@@+==#@@@@@@@@@@@@@@@@@@@@@@@@*=-+@@@@@@@@@@@@@@@@@@@@@@@@@@*
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@.    *@@@@@@@@@@@@@@@@@@@@@@+    :@@@@@@@@@@@@@@@@@@@@@@@@@@.
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@-     #@@@@@@@@@@@@@@@@@@@@#     +@@@@@@@@@@@@@@@@@@@@@@@@@@-
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:     =@@@@@@@@@@@@@@@@@@+     -@@@@@@@@@@@@@@@@@@@@@@@@@@@-
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+      -*@@@@@@@@@@@@%+.     =@@@@@@@@@@@@@@@@@@@@@@@@@@@@-
.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%-       .-=+++++=:       :#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:
 %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%=.                   -#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%
 :@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+-.           :=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-
  -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#####%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=
   :%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%:
     =%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=
       -*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*-
          :=*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*=:
                                    XXXXXXXXXXXXXXXXXXX
                                    XXXXXXXXXXXXXXXXXXX
 */

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract MoodFlippers is ERC721A, ERC2981, Ownable {
  using Strings for uint256;

  error ContractMintDisallowedError();
  error EarlyAccessClosedError();
  error ExceedsMaxSupplyError();
  error IncorrectAmountError();
  error InsufficientEarlyAccessSpotsError();
  error InvalidProofError();
  error PublicSaleClosedError();

  string public PROVENANCE_HASH;

  uint256 constant MAX_SUPPLY = 5000;

  enum SaleState {
    Closed,
    Stage1,
    Stage2,
    Public
  }
  SaleState public saleState = SaleState.Closed;

  mapping(SaleState => uint256) private _prices;
  address payable public beneficiary;

  bytes32 public merkleRoot;
  mapping(address => uint256) private _earlyAccessSpotsUsed;

  string public baseURI;
  string private _contractURI;

  constructor(
    address payable _beneficiary,
    address payable royaltiesReceiver,
    string memory _initialBaseURI,
    string memory _initialContractURI
  ) ERC721A("Mood Flippers", "MOODFLIPPERS") {
    _prices[SaleState.Stage1] = 0.075 ether;
    _prices[SaleState.Stage2] = 0.12 ether;
    _prices[SaleState.Public] = 0.16 ether;

    beneficiary = _beneficiary;
    setRoyaltyInfo(royaltiesReceiver, 500);

    baseURI = _initialBaseURI;
    _contractURI = _initialContractURI;
  }

  // Accessors

  function setProvenanceHash(string calldata hash) public onlyOwner {
    PROVENANCE_HASH = hash;
  }

  function setSaleState(SaleState _saleState) public onlyOwner {
    saleState = _saleState;
  }

  function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    merkleRoot = _merkleRoot;
  }

  function setBeneficiary(address payable _beneficiary) public onlyOwner {
    beneficiary = _beneficiary;
  }

  function earlyAccessSpotsUsed(address addr) public view returns (uint256) {
    return _earlyAccessSpotsUsed[addr];
  }

  // Metadata

  function setBaseURI(string calldata uri) public onlyOwner {
    baseURI = uri;
  }

  function setContractURI(string calldata uri) public onlyOwner {
    _contractURI = uri;
  }

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

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

  // Minting

  function mintListed(
    uint256 amount,
    bytes32[] calldata merkleProof,
    uint256 maxAmount
  ) public payable {
    if (saleState != SaleState.Stage1 && saleState != SaleState.Stage2)
      revert EarlyAccessClosedError();
    if (amount > maxAmount - _earlyAccessSpotsUsed[msg.sender])
      revert InsufficientEarlyAccessSpotsError();
    if (msg.value != _prices[saleState] * amount) revert IncorrectAmountError();
    if (!_verify(merkleProof, msg.sender, maxAmount))
      revert InvalidProofError();

    _earlyAccessSpotsUsed[msg.sender] += amount;
    _internalMint(msg.sender, amount);
  }

  function mintPublic(uint256 amount) public payable {
    if (saleState != SaleState.Public) revert PublicSaleClosedError();
    if (msg.value != _prices[saleState] * amount) revert IncorrectAmountError();
    if (msg.sender != tx.origin) revert ContractMintDisallowedError();

    _internalMint(msg.sender, amount);
  }

  function ownerMint(address to, uint256 amount) public onlyOwner {
    _internalMint(to, amount);
  }

  function withdraw() public onlyOwner {
    beneficiary.transfer(address(this).balance);
  }

  // Private

  function _internalMint(address to, uint256 amount) private {
    if (totalSupply() + amount > MAX_SUPPLY) revert ExceedsMaxSupplyError();
    _mint(to, amount);
  }

  function _verify(
    bytes32[] calldata merkleProof,
    address sender,
    uint256 maxAmount
  ) private view returns (bool) {
    bytes32 leaf = keccak256(abi.encodePacked(sender, maxAmount.toString()));
    return MerkleProof.verify(merkleProof, merkleRoot, leaf);
  }

  // ERC721A

  function _startTokenId() internal view virtual override returns (uint256) {
    return 1;
  }

  // IERC2981

  function setRoyaltyInfo(address payable receiver, uint96 numerator)
    public
    onlyOwner
  {
    _setDefaultRoyalty(receiver, numerator);
  }

  // ERC165

  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721A, ERC2981)
    returns (bool)
  {
    return
      ERC721A.supportsInterface(interfaceId) ||
      ERC2981.supportsInterface(interfaceId);
  }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

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

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

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

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

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

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

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count. 
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view 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 returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to `_startTokenId()`
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

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

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

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

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

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

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

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

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

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

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

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

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

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

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

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

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

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

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

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

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

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

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 9 of 11 : 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 10 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"},{"internalType":"address payable","name":"royaltiesReceiver","type":"address"},{"internalType":"string","name":"_initialBaseURI","type":"string"},{"internalType":"string","name":"_initialContractURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractMintDisallowedError","type":"error"},{"inputs":[],"name":"EarlyAccessClosedError","type":"error"},{"inputs":[],"name":"ExceedsMaxSupplyError","type":"error"},{"inputs":[],"name":"IncorrectAmountError","type":"error"},{"inputs":[],"name":"InsufficientEarlyAccessSpotsError","type":"error"},{"inputs":[],"name":"InvalidProofError","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"PublicSaleClosedError","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"earlyAccessSpotsUsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"name":"mintListed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPublic","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum MoodFlippers.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint96","name":"numerator","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum MoodFlippers.SaleState","name":"_saleState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600c60006101000a81548160ff021916908360038111156200002d576200002c620006b0565b5b02179055503480156200003f57600080fd5b5060405162004be038038062004be08339818101604052810190620000659190620008e1565b6040518060400160405280600d81526020017f4d6f6f6420466c697070657273000000000000000000000000000000000000008152506040518060400160405280600c81526020017f4d4f4f44464c49505045525300000000000000000000000000000000000000008152508160029080519060200190620000e992919062000600565b5080600390805190602001906200010292919062000600565b5062000113620002ac60201b60201c565b60008190555050506200013b6200012f620002b560201b60201c565b620002bd60201b60201c565b67010a741a46278000600d6000600160038111156200015f576200015e620006b0565b5b6003811115620001745762000173620006b0565b5b8152602001908152602001600020819055506701aa535d3d0c0000600d600060026003811115620001aa57620001a9620006b0565b5b6003811115620001bf57620001be620006b0565b5b8152602001908152602001600020819055506702386f26fc100000600d6000600380811115620001f457620001f3620006b0565b5b6003811115620002095762000208620006b0565b5b81526020019081526020016000208190555083600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000270836101f46200038360201b60201c565b81601190805190602001906200028892919062000600565b508060129080519060200190620002a192919062000600565b505050505062000b83565b60006001905090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000393620002b560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003b96200042860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000412576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200040990620009f2565b60405180910390fd5b6200042482826200045260201b60201c565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b62000462620005f660201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620004c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004ba9062000a8a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000536576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200052d9062000afc565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b8280546200060e9062000b4d565b90600052602060002090601f0160209004810192826200063257600085556200067e565b82601f106200064d57805160ff19168380011785556200067e565b828001600101855582156200067e579182015b828111156200067d57825182559160200191906001019062000660565b5b5090506200068d919062000691565b5090565b5b80821115620006ac57600081600090555060010162000692565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200072082620006f3565b9050919050565b620007328162000713565b81146200073e57600080fd5b50565b600081519050620007528162000727565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620007ad8262000762565b810181811067ffffffffffffffff82111715620007cf57620007ce62000773565b5b80604052505050565b6000620007e4620006df565b9050620007f28282620007a2565b919050565b600067ffffffffffffffff82111562000815576200081462000773565b5b620008208262000762565b9050602081019050919050565b60005b838110156200084d57808201518184015260208101905062000830565b838111156200085d576000848401525b50505050565b60006200087a6200087484620007f7565b620007d8565b9050828152602081018484840111156200089957620008986200075d565b5b620008a68482856200082d565b509392505050565b600082601f830112620008c657620008c562000758565b5b8151620008d884826020860162000863565b91505092915050565b60008060008060808587031215620008fe57620008fd620006e9565b5b60006200090e8782880162000741565b9450506020620009218782880162000741565b935050604085015167ffffffffffffffff811115620009455762000944620006ee565b5b6200095387828801620008ae565b925050606085015167ffffffffffffffff811115620009775762000976620006ee565b5b6200098587828801620008ae565b91505092959194509250565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620009da60208362000991565b9150620009e782620009a2565b602082019050919050565b6000602082019050818103600083015262000a0d81620009cb565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000a72602a8362000991565b915062000a7f8262000a14565b604082019050919050565b6000602082019050818103600083015262000aa58162000a63565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000ae460198362000991565b915062000af18262000aac565b602082019050919050565b6000602082019050818103600083015262000b178162000ad5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000b6657607f821691505b6020821081141562000b7d5762000b7c62000b1e565b5b50919050565b61404d8062000b936000396000f3fe60806040526004361061020f5760003560e01c8063603f4d521161011857806395d89b41116100a0578063e8a3d4851161006f578063e8a3d48514610777578063e985e9c5146107a2578063efd0cbf9146107df578063f2fde38b146107fb578063ff1b6556146108245761020f565b806395d89b41146106bd578063a22cb465146106e8578063b88d4fde14610711578063c87b56dd1461073a5761020f565b8063715018a6116100e7578063715018a61461060d5780637cb647591461062457806387d2d93f1461064d5780638da5cb5b14610669578063938e3d7b146106945761020f565b8063603f4d521461053d5780636352211e146105685780636c0360eb146105a557806370a08231146105d05761020f565b80632a55205a1161019b5780634160690f1161016a5780634160690f1461045c57806342842e0e14610499578063484b973c146104c257806355f804b3146104eb5780635a67de07146105145761020f565b80632a55205a146103b15780632eb4a7ab146103ef57806338af3eed1461041a5780633ccfd60b146104455761020f565b8063095ea7b3116101e2578063095ea7b3146102e2578063109695231461030b57806318160ddd146103345780631c31f7101461035f57806323b872dd146103885761020f565b806301ffc9a71461021457806302fa7c471461025157806306fdde031461027a578063081812fc146102a5575b600080fd5b34801561022057600080fd5b5061023b6004803603810190610236919061302a565b61084f565b6040516102489190613072565b60405180910390f35b34801561025d57600080fd5b506102786004803603810190610273919061312f565b610871565b005b34801561028657600080fd5b5061028f6108fb565b60405161029c9190613208565b60405180910390f35b3480156102b157600080fd5b506102cc60048036038101906102c79190613260565b61098d565b6040516102d991906132ae565b60405180910390f35b3480156102ee57600080fd5b50610309600480360381019061030491906132f5565b610a09565b005b34801561031757600080fd5b50610332600480360381019061032d919061339a565b610bb0565b005b34801561034057600080fd5b50610349610c42565b60405161035691906133f6565b60405180910390f35b34801561036b57600080fd5b5061038660048036038101906103819190613411565b610c59565b005b34801561039457600080fd5b506103af60048036038101906103aa919061343e565b610d19565b005b3480156103bd57600080fd5b506103d860048036038101906103d39190613491565b610d29565b6040516103e69291906134d1565b60405180910390f35b3480156103fb57600080fd5b50610404610f14565b6040516104119190613513565b60405180910390f35b34801561042657600080fd5b5061042f610f1a565b60405161043c919061353d565b60405180910390f35b34801561045157600080fd5b5061045a610f40565b005b34801561046857600080fd5b50610483600480360381019061047e9190613558565b611027565b60405161049091906133f6565b60405180910390f35b3480156104a557600080fd5b506104c060048036038101906104bb919061343e565b611070565b005b3480156104ce57600080fd5b506104e960048036038101906104e491906132f5565b611090565b005b3480156104f757600080fd5b50610512600480360381019061050d919061339a565b61111a565b005b34801561052057600080fd5b5061053b600480360381019061053691906135aa565b6111ac565b005b34801561054957600080fd5b50610552611255565b60405161055f919061364e565b60405180910390f35b34801561057457600080fd5b5061058f600480360381019061058a9190613260565b611268565b60405161059c91906132ae565b60405180910390f35b3480156105b157600080fd5b506105ba61127a565b6040516105c79190613208565b60405180910390f35b3480156105dc57600080fd5b506105f760048036038101906105f29190613558565b611308565b60405161060491906133f6565b60405180910390f35b34801561061957600080fd5b506106226113c1565b005b34801561063057600080fd5b5061064b60048036038101906106469190613695565b611449565b005b61066760048036038101906106629190613718565b6114cf565b005b34801561067557600080fd5b5061067e611734565b60405161068b91906132ae565b60405180910390f35b3480156106a057600080fd5b506106bb60048036038101906106b6919061339a565b61175e565b005b3480156106c957600080fd5b506106d26117f0565b6040516106df9190613208565b60405180910390f35b3480156106f457600080fd5b5061070f600480360381019061070a91906137b8565b611882565b005b34801561071d57600080fd5b5061073860048036038101906107339190613928565b6119fa565b005b34801561074657600080fd5b50610761600480360381019061075c9190613260565b611a6d565b60405161076e9190613208565b60405180910390f35b34801561078357600080fd5b5061078c611b0c565b6040516107999190613208565b60405180910390f35b3480156107ae57600080fd5b506107c960048036038101906107c491906139ab565b611b9e565b6040516107d69190613072565b60405180910390f35b6107f960048036038101906107f49190613260565b611c32565b005b34801561080757600080fd5b50610822600480360381019061081d9190613558565b611d9a565b005b34801561083057600080fd5b50610839611e92565b6040516108469190613208565b60405180910390f35b600061085a82611f20565b8061086a575061086982611fb2565b5b9050919050565b61087961202c565b73ffffffffffffffffffffffffffffffffffffffff16610897611734565b73ffffffffffffffffffffffffffffffffffffffff16146108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e490613a37565b60405180910390fd5b6108f78282612034565b5050565b60606002805461090a90613a86565b80601f016020809104026020016040519081016040528092919081815260200182805461093690613a86565b80156109835780601f1061095857610100808354040283529160200191610983565b820191906000526020600020905b81548152906001019060200180831161096657829003601f168201915b5050505050905090565b6000610998826121ca565b6109ce576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a1482612229565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a7c576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a9b6122f7565b73ffffffffffffffffffffffffffffffffffffffff1614610afe57610ac781610ac26122f7565b611b9e565b610afd576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610bb861202c565b73ffffffffffffffffffffffffffffffffffffffff16610bd6611734565b73ffffffffffffffffffffffffffffffffffffffff1614610c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2390613a37565b60405180910390fd5b8181600b9190610c3d929190612f1b565b505050565b6000610c4c6122ff565b6001546000540303905090565b610c6161202c565b73ffffffffffffffffffffffffffffffffffffffff16610c7f611734565b73ffffffffffffffffffffffffffffffffffffffff1614610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc90613a37565b60405180910390fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d24838383612308565b505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610ebf5760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ec96126b2565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ef59190613ae7565b610eff9190613b70565b90508160000151819350935050509250929050565b600f5481565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f4861202c565b73ffffffffffffffffffffffffffffffffffffffff16610f66611734565b73ffffffffffffffffffffffffffffffffffffffff1614610fbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb390613a37565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611024573d6000803e3d6000fd5b50565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61108b838383604051806020016040528060008152506119fa565b505050565b61109861202c565b73ffffffffffffffffffffffffffffffffffffffff166110b6611734565b73ffffffffffffffffffffffffffffffffffffffff161461110c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110390613a37565b60405180910390fd5b61111682826126bc565b5050565b61112261202c565b73ffffffffffffffffffffffffffffffffffffffff16611140611734565b73ffffffffffffffffffffffffffffffffffffffff1614611196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118d90613a37565b60405180910390fd5b8181601191906111a7929190612f1b565b505050565b6111b461202c565b73ffffffffffffffffffffffffffffffffffffffff166111d2611734565b73ffffffffffffffffffffffffffffffffffffffff1614611228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121f90613a37565b60405180910390fd5b80600c60006101000a81548160ff0219169083600381111561124d5761124c6135d7565b5b021790555050565b600c60009054906101000a900460ff1681565b600061127382612229565b9050919050565b6011805461128790613a86565b80601f01602080910402602001604051908101604052809291908181526020018280546112b390613a86565b80156113005780601f106112d557610100808354040283529160200191611300565b820191906000526020600020905b8154815290600101906020018083116112e357829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611370576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113c961202c565b73ffffffffffffffffffffffffffffffffffffffff166113e7611734565b73ffffffffffffffffffffffffffffffffffffffff161461143d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143490613a37565b60405180910390fd5b6114476000612718565b565b61145161202c565b73ffffffffffffffffffffffffffffffffffffffff1661146f611734565b73ffffffffffffffffffffffffffffffffffffffff16146114c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bc90613a37565b60405180910390fd5b80600f8190555050565b600160038111156114e3576114e26135d7565b5b600c60009054906101000a900460ff166003811115611505576115046135d7565b5b14158015611547575060026003811115611522576115216135d7565b5b600c60009054906101000a900460ff166003811115611544576115436135d7565b5b14155b1561157e576040517fcf64d00d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054816115c99190613ba1565b841115611602576040517f1430a11500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600d6000600c60009054906101000a900460ff166003811115611629576116286135d7565b5b600381111561163b5761163a6135d7565b5b8152602001908152602001600020546116549190613ae7565b341461168c576040517f5b79039b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611698838333846127de565b6116ce576040517f7d31e14900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461171d9190613bd5565b9250508190555061172e33856126bc565b50505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61176661202c565b73ffffffffffffffffffffffffffffffffffffffff16611784611734565b73ffffffffffffffffffffffffffffffffffffffff16146117da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d190613a37565b60405180910390fd5b8181601291906117eb929190612f1b565b505050565b6060600380546117ff90613a86565b80601f016020809104026020016040519081016040528092919081815260200182805461182b90613a86565b80156118785780601f1061184d57610100808354040283529160200191611878565b820191906000526020600020905b81548152906001019060200180831161185b57829003601f168201915b5050505050905090565b61188a6122f7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ef576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006118fc6122f7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119a96122f7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119ee9190613072565b60405180910390a35050565b611a05848484612308565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a6757611a308484848461286d565b611a66576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611a78826121ca565b611aae576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ab86129cd565b9050600081511415611ad95760405180602001604052806000815250611b04565b80611ae384612a5f565b604051602001611af4929190613c67565b6040516020818303038152906040525b915050919050565b606060128054611b1b90613a86565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4790613a86565b8015611b945780601f10611b6957610100808354040283529160200191611b94565b820191906000526020600020905b815481529060010190602001808311611b7757829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600380811115611c4557611c446135d7565b5b600c60009054906101000a900460ff166003811115611c6757611c666135d7565b5b14611c9e576040517fdc5aa73000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d6000600c60009054906101000a900460ff166003811115611cc557611cc46135d7565b5b6003811115611cd757611cd66135d7565b5b815260200190815260200160002054611cf09190613ae7565b3414611d28576040517f5b79039b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d8d576040517fb3098a7d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d9733826126bc565b50565b611da261202c565b73ffffffffffffffffffffffffffffffffffffffff16611dc0611734565b73ffffffffffffffffffffffffffffffffffffffff1614611e16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0d90613a37565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7d90613cfd565b60405180910390fd5b611e8f81612718565b50565b600b8054611e9f90613a86565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecb90613a86565b8015611f185780601f10611eed57610100808354040283529160200191611f18565b820191906000526020600020905b815481529060010190602001808311611efb57829003601f168201915b505050505081565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f7b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fab5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612025575061202482612ab9565b5b9050919050565b600033905090565b61203c6126b2565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561209a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209190613d8f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561210a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210190613dfb565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816121d56122ff565b111580156121e4575060005482105b8015612222575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806122386122ff565b116122c0576000548110156122bf5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156122bd575b60008114156122b3576004600083600190039350838152602001908152602001600020549050612288565b80925050506122f2565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60006001905090565b600061231382612229565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461237a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661239b6122f7565b73ffffffffffffffffffffffffffffffffffffffff1614806123ca57506123c9856123c46122f7565b611b9e565b5b8061240f57506123d86122f7565b73ffffffffffffffffffffffffffffffffffffffff166123f78461098d565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612448576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156124af576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124bc8585856001612b23565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b6125b986612b29565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612643576000600184019050600060046000838152602001908152602001600020541415612641576000548114612640578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126ab8585856001612b33565b5050505050565b6000612710905090565b611388816126c8610c42565b6126d29190613bd5565b111561270a576040517f0b17a17b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127148282612b39565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080836127eb84612d0d565b6040516020016127fc929190613e63565b604051602081830303815290604052805190602001209050612862868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483612e6e565b915050949350505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026128936122f7565b8786866040518563ffffffff1660e01b81526004016128b59493929190613ee0565b602060405180830381600087803b1580156128cf57600080fd5b505af192505050801561290057506040513d601f19601f820116820180604052508101906128fd9190613f41565b60015b61297a573d8060008114612930576040519150601f19603f3d011682016040523d82523d6000602084013e612935565b606091505b50600081511415612972576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601180546129dc90613a86565b80601f0160208091040260200160405190810160405280929190818152602001828054612a0890613a86565b8015612a555780601f10612a2a57610100808354040283529160200191612a55565b820191906000526020600020905b815481529060010190602001808311612a3857829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612aa557600183039250600a81066030018353600a81049050612a85565b508181036020830392508083525050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b6000819050919050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ba6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612be1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612bee6000848385612b23565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1612c5360018414612e85565b901b60a042901b612c6385612b29565b171760046000838152602001908152602001600020819055506000819050600083820190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612c8957816000819055505050612d086000848385612b33565b505050565b60606000821415612d55576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e69565b600082905060005b60008214612d87578080612d7090613f6e565b915050600a82612d809190613b70565b9150612d5d565b60008167ffffffffffffffff811115612da357612da26137fd565b5b6040519080825280601f01601f191660200182016040528015612dd55781602001600182028036833780820191505090505b5090505b60008514612e6257600182612dee9190613ba1565b9150600a85612dfd9190613fb7565b6030612e099190613bd5565b60f81b818381518110612e1f57612e1e613fe8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e5b9190613b70565b9450612dd9565b8093505050505b919050565b600082612e7b8584612e8f565b1490509392505050565b6000819050919050565b60008082905060005b8451811015612ef9576000858281518110612eb657612eb5613fe8565b5b60200260200101519050808311612ed857612ed18382612f04565b9250612ee5565b612ee28184612f04565b92505b508080612ef190613f6e565b915050612e98565b508091505092915050565b600082600052816020526040600020905092915050565b828054612f2790613a86565b90600052602060002090601f016020900481019282612f495760008555612f90565b82601f10612f6257803560ff1916838001178555612f90565b82800160010185558215612f90579182015b82811115612f8f578235825591602001919060010190612f74565b5b509050612f9d9190612fa1565b5090565b5b80821115612fba576000816000905550600101612fa2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61300781612fd2565b811461301257600080fd5b50565b60008135905061302481612ffe565b92915050565b6000602082840312156130405761303f612fc8565b5b600061304e84828501613015565b91505092915050565b60008115159050919050565b61306c81613057565b82525050565b60006020820190506130876000830184613063565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006130b88261308d565b9050919050565b6130c8816130ad565b81146130d357600080fd5b50565b6000813590506130e5816130bf565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61310c816130eb565b811461311757600080fd5b50565b60008135905061312981613103565b92915050565b6000806040838503121561314657613145612fc8565b5b6000613154858286016130d6565b92505060206131658582860161311a565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131a957808201518184015260208101905061318e565b838111156131b8576000848401525b50505050565b6000601f19601f8301169050919050565b60006131da8261316f565b6131e4818561317a565b93506131f481856020860161318b565b6131fd816131be565b840191505092915050565b6000602082019050818103600083015261322281846131cf565b905092915050565b6000819050919050565b61323d8161322a565b811461324857600080fd5b50565b60008135905061325a81613234565b92915050565b60006020828403121561327657613275612fc8565b5b60006132848482850161324b565b91505092915050565b60006132988261308d565b9050919050565b6132a88161328d565b82525050565b60006020820190506132c3600083018461329f565b92915050565b6132d28161328d565b81146132dd57600080fd5b50565b6000813590506132ef816132c9565b92915050565b6000806040838503121561330c5761330b612fc8565b5b600061331a858286016132e0565b925050602061332b8582860161324b565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261335a57613359613335565b5b8235905067ffffffffffffffff8111156133775761337661333a565b5b6020830191508360018202830111156133935761339261333f565b5b9250929050565b600080602083850312156133b1576133b0612fc8565b5b600083013567ffffffffffffffff8111156133cf576133ce612fcd565b5b6133db85828601613344565b92509250509250929050565b6133f08161322a565b82525050565b600060208201905061340b60008301846133e7565b92915050565b60006020828403121561342757613426612fc8565b5b6000613435848285016130d6565b91505092915050565b60008060006060848603121561345757613456612fc8565b5b6000613465868287016132e0565b9350506020613476868287016132e0565b92505060406134878682870161324b565b9150509250925092565b600080604083850312156134a8576134a7612fc8565b5b60006134b68582860161324b565b92505060206134c78582860161324b565b9150509250929050565b60006040820190506134e6600083018561329f565b6134f360208301846133e7565b9392505050565b6000819050919050565b61350d816134fa565b82525050565b60006020820190506135286000830184613504565b92915050565b613537816130ad565b82525050565b6000602082019050613552600083018461352e565b92915050565b60006020828403121561356e5761356d612fc8565b5b600061357c848285016132e0565b91505092915050565b6004811061359257600080fd5b50565b6000813590506135a481613585565b92915050565b6000602082840312156135c0576135bf612fc8565b5b60006135ce84828501613595565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110613617576136166135d7565b5b50565b600081905061362882613606565b919050565b60006136388261361a565b9050919050565b6136488161362d565b82525050565b6000602082019050613663600083018461363f565b92915050565b613672816134fa565b811461367d57600080fd5b50565b60008135905061368f81613669565b92915050565b6000602082840312156136ab576136aa612fc8565b5b60006136b984828501613680565b91505092915050565b60008083601f8401126136d8576136d7613335565b5b8235905067ffffffffffffffff8111156136f5576136f461333a565b5b6020830191508360208202830111156137115761371061333f565b5b9250929050565b6000806000806060858703121561373257613731612fc8565b5b60006137408782880161324b565b945050602085013567ffffffffffffffff81111561376157613760612fcd565b5b61376d878288016136c2565b935093505060406137808782880161324b565b91505092959194509250565b61379581613057565b81146137a057600080fd5b50565b6000813590506137b28161378c565b92915050565b600080604083850312156137cf576137ce612fc8565b5b60006137dd858286016132e0565b92505060206137ee858286016137a3565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613835826131be565b810181811067ffffffffffffffff82111715613854576138536137fd565b5b80604052505050565b6000613867612fbe565b9050613873828261382c565b919050565b600067ffffffffffffffff821115613893576138926137fd565b5b61389c826131be565b9050602081019050919050565b82818337600083830152505050565b60006138cb6138c684613878565b61385d565b9050828152602081018484840111156138e7576138e66137f8565b5b6138f28482856138a9565b509392505050565b600082601f83011261390f5761390e613335565b5b813561391f8482602086016138b8565b91505092915050565b6000806000806080858703121561394257613941612fc8565b5b6000613950878288016132e0565b9450506020613961878288016132e0565b93505060406139728782880161324b565b925050606085013567ffffffffffffffff81111561399357613992612fcd565b5b61399f878288016138fa565b91505092959194509250565b600080604083850312156139c2576139c1612fc8565b5b60006139d0858286016132e0565b92505060206139e1858286016132e0565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a2160208361317a565b9150613a2c826139eb565b602082019050919050565b60006020820190508181036000830152613a5081613a14565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a9e57607f821691505b60208210811415613ab257613ab1613a57565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613af28261322a565b9150613afd8361322a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613b3657613b35613ab8565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613b7b8261322a565b9150613b868361322a565b925082613b9657613b95613b41565b5b828204905092915050565b6000613bac8261322a565b9150613bb78361322a565b925082821015613bca57613bc9613ab8565b5b828203905092915050565b6000613be08261322a565b9150613beb8361322a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c2057613c1f613ab8565b5b828201905092915050565b600081905092915050565b6000613c418261316f565b613c4b8185613c2b565b9350613c5b81856020860161318b565b80840191505092915050565b6000613c738285613c36565b9150613c7f8284613c36565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613ce760268361317a565b9150613cf282613c8b565b604082019050919050565b60006020820190508181036000830152613d1681613cda565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000613d79602a8361317a565b9150613d8482613d1d565b604082019050919050565b60006020820190508181036000830152613da881613d6c565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000613de560198361317a565b9150613df082613daf565b602082019050919050565b60006020820190508181036000830152613e1481613dd8565b9050919050565b60008160601b9050919050565b6000613e3382613e1b565b9050919050565b6000613e4582613e28565b9050919050565b613e5d613e588261328d565b613e3a565b82525050565b6000613e6f8285613e4c565b601482019150613e7f8284613c36565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000613eb282613e8b565b613ebc8185613e96565b9350613ecc81856020860161318b565b613ed5816131be565b840191505092915050565b6000608082019050613ef5600083018761329f565b613f02602083018661329f565b613f0f60408301856133e7565b8181036060830152613f218184613ea7565b905095945050505050565b600081519050613f3b81612ffe565b92915050565b600060208284031215613f5757613f56612fc8565b5b6000613f6584828501613f2c565b91505092915050565b6000613f798261322a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613fac57613fab613ab8565b5b600182019050919050565b6000613fc28261322a565b9150613fcd8361322a565b925082613fdd57613fdc613b41565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122039a525eac3e48ac32ee6ba8fa4b0c60e90b6c36b7a244a9ee552c7faadf91c6e64736f6c63430008090033000000000000000000000000c8313ac324da8ad99d3887fed0c4fffe9d41e8130000000000000000000000005d684ce6bb74543ffd83af2b7b66681ec8558459000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6d6f6f64666c6970706572732e636f6d2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f6d6f6f64666c6970706572732e636f6d2f6170692f6d657461646174612f4d6f6f64466c6970706572730000000000000000000000000000

Deployed Bytecode

0x60806040526004361061020f5760003560e01c8063603f4d521161011857806395d89b41116100a0578063e8a3d4851161006f578063e8a3d48514610777578063e985e9c5146107a2578063efd0cbf9146107df578063f2fde38b146107fb578063ff1b6556146108245761020f565b806395d89b41146106bd578063a22cb465146106e8578063b88d4fde14610711578063c87b56dd1461073a5761020f565b8063715018a6116100e7578063715018a61461060d5780637cb647591461062457806387d2d93f1461064d5780638da5cb5b14610669578063938e3d7b146106945761020f565b8063603f4d521461053d5780636352211e146105685780636c0360eb146105a557806370a08231146105d05761020f565b80632a55205a1161019b5780634160690f1161016a5780634160690f1461045c57806342842e0e14610499578063484b973c146104c257806355f804b3146104eb5780635a67de07146105145761020f565b80632a55205a146103b15780632eb4a7ab146103ef57806338af3eed1461041a5780633ccfd60b146104455761020f565b8063095ea7b3116101e2578063095ea7b3146102e2578063109695231461030b57806318160ddd146103345780631c31f7101461035f57806323b872dd146103885761020f565b806301ffc9a71461021457806302fa7c471461025157806306fdde031461027a578063081812fc146102a5575b600080fd5b34801561022057600080fd5b5061023b6004803603810190610236919061302a565b61084f565b6040516102489190613072565b60405180910390f35b34801561025d57600080fd5b506102786004803603810190610273919061312f565b610871565b005b34801561028657600080fd5b5061028f6108fb565b60405161029c9190613208565b60405180910390f35b3480156102b157600080fd5b506102cc60048036038101906102c79190613260565b61098d565b6040516102d991906132ae565b60405180910390f35b3480156102ee57600080fd5b50610309600480360381019061030491906132f5565b610a09565b005b34801561031757600080fd5b50610332600480360381019061032d919061339a565b610bb0565b005b34801561034057600080fd5b50610349610c42565b60405161035691906133f6565b60405180910390f35b34801561036b57600080fd5b5061038660048036038101906103819190613411565b610c59565b005b34801561039457600080fd5b506103af60048036038101906103aa919061343e565b610d19565b005b3480156103bd57600080fd5b506103d860048036038101906103d39190613491565b610d29565b6040516103e69291906134d1565b60405180910390f35b3480156103fb57600080fd5b50610404610f14565b6040516104119190613513565b60405180910390f35b34801561042657600080fd5b5061042f610f1a565b60405161043c919061353d565b60405180910390f35b34801561045157600080fd5b5061045a610f40565b005b34801561046857600080fd5b50610483600480360381019061047e9190613558565b611027565b60405161049091906133f6565b60405180910390f35b3480156104a557600080fd5b506104c060048036038101906104bb919061343e565b611070565b005b3480156104ce57600080fd5b506104e960048036038101906104e491906132f5565b611090565b005b3480156104f757600080fd5b50610512600480360381019061050d919061339a565b61111a565b005b34801561052057600080fd5b5061053b600480360381019061053691906135aa565b6111ac565b005b34801561054957600080fd5b50610552611255565b60405161055f919061364e565b60405180910390f35b34801561057457600080fd5b5061058f600480360381019061058a9190613260565b611268565b60405161059c91906132ae565b60405180910390f35b3480156105b157600080fd5b506105ba61127a565b6040516105c79190613208565b60405180910390f35b3480156105dc57600080fd5b506105f760048036038101906105f29190613558565b611308565b60405161060491906133f6565b60405180910390f35b34801561061957600080fd5b506106226113c1565b005b34801561063057600080fd5b5061064b60048036038101906106469190613695565b611449565b005b61066760048036038101906106629190613718565b6114cf565b005b34801561067557600080fd5b5061067e611734565b60405161068b91906132ae565b60405180910390f35b3480156106a057600080fd5b506106bb60048036038101906106b6919061339a565b61175e565b005b3480156106c957600080fd5b506106d26117f0565b6040516106df9190613208565b60405180910390f35b3480156106f457600080fd5b5061070f600480360381019061070a91906137b8565b611882565b005b34801561071d57600080fd5b5061073860048036038101906107339190613928565b6119fa565b005b34801561074657600080fd5b50610761600480360381019061075c9190613260565b611a6d565b60405161076e9190613208565b60405180910390f35b34801561078357600080fd5b5061078c611b0c565b6040516107999190613208565b60405180910390f35b3480156107ae57600080fd5b506107c960048036038101906107c491906139ab565b611b9e565b6040516107d69190613072565b60405180910390f35b6107f960048036038101906107f49190613260565b611c32565b005b34801561080757600080fd5b50610822600480360381019061081d9190613558565b611d9a565b005b34801561083057600080fd5b50610839611e92565b6040516108469190613208565b60405180910390f35b600061085a82611f20565b8061086a575061086982611fb2565b5b9050919050565b61087961202c565b73ffffffffffffffffffffffffffffffffffffffff16610897611734565b73ffffffffffffffffffffffffffffffffffffffff16146108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e490613a37565b60405180910390fd5b6108f78282612034565b5050565b60606002805461090a90613a86565b80601f016020809104026020016040519081016040528092919081815260200182805461093690613a86565b80156109835780601f1061095857610100808354040283529160200191610983565b820191906000526020600020905b81548152906001019060200180831161096657829003601f168201915b5050505050905090565b6000610998826121ca565b6109ce576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a1482612229565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a7c576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a9b6122f7565b73ffffffffffffffffffffffffffffffffffffffff1614610afe57610ac781610ac26122f7565b611b9e565b610afd576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610bb861202c565b73ffffffffffffffffffffffffffffffffffffffff16610bd6611734565b73ffffffffffffffffffffffffffffffffffffffff1614610c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2390613a37565b60405180910390fd5b8181600b9190610c3d929190612f1b565b505050565b6000610c4c6122ff565b6001546000540303905090565b610c6161202c565b73ffffffffffffffffffffffffffffffffffffffff16610c7f611734565b73ffffffffffffffffffffffffffffffffffffffff1614610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc90613a37565b60405180910390fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d24838383612308565b505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610ebf5760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ec96126b2565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ef59190613ae7565b610eff9190613b70565b90508160000151819350935050509250929050565b600f5481565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f4861202c565b73ffffffffffffffffffffffffffffffffffffffff16610f66611734565b73ffffffffffffffffffffffffffffffffffffffff1614610fbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb390613a37565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611024573d6000803e3d6000fd5b50565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61108b838383604051806020016040528060008152506119fa565b505050565b61109861202c565b73ffffffffffffffffffffffffffffffffffffffff166110b6611734565b73ffffffffffffffffffffffffffffffffffffffff161461110c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110390613a37565b60405180910390fd5b61111682826126bc565b5050565b61112261202c565b73ffffffffffffffffffffffffffffffffffffffff16611140611734565b73ffffffffffffffffffffffffffffffffffffffff1614611196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118d90613a37565b60405180910390fd5b8181601191906111a7929190612f1b565b505050565b6111b461202c565b73ffffffffffffffffffffffffffffffffffffffff166111d2611734565b73ffffffffffffffffffffffffffffffffffffffff1614611228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121f90613a37565b60405180910390fd5b80600c60006101000a81548160ff0219169083600381111561124d5761124c6135d7565b5b021790555050565b600c60009054906101000a900460ff1681565b600061127382612229565b9050919050565b6011805461128790613a86565b80601f01602080910402602001604051908101604052809291908181526020018280546112b390613a86565b80156113005780601f106112d557610100808354040283529160200191611300565b820191906000526020600020905b8154815290600101906020018083116112e357829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611370576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113c961202c565b73ffffffffffffffffffffffffffffffffffffffff166113e7611734565b73ffffffffffffffffffffffffffffffffffffffff161461143d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143490613a37565b60405180910390fd5b6114476000612718565b565b61145161202c565b73ffffffffffffffffffffffffffffffffffffffff1661146f611734565b73ffffffffffffffffffffffffffffffffffffffff16146114c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bc90613a37565b60405180910390fd5b80600f8190555050565b600160038111156114e3576114e26135d7565b5b600c60009054906101000a900460ff166003811115611505576115046135d7565b5b14158015611547575060026003811115611522576115216135d7565b5b600c60009054906101000a900460ff166003811115611544576115436135d7565b5b14155b1561157e576040517fcf64d00d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054816115c99190613ba1565b841115611602576040517f1430a11500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600d6000600c60009054906101000a900460ff166003811115611629576116286135d7565b5b600381111561163b5761163a6135d7565b5b8152602001908152602001600020546116549190613ae7565b341461168c576040517f5b79039b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611698838333846127de565b6116ce576040517f7d31e14900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461171d9190613bd5565b9250508190555061172e33856126bc565b50505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61176661202c565b73ffffffffffffffffffffffffffffffffffffffff16611784611734565b73ffffffffffffffffffffffffffffffffffffffff16146117da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d190613a37565b60405180910390fd5b8181601291906117eb929190612f1b565b505050565b6060600380546117ff90613a86565b80601f016020809104026020016040519081016040528092919081815260200182805461182b90613a86565b80156118785780601f1061184d57610100808354040283529160200191611878565b820191906000526020600020905b81548152906001019060200180831161185b57829003601f168201915b5050505050905090565b61188a6122f7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118ef576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006118fc6122f7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119a96122f7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119ee9190613072565b60405180910390a35050565b611a05848484612308565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a6757611a308484848461286d565b611a66576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611a78826121ca565b611aae576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ab86129cd565b9050600081511415611ad95760405180602001604052806000815250611b04565b80611ae384612a5f565b604051602001611af4929190613c67565b6040516020818303038152906040525b915050919050565b606060128054611b1b90613a86565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4790613a86565b8015611b945780601f10611b6957610100808354040283529160200191611b94565b820191906000526020600020905b815481529060010190602001808311611b7757829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600380811115611c4557611c446135d7565b5b600c60009054906101000a900460ff166003811115611c6757611c666135d7565b5b14611c9e576040517fdc5aa73000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d6000600c60009054906101000a900460ff166003811115611cc557611cc46135d7565b5b6003811115611cd757611cd66135d7565b5b815260200190815260200160002054611cf09190613ae7565b3414611d28576040517f5b79039b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d8d576040517fb3098a7d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d9733826126bc565b50565b611da261202c565b73ffffffffffffffffffffffffffffffffffffffff16611dc0611734565b73ffffffffffffffffffffffffffffffffffffffff1614611e16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0d90613a37565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7d90613cfd565b60405180910390fd5b611e8f81612718565b50565b600b8054611e9f90613a86565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecb90613a86565b8015611f185780601f10611eed57610100808354040283529160200191611f18565b820191906000526020600020905b815481529060010190602001808311611efb57829003601f168201915b505050505081565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f7b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fab5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612025575061202482612ab9565b5b9050919050565b600033905090565b61203c6126b2565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561209a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209190613d8f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561210a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210190613dfb565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816121d56122ff565b111580156121e4575060005482105b8015612222575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806122386122ff565b116122c0576000548110156122bf5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156122bd575b60008114156122b3576004600083600190039350838152602001908152602001600020549050612288565b80925050506122f2565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60006001905090565b600061231382612229565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461237a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661239b6122f7565b73ffffffffffffffffffffffffffffffffffffffff1614806123ca57506123c9856123c46122f7565b611b9e565b5b8061240f57506123d86122f7565b73ffffffffffffffffffffffffffffffffffffffff166123f78461098d565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612448576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156124af576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124bc8585856001612b23565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b6125b986612b29565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612643576000600184019050600060046000838152602001908152602001600020541415612641576000548114612640578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126ab8585856001612b33565b5050505050565b6000612710905090565b611388816126c8610c42565b6126d29190613bd5565b111561270a576040517f0b17a17b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127148282612b39565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080836127eb84612d0d565b6040516020016127fc929190613e63565b604051602081830303815290604052805190602001209050612862868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483612e6e565b915050949350505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026128936122f7565b8786866040518563ffffffff1660e01b81526004016128b59493929190613ee0565b602060405180830381600087803b1580156128cf57600080fd5b505af192505050801561290057506040513d601f19601f820116820180604052508101906128fd9190613f41565b60015b61297a573d8060008114612930576040519150601f19603f3d011682016040523d82523d6000602084013e612935565b606091505b50600081511415612972576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601180546129dc90613a86565b80601f0160208091040260200160405190810160405280929190818152602001828054612a0890613a86565b8015612a555780601f10612a2a57610100808354040283529160200191612a55565b820191906000526020600020905b815481529060010190602001808311612a3857829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612aa557600183039250600a81066030018353600a81049050612a85565b508181036020830392508083525050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b6000819050919050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ba6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612be1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612bee6000848385612b23565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1612c5360018414612e85565b901b60a042901b612c6385612b29565b171760046000838152602001908152602001600020819055506000819050600083820190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612c8957816000819055505050612d086000848385612b33565b505050565b60606000821415612d55576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e69565b600082905060005b60008214612d87578080612d7090613f6e565b915050600a82612d809190613b70565b9150612d5d565b60008167ffffffffffffffff811115612da357612da26137fd565b5b6040519080825280601f01601f191660200182016040528015612dd55781602001600182028036833780820191505090505b5090505b60008514612e6257600182612dee9190613ba1565b9150600a85612dfd9190613fb7565b6030612e099190613bd5565b60f81b818381518110612e1f57612e1e613fe8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e5b9190613b70565b9450612dd9565b8093505050505b919050565b600082612e7b8584612e8f565b1490509392505050565b6000819050919050565b60008082905060005b8451811015612ef9576000858281518110612eb657612eb5613fe8565b5b60200260200101519050808311612ed857612ed18382612f04565b9250612ee5565b612ee28184612f04565b92505b508080612ef190613f6e565b915050612e98565b508091505092915050565b600082600052816020526040600020905092915050565b828054612f2790613a86565b90600052602060002090601f016020900481019282612f495760008555612f90565b82601f10612f6257803560ff1916838001178555612f90565b82800160010185558215612f90579182015b82811115612f8f578235825591602001919060010190612f74565b5b509050612f9d9190612fa1565b5090565b5b80821115612fba576000816000905550600101612fa2565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61300781612fd2565b811461301257600080fd5b50565b60008135905061302481612ffe565b92915050565b6000602082840312156130405761303f612fc8565b5b600061304e84828501613015565b91505092915050565b60008115159050919050565b61306c81613057565b82525050565b60006020820190506130876000830184613063565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006130b88261308d565b9050919050565b6130c8816130ad565b81146130d357600080fd5b50565b6000813590506130e5816130bf565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61310c816130eb565b811461311757600080fd5b50565b60008135905061312981613103565b92915050565b6000806040838503121561314657613145612fc8565b5b6000613154858286016130d6565b92505060206131658582860161311a565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131a957808201518184015260208101905061318e565b838111156131b8576000848401525b50505050565b6000601f19601f8301169050919050565b60006131da8261316f565b6131e4818561317a565b93506131f481856020860161318b565b6131fd816131be565b840191505092915050565b6000602082019050818103600083015261322281846131cf565b905092915050565b6000819050919050565b61323d8161322a565b811461324857600080fd5b50565b60008135905061325a81613234565b92915050565b60006020828403121561327657613275612fc8565b5b60006132848482850161324b565b91505092915050565b60006132988261308d565b9050919050565b6132a88161328d565b82525050565b60006020820190506132c3600083018461329f565b92915050565b6132d28161328d565b81146132dd57600080fd5b50565b6000813590506132ef816132c9565b92915050565b6000806040838503121561330c5761330b612fc8565b5b600061331a858286016132e0565b925050602061332b8582860161324b565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261335a57613359613335565b5b8235905067ffffffffffffffff8111156133775761337661333a565b5b6020830191508360018202830111156133935761339261333f565b5b9250929050565b600080602083850312156133b1576133b0612fc8565b5b600083013567ffffffffffffffff8111156133cf576133ce612fcd565b5b6133db85828601613344565b92509250509250929050565b6133f08161322a565b82525050565b600060208201905061340b60008301846133e7565b92915050565b60006020828403121561342757613426612fc8565b5b6000613435848285016130d6565b91505092915050565b60008060006060848603121561345757613456612fc8565b5b6000613465868287016132e0565b9350506020613476868287016132e0565b92505060406134878682870161324b565b9150509250925092565b600080604083850312156134a8576134a7612fc8565b5b60006134b68582860161324b565b92505060206134c78582860161324b565b9150509250929050565b60006040820190506134e6600083018561329f565b6134f360208301846133e7565b9392505050565b6000819050919050565b61350d816134fa565b82525050565b60006020820190506135286000830184613504565b92915050565b613537816130ad565b82525050565b6000602082019050613552600083018461352e565b92915050565b60006020828403121561356e5761356d612fc8565b5b600061357c848285016132e0565b91505092915050565b6004811061359257600080fd5b50565b6000813590506135a481613585565b92915050565b6000602082840312156135c0576135bf612fc8565b5b60006135ce84828501613595565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110613617576136166135d7565b5b50565b600081905061362882613606565b919050565b60006136388261361a565b9050919050565b6136488161362d565b82525050565b6000602082019050613663600083018461363f565b92915050565b613672816134fa565b811461367d57600080fd5b50565b60008135905061368f81613669565b92915050565b6000602082840312156136ab576136aa612fc8565b5b60006136b984828501613680565b91505092915050565b60008083601f8401126136d8576136d7613335565b5b8235905067ffffffffffffffff8111156136f5576136f461333a565b5b6020830191508360208202830111156137115761371061333f565b5b9250929050565b6000806000806060858703121561373257613731612fc8565b5b60006137408782880161324b565b945050602085013567ffffffffffffffff81111561376157613760612fcd565b5b61376d878288016136c2565b935093505060406137808782880161324b565b91505092959194509250565b61379581613057565b81146137a057600080fd5b50565b6000813590506137b28161378c565b92915050565b600080604083850312156137cf576137ce612fc8565b5b60006137dd858286016132e0565b92505060206137ee858286016137a3565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613835826131be565b810181811067ffffffffffffffff82111715613854576138536137fd565b5b80604052505050565b6000613867612fbe565b9050613873828261382c565b919050565b600067ffffffffffffffff821115613893576138926137fd565b5b61389c826131be565b9050602081019050919050565b82818337600083830152505050565b60006138cb6138c684613878565b61385d565b9050828152602081018484840111156138e7576138e66137f8565b5b6138f28482856138a9565b509392505050565b600082601f83011261390f5761390e613335565b5b813561391f8482602086016138b8565b91505092915050565b6000806000806080858703121561394257613941612fc8565b5b6000613950878288016132e0565b9450506020613961878288016132e0565b93505060406139728782880161324b565b925050606085013567ffffffffffffffff81111561399357613992612fcd565b5b61399f878288016138fa565b91505092959194509250565b600080604083850312156139c2576139c1612fc8565b5b60006139d0858286016132e0565b92505060206139e1858286016132e0565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a2160208361317a565b9150613a2c826139eb565b602082019050919050565b60006020820190508181036000830152613a5081613a14565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a9e57607f821691505b60208210811415613ab257613ab1613a57565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613af28261322a565b9150613afd8361322a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613b3657613b35613ab8565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613b7b8261322a565b9150613b868361322a565b925082613b9657613b95613b41565b5b828204905092915050565b6000613bac8261322a565b9150613bb78361322a565b925082821015613bca57613bc9613ab8565b5b828203905092915050565b6000613be08261322a565b9150613beb8361322a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c2057613c1f613ab8565b5b828201905092915050565b600081905092915050565b6000613c418261316f565b613c4b8185613c2b565b9350613c5b81856020860161318b565b80840191505092915050565b6000613c738285613c36565b9150613c7f8284613c36565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613ce760268361317a565b9150613cf282613c8b565b604082019050919050565b60006020820190508181036000830152613d1681613cda565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000613d79602a8361317a565b9150613d8482613d1d565b604082019050919050565b60006020820190508181036000830152613da881613d6c565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000613de560198361317a565b9150613df082613daf565b602082019050919050565b60006020820190508181036000830152613e1481613dd8565b9050919050565b60008160601b9050919050565b6000613e3382613e1b565b9050919050565b6000613e4582613e28565b9050919050565b613e5d613e588261328d565b613e3a565b82525050565b6000613e6f8285613e4c565b601482019150613e7f8284613c36565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000613eb282613e8b565b613ebc8185613e96565b9350613ecc81856020860161318b565b613ed5816131be565b840191505092915050565b6000608082019050613ef5600083018761329f565b613f02602083018661329f565b613f0f60408301856133e7565b8181036060830152613f218184613ea7565b905095945050505050565b600081519050613f3b81612ffe565b92915050565b600060208284031215613f5757613f56612fc8565b5b6000613f6584828501613f2c565b91505092915050565b6000613f798261322a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613fac57613fab613ab8565b5b600182019050919050565b6000613fc28261322a565b9150613fcd8361322a565b925082613fdd57613fdc613b41565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122039a525eac3e48ac32ee6ba8fa4b0c60e90b6c36b7a244a9ee552c7faadf91c6e64736f6c63430008090033

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

000000000000000000000000c8313ac324da8ad99d3887fed0c4fffe9d41e8130000000000000000000000005d684ce6bb74543ffd83af2b7b66681ec8558459000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6d6f6f64666c6970706572732e636f6d2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f6d6f6f64666c6970706572732e636f6d2f6170692f6d657461646174612f4d6f6f64466c6970706572730000000000000000000000000000

-----Decoded View---------------
Arg [0] : _beneficiary (address): 0xc8313AC324DA8AD99d3887FEd0c4fFfE9d41e813
Arg [1] : royaltiesReceiver (address): 0x5D684ce6Bb74543ffD83af2b7b66681Ec8558459
Arg [2] : _initialBaseURI (string): https://moodflippers.com/api/metadata/
Arg [3] : _initialContractURI (string): https://moodflippers.com/api/metadata/MoodFlippers

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000c8313ac324da8ad99d3887fed0c4fffe9d41e813
Arg [1] : 0000000000000000000000005d684ce6bb74543ffd83af2b7b66681ec8558459
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [5] : 68747470733a2f2f6d6f6f64666c6970706572732e636f6d2f6170692f6d6574
Arg [6] : 61646174612f0000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [8] : 68747470733a2f2f6d6f6f64666c6970706572732e636f6d2f6170692f6d6574
Arg [9] : 61646174612f4d6f6f64466c6970706572730000000000000000000000000000


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.