Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
64 DAYC
Holders
57
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DAYCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DerivativeApeYachtClub
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-11-24 */ // SPDX-License-Identifier: MIT // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/IAccessControl.sol // OpenZeppelin Contracts v4.3.2 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/IAccessControlEnumerable.sol // OpenZeppelin Contracts v4.3.2 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/Pausable.sol // OpenZeppelin Contracts v4.3.2 (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol // OpenZeppelin Contracts v4.3.2 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/AccessControl.sol // OpenZeppelin Contracts v4.3.2 (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/AccessControlEnumerable.sol // OpenZeppelin Contracts v4.3.2 (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts v4.3.2 (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 tokenId); /** * @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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.3.2 (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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts v4.3.2 (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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 {} } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Pausable.sol // OpenZeppelin Contracts v4.3.2 (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.0; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Burnable.sol // OpenZeppelin Contracts v4.3.2 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts v4.3.2 (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: contracts/DerivativeApeYachtClub.sol pragma solidity ^0.8.0; // @title: Derivative Ape Yacht Club // @author: null.eth //////////////////////////////////////////////////////////////////////////// // // // // // ** ** ** ** // // /** /** /** /** // // ******* ** ** /** /** ***** ****** /** // // //**///** /** /** /** /** **///** //**/ /****** // // //** /** /** /** /** /** /******* /** /**///** // // //** /** /** /** /** /** ** /**//// /** /** /** // // //** /** //****** *** *** /** //****** /** /** /** // // /// // ////// /// /// // ////// // // // // // // // // //////////////////////////////////////////////////////////////////////////// interface BAYC { function ownerOf(uint256 tokenId) external view returns (address); } contract DerivativeApeYachtClub is ERC721, Ownable { uint256 public constant mintPrice = 50000000000000000; // 0.05 ETH using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; BAYC bayc; string _baseTokenURI; mapping(uint256 => bool) private _isMinted; constructor(string memory name, string memory symbol, address baycAddress) public ERC721(name, symbol) { bayc = BAYC(baycAddress); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(owner()), balance); } function getMintPrice() public pure returns (uint256) { return mintPrice; } function isMinted(uint256 id) public view returns (bool) { return _isMinted[id]; } function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function totalSupply() public view returns (uint256) { return _tokenIdCounter.current(); } function mint(uint256 apeId) external payable { require( _isMinted[apeId] != true, "This derivative has already been minted." ); require( bayc.ownerOf(apeId) == msg.sender, "You do not own this ape to mint the corresponding derivative." ); require( getMintPrice() <= msg.value, "Ether value is less than minting cost." ); _safeMint(msg.sender, apeId); _isMinted[apeId] = true; _tokenIdCounter.increment(); if (msg.value > getMintPrice()) { Address.sendValue(payable(msg.sender), msg.value - getMintPrice()); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"baycAddress","type":"address"}],"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":"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"apeId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001fb138038062001fb183398101604081905262000034916200025c565b8251839083906200004d906000906020850190620000ff565b50805162000063906001906020840190620000ff565b505050620000806200007a620000a960201b60201c565b620000ad565b600880546001600160a01b0319166001600160a01b0392909216919091179055506200033c9050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010d90620002e9565b90600052602060002090601f0160209004810192826200013157600085556200017c565b82601f106200014c57805160ff19168380011785556200017c565b828001600101855582156200017c579182015b828111156200017c5782518255916020019190600101906200015f565b506200018a9291506200018e565b5090565b5b808211156200018a57600081556001016200018f565b600082601f830112620001b757600080fd5b81516001600160401b0380821115620001d457620001d462000326565b604051601f8301601f19908116603f01168101908282118183101715620001ff57620001ff62000326565b816040528381526020925086838588010111156200021c57600080fd5b600091505b8382101562000240578582018301518183018401529082019062000221565b83821115620002525760008385830101525b9695505050505050565b6000806000606084860312156200027257600080fd5b83516001600160401b03808211156200028a57600080fd5b6200029887838801620001a5565b94506020860151915080821115620002af57600080fd5b50620002be86828701620001a5565b604086015190935090506001600160a01b0381168114620002de57600080fd5b809150509250925092565b600181811c90821680620002fe57607f821691505b602082108114156200032057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611c65806200034c6000396000f3fe6080604052600436106101405760003560e01c80636817c76c116100b6578063a22cb4651161006f578063a22cb46514610374578063a7f93ebd14610394578063b88d4fde146103ae578063c87b56dd146103ce578063e985e9c5146103ee578063f2fde38b1461043757600080fd5b80636817c76c146102de57806370a08231146102f9578063715018a6146103195780638da5cb5b1461032e57806395d89b411461034c578063a0712d681461036157600080fd5b806323b872dd1161010857806323b872dd1461021957806333c41a90146102395780633ccfd60b1461026957806342842e0e1461027e57806355f804b31461029e5780636352211e146102be57600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc1461019c578063095ea7b3146101d457806318160ddd146101f6575b600080fd5b34801561015157600080fd5b506101656101603660046118b4565b610457565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061018f6104a9565b60405161017191906119e8565b3480156101a857600080fd5b506101bc6101b7366004611937565b61053b565b6040516001600160a01b039091168152602001610171565b3480156101e057600080fd5b506101f46101ef366004611888565b6105d5565b005b34801561020257600080fd5b5061020b6106eb565b604051908152602001610171565b34801561022557600080fd5b506101f4610234366004611794565b6106fb565b34801561024557600080fd5b50610165610254366004611937565b6000908152600a602052604090205460ff1690565b34801561027557600080fd5b506101f461072c565b34801561028a57600080fd5b506101f4610299366004611794565b610775565b3480156102aa57600080fd5b506101f46102b93660046118ee565b610790565b3480156102ca57600080fd5b506101bc6102d9366004611937565b6107d1565b3480156102ea57600080fd5b5061020b66b1a2bc2ec5000081565b34801561030557600080fd5b5061020b610314366004611721565b610848565b34801561032557600080fd5b506101f46108cf565b34801561033a57600080fd5b506006546001600160a01b03166101bc565b34801561035857600080fd5b5061018f610905565b6101f461036f366004611937565b610914565b34801561038057600080fd5b506101f461038f366004611855565b610b41565b3480156103a057600080fd5b5066b1a2bc2ec5000061020b565b3480156103ba57600080fd5b506101f46103c93660046117d5565b610b4c565b3480156103da57600080fd5b5061018f6103e9366004611937565b610b84565b3480156103fa57600080fd5b5061016561040936600461175b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561044357600080fd5b506101f4610452366004611721565b610c5f565b60006001600160e01b031982166380ac58cd60e01b148061048857506001600160e01b03198216635b5e139f60e01b145b806104a357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546104b890611b42565b80601f01602080910402602001604051908101604052809291908181526020018280546104e490611b42565b80156105315780601f1061050657610100808354040283529160200191610531565b820191906000526020600020905b81548152906001019060200180831161051457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105b95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105e0826107d1565b9050806001600160a01b0316836001600160a01b0316141561064e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105b0565b336001600160a01b038216148061066a575061066a8133610409565b6106dc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105b0565b6106e68383610cf7565b505050565b60006106f660075490565b905090565b6107053382610d65565b6107215760405162461bcd60e51b81526004016105b090611a82565b6106e6838383610e5c565b6006546001600160a01b031633146107565760405162461bcd60e51b81526004016105b090611a4d565b4761077261076c6006546001600160a01b031690565b82610ffc565b50565b6106e683838360405180602001604052806000815250610b4c565b6006546001600160a01b031633146107ba5760405162461bcd60e51b81526004016105b090611a4d565b80516107cd906009906020840190611612565b5050565b6000818152600260205260408120546001600160a01b0316806104a35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105b0565b60006001600160a01b0382166108b35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105b0565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146108f95760405162461bcd60e51b81526004016105b090611a4d565b6109036000611115565b565b6060600180546104b890611b42565b6000818152600a602052604090205460ff161515600114156109895760405162461bcd60e51b815260206004820152602860248201527f5468697320646572697661746976652068617320616c7265616479206265656e6044820152671036b4b73a32b21760c11b60648201526084016105b0565b6008546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156109cd57600080fd5b505afa1580156109e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a05919061173e565b6001600160a01b031614610a815760405162461bcd60e51b815260206004820152603d60248201527f596f7520646f206e6f74206f776e20746869732061706520746f206d696e742060448201527f74686520636f72726573706f6e64696e6720646572697661746976652e00000060648201526084016105b0565b3466b1a2bc2ec500001115610ae75760405162461bcd60e51b815260206004820152602660248201527f45746865722076616c7565206973206c657373207468616e206d696e74696e676044820152651031b7b9ba1760d11b60648201526084016105b0565b610af13382611167565b6000818152600a60205260409020805460ff19166001179055610b18600780546001019055565b66b1a2bc2ec500003411156107725761077233610b3c66b1a2bc2ec5000034611aff565b610ffc565b6107cd338383611181565b610b563383610d65565b610b725760405162461bcd60e51b81526004016105b090611a82565b610b7e84848484611250565b50505050565b6000818152600260205260409020546060906001600160a01b0316610c035760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105b0565b6000610c0d611283565b90506000815111610c2d5760405180602001604052806000815250610c58565b80610c3784611292565b604051602001610c4892919061197c565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314610c895760405162461bcd60e51b81526004016105b090611a4d565b6001600160a01b038116610cee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b0565b61077281611115565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d2c826107d1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610dde5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105b0565b6000610de9836107d1565b9050806001600160a01b0316846001600160a01b03161480610e245750836001600160a01b0316610e198461053b565b6001600160a01b0316145b80610e5457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610e6f826107d1565b6001600160a01b031614610ed75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105b0565b6001600160a01b038216610f395760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105b0565b610f44600082610cf7565b6001600160a01b0383166000908152600360205260408120805460019290610f6d908490611aff565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f9b908490611ad3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b8047101561104c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016105b0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611099576040519150601f19603f3d011682016040523d82523d6000602084013e61109e565b606091505b50509050806106e65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105b0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6107cd828260405180602001604052806000815250611390565b816001600160a01b0316836001600160a01b031614156111e35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105b0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61125b848484610e5c565b611267848484846113c3565b610b7e5760405162461bcd60e51b81526004016105b0906119fb565b6060600980546104b890611b42565b6060816112b65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156112e057806112ca81611b7d565b91506112d99050600a83611aeb565b91506112ba565b60008167ffffffffffffffff8111156112fb576112fb611bee565b6040519080825280601f01601f191660200182016040528015611325576020820181803683370190505b5090505b8415610e545761133a600183611aff565b9150611347600a86611b98565b611352906030611ad3565b60f81b81838151811061136757611367611bd8565b60200101906001600160f81b031916908160001a905350611389600a86611aeb565b9450611329565b61139a83836114d0565b6113a760008484846113c3565b6106e65760405162461bcd60e51b81526004016105b0906119fb565b60006001600160a01b0384163b156114c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906114079033908990889088906004016119ab565b602060405180830381600087803b15801561142157600080fd5b505af1925050508015611451575060408051601f3d908101601f1916820190925261144e918101906118d1565b60015b6114ab573d80801561147f576040519150601f19603f3d011682016040523d82523d6000602084013e611484565b606091505b5080516114a35760405162461bcd60e51b81526004016105b0906119fb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e54565b506001949350505050565b6001600160a01b0382166115265760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105b0565b6000818152600260205260409020546001600160a01b03161561158b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105b0565b6001600160a01b03821660009081526003602052604081208054600192906115b4908490611ad3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461161e90611b42565b90600052602060002090601f0160209004810192826116405760008555611686565b82601f1061165957805160ff1916838001178555611686565b82800160010185558215611686579182015b8281111561168657825182559160200191906001019061166b565b50611692929150611696565b5090565b5b808211156116925760008155600101611697565b600067ffffffffffffffff808411156116c6576116c6611bee565b604051601f8501601f19908116603f011681019082821181831017156116ee576116ee611bee565b8160405280935085815286868601111561170757600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561173357600080fd5b8135610c5881611c04565b60006020828403121561175057600080fd5b8151610c5881611c04565b6000806040838503121561176e57600080fd5b823561177981611c04565b9150602083013561178981611c04565b809150509250929050565b6000806000606084860312156117a957600080fd5b83356117b481611c04565b925060208401356117c481611c04565b929592945050506040919091013590565b600080600080608085870312156117eb57600080fd5b84356117f681611c04565b9350602085013561180681611c04565b925060408501359150606085013567ffffffffffffffff81111561182957600080fd5b8501601f8101871361183a57600080fd5b611849878235602084016116ab565b91505092959194509250565b6000806040838503121561186857600080fd5b823561187381611c04565b91506020830135801515811461178957600080fd5b6000806040838503121561189b57600080fd5b82356118a681611c04565b946020939093013593505050565b6000602082840312156118c657600080fd5b8135610c5881611c19565b6000602082840312156118e357600080fd5b8151610c5881611c19565b60006020828403121561190057600080fd5b813567ffffffffffffffff81111561191757600080fd5b8201601f8101841361192857600080fd5b610e54848235602084016116ab565b60006020828403121561194957600080fd5b5035919050565b60008151808452611968816020860160208601611b16565b601f01601f19169290920160200192915050565b6000835161198e818460208801611b16565b8351908301906119a2818360208801611b16565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906119de90830184611950565b9695505050505050565b602081526000610c586020830184611950565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611ae657611ae6611bac565b500190565b600082611afa57611afa611bc2565b500490565b600082821015611b1157611b11611bac565b500390565b60005b83811015611b31578181015183820152602001611b19565b83811115610b7e5750506000910152565b600181811c90821680611b5657607f821691505b60208210811415611b7757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611b9157611b91611bac565b5060010190565b600082611ba757611ba7611bc2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461077257600080fd5b6001600160e01b03198116811461077257600080fdfea2646970667358221220c9fa0b0c9e76ea9547ee3b3018e61226604ce604398c7826d3786ce215dcc2b664736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d0000000000000000000000000000000000000000000000000000000000000016446572697661746976654170655961636874436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000044441594300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101405760003560e01c80636817c76c116100b6578063a22cb4651161006f578063a22cb46514610374578063a7f93ebd14610394578063b88d4fde146103ae578063c87b56dd146103ce578063e985e9c5146103ee578063f2fde38b1461043757600080fd5b80636817c76c146102de57806370a08231146102f9578063715018a6146103195780638da5cb5b1461032e57806395d89b411461034c578063a0712d681461036157600080fd5b806323b872dd1161010857806323b872dd1461021957806333c41a90146102395780633ccfd60b1461026957806342842e0e1461027e57806355f804b31461029e5780636352211e146102be57600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc1461019c578063095ea7b3146101d457806318160ddd146101f6575b600080fd5b34801561015157600080fd5b506101656101603660046118b4565b610457565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061018f6104a9565b60405161017191906119e8565b3480156101a857600080fd5b506101bc6101b7366004611937565b61053b565b6040516001600160a01b039091168152602001610171565b3480156101e057600080fd5b506101f46101ef366004611888565b6105d5565b005b34801561020257600080fd5b5061020b6106eb565b604051908152602001610171565b34801561022557600080fd5b506101f4610234366004611794565b6106fb565b34801561024557600080fd5b50610165610254366004611937565b6000908152600a602052604090205460ff1690565b34801561027557600080fd5b506101f461072c565b34801561028a57600080fd5b506101f4610299366004611794565b610775565b3480156102aa57600080fd5b506101f46102b93660046118ee565b610790565b3480156102ca57600080fd5b506101bc6102d9366004611937565b6107d1565b3480156102ea57600080fd5b5061020b66b1a2bc2ec5000081565b34801561030557600080fd5b5061020b610314366004611721565b610848565b34801561032557600080fd5b506101f46108cf565b34801561033a57600080fd5b506006546001600160a01b03166101bc565b34801561035857600080fd5b5061018f610905565b6101f461036f366004611937565b610914565b34801561038057600080fd5b506101f461038f366004611855565b610b41565b3480156103a057600080fd5b5066b1a2bc2ec5000061020b565b3480156103ba57600080fd5b506101f46103c93660046117d5565b610b4c565b3480156103da57600080fd5b5061018f6103e9366004611937565b610b84565b3480156103fa57600080fd5b5061016561040936600461175b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561044357600080fd5b506101f4610452366004611721565b610c5f565b60006001600160e01b031982166380ac58cd60e01b148061048857506001600160e01b03198216635b5e139f60e01b145b806104a357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546104b890611b42565b80601f01602080910402602001604051908101604052809291908181526020018280546104e490611b42565b80156105315780601f1061050657610100808354040283529160200191610531565b820191906000526020600020905b81548152906001019060200180831161051457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105b95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105e0826107d1565b9050806001600160a01b0316836001600160a01b0316141561064e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105b0565b336001600160a01b038216148061066a575061066a8133610409565b6106dc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105b0565b6106e68383610cf7565b505050565b60006106f660075490565b905090565b6107053382610d65565b6107215760405162461bcd60e51b81526004016105b090611a82565b6106e6838383610e5c565b6006546001600160a01b031633146107565760405162461bcd60e51b81526004016105b090611a4d565b4761077261076c6006546001600160a01b031690565b82610ffc565b50565b6106e683838360405180602001604052806000815250610b4c565b6006546001600160a01b031633146107ba5760405162461bcd60e51b81526004016105b090611a4d565b80516107cd906009906020840190611612565b5050565b6000818152600260205260408120546001600160a01b0316806104a35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105b0565b60006001600160a01b0382166108b35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105b0565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146108f95760405162461bcd60e51b81526004016105b090611a4d565b6109036000611115565b565b6060600180546104b890611b42565b6000818152600a602052604090205460ff161515600114156109895760405162461bcd60e51b815260206004820152602860248201527f5468697320646572697661746976652068617320616c7265616479206265656e6044820152671036b4b73a32b21760c11b60648201526084016105b0565b6008546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156109cd57600080fd5b505afa1580156109e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a05919061173e565b6001600160a01b031614610a815760405162461bcd60e51b815260206004820152603d60248201527f596f7520646f206e6f74206f776e20746869732061706520746f206d696e742060448201527f74686520636f72726573706f6e64696e6720646572697661746976652e00000060648201526084016105b0565b3466b1a2bc2ec500001115610ae75760405162461bcd60e51b815260206004820152602660248201527f45746865722076616c7565206973206c657373207468616e206d696e74696e676044820152651031b7b9ba1760d11b60648201526084016105b0565b610af13382611167565b6000818152600a60205260409020805460ff19166001179055610b18600780546001019055565b66b1a2bc2ec500003411156107725761077233610b3c66b1a2bc2ec5000034611aff565b610ffc565b6107cd338383611181565b610b563383610d65565b610b725760405162461bcd60e51b81526004016105b090611a82565b610b7e84848484611250565b50505050565b6000818152600260205260409020546060906001600160a01b0316610c035760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105b0565b6000610c0d611283565b90506000815111610c2d5760405180602001604052806000815250610c58565b80610c3784611292565b604051602001610c4892919061197c565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314610c895760405162461bcd60e51b81526004016105b090611a4d565b6001600160a01b038116610cee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b0565b61077281611115565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d2c826107d1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610dde5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105b0565b6000610de9836107d1565b9050806001600160a01b0316846001600160a01b03161480610e245750836001600160a01b0316610e198461053b565b6001600160a01b0316145b80610e5457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610e6f826107d1565b6001600160a01b031614610ed75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105b0565b6001600160a01b038216610f395760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105b0565b610f44600082610cf7565b6001600160a01b0383166000908152600360205260408120805460019290610f6d908490611aff565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f9b908490611ad3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b8047101561104c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016105b0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611099576040519150601f19603f3d011682016040523d82523d6000602084013e61109e565b606091505b50509050806106e65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105b0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6107cd828260405180602001604052806000815250611390565b816001600160a01b0316836001600160a01b031614156111e35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105b0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61125b848484610e5c565b611267848484846113c3565b610b7e5760405162461bcd60e51b81526004016105b0906119fb565b6060600980546104b890611b42565b6060816112b65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156112e057806112ca81611b7d565b91506112d99050600a83611aeb565b91506112ba565b60008167ffffffffffffffff8111156112fb576112fb611bee565b6040519080825280601f01601f191660200182016040528015611325576020820181803683370190505b5090505b8415610e545761133a600183611aff565b9150611347600a86611b98565b611352906030611ad3565b60f81b81838151811061136757611367611bd8565b60200101906001600160f81b031916908160001a905350611389600a86611aeb565b9450611329565b61139a83836114d0565b6113a760008484846113c3565b6106e65760405162461bcd60e51b81526004016105b0906119fb565b60006001600160a01b0384163b156114c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906114079033908990889088906004016119ab565b602060405180830381600087803b15801561142157600080fd5b505af1925050508015611451575060408051601f3d908101601f1916820190925261144e918101906118d1565b60015b6114ab573d80801561147f576040519150601f19603f3d011682016040523d82523d6000602084013e611484565b606091505b5080516114a35760405162461bcd60e51b81526004016105b0906119fb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e54565b506001949350505050565b6001600160a01b0382166115265760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105b0565b6000818152600260205260409020546001600160a01b03161561158b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105b0565b6001600160a01b03821660009081526003602052604081208054600192906115b4908490611ad3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461161e90611b42565b90600052602060002090601f0160209004810192826116405760008555611686565b82601f1061165957805160ff1916838001178555611686565b82800160010185558215611686579182015b8281111561168657825182559160200191906001019061166b565b50611692929150611696565b5090565b5b808211156116925760008155600101611697565b600067ffffffffffffffff808411156116c6576116c6611bee565b604051601f8501601f19908116603f011681019082821181831017156116ee576116ee611bee565b8160405280935085815286868601111561170757600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561173357600080fd5b8135610c5881611c04565b60006020828403121561175057600080fd5b8151610c5881611c04565b6000806040838503121561176e57600080fd5b823561177981611c04565b9150602083013561178981611c04565b809150509250929050565b6000806000606084860312156117a957600080fd5b83356117b481611c04565b925060208401356117c481611c04565b929592945050506040919091013590565b600080600080608085870312156117eb57600080fd5b84356117f681611c04565b9350602085013561180681611c04565b925060408501359150606085013567ffffffffffffffff81111561182957600080fd5b8501601f8101871361183a57600080fd5b611849878235602084016116ab565b91505092959194509250565b6000806040838503121561186857600080fd5b823561187381611c04565b91506020830135801515811461178957600080fd5b6000806040838503121561189b57600080fd5b82356118a681611c04565b946020939093013593505050565b6000602082840312156118c657600080fd5b8135610c5881611c19565b6000602082840312156118e357600080fd5b8151610c5881611c19565b60006020828403121561190057600080fd5b813567ffffffffffffffff81111561191757600080fd5b8201601f8101841361192857600080fd5b610e54848235602084016116ab565b60006020828403121561194957600080fd5b5035919050565b60008151808452611968816020860160208601611b16565b601f01601f19169290920160200192915050565b6000835161198e818460208801611b16565b8351908301906119a2818360208801611b16565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906119de90830184611950565b9695505050505050565b602081526000610c586020830184611950565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611ae657611ae6611bac565b500190565b600082611afa57611afa611bc2565b500490565b600082821015611b1157611b11611bac565b500390565b60005b83811015611b31578181015183820152602001611b19565b83811115610b7e5750506000910152565b600181811c90821680611b5657607f821691505b60208210811415611b7757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611b9157611b91611bac565b5060010190565b600082611ba757611ba7611bc2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461077257600080fd5b6001600160e01b03198116811461077257600080fdfea2646970667358221220c9fa0b0c9e76ea9547ee3b3018e61226604ce604398c7826d3786ce215dcc2b664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d0000000000000000000000000000000000000000000000000000000000000016446572697661746976654170655961636874436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000044441594300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): DerivativeApeYachtClub
Arg [1] : symbol (string): DAYC
Arg [2] : baycAddress (address): 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [4] : 446572697661746976654170655961636874436c756200000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4441594300000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
79216:1924:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56377:305;;;;;;;;;;-1:-1:-1;56377:305:0;;;;;:::i;:::-;;:::i;:::-;;;6509:14:1;;6502:22;6484:41;;6472:2;6457:18;56377:305:0;;;;;;;;57322:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;58881:221::-;;;;;;;;;;-1:-1:-1;58881:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;5807:32:1;;;5789:51;;5777:2;5762:18;58881:221:0;5643:203:1;58404:411:0;;;;;;;;;;-1:-1:-1;58404:411:0;;;;;:::i;:::-;;:::i;:::-;;80292:104;;;;;;;;;;;;;:::i;:::-;;;15319:25:1;;;15307:2;15292:18;80292:104:0;15173:177:1;59631:339:0;;;;;;;;;;-1:-1:-1;59631:339:0;;;;;:::i;:::-;;:::i;79948:96::-;;;;;;;;;;-1:-1:-1;79948:96:0;;;;;:::i;:::-;79999:4;80023:13;;;:9;:13;;;;;;;;;79948:96;79683:152;;;;;;;;;;;;;:::i;60041:185::-;;;;;;;;;;-1:-1:-1;60041:185:0;;;;;:::i;:::-;;:::i;80052:102::-;;;;;;;;;;-1:-1:-1;80052:102:0;;;;;:::i;:::-;;:::i;57016:239::-;;;;;;;;;;-1:-1:-1;57016:239:0;;;;;:::i;:::-;;:::i;79274:53::-;;;;;;;;;;;;79310:17;79274:53;;56746:208;;;;;;;;;;-1:-1:-1;56746:208:0;;;;;:::i;:::-;;:::i;23487:103::-;;;;;;;;;;;;;:::i;22836:87::-;;;;;;;;;;-1:-1:-1;22909:6:0;;-1:-1:-1;;;;;22909:6:0;22836:87;;57491:104;;;;;;;;;;;;;:::i;80408:729::-;;;;;;:::i;:::-;;:::i;59174:155::-;;;;;;;;;;-1:-1:-1;59174:155:0;;;;;:::i;:::-;;:::i;79847:89::-;;;;;;;;;;-1:-1:-1;79310:17:0;79847:89;;60297:328;;;;;;;;;;-1:-1:-1;60297:328:0;;;;;:::i;:::-;;:::i;57666:334::-;;;;;;;;;;-1:-1:-1;57666:334:0;;;;;:::i;:::-;;:::i;59400:164::-;;;;;;;;;;-1:-1:-1;59400:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;59521:25:0;;;59497:4;59521:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;59400:164;23745:201;;;;;;;;;;-1:-1:-1;23745:201:0;;;;;:::i;:::-;;:::i;56377:305::-;56479:4;-1:-1:-1;;;;;;56516:40:0;;-1:-1:-1;;;56516:40:0;;:105;;-1:-1:-1;;;;;;;56573:48:0;;-1:-1:-1;;;56573:48:0;56516:105;:158;;;-1:-1:-1;;;;;;;;;;37960:40:0;;;56638:36;56496:178;56377:305;-1:-1:-1;;56377:305:0:o;57322:100::-;57376:13;57409:5;57402:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57322:100;:::o;58881:221::-;58957:7;62224:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62224:16:0;58977:73;;;;-1:-1:-1;;;58977:73:0;;12139:2:1;58977:73:0;;;12121:21:1;12178:2;12158:18;;;12151:30;12217:34;12197:18;;;12190:62;-1:-1:-1;;;12268:18:1;;;12261:42;12320:19;;58977:73:0;;;;;;;;;-1:-1:-1;59070:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;59070:24:0;;58881:221::o;58404:411::-;58485:13;58501:23;58516:7;58501:14;:23::i;:::-;58485:39;;58549:5;-1:-1:-1;;;;;58543:11:0;:2;-1:-1:-1;;;;;58543:11:0;;;58535:57;;;;-1:-1:-1;;;58535:57:0;;14148:2:1;58535:57:0;;;14130:21:1;14187:2;14167:18;;;14160:30;14226:34;14206:18;;;14199:62;-1:-1:-1;;;14277:18:1;;;14270:31;14318:19;;58535:57:0;13946:397:1;58535:57:0;21587:10;-1:-1:-1;;;;;58627:21:0;;;;:62;;-1:-1:-1;58652:37:0;58669:5;21587:10;59400:164;:::i;58652:37::-;58605:168;;;;-1:-1:-1;;;58605:168:0;;10102:2:1;58605:168:0;;;10084:21:1;10141:2;10121:18;;;10114:30;10180:34;10160:18;;;10153:62;10251:26;10231:18;;;10224:54;10295:19;;58605:168:0;9900:420:1;58605:168:0;58786:21;58795:2;58799:7;58786:8;:21::i;:::-;58474:341;58404:411;;:::o;80292:104::-;80336:7;80363:25;:15;1050:14;;958:114;80363:25;80356:32;;80292:104;:::o;59631:339::-;59826:41;21587:10;59859:7;59826:18;:41::i;:::-;59818:103;;;;-1:-1:-1;;;59818:103:0;;;;;;;:::i;:::-;59934:28;59944:4;59950:2;59954:7;59934:9;:28::i;79683:152::-;22909:6;;-1:-1:-1;;;;;22909:6:0;21587:10;23056:23;23048:68;;;;-1:-1:-1;;;23048:68:0;;;;;;;:::i;:::-;79751:21:::1;79783:44;79809:7;22909:6:::0;;-1:-1:-1;;;;;22909:6:0;;22836:87;79809:7:::1;79819;79783:17;:44::i;:::-;79722:113;79683:152::o:0;60041:185::-;60179:39;60196:4;60202:2;60206:7;60179:39;;;;;;;;;;;;:16;:39::i;80052:102::-;22909:6;;-1:-1:-1;;;;;22909:6:0;21587:10;23056:23;23048:68;;;;-1:-1:-1;;;23048:68:0;;;;;;;:::i;:::-;80123:23;;::::1;::::0;:13:::1;::::0;:23:::1;::::0;::::1;::::0;::::1;:::i;:::-;;80052:102:::0;:::o;57016:239::-;57088:7;57124:16;;;:7;:16;;;;;;-1:-1:-1;;;;;57124:16:0;57159:19;57151:73;;;;-1:-1:-1;;;57151:73:0;;10938:2:1;57151:73:0;;;10920:21:1;10977:2;10957:18;;;10950:30;11016:34;10996:18;;;10989:62;-1:-1:-1;;;11067:18:1;;;11060:39;11116:19;;57151:73:0;10736:405:1;56746:208:0;56818:7;-1:-1:-1;;;;;56846:19:0;;56838:74;;;;-1:-1:-1;;;56838:74:0;;10527:2:1;56838:74:0;;;10509:21:1;10566:2;10546:18;;;10539:30;10605:34;10585:18;;;10578:62;-1:-1:-1;;;10656:18:1;;;10649:40;10706:19;;56838:74:0;10325:406:1;56838:74:0;-1:-1:-1;;;;;;56930:16:0;;;;;:9;:16;;;;;;;56746:208::o;23487:103::-;22909:6;;-1:-1:-1;;;;;22909:6:0;21587:10;23056:23;23048:68;;;;-1:-1:-1;;;23048:68:0;;;;;;;:::i;:::-;23552:30:::1;23579:1;23552:18;:30::i;:::-;23487:103::o:0;57491:104::-;57547:13;57580:7;57573:14;;;;;:::i;80408:729::-;80510:16;;;;:9;:16;;;;;;;;:24;;:16;:24;;80488:114;;;;-1:-1:-1;;;80488:114:0;;13739:2:1;80488:114:0;;;13721:21:1;13778:2;13758:18;;;13751:30;13817:34;13797:18;;;13790:62;-1:-1:-1;;;13868:18:1;;;13861:38;13916:19;;80488:114:0;13537:404:1;80488:114:0;80635:4;;:19;;-1:-1:-1;;;80635:19:0;;;;;15319:25:1;;;80658:10:0;;-1:-1:-1;;;;;80635:4:0;;:12;;15292:18:1;;80635:19:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;80635:33:0;;80613:144;;;;-1:-1:-1;;;80613:144:0;;11348:2:1;80613:144:0;;;11330:21:1;11387:2;11367:18;;;11360:30;11426:34;11406:18;;;11399:62;11497:31;11477:18;;;11470:59;11546:19;;80613:144:0;11146:425:1;80613:144:0;80808:9;79310:17;80790:27;;80768:115;;;;-1:-1:-1;;;80768:115:0;;14550:2:1;80768:115:0;;;14532:21:1;14589:2;14569:18;;;14562:30;14628:34;14608:18;;;14601:62;-1:-1:-1;;;14679:18:1;;;14672:36;14725:19;;80768:115:0;14348:402:1;80768:115:0;80894:28;80904:10;80916:5;80894:9;:28::i;:::-;80933:16;;;;:9;:16;;;;;:23;;-1:-1:-1;;80933:23:0;80952:4;80933:23;;;80967:27;:15;1169:19;;1187:1;1169:19;;;1080:127;80967:27;79310:17;81009:9;:26;81005:125;;;81052:66;81078:10;81091:26;79310:17;81091:9;:26;:::i;:::-;81052:17;:66::i;59174:155::-;59269:52;21587:10;59302:8;59312;59269:18;:52::i;60297:328::-;60472:41;21587:10;60505:7;60472:18;:41::i;:::-;60464:103;;;;-1:-1:-1;;;60464:103:0;;;;;;;:::i;:::-;60578:39;60592:4;60598:2;60602:7;60611:5;60578:13;:39::i;:::-;60297:328;;;;:::o;57666:334::-;62200:4;62224:16;;;:7;:16;;;;;;57739:13;;-1:-1:-1;;;;;62224:16:0;57765:76;;;;-1:-1:-1;;;57765:76:0;;13323:2:1;57765:76:0;;;13305:21:1;13362:2;13342:18;;;13335:30;13401:34;13381:18;;;13374:62;-1:-1:-1;;;13452:18:1;;;13445:45;13507:19;;57765:76:0;13121:411:1;57765:76:0;57854:21;57878:10;:8;:10::i;:::-;57854:34;;57930:1;57912:7;57906:21;:25;:86;;;;;;;;;;;;;;;;;57958:7;57967:18;:7;:16;:18::i;:::-;57941:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;57906:86;57899:93;57666:334;-1:-1:-1;;;57666:334:0:o;23745:201::-;22909:6;;-1:-1:-1;;;;;22909:6:0;21587:10;23056:23;23048:68;;;;-1:-1:-1;;;23048:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;23834:22:0;::::1;23826:73;;;::::0;-1:-1:-1;;;23826:73:0;;7381:2:1;23826:73:0::1;::::0;::::1;7363:21:1::0;7420:2;7400:18;;;7393:30;7459:34;7439:18;;;7432:62;-1:-1:-1;;;7510:18:1;;;7503:36;7556:19;;23826:73:0::1;7179:402:1::0;23826:73:0::1;23910:28;23929:8;23910:18;:28::i;66117:174::-:0;66192:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;66192:29:0;-1:-1:-1;;;;;66192:29:0;;;;;;;;:24;;66246:23;66192:24;66246:14;:23::i;:::-;-1:-1:-1;;;;;66237:46:0;;;;;;;;;;;66117:174;;:::o;62429:348::-;62522:4;62224:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62224:16:0;62539:73;;;;-1:-1:-1;;;62539:73:0;;9689:2:1;62539:73:0;;;9671:21:1;9728:2;9708:18;;;9701:30;9767:34;9747:18;;;9740:62;-1:-1:-1;;;9818:18:1;;;9811:42;9870:19;;62539:73:0;9487:408:1;62539:73:0;62623:13;62639:23;62654:7;62639:14;:23::i;:::-;62623:39;;62692:5;-1:-1:-1;;;;;62681:16:0;:7;-1:-1:-1;;;;;62681:16:0;;:51;;;;62725:7;-1:-1:-1;;;;;62701:31:0;:20;62713:7;62701:11;:20::i;:::-;-1:-1:-1;;;;;62701:31:0;;62681:51;:87;;;-1:-1:-1;;;;;;59521:25:0;;;59497:4;59521:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;62736:32;62673:96;62429:348;-1:-1:-1;;;;62429:348:0:o;65421:578::-;65580:4;-1:-1:-1;;;;;65553:31:0;:23;65568:7;65553:14;:23::i;:::-;-1:-1:-1;;;;;65553:31:0;;65545:85;;;;-1:-1:-1;;;65545:85:0;;12913:2:1;65545:85:0;;;12895:21:1;12952:2;12932:18;;;12925:30;12991:34;12971:18;;;12964:62;-1:-1:-1;;;13042:18:1;;;13035:39;13091:19;;65545:85:0;12711:405:1;65545:85:0;-1:-1:-1;;;;;65649:16:0;;65641:65;;;;-1:-1:-1;;;65641:65:0;;8145:2:1;65641:65:0;;;8127:21:1;8184:2;8164:18;;;8157:30;8223:34;8203:18;;;8196:62;-1:-1:-1;;;8274:18:1;;;8267:34;8318:19;;65641:65:0;7943:400:1;65641:65:0;65823:29;65840:1;65844:7;65823:8;:29::i;:::-;-1:-1:-1;;;;;65865:15:0;;;;;;:9;:15;;;;;:20;;65884:1;;65865:15;:20;;65884:1;;65865:20;:::i;:::-;;;;-1:-1:-1;;;;;;;65896:13:0;;;;;;:9;:13;;;;;:18;;65913:1;;65896:13;:18;;65913:1;;65896:18;:::i;:::-;;;;-1:-1:-1;;65925:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;65925:21:0;-1:-1:-1;;;;;65925:21:0;;;;;;;;;65964:27;;65925:16;;65964:27;;;;;;;65421:578;;;:::o;28870:317::-;28985:6;28960:21;:31;;28952:73;;;;-1:-1:-1;;;28952:73:0;;9331:2:1;28952:73:0;;;9313:21:1;9370:2;9350:18;;;9343:30;9409:31;9389:18;;;9382:59;9458:18;;28952:73:0;9129:353:1;28952:73:0;29039:12;29057:9;-1:-1:-1;;;;;29057:14:0;29079:6;29057:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29038:52;;;29109:7;29101:78;;;;-1:-1:-1;;;29101:78:0;;8904:2:1;29101:78:0;;;8886:21:1;8943:2;8923:18;;;8916:30;8982:34;8962:18;;;8955:62;9053:28;9033:18;;;9026:56;9099:19;;29101:78:0;8702:422:1;24106:191:0;24199:6;;;-1:-1:-1;;;;;24216:17:0;;;-1:-1:-1;;;;;;24216:17:0;;;;;;;24249:40;;24199:6;;;24216:17;24199:6;;24249:40;;24180:16;;24249:40;24169:128;24106:191;:::o;63119:110::-;63195:26;63205:2;63209:7;63195:26;;;;;;;;;;;;:9;:26::i;66433:315::-;66588:8;-1:-1:-1;;;;;66579:17:0;:5;-1:-1:-1;;;;;66579:17:0;;;66571:55;;;;-1:-1:-1;;;66571:55:0;;8550:2:1;66571:55:0;;;8532:21:1;8589:2;8569:18;;;8562:30;8628:27;8608:18;;;8601:55;8673:18;;66571:55:0;8348:349:1;66571:55:0;-1:-1:-1;;;;;66637:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;66637:46:0;;;;;;;;;;66699:41;;6484::1;;;66699::0;;6457:18:1;66699:41:0;;;;;;;66433:315;;;:::o;61507:::-;61664:28;61674:4;61680:2;61684:7;61664:9;:28::i;:::-;61711:48;61734:4;61740:2;61744:7;61753:5;61711:22;:48::i;:::-;61703:111;;;;-1:-1:-1;;;61703:111:0;;;;;;;:::i;80166:114::-;80226:13;80259;80252:20;;;;;:::i;19016:723::-;19072:13;19293:10;19289:53;;-1:-1:-1;;19320:10:0;;;;;;;;;;;;-1:-1:-1;;;19320:10:0;;;;;19016:723::o;19289:53::-;19367:5;19352:12;19408:78;19415:9;;19408:78;;19441:8;;;;:::i;:::-;;-1:-1:-1;19464:10:0;;-1:-1:-1;19472:2:0;19464:10;;:::i;:::-;;;19408:78;;;19496:19;19528:6;19518:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19518:17:0;;19496:39;;19546:154;19553:10;;19546:154;;19580:11;19590:1;19580:11;;:::i;:::-;;-1:-1:-1;19649:10:0;19657:2;19649:5;:10;:::i;:::-;19636:24;;:2;:24;:::i;:::-;19623:39;;19606:6;19613;19606:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;19606:56:0;;;;;;;;-1:-1:-1;19677:11:0;19686:2;19677:11;;:::i;:::-;;;19546:154;;63456:321;63586:18;63592:2;63596:7;63586:5;:18::i;:::-;63637:54;63668:1;63672:2;63676:7;63685:5;63637:22;:54::i;:::-;63615:154;;;;-1:-1:-1;;;63615:154:0;;;;;;;:::i;67313:799::-;67468:4;-1:-1:-1;;;;;67489:13:0;;27871:20;27919:8;67485:620;;67525:72;;-1:-1:-1;;;67525:72:0;;-1:-1:-1;;;;;67525:36:0;;;;;:72;;21587:10;;67576:4;;67582:7;;67591:5;;67525:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67525:72:0;;;;;;;;-1:-1:-1;;67525:72:0;;;;;;;;;;;;:::i;:::-;;;67521:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67767:13:0;;67763:272;;67810:60;;-1:-1:-1;;;67810:60:0;;;;;;;:::i;67763:272::-;67985:6;67979:13;67970:6;67966:2;67962:15;67955:38;67521:529;-1:-1:-1;;;;;;67648:51:0;-1:-1:-1;;;67648:51:0;;-1:-1:-1;67641:58:0;;67485:620;-1:-1:-1;68089:4:0;67313:799;;;;;;:::o;64113:382::-;-1:-1:-1;;;;;64193:16:0;;64185:61;;;;-1:-1:-1;;;64185:61:0;;11778:2:1;64185:61:0;;;11760:21:1;;;11797:18;;;11790:30;11856:34;11836:18;;;11829:62;11908:18;;64185:61:0;11576:356:1;64185:61:0;62200:4;62224:16;;;:7;:16;;;;;;-1:-1:-1;;;;;62224:16:0;:30;64257:58;;;;-1:-1:-1;;;64257:58:0;;7788:2:1;64257:58:0;;;7770:21:1;7827:2;7807:18;;;7800:30;7866;7846:18;;;7839:58;7914:18;;64257:58:0;7586:352:1;64257:58:0;-1:-1:-1;;;;;64386:13:0;;;;;;:9;:13;;;;;:18;;64403:1;;64386:13;:18;;64403:1;;64386:18;:::i;:::-;;;;-1:-1:-1;;64415:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;64415:21:0;-1:-1:-1;;;;;64415:21:0;;;;;;;;64454:33;;64415:16;;;64454:33;;64415:16;;64454:33;64113:382;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:247::-;709:6;762:2;750:9;741:7;737:23;733:32;730:52;;;778:1;775;768:12;730:52;817:9;804:23;836:31;861:5;836:31;:::i;902:251::-;972:6;1025:2;1013:9;1004:7;1000:23;996:32;993:52;;;1041:1;1038;1031:12;993:52;1073:9;1067:16;1092:31;1117:5;1092:31;:::i;1158:388::-;1226:6;1234;1287:2;1275:9;1266:7;1262:23;1258:32;1255:52;;;1303:1;1300;1293:12;1255:52;1342:9;1329:23;1361:31;1386:5;1361:31;:::i;:::-;1411:5;-1:-1:-1;1468:2:1;1453:18;;1440:32;1481:33;1440:32;1481:33;:::i;:::-;1533:7;1523:17;;;1158:388;;;;;:::o;1551:456::-;1628:6;1636;1644;1697:2;1685:9;1676:7;1672:23;1668:32;1665:52;;;1713:1;1710;1703:12;1665:52;1752:9;1739:23;1771:31;1796:5;1771:31;:::i;:::-;1821:5;-1:-1:-1;1878:2:1;1863:18;;1850:32;1891:33;1850:32;1891:33;:::i;:::-;1551:456;;1943:7;;-1:-1:-1;;;1997:2:1;1982:18;;;;1969:32;;1551:456::o;2012:794::-;2107:6;2115;2123;2131;2184:3;2172:9;2163:7;2159:23;2155:33;2152:53;;;2201:1;2198;2191:12;2152:53;2240:9;2227:23;2259:31;2284:5;2259:31;:::i;:::-;2309:5;-1:-1:-1;2366:2:1;2351:18;;2338:32;2379:33;2338:32;2379:33;:::i;:::-;2431:7;-1:-1:-1;2485:2:1;2470:18;;2457:32;;-1:-1:-1;2540:2:1;2525:18;;2512:32;2567:18;2556:30;;2553:50;;;2599:1;2596;2589:12;2553:50;2622:22;;2675:4;2667:13;;2663:27;-1:-1:-1;2653:55:1;;2704:1;2701;2694:12;2653:55;2727:73;2792:7;2787:2;2774:16;2769:2;2765;2761:11;2727:73;:::i;:::-;2717:83;;;2012:794;;;;;;;:::o;2811:416::-;2876:6;2884;2937:2;2925:9;2916:7;2912:23;2908:32;2905:52;;;2953:1;2950;2943:12;2905:52;2992:9;2979:23;3011:31;3036:5;3011:31;:::i;:::-;3061:5;-1:-1:-1;3118:2:1;3103:18;;3090:32;3160:15;;3153:23;3141:36;;3131:64;;3191:1;3188;3181:12;3232:315;3300:6;3308;3361:2;3349:9;3340:7;3336:23;3332:32;3329:52;;;3377:1;3374;3367:12;3329:52;3416:9;3403:23;3435:31;3460:5;3435:31;:::i;:::-;3485:5;3537:2;3522:18;;;;3509:32;;-1:-1:-1;;;3232:315:1:o;3552:245::-;3610:6;3663:2;3651:9;3642:7;3638:23;3634:32;3631:52;;;3679:1;3676;3669:12;3631:52;3718:9;3705:23;3737:30;3761:5;3737:30;:::i;3802:249::-;3871:6;3924:2;3912:9;3903:7;3899:23;3895:32;3892:52;;;3940:1;3937;3930:12;3892:52;3972:9;3966:16;3991:30;4015:5;3991:30;:::i;4056:450::-;4125:6;4178:2;4166:9;4157:7;4153:23;4149:32;4146:52;;;4194:1;4191;4184:12;4146:52;4234:9;4221:23;4267:18;4259:6;4256:30;4253:50;;;4299:1;4296;4289:12;4253:50;4322:22;;4375:4;4367:13;;4363:27;-1:-1:-1;4353:55:1;;4404:1;4401;4394:12;4353:55;4427:73;4492:7;4487:2;4474:16;4469:2;4465;4461:11;4427:73;:::i;4511:180::-;4570:6;4623:2;4611:9;4602:7;4598:23;4594:32;4591:52;;;4639:1;4636;4629:12;4591:52;-1:-1:-1;4662:23:1;;4511:180;-1:-1:-1;4511:180:1:o;4696:257::-;4737:3;4775:5;4769:12;4802:6;4797:3;4790:19;4818:63;4874:6;4867:4;4862:3;4858:14;4851:4;4844:5;4840:16;4818:63;:::i;:::-;4935:2;4914:15;-1:-1:-1;;4910:29:1;4901:39;;;;4942:4;4897:50;;4696:257;-1:-1:-1;;4696:257:1:o;4958:470::-;5137:3;5175:6;5169:13;5191:53;5237:6;5232:3;5225:4;5217:6;5213:17;5191:53;:::i;:::-;5307:13;;5266:16;;;;5329:57;5307:13;5266:16;5363:4;5351:17;;5329:57;:::i;:::-;5402:20;;4958:470;-1:-1:-1;;;;4958:470:1:o;5851:488::-;-1:-1:-1;;;;;6120:15:1;;;6102:34;;6172:15;;6167:2;6152:18;;6145:43;6219:2;6204:18;;6197:34;;;6267:3;6262:2;6247:18;;6240:31;;;6045:4;;6288:45;;6313:19;;6305:6;6288:45;:::i;:::-;6280:53;5851:488;-1:-1:-1;;;;;;5851:488:1:o;6536:219::-;6685:2;6674:9;6667:21;6648:4;6705:44;6745:2;6734:9;6730:18;6722:6;6705:44;:::i;6760:414::-;6962:2;6944:21;;;7001:2;6981:18;;;6974:30;7040:34;7035:2;7020:18;;7013:62;-1:-1:-1;;;7106:2:1;7091:18;;7084:48;7164:3;7149:19;;6760:414::o;12350:356::-;12552:2;12534:21;;;12571:18;;;12564:30;12630:34;12625:2;12610:18;;12603:62;12697:2;12682:18;;12350:356::o;14755:413::-;14957:2;14939:21;;;14996:2;14976:18;;;14969:30;15035:34;15030:2;15015:18;;15008:62;-1:-1:-1;;;15101:2:1;15086:18;;15079:47;15158:3;15143:19;;14755:413::o;15355:128::-;15395:3;15426:1;15422:6;15419:1;15416:13;15413:39;;;15432:18;;:::i;:::-;-1:-1:-1;15468:9:1;;15355:128::o;15488:120::-;15528:1;15554;15544:35;;15559:18;;:::i;:::-;-1:-1:-1;15593:9:1;;15488:120::o;15613:125::-;15653:4;15681:1;15678;15675:8;15672:34;;;15686:18;;:::i;:::-;-1:-1:-1;15723:9:1;;15613:125::o;15743:258::-;15815:1;15825:113;15839:6;15836:1;15833:13;15825:113;;;15915:11;;;15909:18;15896:11;;;15889:39;15861:2;15854:10;15825:113;;;15956:6;15953:1;15950:13;15947:48;;;-1:-1:-1;;15991:1:1;15973:16;;15966:27;15743:258::o;16006:380::-;16085:1;16081:12;;;;16128;;;16149:61;;16203:4;16195:6;16191:17;16181:27;;16149:61;16256:2;16248:6;16245:14;16225:18;16222:38;16219:161;;;16302:10;16297:3;16293:20;16290:1;16283:31;16337:4;16334:1;16327:15;16365:4;16362:1;16355:15;16219:161;;16006:380;;;:::o;16391:135::-;16430:3;-1:-1:-1;;16451:17:1;;16448:43;;;16471:18;;:::i;:::-;-1:-1:-1;16518:1:1;16507:13;;16391:135::o;16531:112::-;16563:1;16589;16579:35;;16594:18;;:::i;:::-;-1:-1:-1;16628:9:1;;16531:112::o;16648:127::-;16709:10;16704:3;16700:20;16697:1;16690:31;16740:4;16737:1;16730:15;16764:4;16761:1;16754:15;16780:127;16841:10;16836:3;16832:20;16829:1;16822:31;16872:4;16869:1;16862:15;16896:4;16893:1;16886:15;16912:127;16973:10;16968:3;16964:20;16961:1;16954:31;17004:4;17001:1;16994:15;17028:4;17025:1;17018:15;17044:127;17105:10;17100:3;17096:20;17093:1;17086:31;17136:4;17133:1;17126:15;17160:4;17157:1;17150:15;17176:131;-1:-1:-1;;;;;17251:31:1;;17241:42;;17231:70;;17297:1;17294;17287:12;17312:131;-1:-1:-1;;;;;;17386:32:1;;17376:43;;17366:71;;17433:1;17430;17423:12
Swarm Source
ipfs://c9fa0b0c9e76ea9547ee3b3018e61226604ce604398c7826d3786ce215dcc2b6
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.