ETH Price: $3,094.16 (-0.29%)
Gas: 2 Gwei

Token

Cosmic Babies VX (BABYVX)
 

Overview

Max Total Supply

614 BABYVX

Holders

121

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
14 BABYVX
0xb1ab0b56f7074bc5871edbfc807b3490e6db61b8
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:
CosmicBabyVX

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-22
*/

// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,SPDX-License-Identifier
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

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

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

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

// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol


// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

// File: ERC20I.sol


pragma solidity ^0.8.0;

/*
    ERC20I (ERC20 0xInuarashi Edition)
    Minified and Gas Optimized
    Contributors: 0xInuarashi (Message to Martians, Anonymice), 0xBasset (Ether Orcs)
*/

contract ERC20I {
    // Token Params
    string public name;
    string public symbol;
    constructor(string memory name_, string memory symbol_) {
        name = name_;
        symbol = symbol_;
    }

    // Decimals
    uint8 public constant decimals = 18;

    // Supply
    uint256 public totalSupply;
    
    // Mappings of Balances
    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    // Events
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    // Internal Functions
    function _mint(address to_, uint256 amount_) internal virtual {
        totalSupply += amount_;
        balanceOf[to_] += amount_;
        emit Transfer(address(0x0), to_, amount_);
    }
    function _burn(address from_, uint256 amount_) internal virtual {
        balanceOf[from_] -= amount_;
        totalSupply -= amount_;
        emit Transfer(from_, address(0x0), amount_);
    }
    function _approve(address owner_, address spender_, uint256 amount_) internal virtual {
        allowance[owner_][spender_] = amount_;
        emit Approval(owner_, spender_, amount_);
    }

    // Public Functions
    function approve(address spender_, uint256 amount_) public virtual returns (bool) {
        _approve(msg.sender, spender_, amount_);
        return true;
    }
    function transfer(address to_, uint256 amount_) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount_;
        balanceOf[to_] += amount_;
        emit Transfer(msg.sender, to_, amount_);
        return true;
    }
    function transferFrom(address from_, address to_, uint256 amount_) public virtual returns (bool) {
        if (allowance[from_][msg.sender] != type(uint256).max) {
            allowance[from_][msg.sender] -= amount_; }
        balanceOf[from_] -= amount_;
        balanceOf[to_] += amount_;
        emit Transfer(from_, to_, amount_);
        return true;
    }

    // 0xInuarashi Custom Functions
    function multiTransfer(address[] memory to_, uint256[] memory amounts_) public virtual {
        require(to_.length == amounts_.length, "ERC20I: To and Amounts length Mismatch!");
        for (uint256 i = 0; i < to_.length; i++) {
            transfer(to_[i], amounts_[i]);
        }
    }
    function multiTransferFrom(address[] memory from_, address[] memory to_, uint256[] memory amounts_) public virtual {
        require(from_.length == to_.length && from_.length == amounts_.length, "ERC20I: From, To, and Amounts length Mismatch!");
        for (uint256 i = 0; i < from_.length; i++) {
            transferFrom(from_[i], to_[i], amounts_[i]);
        }
    }

    function burn(uint256 amount_) external virtual {
        _burn(msg.sender, amount_);
    }
    function burnFrom(address from_, uint256 amount_) public virtual {
        uint256 _currentAllowance = allowance[from_][msg.sender];
        require(_currentAllowance >= amount_, "ERC20IBurnable: Burn amount requested exceeds allowance!");

        if (allowance[from_][msg.sender] != type(uint256).max) {
            allowance[from_][msg.sender] -= amount_; }

        _burn(from_, amount_);
    }
}
// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: @openzeppelin/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// 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: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: cosmicToken.sol

pragma solidity 0.8.7;



interface IDuck {
	function balanceOG(address _user) external view returns(uint256);
}

contract CosmicToken is ERC20("CosmicUtilityToken", "CUT") 
{
   
    using SafeMath for uint256;
   
    uint256 public totalTokensBurned = 0;
    address[] internal stakeholders;
    address  payable private owner;
    

    //token Genesis per day
    uint256 constant public GENESIS_RATE = 20 ether; 
    
    //token duck per day
    uint256 constant public DUCK_RATE = 5 ether; 
    
    //token for  genesis minting
	uint256 constant public GENESIS_ISSUANCE = 280 ether;
	
	//token for duck minting
	uint256 constant public DUCK_ISSUANCE = 70 ether;
	
	
	
	// Tue Mar 18 2031 17:46:47 GMT+0000
	uint256 constant public END = 1931622407;

	mapping(address => uint256) public rewards;
	mapping(address => uint256) public lastUpdate;
	
	
    IDuck public ducksContract;
   
    constructor(address initDuckContract) 
    {
        owner = payable(msg.sender);
        ducksContract = IDuck(initDuckContract);
    }
   

    function WhoOwns() public view returns (address) {
        return owner;
    }
   
    modifier Owned {
         require(msg.sender == owner);
         _;
 }
   
    function getContractAddress() public view returns (address) {
        return address(this);
    }

	function min(uint256 a, uint256 b) internal pure returns (uint256) {
		return a < b ? a : b;
	}    
	
	modifier contractAddressOnly
    {
         require(msg.sender == address(ducksContract));
         _;
    }
    
   	// called when minting many NFTs
	function updateRewardOnMint(address _user, uint256 _tokenId) external contractAddressOnly
	{
	    if(_tokenId <= 1000)
		{
            _mint(_user,GENESIS_ISSUANCE);	  	        
		}
		else if(_tokenId >= 1001)
		{
            _mint(_user,DUCK_ISSUANCE);	  	        	        
		}
	}
	

	function getReward(address _to, uint256 totalPayout) external contractAddressOnly
	{
		_mint(_to, (totalPayout * 10 ** 18));
		
	}
	
	function burn(address _from, uint256 _amount) external 
	{
	    require(msg.sender == _from, "You do not own these tokens");
		_burn(_from, _amount);
		totalTokensBurned += _amount;
	}


  
   
}
// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: ERC721A.sol


// Creators: locationtba.eth, 2pmflow.eth

pragma solidity ^0.8.0;









/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  uint256 private currentIndex = 0;

  uint256 internal immutable maxBatchSize;

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

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

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

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

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

  /**
   * @dev
   * `maxBatchSize` refers to how much a minter can mint at a time.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_
  ) {
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
  }

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

  /**
   * @dev See {IERC721Enumerable-tokenByIndex}.
   */
  function tokenByIndex(uint256 index) public view override returns (uint256) {
    require(index < totalSupply(), "ERC721A: global index out of bounds");
    return index;
  }

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i < numMintedSoFar; i++) {
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

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

  /**
   * @dev See {IERC721-balanceOf}.
   */
  function balanceOf(address owner) public view override returns (uint256) {
    require(owner != address(0), "ERC721A: balance query for the zero address");
    return uint256(_addressData[owner].balance);
  }

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

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

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

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

  /**
   * @dev See {IERC721Metadata-tokenURI}.
   */
  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

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

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

  /**
   * @dev See {IERC721-approve}.
   */
  function approve(address to, uint256 tokenId) public override {
    address owner = ERC721A.ownerOf(tokenId);
    require(to != owner, "ERC721A: approval to current owner");

    require(
      _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
      "ERC721A: approve caller is not owner nor approved for all"
    );

    _approve(to, tokenId, owner);
  }

  /**
   * @dev See {IERC721-getApproved}.
   */
  function getApproved(uint256 tokenId) public view override returns (address) {
    require(_exists(tokenId), "ERC721A: approved query for nonexistent token");

    return _tokenApprovals[tokenId];
  }

  /**
   * @dev See {IERC721-setApprovalForAll}.
   */
  function setApprovalForAll(address operator, bool approved) public override {
    require(operator != _msgSender(), "ERC721A: approve to caller");

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

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

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

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

  /**
   * @dev See {IERC721-safeTransferFrom}.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public virtual override {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

  /**
   * @dev Returns whether `tokenId` exists.
   *
   * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
   *
   * Tokens start existing when they are minted (`_mint`),
   */
  function _exists(uint256 tokenId) internal view returns (bool) {
    return tokenId < currentIndex;
  }

  function _safeMint(address to, uint256 quantity) internal {
    _safeMint(to, quantity, "");
  }

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal virtual {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

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

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

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

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

    // Clear approvals from the previous owner
    _approve(address(0), tokenId, prevOwnership.addr);

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

    // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
    // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
    uint256 nextTokenId = tokenId + 1;
    if (_ownerships[nextTokenId].addr == address(0)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

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

  /**
   * @dev Approve `to` to operate on `tokenId`
   *
   * Emits a {Approval} event.
   */
  function _approve(
    address to,
    uint256 tokenId,
    address owner
  ) private {
    _tokenApprovals[tokenId] = to;
    emit Approval(owner, to, tokenId);
  }

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > currentIndex - 1) {
      endIndex = currentIndex - 1;
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

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

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   *
   * 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`.
   */
  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.
   *
   * 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` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

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

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;



/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// File: cosmicLabs.sol

pragma solidity 0.8.7;



contract CosmicLabs is ERC721Enumerable, IERC721Receiver, Ownable {
   
   using Strings for uint256;
   using EnumerableSet for EnumerableSet.UintSet;
   
    CosmicToken public cosmictoken;
    
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdTracker;
    
    string public baseURI;
    string public baseExtension = ".json";

    
    uint public maxGenesisTx = 4;
    uint public maxDuckTx = 20;
    
    
    uint public maxSupply = 9000;
    uint public genesisSupply = 1000;
    
    uint256 public price = 0.05 ether;
   

    bool public GensisSaleOpen = true;
    bool public GenesisFreeMintOpen = false;
    bool public DuckMintOpen = false;
    
    
    
    modifier isSaleOpen
    {
         require(GensisSaleOpen == true);
         _;
    }
    
    modifier isFreeMintOpen
    {
         require(GenesisFreeMintOpen == true);
         _;
    }
    
    modifier isDuckMintOpen
    {
         require(DuckMintOpen == true);
         _;
    }
    

    
    function switchFromFreeToDuckMint() public onlyOwner
    {
        GenesisFreeMintOpen = false;
        DuckMintOpen = true;
    }
    
    
    
    event mint(address to, uint total);
    event withdraw(uint total);
    event giveawayNft(address to, uint tokenID);
    
    mapping(address => uint256) public balanceOG;
    
    mapping(address => uint256) public maxWalletGenesisTX;
    mapping(address => uint256) public maxWalletDuckTX;
    
    mapping(address => EnumerableSet.UintSet) private _deposits;
    
    
    mapping(uint256 => uint256) public _deposit_blocks;
    
    mapping(address => bool) public addressStaked;
    
    //ID - Days staked;
    mapping(uint256 => uint256) public IDvsDaysStaked;
    mapping (address => uint256) public whitelistMintAmount;
    

   address internal communityWallet = 0xea25545d846ecF4999C2875bC77dE5B5151Fa633;
   
    constructor(string memory _initBaseURI) ERC721("Cosmic Labs", "CLABS")
    {
        setBaseURI(_initBaseURI);

        

        for(uint256 i; i<200; i++)
        {
             _tokenIdTracker.increment();
            _safeMint(communityWallet, totalToken());
        }
        for(uint256 i; i<2; i++)
        {
             _tokenIdTracker.increment();
            _safeMint(msg.sender, totalToken());
        }


        
    }
   
   
    function setPrice(uint256 newPrice) external onlyOwner {
        price = newPrice;
    }
   
    
    function setYieldToken(address _yield) external onlyOwner {
		cosmictoken = CosmicToken(_yield);
	}
	
	function totalToken() public view returns (uint256) {
            return _tokenIdTracker.current();
    }
    
    modifier communityWalletOnly
    {
         require(msg.sender == communityWallet);
         _;
    }
    	
	function communityDuckMint(uint256 amountForAirdrops) public onlyOwner
	{
        for(uint256 i; i<amountForAirdrops; i++)
        {
             _tokenIdTracker.increment();
            _safeMint(communityWallet, totalToken());
        }
	}

    function GenesisSale(uint8 mintTotal) public payable isSaleOpen
    {
        uint256 totalMinted = maxWalletGenesisTX[msg.sender];
        totalMinted = totalMinted + mintTotal;
        
        require(mintTotal >= 1 && mintTotal <= maxGenesisTx, "Mint Amount Incorrect");
        require(totalToken() < genesisSupply, "SOLD OUT!");
        require(maxWalletGenesisTX[msg.sender] <= maxGenesisTx, "You've maxed your limit!");
        require(msg.value >= price * mintTotal, "Minting a Genesis Costs 0.05 Ether Each!");
        require(totalMinted <= maxGenesisTx, "You'll surpass your limit!");
        
        
        for(uint8 i=0;i<mintTotal;i++)
        {
            whitelistMintAmount[msg.sender] += 1;
            maxWalletGenesisTX[msg.sender] += 1;
            _tokenIdTracker.increment();
            _safeMint(msg.sender, totalToken());
            cosmictoken.updateRewardOnMint(msg.sender, totalToken());
            emit mint(msg.sender, totalToken());
        }
        
        if(totalToken() == genesisSupply)
        {
            GensisSaleOpen = false;
            GenesisFreeMintOpen = true;
        }
       
    }	

    function GenesisFreeMint(uint8 mintTotal)public payable isFreeMintOpen
    {
        require(whitelistMintAmount[msg.sender] > 0, "You don't have any free mints!");
        require(totalToken() < maxSupply, "SOLD OUT!");
        require(mintTotal <= whitelistMintAmount[msg.sender], "You are passing your limit!");
        
        for(uint8 i=0;i<mintTotal;i++)
        {
            whitelistMintAmount[msg.sender] -= 1;
            _tokenIdTracker.increment();
            _safeMint(msg.sender, totalToken());
            cosmictoken.updateRewardOnMint(msg.sender, totalToken());
            emit mint(msg.sender, totalToken());
        }
    }
	

    function DuckSale(uint8 mintTotal)public payable isDuckMintOpen
    {
        uint256 totalMinted = maxWalletDuckTX[msg.sender];
        totalMinted = totalMinted + mintTotal;        
    
        require(mintTotal >= 1 && mintTotal <= maxDuckTx, "Mint Amount Incorrect");
        require(msg.value >= price * mintTotal, "Minting a Duck Costs 0.05 Ether Each!");
        require(totalToken() < maxSupply, "SOLD OUT!");
        require(maxWalletDuckTX[msg.sender] <= maxDuckTx, "You've maxed your limit!");
        require(totalMinted <= maxDuckTx, "You'll surpass your limit!");
        
        for(uint8 i=0;i<mintTotal;i++)
        {
            maxWalletDuckTX[msg.sender] += 1;
            _tokenIdTracker.increment();
            _safeMint(msg.sender, totalToken());
            cosmictoken.updateRewardOnMint(msg.sender, totalToken());
            emit mint(msg.sender, totalToken());
        }
        
        if(totalToken() == maxSupply)
        {
            DuckMintOpen = false;
        }
    }
   
   
    function airdropNft(address airdropPatricipent, uint16 tokenID) public payable communityWalletOnly
    {
        _transfer(msg.sender, airdropPatricipent, tokenID);
        emit giveawayNft(airdropPatricipent, tokenID);
    }
    
    function airdropMany(address[] memory airdropPatricipents) public payable communityWalletOnly
    {
        uint256[] memory tempWalletOfUser = this.walletOfOwner(msg.sender);
        
        require(tempWalletOfUser.length >= airdropPatricipents.length, "You dont have enough tokens to airdrop all!");
        
       for(uint256 i=0; i<airdropPatricipents.length; i++)
       {
            _transfer(msg.sender, airdropPatricipents[i], tempWalletOfUser[i]);
            emit giveawayNft(airdropPatricipents[i], tempWalletOfUser[i]);
       }

    }    
    
    function withdrawContractEther(address payable recipient) external onlyOwner
    {
        emit withdraw(getBalance());
        recipient.transfer(getBalance());
    }
    function getBalance() public view returns(uint)
    {
        return address(this).balance;
    }
   
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }
   
    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }
   
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory)
    {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : "";
    }
    
	function getReward(uint256 CalculatedPayout) internal
	{
		cosmictoken.getReward(msg.sender, CalculatedPayout);
	}    
    
    //Staking Functions
    function depositStake(uint256[] calldata tokenIds) external {
        
        require(isApprovedForAll(msg.sender, address(this)), "You are not Approved!");
        
        
        for (uint256 i; i < tokenIds.length; i++) {
            safeTransferFrom(
                msg.sender,
                address(this),
                tokenIds[i],
                ''
            );
            
            _deposits[msg.sender].add(tokenIds[i]);
            addressStaked[msg.sender] = true;
            
            
            _deposit_blocks[tokenIds[i]] = block.timestamp;
            

            IDvsDaysStaked[tokenIds[i]] = block.timestamp;
        }
        
    }
    function withdrawStake(uint256[] calldata tokenIds) external {
        
        require(isApprovedForAll(msg.sender, address(this)), "You are not Approved!");
        
        for (uint256 i; i < tokenIds.length; i++) {
            require(
                _deposits[msg.sender].contains(tokenIds[i]),
                'Token not deposited'
            );
            
            cosmictoken.getReward(msg.sender,totalRewardsToPay(tokenIds[i]));
            
            _deposits[msg.sender].remove(tokenIds[i]);
             _deposit_blocks[tokenIds[i]] = 0;
            addressStaked[msg.sender] = false;
            IDvsDaysStaked[tokenIds[i]] = block.timestamp;
            
            this.safeTransferFrom(
                address(this),
                msg.sender,
                tokenIds[i],
                ''
            );
        }
    }

    
    function viewRewards() external view returns (uint256)
    {
        uint256 payout = 0;
        
        for(uint256 i = 0; i < _deposits[msg.sender].length(); i++)
        {
            payout = payout + totalRewardsToPay(_deposits[msg.sender].at(i));
        }
        return payout;
    }
    
    function claimRewards() external
    {
        for(uint256 i = 0; i < _deposits[msg.sender].length(); i++)
        {
            cosmictoken.getReward(msg.sender, totalRewardsToPay(_deposits[msg.sender].at(i)));
            IDvsDaysStaked[_deposits[msg.sender].at(i)] = block.timestamp;
        }
    }   
    
    function totalRewardsToPay(uint256 tokenId) internal view returns(uint256)
    {
        uint256 payout = 0;
        
        if(tokenId > 0 && tokenId <= genesisSupply)
        {
            payout = howManyDaysStaked(tokenId) * 20;
        }
        else if (tokenId > genesisSupply && tokenId <= maxSupply)
        {
            payout = howManyDaysStaked(tokenId) * 5;
        }
        
        return payout;
    }
    
    function howManyDaysStaked(uint256 tokenId) public view returns(uint256)
    {
        
        require(
            _deposits[msg.sender].contains(tokenId),
            'Token not deposited'
        );
        
        uint256 returndays;
        uint256 timeCalc = block.timestamp - IDvsDaysStaked[tokenId];
        returndays = timeCalc / 86400;
       
        return returndays;
    }
    
    function walletOfOwner(address _owner) external view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }

        return tokensId;
    }
    
    function returnStakedTokens() public view returns (uint256[] memory)
    {
        return _deposits[msg.sender].values();
    }
    
    function totalTokensInWallet() public view returns(uint256)
    {
        return cosmictoken.balanceOf(msg.sender);
    }
    
   
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }
}
// File: cosmicFusion.sol


pragma solidity 0.8.7;







contract CosmicFusion is ERC721A, Ownable, ReentrancyGuard
{
    using Address for address;
    using Strings for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdTracker;

    string public baseURI;
    string public baseExtension = ".json";

    mapping (uint256 => address) public fusionIndexToAddress;
    mapping (uint256 => bool) public hasFused;

    CosmicLabs public cosmicLabs;

    constructor() ERC721A("Cosmic Fusion", "CFUSION", 100) 
    {
        
    }

    function setCosmicLabsAddress(address clabsAddress) public onlyOwner
    {
        cosmicLabs = CosmicLabs(clabsAddress);
    }

    modifier onlySender {
        require(msg.sender == tx.origin);
        _;
    }

    function teamMint(uint256 amount) public onlyOwner nonReentrant
    {
        for(uint i=0;i<amount;i++)
        {
            fusionIndexToAddress[_tokenIdTracker.current()] = msg.sender;
            _tokenIdTracker.increment();
        }
        _safeMint(msg.sender, amount);
    }

    function FuseDucks(uint256[] memory tokenIds) public payable nonReentrant
    {
        require(tokenIds.length % 2 == 0, "Odd amount of Ducks Selected");

        for(uint256 i=0; i<tokenIds.length; i++)
        {
            require(tokenIds[i] >= 1001 , "You selected a Genesis");
            require(!hasFused[tokenIds[i]], "These ducks have already fused!");
            cosmicLabs.transferFrom(msg.sender, 0x000000000000000000000000000000000000dEaD ,tokenIds[i]);
            hasFused[tokenIds[i]] = true;
        }

        uint256 fuseAmount = tokenIds.length / 2;
        
        for(uint256 i=0; i<fuseAmount; i++)
        {
            fusionIndexToAddress[_tokenIdTracker.current()] = msg.sender;
            _tokenIdTracker.increment();
        }
        _safeMint(msg.sender, fuseAmount);
        
    }


    function _withdraw(address payable address_, uint256 amount_) internal {
        (bool success, ) = payable(address_).call{value: amount_}("");
        require(success, "Transfer failed");
    }

    function withdrawEther() external onlyOwner {
        _withdraw(payable(msg.sender), address(this).balance);
    }

    function withdrawEtherTo(address payable to_) external onlyOwner {
        _withdraw(to_, address(this).balance);
    }
    
    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }   
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory)
    {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : "";
    }

    function walletOfOwner(address address_) public virtual view returns (uint256[] memory) {
        uint256 _balance = balanceOf(address_);
        uint256[] memory _tokens = new uint256[] (_balance);
        uint256 _index;
        uint256 _loopThrough = totalSupply();
        for (uint256 i = 0; i < _loopThrough; i++) {
            bool _exists = _exists(i);
            if (_exists) {
                if (ownerOf(i) == address_) { _tokens[_index] = i; _index++; }
            }
            else if (!_exists && _tokens[_balance - 1] == 0) { _loopThrough++; }
        }
        return _tokens;
    }

    function transferFrom(address from, address to, uint256 tokenId) public  override {
        fusionIndexToAddress[tokenId] = to;
		ERC721A.transferFrom(from, to, tokenId);
	}

	function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public  override {
        fusionIndexToAddress[tokenId] = to;
		ERC721A.safeTransferFrom(from, to, tokenId, _data);
	}


    
}
// File: cut.sol

pragma solidity 0.8.7;



contract CosmicUtilityToken is ERC20I, Ownable, ReentrancyGuard {


    mapping (uint256 => uint256) public tokenIdEarned;
    mapping (uint256 => uint256) public fusionEarned;

    uint256 public GENESIS_RATE = 0.02777777777 ether;
    uint256 public FUSION_RATE = 12 ether;

    //  Sat Feb 22 2022 05:00:00 GMT+0000
    uint256 public startTime = 1645506000;

    //	Sat Feb 22 2025 05:00:00 GMT+0000
    uint256 public constant endTimeFusion = 1740200400;
    
    uint256 public totalTokensBurned = 0;

    mapping (address => bool) public firstClaim;

    mapping(uint256 => uint256) public fusionToTimestamp;

    CosmicLabs public cosmicLabs;
    CosmicToken public cosmicToken;
    CosmicFusion public cosmicFusion;

    constructor(address CLABS, address CUT) ERC20I("Cosmic Utility Token", "CUT")
    {
        cosmicLabs = CosmicLabs(CLABS);
        cosmicToken = CosmicToken(CUT);
    }

    function setFusionContract(address fusionContract) public onlyOwner
    {
        cosmicFusion = CosmicFusion(fusionContract);
    }
    function setCosmicLabsContract(address clabsContract) public onlyOwner
    {
        cosmicLabs = CosmicLabs(clabsContract);
    }
    function changeGenesis_Rate(uint256 _incoming) public onlyOwner
    {
        GENESIS_RATE = _incoming;
    }

    function changeFusion_Rate(uint256 _incoming) public onlyOwner
    {
        FUSION_RATE = _incoming;
    }

    function teamMint(uint256 totalAmount) public onlyOwner stakingEnded
    {
        _mint(msg.sender, (totalAmount * 10 ** 18));

        _mint(0xcD6a42782d230D7c13A74ddec5dD140e55499Df9, (totalAmount * 10 ** 18));

        _mint(0x28dD793B34202eeaEe7D8e1Bb74b812641a503e0, (totalAmount * 10 ** 18));

        _mint(0xe7D6f9bE83443BE2527f64bE07639776Fd422e1E, (totalAmount * 10 ** 18));

        _mint(0x7b977283DE834A7e82d4f4F81bD8cc9267960459, (totalAmount * 10 ** 18));

        _mint(0x5d8026cdC76A5731820B41963059249dfb131C65, (totalAmount * 10 ** 18));

        _mint(0xd9bC4a4057eD82f58b0ABECDbe3cCaF8e81aF44A, (totalAmount * 10 ** 18));

        _mint(0x83e02c9f0ec019f75d3B7E6Ac193109c9e7224EA, (totalAmount * 10 ** 18));
    }
    
    //migrate old cut to new cut
    modifier hasMigrated
    {
        require(firstClaim[msg.sender] == false);
        _;
    }
    modifier stakingEnded
    {
        require(block.timestamp < endTimeFusion);
        _;
    }
    function migrateCut() public nonReentrant hasMigrated stakingEnded
    {
        uint256 howManyTokens = cosmicToken.balanceOf(msg.sender);
        uint256 extraCommision = (howManyTokens * 10) / 100;

        cosmicToken.transferFrom(msg.sender, address(this), howManyTokens);

        firstClaim[msg.sender] = true;
        _mint(msg.sender, (howManyTokens + extraCommision));
    }

    //Genesis Ducks functions

    function claimRewards(uint256[] memory nftsToClaim) public nonReentrant stakingEnded
    {
        for(uint256 i=0;i<nftsToClaim.length;i++)
        {
            require(cosmicLabs.ownerOf(nftsToClaim[i]) == msg.sender, "You are not the owner of these tokens");
        }

        _mint(msg.sender, tokensAccumulated(nftsToClaim));
        
        for(uint256 i=0; i<nftsToClaim.length;i++)
        {
            tokenIdEarned[nftsToClaim[i]] = block.timestamp;
        }
    }

    function tokensAccumulated(uint256[] memory nftsToCheck) public view returns(uint256)
    {
        uint256 totalTokensEarned;

        for(uint256 i=0; i<nftsToCheck.length;i++)
        {
            if(nftsToCheck[i] <= 1000)
            {
                totalTokensEarned += (howManyMinStaked(nftsToCheck[i]) * GENESIS_RATE);
            }
        }

        return totalTokensEarned;

    }

    function howManyMinStaked(uint256 tokenId) public view returns(uint256)
    {
        uint256 timeCalc;

        if(tokenIdEarned[tokenId] == 0)
        {
            timeCalc = block.timestamp - startTime;
        }
        else
        {
            timeCalc = block.timestamp - tokenIdEarned[tokenId];
        }
        
        uint256 returnMins = timeCalc / 60;
       
        return returnMins;
    }

    //fusion passive staking methods
    function getPendingTokensFusion(uint256 tokenId_) public view returns (uint256) {
        uint256 _timestamp = fusionToTimestamp[tokenId_] == 0 ?
            startTime : fusionToTimestamp[tokenId_] > endTimeFusion ? 
            endTimeFusion : fusionToTimestamp[tokenId_];
        uint256 _currentTimeOrEnd = block.timestamp > endTimeFusion ?
            endTimeFusion : block.timestamp;
        uint256 _timeElapsed = _currentTimeOrEnd - _timestamp;

        return (_timeElapsed * FUSION_RATE) / 1 days;
    }
    function getPendingTokensManyFusion(uint256[] memory tokenIds_) public view 
    returns (uint256) {
        uint256 _pendingTokens;
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            _pendingTokens += getPendingTokensFusion(tokenIds_[i]);
        }
        return _pendingTokens;
    }

    function claimFusion(address to_, uint256[] memory tokenIds_) external {
        require(tokenIds_.length > 0, 
            "You must claim at least 1 Fusion!");

        uint256 _pendingTokens = tokenIds_.length > 1 ?
            getPendingTokensManyFusion(tokenIds_) :
            getPendingTokensFusion(tokenIds_[0]);
        
        // Run loop to update timestamp for each fusion
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            require(to_ == cosmicFusion.fusionIndexToAddress(tokenIds_[i]),
                "claim(): to_ is not owner of Cosmic Fusion!");

            fusionToTimestamp[tokenIds_[i]] = block.timestamp;
        }
        
        _mint(to_, _pendingTokens);
    }

    function getPendingTokensOfAddress(address address_) public view returns (uint256) {
        uint256[] memory _tokensOfAddress = cosmicFusion.walletOfOwner(address_);
        return getPendingTokensManyFusion(_tokensOfAddress);
    }
  

    //deflationary 
    function burn(address _from, uint256 _amount) external 
	{
	    require(msg.sender == _from, "You do not own these tokens");
		_burn(_from, _amount);
		totalTokensBurned += _amount;
	}

    function burnFrom(address _from, uint256 _amount) public override
    {
        ERC20I.burnFrom(_from, _amount);
    }

    
}
// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

// File: cosmicBabies.sol

pragma solidity 0.8.7;



contract CosmicBabies is ERC721, ERC721Burnable, Ownable, ReentrancyGuard {

    using Strings for uint256;
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdTracker;

    CosmicLabs public cosmicNft;
    CosmicToken public cosmictoken;
    
    uint256 constant maxSupply = 2000;
    uint256 constant cutRequired = 1300;
    string public baseURI;
    string public baseExtension = ".json";

    bytes32 public merkleRoot = 0xaccf7d34fbd84c5cbcb9dc624ce046254c6c77b603b2de1ce6c3376632db7c4c;

    mapping (uint256 => uint256) lastBred; 

    constructor(string memory _initBaseURI, address cutAddress, address clabsAddress) ERC721("Cosmic Babies", "CBABIES")
    {
        setBaseURI(_initBaseURI);
        cosmicNft = CosmicLabs(clabsAddress);
        cosmictoken = CosmicToken(cutAddress);

        for(uint256 i=0;i<30;i++)
        {
            _tokenIdTracker.increment();
            _safeMint(msg.sender, totalToken());
        }
    }

    modifier onlySender {
        require(msg.sender == tx.origin);
        _;
    }

    function createBabies(uint256[] memory tokenIds) public nonReentrant onlySender
    {
        require(tokenIds.length > 1 && tokenIds.length <= 2, "You are sending incorrect amount of token ids");
        require(tokenIds[0] <= 1000 && tokenIds[1] <= 1000, "These are not genesis!");
        require(howManyDaysSinceBred(tokenIds[0]) >= 1 && howManyDaysSinceBred(tokenIds[1]) >= 1, "You need to wait 1 day to breed");
        require(cosmictoken.balanceOf(msg.sender) >= cutRequired, "You Don't Have 1300 Cosmic Tokens!");  
        require(totalToken() < maxSupply, "All babies have been born!");

        cosmictoken.transferFrom(msg.sender, address(this), cutRequired);

        lastBred[tokenIds[0]] = block.timestamp;
        lastBred[tokenIds[1]] = block.timestamp;
        
        _tokenIdTracker.increment();
        _safeMint(msg.sender, totalToken());
    }

    function burnAllCUT() external onlyOwner {
        cosmictoken.burn(address(this), cosmictoken.balanceOf(address(this)));
    }

    function howManyDaysSinceBred(uint256 tokenId) public view returns(uint256)
    {
        uint256 returndays;
        uint256 timeCalc = block.timestamp - lastBred[tokenId];
        returndays = timeCalc / 86400;
       
        return returndays;
    }


    function totalToken() public view returns (uint256) {
            return _tokenIdTracker.current();
    }

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

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }   
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory)
    {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : "";
    }

    function totalSupply() public view returns (uint256) {
            return _tokenIdTracker.current();
    }

    function walletOfOwner(address address_) public virtual view returns (uint256[] memory) {
        uint256 _balance = balanceOf(address_);
        uint256[] memory _tokens = new uint256[] (_balance);
        uint256 _index;
        uint256 _loopThrough = totalSupply();
        for (uint256 i = 0; i < _loopThrough; i++) {
            bool _exists = _exists(i);
            if (_exists) {
                if (ownerOf(i) == address_) { _tokens[_index] = i; _index++; }
            }
            else if (!_exists && _tokens[_balance - 1] == 0) { _loopThrough++; }
        }
        return _tokens;
    }   

    function multiTransferFrom(address from_, address to_, uint256[] calldata tokenIds_) public {
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            ERC721.transferFrom(from_, to_, tokenIds_[i]);
        }
    }
}
// File: babyVX.sol

pragma solidity 0.8.7;
/// SPDX-License-Identifier: MIT

error notAuthorizedToClaim();

contract CosmicBabyVX is ERC721, Ownable {

    using Address for address;
    using Strings for uint256;

    string public baseURI;
    string public baseExtension = ".json";

    uint256 public totalMinted = 0;

    CosmicBabies CosmicBabiesContract = CosmicBabies(0x4a4c6A157368CB7Aac3154D83Cf181436041a868);

    mapping (uint256 => bool) public babyClaimed;

    constructor(string memory _initBaseURI ) ERC721("Cosmic Babies VX", "BABYVX") 
    {
        setBaseURI(_initBaseURI);
    }

    modifier onlySender {
        require(msg.sender == tx.origin);
        _;
    }

    function claimVX(uint256[] memory tokenIDs) public onlySender 
    {
        for(uint256 i; i<tokenIDs.length; i++)
        {
            if(msg.sender != CosmicBabiesContract.ownerOf(tokenIDs[i]))
            {
                revert notAuthorizedToClaim();
            }

            babyClaimed[tokenIDs[i]] = true;  
            _mint(msg.sender, tokenIDs[i]);    
        }

        totalMinted += tokenIDs.length;
    }

    function withdrawContractEther(address payable recipient) external onlyOwner
    {
        recipient.transfer(address(this).balance);
    }
   
    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }
    function viewContractAddress() public view returns(address)
    {
        return address(CosmicBabiesContract);
    }

    function totalSupply() public view returns (uint256)
    {
        return totalMinted;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory)
    {
        require(_exists(tokenId), "ERC721AMetadata: URI query for nonexistent token");

        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : "";
    }

    function walletOfOwner(address address_) public virtual view returns (uint256[] memory) {
        uint256 _balance = balanceOf(address_);
        uint256[] memory _tokens = new uint256[] (_balance);
        uint256 _index;
        uint256 _loopThrough = totalSupply();
        for (uint256 i = 0; i < _loopThrough; i++) {
            bool _exists = _exists(i);
            if (_exists) {
                if (ownerOf(i) == address_) { _tokens[_index] = i; _index++; }
            }
            else if (!_exists && _tokens[_balance - 1] == 0) { _loopThrough++; }
        }
        return _tokens;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"notAuthorizedToClaim","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"babyClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"claimVX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","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":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"viewContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"}],"name":"withdrawContractEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526005608081905264173539b7b760d91b60a0908152620000289160089190620001ed565b506000600955600a80546001600160a01b031916734a4c6a157368cb7aac3154d83cf181436041a8681790553480156200006157600080fd5b506040516200210938038062002109833981016040819052620000849162000293565b604080518082018252601081526f086dee6dad2c64084c2c4d2cae640acb60831b6020808301918252835180850190945260068452650848284b2acb60d31b908401528151919291620000da91600091620001ed565b508051620000f0906001906020840190620001ed565b5050506200010d620001076200011f60201b60201c565b62000123565b620001188162000175565b50620003c2565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620001d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001e9906007906020840190620001ed565b5050565b828054620001fb906200036f565b90600052602060002090601f0160209004810192826200021f57600085556200026a565b82601f106200023a57805160ff19168380011785556200026a565b828001600101855582156200026a579182015b828111156200026a5782518255916020019190600101906200024d565b50620002789291506200027c565b5090565b5b808211156200027857600081556001016200027d565b60006020808385031215620002a757600080fd5b82516001600160401b0380821115620002bf57600080fd5b818501915085601f830112620002d457600080fd5b815181811115620002e957620002e9620003ac565b604051601f8201601f19908116603f01168101908382118183101715620003145762000314620003ac565b8160405282815288868487010111156200032d57600080fd5b600093505b8284101562000351578484018601518185018701529285019262000332565b82841115620003635760008684830101525b98975050505050505050565b600181811c908216806200038457607f821691505b60208210811415620003a657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611d3780620003d26000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de578063a2309ff811610097578063c87b56dd11610071578063c87b56dd14610348578063ca4a46b31461035b578063e985e9c51461036e578063f2fde38b146103aa57600080fd5b8063a2309ff814610324578063b88d4fde1461032d578063c66828621461034057600080fd5b8063715018a6146102cc5780637a9ebc15146102d45780638da5cb5b146102e557806395d89b41146102f6578063a16d605a146102fe578063a22cb4651461031157600080fd5b806342842e0e1161014b5780636352211e116101255780636352211e1461027b5780636c0360eb1461028e57806370a08231146102965780637102a7e1146102a957600080fd5b806342842e0e14610235578063438b63001461024857806355f804b31461026857600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb57806318160ddd1461021057806323b872dd14610222575b600080fd5b6101a66101a136600461187c565b6103bd565b60405190151581526020015b60405180910390f35b6101c361040f565b6040516101b29190611a89565b6101e36101de3660046118ff565b6104a1565b6040516001600160a01b0390911681526020016101b2565b61020e6102093660046117a3565b61053b565b005b6009545b6040519081526020016101b2565b61020e6102303660046116af565b610651565b61020e6102433660046116af565b610682565b61025b61025636600461163c565b61069d565b6040516101b29190611a45565b61020e6102763660046118b6565b6107e1565b6101e36102893660046118ff565b610822565b6101c3610899565b6102146102a436600461163c565b610927565b6101a66102b73660046118ff565b600b6020526000908152604090205460ff1681565b61020e6109ae565b600a546001600160a01b03166101e3565b6006546001600160a01b03166101e3565b6101c36109e4565b61020e61030c36600461163c565b6109f3565b61020e61031f366004611770565b610a52565b61021460095481565b61020e61033b3660046116f0565b610a5d565b6101c3610a95565b6101c36103563660046118ff565b610aa2565b61020e6103693660046117cf565b610b81565b6101a661037c366004611676565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61020e6103b836600461163c565b610cff565b60006001600160e01b031982166380ac58cd60e01b14806103ee57506001600160e01b03198216635b5e139f60e01b145b8061040957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461041e90611c14565b80601f016020809104026020016040519081016040528092919081815260200182805461044a90611c14565b80156104975780601f1061046c57610100808354040283529160200191610497565b820191906000526020600020905b81548152906001019060200180831161047a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661051f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061054682610822565b9050806001600160a01b0316836001600160a01b031614156105b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610516565b336001600160a01b03821614806105d057506105d0813361037c565b6106425760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610516565b61064c8383610d9a565b505050565b61065b3382610e08565b6106775760405162461bcd60e51b815260040161051690611b23565b61064c838383610eff565b61064c83838360405180602001604052806000815250610a5d565b606060006106aa83610927565b905060008167ffffffffffffffff8111156106c7576106c7611cc0565b6040519080825280602002602001820160405280156106f0578160200160208202803683370190505b5090506000806106ff60095490565b905060005b818110156107d6576000818152600260205260409020546001600160a01b03161580159061077f57876001600160a01b031661073f83610822565b6001600160a01b0316141561077a578185858151811061076157610761611caa565b60209081029190910101528361077681611c4f565b9450505b6107c3565b801580156107b0575084610794600188611bd1565b815181106107a4576107a4611caa565b60200260200101516000145b156107c357826107bf81611c4f565b9350505b50806107ce81611c4f565b915050610704565b509195945050505050565b6006546001600160a01b0316331461080b5760405162461bcd60e51b815260040161051690611aee565b805161081e90600790602084019061154b565b5050565b6000818152600260205260408120546001600160a01b0316806104095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610516565b600780546108a690611c14565b80601f01602080910402602001604051908101604052809291908181526020018280546108d290611c14565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b505050505081565b60006001600160a01b0382166109925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610516565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146109d85760405162461bcd60e51b815260040161051690611aee565b6109e2600061109b565b565b60606001805461041e90611c14565b6006546001600160a01b03163314610a1d5760405162461bcd60e51b815260040161051690611aee565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801561081e573d6000803e3d6000fd5b61081e3383836110ed565b610a673383610e08565b610a835760405162461bcd60e51b815260040161051690611b23565b610a8f848484846111bc565b50505050565b600880546108a690611c14565b6000818152600260205260409020546060906001600160a01b0316610b225760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610516565b6000610b2c6111ef565b90506000815111610b4c5760405180602001604052806000815250610b7a565b80610b56846111fe565b6008604051602001610b6a93929190611944565b6040516020818303038152906040525b9392505050565b333214610b8d57600080fd5b60005b8151811015610ce357600a5482516001600160a01b0390911690636352211e90849084908110610bc257610bc2611caa565b60200260200101516040518263ffffffff1660e01b8152600401610be891815260200190565b60206040518083038186803b158015610c0057600080fd5b505afa158015610c14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c389190611659565b6001600160a01b0316336001600160a01b031614610c6957604051638443e3eb60e01b815260040160405180910390fd5b6001600b6000848481518110610c8157610c81611caa565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610cd133838381518110610cc457610cc4611caa565b60200260200101516112fc565b80610cdb81611c4f565b915050610b90565b50805160096000828254610cf79190611ba5565b909155505050565b6006546001600160a01b03163314610d295760405162461bcd60e51b815260040161051690611aee565b6001600160a01b038116610d8e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610516565b610d978161109b565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dcf82610822565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610e815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610516565b6000610e8c83610822565b9050806001600160a01b0316846001600160a01b03161480610ec75750836001600160a01b0316610ebc846104a1565b6001600160a01b0316145b80610ef757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610f1282610822565b6001600160a01b031614610f765760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610516565b6001600160a01b038216610fd85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610516565b610fe3600082610d9a565b6001600160a01b038316600090815260036020526040812080546001929061100c908490611bd1565b90915550506001600160a01b038216600090815260036020526040812080546001929061103a908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561114f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610516565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111c7848484610eff565b6111d38484848461143e565b610a8f5760405162461bcd60e51b815260040161051690611a9c565b60606007805461041e90611c14565b6060816112225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561124c578061123681611c4f565b91506112459050600a83611bbd565b9150611226565b60008167ffffffffffffffff81111561126757611267611cc0565b6040519080825280601f01601f191660200182016040528015611291576020820181803683370190505b5090505b8415610ef7576112a6600183611bd1565b91506112b3600a86611c6a565b6112be906030611ba5565b60f81b8183815181106112d3576112d3611caa565b60200101906001600160f81b031916908160001a9053506112f5600a86611bbd565b9450611295565b6001600160a01b0382166113525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610516565b6000818152600260205260409020546001600160a01b0316156113b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610516565b6001600160a01b03821660009081526003602052604081208054600192906113e0908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561154057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611482903390899088908890600401611a08565b602060405180830381600087803b15801561149c57600080fd5b505af19250505080156114cc575060408051601f3d908101601f191682019092526114c991810190611899565b60015b611526573d8080156114fa576040519150601f19603f3d011682016040523d82523d6000602084013e6114ff565b606091505b50805161151e5760405162461bcd60e51b815260040161051690611a9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef7565b506001949350505050565b82805461155790611c14565b90600052602060002090601f01602090048101928261157957600085556115bf565b82601f1061159257805160ff19168380011785556115bf565b828001600101855582156115bf579182015b828111156115bf5782518255916020019190600101906115a4565b506115cb9291506115cf565b5090565b5b808211156115cb57600081556001016115d0565b600067ffffffffffffffff8311156115fe576115fe611cc0565b611611601f8401601f1916602001611b74565b905082815283838301111561162557600080fd5b828260208301376000602084830101529392505050565b60006020828403121561164e57600080fd5b8135610b7a81611cd6565b60006020828403121561166b57600080fd5b8151610b7a81611cd6565b6000806040838503121561168957600080fd5b823561169481611cd6565b915060208301356116a481611cd6565b809150509250929050565b6000806000606084860312156116c457600080fd5b83356116cf81611cd6565b925060208401356116df81611cd6565b929592945050506040919091013590565b6000806000806080858703121561170657600080fd5b843561171181611cd6565b9350602085013561172181611cd6565b925060408501359150606085013567ffffffffffffffff81111561174457600080fd5b8501601f8101871361175557600080fd5b611764878235602084016115e4565b91505092959194509250565b6000806040838503121561178357600080fd5b823561178e81611cd6565b9150602083013580151581146116a457600080fd5b600080604083850312156117b657600080fd5b82356117c181611cd6565b946020939093013593505050565b600060208083850312156117e257600080fd5b823567ffffffffffffffff808211156117fa57600080fd5b818501915085601f83011261180e57600080fd5b81358181111561182057611820611cc0565b8060051b9150611831848301611b74565b8181528481019084860184860187018a101561184c57600080fd5b600095505b8386101561186f578035835260019590950194918601918601611851565b5098975050505050505050565b60006020828403121561188e57600080fd5b8135610b7a81611ceb565b6000602082840312156118ab57600080fd5b8151610b7a81611ceb565b6000602082840312156118c857600080fd5b813567ffffffffffffffff8111156118df57600080fd5b8201601f810184136118f057600080fd5b610ef7848235602084016115e4565b60006020828403121561191157600080fd5b5035919050565b60008151808452611930816020860160208601611be8565b601f01601f19169290920160200192915050565b6000845160206119578285838a01611be8565b85519184019161196a8184848a01611be8565b8554920191600090600181811c908083168061198757607f831692505b8583108114156119a557634e487b7160e01b85526022600452602485fd5b8080156119b957600181146119ca576119f7565b60ff198516885283880195506119f7565b60008b81526020902060005b858110156119ef5781548a8201529084019088016119d6565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a3b90830184611918565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611a7d57835183529284019291840191600101611a61565b50909695505050505050565b602081526000610b7a6020830184611918565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611b9d57611b9d611cc0565b604052919050565b60008219821115611bb857611bb8611c7e565b500190565b600082611bcc57611bcc611c94565b500490565b600082821015611be357611be3611c7e565b500390565b60005b83811015611c03578181015183820152602001611beb565b83811115610a8f5750506000910152565b600181811c90821680611c2857607f821691505b60208210811415611c4957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c6357611c63611c7e565b5060010190565b600082611c7957611c79611c94565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9757600080fd5b6001600160e01b031981168114610d9757600080fdfea2646970667358221220bbf668a919d183cf6992de277c2322a9b940b9e92207ddd97b975e176da9a48b64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f636f736d69636c6162732e6d7970696e6174612e636c6f75642f697066732f516d526779456b5a5a784642464a67555a7269787a7773356a7a3234677279666648774d78344a666d6b657539352f00000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de578063a2309ff811610097578063c87b56dd11610071578063c87b56dd14610348578063ca4a46b31461035b578063e985e9c51461036e578063f2fde38b146103aa57600080fd5b8063a2309ff814610324578063b88d4fde1461032d578063c66828621461034057600080fd5b8063715018a6146102cc5780637a9ebc15146102d45780638da5cb5b146102e557806395d89b41146102f6578063a16d605a146102fe578063a22cb4651461031157600080fd5b806342842e0e1161014b5780636352211e116101255780636352211e1461027b5780636c0360eb1461028e57806370a08231146102965780637102a7e1146102a957600080fd5b806342842e0e14610235578063438b63001461024857806355f804b31461026857600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb57806318160ddd1461021057806323b872dd14610222575b600080fd5b6101a66101a136600461187c565b6103bd565b60405190151581526020015b60405180910390f35b6101c361040f565b6040516101b29190611a89565b6101e36101de3660046118ff565b6104a1565b6040516001600160a01b0390911681526020016101b2565b61020e6102093660046117a3565b61053b565b005b6009545b6040519081526020016101b2565b61020e6102303660046116af565b610651565b61020e6102433660046116af565b610682565b61025b61025636600461163c565b61069d565b6040516101b29190611a45565b61020e6102763660046118b6565b6107e1565b6101e36102893660046118ff565b610822565b6101c3610899565b6102146102a436600461163c565b610927565b6101a66102b73660046118ff565b600b6020526000908152604090205460ff1681565b61020e6109ae565b600a546001600160a01b03166101e3565b6006546001600160a01b03166101e3565b6101c36109e4565b61020e61030c36600461163c565b6109f3565b61020e61031f366004611770565b610a52565b61021460095481565b61020e61033b3660046116f0565b610a5d565b6101c3610a95565b6101c36103563660046118ff565b610aa2565b61020e6103693660046117cf565b610b81565b6101a661037c366004611676565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61020e6103b836600461163c565b610cff565b60006001600160e01b031982166380ac58cd60e01b14806103ee57506001600160e01b03198216635b5e139f60e01b145b8061040957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461041e90611c14565b80601f016020809104026020016040519081016040528092919081815260200182805461044a90611c14565b80156104975780601f1061046c57610100808354040283529160200191610497565b820191906000526020600020905b81548152906001019060200180831161047a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661051f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061054682610822565b9050806001600160a01b0316836001600160a01b031614156105b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610516565b336001600160a01b03821614806105d057506105d0813361037c565b6106425760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610516565b61064c8383610d9a565b505050565b61065b3382610e08565b6106775760405162461bcd60e51b815260040161051690611b23565b61064c838383610eff565b61064c83838360405180602001604052806000815250610a5d565b606060006106aa83610927565b905060008167ffffffffffffffff8111156106c7576106c7611cc0565b6040519080825280602002602001820160405280156106f0578160200160208202803683370190505b5090506000806106ff60095490565b905060005b818110156107d6576000818152600260205260409020546001600160a01b03161580159061077f57876001600160a01b031661073f83610822565b6001600160a01b0316141561077a578185858151811061076157610761611caa565b60209081029190910101528361077681611c4f565b9450505b6107c3565b801580156107b0575084610794600188611bd1565b815181106107a4576107a4611caa565b60200260200101516000145b156107c357826107bf81611c4f565b9350505b50806107ce81611c4f565b915050610704565b509195945050505050565b6006546001600160a01b0316331461080b5760405162461bcd60e51b815260040161051690611aee565b805161081e90600790602084019061154b565b5050565b6000818152600260205260408120546001600160a01b0316806104095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610516565b600780546108a690611c14565b80601f01602080910402602001604051908101604052809291908181526020018280546108d290611c14565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b505050505081565b60006001600160a01b0382166109925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610516565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146109d85760405162461bcd60e51b815260040161051690611aee565b6109e2600061109b565b565b60606001805461041e90611c14565b6006546001600160a01b03163314610a1d5760405162461bcd60e51b815260040161051690611aee565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801561081e573d6000803e3d6000fd5b61081e3383836110ed565b610a673383610e08565b610a835760405162461bcd60e51b815260040161051690611b23565b610a8f848484846111bc565b50505050565b600880546108a690611c14565b6000818152600260205260409020546060906001600160a01b0316610b225760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610516565b6000610b2c6111ef565b90506000815111610b4c5760405180602001604052806000815250610b7a565b80610b56846111fe565b6008604051602001610b6a93929190611944565b6040516020818303038152906040525b9392505050565b333214610b8d57600080fd5b60005b8151811015610ce357600a5482516001600160a01b0390911690636352211e90849084908110610bc257610bc2611caa565b60200260200101516040518263ffffffff1660e01b8152600401610be891815260200190565b60206040518083038186803b158015610c0057600080fd5b505afa158015610c14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c389190611659565b6001600160a01b0316336001600160a01b031614610c6957604051638443e3eb60e01b815260040160405180910390fd5b6001600b6000848481518110610c8157610c81611caa565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610cd133838381518110610cc457610cc4611caa565b60200260200101516112fc565b80610cdb81611c4f565b915050610b90565b50805160096000828254610cf79190611ba5565b909155505050565b6006546001600160a01b03163314610d295760405162461bcd60e51b815260040161051690611aee565b6001600160a01b038116610d8e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610516565b610d978161109b565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dcf82610822565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610e815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610516565b6000610e8c83610822565b9050806001600160a01b0316846001600160a01b03161480610ec75750836001600160a01b0316610ebc846104a1565b6001600160a01b0316145b80610ef757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610f1282610822565b6001600160a01b031614610f765760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610516565b6001600160a01b038216610fd85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610516565b610fe3600082610d9a565b6001600160a01b038316600090815260036020526040812080546001929061100c908490611bd1565b90915550506001600160a01b038216600090815260036020526040812080546001929061103a908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561114f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610516565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111c7848484610eff565b6111d38484848461143e565b610a8f5760405162461bcd60e51b815260040161051690611a9c565b60606007805461041e90611c14565b6060816112225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561124c578061123681611c4f565b91506112459050600a83611bbd565b9150611226565b60008167ffffffffffffffff81111561126757611267611cc0565b6040519080825280601f01601f191660200182016040528015611291576020820181803683370190505b5090505b8415610ef7576112a6600183611bd1565b91506112b3600a86611c6a565b6112be906030611ba5565b60f81b8183815181106112d3576112d3611caa565b60200101906001600160f81b031916908160001a9053506112f5600a86611bbd565b9450611295565b6001600160a01b0382166113525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610516565b6000818152600260205260409020546001600160a01b0316156113b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610516565b6001600160a01b03821660009081526003602052604081208054600192906113e0908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561154057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611482903390899088908890600401611a08565b602060405180830381600087803b15801561149c57600080fd5b505af19250505080156114cc575060408051601f3d908101601f191682019092526114c991810190611899565b60015b611526573d8080156114fa576040519150601f19603f3d011682016040523d82523d6000602084013e6114ff565b606091505b50805161151e5760405162461bcd60e51b815260040161051690611a9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef7565b506001949350505050565b82805461155790611c14565b90600052602060002090601f01602090048101928261157957600085556115bf565b82601f1061159257805160ff19168380011785556115bf565b828001600101855582156115bf579182015b828111156115bf5782518255916020019190600101906115a4565b506115cb9291506115cf565b5090565b5b808211156115cb57600081556001016115d0565b600067ffffffffffffffff8311156115fe576115fe611cc0565b611611601f8401601f1916602001611b74565b905082815283838301111561162557600080fd5b828260208301376000602084830101529392505050565b60006020828403121561164e57600080fd5b8135610b7a81611cd6565b60006020828403121561166b57600080fd5b8151610b7a81611cd6565b6000806040838503121561168957600080fd5b823561169481611cd6565b915060208301356116a481611cd6565b809150509250929050565b6000806000606084860312156116c457600080fd5b83356116cf81611cd6565b925060208401356116df81611cd6565b929592945050506040919091013590565b6000806000806080858703121561170657600080fd5b843561171181611cd6565b9350602085013561172181611cd6565b925060408501359150606085013567ffffffffffffffff81111561174457600080fd5b8501601f8101871361175557600080fd5b611764878235602084016115e4565b91505092959194509250565b6000806040838503121561178357600080fd5b823561178e81611cd6565b9150602083013580151581146116a457600080fd5b600080604083850312156117b657600080fd5b82356117c181611cd6565b946020939093013593505050565b600060208083850312156117e257600080fd5b823567ffffffffffffffff808211156117fa57600080fd5b818501915085601f83011261180e57600080fd5b81358181111561182057611820611cc0565b8060051b9150611831848301611b74565b8181528481019084860184860187018a101561184c57600080fd5b600095505b8386101561186f578035835260019590950194918601918601611851565b5098975050505050505050565b60006020828403121561188e57600080fd5b8135610b7a81611ceb565b6000602082840312156118ab57600080fd5b8151610b7a81611ceb565b6000602082840312156118c857600080fd5b813567ffffffffffffffff8111156118df57600080fd5b8201601f810184136118f057600080fd5b610ef7848235602084016115e4565b60006020828403121561191157600080fd5b5035919050565b60008151808452611930816020860160208601611be8565b601f01601f19169290920160200192915050565b6000845160206119578285838a01611be8565b85519184019161196a8184848a01611be8565b8554920191600090600181811c908083168061198757607f831692505b8583108114156119a557634e487b7160e01b85526022600452602485fd5b8080156119b957600181146119ca576119f7565b60ff198516885283880195506119f7565b60008b81526020902060005b858110156119ef5781548a8201529084019088016119d6565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a3b90830184611918565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611a7d57835183529284019291840191600101611a61565b50909695505050505050565b602081526000610b7a6020830184611918565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611b9d57611b9d611cc0565b604052919050565b60008219821115611bb857611bb8611c7e565b500190565b600082611bcc57611bcc611c94565b500490565b600082821015611be357611be3611c7e565b500390565b60005b83811015611c03578181015183820152602001611beb565b83811115610a8f5750506000910152565b600181811c90821680611c2857607f821691505b60208210811415611c4957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c6357611c63611c7e565b5060010190565b600082611c7957611c79611c94565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9757600080fd5b6001600160e01b031981168114610d9757600080fdfea2646970667358221220bbf668a919d183cf6992de277c2322a9b940b9e92207ddd97b975e176da9a48b64736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f636f736d69636c6162732e6d7970696e6174612e636c6f75642f697066732f516d526779456b5a5a784642464a67555a7269787a7773356a7a3234677279666648774d78344a666d6b657539352f00000000000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string): https://cosmiclabs.mypinata.cloud/ipfs/QmRgyEkZZxFBFJgUZrixzws5jz24gryffHwMx4Jfmkeu95/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000056
Arg [2] : 68747470733a2f2f636f736d69636c6162732e6d7970696e6174612e636c6f75
Arg [3] : 642f697066732f516d526779456b5a5a784642464a67555a7269787a7773356a
Arg [4] : 7a3234677279666648774d78344a666d6b657539352f00000000000000000000


Deployed Bytecode Sourcemap

138770:2665:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90790:305;;;;;;:::i;:::-;;:::i;:::-;;;8990:14:1;;8983:22;8965:41;;8953:2;8938:18;90790:305:0;;;;;;;;91735:100;;;:::i;:::-;;;;;;;:::i;93294:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7651:32:1;;;7633:51;;7621:2;7606:18;93294:221:0;7487:203:1;92817:411:0;;;;;;:::i;:::-;;:::i;:::-;;140217:95;140293:11;;140217:95;;;15766:25:1;;;15754:2;15739:18;140217:95:0;15620:177:1;94044:339:0;;;;;;:::i;:::-;;:::i;94454:185::-;;;;;;:::i;:::-;;:::i;140816:614::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;139979:104::-;;;;;;:::i;:::-;;:::i;91429:239::-;;;;;;:::i;:::-;;:::i;138886:21::-;;;:::i;91159:208::-;;;;;;:::i;:::-;;:::i;139100:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;54689:103;;;:::i;140089:120::-;140180:20;;-1:-1:-1;;;;;140180:20:0;140089:120;;54038:87;54111:6;;-1:-1:-1;;;;;54111:6:0;54038:87;;91904:104;;;:::i;139826:142::-;;;;;;:::i;:::-;;:::i;93587:155::-;;;;;;:::i;:::-;;:::i;138960:30::-;;;;;;94710:328;;;;;;:::i;:::-;;:::i;138914:37::-;;;:::i;140432:376::-;;;;;;:::i;:::-;;:::i;139379:439::-;;;;;;:::i;:::-;;:::i;93813:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;93934:25:0;;;93910:4;93934:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;93813:164;54947:201;;;;;;:::i;:::-;;:::i;90790:305::-;90892:4;-1:-1:-1;;;;;;90929:40:0;;-1:-1:-1;;;90929:40:0;;:105;;-1:-1:-1;;;;;;;90986:48:0;;-1:-1:-1;;;90986:48:0;90929:105;:158;;;-1:-1:-1;;;;;;;;;;66931:40:0;;;91051:36;90909:178;90790:305;-1:-1:-1;;90790:305:0:o;91735:100::-;91789:13;91822:5;91815:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91735:100;:::o;93294:221::-;93370:7;96637:16;;;:7;:16;;;;;;-1:-1:-1;;;;;96637:16:0;93390:73;;;;-1:-1:-1;;;93390:73:0;;14228:2:1;93390:73:0;;;14210:21:1;14267:2;14247:18;;;14240:30;14306:34;14286:18;;;14279:62;-1:-1:-1;;;14357:18:1;;;14350:42;14409:19;;93390:73:0;;;;;;;;;-1:-1:-1;93483:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;93483:24:0;;93294:221::o;92817:411::-;92898:13;92914:23;92929:7;92914:14;:23::i;:::-;92898:39;;92962:5;-1:-1:-1;;;;;92956:11:0;:2;-1:-1:-1;;;;;92956:11:0;;;92948:57;;;;-1:-1:-1;;;92948:57:0;;15002:2:1;92948:57:0;;;14984:21:1;15041:2;15021:18;;;15014:30;15080:34;15060:18;;;15053:62;-1:-1:-1;;;15131:18:1;;;15124:31;15172:19;;92948:57:0;14800:397:1;92948:57:0;37592:10;-1:-1:-1;;;;;93040:21:0;;;;:62;;-1:-1:-1;93065:37:0;93082:5;37592:10;93813:164;:::i;93065:37::-;93018:168;;;;-1:-1:-1;;;93018:168:0;;12621:2:1;93018:168:0;;;12603:21:1;12660:2;12640:18;;;12633:30;12699:34;12679:18;;;12672:62;12770:26;12750:18;;;12743:54;12814:19;;93018:168:0;12419:420:1;93018:168:0;93199:21;93208:2;93212:7;93199:8;:21::i;:::-;92887:341;92817:411;;:::o;94044:339::-;94239:41;37592:10;94272:7;94239:18;:41::i;:::-;94231:103;;;;-1:-1:-1;;;94231:103:0;;;;;;;:::i;:::-;94347:28;94357:4;94363:2;94367:7;94347:9;:28::i;94454:185::-;94592:39;94609:4;94615:2;94619:7;94592:39;;;;;;;;;;;;:16;:39::i;140816:614::-;140886:16;140915;140934:19;140944:8;140934:9;:19::i;:::-;140915:38;;140964:24;141006:8;140991:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;140991:24:0;;140964:51;;141026:14;141051:20;141074:13;140293:11;;;140217:95;141074:13;141051:36;;141103:9;141098:300;141122:12;141118:1;:16;141098:300;;;141156:12;96637:16;;;:7;:16;;;;;;-1:-1:-1;;;;;96637:16:0;:30;;;;141196:191;;141246:8;-1:-1:-1;;;;;141232:22:0;:10;141240:1;141232:7;:10::i;:::-;-1:-1:-1;;;;;141232:22:0;;141228:62;;;141276:1;141258:7;141266:6;141258:15;;;;;;;;:::i;:::-;;;;;;;;;;:19;141279:8;;;;:::i;:::-;;;;141228:62;141196:191;;;141329:7;141328:8;:38;;;;-1:-1:-1;141340:7:0;141348:12;141359:1;141348:8;:12;:::i;:::-;141340:21;;;;;;;;:::i;:::-;;;;;;;141365:1;141340:26;141328:38;141324:63;;;141370:14;;;;:::i;:::-;;;;141324:63;-1:-1:-1;141136:3:0;;;;:::i;:::-;;;;141098:300;;;-1:-1:-1;141415:7:0;;140816:614;-1:-1:-1;;;;;140816:614:0:o;139979:104::-;54111:6;;-1:-1:-1;;;;;54111:6:0;37592:10;54258:23;54250:68;;;;-1:-1:-1;;;54250:68:0;;;;;;;:::i;:::-;140054:21;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;:::-;;139979:104:::0;:::o;91429:239::-;91501:7;91537:16;;;:7;:16;;;;;;-1:-1:-1;;;;;91537:16:0;91572:19;91564:73;;;;-1:-1:-1;;;91564:73:0;;13457:2:1;91564:73:0;;;13439:21:1;13496:2;13476:18;;;13469:30;13535:34;13515:18;;;13508:62;-1:-1:-1;;;13586:18:1;;;13579:39;13635:19;;91564:73:0;13255:405:1;138886:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;91159:208::-;91231:7;-1:-1:-1;;;;;91259:19:0;;91251:74;;;;-1:-1:-1;;;91251:74:0;;13046:2:1;91251:74:0;;;13028:21:1;13085:2;13065:18;;;13058:30;13124:34;13104:18;;;13097:62;-1:-1:-1;;;13175:18:1;;;13168:40;13225:19;;91251:74:0;12844:406:1;91251:74:0;-1:-1:-1;;;;;;91343:16:0;;;;;:9;:16;;;;;;;91159:208::o;54689:103::-;54111:6;;-1:-1:-1;;;;;54111:6:0;37592:10;54258:23;54250:68;;;;-1:-1:-1;;;54250:68:0;;;;;;;:::i;:::-;54754:30:::1;54781:1;54754:18;:30::i;:::-;54689:103::o:0;91904:104::-;91960:13;91993:7;91986:14;;;;;:::i;139826:142::-;54111:6;;-1:-1:-1;;;;;54111:6:0;37592:10;54258:23;54250:68;;;;-1:-1:-1;;;54250:68:0;;;;;;;:::i;:::-;139919:41:::1;::::0;-1:-1:-1;;;;;139919:18:0;::::1;::::0;139938:21:::1;139919:41:::0;::::1;;;::::0;::::1;::::0;;;139938:21;139919:18;:41;::::1;;;;;;;;;;;;;::::0;::::1;;;;93587:155:::0;93682:52;37592:10;93715:8;93725;93682:18;:52::i;94710:328::-;94885:41;37592:10;94918:7;94885:18;:41::i;:::-;94877:103;;;;-1:-1:-1;;;94877:103:0;;;;;;;:::i;:::-;94991:39;95005:4;95011:2;95015:7;95024:5;94991:13;:39::i;:::-;94710:328;;;;:::o;138914:37::-;;;;;;;:::i;140432:376::-;96613:4;96637:16;;;:7;:16;;;;;;140505:13;;-1:-1:-1;;;;;96637:16:0;140536:77;;;;-1:-1:-1;;;140536:77:0;;9443:2:1;140536:77:0;;;9425:21:1;9482:2;9462:18;;;9455:30;9521:34;9501:18;;;9494:62;-1:-1:-1;;;9572:18:1;;;9565:46;9628:19;;140536:77:0;9241:412:1;140536:77:0;140626:28;140657:10;:8;:10::i;:::-;140626:41;;140716:1;140691:14;140685:28;:32;:115;;;;;;;;;;;;;;;;;140744:14;140760:18;:7;:16;:18::i;:::-;140780:13;140727:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;140685:115;140678:122;140432:376;-1:-1:-1;;;140432:376:0:o;139379:439::-;139327:10;139341:9;139327:23;139319:32;;;;;;139462:9:::1;139458:310;139475:8;:15;139473:1;:17;139458:310;;;139538:20;::::0;139567:11;;-1:-1:-1;;;;;139538:20:0;;::::1;::::0;:28:::1;::::0;139567:8;;139576:1;;139567:11;::::1;;;;;:::i;:::-;;;;;;;139538:41;;;;;;;;;;;;;15766:25:1::0;;15754:2;15739:18;;15620:177;139538:41:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;139524:55:0::1;:10;-1:-1:-1::0;;;;;139524:55:0::1;;139521:137;;139620:22;;-1:-1:-1::0;;;139620:22:0::1;;;;;;;;;;;139521:137;139701:4;139674:11;:24;139686:8;139695:1;139686:11;;;;;;;;:::i;:::-;;;;;;;139674:24;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;139722:30;139728:10;139740:8;139749:1;139740:11;;;;;;;;:::i;:::-;;;;;;;139722:5;:30::i;:::-;139492:3:::0;::::1;::::0;::::1;:::i;:::-;;;;139458:310;;;;139795:8;:15;139780:11;;:30;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;139379:439:0:o;54947:201::-;54111:6;;-1:-1:-1;;;;;54111:6:0;37592:10;54258:23;54250:68;;;;-1:-1:-1;;;54250:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;55036:22:0;::::1;55028:73;;;::::0;-1:-1:-1;;;55028:73:0;;10279:2:1;55028:73:0::1;::::0;::::1;10261:21:1::0;10318:2;10298:18;;;10291:30;10357:34;10337:18;;;10330:62;-1:-1:-1;;;10408:18:1;;;10401:36;10454:19;;55028:73:0::1;10077:402:1::0;55028:73:0::1;55112:28;55131:8;55112:18;:28::i;:::-;54947:201:::0;:::o;100694:174::-;100769:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;100769:29:0;-1:-1:-1;;;;;100769:29:0;;;;;;;;:24;;100823:23;100769:24;100823:14;:23::i;:::-;-1:-1:-1;;;;;100814:46:0;;;;;;;;;;;100694:174;;:::o;96842:348::-;96935:4;96637:16;;;:7;:16;;;;;;-1:-1:-1;;;;;96637:16:0;96952:73;;;;-1:-1:-1;;;96952:73:0;;12208:2:1;96952:73:0;;;12190:21:1;12247:2;12227:18;;;12220:30;12286:34;12266:18;;;12259:62;-1:-1:-1;;;12337:18:1;;;12330:42;12389:19;;96952:73:0;12006:408:1;96952:73:0;97036:13;97052:23;97067:7;97052:14;:23::i;:::-;97036:39;;97105:5;-1:-1:-1;;;;;97094:16:0;:7;-1:-1:-1;;;;;97094:16:0;;:51;;;;97138:7;-1:-1:-1;;;;;97114:31:0;:20;97126:7;97114:11;:20::i;:::-;-1:-1:-1;;;;;97114:31:0;;97094:51;:87;;;-1:-1:-1;;;;;;93934:25:0;;;93910:4;93934:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;97149:32;97086:96;96842:348;-1:-1:-1;;;;96842:348:0:o;99951:625::-;100110:4;-1:-1:-1;;;;;100083:31:0;:23;100098:7;100083:14;:23::i;:::-;-1:-1:-1;;;;;100083:31:0;;100075:81;;;;-1:-1:-1;;;100075:81:0;;10686:2:1;100075:81:0;;;10668:21:1;10725:2;10705:18;;;10698:30;10764:34;10744:18;;;10737:62;-1:-1:-1;;;10815:18:1;;;10808:35;10860:19;;100075:81:0;10484:401:1;100075:81:0;-1:-1:-1;;;;;100175:16:0;;100167:65;;;;-1:-1:-1;;;100167:65:0;;11449:2:1;100167:65:0;;;11431:21:1;11488:2;11468:18;;;11461:30;11527:34;11507:18;;;11500:62;-1:-1:-1;;;11578:18:1;;;11571:34;11622:19;;100167:65:0;11247:400:1;100167:65:0;100349:29;100366:1;100370:7;100349:8;:29::i;:::-;-1:-1:-1;;;;;100391:15:0;;;;;;:9;:15;;;;;:20;;100410:1;;100391:15;:20;;100410:1;;100391:20;:::i;:::-;;;;-1:-1:-1;;;;;;;100422:13:0;;;;;;:9;:13;;;;;:18;;100439:1;;100422:13;:18;;100439:1;;100422:18;:::i;:::-;;;;-1:-1:-1;;100451:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;100451:21:0;-1:-1:-1;;;;;100451:21:0;;;;;;;;;100490:27;;100451:16;;100490:27;;;;;;;92887:341;92817:411;;:::o;55308:191::-;55401:6;;;-1:-1:-1;;;;;55418:17:0;;;-1:-1:-1;;;;;;55418:17:0;;;;;;;55451:40;;55401:6;;;55418:17;55401:6;;55451:40;;55382:16;;55451:40;55371:128;55308:191;:::o;101010:315::-;101165:8;-1:-1:-1;;;;;101156:17:0;:5;-1:-1:-1;;;;;101156:17:0;;;101148:55;;;;-1:-1:-1;;;101148:55:0;;11854:2:1;101148:55:0;;;11836:21:1;11893:2;11873:18;;;11866:30;11932:27;11912:18;;;11905:55;11977:18;;101148:55:0;11652:349:1;101148:55:0;-1:-1:-1;;;;;101214:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;101214:46:0;;;;;;;;;;101276:41;;8965::1;;;101276::0;;8938:18:1;101276:41:0;;;;;;;101010:315;;;:::o;95920:::-;96077:28;96087:4;96093:2;96097:7;96077:9;:28::i;:::-;96124:48;96147:4;96153:2;96157:7;96166:5;96124:22;:48::i;:::-;96116:111;;;;-1:-1:-1;;;96116:111:0;;;;;;;:::i;140318:108::-;140378:13;140411:7;140404:14;;;;;:::i;35074:723::-;35130:13;35351:10;35347:53;;-1:-1:-1;;35378:10:0;;;;;;;;;;;;-1:-1:-1;;;35378:10:0;;;;;35074:723::o;35347:53::-;35425:5;35410:12;35466:78;35473:9;;35466:78;;35499:8;;;;:::i;:::-;;-1:-1:-1;35522:10:0;;-1:-1:-1;35530:2:0;35522:10;;:::i;:::-;;;35466:78;;;35554:19;35586:6;35576:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35576:17:0;;35554:39;;35604:154;35611:10;;35604:154;;35638:11;35648:1;35638:11;;:::i;:::-;;-1:-1:-1;35707:10:0;35715:2;35707:5;:10;:::i;:::-;35694:24;;:2;:24;:::i;:::-;35681:39;;35664:6;35671;35664:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;35664:56:0;;;;;;;;-1:-1:-1;35735:11:0;35744:2;35735:11;;:::i;:::-;;;35604:154;;98526:439;-1:-1:-1;;;;;98606:16:0;;98598:61;;;;-1:-1:-1;;;98598:61:0;;13867:2:1;98598:61:0;;;13849:21:1;;;13886:18;;;13879:30;13945:34;13925:18;;;13918:62;13997:18;;98598:61:0;13665:356:1;98598:61:0;96613:4;96637:16;;;:7;:16;;;;;;-1:-1:-1;;;;;96637:16:0;:30;98670:58;;;;-1:-1:-1;;;98670:58:0;;11092:2:1;98670:58:0;;;11074:21:1;11131:2;11111:18;;;11104:30;11170;11150:18;;;11143:58;11218:18;;98670:58:0;10890:352:1;98670:58:0;-1:-1:-1;;;;;98799:13:0;;;;;;:9;:13;;;;;:18;;98816:1;;98799:13;:18;;98816:1;;98799:18;:::i;:::-;;;;-1:-1:-1;;98828:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;98828:21:0;-1:-1:-1;;;;;98828:21:0;;;;;;;;98867:33;;98828:16;;;98867:33;;98828:16;;98867:33;140054:21:::1;139979:104:::0;:::o;101890:799::-;102045:4;-1:-1:-1;;;;;102066:13:0;;57034:19;:23;102062:620;;102102:72;;-1:-1:-1;;;102102:72:0;;-1:-1:-1;;;;;102102:36:0;;;;;:72;;37592:10;;102153:4;;102159:7;;102168:5;;102102:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;102102:72:0;;;;;;;;-1:-1:-1;;102102:72:0;;;;;;;;;;;;:::i;:::-;;;102098:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;102344:13:0;;102340:272;;102387:60;;-1:-1:-1;;;102387:60:0;;;;;;;:::i;102340:272::-;102562:6;102556:13;102547:6;102543:2;102539:15;102532:38;102098:529;-1:-1:-1;;;;;;102225:51:0;-1:-1:-1;;;102225:51:0;;-1:-1:-1;102218:58:0;;102062:620;-1:-1:-1;102666:4:0;101890:799;;;;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:406:1;78:5;112:18;104:6;101:30;98:56;;;134:18;;:::i;:::-;172:57;217:2;196:15;;-1:-1:-1;;192:29:1;223:4;188:40;172:57;:::i;:::-;163:66;;252:6;245:5;238:21;292:3;283:6;278:3;274:16;271:25;268:45;;;309:1;306;299:12;268:45;358:6;353:3;346:4;339:5;335:16;322:43;412:1;405:4;396:6;389:5;385:18;381:29;374:40;14:406;;;;;:::o;425:247::-;484:6;537:2;525:9;516:7;512:23;508:32;505:52;;;553:1;550;543:12;505:52;592:9;579:23;611:31;636:5;611:31;:::i;677:251::-;747:6;800:2;788:9;779:7;775:23;771:32;768:52;;;816:1;813;806:12;768:52;848:9;842:16;867:31;892:5;867:31;:::i;1193:388::-;1261:6;1269;1322:2;1310:9;1301:7;1297:23;1293:32;1290:52;;;1338:1;1335;1328:12;1290:52;1377:9;1364:23;1396:31;1421:5;1396:31;:::i;:::-;1446:5;-1:-1:-1;1503:2:1;1488:18;;1475:32;1516:33;1475:32;1516:33;:::i;:::-;1568:7;1558:17;;;1193:388;;;;;:::o;1586:456::-;1663:6;1671;1679;1732:2;1720:9;1711:7;1707:23;1703:32;1700:52;;;1748:1;1745;1738:12;1700:52;1787:9;1774:23;1806:31;1831:5;1806:31;:::i;:::-;1856:5;-1:-1:-1;1913:2:1;1898:18;;1885:32;1926:33;1885:32;1926:33;:::i;:::-;1586:456;;1978:7;;-1:-1:-1;;;2032:2:1;2017:18;;;;2004:32;;1586:456::o;2047:794::-;2142:6;2150;2158;2166;2219:3;2207:9;2198:7;2194:23;2190:33;2187:53;;;2236:1;2233;2226:12;2187:53;2275:9;2262:23;2294:31;2319:5;2294:31;:::i;:::-;2344:5;-1:-1:-1;2401:2:1;2386:18;;2373:32;2414:33;2373:32;2414:33;:::i;:::-;2466:7;-1:-1:-1;2520:2:1;2505:18;;2492:32;;-1:-1:-1;2575:2:1;2560:18;;2547:32;2602:18;2591:30;;2588:50;;;2634:1;2631;2624:12;2588:50;2657:22;;2710:4;2702:13;;2698:27;-1:-1:-1;2688:55:1;;2739:1;2736;2729:12;2688:55;2762:73;2827:7;2822:2;2809:16;2804:2;2800;2796:11;2762:73;:::i;:::-;2752:83;;;2047:794;;;;;;;:::o;2846:416::-;2911:6;2919;2972:2;2960:9;2951:7;2947:23;2943:32;2940:52;;;2988:1;2985;2978:12;2940:52;3027:9;3014:23;3046:31;3071:5;3046:31;:::i;:::-;3096:5;-1:-1:-1;3153:2:1;3138:18;;3125:32;3195:15;;3188:23;3176:36;;3166:64;;3226:1;3223;3216:12;3267:315;3335:6;3343;3396:2;3384:9;3375:7;3371:23;3367:32;3364:52;;;3412:1;3409;3402:12;3364:52;3451:9;3438:23;3470:31;3495:5;3470:31;:::i;:::-;3520:5;3572:2;3557:18;;;;3544:32;;-1:-1:-1;;;3267:315:1:o;3587:957::-;3671:6;3702:2;3745;3733:9;3724:7;3720:23;3716:32;3713:52;;;3761:1;3758;3751:12;3713:52;3801:9;3788:23;3830:18;3871:2;3863:6;3860:14;3857:34;;;3887:1;3884;3877:12;3857:34;3925:6;3914:9;3910:22;3900:32;;3970:7;3963:4;3959:2;3955:13;3951:27;3941:55;;3992:1;3989;3982:12;3941:55;4028:2;4015:16;4050:2;4046;4043:10;4040:36;;;4056:18;;:::i;:::-;4102:2;4099:1;4095:10;4085:20;;4125:28;4149:2;4145;4141:11;4125:28;:::i;:::-;4187:15;;;4218:12;;;;4250:11;;;4280;;;4276:20;;4273:33;-1:-1:-1;4270:53:1;;;4319:1;4316;4309:12;4270:53;4341:1;4332:10;;4351:163;4365:2;4362:1;4359:9;4351:163;;;4422:17;;4410:30;;4383:1;4376:9;;;;;4460:12;;;;4492;;4351:163;;;-1:-1:-1;4533:5:1;3587:957;-1:-1:-1;;;;;;;;3587:957:1:o;4549:245::-;4607:6;4660:2;4648:9;4639:7;4635:23;4631:32;4628:52;;;4676:1;4673;4666:12;4628:52;4715:9;4702:23;4734:30;4758:5;4734:30;:::i;4799:249::-;4868:6;4921:2;4909:9;4900:7;4896:23;4892:32;4889:52;;;4937:1;4934;4927:12;4889:52;4969:9;4963:16;4988:30;5012:5;4988:30;:::i;5053:450::-;5122:6;5175:2;5163:9;5154:7;5150:23;5146:32;5143:52;;;5191:1;5188;5181:12;5143:52;5231:9;5218:23;5264:18;5256:6;5253:30;5250:50;;;5296:1;5293;5286:12;5250:50;5319:22;;5372:4;5364:13;;5360:27;-1:-1:-1;5350:55:1;;5401:1;5398;5391:12;5350:55;5424:73;5489:7;5484:2;5471:16;5466:2;5462;5458:11;5424:73;:::i;5508:180::-;5567:6;5620:2;5608:9;5599:7;5595:23;5591:32;5588:52;;;5636:1;5633;5626:12;5588:52;-1:-1:-1;5659:23:1;;5508:180;-1:-1:-1;5508:180:1:o;5693:257::-;5734:3;5772:5;5766:12;5799:6;5794:3;5787:19;5815:63;5871:6;5864:4;5859:3;5855:14;5848:4;5841:5;5837:16;5815:63;:::i;:::-;5932:2;5911:15;-1:-1:-1;;5907:29:1;5898:39;;;;5939:4;5894:50;;5693:257;-1:-1:-1;;5693:257:1:o;5955:1527::-;6179:3;6217:6;6211:13;6243:4;6256:51;6300:6;6295:3;6290:2;6282:6;6278:15;6256:51;:::i;:::-;6370:13;;6329:16;;;;6392:55;6370:13;6329:16;6414:15;;;6392:55;:::i;:::-;6536:13;;6469:20;;;6509:1;;6596;6618:18;;;;6671;;;;6698:93;;6776:4;6766:8;6762:19;6750:31;;6698:93;6839:2;6829:8;6826:16;6806:18;6803:40;6800:167;;;-1:-1:-1;;;6866:33:1;;6922:4;6919:1;6912:15;6952:4;6873:3;6940:17;6800:167;6983:18;7010:110;;;;7134:1;7129:328;;;;6976:481;;7010:110;-1:-1:-1;;7045:24:1;;7031:39;;7090:20;;;;-1:-1:-1;7010:110:1;;7129:328;16155:1;16148:14;;;16192:4;16179:18;;7224:1;7238:169;7252:8;7249:1;7246:15;7238:169;;;7334:14;;7319:13;;;7312:37;7377:16;;;;7269:10;;7238:169;;;7242:3;;7438:8;7431:5;7427:20;7420:27;;6976:481;-1:-1:-1;7473:3:1;;5955:1527;-1:-1:-1;;;;;;;;;;;5955:1527:1:o;7695:488::-;-1:-1:-1;;;;;7964:15:1;;;7946:34;;8016:15;;8011:2;7996:18;;7989:43;8063:2;8048:18;;8041:34;;;8111:3;8106:2;8091:18;;8084:31;;;7889:4;;8132:45;;8157:19;;8149:6;8132:45;:::i;:::-;8124:53;7695:488;-1:-1:-1;;;;;;7695:488:1:o;8188:632::-;8359:2;8411:21;;;8481:13;;8384:18;;;8503:22;;;8330:4;;8359:2;8582:15;;;;8556:2;8541:18;;;8330:4;8625:169;8639:6;8636:1;8633:13;8625:169;;;8700:13;;8688:26;;8769:15;;;;8734:12;;;;8661:1;8654:9;8625:169;;;-1:-1:-1;8811:3:1;;8188:632;-1:-1:-1;;;;;;8188:632:1:o;9017:219::-;9166:2;9155:9;9148:21;9129:4;9186:44;9226:2;9215:9;9211:18;9203:6;9186:44;:::i;9658:414::-;9860:2;9842:21;;;9899:2;9879:18;;;9872:30;9938:34;9933:2;9918:18;;9911:62;-1:-1:-1;;;10004:2:1;9989:18;;9982:48;10062:3;10047:19;;9658:414::o;14439:356::-;14641:2;14623:21;;;14660:18;;;14653:30;14719:34;14714:2;14699:18;;14692:62;14786:2;14771:18;;14439:356::o;15202:413::-;15404:2;15386:21;;;15443:2;15423:18;;;15416:30;15482:34;15477:2;15462:18;;15455:62;-1:-1:-1;;;15548:2:1;15533:18;;15526:47;15605:3;15590:19;;15202:413::o;15802:275::-;15873:2;15867:9;15938:2;15919:13;;-1:-1:-1;;15915:27:1;15903:40;;15973:18;15958:34;;15994:22;;;15955:62;15952:88;;;16020:18;;:::i;:::-;16056:2;16049:22;15802:275;;-1:-1:-1;15802:275:1:o;16208:128::-;16248:3;16279:1;16275:6;16272:1;16269:13;16266:39;;;16285:18;;:::i;:::-;-1:-1:-1;16321:9:1;;16208:128::o;16341:120::-;16381:1;16407;16397:35;;16412:18;;:::i;:::-;-1:-1:-1;16446:9:1;;16341:120::o;16466:125::-;16506:4;16534:1;16531;16528:8;16525:34;;;16539:18;;:::i;:::-;-1:-1:-1;16576:9:1;;16466:125::o;16596:258::-;16668:1;16678:113;16692:6;16689:1;16686:13;16678:113;;;16768:11;;;16762:18;16749:11;;;16742:39;16714:2;16707:10;16678:113;;;16809:6;16806:1;16803:13;16800:48;;;-1:-1:-1;;16844:1:1;16826:16;;16819:27;16596:258::o;16859:380::-;16938:1;16934:12;;;;16981;;;17002:61;;17056:4;17048:6;17044:17;17034:27;;17002:61;17109:2;17101:6;17098:14;17078:18;17075:38;17072:161;;;17155:10;17150:3;17146:20;17143:1;17136:31;17190:4;17187:1;17180:15;17218:4;17215:1;17208:15;17072:161;;16859:380;;;:::o;17244:135::-;17283:3;-1:-1:-1;;17304:17:1;;17301:43;;;17324:18;;:::i;:::-;-1:-1:-1;17371:1:1;17360:13;;17244:135::o;17384:112::-;17416:1;17442;17432:35;;17447:18;;:::i;:::-;-1:-1:-1;17481:9:1;;17384:112::o;17501:127::-;17562:10;17557:3;17553:20;17550:1;17543:31;17593:4;17590:1;17583:15;17617:4;17614:1;17607:15;17633:127;17694:10;17689:3;17685:20;17682:1;17675:31;17725:4;17722:1;17715:15;17749:4;17746:1;17739:15;17765:127;17826:10;17821:3;17817:20;17814:1;17807:31;17857:4;17854:1;17847:15;17881:4;17878:1;17871:15;17897:127;17958:10;17953:3;17949:20;17946:1;17939:31;17989:4;17986:1;17979:15;18013:4;18010:1;18003:15;18029:131;-1:-1:-1;;;;;18104:31:1;;18094:42;;18084:70;;18150:1;18147;18140:12;18165:131;-1:-1:-1;;;;;;18239:32:1;;18229:43;;18219:71;;18286:1;18283;18276:12

Swarm Source

ipfs://bbf668a919d183cf6992de277c2322a9b940b9e92207ddd97b975e176da9a48b
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.