Overview
TokenID
223
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CosmicFusion
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-05 */ // 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: @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; /// SPDX-License-Identifier: UNLICENSED 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); } 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: 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: 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); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"FuseDucks","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"cosmicLabs","outputs":[{"internalType":"contract CosmicLabs","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fusionIndexToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"","type":"uint256"}],"name":"hasFused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"clabsAddress","type":"address"}],"name":"setCosmicLabsAddress","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":"amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to_","type":"address"}],"name":"withdrawEtherTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600080805560075560e0604052600560a081905264173539b7b760d91b60c09081526200003091600c919062000186565b503480156200003e57600080fd5b506040518060400160405280600d81526020016c21b7b9b6b4b190233ab9b4b7b760991b8152506040518060400160405280600781526020016621a32aa9a4a7a760c91b815250606460008111620000ec5760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b82516200010190600190602086019062000186565b5081516200011790600290602085019062000186565b50608052506200012990503362000134565b600160095562000269565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000194906200022c565b90600052602060002090601f016020900481019282620001b8576000855562000203565b82601f10620001d357805160ff191683800117855562000203565b8280016001018555821562000203579182015b8281111562000203578251825591602001919060010190620001e6565b506200021192915062000215565b5090565b5b8082111562000211576000815560010162000216565b600181811c908216806200024157607f821691505b602082108114156200026357634e487b7160e01b600052602260045260246000fd5b50919050565b6080516128df62000293600039600081816116cd015281816116f70152611dd401526128df6000f3fe6080604052600436106101e35760003560e01c80636c0360eb11610102578063985d3cc711610095578063c87b56dd11610064578063c87b56dd14610585578063d7224ba0146105a5578063e985e9c5146105bb578063f2fde38b1461060457600080fd5b8063985d3cc714610510578063a22cb46514610530578063b88d4fde14610550578063c66828621461057057600080fd5b80637f4bfa9f116100d15780637f4bfa9f1461049a5780638da5cb5b146104ad57806390132a01146104cb57806395d89b41146104fb57600080fd5b80636c0360eb1461043b57806370a0823114610450578063715018a6146104705780637362377b1461048557600080fd5b80632fbba1151161017a578063492037ac11610149578063492037ac146103bb5780634f6ccce7146103db57806355f804b3146103fb5780636352211e1461041b57600080fd5b80632fbba1151461031857806342842e0e14610338578063438b63001461035857806347f75bec1461038557600080fd5b8063095ea7b3116101b6578063095ea7b31461029957806318160ddd146102b957806323b872dd146102d85780632f745c59146102f857600080fd5b806301ffc9a7146101e857806306fdde031461021d57806307fa40e41461023f578063081812fc14610261575b600080fd5b3480156101f457600080fd5b5061020861020336600461240a565b610624565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610232610691565b6040516102149190612617565b34801561024b57600080fd5b5061025f61025a3660046121e7565b610723565b005b34801561026d57600080fd5b5061028161027c36600461248d565b610763565b6040516001600160a01b039091168152602001610214565b3480156102a557600080fd5b5061025f6102b4366004612331565b6107ee565b3480156102c557600080fd5b506000545b604051908152602001610214565b3480156102e457600080fd5b5061025f6102f336600461223d565b610906565b34801561030457600080fd5b506102ca610313366004612331565b610938565b34801561032457600080fd5b5061025f61033336600461248d565b610aa6565b34801561034457600080fd5b5061025f61035336600461223d565b610ba6565b34801561036457600080fd5b506103786103733660046121e7565b610bc1565b60405161021491906125d3565b34801561039157600080fd5b506102816103a036600461248d565b600d602052600090815260409020546001600160a01b031681565b3480156103c757600080fd5b50600f54610281906001600160a01b031681565b3480156103e757600080fd5b506102ca6103f636600461248d565b610cfa565b34801561040757600080fd5b5061025f610416366004612444565b610d5c565b34801561042757600080fd5b5061028161043636600461248d565b610d9d565b34801561044757600080fd5b50610232610daf565b34801561045c57600080fd5b506102ca61046b3660046121e7565b610e3d565b34801561047c57600080fd5b5061025f610ece565b34801561049157600080fd5b5061025f610f04565b61025f6104a836600461235d565b610f38565b3480156104b957600080fd5b506008546001600160a01b0316610281565b3480156104d757600080fd5b506102086104e636600461248d565b600e6020526000908152604090205460ff1681565b34801561050757600080fd5b50610232611267565b34801561051c57600080fd5b5061025f61052b3660046121e7565b611276565b34801561053c57600080fd5b5061025f61054b3660046122fe565b6112c2565b34801561055c57600080fd5b5061025f61056b36600461227e565b611387565b34801561057c57600080fd5b506102326113c0565b34801561059157600080fd5b506102326105a036600461248d565b6113cd565b3480156105b157600080fd5b506102ca60075481565b3480156105c757600080fd5b506102086105d6366004612204565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561061057600080fd5b5061025f61061f3660046121e7565b61149d565b60006001600160e01b031982166380ac58cd60e01b148061065557506001600160e01b03198216635b5e139f60e01b145b8061067057506001600160e01b0319821663780e9d6360e01b145b8061068b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546106a0906127bc565b80601f01602080910402602001604051908101604052809291908181526020018280546106cc906127bc565b80156107195780601f106106ee57610100808354040283529160200191610719565b820191906000526020600020905b8154815290600101906020018083116106fc57829003601f168201915b5050505050905090565b6008546001600160a01b031633146107565760405162461bcd60e51b815260040161074d9061262a565b60405180910390fd5b6107608147611535565b50565b6000610770826000541190565b6107d25760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b606482015260840161074d565b506000908152600560205260409020546001600160a01b031690565b60006107f982610d9d565b9050806001600160a01b0316836001600160a01b031614156108685760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161074d565b336001600160a01b0382161480610884575061088481336105d6565b6108f65760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161074d565b6109018383836115ca565b505050565b6000818152600d6020526040902080546001600160a01b0319166001600160a01b038416179055610901838383611626565b600061094383610e3d565b821061099c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161074d565b600080549080805b83811015610a46576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156109f757805192505b876001600160a01b0316836001600160a01b03161415610a335786841415610a255750935061068b92505050565b83610a2f816127f7565b9450505b5080610a3e816127f7565b9150506109a4565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161074d565b6008546001600160a01b03163314610ad05760405162461bcd60e51b815260040161074d9061262a565b60026009541415610b235760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161074d565b600260095560005b81811015610b935733600d6000610b41600a5490565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610b81600a80546001019055565b80610b8b816127f7565b915050610b2b565b50610b9e3382611631565b506001600955565b61090183838360405180602001604052806000815250611387565b60606000610bce83610e3d565b905060008167ffffffffffffffff811115610beb57610beb612868565b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b509050600080610c2360005490565b905060005b81811015610cef576000610c3d826000541190565b90508015610c9857876001600160a01b0316610c5883610d9d565b6001600160a01b03161415610c935781858581518110610c7a57610c7a612852565b602090810291909101015283610c8f816127f7565b9450505b610cdc565b80158015610cc9575084610cad600188612762565b81518110610cbd57610cbd612852565b60200260200101516000145b15610cdc5782610cd8816127f7565b9350505b5080610ce7816127f7565b915050610c28565b509195945050505050565b600080548210610d585760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161074d565b5090565b6008546001600160a01b03163314610d865760405162461bcd60e51b815260040161074d9061262a565b8051610d9990600b9060208401906120ff565b5050565b6000610da88261164b565b5192915050565b600b8054610dbc906127bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610de8906127bc565b8015610e355780601f10610e0a57610100808354040283529160200191610e35565b820191906000526020600020905b815481529060010190602001808311610e1857829003601f168201915b505050505081565b60006001600160a01b038216610ea95760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161074d565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314610ef85760405162461bcd60e51b815260040161074d9061262a565b610f0260006117f5565b565b6008546001600160a01b03163314610f2e5760405162461bcd60e51b815260040161074d9061262a565b610f023347611535565b60026009541415610f8b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161074d565b600260098190558151610f9e9190612812565b15610feb5760405162461bcd60e51b815260206004820152601c60248201527f4f646420616d6f756e74206f66204475636b732053656c656374656400000000604482015260640161074d565b60005b81518110156111d5576103e982828151811061100c5761100c612852565b6020026020010151101561105b5760405162461bcd60e51b8152602060048201526016602482015275596f752073656c656374656420612047656e6573697360501b604482015260640161074d565b600e600083838151811061107157611071612852565b60209081029190910181015182528101919091526040016000205460ff16156110dc5760405162461bcd60e51b815260206004820152601f60248201527f5468657365206475636b73206861766520616c72656164792066757365642100604482015260640161074d565b600f5482516001600160a01b03909116906323b872dd90339061dead9086908690811061110b5761110b612852565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561116557600080fd5b505af1158015611179573d6000803e3d6000fd5b505050506001600e600084848151811061119557611195612852565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806111cd906127f7565b915050610fee565b506000600282516111e69190612726565b905060005b818110156112535733600d6000611201600a5490565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611241600a80546001019055565b8061124b816127f7565b9150506111eb565b5061125e3382611631565b50506001600955565b6060600280546106a0906127bc565b6008546001600160a01b031633146112a05760405162461bcd60e51b815260040161074d9061262a565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03821633141561131b5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604482015260640161074d565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000828152600d6020526040902080546001600160a01b0319166001600160a01b0385161790556113ba84848484611847565b50505050565b600c8054610dbc906127bc565b60606113da826000541190565b61143e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161074d565b600061144861187a565b905060008151116114685760405180602001604052806000815250611496565b8061147284611889565b600c604051602001611486939291906124d2565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146114c75760405162461bcd60e51b815260040161074d9061262a565b6001600160a01b03811661152c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161074d565b610760816117f5565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611582576040519150601f19603f3d011682016040523d82523d6000602084013e611587565b606091505b50509050806109015760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161074d565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61090183838361198f565b610d99828260405180602001604052806000815250611d17565b604080518082019091526000808252602082015261166a826000541190565b6116c95760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161074d565b60007f0000000000000000000000000000000000000000000000000000000000000000831061172a5761171c7f000000000000000000000000000000000000000000000000000000000000000084612762565b61172790600161270e565b90505b825b818110611794576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561178157949350505050565b508061178c816127a5565b91505061172c565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161074d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61185284848461198f565b61185e84848484611ff2565b6113ba5760405162461bcd60e51b815260040161074d9061265f565b6060600b80546106a0906127bc565b6060816118ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118d757806118c1816127f7565b91506118d09050600a83612726565b91506118b1565b60008167ffffffffffffffff8111156118f2576118f2612868565b6040519080825280601f01601f19166020018201604052801561191c576020820181803683370190505b5090505b841561198757611931600183612762565b915061193e600a86612812565b61194990603061270e565b60f81b81838151811061195e5761195e612852565b60200101906001600160f81b031916908160001a905350611980600a86612726565b9450611920565b949350505050565b600061199a8261164b565b80519091506000906001600160a01b0316336001600160a01b031614806119d15750336119c684610763565b6001600160a01b0316145b806119e3575081516119e390336105d6565b905080611a4d5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161074d565b846001600160a01b031682600001516001600160a01b031614611ac15760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161074d565b6001600160a01b038416611b255760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161074d565b611b3560008484600001516115ca565b6001600160a01b0385166000908152600460205260408120805460019290611b679084906001600160801b031661273a565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611bb3918591166126e3565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611c3b84600161270e565b6000818152600360205260409020549091506001600160a01b0316611ccd57611c65816000541190565b15611ccd5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000546001600160a01b038416611d7a5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161074d565b611d85816000541190565b15611dd25760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161074d565b7f0000000000000000000000000000000000000000000000000000000000000000831115611e4d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161074d565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611ea99087906126e3565b6001600160801b03168152602001858360200151611ec791906126e3565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611fe75760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611fab6000888488611ff2565b611fc75760405162461bcd60e51b815260040161074d9061265f565b81611fd1816127f7565b9250508080611fdf906127f7565b915050611f5e565b506000819055611d0f565b60006001600160a01b0384163b156120f457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612036903390899088908890600401612596565b602060405180830381600087803b15801561205057600080fd5b505af1925050508015612080575060408051601f3d908101601f1916820190925261207d91810190612427565b60015b6120da573d8080156120ae576040519150601f19603f3d011682016040523d82523d6000602084013e6120b3565b606091505b5080516120d25760405162461bcd60e51b815260040161074d9061265f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611987565b506001949350505050565b82805461210b906127bc565b90600052602060002090601f01602090048101928261212d5760008555612173565b82601f1061214657805160ff1916838001178555612173565b82800160010185558215612173579182015b82811115612173578251825591602001919060010190612158565b50610d589291505b80821115610d58576000815560010161217b565b600067ffffffffffffffff8311156121a9576121a9612868565b6121bc601f8401601f19166020016126b2565b90508281528383830111156121d057600080fd5b828260208301376000602084830101529392505050565b6000602082840312156121f957600080fd5b81356114968161287e565b6000806040838503121561221757600080fd5b82356122228161287e565b915060208301356122328161287e565b809150509250929050565b60008060006060848603121561225257600080fd5b833561225d8161287e565b9250602084013561226d8161287e565b929592945050506040919091013590565b6000806000806080858703121561229457600080fd5b843561229f8161287e565b935060208501356122af8161287e565b925060408501359150606085013567ffffffffffffffff8111156122d257600080fd5b8501601f810187136122e357600080fd5b6122f28782356020840161218f565b91505092959194509250565b6000806040838503121561231157600080fd5b823561231c8161287e565b91506020830135801515811461223257600080fd5b6000806040838503121561234457600080fd5b823561234f8161287e565b946020939093013593505050565b6000602080838503121561237057600080fd5b823567ffffffffffffffff8082111561238857600080fd5b818501915085601f83011261239c57600080fd5b8135818111156123ae576123ae612868565b8060051b91506123bf8483016126b2565b8181528481019084860184860187018a10156123da57600080fd5b600095505b838610156123fd5780358352600195909501949186019186016123df565b5098975050505050505050565b60006020828403121561241c57600080fd5b813561149681612893565b60006020828403121561243957600080fd5b815161149681612893565b60006020828403121561245657600080fd5b813567ffffffffffffffff81111561246d57600080fd5b8201601f8101841361247e57600080fd5b6119878482356020840161218f565b60006020828403121561249f57600080fd5b5035919050565b600081518084526124be816020860160208601612779565b601f01601f19169290920160200192915050565b6000845160206124e58285838a01612779565b8551918401916124f88184848a01612779565b8554920191600090600181811c908083168061251557607f831692505b85831081141561253357634e487b7160e01b85526022600452602485fd5b808015612547576001811461255857612585565b60ff19851688528388019550612585565b60008b81526020902060005b8581101561257d5781548a820152908401908801612564565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125c9908301846124a6565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561260b578351835292840192918401916001016125ef565b50909695505050505050565b60208152600061149660208301846124a6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156126db576126db612868565b604052919050565b60006001600160801b0380831681851680830382111561270557612705612826565b01949350505050565b6000821982111561272157612721612826565b500190565b6000826127355761273561283c565b500490565b60006001600160801b038381169083168181101561275a5761275a612826565b039392505050565b60008282101561277457612774612826565b500390565b60005b8381101561279457818101518382015260200161277c565b838111156113ba5750506000910152565b6000816127b4576127b4612826565b506000190190565b600181811c908216806127d057607f821691505b602082108114156127f157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561280b5761280b612826565b5060010190565b6000826128215761282161283c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461076057600080fd5b6001600160e01b03198116811461076057600080fdfea2646970667358221220397a8650082baddfb6634f3cdf04cd89352f6a854eb636cd8512dee1031c0f6b64736f6c63430008070033
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80636c0360eb11610102578063985d3cc711610095578063c87b56dd11610064578063c87b56dd14610585578063d7224ba0146105a5578063e985e9c5146105bb578063f2fde38b1461060457600080fd5b8063985d3cc714610510578063a22cb46514610530578063b88d4fde14610550578063c66828621461057057600080fd5b80637f4bfa9f116100d15780637f4bfa9f1461049a5780638da5cb5b146104ad57806390132a01146104cb57806395d89b41146104fb57600080fd5b80636c0360eb1461043b57806370a0823114610450578063715018a6146104705780637362377b1461048557600080fd5b80632fbba1151161017a578063492037ac11610149578063492037ac146103bb5780634f6ccce7146103db57806355f804b3146103fb5780636352211e1461041b57600080fd5b80632fbba1151461031857806342842e0e14610338578063438b63001461035857806347f75bec1461038557600080fd5b8063095ea7b3116101b6578063095ea7b31461029957806318160ddd146102b957806323b872dd146102d85780632f745c59146102f857600080fd5b806301ffc9a7146101e857806306fdde031461021d57806307fa40e41461023f578063081812fc14610261575b600080fd5b3480156101f457600080fd5b5061020861020336600461240a565b610624565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610232610691565b6040516102149190612617565b34801561024b57600080fd5b5061025f61025a3660046121e7565b610723565b005b34801561026d57600080fd5b5061028161027c36600461248d565b610763565b6040516001600160a01b039091168152602001610214565b3480156102a557600080fd5b5061025f6102b4366004612331565b6107ee565b3480156102c557600080fd5b506000545b604051908152602001610214565b3480156102e457600080fd5b5061025f6102f336600461223d565b610906565b34801561030457600080fd5b506102ca610313366004612331565b610938565b34801561032457600080fd5b5061025f61033336600461248d565b610aa6565b34801561034457600080fd5b5061025f61035336600461223d565b610ba6565b34801561036457600080fd5b506103786103733660046121e7565b610bc1565b60405161021491906125d3565b34801561039157600080fd5b506102816103a036600461248d565b600d602052600090815260409020546001600160a01b031681565b3480156103c757600080fd5b50600f54610281906001600160a01b031681565b3480156103e757600080fd5b506102ca6103f636600461248d565b610cfa565b34801561040757600080fd5b5061025f610416366004612444565b610d5c565b34801561042757600080fd5b5061028161043636600461248d565b610d9d565b34801561044757600080fd5b50610232610daf565b34801561045c57600080fd5b506102ca61046b3660046121e7565b610e3d565b34801561047c57600080fd5b5061025f610ece565b34801561049157600080fd5b5061025f610f04565b61025f6104a836600461235d565b610f38565b3480156104b957600080fd5b506008546001600160a01b0316610281565b3480156104d757600080fd5b506102086104e636600461248d565b600e6020526000908152604090205460ff1681565b34801561050757600080fd5b50610232611267565b34801561051c57600080fd5b5061025f61052b3660046121e7565b611276565b34801561053c57600080fd5b5061025f61054b3660046122fe565b6112c2565b34801561055c57600080fd5b5061025f61056b36600461227e565b611387565b34801561057c57600080fd5b506102326113c0565b34801561059157600080fd5b506102326105a036600461248d565b6113cd565b3480156105b157600080fd5b506102ca60075481565b3480156105c757600080fd5b506102086105d6366004612204565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561061057600080fd5b5061025f61061f3660046121e7565b61149d565b60006001600160e01b031982166380ac58cd60e01b148061065557506001600160e01b03198216635b5e139f60e01b145b8061067057506001600160e01b0319821663780e9d6360e01b145b8061068b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546106a0906127bc565b80601f01602080910402602001604051908101604052809291908181526020018280546106cc906127bc565b80156107195780601f106106ee57610100808354040283529160200191610719565b820191906000526020600020905b8154815290600101906020018083116106fc57829003601f168201915b5050505050905090565b6008546001600160a01b031633146107565760405162461bcd60e51b815260040161074d9061262a565b60405180910390fd5b6107608147611535565b50565b6000610770826000541190565b6107d25760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b606482015260840161074d565b506000908152600560205260409020546001600160a01b031690565b60006107f982610d9d565b9050806001600160a01b0316836001600160a01b031614156108685760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161074d565b336001600160a01b0382161480610884575061088481336105d6565b6108f65760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161074d565b6109018383836115ca565b505050565b6000818152600d6020526040902080546001600160a01b0319166001600160a01b038416179055610901838383611626565b600061094383610e3d565b821061099c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161074d565b600080549080805b83811015610a46576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156109f757805192505b876001600160a01b0316836001600160a01b03161415610a335786841415610a255750935061068b92505050565b83610a2f816127f7565b9450505b5080610a3e816127f7565b9150506109a4565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161074d565b6008546001600160a01b03163314610ad05760405162461bcd60e51b815260040161074d9061262a565b60026009541415610b235760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161074d565b600260095560005b81811015610b935733600d6000610b41600a5490565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610b81600a80546001019055565b80610b8b816127f7565b915050610b2b565b50610b9e3382611631565b506001600955565b61090183838360405180602001604052806000815250611387565b60606000610bce83610e3d565b905060008167ffffffffffffffff811115610beb57610beb612868565b604051908082528060200260200182016040528015610c14578160200160208202803683370190505b509050600080610c2360005490565b905060005b81811015610cef576000610c3d826000541190565b90508015610c9857876001600160a01b0316610c5883610d9d565b6001600160a01b03161415610c935781858581518110610c7a57610c7a612852565b602090810291909101015283610c8f816127f7565b9450505b610cdc565b80158015610cc9575084610cad600188612762565b81518110610cbd57610cbd612852565b60200260200101516000145b15610cdc5782610cd8816127f7565b9350505b5080610ce7816127f7565b915050610c28565b509195945050505050565b600080548210610d585760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161074d565b5090565b6008546001600160a01b03163314610d865760405162461bcd60e51b815260040161074d9061262a565b8051610d9990600b9060208401906120ff565b5050565b6000610da88261164b565b5192915050565b600b8054610dbc906127bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610de8906127bc565b8015610e355780601f10610e0a57610100808354040283529160200191610e35565b820191906000526020600020905b815481529060010190602001808311610e1857829003601f168201915b505050505081565b60006001600160a01b038216610ea95760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161074d565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314610ef85760405162461bcd60e51b815260040161074d9061262a565b610f0260006117f5565b565b6008546001600160a01b03163314610f2e5760405162461bcd60e51b815260040161074d9061262a565b610f023347611535565b60026009541415610f8b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161074d565b600260098190558151610f9e9190612812565b15610feb5760405162461bcd60e51b815260206004820152601c60248201527f4f646420616d6f756e74206f66204475636b732053656c656374656400000000604482015260640161074d565b60005b81518110156111d5576103e982828151811061100c5761100c612852565b6020026020010151101561105b5760405162461bcd60e51b8152602060048201526016602482015275596f752073656c656374656420612047656e6573697360501b604482015260640161074d565b600e600083838151811061107157611071612852565b60209081029190910181015182528101919091526040016000205460ff16156110dc5760405162461bcd60e51b815260206004820152601f60248201527f5468657365206475636b73206861766520616c72656164792066757365642100604482015260640161074d565b600f5482516001600160a01b03909116906323b872dd90339061dead9086908690811061110b5761110b612852565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561116557600080fd5b505af1158015611179573d6000803e3d6000fd5b505050506001600e600084848151811061119557611195612852565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806111cd906127f7565b915050610fee565b506000600282516111e69190612726565b905060005b818110156112535733600d6000611201600a5490565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611241600a80546001019055565b8061124b816127f7565b9150506111eb565b5061125e3382611631565b50506001600955565b6060600280546106a0906127bc565b6008546001600160a01b031633146112a05760405162461bcd60e51b815260040161074d9061262a565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03821633141561131b5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604482015260640161074d565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000828152600d6020526040902080546001600160a01b0319166001600160a01b0385161790556113ba84848484611847565b50505050565b600c8054610dbc906127bc565b60606113da826000541190565b61143e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161074d565b600061144861187a565b905060008151116114685760405180602001604052806000815250611496565b8061147284611889565b600c604051602001611486939291906124d2565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146114c75760405162461bcd60e51b815260040161074d9061262a565b6001600160a01b03811661152c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161074d565b610760816117f5565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611582576040519150601f19603f3d011682016040523d82523d6000602084013e611587565b606091505b50509050806109015760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161074d565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61090183838361198f565b610d99828260405180602001604052806000815250611d17565b604080518082019091526000808252602082015261166a826000541190565b6116c95760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161074d565b60007f0000000000000000000000000000000000000000000000000000000000000064831061172a5761171c7f000000000000000000000000000000000000000000000000000000000000006484612762565b61172790600161270e565b90505b825b818110611794576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561178157949350505050565b508061178c816127a5565b91505061172c565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161074d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61185284848461198f565b61185e84848484611ff2565b6113ba5760405162461bcd60e51b815260040161074d9061265f565b6060600b80546106a0906127bc565b6060816118ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118d757806118c1816127f7565b91506118d09050600a83612726565b91506118b1565b60008167ffffffffffffffff8111156118f2576118f2612868565b6040519080825280601f01601f19166020018201604052801561191c576020820181803683370190505b5090505b841561198757611931600183612762565b915061193e600a86612812565b61194990603061270e565b60f81b81838151811061195e5761195e612852565b60200101906001600160f81b031916908160001a905350611980600a86612726565b9450611920565b949350505050565b600061199a8261164b565b80519091506000906001600160a01b0316336001600160a01b031614806119d15750336119c684610763565b6001600160a01b0316145b806119e3575081516119e390336105d6565b905080611a4d5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161074d565b846001600160a01b031682600001516001600160a01b031614611ac15760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161074d565b6001600160a01b038416611b255760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161074d565b611b3560008484600001516115ca565b6001600160a01b0385166000908152600460205260408120805460019290611b679084906001600160801b031661273a565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611bb3918591166126e3565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611c3b84600161270e565b6000818152600360205260409020549091506001600160a01b0316611ccd57611c65816000541190565b15611ccd5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000546001600160a01b038416611d7a5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161074d565b611d85816000541190565b15611dd25760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161074d565b7f0000000000000000000000000000000000000000000000000000000000000064831115611e4d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161074d565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611ea99087906126e3565b6001600160801b03168152602001858360200151611ec791906126e3565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611fe75760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611fab6000888488611ff2565b611fc75760405162461bcd60e51b815260040161074d9061265f565b81611fd1816127f7565b9250508080611fdf906127f7565b915050611f5e565b506000819055611d0f565b60006001600160a01b0384163b156120f457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612036903390899088908890600401612596565b602060405180830381600087803b15801561205057600080fd5b505af1925050508015612080575060408051601f3d908101601f1916820190925261207d91810190612427565b60015b6120da573d8080156120ae576040519150601f19603f3d011682016040523d82523d6000602084013e6120b3565b606091505b5080516120d25760405162461bcd60e51b815260040161074d9061265f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611987565b506001949350505050565b82805461210b906127bc565b90600052602060002090601f01602090048101928261212d5760008555612173565b82601f1061214657805160ff1916838001178555612173565b82800160010185558215612173579182015b82811115612173578251825591602001919060010190612158565b50610d589291505b80821115610d58576000815560010161217b565b600067ffffffffffffffff8311156121a9576121a9612868565b6121bc601f8401601f19166020016126b2565b90508281528383830111156121d057600080fd5b828260208301376000602084830101529392505050565b6000602082840312156121f957600080fd5b81356114968161287e565b6000806040838503121561221757600080fd5b82356122228161287e565b915060208301356122328161287e565b809150509250929050565b60008060006060848603121561225257600080fd5b833561225d8161287e565b9250602084013561226d8161287e565b929592945050506040919091013590565b6000806000806080858703121561229457600080fd5b843561229f8161287e565b935060208501356122af8161287e565b925060408501359150606085013567ffffffffffffffff8111156122d257600080fd5b8501601f810187136122e357600080fd5b6122f28782356020840161218f565b91505092959194509250565b6000806040838503121561231157600080fd5b823561231c8161287e565b91506020830135801515811461223257600080fd5b6000806040838503121561234457600080fd5b823561234f8161287e565b946020939093013593505050565b6000602080838503121561237057600080fd5b823567ffffffffffffffff8082111561238857600080fd5b818501915085601f83011261239c57600080fd5b8135818111156123ae576123ae612868565b8060051b91506123bf8483016126b2565b8181528481019084860184860187018a10156123da57600080fd5b600095505b838610156123fd5780358352600195909501949186019186016123df565b5098975050505050505050565b60006020828403121561241c57600080fd5b813561149681612893565b60006020828403121561243957600080fd5b815161149681612893565b60006020828403121561245657600080fd5b813567ffffffffffffffff81111561246d57600080fd5b8201601f8101841361247e57600080fd5b6119878482356020840161218f565b60006020828403121561249f57600080fd5b5035919050565b600081518084526124be816020860160208601612779565b601f01601f19169290920160200192915050565b6000845160206124e58285838a01612779565b8551918401916124f88184848a01612779565b8554920191600090600181811c908083168061251557607f831692505b85831081141561253357634e487b7160e01b85526022600452602485fd5b808015612547576001811461255857612585565b60ff19851688528388019550612585565b60008b81526020902060005b8581101561257d5781548a820152908401908801612564565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125c9908301846124a6565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561260b578351835292840192918401916001016125ef565b50909695505050505050565b60208152600061149660208301846124a6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156126db576126db612868565b604052919050565b60006001600160801b0380831681851680830382111561270557612705612826565b01949350505050565b6000821982111561272157612721612826565b500190565b6000826127355761273561283c565b500490565b60006001600160801b038381169083168181101561275a5761275a612826565b039392505050565b60008282101561277457612774612826565b500390565b60005b8381101561279457818101518382015260200161277c565b838111156113ba5750506000910152565b6000816127b4576127b4612826565b506000190190565b600181811c908216806127d057607f821691505b602082108114156127f157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561280b5761280b612826565b5060010190565b6000826128215761282161283c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461076057600080fd5b6001600160e01b03198116811461076057600080fdfea2646970667358221220397a8650082baddfb6634f3cdf04cd89352f6a854eb636cd8512dee1031c0f6b64736f6c63430008070033
Deployed Bytecode Sourcemap
116801:4012:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104484:370;;;;;;;;;;-1:-1:-1;104484:370:0;;;;;:::i;:::-;;:::i;:::-;;;9324:14:1;;9317:22;9299:41;;9287:2;9272:18;104484:370:0;;;;;;;;106210:94;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;119043:121::-;;;;;;;;;;-1:-1:-1;119043:121:0;;;;;:::i;:::-;;:::i;:::-;;107735:204;;;;;;;;;;-1:-1:-1;107735:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7605:32:1;;;7587:51;;7575:2;7560:18;107735:204:0;7441:203:1;107298:379:0;;;;;;;;;;-1:-1:-1;107298:379:0;;;;;:::i;:::-;;:::i;103048:94::-;;;;;;;;;;-1:-1:-1;103101:7:0;103124:12;103048:94;;;19778:25:1;;;19766:2;19751:18;103048:94:0;19632:177:1;120408:176:0;;;;;;;;;;-1:-1:-1;120408:176:0;;;;;:::i;:::-;;:::i;103676:744::-;;;;;;;;;;-1:-1:-1;103676:744:0;;;;;:::i;:::-;;:::i;117565:292::-;;;;;;;;;;-1:-1:-1;117565:292:0;;;;;:::i;:::-;;:::i;108798:165::-;;;;;;;;;;-1:-1:-1;108798:165:0;;;;;:::i;:::-;;:::i;119786:614::-;;;;;;;;;;-1:-1:-1;119786:614:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;117099:56::-;;;;;;;;;;-1:-1:-1;117099:56:0;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;117099:56:0;;;117212:28;;;;;;;;;;-1:-1:-1;117212:28:0;;;;-1:-1:-1;;;;;117212:28:0;;;103211:177;;;;;;;;;;-1:-1:-1;103211:177:0;;;;;:::i;:::-;;:::i;119176:104::-;;;;;;;;;;-1:-1:-1;119176:104:0;;;;;:::i;:::-;;:::i;106033:118::-;;;;;;;;;;-1:-1:-1;106033:118:0;;;;;:::i;:::-;;:::i;117025:21::-;;;;;;;;;;;;;:::i;104910:211::-;;;;;;;;;;-1:-1:-1;104910:211:0;;;;;:::i;:::-;;:::i;48715:103::-;;;;;;;;;;;;;:::i;118919:116::-;;;;;;;;;;;;;:::i;117865:839::-;;;;;;:::i;:::-;;:::i;48064:87::-;;;;;;;;;;-1:-1:-1;48137:6:0;;-1:-1:-1;;;;;48137:6:0;48064:87;;117162:41;;;;;;;;;;-1:-1:-1;117162:41:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;106365:98;;;;;;;;;;;;;:::i;117336:130::-;;;;;;;;;;-1:-1:-1;117336:130:0;;;;;:::i;:::-;;:::i;108003:274::-;;;;;;;;;;-1:-1:-1;108003:274:0;;;;;:::i;:::-;;:::i;120589:211::-;;;;;;;;;;-1:-1:-1;120589:211:0;;;;;:::i;:::-;;:::i;117053:37::-;;;;;;;;;;;;;:::i;119403:375::-;;;;;;;;;;-1:-1:-1;119403:375:0;;;;;:::i;:::-;;:::i;113373:43::-;;;;;;;;;;;;;;;;108340:186;;;;;;;;;;-1:-1:-1;108340:186:0;;;;;:::i;:::-;-1:-1:-1;;;;;108485:25:0;;;108462:4;108485:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;108340:186;48973:201;;;;;;;;;;-1:-1:-1;48973:201:0;;;;;:::i;:::-;;:::i;104484:370::-;104611:4;-1:-1:-1;;;;;;104641:40:0;;-1:-1:-1;;;104641:40:0;;:99;;-1:-1:-1;;;;;;;104692:48:0;;-1:-1:-1;;;104692:48:0;104641:99;:160;;;-1:-1:-1;;;;;;;104751:50:0;;-1:-1:-1;;;104751:50:0;104641:160;:207;;;-1:-1:-1;;;;;;;;;;60957:40:0;;;104812:36;104627:221;104484:370;-1:-1:-1;;104484:370:0:o;106210:94::-;106264:13;106293:5;106286:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106210:94;:::o;119043:121::-;48137:6;;-1:-1:-1;;;;;48137:6:0;31622:10;48284:23;48276:68;;;;-1:-1:-1;;;48276:68:0;;;;;;;:::i;:::-;;;;;;;;;119119:37:::1;119129:3;119134:21;119119:9;:37::i;:::-;119043:121:::0;:::o;107735:204::-;107803:7;107827:16;107835:7;109641:4;109671:12;-1:-1:-1;109661:22:0;109584:105;107827:16;107819:74;;;;-1:-1:-1;;;107819:74:0;;19017:2:1;107819:74:0;;;18999:21:1;19056:2;19036:18;;;19029:30;19095:34;19075:18;;;19068:62;-1:-1:-1;;;19146:18:1;;;19139:43;19199:19;;107819:74:0;18815:409:1;107819:74:0;-1:-1:-1;107909:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;107909:24:0;;107735:204::o;107298:379::-;107367:13;107383:24;107399:7;107383:15;:24::i;:::-;107367:40;;107428:5;-1:-1:-1;;;;;107422:11:0;:2;-1:-1:-1;;;;;107422:11:0;;;107414:58;;;;-1:-1:-1;;;107414:58:0;;15532:2:1;107414:58:0;;;15514:21:1;15571:2;15551:18;;;15544:30;15610:34;15590:18;;;15583:62;-1:-1:-1;;;15661:18:1;;;15654:32;15703:19;;107414:58:0;15330:398:1;107414:58:0;31622:10;-1:-1:-1;;;;;107497:21:0;;;;:62;;-1:-1:-1;107522:37:0;107539:5;31622:10;108340:186;:::i;107522:37::-;107481:153;;;;-1:-1:-1;;;107481:153:0;;12736:2:1;107481:153:0;;;12718:21:1;12775:2;12755:18;;;12748:30;12814:34;12794:18;;;12787:62;12885:27;12865:18;;;12858:55;12930:19;;107481:153:0;12534:421:1;107481:153:0;107643:28;107652:2;107656:7;107665:5;107643:8;:28::i;:::-;107360:317;107298:379;;:::o;120408:176::-;120501:29;;;;:20;:29;;;;;:34;;-1:-1:-1;;;;;;120501:34:0;-1:-1:-1;;;;;120501:34:0;;;;;120540:39;120561:4;120501:34;:29;120540:20;:39::i;103676:744::-;103785:7;103820:16;103830:5;103820:9;:16::i;:::-;103812:5;:24;103804:71;;;;-1:-1:-1;;;103804:71:0;;10004:2:1;103804:71:0;;;9986:21:1;10043:2;10023:18;;;10016:30;10082:34;10062:18;;;10055:62;-1:-1:-1;;;10133:18:1;;;10126:32;10175:19;;103804:71:0;9802:398:1;103804:71:0;103882:22;103124:12;;;103882:22;;104002:350;104026:14;104022:1;:18;104002:350;;;104056:31;104090:14;;;:11;:14;;;;;;;;;104056:48;;;;;;;;;-1:-1:-1;;;;;104056:48:0;;;;;-1:-1:-1;;;104056:48:0;;;;;;;;;;;;104117:28;104113:89;;104178:14;;;-1:-1:-1;104113:89:0;104235:5;-1:-1:-1;;;;;104214:26:0;:17;-1:-1:-1;;;;;104214:26:0;;104210:135;;;104272:5;104257:11;:20;104253:59;;;-1:-1:-1;104299:1:0;-1:-1:-1;104292:8:0;;-1:-1:-1;;;104292:8:0;104253:59;104322:13;;;;:::i;:::-;;;;104210:135;-1:-1:-1;104042:3:0;;;;:::i;:::-;;;;104002:350;;;-1:-1:-1;104358:56:0;;-1:-1:-1;;;104358:56:0;;17826:2:1;104358:56:0;;;17808:21:1;17865:2;17845:18;;;17838:30;17904:34;17884:18;;;17877:62;-1:-1:-1;;;17955:18:1;;;17948:44;18009:19;;104358:56:0;17624:410:1;117565:292:0;48137:6;;-1:-1:-1;;;;;48137:6:0;31622:10;48284:23;48276:68;;;;-1:-1:-1;;;48276:68:0;;;;;;;:::i;:::-;27792:1:::1;28390:7;;:19;;28382:63;;;::::0;-1:-1:-1;;;28382:63:0;;18241:2:1;28382:63:0::1;::::0;::::1;18223:21:1::0;18280:2;18260:18;;;18253:30;18319:33;18299:18;;;18292:61;18370:18;;28382:63:0::1;18039:355:1::0;28382:63:0::1;27792:1;28523:7;:18:::0;117649:6:::2;117645:165;117660:6;117658:1;:8;117645:165;;;117746:10;117696:20;:47;117717:25;:15;25479:14:::0;;25387:114;117717:25:::2;117696:47;;;;;;;;;;;;:60;;;;;-1:-1:-1::0;;;;;117696:60:0::2;;;;;-1:-1:-1::0;;;;;117696:60:0::2;;;;;;117771:27;:15;25598:19:::0;;25616:1;25598:19;;;25509:127;117771:27:::2;117667:3:::0;::::2;::::0;::::2;:::i;:::-;;;;117645:165;;;;117820:29;117830:10;117842:6;117820:9;:29::i;:::-;-1:-1:-1::0;27748:1:0::1;28702:7;:22:::0;117565:292::o;108798:165::-;108918:39;108935:4;108941:2;108945:7;108918:39;;;;;;;;;;;;:16;:39::i;119786:614::-;119856:16;119885;119904:19;119914:8;119904:9;:19::i;:::-;119885:38;;119934:24;119976:8;119961:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;119961:24:0;;119934:51;;119996:14;120021:20;120044:13;103101:7;103124:12;;103048:94;120044:13;120021:36;;120073:9;120068:300;120092:12;120088:1;:16;120068:300;;;120126:12;120141:10;120149:1;109641:4;109671:12;-1:-1:-1;109661:22:0;109584:105;120141:10;120126:25;;120170:7;120166:191;;;120216:8;-1:-1:-1;;;;;120202:22:0;:10;120210:1;120202:7;:10::i;:::-;-1:-1:-1;;;;;120202:22:0;;120198:62;;;120246:1;120228:7;120236:6;120228:15;;;;;;;;:::i;:::-;;;;;;;;;;:19;120249:8;;;;:::i;:::-;;;;120198:62;120166:191;;;120299:7;120298:8;:38;;;;-1:-1:-1;120310:7:0;120318:12;120329:1;120318:8;:12;:::i;:::-;120310:21;;;;;;;;:::i;:::-;;;;;;;120335:1;120310:26;120298:38;120294:63;;;120340:14;;;;:::i;:::-;;;;120294:63;-1:-1:-1;120106:3:0;;;;:::i;:::-;;;;120068:300;;;-1:-1:-1;120385:7:0;;119786:614;-1:-1:-1;;;;;119786:614:0:o;103211:177::-;103278:7;103124:12;;103302:5;:21;103294:69;;;;-1:-1:-1;;;103294:69:0;;11926:2:1;103294:69:0;;;11908:21:1;11965:2;11945:18;;;11938:30;12004:34;11984:18;;;11977:62;-1:-1:-1;;;12055:18:1;;;12048:33;12098:19;;103294:69:0;11724:399:1;103294:69:0;-1:-1:-1;103377:5:0;103211:177::o;119176:104::-;48137:6;;-1:-1:-1;;;;;48137:6:0;31622:10;48284:23;48276:68;;;;-1:-1:-1;;;48276:68:0;;;;;;;:::i;:::-;119251:21;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;:::-;;119176:104:::0;:::o;106033:118::-;106097:7;106120:20;106132:7;106120:11;:20::i;:::-;:25;;106033:118;-1:-1:-1;;106033:118:0:o;117025:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;104910:211::-;104974:7;-1:-1:-1;;;;;104998:19:0;;104990:75;;;;-1:-1:-1;;;104990:75:0;;13162:2:1;104990:75:0;;;13144:21:1;13201:2;13181:18;;;13174:30;13240:34;13220:18;;;13213:62;-1:-1:-1;;;13291:18:1;;;13284:41;13342:19;;104990:75:0;12960:407:1;104990:75:0;-1:-1:-1;;;;;;105087:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;105087:27:0;;104910:211::o;48715:103::-;48137:6;;-1:-1:-1;;;;;48137:6:0;31622:10;48284:23;48276:68;;;;-1:-1:-1;;;48276:68:0;;;;;;;:::i;:::-;48780:30:::1;48807:1;48780:18;:30::i;:::-;48715:103::o:0;118919:116::-;48137:6;;-1:-1:-1;;;;;48137:6:0;31622:10;48284:23;48276:68;;;;-1:-1:-1;;;48276:68:0;;;;;;;:::i;:::-;118974:53:::1;118992:10;119005:21;118974:9;:53::i;117865:839::-:0;27792:1;28390:7;;:19;;28382:63;;;;-1:-1:-1;;;28382:63:0;;18241:2:1;28382:63:0;;;18223:21:1;18280:2;18260:18;;;18253:30;18319:33;18299:18;;;18292:61;18370:18;;28382:63:0;18039:355:1;28382:63:0;27792:1;28523:7;:18;;;117963:15;;:19:::1;::::0;27792:1;117963:19:::1;:::i;:::-;:24:::0;117955:65:::1;;;::::0;-1:-1:-1;;;117955:65:0;;10407:2:1;117955:65:0::1;::::0;::::1;10389:21:1::0;10446:2;10426:18;;;10419:30;10485;10465:18;;;10458:58;10533:18;;117955:65:0::1;10205:352:1::0;117955:65:0::1;118037:9;118033:363;118052:8;:15;118050:1;:17;118033:363;;;118121:4;118106:8;118115:1;118106:11;;;;;;;;:::i;:::-;;;;;;;:19;;118098:55;;;::::0;-1:-1:-1;;;118098:55:0;;16715:2:1;118098:55:0::1;::::0;::::1;16697:21:1::0;16754:2;16734:18;;;16727:30;-1:-1:-1;;;16773:18:1;;;16766:52;16835:18;;118098:55:0::1;16513:346:1::0;118098:55:0::1;118177:8;:21;118186:8;118195:1;118186:11;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;118177:21;;;::::1;::::0;;;;;;-1:-1:-1;118177:21:0;;::::1;;118176:22;118168:66;;;::::0;-1:-1:-1;;;118168:66:0;;15935:2:1;118168:66:0::1;::::0;::::1;15917:21:1::0;15974:2;15954:18;;;15947:30;16013:33;15993:18;;;15986:61;16064:18;;118168:66:0::1;15733:355:1::0;118168:66:0::1;118249:10;::::0;118329:11;;-1:-1:-1;;;;;118249:10:0;;::::1;::::0;:23:::1;::::0;118273:10:::1;::::0;118285:42:::1;::::0;118329:8;;118338:1;;118329:11;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;118249:92:::1;::::0;-1:-1:-1;;;;;;118249:92:0::1;::::0;;;;;;-1:-1:-1;;;;;7907:15:1;;;118249:92:0::1;::::0;::::1;7889:34:1::0;7959:15;;;;7939:18;;;7932:43;7991:18;;;7984:34;7824:18;;118249:92:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;118380:4;118356:8;:21;118365:8;118374:1;118365:11;;;;;;;;:::i;:::-;;;;;;;118356:21;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;118069:3;;;;;:::i;:::-;;;;118033:363;;;;118408:18;118447:1;118429:8;:15;:19;;;;:::i;:::-;118408:40;;118473:9;118469:174;118488:10;118486:1;:12;118469:174;;;118579:10;118529:20;:47;118550:25;:15;25479:14:::0;;25387:114;118550:25:::1;118529:47;;;;;;;;;;;;:60;;;;;-1:-1:-1::0;;;;;118529:60:0::1;;;;;-1:-1:-1::0;;;;;118529:60:0::1;;;;;;118604:27;:15;25598:19:::0;;25616:1;25598:19;;;25509:127;118604:27:::1;118500:3:::0;::::1;::::0;::::1;:::i;:::-;;;;118469:174;;;;118653:33;118663:10;118675;118653:9;:33::i;:::-;-1:-1:-1::0;;27748:1:0;28702:7;:22;117865:839::o;106365:98::-;106421:13;106450:7;106443:14;;;;;:::i;117336:130::-;48137:6;;-1:-1:-1;;;;;48137:6:0;31622:10;48284:23;48276:68;;;;-1:-1:-1;;;48276:68:0;;;;;;;:::i;:::-;117421:10:::1;:37:::0;;-1:-1:-1;;;;;;117421:37:0::1;-1:-1:-1::0;;;;;117421:37:0;;;::::1;::::0;;;::::1;::::0;;117336:130::o;108003:274::-;-1:-1:-1;;;;;108094:24:0;;31622:10;108094:24;;108086:63;;;;-1:-1:-1;;;108086:63:0;;14758:2:1;108086:63:0;;;14740:21:1;14797:2;14777:18;;;14770:30;14836:28;14816:18;;;14809:56;14882:18;;108086:63:0;14556:350:1;108086:63:0;31622:10;108158:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;108158:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;108158:53:0;;;;;;;;;;108223:48;;9299:41:1;;;108158:42:0;;31622:10;108223:48;;9272:18:1;108223:48:0;;;;;;;108003:274;;:::o;120589:211::-;120706:29;;;;:20;:29;;;;;:34;;-1:-1:-1;;;;;;120706:34:0;-1:-1:-1;;;;;120706:34:0;;;;;120745:50;120770:4;120706:34;:29;120789:5;120745:24;:50::i;:::-;120589:211;;;;:::o;117053:37::-;;;;;;;:::i;119403:375::-;119476:13;119515:16;119523:7;109641:4;109671:12;-1:-1:-1;109661:22:0;109584:105;119515:16;119507:76;;;;-1:-1:-1;;;119507:76:0;;14342:2:1;119507:76:0;;;14324:21:1;14381:2;14361:18;;;14354:30;14420:34;14400:18;;;14393:62;-1:-1:-1;;;14471:18:1;;;14464:45;14526:19;;119507:76:0;14140:411:1;119507:76:0;119596:28;119627:10;:8;:10::i;:::-;119596:41;;119686:1;119661:14;119655:28;:32;:115;;;;;;;;;;;;;;;;;119714:14;119730:18;:7;:16;:18::i;:::-;119750:13;119697:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;119655:115;119648:122;119403:375;-1:-1:-1;;;119403:375:0:o;48973:201::-;48137:6;;-1:-1:-1;;;;;48137:6:0;31622:10;48284:23;48276:68;;;;-1:-1:-1;;;48276:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;49062:22:0;::::1;49054:73;;;::::0;-1:-1:-1;;;49054:73:0;;10764:2:1;49054:73:0::1;::::0;::::1;10746:21:1::0;10803:2;10783:18;;;10776:30;10842:34;10822:18;;;10815:62;-1:-1:-1;;;10893:18:1;;;10886:36;10939:19;;49054:73:0::1;10562:402:1::0;49054:73:0::1;49138:28;49157:8;49138:18;:28::i;118714:197::-:0;118797:12;118823:8;-1:-1:-1;;;;;118815:22:0;118845:7;118815:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118796:61;;;118876:7;118868:35;;;;-1:-1:-1;;;118868:35:0;;11171:2:1;118868:35:0;;;11153:21:1;11210:2;11190:18;;;11183:30;-1:-1:-1;;;11229:18:1;;;11222:45;11284:18;;118868:35:0;10969:339:1;113195:172:0;113292:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;113292:29:0;-1:-1:-1;;;;;113292:29:0;;;;;;;;;113333:28;;113292:24;;113333:28;;;;;;;113195:172;;;:::o;108585:150::-;108701:28;108711:4;108717:2;108721:7;108701:9;:28::i;109695:98::-;109760:27;109770:2;109774:8;109760:27;;;;;;;;;;;;:9;:27::i;105373:606::-;-1:-1:-1;;;;;;;;;;;;;;;;;105490:16:0;105498:7;109641:4;109671:12;-1:-1:-1;109661:22:0;109584:105;105490:16;105482:71;;;;-1:-1:-1;;;105482:71:0;;11515:2:1;105482:71:0;;;11497:21:1;11554:2;11534:18;;;11527:30;11593:34;11573:18;;;11566:62;-1:-1:-1;;;11644:18:1;;;11637:40;11694:19;;105482:71:0;11313:406:1;105482:71:0;105562:26;105610:12;105599:7;:23;105595:93;;105654:22;105664:12;105654:7;:22;:::i;:::-;:26;;105679:1;105654:26;:::i;:::-;105633:47;;105595:93;105716:7;105696:212;105733:18;105725:4;:26;105696:212;;105770:31;105804:17;;;:11;:17;;;;;;;;;105770:51;;;;;;;;;-1:-1:-1;;;;;105770:51:0;;;;;-1:-1:-1;;;105770:51:0;;;;;;;;;;;;105834:28;105830:71;;105882:9;105373:606;-1:-1:-1;;;;105373:606:0:o;105830:71::-;-1:-1:-1;105753:6:0;;;;:::i;:::-;;;;105696:212;;;-1:-1:-1;105916:57:0;;-1:-1:-1;;;105916:57:0;;18601:2:1;105916:57:0;;;18583:21:1;18640:2;18620:18;;;18613:30;18679:34;18659:18;;;18652:62;-1:-1:-1;;;18730:18:1;;;18723:45;18785:19;;105916:57:0;18399:411:1;49334:191:0;49427:6;;;-1:-1:-1;;;;;49444:17:0;;;-1:-1:-1;;;;;;49444:17:0;;;;;;;49477:40;;49427:6;;;49444:17;49427:6;;49477:40;;49408:16;;49477:40;49397:128;49334:191;:::o;109026:319::-;109171:28;109181:4;109187:2;109191:7;109171:9;:28::i;:::-;109222:48;109245:4;109251:2;109255:7;109264:5;109222:22;:48::i;:::-;109206:133;;;;-1:-1:-1;;;109206:133:0;;;;;;;:::i;119286:108::-;119346:13;119379:7;119372: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;;;29812:6;29104:723;-1:-1:-1;;;;29104:723:0:o;111560:1529::-;111657:35;111695:20;111707:7;111695:11;:20::i;:::-;111766:18;;111657:58;;-1:-1:-1;111724:22:0;;-1:-1:-1;;;;;111750:34:0;31622:10;-1:-1:-1;;;;;111750:34:0;;:81;;;-1:-1:-1;31622:10:0;111795:20;111807:7;111795:11;:20::i;:::-;-1:-1:-1;;;;;111795:36:0;;111750:81;:142;;;-1:-1:-1;111859:18:0;;111842:50;;31622:10;108340:186;:::i;111842:50::-;111724:169;;111918:17;111902:101;;;;-1:-1:-1;;;111902:101:0;;15113:2:1;111902:101:0;;;15095:21:1;15152:2;15132:18;;;15125:30;15191:34;15171:18;;;15164:62;-1:-1:-1;;;15242:18:1;;;15235:48;15300:19;;111902:101:0;14911:414:1;111902:101:0;112050:4;-1:-1:-1;;;;;112028:26:0;:13;:18;;;-1:-1:-1;;;;;112028:26:0;;112012:98;;;;-1:-1:-1;;;112012:98:0;;13574:2:1;112012:98:0;;;13556:21:1;13613:2;13593:18;;;13586:30;13652:34;13632:18;;;13625:62;-1:-1:-1;;;13703:18:1;;;13696:36;13749:19;;112012:98:0;13372:402:1;112012:98:0;-1:-1:-1;;;;;112125:16:0;;112117:66;;;;-1:-1:-1;;;112117:66:0;;12330:2:1;112117:66:0;;;12312:21:1;12369:2;12349:18;;;12342:30;12408:34;12388:18;;;12381:62;-1:-1:-1;;;12459:18:1;;;12452:35;12504:19;;112117:66:0;12128:401:1;112117:66:0;112292:49;112309:1;112313:7;112322:13;:18;;;112292:8;:49::i;:::-;-1:-1:-1;;;;;112350:18:0;;;;;;:12;:18;;;;;:31;;112380:1;;112350:18;:31;;112380:1;;-1:-1:-1;;;;;112350:31:0;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;112350:31:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;112388:16:0;;-1:-1:-1;112388:16:0;;;:12;:16;;;;;:29;;-1:-1:-1;;;112388:16:0;;:29;;-1:-1:-1;;112388:29:0;;:::i;:::-;;;-1:-1:-1;;;;;112388:29:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;112447:43:0;;;;;;;;-1:-1:-1;;;;;112447:43:0;;;;;;112473:15;112447:43;;;;;;;;;-1:-1:-1;112424:20:0;;;:11;:20;;;;;;:66;;;;;;;;;-1:-1:-1;;;112424:66:0;-1:-1:-1;;;;;;112424:66:0;;;;;;;;;;;112740:11;112436:7;-1:-1:-1;112740:11:0;:::i;:::-;112803:1;112762:24;;;:11;:24;;;;;:29;112718:33;;-1:-1:-1;;;;;;112762:29:0;112758:236;;112820:20;112828:11;109641:4;109671:12;-1:-1:-1;109661:22:0;109584:105;112820:20;112816:171;;;112880:97;;;;;;;;112907:18;;-1:-1:-1;;;;;112880:97:0;;;;;;112938:28;;;;112880:97;;;;;;;;;;-1:-1:-1;112853:24:0;;;:11;:24;;;;;;;:124;;;;;;;;;-1:-1:-1;;;112853:124:0;-1:-1:-1;;;;;;112853:124:0;;;;;;;;;;;;112816:171;113026:7;113022:2;-1:-1:-1;;;;;113007:27:0;113016:4;-1:-1:-1;;;;;113007:27:0;;;;;;;;;;;113041:42;111650:1439;;;111560:1529;;;:::o;110048:1280::-;110161:20;110184:12;-1:-1:-1;;;;;110211:16:0;;110203:62;;;;-1:-1:-1;;;110203:62:0;;17424:2:1;110203:62:0;;;17406:21:1;17463:2;17443:18;;;17436:30;17502:34;17482:18;;;17475:62;-1:-1:-1;;;17553:18:1;;;17546:31;17594:19;;110203:62:0;17222:397:1;110203:62:0;110402:21;110410:12;109641:4;109671:12;-1:-1:-1;109661:22:0;109584:105;110402:21;110401:22;110393:64;;;;-1:-1:-1;;;110393:64:0;;17066:2:1;110393:64:0;;;17048:21:1;17105:2;17085:18;;;17078:30;17144:31;17124:18;;;17117:59;17193:18;;110393:64:0;16864:353:1;110393:64:0;110484:12;110472:8;:24;;110464:71;;;;-1:-1:-1;;;110464:71:0;;19431:2:1;110464:71:0;;;19413:21:1;19470:2;19450:18;;;19443:30;19509:34;19489:18;;;19482:62;-1:-1:-1;;;19560:18:1;;;19553:32;19602:19;;110464:71:0;19229:398:1;110464:71:0;-1:-1:-1;;;;;110647:16:0;;110614:30;110647:16;;;:12;:16;;;;;;;;;110614:49;;;;;;;;;-1:-1:-1;;;;;110614:49:0;;;;;-1:-1:-1;;;110614:49:0;;;;;;;;;;;110689:119;;;;;;;;110709:19;;110614:49;;110689:119;;;110709:39;;110739:8;;110709:39;:::i;:::-;-1:-1:-1;;;;;110689:119:0;;;;;110792:8;110757:11;:24;;;:44;;;;:::i;:::-;-1:-1:-1;;;;;110689:119:0;;;;;;-1:-1:-1;;;;;110670:16:0;;;;;;;:12;:16;;;;;;;;:138;;;;;;;;-1:-1:-1;;;110670:138:0;;;;;;;;;;;;110843:43;;;;;;;;;;;110869:15;110843:43;;;;;;;;110815:25;;;:11;:25;;;;;;:71;;;;;;;;;-1:-1:-1;;;110815:71:0;-1:-1:-1;;;;;;110815:71:0;;;;;;;;;;;;;;;;;;110827:12;;110939:281;110963:8;110959:1;:12;110939:281;;;110992:38;;111017:12;;-1:-1:-1;;;;;110992:38:0;;;111009:1;;110992:38;;111009:1;;110992:38;111057:59;111088:1;111092:2;111096:12;111110:5;111057:22;:59::i;:::-;111039:150;;;;-1:-1:-1;;;111039:150:0;;;;;;;:::i;:::-;111198:14;;;;:::i;:::-;;;;110973:3;;;;;:::i;:::-;;;;110939:281;;;-1:-1:-1;111228:12:0;:27;;;111262:60;120589:211;114906:690;115043:4;-1:-1:-1;;;;;115060:13:0;;51060:19;:23;115056:535;;115099:72;;-1:-1:-1;;;115099:72:0;;-1:-1:-1;;;;;115099:36:0;;;;;:72;;31622:10;;115150:4;;115156:7;;115165:5;;115099:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;115099:72:0;;;;;;;;-1:-1:-1;;115099:72:0;;;;;;;;;;;;:::i;:::-;;;115086:464;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;115330:13:0;;115326:215;;115363:61;;-1:-1:-1;;;115363:61:0;;;;;;;:::i;115326:215::-;115509:6;115503:13;115494:6;115490:2;115486:15;115479:38;115086:464;-1:-1:-1;;;;;;115221:55:0;-1:-1:-1;;;115221:55:0;;-1:-1:-1;115214:62:0;;115056:535;-1:-1:-1;115579:4:0;114906:690;;;;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;937:388::-;1005:6;1013;1066:2;1054:9;1045:7;1041:23;1037:32;1034:52;;;1082:1;1079;1072:12;1034:52;1121:9;1108:23;1140:31;1165:5;1140:31;:::i;:::-;1190:5;-1:-1:-1;1247:2:1;1232:18;;1219:32;1260:33;1219:32;1260:33;:::i;:::-;1312:7;1302:17;;;937:388;;;;;:::o;1330:456::-;1407:6;1415;1423;1476:2;1464:9;1455:7;1451:23;1447:32;1444:52;;;1492:1;1489;1482:12;1444:52;1531:9;1518:23;1550:31;1575:5;1550:31;:::i;:::-;1600:5;-1:-1:-1;1657:2:1;1642:18;;1629:32;1670:33;1629:32;1670:33;:::i;:::-;1330:456;;1722:7;;-1:-1:-1;;;1776:2:1;1761:18;;;;1748:32;;1330:456::o;1791:794::-;1886:6;1894;1902;1910;1963:3;1951:9;1942:7;1938:23;1934:33;1931:53;;;1980:1;1977;1970:12;1931:53;2019:9;2006:23;2038:31;2063:5;2038:31;:::i;:::-;2088:5;-1:-1:-1;2145:2:1;2130:18;;2117:32;2158:33;2117:32;2158:33;:::i;:::-;2210:7;-1:-1:-1;2264:2:1;2249:18;;2236:32;;-1:-1:-1;2319:2:1;2304:18;;2291:32;2346:18;2335:30;;2332:50;;;2378:1;2375;2368:12;2332:50;2401:22;;2454:4;2446:13;;2442:27;-1:-1:-1;2432:55:1;;2483:1;2480;2473:12;2432:55;2506:73;2571:7;2566:2;2553:16;2548:2;2544;2540:11;2506:73;:::i;:::-;2496:83;;;1791:794;;;;;;;:::o;2590:416::-;2655:6;2663;2716:2;2704:9;2695:7;2691:23;2687:32;2684:52;;;2732:1;2729;2722:12;2684:52;2771:9;2758:23;2790:31;2815:5;2790:31;:::i;:::-;2840:5;-1:-1:-1;2897:2:1;2882:18;;2869:32;2939:15;;2932:23;2920:36;;2910:64;;2970:1;2967;2960:12;3011:315;3079:6;3087;3140:2;3128:9;3119:7;3115:23;3111:32;3108:52;;;3156:1;3153;3146:12;3108:52;3195:9;3182:23;3214:31;3239:5;3214:31;:::i;:::-;3264:5;3316:2;3301:18;;;;3288:32;;-1:-1:-1;;;3011:315:1:o;3331:957::-;3415:6;3446:2;3489;3477:9;3468:7;3464:23;3460:32;3457:52;;;3505:1;3502;3495:12;3457:52;3545:9;3532:23;3574:18;3615:2;3607:6;3604:14;3601:34;;;3631:1;3628;3621:12;3601:34;3669:6;3658:9;3654:22;3644:32;;3714:7;3707:4;3703:2;3699:13;3695:27;3685:55;;3736:1;3733;3726:12;3685:55;3772:2;3759:16;3794:2;3790;3787:10;3784:36;;;3800:18;;:::i;:::-;3846:2;3843:1;3839:10;3829:20;;3869:28;3893:2;3889;3885:11;3869:28;:::i;:::-;3931:15;;;3962:12;;;;3994:11;;;4024;;;4020:20;;4017:33;-1:-1:-1;4014:53:1;;;4063:1;4060;4053:12;4014:53;4085:1;4076:10;;4095:163;4109:2;4106:1;4103:9;4095:163;;;4166:17;;4154:30;;4127:1;4120:9;;;;;4204:12;;;;4236;;4095:163;;;-1:-1:-1;4277:5:1;3331:957;-1:-1:-1;;;;;;;;3331:957:1:o;4293:245::-;4351:6;4404:2;4392:9;4383:7;4379:23;4375:32;4372:52;;;4420:1;4417;4410:12;4372:52;4459:9;4446:23;4478:30;4502:5;4478:30;:::i;4543:249::-;4612:6;4665:2;4653:9;4644:7;4640:23;4636:32;4633:52;;;4681:1;4678;4671:12;4633:52;4713:9;4707:16;4732:30;4756:5;4732:30;:::i;4797:450::-;4866:6;4919:2;4907:9;4898:7;4894:23;4890:32;4887:52;;;4935:1;4932;4925:12;4887:52;4975:9;4962:23;5008:18;5000:6;4997:30;4994:50;;;5040:1;5037;5030:12;4994:50;5063:22;;5116:4;5108:13;;5104:27;-1:-1:-1;5094:55:1;;5145:1;5142;5135:12;5094:55;5168:73;5233:7;5228:2;5215:16;5210:2;5206;5202:11;5168:73;:::i;5252:180::-;5311:6;5364:2;5352:9;5343:7;5339:23;5335:32;5332:52;;;5380:1;5377;5370:12;5332:52;-1:-1:-1;5403:23:1;;5252:180;-1:-1:-1;5252:180:1:o;5437:257::-;5478:3;5516:5;5510:12;5543:6;5538:3;5531:19;5559:63;5615:6;5608:4;5603:3;5599:14;5592:4;5585:5;5581:16;5559:63;:::i;:::-;5676:2;5655:15;-1:-1:-1;;5651:29:1;5642:39;;;;5683:4;5638:50;;5437:257;-1:-1:-1;;5437:257:1:o;5699:1527::-;5923:3;5961:6;5955:13;5987:4;6000:51;6044:6;6039:3;6034:2;6026:6;6022:15;6000:51;:::i;:::-;6114:13;;6073:16;;;;6136:55;6114:13;6073:16;6158:15;;;6136:55;:::i;:::-;6280:13;;6213:20;;;6253:1;;6340;6362:18;;;;6415;;;;6442:93;;6520:4;6510:8;6506:19;6494:31;;6442:93;6583:2;6573:8;6570:16;6550:18;6547:40;6544:167;;;-1:-1:-1;;;6610:33:1;;6666:4;6663:1;6656:15;6696:4;6617:3;6684:17;6544:167;6727:18;6754:110;;;;6878:1;6873:328;;;;6720:481;;6754:110;-1:-1:-1;;6789:24:1;;6775:39;;6834:20;;;;-1:-1:-1;6754:110:1;;6873:328;20167:1;20160:14;;;20204:4;20191:18;;6968:1;6982:169;6996:8;6993:1;6990:15;6982:169;;;7078:14;;7063:13;;;7056:37;7121:16;;;;7013:10;;6982:169;;;6986:3;;7182:8;7175:5;7171:20;7164:27;;6720:481;-1:-1:-1;7217:3:1;;5699:1527;-1:-1:-1;;;;;;;;;;;5699:1527:1:o;8029:488::-;-1:-1:-1;;;;;8298:15:1;;;8280:34;;8350:15;;8345:2;8330:18;;8323:43;8397:2;8382:18;;8375:34;;;8445:3;8440:2;8425:18;;8418:31;;;8223:4;;8466:45;;8491:19;;8483:6;8466:45;:::i;:::-;8458:53;8029:488;-1:-1:-1;;;;;;8029:488:1:o;8522:632::-;8693:2;8745:21;;;8815:13;;8718:18;;;8837:22;;;8664:4;;8693:2;8916:15;;;;8890:2;8875:18;;;8664:4;8959:169;8973:6;8970:1;8967:13;8959:169;;;9034:13;;9022:26;;9103:15;;;;9068:12;;;;8995:1;8988:9;8959:169;;;-1:-1:-1;9145:3:1;;8522:632;-1:-1:-1;;;;;;8522:632:1:o;9578:219::-;9727:2;9716:9;9709:21;9690:4;9747:44;9787:2;9776:9;9772:18;9764:6;9747:44;:::i;13779:356::-;13981:2;13963:21;;;14000:18;;;13993:30;14059:34;14054:2;14039:18;;14032:62;14126:2;14111:18;;13779:356::o;16093:415::-;16295:2;16277:21;;;16334:2;16314:18;;;16307:30;16373:34;16368:2;16353:18;;16346:62;-1:-1:-1;;;16439:2:1;16424:18;;16417:49;16498:3;16483:19;;16093:415::o;19814:275::-;19885:2;19879:9;19950:2;19931:13;;-1:-1:-1;;19927:27:1;19915:40;;19985:18;19970:34;;20006:22;;;19967:62;19964:88;;;20032:18;;:::i;:::-;20068:2;20061:22;19814:275;;-1:-1:-1;19814:275:1:o;20220:253::-;20260:3;-1:-1:-1;;;;;20349:2:1;20346:1;20342:10;20379:2;20376:1;20372:10;20410:3;20406:2;20402:12;20397:3;20394:21;20391:47;;;20418:18;;:::i;:::-;20454:13;;20220:253;-1:-1:-1;;;;20220:253:1:o;20478:128::-;20518:3;20549:1;20545:6;20542:1;20539:13;20536:39;;;20555:18;;:::i;:::-;-1:-1:-1;20591:9:1;;20478:128::o;20611:120::-;20651:1;20677;20667:35;;20682:18;;:::i;:::-;-1:-1:-1;20716:9:1;;20611:120::o;20736:246::-;20776:4;-1:-1:-1;;;;;20889:10:1;;;;20859;;20911:12;;;20908:38;;;20926:18;;:::i;:::-;20963:13;;20736:246;-1:-1:-1;;;20736:246:1:o;20987:125::-;21027:4;21055:1;21052;21049:8;21046:34;;;21060:18;;:::i;:::-;-1:-1:-1;21097:9:1;;20987:125::o;21117:258::-;21189:1;21199:113;21213:6;21210:1;21207:13;21199:113;;;21289:11;;;21283:18;21270:11;;;21263:39;21235:2;21228:10;21199:113;;;21330:6;21327:1;21324:13;21321:48;;;-1:-1:-1;;21365:1:1;21347:16;;21340:27;21117:258::o;21380:136::-;21419:3;21447:5;21437:39;;21456:18;;:::i;:::-;-1:-1:-1;;;21492:18:1;;21380:136::o;21521:380::-;21600:1;21596:12;;;;21643;;;21664:61;;21718:4;21710:6;21706:17;21696:27;;21664:61;21771:2;21763:6;21760:14;21740:18;21737:38;21734:161;;;21817:10;21812:3;21808:20;21805:1;21798:31;21852:4;21849:1;21842:15;21880:4;21877:1;21870:15;21734:161;;21521:380;;;:::o;21906:135::-;21945:3;-1:-1:-1;;21966:17:1;;21963:43;;;21986:18;;:::i;:::-;-1:-1:-1;22033:1:1;22022:13;;21906:135::o;22046:112::-;22078:1;22104;22094:35;;22109:18;;:::i;:::-;-1:-1:-1;22143:9:1;;22046:112::o;22163:127::-;22224:10;22219:3;22215:20;22212:1;22205:31;22255:4;22252:1;22245:15;22279:4;22276:1;22269:15;22295:127;22356:10;22351:3;22347:20;22344:1;22337:31;22387:4;22384:1;22377:15;22411:4;22408:1;22401:15;22427:127;22488:10;22483:3;22479:20;22476:1;22469:31;22519:4;22516:1;22509:15;22543:4;22540:1;22533:15;22559:127;22620:10;22615:3;22611:20;22608:1;22601:31;22651:4;22648:1;22641:15;22675:4;22672:1;22665:15;22691:131;-1:-1:-1;;;;;22766:31:1;;22756:42;;22746:70;;22812:1;22809;22802:12;22827:131;-1:-1:-1;;;;;;22901:32:1;;22891:43;;22881:71;;22948:1;22945;22938:12
Swarm Source
ipfs://397a8650082baddfb6634f3cdf04cd89352f6a854eb636cd8512dee1031c0f6b
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.