ERC-721
Overview
Max Total Supply
328 FUSIONVX
Holders
132
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FUSIONVXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CosmicFusionVX
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-07-14 */ // 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, // 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: @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/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/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: fusionVX.sol pragma solidity 0.8.7; /// SPDX-License-Identifier: MIT error notAuthorizedToClaim(); contract CosmicFusionVX is ERC721, Ownable { using Address for address; using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public totalMinted = 0; CosmicFusion CosmicFusionContract = CosmicFusion(0x362BA0425Fa90138e9189Ed369b1ea4827Eb43D1); mapping (uint256 => bool) public fusionClaimed; constructor(string memory _initBaseURI ) ERC721("Cosmic Fusion VX", "FUSIONVX") { 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 != CosmicFusionContract.ownerOf(tokenIDs[i])) { revert notAuthorizedToClaim(); } fusionClaimed[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(CosmicFusionContract); } 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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"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":"","type":"uint256"}],"name":"fusionClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a0908152620000289160089190620001ef565b506000600955600a80546001600160a01b03191673362ba0425fa90138e9189ed369b1ea4827eb43d11790553480156200006157600080fd5b506040516200210b3803806200210b833981016040819052620000849162000295565b604080518082018252601081526f086dee6dad2c6408ceae6d2dedc40acb60831b60208083019182528351808501909452600884526708caaa6929e9cacb60c31b908401528151919291620000dc91600091620001ef565b508051620000f2906001906020840190620001ef565b5050506200010f620001096200012160201b60201c565b62000125565b6200011a8162000177565b50620003c4565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620001d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001eb906007906020840190620001ef565b5050565b828054620001fd9062000371565b90600052602060002090601f0160209004810192826200022157600085556200026c565b82601f106200023c57805160ff19168380011785556200026c565b828001600101855582156200026c579182015b828111156200026c5782518255916020019190600101906200024f565b506200027a9291506200027e565b5090565b5b808211156200027a57600081556001016200027f565b60006020808385031215620002a957600080fd5b82516001600160401b0380821115620002c157600080fd5b818501915085601f830112620002d657600080fd5b815181811115620002eb57620002eb620003ae565b604051601f8201601f19908116603f01168101908382118183101715620003165762000316620003ae565b8160405282815288868487010111156200032f57600080fd5b600093505b8284101562000353578484018601518185018701529285019262000334565b82841115620003655760008684830101525b98975050505050505050565b600181811c908216806200038657607f821691505b60208210811415620003a857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611d3780620003d46000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de578063a2309ff811610097578063c87b56dd11610071578063c87b56dd14610348578063ca4a46b31461035b578063e985e9c51461036e578063f2fde38b146103aa57600080fd5b8063a2309ff814610324578063b88d4fde1461032d578063c66828621461034057600080fd5b8063715018a6146102cc5780637a9ebc15146102d45780638da5cb5b146102e557806395d89b41146102f6578063a16d605a146102fe578063a22cb4651461031157600080fd5b806342842e0e1161014b5780636145196a116101255780636145196a1461027b5780636352211e1461029e5780636c0360eb146102b157806370a08231146102b957600080fd5b806342842e0e14610235578063438b63001461024857806355f804b31461026857600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb57806318160ddd1461021057806323b872dd14610222575b600080fd5b6101a66101a136600461187c565b6103bd565b60405190151581526020015b60405180910390f35b6101c361040f565b6040516101b29190611a89565b6101e36101de3660046118ff565b6104a1565b6040516001600160a01b0390911681526020016101b2565b61020e6102093660046117a3565b61053b565b005b6009545b6040519081526020016101b2565b61020e6102303660046116af565b610651565b61020e6102433660046116af565b610682565b61025b61025636600461163c565b61069d565b6040516101b29190611a45565b61020e6102763660046118b6565b6107e1565b6101a66102893660046118ff565b600b6020526000908152604090205460ff1681565b6101e36102ac3660046118ff565b610822565b6101c3610899565b6102146102c736600461163c565b610927565b61020e6109ae565b600a546001600160a01b03166101e3565b6006546001600160a01b03166101e3565b6101c36109e4565b61020e61030c36600461163c565b6109f3565b61020e61031f366004611770565b610a52565b61021460095481565b61020e61033b3660046116f0565b610a5d565b6101c3610a95565b6101c36103563660046118ff565b610aa2565b61020e6103693660046117cf565b610b81565b6101a661037c366004611676565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61020e6103b836600461163c565b610cff565b60006001600160e01b031982166380ac58cd60e01b14806103ee57506001600160e01b03198216635b5e139f60e01b145b8061040957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461041e90611c14565b80601f016020809104026020016040519081016040528092919081815260200182805461044a90611c14565b80156104975780601f1061046c57610100808354040283529160200191610497565b820191906000526020600020905b81548152906001019060200180831161047a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661051f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061054682610822565b9050806001600160a01b0316836001600160a01b031614156105b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610516565b336001600160a01b03821614806105d057506105d0813361037c565b6106425760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610516565b61064c8383610d9a565b505050565b61065b3382610e08565b6106775760405162461bcd60e51b815260040161051690611b23565b61064c838383610eff565b61064c83838360405180602001604052806000815250610a5d565b606060006106aa83610927565b905060008167ffffffffffffffff8111156106c7576106c7611cc0565b6040519080825280602002602001820160405280156106f0578160200160208202803683370190505b5090506000806106ff60095490565b905060005b818110156107d6576000818152600260205260409020546001600160a01b03161580159061077f57876001600160a01b031661073f83610822565b6001600160a01b0316141561077a578185858151811061076157610761611caa565b60209081029190910101528361077681611c4f565b9450505b6107c3565b801580156107b0575084610794600188611bd1565b815181106107a4576107a4611caa565b60200260200101516000145b156107c357826107bf81611c4f565b9350505b50806107ce81611c4f565b915050610704565b509195945050505050565b6006546001600160a01b0316331461080b5760405162461bcd60e51b815260040161051690611aee565b805161081e90600790602084019061154b565b5050565b6000818152600260205260408120546001600160a01b0316806104095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610516565b600780546108a690611c14565b80601f01602080910402602001604051908101604052809291908181526020018280546108d290611c14565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b505050505081565b60006001600160a01b0382166109925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610516565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146109d85760405162461bcd60e51b815260040161051690611aee565b6109e2600061109b565b565b60606001805461041e90611c14565b6006546001600160a01b03163314610a1d5760405162461bcd60e51b815260040161051690611aee565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801561081e573d6000803e3d6000fd5b61081e3383836110ed565b610a673383610e08565b610a835760405162461bcd60e51b815260040161051690611b23565b610a8f848484846111bc565b50505050565b600880546108a690611c14565b6000818152600260205260409020546060906001600160a01b0316610b225760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610516565b6000610b2c6111ef565b90506000815111610b4c5760405180602001604052806000815250610b7a565b80610b56846111fe565b6008604051602001610b6a93929190611944565b6040516020818303038152906040525b9392505050565b333214610b8d57600080fd5b60005b8151811015610ce357600a5482516001600160a01b0390911690636352211e90849084908110610bc257610bc2611caa565b60200260200101516040518263ffffffff1660e01b8152600401610be891815260200190565b60206040518083038186803b158015610c0057600080fd5b505afa158015610c14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c389190611659565b6001600160a01b0316336001600160a01b031614610c6957604051638443e3eb60e01b815260040160405180910390fd5b6001600b6000848481518110610c8157610c81611caa565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610cd133838381518110610cc457610cc4611caa565b60200260200101516112fc565b80610cdb81611c4f565b915050610b90565b50805160096000828254610cf79190611ba5565b909155505050565b6006546001600160a01b03163314610d295760405162461bcd60e51b815260040161051690611aee565b6001600160a01b038116610d8e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610516565b610d978161109b565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dcf82610822565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610e815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610516565b6000610e8c83610822565b9050806001600160a01b0316846001600160a01b03161480610ec75750836001600160a01b0316610ebc846104a1565b6001600160a01b0316145b80610ef757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610f1282610822565b6001600160a01b031614610f765760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610516565b6001600160a01b038216610fd85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610516565b610fe3600082610d9a565b6001600160a01b038316600090815260036020526040812080546001929061100c908490611bd1565b90915550506001600160a01b038216600090815260036020526040812080546001929061103a908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561114f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610516565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111c7848484610eff565b6111d38484848461143e565b610a8f5760405162461bcd60e51b815260040161051690611a9c565b60606007805461041e90611c14565b6060816112225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561124c578061123681611c4f565b91506112459050600a83611bbd565b9150611226565b60008167ffffffffffffffff81111561126757611267611cc0565b6040519080825280601f01601f191660200182016040528015611291576020820181803683370190505b5090505b8415610ef7576112a6600183611bd1565b91506112b3600a86611c6a565b6112be906030611ba5565b60f81b8183815181106112d3576112d3611caa565b60200101906001600160f81b031916908160001a9053506112f5600a86611bbd565b9450611295565b6001600160a01b0382166113525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610516565b6000818152600260205260409020546001600160a01b0316156113b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610516565b6001600160a01b03821660009081526003602052604081208054600192906113e0908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561154057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611482903390899088908890600401611a08565b602060405180830381600087803b15801561149c57600080fd5b505af19250505080156114cc575060408051601f3d908101601f191682019092526114c991810190611899565b60015b611526573d8080156114fa576040519150601f19603f3d011682016040523d82523d6000602084013e6114ff565b606091505b50805161151e5760405162461bcd60e51b815260040161051690611a9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef7565b506001949350505050565b82805461155790611c14565b90600052602060002090601f01602090048101928261157957600085556115bf565b82601f1061159257805160ff19168380011785556115bf565b828001600101855582156115bf579182015b828111156115bf5782518255916020019190600101906115a4565b506115cb9291506115cf565b5090565b5b808211156115cb57600081556001016115d0565b600067ffffffffffffffff8311156115fe576115fe611cc0565b611611601f8401601f1916602001611b74565b905082815283838301111561162557600080fd5b828260208301376000602084830101529392505050565b60006020828403121561164e57600080fd5b8135610b7a81611cd6565b60006020828403121561166b57600080fd5b8151610b7a81611cd6565b6000806040838503121561168957600080fd5b823561169481611cd6565b915060208301356116a481611cd6565b809150509250929050565b6000806000606084860312156116c457600080fd5b83356116cf81611cd6565b925060208401356116df81611cd6565b929592945050506040919091013590565b6000806000806080858703121561170657600080fd5b843561171181611cd6565b9350602085013561172181611cd6565b925060408501359150606085013567ffffffffffffffff81111561174457600080fd5b8501601f8101871361175557600080fd5b611764878235602084016115e4565b91505092959194509250565b6000806040838503121561178357600080fd5b823561178e81611cd6565b9150602083013580151581146116a457600080fd5b600080604083850312156117b657600080fd5b82356117c181611cd6565b946020939093013593505050565b600060208083850312156117e257600080fd5b823567ffffffffffffffff808211156117fa57600080fd5b818501915085601f83011261180e57600080fd5b81358181111561182057611820611cc0565b8060051b9150611831848301611b74565b8181528481019084860184860187018a101561184c57600080fd5b600095505b8386101561186f578035835260019590950194918601918601611851565b5098975050505050505050565b60006020828403121561188e57600080fd5b8135610b7a81611ceb565b6000602082840312156118ab57600080fd5b8151610b7a81611ceb565b6000602082840312156118c857600080fd5b813567ffffffffffffffff8111156118df57600080fd5b8201601f810184136118f057600080fd5b610ef7848235602084016115e4565b60006020828403121561191157600080fd5b5035919050565b60008151808452611930816020860160208601611be8565b601f01601f19169290920160200192915050565b6000845160206119578285838a01611be8565b85519184019161196a8184848a01611be8565b8554920191600090600181811c908083168061198757607f831692505b8583108114156119a557634e487b7160e01b85526022600452602485fd5b8080156119b957600181146119ca576119f7565b60ff198516885283880195506119f7565b60008b81526020902060005b858110156119ef5781548a8201529084019088016119d6565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a3b90830184611918565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611a7d57835183529284019291840191600101611a61565b50909695505050505050565b602081526000610b7a6020830184611918565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611b9d57611b9d611cc0565b604052919050565b60008219821115611bb857611bb8611c7e565b500190565b600082611bcc57611bcc611c94565b500490565b600082821015611be357611be3611c7e565b500390565b60005b83811015611c03578181015183820152602001611beb565b83811115610a8f5750506000910152565b600181811c90821680611c2857607f821691505b60208210811415611c4957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c6357611c63611c7e565b5060010190565b600082611c7957611c79611c94565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9757600080fd5b6001600160e01b031981168114610d9757600080fdfea2646970667358221220db1f75bf3dce79fec0606809b68b3ac133b19ddb3b8468d1dc385afae82af78064736f6c634300080700330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f636f736d69636c6162732e6d7970696e6174612e636c6f75642f697066732f516d506e39633646587542313548516b3548613433484134416134366b546d323264554474325433587238314e682f00000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de578063a2309ff811610097578063c87b56dd11610071578063c87b56dd14610348578063ca4a46b31461035b578063e985e9c51461036e578063f2fde38b146103aa57600080fd5b8063a2309ff814610324578063b88d4fde1461032d578063c66828621461034057600080fd5b8063715018a6146102cc5780637a9ebc15146102d45780638da5cb5b146102e557806395d89b41146102f6578063a16d605a146102fe578063a22cb4651461031157600080fd5b806342842e0e1161014b5780636145196a116101255780636145196a1461027b5780636352211e1461029e5780636c0360eb146102b157806370a08231146102b957600080fd5b806342842e0e14610235578063438b63001461024857806355f804b31461026857600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb57806318160ddd1461021057806323b872dd14610222575b600080fd5b6101a66101a136600461187c565b6103bd565b60405190151581526020015b60405180910390f35b6101c361040f565b6040516101b29190611a89565b6101e36101de3660046118ff565b6104a1565b6040516001600160a01b0390911681526020016101b2565b61020e6102093660046117a3565b61053b565b005b6009545b6040519081526020016101b2565b61020e6102303660046116af565b610651565b61020e6102433660046116af565b610682565b61025b61025636600461163c565b61069d565b6040516101b29190611a45565b61020e6102763660046118b6565b6107e1565b6101a66102893660046118ff565b600b6020526000908152604090205460ff1681565b6101e36102ac3660046118ff565b610822565b6101c3610899565b6102146102c736600461163c565b610927565b61020e6109ae565b600a546001600160a01b03166101e3565b6006546001600160a01b03166101e3565b6101c36109e4565b61020e61030c36600461163c565b6109f3565b61020e61031f366004611770565b610a52565b61021460095481565b61020e61033b3660046116f0565b610a5d565b6101c3610a95565b6101c36103563660046118ff565b610aa2565b61020e6103693660046117cf565b610b81565b6101a661037c366004611676565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61020e6103b836600461163c565b610cff565b60006001600160e01b031982166380ac58cd60e01b14806103ee57506001600160e01b03198216635b5e139f60e01b145b8061040957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461041e90611c14565b80601f016020809104026020016040519081016040528092919081815260200182805461044a90611c14565b80156104975780601f1061046c57610100808354040283529160200191610497565b820191906000526020600020905b81548152906001019060200180831161047a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661051f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061054682610822565b9050806001600160a01b0316836001600160a01b031614156105b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610516565b336001600160a01b03821614806105d057506105d0813361037c565b6106425760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610516565b61064c8383610d9a565b505050565b61065b3382610e08565b6106775760405162461bcd60e51b815260040161051690611b23565b61064c838383610eff565b61064c83838360405180602001604052806000815250610a5d565b606060006106aa83610927565b905060008167ffffffffffffffff8111156106c7576106c7611cc0565b6040519080825280602002602001820160405280156106f0578160200160208202803683370190505b5090506000806106ff60095490565b905060005b818110156107d6576000818152600260205260409020546001600160a01b03161580159061077f57876001600160a01b031661073f83610822565b6001600160a01b0316141561077a578185858151811061076157610761611caa565b60209081029190910101528361077681611c4f565b9450505b6107c3565b801580156107b0575084610794600188611bd1565b815181106107a4576107a4611caa565b60200260200101516000145b156107c357826107bf81611c4f565b9350505b50806107ce81611c4f565b915050610704565b509195945050505050565b6006546001600160a01b0316331461080b5760405162461bcd60e51b815260040161051690611aee565b805161081e90600790602084019061154b565b5050565b6000818152600260205260408120546001600160a01b0316806104095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610516565b600780546108a690611c14565b80601f01602080910402602001604051908101604052809291908181526020018280546108d290611c14565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b505050505081565b60006001600160a01b0382166109925760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610516565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146109d85760405162461bcd60e51b815260040161051690611aee565b6109e2600061109b565b565b60606001805461041e90611c14565b6006546001600160a01b03163314610a1d5760405162461bcd60e51b815260040161051690611aee565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801561081e573d6000803e3d6000fd5b61081e3383836110ed565b610a673383610e08565b610a835760405162461bcd60e51b815260040161051690611b23565b610a8f848484846111bc565b50505050565b600880546108a690611c14565b6000818152600260205260409020546060906001600160a01b0316610b225760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610516565b6000610b2c6111ef565b90506000815111610b4c5760405180602001604052806000815250610b7a565b80610b56846111fe565b6008604051602001610b6a93929190611944565b6040516020818303038152906040525b9392505050565b333214610b8d57600080fd5b60005b8151811015610ce357600a5482516001600160a01b0390911690636352211e90849084908110610bc257610bc2611caa565b60200260200101516040518263ffffffff1660e01b8152600401610be891815260200190565b60206040518083038186803b158015610c0057600080fd5b505afa158015610c14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c389190611659565b6001600160a01b0316336001600160a01b031614610c6957604051638443e3eb60e01b815260040160405180910390fd5b6001600b6000848481518110610c8157610c81611caa565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610cd133838381518110610cc457610cc4611caa565b60200260200101516112fc565b80610cdb81611c4f565b915050610b90565b50805160096000828254610cf79190611ba5565b909155505050565b6006546001600160a01b03163314610d295760405162461bcd60e51b815260040161051690611aee565b6001600160a01b038116610d8e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610516565b610d978161109b565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dcf82610822565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610e815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610516565b6000610e8c83610822565b9050806001600160a01b0316846001600160a01b03161480610ec75750836001600160a01b0316610ebc846104a1565b6001600160a01b0316145b80610ef757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610f1282610822565b6001600160a01b031614610f765760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610516565b6001600160a01b038216610fd85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610516565b610fe3600082610d9a565b6001600160a01b038316600090815260036020526040812080546001929061100c908490611bd1565b90915550506001600160a01b038216600090815260036020526040812080546001929061103a908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561114f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610516565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111c7848484610eff565b6111d38484848461143e565b610a8f5760405162461bcd60e51b815260040161051690611a9c565b60606007805461041e90611c14565b6060816112225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561124c578061123681611c4f565b91506112459050600a83611bbd565b9150611226565b60008167ffffffffffffffff81111561126757611267611cc0565b6040519080825280601f01601f191660200182016040528015611291576020820181803683370190505b5090505b8415610ef7576112a6600183611bd1565b91506112b3600a86611c6a565b6112be906030611ba5565b60f81b8183815181106112d3576112d3611caa565b60200101906001600160f81b031916908160001a9053506112f5600a86611bbd565b9450611295565b6001600160a01b0382166113525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610516565b6000818152600260205260409020546001600160a01b0316156113b75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610516565b6001600160a01b03821660009081526003602052604081208054600192906113e0908490611ba5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561154057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611482903390899088908890600401611a08565b602060405180830381600087803b15801561149c57600080fd5b505af19250505080156114cc575060408051601f3d908101601f191682019092526114c991810190611899565b60015b611526573d8080156114fa576040519150601f19603f3d011682016040523d82523d6000602084013e6114ff565b606091505b50805161151e5760405162461bcd60e51b815260040161051690611a9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef7565b506001949350505050565b82805461155790611c14565b90600052602060002090601f01602090048101928261157957600085556115bf565b82601f1061159257805160ff19168380011785556115bf565b828001600101855582156115bf579182015b828111156115bf5782518255916020019190600101906115a4565b506115cb9291506115cf565b5090565b5b808211156115cb57600081556001016115d0565b600067ffffffffffffffff8311156115fe576115fe611cc0565b611611601f8401601f1916602001611b74565b905082815283838301111561162557600080fd5b828260208301376000602084830101529392505050565b60006020828403121561164e57600080fd5b8135610b7a81611cd6565b60006020828403121561166b57600080fd5b8151610b7a81611cd6565b6000806040838503121561168957600080fd5b823561169481611cd6565b915060208301356116a481611cd6565b809150509250929050565b6000806000606084860312156116c457600080fd5b83356116cf81611cd6565b925060208401356116df81611cd6565b929592945050506040919091013590565b6000806000806080858703121561170657600080fd5b843561171181611cd6565b9350602085013561172181611cd6565b925060408501359150606085013567ffffffffffffffff81111561174457600080fd5b8501601f8101871361175557600080fd5b611764878235602084016115e4565b91505092959194509250565b6000806040838503121561178357600080fd5b823561178e81611cd6565b9150602083013580151581146116a457600080fd5b600080604083850312156117b657600080fd5b82356117c181611cd6565b946020939093013593505050565b600060208083850312156117e257600080fd5b823567ffffffffffffffff808211156117fa57600080fd5b818501915085601f83011261180e57600080fd5b81358181111561182057611820611cc0565b8060051b9150611831848301611b74565b8181528481019084860184860187018a101561184c57600080fd5b600095505b8386101561186f578035835260019590950194918601918601611851565b5098975050505050505050565b60006020828403121561188e57600080fd5b8135610b7a81611ceb565b6000602082840312156118ab57600080fd5b8151610b7a81611ceb565b6000602082840312156118c857600080fd5b813567ffffffffffffffff8111156118df57600080fd5b8201601f810184136118f057600080fd5b610ef7848235602084016115e4565b60006020828403121561191157600080fd5b5035919050565b60008151808452611930816020860160208601611be8565b601f01601f19169290920160200192915050565b6000845160206119578285838a01611be8565b85519184019161196a8184848a01611be8565b8554920191600090600181811c908083168061198757607f831692505b8583108114156119a557634e487b7160e01b85526022600452602485fd5b8080156119b957600181146119ca576119f7565b60ff198516885283880195506119f7565b60008b81526020902060005b858110156119ef5781548a8201529084019088016119d6565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a3b90830184611918565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611a7d57835183529284019291840191600101611a61565b50909695505050505050565b602081526000610b7a6020830184611918565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611b9d57611b9d611cc0565b604052919050565b60008219821115611bb857611bb8611c7e565b500190565b600082611bcc57611bcc611c94565b500490565b600082821015611be357611be3611c7e565b500390565b60005b83811015611c03578181015183820152602001611beb565b83811115610a8f5750506000910152565b600181811c90821680611c2857607f821691505b60208210811415611c4957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c6357611c63611c7e565b5060010190565b600082611c7957611c79611c94565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9757600080fd5b6001600160e01b031981168114610d9757600080fdfea2646970667358221220db1f75bf3dce79fec0606809b68b3ac133b19ddb3b8468d1dc385afae82af78064736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f636f736d69636c6162732e6d7970696e6174612e636c6f75642f697066732f516d506e39633646587542313548516b3548613433484134416134366b546d323264554474325433587238314e682f00000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string): https://cosmiclabs.mypinata.cloud/ipfs/QmPn9c6FXuB15HQk5Ha43HA4Aa46kTm22dUDt2T3Xr81Nh/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000056
Arg [2] : 68747470733a2f2f636f736d69636c6162732e6d7970696e6174612e636c6f75
Arg [3] : 642f697066732f516d506e39633646587542313548516b354861343348413441
Arg [4] : 6134366b546d323264554474325433587238314e682f00000000000000000000
Deployed Bytecode Sourcemap
121233:2673:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84820:305;;;;;;:::i;:::-;;:::i;:::-;;;8990:14:1;;8983:22;8965:41;;8953:2;8938:18;84820:305:0;;;;;;;;85765:100;;;:::i;:::-;;;;;;;:::i;87324:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7651:32:1;;;7633:51;;7621:2;7606:18;87324:221:0;7487:203:1;86847:411:0;;;;;;:::i;:::-;;:::i;:::-;;122688:95;122764:11;;122688:95;;;15766:25:1;;;15754:2;15739:18;122688:95:0;15620:177:1;88074:339:0;;;;;;:::i;:::-;;:::i;88484:185::-;;;;;;:::i;:::-;;:::i;123287:614::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;122450:104::-;;;;;;:::i;:::-;;:::i;121565:46::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;85459:239;;;;;;:::i;:::-;;:::i;121351:21::-;;;:::i;85189:208::-;;;;;;:::i;:::-;;:::i;48719:103::-;;;:::i;122560:120::-;122651:20;;-1:-1:-1;;;;;122651:20:0;122560:120;;48068:87;48141:6;;-1:-1:-1;;;;;48141:6:0;48068:87;;85934:104;;;:::i;122297:142::-;;;;;;:::i;:::-;;:::i;87617:155::-;;;;;;:::i;:::-;;:::i;121425:30::-;;;;;;88740:328;;;;;;:::i;:::-;;:::i;121379:37::-;;;:::i;122903:376::-;;;;;;:::i;:::-;;:::i;121848:441::-;;;;;;:::i;:::-;;:::i;87843:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;87964:25:0;;;87940:4;87964:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;87843:164;48977:201;;;;;;:::i;:::-;;:::i;84820:305::-;84922:4;-1:-1:-1;;;;;;84959:40:0;;-1:-1:-1;;;84959:40:0;;:105;;-1:-1:-1;;;;;;;85016:48:0;;-1:-1:-1;;;85016:48:0;84959:105;:158;;;-1:-1:-1;;;;;;;;;;60961:40:0;;;85081:36;84939:178;84820:305;-1:-1:-1;;84820:305:0:o;85765:100::-;85819:13;85852:5;85845:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85765:100;:::o;87324:221::-;87400:7;90667:16;;;:7;:16;;;;;;-1:-1:-1;;;;;90667:16:0;87420:73;;;;-1:-1:-1;;;87420:73:0;;14228:2:1;87420: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;;87420:73:0;;;;;;;;;-1:-1:-1;87513:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;87513:24:0;;87324:221::o;86847:411::-;86928:13;86944:23;86959:7;86944:14;:23::i;:::-;86928:39;;86992:5;-1:-1:-1;;;;;86986:11:0;:2;-1:-1:-1;;;;;86986:11:0;;;86978:57;;;;-1:-1:-1;;;86978:57:0;;15002:2:1;86978: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;;86978:57:0;14800:397:1;86978:57:0;31622:10;-1:-1:-1;;;;;87070:21:0;;;;:62;;-1:-1:-1;87095:37:0;87112:5;31622:10;87843:164;:::i;87095:37::-;87048:168;;;;-1:-1:-1;;;87048:168:0;;12621:2:1;87048: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;;87048:168:0;12419:420:1;87048:168:0;87229:21;87238:2;87242:7;87229:8;:21::i;:::-;86917:341;86847:411;;:::o;88074:339::-;88269:41;31622:10;88302:7;88269:18;:41::i;:::-;88261:103;;;;-1:-1:-1;;;88261:103:0;;;;;;;:::i;:::-;88377:28;88387:4;88393:2;88397:7;88377:9;:28::i;88484:185::-;88622:39;88639:4;88645:2;88649:7;88622:39;;;;;;;;;;;;:16;:39::i;123287:614::-;123357:16;123386;123405:19;123415:8;123405:9;:19::i;:::-;123386:38;;123435:24;123477:8;123462:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;123462:24:0;;123435:51;;123497:14;123522:20;123545:13;122764:11;;;122688:95;123545:13;123522:36;;123574:9;123569:300;123593:12;123589:1;:16;123569:300;;;123627:12;90667:16;;;:7;:16;;;;;;-1:-1:-1;;;;;90667:16:0;:30;;;;123667:191;;123717:8;-1:-1:-1;;;;;123703:22:0;:10;123711:1;123703:7;:10::i;:::-;-1:-1:-1;;;;;123703:22:0;;123699:62;;;123747:1;123729:7;123737:6;123729:15;;;;;;;;:::i;:::-;;;;;;;;;;:19;123750:8;;;;:::i;:::-;;;;123699:62;123667:191;;;123800:7;123799:8;:38;;;;-1:-1:-1;123811:7:0;123819:12;123830:1;123819:8;:12;:::i;:::-;123811:21;;;;;;;;:::i;:::-;;;;;;;123836:1;123811:26;123799:38;123795:63;;;123841:14;;;;:::i;:::-;;;;123795:63;-1:-1:-1;123607:3:0;;;;:::i;:::-;;;;123569:300;;;-1:-1:-1;123886:7:0;;123287:614;-1:-1:-1;;;;;123287:614:0:o;122450:104::-;48141:6;;-1:-1:-1;;;;;48141:6:0;31622:10;48288:23;48280:68;;;;-1:-1:-1;;;48280:68:0;;;;;;;:::i;:::-;122525:21;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;:::-;;122450:104:::0;:::o;85459:239::-;85531:7;85567:16;;;:7;:16;;;;;;-1:-1:-1;;;;;85567:16:0;85602:19;85594:73;;;;-1:-1:-1;;;85594:73:0;;13457:2:1;85594: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;;85594:73:0;13255:405:1;121351:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;85189:208::-;85261:7;-1:-1:-1;;;;;85289:19:0;;85281:74;;;;-1:-1:-1;;;85281:74:0;;13046:2:1;85281: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;;85281:74:0;12844:406:1;85281:74:0;-1:-1:-1;;;;;;85373:16:0;;;;;:9;:16;;;;;;;85189:208::o;48719:103::-;48141:6;;-1:-1:-1;;;;;48141:6:0;31622:10;48288:23;48280:68;;;;-1:-1:-1;;;48280:68:0;;;;;;;:::i;:::-;48784:30:::1;48811:1;48784:18;:30::i;:::-;48719:103::o:0;85934:104::-;85990:13;86023:7;86016:14;;;;;:::i;122297:142::-;48141:6;;-1:-1:-1;;;;;48141:6:0;31622:10;48288:23;48280:68;;;;-1:-1:-1;;;48280:68:0;;;;;;;:::i;:::-;122390:41:::1;::::0;-1:-1:-1;;;;;122390:18:0;::::1;::::0;122409:21:::1;122390:41:::0;::::1;;;::::0;::::1;::::0;;;122409:21;122390:18;:41;::::1;;;;;;;;;;;;;::::0;::::1;;;;87617:155:::0;87712:52;31622:10;87745:8;87755;87712:18;:52::i;88740:328::-;88915:41;31622:10;88948:7;88915:18;:41::i;:::-;88907:103;;;;-1:-1:-1;;;88907:103:0;;;;;;;:::i;:::-;89021:39;89035:4;89041:2;89045:7;89054:5;89021:13;:39::i;:::-;88740:328;;;;:::o;121379:37::-;;;;;;;:::i;122903:376::-;90643:4;90667:16;;;:7;:16;;;;;;122976:13;;-1:-1:-1;;;;;90667:16:0;123007:77;;;;-1:-1:-1;;;123007:77:0;;9443:2:1;123007: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;;123007:77:0;9241:412:1;123007:77:0;123097:28;123128:10;:8;:10::i;:::-;123097:41;;123187:1;123162:14;123156:28;:32;:115;;;;;;;;;;;;;;;;;123215:14;123231:18;:7;:16;:18::i;:::-;123251:13;123198:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;123156:115;123149:122;122903:376;-1:-1:-1;;;122903:376:0:o;121848:441::-;121796:10;121810:9;121796:23;121788:32;;;;;;121931:9:::1;121927:312;121944:8;:15;121942:1;:17;121927:312;;;122007:20;::::0;122036:11;;-1:-1:-1;;;;;122007:20:0;;::::1;::::0;:28:::1;::::0;122036:8;;122045:1;;122036:11;::::1;;;;;:::i;:::-;;;;;;;122007:41;;;;;;;;;;;;;15766:25:1::0;;15754:2;15739:18;;15620:177;122007:41:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;121993:55:0::1;:10;-1:-1:-1::0;;;;;121993:55:0::1;;121990:137;;122089:22;;-1:-1:-1::0;;;122089:22:0::1;;;;;;;;;;;121990:137;122172:4;122143:13;:26;122157:8;122166:1;122157:11;;;;;;;;:::i;:::-;;;;;;;122143:26;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;122193:30;122199:10;122211:8;122220:1;122211:11;;;;;;;;:::i;:::-;;;;;;;122193:5;:30::i;:::-;121961:3:::0;::::1;::::0;::::1;:::i;:::-;;;;121927:312;;;;122266:8;:15;122251:11;;:30;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;121848:441:0:o;48977:201::-;48141:6;;-1:-1:-1;;;;;48141:6:0;31622:10;48288:23;48280:68;;;;-1:-1:-1;;;48280:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;49066:22:0;::::1;49058:73;;;::::0;-1:-1:-1;;;49058:73:0;;10279:2:1;49058: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;;49058:73:0::1;10077:402:1::0;49058:73:0::1;49142:28;49161:8;49142:18;:28::i;:::-;48977:201:::0;:::o;94724:174::-;94799:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;94799:29:0;-1:-1:-1;;;;;94799:29:0;;;;;;;;:24;;94853:23;94799:24;94853:14;:23::i;:::-;-1:-1:-1;;;;;94844:46:0;;;;;;;;;;;94724:174;;:::o;90872:348::-;90965:4;90667:16;;;:7;:16;;;;;;-1:-1:-1;;;;;90667:16:0;90982:73;;;;-1:-1:-1;;;90982:73:0;;12208:2:1;90982: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;;90982:73:0;12006:408:1;90982:73:0;91066:13;91082:23;91097:7;91082:14;:23::i;:::-;91066:39;;91135:5;-1:-1:-1;;;;;91124:16:0;:7;-1:-1:-1;;;;;91124:16:0;;:51;;;;91168:7;-1:-1:-1;;;;;91144:31:0;:20;91156:7;91144:11;:20::i;:::-;-1:-1:-1;;;;;91144:31:0;;91124:51;:87;;;-1:-1:-1;;;;;;87964:25:0;;;87940:4;87964:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;91179:32;91116:96;90872:348;-1:-1:-1;;;;90872:348:0:o;93981:625::-;94140:4;-1:-1:-1;;;;;94113:31:0;:23;94128:7;94113:14;:23::i;:::-;-1:-1:-1;;;;;94113:31:0;;94105:81;;;;-1:-1:-1;;;94105:81:0;;10686:2:1;94105: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;;94105:81:0;10484:401:1;94105:81:0;-1:-1:-1;;;;;94205:16:0;;94197:65;;;;-1:-1:-1;;;94197:65:0;;11449:2:1;94197: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;;94197:65:0;11247:400:1;94197:65:0;94379:29;94396:1;94400:7;94379:8;:29::i;:::-;-1:-1:-1;;;;;94421:15:0;;;;;;:9;:15;;;;;:20;;94440:1;;94421:15;:20;;94440:1;;94421:20;:::i;:::-;;;;-1:-1:-1;;;;;;;94452:13:0;;;;;;:9;:13;;;;;:18;;94469:1;;94452:13;:18;;94469:1;;94452:18;:::i;:::-;;;;-1:-1:-1;;94481:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;94481:21:0;-1:-1:-1;;;;;94481:21:0;;;;;;;;;94520:27;;94481:16;;94520:27;;;;;;;86917:341;86847:411;;:::o;49338:191::-;49431:6;;;-1:-1:-1;;;;;49448:17:0;;;-1:-1:-1;;;;;;49448:17:0;;;;;;;49481:40;;49431:6;;;49448:17;49431:6;;49481:40;;49412:16;;49481:40;49401:128;49338:191;:::o;95040:315::-;95195:8;-1:-1:-1;;;;;95186:17:0;:5;-1:-1:-1;;;;;95186:17:0;;;95178:55;;;;-1:-1:-1;;;95178:55:0;;11854:2:1;95178:55:0;;;11836:21:1;11893:2;11873:18;;;11866:30;11932:27;11912:18;;;11905:55;11977:18;;95178:55:0;11652:349:1;95178:55:0;-1:-1:-1;;;;;95244:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;95244:46:0;;;;;;;;;;95306:41;;8965::1;;;95306::0;;8938:18:1;95306:41:0;;;;;;;95040:315;;;:::o;89950:::-;90107:28;90117:4;90123:2;90127:7;90107:9;:28::i;:::-;90154:48;90177:4;90183:2;90187:7;90196:5;90154:22;:48::i;:::-;90146:111;;;;-1:-1:-1;;;90146:111:0;;;;;;;:::i;122789:108::-;122849:13;122882:7;122875:14;;;;;:::i;29104:723::-;29160:13;29381:10;29377:53;;-1:-1:-1;;29408:10:0;;;;;;;;;;;;-1:-1:-1;;;29408:10:0;;;;;29104:723::o;29377:53::-;29455:5;29440:12;29496:78;29503:9;;29496:78;;29529:8;;;;:::i;:::-;;-1:-1:-1;29552:10:0;;-1:-1:-1;29560:2:0;29552:10;;:::i;:::-;;;29496:78;;;29584:19;29616:6;29606:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29606:17:0;;29584:39;;29634:154;29641:10;;29634:154;;29668:11;29678:1;29668:11;;:::i;:::-;;-1:-1:-1;29737:10:0;29745:2;29737:5;:10;:::i;:::-;29724:24;;:2;:24;:::i;:::-;29711:39;;29694:6;29701;29694:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;29694:56:0;;;;;;;;-1:-1:-1;29765:11:0;29774:2;29765:11;;:::i;:::-;;;29634:154;;92556:439;-1:-1:-1;;;;;92636:16:0;;92628:61;;;;-1:-1:-1;;;92628:61:0;;13867:2:1;92628:61:0;;;13849:21:1;;;13886:18;;;13879:30;13945:34;13925:18;;;13918:62;13997:18;;92628:61:0;13665:356:1;92628:61:0;90643:4;90667:16;;;:7;:16;;;;;;-1:-1:-1;;;;;90667:16:0;:30;92700:58;;;;-1:-1:-1;;;92700:58:0;;11092:2:1;92700:58:0;;;11074:21:1;11131:2;11111:18;;;11104:30;11170;11150:18;;;11143:58;11218:18;;92700:58:0;10890:352:1;92700:58:0;-1:-1:-1;;;;;92829:13:0;;;;;;:9;:13;;;;;:18;;92846:1;;92829:13;:18;;92846:1;;92829:18;:::i;:::-;;;;-1:-1:-1;;92858:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;92858:21:0;-1:-1:-1;;;;;92858:21:0;;;;;;;;92897:33;;92858:16;;;92897:33;;92858:16;;92897:33;122525:21:::1;122450:104:::0;:::o;95920:799::-;96075:4;-1:-1:-1;;;;;96096:13:0;;51064:19;:23;96092:620;;96132:72;;-1:-1:-1;;;96132:72:0;;-1:-1:-1;;;;;96132:36:0;;;;;:72;;31622:10;;96183:4;;96189:7;;96198:5;;96132:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;96132:72:0;;;;;;;;-1:-1:-1;;96132:72:0;;;;;;;;;;;;:::i;:::-;;;96128:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;96374:13:0;;96370:272;;96417:60;;-1:-1:-1;;;96417:60:0;;;;;;;:::i;96370:272::-;96592:6;96586:13;96577:6;96573:2;96569:15;96562:38;96128:529;-1:-1:-1;;;;;;96255:51:0;-1:-1:-1;;;96255:51:0;;-1:-1:-1;96248:58:0;;96092:620;-1:-1:-1;96696:4:0;95920: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://db1f75bf3dce79fec0606809b68b3ac133b19ddb3b8468d1dc385afae82af780
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.